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 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;