Browse Source

fix(ApiSelect): Incorrect value type definition

main
xingyu 2 years ago
parent
commit
df746f21f0
  1. 2
      src/components/Form/src/components/ApiSelect.vue

2
src/components/Form/src/components/ApiSelect.vue

@ -12,7 +12,7 @@ import { propTypes } from '@/utils/propTypes'
defineOptions({ name: 'ApiSelect', inheritAttrs: false }) defineOptions({ name: 'ApiSelect', inheritAttrs: false })
const props = defineProps({ const props = defineProps({
value: { type: Object as PropType<SelectValue> }, value: { type: [Array, Object, String, Number] as PropType<SelectValue> },
numberToString: propTypes.bool, numberToString: propTypes.bool,
api: { api: {
type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>, type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>,