mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
refactor: refactor closeIcon (#43098)
This commit is contained in:
parent
785115c580
commit
18ffb0099c
@ -72,8 +72,7 @@ More option at [rc-tabs tabs](https://github.com/react-component/tabs#tabs)
|
||||
|
||||
| Property | Description | Type | Default |
|
||||
| --- | --- | --- | --- |
|
||||
| closable | Set tab closable. Only works while `type="editable-card"` | boolean | true |
|
||||
| closeIcon | Customize close icon in TabPane's head. Only works while `type="editable-card"` | ReactNode | - |
|
||||
| closeIcon | Customize close icon in TabPane's head. Only works while `type="editable-card"`. 5.7.0: close button will be hidden when setting to `null` or `false` | boolean \| ReactNode | - |
|
||||
| closable | Whether the Tab can be closed, Only works while `type="editable-card"` | boolean | true |
|
||||
| disabled | Set TabPane disabled | boolean | false |
|
||||
| forceRender | Forced render of content in tabs, not lazy render after clicking on tabs | boolean | false |
|
||||
|
@ -72,15 +72,14 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
|
||||
|
||||
### TabItemType
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| ----------- | -------------------------------------------------------- | --------- | ------ |
|
||||
| closeIcon | 自定义关闭图标,在 `type="editable-card"` 时有效 | ReactNode | - |
|
||||
| closable | 当前选项卡是否可被关闭,在 `type="editable-card"` 时有效 | boolean | true |
|
||||
| disabled | 禁用某一项 | boolean | false |
|
||||
| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false |
|
||||
| key | 对应 activeKey | string | - |
|
||||
| label | 选项卡头显示文字 | ReactNode | - |
|
||||
| children | 选项卡头显示内容 | ReactNode | - |
|
||||
| 参数 | 说明 | 类型 | 默认值 |
|
||||
| --- | --- | --- | --- |
|
||||
| closeIcon | 自定义关闭图标,在 `type="editable-card"` 时有效。5.7.0:设置为 `null` 或 `false` 时隐藏关闭按钮 | boolean \| ReactNode | - |
|
||||
| disabled | 禁用某一项 | boolean | false |
|
||||
| forceRender | 被隐藏时是否渲染 DOM 结构 | boolean | false |
|
||||
| key | 对应 activeKey | string | - |
|
||||
| label | 选项卡头显示文字 | ReactNode | - |
|
||||
| children | 选项卡头显示内容 | ReactNode | - |
|
||||
|
||||
## Design Token
|
||||
|
||||
|
@ -147,7 +147,7 @@
|
||||
"rc-steps": "~6.0.0",
|
||||
"rc-switch": "~4.1.0",
|
||||
"rc-table": "~7.32.1",
|
||||
"rc-tabs": "~12.7.0",
|
||||
"rc-tabs": "~12.8.1",
|
||||
"rc-textarea": "~1.3.0",
|
||||
"rc-tooltip": "~6.0.0",
|
||||
"rc-tree": "~5.7.4",
|
||||
|
Loading…
Reference in New Issue
Block a user