-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
类型调整 #575
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
类型调整 #575
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,11 +21,11 @@ import { cloneElement } from '../_util/vnode'; | |
| import warning from '../_util/warning'; | ||
|
|
||
| const CascaderOptionType = PropTypes.shape({ | ||
| value: PropTypes.string, | ||
| value: PropTypes.any, | ||
| label: PropTypes.any, | ||
| disabled: PropTypes.bool, | ||
| children: PropTypes.array, | ||
| key: PropTypes.string, | ||
| key: PropTypes.any, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PropTypes.oneofType(String, Number) |
||
| }).loose; | ||
|
|
||
| const FieldNamesType = PropTypes.shape({ | ||
|
|
@@ -49,7 +49,7 @@ const CascaderProps = { | |
| /** 可选项数据源 */ | ||
| options: PropTypes.arrayOf(CascaderOptionType).def([]), | ||
| /** 默认的选中项 */ | ||
| defaultValue: PropTypes.arrayOf(PropTypes.string), | ||
| defaultValue: PropTypes.arrayOf(PropTypes.any), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PropTypes.arrayOf(PropTypes.oneofType(String, Number)) |
||
| /** 指定选中项 */ | ||
| value: PropTypes.arrayOf(PropTypes.string), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. PropTypes.arrayOf(PropTypes.oneofType(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.
PropTypes.oneofType(String, Number)