attach code:
swiperOption: {
notNextTick: true,
autoplay: false,
direction: "horizontal", //
setWrapperSize: true,
autoHeight: true,
centeredSlides: true,
paginationClickable: true,
navigation: {
nextEl: ".swipernext",
prevEl: ".swiperprev"
},
computed: {
swiper() {
return this.$refs.mySwiper.swiper;
}
},mounted() {this.swiper.slideTo(0);}