Browse Source

解决error变成null或者空的时候,validateState依然是error的问题。 (#2621)

shangkai 8 years ago
parent
commit
6e45d067f7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/form/src/form-item.vue

+ 1 - 1
packages/form/src/form-item.vue

@@ -67,7 +67,7 @@
     watch: {
       error(value) {
         this.validateMessage = value;
-        this.validateState = 'error';
+        this.validateState = value ? 'error' : '';
       },
       validateStatus(value) {
         this.validateState = value;