Commit 37c5741601951349f622801a48a7bf9e45d723a4
1 parent
967b28c4
fix(api-select): make sure the type is correct, fix #468
Showing
1 changed file
with
6 additions
and
1 deletions
src/components/Form/src/components/ApiSelect.vue
@@ -41,7 +41,12 @@ | @@ -41,7 +41,12 @@ | ||
41 | }, | 41 | }, |
42 | inheritAttrs: false, | 42 | inheritAttrs: false, |
43 | props: { | 43 | props: { |
44 | - value: propTypes.string, | 44 | + value: propTypes.oneOfType([ |
45 | + propTypes.object, | ||
46 | + propTypes.number, | ||
47 | + propTypes.string, | ||
48 | + propTypes.array, | ||
49 | + ]), | ||
45 | numberToString: propTypes.bool, | 50 | numberToString: propTypes.bool, |
46 | api: { | 51 | api: { |
47 | type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>, | 52 | type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>, |