Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Oct 13, 2020
1 parent 88edb49 commit 765d194
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
9 changes: 0 additions & 9 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,12 @@ function setup (options: VXETablePluginExportPDFOptions) {
}
}

declare module 'vxe-table/lib/vxe-table' {
interface VXETableTypes {
pdf: number;
}
}

/**
* 基于 vxe-table 表格的增强插件,支持导出 pdf 格式
*/
export const VXETablePluginExportPDF = {
setup,
install (vxetable: typeof VXETable, options?: VXETablePluginExportPDFOptions) {
if (vxetable.types) {
vxetable.types.pdf = 0
}
vxetable.setup({
export: {
types: {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
"prettier": "^1.18.2",
"typescript": "^3.9.3",
"vue": "^2.6.11",
"vxe-table": "^2.9.22",
"xe-utils": "^2.7.12"
"vxe-table": "^2.9.25",
"xe-utils": "^2.7.13"
},
"peerDependencies": {
"vxe-table": ">= 2.9.0",
"vxe-table": ">= 2.9.25",
"jspdf": ">= 2.1.0"
},
"repository": {
Expand Down

0 comments on commit 765d194

Please sign in to comment.