Skip to content

Commit

Permalink
重构 4.0 next 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 29, 2020
1 parent 4d2d02f commit f967e0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f967e0e

Please sign in to comment.