From 8ee3260e4e5240c4878612474f3f874b832e3ef1 Mon Sep 17 00:00:00 2001 From: liyulin <501351981@qq.com> Date: Wed, 4 Jan 2023 14:46:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8lerna=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=8B=86=E5=8C=85=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 1 + README.md | 48 +- examples/App.vue | 6 +- examples/components/DocxDemo.vue | 2 + examples/components/ExcelDemo.vue | 7 +- examples/components/PdfDemo.vue | 4 +- examples/main.js | 2 - package.json | 9 +- packages/docx/package.json | 13 +- packages/excel/package.json | 14 +- packages/excel/src/index.css | 757 ++++++++++++++++++++++++++++++ packages/excel/src/main.vue | 3 +- packages/index.js | 27 -- packages/pdf/package.json | 13 +- packages/pdf/src/main.vue | 2 +- 15 files changed, 845 insertions(+), 63 deletions(-) create mode 100644 .eslintignore create mode 100644 packages/excel/src/index.css delete mode 100644 packages/index.js diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..c3f221e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +packages/**/lib/ \ No newline at end of file diff --git a/README.md b/README.md index 5b139ea..e6c040b 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,25 @@ # vue-office -支持多种文件(docx、pdf、ppt、excel)预览的vue组件套装。 +支持多种文件(docx、pdf、excel)预览的vue组件套装。 ## 功能特色 -- 一站式:提供docx(已支持)、pdf(已支持)、ppt、excel多种文档的在线预览方案,有它就够了 +- 一站式:提供docx、pdf、excel多种文档的在线预览方案,有它就够了 - 简单:只需提供文档的src(网络地址)即可完成文档预览 - 体验好:选择每个文档的最佳预览方案,保证用户体验和性能都达到最佳状态 ## 安装 ``` -npm install vue-office +//docx文档预览组件 +npm install @vue-office/docx + +//excel文档预览组件 +npm install @vue-office/excel + +//pdf文档预览组件 +npm install @vue-office/pdf ``` -## 使用 +## 使用示例 ### docx文档的预览 ```vue