选中颜色

This commit is contained in:
2020-08-08 16:53:44 +08:00
parent 78d60bd9ac
commit 641cb4a4a2
3 changed files with 16 additions and 4 deletions

View File

@@ -18,12 +18,19 @@ export default {
xuanzhong:false,
}
},
props:['image','title','price','num','sid'],
props:['image','title','price','num','sid','wxuanzhong'],
methods:{
xuanzhongs(){
this.xuanzhong = !this.xuanzhong
this.$emit("xuanzhong")
}
},
watch:{
},
created(){
this.xuanzhong = this.wxuanzhong
console.log(this.wxuanzhong)
}
}
</script>