From e8389d79622ab6ccd78b5be588ae2f74538f9e5f Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Mon, 27 May 2024 13:58:12 +0800 Subject: [PATCH] fix --- index.ts | 10 +++++++++- package.json | 4 ++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index d72c323..872ced8 100644 --- a/index.ts +++ b/index.ts @@ -195,11 +195,19 @@ export const VXETablePluginExportPDF = { globalJsPDF = options ? options.jsPDF : null vxetable.config({ + table: { + exportConfig: { + _typeMaps: { + xlsx: 1 + } + } as any + }, + // 兼容老版本 export: { types: { pdf: 1 } - } + } as any }) vxetable.interceptor.mixin({ 'event.export': handleExportEvent diff --git a/package.json b/package.json index 3b8e7c1..ecddc7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-export-pdf", - "version": "4.0.1", + "version": "4.0.2", "description": "基于 vxe-table 表格的扩展插件,支持导出 pdf 格式", "scripts": { "lib": "gulp build" @@ -53,7 +53,7 @@ "sass": "^1.55.0", "typescript": "^4.6.4", "vue": "^3.4.23", - "vxe-table": "^4.6.0" + "vxe-table": "^4.6.17" }, "peerDependencies": { "vxe-table": "^4.5.0"