Skip to content

Commit

Permalink
fix: [TreeSelect] type check failed when value is number (#1551)
Browse files Browse the repository at this point in the history
* fix: type check failed when value is number

* fix: type tree-select type check
  • Loading branch information
wensonsmith authored and tangjinzhou committed Jan 15, 2020
1 parent e0d5f07 commit 7383fd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/tree-select/interface.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7383fd8

Please sign in to comment.