cy-element-ui 1.0.52 → 1.0.53

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 (120) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +5199 -360
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +192 -101
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +1734 -137
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +452 -108
  14. package/lib/carousel.js +1256 -105
  15. package/lib/cascader-panel.js +3524 -191
  16. package/lib/cascader.js +8077 -717
  17. package/lib/checkbox-button.js +151 -119
  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 +4705 -828
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +10735 -4709
  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 +128 -96
  33. package/lib/dropdown-menu.js +2301 -99
  34. package/lib/dropdown.js +990 -54
  35. package/lib/element-ui.common.js +31129 -13451
  36. package/lib/empty.js +793 -99
  37. package/lib/fileUpload.js +2542 -26
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +3305 -202
  40. package/lib/form.js +129 -115
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +67 -67
  43. package/lib/image.js +1662 -146
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +435 -26
  46. package/lib/input-number.js +1458 -24
  47. package/lib/input.js +509 -37
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +886 -149
  50. package/lib/locale/format.js +1 -1
  51. package/lib/main.js +64 -64
  52. package/lib/menu-item-group.js +103 -103
  53. package/lib/menu-item.js +3140 -137
  54. package/lib/menu.js +1058 -123
  55. package/lib/message-box.js +2743 -188
  56. package/lib/message.js +1196 -118
  57. package/lib/mixins/migrating.js +1 -1
  58. package/lib/notification.js +1196 -119
  59. package/lib/option-group.js +151 -119
  60. package/lib/option.js +392 -16
  61. package/lib/page-header.js +781 -87
  62. package/lib/pagination.js +7747 -646
  63. package/lib/popconfirm.js +3606 -219
  64. package/lib/popover.js +2604 -79
  65. package/lib/progress.js +4 -4
  66. package/lib/radio-button.js +151 -119
  67. package/lib/radio-group.js +151 -119
  68. package/lib/radio.js +47 -15
  69. package/lib/rate.js +756 -113
  70. package/lib/result.js +108 -108
  71. package/lib/row.js +2 -2
  72. package/lib/scrollbar.js +1813 -41
  73. package/lib/select.js +5547 -209
  74. package/lib/selectDisplayInput.js +4 -4
  75. package/lib/skeleton-item.js +108 -108
  76. package/lib/skeleton.js +108 -108
  77. package/lib/slider.js +4768 -530
  78. package/lib/spinner.js +100 -100
  79. package/lib/statistic.js +9600 -112
  80. package/lib/step.js +108 -108
  81. package/lib/steps.js +514 -99
  82. package/lib/subTitle.js +91 -91
  83. package/lib/submenu.js +2397 -76
  84. package/lib/switch.js +582 -127
  85. package/lib/tab-pane.js +108 -108
  86. package/lib/tabDialog.js +1630 -104
  87. package/lib/table-column.js +1115 -267
  88. package/lib/table.js +7085 -1253
  89. package/lib/tabs.js +1615 -113
  90. package/lib/tag.js +4 -4
  91. package/lib/time-picker.js +6487 -550
  92. package/lib/time-select.js +6334 -407
  93. package/lib/timeline-item.js +108 -108
  94. package/lib/timeline.js +4 -4
  95. package/lib/tooltip.js +2688 -44
  96. package/lib/transfer.js +2238 -146
  97. package/lib/transitions/collapse-transition.js +1 -1
  98. package/lib/tree.js +1563 -148
  99. package/lib/treeSelect.js +3421 -106
  100. package/lib/upload.js +1198 -31
  101. package/lib/utils/clickoutside.js +1 -1
  102. package/lib/utils/date-util.js +2 -2
  103. package/lib/utils/popup/index.js +2 -2
  104. package/lib/utils/popup/popup-manager.js +1 -1
  105. package/lib/utils/util.js +1 -1
  106. package/lib/utils/vdom.js +1 -1
  107. package/lib/utils/vue-popper.js +1 -1
  108. package/package.json +1 -1
  109. package/src/directives/repeat-click.js +2 -2
  110. package/src/index.js +1 -1
  111. package/src/locale/format.js +1 -1
  112. package/src/mixins/migrating.js +1 -1
  113. package/src/transitions/collapse-transition.js +1 -1
  114. package/src/utils/clickoutside.js +1 -1
  115. package/src/utils/date-util.js +2 -2
  116. package/src/utils/popup/index.js +2 -2
  117. package/src/utils/popup/popup-manager.js +1 -1
  118. package/src/utils/util.js +1 -1
  119. package/src/utils/vdom.js +1 -1
  120. package/src/utils/vue-popper.js +1 -1
@@ -82,12 +82,349 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 91);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 73);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
98
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
+
100
+ "use strict";
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
115
+
116
+ /* istanbul ignore next */
117
+
118
+
119
+
120
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
124
+
125
+ /* istanbul ignore next */
126
+ var trim = function trim(string) {
127
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
+ };
129
+ /* istanbul ignore next */
130
+ var camelCase = function camelCase(name) {
131
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
+ return offset ? letter.toUpperCase() : letter;
133
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
+ };
135
+
136
+ /* istanbul ignore next */
137
+ var on = function () {
138
+ if (!isServer && document.addEventListener) {
139
+ return function (element, event, handler) {
140
+ if (element && event && handler) {
141
+ element.addEventListener(event, handler, false);
142
+ }
143
+ };
144
+ } else {
145
+ return function (element, event, handler) {
146
+ if (element && event && handler) {
147
+ element.attachEvent('on' + event, handler);
148
+ }
149
+ };
150
+ }
151
+ }();
152
+
153
+ /* istanbul ignore next */
154
+ var off = function () {
155
+ if (!isServer && document.removeEventListener) {
156
+ return function (element, event, handler) {
157
+ if (element && event) {
158
+ element.removeEventListener(event, handler, false);
159
+ }
160
+ };
161
+ } else {
162
+ return function (element, event, handler) {
163
+ if (element && event) {
164
+ element.detachEvent('on' + event, handler);
165
+ }
166
+ };
167
+ }
168
+ }();
169
+
170
+ /* istanbul ignore next */
171
+ var once = function once(el, event, fn) {
172
+ var listener = function listener() {
173
+ if (fn) {
174
+ fn.apply(this, arguments);
175
+ }
176
+ off(el, event, listener);
177
+ };
178
+ on(el, event, listener);
179
+ };
180
+
181
+ /* istanbul ignore next */
182
+ function hasClass(el, cls) {
183
+ if (!el || !cls) return false;
184
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
+ if (el.classList) {
186
+ return el.classList.contains(cls);
187
+ } else {
188
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
+ }
190
+ };
191
+
192
+ /* istanbul ignore next */
193
+ function addClass(el, cls) {
194
+ if (!el) return;
195
+ var curClass = el.className;
196
+ var classes = (cls || '').split(' ');
197
+
198
+ for (var i = 0, j = classes.length; i < j; i++) {
199
+ var clsName = classes[i];
200
+ if (!clsName) continue;
201
+
202
+ if (el.classList) {
203
+ el.classList.add(clsName);
204
+ } else if (!hasClass(el, clsName)) {
205
+ curClass += ' ' + clsName;
206
+ }
207
+ }
208
+ if (!el.classList) {
209
+ el.setAttribute('class', curClass);
210
+ }
211
+ };
212
+
213
+ /* istanbul ignore next */
214
+ function removeClass(el, cls) {
215
+ if (!el || !cls) return;
216
+ var classes = cls.split(' ');
217
+ var curClass = ' ' + el.className + ' ';
218
+
219
+ for (var i = 0, j = classes.length; i < j; i++) {
220
+ var clsName = classes[i];
221
+ if (!clsName) continue;
222
+
223
+ if (el.classList) {
224
+ el.classList.remove(clsName);
225
+ } else if (hasClass(el, clsName)) {
226
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
+ }
228
+ }
229
+ if (!el.classList) {
230
+ el.setAttribute('class', trim(curClass));
231
+ }
232
+ };
233
+
234
+ /* istanbul ignore next */
235
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
236
+ if (isServer) return;
237
+ if (!element || !styleName) return null;
238
+ styleName = camelCase(styleName);
239
+ if (styleName === 'float') {
240
+ styleName = 'styleFloat';
241
+ }
242
+ try {
243
+ switch (styleName) {
244
+ case 'opacity':
245
+ try {
246
+ return element.filters.item('alpha').opacity / 100;
247
+ } catch (e) {
248
+ return 1.0;
249
+ }
250
+ default:
251
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
+ }
253
+ } catch (e) {
254
+ return element.style[styleName];
255
+ }
256
+ } : function (element, styleName) {
257
+ if (isServer) return;
258
+ if (!element || !styleName) return null;
259
+ styleName = camelCase(styleName);
260
+ if (styleName === 'float') {
261
+ styleName = 'cssFloat';
262
+ }
263
+ try {
264
+ var computed = document.defaultView.getComputedStyle(element, '');
265
+ return element.style[styleName] || computed ? computed[styleName] : null;
266
+ } catch (e) {
267
+ return element.style[styleName];
268
+ }
269
+ };
270
+
271
+ /* istanbul ignore next */
272
+ function setStyle(element, styleName, value) {
273
+ if (!element || !styleName) return;
274
+
275
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
+ for (var prop in styleName) {
277
+ if (styleName.hasOwnProperty(prop)) {
278
+ setStyle(element, prop, styleName[prop]);
279
+ }
280
+ }
281
+ } else {
282
+ styleName = camelCase(styleName);
283
+ if (styleName === 'opacity' && ieVersion < 9) {
284
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
+ } else {
286
+ element.style[styleName] = value;
287
+ }
288
+ }
289
+ };
290
+
291
+ var isScroll = function isScroll(el, vertical) {
292
+ if (isServer) return;
293
+
294
+ var determinedDirection = vertical !== null && vertical !== undefined;
295
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
296
+
297
+ return overflow.match(/(scroll|auto|overlay)/);
298
+ };
299
+
300
+ var getScrollContainer = function getScrollContainer(el, vertical) {
301
+ if (isServer) return;
302
+
303
+ var parent = el;
304
+ while (parent) {
305
+ if ([window, document, document.documentElement].includes(parent)) {
306
+ return window;
307
+ }
308
+ if (isScroll(parent, vertical)) {
309
+ return parent;
310
+ }
311
+ parent = parent.parentNode;
312
+ }
313
+
314
+ return parent;
315
+ };
316
+
317
+ var isInContainer = function isInContainer(el, container) {
318
+ if (isServer || !el || !container) return false;
319
+
320
+ var elRect = el.getBoundingClientRect();
321
+ var containerRect = void 0;
322
+
323
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
+ containerRect = {
325
+ top: 0,
326
+ right: window.innerWidth,
327
+ bottom: window.innerHeight,
328
+ left: 0
329
+ };
330
+ } else {
331
+ containerRect = container.getBoundingClientRect();
332
+ }
333
+
334
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
+ };
336
+
337
+ /***/ }),
338
+
339
+ /***/ 12:
340
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
+
342
+ "use strict";
343
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
344
+
345
+ /**
346
+ * Show migrating guide in browser console.
347
+ *
348
+ * Usage:
349
+ * import Migrating from 'element-ui/src/mixins/migrating';
350
+ *
351
+ * mixins: [Migrating]
352
+ *
353
+ * add getMigratingConfig method for your component.
354
+ * getMigratingConfig() {
355
+ * return {
356
+ * props: {
357
+ * 'allow-no-selection': 'allow-no-selection is removed.',
358
+ * 'selection-mode': 'selection-mode is removed.'
359
+ * },
360
+ * events: {
361
+ * selectionchange: 'selectionchange is renamed to selection-change.'
362
+ * }
363
+ * };
364
+ * },
365
+ */
366
+ /* harmony default export */ __webpack_exports__["a"] = ({
367
+ mounted: function mounted() {
368
+ if (true) return;
369
+ if (!this.$vnode) return;
370
+
371
+ var _getMigratingConfig = this.getMigratingConfig(),
372
+ _getMigratingConfig$p = _getMigratingConfig.props,
373
+ props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
374
+ _getMigratingConfig$e = _getMigratingConfig.events,
375
+ events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
376
+
377
+ var _$vnode = this.$vnode,
378
+ data = _$vnode.data,
379
+ componentOptions = _$vnode.componentOptions;
380
+
381
+ var definedProps = data.attrs || {};
382
+ var definedEvents = componentOptions.listeners || {};
383
+
384
+ for (var propName in definedProps) {
385
+ propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
386
+ if (props[propName]) {
387
+ console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
388
+ }
389
+ }
390
+
391
+ for (var eventName in definedEvents) {
392
+ eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
393
+ if (events[eventName]) {
394
+ console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
395
+ }
396
+ }
397
+ },
398
+
399
+ methods: {
400
+ getMigratingConfig: function getMigratingConfig() {
401
+ return {
402
+ props: {},
403
+ events: {}
404
+ };
405
+ }
406
+ }
407
+ });
408
+
409
+ /***/ }),
410
+
411
+ /***/ 18:
412
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
413
+
414
+ "use strict";
415
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDef; });
416
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isKorean; });
417
+ function isDef(val) {
418
+ return val !== undefined && val !== null;
419
+ }
420
+ function isKorean(text) {
421
+ var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
422
+ return reg.test(text);
423
+ }
424
+
425
+ /***/ }),
426
+
427
+ /***/ 2:
91
428
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
429
 
93
430
  "use strict";
@@ -192,28 +529,1128 @@ function normalizeComponent(
192
529
 
193
530
  /***/ }),
194
531
 
195
- /***/ 10:
196
- /***/ (function(module, exports) {
532
+ /***/ 20:
533
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
534
+
535
+ "use strict";
536
+ // ESM COMPAT FLAG
537
+ __webpack_require__.r(__webpack_exports__);
538
+
539
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=af7512c8
540
+ var render = function render() {
541
+ var _vm = this,
542
+ _c = _vm._self._c
543
+ return _c(
544
+ "div",
545
+ {
546
+ class: [
547
+ _vm.type === "textarea" ? "el-textarea" : "el-input",
548
+ _vm.inputSize ? "el-input--" + _vm.inputSize : "",
549
+ {
550
+ "is-disabled": _vm.inputDisabled,
551
+ "is-exceed": _vm.inputExceed,
552
+ "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
553
+ "el-input-group--append": _vm.$slots.append,
554
+ "el-input-group--prepend": _vm.$slots.prepend,
555
+ "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
556
+ "el-input--suffix":
557
+ _vm.$slots.suffix ||
558
+ _vm.suffixIcon ||
559
+ _vm.clearable ||
560
+ _vm.showPassword,
561
+ },
562
+ ],
563
+ on: {
564
+ mouseenter: function ($event) {
565
+ _vm.hovering = true
566
+ },
567
+ mouseleave: function ($event) {
568
+ _vm.hovering = false
569
+ },
570
+ },
571
+ },
572
+ [
573
+ _vm.type !== "textarea"
574
+ ? [
575
+ _vm.$slots.prepend
576
+ ? _c(
577
+ "div",
578
+ { staticClass: "el-input-group__prepend" },
579
+ [_vm._t("prepend")],
580
+ 2
581
+ )
582
+ : _vm._e(),
583
+ _vm.type !== "textarea"
584
+ ? _c(
585
+ "input",
586
+ _vm._b(
587
+ {
588
+ ref: "input",
589
+ staticClass: "el-input__inner",
590
+ attrs: {
591
+ tabindex: _vm.tabindex,
592
+ type: _vm.showPassword
593
+ ? _vm.passwordVisible
594
+ ? "text"
595
+ : "password"
596
+ : _vm.type,
597
+ disabled: _vm.inputDisabled,
598
+ readonly: _vm.readonly,
599
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
600
+ "aria-label": _vm.label,
601
+ },
602
+ on: {
603
+ compositionstart: _vm.handleCompositionStart,
604
+ compositionupdate: _vm.handleCompositionUpdate,
605
+ compositionend: _vm.handleCompositionEnd,
606
+ input: _vm.handleInput,
607
+ focus: _vm.handleFocus,
608
+ blur: _vm.handleBlur,
609
+ change: _vm.handleChange,
610
+ },
611
+ },
612
+ "input",
613
+ _vm.$attrs,
614
+ false
615
+ )
616
+ )
617
+ : _vm._e(),
618
+ _vm.$slots.prefix || _vm.prefixIcon
619
+ ? _c(
620
+ "span",
621
+ { staticClass: "el-input__prefix" },
622
+ [
623
+ _vm._t("prefix"),
624
+ _vm.prefixIcon
625
+ ? _c("i", {
626
+ staticClass: "el-input__icon",
627
+ class: _vm.prefixIcon,
628
+ })
629
+ : _vm._e(),
630
+ ],
631
+ 2
632
+ )
633
+ : _vm._e(),
634
+ _vm.getSuffixVisible()
635
+ ? _c("span", { staticClass: "el-input__suffix" }, [
636
+ _c(
637
+ "span",
638
+ { staticClass: "el-input__suffix-inner" },
639
+ [
640
+ !_vm.showClear ||
641
+ !_vm.showPwdVisible ||
642
+ !_vm.isWordLimitVisible
643
+ ? [
644
+ _vm._t("suffix"),
645
+ _vm.suffixIcon
646
+ ? _c("i", {
647
+ staticClass: "el-input__icon",
648
+ class: _vm.suffixIcon,
649
+ })
650
+ : _vm._e(),
651
+ ]
652
+ : _vm._e(),
653
+ _vm.showClear
654
+ ? _c("i", {
655
+ staticClass:
656
+ "el-input__icon el-icon-circle-close el-input__clear",
657
+ on: {
658
+ mousedown: function ($event) {
659
+ $event.preventDefault()
660
+ },
661
+ click: _vm.clear,
662
+ },
663
+ })
664
+ : _vm._e(),
665
+ _vm.showPwdVisible
666
+ ? _c("i", {
667
+ staticClass:
668
+ "el-input__icon el-icon-view el-input__clear",
669
+ on: { click: _vm.handlePasswordVisible },
670
+ })
671
+ : _vm._e(),
672
+ _vm.isWordLimitVisible
673
+ ? _c("span", { staticClass: "el-input__count" }, [
674
+ _c(
675
+ "span",
676
+ { staticClass: "el-input__count-inner" },
677
+ [
678
+ _vm._v(
679
+ "\n\t\t\t\t\t\t" +
680
+ _vm._s(_vm.textLength) +
681
+ "/" +
682
+ _vm._s(_vm.upperLimit) +
683
+ "\n\t\t\t\t\t"
684
+ ),
685
+ ]
686
+ ),
687
+ ])
688
+ : _vm._e(),
689
+ ],
690
+ 2
691
+ ),
692
+ _vm.validateState
693
+ ? _c("i", {
694
+ staticClass: "el-input__icon",
695
+ class: ["el-input__validateIcon", _vm.validateIcon],
696
+ })
697
+ : _vm._e(),
698
+ ])
699
+ : _vm._e(),
700
+ _vm.$slots.append
701
+ ? _c(
702
+ "div",
703
+ { staticClass: "el-input-group__append" },
704
+ [_vm._t("append")],
705
+ 2
706
+ )
707
+ : _vm._e(),
708
+ ]
709
+ : _c(
710
+ "textarea",
711
+ _vm._b(
712
+ {
713
+ ref: "textarea",
714
+ staticClass: "el-textarea__inner",
715
+ style: _vm.textareaStyle,
716
+ attrs: {
717
+ tabindex: _vm.tabindex,
718
+ disabled: _vm.inputDisabled,
719
+ readonly: _vm.readonly,
720
+ autocomplete: _vm.autoComplete || _vm.autocomplete,
721
+ "aria-label": _vm.label,
722
+ },
723
+ on: {
724
+ compositionstart: _vm.handleCompositionStart,
725
+ compositionupdate: _vm.handleCompositionUpdate,
726
+ compositionend: _vm.handleCompositionEnd,
727
+ input: _vm.handleInput,
728
+ focus: _vm.handleFocus,
729
+ blur: _vm.handleBlur,
730
+ change: _vm.handleChange,
731
+ },
732
+ },
733
+ "textarea",
734
+ _vm.$attrs,
735
+ false
736
+ )
737
+ ),
738
+ _vm.isWordLimitVisible && _vm.type === "textarea"
739
+ ? _c("span", { staticClass: "el-input__count" }, [
740
+ _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
741
+ ])
742
+ : _vm._e(),
743
+ ],
744
+ 2
745
+ )
746
+ }
747
+ var staticRenderFns = []
748
+ render._withStripped = true
749
+
750
+
751
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=af7512c8
752
+
753
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
754
+ var emitter = __webpack_require__(6);
755
+
756
+ // EXTERNAL MODULE: ./src/mixins/migrating.js
757
+ var migrating = __webpack_require__(12);
758
+
759
+ // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
760
+ var hiddenTextarea = void 0;
761
+
762
+ var HIDDEN_STYLE = '\n\theight:0 !important;\n\tvisibility:hidden !important;\n\toverflow:hidden !important;\n\tposition:absolute !important;\n\tz-index:-1000 !important;\n\ttop:0 !important;\n\tright:0 !important\n';
763
+
764
+ var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
765
+
766
+ function calculateNodeStyling(targetElement) {
767
+ var style = window.getComputedStyle(targetElement);
768
+
769
+ var boxSizing = style.getPropertyValue('box-sizing');
770
+
771
+ var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
772
+
773
+ var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
774
+
775
+ var contextStyle = CONTEXT_STYLE.map(function (name) {
776
+ return name + ':' + style.getPropertyValue(name);
777
+ }).join(';');
778
+
779
+ return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
780
+ }
781
+
782
+ function calcTextareaHeight(targetElement) {
783
+ var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
784
+ var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
785
+
786
+ if (!hiddenTextarea) {
787
+ hiddenTextarea = document.createElement('textarea');
788
+ document.body.appendChild(hiddenTextarea);
789
+ }
790
+
791
+ var _calculateNodeStyling = calculateNodeStyling(targetElement),
792
+ paddingSize = _calculateNodeStyling.paddingSize,
793
+ borderSize = _calculateNodeStyling.borderSize,
794
+ boxSizing = _calculateNodeStyling.boxSizing,
795
+ contextStyle = _calculateNodeStyling.contextStyle;
796
+
797
+ hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
798
+ hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
799
+
800
+ var height = hiddenTextarea.scrollHeight;
801
+ var result = {};
802
+
803
+ if (boxSizing === 'border-box') {
804
+ height = height + borderSize;
805
+ } else if (boxSizing === 'content-box') {
806
+ height = height - paddingSize;
807
+ }
808
+
809
+ hiddenTextarea.value = '';
810
+ var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
811
+
812
+ if (minRows !== null) {
813
+ var minHeight = singleRowHeight * minRows;
814
+ if (boxSizing === 'border-box') {
815
+ minHeight = minHeight + paddingSize + borderSize;
816
+ }
817
+ height = Math.max(minHeight, height);
818
+ result.minHeight = minHeight + 'px';
819
+ }
820
+ if (maxRows !== null) {
821
+ var maxHeight = singleRowHeight * maxRows;
822
+ if (boxSizing === 'border-box') {
823
+ maxHeight = maxHeight + paddingSize + borderSize;
824
+ }
825
+ height = Math.min(maxHeight, height);
826
+ }
827
+ result.height = height + 'px';
828
+ hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
829
+ hiddenTextarea = null;
830
+ return result;
831
+ };
832
+ // EXTERNAL MODULE: ./src/utils/merge.js
833
+ var merge = __webpack_require__(7);
834
+
835
+ // EXTERNAL MODULE: ./src/utils/shared.js
836
+ var shared = __webpack_require__(18);
837
+
838
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+ /* harmony default export */ var inputvue_type_script_lang_js = ({
847
+ name: 'ElInput',
848
+
849
+ componentName: 'ElInput',
850
+
851
+ mixins: [emitter["a" /* default */], migrating["a" /* default */]],
852
+
853
+ inheritAttrs: false,
854
+
855
+ inject: {
856
+ elForm: {
857
+ default: ''
858
+ },
859
+ elFormItem: {
860
+ default: ''
861
+ }
862
+ },
863
+
864
+ data: function data() {
865
+ return {
866
+ textareaCalcStyle: {},
867
+ hovering: false,
868
+ focused: false,
869
+ isComposing: false,
870
+ passwordVisible: false
871
+ };
872
+ },
873
+
874
+
875
+ props: {
876
+ value: [String, Number],
877
+ size: String,
878
+ resize: String,
879
+ form: String,
880
+ disabled: Boolean,
881
+ readonly: Boolean,
882
+ type: {
883
+ type: String,
884
+ default: 'text'
885
+ },
886
+ autosize: {
887
+ type: [Boolean, Object],
888
+ default: false
889
+ },
890
+ autocomplete: {
891
+ type: String,
892
+ default: 'off'
893
+ },
894
+ /** @Deprecated in next major version */
895
+ autoComplete: {
896
+ type: String,
897
+ validator: function validator(val) {
898
+ false && false;
899
+ return true;
900
+ }
901
+ },
902
+ validateEvent: {
903
+ type: Boolean,
904
+ default: true
905
+ },
906
+ suffixIcon: String,
907
+ prefixIcon: String,
908
+ label: String,
909
+ clearable: {
910
+ type: Boolean,
911
+ default: false
912
+ },
913
+ showPassword: {
914
+ type: Boolean,
915
+ default: false
916
+ },
917
+ showWordLimit: {
918
+ type: Boolean,
919
+ default: false
920
+ },
921
+ tabindex: String
922
+ },
923
+
924
+ computed: {
925
+ _elFormItemSize: function _elFormItemSize() {
926
+ return (this.elFormItem || {}).elFormItemSize;
927
+ },
928
+ validateState: function validateState() {
929
+ return this.elFormItem ? this.elFormItem.validateState : '';
930
+ },
931
+ needStatusIcon: function needStatusIcon() {
932
+ return this.elForm ? this.elForm.statusIcon : false;
933
+ },
934
+ validateIcon: function validateIcon() {
935
+ return {
936
+ validating: 'el-icon-loading',
937
+ success: 'el-icon-circle-check',
938
+ error: 'el-icon-circle-close'
939
+ }[this.validateState];
940
+ },
941
+ textareaStyle: function textareaStyle() {
942
+ return Object(merge["a" /* default */])({}, this.textareaCalcStyle, { resize: this.resize });
943
+ },
944
+ inputSize: function inputSize() {
945
+ return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
946
+ },
947
+ inputDisabled: function inputDisabled() {
948
+ return this.disabled || (this.elForm || {}).disabled;
949
+ },
950
+ nativeInputValue: function nativeInputValue() {
951
+ return this.value === null || this.value === undefined ? '' : String(this.value);
952
+ },
953
+ showClear: function showClear() {
954
+ return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
955
+ },
956
+ showPwdVisible: function showPwdVisible() {
957
+ return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
958
+ },
959
+ isWordLimitVisible: function isWordLimitVisible() {
960
+ return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
961
+ },
962
+ upperLimit: function upperLimit() {
963
+ return this.$attrs.maxlength;
964
+ },
965
+ textLength: function textLength() {
966
+ if (typeof this.value === 'number') {
967
+ return String(this.value).length;
968
+ }
969
+
970
+ return (this.value || '').length;
971
+ },
972
+ inputExceed: function inputExceed() {
973
+ // show exceed style if length of initial value greater then maxlength
974
+ return this.isWordLimitVisible && this.textLength > this.upperLimit;
975
+ }
976
+ },
977
+
978
+ watch: {
979
+ value: function value(val) {
980
+ this.$nextTick(this.resizeTextarea);
981
+ if (this.validateEvent) {
982
+ this.dispatch('ElFormItem', 'el.form.change', [val]);
983
+ }
984
+ },
985
+
986
+ // native input value is set explicitly
987
+ // do not use v-model / :value in template
988
+ // see: https://github.com/ElemeFE/element/issues/14521
989
+ nativeInputValue: function nativeInputValue() {
990
+ this.setNativeInputValue();
991
+ },
992
+
993
+ // when change between <input> and <textarea>,
994
+ // update DOM dependent value and styles
995
+ // https://github.com/ElemeFE/element/issues/14857
996
+ type: function type() {
997
+ var _this = this;
998
+
999
+ this.$nextTick(function () {
1000
+ _this.setNativeInputValue();
1001
+ _this.resizeTextarea();
1002
+ _this.updateIconOffset();
1003
+ });
1004
+ }
1005
+ },
1006
+
1007
+ methods: {
1008
+ focus: function focus() {
1009
+ this.getInput().focus();
1010
+ },
1011
+ blur: function blur() {
1012
+ this.getInput().blur();
1013
+ },
1014
+ getMigratingConfig: function getMigratingConfig() {
1015
+ return {
1016
+ props: {
1017
+ 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
1018
+ 'on-icon-click': 'on-icon-click is removed.'
1019
+ },
1020
+ events: {
1021
+ 'click': 'click is removed.'
1022
+ }
1023
+ };
1024
+ },
1025
+ handleBlur: function handleBlur(event) {
1026
+ this.focused = false;
1027
+ this.$emit('blur', event);
1028
+ if (this.validateEvent) {
1029
+ this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
1030
+ }
1031
+ },
1032
+ select: function select() {
1033
+ this.getInput().select();
1034
+ },
1035
+ resizeTextarea: function resizeTextarea() {
1036
+ if (this.$isServer) return;
1037
+ var autosize = this.autosize,
1038
+ type = this.type;
1039
+
1040
+ if (type !== 'textarea') return;
1041
+ if (!autosize) {
1042
+ this.textareaCalcStyle = {
1043
+ minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
1044
+ };
1045
+ return;
1046
+ }
1047
+ var minRows = autosize.minRows;
1048
+ var maxRows = autosize.maxRows;
1049
+
1050
+ this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
1051
+ },
1052
+ setNativeInputValue: function setNativeInputValue() {
1053
+ var input = this.getInput();
1054
+ if (!input) return;
1055
+ if (input.value === this.nativeInputValue) return;
1056
+ input.value = this.nativeInputValue;
1057
+ },
1058
+ handleFocus: function handleFocus(event) {
1059
+ this.focused = true;
1060
+ this.$emit('focus', event);
1061
+ },
1062
+ handleCompositionStart: function handleCompositionStart(event) {
1063
+ this.$emit('compositionstart', event);
1064
+ this.isComposing = true;
1065
+ },
1066
+ handleCompositionUpdate: function handleCompositionUpdate(event) {
1067
+ this.$emit('compositionupdate', event);
1068
+ var text = event.target.value;
1069
+ var lastCharacter = text[text.length - 1] || '';
1070
+ this.isComposing = !Object(shared["b" /* isKorean */])(lastCharacter);
1071
+ },
1072
+ handleCompositionEnd: function handleCompositionEnd(event) {
1073
+ this.$emit('compositionend', event);
1074
+ if (this.isComposing) {
1075
+ this.isComposing = false;
1076
+ this.handleInput(event);
1077
+ }
1078
+ },
1079
+ handleInput: function handleInput(event) {
1080
+ // should not emit input during composition
1081
+ // see: https://github.com/ElemeFE/element/issues/10516
1082
+ if (this.isComposing) return;
1083
+
1084
+ // hack for https://github.com/ElemeFE/element/issues/8548
1085
+ // should remove the following line when we don't support IE
1086
+ if (event.target.value === this.nativeInputValue) return;
1087
+
1088
+ this.$emit('input', event.target.value);
1089
+
1090
+ // ensure native input value is controlled
1091
+ // see: https://github.com/ElemeFE/element/issues/12850
1092
+ this.$nextTick(this.setNativeInputValue);
1093
+ },
1094
+ handleChange: function handleChange(event) {
1095
+ this.$emit('change', event.target.value);
1096
+ },
1097
+ calcIconOffset: function calcIconOffset(place) {
1098
+ var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
1099
+ if (!elList.length) return;
1100
+ var el = null;
1101
+ for (var i = 0; i < elList.length; i++) {
1102
+ if (elList[i].parentNode === this.$el) {
1103
+ el = elList[i];
1104
+ break;
1105
+ }
1106
+ }
1107
+ if (!el) return;
1108
+ var pendantMap = {
1109
+ suffix: 'append',
1110
+ prefix: 'prepend'
1111
+ };
1112
+
1113
+ var pendant = pendantMap[place];
1114
+ if (this.$slots[pendant]) {
1115
+ el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
1116
+ } else {
1117
+ el.removeAttribute('style');
1118
+ }
1119
+ },
1120
+ updateIconOffset: function updateIconOffset() {
1121
+ this.calcIconOffset('prefix');
1122
+ this.calcIconOffset('suffix');
1123
+ },
1124
+ clear: function clear() {
1125
+ this.$emit('input', '');
1126
+ this.$emit('change', '');
1127
+ this.$emit('clear');
1128
+ },
1129
+ handlePasswordVisible: function handlePasswordVisible() {
1130
+ var _this2 = this;
1131
+
1132
+ this.passwordVisible = !this.passwordVisible;
1133
+ this.$nextTick(function () {
1134
+ _this2.focus();
1135
+ });
1136
+ },
1137
+ getInput: function getInput() {
1138
+ return this.$refs.input || this.$refs.textarea;
1139
+ },
1140
+ getSuffixVisible: function getSuffixVisible() {
1141
+ return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
1142
+ }
1143
+ },
1144
+
1145
+ created: function created() {
1146
+ this.$on('inputSelect', this.select);
1147
+ },
1148
+ mounted: function mounted() {
1149
+ this.setNativeInputValue();
1150
+ this.resizeTextarea();
1151
+ this.updateIconOffset();
1152
+ },
1153
+ updated: function updated() {
1154
+ this.$nextTick(this.updateIconOffset);
1155
+ }
1156
+ });
1157
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
1158
+ /* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
1159
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1160
+ var componentNormalizer = __webpack_require__(2);
1161
+
1162
+ // CONCATENATED MODULE: ./packages/input/src/input.vue
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+ /* normalize component */
1169
+
1170
+ var component = Object(componentNormalizer["a" /* default */])(
1171
+ src_inputvue_type_script_lang_js,
1172
+ render,
1173
+ staticRenderFns,
1174
+ false,
1175
+ null,
1176
+ null,
1177
+ null
1178
+
1179
+ )
1180
+
1181
+ /* harmony default export */ var input = (component.exports);
1182
+ // CONCATENATED MODULE: ./packages/input/index.js
1183
+
1184
+
1185
+ /* istanbul ignore next */
1186
+ input.install = function (Vue) {
1187
+ Vue.component(input.name, input);
1188
+ };
197
1189
 
198
- module.exports = require("element-ui/packages/input");
1190
+ /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
199
1191
 
200
1192
  /***/ }),
201
1193
 
202
- /***/ 22:
203
- /***/ (function(module, exports) {
1194
+ /***/ 3:
1195
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1196
+
1197
+ "use strict";
1198
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
1199
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
1200
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
1201
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
1202
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
1203
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
1204
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
1205
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
1206
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
1207
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
1208
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
1209
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
1210
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
1211
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
1212
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
1213
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
1214
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
1215
+ /* unused harmony export looseEqual */
1216
+ /* unused harmony export arrayEquals */
1217
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
1218
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
1219
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
1220
+ /* unused harmony export objToArray */
1221
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
1222
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1223
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1224
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1225
+ 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; };
1226
+
1227
+
1228
+
1229
+
1230
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
1231
+
1232
+ function noop() {};
1233
+
1234
+ function hasOwn(obj, key) {
1235
+ return hasOwnProperty.call(obj, key);
1236
+ };
1237
+
1238
+ function extend(to, _from) {
1239
+ for (var key in _from) {
1240
+ to[key] = _from[key];
1241
+ }
1242
+ return to;
1243
+ };
1244
+
1245
+ function toObject(arr) {
1246
+ var res = {};
1247
+ for (var i = 0; i < arr.length; i++) {
1248
+ if (arr[i]) {
1249
+ extend(res, arr[i]);
1250
+ }
1251
+ }
1252
+ return res;
1253
+ };
1254
+
1255
+ var getValueByPath = function getValueByPath(object, prop) {
1256
+ prop = prop || '';
1257
+ var paths = prop.split('.');
1258
+ var current = object;
1259
+ var result = null;
1260
+ for (var i = 0, j = paths.length; i < j; i++) {
1261
+ var path = paths[i];
1262
+ if (!current) break;
1263
+
1264
+ if (i === j - 1) {
1265
+ result = current[path];
1266
+ break;
1267
+ }
1268
+ current = current[path];
1269
+ }
1270
+ return result;
1271
+ };
1272
+
1273
+ function getPropByPath(obj, path, strict) {
1274
+ var tempObj = obj;
1275
+ path = path.replace(/\[(\w+)\]/g, '.$1');
1276
+ path = path.replace(/^\./, '');
1277
+
1278
+ var keyArr = path.split('.');
1279
+ var i = 0;
1280
+ for (var len = keyArr.length; i < len - 1; ++i) {
1281
+ if (!tempObj && !strict) break;
1282
+ var key = keyArr[i];
1283
+ if (key in tempObj) {
1284
+ tempObj = tempObj[key];
1285
+ } else {
1286
+ if (strict) {
1287
+ throw new Error('please transfer a valid prop path to form item!');
1288
+ }
1289
+ break;
1290
+ }
1291
+ }
1292
+ return {
1293
+ o: tempObj,
1294
+ k: keyArr[i],
1295
+ v: tempObj ? tempObj[keyArr[i]] : null
1296
+ };
1297
+ };
1298
+
1299
+ var generateId = function generateId() {
1300
+ return Math.floor(Math.random() * 10000);
1301
+ };
1302
+
1303
+ var valueEquals = function valueEquals(a, b) {
1304
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
1305
+ if (a === b) return true;
1306
+ if (!(a instanceof Array)) return false;
1307
+ if (!(b instanceof Array)) return false;
1308
+ if (a.length !== b.length) return false;
1309
+ for (var i = 0; i !== a.length; ++i) {
1310
+ if (a[i] !== b[i]) return false;
1311
+ }
1312
+ return true;
1313
+ };
1314
+
1315
+ var escapeRegexpString = function escapeRegexpString() {
1316
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
1317
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
1318
+ };
1319
+
1320
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
1321
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
1322
+ for (var i = 0; i !== arr.length; ++i) {
1323
+ if (pred(arr[i])) {
1324
+ return i;
1325
+ }
1326
+ }
1327
+ return -1;
1328
+ };
1329
+
1330
+ var arrayFind = function arrayFind(arr, pred) {
1331
+ var idx = arrayFindIndex(arr, pred);
1332
+ return idx !== -1 ? arr[idx] : undefined;
1333
+ };
1334
+
1335
+ // coerce truthy value to array
1336
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
1337
+ if (Array.isArray(val)) {
1338
+ return val;
1339
+ } else if (val) {
1340
+ return [val];
1341
+ } else {
1342
+ return [];
1343
+ }
1344
+ };
1345
+
1346
+ var isIE = function isIE() {
1347
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
1348
+ };
1349
+
1350
+ var isEdge = function isEdge() {
1351
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
1352
+ };
1353
+
1354
+ var isFirefox = function isFirefox() {
1355
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
1356
+ };
1357
+
1358
+ var autoprefixer = function autoprefixer(style) {
1359
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
1360
+ var rules = ['transform', 'transition', 'animation'];
1361
+ var prefixes = ['ms-', 'webkit-'];
1362
+ rules.forEach(function (rule) {
1363
+ var value = style[rule];
1364
+ if (rule && value) {
1365
+ prefixes.forEach(function (prefix) {
1366
+ style[prefix + rule] = value;
1367
+ });
1368
+ }
1369
+ });
1370
+ return style;
1371
+ };
1372
+
1373
+ var kebabCase = function kebabCase(str) {
1374
+ var hyphenateRE = /([^-])([A-Z])/g;
1375
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
1376
+ };
1377
+
1378
+ var capitalize = function capitalize(str) {
1379
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
1380
+ return str.charAt(0).toUpperCase() + str.slice(1);
1381
+ };
1382
+
1383
+ var looseEqual = function looseEqual(a, b) {
1384
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
1385
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
1386
+ if (isObjectA && isObjectB) {
1387
+ return JSON.stringify(a) === JSON.stringify(b);
1388
+ } else if (!isObjectA && !isObjectB) {
1389
+ return String(a) === String(b);
1390
+ } else {
1391
+ return false;
1392
+ }
1393
+ };
1394
+
1395
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
1396
+ arrayA = arrayA || [];
1397
+ arrayB = arrayB || [];
1398
+
1399
+ if (arrayA.length !== arrayB.length) {
1400
+ return false;
1401
+ }
1402
+
1403
+ for (var i = 0; i < arrayA.length; i++) {
1404
+ if (!looseEqual(arrayA[i], arrayB[i])) {
1405
+ return false;
1406
+ }
1407
+ }
1408
+
1409
+ return true;
1410
+ };
1411
+
1412
+ var isEqual = function isEqual(value1, value2) {
1413
+ if (Array.isArray(value1) && Array.isArray(value2)) {
1414
+ return arrayEquals(value1, value2);
1415
+ }
1416
+ return looseEqual(value1, value2);
1417
+ };
1418
+
1419
+ var isEmpty = function isEmpty(val) {
1420
+ // null or undefined
1421
+ if (val == null) return true;
1422
+
1423
+ if (typeof val === 'boolean') return false;
1424
+
1425
+ if (typeof val === 'number') return !val;
1426
+
1427
+ if (val instanceof Error) return val.message === '';
1428
+
1429
+ switch (Object.prototype.toString.call(val)) {
1430
+ // String or Array
1431
+ case '[object String]':
1432
+ case '[object Array]':
1433
+ return !val.length;
1434
+
1435
+ // Map or Set or File
1436
+ case '[object File]':
1437
+ case '[object Map]':
1438
+ case '[object Set]':
1439
+ {
1440
+ return !val.size;
1441
+ }
1442
+ // Plain Object
1443
+ case '[object Object]':
1444
+ {
1445
+ return !Object.keys(val).length;
1446
+ }
1447
+ }
1448
+
1449
+ return false;
1450
+ };
1451
+
1452
+ function rafThrottle(fn) {
1453
+ var locked = false;
1454
+ return function () {
1455
+ var _this = this;
1456
+
1457
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
1458
+ args[_key] = arguments[_key];
1459
+ }
204
1460
 
205
- module.exports = require("element-ui/src/mixins/focus");
1461
+ if (locked) return;
1462
+ locked = true;
1463
+ window.requestAnimationFrame(function (_) {
1464
+ fn.apply(_this, args);
1465
+ locked = false;
1466
+ });
1467
+ };
1468
+ }
1469
+
1470
+ function objToArray(obj) {
1471
+ if (Array.isArray(obj)) {
1472
+ return obj;
1473
+ }
1474
+ return isEmpty(obj) ? [] : [obj];
1475
+ }
1476
+
1477
+ var isMac = function isMac() {
1478
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
1479
+ };
206
1480
 
207
1481
  /***/ }),
208
1482
 
209
- /***/ 30:
210
- /***/ (function(module, exports) {
1483
+ /***/ 32:
1484
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1485
+
1486
+ "use strict";
1487
+ /* harmony default export */ __webpack_exports__["a"] = (function (ref) {
1488
+ return {
1489
+ methods: {
1490
+ focus: function focus() {
1491
+ this.$refs[ref].focus();
1492
+ }
1493
+ }
1494
+ };
1495
+ });;
1496
+
1497
+ /***/ }),
1498
+
1499
+ /***/ 36:
1500
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1501
+
1502
+ "use strict";
1503
+ /* harmony import */ var _utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
1504
+ /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
1505
+
1506
+
1507
+
1508
+ /* harmony default export */ __webpack_exports__["a"] = ({
1509
+ bind: function bind(el, binding, vnode) {
1510
+ var interval = null;
1511
+ var startTime = void 0;
1512
+ var maxIntervals = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* isMac */ "p"])() ? 100 : 200;
1513
+ var handler = function handler() {
1514
+ return vnode.context[binding.expression].apply();
1515
+ };
1516
+ var clear = function clear() {
1517
+ if (Date.now() - startTime < maxIntervals) {
1518
+ handler();
1519
+ }
1520
+ clearInterval(interval);
1521
+ interval = null;
1522
+ };
1523
+
1524
+ Object(_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* on */ "g"])(el, 'mousedown', function (e) {
1525
+ if (e.button !== 0) return;
1526
+ startTime = Date.now();
1527
+ Object(_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* once */ "h"])(document, 'mouseup', clear);
1528
+ clearInterval(interval);
1529
+ interval = setInterval(handler, maxIntervals);
1530
+ });
1531
+ }
1532
+ });
1533
+
1534
+ /***/ }),
1535
+
1536
+ /***/ 4:
1537
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1538
+
1539
+ "use strict";
1540
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
1541
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
1542
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
1543
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
1544
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
1545
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
1546
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1547
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1548
+ 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; };
1549
+
1550
+
1551
+
1552
+ function isString(obj) {
1553
+ return Object.prototype.toString.call(obj) === '[object String]';
1554
+ }
1555
+
1556
+ function isObject(obj) {
1557
+ return Object.prototype.toString.call(obj) === '[object Object]';
1558
+ }
1559
+
1560
+ function isHtmlElement(node) {
1561
+ return node && node.nodeType === Node.ELEMENT_NODE;
1562
+ }
1563
+
1564
+ /**
1565
+ * - Inspired:
1566
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
1567
+ */
1568
+ var isFunction = function isFunction(functionToCheck) {
1569
+ var getType = {};
1570
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
1571
+ };
1572
+
1573
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
1574
+ isFunction = function isFunction(obj) {
1575
+ return typeof obj === 'function' || false;
1576
+ };
1577
+ }
1578
+
1579
+
1580
+
1581
+ var isUndefined = function isUndefined(val) {
1582
+ return val === void 0;
1583
+ };
1584
+
1585
+ var isDefined = function isDefined(val) {
1586
+ return val !== undefined && val !== null;
1587
+ };
1588
+
1589
+ /***/ }),
1590
+
1591
+ /***/ 6:
1592
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1593
+
1594
+ "use strict";
1595
+ function _broadcast(componentName, eventName, params) {
1596
+ this.$children.forEach(function (child) {
1597
+ var name = child.$options.componentName;
1598
+
1599
+ if (name === componentName) {
1600
+ child.$emit.apply(child, [eventName].concat(params));
1601
+ } else {
1602
+ _broadcast.apply(child, [componentName, eventName].concat([params]));
1603
+ }
1604
+ });
1605
+ }
1606
+ /* harmony default export */ __webpack_exports__["a"] = ({
1607
+ methods: {
1608
+ dispatch: function dispatch(componentName, eventName, params) {
1609
+ var parent = this.$parent || this.$root;
1610
+ var name = parent.$options.componentName;
1611
+
1612
+ while (parent && (!name || name !== componentName)) {
1613
+ parent = parent.$parent;
1614
+
1615
+ if (parent) {
1616
+ name = parent.$options.componentName;
1617
+ }
1618
+ }
1619
+ if (parent) {
1620
+ parent.$emit.apply(parent, [eventName].concat(params));
1621
+ }
1622
+ },
1623
+ broadcast: function broadcast(componentName, eventName, params) {
1624
+ _broadcast.call(this, componentName, eventName, params);
1625
+ }
1626
+ }
1627
+ });
1628
+
1629
+ /***/ }),
1630
+
1631
+ /***/ 7:
1632
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1633
+
1634
+ "use strict";
1635
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
1636
+ for (var i = 1, j = arguments.length; i < j; i++) {
1637
+ var source = arguments[i] || {};
1638
+ for (var prop in source) {
1639
+ if (source.hasOwnProperty(prop)) {
1640
+ var value = source[prop];
1641
+ if (value !== undefined) {
1642
+ target[prop] = value;
1643
+ }
1644
+ }
1645
+ }
1646
+ }
211
1647
 
212
- module.exports = require("element-ui/src/directives/repeat-click");
1648
+ return target;
1649
+ });;
213
1650
 
214
1651
  /***/ }),
215
1652
 
216
- /***/ 91:
1653
+ /***/ 73:
217
1654
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
218
1655
 
219
1656
  "use strict";
@@ -363,17 +1800,14 @@ render._withStripped = true
363
1800
 
364
1801
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=8439d118
365
1802
 
366
- // EXTERNAL MODULE: external "element-ui/packages/input"
367
- var input_ = __webpack_require__(10);
368
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
1803
+ // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
1804
+ var input = __webpack_require__(20);
369
1805
 
370
- // EXTERNAL MODULE: external "element-ui/src/mixins/focus"
371
- var focus_ = __webpack_require__(22);
372
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
1806
+ // EXTERNAL MODULE: ./src/mixins/focus.js
1807
+ var mixins_focus = __webpack_require__(32);
373
1808
 
374
- // EXTERNAL MODULE: external "element-ui/src/directives/repeat-click"
375
- var repeat_click_ = __webpack_require__(30);
376
- var repeat_click_default = /*#__PURE__*/__webpack_require__.n(repeat_click_);
1809
+ // EXTERNAL MODULE: ./src/directives/repeat-click.js
1810
+ var repeat_click = __webpack_require__(36);
377
1811
 
378
1812
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=script&lang=js
379
1813
 
@@ -383,7 +1817,7 @@ var repeat_click_default = /*#__PURE__*/__webpack_require__.n(repeat_click_);
383
1817
 
384
1818
  /* harmony default export */ var input_numbervue_type_script_lang_js = ({
385
1819
  name: 'ElInputNumber',
386
- mixins: [focus_default()('input')],
1820
+ mixins: [Object(mixins_focus["a" /* default */])('input')],
387
1821
  inject: {
388
1822
  elForm: {
389
1823
  default: ''
@@ -393,10 +1827,10 @@ var repeat_click_default = /*#__PURE__*/__webpack_require__.n(repeat_click_);
393
1827
  }
394
1828
  },
395
1829
  directives: {
396
- repeatClick: repeat_click_default.a
1830
+ repeatClick: repeat_click["a" /* default */]
397
1831
  },
398
1832
  components: {
399
- ElInput: input_default.a
1833
+ ElInput: input["default"]
400
1834
  },
401
1835
  props: {
402
1836
  step: {
@@ -622,7 +2056,7 @@ var repeat_click_default = /*#__PURE__*/__webpack_require__.n(repeat_click_);
622
2056
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js
623
2057
  /* harmony default export */ var src_input_numbervue_type_script_lang_js = (input_numbervue_type_script_lang_js);
624
2058
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
625
- var componentNormalizer = __webpack_require__(0);
2059
+ var componentNormalizer = __webpack_require__(2);
626
2060
 
627
2061
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
628
2062