chore: upgrade dropdown demo to v2 - #1514
Conversation
|
@QDyanbing is attempting to deploy a commit to the afc163's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. Walkthrough升级下拉菜单依赖,并将下拉菜单示例从 Changes下拉菜单 API 迁移
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to The documentation dropdown example now uses the Dropdown 2.0 controlled open API and closes correctly after filter confirmation. No merge-blocking risk is evident. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Warning Some tools did not complete. Review the errors below. 🔧 ESLint
ESLint install timed out. The project may have too many dependencies for the sandbox. 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 |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1514 +/- ##
=======================================
Coverage 99.08% 99.08%
=======================================
Files 45 45
Lines 1426 1426
Branches 432 432
=======================================
Hits 1413 1413
Misses 13 13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
将开发依赖
@rc-component/dropdown升级为^2.0.0,并将下拉筛选示例中的visible、onVisibleChange及对应状态名称统一迁移为open、onOpenChange,适配 Dropdown 2.0 移除旧 API 的变更。Dropdown 仅用于文档示例,本次不改变 Table 的运行时依赖和对外 API。
验证
@rc-component/dropdown@2.0.0。关联:react-component/dropdown#269。
Summary by CodeRabbit
open和onOpenChange管理及监听展开状态。