auto-save 2026-05-13 21:24 (~6)

This commit is contained in:
2026-05-13 21:24:32 +08:00
parent d4eb18e5f8
commit 2befdf4e40
6 changed files with 81 additions and 17 deletions

View File

@@ -122,7 +122,6 @@ export function StoryboardWorkbench({ job, selectedFrames, open, onClose, onJobU
window.addEventListener("pointerup", onUp)
}
const hasVideoRefs = !!(form.subject_image || form.scene_image || form.product_image || form.action_image)
const currentModelLabel = VIDEO_MODELS.find((m) => m.value === videoModel)?.label ?? "Seedance"
return (
@@ -303,7 +302,7 @@ export function StoryboardWorkbench({ job, selectedFrames, open, onClose, onJobU
</div>
</div>
<button
disabled={!hasVideoRefs || focusedIdx === null || generating}
disabled={focusedIdx === null || generating}
onClick={async () => {
if (focusedIdx === null) return
queueSave(form)
@@ -315,13 +314,13 @@ export function StoryboardWorkbench({ job, selectedFrames, open, onClose, onJobU
}
}}
className="w-full py-3 rounded-lg text-[13.5px] font-semibold inline-flex items-center justify-center gap-2 bg-gradient-to-r from-rose-500 to-violet-500 text-white border border-violet-300/40 shadow-lg shadow-violet-500/20 hover:from-rose-400 hover:to-violet-400 disabled:opacity-40 disabled:cursor-not-allowed"
title={hasVideoRefs ? `调用 ${currentModelLabel} 生视频 API,结果进入 Video Gen 节点` : "先粘贴至少一张参考图"}
title={`用当前分镜关键帧作为首帧,调用 ${currentModelLabel} 生视频 API`}
>
{generating ? <Loader2 className="h-4 w-4 animate-spin" /> : <Wand2 className="h-4 w-4" />}
{currentModelLabel}
</button>
<div className="mt-2 text-[10.5px] text-white/35 leading-relaxed">
4 API MP4 Video Gen
4 MP4 Video Gen
</div>
</section>
</div>