feat(M1): FR-F3/F7/F8/F11/F12 文件树操作补齐——文件夹悬停加新建文档/新建文件夹/导入文件夹按钮(F3); 行内重命名 onBlur 改为提交(F7); 删除改 shell.trashItem 移入回收站(F8); fileImportFolder IPC+对话框导入文件夹(F11); 导入结果 showAlert 弹窗列失败项(F12); dialog-store 加 alert 模式; filetree-ops E2E 3 项

This commit is contained in:
hunter-dev
2026-08-26 15:15:35 +08:00
parent 3390e91406
commit 8f6fd7082b
6 changed files with 136 additions and 13 deletions
+2
View File
@@ -17,6 +17,7 @@ export const IPC = {
fileMove: 'file:move',
fileDelete: 'file:delete',
fileImport: 'file:import',
fileImportFolder: 'file:import-folder',
assetPickImage: 'asset:pick-image',
assetWrite: 'asset:write',
docRead: 'doc:read',
@@ -53,6 +54,7 @@ export interface IpcMap {
[IPC.fileMove]: { args: { src: string; destDir: string }; result: { path: string } };
[IPC.fileDelete]: { args: { path: string; recursive: boolean }; result: void };
[IPC.fileImport]: { args: { sources: string[]; destDir: string }; result: { ok: string[]; failed: { path: string; reason: string }[] } };
[IPC.fileImportFolder]: { args: { destDir: string }; result: { ok: string[]; failed: { path: string; reason: string }[] } };
[IPC.assetPickImage]: { args: void; result: string | null };
[IPC.assetWrite]: { args: { name: string; dataBase64: string }; result: string };
[IPC.docRead]: { args: { path: string }; result: ReadDocResult };