這是官方的介紹
image.png
我們在使用的時候要在swipe上用ref設(shè)置一個錨點
image.png
再設(shè)置對應(yīng)的按鈕點擊事件
點擊事件
<van-button class="turn-button" color="#FB8A57" round type="info" @click="nextTap">下一題</van-button>
調(diào)用的方法犀农,使錨點叫swiper的輪播滾動到下一頁
nextTap(){
this.$refs.swiper.next()
}