@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.
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  * {
23
- color: blue;
23
+ color: green;
24
24
  }
25
25
  /**
26
26
  $base-menu-color:hsla(0,0%,100%,.65);
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
- const components = [__vue_component__];
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.Icon = __vue_component__;
226
+ exports.IconZ = __vue_component__;
227
+ exports.RequestZ = RequestZ;
197
228
  exports.default = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzhaoqi/test",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "private": false,
5
5
  "main": "dist/lib-cjs.js",
6
6
  "scripts": {