提交 ef0aa723 编写于 作者: X xzs02

fix: 解决swiper组件同时显示多个swiper-item时指示器显示不正确的问题

上级 e682a3b3
......@@ -567,7 +567,7 @@ export default {
slidesDots.push(createElement('div', {
class: {
'uni-swiper-dot': true,
'uni-swiper-dot-active': index === this.currentSync
'uni-swiper-dot-active': (index < this.currentSync + this.displayMultipleItemsNumber && index >= this.currentSync) || (index < this.currentSync + this.displayMultipleItemsNumber - this.items.length)
},
style: {
'background': index === this.currentSync ? this.indicatorActiveColor : this.indicatorColor
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册