Browse Source

fix(ApiSelect): Incorrect value type definition. close #3168

invalid w 1 năm trước cách đây
mục cha
commit
0cf79d4ce2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/components/Form/src/components/ApiSelect.vue

+ 1 - 1
src/components/Form/src/components/ApiSelect.vue

@@ -42,7 +42,7 @@
     },
     inheritAttrs: false,
     props: {
-      value: { type: Object as PropType<SelectValue> },
+      value: { type: [Array, Object, String, Number] as PropType<SelectValue> },
       numberToString: propTypes.bool,
       api: {
         type: Function as PropType<(arg?: any) => Promise<OptionsItem[]>>,