From 77823c59322e66f5ad9e310fd05273f329a4f83c Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Thu, 2 Jun 2022 19:31:27 +0800 Subject: [PATCH] feat: tabs support popupClassName (#35892) * feat: tabs support popupClassName * docs: update --- components/tabs/index.en-US.md | 1 + components/tabs/index.zh-CN.md | 1 + package.json | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/tabs/index.en-US.md b/components/tabs/index.en-US.md index 4ec18ec47c..5628624210 100644 --- a/components/tabs/index.en-US.md +++ b/components/tabs/index.en-US.md @@ -29,6 +29,7 @@ Ant Design has 3 types of Tabs for different situations. | defaultActiveKey | Initial active TabPane's key, if `activeKey` is not set | string | - | | | hideAdd | Hide plus icon or not. Only works while `type="editable-card"` | boolean | false | | | moreIcon | The custom icon of ellipsis | ReactNode | <EllipsisOutlined /> | 4.14.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` \| `default` \| `small` | `default` | | | tabBarExtraContent | Extra content in tab bar | ReactNode \| {left?: ReactNode, right?: ReactNode} | - | object: 4.6.0 | diff --git a/components/tabs/index.zh-CN.md b/components/tabs/index.zh-CN.md index 0d33b1f814..043088dfc8 100644 --- a/components/tabs/index.zh-CN.md +++ b/components/tabs/index.zh-CN.md @@ -32,6 +32,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。 | defaultActiveKey | 初始化选中面板的 key,如果没有设置 activeKey | string | `第一个面板` | | | hideAdd | 是否隐藏加号图标,在 `type="editable-card"` 时有效 | boolean | false | | | moreIcon | 自定义折叠 icon | ReactNode | <EllipsisOutlined /> | 4.14.0 | +| popupClassName | 更多菜单的 `className` | string | - | 4.21.0 | | renderTabBar | 替换 TabBar,用于二次封装标签头 | (props: DefaultTabBarProps, DefaultTabBar: React.ComponentClass) => React.ReactElement | - | | | size | 大小,提供 `large` `default` 和 `small` 三种大小 | string | `default` | | | tabBarExtraContent | tab bar 上额外的元素 | ReactNode \| {left?: ReactNode, right?: ReactNode} | - | object: 4.6.0 | diff --git a/package.json b/package.json index 4646ccbe55..a8d50f1683 100644 --- a/package.json +++ b/package.json @@ -148,7 +148,7 @@ "rc-steps": "~4.1.0", "rc-switch": "~3.2.0", "rc-table": "~7.24.0", - "rc-tabs": "~11.15.0", + "rc-tabs": "~11.16.0", "rc-textarea": "~0.3.0", "rc-tooltip": "~5.1.1", "rc-tree": "~5.5.0",