能不能说明一下什么原理
来源:5-20 tabs组件 - scrollView 的点击位移

慕粉110313156
2022-06-03
this.scrollLeft = this.activeIndex*this.defaultConfig.underLineWidth这个算法能不能说明一下什么原理
写回答
1回答
-
Sunday
2022-06-03
你好
this.scrollLeft = this.activeIndex*this.defaultConfig.underLineWidth
等于
横向左侧距离 = 选中的item下标 * 每个item 的宽度
042024-09-25
相似问题