Repository navigation
chore: upgrade rc Dropdown and Tabs dependencies - #59259
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 ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
👁 Visual Regression Report for PR #59259 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 568 bytes (0.02%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: antd.min-array-pushAssets Changed:
|
Deploying ant-design with
|
| Latest commit: |
c1f9c9e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f51267dc.ant-design.pages.dev |
| Branch Preview URL: | https://upgrade-rc-dropdown-tabs.ant-design.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## feature #59259 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 834 834
Lines 16077 16087 +10
Branches 4245 4251 +6
=========================================
+ Hits 16077 16087 +10 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|


🤔 这个变动的性质是?
🔗 相关 Issue
N/A
💡 需求背景和解决方案
升级
@rc-component/dropdown和@rc-component/tabs至 2.0,并对齐相关 Menu 与 Mentions 依赖。兼容策略:
@rc-component/table继续保持~1.11.1。Table 1.12 带来的新能力及对应适配应由独立 PR 处理,避免扩大本次依赖升级范围。DropdownProps原本只支持open/onOpenChange,不接受visible/onVisibleChange,因此不存在需要保留的公开旧 API。本次只将 antd 内部调用切换到 rc Dropdown 2.0 的新属性。more直接继承 rc Tabs 的MoreProps,升级前会公开接受visible/onVisibleChange。为避免破坏已有调用,在 antd 层保留旧属性类型并标记废弃,在运行时映射到open/onOpenChange;同时保证新属性优先。验证结果:
git diff --check通过📝 更新日志
more.visibleandmore.onVisibleChangeproperties.more.visible和more.onVisibleChange的兼容。