vue-awesome-swiper
vue-awesome-swiper copied to clipboard
如何动态改变delay,即init swiper之后动态修改delay的数值使轮播间隔改变?
在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?
Swiper 组件无法猜测 updated
事件的意图,所以在 options 发生变动时,不会重新实例化,若有此需求可手动通过 v-if
& $nextTick
来实现。
请问这个问题解决了吗 我也遇到这种野需求。。每张banner图展示的时间在后台配置。。
通过v-if 和$nextTick可以让Swiper 重绘来解决问题,但是页面上会闪一下