From 033da954a2696c28e4f0eae3e2a8c9a8a5dae9bf Mon Sep 17 00:00:00 2001 From: zhangwenshuai Date: Wed, 24 Jun 2020 23:30:01 +0800 Subject: [PATCH] =?UTF-8?q?cell=E6=95=B0=E6=8D=AE=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/apolloTable/component/Table.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index 321dde5..c81e780 100644 --- a/components/apolloTable/component/Table.tsx +++ b/components/apolloTable/component/Table.tsx @@ -345,7 +345,11 @@ export default class AirTable extends Component { const record: any = dataSource[rowIndex]; // 行数据 const rowData: any = showData[rowIndex]; // 行数据 const columnConfig: any = showColumns[columnIndex]; // 列属性 - const columnData: any = rowData.rowData[columnIndex]; // 列数据 + // const columnData: any = rowData.rowData[columnIndex]; // 列数据 + const columnData: any = rowData.rowData.find((temp) => { + return temp.colName === columnConfig.columnName; + }); // 列数据 + const cellData: any = columnData && columnData.cellValueList; // 列数据 const { cellClassName, cellStyle, bordered = false } = columnConfig; -- 2.21.0