:typo: update comments
This commit is contained in:
@ -271,7 +271,7 @@ describe("TableRow", () => {
|
||||
});
|
||||
|
||||
expect(tableRow.columnIndexToRootIndex(8, true)).to.equal(5);
|
||||
// for column 10, just place the new cell at the end of cell
|
||||
// for column 10, just place the new cell at the end of row
|
||||
expect(tableRow.columnIndexToRootIndex(10, true)).to.equal(5);
|
||||
});
|
||||
});
|
||||
|
@ -86,7 +86,7 @@ export class TableRow extends XmlComponent {
|
||||
while (colIdx <= columnIndex) {
|
||||
if (rootIdx >= this.root.length) {
|
||||
if (allowEndNewCell) {
|
||||
// for insert verticalMerge CONTINUE at row end
|
||||
// for inserting verticalMerge CONTINUE cell at end of row
|
||||
return this.root.length;
|
||||
} else {
|
||||
throw new Error(`cell 'columnIndex' should not great than ${colIdx - 1}`);
|
||||
|
Reference in New Issue
Block a user