-
-
Notifications
You must be signed in to change notification settings - Fork 49.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: cascader component value support number type #24247
Conversation
Codecov Report
@@ Coverage Diff @@
## master #24247 +/- ##
=======================================
Coverage 98.82% 98.82%
=======================================
Files 364 364
Lines 7291 7291
Branches 2020 1970 -50
=======================================
Hits 7205 7205
Misses 86 86
Continue to review full report at Codecov.
|
类似 Form 来个 |
add cascader type.test.tsx
d5e7b14
to
6e17a24
Compare
不是太明白项目中几个type.test.tsx测试用例的作用,加了下,看看是否可以 |
就是测试 tsc 编译是否能过,你故意写错然后跑一下 |
是的,我有试过,比如result的type.test加了个数值的prefixCls,看test都还是过的 |
|
恩恩,tsc能检测出来 |
@@ -42,7 +42,7 @@ Cascade selection box. | |||
| size | input size | `large` \| `middle` \| `small` | | | | |||
| style | additional style | CSSProperties | - | | | |||
| suffixIcon | The custom suffix icon | ReactNode | - | | | |||
| value | selected value | string\[] | - | | | |||
| value | selected value | string\[] | number\[] | - | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- | defaultValue | initial selected value | string\[] | number\[] | \[] | |
+ | defaultValue | initial selected value | string\[] \| number\[] | \[] | |
@@ -25,7 +25,7 @@ Cascade selection box. | |||
| bordered | whether has border style | boolean | true | | | |||
| changeOnSelect | change value on each selection if set to true, see above demo for details | boolean | false | | | |||
| className | additional css class | string | - | | | |||
| defaultValue | initial selected value | string\[] | \[] | | | |||
| defaultValue | initial selected value | string\[] | number\[] | \[] | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- | defaultValue | initial selected value | string\[] | number\[] | \[] | |
+ | defaultValue | initial selected value | string\[] \| number\[] | \[] | |
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
#17407
💡 Background and solution
📝 Changelog
number[]
value.number[]
类型value
的问题。☑️ Self Check before Merge
View rendered components/cascader/index.en-US.md
View rendered components/cascader/index.zh-CN.md