Skip to content

Commit

Permalink
修复类型参数错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jun 25, 2024
1 parent e8389d7 commit 2d65292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
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.2",
"version": "4.0.3",
"description": "基于 vxe-table 表格的扩展插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 2d65292

Please sign in to comment.