mirror of https://github.com/ElemeFE/element
ColorPicker: fix The predefined color which is checked before clear can not checked after clear
parent
2f4f6962c6
commit
7ee134470d
|
@ -94,8 +94,8 @@
|
|||
},
|
||||
color: {
|
||||
deep: true,
|
||||
handler() {
|
||||
this.showPanelColor = true;
|
||||
handler(color) {
|
||||
this.showPanelColor = !!color.value;
|
||||
}
|
||||
},
|
||||
displayedColor(val) {
|
||||
|
@ -144,6 +144,7 @@
|
|||
if (this.value) {
|
||||
this.color.fromString(this.value);
|
||||
} else {
|
||||
this.color.value = '';
|
||||
this.showPanelColor = false;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue