Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Sep 25, 2020
1 parent 26c62f9 commit f650aa8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,17 @@ declare module 'vxe-table/lib/vxe-table' {
export const VXETablePluginExportPDF = {
setup,
install (vxetable: typeof VXETable, options?: VXETablePluginExportPDFOptions) {
const { interceptor } = vxetable
vxetable.types.pdf = 0
interceptor.mixin({
if (vxetable.types) {
vxetable.types.pdf = 0
}
vxetable.setup({
export: {
types: {
pdf: 1
}
}
})
vxetable.interceptor.mixin({
'event.export': handleExportEvent
})
if (options) {
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.7",
"version": "1.8.8",
"description": "基于 vxe-table 表格的增强插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand Down

0 comments on commit f650aa8

Please sign in to comment.