ColorPicker: empty value by v-model, fix #4662

pull/4670/head
pengchongfu 2017-05-04 22:41:47 +08:00 committed by 杨奕
parent 7adb556ed4
commit 5fc7e18891
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@
watch: {
value(val) {
if (val && val !== this.color.value) {
if (!val) {
this.showPanelColor = false;
} else if (val && val !== this.color.value) {
this.color.fromString(val);
}
},