Bonon

Results 1 comments of Bonon

修改组件的代码: 1.找到 `iview/sticky/index.js` 52行的 `item.updateDataChange(index);` 修改为 `item.updateDataChange(index, this.data.scrollTop);` 即传入正在实时变化的滚动条位置 2.找到 `iview/sticky-item/index.js` 26行的 `updateDataChange(index)` 修改为 `updateDataChange(index, scrollTop)` 32行的 `top : res.top`修改为 `top : res.top + scrollTop,` 即拿到当前的滚动条位置,初始化新增数据的位置