diff --git a/components/affix/index.en-US.md b/components/affix/index.en-US.md index 66dac08291..d1b6f4a1e0 100644 --- a/components/affix/index.en-US.md +++ b/components/affix/index.en-US.md @@ -1,12 +1,8 @@ --- category: Components +type: Navigation title: Affix cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg -demo: - cols: 2 -group: - title: Navigation - order: 3 demo: cols: 2 --- @@ -26,13 +22,6 @@ Please note that Affix should not cover other content on the page, especially wh Container to scroll. debug -## Examples - -Basic -Callback -Container to scroll. -debug - ## API | Property | Description | Type | Default | diff --git a/components/affix/index.zh-CN.md b/components/affix/index.zh-CN.md index 5b9e1bd4c6..82e688e830 100644 --- a/components/affix/index.zh-CN.md +++ b/components/affix/index.zh-CN.md @@ -1,13 +1,9 @@ --- category: Components subtitle: 固钉 +type: 导航 title: Affix cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg -demo: - cols: 2 -group: - title: 导航 - order: 3 demo: cols: 2 --- @@ -27,13 +23,6 @@ demo: 滚动容器 调整浏览器大小,观察 Affix 容器是否发生变化。跟随变化为正常。#17678 -## 代码演示 - -基本 -固定状态改变的回调 -滚动容器 -调整浏览器大小,观察 Affix 容器是否发生变化。跟随变化为正常。#17678 - ## API | 成员 | 说明 | 类型 | 默认值 | diff --git a/components/alert/index.en-US.md b/components/alert/index.en-US.md index 5913ce062a..baa8b12322 100644 --- a/components/alert/index.en-US.md +++ b/components/alert/index.en-US.md @@ -1,12 +1,8 @@ --- category: Components +type: Feedback title: Alert cover: https://gw.alipayobjects.com/zos/alicdn/8emPa3fjl/Alert.svg -demo: - cols: 2 -group: - title: Feedback - order: 6 demo: cols: 2 --- @@ -33,21 +29,6 @@ Alert component for feedback. Custom Icon Custom action -## Examples - -Basic -More types -Closable -Description -Icon -Customized Close Text -Banner -Loop Banner -Smoothly Unmount -ErrorBoundary -Custom Icon -Custom action - ## API | Property | Description | Type | Default | Version | diff --git a/components/alert/index.zh-CN.md b/components/alert/index.zh-CN.md index ee50303f2c..4756c38df4 100644 --- a/components/alert/index.zh-CN.md +++ b/components/alert/index.zh-CN.md @@ -1,13 +1,9 @@ --- category: Components subtitle: 警告提示 +type: 反馈 title: Alert cover: https://gw.alipayobjects.com/zos/alicdn/8emPa3fjl/Alert.svg -demo: - cols: 2 -group: - title: 反馈 - order: 6 demo: cols: 2 --- @@ -34,21 +30,6 @@ demo: 自定义图标 操作 -## 代码演示 - -基本 -四种样式 -可关闭的警告提示 -含有辅助性文字介绍 -图标 -自定义关闭 -顶部公告 -轮播的公告 -平滑地卸载 -React 错误处理 -自定义图标 -操作 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/anchor/index.en-US.md b/components/anchor/index.en-US.md index d1c092dcc7..077ea9f403 100644 --- a/components/anchor/index.en-US.md +++ b/components/anchor/index.en-US.md @@ -1,11 +1,9 @@ --- category: Components +type: Other cols: 2 title: Anchor cover: https://gw.alipayobjects.com/zos/alicdn/_1-C1JwsC/Anchor.svg -group: - title: Other - order: 7 --- Hyperlinks to scroll on one page. @@ -23,15 +21,6 @@ For displaying anchor hyperlinks on page and jumping between them. Set Anchor scroll offset Listening for anchor link change -## Examples - -Basic -Static Anchor -Customize the onClick event -Customize the anchor highlight -Set Anchor scroll offset -Listening for anchor link change - ## API ### Anchor Props diff --git a/components/anchor/index.zh-CN.md b/components/anchor/index.zh-CN.md index 4ebc11e516..dd5e3c26e7 100644 --- a/components/anchor/index.zh-CN.md +++ b/components/anchor/index.zh-CN.md @@ -2,11 +2,9 @@ category: Components subtitle: 锚点 cols: 2 +type: 其他 title: Anchor cover: https://gw.alipayobjects.com/zos/alicdn/_1-C1JwsC/Anchor.svg -group: - title: 其他 - order: 7 --- 用于跳转到页面指定位置。 @@ -24,15 +22,6 @@ group: 设置锚点滚动偏移量 监听锚点链接改变 -## 代码演示 - -基本 -静态位置 -自定义 onClick 事件 -自定义锚点高亮 -设置锚点滚动偏移量 -监听锚点链接改变 - ## API ### Anchor Props diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md index 874430e948..ea04d954cb 100644 --- a/components/auto-complete/index.en-US.md +++ b/components/auto-complete/index.en-US.md @@ -1,11 +1,9 @@ --- category: Components +type: Data Entry cols: 2 title: AutoComplete cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg -group: - title: Data Entry - order: 4 --- Autocomplete function of input field. @@ -32,18 +30,6 @@ The differences with Select are: Debug in Form \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic Usage -Customized -Customize Input Component -Non-case-sensitive AutoComplete -Lookup-Patterns - Certain Category -Lookup-Patterns - Uncertain Category -Status -Debug in Form -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | Property | Description | Type | Default | Version | diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md index 8c2ecc16fc..1d28cc0a92 100644 --- a/components/auto-complete/index.zh-CN.md +++ b/components/auto-complete/index.zh-CN.md @@ -1,12 +1,10 @@ --- category: Components subtitle: 自动完成 +type: 数据录入 cols: 2 title: AutoComplete cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg -group: - title: 数据录入 - order: 4 --- 输入框自动完成功能。 @@ -33,18 +31,6 @@ group: 在 Form 中 Debug \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本使用 -自定义选项 -自定义输入组件 -不区分大小写 -查询模式 - 确定类目 -查询模式 - 不确定类目 -自定义状态 -在 Form 中 Debug -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/avatar/index.en-US.md b/components/avatar/index.en-US.md index f960ffa877..341a8c0f87 100644 --- a/components/avatar/index.en-US.md +++ b/components/avatar/index.en-US.md @@ -1,12 +1,8 @@ --- category: Components +type: Data Display title: Avatar cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg -demo: - cols: 2 -group: - title: Data Display - order: 5 demo: cols: 2 --- @@ -24,17 +20,6 @@ Avatars can be used to represent people or objects. It supports images, `Icon`s, Responsive Size Fallback -## Examples - -Basic -Type -Autoset Font Size -With Badge -Avatar.Group -Calculate text style when hiding -Responsive Size -Fallback - ## API ### Avatar diff --git a/components/avatar/index.zh-CN.md b/components/avatar/index.zh-CN.md index 5110e43d4b..f1a4203917 100644 --- a/components/avatar/index.zh-CN.md +++ b/components/avatar/index.zh-CN.md @@ -1,13 +1,9 @@ --- category: Components subtitle: 头像 +type: 数据展示 title: Avatar cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg -demo: - cols: 2 -group: - title: 数据展示 - order: 5 demo: cols: 2 --- @@ -29,17 +25,6 @@ demo: 响应式尺寸 图片不存在时 -## 代码演示 - -基本 -类型 -自动调整字符大小 -带徽标的头像 -Avatar.Group -隐藏情况下计算字符对齐 -响应式尺寸 -图片不存在时 - ## API ### Avatar diff --git a/components/back-top/index.en-US.md b/components/back-top/index.en-US.md index a61112eaa6..a3ae6bc620 100644 --- a/components/back-top/index.en-US.md +++ b/components/back-top/index.en-US.md @@ -1,11 +1,8 @@ --- category: Components +type: Other title: BackTop cover: https://gw.alipayobjects.com/zos/alicdn/tJZ5jbTwX/BackTop.svg -demo: - cols: 2 -group: Other -order: 1 demo: cols: 2 --- @@ -22,11 +19,6 @@ demo: Basic Custom style -## Examples - -Basic -Custom style - ## API > The distance to the bottom is set to `50px` by default, which is overridable. diff --git a/components/back-top/index.zh-CN.md b/components/back-top/index.zh-CN.md index b2af848b82..f6eb0b96ed 100644 --- a/components/back-top/index.zh-CN.md +++ b/components/back-top/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components +type: 其他 subtitle: 回到顶部 title: BackTop cover: https://gw.alipayobjects.com/zos/alicdn/tJZ5jbTwX/BackTop.svg -demo: - cols: 2 -group: 其他 demo: cols: 2 --- @@ -22,11 +20,6 @@ demo: 基本 自定义样式 -## 代码演示 - -基本 -自定义样式 - ## API > 有默认样式,距离底部 `50px`,可覆盖。 diff --git a/components/badge/index.en-US.md b/components/badge/index.en-US.md index 29104dbee5..8620e99839 100644 --- a/components/badge/index.en-US.md +++ b/components/badge/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components +type: Data Display title: Badge cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg -demo: - cols: 2 -group: Data Display demo: cols: 2 --- @@ -17,23 +15,6 @@ Badge normally appears in proximity to notifications or user avatars with eye-ca ## Examples -Basic -Standalone -Overflow Count -Red badge -Dynamic -Clickable -Offset -Size -Status -Colorful Badge -Ribbon -Ribbon Debug -Mixed usage -Title - -## Examples - Basic Standalone Overflow Count diff --git a/components/badge/index.zh-CN.md b/components/badge/index.zh-CN.md index 71c2a1b67a..f6feecbc29 100644 --- a/components/badge/index.zh-CN.md +++ b/components/badge/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 徽标数 +type: 数据展示 title: Badge cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg -demo: - cols: 2 -group: 数据展示 demo: cols: 2 --- @@ -18,23 +16,6 @@ demo: ## 代码演示 -基本 -独立使用 -封顶数字 -讨嫌的小红点 -动态 -可点击 -自定义位置偏移 -大小 -状态点 -多彩徽标 -缎带 -Ribbon Debug -各种混用的情况 -自定义标题 - -## 代码演示 - 基本 独立使用 封顶数字 diff --git a/components/breadcrumb/index.en-US.md b/components/breadcrumb/index.en-US.md index d1aa59403d..1ae92d0b95 100644 --- a/components/breadcrumb/index.en-US.md +++ b/components/breadcrumb/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Navigation +type: Navigation title: Breadcrumb cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,15 +24,6 @@ A breadcrumb displays the current location within a hierarchy. It allows going b Bread crumbs with drop down menu Configuring the Separator -## Examples - -Basic Usage -With an Icon -react-router V6 -Configuring the Separator -Bread crumbs with drop down menu -Configuring the Separator - ## API ### Breadcrumb diff --git a/components/breadcrumb/index.zh-CN.md b/components/breadcrumb/index.zh-CN.md index acaf483291..8075aaa4a2 100644 --- a/components/breadcrumb/index.zh-CN.md +++ b/components/breadcrumb/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 面包屑 -group: 导航 +type: 导航 title: Breadcrumb cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,15 +25,6 @@ demo: 带下拉菜单的面包屑 分隔符 -## 代码演示 - -基本 -带有图标的 -react-router V6 -分隔符 -带下拉菜单的面包屑 -分隔符 - ## API ### Breadcrumb diff --git a/components/button/index.en-US.md b/components/button/index.en-US.md index 3e461ba2b4..d751b6f60e 100644 --- a/components/button/index.en-US.md +++ b/components/button/index.en-US.md @@ -1,12 +1,8 @@ --- category: Components +type: General title: Button cover: https://gw.alipayobjects.com/zos/alicdn/fNUKzY1sk/Button.svg -demo: - cols: 2 -group: - title: General - order: 1 demo: cols: 2 --- @@ -46,20 +42,6 @@ And 4 other properties additionally. Deprecated Button Group Loading style bug -## Examples - -Type -Icon -Size -Disabled -Loading -Multiple Buttons -Ghost Button -Danger Buttons -Block Button -Deprecated Button Group -Loading style bug - ## API Different button styles can be generated by setting Button properties. The recommended order is: `type` -> `shape` -> `size` -> `loading` -> `disabled`. diff --git a/components/button/index.zh-CN.md b/components/button/index.zh-CN.md index 978d4a9da4..b2535f16ea 100644 --- a/components/button/index.zh-CN.md +++ b/components/button/index.zh-CN.md @@ -1,13 +1,9 @@ --- category: Components +type: 通用 title: Button subtitle: 按钮 cover: https://gw.alipayobjects.com/zos/alicdn/fNUKzY1sk/Button.svg -demo: - cols: 2 -group: - title: 通用 - order: 1 demo: cols: 2 --- @@ -49,20 +45,6 @@ demo: 废弃的 Block 组 加载中状态 bug 还原 -## 代码演示 - -按钮类型 -图标按钮 -按钮尺寸 -不可用状态 -加载中状态 -多个按钮组合 -幽灵按钮 -危险按钮 -Block 按钮 -废弃的 Block 组 -加载中状态 bug 还原 - ## API 通过设置 Button 的属性来产生不同的按钮样式,推荐顺序为:`type` -> `shape` -> `size` -> `loading` -> `disabled`。 diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md index d7b7b59ae3..04bed47c46 100644 --- a/components/calendar/index.en-US.md +++ b/components/calendar/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Calendar cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg -demo: - cols: 2 --- Container for displaying data in calendar form. @@ -21,14 +19,6 @@ When data is in the form of dates, such as schedules, timetables, prices calenda Selectable Calendar Customize Header -## Examples - -Basic -Notice Calendar -Card -Selectable Calendar -Customize Header - ## API **Note:** Part of the Calendar's locale is read from `value`. So, please set the locale of `dayjs` correctly. diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md index 52d510814a..ca64fb30bf 100644 --- a/components/calendar/index.zh-CN.md +++ b/components/calendar/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 subtitle: 日历 title: Calendar cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg -demo: - cols: 2 --- 按照日历形式展示数据的容器。 @@ -22,14 +20,6 @@ demo: 选择功能 自定义头部 -## 代码演示 - -基本 -通知事项日历 -卡片模式 -选择功能 -自定义头部 - ## API **注意:**Calendar 部分 locale 是从 value 中读取,所以请先正确设置 dayjs 的 locale。 diff --git a/components/card/index.en-US.md b/components/card/index.en-US.md index 24029a28a7..3c33a973b2 100644 --- a/components/card/index.en-US.md +++ b/components/card/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Card cover: https://gw.alipayobjects.com/zos/alicdn/keNB-R8Y9/Card.svg -demo: - cols: 2 --- Simple rectangular container. @@ -26,19 +24,6 @@ A card can be used to display content related to a single subject. The content c With tabs Support more content configuration -## Examples - -Basic card -No border -Simple card -Customized content -Card in column -Loading card -Grid card -Inner card -With tabs -Support more content configuration - ## API ```jsx diff --git a/components/card/index.zh-CN.md b/components/card/index.zh-CN.md index 8733a7556c..9884cf4558 100644 --- a/components/card/index.zh-CN.md +++ b/components/card/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: Card subtitle: 卡片 cover: https://gw.alipayobjects.com/zos/antfincdn/NqXt8DJhky/Card.svg -demo: - cols: 2 --- 通用卡片容器。 @@ -27,19 +25,6 @@ demo: 带页签的卡片 支持更多内容配置 -## 代码演示 - -典型卡片 -无边框 -简洁卡片 -更灵活的内容展示 -栅格卡片 -预加载的卡片 -网格型内嵌卡片 -内部卡片 -带页签的卡片 -支持更多内容配置 - ## API ```jsx diff --git a/components/carousel/index.en-US.md b/components/carousel/index.en-US.md index 367f9708e6..a2fbdc0693 100644 --- a/components/carousel/index.en-US.md +++ b/components/carousel/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Carousel cover: https://gw.alipayobjects.com/zos/antfincdn/%24C9tmj978R/Carousel.svg -demo: - cols: 2 demo: cols: 2 --- @@ -24,13 +22,6 @@ A carousel component. Scales with its container. Scroll automatically Fade in -## Examples - -Basic -Position -Scroll automatically -Fade in - ## API | Property | Description | Type | Default | Version | diff --git a/components/carousel/index.zh-CN.md b/components/carousel/index.zh-CN.md index 99914c75e1..b4a6c2deb7 100644 --- a/components/carousel/index.zh-CN.md +++ b/components/carousel/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: Carousel subtitle: 走马灯 cover: https://gw.alipayobjects.com/zos/antfincdn/%24C9tmj978R/Carousel.svg -demo: - cols: 2 demo: cols: 2 --- @@ -25,13 +23,6 @@ demo: 自动切换 渐显 -## 代码演示 - -基本 -位置 -自动切换 -渐显 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index 0229dd962d..069354b0c5 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Cascader cover: https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg -demo: - cols: 2 demo: cols: 2 --- @@ -38,27 +36,6 @@ Cascade selection box. Status \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Default value -Custom trigger -Hover -Disabled option -Change on select -Multiple -ShowCheckedStrategy -Size -Custom render -Search -Load Options Lazily -Custom Field Names -Custom Icons -Custom dropdown -Placement -Status -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/cascader/index.zh-CN.md b/components/cascader/index.zh-CN.md index 07fddca720..311c388c93 100644 --- a/components/cascader/index.zh-CN.md +++ b/components/cascader/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据录入 +type: 数据录入 title: Cascader subtitle: 级联选择 cover: https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg -demo: - cols: 2 demo: cols: 2 --- @@ -39,27 +37,6 @@ demo: 自定义状态 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -默认值 -可以自定义显示 -移入展开 -禁用选项 -选择即改变 -多选 -自定义回填方式 -大小 -自定义已选项 -搜索 -动态加载选项 -自定义字段名 -自定义图标 -扩展菜单 -弹出位置 -自定义状态 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/checkbox/index.en-US.md b/components/checkbox/index.en-US.md index 4307aca271..99ad82c649 100644 --- a/components/checkbox/index.en-US.md +++ b/components/checkbox/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Checkbox cover: https://gw.alipayobjects.com/zos/alicdn/8nbVbHEm_/CheckBox.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,16 +24,6 @@ Checkbox component. Use with Grid Same line -## Examples - -Basic -Disabled -Controlled Checkbox -Checkbox Group -Check all -Use with Grid -Same line - ## API ### Props diff --git a/components/checkbox/index.zh-CN.md b/components/checkbox/index.zh-CN.md index 3ae2a5cc26..0365b9a79a 100644 --- a/components/checkbox/index.zh-CN.md +++ b/components/checkbox/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 多选框 -group: 数据录入 +type: 数据录入 title: Checkbox cover: https://gw.alipayobjects.com/zos/alicdn/8nbVbHEm_/CheckBox.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,16 +25,6 @@ demo: 布局 同行布局 -## 代码演示 - -基本用法 -不可用 -受控的 Checkbox -Checkbox 组 -全选 -布局 -同行布局 - ## API ### 属性 diff --git a/components/collapse/index.en-US.md b/components/collapse/index.en-US.md index 8471c8855e..1ab51bc596 100644 --- a/components/collapse/index.en-US.md +++ b/components/collapse/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Collapse cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg -demo: - cols: 2 --- A content area which can be collapsed and expanded. @@ -26,18 +24,6 @@ A content area which can be collapsed and expanded. Ghost Collapse Collapsible -## Examples - -Collapse -Accordion -Nested panel -Borderless -Custom Panel -No arrow -Extra node -Ghost Collapse -Collapsible - ## API ### Collapse diff --git a/components/collapse/index.zh-CN.md b/components/collapse/index.zh-CN.md index 3e4e10c222..39e7811631 100644 --- a/components/collapse/index.zh-CN.md +++ b/components/collapse/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: Collapse subtitle: 折叠面板 cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg -demo: - cols: 2 --- 可以折叠/展开的内容区域。 @@ -27,18 +25,6 @@ demo: 幽灵折叠面板 可折叠触发区域 -## 代码演示 - -折叠面板 -手风琴 -面板嵌套 -简洁风格 -自定义面板 -隐藏箭头 -额外节点 -幽灵折叠面板 -可折叠触发区域 - ## API ### Collapse diff --git a/components/config-provider/index.en-US.md b/components/config-provider/index.en-US.md index f07622b5bd..ed9266286d 100644 --- a/components/config-provider/index.en-US.md +++ b/components/config-provider/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Other +type: Other title: ConfigProvider cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg -demo: - cols: 2 --- `ConfigProvider` provides a uniform configuration support for components. @@ -43,14 +41,6 @@ Some components use dynamic style to support wave effect. You can config `csp` p Global Theme prefixCls -## Examples - -Locale -Direction -Component size -Global Theme -prefixCls - ## API | Property | Description | Type | Default | Version | diff --git a/components/config-provider/index.zh-CN.md b/components/config-provider/index.zh-CN.md index 8ef07c41e1..aecc266e02 100644 --- a/components/config-provider/index.zh-CN.md +++ b/components/config-provider/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 全局化配置 -group: 其他 +type: 其他 title: ConfigProvider cover: https://gw.alipayobjects.com/zos/alicdn/kegYxl1wj/ConfigProvider.svg -demo: - cols: 2 --- 为组件提供统一的全局化配置。 @@ -44,14 +42,6 @@ export default () => ( 全局样式 前缀 -## 代码演示 - -国际化 -方向 -组件尺寸 -全局样式 -前缀 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md index 5b0be18a28..05dbb0addd 100644 --- a/components/date-picker/index.en-US.md +++ b/components/date-picker/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: DatePicker cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg -demo: - cols: 2 demo: cols: 2 --- @@ -17,28 +15,6 @@ By clicking the input box, you can select a date from a popup calendar. ## Examples -Basic -Range Picker -Switchable picker -Date Format -Choose Time -Disabled -Disabled Date & Time -Select range dates in 7 days -Preset Ranges -Extra Footer -Three Sizes -Customized Date Rendering -Status -Bordered-less -Basic -Controlled Panels -Customized Range Picker -Suffix -\_InternalPanelDoNotUseOrYouWillBeFired - -## Examples - Basic Range Picker Switchable picker diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md index a110e3abe6..5aeb5a4e82 100644 --- a/components/date-picker/index.zh-CN.md +++ b/components/date-picker/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据录入 +type: 数据录入 title: DatePicker subtitle: 日期选择框 cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg -demo: - cols: 2 demo: cols: 2 --- @@ -18,28 +16,6 @@ demo: ## 代码演示 -基本 -范围选择器 -切换不同的选择器 -日期格式 -日期时间选择 -禁用 -不可选择日期和时间 -选择不超过七天的范围 -预设范围 -额外的页脚 -三种大小 -定制日期单元格 -自定义状态 -无边框 -基本 -受控面板 -自定义日期范围选择 -后缀图标 -\_InternalPanelDoNotUseOrYouWillBeFired - -## 代码演示 - 基本 范围选择器 切换不同的选择器 diff --git a/components/descriptions/index.en-US.md b/components/descriptions/index.en-US.md index 95c3d733ef..671e3337ae 100644 --- a/components/descriptions/index.en-US.md +++ b/components/descriptions/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: 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. @@ -24,17 +22,6 @@ Commonly displayed on the details page. Vertical border Customize label & wrapper style -## Examples - -Basic -border -border -Custom size -responsive -Vertical -Vertical border -Customize label & wrapper style - ## API ### Descriptions diff --git a/components/descriptions/index.zh-CN.md b/components/descriptions/index.zh-CN.md index 5054731634..9cbcfb4516 100644 --- a/components/descriptions/index.zh-CN.md +++ b/components/descriptions/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 描述列表 -group: 数据展示 +type: 数据展示 title: Descriptions cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg -demo: - cols: 2 --- 成组展示多个只读字段。 @@ -25,17 +23,6 @@ demo: 垂直带边框的 自定义 label & wrapper 样式 -## 代码演示 - -基本 -带边框的 -复杂文本的情况 -自定义尺寸 -响应式 -垂直 -垂直带边框的 -自定义 label & wrapper 样式 - ## API ### Descriptions diff --git a/components/divider/index.en-US.md b/components/divider/index.en-US.md index 1c0ee80e18..1e7e22f125 100644 --- a/components/divider/index.en-US.md +++ b/components/divider/index.en-US.md @@ -1,12 +1,8 @@ --- category: Components +type: Layout title: Divider cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg -demo: - cols: 2 -group: - title: Layout - order: 2 demo: cols: 2 --- @@ -26,14 +22,6 @@ A divider line separates different content. Vertical Style Customization -## Examples - -Horizontal -Divider with title -Text without heading style -Vertical -Style Customization - ## API | Property | Description | Type | Default | Version | diff --git a/components/divider/index.zh-CN.md b/components/divider/index.zh-CN.md index 057d0a6ff3..2d93ab2bd2 100644 --- a/components/divider/index.zh-CN.md +++ b/components/divider/index.zh-CN.md @@ -1,13 +1,9 @@ --- category: Components +type: 布局 title: Divider subtitle: 分割线 cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg -demo: - cols: 2 -group: - title: 布局 - order: 2 demo: cols: 2 --- @@ -27,14 +23,6 @@ demo: 垂直分割线 样式自定义 -## 代码演示 - -水平分割线 -带文字的分割线 -分割文字使用正文样式 -垂直分割线 -样式自定义 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/drawer/index.en-US.md b/components/drawer/index.en-US.md index 6a1c729bdf..bec271c4f0 100644 --- a/components/drawer/index.en-US.md +++ b/components/drawer/index.en-US.md @@ -1,11 +1,9 @@ --- -group: Feedback +type: Feedback category: Components subtitle: title: Drawer cover: https://img.alicdn.com/imgextra/i4/O1CN019djdZP1OHwXSRGCOW_!!6000000001681-55-tps-161-117.svg -demo: - cols: 2 demo: cols: 2 --- @@ -22,20 +20,6 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr ## Examples -Basic -Custom Placement -Extra Actions -Render in current dom -Submit form in drawer -Preview drawer -Multi-level drawer -Presetted size -ConfigProvider -No mask -\_InternalPanelDoNotUseOrYouWillBeFired - -## Examples - Basic Custom Placement Extra Actions diff --git a/components/drawer/index.zh-CN.md b/components/drawer/index.zh-CN.md index 3c68d14e37..5102120821 100644 --- a/components/drawer/index.zh-CN.md +++ b/components/drawer/index.zh-CN.md @@ -1,11 +1,9 @@ --- -group: 反馈 +type: 反馈 category: Components subtitle: 抽屉 title: Drawer cover: https://img.alicdn.com/imgextra/i4/O1CN019djdZP1OHwXSRGCOW_!!6000000001681-55-tps-161-117.svg -demo: - cols: 2 demo: cols: 2 --- @@ -21,20 +19,6 @@ demo: ## 代码演示 -基础抽屉 -自定义位置 -额外操作 -渲染在当前 DOM -抽屉表单 -信息预览抽屉 -多层抽屉 -预设宽度 -ConfigProvider -无遮罩 -\_InternalPanelDoNotUseOrYouWillBeFired - -## 代码演示 - 基础抽屉 自定义位置 额外操作 diff --git a/components/dropdown/index.en-US.md b/components/dropdown/index.en-US.md index 34508898ed..63331bb73f 100644 --- a/components/dropdown/index.en-US.md +++ b/components/dropdown/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Navigation +type: Navigation title: Dropdown cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg -demo: - cols: 2 demo: cols: 2 --- @@ -33,24 +31,6 @@ When there are more than a few options to choose from, you can wrap them in a `D Menu full styles \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Placement -Arrow -Other elements -Arrow pointing at the center -Trigger mode -Click event -Button with dropdown menu -Cascading menu -The way of hiding menu. -Context Menu -Loading -Selectable Menu -Menu full styles -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ### Dropdown diff --git a/components/dropdown/index.zh-CN.md b/components/dropdown/index.zh-CN.md index 2a3d90db17..5f8925027c 100644 --- a/components/dropdown/index.zh-CN.md +++ b/components/dropdown/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 下拉菜单 -group: 导航 +type: 导航 title: Dropdown cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg -demo: - cols: 2 demo: cols: 2 --- @@ -37,24 +35,6 @@ demo: Menu 完整样式 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -弹出位置 -箭头 -其他元素 -箭头指向 -触发方式 -触发事件 -带下拉框的按钮 -多级菜单 -菜单隐藏方式 -右键菜单 -加载中状态 -菜单可选选择 -Menu 完整样式 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API 属性如下 diff --git a/components/empty/index.en-US.md b/components/empty/index.en-US.md index 4dad207e49..81f7a2a313 100644 --- a/components/empty/index.en-US.md +++ b/components/empty/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Empty cover: https://gw.alipayobjects.com/zos/alicdn/MNbKfLBVb/Empty.svg -demo: - cols: 2 --- Empty state placeholder. @@ -22,14 +20,6 @@ Empty state placeholder. ConfigProvider No description -## Examples - -Basic -Chose image -Customize -ConfigProvider -No description - ## API ```jsx diff --git a/components/empty/index.zh-CN.md b/components/empty/index.zh-CN.md index e51ba3fb91..174addaec4 100644 --- a/components/empty/index.zh-CN.md +++ b/components/empty/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 空状态 -group: 数据展示 +type: 数据展示 title: Empty cover: https://gw.alipayobjects.com/zos/alicdn/MNbKfLBVb/Empty.svg -demo: - cols: 2 --- 空状态时的展示占位图。 @@ -23,14 +21,6 @@ demo: 全局化配置 无描述 -## 代码演示 - -基本 -选择图片 -自定义 -全局化配置 -无描述 - ## API ```jsx diff --git a/components/float-button/index.en-US.md b/components/float-button/index.en-US.md index 4885d0d5de..e1cc824a36 100644 --- a/components/float-button/index.en-US.md +++ b/components/float-button/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Other +type: Other title: FloatButton cover: https://gw.alipayobjects.com/zos/bmw-prod/9b1b62fe-e677-4afc-b9fe-1b2993662611.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,17 +25,6 @@ FloatButton. Available since `5.0.0`. Menu mode BackTop -## Examples - -Basic -Type -Shape -Description -FloatButton with tooltip -FloatButton Group -Menu mode -BackTop - ## API ### common API diff --git a/components/float-button/index.zh-CN.md b/components/float-button/index.zh-CN.md index 0d0a227516..098731d5cc 100644 --- a/components/float-button/index.zh-CN.md +++ b/components/float-button/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 其他 +type: 其他 subtitle: 悬浮按钮 title: FloatButton cover: https://gw.alipayobjects.com/zos/bmw-prod/9b1b62fe-e677-4afc-b9fe-1b2993662611.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,17 +26,6 @@ demo: 菜单模式 回到顶部 -## 代码演示 - -基本 -类型 -形状 -描述 -含有气泡卡片的悬浮按钮 -浮动按钮组 -菜单模式 -回到顶部 - ## API ### 共同的 API diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md index 53517c45ad..d08d238ec2 100644 --- a/components/form/index.en-US.md +++ b/components/form/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: 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. @@ -51,43 +49,6 @@ High performance Form component with data scope management. Including data colle Test col 24 usage Ref item -## Examples - -Basic Usage -Form methods -Form methods (Class component) -Form Layout -Form disabled -Required style -Form size -label can wrap -No block rule -Watch Hooks -Dynamic Form Item -Dynamic Form nest Items -Dynamic Form nest pure Items -Complex Dynamic Form Item -Nest -complex form control -Customized Form Controls -Store Form Data into Upper Component -Control between forms -Inline Login Form -Login Form -Registration -Advanced search -Form in Modal to Create -Time-related Controls -Handle Form Data Manually -Customized Validation -Dynamic Rules -Other Form Controls -Disabled Input Debug -Dep Debug -label ellipsis -Test col 24 usage -Ref item - ## API ### Form diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md index 78c9e47a10..38464face1 100644 --- a/components/form/index.zh-CN.md +++ b/components/form/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 表单 -group: 数据录入 +type: 数据录入 title: Form cover: https://gw.alipayobjects.com/zos/alicdn/ORmcdeaoO/Form.svg -demo: - cols: 2 --- 高性能表单控件,自带数据域管理。包含数据录入、校验以及对应样式。 @@ -52,43 +50,6 @@ demo: 测试特殊 col 24 用法 引用字段 -## 代码演示 - -基本使用 -表单方法调用 -表单方法调用(Class component) -表单布局 -表单禁用 -必选样式 -表单尺寸 -表单标签可换行 -非阻塞校验 -字段监听 Hooks -动态增减表单项 -动态增减嵌套字段 -动态增减嵌套纯字段 -复杂的动态增减表单项 -嵌套结构与校验信息 -复杂一点的控件 -自定义表单控件 -表单数据存储于上层组件 -多表单联动 -内联登录栏 -登录框 -注册新用户 -高级搜索 -弹出层中的新建表单 -时间类控件 -自行处理表单数据 -自定义校验 -动态校验规则 -校验其他组件 -Disabled Input Debug -Dep Debug -测试 label 省略 -测试特殊 col 24 用法 -引用字段 - ## API ### Form diff --git a/components/grid/index.en-US.md b/components/grid/index.en-US.md index 3926a48f1b..2b9af7f218 100644 --- a/components/grid/index.en-US.md +++ b/components/grid/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Layout +type: Layout title: Grid cover: https://gw.alipayobjects.com/zos/alicdn/5rWLU27so/Grid.svg -demo: - cols: 2 --- 24 Grids System. @@ -49,21 +47,6 @@ Layout uses a 24 grid layout to define the width of each "box", but does not rig Playground undefined -## Examples - -Basic Grid -Grid Gutter -Column offset -Grid sort -Typesetting -Alignment -Order -Flex Stretch -Responsive -More responsive -Playground -undefined - ## API If the Ant Design grid layout component does not meet your needs, you can use the excellent layout components of the community: diff --git a/components/grid/index.zh-CN.md b/components/grid/index.zh-CN.md index e14a9c7e92..2db309b00c 100644 --- a/components/grid/index.zh-CN.md +++ b/components/grid/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 栅格 -group: 布局 +type: 布局 title: Grid cover: https://gw.alipayobjects.com/zos/alicdn/5rWLU27so/Grid.svg -demo: - cols: 2 --- 24 栅格系统。 @@ -48,21 +46,6 @@ demo: 栅格配置器 undefined -## 代码演示 - -基础栅格 -区块间隔 -左右偏移 -栅格排序 -排版 -对齐 -排序 -Flex 填充 -响应式布局 -其他属性的响应式 -栅格配置器 -undefined - ## API Ant Design 的布局组件若不能满足你的需求,你也可以直接使用社区的优秀布局组件: diff --git a/components/icon/index.en-US.md b/components/icon/index.en-US.md index a46f06f6b2..4bb07c60b6 100644 --- a/components/icon/index.en-US.md +++ b/components/icon/index.en-US.md @@ -1,11 +1,9 @@ --- category: Components -group: General +type: General title: Icon toc: false cover: https://gw.alipayobjects.com/zos/alicdn/rrwbSt3FQ/Icon.svg -demo: - cols: 2 demo: cols: 2 --- @@ -31,14 +29,6 @@ ReactDOM.render(, mountNode); Use iconfont.cn Multiple resources from iconfont.cn -## Examples - -Basic -Two-tone icon and colorful icon -Custom Icon -Use iconfont.cn -Multiple resources from iconfont.cn - ## API ### Common Icon diff --git a/components/icon/index.zh-CN.md b/components/icon/index.zh-CN.md index 6f587902e9..aad3c1ed8e 100644 --- a/components/icon/index.zh-CN.md +++ b/components/icon/index.zh-CN.md @@ -1,12 +1,10 @@ --- category: Components subtitle: 图标 -group: 通用 +type: 通用 title: Icon toc: false cover: https://gw.alipayobjects.com/zos/alicdn/rrwbSt3FQ/Icon.svg -demo: - cols: 2 demo: cols: 2 --- @@ -36,14 +34,6 @@ ReactDOM.render(, mountNode); 使用 iconfont.cn 使用 iconfont.cn 的多个资源 -## 代码演示 - -基本用法 -多色图标 -自定义图标 -使用 iconfont.cn -使用 iconfont.cn 的多个资源 - ## API 从 4.0 开始,antd 不再内置 Icon 组件,请使用独立的包 `@ant-design/icons`。 diff --git a/components/image/index.en-US.md b/components/image/index.en-US.md index dfd1fc2aeb..b42f589db4 100644 --- a/components/image/index.en-US.md +++ b/components/image/index.en-US.md @@ -1,6 +1,6 @@ --- category: Components -group: Data Display +type: Data Display title: Image cols: 2 cover: https://gw.alipayobjects.com/zos/antfincdn/D1dXz9PZqa/image.svg @@ -25,18 +25,6 @@ Previewable image. Custom preview mask Top progress customization when previewing multiple images -## Examples - -Basic Usage -Fault tolerant -Progressive Loading -Multiple image preview -Preview from one image -Custom preview image -Controlled Preview -Custom preview mask -Top progress customization when previewing multiple images - ## API | Property | Description | Type | Default | Version | diff --git a/components/image/index.zh-CN.md b/components/image/index.zh-CN.md index 50ef8bd153..e431d25a81 100644 --- a/components/image/index.zh-CN.md +++ b/components/image/index.zh-CN.md @@ -1,7 +1,7 @@ --- category: Components subtitle: 图片 -group: 数据展示 +type: 数据展示 title: Image cols: 2 cover: https://gw.alipayobjects.com/zos/antfincdn/D1dXz9PZqa/image.svg @@ -26,18 +26,6 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/D1dXz9PZqa/image.svg 自定义预览文本 多图预览时顶部进度自定义 -## 代码演示 - -基本用法 -容错处理 -渐进加载 -多张图片预览 -相册模式 -自定义预览图片 -受控的预览 -自定义预览文本 -多图预览时顶部进度自定义 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/input-number/index.en-US.md b/components/input-number/index.en-US.md index 00a0d6ef42..b8ad45bd5c 100644 --- a/components/input-number/index.en-US.md +++ b/components/input-number/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: InputNumber cover: https://gw.alipayobjects.com/zos/alicdn/XOS8qZ0kU/InputNumber.svg -demo: - cols: 2 demo: cols: 2 --- @@ -32,23 +30,6 @@ When a numeric value needs to be provided. \_InternalPanelDoNotUseOrYouWillBeFired Override Component Style -## Examples - -Basic -Sizes -Pre / Post tab -Disabled -High precision decimals -Formatter -Keyboard -Borderless -Out of range -Prefix -Status -Icon -\_InternalPanelDoNotUseOrYouWillBeFired -Override Component Style - ## API | Property | Description | Type | Default | Version | diff --git a/components/input-number/index.zh-CN.md b/components/input-number/index.zh-CN.md index 57c6583027..5b47f3d569 100644 --- a/components/input-number/index.zh-CN.md +++ b/components/input-number/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 数字输入框 -group: 数据录入 +type: 数据录入 title: InputNumber cover: https://gw.alipayobjects.com/zos/alicdn/XOS8qZ0kU/InputNumber.svg -demo: - cols: 2 demo: cols: 2 --- @@ -33,23 +31,6 @@ demo: \_InternalPanelDoNotUseOrYouWillBeFired 覆盖组件样式 -## 代码演示 - -基本 -三种大小 -前置/后置标签 -不可用 -高精度小数 -格式化展示 -键盘行为 -无边框 -超出边界 -前缀 -自定义状态 -图标按钮 -\_InternalPanelDoNotUseOrYouWillBeFired -覆盖组件样式 - ## API 属性如下 diff --git a/components/input/index.en-US.md b/components/input/index.en-US.md index ab304b41da..db924f2439 100644 --- a/components/input/index.en-US.md +++ b/components/input/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Input cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg -demo: - cols: 2 demo: cols: 2 --- @@ -39,29 +37,6 @@ A basic widget for getting the user input is a text field. Keyboard and mouse ca Text Align TextArea -## Examples - -Basic usage -Three sizes of Input -Pre / Post tab -Input Group -Search box -Search box with loading -TextArea -Autosizing the height to fit the content -Format Tooltip Input -prefix and suffix -Password box -With clear icon -With character counting -Textarea with character counting -Status -Borderless -Focus -Borderless Debug -Text Align -TextArea - ## API ### Input diff --git a/components/input/index.zh-CN.md b/components/input/index.zh-CN.md index a1419d1ed3..08e6e5ac1c 100644 --- a/components/input/index.zh-CN.md +++ b/components/input/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 输入框 -group: 数据录入 +type: 数据录入 title: Input cover: https://gw.alipayobjects.com/zos/alicdn/xS9YEJhfe/Input.svg -demo: - cols: 2 demo: cols: 2 --- @@ -40,29 +38,6 @@ demo: 文本对齐 文本域 -## 代码演示 - -基本使用 -三种大小 -前置/后置标签 -输入框组合 -搜索框 -搜索框 loading -文本域 -适应文本高度的文本域 -输入时格式化展示 -前缀和后缀 -密码框 -带移除图标 -带字数提示 -带字数提示的文本域 -自定义状态 -无边框 -聚焦 -Borderless Debug -文本对齐 -文本域 - ## API ### Input diff --git a/components/layout/index.en-US.md b/components/layout/index.en-US.md index 6855de3b91..25219954a5 100644 --- a/components/layout/index.en-US.md +++ b/components/layout/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Layout +type: Layout title: Layout cover: https://gw.alipayobjects.com/zos/alicdn/hzEndUVEx/Layout.svg -demo: - cols: 2 --- Handling the overall layout of a page. @@ -70,19 +68,6 @@ Style of a navigation should conform to its level. Fixed Sider Custom trigger debug -## Examples - -Basic Structure -Header-Content-Footer -Header Sider 2 -Header-Sider -Sider -Custom trigger -Responsive -Fixed Header -Fixed Sider -Custom trigger debug - ## API ```jsx diff --git a/components/layout/index.zh-CN.md b/components/layout/index.zh-CN.md index 8a6086cc91..d00b3cdd45 100644 --- a/components/layout/index.zh-CN.md +++ b/components/layout/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 布局 -group: 布局 +type: 布局 title: Layout cover: https://gw.alipayobjects.com/zos/alicdn/hzEndUVEx/Layout.svg -demo: - cols: 2 --- 协助进行页面级整体布局。 @@ -71,19 +69,6 @@ demo: 固定侧边栏 自定义触发器 Debug -## 代码演示 - -基本结构 -上中下布局 -顶部-侧边布局-通栏 -顶部-侧边布局 -侧边布局 -自定义触发器 -响应式布局 -固定头部 -固定侧边栏 -自定义触发器 Debug - ## API ```jsx diff --git a/components/list/index.en-US.md b/components/list/index.en-US.md index 5364305054..b08ed1cb5b 100644 --- a/components/list/index.en-US.md +++ b/components/list/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: List cover: https://gw.alipayobjects.com/zos/alicdn/5FrZKStG_/List.svg -demo: - cols: 2 --- Simple List. @@ -25,18 +23,6 @@ A list can be used to display content related to a single subject. The content c Scrolling loaded virtual list -## Examples - -Simple list -Basic list -Load more -Vertical -Grid -Test Grid -Responsive grid list -Scrolling loaded -virtual list - ## API ### List diff --git a/components/list/index.zh-CN.md b/components/list/index.zh-CN.md index 10f179225d..8d6e8ee9cc 100644 --- a/components/list/index.zh-CN.md +++ b/components/list/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: List subtitle: 列表 cover: https://gw.alipayobjects.com/zos/alicdn/5FrZKStG_/List.svg -demo: - cols: 2 --- 通用列表。 @@ -26,18 +24,6 @@ demo: 滚动加载 滚动加载无限长列表 -## 代码演示 - -简单列表 -基础列表 -加载更多 -竖排列表样式 -栅格列表 -测试栅格列表 -响应式的栅格列表 -滚动加载 -滚动加载无限长列表 - ## API 另外我们封装了 [ProList](https://procomponents.ant.design/components/list),在 `antd` List 之上扩展了更多便捷易用的功能,比如多选,展开等功能,使用体验贴近 Table,欢迎尝试使用。 diff --git a/components/mentions/index.en-US.md b/components/mentions/index.en-US.md index 3417ad7602..084c876add 100644 --- a/components/mentions/index.en-US.md +++ b/components/mentions/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Mentions cover: https://gw.alipayobjects.com/zos/alicdn/0pF5j477V/Mentions.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,18 +25,6 @@ When you need to mention someone or something. Status \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Asynchronous loading -With Form -Customize Trigger Token -disabled or readOnly -Placement -autoSize -Status -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/mentions/index.zh-CN.md b/components/mentions/index.zh-CN.md index e6f451f390..392ac826d5 100644 --- a/components/mentions/index.zh-CN.md +++ b/components/mentions/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 提及 -group: 数据录入 +type: 数据录入 title: Mentions cover: https://gw.alipayobjects.com/zos/alicdn/jPE-itMFM/Mentions.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,18 +26,6 @@ demo: 自定义状态 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本使用 -异步加载 -配合 Form 使用 -自定义触发字符 -无效或只读 -向上展开 -自动大小 -自定义状态 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/menu/index.en-US.md b/components/menu/index.en-US.md index e0b1aeda43..09531d48a0 100644 --- a/components/menu/index.en-US.md +++ b/components/menu/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Navigation +type: Navigation title: Menu cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg -demo: - cols: 2 --- A versatile menu for navigation. @@ -65,19 +63,6 @@ The legacy demo code for version `<4.20.0` could be found at [https://github.com Switch the menu type Style debug -## Examples - -Basic usage (deprecated syntactic sugar) -Top Navigation -Inline menu -Collapsed inline menu -Open current submenu only -Vertical menu -Menu Themes -Sub-menu theme -Switch the menu type -Style debug - ## API ### Menu diff --git a/components/menu/index.zh-CN.md b/components/menu/index.zh-CN.md index da774e343f..f7fe07513a 100644 --- a/components/menu/index.zh-CN.md +++ b/components/menu/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 导航 +type: 导航 title: Menu subtitle: 导航菜单 cover: https://gw.alipayobjects.com/zos/alicdn/3XZcjGpvK/Menu.svg -demo: - cols: 2 --- 为页面和功能提供导航的菜单列表。 @@ -66,19 +64,6 @@ return ; 切换菜单类型 Style debug -## 代码演示 - -基础用法(废弃的语法糖) -顶部导航 -内嵌菜单 -缩起内嵌菜单 -只展开当前父级菜单 -垂直菜单 -主题 -子菜单主题 -切换菜单类型 -Style debug - ## API ### Menu diff --git a/components/message/index.en-US.md b/components/message/index.en-US.md index c0d03a23de..00fdfde92b 100644 --- a/components/message/index.en-US.md +++ b/components/message/index.en-US.md @@ -1,11 +1,9 @@ --- category: Components -group: Feedback +type: Feedback noinstant: true title: Message cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,18 +27,6 @@ Display global messages as feedback in response to user operations. Normal prompt \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Hooks usage (recommended) -Other types of message -Customize duration -Message with loading indicator -Promise interface -Customized style -Update Message Content -Normal prompt -\_InternalPanelDoNotUseOrYouWillBeFired - ## API This components provides some static methods, with usage and arguments as following: diff --git a/components/message/index.zh-CN.md b/components/message/index.zh-CN.md index afb7882332..10f68f9239 100644 --- a/components/message/index.zh-CN.md +++ b/components/message/index.zh-CN.md @@ -1,12 +1,10 @@ --- category: Components subtitle: 全局提示 -group: 反馈 +type: 反馈 noinstant: true title: Message cover: https://gw.alipayobjects.com/zos/alicdn/hAkKTIW0K/Message.svg -demo: - cols: 2 demo: cols: 2 --- @@ -30,18 +28,6 @@ demo: 普通提示 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -Hooks 调用(推荐) -其他提示类型 -修改延时 -加载中 -Promise 接口 -自定义样式 -更新消息内容 -普通提示 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API 组件提供了一些静态方法,使用方式和参数如下: diff --git a/components/modal/index.en-US.md b/components/modal/index.en-US.md index e218dfe19e..1242690cee 100644 --- a/components/modal/index.en-US.md +++ b/components/modal/index.en-US.md @@ -1,10 +1,8 @@ --- -group: Feedback +type: Feedback category: Components title: Modal cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg -demo: - cols: 2 demo: cols: 2 --- @@ -33,24 +31,6 @@ When requiring users to interact with the application, but without jumping to a To customize the width of modal \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Asynchronously close -Customized Footer -Confirmation modal dialog -Information modal dialog -Internationalization -Manual to update destroy -To customize the position of modal -destroy confirmation modal dialog -Dark Bg -Customize footer buttons props -Use hooks to get context -Custom modal content render -To customize the width of modal -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | Property | Description | Type | Default | Version | diff --git a/components/modal/index.zh-CN.md b/components/modal/index.zh-CN.md index e3e60601e4..5353fe5ea1 100644 --- a/components/modal/index.zh-CN.md +++ b/components/modal/index.zh-CN.md @@ -1,11 +1,9 @@ --- -group: 反馈 +type: 反馈 category: Components subtitle: 对话框 title: Modal cover: https://gw.alipayobjects.com/zos/alicdn/3StSdUlSH/Modal.svg -demo: - cols: 2 demo: cols: 2 --- @@ -36,24 +34,6 @@ demo: 自定义模态的宽度 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -异步关闭 -自定义页脚 -确认对话框 -信息提示 -国际化 -手动更新和移除 -自定义位置 -销毁确认对话框 -暗背景 -自定义页脚按钮属性 -使用 hooks 获得上下文 -自定义渲染对话框 -自定义模态的宽度 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/notification/index.en-US.md b/components/notification/index.en-US.md index 200f3f439d..f8e22075e9 100644 --- a/components/notification/index.en-US.md +++ b/components/notification/index.en-US.md @@ -1,11 +1,9 @@ --- category: Components -group: Feedback +type: Feedback noinstant: true title: Notification cover: https://gw.alipayobjects.com/zos/alicdn/Jxm5nw61w/Notification.svg -demo: - cols: 2 demo: cols: 2 --- @@ -33,19 +31,6 @@ To display a notification message at any of the four corners of the viewport. Ty Update Message Content \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Hooks usage (recommended) -Basic -Duration after which the notification box is closed -Notification with icon -Custom close button -Customized Icon -Placement -Customized style -Update Message Content -\_InternalPanelDoNotUseOrYouWillBeFired - ## API - `notification.success(config)` diff --git a/components/notification/index.zh-CN.md b/components/notification/index.zh-CN.md index 0aef0eb7b6..85c8ef5801 100644 --- a/components/notification/index.zh-CN.md +++ b/components/notification/index.zh-CN.md @@ -1,12 +1,10 @@ --- category: Components -group: 反馈 +type: 反馈 noinstant: true title: Notification subtitle: 通知提醒框 cover: https://gw.alipayobjects.com/zos/alicdn/Jxm5nw61w/Notification.svg -demo: - cols: 2 demo: cols: 2 --- @@ -34,19 +32,6 @@ demo: 更新消息内容 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -Hooks 调用(推荐) -基本 -自动关闭的延时 -带有图标的通知提醒框 -自定义按钮 -自定义图标 -位置 -自定义样式 -更新消息内容 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API - `notification.success(config)` diff --git a/components/overview/index.en-US.md b/components/overview/index.en-US.md index f4ab40dc0a..fd58f0041f 100644 --- a/components/overview/index.en-US.md +++ b/components/overview/index.en-US.md @@ -1,8 +1,7 @@ --- category: Components title: Components Overview +type: Overview --- `antd` provides plenty of UI components to enrich your web applications, and we will improve components experience consistently. We also recommend some great [Third-Party Libraries](/docs/react/recommendation) additionally. - - diff --git a/components/overview/index.zh-CN.md b/components/overview/index.zh-CN.md index 5c9267da39..3a790c387f 100644 --- a/components/overview/index.zh-CN.md +++ b/components/overview/index.zh-CN.md @@ -1,8 +1,7 @@ --- category: Components title: 组件总览 +type: 组件总览 --- `antd` 为 Web 应用提供了丰富的基础 UI 组件,我们还将持续探索企业级应用的最佳 UI 实践。除了官方组件,我们也提供了[社区精选组件](/docs/react/recommendation)作为必要的补充,另外如果您是内网用户,欢迎尝试使用 [TechUI](https://techui.alipay.com)。 - - diff --git a/components/pagination/index.en-US.md b/components/pagination/index.en-US.md index 46a14c10b1..e80396b255 100644 --- a/components/pagination/index.en-US.md +++ b/components/pagination/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Navigation +type: 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. @@ -27,19 +25,6 @@ A long list can be divided into several pages using `Pagination`, and only one p Show All Prev and next -## Examples - -Basic -More -Changer -Jumper -Mini size -Simple mode -Controlled -Total number -Show All -Prev and next - ## API ```jsx diff --git a/components/pagination/index.zh-CN.md b/components/pagination/index.zh-CN.md index 82a4f2beaf..d4df8a622b 100644 --- a/components/pagination/index.zh-CN.md +++ b/components/pagination/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 分页 -group: 导航 +type: 导航 title: Pagination cover: https://gw.alipayobjects.com/zos/alicdn/1vqv2bj68/Pagination.svg -demo: - cols: 2 --- 采用分页的形式分隔长列表,每次只加载一个页面。 @@ -28,19 +26,6 @@ demo: 全部展示 上一步和下一步 -## 代码演示 - -基本 -更多 -改变 -跳转 -迷你 -简洁 -受控 -总数 -全部展示 -上一步和下一步 - ## API ```jsx diff --git a/components/popconfirm/index.en-US.md b/components/popconfirm/index.en-US.md index 7f36ed1408..f7c6648a00 100644 --- a/components/popconfirm/index.en-US.md +++ b/components/popconfirm/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Feedback +type: Feedback title: Popconfirm cover: https://gw.alipayobjects.com/zos/alicdn/fjMCD9xRq/Popconfirm.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,17 +26,6 @@ The difference with the `confirm` modal dialog is that it's more lightweight tha Asynchronously close on Promise \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Locale text -Placement -Conditional trigger -Customize icon -Asynchronously close -Asynchronously close on Promise -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | Param | Description | Type | Default value | Version | diff --git a/components/popconfirm/index.zh-CN.md b/components/popconfirm/index.zh-CN.md index 48e2571d33..918e24d5a9 100644 --- a/components/popconfirm/index.zh-CN.md +++ b/components/popconfirm/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 气泡确认框 -group: 反馈 +type: 反馈 title: Popconfirm cover: https://gw.alipayobjects.com/zos/alicdn/fjMCD9xRq/Popconfirm.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,17 +27,6 @@ demo: 基于 Promise 的异步关闭 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -国际化 -位置 -条件触发 -自定义 Icon 图标 -异步关闭 -基于 Promise 的异步关闭 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/popover/index.en-US.md b/components/popover/index.en-US.md index ae35a5154e..84f75d8a1e 100644 --- a/components/popover/index.en-US.md +++ b/components/popover/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Popover cover: https://gw.alipayobjects.com/zos/alicdn/1PNL1p_cO/Popover.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,16 +25,6 @@ Comparing with `Tooltip`, besides information `Popover` card can also provide ac Hover with click popover \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Three ways to trigger -Placement -Controlling the close of the dialog -Arrow pointing -Hover with click popover -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | Param | Description | Type | Default value | Version | diff --git a/components/popover/index.zh-CN.md b/components/popover/index.zh-CN.md index 311aaddb5c..6c2b0310a7 100644 --- a/components/popover/index.zh-CN.md +++ b/components/popover/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 气泡卡片 -group: 数据展示 +type: 数据展示 title: Popover cover: https://gw.alipayobjects.com/zos/alicdn/1PNL1p_cO/Popover.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,16 +26,6 @@ demo: 悬停点击弹出窗口 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -三种触发方式 -位置 -从浮层内关闭 -箭头指向 -悬停点击弹出窗口 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/progress/index.en-US.md b/components/progress/index.en-US.md index 2b0db92e42..0db4ebf9a4 100644 --- a/components/progress/index.en-US.md +++ b/components/progress/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Feedback +type: Feedback title: Progress cover: https://gw.alipayobjects.com/zos/alicdn/xqsDu4ZyR/Progress.svg -demo: - cols: 2 demo: cols: 2 --- @@ -33,21 +31,6 @@ If it will take a long time to complete an operation, you can use `Progress` to Custom line gradient Progress bar with steps -## Examples - -Progress bar -Circular progress bar -Mini size progress bar -Mini size circular progress bar -Dynamic circular progress bar -Dynamic -Custom text format -Dashboard -Progress bar with success segment -Stroke Linecap -Custom line gradient -Progress bar with steps - ## API Properties that shared by all types. diff --git a/components/progress/index.zh-CN.md b/components/progress/index.zh-CN.md index 944e87b69d..8a25176588 100644 --- a/components/progress/index.zh-CN.md +++ b/components/progress/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 进度条 -group: 反馈 +type: 反馈 title: Progress cover: https://gw.alipayobjects.com/zos/alicdn/xqsDu4ZyR/Progress.svg -demo: - cols: 2 demo: cols: 2 --- @@ -34,21 +32,6 @@ demo: 自定义进度条渐变色 步骤进度条 -## 代码演示 - -进度条 -进度圈 -小型进度条 -小型进度圈 -进度圈动态展示 -动态展示 -自定义文字格式 -仪表盘 -分段进度条 -边缘形状 -自定义进度条渐变色 -步骤进度条 - ## API 各类型共用的属性。 diff --git a/components/radio/index.en-US.md b/components/radio/index.en-US.md index 7394322a1e..86e6b0da67 100644 --- a/components/radio/index.en-US.md +++ b/components/radio/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Radio cover: https://gw.alipayobjects.com/zos/alicdn/8cYb5seNB/Radio.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,19 +27,6 @@ Radio. Solid radio button 测试 Badge 的样式 -## Examples - -Basic -disabled -Radio Group -Vertical Radio.Group -Radio.Group group - optional -radio style -Radio.Group with name -Size -Solid radio button -测试 Badge 的样式 - ## API ### Radio/Radio.Button diff --git a/components/radio/index.zh-CN.md b/components/radio/index.zh-CN.md index 046fc2396f..1c36d29238 100644 --- a/components/radio/index.zh-CN.md +++ b/components/radio/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 单选框 -group: 数据录入 +type: 数据录入 title: Radio cover: https://gw.alipayobjects.com/zos/alicdn/8cYb5seNB/Radio.svg -demo: - cols: 2 demo: cols: 2 --- @@ -30,19 +28,6 @@ demo: 填底的按钮样式 Badge style -## 代码演示 - -基本 -不可用 -单选组合 -Radio.Group 垂直 -Radio.Group 组合 - 配置方式 -按钮样式 -单选组合 - 配合 name 使用 -大小 -填底的按钮样式 -Badge style - ## API ### Radio/Radio.Button diff --git a/components/rate/index.en-US.md b/components/rate/index.en-US.md index c9f0f18ff7..57af4e7b72 100644 --- a/components/rate/index.en-US.md +++ b/components/rate/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Rate cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,16 +24,6 @@ Rate component. Other Character Customize character -## Examples - -Basic -Half star -Show copywriting -Read only -Clear star -Other Character -Customize character - ## API | Property | Description | type | Default | Version | diff --git a/components/rate/index.zh-CN.md b/components/rate/index.zh-CN.md index d3158f5b8f..2d3ed86e42 100644 --- a/components/rate/index.zh-CN.md +++ b/components/rate/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 评分 -group: 数据录入 +type: 数据录入 title: Rate cover: https://gw.alipayobjects.com/zos/alicdn/R5uiIWmxe/Rate.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,16 +25,6 @@ demo: 其他字符 自定义字符 -## 代码演示 - -基本 -半星 -文案展现 -只读 -清除 -其他字符 -自定义字符 - ## API | 属性 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/result/index.en-US.md b/components/result/index.en-US.md index ec2130a6fc..171ca01e39 100644 --- a/components/result/index.en-US.md +++ b/components/result/index.en-US.md @@ -1,10 +1,8 @@ --- -group: Feedback +type: 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. @@ -24,17 +22,6 @@ Use when important operations need to inform the user to process the results and Error Custom icon -## Examples - -Success -Info -Warning -403 -404 -500 -Error -Custom icon - ## API | Property | Description | Type | Default | diff --git a/components/result/index.zh-CN.md b/components/result/index.zh-CN.md index 367e6295d9..2e6317c006 100644 --- a/components/result/index.zh-CN.md +++ b/components/result/index.zh-CN.md @@ -1,11 +1,9 @@ --- -group: 反馈 +type: 反馈 category: Components title: Result subtitle: 结果 cover: https://gw.alipayobjects.com/zos/alicdn/9nepwjaLa/Result.svg -demo: - cols: 2 --- 用于反馈一系列操作任务的处理结果。 @@ -25,17 +23,6 @@ demo: Error 自定义 icon -## 代码演示 - -Success -Info -Warning -403 -404 -500 -Error -自定义 icon - ## API | 参数 | 说明 | 类型 | 默认值 | diff --git a/components/segmented/index.en-US.md b/components/segmented/index.en-US.md index 3c1527bd9b..79e999291f 100644 --- a/components/segmented/index.en-US.md +++ b/components/segmented/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Segmented cover: https://gw.alipayobjects.com/zos/bmw-prod/a3ff040f-24ba-43e0-92e9-c845df1612ad.svg -demo: - cols: 2 demo: cols: 2 --- @@ -30,20 +28,6 @@ Segmented Controls. This component is available since `antd@4.20.0`. Controlled Synced mode Consistent height -## Examples - -Basic -Block Segmented -Basic -Controlled mode -Custom Render -Dynamic -Three sizes of Segmented -With Icon -With Icon only -Controlled Synced mode -Consistent height - ## API > This component is available since `antd@4.20.0` diff --git a/components/segmented/index.zh-CN.md b/components/segmented/index.zh-CN.md index edf5a2c72e..2de0f2a7e5 100644 --- a/components/segmented/index.zh-CN.md +++ b/components/segmented/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 分段控制器 -group: 数据展示 +type: 数据展示 title: Segmented cover: https://gw.alipayobjects.com/zos/bmw-prod/a3ff040f-24ba-43e0-92e9-c845df1612ad.svg -demo: - cols: 2 demo: cols: 2 --- @@ -31,20 +29,6 @@ demo: 受控同步模式 统一高度 -## 代码演示 - -基本 -Block 分段选择器 -不可用 -受控模式 -自定义渲染 -动态数据 -三种大小 -设置图标 -只设置图标 -受控同步模式 -统一高度 - ## API > 自 `antd@4.20.0` 版本开始提供该组件。 diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index 595f7f0187..263bfcd1a0 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Select cover: https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg -demo: - cols: 2 demo: cols: 2 --- @@ -43,33 +41,6 @@ Select component to select value from options. 4.0 Debug \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic Usage -Select with search field -multiple selection -Sizes -Custom selection render -Search with sort -Tags -Option Group -coordinate -Search Box -Get value of selected item -Automatic tokenization -Search and Select Users -Suffix -Custom dropdown -Hide Already Selected -Bordered-less -Custom Tag Render -Responsive maxTagCount -Big Data -Status -Placement -4.0 Debug -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/select/index.zh-CN.md b/components/select/index.zh-CN.md index 68359a74ba..44388ec88f 100644 --- a/components/select/index.zh-CN.md +++ b/components/select/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 选择器 -group: 数据录入 +type: 数据录入 title: Select cover: https://gw.alipayobjects.com/zos/alicdn/_0XzgOis7/Select.svg -demo: - cols: 2 demo: cols: 2 --- @@ -44,33 +42,6 @@ demo: 4.0 Debug \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本使用 -带搜索框 -多选 -三种大小 -定制回填内容 -带排序的搜索 -标签 -分组 -联动 -搜索框 -获得选项的文本 -自动分词 -搜索用户 -后缀图标 -扩展菜单 -隐藏已选择选项 -无边框 -自定义选择标签 -响应式 maxTagCount -大数据 -自定义状态 -弹出位置 -4.0 Debug -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ```jsx diff --git a/components/skeleton/index.en-US.md b/components/skeleton/index.en-US.md index c16691c372..9ee4ebb083 100644 --- a/components/skeleton/index.en-US.md +++ b/components/skeleton/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Feedback +type: 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. @@ -25,15 +23,6 @@ Provide a placeholder while you wait for content to load, or to visualise conten Contains sub component List -## Examples - -Basic -Complex combination -Active Animation -Button/Avatar/Input/Image/Node -Contains sub component -List - ## API ### Skeleton diff --git a/components/skeleton/index.zh-CN.md b/components/skeleton/index.zh-CN.md index d9921824bb..a79b5c8b87 100644 --- a/components/skeleton/index.zh-CN.md +++ b/components/skeleton/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 骨架屏 -group: 反馈 +type: 反馈 title: Skeleton cover: https://gw.alipayobjects.com/zos/alicdn/KpcciCJgv/Skeleton.svg -demo: - cols: 2 --- 在需要等待加载内容的位置提供一个占位图形组合。 @@ -26,15 +24,6 @@ demo: 包含子组件 列表 -## 代码演示 - -基本 -复杂的组合 -动画效果 -按钮/头像/输入框/图像/自定义节点 -包含子组件 -列表 - ## API ### Skeleton diff --git a/components/slider/index.en-US.md b/components/slider/index.en-US.md index 542bcea4d1..ec0e0e22b2 100644 --- a/components/slider/index.en-US.md +++ b/components/slider/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Slider cover: https://gw.alipayobjects.com/zos/alicdn/HZ3meFc6W/Silder.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,19 +26,6 @@ To input a value in a range. Reverse Draggable track -## Examples - -Basic -Slider with InputNumber -Slider with icon -Customize tooltip -Event -Graduated slider -Vertical -Control visible of ToolTip -Reverse -Draggable track - ## API | Property | Description | Type | Default | Version | diff --git a/components/slider/index.zh-CN.md b/components/slider/index.zh-CN.md index b2eed4c0fa..4351f07280 100644 --- a/components/slider/index.zh-CN.md +++ b/components/slider/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 滑动输入条 -group: 数据录入 +type: 数据录入 title: Slider cover: https://gw.alipayobjects.com/zos/alicdn/HZ3meFc6W/Silder.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,19 +27,6 @@ demo: 反向 范围可拖拽 -## 代码演示 - -基本 -带输入框的滑块 -带 icon 的滑块 -自定义提示 -事件 -带标签的滑块 -垂直 -控制 ToolTip 的显示 -反向 -范围可拖拽 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/space/index.en-US.md b/components/space/index.en-US.md index 06ec3c9a78..f690fd4823 100644 --- a/components/space/index.en-US.md +++ b/components/space/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Layout +type: Layout title: Space cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg -demo: - cols: 2 --- Set components spacing. @@ -25,18 +23,6 @@ Avoid components clinging together and set a unified space. Flex gap style Split -## Examples - -Basic Usage -Vertical Space -Space Size -Align -Customize Size -Wrap -Diverse Child -Flex gap style -Split - ## API | Property | Description | Type | Default | Version | diff --git a/components/space/index.zh-CN.md b/components/space/index.zh-CN.md index e929f5c0f4..9ff49219ea 100644 --- a/components/space/index.zh-CN.md +++ b/components/space/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 布局 +type: 布局 subtitle: 间距 title: Space cover: https://gw.alipayobjects.com/zos/antfincdn/wc6%263gJ0Y8/Space.svg -demo: - cols: 2 --- 设置组件之间的间距。 @@ -29,18 +27,6 @@ demo: Flex gap 样式 分隔符 -## 代码演示 - -基本用法 -垂直间距 -间距大小 -对齐 -自定义尺寸 -自动换行 -多样的 Child -Flex gap 样式 -分隔符 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/components/spin/index.en-US.md b/components/spin/index.en-US.md index 51dfc5f1bf..47b321a05b 100644 --- a/components/spin/index.en-US.md +++ b/components/spin/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Feedback +type: Feedback title: Spin cover: https://gw.alipayobjects.com/zos/alicdn/LBcJqCPRv/Spin.svg -demo: - cols: 2 demo: cols: 2 --- @@ -25,16 +23,6 @@ When part of the page is waiting for asynchronous data or during a rendering pro delay Custom spinning indicator -## Examples - -basic Usage -Size -Inside a container -Embedded mode -Customized description -delay -Custom spinning indicator - ## API | Property | Description | Type | Default | diff --git a/components/spin/index.zh-CN.md b/components/spin/index.zh-CN.md index 8d31e0c708..7f38611de3 100644 --- a/components/spin/index.zh-CN.md +++ b/components/spin/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 反馈 +type: 反馈 title: Spin subtitle: 加载中 cover: https://gw.alipayobjects.com/zos/alicdn/LBcJqCPRv/Spin.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,16 +24,6 @@ demo: 延迟 自定义指示符 -## 代码演示 - -基本用法 -各种大小 -容器 -卡片加载中 -自定义描述文案 -延迟 -自定义指示符 - ## API | 参数 | 说明 | 类型 | 默认值 | diff --git a/components/statistic/index.en-US.md b/components/statistic/index.en-US.md index b5ecd8eaab..7409b2d07b 100644 --- a/components/statistic/index.en-US.md +++ b/components/statistic/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Statistic cover: https://gw.alipayobjects.com/zos/antfincdn/rcBNhLBrKbE/Statistic.svg -demo: - cols: 2 demo: cols: 2 --- @@ -23,13 +21,6 @@ Display statistic number. In Card Countdown -## Examples - -Basic -Unit -In Card -Countdown - ## API #### Statistic diff --git a/components/statistic/index.zh-CN.md b/components/statistic/index.zh-CN.md index 2b09fbbf58..c52779c8db 100644 --- a/components/statistic/index.zh-CN.md +++ b/components/statistic/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 统计数值 -group: 数据展示 +type: 数据展示 title: Statistic cover: https://gw.alipayobjects.com/zos/antfincdn/rcBNhLBrKbE/Statistic.svg -demo: - cols: 2 demo: cols: 2 --- @@ -24,13 +22,6 @@ demo: 在卡片中使用 倒计时 -## 代码演示 - -基本 -单位 -在卡片中使用 -倒计时 - ## API #### Statistic diff --git a/components/steps/index.en-US.md b/components/steps/index.en-US.md index b75cf4e6e9..af7f01e35a 100644 --- a/components/steps/index.en-US.md +++ b/components/steps/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Navigation +type: Navigation title: Steps cover: https://gw.alipayobjects.com/zos/antfincdn/UZYqMizXHaj/Steps.svg -demo: - cols: 2 --- `Steps` is a navigation bar that guides users through the steps of a task. @@ -15,25 +13,6 @@ When a given task is complicated or has a certain sequence in the series of subt ## Examples -Basic -Mini version -With icon -Switch Step -Vertical -Vertical mini version -Error status -Dot Style -Customized Dot Style -Dot Style Size Small -Clickable -Navigation Steps -Steps with progress -Label Placement -Progress Debug -Steps inside Steps - -## Examples - Basic Basic Mini version diff --git a/components/steps/index.zh-CN.md b/components/steps/index.zh-CN.md index af2b5abb60..3a6c701e39 100644 --- a/components/steps/index.zh-CN.md +++ b/components/steps/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 步骤条 -group: 导航 +type: 导航 title: Steps cover: https://gw.alipayobjects.com/zos/antfincdn/UZYqMizXHaj/Steps.svg -demo: - cols: 2 --- 引导用户按照流程完成任务的导航条。 @@ -14,25 +12,6 @@ demo: 当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。 -## 代码演示 - -基本用法 -迷你版 -带图标的步骤条 -步骤切换 -竖直方向的步骤条 -竖直方向的小型步骤条 -步骤运行错误 -点状步骤条 -自定义点状步骤条 -迷你版点状步骤条 -可点击 -导航步骤 -带有进度的步骤 -标签放置位置 -Progress Debug -Steps 嵌套 Steps - ### 4.24.0 用法升级 ```__react @@ -53,8 +32,6 @@ return ; ; ``` -## API - ### Steps 整体步骤条。 diff --git a/components/switch/index.en-US.md b/components/switch/index.en-US.md index 4288271961..ae4fa1a6e9 100644 --- a/components/switch/index.en-US.md +++ b/components/switch/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Switch cover: https://gw.alipayobjects.com/zos/alicdn/zNdJQMhfm/Switch.svg -demo: - cols: 2 demo: cols: 2 --- @@ -24,14 +22,6 @@ Switching Selector. Two sizes Loading -## Examples - -Basic -Disabled -Text & icon -Two sizes -Loading - ## API | Property | Description | Type | Default | diff --git a/components/switch/index.zh-CN.md b/components/switch/index.zh-CN.md index 24bf2c2d61..6a9345990c 100644 --- a/components/switch/index.zh-CN.md +++ b/components/switch/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 开关 -group: 数据录入 +type: 数据录入 title: Switch cover: https://gw.alipayobjects.com/zos/alicdn/zNdJQMhfm/Switch.svg -demo: - cols: 2 demo: cols: 2 --- @@ -25,14 +23,6 @@ demo: 两种大小 加载中 -## 代码演示 - -基本 -不可用 -文字和图标 -两种大小 -加载中 - ## API | 参数 | 说明 | 类型 | 默认值 | diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index d4d1b5df87..6269da81d7 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Table cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg -demo: - cols: 2 --- A table displays rows of data. @@ -104,49 +102,6 @@ const columns = [ Fixed header and scroll bar with the page Dynamic Settings -## Examples - -Basic Usage -JSX style API -selection -Selection and operation -Custom selection -Filter and sorter -Filter in Tree -Filter search -Multiple sorter -Reset filters and sorters -Customized filter panel -Ajax -size -size -border, title and footer -Expandable Row -Order Specific Column -colSpan and rowSpan -Tree data -Tree data ellipsis debug demo -Fixed Header -Fixed Columns -Fixed Columns and Header -Grouping table head -Editable Cells -Editable Rows -Nested tables -Drag sorting -Drag sorting with handler -Resizable column -ellipsis column -ellipsis column custom tooltip -Summary -Virtual list -Responsive -Nested Bordered Table Debug -Pagination Settings -Custom selection group -Fixed header and scroll bar with the page -Dynamic Settings - ## API ### Table diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index 85e02aea90..6da170d631 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: Table subtitle: 表格 cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg -demo: - cols: 2 --- 展示行列数据。 @@ -105,49 +103,6 @@ const columns = [ 随页面滚动的固定表头和滚动条 动态控制表格属性 -## 代码演示 - -基本用法 -JSX 风格的 API -可选择 -选择和操作 -自定义选择项 -筛选和排序 -树型筛选菜单 -自定义筛选的搜索 -多列排序 -可控的筛选和排序 -自定义筛选菜单 -远程加载数据 -紧凑型 -紧凑型 -带边框 -可展开 -特殊列排序 -表格行/列合并 -树形数据展示 -树形数据省略情况测试 -固定表头 -固定列 -固定头和列 -表头分组 -可编辑单元格 -可编辑行 -嵌套子表格 -拖拽排序 -拖拽手柄列 -可伸缩列 -单元格自动省略 -自定义单元格省略提示 -总结栏 -虚拟列表 -响应式 -嵌套带边框的表格 Debug -分页设置 -自定义选择项组 -随页面滚动的固定表头和滚动条 -动态控制表格属性 - ## API ### Table diff --git a/components/tabs/index.en-US.md b/components/tabs/index.en-US.md index 631598a48a..cb097dce79 100644 --- a/components/tabs/index.en-US.md +++ b/components/tabs/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: 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. @@ -63,26 +61,6 @@ return ; Animated Nest -## Examples - -Basic usage (deprecated syntactic sugar) -Basic -Disabled -Centered -Icon -Slide -Extra content -Size -Position -Card type tab -Add & close tab -Container of card type Tab -Customized trigger of new tab -Customized bar of tab -Draggable Tabs -Animated -Nest - ## API ### Tabs diff --git a/components/tabs/index.zh-CN.md b/components/tabs/index.zh-CN.md index 7f29940b36..4070a2f79e 100644 --- a/components/tabs/index.zh-CN.md +++ b/components/tabs/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 标签页 -group: 数据展示 +type: 数据展示 title: Tabs cover: https://gw.alipayobjects.com/zos/antfincdn/lkI2hNEDr2V/Tabs.svg -demo: - cols: 2 --- 选项卡切换组件。 @@ -66,26 +64,6 @@ return ; 动画 嵌套 -## 代码演示 - -基础用法(废弃的语法糖) -基本 -禁用 -居中 -图标 -滑动 -附加内容 -大小 -位置 -卡片式页签 -新增和关闭页签 -卡片式页签容器 -自定义新增页签触发器 -自定义页签头 -可拖拽标签 -动画 -嵌套 - ## API ### Tabs diff --git a/components/tag/index.en-US.md b/components/tag/index.en-US.md index d31517830b..5a358d24a0 100644 --- a/components/tag/index.en-US.md +++ b/components/tag/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Tag cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,18 +27,6 @@ Tag for categorizing or markup. Status Tag Customize close -## Examples - -Basic -Colorful Tag -Inverse Colorful Tag -Add & Remove Dynamically -Checkable -Animate -Icon -Status Tag -Customize close - ## API ### Tag diff --git a/components/tag/index.zh-CN.md b/components/tag/index.zh-CN.md index dbd2c6562f..2b9df1c505 100644 --- a/components/tag/index.zh-CN.md +++ b/components/tag/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 标签 -group: 数据展示 +type: 数据展示 title: Tag cover: https://gw.alipayobjects.com/zos/alicdn/cH1BOLfxC/Tag.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,18 +27,6 @@ demo: 预设状态的标签 自定义关闭按钮 -## 代码演示 - -基本 -多彩标签 -反色多彩标签 -动态添加和删除 -可选择标签 -添加动画 -图标按钮 -预设状态的标签 -自定义关闭按钮 - ## API ### Tag diff --git a/components/time-picker/index.en-US.md b/components/time-picker/index.en-US.md index cf435fd037..10d6d754d2 100644 --- a/components/time-picker/index.en-US.md +++ b/components/time-picker/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: TimePicker cover: https://gw.alipayobjects.com/zos/alicdn/h04Zsl98I/TimePicker.svg -demo: - cols: 2 demo: cols: 2 --- @@ -34,23 +32,6 @@ By clicking the input box, you can select a time from a popup panel. Suffix \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Under Control -Three Sizes -disabled -Hour and minute -interval option -Addon -12 hours -Colored Popup -Time Range Picker -Bordered-less -Status -Suffix -\_InternalPanelDoNotUseOrYouWillBeFired - ## API --- diff --git a/components/time-picker/index.zh-CN.md b/components/time-picker/index.zh-CN.md index e15b792c93..24067e0609 100644 --- a/components/time-picker/index.zh-CN.md +++ b/components/time-picker/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 时间选择框 -group: 数据录入 +type: 数据录入 title: TimePicker cover: https://gw.alipayobjects.com/zos/alicdn/h04Zsl98I/TimePicker.svg -demo: - cols: 2 demo: cols: 2 --- @@ -35,23 +33,6 @@ demo: 后缀图标 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -受控组件 -三种大小 -禁用 -选择时分 -步长选项 -附加内容 -12 小时制 -色付きポップアップ -范围选择器 -无边框 -自定义状态 -后缀图标 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API --- diff --git a/components/timeline/index.en-US.md b/components/timeline/index.en-US.md index f49b70f449..a92acdf895 100644 --- a/components/timeline/index.en-US.md +++ b/components/timeline/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Timeline cover: https://gw.alipayobjects.com/zos/antfincdn/vJmo00mmgR/Timeline.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,16 +24,6 @@ Vertical display timeline. Right alternate Label -## Examples - -Basic -Color -Last node and Reversing -Alternate -Custom -Right alternate -Label - ## API ```jsx diff --git a/components/timeline/index.zh-CN.md b/components/timeline/index.zh-CN.md index 1c0b50a1e1..714cee4068 100644 --- a/components/timeline/index.zh-CN.md +++ b/components/timeline/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 时间轴 -group: 数据展示 +type: 数据展示 title: Timeline cover: https://gw.alipayobjects.com/zos/antfincdn/vJmo00mmgR/Timeline.svg -demo: - cols: 2 demo: cols: 2 --- @@ -27,16 +25,6 @@ demo: 右侧时间轴点 标签 -## 代码演示 - -基本用法 -圆圈颜色 -最后一个及排序 -交替展现 -自定义时间轴点 -右侧时间轴点 -标签 - ## API ```jsx diff --git a/components/tooltip/index.en-US.md b/components/tooltip/index.en-US.md index 16a0d38a75..8fa12e1fff 100644 --- a/components/tooltip/index.en-US.md +++ b/components/tooltip/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Tooltip cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg -demo: - cols: 2 demo: cols: 2 --- @@ -26,16 +24,6 @@ A simple text popup tip. Colorful Tooltip \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Placement -Arrow pointing at the center -Adjust placement automatically -Destroy tooltip when hidden -Colorful Tooltip -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | Property | Description | Type | Default | diff --git a/components/tooltip/index.zh-CN.md b/components/tooltip/index.zh-CN.md index d18d712900..604e87c10b 100644 --- a/components/tooltip/index.zh-CN.md +++ b/components/tooltip/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 文字提示 -group: 数据展示 +type: 数据展示 title: Tooltip cover: https://gw.alipayobjects.com/zos/alicdn/Vyyeu8jq2/Tooltp.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,16 +26,6 @@ demo: 多彩文字提示 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -位置 -箭头指向 -自动调整位置 -隐藏后销毁 -多彩文字提示 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API | 参数 | 说明 | 类型 | 默认值 | diff --git a/components/transfer/index.en-US.md b/components/transfer/index.en-US.md index 686c8cf3d4..d0548ac9b4 100644 --- a/components/transfer/index.en-US.md +++ b/components/transfer/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Transfer cover: https://gw.alipayobjects.com/zos/alicdn/QAXskNI4G/Transfer.svg -demo: - cols: 2 --- Double column transfer choice box. @@ -31,19 +29,6 @@ One or more elements can be selected from either column, one click on the proper Status Custom Select All Labels -## Examples - -Basic -One Way -Search -Advanced -Custom datasource -Pagination -Table Transfer -Tree Transfer -Status -Custom Select All Labels - ## API | Property | Description | Type | Default | Version | diff --git a/components/transfer/index.zh-CN.md b/components/transfer/index.zh-CN.md index 081e9d15ce..a2a762c393 100644 --- a/components/transfer/index.zh-CN.md +++ b/components/transfer/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 穿梭框 -group: 数据录入 +type: 数据录入 title: Transfer cover: https://gw.alipayobjects.com/zos/alicdn/QAXskNI4G/Transfer.svg -demo: - cols: 2 --- 双栏穿梭选择框。 @@ -32,19 +30,6 @@ demo: 自定义状态 自定义全选文字 -## 代码演示 - -基本用法 -单向样式 -带搜索框 -高级用法 -自定义渲染行数据 -分页 -表格穿梭框 -树穿梭框 -自定义状态 -自定义全选文字 - ## API ### Transfer diff --git a/components/tree-select/index.en-US.md b/components/tree-select/index.en-US.md index 6d85b7cf94..84f666a8c2 100644 --- a/components/tree-select/index.en-US.md +++ b/components/tree-select/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: TreeSelect cover: https://gw.alipayobjects.com/zos/alicdn/Ax4DA0njr/TreeSelect.svg -demo: - cols: 2 demo: cols: 2 --- @@ -28,19 +26,6 @@ Tree selection control. Suffix \_InternalPanelDoNotUseOrYouWillBeFired -## Examples - -Basic -Multiple Selection -Generate from tree data -Checkable -Asynchronous loading -Show Tree Line -Placement -Status -Suffix -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ### Tree props diff --git a/components/tree-select/index.zh-CN.md b/components/tree-select/index.zh-CN.md index b4626e6e63..d65c06bd54 100644 --- a/components/tree-select/index.zh-CN.md +++ b/components/tree-select/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 树选择 -group: 数据录入 +type: 数据录入 title: TreeSelect cover: https://gw.alipayobjects.com/zos/alicdn/Ax4DA0njr/TreeSelect.svg -demo: - cols: 2 demo: cols: 2 --- @@ -29,19 +27,6 @@ demo: 后缀图标 \_InternalPanelDoNotUseOrYouWillBeFired -## 代码演示 - -基本 -多选 -从数据直接生成 -可勾选 -异步加载 -线性样式 -弹出位置 -自定义状态 -后缀图标 -\_InternalPanelDoNotUseOrYouWillBeFired - ## API ### Tree props diff --git a/components/tree/index.en-US.md b/components/tree/index.en-US.md index cb78ccb26f..9539627f06 100644 --- a/components/tree/index.en-US.md +++ b/components/tree/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Display +type: Data Display title: Tree cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg -demo: - cols: 2 demo: cols: 2 --- @@ -30,21 +28,6 @@ Almost anything can be represented in a tree structure. Examples include directo Drag Debug Big data -## Examples - -Basic -Controlled Tree -draggable -load data asynchronously -Searchable -Tree with line -Customize Icon -directory -Customize collapse/expand icon -Virtual scroll -Drag Debug -Big data - ## API ### Tree props diff --git a/components/tree/index.zh-CN.md b/components/tree/index.zh-CN.md index 0f7b3a9b97..01efd9ef6f 100644 --- a/components/tree/index.zh-CN.md +++ b/components/tree/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components -group: 数据展示 +type: 数据展示 title: Tree subtitle: 树形控件 cover: https://gw.alipayobjects.com/zos/alicdn/Xh-oWqg9k/Tree.svg -demo: - cols: 2 demo: cols: 2 --- @@ -31,21 +29,6 @@ demo: Drag Debug 大数据 -## 代码演示 - -基本 -受控操作示例 -拖动示例 -异步数据加载 -可搜索 -连接线 -自定义图标 -目录 -自定义展开/折叠图标 -虚拟滚动 -Drag Debug -大数据 - ## API ### Tree props diff --git a/components/typography/index.en-US.md b/components/typography/index.en-US.md index 57232b26d2..5cb680eab7 100644 --- a/components/typography/index.en-US.md +++ b/components/typography/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: General +type: General title: Typography cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg -demo: - cols: 2 --- Basic text writing, including headings, body text, lists, and more. @@ -26,18 +24,6 @@ Basic text writing, including headings, body text, lists, and more. Ellipsis Debug suffix -## Examples - -Basic -Title Component -Title and Paragraph -Text and Link Component -Interactive -Ellipsis -Ellipsis from middle -Ellipsis Debug -suffix - ## API ### Typography.Text diff --git a/components/typography/index.zh-CN.md b/components/typography/index.zh-CN.md index 9ee7b29727..730c078548 100644 --- a/components/typography/index.zh-CN.md +++ b/components/typography/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 排版 -group: 通用 +type: 通用 title: Typography cover: https://gw.alipayobjects.com/zos/alicdn/GOM1KQ24O/Typography.svg -demo: - cols: 2 --- 文本的基本格式。 @@ -27,18 +25,6 @@ demo: 省略号 Debug 后缀 -## 代码演示 - -基本 -标题组件 -标题与段落 -文本与超链接组件 -可交互 -省略号 -省略中间 -省略号 Debug -后缀 - ## API ### Typography.Text diff --git a/components/upload/index.en-US.md b/components/upload/index.en-US.md index 0967ae43ea..fe6f128dee 100644 --- a/components/upload/index.en-US.md +++ b/components/upload/index.en-US.md @@ -1,10 +1,8 @@ --- category: Components -group: Data Entry +type: Data Entry title: Upload cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg -demo: - cols: 2 demo: cols: 2 --- @@ -41,28 +39,6 @@ Uploading is the process of publishing information (web pages, text, pictures, v Crop image before uploading Customize Progress Bar -## Examples - -Upload by clicking -Avatar -Default Files -Pictures Wall -Complete control over file list -Drag and Drop -Upload directory -Upload manually -Upload png file only -Pictures with list style -Customize preview file -Max Count -Transform file before request -Aliyun OSS -custom show icon -custom action icon -Drag sorting of uploadList -Crop image before uploading -Customize Progress Bar - ## API | Property | Description | Type | Default | Version | diff --git a/components/upload/index.zh-CN.md b/components/upload/index.zh-CN.md index 25533e25ce..b9a3dd8239 100644 --- a/components/upload/index.zh-CN.md +++ b/components/upload/index.zh-CN.md @@ -1,11 +1,9 @@ --- category: Components subtitle: 上传 -group: 数据录入 +type: 数据录入 title: Upload cover: https://gw.alipayobjects.com/zos/alicdn/QaeBt_ZMg/Upload.svg -demo: - cols: 2 demo: cols: 2 --- @@ -42,28 +40,6 @@ demo: 上传前裁切图片 自定义进度条样式 -## 代码演示 - -点击上传 -用户头像 -已上传的文件列表 -照片墙 -完全控制的上传列表 -拖拽上传 -文件夹上传 -手动上传 -只上传 png 图片 -图片列表样式 -自定义预览 -限制数量 -上传前转换文件 -阿里云 OSS -自定义显示 icon -自定义交互图标 -上传列表拖拽排序 -上传前裁切图片 -自定义进度条样式 - ## API | 参数 | 说明 | 类型 | 默认值 | 版本 | diff --git a/scripts/migrate.js b/scripts/migrate.js index bcf2cdd002..91cbafd3e7 100644 --- a/scripts/migrate.js +++ b/scripts/migrate.js @@ -7,10 +7,14 @@ const yaml = require('dumi/node_modules/js-yaml'); const tmpFolder = `~demo`; if (fs.existsSync(tmpFolder)) { - console.log('存在 ~demo 文件夹,先做迁移'); - let fileCount = 0; + let demoFileCount = 0; + let apiFileCount = 0; + + const files = glob + .sync(path.join(tmpFolder, `components/**`)) + .filter(file => file.endsWith('.md')); + console.log('存在 ~demo 文件夹,先做迁移', files.length, '个文件'); - const files = glob.sync(path.join(tmpFolder, `components/**`)); files.forEach(file => { const filePath = file.split(path.sep).splice(1).join(path.sep); if (fs.statSync(filePath).isDirectory()) { @@ -23,10 +27,15 @@ if (fs.existsSync(tmpFolder)) { fs.ensureDirSync(path.dirname(filePath)); fs.copyFileSync(file, filePath); - fileCount += 1; + + if (filePath.includes('demo')) { + demoFileCount += 1; + } else { + apiFileCount += 1; + } }); - console.log('迁移完成,共迁移文件数:', fileCount); + console.log('迁移完成,共迁移文件数:', apiFileCount, '个介绍文档', demoFileCount, '个 demo'); } // 重新生成所有的 Demo 文件