From 494da6f97c5b9e2da91551dc4d92777b835aff05 Mon Sep 17 00:00:00 2001 From: xuliangzhan Date: Thu, 11 Mar 2021 20:05:16 +0800 Subject: [PATCH] update --- depend.ts | 4 ---- gulpfile.js | 4 ++-- index.ts | 2 +- package.json | 2 +- tsconfig.json | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) delete mode 100644 depend.ts diff --git a/depend.ts b/depend.ts deleted file mode 100644 index c38e278..0000000 --- a/depend.ts +++ /dev/null @@ -1,4 +0,0 @@ -import XEUtils from 'xe-utils/ctor' -import dependencies from 'vxe-table/lib/utils/dependencies' - -XEUtils.mixin(dependencies) diff --git a/gulpfile.js b/gulpfile.js index 5462bef..bfd89e2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -12,7 +12,7 @@ const tsconfig = require('./tsconfig.json') const exportModuleName = 'VXETablePluginExportPDF' gulp.task('build_commonjs', function () { - return gulp.src(['depend.ts', 'index.ts']) + return gulp.src(['index.ts']) .pipe(sourcemaps.init()) .pipe(ts(tsconfig.compilerOptions)) .pipe(babel({ @@ -27,7 +27,7 @@ gulp.task('build_commonjs', function () { }) gulp.task('build_umd', function () { - return gulp.src(['depend.ts', 'index.ts']) + 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';`)) diff --git a/index.ts b/index.ts index f73425e..d662ae6 100644 --- a/index.ts +++ b/index.ts @@ -1,4 +1,4 @@ -import XEUtils from 'xe-utils/ctor' +import XEUtils from 'xe-utils' import { VXETableCore, VxeTableConstructor, diff --git a/package.json b/package.json index f66503b..98ce4e8 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "prettier": "^2.1.2", "typescript": "^4.0.5", "vue": "^3.0.6", - "vxe-table": "^4.0.0", + "vxe-table": "^4.0.1", "xe-utils": "^3.1.11" }, "peerDependencies": { diff --git a/tsconfig.json b/tsconfig.json index 8bac054..2b4f3f7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "files": [ - "index.ts", - "depend.ts" + "index.ts" ], "compilerOptions": { "strict": true,