ColorPicker support value null
This commit is contained in:
parent
c9a33a082c
commit
c191f14737
1 changed files with 3 additions and 3 deletions
|
@ -242,8 +242,8 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
val: changeColor(this.value),
|
||||
currentValue: this.value,
|
||||
val: changeColor(this.value || ''),
|
||||
currentValue: this.value || '',
|
||||
dragging: false,
|
||||
visible: false,
|
||||
recommendedColor: [
|
||||
|
@ -412,7 +412,7 @@ export default {
|
|||
this.val = changeColor(newVal);
|
||||
},
|
||||
visible(val) {
|
||||
this.val = changeColor(this.value);
|
||||
this.val = changeColor(this.value || '');
|
||||
this.$refs.drop[val ? 'update' : 'destroy']();
|
||||
this.$emit('on-open-change', Boolean(val));
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue