swiper设置display-multiple-items后一部分item无法选中?
发布于 7 年前 作者 shaoqiang 3253 次浏览 来自 官方Issues

swiper - item总数为16,display-multiple-items设置为6。这个时候,从第12项(索引值为11)开始,后面的item都无法滑动选中。请问这个是bug还是设计问题?

swiper属性如下:

previous-margin="" next-margin="" display-multiple-items=“6”

另外,如何能让当前选中的项目位于swiper中间?


片段如下:

https://developers.weixin.qq.com/s/w62WEKm573bL

2 回复
  1. 如果设置display-multiple-items=“6” 是无法通过滑动选中最后几个的,因为你设置了6,可以通过点击                    
  2. 如果你接受通过点击切换tab,可以实现选中居中

弄个代码片段

回到顶部