From fe3a190f0b2be041be8a1b6ef7656d3ffb36e415 Mon Sep 17 00:00:00 2001 From: 2betop <2betop.cn@gmail.com> Date: Wed, 9 Dec 2020 14:28:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87=E6=94=BE?= =?UTF-8?q?=E5=A4=A7=E5=8A=9F=E8=83=BD=E8=AF=BB=E5=8F=96=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderers/Table/TableRow.tsx | 4 ++-- src/renderers/Table/index.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderers/Table/TableRow.tsx b/src/renderers/Table/TableRow.tsx index 7d563659d..3c20803b0 100644 --- a/src/renderers/Table/TableRow.tsx +++ b/src/renderers/Table/TableRow.tsx @@ -165,7 +165,7 @@ export class TableRow extends React.Component { ...rest, width: null, rowIndex: itemIndex, - colIndex: column.rawIndex, + colIndex: column.index, key: column.index, onAction: this.handleAction, onQuickChange: this.handleQuickChange @@ -208,7 +208,7 @@ export class TableRow extends React.Component { renderCell(`${itemIndex}/${column.index}`, column, item, { ...rest, rowIndex: itemIndex, - colIndex: column.rawIndex, + colIndex: column.index, key: column.index, onAction: this.handleAction, onQuickChange: this.handleQuickChange diff --git a/src/renderers/Table/index.tsx b/src/renderers/Table/index.tsx index 12b2a1fc8..c586c704d 100644 --- a/src/renderers/Table/index.tsx +++ b/src/renderers/Table/index.tsx @@ -1084,7 +1084,7 @@ export default class Table extends React.Component { // 从列表中收集所有图片,然后作为一个图片集合派送出去。 const store = this.props.store; - const column = store.filteredColumns[target.colIndex].pristine; + const column = store.columns[target.colIndex].pristine; let index = target.rowIndex; const list: Array = [];