From 65303c80d0c33539e6a322434c8810efd4031aff Mon Sep 17 00:00:00 2001 From: duqingquan Date: Wed, 5 Jul 2023 11:35:21 +0800 Subject: [PATCH] =?UTF-8?q?swiper=20=E6=97=A5=E5=BF=97=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/swiper/swiper.uvue | 31 +++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/pages/component/swiper/swiper.uvue b/pages/component/swiper/swiper.uvue index 94085aa9..240e9d48 100644 --- a/pages/component/swiper/swiper.uvue +++ b/pages/component/swiper/swiper.uvue @@ -55,6 +55,15 @@ swiperTransition 是否打印 + + swiperAnimationfinish 是否打印 + + + + swiperChange 是否打印 + + + @@ -79,14 +88,18 @@ currentVal:0, currentItemIdVal:"", disableTouchSelect:false, - swiperTransitionSelect:false + swiperTransitionSelect:false, + swiperAnimationfinishSelect:false, + swiperChangeSelect:false } }, methods: { swiperChange: function (e : SwiperChangeEvent) { - console.log("swiperChange") - console.log(e) + if(this.swiperChangeSelect){ + console.log("swiperChange") + console.log(e) + } }, swiperTransition: function (e : SwiperTransitionEvent) { if(this.swiperTransitionSelect){ @@ -95,8 +108,10 @@ } }, swiperAnimationfinish: function (e : SwiperAnimationFinishEvent) { - console.log("swiperAnimationfinish") - console.log(e) + if(this.swiperAnimationfinishSelect){ + console.log("swiperAnimationfinish") + console.log(e) + } }, dotsChange: function (e : SwitchChangeEvent) { @@ -105,6 +120,12 @@ swiperTransitionChange: function (e : SwitchChangeEvent) { this.swiperTransitionSelect = e.detail.value }, + swiperChangeChange: function (e : SwitchChangeEvent) { + this.swiperChangeSelect = e.detail.value + }, + swiperAnimationfinishChange: function (e : SwitchChangeEvent) { + this.swiperAnimationfinishSelect = e.detail.value + }, autoplayChange: function (e : SwitchChangeEvent) { this.autoplaySelect = e.detail.value }, -- GitLab