Skip to content

Commit

Permalink
feat: Tabs support indicatorLength (ant-design#44406)
Browse files Browse the repository at this point in the history
* feat: Tabs support indicatorLength

* chore: bump rc-menu

* chore: bump rc-mentions

* chore: update menu snapshot

* chore: snapshot

---------

Signed-off-by: MadCcc <[email protected]>
  • Loading branch information
MadCcc authored Aug 29, 2023
1 parent 230231a commit 07c03d1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5269,6 +5269,7 @@ Array [
</div>
<li
class="ant-dropdown-menu-item-divider"
role="separator"
/>
<li
aria-disabled="true"
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,7 @@ Array [
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"
Expand Down
1 change: 1 addition & 0 deletions components/menu/__tests__/__snapshots__/demo.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,7 @@ Array [
</li>
<li
class="ant-menu-item-divider"
role="separator"
/>
<li
class="ant-menu-submenu ant-menu-submenu-inline"
Expand Down
2 changes: 2 additions & 0 deletions components/menu/__tests__/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions components/tabs/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
1 change: 1 addition & 0 deletions components/tabs/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 07c03d1

Please sign in to comment.