This commit is contained in:
xuliangzhan
2021-03-16 17:47:48 +08:00
parent 5be863e85b
commit 8ce2b5ca4d
3 changed files with 4 additions and 12 deletions

View File

@@ -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: [

View File

@@ -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 ExcelJS from 'exceljs'
let vxetable:VXETableCore
declare module 'vxe-table/lib/vxe-table' {
declare module 'vxe-table' {
namespace VxeTableDefines {
interface ExtortSheetMethodParams {
workbook: ExcelJS.Workbook;

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-xlsx",
"version": "3.0.0",
"version": "3.0.1",
"description": "基于 vxe-table 的表格插件,支持导出 xlsx 格式",
"scripts": {
"lib": "gulp build"
@@ -49,7 +49,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": {