From e616e2c89950a9588a5dbc98923d62be64fb29ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Thu, 3 Sep 2026 11:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E9=80=8F=E6=98=8E=E5=BA=A6?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E7=9A=84=E9=A2=9C=E8=89=B2=E8=8D=89=E7=A8=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 透明度修改提交前显式清除颜色草稿\n避免无效更新后残留未提交颜色 --- .../components/Inspector/Components/TextPanel.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/TextPanel.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/TextPanel.tsx index b3b9f0d9c..ea5c1ed8a 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/TextPanel.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Components/TextPanel.tsx @@ -190,12 +190,13 @@ export function TextPanel({ max={255} step={1} value={Math.round(rgba.a * 255)} - onChange={(event) => + onChange={(event) => { + setColorDraft(null); onChange({ ...component, color: [rgba.r, rgba.g, rgba.b, Number(event.target.value)], - }) - } + }); + }} /> ) : null}