Skip to content

Commit d264b54

Browse files
committed
update
1 parent b905fe2 commit d264b54

File tree

7 files changed

+10
-15
lines changed

7 files changed

+10
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
node_modules
33
/dist
44
package-lock.json
5+
yarn.lock
56

67
# local env files
78
.env.local

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# vxe-table-plugin-export-pdf
22

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)
3+
[![gitee star](https://gitee.com/x-extends/vxe-table-plugin-export-pdf/badge/star.svg?theme=dark)](https://gitee.com/x-extends/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)
66
[![npm license](https://img.shields.io/github/license/mashape/apistatus.svg)](LICENSE)
77

8-
基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 的表格插件,支持导出 pdf 格式,依赖 [jspdf](https://github.com/MrRio/jsPDF)
8+
基于 [vxe-table](https://www.npmjs.com/package/vxe-table) 的表格插件,支持导出 pdf 格式,基于 [jspdf](https://github.com/MrRio/jsPDF) 实现
99

1010
## Installing
1111

@@ -15,6 +15,7 @@ npm install xe-utils vxe-table vxe-table-plugin-export-pdf jspdf
1515

1616
```javascript
1717
// ...
18+
import VXETable from 'vxe-table'
1819
import VXETablePluginExportPDF from 'vxe-table-plugin-export-pdf'
1920
// ...
2021

depend.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const tsconfig = require('./tsconfig.json')
1212
const exportModuleName = 'VXETablePluginExportPDF'
1313

1414
gulp.task('build_commonjs', function () {
15-
return gulp.src(['depend.ts', 'index.ts'])
15+
return gulp.src(['index.ts'])
1616
.pipe(sourcemaps.init())
1717
.pipe(ts(tsconfig.compilerOptions))
1818
.pipe(babel({
@@ -27,7 +27,7 @@ gulp.task('build_commonjs', function () {
2727
})
2828

2929
gulp.task('build_umd', function () {
30-
return gulp.src(['depend.ts', 'index.ts'])
30+
return gulp.src(['index.ts'])
3131
.pipe(ts(tsconfig.compilerOptions))
3232
.pipe(replace(`import XEUtils from 'xe-utils/ctor';`, `import XEUtils from 'xe-utils';`))
3333
.pipe(babel({

index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/* eslint-disable no-unused-vars */
2-
import XEUtils from 'xe-utils/ctor'
1+
import XEUtils from 'xe-utils'
32
import {
43
VXETable,
54
Table,
@@ -8,7 +7,6 @@ import {
87
TableExportConfig
98
} from 'vxe-table/lib/vxe-table'
109
import jsPDF from 'jspdf'
11-
/* eslint-enable no-unused-vars */
1210

1311
const isWin = typeof window !== 'undefined'
1412
const globalOptions: VXETablePluginExportPDFOptions = {}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
"typescript": "^4.0.5",
5353
"vue": "^2.6.12",
5454
"vxe-table": "^2.10.0",
55-
"xe-utils": "^3.0.4"
55+
"xe-utils": "^3.1.11"
5656
},
5757
"peerDependencies": {
58-
"vxe-table": ">= 2.10"
58+
"vxe-table": "^2.10.0"
5959
},
6060
"repository": {
6161
"type": "git",

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"files": [
3-
"index.ts",
4-
"depend.ts"
3+
"index.ts"
54
],
65
"compilerOptions": {
76
"strict": true,

0 commit comments

Comments
 (0)