:fix: rowSpan does not work correctly

This commit is contained in:
wangfengming
2020-06-20 19:47:46 +08:00
parent 88340aa336
commit 994df8531b
3 changed files with 49 additions and 9 deletions

View File

@ -46,6 +46,10 @@ export class TableRow extends XmlComponent {
return this.options.children;
}
public get cells(): TableCell[] {
return this.root.filter((xmlComponent) => xmlComponent instanceof TableCell);
}
public addCellToIndex(cell: TableCell, index: number): void {
// Offset because properties is also in root.
this.root.splice(index + 1, 0, cell);