Comparing version 2.0.0 to 2.0.1
@@ -9,3 +9,8 @@ "use strict"; | ||
function VXEAjax(Vue, XEAjax) { | ||
Vue.prototype.$ajax = XEAjax; | ||
Object.defineProperty(Vue.prototype, '$ajax', { | ||
get: function get() { | ||
XEAjax.$context = this; | ||
return XEAjax; | ||
} | ||
}); | ||
} | ||
@@ -12,0 +17,0 @@ |
@@ -22,3 +22,8 @@ (function (global, factory) { | ||
function VXEAjax(Vue, XEAjax) { | ||
Vue.prototype.$ajax = XEAjax; | ||
Object.defineProperty(Vue.prototype, '$ajax', { | ||
get: function get() { | ||
XEAjax.$context = this; | ||
return XEAjax; | ||
} | ||
}); | ||
} | ||
@@ -25,0 +30,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){if("function"==typeof define&&define.amd)define("vxe-ajax",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var f={exports:{}};t(f.exports),e.VXEAjax=f.exports.default}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(e,t){e.prototype.$ajax=t}e.default=t}); | ||
!function(e,t){if("function"==typeof define&&define.amd)define("vxe-ajax",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var f={exports:{}};t(f.exports),e.VXEAjax=f.exports.default}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(e,t){Object.defineProperty(e.prototype,"$ajax",{get:function(){return t.$context=this,t}})}e.default=t}); |
function VXEAjax (Vue, XEAjax) { | ||
Vue.prototype.$ajax = XEAjax | ||
Object.defineProperty(Vue.prototype, '$ajax', { | ||
get: function () { | ||
XEAjax.$context = this | ||
return XEAjax | ||
} | ||
}) | ||
} | ||
export default VXEAjax |
{ | ||
"name": "vxe-ajax", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "用于 Vue 全局安装 xe-ajax", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.common.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6826
68