auto-save 2026-05-14 02:58 (~6)
This commit is contained in:
@@ -44,6 +44,7 @@ export interface NodeData {
|
||||
onOpenVideoLightbox: () => void
|
||||
onSwitchJob: (id: string) => void
|
||||
onJobUpdate: (j: Job) => void
|
||||
onDeleteJob?: (id: string) => void
|
||||
onOpenPanel?: (key: string) => void // 控制 sidebar 哪个 drawer 展开
|
||||
onDeleteFrame?: (idx: number) => void // 删整张关键帧
|
||||
onDeleteGenerated?: (frameIdx: number, genId: string) => void // 删单张生成图
|
||||
@@ -411,6 +412,21 @@ export function InputNode({ data, selected }: NodeProps<{ data: NodeData }> | an
|
||||
{ready ? `${j.duration.toFixed(1)}s` : "…"}
|
||||
</div>
|
||||
</button>
|
||||
{d.onDeleteJob && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
if (confirm(`删除视频任务 ${j.id.slice(0, 8)}?源视频、关键帧、元素提取图和生成视频都会一并删除。`)) {
|
||||
d.onDeleteJob?.(j.id)
|
||||
}
|
||||
}}
|
||||
title="删除这个输入视频"
|
||||
className="absolute right-1.5 top-1.5 z-[70] inline-flex h-7 w-7 items-center justify-center rounded-full bg-rose-500/95 text-white shadow-lg backdrop-blur transition hover:scale-110 hover:bg-rose-400"
|
||||
>
|
||||
<Trash2 className="h-3.5 w-3.5" />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user