From 83c12c3b0b25ce72715f23383cb43912673ab6dc 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 14:31:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E8=A7=92=E7=82=B9=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 CORNERS 中未被布局读取的 positionClass 死数据。 --- .../Inspector/Transform/TransformEditor.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx index 20dc6f4bd..3749f9b48 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/Inspector/Transform/TransformEditor.tsx @@ -61,16 +61,11 @@ const ROW_MODES: AnchorMode[] = ['start', 'center', 'end', 'stretch']; const CORNERS: readonly { id: Corner; label: string; - positionClass: string; }[] = [ - { id: 'top-left', label: '左上角', positionClass: 'left-1 top-1' }, - { id: 'top-right', label: '右上角', positionClass: 'right-1 top-1' }, - { id: 'bottom-left', label: '左下角', positionClass: 'bottom-1 left-1' }, - { - id: 'bottom-right', - label: '右下角', - positionClass: 'bottom-1 right-1', - }, + { id: 'top-left', label: '左上角' }, + { id: 'top-right', label: '右上角' }, + { id: 'bottom-left', label: '左下角' }, + { id: 'bottom-right', label: '右下角' }, ]; function CornerIcon({