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": {