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 >
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
}
break

Loading…
Cancel
Save