mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
parent
aeeebab9d9
commit
2c95ea0e5e
@ -30,7 +30,7 @@ Ant Design has 3 types of Tabs for different situations.
|
||||
| tabBarStyle | Tab bar style object | object | - |
|
||||
| tabPosition | Position of tabs | `top` \| `right` \| `bottom` \| `left` | `top` |
|
||||
| type | Basic style of tabs | `line` \| `card` \| `editable-card` | `line` |
|
||||
| onChange | Callback executed when active tab is changed | Function | - |
|
||||
| onChange | Callback executed when active tab is changed | Function(activeKey) {} | - |
|
||||
| onEdit | Callback executed when tab is added or removed. Only works while `type="editable-card"` | (targetKey, action): void | - |
|
||||
| onNextClick | Callback executed when next button is clicked | Function | - |
|
||||
| onPrevClick | Callback executed when prev button is clicked | Function | - |
|
||||
|
@ -33,7 +33,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
|
||||
| tabBarStyle | tab bar 的样式对象 | object | - |
|
||||
| tabPosition | 页签位置,可选值有 `top` `right` `bottom` `left` | string | 'top' |
|
||||
| type | 页签的基本样式,可选 `line`、`card` `editable-card` 类型 | string | 'line' |
|
||||
| onChange | 切换面板的回调 | Function | 无 |
|
||||
| onChange | 切换面板的回调 | Function(activeKey) {} | 无 |
|
||||
| onEdit | 新增和删除页签的回调,在 `type="editable-card"` 时有效 | (targetKey, action): void | 无 |
|
||||
| onNextClick | next 按钮被点击的回调 | Function | 无 |
|
||||
| onPrevClick | prev 按钮被点击的回调 | Function | 无 |
|
||||
|
Loading…
Reference in New Issue
Block a user