diff --git a/packages/ikui-components/slider/src/slider.vue b/packages/ikui-components/slider/src/slider.vue index a95ff82..2744d54 100644 --- a/packages/ikui-components/slider/src/slider.vue +++ b/packages/ikui-components/slider/src/slider.vue @@ -72,7 +72,7 @@ const onDragEnd = (e: MouseEvent) => { const dotComputedStyle: ComputedRef = computed(() => { const l = `${shouldPosition.value}%` return { - left: l, + left: props.ikun ? `${Number(shouldPosition.value) - 1}%` : l, transform: props.ikun ? `rotate(${shouldPosition.value * 36}deg)` : '', } })