From f967e0e6e08246589cea257f69c529a619cc9358 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 29 Dec 2020 17:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=204.0=20next=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- index.ts | 4 ++-- package.json | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) 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"