Merge pull request #107 from ydfzgyj/gridspan

add addGridspan to TableRow
This commit is contained in:
Dolan
2018-08-02 02:20:30 +01:00
committed by GitHub

View File

@ -91,6 +91,15 @@ export class TableRow extends XmlComponent {
public getCell(ix: number): TableCell {
return this.cells[ix];
}
public addGridSpan(ix: number, cellSpan: number): TableCell {
const remainCell = this.cells[ix];
remainCell.cellProperties.addGridSpan(cellSpan);
this.cells.splice(ix + 1, cellSpan - 1);
this.root.splice(ix + 2, cellSpan - 1);
return remainCell;
}
}
export class TableRowProperties extends XmlComponent {