From eef66b153a9c2b29ae942b430148b2e675a3def4 Mon Sep 17 00:00:00 2001
From: tangjinzhou <415800467@qq.com>
Date: Thu, 10 Mar 2022 21:50:27 +0800
Subject: [PATCH] doc: sort api
---
.gitignore | 1 +
components/affix/index.zh-CN.md | 2 +-
components/alert/index.en-US.md | 2 +-
components/alert/index.zh-CN.md | 2 +-
components/anchor/index.en-US.md | 10 +--
components/anchor/index.zh-CN.md | 10 +--
components/auto-complete/index.en-US.md | 24 +++----
components/auto-complete/index.zh-CN.md | 28 ++++----
components/avatar/index.en-US.md | 18 ++---
components/avatar/index.zh-CN.md | 16 ++---
components/badge/index.zh-CN.md | 2 +-
components/breadcrumb/index.en-US.md | 2 +-
components/breadcrumb/index.zh-CN.md | 2 +-
components/calendar/index.en-US.md | 8 +--
components/calendar/index.zh-CN.md | 6 +-
components/card/index.en-US.md | 16 ++---
components/card/index.zh-CN.md | 16 ++---
components/carousel/index.en-US.md | 2 +-
components/cascader/index.en-US.md | 24 +++----
components/cascader/index.zh-CN.md | 24 +++----
components/checkbox/index.zh-CN.md | 4 +-
components/collapse/index.en-US.md | 8 +--
components/collapse/index.zh-CN.md | 8 +--
components/color-picker/index.en-US.md | 24 +++----
components/color-picker/index.zh-CN.md | 24 +++----
components/config-provider/index.en-US.md | 6 +-
components/config-provider/index.zh-CN.md | 4 +-
components/date-picker/index.en-US.md | 12 ++--
components/date-picker/index.zh-CN.md | 16 ++---
components/descriptions/index.en-US.md | 26 +++----
components/descriptions/index.zh-CN.md | 26 +++----
components/divider/index.en-US.md | 4 +-
components/divider/index.zh-CN.md | 4 +-
components/dropdown/index.en-US.md | 20 +++---
components/dropdown/index.zh-CN.md | 20 +++---
components/empty/index.en-US.md | 2 +-
components/empty/index.zh-CN.md | 2 +-
components/form/index.en-US.md | 56 ++++++++--------
components/form/index.zh-CN.md | 50 +++++++-------
components/grid/index.en-US.md | 2 +-
components/grid/index.zh-CN.md | 2 +-
components/icon/index.en-US.md | 18 ++---
components/icon/index.zh-CN.md | 18 ++---
components/input-number/index.en-US.md | 36 +++++-----
components/input-number/index.zh-CN.md | 18 ++---
components/input/index.en-US.md | 30 ++++-----
components/input/index.zh-CN.md | 20 +++---
components/layout/index.en-US.md | 6 +-
components/layout/index.zh-CN.md | 6 +-
components/list/index.en-US.md | 30 ++++-----
components/list/index.zh-CN.md | 36 +++++-----
components/mentions/index.en-US.md | 4 +-
components/mentions/index.zh-CN.md | 4 +-
components/menu/index.en-US.md | 8 +--
components/menu/index.zh-CN.md | 10 +--
components/message/index.en-US.md | 6 +-
components/message/index.zh-CN.md | 14 ++--
components/modal/index.en-US.md | 16 ++---
components/modal/index.zh-CN.md | 18 ++---
components/notification/index.en-US.md | 10 +--
components/notification/index.zh-CN.md | 16 ++---
components/page-header/index.en-US.md | 10 +--
components/page-header/index.zh-CN.md | 10 +--
components/pagination/index.en-US.md | 4 +-
components/pagination/index.zh-CN.md | 4 +-
components/popconfirm/index.en-US.md | 14 ++--
components/popconfirm/index.zh-CN.md | 12 ++--
components/progress/index.en-US.md | 2 +-
components/progress/index.zh-CN.md | 2 +-
components/rate/index.en-US.md | 2 +-
components/rate/index.zh-CN.md | 2 +-
components/result/index.en-US.md | 14 ++--
components/result/index.zh-CN.md | 14 ++--
components/select/index.en-US.md | 26 +++----
components/select/index.zh-CN.md | 24 +++----
components/skeleton/index.en-US.md | 4 +-
components/skeleton/index.zh-CN.md | 4 +-
components/slider/index.en-US.md | 14 ++--
components/slider/index.zh-CN.md | 12 ++--
components/statistic/index.en-US.md | 2 +-
components/steps/index.en-US.md | 12 ++--
components/steps/index.zh-CN.md | 12 ++--
components/switch/index.en-US.md | 4 +-
components/switch/index.zh-CN.md | 8 +--
components/table/index.en-US.md | 62 ++++++++---------
components/table/index.zh-CN.md | 62 ++++++++---------
components/tabs/index.en-US.md | 12 ++--
components/tabs/index.zh-CN.md | 32 ++++-----
components/timeline/index.en-US.md | 4 +-
components/timeline/index.zh-CN.md | 4 +-
components/tooltip/index.en-US.md | 6 +-
components/tooltip/index.zh-CN.md | 4 +-
components/transfer/index.en-US.md | 20 +++---
components/transfer/index.zh-CN.md | 20 +++---
components/tree-select/index.en-US.md | 82 +++++++++++------------
components/tree-select/index.zh-CN.md | 82 +++++++++++------------
components/tree/index.en-US.md | 10 +--
components/tree/index.zh-CN.md | 48 ++++++-------
components/typography/index.en-US.md | 18 ++---
components/typography/index.zh-CN.md | 18 ++---
components/upload/index.en-US.md | 65 +++++++++---------
components/upload/index.zh-CN.md | 65 +++++++++---------
package.json | 2 +-
103 files changed, 845 insertions(+), 842 deletions(-)
diff --git a/.gitignore b/.gitignore
index a34900353..c57a39388 100644
--- a/.gitignore
+++ b/.gitignore
@@ -78,3 +78,4 @@ report.html
site/src/router/demoRoutes.js
components/version/version.tsx
+~component-api.json
diff --git a/components/affix/index.zh-CN.md b/components/affix/index.zh-CN.md
index 1dad5ed64..daddfa00b 100644
--- a/components/affix/index.zh-CN.md
+++ b/components/affix/index.zh-CN.md
@@ -24,7 +24,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/tX6-md4H6/Affix.svg
### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| -------- | ---------------------------- | --------------------------- | ---- | --- |
| change | 固定状态改变时触发的回调函数 | (affixed?: boolean) => void | - | |
diff --git a/components/alert/index.en-US.md b/components/alert/index.en-US.md
index b342e7a54..798566acb 100644
--- a/components/alert/index.en-US.md
+++ b/components/alert/index.en-US.md
@@ -19,8 +19,8 @@ Alert component for feedback.
| afterClose | Called when close animation is finished | () => void | - | |
| banner | Whether to show as banner | boolean | false | |
| closable | Whether Alert can be closed | boolean | | |
-| closeText | Close text to show | string\|slot | - | |
| closeIcon | Custom close icon | slot | | 3.0 |
+| closeText | Close text to show | string\|slot | - | |
| description | Additional content of Alert | string\|slot | - | |
| icon | Custom icon, effective when `showIcon` is `true` | vnode \| slot | - | |
| message | Content of Alert | string\|slot | - | |
diff --git a/components/alert/index.zh-CN.md b/components/alert/index.zh-CN.md
index 80c6e16cd..f754d25a8 100644
--- a/components/alert/index.zh-CN.md
+++ b/components/alert/index.zh-CN.md
@@ -20,8 +20,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/8emPa3fjl/Alert.svg
| afterClose | 关闭动画结束后触发的回调函数 | () => void | - | |
| banner | 是否用作顶部公告 | boolean | false | |
| closable | 默认不显示关闭按钮 | boolean | 无 | |
-| closeText | 自定义关闭按钮 | string\|slot | 无 | |
| closeIcon | 自定义关闭 Icon | slot | | 3.0 |
+| closeText | 自定义关闭按钮 | string\|slot | 无 | |
| description | 警告提示的辅助性文字介绍 | string\|slot | 无 | |
| icon | 自定义图标,`showIcon` 为 `true` 时有效 | vnode\|slot | - | |
| message | 警告提示内容 | string\|slot | 无 | |
diff --git a/components/anchor/index.en-US.md b/components/anchor/index.en-US.md
index 5efcf2b54..2bb20a28e 100644
--- a/components/anchor/index.en-US.md
+++ b/components/anchor/index.en-US.md
@@ -21,25 +21,25 @@ For displaying anchor hyperlinks on page and jumping between them.
| affix | Fixed mode of Anchor | boolean | true | |
| bounds | Bounding distance of anchor area | number | 5(px) | |
| getContainer | Scrolling container | () => HTMLElement | () => window | |
+| getCurrentAnchor | Customize the anchor highlight | () => string | - | 1.5.0 |
| offsetBottom | Pixels to offset from bottom when calculating position of scroll | number | - | |
| offsetTop | Pixels to offset from top when calculating position of scroll | number | 0 | |
| showInkInFixed | Whether show ink-balls when `:affix="false"` | boolean | false | |
+| targetOffset | Anchor scroll offset, default as `offsetTop`, [example](#components-anchor-demo-targetOffset) | number | `offsetTop` | 1.5.0 |
| wrapperClass | The class name of the container | string | - | |
| wrapperStyle | The style of the container | object | - | |
-| getCurrentAnchor | Customize the anchor highlight | () => string | - | 1.5.0 |
-| targetOffset | Anchor scroll offset, default as `offsetTop`, [example](#components-anchor-demo-targetOffset) | number | `offsetTop` | 1.5.0 |
### Events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| --- | --- | --- | --- | --- |
-| click | set the handler to handle `click` event | Function(e: Event, link: Object) | |
| change | Listening for anchor link change | (currentActiveLink: string) => void | | 1.5.0 |
+| click | set the handler to handle `click` event | Function(e: Event, link: Object) | | |
### Link Props
| Property | Description | Type | Default | Version |
| -------- | ----------------------------------------- | ------------ | ------- | ------- |
| href | target of hyperlink | string | | |
-| title | content of hyperlink | string\|slot | | |
| target | Specifies where to display the linked URL | string | | 1.5.0 |
+| title | content of hyperlink | string\|slot | | |
diff --git a/components/anchor/index.zh-CN.md b/components/anchor/index.zh-CN.md
index 817c757b8..309dc9faf 100644
--- a/components/anchor/index.zh-CN.md
+++ b/components/anchor/index.zh-CN.md
@@ -22,25 +22,25 @@ cover: https://gw.alipayobjects.com/zos/alicdn/_1-C1JwsC/Anchor.svg
| affix | 固定模式 | boolean | true | |
| bounds | 锚点区域边界 | number | 5(px) | |
| getContainer | 指定滚动的容器 | () => HTMLElement | () => window | |
+| getCurrentAnchor | 自定义高亮的锚点 | () => string | - | 1.5.0 |
| offsetBottom | 距离窗口底部达到指定偏移量后触发 | number | | |
| offsetTop | 距离窗口顶部达到指定偏移量后触发 | number | | |
| showInkInFixed | `:affix="false"` 时是否显示小圆点 | boolean | false | |
+| targetOffset | 锚点滚动偏移量,默认与 offsetTop 相同,[例子](#components-anchor-demo-targetOffset) | number | `offsetTop` | 1.5.0 |
| wrapperClass | 容器的类名 | string | - | |
| wrapperStyle | 容器样式 | object | - | |
-| getCurrentAnchor | 自定义高亮的锚点 | () => string | - | 1.5.0 |
-| targetOffset | 锚点滚动偏移量,默认与 offsetTop 相同,[例子](#components-anchor-demo-targetOffset) | number | `offsetTop` | 1.5.0 |
### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| -------- | ---------------------- | ----------------------------------- | ---- | ----- |
-| click | `click` 事件的 handler | Function(e: Event, link: Object) | |
| change | 监听锚点链接改变 | (currentActiveLink: string) => void | | 1.5.0 |
+| click | `click` 事件的 handler | Function(e: Event, link: Object) | | |
### Link Props
| 成员 | 说明 | 类型 | 默认值 | 版本 |
| ------ | -------------------------------- | ------------ | ------ | ----- |
| href | 锚点链接 | string | | |
-| title | 文字内容 | string\|slot | | |
| target | 该属性指定在何处显示链接的资源。 | string | | 1.5.0 |
+| title | 文字内容 | string\|slot | | |
diff --git a/components/auto-complete/index.en-US.md b/components/auto-complete/index.en-US.md
index dffc49f38..f3dc388e9 100644
--- a/components/auto-complete/index.en-US.md
+++ b/components/auto-complete/index.en-US.md
@@ -26,32 +26,32 @@ The differences with Select are:
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
+| #default (for customize input element) | customize input element | HTMLInputElement / HTMLTextAreaElement | `` | |
| allowClear | Show clear button, effective in multiple mode only. | boolean | false | |
| autofocus | get focus when component mounted | boolean | false | |
| backfill | backfill selected item the input when using keyboard | boolean | false | |
-| #default (for customize input element) | customize input element | HTMLInputElement / HTMLTextAreaElement | `` | |
-| options | Data source for autocomplete | [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | |
-| option | custom render option by slot | v-slot:option="{value, label, [disabled, key, title]}" | - | 3.0 |
-| dropdownMenuStyle | additional style applied to dropdown menu | object | | 1.5.0 |
| defaultActiveFirstOption | Whether active first option by default | boolean | true | |
+| defaultOpen | Initial open state of dropdown | boolean | - | |
| disabled | Whether disabled select | boolean | false | |
| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. Will ignore when value less than select width. `false` will disable virtual scroll | boolean \| number | true | |
+| dropdownMenuStyle | additional style applied to dropdown menu | object | | 1.5.0 |
| filterOption | If true, filter options by input, if function, filter options against it. The function will receive two arguments, `inputValue` and `option`, if the function returns `true`, the option will be included in the filtered set; Otherwise, it will be excluded. | boolean or function(inputValue, option) | true | |
+| open | Controlled open state of dropdown | boolean | - | |
+| option | custom render option by slot | v-slot:option="{value, label, [disabled, key, title]}" | - | 3.0 |
+| options | Data source for autocomplete | [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | |
| placeholder | placeholder of input | string | - | |
| v-model:value | selected option | string\|string\[]\|{ key: string, label: string\|vNodes }\|Array<{ key: string, label: string\|vNodes }> | - | |
-| defaultOpen | Initial open state of dropdown | boolean | - | |
-| open | Controlled open state of dropdown | boolean | - | |
### events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| --- | --- | --- | --- | --- |
-| change | Called when select an option or input value change, or value of input is changed | function(value) | |
-| blur | Called when leaving the component. | function() | |
-| focus | Called when entering the component | function() | |
+| blur | Called when leaving the component. | function() | | |
+| change | Called when select an option or input value change, or value of input is changed | function(value) | | |
+| dropdownVisibleChange | Call when dropdown open | function(open) | | |
+| focus | Called when entering the component | function() | | |
| search | Called when searching items. | function(value) | - | |
-| select | Called when a option is selected. param is option's value and option instance. | function(value, option) | |
-| dropdownVisibleChange | Call when dropdown open | function(open) | |
+| select | Called when a option is selected. param is option's value and option instance. | function(value, option) | | |
## Methods
diff --git a/components/auto-complete/index.zh-CN.md b/components/auto-complete/index.zh-CN.md
index 6f97591bc..a9a18e6aa 100644
--- a/components/auto-complete/index.zh-CN.md
+++ b/components/auto-complete/index.zh-CN.md
@@ -27,39 +27,39 @@ cover: https://gw.alipayobjects.com/zos/alicdn/qtJm4yt45/AutoComplete.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
+| #default (自定义输入框) | 自定义输入框 | HTMLInputElement / HTMLTextAreaElement | `` | |
| allowClear | 支持清除, 单选模式有效 | boolean | false | |
| autofocus | 自动获取焦点 | boolean | false | |
| backfill | 使用键盘选择选项的时候把选中项回填到输入框中 | boolean | false | |
-| #default (自定义输入框) | 自定义输入框 | HTMLInputElement / HTMLTextAreaElement | `` | |
-| options | 自动完成的数据源 | [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | |
-| option | 通过 option 插槽,自定义节点 | v-slot:option="{value, label, [disabled, key, title]}" | - | 3.0 |
-| dropdownMenuStyle | dropdown 菜单自定义样式 | object | | 1.5.0 |
| defaultActiveFirstOption | 是否默认高亮第一个选项。 | boolean | true | |
+| defaultOpen | 是否默认展开下拉菜单 | boolean | - | |
| disabled | 是否禁用 | boolean | false | |
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 | boolean \| number | true | |
+| dropdownMenuStyle | dropdown 菜单自定义样式 | object | | 1.5.0 |
| filterOption | 是否根据输入项进行筛选。当其为一个函数时,会接收 `inputValue` `option` 两个参数,当 `option` 符合筛选条件时,应返回 `true`,反之则返回 `false`。 | boolean or function(inputValue, option) | true | |
+| open | 是否展开下拉菜单 | boolean | - | |
+| option | 通过 option 插槽,自定义节点 | v-slot:option="{value, label, [disabled, key, title]}" | - | 3.0 |
+| options | 自动完成的数据源 | [DataSourceItemType](https://github.com/vueComponent/ant-design-vue/blob/724d53b907e577cf5880c1e6742d4c3f924f8f49/components/auto-complete/index.vue#L9)\[] | | |
| placeholder | 输入框提示 | string \| slot | - | |
| v-model:value | 指定当前选中的条目 | string\|string\[]\|{ key: string, label: string\|vNodes }\|Array<{ key: string, label: string\|vNodes }> | 无 | |
-| defaultOpen | 是否默认展开下拉菜单 | boolean | - | |
-| open | 是否展开下拉菜单 | boolean | - | |
### 事件
| 事件名称 | 说明 | 回调参数 | 版本 |
| --- | --- | --- | --- |
-| change | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) |
-| blur | 失去焦点时的回调 | function() |
-| focus | 获得焦点时的回调 | function() |
-| search | 搜索补全项的时候调用 | function(value) |
-| select | 被选中时调用,参数为选中项的 value 值 | function(value, option) |
-| dropdownVisibleChange | 展开下拉菜单的回调 | function(open) |
+| blur | 失去焦点时的回调 | function() | |
+| change | 选中 option,或 input 的 value 变化时,调用此函数 | function(value) | |
+| dropdownVisibleChange | 展开下拉菜单的回调 | function(open) | |
+| focus | 获得焦点时的回调 | function() | |
+| search | 搜索补全项的时候调用 | function(value) | |
+| select | 被选中时调用,参数为选中项的 value 值 | function(value, option) | |
## 方法
| 名称 | 描述 | 版本 |
| ------- | -------- | ---- |
-| blur() | 移除焦点 |
-| focus() | 获取焦点 |
+| blur() | 移除焦点 | |
+| focus() | 获取焦点 | |
## FAQ
diff --git a/components/avatar/index.en-US.md b/components/avatar/index.en-US.md
index fd30186ae..cdf8f23a1 100644
--- a/components/avatar/index.en-US.md
+++ b/components/avatar/index.en-US.md
@@ -13,16 +13,16 @@ Avatars can be used to represent people or objects. It supports images, `Icon`s,
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
-| icon | the `Icon` type for an icon avatar, see `Icon` Component | VNode \| slot | - |
-| shape | the shape of avatar | `circle` \| `square` | `circle` |
-| size | The size of the avatar | number \| `large` \| `small` \| `default` \| { xs: number, sm: number, ...} | `default` | 2.2.0 |
-| src | the address of the image for an image avatar | string | - |
-| srcset | a list of sources to use for different screen resolutions | string | - |
-| alt | This attribute defines the alternative text describing the image | string | - |
-| gap | Letter type unit distance between left and right sides | number | 4 | 2.2.0 |
-| draggable | Whether the picture is allowed to be dragged | boolean \| `'true'` \| `'false'` | - | 2.2.0 |
+| alt | This attribute defines the alternative text describing the image | string | - | |
| crossOrigin | CORS settings attributes | `'anonymous'` \| `'use-credentials'` \| `''` | - | 3.0 |
-| loadError | handler when img load error, return false to prevent default fallback behavior | () => boolean | - |
+| draggable | Whether the picture is allowed to be dragged | boolean \| `'true'` \| `'false'` | - | 2.2.0 |
+| gap | Letter type unit distance between left and right sides | number | 4 | 2.2.0 |
+| icon | the `Icon` type for an icon avatar, see `Icon` Component | VNode \| slot | - | |
+| loadError | handler when img load error, return false to prevent default fallback behavior | () => boolean | - | |
+| shape | the shape of avatar | `circle` \| `square` | `circle` | |
+| size | The size of the avatar | number \| `large` \| `small` \| `default` \| { xs: number, sm: number, ...} | `default` | 2.2.0 |
+| src | the address of the image for an image avatar | string | - | |
+| srcset | a list of sources to use for different screen resolutions | string | - | |
### Avatar.Group (2.2.0)
diff --git a/components/avatar/index.zh-CN.md b/components/avatar/index.zh-CN.md
index 955c6fd2a..a5a0aaff8 100644
--- a/components/avatar/index.zh-CN.md
+++ b/components/avatar/index.zh-CN.md
@@ -18,16 +18,16 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/aBcnbw68hP/Avatar.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
-| icon | 设置头像的图标类型,可设为 Icon 的 `type` 或 VNode | VNode \| slot | - |
+| alt | 图像无法显示时的替代文本 | string | - | |
+| crossOrigin | CORS 属性设置 | `'anonymous'` \| `'use-credentials'` \| `''` | - | 3.0 |
+| draggable | 图片是否允许拖动 | boolean \| `'true'` \| `'false'` | - | 2.2.0 |
+| gap | 字符类型距离左右两侧边界单位像素 | number | 4 | 2.2.0 |
+| icon | 设置头像的图标类型,可设为 Icon 的 `type` 或 VNode | VNode \| slot | - | |
+| loadError | 图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为 | () => boolean | - | |
| shape | 指定头像的形状 | `circle` \| `square` | `circle` | |
| size | 设置头像的大小 | number \| `large` \| `small` \| `default` \| { xs: number, sm: number, ...} | `default` | 2.2.0 |
-| src | 图片类头像的资源地址 | string | - |
-| srcset | 设置图片类头像响应式资源地址 | string | - |
-| alt | 图像无法显示时的替代文本 | string | - |
-| gap | 字符类型距离左右两侧边界单位像素 | number | 4 | 2.2.0 |
-| draggable | 图片是否允许拖动 | boolean \| `'true'` \| `'false'` | - | 2.2.0 |
-| loadError | 图片加载失败的事件,返回 false 会关闭组件默认的 fallback 行为 | () => boolean | - |
-| crossOrigin | CORS 属性设置 | `'anonymous'` \| `'use-credentials'` \| `''` | - | 3.0 |
+| src | 图片类头像的资源地址 | string | - | |
+| srcset | 设置图片类头像响应式资源地址 | string | - | |
### Avatar.Group (2.2.0)
diff --git a/components/badge/index.zh-CN.md b/components/badge/index.zh-CN.md
index 7765a1625..7c4a7fd42 100644
--- a/components/badge/index.zh-CN.md
+++ b/components/badge/index.zh-CN.md
@@ -31,12 +31,12 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/6%26GF9WHwvY/Badge.svg
| color | 自定义小圆点的颜色 | string | - | 1.5.0 |
| count | 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏 | number \| string \| slot | | |
| dot | 不展示数字,只有一个小红点 | boolean | false | |
+| numberStyle | 设置状态点的样式 | object | '' | |
| offset | 设置状态点的位置偏移,格式为 [x, y] | [number\|string, number\|string] | - | |
| overflowCount | 展示封顶的数字值 | number | 99 | |
| showZero | 当数值为 0 时,是否展示 Badge | boolean | false | |
| status | 设置 Badge 为状态点 | Enum{ 'success', 'processing, 'default', 'error', 'warning' } | '' | |
| text | 在设置了 `status` 的前提下有效,设置状态点的文本 | string | '' | |
-| numberStyle | 设置状态点的样式 | object | '' | |
| title | 设置鼠标放在状态点上时显示的文字 | string | `count` | |
### Badge.Ribbon (2.0.1+)
diff --git a/components/breadcrumb/index.en-US.md b/components/breadcrumb/index.en-US.md
index 103c9245b..504affdfe 100644
--- a/components/breadcrumb/index.en-US.md
+++ b/components/breadcrumb/index.en-US.md
@@ -31,7 +31,7 @@ A breadcrumb displays the current location within a hierarchy. It allows going b
#### Events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| ----------- | ----------------------------- | -------------------- | ------- | ----- |
| click | handler to handle click event | (e:MouseEvent)=>void | - | 1.5.0 |
diff --git a/components/breadcrumb/index.zh-CN.md b/components/breadcrumb/index.zh-CN.md
index 8c772e914..548c09675 100644
--- a/components/breadcrumb/index.zh-CN.md
+++ b/components/breadcrumb/index.zh-CN.md
@@ -32,7 +32,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/9Ltop8JwH/Breadcrumb.svg
#### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| -------- | -------- | -------------------- | ---- | ----- |
| click | 单击事件 | (e:MouseEvent)=>void | - | 1.5.0 |
diff --git a/components/calendar/index.en-US.md b/components/calendar/index.en-US.md
index b6c965280..a231861b9 100644
--- a/components/calendar/index.en-US.md
+++ b/components/calendar/index.en-US.md
@@ -28,21 +28,21 @@ customize the progress dot by setting a scoped slot
| --- | --- | --- | --- | --- |
| dateCellRender | Customize the display of the date cell by setting a scoped slot, the returned content will be appended to the cell | v-slot:dateCellRender="{current: dayjs}" | - | |
| dateFullCellRender | Customize the display of the date cell by setting a scoped slot, the returned content will override the cell | v-slot:dateFullCellRender="{current: dayjs}" | - | |
-| disabledDate | Function that specifies the dates that cannot be selected | (currentDate: dayjs) => boolean | - |
+| disabledDate | Function that specifies the dates that cannot be selected | (currentDate: dayjs) => boolean | - | |
| fullscreen | Whether to display in full-screen | boolean | `true` | |
+| headerRender | render custom header in panel | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | 1.5.0 |
| locale | The calendar's locale | object | [default](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
| mode | The display mode of the calendar | `month` \| `year` | `month` | |
| monthCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will be appended to the cell | v-slot:monthCellRender="{current: dayjs}" | - | |
| monthFullCellRender | Customize the display of the month cell by setting a scoped slot, the returned content will override the cell | v-slot:monthFullCellRender="{current: dayjs}" | - | |
| validRange | to set valid range | \[[dayjs](https://day.js.org/), [dayjs](https://day.js.org/)] | - | |
| value(v-model) | The current selected date | [dayjs](https://day.js.org/) | current date | |
-| headerRender | render custom header in panel | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | 1.5.0 |
| valueFormat | optional, format of binding value. If not specified, the binding value will be a Date object | string,[date formats](https://day.js.org/docs/en/display/format) | - | |
### events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| --- | --- | --- | --- | --- |
+| change | Callback for when value change | function(date: dayjs \| string) | - | |
| panelChange | Callback for when panel changes | function(date: dayjs \| string, mode: string) | - | |
| select | Callback for when a date is selected | function(date: dayjs \| string) | - | |
-| change | Callback for when value change | function(date: dayjs \| string) | - | |
diff --git a/components/calendar/index.zh-CN.md b/components/calendar/index.zh-CN.md
index 717c5dad1..ef0c18ee8 100644
--- a/components/calendar/index.zh-CN.md
+++ b/components/calendar/index.zh-CN.md
@@ -29,19 +29,19 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/dPQmLq08DI/Calendar.svg
| dateFullCellRender | 作用域插槽,自定义渲染日期单元格,返回内容覆盖单元格 | v-slot:dateFullCellRender="{current: dayjs}" | 无 | |
| disabledDate | 不可选择的日期 | (currentDate: dayjs) => boolean | 无 | |
| fullscreen | 是否全屏显示 | boolean | true | |
+| headerRender | 自定义头部内容 | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | |
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
| mode | 初始模式,`month/year` | string | month | |
| monthCellRender | 作用域插槽,自定义渲染月单元格,返回内容会被追加到单元格 | v-slot:monthCellRender="{current: dayjs}" | 无 | |
| monthFullCellRender | 作用域插槽,自定义渲染月单元格,返回内容覆盖单元格 | v-slot:monthFullCellRender="{current: dayjs}" | 无 | |
| validRange | 设置可以显示的日期 | \[[dayjs](https://day.js.org/), [dayjs](https://day.js.org/)] | 无 | |
| value(v-model) | 展示日期 | [dayjs](https://day.js.org/) | 当前日期 | |
-| headerRender | 自定义头部内容 | v-slot:headerRender="{value: dayjs, type: string, onChange: f(), onTypeChange: f()}" | - | |
| valueFormat | 可选,绑定值的格式,对 value、defaultValue 起作用。不指定则绑定值为 dayjs 对象 | string,[具体格式](https://day.js.org/docs/zh-CN/display/format) | - | |
### 事件
-| 事件名称 | 说明 | 回调参数 |
+| 事件名称 | 说明 | 回调参数 | |
| --- | --- | --- | --- |
+| change | 日期变化时的回调, 面板变化有可能导致日期变化 | function(date: dayjs \| string) | 无 |
| panelChange | 日期面板变化回调 | function(date: dayjs \| string, mode: string) | 无 |
| select | 点击选择日期回调 | function(date: dayjs \| string) | 无 |
-| change | 日期变化时的回调, 面板变化有可能导致日期变化 | function(date: dayjs \| string) | 无 |
diff --git a/components/card/index.en-US.md b/components/card/index.en-US.md
index 7b3e70eb8..9b3698b22 100644
--- a/components/card/index.en-US.md
+++ b/components/card/index.en-US.md
@@ -18,32 +18,32 @@ A card can be used to display content related to a single subject. The content c
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| activeTabKey | Current TabPane's key | string | - | |
-| headStyle | Inline style to apply to the card head | object | - | |
| bodyStyle | Inline style to apply to the card content | object | - | |
| bordered | Toggles rendering of the border around the card | boolean | `true` | |
| defaultActiveTabKey | Initial active TabPane's key, if `activeTabKey` is not set. | string | - | |
| extra | Content to render in the top-right corner of the card | string\|slot | - | |
+| headStyle | Inline style to apply to the card head | object | - | |
| hoverable | Lift up when hovering card | boolean | false | |
| loading | Shows a loading indicator while the contents of the card are being fetched | boolean | false | |
-| tabList | List of TabPane's head, Custom tabs with the customTab(v3.0) slot | Array<{key: string, tab: any}> | - | |
| size | Size of card | `default` \| `small` | `default` | |
+| tabList | List of TabPane's head, Custom tabs with the customTab(v3.0) slot | Array<{key: string, tab: any}> | - | |
| title | Card title | string\|slot | - | |
| type | Card style type, can be set to `inner` or not set | string | - | |
### Card Slots
-| Slot Name | Description | Type |
+| Slot Name | Description | Type | |
| --- | --- | --- | --- |
-| customTab | custom tabList tab | { item: tabList[number] } | |
-| title | Card title | - | |
-| extra | Content to render in the top-right corner of the card | - | |
-| tabBarExtraContent | Extra content in tab bar | - | |
| actions | The action list, shows at the bottom of the Card. | - | |
| cover | Card cover | - | |
+| customTab | custom tabList tab | { item: tabList[number] } | |
+| extra | Content to render in the top-right corner of the card | - | |
+| tabBarExtraContent | Extra content in tab bar | - | |
+| title | Card title | - | |
### events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| ----------- | ----------------------------- | ------------- | ------- | --- |
| tabChange | Callback when tab is switched | (key) => void | - | |
diff --git a/components/card/index.zh-CN.md b/components/card/index.zh-CN.md
index 487e28f66..ac3181b87 100644
--- a/components/card/index.zh-CN.md
+++ b/components/card/index.zh-CN.md
@@ -19,32 +19,32 @@ cover: https://gw.alipayobjects.com/zos/antfincdn/NqXt8DJhky/Card.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| activeTabKey | 当前激活页签的 key | string | - | |
-| headStyle | 自定义标题区域样式 | object | - | |
| bodyStyle | 内容区域自定义样式 | object | - | |
| bordered | 是否有边框 | boolean | true | |
| defaultActiveTabKey | 初始化选中页签的 key,如果没有设置 activeTabKey | string | 第一个页签 | |
| extra | 卡片右上角的操作区域 | string\|slot | - | |
+| headStyle | 自定义标题区域样式 | object | - | |
| hoverable | 鼠标移过时可浮起 | boolean | false | |
| loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位 | boolean | false | |
-| tabList | 页签标题列表, 可以通过 customTab(v3.0) 插槽自定义 tab | Array<{key: string, tab: any}> | - | |
| size | card 的尺寸 | `default` \| `small` | `default` | |
+| tabList | 页签标题列表, 可以通过 customTab(v3.0) 插槽自定义 tab | Array<{key: string, tab: any}> | - | |
| title | 卡片标题 | string\|slot | - | |
| type | 卡片类型,可设置为 `inner` 或 不设置 | string | - | |
### Card 插槽
-| 插槽名称 | 说明 | 参数 |
+| 插槽名称 | 说明 | 参数 | |
| ------------------ | -------------------------- | ------------------------- | --- |
-| customTab | 自定义 tabList tab 标签 | { item: tabList[number] } | |
-| title | 卡片标题 | - | |
-| extra | 卡片右上角的操作区域 | - | |
-| tabBarExtraContent | tab bar 上额外的元素 | - | |
| actions | 卡片操作组,位置在卡片底部 | - | |
| cover | 卡片封面 | - | |
+| customTab | 自定义 tabList tab 标签 | { item: tabList[number] } | |
+| extra | 卡片右上角的操作区域 | - | |
+| tabBarExtraContent | tab bar 上额外的元素 | - | |
+| title | 卡片标题 | - | |
### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| --------- | -------------- | ------------- | ---- | --- |
| tabChange | 页签切换的回调 | (key) => void | - | |
diff --git a/components/carousel/index.en-US.md b/components/carousel/index.en-US.md
index bcda411c3..997d9902b 100644
--- a/components/carousel/index.en-US.md
+++ b/components/carousel/index.en-US.md
@@ -18,8 +18,8 @@ A carousel component. Scales with its container.
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| autoplay | Whether to scroll automatically | boolean | `false` | |
-| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` | |
| dotPosition | The position of the dots, which can be one of `top` `bottom` `left` `right` | string | `bottom` | 1.5.0 |
+| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` | |
| dotsClass | Class name of the dots | string | `slick-dots` | |
| easing | Transition interpolation function name | string | `linear` | |
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` | |
diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md
index 5581878f5..247634a7a 100644
--- a/components/cascader/index.en-US.md
+++ b/components/cascader/index.en-US.md
@@ -26,27 +26,27 @@ Cascade selection box.
| changeOnSelect | (Work on single select) change value on each selection if set to true, see above demo for details | boolean | false | |
| disabled | whether disabled select | boolean | false | |
| displayRender | render function of displaying selected options, you can use #displayRender="{labels, selectedOptions}". | `({labels, selectedOptions}) => VNode` | `labels => labels.join(' / ')` | |
+| dropdownClassName | additional className of popup overlay | string | - | 3.0 |
+| dropdownStyle | additional style of popup overlay | CSSProperties | {} | 3.0 |
+| expandIcon | Customize the current item expand icon | slot | - | 3.0 |
| expandTrigger | expand current item when click or hover, one of 'click' 'hover' | string | 'click' | |
| fieldNames | custom field name for label and value and children | object | `{ label: 'label', value: 'value', children: 'children' }` | |
| getPopupContainer | Parent Node which the selector should be rendered to. Default to `body`. When position issues happen, try to modify it into scrollable content and position it relative. | Function(triggerNode) | () => document.body | |
| loadData | To load option lazily, and it cannot work with `showSearch` | `(selectedOptions) => void` | - | |
+| maxTagCount | Max tag count to show. `responsive` will cost render performance | number \| `responsive` | - | 3.0 |
+| maxTagPlaceholder | Placeholder for not showing tags | v-slot \| function(omittedValues) | - | 3.0 |
+| multiple | Support multiple or not | boolean | - | 3.0 |
| notFoundContent | Specify content to show when no result matches. | string \| slot | 'Not Found' | |
-| options | data options of cascade | [Option](#option)[] | - | |
+| open | set visible of cascader popup | boolean | - | 3.0 |
+| options | data options of cascade | [Option](#option)\[] | - | |
| placeholder | input placeholder | string | 'Please select' | |
+| placement | use preset popup align config from builtinPlacements:`bottomLeft` `bottomRight` `topLeft` `topRight` | string | `bottomLeft` | 3.0 |
+| searchValue | Set search value,Need work with `showSearch` | string | - | 3.0 |
| showSearch | Whether show search input in single mode. | boolean \| [object](#showsearch) | false | |
| size | input size, one of `large` `default` `small` | string | `default` | |
| suffixIcon | The custom suffix icon | string \| VNode \| slot | - | |
-| value(v-model) | selected value | string\[] \| number\[] | - | |
-| expandIcon | Customize the current item expand icon | slot | - | 3.0 |
-| maxTagCount | Max tag count to show. `responsive` will cost render performance | number \| `responsive` | - | 3.0 |
-| maxTagPlaceholder | Placeholder for not showing tags | v-slot \| function(omittedValues) | - | 3.0 |
-| dropdownClassName | additional className of popup overlay | string | - | 3.0 |
-| dropdownStyle | additional style of popup overlay | CSSProperties | {} | 3.0 |
-| open | set visible of cascader popup | boolean | - | 3.0 |
-| placement | use preset popup align config from builtinPlacements:`bottomLeft` `bottomRight` `topLeft` `topRight` | string | `bottomLeft` | 3.0 |
| tagRender | Customize tag render when `multiple` | slot | - | 3.0 |
-| multiple | Support multiple or not | boolean | - | 3.0 |
-| searchValue | Set search value,Need work with `showSearch` | string | - | 3.0 |
+| value(v-model) | selected value | string\[] \| number\[] | - | |
### showSearch
@@ -62,7 +62,7 @@ Fields in `showSearch`:
### events
-| Events Name | Description | Arguments | version |
+| Events Name | Description | Arguments | version | |
| --- | --- | --- | --- | --- |
| change | callback when finishing cascader select | `(value, selectedOptions) => void` | - | |
| dropdownVisibleChange | callback when popup shown or hidden | `(value) => void` | - | 3.0 |
diff --git a/components/cascader/index.zh-CN.md b/components/cascader/index.zh-CN.md
index 6783503ad..bc52a55c8 100644
--- a/components/cascader/index.zh-CN.md
+++ b/components/cascader/index.zh-CN.md
@@ -28,27 +28,27 @@ cover: https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg
| defaultValue | 默认的选中项 | string\[] \| number\[] | \[] | |
| disabled | 禁用 | boolean | false | |
| displayRender | 选择后展示的渲染函数,可使用 #displayRender="{labels, selectedOptions}" | `({labels, selectedOptions}) => VNode` | `labels => labels.join(' / ')` | |
+| dropdownClassName | 自定义浮层类名 | string | - | 3.0 |
+| dropdownStyle | 自定义浮层样式 | CSSProperties | {} | 3.0 |
+| expandIcon | 自定义次级菜单展开图标 | slot | - | 3.0 |
| expandTrigger | 次级菜单的展开方式,可选 'click' 和 'hover' | string | 'click' | |
| fieldNames | 自定义 options 中 label name children 的字段 | object | `{ label: 'label', value: 'value', children: 'children' }` | |
| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | () => document.body | |
| loadData | 用于动态加载选项,无法与 `showSearch` 一起使用 | `(selectedOptions) => void` | - | |
+| maxTagCount | 最多显示多少个 tag,响应式模式会对性能产生损耗 | number \| `responsive` | - | 3.0 |
+| maxTagPlaceholder | 隐藏 tag 时显示的内容 | v-slot \| function(omittedValues) | - | 3.0 |
+| multiple | 支持多选节点 | boolean | - | 3.0 |
| notFoundContent | 当下拉列表为空时显示的内容 | string \| slot | 'Not Found' | |
-| options | 可选项数据源 | [Option](#option)[] | - | |
+| open | 控制浮层显隐 | boolean | - | 3.0 |
+| options | 可选项数据源 | [Option](#option)\[] | - | |
| placeholder | 输入框占位文本 | string | '请选择' | |
+| placement | 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` | string | `bottomLeft` | 3.0 |
+| searchValue | 设置搜索的值,需要与 `showSearch` 配合使用 | string | - | 3.0 |
| showSearch | 在选择框中显示搜索框 | boolean \| [object](#showsearch) | false | |
| size | 输入框大小,可选 `large` `default` `small` | string | `default` | |
| suffixIcon | 自定义的选择框后缀图标 | string \| VNode \| slot | - | |
-| value(v-model) | 指定选中项 | string\[] \| number\[] | - | |
-| expandIcon | 自定义次级菜单展开图标 | slot | - | 3.0 |
-| maxTagCount | 最多显示多少个 tag,响应式模式会对性能产生损耗 | number \| `responsive` | - | 3.0 |
-| maxTagPlaceholder | 隐藏 tag 时显示的内容 | v-slot \| function(omittedValues) | - | 3.0 |
-| dropdownClassName | 自定义浮层类名 | string | - | 3.0 |
-| dropdownStyle | 自定义浮层样式 | CSSProperties | {} | 3.0 |
-| open | 控制浮层显隐 | boolean | - | 3.0 |
-| placement | 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` | string | `bottomLeft` | 3.0 |
| tagRender | 自定义 tag 内容,多选时生效 | (props) => ReactNode | - | 3.0 |
-| multiple | 支持多选节点 | boolean | - | 3.0 |
-| searchValue | 设置搜索的值,需要与 `showSearch` 配合使用 | string | - | 3.0 |
+| value(v-model) | 指定选中项 | string\[] \| number\[] | - | |
### showSearch
@@ -64,7 +64,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/UdS8y8xyZ/Cascader.svg
### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| --------------------- | ---------------------- | ---------------------------------- | ---- | --- |
| change | 选择完成后的回调 | `(value, selectedOptions) => void` | - | |
| dropdownVisibleChange | 显示/隐藏浮层的回调 | `(value) => void` | - | 3.0 |
diff --git a/components/checkbox/index.zh-CN.md b/components/checkbox/index.zh-CN.md
index 03c1cc9b3..b962a53a4 100644
--- a/components/checkbox/index.zh-CN.md
+++ b/components/checkbox/index.zh-CN.md
@@ -29,7 +29,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/8nbVbHEm_/CheckBox.svg
#### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| -------- | -------------- | ----------------- | ---- | --- |
| change | 变化时回调函数 | Function(e:Event) | - | |
@@ -44,7 +44,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/8nbVbHEm_/CheckBox.svg
#### 事件
-| 事件名称 | 说明 | 回调参数 | 版本 |
+| 事件名称 | 说明 | 回调参数 | 版本 | |
| -------- | -------------- | ---------------------- | ---- | --- |
| change | 变化时回调函数 | Function(checkedValue) | - | |
diff --git a/components/collapse/index.en-US.md b/components/collapse/index.en-US.md
index a804293de..5c4c1f113 100644
--- a/components/collapse/index.en-US.md
+++ b/components/collapse/index.en-US.md
@@ -18,13 +18,13 @@ A content area which can be collapsed and expanded.
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
+| accordion | If `true`, `Collapse` renders as `Accordion` | boolean | `false` | |
| activeKey(v-model) | Key of the active panel | string\[]\|string | No default value. In `accordion` mode, it's the key of the first panel. | |
| bordered | Toggles rendering of the border around the collapse block | boolean | `true` | |
| collapsible | Specify whether the panels of children be collapsible or the trigger area of collapsible | `header` \| `disabled` | - | 3.0 |
-| accordion | If `true`, `Collapse` renders as `Accordion` | boolean | `false` | |
-| expandIcon | allow to customize collapse icon | Function(props):VNode \| v-slot:expandIcon="props" | |
-| expandIconPosition | Set expand icon position: `left`, `right` | `left` | - | 1.5.0 |
| destroyInactivePanel | Destroy Inactive Panel | boolean | `false` | |
+| expandIcon | allow to customize collapse icon | Function(props):VNode \| v-slot:expandIcon="props" | | |
+| expandIconPosition | Set expand icon position: `left`, `right` | `left` | - | 1.5.0 |
| ghost | Make the collapse borderless and its background transparent | boolean | false | 3.0 |
### events
@@ -39,8 +39,8 @@ A content area which can be collapsed and expanded.
| --- | --- | --- | --- | --- |
| collapsible | Specify whether the panel be collapsible or the trigger area of collapsible | `header` \| `disabled` | - | 3.0 |
| disabled | If `true`, panel cannot be opened or closed | boolean | `false` | |
+| extra | extra element in the corner | VNode \| slot | - | 1.5.0 |
| forceRender | Forced render of content on panel, instead of lazy rending after clicking on header | boolean | `false` | |
| header | Title of the panel | string \| slot | - | |
| key | Unique key identifying the panel from among its siblings | string \| number | - | |
| showArrow | If `false`, panel will not show arrow icon | boolean | `true` | |
-| extra | extra element in the corner | VNode \| slot | - | 1.5.0 |
diff --git a/components/collapse/index.zh-CN.md b/components/collapse/index.zh-CN.md
index 3915b837c..9216f0018 100644
--- a/components/collapse/index.zh-CN.md
+++ b/components/collapse/index.zh-CN.md
@@ -19,14 +19,14 @@ cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
+| accordion | 手风琴模式 | boolean | `false` | |
| activeKey(v-model) | 当前激活 tab 面板的 key | string\[]\|string | 默认无,accordion 模式下默认第一个元素 | |
| bordered | 带边框风格的折叠面板 | boolean | `true` | |
| collapsible | 所有子面板是否可折叠或指定可折叠触发区域 | `header` \| `disabled` | - | 3.0 |
-| accordion | 手风琴模式 | boolean | `false` | |
-| expandIcon | 自定义切换图标 | Function(props):VNode \| slot="expandIcon" slot-scope="props"\|#expandIcon="props" | |
+| destroyInactivePanel | 销毁折叠隐藏的面板 | boolean | `false` | |
+| expandIcon | 自定义切换图标 | Function(props):VNode \| slot="expandIcon" slot-scope="props"\|#expandIcon="props" | | |
| expandIconPosition | 设置图标位置: `left`, `right` | `left` | - | 1.5.0 |
| ghost | 使折叠面板透明且无边框 | boolean | false | 3.0 |
-| destroyInactivePanel | 销毁折叠隐藏的面板 | boolean | `false` | |
### 事件
@@ -39,8 +39,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/IxH16B9RD/Collapse.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ----------- | ------------------------------ | ---------------------- | ------ | ----- |
| collapsible | 是否可折叠或指定可折叠触发区域 | `header` \| `disabled` | - | 3.0 |
+| extra | 自定义渲染每个面板右上角的内容 | VNode \| slot | - | 1.5.0 |
| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false | |
| header | 面板头内容 | string\|slot | 无 | |
| key | 对应 activeKey | string \| number | 无 | |
| showArrow | 是否展示当前面板上的箭头 | boolean | `true` | |
-| extra | 自定义渲染每个面板右上角的内容 | VNode \| slot | - | 1.5.0 |
diff --git a/components/color-picker/index.en-US.md b/components/color-picker/index.en-US.md
index 002e36a99..678ca4e68 100644
--- a/components/color-picker/index.en-US.md
+++ b/components/color-picker/index.en-US.md
@@ -2,26 +2,26 @@
| Property | Description | Type | Default |
| --- | --- | --- | --- |
-| defaultValue | default color | string | - |
-| config | pickr config | [pickr options](https://github.com/Simonwep/pickr) | - |
-| value | color value | string | - |
-| locale | locale package | [default setting](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
| colorRounded | precision of color | number | 0 |
-| size | size of pickr | 'large'\|'small'\|'default' | 'default' |
-| getPopupContainer | to set the container of the floating layer, while the default is to create a div element in body | Function(triggerNode) | () => document.body |
+| config | pickr config | [pickr options](https://github.com/Simonwep/pickr) | - |
+| defaultValue | default color | string | - |
| disabled | whether disabled picker | boolean | false |
| format | Color format | 'HEXA' \|'RGBA' \|'HSVA' \|'HSLA' \|'CMYK' | 'HEXA' |
+| getPopupContainer | to set the container of the floating layer, while the default is to create a div element in body | Function(triggerNode) | () => document.body |
+| locale | locale package | [default setting](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
+| size | size of pickr | 'large'\|'small'\|'default' | 'default' |
+| value | color value | string | - |
### Event
| Event | Description | Arguments |
| --- | --- | --- |
-| `init` | Initialization done - pickr can be used | `PickrInstance` |
-| `hide` | Pickr got closed | `PickrInstance` |
-| `show` | Pickr got opened | `PickrInstance` |
-| `save` | User clicked the save / clear button. Also fired on clear with `null` as color. | `HSVaColorObject or null, PickrInstance` |
-| `clear` | User cleared the color. | `PickrInstance` |
+| `cancel` | User clicked the cancel button (return to previous color). | `PickrInstance` |
| `change` | Color has changed (but not saved). Also fired on `swatchselect` | `HSVaColorObject, PickrInstance` |
| `changestop` | User stopped to change the color | `PickrInstance` |
-| `cancel` | User clicked the cancel button (return to previous color). | `PickrInstance` |
+| `clear` | User cleared the color. | `PickrInstance` |
+| `hide` | Pickr got closed | `PickrInstance` |
+| `init` | Initialization done - pickr can be used | `PickrInstance` |
+| `save` | User clicked the save / clear button. Also fired on clear with `null` as color. | `HSVaColorObject or null, PickrInstance` |
+| `show` | Pickr got opened | `PickrInstance` |
| `swatchselect` | User clicked one of the swatches | `HSVaColorObject, PickrInstance` |
diff --git a/components/color-picker/index.zh-CN.md b/components/color-picker/index.zh-CN.md
index bca641ecf..01837f9d5 100644
--- a/components/color-picker/index.zh-CN.md
+++ b/components/color-picker/index.zh-CN.md
@@ -2,26 +2,26 @@
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
-| defaultValue | 默认颜色 | string | - |
-| config | pickr 配置项 | [pickr options](https://github.com/Simonwep/pickr) | - |
-| value | 颜色值 | string | - |
-| locale | 语言包 | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
| colorRounded | 颜色数值精度 | number | 0 |
-| size | 取色器尺寸 | 'large'\|'small'\|'default' | 'default' |
-| getPopupContainer | 浮层渲染父节点,默认渲染到 body 上 | Function(triggerNode) | () => document.body |
+| config | pickr 配置项 | [pickr options](https://github.com/Simonwep/pickr) | - |
+| defaultValue | 默认颜色 | string | - |
| disabled | 是否禁用 | boolean | false |
| format | 定义返回的颜色格式 | 'HEXA' \|'RGBA' \|'HSVA' \|'HSLA' \|'CMYK' | 'HEXA' |
+| getPopupContainer | 浮层渲染父节点,默认渲染到 body 上 | Function(triggerNode) | () => document.body |
+| locale | 语言包 | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/color-picker/locale) | - |
+| size | 取色器尺寸 | 'large'\|'small'\|'default' | 'default' |
+| value | 颜色值 | string | - |
### 事件
| 事件名称 | 说明 | 回调参数 |
| --- | --- | --- |
-| `init` | 初始化完成,可以使用 pickr | `PickrInstance` |
-| `hide` | Pickr 关闭时 | `PickrInstance` |
-| `show` | Pickr 开启时 | `PickrInstance` |
-| `save` | 用户点击保存/清空按钮时 | `HSVaColorObject or null, PickrInstance` |
-| `clear` | 清空颜色时 | `PickrInstance` |
+| `cancel` | 用户点击取消时(颜色返回至上个颜色) | `PickrInstance` |
| `change` | 颜色值发生变更时(非保存).`swatchselect`也会触发 | `HSVaColorObject, PickrInstance` |
| `changestop` | 用户不再改变颜色时 | `PickrInstance` |
-| `cancel` | 用户点击取消时(颜色返回至上个颜色) | `PickrInstance` |
+| `clear` | 清空颜色时 | `PickrInstance` |
+| `hide` | Pickr 关闭时 | `PickrInstance` |
+| `init` | 初始化完成,可以使用 pickr | `PickrInstance` |
+| `save` | 用户点击保存/清空按钮时 | `HSVaColorObject or null, PickrInstance` |
+| `show` | Pickr 开启时 | `PickrInstance` |
| `swatchselect` | 用户切换了色板 | `HSVaColorObject, PickrInstance` |
diff --git a/components/config-provider/index.en-US.md b/components/config-provider/index.en-US.md
index c9fe9ac5a..ff07a5e71 100644
--- a/components/config-provider/index.en-US.md
+++ b/components/config-provider/index.en-US.md
@@ -53,15 +53,15 @@ Some components use dynamic style to support wave effect. You can config `csp` p
| direction | Set direction of layout. See [demo](#components-config-provider-demo-direction) | `ltr` \| `rtl` | `ltr` | 3.0 |
| dropdownMatchSelectWidth | Determine whether the dropdown menu and the select input are the same width. Default set `min-width` same as input. Will ignore when value less than select width. `false` will disable virtual scroll | boolean \| number | - | 3.0 |
| form | Set Form common props | { validateMessages?: [ValidateMessages](/components/form/#validateMessages), requiredMark?: boolean \| `optional` } | - | 3.0 |
-| renderEmpty | set empty content of components. Ref [Empty](/components/empty/) | slot-scope \| Function(componentName: string): ReactNode | - | |
| getPopupContainer | to set the container of the popup element. The default is to create a `div` element in `body`. | Function(triggerNode, dialogContext) | `() => document.body` | |
| getTargetContainer | Config Affix, Anchor scroll target container | () => HTMLElement | () => window | 3.0 |
| input | Set Input common props | { autocomplete?: string } | - | 3.0 |
| locale | language package setting, you can find the packages in [ant-design-vue/es/locale](http://unpkg.com/ant-design-vue/es/locale/) | object | - | 1.5.0 |
+| pageHeader | Unify the ghost of pageHeader ,Ref [pageHeader]\(<(/components/page-header)> | { ghost:boolean } | 'true' | 1.5.0 |
| prefixCls | set prefix class | string | ant | |
-| pageHeader | Unify the ghost of pageHeader ,Ref [pageHeader](<(/components/page-header)> | { ghost:boolean } | 'true' | 1.5.0 |
-| transformCellText | Table data can be changed again before rendering. The default configuration of general user empty data. | Function({ text, column, record, index }) => any | - | 1.5.4 | |
+| renderEmpty | set empty content of components. Ref [Empty](/components/empty/) | slot-scope \| Function(componentName: string): ReactNode | - | |
| space | Set Space `size`, ref [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 3.0 |
+| transformCellText | Table data can be changed again before rendering. The default configuration of general user empty data. | Function({ text, column, record, index }) => any | - | 1.5.4 | |
| virtual | Disable virtual scroll when set to false | boolean | true | 3.0 |
### ConfigProvider.config() `3.0.0+`
diff --git a/components/config-provider/index.zh-CN.md b/components/config-provider/index.zh-CN.md
index 6d2c29843..7a5e80e2d 100644
--- a/components/config-provider/index.zh-CN.md
+++ b/components/config-provider/index.zh-CN.md
@@ -54,15 +54,15 @@ ConfigProvider 使用 Vue 的 [provide / inject](https://vuejs.org/v2/api/#provi
| direction | 设置文本展示方向。 [示例](#components-config-provider-demo-direction) | `ltr` \| `rtl` | `ltr` | 3.0 |
| dropdownMatchSelectWidth | 下拉菜单和选择器同宽。默认将设置 `min-width`,当值小于选择框宽度时会被忽略。`false` 时会关闭虚拟滚动 | boolean \| number | - | |
| form | 设置 Form 组件的通用属性 | { validateMessages?: [ValidateMessages](/components/form/#validateMessages), requiredMark?: boolean \| `optional`, colon?: boolean} | - | 3.0 |
-| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | slot \| Function(componentName: string): VNode | - | |
| getPopupContainer | 弹出框(Select, Tooltip, Menu 等等)渲染父节点,默认渲染到 body 上。 | Function(triggerNode, dialogContext) | () => document.body | |
| getTargetContainer | 配置 Affix、Anchor 滚动监听容器。 | () => HTMLElement | () => window | 3.0 |
| input | 设置 Input 组件的通用属性 | { autocomplete?: string } | - | 3.0 |
| locale | 语言包配置,语言包可到 [ant-design-vue/es/locale](http://unpkg.com/ant-design-vue/es/locale/) 目录下寻找 | object | - | 1.5.0 |
| pageHeader | 统一设置 pageHeader 的 ghost,参考 [pageHeader](<(/components/page-header)>) | { ghost: boolean } | 'true' | 1.5.0 |
| prefixCls | 设置统一样式前缀。注意:需要配合 `less` 变量 `@ant-prefix` 使用 | string | `ant` | |
-| transformCellText | Table 数据渲染前可以再次改变,一般用户空数据的默认配置 | Function({ text, column, record, index }) => any | - | 1.5.4 | |
+| renderEmpty | 自定义组件空状态。参考 [空状态](/components/empty/) | slot \| Function(componentName: string): VNode | - | |
| space | 设置 Space 的 `size`,参考 [Space](/components/space) | { size: `small` \| `middle` \| `large` \| `number` } | - | 3.0 |
+| transformCellText | Table 数据渲染前可以再次改变,一般用户空数据的默认配置 | Function({ text, column, record, index }) => any | - | 1.5.4 | |
| virtual | 设置 `false` 时关闭虚拟滚动 | boolean | - | 3.0 |
### ConfigProvider.config() `3.0.0+`
diff --git a/components/date-picker/index.en-US.md b/components/date-picker/index.en-US.md
index bea33244c..c3e9cb06b 100644
--- a/components/date-picker/index.en-US.md
+++ b/components/date-picker/index.en-US.md
@@ -88,17 +88,17 @@ The following APIs are shared by DatePicker, RangePicker.
| inputReadOnly | Set the `readonly` attribute of the input tag (avoids virtual keyboard on touch devices) | boolean | false | |
| locale | Localization configuration | object | [default](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | |
| mode | The picker panel mode | `time` \| `date` \| `month` \| `year` \| `decade` | - | |
+| nextIcon | The custom next icon | slot | - | 3.0 |
| open | The open state of picker | boolean | - | |
| picker | Set picker type | `date` \| `week` \| `month` \| `quarter` \| `year` | `date` | `quarter` |
| placeholder | The placeholder of date input | string \| \[string,string] | - | |
| popupStyle | To customize the style of the popup calendar | CSSProperties | {} | |
+| prevIcon | The custom prev icon | slot | - | 3.0 |
| size | To determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | `large` \| `middle` \| `small` | - | |
| suffixIcon | The custom suffix icon | v-slot:suffixIcon | - | |
-| valueFormat | optional, format of binding value. If not specified, the binding value will be a Date object | string,[date formats](https://day.js.org/docs/en/display/format) | - | |
-| nextIcon | The custom next icon | slot | - | 3.0 |
-| prevIcon | The custom prev icon | slot | - | 3.0 |
| superNextIcon | The custom super next icon | slot | - | 3.0 |
| superPrevIcon | The custom super prev icon | slot | - | 3.0 |
+| valueFormat | optional, format of binding value. If not specified, the binding value will be a Date object | string,[date formats](https://day.js.org/docs/en/display/format) | - | |
### Common Events
@@ -179,11 +179,11 @@ The following APIs are shared by DatePicker, RangePicker.
### RangePicker Events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| --- | --- | --- | --- | --- |
| calendarChange | Callback function, can be executed when the start time or the end time of the range is changing. | function(dates: \[dayjs, dayjs], dateStrings: \[string, string], info: { range:`start`\|`end` }) | - | |
-| change | a callback function, can be executed when the selected time is changing | function(dates: \[dayjs, dayjs\] \| \[string, string\], dateStrings: \[string, string\]) | |
-| ok | callback when click ok button | function(dates: \[dayjs, dayjs\] \| \[string, string\]) | |
+| change | a callback function, can be executed when the selected time is changing | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string]) | | |
+| ok | callback when click ok button | function(dates: \[dayjs, dayjs] \| \[string, string]) | | |
## FAQ
diff --git a/components/date-picker/index.zh-CN.md b/components/date-picker/index.zh-CN.md
index d9c2f64b0..238a7e716 100644
--- a/components/date-picker/index.zh-CN.md
+++ b/components/date-picker/index.zh-CN.md
@@ -89,23 +89,23 @@ cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg
| inputReadOnly | 设置输入框为只读(避免在移动设备上打开虚拟键盘) | boolean | false | |
| locale | 国际化配置 | object | [默认配置](https://github.com/vueComponent/ant-design-vue/blob/next/components/date-picker/locale/example.json) | - |
| mode | 日期面板的状态 | `time` \| `date` \| `month` \| `year` \| `decade` | - | |
+| nextIcon | 自定义下一个图标 | slot | - | 3.0 |
| open | 控制弹层是否展开 | boolean | - | |
| picker | 设置选择器类型 | `date` \| `week` \| `month` \| `quarter` \| `year` | `date` | `quarter` |
| placeholder | 输入框提示文字 | string \| \[string, string] | - | |
| popupStyle | 额外的弹出日历样式 | CSSProperties | {} | |
+| prevIcon | 自定义上一个图标 | slot | - | 3.0 |
| size | 输入框大小,`large` 高度为 40px,`small` 为 24px,默认是 32px | `large` \| `middle` \| `small` | - | |
| suffixIcon | 自定义的选择框后缀图标 | v-slot:suffixIcon | - | |
-| valueFormat | 可选,绑定值的格式,对 value、defaultValue、defaultPickerValue 起作用。不指定则绑定值为 dayjs 对象 | string,[具体格式](https://day.js.org/docs/zh-CN/display/format) | - | |
-| nextIcon | 自定义下一个图标 | slot | - | 3.0 |
-| prevIcon | 自定义上一个图标 | slot | - | 3.0 |
| superNextIcon | 自定义 `<<` 切换图标 | slot | - | 3.0 |
| superPrevIcon | 自定义 `>>` 切换图标 | slot | - | 3.0 |
+| valueFormat | 可选,绑定值的格式,对 value、defaultValue、defaultPickerValue 起作用。不指定则绑定值为 dayjs 对象 | string,[具体格式](https://day.js.org/docs/zh-CN/display/format) | - | |
### 共有的事件
-| 事件名称 | 说明 | 回调参数 |
+| 事件名称 | 说明 | 回调参数 | |
| ----------- | ------------------------ | --------------------- | --- |
-| openChange | 弹出日历和关闭日历的回调 | function(status) |
+| openChange | 弹出日历和关闭日历的回调 | function(status) | |
| panelChange | 日期面板变化时的回调 | function(value, mode) | - |
### 共同的方法
@@ -182,9 +182,9 @@ cover: https://gw.alipayobjects.com/zos/alicdn/RT_USzA48/DatePicker.svg
| 事件名称 | 说明 | 回调参数 |
| --- | --- | --- |
-| calendarChange | 待选日期发生变化的回调 | function(dates: \[dayjs, dayjs\] \| \[string, string\], dateStrings: \[string, string\], info: { range:`start`\|`end` }) |
-| change | 日期范围发生变化的回调 | function(dates: \[dayjs, dayjs\] \| \[string, string\], dateStrings: \[string, string\]) |
-| ok | 点击确定按钮的回调 | function(dates: \[dayjs, dayjs\] \| \[string, string\]) |
+| calendarChange | 待选日期发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string], info: { range:`start`\|`end` }) |
+| change | 日期范围发生变化的回调 | function(dates: \[dayjs, dayjs] \| \[string, string], dateStrings: \[string, string]) |
+| ok | 点击确定按钮的回调 | function(dates: \[dayjs, dayjs] \| \[string, string]) |
## FAQ
diff --git a/components/descriptions/index.en-US.md b/components/descriptions/index.en-US.md
index 1c752face..cbc9fceee 100644
--- a/components/descriptions/index.en-US.md
+++ b/components/descriptions/index.en-US.md
@@ -15,25 +15,25 @@ Commonly displayed on the details page.
### Descriptions props
-| Property | Description | Type | Default | Version |
+| Property | Description | Type | Default | Version | | |
| --- | --- | --- | --- | --- | --- | --- |
-| bordered | whether to display the border | boolean | false | |
-| colon | change default props `colon` value of `Descriptions.Item` | boolean | true | |
-| column | the number of `DescriptionItems` in a row,could be a number or a object like `{ xs: 8, sm: 16, md: 24}`,(Only set `bordered={true}` to take effect) | number | 3 | |
-| extra | The action area of the description list, placed at the top-right | string \| VNode \| slot | - | 2.0.0 |
-| layout | Define description layout | `horizontal | vertical` | `horizontal` | |
-| size | set the size of the list. Can be set to `middle`,`small`, or not filled | `default | middle | small` | `default` | |
-| title | The title of the description list, placed at the top | string \| VNode \| slot | - | |
-| labelStyle | Customize label style | CSSProperties | - | 2.2.0 |
-| contentStyle | Customize content style | CSSProperties | - | 2.2.0 |
+| bordered | whether to display the border | boolean | false | | | |
+| colon | change default props `colon` value of `Descriptions.Item` | boolean | true | | | |
+| column | the number of `DescriptionItems` in a row,could be a number or a object like `{ xs: 8, sm: 16, md: 24}`,(Only set `bordered={true}` to take effect) | number | 3 | | | |
+| contentStyle | Customize content style | CSSProperties | - | 2.2.0 | | |
+| extra | The action area of the description list, placed at the top-right | string \| VNode \| slot | - | 2.0.0 | | |
+| labelStyle | Customize label style | CSSProperties | - | 2.2.0 | | |
+| layout | Define description layout | \`horizontal | vertical\` | `horizontal` | | |
+| size | set the size of the list. Can be set to `middle`,`small`, or not filled | \`default | middle | small\` | `default` | |
+| title | The title of the description list, placed at the top | string \| VNode \| slot | - | | | |
### Item props
| Property | Description | Type | Default | Version |
| ------------ | ------------------------------ | ----------------------- | ------- | ------- |
-| label | description of the content | string \| VNode \| slot | - | |
-| span | The number of columns included | number | 1 | |
-| labelStyle | Customize label style | CSSProperties | - | 2.2.0 |
| contentStyle | Customize content style | CSSProperties | - | 2.2.0 |
+| label | description of the content | string \| VNode \| slot | - | |
+| labelStyle | Customize label style | CSSProperties | - | 2.2.0 |
+| span | The number of columns included | number | 1 | |
> The number of span Descriptions.Item. span={2} takes up the width of two DescriptionsItems.
diff --git a/components/descriptions/index.zh-CN.md b/components/descriptions/index.zh-CN.md
index bfce6c046..4a0732421 100644
--- a/components/descriptions/index.zh-CN.md
+++ b/components/descriptions/index.zh-CN.md
@@ -16,25 +16,25 @@ cover: https://gw.alipayobjects.com/zos/alicdn/MjtG9_FOI/Descriptions.svg
### Descriptions props
-| 参数 | 说明 | 类型 | 默认值 | 版本 |
+| 参数 | 说明 | 类型 | 默认值 | 版本 | | |
| --- | --- | --- | --- | --- | --- | --- |
-| bordered | 是否展示边框 | boolean | false | |
-| colon | 配置 `Descriptions.Item` 的 `colon` 的默认值 | boolean | true | |
-| column | 一行的 `DescriptionItems` 数量,可以写成像素值或支持响应式的对象写法 `{ xs: 8, sm: 16, md: 24}` | number | 3 | |
-| extra | 描述列表的操作区域,显示在右上方 | string \| VNode \| slot | - | 2.0.0 |
-| layout | 描述布局 | `horizontal | vertical` | `horizontal` | |
-| size | 设置列表的大小。可以设置为 `middle` 、`small`, 或不填(只有设置 `bordered={true}` 生效) | `default | middle | small` | `default` | |
-| title | 描述列表的标题,显示在最顶部 | string \| VNode \| slot | - | |
-| labelStyle | 自定义标签样式 | CSSProperties | - | 2.2.0 |
-| contentStyle | 自定义内容样式 | CSSProperties | - | 2.2.0 |
+| bordered | 是否展示边框 | boolean | false | | | |
+| colon | 配置 `Descriptions.Item` 的 `colon` 的默认值 | boolean | true | | | |
+| column | 一行的 `DescriptionItems` 数量,可以写成像素值或支持响应式的对象写法 `{ xs: 8, sm: 16, md: 24}` | number | 3 | | | |
+| contentStyle | 自定义内容样式 | CSSProperties | - | 2.2.0 | | |
+| extra | 描述列表的操作区域,显示在右上方 | string \| VNode \| slot | - | 2.0.0 | | |
+| labelStyle | 自定义标签样式 | CSSProperties | - | 2.2.0 | | |
+| layout | 描述布局 | \`horizontal | vertical\` | `horizontal` | | |
+| size | 设置列表的大小。可以设置为 `middle` 、`small`, 或不填(只有设置 `bordered={true}` 生效) | \`default | middle | small\` | `default` | |
+| title | 描述列表的标题,显示在最顶部 | string \| VNode \| slot | - | | | |
### Item props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ------------ | -------------- | ----------------------- | ------ | ----- |
-| label | 内容的描述 | string \| VNode \| slot | - |
-| span | 包含列的数量 | number | 1 |
-| labelStyle | 自定义标签样式 | CSSProperties | - | 2.2.0 |
| contentStyle | 自定义内容样式 | CSSProperties | - | 2.2.0 |
+| label | 内容的描述 | string \| VNode \| slot | - | |
+| labelStyle | 自定义标签样式 | CSSProperties | - | 2.2.0 |
+| span | 包含列的数量 | number | 1 | |
> span 是 Descriptions.Item 的数量。 span={2} 会占用两个 DescriptionsItem 的宽度。
diff --git a/components/divider/index.en-US.md b/components/divider/index.en-US.md
index 89c375619..2b9487fd7 100644
--- a/components/divider/index.en-US.md
+++ b/components/divider/index.en-US.md
@@ -18,6 +18,6 @@ A divider line separates different content.
| --- | --- | --- | --- | --- |
| dashed | whether line is dashed | Boolean | false | |
| orientation | position of title inside divider | enum: `left` `right` `center` | `center` | |
-| type | direction type of divider | enum: `horizontal` `vertical` | `horizontal` | |
-| plain | Divider text show as plain style | boolean | true | 2.2.0 |
| orientationMargin | The margin-left/right between the title and its closest border, while the `orientation` must be `left` or `right` | string \| number | - | 3.0 |
+| plain | Divider text show as plain style | boolean | true | 2.2.0 |
+| type | direction type of divider | enum: `horizontal` `vertical` | `horizontal` | |
diff --git a/components/divider/index.zh-CN.md b/components/divider/index.zh-CN.md
index 4cd462fc4..78fbe3972 100644
--- a/components/divider/index.zh-CN.md
+++ b/components/divider/index.zh-CN.md
@@ -19,6 +19,6 @@ cover: https://gw.alipayobjects.com/zos/alicdn/5swjECahe/Divider.svg
| --- | --- | --- | --- | --- |
| dashed | 是否虚线 | Boolean | false | |
| orientation | 分割线标题的位置 | enum: `left` `right` | `center` | |
-| type | 水平还是垂直类型 | enum: `horizontal` `vertical` | `horizontal` | |
-| plain | 文字是否显示为普通正文样式 | boolean | false | 2.2.0 |
| orientationMargin | 标题和最近 left/right 边框之间的距离,去除了分割线,同时 `orientation` 必须为 `left` 或 `right` | string \| number | - | 3.0 |
+| plain | 文字是否显示为普通正文样式 | boolean | false | 2.2.0 |
+| type | 水平还是垂直类型 | enum: `horizontal` `vertical` | `horizontal` | |
diff --git a/components/dropdown/index.en-US.md b/components/dropdown/index.en-US.md
index 5db7431a8..3b196fe55 100644
--- a/components/dropdown/index.en-US.md
+++ b/components/dropdown/index.en-US.md
@@ -15,17 +15,17 @@ When there are more than a few options to choose from, you can wrap them in a `D
### Dropdown
-| Property | Description | Type | Default |
+| Property | Description | Type | Default | |
| --- | --- | --- | --- | --- |
-| disabled | whether the dropdown menu is disabled | boolean | - |
| destroyPopupOnHide | Whether destroy dropdown when hidden | boolean | false | |
-| getPopupContainer | to set the container of the dropdown menu. The default is to create a `div` element in `body`, you can reset it to the scrolling area and make a relative reposition. [example](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | `() => document.body` |
-| overlay(v-slot) | the dropdown menu | [Menu](/components/menu) | - |
-| overlayClassName | Class name of the dropdown root element | string | - |
-| overlayStyle | Style of the dropdown root element | object | - |
-| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
-| trigger | the trigger mode which executes the drop-down action, hover doesn't work on mobile device | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` |
-| visible(v-model) | whether the dropdown menu is visible | boolean | - |
+| disabled | whether the dropdown menu is disabled | boolean | - | |
+| getPopupContainer | to set the container of the dropdown menu. The default is to create a `div` element in `body`, you can reset it to the scrolling area and make a relative reposition. [example](https://codepen.io/afc163/pen/zEjNOy?editors=0010) | Function(triggerNode) | `() => document.body` | |
+| overlay(v-slot) | the dropdown menu | [Menu](/components/menu) | - | |
+| overlayClassName | Class name of the dropdown root element | string | - | |
+| overlayStyle | Style of the dropdown root element | object | - | |
+| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
+| trigger | the trigger mode which executes the drop-down action, hover doesn't work on mobile device | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` | |
+| visible(v-model) | whether the dropdown menu is visible | boolean | - | |
### events
@@ -44,8 +44,8 @@ You should use [Menu](/components/menu/) as `overlay`. The menu items and divide
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| disabled | whether the dropdown menu is disabled | boolean | - | |
-| loading | Set the loading status of button | boolean \| { delay: number } | false | 3.0 |
| icon | Icon (appears on the right) | vNode \| slot | - | 1.5.0 |
+| loading | Set the loading status of button | boolean \| { delay: number } | false | 3.0 |
| overlay(v-slot) | the dropdown menu | [Menu](/components/menu) | - | |
| placement | placement of pop menu: `bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
| size | size of the button, the same as [Button](/components/button) | string | `default` | |
diff --git a/components/dropdown/index.zh-CN.md b/components/dropdown/index.zh-CN.md
index 0f5c73269..dab02b9c8 100644
--- a/components/dropdown/index.zh-CN.md
+++ b/components/dropdown/index.zh-CN.md
@@ -19,17 +19,17 @@ cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg
属性如下
-| 参数 | 说明 | 类型 | 默认值 |
+| 参数 | 说明 | 类型 | 默认值 | |
| --- | --- | --- | --- | --- |
-| disabled | 菜单是否禁用 | boolean | - |
| destroyPopupOnHide | 关闭后是否销毁 Dropdown | boolean | false | 3.0 |
-| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | `() => document.body` |
-| overlay(v-slot) | 菜单 | [Menu](/components/menu-cn) | - |
-| overlayClassName | 下拉根元素的类名称 | string | - |
-| overlayStyle | 下拉根元素的样式 | object | - |
-| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` |
-| trigger | 触发下拉的行为, 移动端不支持 hover | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` |
-| visible(v-model) | 菜单是否显示 | boolean | - |
+| disabled | 菜单是否禁用 | boolean | - | |
+| getPopupContainer | 菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。 | Function(triggerNode) | `() => document.body` | |
+| overlay(v-slot) | 菜单 | [Menu](/components/menu-cn) | - | |
+| overlayClassName | 下拉根元素的类名称 | string | - | |
+| overlayStyle | 下拉根元素的样式 | object | - | |
+| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
+| trigger | 触发下拉的行为, 移动端不支持 hover | Array<`click`\|`hover`\|`contextmenu`> | `['hover']` | |
+| visible(v-model) | 菜单是否显示 | boolean | - | |
`overlay` 菜单使用 [Menu](/components/menu-cn/),还包括菜单项 `Menu.Item`,分割线 `Menu.Divider`。
@@ -48,8 +48,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/eedWN59yJ/Dropdown.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| disabled | 菜单是否禁用 | boolean | - | |
-| loading | 设置按钮载入状态 | boolean \| { delay: number } | false | 3.0 |
| icon | 右侧的 icon | VNode \| slot | - | 1.5.0 |
+| loading | 设置按钮载入状态 | boolean \| { delay: number } | false | 3.0 |
| overlay(v-slot) | 菜单 | [Menu](/components/menu-cn/) | - | |
| placement | 菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight` | String | `bottomLeft` | |
| size | 按钮大小,和 [Button](/components/button-cn/) 一致 | string | 'default' | |
diff --git a/components/empty/index.en-US.md b/components/empty/index.en-US.md
index 33cd639ec..ca727cc4c 100644
--- a/components/empty/index.en-US.md
+++ b/components/empty/index.en-US.md
@@ -23,8 +23,8 @@ Empty state placeholder.
| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| description | Customize description | string \| v-slot | - | |
-| imageStyle | style of image | CSSProperties | - | |
| image | Customize image. Will tread as image url when string provided | string \| v-slot | false | |
+| imageStyle | style of image | CSSProperties | - | |
## Built-in images
diff --git a/components/empty/index.zh-CN.md b/components/empty/index.zh-CN.md
index 1d7c9269a..ff4561c86 100644
--- a/components/empty/index.zh-CN.md
+++ b/components/empty/index.zh-CN.md
@@ -24,8 +24,8 @@ cover: https://gw.alipayobjects.com/zos/alicdn/MNbKfLBVb/Empty.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| ----------- | -------------------------------------------- | ---------------- | ------ | ---- |
| description | 自定义描述内容 | string \| v-slot | - | |
-| imageStyle | 图片样式 | CSSProperties | - | |
| image | 设置显示图片,为 string 时表示自定义图片地址 | string \| v-slot | false | |
+| imageStyle | 图片样式 | CSSProperties | - | |
## 内置图片
diff --git a/components/form/index.en-US.md b/components/form/index.en-US.md
index a126ac500..57000e7dc 100644
--- a/components/form/index.en-US.md
+++ b/components/form/index.en-US.md
@@ -31,46 +31,44 @@ A form consists of one or more form fields whose type includes input, textarea,
| Property | Description | Type | Default Value | Version |
| --- | --- | --- | --- | --- |
-| model | data of form component | object | | |
-| rules | validation rules of form | object | | |
-| hideRequiredMark | Hide required mark of all form items | Boolean | false | |
-| layout | Define form layout | 'horizontal'\|'vertical'\|'inline' | 'horizontal' | |
-| labelAlign | text align of label of all items | 'left' \| 'right' | 'right' | |
-| labelWrap | whether label can be wrap | boolean | false | 3.0 |
-| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `
` | [object](/components/grid/#Col) | | |
-| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
| colon | change default props colon value of Form.Item (only effective when prop layout is horizontal) | boolean | true | |
-| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | true | |
+| hideRequiredMark | Hide required mark of all form items | Boolean | false | |
+| labelAlign | text align of label of all items | 'left' \| 'right' | 'right' | |
+| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `
` | [object](/components/grid/#Col) | | |
+| labelWrap | whether label can be wrap | boolean | false | 3.0 |
+| layout | Define form layout | 'horizontal'\|'vertical'\|'inline' | 'horizontal' | |
+| model | data of form component | object | | |
| name | Form name. Will be the prefix of Field `id` | string | - | 2.0.0 |
-| scrollToFirstError | Auto scroll to first failed field when submit | boolean \| [options](https://github.com/stipsan/scroll-into-view-if-needed/#options) | false | 2.0.0 |
-| validateTrigger | Config field validate trigger | string \| string[] | `change` | 2.0.0 |
| noStyle | No style for `true`, used as a pure field control | boolean | false | 3.0 |
+| rules | validation rules of form | object | | |
+| scrollToFirstError | Auto scroll to first failed field when submit | boolean \| [options](https://github.com/stipsan/scroll-into-view-if-needed/#options) | false | 2.0.0 |
+| validateOnRuleChange | whether to trigger validation when the `rules` prop is changed | boolean | true | |
+| validateTrigger | Config field validate trigger | string \| string\[] | `change` | 2.0.0 |
+| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
### Events
-| Events Name | Description | Arguments | Version |
+| Events Name | Description | Arguments | Version | |
| --- | --- | --- | --- | --- |
-| submit | Defines a function will be called if form data validation is successful. | Function(e:Event) | |
-| validate | triggers after a form item is validated | Function(name, status, errorMsgs) | | |
| finish | Trigger after submitting the form and verifying data successfully | function(values) | - | 2.0.0 |
| finishFailed | Trigger after submitting the form and verifying data failed | function({ values, errorFields, outOfDate }) | - | 2.0.0 |
+| submit | Defines a function will be called if form data validation is successful. | Function(e:Event) | | |
+| validate | triggers after a form item is validated | Function(name, status, errorMsgs) | | |
### Methods
-| Method | Description | Parameters |
+| Method | Description | Parameters | |
| --- | --- | --- | --- |
-| validate | Validate fields, it is same as validateFields | (nameList?: [NamePath](#NamePath)[]) => Promise | |
-| validateFields | Validate fields | (nameList?: [NamePath](#NamePath)[]) => Promise | |
-| scrollToField | Scroll to field position | (name: [NamePath](#NamePath), options: [[ScrollOptions](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options)]) => void | |
-| resetFields | reset all the fields and remove validation result | — |
-| clearValidate | clear validation message for certain fields. The parameter is name or an array of names of the form items whose validation messages will be removed. When omitted, all fields' validation messages will be cleared | Function(props: string \| array) |
+| clearValidate | clear validation message for certain fields. The parameter is name or an array of names of the form items whose validation messages will be removed. When omitted, all fields' validation messages will be cleared | Function(props: string \| array) | |
+| resetFields | reset all the fields and remove validation result | — | |
+| scrollToField | Scroll to field position | (name: [NamePath](#NamePath), options: \[[ScrollOptions](https://github.com/stipsan/scroll-into-view-if-needed/tree/ece40bd9143f48caf4b99503425ecb16b0ad8249#options)]) => void | |
+| validate | Validate fields, it is same as validateFields | (nameList?: [NamePath](#NamePath)\[]) => Promise | |
+| validateFields | Validate fields | (nameList?: [NamePath](#NamePath)\[]) => Promise | |
### Form.Item
| Property | Description | Type | Default Value | Version |
| --- | --- | --- | --- | --- |
-| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | string | | 2.0.0 |
-| rules | validation rules of form | object \| array | | |
| autoLink | Whether to automatically associate form fields. In most cases, you can use automatic association. If the conditions for automatic association are not met, you can manually associate them. See the notes below. | boolean | true | |
| colon | Used with `label`, whether to display `:` after label text. | boolean | true | |
| extra | The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time. | string\|slot | | |
@@ -78,13 +76,15 @@ A form consists of one or more form fields whose type includes input, textarea,
| help | The prompt message. If not provided, the prompt message will be generated by the validation rule. | string\|slot | | |
| htmlFor | Set sub label `htmlFor`. | string | | |
| label | Label text | string\|slot | | |
-| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `
` | [object](/components/grid/#Col) | | |
| labelAlign | text align of label | 'left' \| 'right' | 'right' | |
+| labelCol | The layout of label. You can set `span` `offset` to something like `{span: 3, offset: 12}` or `sm: {span: 3, offset: 12}` same as with `
` | [object](/components/grid/#Col) | | |
+| name | a key of `model`. In the use of validate and resetFields method, the attribute is required | string | | 2.0.0 |
| required | Whether provided or not, it will be generated by the validation rule. | boolean | false | |
-| validateStatus | The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating' | string | | |
-| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
+| rules | validation rules of form | object \| array | | |
| validateFirst | Whether stop validate on first rule of error for this field. | boolean | false | |
-| validateTrigger | When to validate the value of children node | string \| string[] | `change` | |
+| validateStatus | The validation status. If not provided, it will be generated by validation rule. options: 'success' 'warning' 'error' 'validating' | string | | |
+| validateTrigger | When to validate the value of children node | string \| string\[] | `change` | |
+| wrapperCol | The layout for input controls, same as `labelCol` | [object](/components/grid/#Col) | | |
### Note
@@ -107,7 +107,7 @@ But it also has some disadvantages:
```
-As above Form.Item does not know whether to collect `name="a"` or `name=`b``, you can solve this kind of problem in the following two ways:
+As above Form.Item does not know whether to collect `name="a"` or `name=`b\`\`, you can solve this kind of problem in the following two ways:
The first is to use multiple `a-form-item`:
@@ -175,7 +175,6 @@ If the form field to be monitored does not meet the conditions of automatic moni
| Property | Description | Type | Default Value |
| --- | --- | --- | --- |
-| trigger | When to validate the value of children node. | 'blur' \| 'change' \| `['change', 'blur']` | - |
| enum | validate a value from a list of possible values | string | - |
| len | validate an exact length of a field | number | - |
| max | validate a max length of a field | number | - |
@@ -184,6 +183,7 @@ If the form field to be monitored does not meet the conditions of automatic moni
| pattern | validate from a regular expression | RegExp | - |
| required | indicates whether field is required | boolean | `false` |
| transform | transform a value before validation | function(value) => transformedValue:any | - |
+| trigger | When to validate the value of children node. | 'blur' \| 'change' \| `['change', 'blur']` | - |
| type | built-in validation type, [available options](https://github.com/yiminghe/async-validator#type) | string | 'string' |
| validator | custom validate function (Note: [callback must be called](https://github.com/ant-design/ant-design/issues/5155)) | function(rule, value, callback) | - |
| whitespace | treat required fields that only contain whitespace as errors | boolean | `false` |
diff --git a/components/form/index.zh-CN.md b/components/form/index.zh-CN.md
index 4f19db28e..b5ce60db7 100644
--- a/components/form/index.zh-CN.md
+++ b/components/form/index.zh-CN.md
@@ -32,46 +32,44 @@ cover: https://gw.alipayobjects.com/zos/alicdn/ORmcdeaoO/Form.svg
| 参数 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
-| model | 表单数据对象 | object | | |
-| rules | 表单验证规则 | object | | |
+| colon | 配置 Form.Item 的 colon 的默认值 (只有在属性 layout 为 horizontal 时有效) | boolean | true | |
| hideRequiredMark | 隐藏所有表单项的必选标记 | Boolean | false | |
| labelAlign | label 标签的文本对齐方式 | 'left' \| 'right' | 'right' | |
-| labelWrap | label 标签的文本换行方式 | boolean | false | 3.0 |
| labelCol | label 标签布局,同 `