From 0e0951963362381fdaa81dab52db4b0d7308d1a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Thu, 9 Oct 2025 14:32:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=B8=AD=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/pages/work-flow/media-viewer.tsx | 45 +++++++++++++++------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/components/pages/work-flow/media-viewer.tsx b/components/pages/work-flow/media-viewer.tsx index 35fc2e2..016648c 100644 --- a/components/pages/work-flow/media-viewer.tsx +++ b/components/pages/work-flow/media-viewer.tsx @@ -398,6 +398,37 @@ export const MediaViewer = React.memo(function MediaViewer({ }; }, []); + // 加载中 + const renderLoading = () => { + return ( +
+
+ {/* 渐变进度环 */} +
+ {/* 外层旋转渐变边框 */} +
+ {/* 内层遮罩(形成边框效果) */} +
+
+ + {/* 文案 */} +
+
+ Generating... +
+
Processing your request
+
+
+
+ ) + } + // 渲染底部通栏控制条(与图2一致) const renderBottomControls = ( isFinal: boolean, @@ -524,12 +555,7 @@ export const MediaViewer = React.memo(function MediaViewer({
{/* 生成中 */} {taskObject.videos.data[currentSketchIndex].video_status === 0 && ( -
-
- - Generating... -
-
+ renderLoading() )} {/* 生成失败 */} {taskObject.videos.data[currentSketchIndex].video_status === 2 && ( @@ -696,12 +722,7 @@ export const MediaViewer = React.memo(function MediaViewer({ > {/* 状态 */} {currentSketch.status === 0 && ( -
-
- - Generating... -
-
+ renderLoading() )} {currentSketch.status === 2 && (