vue 组件双向绑定sync修饰符、$emit(‘update:key‘,value)
props: {value: {type: Array,default () {return []}},},this.$emit('update:value',this.List )<selectTag :value.sync="info.goods_guarantee" @tagClick="tagClick"></selectTag>
·
props: {
value: {
type: Array,
default () {
return []
}
},
},
this.$emit('update:value',this.List )
<selectTag :value.sync="info.goods_guarantee" @tagClick="tagClick"></selectTag>
更多推荐
已为社区贡献5条内容
所有评论(0)