File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 3
3
[ ![ 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 )
4
4
[ ![ 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 )
5
5
[ ![ 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 )
7
7
[ ![ npm license] ( https://img.shields.io/github/license/mashape/apistatus.svg )] ( LICENSE )
8
8
9
9
基于 [ vxe-table] ( https://www.npmjs.com/package/vxe-table ) 表格的增强插件,支持导出 pdf 格式
Original file line number Diff line number Diff line change @@ -59,10 +59,17 @@ gulp.task('build_umd', function () {
59
59
} ) )
60
60
. pipe ( replace ( `global.jspdf` , `global.jsPDF || global.jspdf` ) )
61
61
. pipe ( replace ( `global.${ exportModuleName } = mod.exports;` , `global.${ exportModuleName } = mod.exports.default;` ) )
62
+ . pipe ( rename ( {
63
+ basename : 'index' ,
64
+ suffix : '.umd' ,
65
+ extname : '.js'
66
+ } ) )
62
67
. pipe ( gulp . dest ( 'dist' ) )
63
68
. pipe ( uglify ( ) )
64
69
. pipe ( rename ( {
65
- extname : '.min.js'
70
+ basename : 'index' ,
71
+ suffix : '.umd.min' ,
72
+ extname : '.js'
66
73
} ) )
67
74
. pipe ( gulp . dest ( 'dist' ) )
68
75
} )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vxe-table-plugin-export-pdf" ,
3
- "version" : " 1.8.6 " ,
3
+ "version" : " 1.8.7 " ,
4
4
"description" : " 基于 vxe-table 表格的增强插件,支持导出 pdf 格式" ,
5
5
"scripts" : {
6
6
"lib" : " gulp build"
13
13
" *.d.ts"
14
14
],
15
15
"main" : " dist/index.common.js" ,
16
+ "unpkg" : " dist/index.umd.min.js" ,
17
+ "jsdelivr" : " dist/index.umd.min.js" ,
16
18
"style" : " dist/style.min.css" ,
17
- "unpkg" : " dist/index.min.js" ,
18
- "jsdelivr" : " dist/index.min.js" ,
19
19
"typings" : " index.ts" ,
20
20
"devDependencies" : {
21
21
"@babel/core" : " ^7.4.4" ,
51
51
"prettier" : " ^1.18.2" ,
52
52
"typescript" : " ^3.9.3" ,
53
53
"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 "
56
56
},
57
57
"peerDependencies" : {
58
58
"vxe-table" : " >= 2.9.0" ,
You can’t perform that action at this time.
0 commit comments