feat(Splitter): unify orientation attribute usage#53670
feat(Splitter): unify orientation attribute usage#53670thinkasany merged 9 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 ✨ Finishing Touches🧪 Generate Unit Tests
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 #53670 Passed ✅
🎊 Congrats! No visual-regression diff found. |
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 284 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
91a9917 to
e3dcde2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## next #53670 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 788 788
Lines 14304 14304
Branches 3786 3785 -1
=========================================
Hits 14304 14304 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
237c468 to
ef33cc8
Compare
9517417 to
4dd995c
Compare
components/splitter/demo/vertical.md
Outdated
| ## en-US | ||
|
|
||
| Use vertical layout. | ||
| Use `vertical` or `orientation`. |
components/splitter/index.en-US.md
Outdated
| | onResizeStart | Callback before dragging starts | `(sizes: number[]) => void` | - | - | | ||
| | onResize | Panel size change callback | `(sizes: number[]) => void` | - | - | | ||
| | onResizeEnd | Drag end callback | `(sizes: number[]) => void` | - | - | | ||
| | ~~layout~~ | Layout direction | `horizontal` \| `vertical` | `horizontal` | - | |
components/splitter/index.en-US.md
Outdated
| | collapsibleIcon | custom collapsible icon | `{start: ReactNode; end: ReactNode}` | - | 6.0.0 | | ||
| | draggerIcon | custom dragger icon | `ReactNode` | - | 6.0.0 | | ||
| | classNames | Semantic structure className | [Record<SemanticDOM, string>](#semantic-dom) | - | 6.0.0 | | ||
| | orientation | Layout direction | `horizontal` \| `vertical` | `horizontal` | | |
b567a0b to
1706d28
Compare
components/splitter/interface.ts
Outdated
| rootClassName?: string; | ||
| layout?: 'horizontal' | 'vertical'; | ||
| /** | ||
| * @deprecated please use orientation |
There was a problem hiding this comment.
| * @deprecated please use orientation | |
| * @deprecated please use `orientation` |
a579b3b to
e2be9ac
Compare
components/splitter/Splitter.tsx
Outdated
| ); | ||
| } | ||
|
|
||
| warning(!layout, 'deprecated', '`layout` is deprecated. Please use `orientation` instead'); |
| exports[`renders components/splitter/demo/collapsible.tsx extend context correctly 2`] = `[]`; | ||
| exports[`renders components/splitter/demo/collapsible.tsx extend context correctly 2`] = ` | ||
| [ | ||
| "Warning: [antd: Splitter] \`layout\` is deprecated. Please use \`orientation\` instead", |
There was a problem hiding this comment.
这种也应该是调整 demo 中使用的 api 吧, 不然用户参考了文档用废弃的 api,又出现 warning,有点奇怪..
🤔 This is a ...
🔗 Related Issues
💡 Background and Solution
FRC #53328
📝 Change Log