You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/tabs/index.en-US.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Ant Design has 3 types of Tabs for different situations.
27
27
| hideAdd | Hide plus icon or not. Only works while `type="editable-card"`| boolean |`false`| } |
28
28
| size | preset tab bar size |`large`\|`default`\|`small`|`default`||
29
29
| tabBarGutter | The gap between tabs | number | - ||
30
-
| tabBarStyle | Tab bar style object |object| - ||
30
+
| tabBarStyle | Tab bar style object |CSSProperties| - ||
31
31
| tabPosition | Position of tabs |`top`\|`right`\|`bottom`\|`left`|`top`||
32
32
| type | Basic style of tabs |`line`\|`card`\|`editable-card`|`line`||
33
33
@@ -46,7 +46,7 @@ Ant Design has 3 types of Tabs for different situations.
46
46
| Events Name | Description | Arguments |
47
47
| --- | --- | --- |
48
48
| change | Callback executed when active tab is changed | Function(activeKey) {} |
49
-
| edit | Callback executed when tab is added or removed. Only works while `type="editable-card"`| (targetKey, action): void |
49
+
| edit | Callback executed when tab is added or removed. Only works while `type="editable-card"`| (action === 'add' ? event : targetKey, action): void |
50
50
| nextClick | Callback executed when next button is clicked | Function |
51
51
| prevClick | Callback executed when prev button is clicked | Function |
52
52
| tabClick | Callback executed when tab is clicked | Function |
0 commit comments