From 010708470217c546ca21cc01db2acdbfad59897c Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Wed, 9 Jan 2019 12:34:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(bigData=E5=9C=BA=E6=99=AF=E4=B8=8B=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=BB=9A=E5=8A=A8=E6=9D=A1=E7=9A=84=E4=BD=8D=E7=BD=AE?= =?UTF-8?q?):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/lib/bigData.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",