fix: 修复合并表格时虚拟表格构建错误的问题

This commit is contained in:
yulei
2024-08-19 14:33:03 +08:00
parent b9f2b92cde
commit 1afd0450b9
+1 -1
View File
@@ -1273,10 +1273,10 @@ export class Draw {
) as Array<Array<ITd | undefined | null>>
element.trList!.forEach((tr, trIndex) => {
let tdIndex = 0
tr.tdList.forEach(td => {
while (virtualTable[trIndex][tdIndex] === null) {
tdIndex++
}
tr.tdList.forEach(td => {
virtualTable[trIndex][tdIndex] = td
for (let i = 1; i < td.rowspan; i++) {
virtualTable[trIndex + i][tdIndex] = null