fix: cannot page when merge cells across columns in the same row #41

pr675
Hufe921 2 years ago
parent 95b337de05
commit 5851e61cfc

@ -1318,8 +1318,12 @@ export class Draw {
curPagePreHeight + rowMarginHeight + preTrHeight + trHeight > curPagePreHeight + rowMarginHeight + preTrHeight + trHeight >
height height
) { ) {
// 是否跨列 // 当前行存在跨行中断-暂时忽略分页
if (element.colgroup?.length !== tr.tdList.length) { const rowColCount = tr.tdList.reduce(
(pre, cur) => pre + cur.colspan,
0
)
if (element.colgroup?.length !== rowColCount) {
deleteCount = 0 deleteCount = 0
} }
break break

Loading…
Cancel
Save