Repository navigation
feat: unify allowClear configuration - #341
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
WalkthroughMentions 现在通过 Changes清除配置处理
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature 建议评审者: Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #341 +/- ##
=======================================
Coverage 98.36% 98.36%
=======================================
Files 8 8
Lines 305 306 +1
Branches 83 83
=======================================
+ Hits 300 301 +1
Misses 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
改动说明
将
@rc-component/input的最低依赖版本升级为~1.4.1,并接入@rc-component/util@^1.14.0的useAllowClear,统一 Mentions 的清除配置和布局判断。allowClear={{ disabled: true }}与allowClear={false}保持一致,移除清除按钮及其专用布局,同时保留显式后缀。通过新版 Input 继承AllowClearConfig,支持自定义图标、label和清除按钮tabIndex,保留原有清空值及回调行为。补充配置文档和回归测试,更新默认无障碍名称对应的快照。文档同时说明:没有其他后缀时动态关闭清除入口可能重建输入节点并失焦,与传入
false一致。相关讨论:ant-design/ant-design#59553
验证
Summary by CodeRabbit