diff --git a/dist/index.common.js b/dist/index.common.js index 89a9f01..71ff160 100644 --- a/dist/index.common.js +++ b/dist/index.common.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = exports.VXETablePluginIView = void 0; -var _xeUtils = _interopRequireDefault(require("xe-utils")); +var _xeUtils = _interopRequireDefault(require("xe-utils/methods/xe-utils")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } @@ -497,9 +497,9 @@ function handleClearEvent(params, evnt, context) { } var VXETablePluginIView = { - install: function install(_ref8) { - var interceptor = _ref8.interceptor, - renderer = _ref8.renderer; + install: function install(VXETable) { + var interceptor = VXETable.interceptor, + renderer = VXETable.renderer; renderer.mixin(renderMap); interceptor.add('event.clear_filter', handleClearEvent); interceptor.add('event.clear_actived', handleClearEvent); diff --git a/dist/index.js b/dist/index.js index 04196cd..b4a3f11 100644 --- a/dist/index.js +++ b/dist/index.js @@ -509,9 +509,9 @@ } var VXETablePluginIView = { - install: function install(_ref8) { - var interceptor = _ref8.interceptor, - renderer = _ref8.renderer; + install: function install(VXETable) { + var interceptor = VXETable.interceptor, + renderer = VXETable.renderer; renderer.mixin(renderMap); interceptor.add('event.clear_filter', handleClearEvent); interceptor.add('event.clear_actived', handleClearEvent); diff --git a/gulpfile.js b/gulpfile.js index eb036a6..9273b82 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -40,6 +40,7 @@ gulp.task('build_commonjs', function () { gulp.task('build_umd', function () { return gulp.src('index.js') + .pipe(replace(`from 'xe-utils/methods/xe-utils'`, `from 'xe-utils'`)) .pipe(babel({ moduleId: pack.name, presets: ['@babel/env'], diff --git a/index.js b/index.js index 48c483d..a19499f 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import XEUtils from 'xe-utils' +import XEUtils from 'xe-utils/methods/xe-utils' function getFormatDate (value, props, defaultFormat) { return XEUtils.toDateString(value, props.format || defaultFormat) diff --git a/package.json b/package.json index cce3bba..91b60d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-iview", - "version": "1.4.1", + "version": "1.4.2", "description": "vxe-table renderer plugin for iview.", "scripts": { "lib": "gulp build"