|
|
@@ -78,6 +78,19 @@ const fileObject = ref({
|
|
|
|
|
|
不支持的类型会展示“该类型文件不支持在线预览”的兜底视图。
|
|
|
|
|
|
+## 使用的开源库
|
|
|
+
|
|
|
+本项目集成了以下优秀的开源库来实现多格式预览:
|
|
|
+
|
|
|
+- **[docx-preview](https://github.com/501351981/vue-office)**: 用于 `docx` 文档的渲染。
|
|
|
+- **[pdfjs-dist](https://github.com/mozilla/pdf.js)**: 用于 `pdf` 文档的解析与渲染。
|
|
|
+- **[exceljs](https://github.com/exceljs/exceljs)**: 用于 `xlsx` 表格数据的解析与处理。
|
|
|
+- **[x-data-spreadsheet](https://github.com/myliang/x-data-spreadsheet)**: 用于 `xlsx` 表格的 UI 渲染与交互。
|
|
|
+- **[huijia-pptxtojson](https://github.com/wobushiyoushen0214/pptxtojson)**: 用于 `pptx` 演示文稿的解析,基于(https://github.com/pipipi-pikachu/pptxtojson)修改。
|
|
|
+- **[html2canvas](https://github.com/niklasvh/html2canvas)**: 用于辅助某些格式的视觉转换。
|
|
|
+- **[tinycolor2](https://github.com/bgrins/TinyColor)**: 用于表格与演示文稿中的颜色处理。
|
|
|
+- **[lodash-es](https://github.com/lodash/lodash)**: 提供高性能的 JavaScript 工具函数。
|
|
|
+
|
|
|
## 读取文件并预览
|
|
|
|
|
|
### 读取本地文件
|