Form-item: rules validate sync (#21892)

pull/21902/head
bofeng 2022-06-02 17:27:33 +08:00 committed by GitHub
parent a1c673dfeb
commit a2b7304685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

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