fix: [TreeSelect] type check failed when value is number (#1551)
* fix: type check failed when value is number * fix: type tree-select type checkpull/1731/head
parent
e0d5f078f9
commit
7383fd8934
|
@ -19,8 +19,8 @@ export const TreeSelectProps = () => ({
|
|||
loadData: PropTypes.func,
|
||||
maxTagCount: PropTypes.number,
|
||||
maxTagPlaceholder: PropTypes.any,
|
||||
value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),
|
||||
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),
|
||||
value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.number]),
|
||||
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.number]),
|
||||
multiple: PropTypes.bool,
|
||||
notFoundContent: PropTypes.any,
|
||||
// onSelect: (value: any) => void,
|
||||
|
|
Loading…
Reference in New Issue