mirror of https://github.com/ElemeFE/element
ColorPicker: empty value by v-model, fix #4662
parent
7adb556ed4
commit
5fc7e18891
|
@ -59,7 +59,9 @@
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
value(val) {
|
value(val) {
|
||||||
if (val && val !== this.color.value) {
|
if (!val) {
|
||||||
|
this.showPanelColor = false;
|
||||||
|
} else if (val && val !== this.color.value) {
|
||||||
this.color.fromString(val);
|
this.color.fromString(val);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue