Add declarative column merge

This commit is contained in:
Dolan Miu
2019-09-22 02:39:38 +01:00
parent d2f82052b4
commit a9d4ebc898
8 changed files with 179 additions and 108 deletions

View File

@ -42,18 +42,7 @@ export class TableRow extends XmlComponent {
return this.options.children.length;
}
// public mergeCells(startIndex: number, endIndex: number): TableCell {
// const cellSpan = endIndex - startIndex + 1;
// return this.addGridSpan(startIndex, cellSpan);
// }
// private addGridSpan(index: number, cellSpan: number): TableCell {
// const remainCell = this.options.children[index];
// remainCell.addGridSpan(cellSpan);
// this.options.children.splice(index + 1, cellSpan - 1);
// this.root.splice(index + 2, cellSpan - 1);
// return remainCell;
// }
public get Children(): TableCell[] {
return this.options.children;
}
}