Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Sep 14, 2020
1 parent 432b89c commit 7f87137
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![gitee star](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-export-pdf/badge/star.svg?theme=dark)](https://gitee.com/xuliangzhan_admin/vxe-table-plugin-export-pdf/stargazers)
[![npm version](https://img.shields.io/npm/v/vxe-table-plugin-export-pdf.svg?style=flat-square)](https://www.npmjs.com/package/vxe-table-plugin-export-pdf)
[![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)
[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.min.js)
[![gzip size: JS](http://img.badgesize.io/https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.umd.min.js?compression=gzip&label=gzip%20size:%20JS)](https://unpkg.com/vxe-table-plugin-export-pdf/dist/index.umd.min.js)
[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)

基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 表格的增强插件,支持导出 pdf 格式
Expand Down
9 changes: 8 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,17 @@ gulp.task('build_umd', function () {
}))
.pipe(replace(`global.jspdf`, `global.jsPDF || global.jspdf`))
.pipe(replace(`global.${exportModuleName} = mod.exports;`, `global.${exportModuleName} = mod.exports.default;`))
.pipe(rename({
basename: 'index',
suffix: '.umd',
extname: '.js'
}))
.pipe(gulp.dest('dist'))
.pipe(uglify())
.pipe(rename({
extname: '.min.js'
basename: 'index',
suffix: '.umd.min',
extname: '.js'
}))
.pipe(gulp.dest('dist'))
})
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-pdf",
"version": "1.8.6",
"version": "1.8.7",
"description": "基于 vxe-table 表格的增强插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand All @@ -13,9 +13,9 @@
"*.d.ts"
],
"main": "dist/index.common.js",
"unpkg": "dist/index.umd.min.js",
"jsdelivr": "dist/index.umd.min.js",
"style": "dist/style.min.css",
"unpkg": "dist/index.min.js",
"jsdelivr": "dist/index.min.js",
"typings": "index.ts",
"devDependencies": {
"@babel/core": "^7.4.4",
Expand Down Expand Up @@ -51,8 +51,8 @@
"prettier": "^1.18.2",
"typescript": "^3.9.3",
"vue": "^2.6.11",
"vxe-table": "^2.9.19",
"xe-utils": "^2.7.8"
"vxe-table": "^2.9.21",
"xe-utils": "^2.7.11"
},
"peerDependencies": {
"vxe-table": ">= 2.9.0",
Expand Down

0 comments on commit 7f87137

Please sign in to comment.