From bcc0c5553e79c187a9638db535287fae1cf7a462 Mon Sep 17 00:00:00 2001 From: novlan1 <1576271227@qq.com> Date: Sat, 30 Nov 2024 00:26:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(swiper):=20=E4=BC=98=E5=8C=96swiper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/swiper/swiper.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swiper/swiper.tsx b/src/swiper/swiper.tsx index cce6481c6..b6046bd2f 100644 --- a/src/swiper/swiper.tsx +++ b/src/swiper/swiper.tsx @@ -28,7 +28,7 @@ export default defineComponent({ const root = ref(); const items = ref([]); const { current: value, modelValue } = toRefs(props); - const [currentIndex, setCurrent] = useVModel(value, modelValue, props.defaultCurrent, props.onChange, 'current'); + const [currentIndex, setCurrent] = useVModel(value, modelValue, props.defaultCurrent); const swiperContainer = ref(null); const previous = ref(currentIndex.value ?? 0);