@luzhaoqi/test 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/index.css +1 -1
- package/dist/lib-cjs.js +34 -3
- package/package.json +1 -1
package/dist/lib-cjs.js
CHANGED
@@ -182,16 +182,47 @@ __vue_component__.install = function (Vue) {
|
|
182
182
|
Vue.component(__vue_component__.name, __vue_component__);
|
183
183
|
};
|
184
184
|
|
185
|
-
|
185
|
+
function createAxios(Vue, option) {
|
186
|
+
Vue.prototype.$ccc = 'ccc' + option;
|
187
|
+
return {
|
188
|
+
request: () => {
|
189
|
+
console.log(111);
|
190
|
+
},
|
191
|
+
download: () => {
|
192
|
+
console.log(222);
|
193
|
+
}
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
function install$1(Vue) {
|
198
|
+
const config = (Vue.prototype.$Z && Vue.prototype.$Z.http) || {};
|
199
|
+
console.log(config);
|
200
|
+
const $http = createAxios(Vue, config);
|
201
|
+
Vue.prototype.$http = $http;
|
202
|
+
window.$http = $http;
|
203
|
+
}
|
204
|
+
|
205
|
+
var RequestZ = {
|
206
|
+
install: install$1
|
207
|
+
};
|
208
|
+
|
209
|
+
const setGolbalData = (Vue, option) => {
|
210
|
+
if (!Vue.prototype.$Z) {
|
211
|
+
Vue.prototype.$Z = option || {};
|
212
|
+
}
|
213
|
+
};
|
214
|
+
|
215
|
+
const components = [__vue_component__, RequestZ];
|
186
216
|
const install = (Vue, option = {}) => {
|
217
|
+
setGolbalData(Vue, option);
|
187
218
|
components.forEach((component) => {
|
188
219
|
Vue.use(component, option);
|
189
220
|
});
|
190
|
-
Vue.prototype.$z = 111;
|
191
221
|
};
|
192
222
|
var index = {
|
193
223
|
install
|
194
224
|
};
|
195
225
|
|
196
|
-
exports.
|
226
|
+
exports.IconZ = __vue_component__;
|
227
|
+
exports.RequestZ = RequestZ;
|
197
228
|
exports.default = index;
|