Skip to content

chore: upgrade rc Dropdown and Tabs dependencies - #59259

Merged
zombieJ merged 4 commits into
featurefrom
upgrade-rc-dropdown-tabs
Sep 10, 2026
Merged

zombieJ merged 4 commits into
featurefrom
upgrade-rc-dropdown-tabs

Conversation

@QDyanbing

Copy link
Copy Markdown
Member

🤔 这个变动的性质是?

  • 🆕 新特性提交
  • 🐞 Bug 修复
  • 📝 站点、文档改进
  • 📽️ 演示代码改进
  • 💄 组件样式/交互改进
  • 🤖 TypeScript 定义更新
  • 📦 包体积优化
  • ⚡️ 性能优化
  • ⭐️ 功能增强
  • 🌐 国际化改进
  • 🛠 重构
  • 🎨 代码风格优化
  • ✅ 测试用例
  • 🔀 分支合并
  • ⏩ 工作流程
  • ⌨️ 无障碍改进
  • ❓ 其他改动(升级 rc-component 依赖)

🔗 相关 Issue

N/A

💡 需求背景和解决方案

升级 @rc-component/dropdown 和 @rc-component/tabs 至 2.0,并对齐相关 Menu 与 Mentions 依赖。

兼容策略:

  • Table 不在本 PR 中升级,@rc-component/table 继续保持 ~1.11.1。Table 1.12 带来的新能力及对应适配应由独立 PR 处理,避免扩大本次依赖升级范围。
  • Dropdown 对外导出的 DropdownProps 原本只支持 open/onOpenChange,不接受 visible/onVisibleChange,因此不存在需要保留的公开旧 API。本次只将 antd 内部调用切换到 rc Dropdown 2.0 的新属性。
  • Tabs 的 more 直接继承 rc Tabs 的 MoreProps,升级前会公开接受 visible/onVisibleChange。为避免破坏已有调用,在 antd 层保留旧属性类型并标记废弃,在运行时映射到 open/onOpenChange;同时保证新属性优先。
  • Tabs 2.0 依赖 Menu 1.6。Mentions 1.13 仅将其 Menu 依赖同步到 1.6,因此一并升级 Menu 和 Mentions,避免安装两份不同版本的 Menu。

验证结果:

  • Dropdown、Tabs、Menu、Mentions:126 个测试及 14 个快照通过
  • TypeScript 检查通过
  • ESLint、Markdown 检查及 git diff --check 通过
  • rc Dropdown、Tabs、Menu 和 Mentions 依赖树已去重

📝 更新日志

语言 更新描述
🇺🇸 英文 🤖 Upgrade Tabs dependencies while preserving compatibility with deprecated more.visible and more.onVisibleChange properties.
🇨🇳 中文 🤖 升级 Tabs 相关依赖,并保留对废弃属性 more.visible 和 more.onVisibleChange 的兼容。

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@coderabbitai

coderabbitai Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 42a74cf7-2af2-4d91-949f-b5b26bc1774c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

👁 Visual Regression Report for PR #59259 Passed ✅

🎯 Target branch: feature (0530518)
📖 View Full Report ↗︎
📖 Alternative Report ↗︎

🎊 Congrats! No visual-regression diff found.

📖 中文报告

👁 PR #59259 视觉回归报告 通过 ✅

🎯 目标分支: feature (0530518)

🎊 恭喜!未发现视觉回归差异。

@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Preview is ready

@socket-security

socket-security Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​rc-component/​dropdown@​2.0.09910010087100
Addednpm/​@​rc-component/​menu@​1.6.09810010095100
Addednpm/​@​rc-component/​mentions@​1.13.09910010095100
Addednpm/​@​rc-component/​tabs@​2.0.09810010096100

View full report

@github-actions

github-actions Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
dist/antd.min.js 445.08 KB (+116 B 🔺)
dist/antd-with-locales.min.js 534.47 KB (+121 B 🔺)

@pkg-pr-new

pkg-pr-new Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
More templates

npm i https://pkg.pr.new/antd@59259

commit: c1f9c9e

@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 568 bytes (0.02%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
antd.min-array-push 3.26MB 568 bytes (0.02%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: antd.min-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
antd-with-locales.min.js 284 bytes 1.82MB 0.02%
antd.min.js 284 bytes 1.43MB 0.02%

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Deploying ant-design with  Cloudflare Pages  Cloudflare Pages

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

View logs

@codecov

codecov Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0530518) to head (c1f9c9e).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zombieJ
zombieJ merged commit 6e517e3 into feature Sep 10, 2026
46 checks passed
@zombieJ
zombieJ deleted the upgrade-rc-dropdown-tabs branch September 10, 2026 02:24
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