Commit a2b73046 authored by bofeng's avatar bofeng Committed by GitHub

Form-item: rules validate sync (#21892)

parent a1c673df
...@@ -95,6 +95,11 @@ ...@@ -95,6 +95,11 @@
}, },
validateStatus(value) { validateStatus(value) {
this.validateState = value; this.validateState = value;
},
rules(value) {
if ((!value || value.length === 0) && this.required === undefined) {
this.clearValidate();
}
} }
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment