cy-element-ui 1.0.46 → 1.0.47

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 (98) hide show
  1. package/lib/alert.js +4 -4
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +159 -3940
  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 +46 -1545
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +108 -452
  14. package/lib/carousel.js +116 -185
  15. package/lib/cascader-panel.js +187 -2270
  16. package/lib/cascader.js +275 -6452
  17. package/lib/checkbox-button.js +11 -43
  18. package/lib/checkbox-group.js +15 -47
  19. package/lib/checkbox.js +15 -47
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +110 -815
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +153 -3953
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +419 -5230
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +22 -1200
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +105 -875
  31. package/lib/dropdown-item.js +11 -43
  32. package/lib/dropdown-menu.js +75 -2277
  33. package/lib/dropdown.js +136 -1072
  34. package/lib/element-ui.common.js +29785 -42723
  35. package/lib/empty.js +7 -603
  36. package/lib/fileUpload.js +109 -2477
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +28 -418
  39. package/lib/form.js +15 -29
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +4 -4
  42. package/lib/image.js +49 -1376
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +21 -311
  45. package/lib/input-number.js +33 -1422
  46. package/lib/input.js +37 -507
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +67 -804
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +4 -4
  51. package/lib/menu-item.js +61 -2945
  52. package/lib/menu.js +54 -745
  53. package/lib/message-box.js +80 -2537
  54. package/lib/message.js +24 -1102
  55. package/lib/notification.js +25 -1102
  56. package/lib/option-group.js +11 -43
  57. package/lib/option.js +18 -394
  58. package/lib/page-header.js +87 -683
  59. package/lib/pagination.js +139 -6078
  60. package/lib/popconfirm.js +219 -3508
  61. package/lib/popover.js +99 -2624
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +11 -43
  64. package/lib/radio-group.js +11 -43
  65. package/lib/radio.js +15 -47
  66. package/lib/rate.js +113 -756
  67. package/lib/result.js +4 -4
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +50 -735
  70. package/lib/select.js +209 -4352
  71. package/lib/selectDisplayInput.js +108 -108
  72. package/lib/skeleton-item.js +2 -2
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +120 -4266
  75. package/lib/spinner.js +4 -4
  76. package/lib/statistic.js +117 -9605
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +99 -514
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +121 -2442
  81. package/lib/switch.js +21 -476
  82. package/lib/tab-pane.js +4 -4
  83. package/lib/tabDialog.js +37 -1563
  84. package/lib/table-column.js +32 -880
  85. package/lib/table.js +424 -4467
  86. package/lib/tabs.js +12 -425
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +285 -5013
  89. package/lib/time-select.js +181 -4949
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +82 -82
  92. package/lib/tooltip.js +41 -2566
  93. package/lib/transfer.js +142 -2136
  94. package/lib/tree.js +55 -1372
  95. package/lib/treeSelect.js +106 -3421
  96. package/lib/upload.js +28 -1047
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/rate.js CHANGED
@@ -82,261 +82,124 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 102);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 112);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("vue");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
92
 
100
93
  "use strict";
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
- /* unused harmony export setStyle */
109
- /* unused harmony export isScroll */
110
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
115
-
116
- /* istanbul ignore next */
117
-
118
-
119
-
120
- var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
- var ieVersion = isServer ? 0 : Number(document.documentMode);
124
-
125
- /* istanbul ignore next */
126
- var trim = function trim(string) {
127
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
- };
129
- /* istanbul ignore next */
130
- var camelCase = function camelCase(name) {
131
- return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
- return offset ? letter.toUpperCase() : letter;
133
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
- };
135
-
136
- /* istanbul ignore next */
137
- var on = function () {
138
- if (!isServer && document.addEventListener) {
139
- return function (element, event, handler) {
140
- if (element && event && handler) {
141
- element.addEventListener(event, handler, false);
142
- }
143
- };
144
- } else {
145
- return function (element, event, handler) {
146
- if (element && event && handler) {
147
- element.attachEvent('on' + event, handler);
148
- }
149
- };
150
- }
151
- }();
152
-
153
- /* istanbul ignore next */
154
- var off = function () {
155
- if (!isServer && document.removeEventListener) {
156
- return function (element, event, handler) {
157
- if (element && event) {
158
- element.removeEventListener(event, handler, false);
159
- }
160
- };
161
- } else {
162
- return function (element, event, handler) {
163
- if (element && event) {
164
- element.detachEvent('on' + event, handler);
165
- }
166
- };
167
- }
168
- }();
169
-
170
- /* istanbul ignore next */
171
- var once = function once(el, event, fn) {
172
- var listener = function listener() {
173
- if (fn) {
174
- fn.apply(this, arguments);
175
- }
176
- off(el, event, listener);
177
- };
178
- on(el, event, listener);
179
- };
180
-
181
- /* istanbul ignore next */
182
- function hasClass(el, cls) {
183
- if (!el || !cls) return false;
184
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
- if (el.classList) {
186
- return el.classList.contains(cls);
187
- } else {
188
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
- }
190
- };
191
-
192
- /* istanbul ignore next */
193
- function addClass(el, cls) {
194
- if (!el) return;
195
- var curClass = el.className;
196
- var classes = (cls || '').split(' ');
197
-
198
- for (var i = 0, j = classes.length; i < j; i++) {
199
- var clsName = classes[i];
200
- if (!clsName) continue;
201
-
202
- if (el.classList) {
203
- el.classList.add(clsName);
204
- } else if (!hasClass(el, clsName)) {
205
- curClass += ' ' + clsName;
206
- }
207
- }
208
- if (!el.classList) {
209
- el.setAttribute('class', curClass);
210
- }
211
- };
212
-
213
- /* istanbul ignore next */
214
- function removeClass(el, cls) {
215
- if (!el || !cls) return;
216
- var classes = cls.split(' ');
217
- var curClass = ' ' + el.className + ' ';
218
-
219
- for (var i = 0, j = classes.length; i < j; i++) {
220
- var clsName = classes[i];
221
- if (!clsName) continue;
222
-
223
- if (el.classList) {
224
- el.classList.remove(clsName);
225
- } else if (hasClass(el, clsName)) {
226
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
- }
228
- }
229
- if (!el.classList) {
230
- el.setAttribute('class', trim(curClass));
231
- }
232
- };
233
-
234
- /* istanbul ignore next */
235
- var getStyle = ieVersion < 9 ? function (element, styleName) {
236
- if (isServer) return;
237
- if (!element || !styleName) return null;
238
- styleName = camelCase(styleName);
239
- if (styleName === 'float') {
240
- styleName = 'styleFloat';
241
- }
242
- try {
243
- switch (styleName) {
244
- case 'opacity':
245
- try {
246
- return element.filters.item('alpha').opacity / 100;
247
- } catch (e) {
248
- return 1.0;
249
- }
250
- default:
251
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
- }
253
- } catch (e) {
254
- return element.style[styleName];
255
- }
256
- } : function (element, styleName) {
257
- if (isServer) return;
258
- if (!element || !styleName) return null;
259
- styleName = camelCase(styleName);
260
- if (styleName === 'float') {
261
- styleName = 'cssFloat';
262
- }
263
- try {
264
- var computed = document.defaultView.getComputedStyle(element, '');
265
- return element.style[styleName] || computed ? computed[styleName] : null;
266
- } catch (e) {
267
- return element.style[styleName];
268
- }
269
- };
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
270
96
 
271
- /* istanbul ignore next */
272
- function setStyle(element, styleName, value) {
273
- if (!element || !styleName) return;
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
274
100
 
275
- if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
- for (var prop in styleName) {
277
- if (styleName.hasOwnProperty(prop)) {
278
- setStyle(element, prop, styleName[prop]);
279
- }
280
- }
281
- } else {
282
- styleName = camelCase(styleName);
283
- if (styleName === 'opacity' && ieVersion < 9) {
284
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
- } else {
286
- element.style[styleName] = value;
287
- }
288
- }
289
- };
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
290
114
 
291
- var isScroll = function isScroll(el, vertical) {
292
- if (isServer) return;
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
293
121
 
294
- var determinedDirection = vertical !== null && vertical !== undefined;
295
- var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
296
126
 
297
- return overflow.match(/(scroll|auto|overlay)/);
298
- };
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
299
131
 
300
- var getScrollContainer = function getScrollContainer(el, vertical) {
301
- if (isServer) return;
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
302
167
 
303
- var parent = el;
304
- while (parent) {
305
- if ([window, document, document.documentElement].includes(parent)) {
306
- return window;
307
- }
308
- if (isScroll(parent, vertical)) {
309
- return parent;
310
- }
311
- parent = parent.parentNode;
312
- }
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
313
185
 
314
- return parent;
315
- };
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
316
191
 
317
- var isInContainer = function isInContainer(el, container) {
318
- if (isServer || !el || !container) return false;
319
192
 
320
- var elRect = el.getBoundingClientRect();
321
- var containerRect = void 0;
193
+ /***/ }),
322
194
 
323
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
- containerRect = {
325
- top: 0,
326
- right: window.innerWidth,
327
- bottom: window.innerHeight,
328
- left: 0
329
- };
330
- } else {
331
- containerRect = container.getBoundingClientRect();
332
- }
195
+ /***/ 11:
196
+ /***/ (function(module, exports) {
333
197
 
334
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
- };
198
+ module.exports = require("element-ui/lib/mixins/migrating");
336
199
 
337
200
  /***/ }),
338
201
 
339
- /***/ 102:
202
+ /***/ 112:
340
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
204
 
342
205
  "use strict";
@@ -420,14 +283,15 @@ render._withStripped = true
420
283
 
421
284
  // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=template&id=bd056dda
422
285
 
423
- // EXTERNAL MODULE: ./src/utils/dom.js
424
- var dom = __webpack_require__(1);
286
+ // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
287
+ var dom_ = __webpack_require__(2);
425
288
 
426
- // EXTERNAL MODULE: ./src/utils/types.js
427
- var types = __webpack_require__(4);
289
+ // EXTERNAL MODULE: external "element-ui/lib/utils/types"
290
+ var types_ = __webpack_require__(18);
428
291
 
429
- // EXTERNAL MODULE: ./src/mixins/migrating.js
430
- var migrating = __webpack_require__(12);
292
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
293
+ var migrating_ = __webpack_require__(11);
294
+ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
431
295
 
432
296
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=script&lang=js
433
297
 
@@ -438,7 +302,7 @@ var migrating = __webpack_require__(12);
438
302
  /* harmony default export */ var mainvue_type_script_lang_js = ({
439
303
  name: 'ElRate',
440
304
 
441
- mixins: [migrating["a" /* default */]],
305
+ mixins: [migrating_default.a],
442
306
 
443
307
  inject: {
444
308
  elForm: {
@@ -617,13 +481,13 @@ var migrating = __webpack_require__(12);
617
481
  getValueFromMap: function getValueFromMap(value, map) {
618
482
  var matchedKeys = Object.keys(map).filter(function (key) {
619
483
  var val = map[key];
620
- var excluded = Object(types["d" /* isObject */])(val) ? val.excluded : false;
484
+ var excluded = Object(types_["isObject"])(val) ? val.excluded : false;
621
485
  return excluded ? value < key : value <= key;
622
486
  }).sort(function (a, b) {
623
487
  return a - b;
624
488
  });
625
489
  var matchedValue = map[matchedKeys[0]];
626
- return Object(types["d" /* isObject */])(matchedValue) ? matchedValue.value : matchedValue || '';
490
+ return Object(types_["isObject"])(matchedValue) ? matchedValue.value : matchedValue || '';
627
491
  },
628
492
  showDecimalIcon: function showDecimalIcon(item) {
629
493
  var showWhenDisabled = this.rateDisabled && this.valueDecimal > 0 && item - 1 < this.value && item > this.value;
@@ -686,10 +550,10 @@ var migrating = __webpack_require__(12);
686
550
  /* istanbul ignore if */
687
551
  if (this.allowHalf) {
688
552
  var target = event.target;
689
- if (Object(dom["d" /* hasClass */])(target, 'el-rate__item')) {
553
+ if (Object(dom_["hasClass"])(target, 'el-rate__item')) {
690
554
  target = target.querySelector('.el-rate__icon');
691
555
  }
692
- if (Object(dom["d" /* hasClass */])(target, 'el-rate__decimal')) {
556
+ if (Object(dom_["hasClass"])(target, 'el-rate__decimal')) {
693
557
  target = target.parentNode;
694
558
  }
695
559
  this.pointerAtLeftHalf = event.offsetX * 2 <= target.clientWidth;
@@ -720,7 +584,7 @@ var migrating = __webpack_require__(12);
720
584
  // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=script&lang=js
721
585
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
722
586
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
723
- var componentNormalizer = __webpack_require__(2);
587
+ var componentNormalizer = __webpack_require__(0);
724
588
 
725
589
  // CONCATENATED MODULE: ./packages/rate/src/main.vue
726
590
 
@@ -754,524 +618,17 @@ main.install = function (Vue) {
754
618
 
755
619
  /***/ }),
756
620
 
757
- /***/ 12:
758
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
759
-
760
- "use strict";
761
- /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
762
-
763
- /**
764
- * Show migrating guide in browser console.
765
- *
766
- * Usage:
767
- * import Migrating from 'element-ui/src/mixins/migrating';
768
- *
769
- * mixins: [Migrating]
770
- *
771
- * add getMigratingConfig method for your component.
772
- * getMigratingConfig() {
773
- * return {
774
- * props: {
775
- * 'allow-no-selection': 'allow-no-selection is removed.',
776
- * 'selection-mode': 'selection-mode is removed.'
777
- * },
778
- * events: {
779
- * selectionchange: 'selectionchange is renamed to selection-change.'
780
- * }
781
- * };
782
- * },
783
- */
784
- /* harmony default export */ __webpack_exports__["a"] = ({
785
- mounted: function mounted() {
786
- if (true) return;
787
- if (!this.$vnode) return;
788
-
789
- var _getMigratingConfig = this.getMigratingConfig(),
790
- _getMigratingConfig$p = _getMigratingConfig.props,
791
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
792
- _getMigratingConfig$e = _getMigratingConfig.events,
793
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
794
-
795
- var _$vnode = this.$vnode,
796
- data = _$vnode.data,
797
- componentOptions = _$vnode.componentOptions;
798
-
799
- var definedProps = data.attrs || {};
800
- var definedEvents = componentOptions.listeners || {};
801
-
802
- for (var propName in definedProps) {
803
- propName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
804
- if (props[propName]) {
805
- console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
806
- }
807
- }
808
-
809
- for (var eventName in definedEvents) {
810
- eventName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
811
- if (events[eventName]) {
812
- console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
813
- }
814
- }
815
- },
621
+ /***/ 18:
622
+ /***/ (function(module, exports) {
816
623
 
817
- methods: {
818
- getMigratingConfig: function getMigratingConfig() {
819
- return {
820
- props: {},
821
- events: {}
822
- };
823
- }
824
- }
825
- });
624
+ module.exports = require("element-ui/lib/utils/types");
826
625
 
827
626
  /***/ }),
828
627
 
829
628
  /***/ 2:
830
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
831
-
832
- "use strict";
833
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
834
- /* globals __VUE_SSR_CONTEXT__ */
835
-
836
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
837
- // This module is a runtime utility for cleaner component module output and will
838
- // be included in the final webpack user bundle.
839
-
840
- function normalizeComponent(
841
- scriptExports,
842
- render,
843
- staticRenderFns,
844
- functionalTemplate,
845
- injectStyles,
846
- scopeId,
847
- moduleIdentifier /* server only */,
848
- shadowMode /* vue-cli only */
849
- ) {
850
- // Vue.extend constructor export interop
851
- var options =
852
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
853
-
854
- // render functions
855
- if (render) {
856
- options.render = render
857
- options.staticRenderFns = staticRenderFns
858
- options._compiled = true
859
- }
860
-
861
- // functional template
862
- if (functionalTemplate) {
863
- options.functional = true
864
- }
865
-
866
- // scopedId
867
- if (scopeId) {
868
- options._scopeId = 'data-v-' + scopeId
869
- }
870
-
871
- var hook
872
- if (moduleIdentifier) {
873
- // server build
874
- hook = function (context) {
875
- // 2.3 injection
876
- context =
877
- context || // cached call
878
- (this.$vnode && this.$vnode.ssrContext) || // stateful
879
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
880
- // 2.2 with runInNewContext: true
881
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
882
- context = __VUE_SSR_CONTEXT__
883
- }
884
- // inject component styles
885
- if (injectStyles) {
886
- injectStyles.call(this, context)
887
- }
888
- // register component module identifier for async chunk inferrence
889
- if (context && context._registeredComponents) {
890
- context._registeredComponents.add(moduleIdentifier)
891
- }
892
- }
893
- // used by ssr in case component is cached and beforeCreate
894
- // never gets called
895
- options._ssrRegister = hook
896
- } else if (injectStyles) {
897
- hook = shadowMode
898
- ? function () {
899
- injectStyles.call(
900
- this,
901
- (options.functional ? this.parent : this).$root.$options.shadowRoot
902
- )
903
- }
904
- : injectStyles
905
- }
906
-
907
- if (hook) {
908
- if (options.functional) {
909
- // for template-only hot-reload because in that case the render fn doesn't
910
- // go through the normalizer
911
- options._injectStyles = hook
912
- // register for functional component in vue file
913
- var originalRender = options.render
914
- options.render = function renderWithStyleInjection(h, context) {
915
- hook.call(context)
916
- return originalRender(h, context)
917
- }
918
- } else {
919
- // inject component registration as beforeCreate hook
920
- var existing = options.beforeCreate
921
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
922
- }
923
- }
924
-
925
- return {
926
- exports: scriptExports,
927
- options: options
928
- }
929
- }
930
-
931
-
932
- /***/ }),
933
-
934
- /***/ 3:
935
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
936
-
937
- "use strict";
938
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
939
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
940
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
941
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
942
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
943
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
944
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
945
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
946
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
947
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
948
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
949
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
950
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
951
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
952
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
953
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
954
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
955
- /* unused harmony export looseEqual */
956
- /* unused harmony export arrayEquals */
957
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
958
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
959
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
960
- /* unused harmony export objToArray */
961
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
962
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
963
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
964
- /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
965
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
966
-
967
-
968
-
969
-
970
- var hasOwnProperty = Object.prototype.hasOwnProperty;
971
-
972
- function noop() {};
973
-
974
- function hasOwn(obj, key) {
975
- return hasOwnProperty.call(obj, key);
976
- };
977
-
978
- function extend(to, _from) {
979
- for (var key in _from) {
980
- to[key] = _from[key];
981
- }
982
- return to;
983
- };
984
-
985
- function toObject(arr) {
986
- var res = {};
987
- for (var i = 0; i < arr.length; i++) {
988
- if (arr[i]) {
989
- extend(res, arr[i]);
990
- }
991
- }
992
- return res;
993
- };
994
-
995
- var getValueByPath = function getValueByPath(object, prop) {
996
- prop = prop || '';
997
- var paths = prop.split('.');
998
- var current = object;
999
- var result = null;
1000
- for (var i = 0, j = paths.length; i < j; i++) {
1001
- var path = paths[i];
1002
- if (!current) break;
1003
-
1004
- if (i === j - 1) {
1005
- result = current[path];
1006
- break;
1007
- }
1008
- current = current[path];
1009
- }
1010
- return result;
1011
- };
1012
-
1013
- function getPropByPath(obj, path, strict) {
1014
- var tempObj = obj;
1015
- path = path.replace(/\[(\w+)\]/g, '.$1');
1016
- path = path.replace(/^\./, '');
1017
-
1018
- var keyArr = path.split('.');
1019
- var i = 0;
1020
- for (var len = keyArr.length; i < len - 1; ++i) {
1021
- if (!tempObj && !strict) break;
1022
- var key = keyArr[i];
1023
- if (key in tempObj) {
1024
- tempObj = tempObj[key];
1025
- } else {
1026
- if (strict) {
1027
- throw new Error('please transfer a valid prop path to form item!');
1028
- }
1029
- break;
1030
- }
1031
- }
1032
- return {
1033
- o: tempObj,
1034
- k: keyArr[i],
1035
- v: tempObj ? tempObj[keyArr[i]] : null
1036
- };
1037
- };
1038
-
1039
- var generateId = function generateId() {
1040
- return Math.floor(Math.random() * 10000);
1041
- };
1042
-
1043
- var valueEquals = function valueEquals(a, b) {
1044
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
1045
- if (a === b) return true;
1046
- if (!(a instanceof Array)) return false;
1047
- if (!(b instanceof Array)) return false;
1048
- if (a.length !== b.length) return false;
1049
- for (var i = 0; i !== a.length; ++i) {
1050
- if (a[i] !== b[i]) return false;
1051
- }
1052
- return true;
1053
- };
1054
-
1055
- var escapeRegexpString = function escapeRegexpString() {
1056
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1057
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
1058
- };
1059
-
1060
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
1061
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
1062
- for (var i = 0; i !== arr.length; ++i) {
1063
- if (pred(arr[i])) {
1064
- return i;
1065
- }
1066
- }
1067
- return -1;
1068
- };
1069
-
1070
- var arrayFind = function arrayFind(arr, pred) {
1071
- var idx = arrayFindIndex(arr, pred);
1072
- return idx !== -1 ? arr[idx] : undefined;
1073
- };
1074
-
1075
- // coerce truthy value to array
1076
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
1077
- if (Array.isArray(val)) {
1078
- return val;
1079
- } else if (val) {
1080
- return [val];
1081
- } else {
1082
- return [];
1083
- }
1084
- };
1085
-
1086
- var isIE = function isIE() {
1087
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
1088
- };
1089
-
1090
- var isEdge = function isEdge() {
1091
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
1092
- };
1093
-
1094
- var isFirefox = function isFirefox() {
1095
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
1096
- };
1097
-
1098
- var autoprefixer = function autoprefixer(style) {
1099
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
1100
- var rules = ['transform', 'transition', 'animation'];
1101
- var prefixes = ['ms-', 'webkit-'];
1102
- rules.forEach(function (rule) {
1103
- var value = style[rule];
1104
- if (rule && value) {
1105
- prefixes.forEach(function (prefix) {
1106
- style[prefix + rule] = value;
1107
- });
1108
- }
1109
- });
1110
- return style;
1111
- };
1112
-
1113
- var kebabCase = function kebabCase(str) {
1114
- var hyphenateRE = /([^-])([A-Z])/g;
1115
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
1116
- };
1117
-
1118
- var capitalize = function capitalize(str) {
1119
- if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
1120
- return str.charAt(0).toUpperCase() + str.slice(1);
1121
- };
1122
-
1123
- var looseEqual = function looseEqual(a, b) {
1124
- var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
1125
- var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
1126
- if (isObjectA && isObjectB) {
1127
- return JSON.stringify(a) === JSON.stringify(b);
1128
- } else if (!isObjectA && !isObjectB) {
1129
- return String(a) === String(b);
1130
- } else {
1131
- return false;
1132
- }
1133
- };
1134
-
1135
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
1136
- arrayA = arrayA || [];
1137
- arrayB = arrayB || [];
1138
-
1139
- if (arrayA.length !== arrayB.length) {
1140
- return false;
1141
- }
1142
-
1143
- for (var i = 0; i < arrayA.length; i++) {
1144
- if (!looseEqual(arrayA[i], arrayB[i])) {
1145
- return false;
1146
- }
1147
- }
1148
-
1149
- return true;
1150
- };
1151
-
1152
- var isEqual = function isEqual(value1, value2) {
1153
- if (Array.isArray(value1) && Array.isArray(value2)) {
1154
- return arrayEquals(value1, value2);
1155
- }
1156
- return looseEqual(value1, value2);
1157
- };
1158
-
1159
- var isEmpty = function isEmpty(val) {
1160
- // null or undefined
1161
- if (val == null) return true;
1162
-
1163
- if (typeof val === 'boolean') return false;
1164
-
1165
- if (typeof val === 'number') return !val;
1166
-
1167
- if (val instanceof Error) return val.message === '';
1168
-
1169
- switch (Object.prototype.toString.call(val)) {
1170
- // String or Array
1171
- case '[object String]':
1172
- case '[object Array]':
1173
- return !val.length;
1174
-
1175
- // Map or Set or File
1176
- case '[object File]':
1177
- case '[object Map]':
1178
- case '[object Set]':
1179
- {
1180
- return !val.size;
1181
- }
1182
- // Plain Object
1183
- case '[object Object]':
1184
- {
1185
- return !Object.keys(val).length;
1186
- }
1187
- }
1188
-
1189
- return false;
1190
- };
1191
-
1192
- function rafThrottle(fn) {
1193
- var locked = false;
1194
- return function () {
1195
- var _this = this;
1196
-
1197
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1198
- args[_key] = arguments[_key];
1199
- }
1200
-
1201
- if (locked) return;
1202
- locked = true;
1203
- window.requestAnimationFrame(function (_) {
1204
- fn.apply(_this, args);
1205
- locked = false;
1206
- });
1207
- };
1208
- }
1209
-
1210
- function objToArray(obj) {
1211
- if (Array.isArray(obj)) {
1212
- return obj;
1213
- }
1214
- return isEmpty(obj) ? [] : [obj];
1215
- }
1216
-
1217
- var isMac = function isMac() {
1218
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
1219
- };
1220
-
1221
- /***/ }),
1222
-
1223
- /***/ 4:
1224
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1225
-
1226
- "use strict";
1227
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
1228
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
1229
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
1230
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
1231
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
1232
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
1233
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1234
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1235
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1236
-
1237
-
1238
-
1239
- function isString(obj) {
1240
- return Object.prototype.toString.call(obj) === '[object String]';
1241
- }
1242
-
1243
- function isObject(obj) {
1244
- return Object.prototype.toString.call(obj) === '[object Object]';
1245
- }
1246
-
1247
- function isHtmlElement(node) {
1248
- return node && node.nodeType === Node.ELEMENT_NODE;
1249
- }
1250
-
1251
- /**
1252
- * - Inspired:
1253
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
1254
- */
1255
- var isFunction = function isFunction(functionToCheck) {
1256
- var getType = {};
1257
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1258
- };
1259
-
1260
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
1261
- isFunction = function isFunction(obj) {
1262
- return typeof obj === 'function' || false;
1263
- };
1264
- }
1265
-
1266
-
1267
-
1268
- var isUndefined = function isUndefined(val) {
1269
- return val === void 0;
1270
- };
629
+ /***/ (function(module, exports) {
1271
630
 
1272
- var isDefined = function isDefined(val) {
1273
- return val !== undefined && val !== null;
1274
- };
631
+ module.exports = require("element-ui/lib/utils/dom");
1275
632
 
1276
633
  /***/ })
1277
634