From fdb0ed498f295b50c072c4b3652c08e2d60a747a Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期三, 03 十二月 2025 16:29:57 +0800
Subject: [PATCH] 增加pdf,xlsx,docx文件预览功能
---
src/main.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index 5b8db4a..b59d4eb 100644
--- a/src/main.js
+++ b/src/main.js
@@ -45,6 +45,9 @@
//鏂囦欢瀵规瘮
import CodeDiff from 'v-code-diff'
import mitt from 'mitt'
+import VuePdfEmbed from 'vue-pdf-embed';
+import VueOfficeDocx from '@vue-office/docx';
+import VueOfficeExcel from '@vue-office/excel';
const myemitter = mitt()
window.myemitter = myemitter;
@@ -68,6 +71,11 @@
app.component('formSetting', formSetting);
app.component('tenantPackage', tenantPackage);
app.component('tenantDatasource', tenantDatasource);
+
+app.component('VuePdfEmbed', VuePdfEmbed);
+app.component('VueOfficeDocx', VueOfficeDocx);
+app.component('VueOfficeExcel', VueOfficeExcel);
+
app.config.globalProperties.$app = app;
app.config.globalProperties.$dayjs = dayjs;
app.config.globalProperties.website = website;
--
Gitblit v1.9.3