From 2d652925ba0103429a4f99307a1e78fda9b5be53 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 25 Jun 2024 21:08:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.ts | 5 +++-- package.json | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.ts b/index.ts index 872ced8..b0e9834 100644 --- a/index.ts +++ b/index.ts @@ -194,11 +194,12 @@ export const VXETablePluginExportPDF = { globalVxetable = vxetable globalJsPDF = options ? options.jsPDF : null - vxetable.config({ + const setConfig = vxetable.setConfig || vxetable.config + setConfig({ table: { exportConfig: { _typeMaps: { - xlsx: 1 + pdf: 1 } } as any }, diff --git a/package.json b/package.json index ecddc7f..44838b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-export-pdf", - "version": "4.0.2", + "version": "4.0.3", "description": "基于 vxe-table 表格的扩展插件,支持导出 pdf 格式", "scripts": { "lib": "gulp build" @@ -52,7 +52,7 @@ "prettier": "^2.1.2", "sass": "^1.55.0", "typescript": "^4.6.4", - "vue": "^3.4.23", + "vue": "^3.4.27", "vxe-table": "^4.6.17" }, "peerDependencies": {