vue-awesome-swiper 怎么强行进行第二次初始化

附上代码:

    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);}
    

暂无评论

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注