Form-item: rules validate sync (#21892)

This commit is contained in:
bofeng
2022-06-02 17:27:33 +08:00
committed by GitHub
parent a1c673dfeb
commit a2b7304685

View File

@@ -95,6 +95,11 @@
},
validateStatus(value) {
this.validateState = value;
},
rules(value) {
if ((!value || value.length === 0) && this.required === undefined) {
this.clearValidate();
}
}
},
computed: {