From 765d19434166fc70fc733972d533f8c5830f0650 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Tue, 13 Oct 2020 21:41:14 +0800 Subject: [PATCH] update --- index.ts | 9 --------- package.json | 6 +++--- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/index.ts b/index.ts index 3656323..500135d 100644 --- a/index.ts +++ b/index.ts @@ -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: { diff --git a/package.json b/package.json index 6f6d22b..8d661c2 100644 --- a/package.json +++ b/package.json @@ -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": {