之前的版本可以直接绑定,但是现在需要换:modelValue="modelValue",如果直接用v-model="modelValue“会报错 v-model cannot be used on a prop, because local prop bindings are not writable. Use a v-bind binding combined with a v-on listener that emits update:x event instead,但是无法传值啊
vue3中v-model绑定prop
于 2024-05-26 14:24:34 首次发布