fix: 修复合并表格时虚拟表格构建错误的问题
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user