fixed ColorPicker Hue bug
when select a color from recommend colors, the Hue can not focus the correct color position(percent).
This commit is contained in:
parent
3cf3629f3b
commit
87ec808291
1 changed files with 6 additions and 0 deletions
|
@ -48,6 +48,12 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
watch: {
|
||||||
|
value () {
|
||||||
|
this.percent = clamp(this.value.hsl.h * 100 / 360, 0, 100);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
change(percent) {
|
change(percent) {
|
||||||
this.percent = clamp(percent, 0, 100);
|
this.percent = clamp(percent, 0, 100);
|
||||||
|
|
Loading…
Add table
Reference in a new issue