New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update Tabs api #27410
docs: update Tabs api #27410
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7b2311e:
|
Codecov Report
@@ Coverage Diff @@
## master #27410 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 389 389
Lines 7383 7383
Branches 2076 2079 +3
=========================================
Hits 7383 7383 Continue to review full report at Codecov.
|
components/tabs/index.zh-CN.md
Outdated
@@ -34,7 +34,7 @@ Ant Design 依次提供了三级选项卡,分别用于不同的场景。 | |||
| keyboard | 开启键盘切换功能 | boolean | true | | | | |||
| renderTabBar | 替换 TabBar,用于二次封装标签头 | (props: DefaultTabBarProps, DefaultTabBar: React.ComponentClass) => React.ReactElement | - | | | | |||
| size | 大小,提供 `large` `default` 和 `small` 三种大小 | string | `default` | | | | |||
| tabBarExtraContent | tab bar 上额外的元素 | ReactNode \| {left?: ReactNode, right?: ReactNode} | - | | | | |||
| tabBarExtraContent | tab bar 上额外的元素 | ReactNode \| {left?: ReactNode, right?: ReactNode} | - | 4.6.0 | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本后面那个 可以删了
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像发现, 之前animated
(zh-CN) 书写上有点问题, 在这里我也改下
components/tabs/index.zh-CN.md
Outdated
| --- | --- | --- | --- | --- | | ||
| activeKey | 当前激活 tab 面板的 key | string | - | | | ||
| addIcon | 自定义添加按钮 | ReactNode | - | 4.4.0 | | ||
| animated | 是否使用动画切换 Tabs, 仅生效于 \`tabPosition="top" | boolean \| { inkBar: boolean, tabPane: boolean } | `{ inkBar: true, tabPane: false }` | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| animated | 是否使用动画切换 Tabs, 仅生效于 \`tabPosition="top" | boolean \| { inkBar: boolean, tabPane: boolean } | `{ inkBar: true, tabPane: false }` | | | |
| animated | 是否使用动画切换 Tabs, 仅生效于 \`tabPosition="top" | boolean \| { inkBar: boolean, tabPane: boolean } | { inkBar: true, tabPane: false } | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@xrkffgg 刚有个地方没注意! |
-- 4.6.0
++ object: 4.6.0 再来个 PR |
* docs: update api * Update index.zh-CN.md * fix * fix * suggestion
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self Check before Merge