Skip to content

Commit

Permalink
fix(api-select): make sure the type is correct, fix #468
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Apr 10, 2021
1 parent 967b28c commit 37c5741
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Form/src/components/ApiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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[]>>,
Expand Down

0 comments on commit 37c5741

Please sign in to comment.