vue-awesome-swiper特定幻灯片延迟

时间:2020-05-18 10:54:44

标签: vue.js swiper swiperjs

我正在尝试指定特定的幻灯片延迟时间,但是第一张幻灯片采用了“自动播放”参数中的默认延迟时间。当滑块切换到第二张幻灯片时,一切正常。有什么建议如何解决吗?

<swiper :options="swiperOption">
   <swiper-slide class="slide-container position-static" v-for="(item,index) in maininfo.Slider" :key="index" :data-swiper-autoplay="item.value.duration*1000">
     <youtube :video-id="item.value.videoID" ref="youtube" @playing="playing"></youtube>
   </swiper-slide>
   <div class="swiper-button-prev" slot="button-prev"></div>
   <div class="swiper-button-next" slot="button-next"></div>
</swiper>

swiperOption: {
     loop: false,
     navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev'
     },
     autoplay: true,
}, 

0 个答案:

没有答案