fix(ApiSelect): Incorrect value type definition

pull/38/head
xingyu 2023-10-18 17:51:46 +08:00
parent afab7630ec
commit df746f21f0
1 changed files with 1 additions and 1 deletions

View File

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