Comparing version 1.0.7 to 1.0.8
12
index.js
@@ -1,12 +0,2 @@ | ||
import * as ajax from 'xe-ajax' | ||
/** | ||
* Install VxeAjax | ||
*/ | ||
function plugin (Vue, methods) { | ||
ajax.mixin(methods) | ||
var XEAjax = ajax.constructor | ||
Object.defineProperty(Vue, 'ajax', function () { | ||
XEAjax.context = window | ||
return XEAjax | ||
}) | ||
function plugin (Vue, XEAjax) { | ||
Object.defineProperties(Vue.prototype, { | ||
@@ -13,0 +3,0 @@ $ajax: { |
{ | ||
"name": "vxe-ajax", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "vxe-ajax 用于Vue全局安装xe-ajax", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,5 +12,6 @@ # vxe-ajax 用于Vue全局安装xe-ajax | ||
import Vue from 'vue' | ||
import XEAjax from 'xe-ajax' | ||
import VXEAjax from 'vxe-ajax' | ||
Vue.use(VXEAjax) | ||
Vue.use(VXEAjax, XEAjax) | ||
@@ -28,6 +29,8 @@ // 在Vue实例中使用 | ||
import Vue from 'vue' | ||
import XEAjax from 'xe-ajax' | ||
import VXEAjax from 'vxe-ajax' | ||
import customs from './customs' // ./customs.js export function custom1 () {} | ||
Vue.use(VXEAjax, customs) | ||
XEAjax.mixin(customs) | ||
Vue.use(VXEAjax, XEAjax) | ||
@@ -34,0 +37,0 @@ // 调用自定义扩展函数 |
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
40
2714
11