diff --git a/README.md b/README.md index 7b0f183..0a9db1a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![npm downloads](https://img.shields.io/npm/dm/vxe-table-plugin-export-pdf.svg?style=flat-square)](http://npm-stat.com/charts.html?package=vxe-table-plugin-export-pdf) [![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE) -基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 的表格插件,支持导出 pdf 格式 +基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 的表格插件,支持导出 pdf 格式,依赖 [jspdf](https://github.com/MrRio/jsPDF) 库 ## Installing diff --git a/index.ts b/index.ts index cf18a76..02ba56d 100644 --- a/index.ts +++ b/index.ts @@ -59,9 +59,9 @@ function getFooterData (opts: VxeTablePropTypes.ExportConfig, footerData: any[][ function exportPDF (params: VxeGlobalInterceptorHandles.InterceptorExportParams) { const { fonts, beforeMethod } = globalOptions const { $table, options, columns, datas } = params - const { props, instance, computeMaps } = $table + const { props, instance } = $table const { treeConfig } = props - const { computeTreeOpts } = computeMaps + const { computeTreeOpts } = $table.getComputeMaps() const treeOpts = computeTreeOpts.value const { modal, t } = instance.appContext.config.globalProperties.$vxe as VXETableByVueProperty const dX = 7 diff --git a/package.json b/package.json index 9511224..a210e18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-export-pdf", - "version": "3.0.0-alpha.0", + "version": "3.0.0-alpha.1", "description": "基于 vxe-table 的表格插件,支持导出 pdf 格式", "scripts": { "lib": "gulp build" @@ -51,8 +51,8 @@ "prettier": "^2.1.2", "typescript": "^4.0.5", "vue": "^3.0.2", - "vxe-table": "^4.0.0-beta.0", - "xe-utils": "^3.0.1" + "vxe-table": "^4.0.0-beta.6", + "xe-utils": "^3.0.4" }, "peerDependencies": { "vxe-table": ">= 4"