Skip to content

Commit a32d291

Browse files
committed
style: tabs
1 parent e6a46b4 commit a32d291

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

components/tabs/index.en-US.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Ant Design has 3 types of Tabs for different situations.
2727
| hideAdd | Hide plus icon or not. Only works while `type="editable-card"` | boolean | `false` | } |
2828
| size | preset tab bar size | `large` \| `default` \| `small` | `default` | |
2929
| tabBarGutter | The gap between tabs | number | - | |
30-
| tabBarStyle | Tab bar style object | object | - | |
30+
| tabBarStyle | Tab bar style object | CSSProperties | - | |
3131
| tabPosition | Position of tabs | `top` \| `right` \| `bottom` \| `left` | `top` | |
3232
| type | Basic style of tabs | `line` \| `card` \| `editable-card` | `line` | |
3333

@@ -46,7 +46,7 @@ Ant Design has 3 types of Tabs for different situations.
4646
| Events Name | Description | Arguments |
4747
| --- | --- | --- |
4848
| 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 |
5050
| nextClick | Callback executed when next button is clicked | Function |
5151
| prevClick | Callback executed when prev button is clicked | Function |
5252
| tabClick | Callback executed when tab is clicked | Function |

components/tabs/index.zh-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
3131
| hideAdd | 是否隐藏加号图标,在 `type="editable-card"` 时有效 | boolean | false | | |
3232
| size | 大小,提供 `large` `default``small` 三种大小 | string | `default` | | |
3333
| tabBarGutter | tabs 之间的间隙 | number || | |
34-
| tabBarStyle | tab bar 的样式对象 | object | - | | |
34+
| tabBarStyle | tab bar 的样式对象 | CSSProperties | - | | |
3535
| tabPosition | 页签位置,可选值有 `top` `right` `bottom` `left` | string | `top` | | |
3636
| type | 页签的基本样式,可选 `line``card` `editable-card` 类型 | string | `line` | | |
3737

@@ -50,7 +50,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
5050
| 事件名称 | 说明 | 回调参数 |
5151
| --- | --- | --- |
5252
| change | 切换面板的回调 | Function(activeKey) {} |
53-
| edit | 新增和删除页签的回调,在 `type="editable-card"` 时有效 | (targetKey, action): void |
53+
| edit | 新增和删除页签的回调,在 `type="editable-card"` 时有效 | (action === 'add' ? event : targetKey, action): void |
5454
| tabClick | tab 被点击的回调 | Function |
5555
| tabScroll | 滚动 TabBar 是触发 | { direction: 'left' \| 'right' \| 'top' \| 'bottom' } |
5656

components/tabs/style/index.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
.reset-component();
1313

1414
display: flex;
15-
overflow: hidden;
1615

1716
// ========================== Navigation ==========================
1817
> .@{tab-prefix-cls}-nav,

0 commit comments

Comments
 (0)