输入框value3等于value1的值加上value2的值,且随俩值改变
// computed中写上取数逻辑
computed: {
value3() {
this.value1= utils.isEmpty(this.value1) ? 0 : this.value1
this.value2 = utils.isEmpty(this.value2) ? 0 : this.value2
return Number(this.value1) + Number(this.value2)
}
},