-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(tabs): support RTL mode #6313
Conversation
PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6313.surge.sh |
test挂了~ |
没搞过快照测试,我先学习一下再提一次pr |
src/components/tabs/index.zh.md
Outdated
@@ -27,6 +29,7 @@ | |||
| defaultActiveKey | 初始化选中面板的 `key`,如果没有设置 `activeKey` | `string \| null` | 第一个面板的 `key` | | |||
| onChange | 切换面板的回调 | `(key: string) => void` | - | | |||
| stretch | 选项卡头部是否拉伸 | `boolean` | `true` | | |||
| rtl | 从右到左排版 | `boolean` | `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.
rtl并不是key,而是一个value
key应该是dir (direction)
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #6313 +/- ##
==========================================
- Coverage 91.56% 91.46% -0.11%
==========================================
Files 306 306
Lines 6591 6605 +14
Branches 1627 1634 +7
==========================================
+ Hits 6035 6041 +6
- Misses 521 528 +7
- Partials 35 36 +1
☔ View full report in Codecov by Sentry. |
No description provided.