1.监听数组
@Watch('charData', { deep: true, immediate: true })
private watchData(val: any) {
//操作
}
2.监听字符串
@Watch('projectBillmater')
private watchprojectBillmaterChange() {
//操作
}
3.监听对象
@Watch('currentFlowmeterData', { deep: true, immediate: true })
private watchcurrentFlowmeterData(val: any) {
//操作
}