Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Mar 16, 2021
1 parent 494da6f commit c304195
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 0 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ gulp.task('build_commonjs', function () {
gulp.task('build_umd', function () {
return gulp.src(['index.ts'])
.pipe(ts(tsconfig.compilerOptions))
.pipe(replace(`from 'xe-utils/ctor';`, `from 'xe-utils';`))
.pipe(replace(`from 'vxe-table/lib/vxe-table';`, `from 'vxe-table';`))
.pipe(babel({
moduleId: pack.name,
presets: [
Expand Down
10 changes: 2 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import XEUtils from 'xe-utils'
import {
VXETableCore,
VxeTableConstructor,
VxeTablePropTypes,
VxeTableDefines,
VxeGlobalInterceptorHandles
} from 'vxe-table/lib/vxe-table'
import { VXETableCore, VxeTableConstructor, VxeTablePropTypes, VxeTableDefines, VxeGlobalInterceptorHandles } from 'vxe-table'
import jsPDF from 'jspdf'

let vxetable: VXETableCore

declare module 'vxe-table/lib/vxe-table' {
declare module 'vxe-table' {
namespace VxeTablePropTypes {
interface ExportConfig {
fontName?: string;
Expand Down
4 changes: 2 additions & 2 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",
"version": "3.0.1",
"description": "基于 vxe-table 的表格插件,支持导出 pdf 格式",
"scripts": {
"lib": "gulp build"
Expand Down Expand Up @@ -51,7 +51,7 @@
"prettier": "^2.1.2",
"typescript": "^4.0.5",
"vue": "^3.0.6",
"vxe-table": "^4.0.1",
"vxe-table": "^4.0.3",
"xe-utils": "^3.1.11"
},
"peerDependencies": {
Expand Down

0 comments on commit c304195

Please sign in to comment.