docs: fix component demo column number (#38631)

* docs: fix component demo column number

* test: skip test case
This commit is contained in:
afc163 2022-11-17 18:28:13 +08:00 committed by GitHub
parent e027cbec1c
commit ac143ffb4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
33 changed files with 36 additions and 83 deletions

View File

@ -5,8 +5,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg
demo:
cols: 2
group:
title: Other
order:
title: 其他
order: 7
---
Wrap Affix around another component to make it stick the viewport.

View File

@ -1,7 +1,7 @@
---
category: Components
subtitle: 固钉
title: Affix
subtitle: 固钉
cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg
demo:
cols: 2

View File

@ -2,11 +2,11 @@
category: Components
title: Anchor
cover: https://gw.alipayobjects.com/zos/bmw-prod/669b87c5-7b44-4c99-a5ea-4c38f8004788.svg
demo:
cols: 2
group:
title: Navigation
order: 3
demo:
cols: 2
---
Hyperlinks to scroll on one page.

View File

@ -1,7 +1,7 @@
---
category: Components
subtitle: 锚点
title: Anchor
subtitle: 锚点
cover: https://gw.alipayobjects.com/zos/bmw-prod/669b87c5-7b44-4c99-a5ea-4c38f8004788.svg
demo:
cols: 2

View File

@ -1,11 +1,12 @@
---
category: Components
cols: 2
title: AutoComplete
cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg
group:
title: Data Entry
order: 4
demo:
cols: 2
---
Autocomplete function of input field.

View File

@ -1,12 +1,13 @@
---
category: Components
subtitle: 自动完成
cols: 2
title: AutoComplete
cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg
group:
title: 数据录入
order: 4
demo:
cols: 2
---
输入框自动完成功能。

View File

@ -3,8 +3,6 @@ category: Components
group: Data Display
title: Calendar
cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
demo:
cols: 2
---
Container for displaying data in calendar form.

View File

@ -4,8 +4,6 @@ group: 数据展示
subtitle: 日历
title: Calendar
cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
demo:
cols: 2
---
按照日历形式展示数据的容器。

View File

@ -3,8 +3,6 @@ category: Components
group: Data Display
title: Card
cover: https://gw.alipayobjects.com/zos/alicdn/keNB-R8Y9/Card.svg
demo:
cols: 2
---
Simple rectangular container.

View File

@ -4,8 +4,6 @@ group: 数据展示
title: Card
subtitle: 卡片
cover: https://gw.alipayobjects.com/zos/antfincdn/NqXt8DJhky/Card.svg
demo:
cols: 2
---
通用卡片容器。

View File

@ -3,8 +3,6 @@ category: Components
group: Data Display
title: Descriptions
cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
demo:
cols: 2
---
Display multiple read-only fields in groups.

View File

@ -4,8 +4,6 @@ subtitle: 描述列表
group: 数据展示
title: Descriptions
cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
demo:
cols: 2
---
成组展示多个只读字段。

View File

@ -3,8 +3,6 @@ category: Components
group: Data Display
title: Empty
cover: https://gw.alipayobjects.com/zos/alicdn/MNbKfLBVb/Empty.svg
demo:
cols: 2
---
Empty state placeholder.

View File

@ -4,8 +4,6 @@ subtitle: 空状态
group: 数据展示
title: Empty
cover: https://gw.alipayobjects.com/zos/alicdn/MNbKfLBVb/Empty.svg
demo:
cols: 2
---
空状态时的展示占位图。

View File

@ -3,8 +3,6 @@ category: Components
group: Data Entry
title: Form
cover: https://gw.alipayobjects.com/zos/alicdn/ORmcdeaoO/Form.svg
demo:
cols: 2
---
High performance Form component with data scope management. Including data collection, verification, and styles.

View File

@ -4,8 +4,6 @@ subtitle: 表单
group: 数据录入
title: Form
cover: https://gw.alipayobjects.com/zos/alicdn/ORmcdeaoO/Form.svg
demo:
cols: 2
---
高性能表单控件,自带数据域管理。包含数据录入、校验以及对应样式。

View File

@ -3,8 +3,6 @@ category: Components
group: Layout
title: Grid
cover: https://gw.alipayobjects.com/zos/alicdn/5rWLU27so/Grid.svg
demo:
cols: 1
---
24 Grids System.

View File

@ -4,8 +4,6 @@ subtitle: 栅格
group: 布局
title: Grid
cover: https://gw.alipayobjects.com/zos/alicdn/5rWLU27so/Grid.svg
demo:
cols: 2
---
24 栅格系统。

View File

@ -4,8 +4,6 @@ group: 数据展示
title: List
subtitle: 列表
cover: https://gw.alipayobjects.com/zos/alicdn/5FrZKStG_/List.svg
demo:
cols: 2
---
通用列表。

View File

@ -3,8 +3,6 @@ category: Components
group: Navigation
title: Pagination
cover: https://gw.alipayobjects.com/zos/alicdn/1vqv2bj68/Pagination.svg
demo:
cols: 2
---
A long list can be divided into several pages using `Pagination`, and only one page will be loaded at a time.

View File

@ -4,8 +4,6 @@ subtitle: 分页
group: 导航
title: Pagination
cover: https://gw.alipayobjects.com/zos/alicdn/1vqv2bj68/Pagination.svg
demo:
cols: 2
---
采用分页的形式分隔长列表,每次只加载一个页面。

View File

@ -3,8 +3,6 @@ group: Feedback
category: Components
title: Result
cover: https://gw.alipayobjects.com/zos/alicdn/9nepwjaLa/Result.svg
demo:
cols: 2
---
Used to feed back the results of a series of operational tasks.

View File

@ -4,8 +4,6 @@ category: Components
title: Result
subtitle: 结果
cover: https://gw.alipayobjects.com/zos/alicdn/9nepwjaLa/Result.svg
demo:
cols: 2
---
用于反馈一系列操作任务的处理结果。

View File

@ -3,8 +3,6 @@ category: Components
group: Feedback
title: Skeleton
cover: https://gw.alipayobjects.com/zos/alicdn/KpcciCJgv/Skeleton.svg
demo:
cols: 2
---
Provide a placeholder while you wait for content to load, or to visualise content that doesn't exist yet.

View File

@ -4,8 +4,6 @@ subtitle: 骨架屏
group: 反馈
title: Skeleton
cover: https://gw.alipayobjects.com/zos/alicdn/KpcciCJgv/Skeleton.svg
demo:
cols: 2
---
在需要等待加载内容的位置提供一个占位图形组合。

View File

@ -3,8 +3,6 @@ category: Components
group: Layout
title: Space
cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg
demo:
cols: 2
---
Set components spacing.

View File

@ -4,8 +4,6 @@ group: 布局
subtitle: 间距
title: Space
cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg
demo:
cols: 2
---
设置组件之间的间距。

View File

@ -1,3 +1,3 @@
import { extendTest } from '../../../tests/shared/demoTest';
extendTest('table');
extendTest('table', { skip: ['ajax.tsx'] });

View File

@ -1,3 +1,3 @@
import demoTest from '../../../tests/shared/demoTest';
demoTest('table');
demoTest('table', { skip: ['ajax.tsx'] });

View File

@ -3,8 +3,6 @@ category: Components
group: Data Display
title: Tabs
cover: https://gw.alipayobjects.com/zos/antfincdn/lkI2hNEDr2V/Tabs.svg
demo:
cols: 2
---
Tabs make it easy to switch between different views.

View File

@ -4,8 +4,6 @@ subtitle: 标签页
group: 数据展示
title: Tabs
cover: https://gw.alipayobjects.com/zos/antfincdn/lkI2hNEDr2V/Tabs.svg
demo:
cols: 2
---
选项卡切换组件。
@ -45,6 +43,7 @@ return <Tabs items={items} />;
## 代码演示
<!-- prettier-ignore -->
<code src="./demo/deprecated.tsx">基础用法(废弃的语法糖)</code>
<code src="./demo/basic.tsx">基本</code>
<code src="./demo/disabled.tsx">禁用</code>
@ -68,7 +67,7 @@ return <Tabs items={items} />;
### Tabs
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ---------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------- | ------------- |
| --- | --- | --- | --- | --- |
| activeKey | 当前激活 tab 面板的 key | string | - | |
| addIcon | 自定义添加按钮 | ReactNode | - | 4.4.0 |
| animated | 是否使用动画切换 Tabs, 仅生效于 `tabPosition="top"` | boolean\| { inkBar: boolean, tabPane: boolean } | { inkBar: true, tabPane: false } | |

View File

@ -3,8 +3,6 @@ category: Components
group: Data Entry
title: Transfer
cover: https://gw.alipayobjects.com/zos/alicdn/QAXskNI4G/Transfer.svg
demo:
cols: 2
---
Double column transfer choice box.

View File

@ -4,8 +4,6 @@ subtitle: 穿梭框
group: 数据录入
title: Transfer
cover: https://gw.alipayobjects.com/zos/alicdn/QAXskNI4G/Transfer.svg
demo:
cols: 2
---
双栏穿梭选择框。