Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed May 27, 2024
1 parent 900633a commit e8389d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e8389d7

Please sign in to comment.