From 07c03d12ef630fb72065eb811ef6beeace93ae7b Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Tue, 29 Aug 2023 17:32:20 +0800 Subject: [PATCH] feat: Tabs support indicatorLength (#44406) * feat: Tabs support indicatorLength * chore: bump rc-menu * chore: bump rc-mentions * chore: update menu snapshot * chore: snapshot --------- Signed-off-by: MadCcc <1075746765@qq.com> --- .../__tests__/__snapshots__/demo-extend.test.ts.snap | 2 ++ .../menu/__tests__/__snapshots__/demo-extend.test.ts.snap | 1 + components/menu/__tests__/__snapshots__/demo.test.tsx.snap | 1 + components/menu/__tests__/__snapshots__/index.test.tsx.snap | 2 ++ components/tabs/index.en-US.md | 1 + components/tabs/index.zh-CN.md | 1 + package.json | 6 +++--- 7 files changed, 11 insertions(+), 3 deletions(-) diff --git a/components/dropdown/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/dropdown/__tests__/__snapshots__/demo-extend.test.ts.snap index 25f048899e29..faeba1ed6aa9 100644 --- a/components/dropdown/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/dropdown/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -5269,6 +5269,7 @@ Array [
  • number | - | 5.9.0 | | items | Configure tab content | [TabItemType](#tabitemtype) | [] | 4.23.0 | | moreIcon | The custom icon of ellipsis | ReactNode | <EllipsisOutlined /> | 4.14.0 | | popupClassName | `className` for more dropdown. | string | - | 4.21.0 | diff --git a/components/tabs/index.zh-CN.md b/components/tabs/index.zh-CN.md index e6f60916bb1a..0f415ba72eda 100644 --- a/components/tabs/index.zh-CN.md +++ b/components/tabs/index.zh-CN.md @@ -54,6 +54,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。 | centered | 标签居中展示 | boolean | false | 4.4.0 | | defaultActiveKey | 初始化选中面板的 key,如果没有设置 activeKey | string | `第一个面板` | | | hideAdd | 是否隐藏加号图标,在 `type="editable-card"` 时有效 | boolean | false | | +| indicatorLength | 自定义指示条长度,默认与 tab 等宽 | number \| (origin: number) => number | - | 5.9.0 | | items | 配置选项卡内容 | [TabItemType](#tabitemtype) | [] | 4.23.0 | | moreIcon | 自定义折叠 icon | ReactNode | <EllipsisOutlined /> | 4.14.0 | | popupClassName | 更多菜单的 `className` | string | - | 4.21.0 | diff --git a/package.json b/package.json index 66d67e444d80..8d35ebc5b6db 100644 --- a/package.json +++ b/package.json @@ -133,8 +133,8 @@ "rc-image": "~7.2.0", "rc-input": "~1.1.0", "rc-input-number": "~8.0.2", - "rc-mentions": "~2.5.0", - "rc-menu": "~9.10.0", + "rc-mentions": "~2.6.0", + "rc-menu": "~9.11.0", "rc-motion": "^2.7.3", "rc-notification": "~5.0.4", "rc-pagination": "~3.6.0", @@ -148,7 +148,7 @@ "rc-steps": "~6.0.1", "rc-switch": "~4.1.0", "rc-table": "~7.33.1", - "rc-tabs": "~12.9.0", + "rc-tabs": "~12.11.0", "rc-textarea": "~1.3.3", "rc-tooltip": "~6.0.0", "rc-tree": "~5.7.6",