From db62b9a12e528a569e92b9ec6b469352ae2c62db Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Wed, 27 Nov 2024 23:05:45 +0800 Subject: [PATCH] docs: Supplement missing en doc (#51802) * docs(tabs): Supplement missing en doc * update snap --- components/tabs/index.en-US.md | 9 ++++++++- scripts/__snapshots__/check-site.ts.snap | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/components/tabs/index.en-US.md b/components/tabs/index.en-US.md index 17c6ac1511..df51724a2a 100644 --- a/components/tabs/index.en-US.md +++ b/components/tabs/index.en-US.md @@ -54,7 +54,7 @@ Common props ref:[Common props](/docs/react/common-props) | hideAdd | Hide plus icon or not. Only works while `type="editable-card"` | boolean | false | | | 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 | -| more | 自定义折叠菜单属性 | [MoreProps](#moreprops) | { icon: `` , trigger: 'hover' } | | +| more | Customize the collapse menu | [MoreProps](#moreprops) | { icon: `` , trigger: 'hover' } | | | 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 | - | | @@ -86,6 +86,13 @@ More option at [rc-tabs tabs](https://github.com/react-component/tabs#tabs) | children | TabPane's head display content | ReactNode | - | | | closable | Whether a close (x) button is visible, Only works while `type="editable-card"` | boolean | true | | +### MoreProps + +| Property | Description | Type | Default | Version | +| ----------------------------------------- | --------------- | --------- | ------- | ------- | +| icon | The custom icon | ReactNode | - | | +| [DropdownProps](/components/dropdown#api) | | | | | + ## Design Token diff --git a/scripts/__snapshots__/check-site.ts.snap b/scripts/__snapshots__/check-site.ts.snap index c041352260..ab9b07ebc8 100644 --- a/scripts/__snapshots__/check-site.ts.snap +++ b/scripts/__snapshots__/check-site.ts.snap @@ -228,7 +228,7 @@ exports[`site test Component components/table en Page 1`] = `9`; exports[`site test Component components/table zh Page 1`] = `9`; -exports[`site test Component components/tabs en Page 1`] = `2`; +exports[`site test Component components/tabs en Page 1`] = `3`; exports[`site test Component components/tabs zh Page 1`] = `3`;