diff --git a/components/apolloTable/component/Cell.tsx b/components/apolloTable/component/Cell.tsx index be9ebde96447ca1961249d3c110e5a2cf78337c8..c033355e539a71606b5edb9b54837fd0e6f00b76 100644 --- a/components/apolloTable/component/Cell.tsx +++ b/components/apolloTable/component/Cell.tsx @@ -79,7 +79,7 @@ const Cell = (props: CellProps) => { return; } let temp: CellDataProps[] = []; - cellData.map((item: CellDataProps) => { + cellData && cellData.map((item: CellDataProps) => { temp.push({ text: item.text, value: item.value }); }); if (temp.length === 0) { diff --git a/components/apolloTable/component/Table.tsx b/components/apolloTable/component/Table.tsx index c4fc55b8111e89814dd210538fbd62db3be96e30..74947f75917d63a213bc2686a10c38b60b3504df 100644 --- a/components/apolloTable/component/Table.tsx +++ b/components/apolloTable/component/Table.tsx @@ -332,6 +332,7 @@ export default class AirTable extends Component { onEmitMsg, tableId, renderFirstLeft, + bordered = false, } = this.props; if (showColumns.length === 0 || showData.length === 0) { return; @@ -346,7 +347,7 @@ export default class AirTable extends Component { const cellData: any = columnData && columnData.cellValueList; // 列数据 - const { cellClassName, cellStyle, bordered = false } = columnConfig; + const { cellClassName, cellStyle } = columnConfig; const rowClassNameStr = getMergeClassName(styles.bodyRow, rowClassName, { rowIndex }); const rowStyleObj = getMergeStyle({}, rowStyle, { rowIndex }); diff --git a/components/apolloTable/component/base/edit/textarea/index.tsx b/components/apolloTable/component/base/edit/textarea/index.tsx index bbace38e4491725f6742409ec3fb22c4059597f8..374fe980cb156719ef9501692d01214d87c21a21 100644 --- a/components/apolloTable/component/base/edit/textarea/index.tsx +++ b/components/apolloTable/component/base/edit/textarea/index.tsx @@ -89,9 +89,9 @@ export const ApolloTextArea = (props: ApolloTextAreaProps) => { if (newValue) { newValue = newValue[0] && newValue[0].value; setCurValue(newValue); - setVisible(true); } } + setVisible(true); }; if (origin === 'editForm') { return (