diff --git a/pages/component/swiper/swiper.uvue b/pages/component/swiper/swiper.uvue index cf3819a0bf5307a6914091c347a9e8c0d37b8830..cdcf78c7353dc141c390da95baf06816c82f9e9d 100644 --- a/pages/component/swiper/swiper.uvue +++ b/pages/component/swiper/swiper.uvue @@ -2,7 +2,7 @@ - + A @@ -47,7 +47,14 @@ 指定current-item-id为最后一个元素 - + + 禁止用户 touch 操作 + + + + swiperTransition 是否打印 + + @@ -70,19 +77,43 @@ indicatorColor:"", indicatorColorActive:"", currentVal:0, - currentItemIdVal:"" + currentItemIdVal:"", + disableTouchSelect:false, + swiperTransitionSelect:false } }, methods: { + + swiperChange: function (e : SwiperChangeEvent) { + console.log("swiperChange") + console.log(e) + }, + swiperTransition: function (e : SwiperTransitionEvent) { + if(this.swiperTransitionSelect){ + console.log("swiperTransition") + console.log(e) + } + }, + swiperAnimationfinish: function (e : SwiperAnimationFinishEvent) { + console.log("swiperAnimationfinish") + console.log(e) + }, + dotsChange: function (e : SwitchChangeEvent) { this.dotsSelect = e.detail.value }, + swiperTransitionChange: function (e : SwitchChangeEvent) { + this.swiperTransitionSelect = e.detail.value + }, autoplayChange: function (e : SwitchChangeEvent) { this.autoplaySelect = e.detail.value }, verticalChange: function (e : SwitchChangeEvent) { this.verticalSelect = e.detail.value }, + disableTouchChange: function (e : SwitchChangeEvent) { + this.disableTouchSelect = e.detail.value + }, currentItemIdChange: function (e : SwitchChangeEvent) { this.currentItemIdSelect = e.detail.value if(this.currentItemIdSelect){