mirror of https://github.com/ElemeFE/element
Form: add validateOnRuleChange (#8141)
parent
840c4b57be
commit
c1fbffe051
|
@ -34,11 +34,17 @@
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
size: String
|
size: String,
|
||||||
|
validateOnRuleChange: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
rules() {
|
rules() {
|
||||||
this.validate();
|
if (this.validateOnRuleChange) {
|
||||||
|
this.validate(() => {});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
Loading…
Reference in New Issue