1.不写方法名
'tempValue.titleText':
function(newValue){
this.optionValue.title.text=newValue
console.log(this.optionValue.title.text)
}
2.写方法名,则必须叫handler
'tempValue.fontColor':{
handler(newValue,oldValue){
console.log(newValue)
this.optionValue.radar[0].axisName.color=newValue
console.log(newValue)
}
}
Vue数据结构
data() {
tempValue: {
titleText: '',
fontColor: ''
},
}