vue3 v-model Jokerguo 2021-12-02 257 阅读1分钟 vue3 v-model用法 <Switch v-model:value="bool"/> //相当于 <Switch :value="bool" @input="bool = $event"/> 注释: vue3的v-model代替了vue2中的 v-model、.sync 父组件 //子组件