diff --git a/gulpfile.js b/gulpfile.js index fe50aa9..c410e0f 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -48,8 +48,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: ['@babel/env'], diff --git a/index.ts b/index.ts index 3d2236e..ce180ce 100644 --- a/index.ts +++ b/index.ts @@ -1,14 +1,6 @@ import { h, resolveComponent, ComponentOptions } from 'vue' import XEUtils from 'xe-utils' -import { - VXETableCore, - VxeTableDefines, - VxeColumnPropTypes, - VxeGlobalRendererHandles, - VxeGlobalInterceptorHandles, - FormItemRenderOptions, - FormItemContentRenderParams -} from 'vxe-table/lib/vxe-table' +import { VXETableCore, VxeTableDefines, VxeColumnPropTypes, VxeGlobalRendererHandles, VxeGlobalInterceptorHandles, FormItemRenderOptions, FormItemContentRenderParams } from 'vxe-table' function isEmptyValue (cellValue: any) { return cellValue === null || cellValue === undefined || cellValue === '' diff --git a/package.json b/package.json index bef69cc..4ce3eaa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-antd", - "version": "3.0.0", + "version": "3.0.1", "description": "基于 vxe-table 表格的适配插件,用于兼容 ant-design-vue 组件库", "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": {