From eb7a87b4a8c2144e6c52a21f8502b98a3318c578 Mon Sep 17 00:00:00 2001 From: yulei Date: Mon, 19 Aug 2024 14:50:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DzipElementList?= =?UTF-8?q?=E4=B8=AD=E8=B7=A8=E9=A1=B5=E8=A1=A8=E6=A0=BC=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/utils/element.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/utils/element.ts b/src/editor/utils/element.ts index 26fcaaf..04ffdfe 100644 --- a/src/editor/utils/element.ts +++ b/src/editor/utils/element.ts @@ -606,10 +606,10 @@ export function zipElementList( ) 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