Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

VueAwesomeSwiper?初始化?swiperOption?后,?如何点击修改?slidesPerView

如题

我通过main.js 全局引入 VueAwesomeSwiper

在组件内 使用 swiper 初始化参数 :options="swiperOptions"

在data里 定义了 相关参数,包括 slidesPerView:2

然后通过点击事件,将slidePerView = 3

请问,该怎么实现?

我目前是通过 destroy(false) 然后再upldate(),但是有个问题,界面是显示了3个slide,但是 却无法自动轮播了。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...