doc: add exact type for onTabClick (#24448)

This commit is contained in:
Fullstop000 2020-05-25 17:35:24 +08:00 committed by GitHub
parent a5efa7a81a
commit 0cea6237dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。
| onEdit | 新增和删除页签的回调,在 `type="editable-card"` 时有效 | (targetKey, action): void | 无 | | onEdit | 新增和删除页签的回调,在 `type="editable-card"` 时有效 | (targetKey, action): void | 无 |
| onNextClick | next 按钮被点击的回调 | Function | 无 | | onNextClick | next 按钮被点击的回调 | Function | 无 |
| onPrevClick | prev 按钮被点击的回调 | Function | 无 | | onPrevClick | prev 按钮被点击的回调 | Function | 无 |
| onTabClick | tab 被点击的回调 | Function | 无 | | onTabClick | tab 被点击的回调 | Function(key: string, event: MouseEvent) | 无 |
| keyboard | 开启键盘切换功能 | boolean | true | | keyboard | 开启键盘切换功能 | boolean | true |
### Tabs.TabPane ### Tabs.TabPane