Commit f87b0f2f5efe4e9977c4cc0742dbcaefbad2ca02
1 parent
656ee4e5
fix(api-select): fixed `value` prop define
修复ApiSelect的value属性定义问题 fixed: #1175
Showing
2 changed files
with
2 additions
and
6 deletions
CHANGELOG.zh_CN.md
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[]>>, | ... | ... |