From 25c7c5725b90234c0ba24f4f9cbdc18d0aab9668 Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 29 Jul 2024 18:29:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E7=B2=98=E8=B4=B4=E5=BF=AB=E6=8D=B7=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FileTree/DirTree.vue | 2 +- src/components/FileTree/index.vue | 2 +- src/components/ShowFile/DialogFileList.vue | 8 + src/components/ShowFile/FileClipboard.vue | 164 +++++++++++++++++++++ src/components/ShowFile/ShowFile.vue | 152 ++++++++++++------- src/store/getters.js | 1 + src/store/index.js | 7 + src/styles/index.scss | 7 + src/utils/file-operations.js | 2 +- src/views/favorite/index.vue | 1 + src/views/home/index.vue | 1 + src/views/tag/index.vue | 1 + 12 files changed, 294 insertions(+), 54 deletions(-) create mode 100644 src/components/ShowFile/FileClipboard.vue diff --git a/src/components/FileTree/DirTree.vue b/src/components/FileTree/DirTree.vue index f5b675d..9d4d29f 100644 --- a/src/components/FileTree/DirTree.vue +++ b/src/components/FileTree/DirTree.vue @@ -94,7 +94,7 @@ export default { setTimeout(function () { that.$refs.directoryTree.setCurrentKey('0') }, 0) - return resolve([{'id': "0", 'name': '全部文件'}]) + return resolve([{'id': "0", 'name': '根目录'}]) } if (node.level > 1) { fileId = node.data.id diff --git a/src/components/FileTree/index.vue b/src/components/FileTree/index.vue index 2dfec22..9b840be 100644 --- a/src/components/FileTree/index.vue +++ b/src/components/FileTree/index.vue @@ -152,7 +152,7 @@ export default { directoryTreeLoadNode(node, resolve) { let fileId = null; if (node.level === 0) { - let data = [{ id: "0", name: "全部文件" }]; + let data = [{ id: "0", name: "根目录" }]; const that = this; setTimeout(function() { that.$refs.fileTree.setCurrentKey("0"); diff --git a/src/components/ShowFile/DialogFileList.vue b/src/components/ShowFile/DialogFileList.vue index fafefab..bd3bd79 100644 --- a/src/components/ShowFile/DialogFileList.vue +++ b/src/components/ShowFile/DialogFileList.vue @@ -58,4 +58,12 @@ export default { } } } +>>> .svg-icon { + font-size: 28px; +} +>>> .el-avatar { + width: 28px; + height: 28px; + line-height: 28px; +} diff --git a/src/components/ShowFile/FileClipboard.vue b/src/components/ShowFile/FileClipboard.vue new file mode 100644 index 0000000..e6013e1 --- /dev/null +++ b/src/components/ShowFile/FileClipboard.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index e2ae4f0..ed28dc4 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -454,8 +454,6 @@ element-loading-background="#f6f7fa88" >
-

确定删除所选的{{selectDeleteFile.length}}个文件?默认进入回收站

+

确定删除所选的{{selectFileList.length}}个文件?默认进入回收站

永久删除文件(不进入回收站,直接删除)
- + 取 消 @@ -789,11 +787,13 @@ 取 消 - 覆 盖 - 不覆盖 + 覆 盖 + 不覆盖 + + @@ -801,6 +801,9 @@