automan-cmd 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +65 -0
- package/README.md +56 -0
- package/bin/automan +3 -0
- package/bin/automan-build +3 -0
- package/bin/automan-config +3 -0
- package/bin/automan-create +3 -0
- package/bin/automan-publish +3 -0
- package/lib/automan-build.js +41 -0
- package/lib/automan-config.js +82 -0
- package/lib/automan-create.js +137 -0
- package/lib/automan-publish.js +331 -0
- package/lib/index.js +13 -0
- package/lib/install.js.tpl +47 -0
- package/lib/util.js +174 -0
- package/package.json +37 -0
- package/tpl/.babelrc +16 -0
- package/tpl/.browserslistrc +3 -0
- package/tpl/.eslintignore +2 -0
- package/tpl/.eslintrc.js +228 -0
- package/tpl/.gitignore.ejs +12 -0
- package/tpl/.postcssrc.js +12 -0
- package/tpl/README.md +1 -0
- package/tpl/changelog.md +1 -0
- package/tpl/editor/index.vue +45 -0
- package/tpl/icon.png +0 -0
- package/tpl/jsconfig.json +7 -0
- package/tpl/package.json.ejs +66 -0
- package/tpl/preview/app.vue +326 -0
- package/tpl/preview/attr/Data.vue +69 -0
- package/tpl/preview/attr/Resource.vue +79 -0
- package/tpl/preview/attr/com.vue +21 -0
- package/tpl/preview/attr/index.js +16 -0
- package/tpl/preview/components/Attribute.vue +365 -0
- package/tpl/preview/components/FitImg.vue +152 -0
- package/tpl/preview/components/ImgViewer.vue +80 -0
- package/tpl/preview/components/Loading.vue +55 -0
- package/tpl/preview/components/Toast.vue +111 -0
- package/tpl/preview/index.js +22 -0
- package/tpl/preview/index.tpl +13 -0
- package/tpl/preview/lib/ESlog.js +46 -0
- package/tpl/preview/lib/Util.js +57 -0
- package/tpl/preview/lib/fetch.js +139 -0
- package/tpl/preview/lib/index.js +15 -0
- package/tpl/preview/lib/vue/filters.js +53 -0
- package/tpl/preview/lib/vue/index.js +9 -0
- package/tpl/preview/lib/vue/mixin.js +166 -0
- package/tpl/preview/mint-ui/message-box/index.js +1503 -0
- package/tpl/preview/mint-ui/message-box/style.css +159 -0
- package/tpl/preview/mint-ui/popup/index.js +1046 -0
- package/tpl/preview/mint-ui/popup/style.css +115 -0
- package/tpl/preview/mint-ui/spinner/index.js +657 -0
- package/tpl/preview/mint-ui/spinner/style.css +227 -0
- package/tpl/preview/mint-ui/swipe/index.js +907 -0
- package/tpl/preview/mint-ui/swipe/style.css +43 -0
- package/tpl/preview/mint-ui/swipe-item/index.js +171 -0
- package/tpl/preview/mint-ui/swipe-item/style.css +1 -0
- package/tpl/preview/style.css +126 -0
- package/tpl/server.config.js +6 -0
- package/tpl/src/assets/css/index.scss +29 -0
- package/tpl/src/example.vue +165 -0
- package/tpl/src/index.vue.ejs +32 -0
- package/tpl/webpack.config.js.ejs +267 -0
- package/tpl/yarn.lock +6037 -0
@@ -0,0 +1,657 @@
|
|
1
|
+
module.exports =
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
3
|
+
/******/ // The module cache
|
4
|
+
/******/ var installedModules = {};
|
5
|
+
|
6
|
+
/******/ // The require function
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
8
|
+
|
9
|
+
/******/ // Check if module is in cache
|
10
|
+
/******/ if(installedModules[moduleId])
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
12
|
+
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
15
|
+
/******/ i: moduleId,
|
16
|
+
/******/ l: false,
|
17
|
+
/******/ exports: {}
|
18
|
+
/******/ };
|
19
|
+
|
20
|
+
/******/ // Execute the module function
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
22
|
+
|
23
|
+
/******/ // Flag the module as loaded
|
24
|
+
/******/ module.l = true;
|
25
|
+
|
26
|
+
/******/ // Return the exports of the module
|
27
|
+
/******/ return module.exports;
|
28
|
+
/******/ }
|
29
|
+
|
30
|
+
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
32
|
+
/******/ __webpack_require__.m = modules;
|
33
|
+
|
34
|
+
/******/ // expose the module cache
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
36
|
+
|
37
|
+
/******/ // identity function for calling harmony imports with the correct context
|
38
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
39
|
+
|
40
|
+
/******/ // define getter function for harmony exports
|
41
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
42
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
43
|
+
/******/ Object.defineProperty(exports, name, {
|
44
|
+
/******/ configurable: false,
|
45
|
+
/******/ enumerable: true,
|
46
|
+
/******/ get: getter
|
47
|
+
/******/ });
|
48
|
+
/******/ }
|
49
|
+
/******/ };
|
50
|
+
|
51
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
52
|
+
/******/ __webpack_require__.n = function(module) {
|
53
|
+
/******/ var getter = module && module.__esModule ?
|
54
|
+
/******/ function getDefault() { return module['default']; } :
|
55
|
+
/******/ function getModuleExports() { return module; };
|
56
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
57
|
+
/******/ return getter;
|
58
|
+
/******/ };
|
59
|
+
|
60
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
61
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
62
|
+
|
63
|
+
/******/ // __webpack_public_path__
|
64
|
+
/******/ __webpack_require__.p = "";
|
65
|
+
|
66
|
+
/******/ // Load entry module and return exports
|
67
|
+
/******/ return __webpack_require__(__webpack_require__.s = 246);
|
68
|
+
/******/ })
|
69
|
+
/************************************************************************/
|
70
|
+
/******/ ({
|
71
|
+
|
72
|
+
/***/ 11:
|
73
|
+
/***/ function(module, exports, __webpack_require__) {
|
74
|
+
|
75
|
+
"use strict";
|
76
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
77
|
+
|
78
|
+
/* harmony default export */ exports["default"] = {
|
79
|
+
computed: {
|
80
|
+
spinnerColor: function spinnerColor() {
|
81
|
+
return this.color || this.$parent.color || '#ccc';
|
82
|
+
},
|
83
|
+
|
84
|
+
spinnerSize: function spinnerSize() {
|
85
|
+
return (this.size || this.$parent.size || 28) + 'px';
|
86
|
+
}
|
87
|
+
},
|
88
|
+
|
89
|
+
props: {
|
90
|
+
size: Number,
|
91
|
+
color: String
|
92
|
+
}
|
93
|
+
};
|
94
|
+
|
95
|
+
|
96
|
+
/***/ },
|
97
|
+
|
98
|
+
/***/ 114:
|
99
|
+
/***/ function(module, exports) {
|
100
|
+
|
101
|
+
// removed by extract-text-webpack-plugin
|
102
|
+
|
103
|
+
/***/ },
|
104
|
+
|
105
|
+
/***/ 12:
|
106
|
+
/***/ function(module, exports, __webpack_require__) {
|
107
|
+
|
108
|
+
"use strict";
|
109
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
110
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
|
111
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
|
112
|
+
//
|
113
|
+
//
|
114
|
+
//
|
115
|
+
//
|
116
|
+
//
|
117
|
+
//
|
118
|
+
//
|
119
|
+
//
|
120
|
+
//
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
/* harmony default export */ exports["default"] = {
|
125
|
+
name: 'fading-circle',
|
126
|
+
|
127
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a],
|
128
|
+
|
129
|
+
created: function created() {
|
130
|
+
if (this.$isServer) return;
|
131
|
+
this.styleNode = document.createElement('style');
|
132
|
+
var css = ".circle-color-" + (this._uid) + " > div::before { background-color: " + (this.spinnerColor) + "; }";
|
133
|
+
|
134
|
+
this.styleNode.type = 'text/css';
|
135
|
+
this.styleNode.rel = 'stylesheet';
|
136
|
+
this.styleNode.title = 'fading circle style';
|
137
|
+
document.getElementsByTagName('head')[0].appendChild(this.styleNode);
|
138
|
+
this.styleNode.appendChild(document.createTextNode(css));
|
139
|
+
},
|
140
|
+
|
141
|
+
destroyed: function destroyed() {
|
142
|
+
if (this.styleNode) {
|
143
|
+
this.styleNode.parentNode.removeChild(this.styleNode);
|
144
|
+
}
|
145
|
+
}
|
146
|
+
};
|
147
|
+
|
148
|
+
|
149
|
+
/***/ },
|
150
|
+
|
151
|
+
/***/ 127:
|
152
|
+
/***/ function(module, exports) {
|
153
|
+
|
154
|
+
// removed by extract-text-webpack-plugin
|
155
|
+
|
156
|
+
/***/ },
|
157
|
+
|
158
|
+
/***/ 133:
|
159
|
+
/***/ function(module, exports) {
|
160
|
+
|
161
|
+
// removed by extract-text-webpack-plugin
|
162
|
+
|
163
|
+
/***/ },
|
164
|
+
|
165
|
+
/***/ 15:
|
166
|
+
/***/ function(module, exports) {
|
167
|
+
|
168
|
+
// removed by extract-text-webpack-plugin
|
169
|
+
|
170
|
+
/***/ },
|
171
|
+
|
172
|
+
/***/ 16:
|
173
|
+
/***/ function(module, exports, __webpack_require__) {
|
174
|
+
|
175
|
+
var __vue_exports__, __vue_options__
|
176
|
+
var __vue_styles__ = {}
|
177
|
+
|
178
|
+
/* styles */
|
179
|
+
__webpack_require__(15)
|
180
|
+
|
181
|
+
/* script */
|
182
|
+
__vue_exports__ = __webpack_require__(12)
|
183
|
+
|
184
|
+
/* template */
|
185
|
+
var __vue_template__ = __webpack_require__(17)
|
186
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
187
|
+
if (
|
188
|
+
typeof __vue_exports__.default === "object" ||
|
189
|
+
typeof __vue_exports__.default === "function"
|
190
|
+
) {
|
191
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
192
|
+
}
|
193
|
+
if (typeof __vue_options__ === "function") {
|
194
|
+
__vue_options__ = __vue_options__.options
|
195
|
+
}
|
196
|
+
|
197
|
+
__vue_options__.render = __vue_template__.render
|
198
|
+
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
|
199
|
+
|
200
|
+
module.exports = __vue_exports__
|
201
|
+
|
202
|
+
|
203
|
+
/***/ },
|
204
|
+
|
205
|
+
/***/ 163:
|
206
|
+
/***/ function(module, exports, __webpack_require__) {
|
207
|
+
|
208
|
+
var __vue_exports__, __vue_options__
|
209
|
+
var __vue_styles__ = {}
|
210
|
+
|
211
|
+
/* script */
|
212
|
+
__vue_exports__ = __webpack_require__(81)
|
213
|
+
|
214
|
+
/* template */
|
215
|
+
var __vue_template__ = __webpack_require__(199)
|
216
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
217
|
+
if (
|
218
|
+
typeof __vue_exports__.default === "object" ||
|
219
|
+
typeof __vue_exports__.default === "function"
|
220
|
+
) {
|
221
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
222
|
+
}
|
223
|
+
if (typeof __vue_options__ === "function") {
|
224
|
+
__vue_options__ = __vue_options__.options
|
225
|
+
}
|
226
|
+
|
227
|
+
__vue_options__.render = __vue_template__.render
|
228
|
+
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
|
229
|
+
|
230
|
+
module.exports = __vue_exports__
|
231
|
+
|
232
|
+
|
233
|
+
/***/ },
|
234
|
+
|
235
|
+
/***/ 164:
|
236
|
+
/***/ function(module, exports, __webpack_require__) {
|
237
|
+
|
238
|
+
var __vue_exports__, __vue_options__
|
239
|
+
var __vue_styles__ = {}
|
240
|
+
|
241
|
+
/* styles */
|
242
|
+
__webpack_require__(114)
|
243
|
+
|
244
|
+
/* script */
|
245
|
+
__vue_exports__ = __webpack_require__(82)
|
246
|
+
|
247
|
+
/* template */
|
248
|
+
var __vue_template__ = __webpack_require__(187)
|
249
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
250
|
+
if (
|
251
|
+
typeof __vue_exports__.default === "object" ||
|
252
|
+
typeof __vue_exports__.default === "function"
|
253
|
+
) {
|
254
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
255
|
+
}
|
256
|
+
if (typeof __vue_options__ === "function") {
|
257
|
+
__vue_options__ = __vue_options__.options
|
258
|
+
}
|
259
|
+
|
260
|
+
__vue_options__.render = __vue_template__.render
|
261
|
+
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
|
262
|
+
|
263
|
+
module.exports = __vue_exports__
|
264
|
+
|
265
|
+
|
266
|
+
/***/ },
|
267
|
+
|
268
|
+
/***/ 165:
|
269
|
+
/***/ function(module, exports, __webpack_require__) {
|
270
|
+
|
271
|
+
var __vue_exports__, __vue_options__
|
272
|
+
var __vue_styles__ = {}
|
273
|
+
|
274
|
+
/* styles */
|
275
|
+
__webpack_require__(127)
|
276
|
+
|
277
|
+
/* script */
|
278
|
+
__vue_exports__ = __webpack_require__(83)
|
279
|
+
|
280
|
+
/* template */
|
281
|
+
var __vue_template__ = __webpack_require__(200)
|
282
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
283
|
+
if (
|
284
|
+
typeof __vue_exports__.default === "object" ||
|
285
|
+
typeof __vue_exports__.default === "function"
|
286
|
+
) {
|
287
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
288
|
+
}
|
289
|
+
if (typeof __vue_options__ === "function") {
|
290
|
+
__vue_options__ = __vue_options__.options
|
291
|
+
}
|
292
|
+
|
293
|
+
__vue_options__.render = __vue_template__.render
|
294
|
+
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
|
295
|
+
|
296
|
+
module.exports = __vue_exports__
|
297
|
+
|
298
|
+
|
299
|
+
/***/ },
|
300
|
+
|
301
|
+
/***/ 166:
|
302
|
+
/***/ function(module, exports, __webpack_require__) {
|
303
|
+
|
304
|
+
var __vue_exports__, __vue_options__
|
305
|
+
var __vue_styles__ = {}
|
306
|
+
|
307
|
+
/* styles */
|
308
|
+
__webpack_require__(133)
|
309
|
+
|
310
|
+
/* script */
|
311
|
+
__vue_exports__ = __webpack_require__(84)
|
312
|
+
|
313
|
+
/* template */
|
314
|
+
var __vue_template__ = __webpack_require__(206)
|
315
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
316
|
+
if (
|
317
|
+
typeof __vue_exports__.default === "object" ||
|
318
|
+
typeof __vue_exports__.default === "function"
|
319
|
+
) {
|
320
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
321
|
+
}
|
322
|
+
if (typeof __vue_options__ === "function") {
|
323
|
+
__vue_options__ = __vue_options__.options
|
324
|
+
}
|
325
|
+
|
326
|
+
__vue_options__.render = __vue_template__.render
|
327
|
+
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
|
328
|
+
|
329
|
+
module.exports = __vue_exports__
|
330
|
+
|
331
|
+
|
332
|
+
/***/ },
|
333
|
+
|
334
|
+
/***/ 17:
|
335
|
+
/***/ function(module, exports) {
|
336
|
+
|
337
|
+
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
338
|
+
return _c('div', {
|
339
|
+
class: ['mint-spinner-fading-circle circle-color-' + _vm._uid],
|
340
|
+
style: ({
|
341
|
+
width: _vm.spinnerSize,
|
342
|
+
height: _vm.spinnerSize
|
343
|
+
})
|
344
|
+
}, _vm._l((12), function(n) {
|
345
|
+
return _c('div', {
|
346
|
+
staticClass: "mint-spinner-fading-circle-circle",
|
347
|
+
class: ['is-circle' + (n + 1)]
|
348
|
+
})
|
349
|
+
}))
|
350
|
+
},staticRenderFns: []}
|
351
|
+
|
352
|
+
/***/ },
|
353
|
+
|
354
|
+
/***/ 187:
|
355
|
+
/***/ function(module, exports) {
|
356
|
+
|
357
|
+
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
358
|
+
return _c('div', {
|
359
|
+
staticClass: "mint-spinner-double-bounce",
|
360
|
+
style: ({
|
361
|
+
width: _vm.spinnerSize,
|
362
|
+
height: _vm.spinnerSize
|
363
|
+
})
|
364
|
+
}, [_c('div', {
|
365
|
+
staticClass: "mint-spinner-double-bounce-bounce1",
|
366
|
+
style: ({
|
367
|
+
backgroundColor: _vm.spinnerColor
|
368
|
+
})
|
369
|
+
}), _vm._v(" "), _c('div', {
|
370
|
+
staticClass: "mint-spinner-double-bounce-bounce2",
|
371
|
+
style: ({
|
372
|
+
backgroundColor: _vm.spinnerColor
|
373
|
+
})
|
374
|
+
})])
|
375
|
+
},staticRenderFns: []}
|
376
|
+
|
377
|
+
/***/ },
|
378
|
+
|
379
|
+
/***/ 199:
|
380
|
+
/***/ function(module, exports) {
|
381
|
+
|
382
|
+
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
383
|
+
return _c('span', [_c(_vm.spinner, {
|
384
|
+
tag: "component"
|
385
|
+
})], 1)
|
386
|
+
},staticRenderFns: []}
|
387
|
+
|
388
|
+
/***/ },
|
389
|
+
|
390
|
+
/***/ 200:
|
391
|
+
/***/ function(module, exports) {
|
392
|
+
|
393
|
+
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
394
|
+
return _c('div', {
|
395
|
+
staticClass: "mint-spinner-snake",
|
396
|
+
style: ({
|
397
|
+
'border-top-color': _vm.spinnerColor,
|
398
|
+
'border-left-color': _vm.spinnerColor,
|
399
|
+
'border-bottom-color': _vm.spinnerColor,
|
400
|
+
'height': _vm.spinnerSize,
|
401
|
+
'width': _vm.spinnerSize
|
402
|
+
})
|
403
|
+
})
|
404
|
+
},staticRenderFns: []}
|
405
|
+
|
406
|
+
/***/ },
|
407
|
+
|
408
|
+
/***/ 206:
|
409
|
+
/***/ function(module, exports) {
|
410
|
+
|
411
|
+
module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
|
412
|
+
return _c('div', {
|
413
|
+
staticClass: "mint-spinner-triple-bounce"
|
414
|
+
}, [_c('div', {
|
415
|
+
staticClass: "mint-spinner-triple-bounce-bounce1",
|
416
|
+
style: (_vm.bounceStyle)
|
417
|
+
}), _vm._v(" "), _c('div', {
|
418
|
+
staticClass: "mint-spinner-triple-bounce-bounce2",
|
419
|
+
style: (_vm.bounceStyle)
|
420
|
+
}), _vm._v(" "), _c('div', {
|
421
|
+
staticClass: "mint-spinner-triple-bounce-bounce3",
|
422
|
+
style: (_vm.bounceStyle)
|
423
|
+
})])
|
424
|
+
},staticRenderFns: []}
|
425
|
+
|
426
|
+
/***/ },
|
427
|
+
|
428
|
+
/***/ 246:
|
429
|
+
/***/ function(module, exports, __webpack_require__) {
|
430
|
+
|
431
|
+
module.exports = __webpack_require__(46);
|
432
|
+
|
433
|
+
|
434
|
+
/***/ },
|
435
|
+
|
436
|
+
/***/ 46:
|
437
|
+
/***/ function(module, exports, __webpack_require__) {
|
438
|
+
|
439
|
+
"use strict";
|
440
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner__ = __webpack_require__(163);
|
441
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_spinner___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__src_spinner__);
|
442
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
443
|
+
/* harmony reexport (default from non-hamory) */ __webpack_require__.d(exports, "default", function() { return __WEBPACK_IMPORTED_MODULE_0__src_spinner___default.a; });
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
/***/ },
|
448
|
+
|
449
|
+
/***/ 5:
|
450
|
+
/***/ function(module, exports, __webpack_require__) {
|
451
|
+
|
452
|
+
var __vue_exports__, __vue_options__
|
453
|
+
var __vue_styles__ = {}
|
454
|
+
|
455
|
+
/* script */
|
456
|
+
__vue_exports__ = __webpack_require__(11)
|
457
|
+
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
|
458
|
+
if (
|
459
|
+
typeof __vue_exports__.default === "object" ||
|
460
|
+
typeof __vue_exports__.default === "function"
|
461
|
+
) {
|
462
|
+
__vue_options__ = __vue_exports__ = __vue_exports__.default
|
463
|
+
}
|
464
|
+
if (typeof __vue_options__ === "function") {
|
465
|
+
__vue_options__ = __vue_options__.options
|
466
|
+
}
|
467
|
+
|
468
|
+
|
469
|
+
module.exports = __vue_exports__
|
470
|
+
|
471
|
+
|
472
|
+
/***/ },
|
473
|
+
|
474
|
+
/***/ 81:
|
475
|
+
/***/ function(module, exports, __webpack_require__) {
|
476
|
+
|
477
|
+
"use strict";
|
478
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
479
|
+
//
|
480
|
+
//
|
481
|
+
//
|
482
|
+
//
|
483
|
+
|
484
|
+
var SPINNERS = [
|
485
|
+
'snake',
|
486
|
+
'double-bounce',
|
487
|
+
'triple-bounce',
|
488
|
+
'fading-circle'
|
489
|
+
];
|
490
|
+
var parseSpinner = function(index) {
|
491
|
+
if ({}.toString.call(index) === '[object Number]') {
|
492
|
+
if (SPINNERS.length <= index) {
|
493
|
+
console.warn(("'" + index + "' spinner not found, use the default spinner."));
|
494
|
+
index = 0;
|
495
|
+
}
|
496
|
+
return SPINNERS[index];
|
497
|
+
}
|
498
|
+
|
499
|
+
if (SPINNERS.indexOf(index) === -1) {
|
500
|
+
console.warn(("'" + index + "' spinner not found, use the default spinner."));
|
501
|
+
index = SPINNERS[0];
|
502
|
+
}
|
503
|
+
return index;
|
504
|
+
};
|
505
|
+
|
506
|
+
/**
|
507
|
+
* mt-spinner
|
508
|
+
* @module components/spinner
|
509
|
+
* @desc 加载动画
|
510
|
+
* @param {(string|number)} [type=snake] - 显示类型,传入类型名或者类型 id,可选 `snake`, `dobule-bounce`, `triple-bounce`, `fading-circle`
|
511
|
+
* @param {number} size - 尺寸
|
512
|
+
* @param {string} color - 颜色
|
513
|
+
*
|
514
|
+
* @example
|
515
|
+
* <mt-spinner type="snake"></mt-spinner>
|
516
|
+
*
|
517
|
+
* <!-- double-bounce -->
|
518
|
+
* <mt-spinner :type="1"></mt-spinner>
|
519
|
+
*
|
520
|
+
* <!-- default snake -->
|
521
|
+
* <mt-spinner :size="30" color="#999"></mt-spinner>
|
522
|
+
*/
|
523
|
+
/* harmony default export */ exports["default"] = {
|
524
|
+
name: 'mt-spinner',
|
525
|
+
|
526
|
+
computed: {
|
527
|
+
spinner: function spinner() {
|
528
|
+
return ("spinner-" + (parseSpinner(this.type)));
|
529
|
+
}
|
530
|
+
},
|
531
|
+
|
532
|
+
components: {
|
533
|
+
SpinnerSnake: __webpack_require__(165),
|
534
|
+
SpinnerDoubleBounce: __webpack_require__(164),
|
535
|
+
SpinnerTripleBounce: __webpack_require__(166),
|
536
|
+
SpinnerFadingCircle: __webpack_require__(16)
|
537
|
+
},
|
538
|
+
|
539
|
+
props: {
|
540
|
+
type: {
|
541
|
+
default: 0
|
542
|
+
},
|
543
|
+
size: {
|
544
|
+
type: Number,
|
545
|
+
default: 28
|
546
|
+
},
|
547
|
+
color: {
|
548
|
+
type: String,
|
549
|
+
default: '#ccc'
|
550
|
+
}
|
551
|
+
}
|
552
|
+
};
|
553
|
+
|
554
|
+
|
555
|
+
/***/ },
|
556
|
+
|
557
|
+
/***/ 82:
|
558
|
+
/***/ function(module, exports, __webpack_require__) {
|
559
|
+
|
560
|
+
"use strict";
|
561
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
562
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
|
563
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
|
564
|
+
//
|
565
|
+
//
|
566
|
+
//
|
567
|
+
//
|
568
|
+
//
|
569
|
+
//
|
570
|
+
//
|
571
|
+
//
|
572
|
+
//
|
573
|
+
//
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
/* harmony default export */ exports["default"] = {
|
578
|
+
name: 'double-bounce',
|
579
|
+
|
580
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a]
|
581
|
+
};
|
582
|
+
|
583
|
+
|
584
|
+
/***/ },
|
585
|
+
|
586
|
+
/***/ 83:
|
587
|
+
/***/ function(module, exports, __webpack_require__) {
|
588
|
+
|
589
|
+
"use strict";
|
590
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
591
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
|
592
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
|
593
|
+
//
|
594
|
+
//
|
595
|
+
//
|
596
|
+
//
|
597
|
+
//
|
598
|
+
//
|
599
|
+
//
|
600
|
+
//
|
601
|
+
//
|
602
|
+
//
|
603
|
+
//
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
/* harmony default export */ exports["default"] = {
|
608
|
+
name: 'snake',
|
609
|
+
|
610
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a]
|
611
|
+
};
|
612
|
+
|
613
|
+
|
614
|
+
/***/ },
|
615
|
+
|
616
|
+
/***/ 84:
|
617
|
+
/***/ function(module, exports, __webpack_require__) {
|
618
|
+
|
619
|
+
"use strict";
|
620
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
621
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue__ = __webpack_require__(5);
|
622
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__common_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__common_vue__);
|
623
|
+
//
|
624
|
+
//
|
625
|
+
//
|
626
|
+
//
|
627
|
+
//
|
628
|
+
//
|
629
|
+
//
|
630
|
+
//
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
/* harmony default export */ exports["default"] = {
|
635
|
+
name: 'triple-bounce',
|
636
|
+
|
637
|
+
mixins: [__WEBPACK_IMPORTED_MODULE_0__common_vue___default.a],
|
638
|
+
|
639
|
+
computed: {
|
640
|
+
spinnerSize: function spinnerSize() {
|
641
|
+
return ((this.size || this.$parent.size || 28) / 3) + 'px';
|
642
|
+
},
|
643
|
+
|
644
|
+
bounceStyle: function bounceStyle() {
|
645
|
+
return {
|
646
|
+
width: this.spinnerSize,
|
647
|
+
height: this.spinnerSize,
|
648
|
+
backgroundColor: this.spinnerColor
|
649
|
+
};
|
650
|
+
}
|
651
|
+
}
|
652
|
+
};
|
653
|
+
|
654
|
+
|
655
|
+
/***/ }
|
656
|
+
|
657
|
+
/******/ });
|