fix(big-data场景下事件中的index值):

This commit is contained in:
wanghaoo 2018-12-26 16:59:12 +08:00
parent 615baf482d
commit 6b377718a5
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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,