@luzhaoqi/test 0.0.6 → 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 -2
- package/package.json +5 -2
package/dist/lib-cjs.js
CHANGED
@@ -182,8 +182,39 @@ __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
|
});
|
@@ -192,5 +223,6 @@ var index = {
|
|
192
223
|
install
|
193
224
|
};
|
194
225
|
|
195
|
-
exports.
|
226
|
+
exports.IconZ = __vue_component__;
|
227
|
+
exports.RequestZ = RequestZ;
|
196
228
|
exports.default = index;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luzhaoqi/test",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.8",
|
4
4
|
"private": false,
|
5
5
|
"main": "dist/lib-cjs.js",
|
6
6
|
"scripts": {
|
@@ -15,7 +15,10 @@
|
|
15
15
|
"core-js": "^3.8.3",
|
16
16
|
"vue": "^2.6.14",
|
17
17
|
"vue-router": "^3.5.1",
|
18
|
-
"vuex": "^3.6.2"
|
18
|
+
"vuex": "^3.6.2",
|
19
|
+
"jsencrypt": "3.0.0-rc.1",
|
20
|
+
"js-cookie": "3.0.1",
|
21
|
+
"element-ui": "2.15.13"
|
19
22
|
},
|
20
23
|
"devDependencies": {
|
21
24
|
"@babel/core": "^7.12.16",
|