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

This commit is contained in:
Hufe921
2024-04-06 10:58:20 +08:00
parent 95b337de05
commit 5851e61cfc
+6 -2
View File
@@ -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