From 1afd0450b96193030f73a6063ecbb6c69dbd1a34 Mon Sep 17 00:00:00 2001 From: yulei Date: Mon, 19 Aug 2024 14:33:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=88=E5=B9=B6?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E6=97=B6=E8=99=9A=E6=8B=9F=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/core/draw/Draw.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index d73a0f3..2e604bf 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -1273,10 +1273,10 @@ export class Draw { ) as Array> element.trList!.forEach((tr, trIndex) => { let tdIndex = 0 - while (virtualTable[trIndex][tdIndex] === null) { - tdIndex++ - } tr.tdList.forEach(td => { + while (virtualTable[trIndex][tdIndex] === null) { + tdIndex++ + } virtualTable[trIndex][tdIndex] = td for (let i = 1; i < td.rowspan; i++) { virtualTable[trIndex + i][tdIndex] = null