mirror of
https://github.com/pipipi-pikachu/PPTist.git
synced 2025-04-15 02:20:00 +08:00
fix: 取色器 Hue 初始化不正确
This commit is contained in:
parent
250c01b0ad
commit
7a0e01d40a
@ -37,7 +37,7 @@ export default defineComponent({
|
||||
|
||||
const color = computed(() => {
|
||||
const hsla = tinycolor(props.value).toHsl()
|
||||
hsla.h = props.hue
|
||||
if (props.hue) hsla.h = props.hue
|
||||
return hsla
|
||||
})
|
||||
|
||||
|
@ -39,7 +39,7 @@ export default defineComponent({
|
||||
setup(props, { emit }) {
|
||||
const color = computed(() => {
|
||||
const hsva = tinycolor(props.value).toHsv()
|
||||
hsva.h = props.hue
|
||||
if (props.hue) hsva.h = props.hue
|
||||
return hsva
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user