Commit f87b0f2f5efe4e9977c4cc0742dbcaefbad2ca02

Authored by 无木
1 parent 656ee4e5

fix(api-select): fixed `value` prop define

修复ApiSelect的value属性定义问题

fixed: #1175
CHANGELOG.zh_CN.md
... ... @@ -16,6 +16,7 @@
16 16 - 修复表尾合计行与表格主体部分的列有时候未能对齐的问题
17 17 - **MarkDown** 修复初始 value 属性的值不起作用的问题
18 18 - **BasicUpload** 修复`accept`属性不支持`MIME`及点开头的后缀名的问题
  19 +- **ApiSelect** 修复`value`属性的类型定义问题
19 20 - **其它**
20 21 - 修复部分封装组件在使用插槽时报错的问题
21 22 - 修复`useECharts`的`theme`参数不起作用的问题
... ...
src/components/Form/src/components/ApiSelect.vue
... ... @@ -41,12 +41,7 @@
41 41 },
42 42 inheritAttrs: false,
43 43 props: {
44   - value: propTypes.oneOfType([
45   - propTypes.object,
46   - propTypes.number,
47   - propTypes.string,
48   - propTypes.array,
49   - ]),
  44 + value: [Array, Object, String, Number],
50 45 numberToString: propTypes.bool,
51 46 api: {
52 47 type: Function as PropType<(arg?: Recordable) => Promise<OptionsItem[]>>,
... ...