mirror of https://github.com/ElemeFE/element
Form-item: rules validate sync (#21892)
parent
a1c673dfeb
commit
a2b7304685
|
@ -95,6 +95,11 @@
|
|||
},
|
||||
validateStatus(value) {
|
||||
this.validateState = value;
|
||||
},
|
||||
rules(value) {
|
||||
if ((!value || value.length === 0) && this.required === undefined) {
|
||||
this.clearValidate();
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Reference in New Issue