Browse Source

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

修复ApiSelect的value属性定义问题

fixed: #1175
pull/1228/head
无木 4 years ago
parent
commit
f87b0f2f5e
  1. 1
      CHANGELOG.zh_CN.md
  2. 7
      src/components/Form/src/components/ApiSelect.vue

1
CHANGELOG.zh_CN.md

@ -16,6 +16,7 @@
- 修复表尾合计行与表格主体部分的列有时候未能对齐的问题
- **MarkDown** 修复初始 value 属性的值不起作用的问题
- **BasicUpload** 修复`accept`属性不支持`MIME`及点开头的后缀名的问题
- **ApiSelect** 修复`value`属性的类型定义问题
- **其它**
- 修复部分封装组件在使用插槽时报错的问题
- 修复`useECharts`的`theme`参数不起作用的问题

7
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<OptionsItem[]>>,

Loading…
Cancel
Save