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,9 +109,12 @@
}
},
currentColor(val) {
currentColor: {
immediate: true,
handler(val) {
this.customInput = val;
}
}
}
};
</script>

View File

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