From d46cdfb28259b72ff493b672b5e46f313549de2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 18 Sep 2026 17:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=8F=96=E4=BF=9D=E5=AD=98=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=BC=B9=E7=AA=97=E6=93=8D=E4=BD=9C=E5=BA=95=E6=A0=8F?= =?UTF-8?q?=20=E7=BB=9F=E4=B8=80=E5=85=B3=E9=97=AD=E4=B8=8E=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E6=8C=89=E9=92=AE=E7=9A=84=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/UiEditorSaveResultModal.tsx | 70 ++++++++++--------- 1 file changed, 37 insertions(+), 33 deletions(-) diff --git a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx index f6cfe4e8c..053b97662 100644 --- a/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx +++ b/apps/ai-game-creator-shell/src/view/ui-editor/components/UiEditorSaveResultModal.tsx @@ -67,16 +67,8 @@ function GeneratedNotice({
-
- -
+ ); } @@ -91,15 +83,7 @@ function SimpleNotice({ return ( <>

{title}

-
- -
+ ); } @@ -117,7 +101,29 @@ function FailureNotice({

{notice.message}

-
+ + + ); +} + +function NoticeFooter({ + onClose, + onRetry, + retryLabel = '重试', +}: { + onClose: () => void; + onRetry?: () => void; + retryLabel?: string; +}) { + return ( +
+ {onRetry ? ( - {notice.onRetry ? ( - - ) : null} -
- + ) : null} + +
); }