mint-ui填坑 mt-swipe
1.获取当前index
template:
<mt-swipe ref="swipe" :auto="4000" :showIndicators="false" @change="swipeChange">
<mt-swipe-item>1</mt-swipe-item>
<mt-swipe-item>2></mt-swipe-item>
</mt-swipe>
methods:
swipeChange() {
this.activeIndex = this.$refs.swipe.index + 1
},
data:
activeIndex:1