From 2f48fc1d4c80a4c25a04d5f4e1e6c19fbb3528db Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 23 Apr 2026 11:53:33 +0800
Subject: [PATCH] fix: add kimi to models.ts
---
aigc-director/aigc-claw/frontend/components/stages/ReferenceStage.tsx | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/aigc-director/aigc-claw/frontend/components/stages/ReferenceStage.tsx b/aigc-director/aigc-claw/frontend/components/stages/ReferenceStage.tsx
index 31596ab..c2640df 100644
--- a/aigc-director/aigc-claw/frontend/components/stages/ReferenceStage.tsx
+++ b/aigc-director/aigc-claw/frontend/components/stages/ReferenceStage.tsx
@@ -16,7 +16,7 @@
description: string; // 视觉提示词
selected: string; // 当前选中的文件路径
versions: string[]; // 所有历史版本路径
- status?: 'pending' | 'done' | 'failed';
+ status?: 'pending' | 'done' | 'failed' | 'running';
}
/* ─── 水平滚动图片画廊 ─── */
@@ -153,7 +153,8 @@
onToggleEdit?: () => void;
getSelected: (scene: SceneItem) => string;
}) {
- const isPending = scene.status === 'pending' || isRegenerating;
+ const isRunning = scene.status === 'running' || isRegenerating;
+ const isPending = scene.status === 'pending';
const isFailed = scene.status === 'failed' && !isRegenerating;
const isPendingEmpty = scene.status === 'pending' && !scene.versions.length && !isRegenerating;
const hasChanges = editDesc !== scene.description;
@@ -170,6 +171,9 @@
</span>
<span className="text-sm font-semibold text-gray-800 truncate">{scene.name || (scene as any).title || `片段 ${scene.index}`}</span>
{isPending && (
+ <span className="text-[10px] bg-gray-50 text-gray-500 px-1.5 py-0.5 rounded">等待中</span>
+ )}
+ {isRunning && (
<span className="inline-flex items-center gap-1 text-[10px] bg-amber-50 text-amber-600 px-1.5 py-0.5 rounded">
<Loader className="w-2.5 h-2.5 animate-spin" />生成中
</span>
@@ -246,13 +250,19 @@
<span>生成首帧参考图</span>
</div>
</div>
- ) : isPending && !scene.versions.length ? (
+ ) : isRunning && !scene.versions.length ? (
<div className="flex items-center justify-center h-28 aspect-video bg-gray-50 rounded-lg border border-dashed border-gray-200">
<div className="flex items-center gap-2 text-gray-400 text-xs">
<Loader className="w-4 h-4 animate-spin" />
<span>正在生成...</span>
</div>
</div>
+ ) : isPending && !scene.versions.length ? (
+ <div className="flex items-center justify-center h-28 aspect-video bg-gray-50/30 rounded-lg border border-dashed border-gray-200">
+ <div className="flex items-center gap-2 text-gray-400 text-xs text-center px-4">
+ <span>等待生成...</span>
+ </div>
+ </div>
) : isFailed && !scene.versions.length ? (
<div
className="flex items-center justify-center h-28 aspect-video bg-red-50/50 rounded-lg border border-dashed border-red-200 cursor-pointer hover:bg-red-100/50 transition-colors"
--
Gitblit v1.8.0