From f3e21a208cc6b315a0394f456e69af9b672eb78c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 12 Aug 2026 17:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=AB=E9=80=9F=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E9=9D=A2=E6=9D=BF=E6=9C=AA=E4=BD=BF=E7=94=A8=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除快速编辑面板中未使用的 sourceLayer 属性 同步调用方与测试夹具 --- .../ImageCanvasGenerationComposerView.tsx | 1 - .../ImageCanvasQuickEditPanelView.test.tsx | 17 ----------------- .../ImageCanvasQuickEditPanelView.tsx | 3 --- 3 files changed, 21 deletions(-) diff --git a/src/components/image-editor/ImageCanvasGenerationComposerView.tsx b/src/components/image-editor/ImageCanvasGenerationComposerView.tsx index 313160036..e0a5406ae 100644 --- a/src/components/image-editor/ImageCanvasGenerationComposerView.tsx +++ b/src/components/image-editor/ImageCanvasGenerationComposerView.tsx @@ -1795,7 +1795,6 @@ export function ImageCanvasGenerationComposerView({ {quickEditPanel && quickEditSourceLayer && quickEditPanelStyle ? ( (null); - const sourceLayer: CanvasLayer = { - id: 'layer-a', - resourceId: 'resource-a', - title: '源图片', - src: '/source.png', - mediaType: 'image', - originalWidth: 1024, - originalHeight: 1024, - width: 512, - height: 512, - x: 0, - y: 0, - zIndex: 1, - sourceType: 'uploaded', - }; return panel ? (
; isReferenceMenuOpen?: boolean; @@ -93,7 +91,6 @@ function syncPanelFromDialogUpdate( export function ImageCanvasQuickEditPanelView({ panel, - sourceLayer, style, referenceButtonRef, isReferenceMenuOpen = false,