cy-element-ui 1.0.9 → 1.0.11

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.
Files changed (109) hide show
  1. package/lib/alert.js +2 -2
  2. package/lib/aside.js +2 -2
  3. package/lib/autocomplete.js +11 -14
  4. package/lib/avatar.js +2 -2
  5. package/lib/backtop.js +2 -2
  6. package/lib/badge.js +2 -2
  7. package/lib/breadcrumb-item.js +4 -4
  8. package/lib/breadcrumb.js +2 -2
  9. package/lib/button-group.js +2 -2
  10. package/lib/calendar.js +393 -34
  11. package/lib/card.js +2 -2
  12. package/lib/carousel-item.js +6 -6
  13. package/lib/carousel.js +9 -9
  14. package/lib/cascader-panel.js +19 -22
  15. package/lib/cascader.js +34 -37
  16. package/lib/checkbox-button.js +4 -4
  17. package/lib/checkbox-group.js +2 -2
  18. package/lib/col.js +4 -4
  19. package/lib/collapse-item.js +797 -712
  20. package/lib/collapse.js +2 -2
  21. package/lib/color-picker.js +8 -11
  22. package/lib/container.js +2 -2
  23. package/lib/date-picker.js +386 -27
  24. package/lib/descriptions-item.js +2 -2
  25. package/lib/descriptions.js +2 -2
  26. package/lib/dialog.js +7 -10
  27. package/lib/divider.js +2 -2
  28. package/lib/drawer.js +4 -4
  29. package/lib/dropdown-item.js +2 -2
  30. package/lib/dropdown-menu.js +12 -12
  31. package/lib/dropdown.js +1205 -1111
  32. package/lib/element-ui.common.js +1213 -1261
  33. package/lib/empty.js +6 -9
  34. package/lib/fileUpload.js +44 -48
  35. package/lib/footer.js +2 -2
  36. package/lib/form-item.js +11 -14
  37. package/lib/form.js +4 -4
  38. package/lib/header.js +2 -2
  39. package/lib/icon.js +2 -2
  40. package/lib/image.js +16 -19
  41. package/lib/index.js +1 -1
  42. package/lib/infinite-scroll.js +10 -10
  43. package/lib/input-number.js +13 -16
  44. package/lib/input.js +4 -4
  45. package/lib/link.js +2 -2
  46. package/lib/loading.js +28 -28
  47. package/lib/main.js +2 -2
  48. package/lib/menu-item-group.js +2 -2
  49. package/lib/menu-item.js +12 -15
  50. package/lib/menu.js +7 -10
  51. package/lib/message-box.js +11 -14
  52. package/lib/message.js +7 -10
  53. package/lib/notification.js +7 -10
  54. package/lib/option-group.js +2 -2
  55. package/lib/option.js +18 -21
  56. package/lib/page-header.js +6 -6
  57. package/lib/pagination.js +39 -42
  58. package/lib/popconfirm.js +11 -15
  59. package/lib/popover.js +8 -9
  60. package/lib/progress.js +5 -5
  61. package/lib/radio-button.js +4 -4
  62. package/lib/radio-group.js +4 -4
  63. package/lib/radio.js +2 -2
  64. package/lib/rate.js +10 -10
  65. package/lib/result.js +2 -2
  66. package/lib/row.js +2 -2
  67. package/lib/scrollbar.js +5 -5
  68. package/lib/select.js +24 -27
  69. package/lib/skeleton-item.js +2 -2
  70. package/lib/skeleton.js +2 -2
  71. package/lib/slider.js +24 -27
  72. package/lib/spinner.js +2 -2
  73. package/lib/step.js +2 -2
  74. package/lib/steps.js +6 -6
  75. package/lib/subTitle.js +91 -91
  76. package/lib/submenu.js +121 -121
  77. package/lib/switch.js +9 -12
  78. package/lib/tab-pane.js +2 -2
  79. package/lib/tabDialog.js +15 -18
  80. package/lib/table-column.js +12 -12
  81. package/lib/table.js +32 -35
  82. package/lib/tabs.js +6 -9
  83. package/lib/theme-chalk/src/index.scss +0 -1
  84. package/lib/time-picker.js +387 -28
  85. package/lib/time-select.js +385 -26
  86. package/lib/timeline-item.js +2 -2
  87. package/lib/timeline.js +2 -2
  88. package/lib/tooltip.js +6 -6
  89. package/lib/transfer.js +9 -12
  90. package/lib/tree.js +18 -21
  91. package/lib/treeSelect.js +12 -16
  92. package/lib/upload.js +20 -23
  93. package/lib/utils/date.js +5 -5
  94. package/lib/utils/date_source.js +290 -304
  95. package/lib/utils/lodash.js +10 -11
  96. package/lib/utils/lodash_source.js +9290 -9290
  97. package/package.json +1 -3
  98. package/packages/theme-chalk/src/index.scss +0 -1
  99. package/src/index.js +1 -4
  100. package/src/utils/date.js +2 -2
  101. package/src/utils/date_source.js +305 -321
  102. package/src/utils/lodash.js +9 -2
  103. package/src/utils/lodash_source.js +18079 -18064
  104. package/lib/statistic.js +0 -650
  105. package/lib/theme-chalk/src/statistic.scss +0 -38
  106. package/packages/statistic/index.js +0 -8
  107. package/packages/statistic/src/main.vue +0 -203
  108. package/packages/theme-chalk/src/statistic.scss +0 -38
  109. package/types/statistic.d.ts +0 -37
package/lib/statistic.js DELETED
@@ -1,650 +0,0 @@
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
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 196);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 101:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("core-js/modules/es.regexp.constructor.js");
94
-
95
- /***/ }),
96
-
97
- /***/ 108:
98
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
-
100
- "use strict";
101
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(117);
102
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__);
103
- /* harmony reexport (checked) */ if(__webpack_require__.o(lodash__WEBPACK_IMPORTED_MODULE_0__, "chain")) __webpack_require__.d(__webpack_exports__, "chain", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["chain"]; });
104
-
105
- /* harmony reexport (checked) */ if(__webpack_require__.o(lodash__WEBPACK_IMPORTED_MODULE_0__, "isNumber")) __webpack_require__.d(__webpack_exports__, "isNumber", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["isNumber"]; });
106
-
107
- /* harmony reexport (checked) */ if(__webpack_require__.o(lodash__WEBPACK_IMPORTED_MODULE_0__, "multiply")) __webpack_require__.d(__webpack_exports__, "multiply", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["multiply"]; });
108
-
109
- /* harmony reexport (checked) */ if(__webpack_require__.o(lodash__WEBPACK_IMPORTED_MODULE_0__, "padStart")) __webpack_require__.d(__webpack_exports__, "padStart", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["padStart"]; });
110
-
111
- /* harmony reexport (checked) */ if(__webpack_require__.o(lodash__WEBPACK_IMPORTED_MODULE_0__, "reduce")) __webpack_require__.d(__webpack_exports__, "reduce", function() { return lodash__WEBPACK_IMPORTED_MODULE_0__["reduce"]; });
112
-
113
-
114
-
115
-
116
- /***/ }),
117
-
118
- /***/ 11:
119
- /***/ (function(module, exports) {
120
-
121
- module.exports = require("core-js/modules/es.regexp.to-string.js");
122
-
123
- /***/ }),
124
-
125
- /***/ 117:
126
- /***/ (function(module, exports) {
127
-
128
- module.exports = require("lodash");
129
-
130
- /***/ }),
131
-
132
- /***/ 12:
133
- /***/ (function(module, exports) {
134
-
135
- module.exports = require("core-js/modules/es.string.replace.js");
136
-
137
- /***/ }),
138
-
139
- /***/ 13:
140
- /***/ (function(module, exports) {
141
-
142
- module.exports = require("core-js/modules/es.array.slice.js");
143
-
144
- /***/ }),
145
-
146
- /***/ 17:
147
- /***/ (function(module, exports) {
148
-
149
- module.exports = require("core-js/modules/es.string.match.js");
150
-
151
- /***/ }),
152
-
153
- /***/ 196:
154
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
155
-
156
- "use strict";
157
- // ESM COMPAT FLAG
158
- __webpack_require__.r(__webpack_exports__);
159
-
160
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
161
- var es_function_name_js_ = __webpack_require__(5);
162
-
163
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/statistic/src/main.vue?vue&type=template&id=ad8f8154
164
- var render = function render() {
165
- var _vm = this,
166
- _c = _vm._self._c
167
- return _c("div", { staticClass: "el-statistic" }, [
168
- _vm.title || _vm.$slots.title
169
- ? _c(
170
- "div",
171
- { staticClass: "head" },
172
- [
173
- _vm._t("title", function () {
174
- return [
175
- _c("span", { staticClass: "title" }, [
176
- _vm._v("\n\t\t\t\t" + _vm._s(_vm.title) + "\n\t\t\t"),
177
- ]),
178
- ]
179
- }),
180
- ],
181
- 2
182
- )
183
- : _vm._e(),
184
- _c("div", { staticClass: "con" }, [
185
- _vm.prefix || _vm.$slots.prefix
186
- ? _c(
187
- "span",
188
- { staticClass: "prefix" },
189
- [
190
- _vm._t("prefix", function () {
191
- return [_vm._v("\n\t\t\t\t" + _vm._s(_vm.prefix) + "\n\t\t\t")]
192
- }),
193
- ],
194
- 2
195
- )
196
- : _vm._e(),
197
- _c(
198
- "span",
199
- { staticClass: "number", style: _vm.valueStyle },
200
- [
201
- _vm._t("formatter", function () {
202
- return [_vm._v(" " + _vm._s(_vm.disposeValue))]
203
- }),
204
- ],
205
- 2
206
- ),
207
- _vm.suffix || _vm.$slots.suffix
208
- ? _c(
209
- "span",
210
- { staticClass: "suffix" },
211
- [
212
- _vm._t("suffix", function () {
213
- return [_vm._v("\n\t\t\t\t" + _vm._s(_vm.suffix) + "\n\t\t\t")]
214
- }),
215
- ],
216
- 2
217
- )
218
- : _vm._e(),
219
- ]),
220
- ])
221
- }
222
- var staticRenderFns = []
223
- render._withStripped = true
224
-
225
-
226
- // CONCATENATED MODULE: ./packages/statistic/src/main.vue?vue&type=template&id=ad8f8154
227
-
228
- // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
229
- var es_array_map_js_ = __webpack_require__(20);
230
-
231
- // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
232
- var es_array_slice_js_ = __webpack_require__(13);
233
-
234
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
235
- var es_number_constructor_js_ = __webpack_require__(6);
236
-
237
- // EXTERNAL MODULE: external "core-js/modules/es.number.to-fixed.js"
238
- var es_number_to_fixed_js_ = __webpack_require__(88);
239
-
240
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
241
- var es_object_to_string_js_ = __webpack_require__(3);
242
-
243
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.constructor.js"
244
- var es_regexp_constructor_js_ = __webpack_require__(101);
245
-
246
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
247
- var es_regexp_exec_js_ = __webpack_require__(7);
248
-
249
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
250
- var es_regexp_to_string_js_ = __webpack_require__(11);
251
-
252
- // EXTERNAL MODULE: external "core-js/modules/es.string.match.js"
253
- var es_string_match_js_ = __webpack_require__(17);
254
-
255
- // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
256
- var es_string_replace_js_ = __webpack_require__(12);
257
-
258
- // EXTERNAL MODULE: ./src/utils/lodash.js
259
- var lodash = __webpack_require__(108);
260
-
261
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/statistic/src/main.vue?vue&type=script&lang=js
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- /* harmony default export */ var mainvue_type_script_lang_js = ({
274
- name: 'ElStatistic',
275
- data: function data() {
276
- return {
277
- disposeValue: '',
278
- timeTask: null,
279
- REFRESH_INTERVAL: 1000 / 30
280
- };
281
- },
282
- props: {
283
- decimalSeparator: {
284
- type: String,
285
- default: '.'
286
- },
287
- groupSeparator: {
288
- type: String,
289
- default: ''
290
- },
291
- precision: {
292
- type: Number,
293
- default: null
294
- },
295
- value: {
296
- type: [String, Number, Date],
297
- default: ''
298
- },
299
- prefix: {
300
- type: String,
301
- default: ''
302
- },
303
- suffix: {
304
- type: String,
305
- default: ''
306
- },
307
- title: {
308
- type: [String, Number],
309
- default: ''
310
- },
311
- timeIndices: {
312
- type: Boolean,
313
- default: false
314
- },
315
- valueStyle: {
316
- type: Object,
317
- default: function _default() {
318
- return {};
319
- }
320
- },
321
- format: {
322
- type: String,
323
- default: 'HH:mm:ss:SSS'
324
- },
325
- rate: {
326
- type: Number,
327
- default: 1000
328
- }
329
- },
330
- created: function created() {
331
- this.branch();
332
- },
333
- watch: {
334
- value: function value() {
335
- this.branch();
336
- },
337
- groupSeparator: function groupSeparator() {
338
- this.dispose();
339
- },
340
- mulriple: function mulriple() {
341
- this.dispose();
342
- }
343
- },
344
- methods: {
345
- branch: function branch() {
346
- var timeIndices = this.timeIndices,
347
- countDown = this.countDown,
348
- dispose = this.dispose;
349
- if (timeIndices) {
350
- countDown(this.value.valueOf() || this.value);
351
- } else {
352
- dispose();
353
- }
354
- },
355
- magnification: function magnification(num, mulriple, groupSeparator) {
356
- if (mulriple === void 0) {
357
- mulriple = 1000;
358
- }
359
- if (groupSeparator === void 0) {
360
- groupSeparator = ',';
361
- }
362
- // magnification factor
363
- var level = String(mulriple).length;
364
- return num.replace(new RegExp("(\\d)(?=(\\d{" + (level - 1) + "})+$)", 'g'), "$1" + groupSeparator);
365
- },
366
- dispose: function dispose() {
367
- var value = this.value,
368
- rate = this.rate,
369
- groupSeparator = this.groupSeparator;
370
- if (!Object(lodash["isNumber"])(value)) return false;
371
- if (this.precision) {
372
- value = value.toFixed(this.precision);
373
- }
374
- var _String$split = String(value).split('.'),
375
- integer = _String$split[0],
376
- decimal = _String$split[1];
377
- // 1000 multiplying power
378
- if (groupSeparator) {
379
- integer = this.magnification(integer, rate, groupSeparator);
380
- }
381
- var result = "" + integer + (decimal ? this.decimalSeparator + decimal : '');
382
- this.disposeValue = result;
383
- return result;
384
- },
385
- diffDate: function diffDate(minuend, subtrahend) {
386
- return Math.max(minuend - subtrahend, 0);
387
- },
388
- suspend: function suspend(isStop) {
389
- if (isStop) {
390
- if (this.timeTask) {
391
- clearInterval(this.timeTask);
392
- this.timeTask = null;
393
- }
394
- } else {
395
- this.branch();
396
- }
397
- return this.disposeValue;
398
- },
399
- formatTimeStr: function formatTimeStr(time) {
400
- var format = this.format;
401
- var escapeRegex = /\[[^\]]*]/g;
402
- var keepList = (format.match(escapeRegex) || []).map(function (str) {
403
- return str.slice(1, -1);
404
- });
405
- var timeUnits = [['Y', 1000 * 60 * 60 * 24 * 365],
406
- // years
407
- ['M', 1000 * 60 * 60 * 24 * 30],
408
- // months
409
- ['D', 1000 * 60 * 60 * 24],
410
- // days
411
- ['H', 1000 * 60 * 60],
412
- // hours
413
- ['m', 1000 * 60],
414
- // minutes
415
- ['s', 1000],
416
- // seconds
417
- ['S', 1] // million seconds
418
- ];
419
- var formatText = Object(lodash["reduce"])(timeUnits, function (con, item) {
420
- var name = item[0];
421
- return con.replace(new RegExp(name + "+", 'g'), function (match) {
422
- var sum = Object(lodash["chain"])(time).divide(item[1]).floor(0).value();
423
- time -= Object(lodash["multiply"])(sum, item[1]);
424
- return Object(lodash["padStart"])(String(sum), String(match).length, 0);
425
- });
426
- }, format);
427
- var index = 0;
428
- return formatText.replace(escapeRegex, function () {
429
- var match = keepList[index];
430
- index += 1;
431
- return match;
432
- });
433
- },
434
- stopTime: function stopTime(time) {
435
- var result = true; // stop
436
- if (time) {
437
- this.$emit('change', time);
438
- result = false;
439
- } else {
440
- result = true;
441
- this.suspend(true);
442
- this.$emit('finish', true);
443
- }
444
- return result;
445
- },
446
- countDown: function countDown(timeVlaue) {
447
- var REFRESH_INTERVAL = this.REFRESH_INTERVAL,
448
- timeTask = this.timeTask,
449
- diffDate = this.diffDate,
450
- formatTimeStr = this.formatTimeStr,
451
- stopTime = this.stopTime,
452
- suspend = this.suspend;
453
- if (timeTask) return;
454
- var than = this;
455
- this.timeTask = setInterval(function () {
456
- var diffTiem = diffDate(timeVlaue, Date.now());
457
- than.disposeValue = formatTimeStr(diffTiem);
458
- stopTime(diffTiem);
459
- }, REFRESH_INTERVAL);
460
- this.$once('hook:beforeDestroy', function () {
461
- suspend(true);
462
- });
463
- }
464
- }
465
- });
466
- // CONCATENATED MODULE: ./packages/statistic/src/main.vue?vue&type=script&lang=js
467
- /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
468
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
469
- var componentNormalizer = __webpack_require__(2);
470
-
471
- // CONCATENATED MODULE: ./packages/statistic/src/main.vue
472
-
473
-
474
-
475
-
476
-
477
- /* normalize component */
478
-
479
- var component = Object(componentNormalizer["a" /* default */])(
480
- src_mainvue_type_script_lang_js,
481
- render,
482
- staticRenderFns,
483
- false,
484
- null,
485
- null,
486
- null
487
-
488
- )
489
-
490
- /* harmony default export */ var main = (component.exports);
491
- // CONCATENATED MODULE: ./packages/statistic/index.js
492
-
493
-
494
-
495
- /* istanbul ignore next */
496
- main.install = function (Vue) {
497
- Vue.component(main.name, main);
498
- };
499
- /* harmony default export */ var statistic = __webpack_exports__["default"] = (main);
500
-
501
- /***/ }),
502
-
503
- /***/ 2:
504
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
505
-
506
- "use strict";
507
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
508
- /* globals __VUE_SSR_CONTEXT__ */
509
-
510
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
511
- // This module is a runtime utility for cleaner component module output and will
512
- // be included in the final webpack user bundle.
513
-
514
- function normalizeComponent(
515
- scriptExports,
516
- render,
517
- staticRenderFns,
518
- functionalTemplate,
519
- injectStyles,
520
- scopeId,
521
- moduleIdentifier /* server only */,
522
- shadowMode /* vue-cli only */
523
- ) {
524
- // Vue.extend constructor export interop
525
- var options =
526
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
527
-
528
- // render functions
529
- if (render) {
530
- options.render = render
531
- options.staticRenderFns = staticRenderFns
532
- options._compiled = true
533
- }
534
-
535
- // functional template
536
- if (functionalTemplate) {
537
- options.functional = true
538
- }
539
-
540
- // scopedId
541
- if (scopeId) {
542
- options._scopeId = 'data-v-' + scopeId
543
- }
544
-
545
- var hook
546
- if (moduleIdentifier) {
547
- // server build
548
- hook = function (context) {
549
- // 2.3 injection
550
- context =
551
- context || // cached call
552
- (this.$vnode && this.$vnode.ssrContext) || // stateful
553
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
554
- // 2.2 with runInNewContext: true
555
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
556
- context = __VUE_SSR_CONTEXT__
557
- }
558
- // inject component styles
559
- if (injectStyles) {
560
- injectStyles.call(this, context)
561
- }
562
- // register component module identifier for async chunk inferrence
563
- if (context && context._registeredComponents) {
564
- context._registeredComponents.add(moduleIdentifier)
565
- }
566
- }
567
- // used by ssr in case component is cached and beforeCreate
568
- // never gets called
569
- options._ssrRegister = hook
570
- } else if (injectStyles) {
571
- hook = shadowMode
572
- ? function () {
573
- injectStyles.call(
574
- this,
575
- (options.functional ? this.parent : this).$root.$options.shadowRoot
576
- )
577
- }
578
- : injectStyles
579
- }
580
-
581
- if (hook) {
582
- if (options.functional) {
583
- // for template-only hot-reload because in that case the render fn doesn't
584
- // go through the normalizer
585
- options._injectStyles = hook
586
- // register for functional component in vue file
587
- var originalRender = options.render
588
- options.render = function renderWithStyleInjection(h, context) {
589
- hook.call(context)
590
- return originalRender(h, context)
591
- }
592
- } else {
593
- // inject component registration as beforeCreate hook
594
- var existing = options.beforeCreate
595
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
596
- }
597
- }
598
-
599
- return {
600
- exports: scriptExports,
601
- options: options
602
- }
603
- }
604
-
605
-
606
- /***/ }),
607
-
608
- /***/ 20:
609
- /***/ (function(module, exports) {
610
-
611
- module.exports = require("core-js/modules/es.array.map.js");
612
-
613
- /***/ }),
614
-
615
- /***/ 3:
616
- /***/ (function(module, exports) {
617
-
618
- module.exports = require("core-js/modules/es.object.to-string.js");
619
-
620
- /***/ }),
621
-
622
- /***/ 5:
623
- /***/ (function(module, exports) {
624
-
625
- module.exports = require("core-js/modules/es.function.name.js");
626
-
627
- /***/ }),
628
-
629
- /***/ 6:
630
- /***/ (function(module, exports) {
631
-
632
- module.exports = require("core-js/modules/es.number.constructor.js");
633
-
634
- /***/ }),
635
-
636
- /***/ 7:
637
- /***/ (function(module, exports) {
638
-
639
- module.exports = require("core-js/modules/es.regexp.exec.js");
640
-
641
- /***/ }),
642
-
643
- /***/ 88:
644
- /***/ (function(module, exports) {
645
-
646
- module.exports = require("core-js/modules/es.number.to-fixed.js");
647
-
648
- /***/ })
649
-
650
- /******/ });
@@ -1,38 +0,0 @@
1
- @import "mixins/mixins";
2
- @import "common/var";
3
-
4
- @include b(statistic) {
5
- $statistic-justify: center;
6
- $statistic-align: center;
7
- width: 100%;
8
- box-sizing: border-box;
9
- margin: 0;
10
- padding: 0;
11
- color: $--color-black;
12
- font-variant: tabular-nums;
13
- list-style: none;
14
- font-feature-settings: "tnum";
15
- text-align: center;
16
- .head {
17
- margin-bottom: 4px;
18
- color: $--color-text-regular;
19
- font-size: $--font-size-small;
20
- }
21
-
22
- .con {
23
- font-family: Sans-serif;
24
- display: flex;
25
- justify-content: $statistic-justify;
26
- align-items: $statistic-align;
27
- color: $--color-text-primary;
28
- .number {
29
- font-size: $--font-size-extra-large;
30
- padding: 0 4px;
31
- }
32
- span {
33
- display: inline-block;
34
- margin: 0;
35
- line-height: 100%;
36
- }
37
- }
38
- }
@@ -1,8 +0,0 @@
1
- import Statistic from './src/main';
2
-
3
- /* istanbul ignore next */
4
- Statistic.install = function(Vue) {
5
- Vue.component(Statistic.name, Statistic);
6
- };
7
-
8
- export default Statistic;