feat(Space): unify orientation attribute usage#53669
feat(Space): unify orientation attribute usage#53669zombieJ merged 16 commits intoant-design:nextfrom
Conversation
|
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
👁 Visual Regression Report for PR #53669 Failed ❌
Important There are 6 diffs found in this PR: 🔄
|
WalkthroughThis pull request introduces a new feature by adding the 'orientation' attribute to Space components, allowing for orientation configuration. The change aims to unify the use of orientation attributes across the components. Changes
|
More templates
commit: |
Bundle ReportChanges will decrease total bundle size by 7.76MB (-67.41%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #53669 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 788 788
Lines 14309 14316 +7
Branches 3784 3785 +1
=========================================
+ Hits 14309 14316 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
422f569 to
e8de865
Compare
1289792 to
77cab38
Compare
7eca1cc to
ab0158e
Compare
components/space/__tests__/__snapshots__/demo-extend.test.ts.snap
Outdated
Show resolved
Hide resolved
components/card/demo/basic.tsx
Outdated
|
|
||
| const App: React.FC = () => ( | ||
| <Space direction="vertical" size={16}> | ||
| <Space orientation="vertical" size={16}> |
There was a problem hiding this comment.
非 Space 的 Demo 里直接换成 vertical 吧,简单一些。
c58705b to
5b16141
Compare
|
|
||
| return ( | ||
| <Space direction="vertical" style={{ display: 'flex' }}> | ||
| <Space vertical style={{ display: 'flex' }}> |
|
|
||
| return ( | ||
| <Space direction="vertical" style={{ display: 'flex' }}> | ||
| <Space vertical style={{ display: 'flex' }}> |
|
|
||
| return ( | ||
| <Space direction="vertical" style={{ display: 'flex' }}> | ||
| <Space vertical> |
Co-authored-by: thinkasany <480968828@qq.com> Signed-off-by: EmilyyyLiu <100924403+EmilyyyLiu@users.noreply.github.com>
136b9c4 to
a5a7205
Compare
Signed-off-by: thinkasany <480968828@qq.com>
Signed-off-by: thinkasany <480968828@qq.com>
| size?: SizeType; | ||
| direction?: 'horizontal' | 'vertical'; | ||
| /** @deprecated please use `orientation` instead */ | ||
| direction?: Orientation; |




















🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
FRC #53328
📝 Change Log