diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 695db0b1..ef420d58 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -16,6 +16,7 @@ - 修复表尾合计行与表格主体部分的列有时候未能对齐的问题 - **MarkDown** 修复初始 value 属性的值不起作用的问题 - **BasicUpload** 修复`accept`属性不支持`MIME`及点开头的后缀名的问题 +- **ApiSelect** 修复`value`属性的类型定义问题 - **其它** - 修复部分封装组件在使用插槽时报错的问题 - 修复`useECharts`的`theme`参数不起作用的问题 diff --git a/src/components/Form/src/components/ApiSelect.vue b/src/components/Form/src/components/ApiSelect.vue index a5b3a2be..26a79f89 100644 --- a/src/components/Form/src/components/ApiSelect.vue +++ b/src/components/Form/src/components/ApiSelect.vue @@ -41,12 +41,7 @@ }, inheritAttrs: false, props: { - value: propTypes.oneOfType([ - propTypes.object, - propTypes.number, - propTypes.string, - propTypes.array, - ]), + value: [Array, Object, String, Number], numberToString: propTypes.bool, api: { type: Function as PropType<(arg?: Recordable) => Promise>,