From 9bf2b2c0d6fb4858557aa4274c6e9a389f0cab87 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Wed, 7 Feb 2024 11:23:57 +0800 Subject: [PATCH] docs: update Tabs api description (#47356) * docs: update Tabs description * Update components/tabs/index.en-US.md Co-authored-by: MadCcc Signed-off-by: lijianan <574980606@qq.com> * Update components/tabs/index.en-US.md Co-authored-by: MadCcc Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: MadCcc --- components/tabs/index.en-US.md | 4 ++-- components/tabs/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/tabs/index.en-US.md b/components/tabs/index.en-US.md index 1cb4b0dac4..dac76674b7 100644 --- a/components/tabs/index.en-US.md +++ b/components/tabs/index.en-US.md @@ -48,7 +48,7 @@ Common props ref:[Common props](/docs/react/common-props) | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | | activeKey | Current TabPane's key | string | - | | -| addIcon | Customize add icon | ReactNode | `` | 4.4.0 | +| addIcon | Customize add icon, only works with `type="editable-card"` | ReactNode | `` | 4.4.0 | | animated | Whether to change tabs with animation. | boolean \| { inkBar: boolean, tabPane: boolean } | { inkBar: true, tabPane: false } | | | centered | Centers tabs | boolean | false | 4.4.0 | | defaultActiveKey | Initial active TabPane's key, if `activeKey` is not set | string | - | | @@ -56,7 +56,7 @@ Common props ref:[Common props](/docs/react/common-props) | indicator | Customize `size` and `align` of indicator | { size?: number \| (origin: number) => number; align: `start` \| `center` \| `end`; } | - | 5.13.0 | | items | Configure tab content | [TabItemType](#tabitemtype) | [] | 4.23.0 | | moreIcon | The custom icon of ellipsis | ReactNode | `` | 4.14.0 | -| removeIcon | The custom icon of remove | ReactNode | `` | 5.15.0 | +| removeIcon | The custom icon of remove, only works with `type="editable-card"` | ReactNode | `` | 5.15.0 | | popupClassName | `className` for more dropdown. | string | - | 4.21.0 | | renderTabBar | Replace the TabBar | (props: DefaultTabBarProps, DefaultTabBar: React.ComponentClass) => React.ReactElement | - | | | size | Preset tab bar size | `large` \| `middle` \| `small` | `middle` | | diff --git a/components/tabs/index.zh-CN.md b/components/tabs/index.zh-CN.md index 2fbb883f6d..f0c9a6573b 100644 --- a/components/tabs/index.zh-CN.md +++ b/components/tabs/index.zh-CN.md @@ -50,7 +50,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。 | 参数 | 说明 | 类型 | 默认值 | 版本 | | --- | --- | --- | --- | --- | | activeKey | 当前激活 tab 面板的 key | string | - | | -| addIcon | 自定义添加按钮 | ReactNode | `` | 4.4.0 | +| addIcon | 自定义添加按钮,设置 `type="editable-card"` 时有效 | ReactNode | `` | 4.4.0 | | animated | 是否使用动画切换 Tabs | boolean\| { inkBar: boolean, tabPane: boolean } | { inkBar: true, tabPane: false } | | | centered | 标签居中展示 | boolean | false | 4.4.0 | | defaultActiveKey | 初始化选中面板的 key,如果没有设置 activeKey | string | `第一个面板` | | @@ -58,7 +58,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。 | indicator | 自定义指示条的长度和对齐方式 | { size?: number \| (origin: number) => number; align: `start` \| `center` \| `end`; } | - | 5.13.0 | | items | 配置选项卡内容 | [TabItemType](#tabitemtype) | [] | 4.23.0 | | moreIcon | 自定义折叠 icon | ReactNode | `` | 4.14.0 | -| removeIcon | 自定义删除 icon | ReactNode | `` | 5.15.0 | +| removeIcon | 自定义删除按钮,设置 `type="editable-card"` 时有效 | ReactNode | `` | 5.15.0 | | popupClassName | 更多菜单的 `className` | string | - | 4.21.0 | | renderTabBar | 替换 TabBar,用于二次封装标签头 | (props: DefaultTabBarProps, DefaultTabBar: React.ComponentClass) => React.ReactElement | - | | | size | 大小,提供 `large` `middle` 和 `small` 三种大小 | string | `middle` | |