Form: fix initial error message

pull/8859/head
Leopoldthecoder 2017-12-15 16:49:41 +08:00 committed by 杨奕
parent b05462a6cc
commit 81ff11ad41
1 changed files with 6 additions and 3 deletions

View File

@ -73,9 +73,12 @@
size: String
},
watch: {
error(value) {
this.validateMessage = value;
this.validateState = value ? 'error' : '';
error: {
immediate: true,
handler(value) {
this.validateMessage = value;
this.validateState = value ? 'error' : '';
}
},
validateStatus(value) {
this.validateState = value;