fix: cannot page when merge cells across columns in the same row #41
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user