From aef0a806de281cc1b23b3e6d93ac099d0abefdaf Mon Sep 17 00:00:00 2001 From: jeremyjone Date: Tue, 2 May 2023 19:50:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=E6=B7=BB=E5=8A=A0=20slider=20?= =?UTF-8?q?=E4=B8=A4=E7=AB=AF=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/slider/index.vue | 57 +++++++++++++++++++++++++++++---- src/composables/useDrag.ts | 7 ++++ 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/src/components/slider/index.vue b/src/components/slider/index.vue index fc09948..932d7e9 100644 --- a/src/components/slider/index.vue +++ b/src/components/slider/index.vue @@ -4,14 +4,23 @@ :class="['xg-slider', 'xg-slider-drag']" :style="{ left: `${sliderLeft}px`, width: `${sliderWidth}px` }" > +
+ - {{ props.data?.data?.[props.prop] }} + {{ + props.data?.data?.[props.prop] + }} + +