mirror of https://github.com/ElemeFE/element
解决error变成null或者空的时候,validateState依然是error的问题。 (#2621)
parent
a892a2c6ea
commit
6e45d067f7
|
@ -67,7 +67,7 @@
|
||||||
watch: {
|
watch: {
|
||||||
error(value) {
|
error(value) {
|
||||||
this.validateMessage = value;
|
this.validateMessage = value;
|
||||||
this.validateState = 'error';
|
this.validateState = value ? 'error' : '';
|
||||||
},
|
},
|
||||||
validateStatus(value) {
|
validateStatus(value) {
|
||||||
this.validateState = value;
|
this.validateState = value;
|
||||||
|
|
Loading…
Reference in New Issue