cy-element-ui 1.0.47 → 1.0.49

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 (303) hide show
  1. package/README.md +1 -1
  2. package/lib/alert.js +108 -108
  3. package/lib/aside.js +77 -77
  4. package/lib/autocomplete.js +5199 -360
  5. package/lib/avatar.js +4 -4
  6. package/lib/backtop.js +192 -101
  7. package/lib/badge.js +108 -108
  8. package/lib/breadcrumb-item.js +108 -108
  9. package/lib/breadcrumb.js +94 -94
  10. package/lib/button-group.js +4 -4
  11. package/lib/button.js +4 -4
  12. package/lib/calendar.js +1734 -137
  13. package/lib/card.js +96 -96
  14. package/lib/carousel-item.js +452 -108
  15. package/lib/carousel.js +1256 -105
  16. package/lib/cascader-panel.js +3524 -191
  17. package/lib/cascader.js +8077 -717
  18. package/lib/checkbox-button.js +151 -119
  19. package/lib/checkbox-group.js +47 -15
  20. package/lib/checkbox.js +47 -15
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +815 -110
  23. package/lib/collapse.js +108 -108
  24. package/lib/color-picker.js +4705 -828
  25. package/lib/container.js +88 -88
  26. package/lib/date-picker.js +10735 -4739
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +63 -8
  29. package/lib/dialog.js +1200 -22
  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 +31058 -13663
  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 +1421 -32
  47. package/lib/input.js +509 -37
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +886 -149
  50. package/lib/main.js +64 -64
  51. package/lib/menu-item-group.js +103 -103
  52. package/lib/menu-item.js +3140 -137
  53. package/lib/menu.js +959 -268
  54. package/lib/message-box.js +2743 -188
  55. package/lib/message.js +1196 -118
  56. package/lib/notification.js +1196 -119
  57. package/lib/option-group.js +151 -119
  58. package/lib/option.js +392 -16
  59. package/lib/page-header.js +781 -87
  60. package/lib/pagination.js +7747 -646
  61. package/lib/popconfirm.js +3606 -219
  62. package/lib/popover.js +2604 -79
  63. package/lib/progress.js +4 -4
  64. package/lib/radio-button.js +151 -119
  65. package/lib/radio-group.js +151 -119
  66. package/lib/radio.js +47 -15
  67. package/lib/rate.js +756 -113
  68. package/lib/result.js +108 -108
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +1813 -41
  71. package/lib/select.js +5547 -209
  72. package/lib/selectDisplayInput.js +4 -4
  73. package/lib/skeleton-item.js +108 -108
  74. package/lib/skeleton.js +108 -108
  75. package/lib/slider.js +4768 -530
  76. package/lib/spinner.js +100 -100
  77. package/lib/statistic.js +9600 -112
  78. package/lib/step.js +108 -108
  79. package/lib/steps.js +514 -99
  80. package/lib/subTitle.js +91 -91
  81. package/lib/submenu.js +2397 -76
  82. package/lib/switch.js +582 -127
  83. package/lib/tab-pane.js +108 -108
  84. package/lib/tabDialog.js +1630 -104
  85. package/lib/table-column.js +1115 -267
  86. package/lib/table.js +7067 -1253
  87. package/lib/tabs.js +1615 -113
  88. package/lib/tag.js +4 -4
  89. package/lib/theme-chalk/README.md +33 -0
  90. package/lib/theme-chalk/base.css +1 -1
  91. package/lib/theme-chalk/gulpfile.js +27 -0
  92. package/lib/theme-chalk/index.css +1 -1
  93. package/lib/theme-chalk/package.json +35 -0
  94. package/lib/theme-chalk/src/alert.scss +147 -0
  95. package/lib/theme-chalk/src/aside.scss +7 -0
  96. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  97. package/lib/theme-chalk/src/avatar.scss +51 -0
  98. package/lib/theme-chalk/src/backtop.scss +22 -0
  99. package/lib/theme-chalk/src/badge.scss +57 -0
  100. package/lib/theme-chalk/src/base.scss +2 -0
  101. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  102. package/lib/theme-chalk/src/button.scss +262 -0
  103. package/lib/theme-chalk/src/calendar.scss +79 -0
  104. package/lib/theme-chalk/src/card.scss +32 -0
  105. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  106. package/lib/theme-chalk/src/carousel.scss +161 -0
  107. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  108. package/lib/theme-chalk/src/cascader.scss +182 -0
  109. package/lib/theme-chalk/src/checkbox.scss +359 -0
  110. package/lib/theme-chalk/src/col.scss +156 -0
  111. package/lib/theme-chalk/src/collapse.scss +63 -0
  112. package/lib/theme-chalk/src/color-picker.scss +384 -0
  113. package/lib/theme-chalk/src/common/popup.scss +42 -0
  114. package/lib/theme-chalk/src/common/transition.scss +99 -0
  115. package/lib/theme-chalk/src/common/var.scss +1028 -0
  116. package/lib/theme-chalk/src/container.scss +14 -0
  117. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  118. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  119. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  120. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  121. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  122. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  123. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  124. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  125. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  126. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  127. package/lib/theme-chalk/src/date-picker.scss +12 -0
  128. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  129. package/lib/theme-chalk/src/descriptions.scss +111 -0
  130. package/lib/theme-chalk/src/dialog.scss +123 -0
  131. package/lib/theme-chalk/src/display.scss +12 -0
  132. package/lib/theme-chalk/src/divider.scss +47 -0
  133. package/lib/theme-chalk/src/drawer.scss +219 -0
  134. package/lib/theme-chalk/src/dropdown.scss +182 -0
  135. package/lib/theme-chalk/src/empty.scss +45 -0
  136. package/lib/theme-chalk/src/footer.scss +8 -0
  137. package/lib/theme-chalk/src/form.scss +167 -0
  138. package/lib/theme-chalk/src/header.scss +8 -0
  139. package/lib/theme-chalk/src/icon.scss +1167 -0
  140. package/lib/theme-chalk/src/image.scss +179 -0
  141. package/lib/theme-chalk/src/index.scss +90 -0
  142. package/lib/theme-chalk/src/input-number.scss +180 -0
  143. package/lib/theme-chalk/src/input.scss +360 -0
  144. package/lib/theme-chalk/src/link.scss +81 -0
  145. package/lib/theme-chalk/src/loading.scss +96 -0
  146. package/lib/theme-chalk/src/main.scss +12 -0
  147. package/lib/theme-chalk/src/menu.scss +289 -0
  148. package/lib/theme-chalk/src/message-box.scss +226 -0
  149. package/lib/theme-chalk/src/message.scss +120 -0
  150. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  151. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  152. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  153. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  154. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  155. package/lib/theme-chalk/src/notification.scss +99 -0
  156. package/lib/theme-chalk/src/option-group.scss +42 -0
  157. package/lib/theme-chalk/src/option.scss +36 -0
  158. package/lib/theme-chalk/src/page-header.scss +41 -0
  159. package/lib/theme-chalk/src/pagination.scss +295 -0
  160. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  161. package/lib/theme-chalk/src/popover.scss +40 -0
  162. package/lib/theme-chalk/src/popper.scss +101 -0
  163. package/lib/theme-chalk/src/progress.scss +141 -0
  164. package/lib/theme-chalk/src/radio-button.scss +113 -0
  165. package/lib/theme-chalk/src/radio-group.scss +9 -0
  166. package/lib/theme-chalk/src/radio.scss +199 -0
  167. package/lib/theme-chalk/src/rate.scss +49 -0
  168. package/lib/theme-chalk/src/reset.scss +79 -0
  169. package/lib/theme-chalk/src/result.scss +61 -0
  170. package/lib/theme-chalk/src/row.scss +43 -0
  171. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  172. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  173. package/lib/theme-chalk/src/select.scss +152 -0
  174. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  175. package/lib/theme-chalk/src/skeleton.scss +40 -0
  176. package/lib/theme-chalk/src/slider.scss +250 -0
  177. package/lib/theme-chalk/src/spinner.scss +44 -0
  178. package/lib/theme-chalk/src/statistic.scss +38 -0
  179. package/lib/theme-chalk/src/step.scss +317 -0
  180. package/lib/theme-chalk/src/steps.scss +20 -0
  181. package/lib/theme-chalk/src/switch.scss +116 -0
  182. package/lib/theme-chalk/src/table-column.scss +97 -0
  183. package/lib/theme-chalk/src/table.scss +564 -0
  184. package/lib/theme-chalk/src/tabs.scss +602 -0
  185. package/lib/theme-chalk/src/tag.scss +163 -0
  186. package/lib/theme-chalk/src/time-picker.scss +8 -0
  187. package/lib/theme-chalk/src/time-select.scss +37 -0
  188. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  189. package/lib/theme-chalk/src/timeline.scss +14 -0
  190. package/lib/theme-chalk/src/tooltip.scss +141 -0
  191. package/lib/theme-chalk/src/transfer.scss +227 -0
  192. package/lib/theme-chalk/src/tree.scss +123 -0
  193. package/lib/theme-chalk/src/upload.scss +603 -0
  194. package/lib/time-picker.js +6481 -589
  195. package/lib/time-select.js +6334 -407
  196. package/lib/timeline-item.js +108 -108
  197. package/lib/timeline.js +4 -4
  198. package/lib/tooltip.js +2688 -44
  199. package/lib/transfer.js +2238 -146
  200. package/lib/tree.js +1563 -148
  201. package/lib/treeSelect.js +3421 -106
  202. package/lib/upload.js +1198 -31
  203. package/package.json +3 -3
  204. package/packages/theme-chalk/gulpfile.js +1 -14
  205. package/packages/theme-chalk/src/common/var.scss +16 -16
  206. package/packages/theme-cy/gulpfile.js +1 -14
  207. package/src/index.js +1 -1
  208. package/lib/theme-chalk/alert.css +0 -1
  209. package/lib/theme-chalk/aside.css +0 -1
  210. package/lib/theme-chalk/autocomplete.css +0 -1
  211. package/lib/theme-chalk/avatar.css +0 -1
  212. package/lib/theme-chalk/backtop.css +0 -1
  213. package/lib/theme-chalk/badge.css +0 -1
  214. package/lib/theme-chalk/breadcrumb.css +0 -1
  215. package/lib/theme-chalk/button.css +0 -1
  216. package/lib/theme-chalk/calendar.css +0 -1
  217. package/lib/theme-chalk/card.css +0 -1
  218. package/lib/theme-chalk/carousel-item.css +0 -1
  219. package/lib/theme-chalk/carousel.css +0 -1
  220. package/lib/theme-chalk/cascader-panel.css +0 -1
  221. package/lib/theme-chalk/cascader.css +0 -1
  222. package/lib/theme-chalk/checkbox.css +0 -1
  223. package/lib/theme-chalk/col.css +0 -1
  224. package/lib/theme-chalk/collapse.css +0 -1
  225. package/lib/theme-chalk/color-picker.css +0 -1
  226. package/lib/theme-chalk/container.css +0 -1
  227. package/lib/theme-chalk/date-picker.css +0 -1
  228. package/lib/theme-chalk/descriptions-item.css +0 -1
  229. package/lib/theme-chalk/descriptions.css +0 -1
  230. package/lib/theme-chalk/dialog.css +0 -1
  231. package/lib/theme-chalk/display.css +0 -1
  232. package/lib/theme-chalk/divider.css +0 -1
  233. package/lib/theme-chalk/drawer.css +0 -1
  234. package/lib/theme-chalk/dropdown.css +0 -1
  235. package/lib/theme-chalk/empty.css +0 -1
  236. package/lib/theme-chalk/footer.css +0 -1
  237. package/lib/theme-chalk/form.css +0 -1
  238. package/lib/theme-chalk/header.css +0 -1
  239. package/lib/theme-chalk/icon.css +0 -1
  240. package/lib/theme-chalk/image.css +0 -1
  241. package/lib/theme-chalk/input-number.css +0 -1
  242. package/lib/theme-chalk/input.css +0 -1
  243. package/lib/theme-chalk/link.css +0 -1
  244. package/lib/theme-chalk/loading.css +0 -1
  245. package/lib/theme-chalk/main.css +0 -1
  246. package/lib/theme-chalk/menu.css +0 -1
  247. package/lib/theme-chalk/message-box.css +0 -1
  248. package/lib/theme-chalk/message.css +0 -1
  249. package/lib/theme-chalk/notification.css +0 -1
  250. package/lib/theme-chalk/option-group.css +0 -1
  251. package/lib/theme-chalk/option.css +0 -1
  252. package/lib/theme-chalk/page-header.css +0 -1
  253. package/lib/theme-chalk/pagination.css +0 -1
  254. package/lib/theme-chalk/popconfirm.css +0 -1
  255. package/lib/theme-chalk/popover.css +0 -1
  256. package/lib/theme-chalk/popper.css +0 -1
  257. package/lib/theme-chalk/progress.css +0 -1
  258. package/lib/theme-chalk/radio-button.css +0 -1
  259. package/lib/theme-chalk/radio-group.css +0 -1
  260. package/lib/theme-chalk/radio.css +0 -1
  261. package/lib/theme-chalk/rate.css +0 -1
  262. package/lib/theme-chalk/reset.css +0 -1
  263. package/lib/theme-chalk/result.css +0 -1
  264. package/lib/theme-chalk/row.css +0 -1
  265. package/lib/theme-chalk/scrollbar.css +0 -1
  266. package/lib/theme-chalk/select-dropdown.css +0 -1
  267. package/lib/theme-chalk/select.css +0 -1
  268. package/lib/theme-chalk/skeleton-item.css +0 -1
  269. package/lib/theme-chalk/skeleton.css +0 -1
  270. package/lib/theme-chalk/slider.css +0 -1
  271. package/lib/theme-chalk/spinner.css +0 -1
  272. package/lib/theme-chalk/statistic.css +0 -1
  273. package/lib/theme-chalk/step.css +0 -1
  274. package/lib/theme-chalk/steps.css +0 -1
  275. package/lib/theme-chalk/switch.css +0 -1
  276. package/lib/theme-chalk/table-column.css +0 -1
  277. package/lib/theme-chalk/table.css +0 -1
  278. package/lib/theme-chalk/tabs.css +0 -1
  279. package/lib/theme-chalk/tag.css +0 -1
  280. package/lib/theme-chalk/time-picker.css +0 -1
  281. package/lib/theme-chalk/time-select.css +0 -1
  282. package/lib/theme-chalk/timeline-item.css +0 -1
  283. package/lib/theme-chalk/timeline.css +0 -1
  284. package/lib/theme-chalk/tooltip.css +0 -1
  285. package/lib/theme-chalk/transfer.css +0 -1
  286. package/lib/theme-chalk/tree.css +0 -1
  287. package/lib/theme-chalk/upload.css +0 -1
  288. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  289. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  290. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  291. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  292. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  293. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  294. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  295. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  296. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  297. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  298. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  299. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  300. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  301. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  302. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  303. /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
@@ -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 element_ui_src_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(element_ui_src_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(element_ui_src_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,42 +529,979 @@ function normalizeComponent(
192
529
 
193
530
  /***/ }),
194
531
 
195
- /***/ 10:
196
- /***/ (function(module, exports) {
532
+ /***/ 20:
533
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
534
 
198
- module.exports = require("element-ui/lib/input");
535
+ "use strict";
536
+ // ESM COMPAT FLAG
537
+ __webpack_require__.r(__webpack_exports__);
199
538
 
200
- /***/ }),
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
201
749
 
202
- /***/ 2:
203
- /***/ (function(module, exports) {
204
750
 
205
- module.exports = require("element-ui/lib/utils/dom");
751
+ // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=af7512c8
206
752
 
207
- /***/ }),
753
+ // EXTERNAL MODULE: ./src/mixins/emitter.js
754
+ var emitter = __webpack_require__(6);
208
755
 
209
- /***/ 22:
210
- /***/ (function(module, exports) {
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
+ }
211
969
 
212
- module.exports = require("element-ui/lib/mixins/focus");
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
+ };
1189
+
1190
+ /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
213
1191
 
214
1192
  /***/ }),
215
1193
 
216
1194
  /***/ 3:
217
- /***/ (function(module, exports) {
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 element_ui_src_utils_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
+ };
218
1254
 
219
- module.exports = require("element-ui/lib/utils/util");
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(element_ui_src_utils_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(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
1385
+ var isObjectB = Object(element_ui_src_utils_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
+ }
1460
+
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
+ };
1480
+
1481
+ /***/ }),
1482
+
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
+ });;
220
1496
 
221
1497
  /***/ }),
222
1498
 
223
- /***/ 30:
1499
+ /***/ 36:
224
1500
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
225
1501
 
226
1502
  "use strict";
227
- /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
228
- /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__);
1503
+ /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
229
1504
  /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
230
- /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__);
231
1505
 
232
1506
 
233
1507
 
@@ -235,7 +1509,7 @@ module.exports = require("element-ui/lib/utils/util");
235
1509
  bind: function bind(el, binding, vnode) {
236
1510
  var interval = null;
237
1511
  var startTime = void 0;
238
- var maxIntervals = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__["isMac"])() ? 100 : 200;
1512
+ var maxIntervals = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* isMac */ "p"])() ? 100 : 200;
239
1513
  var handler = function handler() {
240
1514
  return vnode.context[binding.expression].apply();
241
1515
  };
@@ -247,10 +1521,10 @@ module.exports = require("element-ui/lib/utils/util");
247
1521
  interval = null;
248
1522
  };
249
1523
 
250
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
1524
+ Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* on */ "g"])(el, 'mousedown', function (e) {
251
1525
  if (e.button !== 0) return;
252
1526
  startTime = Date.now();
253
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
1527
+ Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* once */ "h"])(document, 'mouseup', clear);
254
1528
  clearInterval(interval);
255
1529
  interval = setInterval(handler, maxIntervals);
256
1530
  });
@@ -259,7 +1533,124 @@ module.exports = require("element-ui/lib/utils/util");
259
1533
 
260
1534
  /***/ }),
261
1535
 
262
- /***/ 91:
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
+ }
1647
+
1648
+ return target;
1649
+ });;
1650
+
1651
+ /***/ }),
1652
+
1653
+ /***/ 73:
263
1654
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
264
1655
 
265
1656
  "use strict";
@@ -409,16 +1800,14 @@ render._withStripped = true
409
1800
 
410
1801
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=8439d118
411
1802
 
412
- // EXTERNAL MODULE: external "element-ui/lib/input"
413
- var input_ = __webpack_require__(10);
414
- var input_default = /*#__PURE__*/__webpack_require__.n(input_);
1803
+ // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
1804
+ var input = __webpack_require__(20);
415
1805
 
416
- // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
417
- var focus_ = __webpack_require__(22);
418
- var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
1806
+ // EXTERNAL MODULE: ./src/mixins/focus.js
1807
+ var mixins_focus = __webpack_require__(32);
419
1808
 
420
1809
  // EXTERNAL MODULE: ./src/directives/repeat-click.js
421
- var repeat_click = __webpack_require__(30);
1810
+ var repeat_click = __webpack_require__(36);
422
1811
 
423
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
424
1813
 
@@ -428,7 +1817,7 @@ var repeat_click = __webpack_require__(30);
428
1817
 
429
1818
  /* harmony default export */ var input_numbervue_type_script_lang_js = ({
430
1819
  name: 'ElInputNumber',
431
- mixins: [focus_default()('input')],
1820
+ mixins: [Object(mixins_focus["a" /* default */])('input')],
432
1821
  inject: {
433
1822
  elForm: {
434
1823
  default: ''
@@ -441,7 +1830,7 @@ var repeat_click = __webpack_require__(30);
441
1830
  repeatClick: repeat_click["a" /* default */]
442
1831
  },
443
1832
  components: {
444
- ElInput: input_default.a
1833
+ ElInput: input["default"]
445
1834
  },
446
1835
  props: {
447
1836
  step: {
@@ -667,7 +2056,7 @@ var repeat_click = __webpack_require__(30);
667
2056
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js
668
2057
  /* harmony default export */ var src_input_numbervue_type_script_lang_js = (input_numbervue_type_script_lang_js);
669
2058
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
670
- var componentNormalizer = __webpack_require__(0);
2059
+ var componentNormalizer = __webpack_require__(2);
671
2060
 
672
2061
  // CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
673
2062