mirror of https://github.com/ElemeFE/element
Form: add validateOnRuleChange (#8141)
parent
840c4b57be
commit
c1fbffe051
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue