Commit a0c44189 authored by TtTao's avatar TtTao

优化:tabsSwiper颜色错位

parent bb453ec0
...@@ -355,13 +355,11 @@ ...@@ -355,13 +355,11 @@
// swiper结束滑动 // swiper结束滑动
setFinishCurrent(current) { setFinishCurrent(current) {
// 如果滑动的索引不一致,修改tab颜色变化,因为可能会有直接点击tab的情况 // 如果滑动的索引不一致,修改tab颜色变化,因为可能会有直接点击tab的情况
if (current != this.animationFinishCurrent) {
this.tabsInfo.map((val, index) => { this.tabsInfo.map((val, index) => {
if (current == index) val.color = this.activeColor; if (current == index) val.color = this.activeColor;
else val.color = this.inactiveColor; else val.color = this.inactiveColor;
return val; return val;
}); });
}
this.line3AddDx = 0; this.line3AddDx = 0;
this.animationFinishCurrent = current; this.animationFinishCurrent = current;
this.countLine3Dx(); this.countLine3Dx();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment