ColorPicker: add immediate watcher for currentColor (#13278)

pull/13299/head
SkyAo 2018-11-05 15:51:12 +08:00 committed by hetech
parent bdc9363635
commit f8a27565b0
2 changed files with 6 additions and 2 deletions

View File

@ -109,8 +109,11 @@
} }
}, },
currentColor(val) { currentColor: {
this.customInput = val; immediate: true,
handler(val) {
this.customInput = val;
}
} }
} }
}; };

View File

@ -165,6 +165,7 @@
enableAlpha: this.showAlpha, enableAlpha: this.showAlpha,
format: this.colorFormat format: this.colorFormat
}); });
return { return {
color, color,
showPicker: false, showPicker: false,