From 11e54b3e2cb5ea5721a8f1e4546e29edff35d2c1 Mon Sep 17 00:00:00 2001 From: wangfengming Date: Sat, 20 Jun 2020 21:36:35 +0800 Subject: [PATCH] :fix: handle cell that has both `columnSpan` and `rowSpan` --- src/file/table/table.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file/table/table.ts b/src/file/table/table.ts index 2422f50161..888f91dca1 100644 --- a/src/file/table/table.ts +++ b/src/file/table/table.ts @@ -87,6 +87,7 @@ export class Table extends XmlComponent { for (let i = rowIndex + 1; i <= endRowIndex; i++) { rows[i].addCellToIndex( new TableCell({ + columnSpan: cell.options.columnSpan, borders: cell.options.borders, children: [], verticalMerge: VerticalMergeType.CONTINUE,