From 802353f5da36f702d1ddc83f1b928824ac09d9af Mon Sep 17 00:00:00 2001 From: Tiamo Date: Fri, 22 Nov 2024 10:56:26 +0800 Subject: [PATCH] =?UTF-8?q?slider=E4=BF=AE=E5=A4=8Dikun=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=A4=A7=E5=B0=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/components/gitalk.vue | 2 +- package.json | 2 +- packages/ikui-components/slider/src/slider.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/components/gitalk.vue b/docs/.vitepress/components/gitalk.vue index 03d6881..8a1fc86 100644 --- a/docs/.vitepress/components/gitalk.vue +++ b/docs/.vitepress/components/gitalk.vue @@ -12,7 +12,7 @@ onMounted(() => { id: location.pathname, labels: ['GitTalk'], proxy: 'https://mellifluous-bombolone-049a57.netlify.app/github_access_token', - distractionFreeMode: false + distractionFreeMode: false, } const gitalk = new Gitalk(config) gitalk.render('gitalk-container') diff --git a/package.json b/package.json index 4692c95..d03d158 100644 --- a/package.json +++ b/package.json @@ -80,4 +80,4 @@ ] } } -} \ No newline at end of file +} 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)` : '', } })