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 965dd6e commit f77d6d9
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 @@ -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(replace(`from 'echarts/lib/echarts';`, `from 'echarts';`))
.pipe(babel({
moduleId: pack.name,
Expand Down
10 changes: 2 additions & 8 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { h } from 'vue'
import XEUtils from 'xe-utils'
import {
VXETableCore,
VxeTableDefines,
VxeGlobalInterceptorHandles,
VxeGlobalMenusHandles,
VxeModalOptions
} from 'vxe-table/lib/vxe-table'
import { VXETableCore, VxeTableDefines, VxeGlobalInterceptorHandles, VxeGlobalMenusHandles, VxeModalOptions } from 'vxe-table'
import echarts from 'echarts/lib/echarts'

let vxetable: VXETableCore
Expand All @@ -16,7 +10,7 @@ interface CMItem {
$chart: any;
}

declare module 'vxe-table/lib/vxe-table' {
declare module 'vxe-table' {
interface TableInternalData {
_chartModals: CMItem[];
}
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-charts",
"version": "3.0.0",
"version": "3.0.1",
"description": "基于 vxe-table pro 的图表渲染插件",
"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 f77d6d9

Please sign in to comment.