Add addGridSpan to TableRow

This commit is contained in:
巴里切罗
2018-07-27 15:55:22 +08:00
parent 1aa592b1b9
commit fc27e44471

View File

@ -81,6 +81,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 {