Skip to content

Commit

Permalink
修复 umd 文档
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Nov 26, 2019
1 parent b8fabe2 commit 9b4b526
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define("vxe-table-plugin-antd", ["exports", "xe-utils/methods/xe-utils"], factory);
define("vxe-table-plugin-antd", ["exports", "xe-utils"], factory);
} else if (typeof exports !== "undefined") {
factory(exports, require("xe-utils/methods/xe-utils"));
factory(exports, require("xe-utils"));
} else {
var mod = {
exports: {}
};
factory(mod.exports, global.xeUtilsMethodsXeUtils);
factory(mod.exports, global.XEUtils);
global.VXETablePluginAntd = mod.exports.default;
}
})(this, function (_exports, _xeUtils) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gulp.task('build_umd', function () {
target: 'es6',
lib: ['dom', 'es6']
}))
.pipe(replace(`require("xe-utils/methods/xe-utils")`, `require("xe-utils")`))
.pipe(replace(`import XEUtils from 'xe-utils/methods/xe-utils';`, `import XEUtils from 'xe-utils';`))
.pipe(babel({
moduleId: pack.name,
presets: ['@babel/env'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-antd",
"version": "1.5.7",
"version": "1.5.8",
"description": "基于 vxe-table 表格的适配插件,用于兼容 ant-design-vue 组件库",
"scripts": {
"lib": "gulp build"
Expand Down

0 comments on commit 9b4b526

Please sign in to comment.