From 6b377718a5498b503f52403f9155f6a52b91a013 Mon Sep 17 00:00:00 2001 From: wanghaoo Date: Wed, 26 Dec 2018 16:59:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(big-data=E5=9C=BA=E6=99=AF=E4=B8=8B?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=AD=E7=9A=84index=E5=80=BC):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/Table.js | 2 +- build/TableRow.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/Table.js b/build/Table.js index 9fdeb1d..80195ca 100644 --- a/build/Table.js +++ b/build/Table.js @@ -691,7 +691,7 @@ var Table = function (_Component) { record: record, expandIconAsCell: expandIconAsCell, onDestroy: this.onRowDestroy, - index: fixedIndex, + index: fixedIndex + lazyCurrentIndex, visible: visible, expandRowByClick: expandRowByClick, onExpand: this.onExpanded, diff --git a/build/TableRow.js b/build/TableRow.js index 67ce338..0add8b6 100644 --- a/build/TableRow.js +++ b/build/TableRow.js @@ -148,7 +148,7 @@ var TableRow = function (_Component) { fixed = _props3.fixed; if (!setRowHeight || !this.element || fixed) return; - setRowHeight(this.element.clientHeight + expandedContentHeight, this.props.index + lazyCurrentIndex); + setRowHeight(this.element.clientHeight + expandedContentHeight, this.props.index); }; TableRow.prototype.onRowClick = function onRowClick(event) { @@ -258,7 +258,7 @@ var TableRow = function (_Component) { record: record, indentSize: indentSize, indent: indent, - index: index + lazyCurrentIndex, + index: index, column: columns[i], key: columns[i].key, fixed: fixed,