From 262dad5563ddb808cc050d313530197dbc3804e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Wed, 5 Aug 2026 15:16:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E8=A7=84=E8=8C=83=E7=94=9F=E6=88=90=E9=9D=A2=E6=9D=BF=E7=9A=84?= =?UTF-8?q?=E5=A4=9A=E8=A1=8C=E8=BE=93=E5=85=A5=E6=A1=86,=20=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BA=A4=E4=BA=92=E4=B8=8E=E5=9B=BE=E6=A0=87=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 优化输入框样式,与画布编辑器一致。 - 调整按钮布局,添加间距和微调样式以提升一致性。 - 替换按钮文本为动态图标及文本组合,优化用户体验。 --- .../ImageCanvasSpecGenerationPanelView.tsx | 113 ++++++++++-------- 1 file changed, 65 insertions(+), 48 deletions(-) diff --git a/src/components/image-editor/ImageCanvasSpecGenerationPanelView.tsx b/src/components/image-editor/ImageCanvasSpecGenerationPanelView.tsx index 93198069e..2842e7496 100644 --- a/src/components/image-editor/ImageCanvasSpecGenerationPanelView.tsx +++ b/src/components/image-editor/ImageCanvasSpecGenerationPanelView.tsx @@ -1,4 +1,11 @@ -import { ClipboardList, Cpu, ImagePlus } from 'lucide-react'; +import { + ClipboardList, + Cpu, + ImagePlus, + Loader2, + Sparkles, + Undo2, +} from 'lucide-react'; import { type CSSProperties, type Dispatch, @@ -466,61 +473,71 @@ export function ImageCanvasSpecGenerationPanelView({ > {item.title} -
- - onUpdateSpecFormValue( - item.key, - limitIconSpecPrompt(event.target.value), - ) + + onUpdateSpecFormValue( + item.key, + limitIconSpecPrompt(event.target.value), + ) + } + /> +
+ -
+ onClick={() => optimizeIconSpecField(item.field)} + > + {item.optimization.optimizing ? ( + <> +
+ ) : null}
);