Commit 37c57416 authored by Vben's avatar Vben

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

parent 967b28c4
...@@ -41,7 +41,12 @@ ...@@ -41,7 +41,12 @@
}, },
inheritAttrs: false, inheritAttrs: false,
props: { props: {
value: propTypes.string, value: propTypes.oneOfType([
propTypes.object,
propTypes.number,
propTypes.string,
propTypes.array,
]),
numberToString: propTypes.bool, numberToString: propTypes.bool,
api: { api: {
type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>, type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment