Repository navigation
Conversation
|
|
👁 Visual Regression Report for PR #59592 Passed ✅
🎊 Congrats! No visual-regression diff found.
|
|
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 configuration
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 |
size-limit report 📦
|
More templates
commit: |
Bundle ReportChanges will increase total bundle size by 146 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:
|
Deploying ant-design with
|
| Latest commit: |
e9eea74
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://14848730.ant-design.pages.dev |
| Branch Preview URL: | https://feat-tree-select-global-allo.ant-design.pages.dev |



English Template / 英文模板
🤔 这个变动的性质是?
🔗 相关 Issue
关联 #59540(本 PR 仅补充 TreeSelect 的全局清除配置)。
RFC: #59553
💡 需求背景和解决方案
TreeSelect 的清除按钮此前只能通过组件属性配置,无法在 ConfigProvider 中统一设置。本 PR 为现有
treeSelect配置补充allowClear,支持clearIcon、disabled、tabIndex和label。按组件属性、全局配置、默认值的顺序逐字段取值。组件的
allowClear={false}关闭清除按钮;allowClear={true}继承全局对象,disabled: false和tabIndex: 0可显式覆盖全局字段。同步补充中英文 API 文档。验证:相关 3 个 Jest 测试套件、49 项测试和 2 个快照通过;全量 TypeScript、ESLint、Biome、文档及格式检查通过。覆盖全局字段继承、局部覆盖、嵌套 ConfigProvider 继承及动态更新;CR 未发现需修复问题。
📝 更新日志
allowClearconfiguration for TreeSelect.allowClear全局配置,支持通过 ConfigProvider 统一设置。