在组件中同步v-model

@Prop()
value;

get visible() {
    return this.value;
}

set visible(val) {
    this.$emit('input', val);
}

最后更新于

这有帮助吗?