cy-element-ui 1.0.72 → 1.0.74

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 (112) hide show
  1. package/lib/alert.js +4 -4
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +3940 -159
  4. package/lib/avatar.js +108 -108
  5. package/lib/backtop.js +110 -110
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +4 -4
  8. package/lib/breadcrumb.js +4 -4
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +1545 -46
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +452 -108
  14. package/lib/carousel.js +185 -116
  15. package/lib/cascader-panel.js +2270 -187
  16. package/lib/cascader.js +6452 -275
  17. package/lib/checkbox-button.js +43 -11
  18. package/lib/checkbox-group.js +47 -15
  19. package/lib/checkbox.js +47 -15
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +815 -110
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +3953 -153
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +5231 -420
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +63 -8
  28. package/lib/dialog.js +1200 -22
  29. package/lib/directives/repeat-click.js +2 -2
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +875 -105
  32. package/lib/dropdown-item.js +43 -11
  33. package/lib/dropdown-menu.js +2274 -72
  34. package/lib/dropdown.js +1072 -136
  35. package/lib/element-ui.common.js +26236 -13298
  36. package/lib/empty.js +603 -7
  37. package/lib/fileUpload.js +2478 -110
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +420 -30
  40. package/lib/form.js +29 -15
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +4 -4
  43. package/lib/image.js +1376 -49
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +311 -21
  46. package/lib/input-number.js +1423 -34
  47. package/lib/input.js +507 -37
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +804 -67
  50. package/lib/locale/format.js +1 -1
  51. package/lib/locale/index.js +1 -1
  52. package/lib/main.js +64 -64
  53. package/lib/menu-item-group.js +4 -4
  54. package/lib/menu-item.js +2925 -41
  55. package/lib/menu.js +745 -54
  56. package/lib/message-box.js +2536 -79
  57. package/lib/message.js +1102 -24
  58. package/lib/mixins/locale.js +1 -1
  59. package/lib/mixins/migrating.js +1 -1
  60. package/lib/notification.js +1102 -25
  61. package/lib/option-group.js +43 -11
  62. package/lib/option.js +394 -18
  63. package/lib/page-header.js +683 -87
  64. package/lib/pagination.js +6078 -139
  65. package/lib/popconfirm.js +3508 -219
  66. package/lib/popover.js +2604 -79
  67. package/lib/progress.js +4 -4
  68. package/lib/radio-button.js +43 -11
  69. package/lib/radio-group.js +43 -11
  70. package/lib/radio.js +47 -15
  71. package/lib/rate.js +756 -113
  72. package/lib/result.js +4 -4
  73. package/lib/row.js +2 -2
  74. package/lib/scrollbar.js +735 -50
  75. package/lib/select.js +4352 -209
  76. package/lib/selectDisplayInput.js +108 -108
  77. package/lib/skeleton-item.js +2 -2
  78. package/lib/skeleton.js +108 -108
  79. package/lib/slider.js +4266 -120
  80. package/lib/spinner.js +4 -4
  81. package/lib/statistic.js +9605 -117
  82. package/lib/step.js +108 -108
  83. package/lib/steps.js +514 -99
  84. package/lib/subTitle.js +91 -91
  85. package/lib/submenu.js +2444 -123
  86. package/lib/switch.js +476 -21
  87. package/lib/tab-pane.js +4 -4
  88. package/lib/tabDialog.js +1544 -18
  89. package/lib/table-column.js +881 -33
  90. package/lib/table.js +4469 -426
  91. package/lib/tabs.js +425 -12
  92. package/lib/tag.js +4 -4
  93. package/lib/time-picker.js +5013 -285
  94. package/lib/time-select.js +4945 -177
  95. package/lib/timeline-item.js +108 -108
  96. package/lib/timeline.js +82 -82
  97. package/lib/tooltip.js +2566 -41
  98. package/lib/transfer.js +2135 -141
  99. package/lib/transitions/collapse-transition.js +1 -1
  100. package/lib/tree.js +1372 -55
  101. package/lib/treeSelect.js +3420 -105
  102. package/lib/upload.js +1047 -28
  103. package/lib/utils/clickoutside.js +1 -1
  104. package/lib/utils/date-util.js +2 -2
  105. package/lib/utils/popup/index.js +2 -2
  106. package/lib/utils/popup/popup-manager.js +1 -1
  107. package/lib/utils/util.js +1 -1
  108. package/lib/utils/vdom.js +1 -1
  109. package/lib/utils/vue-popper.js +1 -1
  110. package/package.json +1 -1
  111. package/packages/form/src/form-item.vue +3 -3
  112. package/src/index.js +1 -1
package/lib/progress.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 108);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 34);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 2:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 108:
195
+ /***/ 34:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -505,7 +505,7 @@ render._withStripped = true
505
505
  // CONCATENATED MODULE: ./packages/progress/src/progress.vue?vue&type=script&lang=js
506
506
  /* harmony default export */ var src_progressvue_type_script_lang_js = (progressvue_type_script_lang_js);
507
507
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
508
- var componentNormalizer = __webpack_require__(0);
508
+ var componentNormalizer = __webpack_require__(2);
509
509
 
510
510
  // CONCATENATED MODULE: ./packages/progress/src/progress.vue
511
511
 
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 94);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 89);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 2:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,14 +192,47 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 4:
196
- /***/ (function(module, exports) {
195
+ /***/ 6:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ function _broadcast(componentName, eventName, params) {
200
+ this.$children.forEach(function (child) {
201
+ var name = child.$options.componentName;
202
+
203
+ if (name === componentName) {
204
+ child.$emit.apply(child, [eventName].concat(params));
205
+ } else {
206
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
207
+ }
208
+ });
209
+ }
210
+ /* harmony default export */ __webpack_exports__["a"] = ({
211
+ methods: {
212
+ dispatch: function dispatch(componentName, eventName, params) {
213
+ var parent = this.$parent || this.$root;
214
+ var name = parent.$options.componentName;
215
+
216
+ while (parent && (!name || name !== componentName)) {
217
+ parent = parent.$parent;
197
218
 
198
- module.exports = require("cy-element-ui/lib/mixins/emitter");
219
+ if (parent) {
220
+ name = parent.$options.componentName;
221
+ }
222
+ }
223
+ if (parent) {
224
+ parent.$emit.apply(parent, [eventName].concat(params));
225
+ }
226
+ },
227
+ broadcast: function broadcast(componentName, eventName, params) {
228
+ _broadcast.call(this, componentName, eventName, params);
229
+ }
230
+ }
231
+ });
199
232
 
200
233
  /***/ }),
201
234
 
202
- /***/ 94:
235
+ /***/ 89:
203
236
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
237
 
205
238
  "use strict";
@@ -299,9 +332,8 @@ render._withStripped = true
299
332
 
300
333
  // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=template&id=72267784
301
334
 
302
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/emitter"
303
- var emitter_ = __webpack_require__(4);
304
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
335
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
336
+ var emitter = __webpack_require__(6);
305
337
 
306
338
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-button.vue?vue&type=script&lang=js
307
339
 
@@ -310,7 +342,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
310
342
  /* harmony default export */ var radio_buttonvue_type_script_lang_js = ({
311
343
  name: 'ElRadioButton',
312
344
 
313
- mixins: [emitter_default.a],
345
+ mixins: [emitter["a" /* default */]],
314
346
 
315
347
  inject: {
316
348
  elForm: {
@@ -387,7 +419,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
387
419
  // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue?vue&type=script&lang=js
388
420
  /* harmony default export */ var src_radio_buttonvue_type_script_lang_js = (radio_buttonvue_type_script_lang_js);
389
421
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
390
- var componentNormalizer = __webpack_require__(0);
422
+ var componentNormalizer = __webpack_require__(2);
391
423
 
392
424
  // CONCATENATED MODULE: ./packages/radio/src/radio-button.vue
393
425
 
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 93);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 88);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 2:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,14 +192,47 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 4:
196
- /***/ (function(module, exports) {
195
+ /***/ 6:
196
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
+
198
+ "use strict";
199
+ function _broadcast(componentName, eventName, params) {
200
+ this.$children.forEach(function (child) {
201
+ var name = child.$options.componentName;
202
+
203
+ if (name === componentName) {
204
+ child.$emit.apply(child, [eventName].concat(params));
205
+ } else {
206
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
207
+ }
208
+ });
209
+ }
210
+ /* harmony default export */ __webpack_exports__["a"] = ({
211
+ methods: {
212
+ dispatch: function dispatch(componentName, eventName, params) {
213
+ var parent = this.$parent || this.$root;
214
+ var name = parent.$options.componentName;
215
+
216
+ while (parent && (!name || name !== componentName)) {
217
+ parent = parent.$parent;
197
218
 
198
- module.exports = require("cy-element-ui/lib/mixins/emitter");
219
+ if (parent) {
220
+ name = parent.$options.componentName;
221
+ }
222
+ }
223
+ if (parent) {
224
+ parent.$emit.apply(parent, [eventName].concat(params));
225
+ }
226
+ },
227
+ broadcast: function broadcast(componentName, eventName, params) {
228
+ _broadcast.call(this, componentName, eventName, params);
229
+ }
230
+ }
231
+ });
199
232
 
200
233
  /***/ }),
201
234
 
202
- /***/ 93:
235
+ /***/ 88:
203
236
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
237
 
205
238
  "use strict";
@@ -228,9 +261,8 @@ render._withStripped = true
228
261
 
229
262
  // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=template&id=e8c0ca4a
230
263
 
231
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/emitter"
232
- var emitter_ = __webpack_require__(4);
233
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
264
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
265
+ var emitter = __webpack_require__(6);
234
266
 
235
267
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=script&lang=js
236
268
 
@@ -253,7 +285,7 @@ var keyCode = Object.freeze({
253
285
  }
254
286
  },
255
287
 
256
- mixins: [emitter_default.a],
288
+ mixins: [emitter["a" /* default */]],
257
289
 
258
290
  props: {
259
291
  value: {},
@@ -343,7 +375,7 @@ var keyCode = Object.freeze({
343
375
  // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=script&lang=js
344
376
  /* harmony default export */ var src_radio_groupvue_type_script_lang_js = (radio_groupvue_type_script_lang_js);
345
377
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
346
- var componentNormalizer = __webpack_require__(0);
378
+ var componentNormalizer = __webpack_require__(2);
347
379
 
348
380
  // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue
349
381
 
package/lib/radio.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 92);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 44);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
90
+ /***/ 2:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,14 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 4:
196
- /***/ (function(module, exports) {
197
-
198
- module.exports = require("cy-element-ui/lib/mixins/emitter");
199
-
200
- /***/ }),
201
-
202
- /***/ 92:
195
+ /***/ 44:
203
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
204
197
 
205
198
  "use strict";
@@ -317,9 +310,8 @@ render._withStripped = true
317
310
 
318
311
  // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=b84af2ea
319
312
 
320
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/emitter"
321
- var emitter_ = __webpack_require__(4);
322
- var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
313
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
314
+ var emitter = __webpack_require__(6);
323
315
 
324
316
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=script&lang=js
325
317
 
@@ -328,7 +320,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
328
320
  /* harmony default export */ var radiovue_type_script_lang_js = ({
329
321
  name: 'ElRadio',
330
322
 
331
- mixins: [emitter_default.a],
323
+ mixins: [emitter["a" /* default */]],
332
324
 
333
325
  inject: {
334
326
  elForm: {
@@ -413,7 +405,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
413
405
  // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js
414
406
  /* harmony default export */ var src_radiovue_type_script_lang_js = (radiovue_type_script_lang_js);
415
407
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
416
- var componentNormalizer = __webpack_require__(0);
408
+ var componentNormalizer = __webpack_require__(2);
417
409
 
418
410
  // CONCATENATED MODULE: ./packages/radio/src/radio.vue
419
411
 
@@ -445,6 +437,46 @@ src_radio.install = function (Vue) {
445
437
 
446
438
  /* harmony default export */ var packages_radio = __webpack_exports__["default"] = (src_radio);
447
439
 
440
+ /***/ }),
441
+
442
+ /***/ 6:
443
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
444
+
445
+ "use strict";
446
+ function _broadcast(componentName, eventName, params) {
447
+ this.$children.forEach(function (child) {
448
+ var name = child.$options.componentName;
449
+
450
+ if (name === componentName) {
451
+ child.$emit.apply(child, [eventName].concat(params));
452
+ } else {
453
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
454
+ }
455
+ });
456
+ }
457
+ /* harmony default export */ __webpack_exports__["a"] = ({
458
+ methods: {
459
+ dispatch: function dispatch(componentName, eventName, params) {
460
+ var parent = this.$parent || this.$root;
461
+ var name = parent.$options.componentName;
462
+
463
+ while (parent && (!name || name !== componentName)) {
464
+ parent = parent.$parent;
465
+
466
+ if (parent) {
467
+ name = parent.$options.componentName;
468
+ }
469
+ }
470
+ if (parent) {
471
+ parent.$emit.apply(parent, [eventName].concat(params));
472
+ }
473
+ },
474
+ broadcast: function broadcast(componentName, eventName, params) {
475
+ _broadcast.call(this, componentName, eventName, params);
476
+ }
477
+ }
478
+ });
479
+
448
480
  /***/ })
449
481
 
450
482
  /******/ });