diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index 321dde5836c1a6a09b2c23961eeccb7436b25526..c81e780d30bba89a2b6b3c9fa0d9b66af6908115 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;