fix(big-data场景下事件中的index值):
This commit is contained in:
parent
615baf482d
commit
6b377718a5
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue