feat: batch delete

This commit is contained in:
tao.chen
2026-08-28 10:54:08 +08:00
parent a897a08534
commit 51f1fe96bf
11 changed files with 408 additions and 184 deletions
+3 -1
View File
@@ -21,13 +21,15 @@ const checkAll = $('checkAll');
const checkAllWrap = $('checkAllWrap');
const batchBtn = $('batchBtn');
const batchCount = $('batchCount');
const batchDeleteBtn = $('batchDeleteBtn');
const batchDeleteCount= $('batchDeleteCount');
// pending[i] = { id, file, xhr, status: 'pending'|'uploading'|'done'|'error'|'cancelled', progress, error }
let pending = [];
let nextId = 1;
let isUploading = false;
// selectedFiles 在 batch.js 顶层 var 声明, 同 <script> 内共享.
// selectedFiles 在 batch.js 顶层 var 声明, 跨文件共享 (classic <script> 加载顺序: app.js → helpers.js → batch.js).
// ---------------------------------------------------------------------------
// Toast