fix(big-data场景下事件中的index值):
This commit is contained in:
parent
615baf482d
commit
6b377718a5
|
@ -691,7 +691,7 @@ var Table = function (_Component) {
|
||||||
record: record,
|
record: record,
|
||||||
expandIconAsCell: expandIconAsCell,
|
expandIconAsCell: expandIconAsCell,
|
||||||
onDestroy: this.onRowDestroy,
|
onDestroy: this.onRowDestroy,
|
||||||
index: fixedIndex,
|
index: fixedIndex + lazyCurrentIndex,
|
||||||
visible: visible,
|
visible: visible,
|
||||||
expandRowByClick: expandRowByClick,
|
expandRowByClick: expandRowByClick,
|
||||||
onExpand: this.onExpanded,
|
onExpand: this.onExpanded,
|
||||||
|
|
|
@ -148,7 +148,7 @@ var TableRow = function (_Component) {
|
||||||
fixed = _props3.fixed;
|
fixed = _props3.fixed;
|
||||||
|
|
||||||
if (!setRowHeight || !this.element || fixed) return;
|
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) {
|
TableRow.prototype.onRowClick = function onRowClick(event) {
|
||||||
|
@ -258,7 +258,7 @@ var TableRow = function (_Component) {
|
||||||
record: record,
|
record: record,
|
||||||
indentSize: indentSize,
|
indentSize: indentSize,
|
||||||
indent: indent,
|
indent: indent,
|
||||||
index: index + lazyCurrentIndex,
|
index: index,
|
||||||
column: columns[i],
|
column: columns[i],
|
||||||
key: columns[i].key,
|
key: columns[i].key,
|
||||||
fixed: fixed,
|
fixed: fixed,
|
||||||
|
|
Loading…
Reference in New Issue