Vue Modal组件父子通话问题

阅读 2k
1 个回答

子组件不要直接修改属性. 改为下面的方法:
<button v-on:click="$emit('update:show', false)">Close</button>

推荐问题