Version
3.2.0
Environment
macOS 10.15.7, Chrome 版本 100.0.4896.127(正式版本), Vue3 3.2.25, vite 2.9.5
Reproduction link
https://github.com/vueComponent/ant-design-vue
Steps to reproduce
runtime-core.esm-bundler.js:38 [Vue warn]: Invalid prop: type check failed for prop "onUpdate:value". Expected Function, got Array
at <ACascader value= [''] onUpdate:value= (2) [ƒ, ƒ] allow-clear=true ... >
<a-cascader
v-model:value="modelData"
:allow-clear="getBindValues.allowClear"
:placeholder="getBindValues.placeholder"
:autofocus="getBindValues.autofocus"
:bordered="getBindValues.bordered"
:expandTrigger="getBindValues.expandTrigger"
:multiple="getBindValues.multiple"
:not-found-content="getBindValues.notFoundContent"
:options="treeData" />
只要设置的v-model:value之后就会出现警告
value(v-model) 指定选中项 string[] | number[] - 接口文档写的类型是string[]|number[] 现在传个string[]就警告
What is expected?
没有警告
What is actually happening?
a-cascader 设置v-model:value 出现类型警告与文档对不起来