diff --git a/build/lib/bigData.js b/build/lib/bigData.js index a9d74ec..879160b 100644 --- a/build/lib/bigData.js +++ b/build/lib/bigData.js @@ -301,6 +301,7 @@ function bigData(Table) { startIndex = _this.startIndex; var needRender = _this.state.needRender; + _this.scrollTop = nextScrollTop; var viewHeight = parseInt(scroll.y); _this.treeType = treeType; // let index = currentIndex;//记录下次当前位置 @@ -354,7 +355,6 @@ function bigData(Table) { //如果之前的索引和下一次的不一样则重置索引和滚动的位置 if (currentIndex !== index) { _this.currentIndex = index; - _this.scrollTop = nextScrollTop; var rowsInView = 0; //可视区域显示多少行 var rowsHeight = 0; //可视区域内容高度 var tempIndex = index; diff --git a/package.json b/package.json index 3bf729e..b1317ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-table", - "version": "1.6.27", + "version": "1.6.28", "description": "Table ui component for react", "keywords": [ "react",