From d1f3073fef854d80c48c9bb9cddf333abf6be4e5 Mon Sep 17 00:00:00 2001 From: eternallycyf <969475322@qq.com> Date: Wed, 8 May 2024 15:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(ims-view-pc):=20add=20FileUplo?= =?UTF-8?q?ad=20FileViewer=20ExportWord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ims-view-pc/package.json | 18 +++- .../src/components/ExportWord/index.md | 14 ++++ .../src/components/FileUpload/index.md | 82 +++++++++++++++++++ .../src/components/FileViewer/index.md | 14 ++++ 4 files changed, 126 insertions(+), 2 deletions(-) create mode 100644 packages/ims-view-pc/src/components/ExportWord/index.md create mode 100644 packages/ims-view-pc/src/components/FileUpload/index.md create mode 100644 packages/ims-view-pc/src/components/FileViewer/index.md diff --git a/packages/ims-view-pc/package.json b/packages/ims-view-pc/package.json index 92449c3..c6e2bea 100644 --- a/packages/ims-view-pc/package.json +++ b/packages/ims-view-pc/package.json @@ -35,7 +35,21 @@ "resize-observer-polyfill": "1.5.1", "runes2": "^1.1.2", "video.js": "^7.21.5", - "copy-to-clipboard": "^3.3.3" + "copy-to-clipboard": "^3.3.3", + "react-excel-renderer": "^1.1.0", + "docx-preview": "^0.3.1", + "react-syntax-highlighter": "^15.5.0", + "react-markdown": "^9.0.1", + "remark-gfm": "^4.0.0", + "file-saver": "^2.0.5", + "docx-preview": "^0.3.1", + "jszip": "^3.10.1", + "jszip-utils": "^0.1.0", + "open-docxtemplater-image-module": "^1.0.3", + "pizzip": "^3.1.7", + "react-excel-renderer": "^1.1.0", + "react-file-viewer": "^1.2.1", + "react-markdown": "^9.0.1" }, "peerDependencies": { "@ant-design/icons": "^5.2.6", @@ -52,4 +66,4 @@ "access": "public", "registry": "https://registry.npmjs.org" } -} +} \ No newline at end of file diff --git a/packages/ims-view-pc/src/components/ExportWord/index.md b/packages/ims-view-pc/src/components/ExportWord/index.md new file mode 100644 index 0000000..1af89a2 --- /dev/null +++ b/packages/ims-view-pc/src/components/ExportWord/index.md @@ -0,0 +1,14 @@ +--- +title: ExportWord +description: 导出word +toc: content +group: + title: 文件 + order: 5 +demo: + cols: 2 +--- + +## ExportWord 导出 word + +[ExportWord](https://github.com/eternallycyf/Antd-CustomComponent/blob/main/src/pages/ExportWord/index.tsx) diff --git a/packages/ims-view-pc/src/components/FileUpload/index.md b/packages/ims-view-pc/src/components/FileUpload/index.md new file mode 100644 index 0000000..f42aa8b --- /dev/null +++ b/packages/ims-view-pc/src/components/FileUpload/index.md @@ -0,0 +1,82 @@ +--- +title: FileUpload +description: 上传文件 +toc: content +group: + title: 文件 + order: 5 +demo: + cols: 2 +--- + +## FileUpload 上传文件 + +[FileUpload](https://github.com/eternallycyf/Antd-CustomComponent/blob/main/src/components/File/FileUpload/index.tsx) + +## 单独使用 + +```tsx | pure +