mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-13 11:34:02 +08:00
Form-item: rules validate sync (#21892)
This commit is contained in:
@@ -95,6 +95,11 @@
|
||||
},
|
||||
validateStatus(value) {
|
||||
this.validateState = value;
|
||||
},
|
||||
rules(value) {
|
||||
if ((!value || value.length === 0) && this.required === undefined) {
|
||||
this.clearValidate();
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user