fix(api-select): make sure the type is correct, fix #468
This commit is contained in:
parent
967b28c4c0
commit
37c5741601
|
|
@ -41,7 +41,12 @@
|
|||
},
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
value: propTypes.string,
|
||||
value: propTypes.oneOfType([
|
||||
propTypes.object,
|
||||
propTypes.number,
|
||||
propTypes.string,
|
||||
propTypes.array,
|
||||
]),
|
||||
numberToString: propTypes.bool,
|
||||
api: {
|
||||
type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>,
|
||||
|
|
|
|||
Loading…
Reference in New Issue