Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Aug 15, 2020
1 parent 3be309b commit d6b987e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ gulp.task('build_umd', function () {
}]
]
}))
.pipe(replace(`global.jspdf`, `global.jsPDF ? { default: global.jsPDF } : global.jspdf`))
.pipe(replace(`global.${exportModuleName} = mod.exports;`, `global.${exportModuleName} = mod.exports.default;`))
.pipe(gulp.dest('dist'))
.pipe(uglify())
Expand Down
6 changes: 1 addition & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ function setup (options: VXETablePluginExportPDFOptions) {
const { fonts } = Object.assign(globalOptions, options)
if (fonts) {
if (isWin) {
if (window.jsPDF) {
if (!window.jsPDF.default) {
window.jsPDF.default = window.jsPDF
}
} else {
if (!window.jsPDF) {
window.jsPDF = window.jspdf ? window.jspdf.jsPDF : jsPDF
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-pdf",
"version": "1.8.3",
"version": "1.8.4",
"description": "基于 vxe-table 表格的增强插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand Down

0 comments on commit d6b987e

Please sign in to comment.