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>
This commit is contained in:
MadCcc 2023-08-29 17:32:20 +08:00 committed by GitHub
parent 230231adbb
commit 07c03d12ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 11 additions and 3 deletions

View File

@ -5269,6 +5269,7 @@ Array [
</div>
<li
class="ant-dropdown-menu-item-divider"
role="separator"
/>
<li
aria-disabled="true"
@ -9261,6 +9262,7 @@ Array [
</div>
<li
class="ant-dropdown-menu-item-divider"
role="separator"
/>
<li
class="ant-dropdown-menu-item ant-dropdown-menu-item-only-child"

View File

@ -2549,6 +2549,7 @@ Array [
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"

View File

@ -955,6 +955,7 @@ Array [
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"

View File

@ -229,6 +229,7 @@ exports[`Menu all types must be available in the "items" syntax 1`] = `
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-item-group"
@ -260,6 +261,7 @@ exports[`Menu all types must be available in the "items" syntax 1`] = `
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline ant-menu-submenu-open"

View File

@ -52,6 +52,7 @@ Common props ref[Common props](/docs/react/common-props)
| centered | Centers tabs | boolean | false | 4.4.0 |
| 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 | |
| indicatorLength | Customize length of indicator, which is the same as tab by default | number \| (origin: number) => number | - | 5.9.0 |
| items | Configure tab content | [TabItemType](#tabitemtype) | [] | 4.23.0 |
| moreIcon | The custom icon of ellipsis | ReactNode | &lt;EllipsisOutlined /> | 4.14.0 |
| popupClassName | `className` for more dropdown. | string | - | 4.21.0 |

View File

@ -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 | &lt;EllipsisOutlined /> | 4.14.0 |
| popupClassName | 更多菜单的 `className` | string | - | 4.21.0 |

View File

@ -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",