Browse Source

fix(api-select): make sure the type is correct, fix #468

pull/470/head
Vben 5 years ago
parent
commit
37c5741601
  1. 7
      src/components/Form/src/components/ApiSelect.vue

7
src/components/Form/src/components/ApiSelect.vue

@ -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…
Cancel
Save