Commit 8394211179bfea441b98cadc8718254086d75e80

Authored by Aresn
Committed by GitHub
2 parents 9707bac7 02bf8fab

Merge pull request #2047 from iview/pr/2036

Pr/2036
Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/components/form/form-item.vue
@@ -86,7 +86,7 @@ @@ -86,7 +86,7 @@
86 watch: { 86 watch: {
87 error (val) { 87 error (val) {
88 this.validateMessage = val; 88 this.validateMessage = val;
89 - this.validateState = 'error'; 89 + this.validateState = val === '' ? '' : 'error';
90 }, 90 },
91 validateStatus (val) { 91 validateStatus (val) {
92 this.validateState = val; 92 this.validateState = val;
@@ -246,4 +246,4 @@ @@ -246,4 +246,4 @@
246 this.dispatch('iForm', 'on-form-item-remove', this); 246 this.dispatch('iForm', 'on-form-item-remove', this);
247 } 247 }
248 }; 248 };
249 -</script>  
250 \ No newline at end of file 249 \ No newline at end of file
  250 +</script>