Skip to content

Commit 7f87137

Browse files
committed
update
1 parent 432b89c commit 7f87137

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![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)
44
[![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)
55
[![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)
6-
[![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)
6+
[![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)
77
[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
88

99
基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 表格的增强插件,支持导出 pdf 格式

gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,17 @@ gulp.task('build_umd', function () {
5959
}))
6060
.pipe(replace(`global.jspdf`, `global.jsPDF || global.jspdf`))
6161
.pipe(replace(`global.${exportModuleName} = mod.exports;`, `global.${exportModuleName} = mod.exports.default;`))
62+
.pipe(rename({
63+
basename: 'index',
64+
suffix: '.umd',
65+
extname: '.js'
66+
}))
6267
.pipe(gulp.dest('dist'))
6368
.pipe(uglify())
6469
.pipe(rename({
65-
extname: '.min.js'
70+
basename: 'index',
71+
suffix: '.umd.min',
72+
extname: '.js'
6673
}))
6774
.pipe(gulp.dest('dist'))
6875
})

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vxe-table-plugin-export-pdf",
3-
"version": "1.8.6",
3+
"version": "1.8.7",
44
"description": "基于 vxe-table 表格的增强插件,支持导出 pdf 格式",
55
"scripts": {
66
"lib": "gulp build"
@@ -13,9 +13,9 @@
1313
"*.d.ts"
1414
],
1515
"main": "dist/index.common.js",
16+
"unpkg": "dist/index.umd.min.js",
17+
"jsdelivr": "dist/index.umd.min.js",
1618
"style": "dist/style.min.css",
17-
"unpkg": "dist/index.min.js",
18-
"jsdelivr": "dist/index.min.js",
1919
"typings": "index.ts",
2020
"devDependencies": {
2121
"@babel/core": "^7.4.4",
@@ -51,8 +51,8 @@
5151
"prettier": "^1.18.2",
5252
"typescript": "^3.9.3",
5353
"vue": "^2.6.11",
54-
"vxe-table": "^2.9.19",
55-
"xe-utils": "^2.7.8"
54+
"vxe-table": "^2.9.21",
55+
"xe-utils": "^2.7.11"
5656
},
5757
"peerDependencies": {
5858
"vxe-table": ">= 2.9.0",

0 commit comments

Comments
 (0)