Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Conversation

Fog3211
Copy link
Contributor

@Fog3211 Fog3211 commented Aug 12, 2023

No description provided.

@Fog3211
Copy link
Contributor Author

Fog3211 commented Aug 12, 2023

#6081

@github-actions
Copy link
Contributor

PR preview has been successfully built and deployed to https://antd-mobile-preview-pr-6313.surge.sh

@1587315093
Copy link
Contributor

test挂了~

@Fog3211
Copy link
Contributor Author

Fog3211 commented Aug 12, 2023

没搞过快照测试,我先学习一下再提一次pr

@@ -27,6 +29,7 @@
| defaultActiveKey | 初始化选中面板的 `key`,如果没有设置 `activeKey` | `string \| null` | 第一个面板的 `key` |
| onChange | 切换面板的回调 | `(key: string) => void` | - |
| stretch | 选项卡头部是否拉伸 | `boolean` | `true` |
| rtl | 从右到左排版 | `boolean` | `false` |
Copy link
Contributor

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
Copy link

codecov bot commented Aug 12, 2023

Codecov Report

Patch coverage: 47.05% and project coverage change: -0.11% ⚠️

Comparison is base (e1fd659) 91.56% compared to head (455bfbb) 91.46%.

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     
Files Changed Coverage Δ
src/components/tabs/tabs.tsx 90.47% <47.05%> (-5.96%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Fog3211
Copy link
Contributor Author

Fog3211 commented Aug 13, 2023

#6314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants