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