watch:{
//深度监听,可监听到对象、数组的变化
'$parent.$parent.deviceColumnChart'(newV, oldV) {
this.inputValue=this.$parent.$parent.deviceColumnChart
console.log(this.inputValue)
this.getEchartRight()
this.getEchartRight1()
},
},
vue watch监听this.$parent中父组件的属性
最新推荐文章于 2024-04-20 11:50:28 发布