Commit c1fbffe0 authored by badpunman's avatar badpunman Committed by 杨奕

Form: add validateOnRuleChange (#8141)

parent 840c4b57
......@@ -34,11 +34,17 @@
type: Boolean,
default: true
},
size: String
size: String,
validateOnRuleChange: {
type: Boolean,
default: true
}
},
watch: {
rules() {
this.validate();
if (this.validateOnRuleChange) {
this.validate(() => {});
}
}
},
data() {
......
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