vue-awesome-swiper icon indicating copy to clipboard operation
vue-awesome-swiper copied to clipboard

如何动态改变delay,即init swiper之后动态修改delay的数值使轮播间隔改变?

Open wLove-c opened this issue 5 years ago • 3 comments

在swiper 实例后 动态修改swiper的delay属性值, 使其轮播间隔根据delay动态变化,能实现这种操作吗,尝试了几种方法后有点束手无措~

How to change the delay dynamically, that is, to change the value of delay dynamically after init swiper so as to change the rotation interval?

wLove-c avatar Apr 18 '19 06:04 wLove-c

Swiper 组件无法猜测 updated 事件的意图,所以在 options 发生变动时,不会重新实例化,若有此需求可手动通过 v-if & $nextTick 来实现。

surmon-china avatar Mar 19 '20 18:03 surmon-china

请问这个问题解决了吗 我也遇到这种野需求。。每张banner图展示的时间在后台配置。。

kingsofish avatar May 10 '21 07:05 kingsofish

通过v-if 和$nextTick可以让Swiper 重绘来解决问题,但是页面上会闪一下

xxx6668 avatar Jun 17 '21 08:06 xxx6668