feat(批量转换): 统一批量转换进度换行布局
build.yaml / build (push) Successful in 45s

This commit is contained in:
xiaoqidun committed 2026-10-18 02:44:52 +08:00
1 parent a665d5c11b
commit fe77e8fa37
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -8276,7 +8276,7 @@ function updateBatchProgress() {
if (item.status !== "running" || !item.progress) continue;
const progress = item.progress.progress;
const stage = progress.phase?.includes("compress") ? "压缩" : progress.phase?.startsWith("write") ? "写入" : { open: "读取", pages: "解析", convert: "转换", prepare: "准备", fonts: "字体", export: "导出" }[progress.phase] || "处理";
batchStatus(item, "running", `${stage}${progress.total > 0 ? ` ${progress.completed}/${progress.total}` : ""}`);
batchStatus(item, "running", `${stage}${progress.total > 0 ? `\n${progress.completed}/${progress.total}` : ""}`);
}
if (!batch.progress) {
const completed = batch.jobs.filter(item => ["done", "ready", "unchanged", "failed", "canceled"].includes(item.status)).length;