<div class="mt-3 d-flex flex-column">
<v-btn
:disabled="isDisabled"
depressed
class="white--text text-body-1"
@click="submitSMS(curTabItem)"
>
下一步
</v-btn>
</div>
data(){
return {
a:"",
b:"",
isDisabled:true
}
},
computed: {
formFull() {
const { a, b } = this;
return { a, b };
}
},
watch: {
formFull(e) {
if (e.a&& e.b)) {
this.isDisabled = false;
} else {
this.isDisabled = true;
}
}
}
Vue——监听多个属性方法
于 2022-03-26 16:00:05 首次发布