From 7b9324a13a32f924d37c798f19ed6042a9763f1e Mon Sep 17 00:00:00 2001 From: jmal Date: Sat, 18 Jan 2025 12:57:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=99=BD=E6=9D=BF?= =?UTF-8?q?=E5=BA=94=E7=94=A8(excalidraw)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 4 + src/components/office/ExcalidrawEditor.vue | 408 +++++++++++++++++++++ src/components/preview/IframePreview.vue | 7 +- src/icons/svg/file-excalidraw.svg | 1 + src/utils/file-operations.js | 12 + src/utils/file-type.js | 3 +- src/views/favorite/index.vue | 13 +- src/views/fileType/audio.vue | 13 +- src/views/fileType/document.vue | 13 +- src/views/fileType/image.vue | 13 +- src/views/fileType/video.vue | 13 +- src/views/home/index.vue | 13 +- src/views/recently/index.vue | 14 +- src/views/tag/index.vue | 13 +- 14 files changed, 449 insertions(+), 91 deletions(-) create mode 100644 src/components/office/ExcalidrawEditor.vue create mode 100644 src/icons/svg/file-excalidraw.svg diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index e4f47ea..50b7f0b 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -3607,6 +3607,10 @@ export default { this.newCreateFileDialogTitle = '新建Word文档' this.createNewFile('docx') break + case 'createExcalidrawFile': + this.newCreateFileDialogTitle = '新建白板' + this.createNewFile('excalidraw') + break case 'createExcelFile': this.newCreateFileDialogTitle = '新建Excel工作表' this.createNewFile('xlsx') diff --git a/src/components/office/ExcalidrawEditor.vue b/src/components/office/ExcalidrawEditor.vue new file mode 100644 index 0000000..20d709f --- /dev/null +++ b/src/components/office/ExcalidrawEditor.vue @@ -0,0 +1,408 @@ + + + + + diff --git a/src/components/preview/IframePreview.vue b/src/components/preview/IframePreview.vue index 30d56d6..fe2031f 100644 --- a/src/components/preview/IframePreview.vue +++ b/src/components/preview/IframePreview.vue @@ -19,6 +19,7 @@ + @@ -31,6 +32,7 @@