From 37c5741601951349f622801a48a7bf9e45d723a4 Mon Sep 17 00:00:00 2001 From: Vben Date: Sat, 10 Apr 2021 21:40:52 +0800 Subject: [PATCH] fix(api-select): make sure the type is correct, fix #468 --- src/components/Form/src/components/ApiSelect.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Form/src/components/ApiSelect.vue b/src/components/Form/src/components/ApiSelect.vue index 89fa8bed..818f5078 100644 --- a/src/components/Form/src/components/ApiSelect.vue +++ b/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>,