Closed crazyair closed 5 months ago
Run & review this pull request in StackBlitz Codeflow.
🎯 Target branch: master (470e8a8e0a269bbe28b139df346bf1081873e0d5) 📖 View Full Report ↗︎
🎊 Congrats! No visual-regression diff found.
Path | Size |
---|---|
./dist/antd.min.js |
337.63 KB |
./dist/antd-with-locales.min.js |
385.62 KB |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
c656603
) to head (20dbe46
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
原始问题是啥
原始问题是啥
如果吧 multiple 类型放到泛型上,如下这种使用,无法自动切换是否 multiple,rc-cascader 写3个泛型是因为,checkable 支持 ReactNode,而 antd 的 Cascader 的 multiple 只是 boolean 类型,所以可以精简泛型
const list: { props: CascaderType }[] = [
{ props: { multiple: true, onChange: (value) => value } },
{ props: { onChange: (value) => value } },
];
如果用 CascaderProps 会报类型错误
加上非必填就不行了。。。
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
📝 Changelog
☑️ Self-Check before Merge
⚠️ Please check all items below before requesting a reviewing. ⚠️