vue 组件使用v-model方式传参

3,103 阅读1分钟

父组件中v-model传参的参数在子组件中接收

@Model("input") value: string;

子组件中修改父组件绑定的值

this.$emit('input',val)