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 && (