mirror of https://github.com/ElemeFE/element
Form: fix initial error message
parent
b05462a6cc
commit
81ff11ad41
|
@ -73,9 +73,12 @@
|
||||||
size: String
|
size: String
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
error(value) {
|
error: {
|
||||||
this.validateMessage = value;
|
immediate: true,
|
||||||
this.validateState = value ? 'error' : '';
|
handler(value) {
|
||||||
|
this.validateMessage = value;
|
||||||
|
this.validateState = value ? 'error' : '';
|
||||||
|
}
|
||||||
},
|
},
|
||||||
validateStatus(value) {
|
validateStatus(value) {
|
||||||
this.validateState = value;
|
this.validateState = value;
|
||||||
|
|
Loading…
Reference in New Issue