Repository navigation
fix: preserve zero-valued dropdown content and icons - #1254
Conversation
|
@QDyanbing is attempting to deploy a commit to the React Component Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. Walkthrough本次更新调整选择器对可渲染内容和空值的判断,涉及下拉空状态、选项图标、选项标签及单选值显示。新增测试覆盖零值内容。 Changes可渲染内容处理
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1254 +/- ##
==========================================
- Coverage 99.46% 99.46% -0.01%
==========================================
Files 31 31
Lines 1307 1304 -3
Branches 479 476 -3
==========================================
- Hits 1300 1297 -3
Misses 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
冲突了 |
说明
notFoundContent={0}可以打开并显示空列表;menuItemSelectedIcon={0}仅在选中项中显示。验证
npm test -- --runInBand(446 项通过)npm run tsc关联 ant-design/ant-design#59193
Summary by CodeRabbit
问题修复
0等有效内容可正常显示。0等非空值时,显示内容不再被清空。测试