From ec09ed420c02b7d50ff1b61c1119ad5f83da629b Mon Sep 17 00:00:00 2001 From: Wx-2025 <351320169@qq.com> Date: Wed, 31 Dec 2025 11:30:24 +0800 Subject: [PATCH] Update executor.js --- core/table-system/executor.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/table-system/executor.js b/core/table-system/executor.js index 349959c..d8c656d 100644 --- a/core/table-system/executor.js +++ b/core/table-system/executor.js @@ -26,6 +26,13 @@ function insertRow(state, tableIndex, data) { } } table.rows.push(newRow); + + // 同步更新 rowStatuses + if (!table.rowStatuses) { + table.rowStatuses = Array(table.rows.length - 1).fill('normal'); + } + table.rowStatuses.push('normal'); + return { state, changes }; }