1.监听某个字段
watch: { svalue(val, oldVal) { if (val !== oldVal) { this.$emit("input", this.svalue) } } }
2.监听对象
watch: { form: { deep: true, handler(newval) { this.data = newval } } }
3.监听对象的某个属性
watch: { ‘form.sfyx0‘: { deep: true, handler(newval) { this.btn= true } } }