提交 37c57416 作者: Vben

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

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论