-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Labels
Description
Version
4.2.5
Environment
"vue": "^3.4.29" , "ant-design-vue": "~4.2.3"
Reproduction link
https://github.com/vueComponent/ant-design-vue/tree/main/components/vc-virtual-list
Steps to reproduce
[Vue warn]: Failed setting prop "prefix" on <div>: value XY is invalid. TypeError: Cannot set property prefix of #<Element> which has only a getter
目前在select组件上遇到过,当使用options字段传入数据而非select-option,且数据中有类似prefix的属性会出现
demo:打开浏览器控制台后,展开select选项
https://codesandbox.io/p/sandbox/ji-ben-shi-yong-ant-design-vue-4-2-5-forked-jl5pxz?file=%2Fsrc%2Fdemo.vue
What is expected?
控制台没有警告
What is actually happening?
是