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
@@ -82,180 +82,2278 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 64);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 51);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
93
+
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
111
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
112
+ 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; };
113
+
114
+ /* istanbul ignore next */
115
+
116
+
117
+
118
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
119
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
120
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
121
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
122
+
123
+ /* istanbul ignore next */
124
+ var trim = function trim(string) {
125
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
126
+ };
127
+ /* istanbul ignore next */
128
+ var camelCase = function camelCase(name) {
129
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
130
+ return offset ? letter.toUpperCase() : letter;
131
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
132
+ };
133
+
134
+ /* istanbul ignore next */
135
+ var on = function () {
136
+ if (!isServer && document.addEventListener) {
137
+ return function (element, event, handler) {
138
+ if (element && event && handler) {
139
+ element.addEventListener(event, handler, false);
140
+ }
141
+ };
142
+ } else {
143
+ return function (element, event, handler) {
144
+ if (element && event && handler) {
145
+ element.attachEvent('on' + event, handler);
146
+ }
147
+ };
148
+ }
149
+ }();
150
+
151
+ /* istanbul ignore next */
152
+ var off = function () {
153
+ if (!isServer && document.removeEventListener) {
154
+ return function (element, event, handler) {
155
+ if (element && event) {
156
+ element.removeEventListener(event, handler, false);
157
+ }
158
+ };
159
+ } else {
160
+ return function (element, event, handler) {
161
+ if (element && event) {
162
+ element.detachEvent('on' + event, handler);
163
+ }
164
+ };
165
+ }
166
+ }();
167
+
168
+ /* istanbul ignore next */
169
+ var once = function once(el, event, fn) {
170
+ var listener = function listener() {
171
+ if (fn) {
172
+ fn.apply(this, arguments);
173
+ }
174
+ off(el, event, listener);
175
+ };
176
+ on(el, event, listener);
177
+ };
178
+
179
+ /* istanbul ignore next */
180
+ function hasClass(el, cls) {
181
+ if (!el || !cls) return false;
182
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
183
+ if (el.classList) {
184
+ return el.classList.contains(cls);
185
+ } else {
186
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
187
+ }
188
+ };
189
+
190
+ /* istanbul ignore next */
191
+ function addClass(el, cls) {
192
+ if (!el) return;
193
+ var curClass = el.className;
194
+ var classes = (cls || '').split(' ');
195
+
196
+ for (var i = 0, j = classes.length; i < j; i++) {
197
+ var clsName = classes[i];
198
+ if (!clsName) continue;
199
+
200
+ if (el.classList) {
201
+ el.classList.add(clsName);
202
+ } else if (!hasClass(el, clsName)) {
203
+ curClass += ' ' + clsName;
204
+ }
205
+ }
206
+ if (!el.classList) {
207
+ el.setAttribute('class', curClass);
208
+ }
209
+ };
210
+
211
+ /* istanbul ignore next */
212
+ function removeClass(el, cls) {
213
+ if (!el || !cls) return;
214
+ var classes = cls.split(' ');
215
+ var curClass = ' ' + el.className + ' ';
216
+
217
+ for (var i = 0, j = classes.length; i < j; i++) {
218
+ var clsName = classes[i];
219
+ if (!clsName) continue;
220
+
221
+ if (el.classList) {
222
+ el.classList.remove(clsName);
223
+ } else if (hasClass(el, clsName)) {
224
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
225
+ }
226
+ }
227
+ if (!el.classList) {
228
+ el.setAttribute('class', trim(curClass));
229
+ }
230
+ };
231
+
232
+ /* istanbul ignore next */
233
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
234
+ if (isServer) return;
235
+ if (!element || !styleName) return null;
236
+ styleName = camelCase(styleName);
237
+ if (styleName === 'float') {
238
+ styleName = 'styleFloat';
239
+ }
240
+ try {
241
+ switch (styleName) {
242
+ case 'opacity':
243
+ try {
244
+ return element.filters.item('alpha').opacity / 100;
245
+ } catch (e) {
246
+ return 1.0;
247
+ }
248
+ default:
249
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
250
+ }
251
+ } catch (e) {
252
+ return element.style[styleName];
253
+ }
254
+ } : function (element, styleName) {
255
+ if (isServer) return;
256
+ if (!element || !styleName) return null;
257
+ styleName = camelCase(styleName);
258
+ if (styleName === 'float') {
259
+ styleName = 'cssFloat';
260
+ }
261
+ try {
262
+ var computed = document.defaultView.getComputedStyle(element, '');
263
+ return element.style[styleName] || computed ? computed[styleName] : null;
264
+ } catch (e) {
265
+ return element.style[styleName];
266
+ }
267
+ };
268
+
269
+ /* istanbul ignore next */
270
+ function setStyle(element, styleName, value) {
271
+ if (!element || !styleName) return;
272
+
273
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
274
+ for (var prop in styleName) {
275
+ if (styleName.hasOwnProperty(prop)) {
276
+ setStyle(element, prop, styleName[prop]);
277
+ }
278
+ }
279
+ } else {
280
+ styleName = camelCase(styleName);
281
+ if (styleName === 'opacity' && ieVersion < 9) {
282
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
283
+ } else {
284
+ element.style[styleName] = value;
285
+ }
286
+ }
287
+ };
288
+
289
+ var isScroll = function isScroll(el, vertical) {
290
+ if (isServer) return;
291
+
292
+ var determinedDirection = vertical !== null && vertical !== undefined;
293
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
294
+
295
+ return overflow.match(/(scroll|auto|overlay)/);
296
+ };
297
+
298
+ var getScrollContainer = function getScrollContainer(el, vertical) {
299
+ if (isServer) return;
300
+
301
+ var parent = el;
302
+ while (parent) {
303
+ if ([window, document, document.documentElement].includes(parent)) {
304
+ return window;
305
+ }
306
+ if (isScroll(parent, vertical)) {
307
+ return parent;
308
+ }
309
+ parent = parent.parentNode;
310
+ }
311
+
312
+ return parent;
313
+ };
314
+
315
+ var isInContainer = function isInContainer(el, container) {
316
+ if (isServer || !el || !container) return false;
317
+
318
+ var elRect = el.getBoundingClientRect();
319
+ var containerRect = void 0;
320
+
321
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
322
+ containerRect = {
323
+ top: 0,
324
+ right: window.innerWidth,
325
+ bottom: window.innerHeight,
326
+ left: 0
327
+ };
328
+ } else {
329
+ containerRect = container.getBoundingClientRect();
330
+ }
331
+
332
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
333
+ };
334
+
335
+ /***/ }),
336
+ /* 2 */
337
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
338
+
339
+ "use strict";
340
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
341
+ /* globals __VUE_SSR_CONTEXT__ */
342
+
343
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
344
+ // This module is a runtime utility for cleaner component module output and will
345
+ // be included in the final webpack user bundle.
346
+
347
+ function normalizeComponent(
348
+ scriptExports,
349
+ render,
350
+ staticRenderFns,
351
+ functionalTemplate,
352
+ injectStyles,
353
+ scopeId,
354
+ moduleIdentifier /* server only */,
355
+ shadowMode /* vue-cli only */
356
+ ) {
357
+ // Vue.extend constructor export interop
358
+ var options =
359
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
360
+
361
+ // render functions
362
+ if (render) {
363
+ options.render = render
364
+ options.staticRenderFns = staticRenderFns
365
+ options._compiled = true
366
+ }
367
+
368
+ // functional template
369
+ if (functionalTemplate) {
370
+ options.functional = true
371
+ }
372
+
373
+ // scopedId
374
+ if (scopeId) {
375
+ options._scopeId = 'data-v-' + scopeId
376
+ }
377
+
378
+ var hook
379
+ if (moduleIdentifier) {
380
+ // server build
381
+ hook = function (context) {
382
+ // 2.3 injection
383
+ context =
384
+ context || // cached call
385
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
386
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
387
+ // 2.2 with runInNewContext: true
388
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
389
+ context = __VUE_SSR_CONTEXT__
390
+ }
391
+ // inject component styles
392
+ if (injectStyles) {
393
+ injectStyles.call(this, context)
394
+ }
395
+ // register component module identifier for async chunk inferrence
396
+ if (context && context._registeredComponents) {
397
+ context._registeredComponents.add(moduleIdentifier)
398
+ }
399
+ }
400
+ // used by ssr in case component is cached and beforeCreate
401
+ // never gets called
402
+ options._ssrRegister = hook
403
+ } else if (injectStyles) {
404
+ hook = shadowMode
405
+ ? function () {
406
+ injectStyles.call(
407
+ this,
408
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
409
+ )
410
+ }
411
+ : injectStyles
412
+ }
413
+
414
+ if (hook) {
415
+ if (options.functional) {
416
+ // for template-only hot-reload because in that case the render fn doesn't
417
+ // go through the normalizer
418
+ options._injectStyles = hook
419
+ // register for functional component in vue file
420
+ var originalRender = options.render
421
+ options.render = function renderWithStyleInjection(h, context) {
422
+ hook.call(context)
423
+ return originalRender(h, context)
424
+ }
425
+ } else {
426
+ // inject component registration as beforeCreate hook
427
+ var existing = options.beforeCreate
428
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
429
+ }
430
+ }
431
+
432
+ return {
433
+ exports: scriptExports,
434
+ options: options
435
+ }
436
+ }
437
+
438
+
439
+ /***/ }),
440
+ /* 3 */
441
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
442
+
443
+ "use strict";
444
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
445
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
446
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
447
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
448
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
449
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
450
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
451
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
452
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
453
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
454
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
455
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
456
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
461
+ /* unused harmony export looseEqual */
462
+ /* unused harmony export arrayEquals */
463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
466
+ /* unused harmony export objToArray */
467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
468
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
469
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
470
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
471
+ 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; };
472
+
473
+
474
+
475
+
476
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
477
+
478
+ function noop() {};
479
+
480
+ function hasOwn(obj, key) {
481
+ return hasOwnProperty.call(obj, key);
482
+ };
483
+
484
+ function extend(to, _from) {
485
+ for (var key in _from) {
486
+ to[key] = _from[key];
487
+ }
488
+ return to;
489
+ };
490
+
491
+ function toObject(arr) {
492
+ var res = {};
493
+ for (var i = 0; i < arr.length; i++) {
494
+ if (arr[i]) {
495
+ extend(res, arr[i]);
496
+ }
497
+ }
498
+ return res;
499
+ };
500
+
501
+ var getValueByPath = function getValueByPath(object, prop) {
502
+ prop = prop || '';
503
+ var paths = prop.split('.');
504
+ var current = object;
505
+ var result = null;
506
+ for (var i = 0, j = paths.length; i < j; i++) {
507
+ var path = paths[i];
508
+ if (!current) break;
509
+
510
+ if (i === j - 1) {
511
+ result = current[path];
512
+ break;
513
+ }
514
+ current = current[path];
515
+ }
516
+ return result;
517
+ };
518
+
519
+ function getPropByPath(obj, path, strict) {
520
+ var tempObj = obj;
521
+ path = path.replace(/\[(\w+)\]/g, '.$1');
522
+ path = path.replace(/^\./, '');
523
+
524
+ var keyArr = path.split('.');
525
+ var i = 0;
526
+ for (var len = keyArr.length; i < len - 1; ++i) {
527
+ if (!tempObj && !strict) break;
528
+ var key = keyArr[i];
529
+ if (key in tempObj) {
530
+ tempObj = tempObj[key];
531
+ } else {
532
+ if (strict) {
533
+ throw new Error('please transfer a valid prop path to form item!');
534
+ }
535
+ break;
536
+ }
537
+ }
538
+ return {
539
+ o: tempObj,
540
+ k: keyArr[i],
541
+ v: tempObj ? tempObj[keyArr[i]] : null
542
+ };
543
+ };
544
+
545
+ var generateId = function generateId() {
546
+ return Math.floor(Math.random() * 10000);
547
+ };
548
+
549
+ var valueEquals = function valueEquals(a, b) {
550
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
551
+ if (a === b) return true;
552
+ if (!(a instanceof Array)) return false;
553
+ if (!(b instanceof Array)) return false;
554
+ if (a.length !== b.length) return false;
555
+ for (var i = 0; i !== a.length; ++i) {
556
+ if (a[i] !== b[i]) return false;
557
+ }
558
+ return true;
559
+ };
560
+
561
+ var escapeRegexpString = function escapeRegexpString() {
562
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
563
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
564
+ };
565
+
566
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
567
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
568
+ for (var i = 0; i !== arr.length; ++i) {
569
+ if (pred(arr[i])) {
570
+ return i;
571
+ }
572
+ }
573
+ return -1;
574
+ };
575
+
576
+ var arrayFind = function arrayFind(arr, pred) {
577
+ var idx = arrayFindIndex(arr, pred);
578
+ return idx !== -1 ? arr[idx] : undefined;
579
+ };
580
+
581
+ // coerce truthy value to array
582
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
583
+ if (Array.isArray(val)) {
584
+ return val;
585
+ } else if (val) {
586
+ return [val];
587
+ } else {
588
+ return [];
589
+ }
590
+ };
591
+
592
+ var isIE = function isIE() {
593
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
594
+ };
595
+
596
+ var isEdge = function isEdge() {
597
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
598
+ };
599
+
600
+ var isFirefox = function isFirefox() {
601
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
602
+ };
603
+
604
+ var autoprefixer = function autoprefixer(style) {
605
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
606
+ var rules = ['transform', 'transition', 'animation'];
607
+ var prefixes = ['ms-', 'webkit-'];
608
+ rules.forEach(function (rule) {
609
+ var value = style[rule];
610
+ if (rule && value) {
611
+ prefixes.forEach(function (prefix) {
612
+ style[prefix + rule] = value;
613
+ });
614
+ }
615
+ });
616
+ return style;
617
+ };
618
+
619
+ var kebabCase = function kebabCase(str) {
620
+ var hyphenateRE = /([^-])([A-Z])/g;
621
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
622
+ };
623
+
624
+ var capitalize = function capitalize(str) {
625
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
626
+ return str.charAt(0).toUpperCase() + str.slice(1);
627
+ };
628
+
629
+ var looseEqual = function looseEqual(a, b) {
630
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
631
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
632
+ if (isObjectA && isObjectB) {
633
+ return JSON.stringify(a) === JSON.stringify(b);
634
+ } else if (!isObjectA && !isObjectB) {
635
+ return String(a) === String(b);
636
+ } else {
637
+ return false;
638
+ }
639
+ };
640
+
641
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
642
+ arrayA = arrayA || [];
643
+ arrayB = arrayB || [];
644
+
645
+ if (arrayA.length !== arrayB.length) {
646
+ return false;
647
+ }
648
+
649
+ for (var i = 0; i < arrayA.length; i++) {
650
+ if (!looseEqual(arrayA[i], arrayB[i])) {
651
+ return false;
652
+ }
653
+ }
654
+
655
+ return true;
656
+ };
657
+
658
+ var isEqual = function isEqual(value1, value2) {
659
+ if (Array.isArray(value1) && Array.isArray(value2)) {
660
+ return arrayEquals(value1, value2);
661
+ }
662
+ return looseEqual(value1, value2);
663
+ };
664
+
665
+ var isEmpty = function isEmpty(val) {
666
+ // null or undefined
667
+ if (val == null) return true;
668
+
669
+ if (typeof val === 'boolean') return false;
670
+
671
+ if (typeof val === 'number') return !val;
672
+
673
+ if (val instanceof Error) return val.message === '';
674
+
675
+ switch (Object.prototype.toString.call(val)) {
676
+ // String or Array
677
+ case '[object String]':
678
+ case '[object Array]':
679
+ return !val.length;
680
+
681
+ // Map or Set or File
682
+ case '[object File]':
683
+ case '[object Map]':
684
+ case '[object Set]':
685
+ {
686
+ return !val.size;
687
+ }
688
+ // Plain Object
689
+ case '[object Object]':
690
+ {
691
+ return !Object.keys(val).length;
692
+ }
693
+ }
694
+
695
+ return false;
696
+ };
697
+
698
+ function rafThrottle(fn) {
699
+ var locked = false;
700
+ return function () {
701
+ var _this = this;
702
+
703
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
704
+ args[_key] = arguments[_key];
705
+ }
706
+
707
+ if (locked) return;
708
+ locked = true;
709
+ window.requestAnimationFrame(function (_) {
710
+ fn.apply(_this, args);
711
+ locked = false;
712
+ });
713
+ };
714
+ }
715
+
716
+ function objToArray(obj) {
717
+ if (Array.isArray(obj)) {
718
+ return obj;
719
+ }
720
+ return isEmpty(obj) ? [] : [obj];
721
+ }
722
+
723
+ var isMac = function isMac() {
724
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
725
+ };
726
+
727
+ /***/ }),
728
+ /* 4 */
729
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
730
+
731
+ "use strict";
732
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
733
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
734
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
735
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
736
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
737
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
738
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
739
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
740
+ 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; };
741
+
742
+
743
+
744
+ function isString(obj) {
745
+ return Object.prototype.toString.call(obj) === '[object String]';
746
+ }
747
+
748
+ function isObject(obj) {
749
+ return Object.prototype.toString.call(obj) === '[object Object]';
750
+ }
751
+
752
+ function isHtmlElement(node) {
753
+ return node && node.nodeType === Node.ELEMENT_NODE;
754
+ }
755
+
756
+ /**
757
+ * - Inspired:
758
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
759
+ */
760
+ var isFunction = function isFunction(functionToCheck) {
761
+ var getType = {};
762
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
763
+ };
764
+
765
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
766
+ isFunction = function isFunction(obj) {
767
+ return typeof obj === 'function' || false;
768
+ };
769
+ }
770
+
771
+
772
+
773
+ var isUndefined = function isUndefined(val) {
774
+ return val === void 0;
775
+ };
776
+
777
+ var isDefined = function isDefined(val) {
778
+ return val !== undefined && val !== null;
779
+ };
780
+
781
+ /***/ }),
782
+ /* 5 */,
783
+ /* 6 */
784
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
785
+
786
+ "use strict";
787
+ function _broadcast(componentName, eventName, params) {
788
+ this.$children.forEach(function (child) {
789
+ var name = child.$options.componentName;
790
+
791
+ if (name === componentName) {
792
+ child.$emit.apply(child, [eventName].concat(params));
793
+ } else {
794
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
795
+ }
796
+ });
797
+ }
798
+ /* harmony default export */ __webpack_exports__["a"] = ({
799
+ methods: {
800
+ dispatch: function dispatch(componentName, eventName, params) {
801
+ var parent = this.$parent || this.$root;
802
+ var name = parent.$options.componentName;
803
+
804
+ while (parent && (!name || name !== componentName)) {
805
+ parent = parent.$parent;
806
+
807
+ if (parent) {
808
+ name = parent.$options.componentName;
809
+ }
810
+ }
811
+ if (parent) {
812
+ parent.$emit.apply(parent, [eventName].concat(params));
813
+ }
814
+ },
815
+ broadcast: function broadcast(componentName, eventName, params) {
816
+ _broadcast.call(this, componentName, eventName, params);
817
+ }
818
+ }
819
+ });
820
+
821
+ /***/ }),
822
+ /* 7 */
823
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
824
+
825
+ "use strict";
826
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
827
+ for (var i = 1, j = arguments.length; i < j; i++) {
828
+ var source = arguments[i] || {};
829
+ for (var prop in source) {
830
+ if (source.hasOwnProperty(prop)) {
831
+ var value = source[prop];
832
+ if (value !== undefined) {
833
+ target[prop] = value;
834
+ }
835
+ }
836
+ }
837
+ }
838
+
839
+ return target;
840
+ });;
841
+
842
+ /***/ }),
843
+ /* 8 */
844
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
845
+
846
+ "use strict";
847
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
848
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
849
+
850
+
851
+ var scrollBarWidth = void 0;
852
+
853
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
854
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
855
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
856
+
857
+ var outer = document.createElement('div');
858
+ outer.className = 'el-scrollbar__wrap';
859
+ outer.style.visibility = 'hidden';
860
+ outer.style.width = '100px';
861
+ outer.style.position = 'absolute';
862
+ outer.style.top = '-9999px';
863
+ document.body.appendChild(outer);
864
+
865
+ var widthNoScroll = outer.offsetWidth;
866
+ outer.style.overflow = 'scroll';
867
+
868
+ var inner = document.createElement('div');
869
+ inner.style.width = '100%';
870
+ outer.appendChild(inner);
871
+
872
+ var widthWithScroll = inner.offsetWidth;
873
+ outer.parentNode.removeChild(outer);
874
+ scrollBarWidth = widthNoScroll - widthWithScroll;
875
+
876
+ return scrollBarWidth;
877
+ });;
878
+
879
+ /***/ }),
880
+ /* 9 */,
881
+ /* 10 */,
882
+ /* 11 */
883
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
884
+
885
+ "use strict";
886
+
887
+ // EXPORTS
888
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
889
+
890
+ // UNUSED EXPORTS: use, i18n
891
+
892
+ // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
893
+ /* harmony default export */ var zh_CN = ({
894
+ el: {
895
+ colorpicker: {
896
+ confirm: '确定',
897
+ clear: '清空'
898
+ },
899
+ datepicker: {
900
+ now: '此刻',
901
+ today: '今天',
902
+ cancel: '取消',
903
+ clear: '清空',
904
+ confirm: '确定',
905
+ selectDate: '选择日期',
906
+ selectTime: '选择时间',
907
+ startDate: '开始日期',
908
+ startTime: '开始时间',
909
+ endDate: '结束日期',
910
+ endTime: '结束时间',
911
+ prevYear: '前一年',
912
+ nextYear: '后一年',
913
+ prevMonth: '上个月',
914
+ nextMonth: '下个月',
915
+ year: '年',
916
+ month1: '1 月',
917
+ month2: '2 月',
918
+ month3: '3 月',
919
+ month4: '4 月',
920
+ month5: '5 月',
921
+ month6: '6 月',
922
+ month7: '7 月',
923
+ month8: '8 月',
924
+ month9: '9 月',
925
+ month10: '10 月',
926
+ month11: '11 月',
927
+ month12: '12 月',
928
+ // week: '周次',
929
+ weeks: {
930
+ sun: '日',
931
+ mon: '一',
932
+ tue: '二',
933
+ wed: '三',
934
+ thu: '四',
935
+ fri: '五',
936
+ sat: '六'
937
+ },
938
+ months: {
939
+ jan: '一月',
940
+ feb: '二月',
941
+ mar: '三月',
942
+ apr: '四月',
943
+ may: '五月',
944
+ jun: '六月',
945
+ jul: '七月',
946
+ aug: '八月',
947
+ sep: '九月',
948
+ oct: '十月',
949
+ nov: '十一月',
950
+ dec: '十二月'
951
+ }
952
+ },
953
+ select: {
954
+ loading: '加载中',
955
+ noMatch: '无匹配数据',
956
+ noData: '无数据',
957
+ placeholder: '请选择'
958
+ },
959
+ cascader: {
960
+ noMatch: '无匹配数据',
961
+ loading: '加载中',
962
+ placeholder: '请选择',
963
+ noData: '暂无数据'
964
+ },
965
+ pagination: {
966
+ goto: '前往',
967
+ pagesize: '条/页',
968
+ total: '共 {total} 条',
969
+ pageClassifier: '页'
970
+ },
971
+ messagebox: {
972
+ title: '提示',
973
+ confirm: '确定',
974
+ cancel: '取消',
975
+ error: '输入的数据不合法!'
976
+ },
977
+ upload: {
978
+ deleteTip: '按 delete 键可删除',
979
+ delete: '删除',
980
+ preview: '查看图片',
981
+ continue: '继续上传'
982
+ },
983
+ table: {
984
+ emptyText: '暂无数据',
985
+ confirmFilter: '筛选',
986
+ resetFilter: '重置',
987
+ clearFilter: '全部',
988
+ sumText: '合计'
989
+ },
990
+ tree: {
991
+ emptyText: '暂无数据'
992
+ },
993
+ transfer: {
994
+ noMatch: '无匹配数据',
995
+ noData: '无数据',
996
+ titles: ['列表 1', '列表 2'],
997
+ filterPlaceholder: '请输入搜索内容',
998
+ noCheckedFormat: '共 {total} 项',
999
+ hasCheckedFormat: '已选 {checked}/{total} 项'
1000
+ },
1001
+ image: {
1002
+ error: '加载失败'
1003
+ },
1004
+ pageHeader: {
1005
+ title: '返回'
1006
+ },
1007
+ popconfirm: {
1008
+ confirmButtonText: '确定',
1009
+ cancelButtonText: '取消'
1010
+ },
1011
+ empty: {
1012
+ description: '暂无数据'
1013
+ }
1014
+ }
1015
+ });
1016
+ // EXTERNAL MODULE: external "vue"
1017
+ var external_vue_ = __webpack_require__(0);
1018
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1019
+
1020
+ // EXTERNAL MODULE: external "deepmerge"
1021
+ var external_deepmerge_ = __webpack_require__(15);
1022
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
1023
+
1024
+ // EXTERNAL MODULE: ./src/utils/util.js
1025
+ var util = __webpack_require__(3);
1026
+
1027
+ // CONCATENATED MODULE: ./src/locale/format.js
1028
+ 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; };
1029
+
1030
+
1031
+
1032
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1033
+ /**
1034
+ * String format template
1035
+ * - Inspired:
1036
+ * https://github.com/Matt-Esch/string-template/index.js
1037
+ */
1038
+ /* harmony default export */ var format = (function (Vue) {
1039
+ /**
1040
+ * template
1041
+ *
1042
+ * @param {String} string
1043
+ * @param {Array} ...args
1044
+ * @return {String}
1045
+ */
1046
+
1047
+ function template(string) {
1048
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1049
+ args[_key - 1] = arguments[_key];
1050
+ }
1051
+
1052
+ if (args.length === 1 && _typeof(args[0]) === 'object') {
1053
+ args = args[0];
1054
+ }
1055
+
1056
+ if (!args || !args.hasOwnProperty) {
1057
+ args = {};
1058
+ }
1059
+
1060
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
1061
+ var result = void 0;
1062
+
1063
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
1064
+ return i;
1065
+ } else {
1066
+ result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
1067
+ if (result === null || result === undefined) {
1068
+ return '';
1069
+ }
1070
+
1071
+ return result;
1072
+ }
1073
+ });
1074
+ }
1075
+
1076
+ return template;
1077
+ });
1078
+ // CONCATENATED MODULE: ./src/locale/index.js
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ var locale_format = format(external_vue_default.a);
1085
+ var lang = zh_CN;
1086
+ var merged = false;
1087
+ var locale_i18nHandler = function i18nHandler() {
1088
+ var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
1089
+ if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
1090
+ if (!merged) {
1091
+ merged = true;
1092
+ external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
1093
+ }
1094
+ return vuei18n.apply(this, arguments);
1095
+ }
1096
+ };
1097
+
1098
+ var t = function t(path, options) {
1099
+ var value = locale_i18nHandler.apply(this, arguments);
1100
+ if (value !== null && value !== undefined) return value;
1101
+
1102
+ var array = path.split('.');
1103
+ var current = lang;
1104
+
1105
+ for (var i = 0, j = array.length; i < j; i++) {
1106
+ var property = array[i];
1107
+ value = current[property];
1108
+ if (i === j - 1) return locale_format(value, options);
1109
+ if (!value) return '';
1110
+ current = value;
1111
+ }
1112
+ return '';
1113
+ };
1114
+
1115
+ var use = function use(l) {
1116
+ lang = l || lang;
1117
+ };
1118
+
1119
+ var i18n = function i18n(fn) {
1120
+ locale_i18nHandler = fn || locale_i18nHandler;
1121
+ };
1122
+
1123
+ /* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
1124
+
1125
+ /***/ }),
1126
+ /* 12 */,
1127
+ /* 13 */
1128
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1129
+
1130
+ "use strict";
1131
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11);
1132
+
1133
+
1134
+ /* harmony default export */ __webpack_exports__["a"] = ({
1135
+ methods: {
1136
+ t: function t() {
1137
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1138
+ args[_key] = arguments[_key];
1139
+ }
1140
+
1141
+ return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
1142
+ }
1143
+ }
1144
+ });
1145
+
1146
+ /***/ }),
1147
+ /* 14 */
1148
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1149
+
1150
+ "use strict";
1151
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addResizeListener; });
1152
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeResizeListener; });
1153
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20);
1154
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__);
1155
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
1156
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__);
1157
+
1158
+
1159
+
1160
+ var isServer = typeof window === 'undefined';
1161
+
1162
+ /* istanbul ignore next */
1163
+ var resizeHandler = function resizeHandler(entries) {
1164
+ for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
1165
+ var _ref;
1166
+
1167
+ if (_isArray) {
1168
+ if (_i >= _iterator.length) break;
1169
+ _ref = _iterator[_i++];
1170
+ } else {
1171
+ _i = _iterator.next();
1172
+ if (_i.done) break;
1173
+ _ref = _i.value;
1174
+ }
1175
+
1176
+ var entry = _ref;
1177
+
1178
+ var listeners = entry.target.__resizeListeners__ || [];
1179
+ if (listeners.length) {
1180
+ listeners.forEach(function (fn) {
1181
+ fn();
1182
+ });
1183
+ }
1184
+ }
1185
+ };
1186
+
1187
+ /* istanbul ignore next */
1188
+ var addResizeListener = function addResizeListener(element, fn) {
1189
+ if (isServer) return;
1190
+ if (!element.__resizeListeners__) {
1191
+ element.__resizeListeners__ = [];
1192
+ element.__ro__ = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0___default.a(Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__["debounce"])(16, resizeHandler));
1193
+ element.__ro__.observe(element);
1194
+ }
1195
+ element.__resizeListeners__.push(fn);
1196
+ };
1197
+
1198
+ /* istanbul ignore next */
1199
+ var removeResizeListener = function removeResizeListener(element, fn) {
1200
+ if (!element || !element.__resizeListeners__) return;
1201
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
1202
+ if (!element.__resizeListeners__.length) {
1203
+ element.__ro__.disconnect();
1204
+ }
1205
+ };
1206
+
1207
+ /***/ }),
1208
+ /* 15 */
1209
+ /***/ (function(module, exports) {
1210
+
1211
+ module.exports = require("deepmerge");
1212
+
1213
+ /***/ }),
1214
+ /* 16 */
1215
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1216
+
1217
+ "use strict";
1218
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDef; });
1219
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isKorean; });
1220
+ function isDef(val) {
1221
+ return val !== undefined && val !== null;
1222
+ }
1223
+ function isKorean(text) {
1224
+ var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
1225
+ return reg.test(text);
1226
+ }
1227
+
1228
+ /***/ }),
1229
+ /* 17 */,
1230
+ /* 18 */,
1231
+ /* 19 */
1232
+ /***/ (function(module, exports) {
1233
+
1234
+ module.exports = require("throttle-debounce");
1235
+
1236
+ /***/ }),
1237
+ /* 20 */
1238
+ /***/ (function(module, exports) {
1239
+
1240
+ module.exports = require("resize-observer-polyfill");
1241
+
1242
+ /***/ }),
1243
+ /* 21 */,
1244
+ /* 22 */,
1245
+ /* 23 */,
1246
+ /* 24 */,
1247
+ /* 25 */
1248
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1249
+
1250
+ "use strict";
1251
+ // ESM COMPAT FLAG
1252
+ __webpack_require__.r(__webpack_exports__);
1253
+
1254
+ // EXTERNAL MODULE: ./src/utils/resize-event.js
1255
+ var resize_event = __webpack_require__(14);
1256
+
1257
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1258
+ var scrollbar_width = __webpack_require__(8);
1259
+
1260
+ // EXTERNAL MODULE: ./src/utils/util.js
1261
+ var util = __webpack_require__(3);
1262
+
1263
+ // EXTERNAL MODULE: ./src/utils/dom.js
1264
+ var dom = __webpack_require__(1);
1265
+
1266
+ // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
1267
+ var BAR_MAP = {
1268
+ vertical: {
1269
+ offset: 'offsetHeight',
1270
+ scroll: 'scrollTop',
1271
+ scrollSize: 'scrollHeight',
1272
+ size: 'height',
1273
+ key: 'vertical',
1274
+ axis: 'Y',
1275
+ client: 'clientY',
1276
+ direction: 'top'
1277
+ },
1278
+ horizontal: {
1279
+ offset: 'offsetWidth',
1280
+ scroll: 'scrollLeft',
1281
+ scrollSize: 'scrollWidth',
1282
+ size: 'width',
1283
+ key: 'horizontal',
1284
+ axis: 'X',
1285
+ client: 'clientX',
1286
+ direction: 'left'
1287
+ }
1288
+ };
1289
+
1290
+ function renderThumbStyle(_ref) {
1291
+ var move = _ref.move,
1292
+ size = _ref.size,
1293
+ bar = _ref.bar;
1294
+
1295
+ var style = {};
1296
+ var translate = 'translate' + bar.axis + '(' + move + '%)';
1297
+
1298
+ style[bar.size] = size;
1299
+ style.transform = translate;
1300
+ style.msTransform = translate;
1301
+ style.webkitTransform = translate;
1302
+
1303
+ return style;
1304
+ };
1305
+ // CONCATENATED MODULE: ./packages/scrollbar/src/bar.js
1306
+
1307
+
1308
+
1309
+ /* istanbul ignore next */
1310
+ /* harmony default export */ var src_bar = ({
1311
+ name: 'Bar',
1312
+
1313
+ props: {
1314
+ vertical: Boolean,
1315
+ size: String,
1316
+ move: Number
1317
+ },
1318
+
1319
+ computed: {
1320
+ bar: function bar() {
1321
+ return BAR_MAP[this.vertical ? 'vertical' : 'horizontal'];
1322
+ },
1323
+ wrap: function wrap() {
1324
+ return this.$parent.wrap;
1325
+ }
1326
+ },
1327
+
1328
+ render: function render(h) {
1329
+ var size = this.size,
1330
+ move = this.move,
1331
+ bar = this.bar;
1332
+
1333
+
1334
+ return h(
1335
+ 'div',
1336
+ {
1337
+ 'class': ['el-scrollbar__bar', 'is-' + bar.key],
1338
+ on: {
1339
+ 'mousedown': this.clickTrackHandler
1340
+ }
1341
+ },
1342
+ [h('div', {
1343
+ ref: 'thumb',
1344
+ 'class': 'el-scrollbar__thumb',
1345
+ on: {
1346
+ 'mousedown': this.clickThumbHandler
1347
+ },
1348
+
1349
+ style: renderThumbStyle({ size: size, move: move, bar: bar }) })]
1350
+ );
1351
+ },
1352
+
1353
+
1354
+ methods: {
1355
+ clickThumbHandler: function clickThumbHandler(e) {
1356
+ // prevent click event of right button
1357
+ if (e.ctrlKey || e.button === 2) {
1358
+ return;
1359
+ }
1360
+ this.startDrag(e);
1361
+ this[this.bar.axis] = e.currentTarget[this.bar.offset] - (e[this.bar.client] - e.currentTarget.getBoundingClientRect()[this.bar.direction]);
1362
+ },
1363
+ clickTrackHandler: function clickTrackHandler(e) {
1364
+ var offset = Math.abs(e.target.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]);
1365
+ var thumbHalf = this.$refs.thumb[this.bar.offset] / 2;
1366
+ var thumbPositionPercentage = (offset - thumbHalf) * 100 / this.$el[this.bar.offset];
1367
+
1368
+ this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
1369
+ },
1370
+ startDrag: function startDrag(e) {
1371
+ e.stopImmediatePropagation();
1372
+ this.cursorDown = true;
1373
+
1374
+ Object(dom["g" /* on */])(document, 'mousemove', this.mouseMoveDocumentHandler);
1375
+ Object(dom["g" /* on */])(document, 'mouseup', this.mouseUpDocumentHandler);
1376
+ document.onselectstart = function () {
1377
+ return false;
1378
+ };
1379
+ },
1380
+ mouseMoveDocumentHandler: function mouseMoveDocumentHandler(e) {
1381
+ if (this.cursorDown === false) return;
1382
+ var prevPage = this[this.bar.axis];
1383
+
1384
+ if (!prevPage) return;
1385
+
1386
+ var offset = (this.$el.getBoundingClientRect()[this.bar.direction] - e[this.bar.client]) * -1;
1387
+ var thumbClickPosition = this.$refs.thumb[this.bar.offset] - prevPage;
1388
+ var thumbPositionPercentage = (offset - thumbClickPosition) * 100 / this.$el[this.bar.offset];
1389
+
1390
+ this.wrap[this.bar.scroll] = thumbPositionPercentage * this.wrap[this.bar.scrollSize] / 100;
1391
+ },
1392
+ mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
1393
+ this.cursorDown = false;
1394
+ this[this.bar.axis] = 0;
1395
+ Object(dom["f" /* off */])(document, 'mousemove', this.mouseMoveDocumentHandler);
1396
+ document.onselectstart = null;
1397
+ }
1398
+ },
1399
+
1400
+ destroyed: function destroyed() {
1401
+ Object(dom["f" /* off */])(document, 'mouseup', this.mouseUpDocumentHandler);
1402
+ }
1403
+ });
1404
+ // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
1405
+ // reference https://github.com/noeldelgado/gemini-scrollbar/blob/master/index.js
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ /* istanbul ignore next */
1413
+ /* harmony default export */ var main = ({
1414
+ name: 'ElScrollbar',
1415
+
1416
+ components: { Bar: src_bar },
1417
+
1418
+ props: {
1419
+ native: Boolean,
1420
+ wrapStyle: {},
1421
+ wrapClass: {},
1422
+ viewClass: {},
1423
+ viewStyle: {},
1424
+ noresize: Boolean, // 如果 container 尺寸不会发生变化,最好设置它可以优化性能
1425
+ tag: {
1426
+ type: String,
1427
+ default: 'div'
1428
+ }
1429
+ },
1430
+
1431
+ data: function data() {
1432
+ return {
1433
+ sizeWidth: '0',
1434
+ sizeHeight: '0',
1435
+ moveX: 0,
1436
+ moveY: 0
1437
+ };
1438
+ },
1439
+
1440
+
1441
+ computed: {
1442
+ wrap: function wrap() {
1443
+ return this.$refs.wrap;
1444
+ }
1445
+ },
1446
+
1447
+ render: function render(h) {
1448
+ var gutter = Object(scrollbar_width["a" /* default */])();
1449
+ var style = this.wrapStyle;
1450
+
1451
+ if (gutter) {
1452
+ var gutterWith = '-' + gutter + 'px';
1453
+ var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
1454
+
1455
+ if (Array.isArray(this.wrapStyle)) {
1456
+ style = Object(util["t" /* toObject */])(this.wrapStyle);
1457
+ style.marginRight = style.marginBottom = gutterWith;
1458
+ } else if (typeof this.wrapStyle === 'string') {
1459
+ style += gutterStyle;
1460
+ } else {
1461
+ style = gutterStyle;
1462
+ }
1463
+ }
1464
+ var view = h(this.tag, {
1465
+ class: ['el-scrollbar__view', this.viewClass],
1466
+ style: this.viewStyle,
1467
+ ref: 'resize'
1468
+ }, this.$slots.default);
1469
+ var wrap = h(
1470
+ 'div',
1471
+ {
1472
+ ref: 'wrap',
1473
+ style: style,
1474
+ on: {
1475
+ 'scroll': this.handleScroll
1476
+ },
1477
+
1478
+ 'class': [this.wrapClass, 'el-scrollbar__wrap', gutter ? '' : 'el-scrollbar__wrap--hidden-default'] },
1479
+ [[view]]
1480
+ );
1481
+ var nodes = void 0;
1482
+
1483
+ if (!this.native) {
1484
+ nodes = [wrap, h(src_bar, {
1485
+ attrs: {
1486
+ move: this.moveX,
1487
+ size: this.sizeWidth }
1488
+ }), h(src_bar, {
1489
+ attrs: {
1490
+ vertical: true,
1491
+ move: this.moveY,
1492
+ size: this.sizeHeight }
1493
+ })];
1494
+ } else {
1495
+ nodes = [h(
1496
+ 'div',
1497
+ {
1498
+ ref: 'wrap',
1499
+ 'class': [this.wrapClass, 'el-scrollbar__wrap'],
1500
+ style: style },
1501
+ [[view]]
1502
+ )];
1503
+ }
1504
+ return h('div', { class: 'el-scrollbar' }, nodes);
1505
+ },
1506
+
1507
+
1508
+ methods: {
1509
+ handleScroll: function handleScroll() {
1510
+ var wrap = this.wrap;
1511
+
1512
+ this.moveY = wrap.scrollTop * 100 / wrap.clientHeight;
1513
+ this.moveX = wrap.scrollLeft * 100 / wrap.clientWidth;
1514
+ },
1515
+ update: function update() {
1516
+ var heightPercentage = void 0,
1517
+ widthPercentage = void 0;
1518
+ var wrap = this.wrap;
1519
+ if (!wrap) return;
1520
+
1521
+ heightPercentage = wrap.clientHeight * 100 / wrap.scrollHeight;
1522
+ widthPercentage = wrap.clientWidth * 100 / wrap.scrollWidth;
1523
+
1524
+ this.sizeHeight = heightPercentage < 100 ? heightPercentage + '%' : '';
1525
+ this.sizeWidth = widthPercentage < 100 ? widthPercentage + '%' : '';
1526
+ }
1527
+ },
1528
+
1529
+ mounted: function mounted() {
1530
+ if (this.native) return;
1531
+ this.$nextTick(this.update);
1532
+ !this.noresize && Object(resize_event["a" /* addResizeListener */])(this.$refs.resize, this.update);
1533
+ },
1534
+ beforeDestroy: function beforeDestroy() {
1535
+ if (this.native) return;
1536
+ !this.noresize && Object(resize_event["b" /* removeResizeListener */])(this.$refs.resize, this.update);
1537
+ }
1538
+ });
1539
+ // CONCATENATED MODULE: ./packages/scrollbar/index.js
1540
+
1541
+
1542
+ /* istanbul ignore next */
1543
+ main.install = function (Vue) {
1544
+ Vue.component(main.name, main);
1545
+ };
1546
+
1547
+ /* harmony default export */ var scrollbar = __webpack_exports__["default"] = (main);
1548
+
1549
+ /***/ }),
1550
+ /* 26 */
1551
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1552
+
1553
+ "use strict";
1554
+ // ESM COMPAT FLAG
1555
+ __webpack_require__.r(__webpack_exports__);
1556
+
1557
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=7957d3f1
1558
+ var render = function render() {
1559
+ var _vm = this,
1560
+ _c = _vm._self._c
1561
+ return _c(
1562
+ "label",
1563
+ {
1564
+ staticClass: "el-checkbox",
1565
+ class: [
1566
+ _vm.border && _vm.checkboxSize
1567
+ ? "el-checkbox--" + _vm.checkboxSize
1568
+ : "",
1569
+ { "is-disabled": _vm.isDisabled },
1570
+ { "is-bordered": _vm.border },
1571
+ { "is-checked": _vm.isChecked },
1572
+ ],
1573
+ attrs: { id: _vm.id },
1574
+ },
1575
+ [
1576
+ _c(
1577
+ "span",
1578
+ {
1579
+ staticClass: "el-checkbox__input",
1580
+ class: {
1581
+ "is-disabled": _vm.isDisabled,
1582
+ "is-checked": _vm.isChecked,
1583
+ "is-indeterminate": _vm.indeterminate,
1584
+ "is-focus": _vm.focus,
1585
+ },
1586
+ attrs: {
1587
+ tabindex: _vm.indeterminate ? 0 : false,
1588
+ role: _vm.indeterminate ? "checkbox" : false,
1589
+ "aria-checked": _vm.indeterminate ? "mixed" : false,
1590
+ },
1591
+ },
1592
+ [
1593
+ _c("span", { staticClass: "el-checkbox__inner" }),
1594
+ _vm.trueLabel || _vm.falseLabel
1595
+ ? _c("input", {
1596
+ directives: [
1597
+ {
1598
+ name: "model",
1599
+ rawName: "v-model",
1600
+ value: _vm.model,
1601
+ expression: "model",
1602
+ },
1603
+ ],
1604
+ staticClass: "el-checkbox__original",
1605
+ attrs: {
1606
+ type: "checkbox",
1607
+ "aria-hidden": _vm.indeterminate ? "true" : "false",
1608
+ name: _vm.name,
1609
+ disabled: _vm.isDisabled,
1610
+ "true-value": _vm.trueLabel,
1611
+ "false-value": _vm.falseLabel,
1612
+ },
1613
+ domProps: {
1614
+ checked: Array.isArray(_vm.model)
1615
+ ? _vm._i(_vm.model, null) > -1
1616
+ : _vm._q(_vm.model, _vm.trueLabel),
1617
+ },
1618
+ on: {
1619
+ change: [
1620
+ function ($event) {
1621
+ var $$a = _vm.model,
1622
+ $$el = $event.target,
1623
+ $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
1624
+ if (Array.isArray($$a)) {
1625
+ var $$v = null,
1626
+ $$i = _vm._i($$a, $$v)
1627
+ if ($$el.checked) {
1628
+ $$i < 0 && (_vm.model = $$a.concat([$$v]))
1629
+ } else {
1630
+ $$i > -1 &&
1631
+ (_vm.model = $$a
1632
+ .slice(0, $$i)
1633
+ .concat($$a.slice($$i + 1)))
1634
+ }
1635
+ } else {
1636
+ _vm.model = $$c
1637
+ }
1638
+ },
1639
+ _vm.handleChange,
1640
+ ],
1641
+ focus: function ($event) {
1642
+ _vm.focus = true
1643
+ },
1644
+ blur: function ($event) {
1645
+ _vm.focus = false
1646
+ },
1647
+ },
1648
+ })
1649
+ : _c("input", {
1650
+ directives: [
1651
+ {
1652
+ name: "model",
1653
+ rawName: "v-model",
1654
+ value: _vm.model,
1655
+ expression: "model",
1656
+ },
1657
+ ],
1658
+ staticClass: "el-checkbox__original",
1659
+ attrs: {
1660
+ type: "checkbox",
1661
+ "aria-hidden": _vm.indeterminate ? "true" : "false",
1662
+ disabled: _vm.isDisabled,
1663
+ name: _vm.name,
1664
+ },
1665
+ domProps: {
1666
+ value: _vm.label,
1667
+ checked: Array.isArray(_vm.model)
1668
+ ? _vm._i(_vm.model, _vm.label) > -1
1669
+ : _vm.model,
1670
+ },
1671
+ on: {
1672
+ change: [
1673
+ function ($event) {
1674
+ var $$a = _vm.model,
1675
+ $$el = $event.target,
1676
+ $$c = $$el.checked ? true : false
1677
+ if (Array.isArray($$a)) {
1678
+ var $$v = _vm.label,
1679
+ $$i = _vm._i($$a, $$v)
1680
+ if ($$el.checked) {
1681
+ $$i < 0 && (_vm.model = $$a.concat([$$v]))
1682
+ } else {
1683
+ $$i > -1 &&
1684
+ (_vm.model = $$a
1685
+ .slice(0, $$i)
1686
+ .concat($$a.slice($$i + 1)))
1687
+ }
1688
+ } else {
1689
+ _vm.model = $$c
1690
+ }
1691
+ },
1692
+ _vm.handleChange,
1693
+ ],
1694
+ focus: function ($event) {
1695
+ _vm.focus = true
1696
+ },
1697
+ blur: function ($event) {
1698
+ _vm.focus = false
1699
+ },
1700
+ },
1701
+ }),
1702
+ ]
1703
+ ),
1704
+ _vm.$slots.default || _vm.label
1705
+ ? _c(
1706
+ "span",
1707
+ { staticClass: "el-checkbox__label" },
1708
+ [
1709
+ _vm._t("default"),
1710
+ !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e(),
1711
+ ],
1712
+ 2
1713
+ )
1714
+ : _vm._e(),
1715
+ ]
1716
+ )
1717
+ }
1718
+ var staticRenderFns = []
1719
+ render._withStripped = true
1720
+
1721
+
1722
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=7957d3f1
1723
+
1724
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
1725
+ var emitter = __webpack_require__(6);
1726
+
1727
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
1728
+
1729
+
1730
+
1731
+ /* harmony default export */ var checkboxvue_type_script_lang_js = ({
1732
+ name: 'ElCheckbox',
1733
+
1734
+ mixins: [emitter["a" /* default */]],
1735
+
1736
+ inject: {
1737
+ elForm: {
1738
+ default: ''
1739
+ },
1740
+ elFormItem: {
1741
+ default: ''
1742
+ }
1743
+ },
1744
+
1745
+ componentName: 'ElCheckbox',
1746
+
1747
+ data: function data() {
1748
+ return {
1749
+ selfModel: false,
1750
+ focus: false,
1751
+ isLimitExceeded: false
1752
+ };
1753
+ },
1754
+
1755
+
1756
+ computed: {
1757
+ model: {
1758
+ get: function get() {
1759
+ return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
1760
+ },
1761
+ set: function set(val) {
1762
+ if (this.isGroup) {
1763
+ this.isLimitExceeded = false;
1764
+ this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
1765
+
1766
+ this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
1767
+
1768
+ this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
1769
+ } else {
1770
+ this.$emit('input', val);
1771
+ this.selfModel = val;
1772
+ }
1773
+ }
1774
+ },
1775
+
1776
+ isChecked: function isChecked() {
1777
+ if ({}.toString.call(this.model) === '[object Boolean]') {
1778
+ return this.model;
1779
+ } else if (Array.isArray(this.model)) {
1780
+ return this.model.indexOf(this.label) > -1;
1781
+ } else if (this.model !== null && this.model !== undefined) {
1782
+ return this.model === this.trueLabel;
1783
+ }
1784
+ },
1785
+ isGroup: function isGroup() {
1786
+ var parent = this.$parent;
1787
+ while (parent) {
1788
+ if (parent.$options.componentName !== 'ElCheckboxGroup') {
1789
+ parent = parent.$parent;
1790
+ } else {
1791
+ this._checkboxGroup = parent;
1792
+ return true;
1793
+ }
1794
+ }
1795
+ return false;
1796
+ },
1797
+ store: function store() {
1798
+ return this._checkboxGroup ? this._checkboxGroup.value : this.value;
1799
+ },
1800
+
1801
+
1802
+ /* used to make the isDisabled judgment under max/min props */
1803
+ isLimitDisabled: function isLimitDisabled() {
1804
+ var _checkboxGroup = this._checkboxGroup,
1805
+ max = _checkboxGroup.max,
1806
+ min = _checkboxGroup.min;
1807
+
1808
+ return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
1809
+ },
1810
+ isDisabled: function isDisabled() {
1811
+ return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
1812
+ },
1813
+ _elFormItemSize: function _elFormItemSize() {
1814
+ return (this.elFormItem || {}).elFormItemSize;
1815
+ },
1816
+ checkboxSize: function checkboxSize() {
1817
+ var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1818
+ return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
1819
+ }
1820
+ },
1821
+
1822
+ props: {
1823
+ value: {},
1824
+ label: {},
1825
+ indeterminate: Boolean,
1826
+ disabled: Boolean,
1827
+ checked: Boolean,
1828
+ name: String,
1829
+ trueLabel: [String, Number],
1830
+ falseLabel: [String, Number],
1831
+ id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
1832
+ controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
1833
+ border: Boolean,
1834
+ size: String
1835
+ },
89
1836
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1837
+ methods: {
1838
+ addToStore: function addToStore() {
1839
+ if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
1840
+ this.model.push(this.label);
1841
+ } else {
1842
+ this.model = this.trueLabel || true;
1843
+ }
1844
+ },
1845
+ handleChange: function handleChange(ev) {
1846
+ var _this = this;
92
1847
 
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
1848
+ if (this.isLimitExceeded) return;
1849
+ var value = void 0;
1850
+ if (ev.target.checked) {
1851
+ value = this.trueLabel === undefined ? true : this.trueLabel;
1852
+ } else {
1853
+ value = this.falseLabel === undefined ? false : this.falseLabel;
1854
+ }
1855
+ this.$emit('change', value, ev);
1856
+ this.$nextTick(function () {
1857
+ if (_this.isGroup) {
1858
+ _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
1859
+ }
1860
+ });
1861
+ }
1862
+ },
96
1863
 
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.
1864
+ created: function created() {
1865
+ this.checked && this.addToStore();
1866
+ },
1867
+ mounted: function mounted() {
1868
+ // 为indeterminate元素 添加aria-controls 属性
1869
+ if (this.indeterminate) {
1870
+ this.$el.setAttribute('aria-controls', this.controls);
1871
+ }
1872
+ },
100
1873
 
101
- function normalizeComponent(
102
- scriptExports,
1874
+
1875
+ watch: {
1876
+ value: function value(_value) {
1877
+ this.dispatch('ElFormItem', 'el.form.change', _value);
1878
+ }
1879
+ }
1880
+ });
1881
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
1882
+ /* harmony default export */ var src_checkboxvue_type_script_lang_js = (checkboxvue_type_script_lang_js);
1883
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1884
+ var componentNormalizer = __webpack_require__(2);
1885
+
1886
+ // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
1887
+
1888
+
1889
+
1890
+
1891
+
1892
+ /* normalize component */
1893
+
1894
+ var component = Object(componentNormalizer["a" /* default */])(
1895
+ src_checkboxvue_type_script_lang_js,
103
1896
  render,
104
1897
  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
1898
+ false,
1899
+ null,
1900
+ null,
1901
+ null
1902
+
1903
+ )
114
1904
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
1905
+ /* harmony default export */ var src_checkbox = (component.exports);
1906
+ // CONCATENATED MODULE: ./packages/checkbox/index.js
121
1907
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
126
1908
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
1909
+ /* istanbul ignore next */
1910
+ src_checkbox.install = function (Vue) {
1911
+ Vue.component(src_checkbox.name, src_checkbox);
1912
+ };
131
1913
 
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
- }
1914
+ /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
167
1915
 
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
- }
1916
+ /***/ }),
1917
+ /* 27 */,
1918
+ /* 28 */
1919
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
185
1920
 
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
1921
+ "use strict";
1922
+ var aria = aria || {};
1923
+
1924
+ aria.Utils = aria.Utils || {};
1925
+
1926
+ /**
1927
+ * @desc Set focus on descendant nodes until the first focusable element is
1928
+ * found.
1929
+ * @param element
1930
+ * DOM node for which to find the first focusable descendant.
1931
+ * @returns
1932
+ * true if a focusable element is found and focus is set.
1933
+ */
1934
+ aria.Utils.focusFirstDescendant = function (element) {
1935
+ for (var i = 0; i < element.childNodes.length; i++) {
1936
+ var child = element.childNodes[i];
1937
+ if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
1938
+ return true;
1939
+ }
1940
+ }
1941
+ return false;
1942
+ };
191
1943
 
1944
+ /**
1945
+ * @desc Find the last descendant node that is focusable.
1946
+ * @param element
1947
+ * DOM node for which to find the last focusable descendant.
1948
+ * @returns
1949
+ * true if a focusable element is found and focus is set.
1950
+ */
1951
+
1952
+ aria.Utils.focusLastDescendant = function (element) {
1953
+ for (var i = element.childNodes.length - 1; i >= 0; i--) {
1954
+ var child = element.childNodes[i];
1955
+ if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
1956
+ return true;
1957
+ }
1958
+ }
1959
+ return false;
1960
+ };
192
1961
 
193
- /***/ }),
1962
+ /**
1963
+ * @desc Set Attempt to set focus on the current node.
1964
+ * @param element
1965
+ * The node to attempt to focus on.
1966
+ * @returns
1967
+ * true if element is focused.
1968
+ */
1969
+ aria.Utils.attemptFocus = function (element) {
1970
+ if (!aria.Utils.isFocusable(element)) {
1971
+ return false;
1972
+ }
1973
+ aria.Utils.IgnoreUtilFocusChanges = true;
1974
+ try {
1975
+ element.focus();
1976
+ } catch (e) {}
1977
+ aria.Utils.IgnoreUtilFocusChanges = false;
1978
+ return document.activeElement === element;
1979
+ };
194
1980
 
195
- /***/ 15:
196
- /***/ (function(module, exports) {
1981
+ aria.Utils.isFocusable = function (element) {
1982
+ if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
1983
+ return true;
1984
+ }
197
1985
 
198
- module.exports = require("cy-element-ui/lib/checkbox");
1986
+ if (element.disabled) {
1987
+ return false;
1988
+ }
199
1989
 
200
- /***/ }),
1990
+ switch (element.nodeName) {
1991
+ case 'A':
1992
+ return !!element.href && element.rel !== 'ignore';
1993
+ case 'INPUT':
1994
+ return element.type !== 'hidden' && element.type !== 'file';
1995
+ case 'BUTTON':
1996
+ case 'SELECT':
1997
+ case 'TEXTAREA':
1998
+ return true;
1999
+ default:
2000
+ return false;
2001
+ }
2002
+ };
201
2003
 
202
- /***/ 16:
203
- /***/ (function(module, exports) {
2004
+ /**
2005
+ * 触发一个事件
2006
+ * mouseenter, mouseleave, mouseover, keyup, change, click 等
2007
+ * @param {Element} elm
2008
+ * @param {String} name
2009
+ * @param {*} opts
2010
+ */
2011
+ aria.Utils.triggerEvent = function (elm, name) {
2012
+ var eventName = void 0;
2013
+
2014
+ if (/^mouse|click/.test(name)) {
2015
+ eventName = 'MouseEvents';
2016
+ } else if (/^key/.test(name)) {
2017
+ eventName = 'KeyboardEvent';
2018
+ } else {
2019
+ eventName = 'HTMLEvents';
2020
+ }
2021
+ var evt = document.createEvent(eventName);
204
2022
 
205
- module.exports = require("cy-element-ui/lib/scrollbar");
2023
+ for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2024
+ opts[_key - 2] = arguments[_key];
2025
+ }
206
2026
 
207
- /***/ }),
2027
+ evt.initEvent.apply(evt, [name].concat(opts));
2028
+ elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
208
2029
 
209
- /***/ 21:
210
- /***/ (function(module, exports) {
2030
+ return elm;
2031
+ };
2032
+
2033
+ aria.Utils.keys = {
2034
+ tab: 9,
2035
+ enter: 13,
2036
+ space: 32,
2037
+ left: 37,
2038
+ up: 38,
2039
+ right: 39,
2040
+ down: 40,
2041
+ esc: 27
2042
+ };
211
2043
 
212
- module.exports = require("cy-element-ui/lib/utils/shared");
2044
+ /* harmony default export */ __webpack_exports__["a"] = (aria.Utils);
213
2045
 
214
2046
  /***/ }),
215
-
216
- /***/ 26:
2047
+ /* 29 */
217
2048
  /***/ (function(module, exports) {
218
2049
 
219
2050
  module.exports = require("babel-helper-vue-jsx-merge-props");
220
2051
 
221
2052
  /***/ }),
2053
+ /* 30 */,
2054
+ /* 31 */,
2055
+ /* 32 */
2056
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
222
2057
 
223
- /***/ 3:
224
- /***/ (function(module, exports) {
2058
+ "use strict";
2059
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return scrollIntoView; });
2060
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
2061
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
225
2062
 
226
- module.exports = require("cy-element-ui/lib/utils/util");
227
2063
 
228
- /***/ }),
2064
+ function scrollIntoView(container, selected) {
2065
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return;
229
2066
 
230
- /***/ 31:
231
- /***/ (function(module, exports) {
2067
+ if (!selected) {
2068
+ container.scrollTop = 0;
2069
+ return;
2070
+ }
232
2071
 
233
- module.exports = require("cy-element-ui/lib/utils/scroll-into-view");
2072
+ var offsetParents = [];
2073
+ var pointer = selected.offsetParent;
2074
+ while (pointer && container !== pointer && container.contains(pointer)) {
2075
+ offsetParents.push(pointer);
2076
+ pointer = pointer.offsetParent;
2077
+ }
2078
+ var top = selected.offsetTop + offsetParents.reduce(function (prev, curr) {
2079
+ return prev + curr.offsetTop;
2080
+ }, 0);
2081
+ var bottom = top + selected.offsetHeight;
2082
+ var viewRectTop = container.scrollTop;
2083
+ var viewRectBottom = viewRectTop + container.clientHeight;
2084
+
2085
+ if (top < viewRectTop) {
2086
+ container.scrollTop = top;
2087
+ } else if (bottom > viewRectBottom) {
2088
+ container.scrollTop = bottom - container.clientHeight;
2089
+ }
2090
+ }
234
2091
 
235
2092
  /***/ }),
2093
+ /* 33 */,
2094
+ /* 34 */,
2095
+ /* 35 */,
2096
+ /* 36 */,
2097
+ /* 37 */,
2098
+ /* 38 */,
2099
+ /* 39 */,
2100
+ /* 40 */,
2101
+ /* 41 */,
2102
+ /* 42 */,
2103
+ /* 43 */,
2104
+ /* 44 */
2105
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
236
2106
 
237
- /***/ 41:
238
- /***/ (function(module, exports) {
2107
+ "use strict";
2108
+ // ESM COMPAT FLAG
2109
+ __webpack_require__.r(__webpack_exports__);
2110
+
2111
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=template&id=b84af2ea
2112
+ var render = function render() {
2113
+ var _vm = this,
2114
+ _c = _vm._self._c
2115
+ return _c(
2116
+ "label",
2117
+ {
2118
+ staticClass: "el-radio",
2119
+ class: [
2120
+ _vm.border && _vm.radioSize ? "el-radio--" + _vm.radioSize : "",
2121
+ { "is-disabled": _vm.isDisabled },
2122
+ { "is-focus": _vm.focus },
2123
+ { "is-bordered": _vm.border },
2124
+ { "is-checked": _vm.model === _vm.label },
2125
+ ],
2126
+ attrs: {
2127
+ role: "radio",
2128
+ "aria-checked": _vm.model === _vm.label,
2129
+ "aria-disabled": _vm.isDisabled,
2130
+ tabindex: _vm.tabIndex,
2131
+ },
2132
+ on: {
2133
+ keydown: function ($event) {
2134
+ if (
2135
+ !$event.type.indexOf("key") &&
2136
+ _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
2137
+ )
2138
+ return null
2139
+ $event.stopPropagation()
2140
+ $event.preventDefault()
2141
+ _vm.model = _vm.isDisabled ? _vm.model : _vm.label
2142
+ },
2143
+ },
2144
+ },
2145
+ [
2146
+ _c(
2147
+ "span",
2148
+ {
2149
+ staticClass: "el-radio__input",
2150
+ class: {
2151
+ "is-disabled": _vm.isDisabled,
2152
+ "is-checked": _vm.model === _vm.label,
2153
+ },
2154
+ },
2155
+ [
2156
+ _c("span", { staticClass: "el-radio__inner" }),
2157
+ _c("input", {
2158
+ directives: [
2159
+ {
2160
+ name: "model",
2161
+ rawName: "v-model",
2162
+ value: _vm.model,
2163
+ expression: "model",
2164
+ },
2165
+ ],
2166
+ ref: "radio",
2167
+ staticClass: "el-radio__original",
2168
+ attrs: {
2169
+ type: "radio",
2170
+ "aria-hidden": "true",
2171
+ name: _vm.name,
2172
+ disabled: _vm.isDisabled,
2173
+ tabindex: "-1",
2174
+ autocomplete: "off",
2175
+ },
2176
+ domProps: {
2177
+ value: _vm.label,
2178
+ checked: _vm._q(_vm.model, _vm.label),
2179
+ },
2180
+ on: {
2181
+ focus: function ($event) {
2182
+ _vm.focus = true
2183
+ },
2184
+ blur: function ($event) {
2185
+ _vm.focus = false
2186
+ },
2187
+ change: [
2188
+ function ($event) {
2189
+ _vm.model = _vm.label
2190
+ },
2191
+ _vm.handleChange,
2192
+ ],
2193
+ },
2194
+ }),
2195
+ ]
2196
+ ),
2197
+ _c(
2198
+ "span",
2199
+ {
2200
+ staticClass: "el-radio__label",
2201
+ on: {
2202
+ keydown: function ($event) {
2203
+ $event.stopPropagation()
2204
+ },
2205
+ },
2206
+ },
2207
+ [
2208
+ _vm._t("default"),
2209
+ !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e(),
2210
+ ],
2211
+ 2
2212
+ ),
2213
+ ]
2214
+ )
2215
+ }
2216
+ var staticRenderFns = []
2217
+ render._withStripped = true
239
2218
 
240
- module.exports = require("cy-element-ui/lib/utils/aria-utils");
241
2219
 
242
- /***/ }),
2220
+ // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=b84af2ea
243
2221
 
244
- /***/ 53:
245
- /***/ (function(module, exports) {
2222
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
2223
+ var emitter = __webpack_require__(6);
246
2224
 
247
- module.exports = require("cy-element-ui/lib/radio");
2225
+ // 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
248
2226
 
249
- /***/ }),
250
2227
 
251
- /***/ 6:
252
- /***/ (function(module, exports) {
253
2228
 
254
- module.exports = require("cy-element-ui/lib/mixins/locale");
2229
+ /* harmony default export */ var radiovue_type_script_lang_js = ({
2230
+ name: 'ElRadio',
255
2231
 
256
- /***/ }),
2232
+ mixins: [emitter["a" /* default */]],
2233
+
2234
+ inject: {
2235
+ elForm: {
2236
+ default: ''
2237
+ },
2238
+
2239
+ elFormItem: {
2240
+ default: ''
2241
+ }
2242
+ },
2243
+
2244
+ componentName: 'ElRadio',
2245
+
2246
+ props: {
2247
+ value: {},
2248
+ label: {},
2249
+ disabled: Boolean,
2250
+ name: String,
2251
+ border: Boolean,
2252
+ size: String
2253
+ },
2254
+
2255
+ data: function data() {
2256
+ return {
2257
+ focus: false
2258
+ };
2259
+ },
2260
+
2261
+ computed: {
2262
+ isGroup: function isGroup() {
2263
+ var parent = this.$parent;
2264
+ while (parent) {
2265
+ if (parent.$options.componentName !== 'ElRadioGroup') {
2266
+ parent = parent.$parent;
2267
+ } else {
2268
+ this._radioGroup = parent;
2269
+ return true;
2270
+ }
2271
+ }
2272
+ return false;
2273
+ },
2274
+
2275
+ model: {
2276
+ get: function get() {
2277
+ return this.isGroup ? this._radioGroup.value : this.value;
2278
+ },
2279
+ set: function set(val) {
2280
+ if (this.isGroup) {
2281
+ this.dispatch('ElRadioGroup', 'input', [val]);
2282
+ } else {
2283
+ this.$emit('input', val);
2284
+ }
2285
+ this.$refs.radio && (this.$refs.radio.checked = this.model === this.label);
2286
+ }
2287
+ },
2288
+ _elFormItemSize: function _elFormItemSize() {
2289
+ return (this.elFormItem || {}).elFormItemSize;
2290
+ },
2291
+ radioSize: function radioSize() {
2292
+ var temRadioSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2293
+ return this.isGroup ? this._radioGroup.radioGroupSize || temRadioSize : temRadioSize;
2294
+ },
2295
+ isDisabled: function isDisabled() {
2296
+ return this.isGroup ? this._radioGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
2297
+ },
2298
+ tabIndex: function tabIndex() {
2299
+ return this.isDisabled || this.isGroup && this.model !== this.label ? -1 : 0;
2300
+ }
2301
+ },
2302
+
2303
+ methods: {
2304
+ handleChange: function handleChange() {
2305
+ var _this = this;
2306
+
2307
+ this.$nextTick(function () {
2308
+ _this.$emit('change', _this.model);
2309
+ _this.isGroup && _this.dispatch('ElRadioGroup', 'handleChange', _this.model);
2310
+ });
2311
+ }
2312
+ }
2313
+ });
2314
+ // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js
2315
+ /* harmony default export */ var src_radiovue_type_script_lang_js = (radiovue_type_script_lang_js);
2316
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2317
+ var componentNormalizer = __webpack_require__(2);
2318
+
2319
+ // CONCATENATED MODULE: ./packages/radio/src/radio.vue
2320
+
2321
+
2322
+
2323
+
2324
+
2325
+ /* normalize component */
2326
+
2327
+ var component = Object(componentNormalizer["a" /* default */])(
2328
+ src_radiovue_type_script_lang_js,
2329
+ render,
2330
+ staticRenderFns,
2331
+ false,
2332
+ null,
2333
+ null,
2334
+ null
2335
+
2336
+ )
2337
+
2338
+ /* harmony default export */ var src_radio = (component.exports);
2339
+ // CONCATENATED MODULE: ./packages/radio/index.js
2340
+
2341
+
2342
+ /* istanbul ignore next */
2343
+ src_radio.install = function (Vue) {
2344
+ Vue.component(src_radio.name, src_radio);
2345
+ };
257
2346
 
258
- /***/ 64:
2347
+ /* harmony default export */ var packages_radio = __webpack_exports__["default"] = (src_radio);
2348
+
2349
+ /***/ }),
2350
+ /* 45 */,
2351
+ /* 46 */,
2352
+ /* 47 */,
2353
+ /* 48 */,
2354
+ /* 49 */,
2355
+ /* 50 */,
2356
+ /* 51 */
259
2357
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
260
2358
 
261
2359
  "use strict";
@@ -290,23 +2388,20 @@ cascader_panelvue_type_template_id_188dd00c_render._withStripped = true
290
2388
  // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-panel.vue?vue&type=template&id=188dd00c
291
2389
 
292
2390
  // EXTERNAL MODULE: external "babel-helper-vue-jsx-merge-props"
293
- var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(26);
2391
+ var external_babel_helper_vue_jsx_merge_props_ = __webpack_require__(29);
294
2392
  var external_babel_helper_vue_jsx_merge_props_default = /*#__PURE__*/__webpack_require__.n(external_babel_helper_vue_jsx_merge_props_);
295
2393
 
296
- // EXTERNAL MODULE: external "cy-element-ui/lib/scrollbar"
297
- var scrollbar_ = __webpack_require__(16);
298
- var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
2394
+ // EXTERNAL MODULE: ./packages/scrollbar/index.js + 3 modules
2395
+ var scrollbar = __webpack_require__(25);
299
2396
 
300
- // EXTERNAL MODULE: external "cy-element-ui/lib/checkbox"
301
- var checkbox_ = __webpack_require__(15);
302
- var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
2397
+ // EXTERNAL MODULE: ./packages/checkbox/index.js + 5 modules
2398
+ var packages_checkbox = __webpack_require__(26);
303
2399
 
304
- // EXTERNAL MODULE: external "cy-element-ui/lib/radio"
305
- var radio_ = __webpack_require__(53);
306
- var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);
2400
+ // EXTERNAL MODULE: ./packages/radio/index.js + 5 modules
2401
+ var packages_radio = __webpack_require__(44);
307
2402
 
308
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/util"
309
- var util_ = __webpack_require__(3);
2403
+ // EXTERNAL MODULE: ./src/utils/util.js
2404
+ var util = __webpack_require__(3);
310
2405
 
311
2406
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js
312
2407
 
@@ -323,8 +2418,8 @@ var stopPropagation = function stopPropagation(e) {
323
2418
  inject: ['panel'],
324
2419
 
325
2420
  components: {
326
- ElCheckbox: checkbox_default.a,
327
- ElRadio: radio_default.a
2421
+ ElCheckbox: packages_checkbox["default"],
2422
+ ElRadio: packages_radio["default"]
328
2423
  },
329
2424
 
330
2425
  props: {
@@ -477,7 +2572,7 @@ var stopPropagation = function stopPropagation(e) {
477
2572
 
478
2573
  // to keep same reference if value cause radio's checked state is calculated by reference comparision;
479
2574
 
480
- if (Object(util_["isEqual"])(value, checkedValue)) {
2575
+ if (Object(util["m" /* isEqual */])(value, checkedValue)) {
481
2576
  value = checkedValue;
482
2577
  }
483
2578
 
@@ -581,7 +2676,7 @@ var stopPropagation = function stopPropagation(e) {
581
2676
  // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue?vue&type=script&lang=js
582
2677
  /* harmony default export */ var src_cascader_nodevue_type_script_lang_js = (cascader_nodevue_type_script_lang_js);
583
2678
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
584
- var componentNormalizer = __webpack_require__(0);
2679
+ var componentNormalizer = __webpack_require__(2);
585
2680
 
586
2681
  // CONCATENATED MODULE: ./packages/cascader-panel/src/cascader-node.vue
587
2682
  var cascader_node_render, cascader_node_staticRenderFns
@@ -603,9 +2698,8 @@ var component = Object(componentNormalizer["a" /* default */])(
603
2698
  )
604
2699
 
605
2700
  /* harmony default export */ var cascader_node = (component.exports);
606
- // EXTERNAL MODULE: external "cy-element-ui/lib/mixins/locale"
607
- var locale_ = __webpack_require__(6);
608
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
2701
+ // EXTERNAL MODULE: ./src/mixins/locale.js
2702
+ var locale = __webpack_require__(13);
609
2703
 
610
2704
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-menu.vue?vue&type=script&lang=js
611
2705
 
@@ -618,12 +2712,12 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
618
2712
  /* harmony default export */ var cascader_menuvue_type_script_lang_js = ({
619
2713
  name: 'ElCascaderMenu',
620
2714
 
621
- mixins: [locale_default.a],
2715
+ mixins: [locale["a" /* default */]],
622
2716
 
623
2717
  inject: ['panel'],
624
2718
 
625
2719
  components: {
626
- ElScrollbar: scrollbar_default.a,
2720
+ ElScrollbar: scrollbar["default"],
627
2721
  CascaderNode: cascader_node
628
2722
  },
629
2723
 
@@ -639,7 +2733,7 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
639
2733
  return {
640
2734
  activeNode: null,
641
2735
  hoverTimer: null,
642
- id: Object(util_["generateId"])()
2736
+ id: Object(util["g" /* generateId */])()
643
2737
  };
644
2738
  },
645
2739
 
@@ -777,8 +2871,8 @@ var cascader_menu_component = Object(componentNormalizer["a" /* default */])(
777
2871
  )
778
2872
 
779
2873
  /* harmony default export */ var cascader_menu = (cascader_menu_component.exports);
780
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/shared"
781
- var shared_ = __webpack_require__(21);
2874
+ // EXTERNAL MODULE: ./src/utils/shared.js
2875
+ var shared = __webpack_require__(16);
782
2876
 
783
2877
  // CONCATENATED MODULE: ./packages/cascader-panel/src/node.js
784
2878
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@@ -869,8 +2963,8 @@ var node_Node = function () {
869
2963
  Node.prototype.isSameNode = function isSameNode(checkedValue) {
870
2964
  var value = this.getValueByOption();
871
2965
  return this.config.multiple && Array.isArray(checkedValue) ? checkedValue.some(function (val) {
872
- return Object(util_["isEqual"])(val, value);
873
- }) : Object(util_["isEqual"])(checkedValue, value);
2966
+ return Object(util["m" /* isEqual */])(val, value);
2967
+ }) : Object(util["m" /* isEqual */])(checkedValue, value);
874
2968
  };
875
2969
 
876
2970
  Node.prototype.broadcast = function broadcast(event) {
@@ -878,7 +2972,7 @@ var node_Node = function () {
878
2972
  args[_key - 1] = arguments[_key];
879
2973
  }
880
2974
 
881
- var handlerName = 'onParent' + Object(util_["capitalize"])(event);
2975
+ var handlerName = 'onParent' + Object(util["d" /* capitalize */])(event);
882
2976
 
883
2977
  this.children.forEach(function (child) {
884
2978
  if (child) {
@@ -892,7 +2986,7 @@ var node_Node = function () {
892
2986
  Node.prototype.emit = function emit(event) {
893
2987
  var parent = this.parent;
894
2988
 
895
- var handlerName = 'onChild' + Object(util_["capitalize"])(event);
2989
+ var handlerName = 'onChild' + Object(util["d" /* capitalize */])(event);
896
2990
  if (parent) {
897
2991
  for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
898
2992
  args[_key2 - 1] = arguments[_key2];
@@ -977,7 +3071,7 @@ var node_Node = function () {
977
3071
  leafKey = _config2.leaf;
978
3072
 
979
3073
  if (lazy) {
980
- var isLeaf = Object(shared_["isDef"])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
3074
+ var isLeaf = Object(shared["a" /* isDef */])(data[leafKey]) ? data[leafKey] : loaded ? !children.length : false;
981
3075
  this.hasChildren = !isLeaf;
982
3076
  return isLeaf;
983
3077
  }
@@ -1018,7 +3112,7 @@ var store_Store = function () {
1018
3112
  Store.prototype.initNodes = function initNodes(data) {
1019
3113
  var _this = this;
1020
3114
 
1021
- data = Object(util_["coerceTruthyValueToArray"])(data);
3115
+ data = Object(util["e" /* coerceTruthyValueToArray */])(data);
1022
3116
  this.nodes = data.map(function (nodeData) {
1023
3117
  return new src_node(nodeData, _this.config);
1024
3118
  });
@@ -1036,7 +3130,7 @@ var store_Store = function () {
1036
3130
  Store.prototype.appendNodes = function appendNodes(nodeDataList, parentNode) {
1037
3131
  var _this2 = this;
1038
3132
 
1039
- nodeDataList = Object(util_["coerceTruthyValueToArray"])(nodeDataList);
3133
+ nodeDataList = Object(util["e" /* coerceTruthyValueToArray */])(nodeDataList);
1040
3134
  nodeDataList.forEach(function (nodeData) {
1041
3135
  return _this2.appendNode(nodeData, parentNode);
1042
3136
  });
@@ -1055,7 +3149,7 @@ var store_Store = function () {
1055
3149
 
1056
3150
  Store.prototype.getNodeByValue = function getNodeByValue(value) {
1057
3151
  var nodes = this.getFlattedNodes(false, !this.config.lazy).filter(function (node) {
1058
- return Object(util_["valueEquals"])(node.path, value) || node.value === value;
3152
+ return Object(util["u" /* valueEquals */])(node.path, value) || node.value === value;
1059
3153
  });
1060
3154
  return nodes && nodes.length ? nodes[0] : null;
1061
3155
  };
@@ -1064,17 +3158,14 @@ var store_Store = function () {
1064
3158
  }();
1065
3159
 
1066
3160
  /* harmony default export */ var src_store = (store_Store);
1067
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/merge"
1068
- var merge_ = __webpack_require__(9);
1069
- var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
3161
+ // EXTERNAL MODULE: ./src/utils/merge.js
3162
+ var merge = __webpack_require__(7);
1070
3163
 
1071
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/aria-utils"
1072
- var aria_utils_ = __webpack_require__(41);
1073
- var aria_utils_default = /*#__PURE__*/__webpack_require__.n(aria_utils_);
3164
+ // EXTERNAL MODULE: ./src/utils/aria-utils.js
3165
+ var aria_utils = __webpack_require__(28);
1074
3166
 
1075
- // EXTERNAL MODULE: external "cy-element-ui/lib/utils/scroll-into-view"
1076
- var scroll_into_view_ = __webpack_require__(31);
1077
- var scroll_into_view_default = /*#__PURE__*/__webpack_require__.n(scroll_into_view_);
3167
+ // EXTERNAL MODULE: ./src/utils/scroll-into-view.js
3168
+ var scroll_into_view = __webpack_require__(32);
1078
3169
 
1079
3170
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/cascader-panel/src/cascader-panel.vue?vue&type=script&lang=js
1080
3171
  var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
@@ -1086,7 +3177,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
1086
3177
 
1087
3178
 
1088
3179
 
1089
- var KeyCode = aria_utils_default.a.keys;
3180
+ var KeyCode = aria_utils["a" /* default */].keys;
1090
3181
 
1091
3182
  var DefaultProps = {
1092
3183
  expandTrigger: 'click', // or hover
@@ -1094,7 +3185,7 @@ var DefaultProps = {
1094
3185
  checkStrictly: false, // whether all nodes can be selected
1095
3186
  emitPath: true, // wether to emit an array of all levels value in which node is located
1096
3187
  lazy: false,
1097
- lazyLoad: util_["noop"],
3188
+ lazyLoad: util["r" /* noop */],
1098
3189
  value: 'value',
1099
3190
  label: 'label',
1100
3191
  children: 'children',
@@ -1178,7 +3269,7 @@ var checkNode = function checkNode(el) {
1178
3269
 
1179
3270
  computed: {
1180
3271
  config: function config() {
1181
- return merge_default()(_extends({}, DefaultProps), this.props || {});
3272
+ return Object(merge["a" /* default */])(_extends({}, DefaultProps), this.props || {});
1182
3273
  },
1183
3274
  multiple: function multiple() {
1184
3275
  return this.config.multiple;
@@ -1211,7 +3302,7 @@ var checkNode = function checkNode(el) {
1211
3302
  deep: true
1212
3303
  },
1213
3304
  checkedValue: function checkedValue(val) {
1214
- if (!Object(util_["isEqual"])(val, this.value)) {
3305
+ if (!Object(util["m" /* isEqual */])(val, this.value)) {
1215
3306
  this.checkStrictly && this.calculateCheckedNodePaths();
1216
3307
  this.$emit('input', val);
1217
3308
  this.$emit('change', val);
@@ -1231,7 +3322,7 @@ var checkNode = function checkNode(el) {
1231
3322
  var config = this.config,
1232
3323
  options = this.options;
1233
3324
 
1234
- if (config.lazy && Object(util_["isEmpty"])(options)) {
3325
+ if (config.lazy && Object(util["l" /* isEmpty */])(options)) {
1235
3326
  this.lazyLoad();
1236
3327
  } else {
1237
3328
  this.store = new src_store(options, config);
@@ -1243,7 +3334,7 @@ var checkNode = function checkNode(el) {
1243
3334
  var value = this.value,
1244
3335
  checkedValue = this.checkedValue;
1245
3336
 
1246
- if (!Object(util_["isEqual"])(value, checkedValue)) {
3337
+ if (!Object(util["m" /* isEqual */])(value, checkedValue)) {
1247
3338
  this.activePath = [];
1248
3339
  this.checkedValue = value;
1249
3340
  this.syncMenuState();
@@ -1273,7 +3364,7 @@ var checkNode = function checkNode(el) {
1273
3364
  var emitPath = config.emitPath;
1274
3365
 
1275
3366
  if (multiple || emitPath) {
1276
- return Object(util_["isEmpty"])(val);
3367
+ return Object(util["l" /* isEmpty */])(val);
1277
3368
  }
1278
3369
  return false;
1279
3370
  },
@@ -1286,7 +3377,7 @@ var checkNode = function checkNode(el) {
1286
3377
  checkedValue = this.checkedValue;
1287
3378
 
1288
3379
 
1289
- if (!Object(util_["isEmpty"])(activePath)) {
3380
+ if (!Object(util["l" /* isEmpty */])(activePath)) {
1290
3381
  var nodes = activePath.map(function (node) {
1291
3382
  return _this2.getNodeByValue(node.getValue());
1292
3383
  });
@@ -1314,7 +3405,7 @@ var checkNode = function checkNode(el) {
1314
3405
  var checkedValue = this.checkedValue,
1315
3406
  multiple = this.multiple;
1316
3407
 
1317
- var checkedValues = multiple ? Object(util_["coerceTruthyValueToArray"])(checkedValue) : [checkedValue];
3408
+ var checkedValues = multiple ? Object(util["e" /* coerceTruthyValueToArray */])(checkedValue) : [checkedValue];
1318
3409
  this.checkedNodePaths = checkedValues.map(function (v) {
1319
3410
  var checkedNode = _this4.getNodeByValue(v);
1320
3411
  return checkedNode ? checkedNode.pathNodes : [];
@@ -1381,7 +3472,7 @@ var checkNode = function checkNode(el) {
1381
3472
  var activePathValues = activePath.map(function (node) {
1382
3473
  return node.getValue();
1383
3474
  });
1384
- if (!Object(util_["valueEquals"])(pathValues, activePathValues)) {
3475
+ if (!Object(util["u" /* valueEquals */])(pathValues, activePathValues)) {
1385
3476
  this.$emit('active-item-change', pathValues); // Deprecated
1386
3477
  this.$emit('expand-change', pathValues);
1387
3478
  }
@@ -1453,7 +3544,7 @@ var checkNode = function checkNode(el) {
1453
3544
  if (menuElement) {
1454
3545
  var container = menuElement.querySelector('.el-scrollbar__wrap');
1455
3546
  var activeNode = menuElement.querySelector('.el-cascader-node.is-active') || menuElement.querySelector('.el-cascader-node.in-active-path');
1456
- scroll_into_view_default()(container, activeNode);
3547
+ Object(scroll_into_view["a" /* default */])(container, activeNode);
1457
3548
  }
1458
3549
  });
1459
3550
  },
@@ -1528,13 +3619,5 @@ cascader_panel.install = function (Vue) {
1528
3619
 
1529
3620
  /* harmony default export */ var packages_cascader_panel = __webpack_exports__["default"] = (cascader_panel);
1530
3621
 
1531
- /***/ }),
1532
-
1533
- /***/ 9:
1534
- /***/ (function(module, exports) {
1535
-
1536
- module.exports = require("cy-element-ui/lib/utils/merge");
1537
-
1538
3622
  /***/ })
1539
-
1540
- /******/ });
3623
+ /******/ ]);