滚动时记录滚动位置

This commit is contained in:
wanghaoo 2019-01-09 12:33:53 +08:00
parent ea9e6c7300
commit 835a85f492
3 changed files with 3 additions and 3 deletions

2
dist/demo.js vendored
View File

@ -67331,6 +67331,7 @@
startIndex = _this.startIndex;
var needRender = _this.state.needRender;
_this.scrollTop = nextScrollTop;
var viewHeight = parseInt(scroll.y);
_this.treeType = treeType;
// let index = currentIndex;//记录下次当前位置
@ -67384,7 +67385,6 @@
//如果之前的索引和下一次的不一样则重置索引和滚动的位置
if (currentIndex !== index) {
_this.currentIndex = index;
_this.scrollTop = nextScrollTop;
var rowsInView = 0; //可视区域显示多少行
var rowsHeight = 0; //可视区域内容高度
var tempIndex = index;

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -167,6 +167,7 @@ export default function bigData(Table) {
} = _this;
let { endIndex, startIndex } = _this;
const { needRender } = _this.state;
_this.scrollTop = nextScrollTop;
const viewHeight = parseInt(scroll.y);
_this.treeType = treeType;
// let index = currentIndex;//记录下次当前位置
@ -221,7 +222,6 @@ export default function bigData(Table) {
//如果之前的索引和下一次的不一样则重置索引和滚动的位置
if (currentIndex !== index) {
_this.currentIndex = index;
_this.scrollTop = nextScrollTop;
let rowsInView = 0; //可视区域显示多少行
let rowsHeight = 0; //可视区域内容高度
let tempIndex = index;