提交 65303c80 编写于 作者: 杜庆泉's avatar 杜庆泉

swiper 日志增加开关

上级 3309edd9
......@@ -55,6 +55,15 @@
<view class="uni-list-cell-db">swiperTransition 是否打印</view>
<switch :checked="swiperTransitionSelect" @change="swiperTransitionChange"/>
</view>
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell-db">swiperAnimationfinish 是否打印</view>
<switch :checked="swiperAnimationfinishSelect" @change="swiperAnimationfinishChange"/>
</view>
<view class="uni-list-cell uni-list-cell-pd">
<view class="uni-list-cell-db">swiperChange 是否打印</view>
<switch :checked="swiperChangeSelect" @change="swiperChangeChange"/>
</view>
</view>
......@@ -79,14 +88,18 @@
currentVal:0,
currentItemIdVal:"",
disableTouchSelect:false,
swiperTransitionSelect:false
swiperTransitionSelect:false,
swiperAnimationfinishSelect:false,
swiperChangeSelect:false
}
},
methods: {
swiperChange: function (e : SwiperChangeEvent) {
if(this.swiperChangeSelect){
console.log("swiperChange")
console.log(e)
}
},
swiperTransition: function (e : SwiperTransitionEvent) {
if(this.swiperTransitionSelect){
......@@ -95,8 +108,10 @@
}
},
swiperAnimationfinish: function (e : SwiperAnimationFinishEvent) {
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
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册