cy-element-ui 1.0.46 → 1.0.48

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 +4 -4
  3. package/lib/aside.js +77 -77
  4. package/lib/autocomplete.js +159 -3940
  5. package/lib/avatar.js +108 -108
  6. package/lib/backtop.js +110 -110
  7. package/lib/badge.js +108 -108
  8. package/lib/breadcrumb-item.js +4 -4
  9. package/lib/breadcrumb.js +4 -4
  10. package/lib/button-group.js +4 -4
  11. package/lib/button.js +4 -4
  12. package/lib/calendar.js +46 -1545
  13. package/lib/card.js +96 -96
  14. package/lib/carousel-item.js +108 -452
  15. package/lib/carousel.js +116 -185
  16. package/lib/cascader-panel.js +187 -2270
  17. package/lib/cascader.js +275 -6452
  18. package/lib/checkbox-button.js +11 -43
  19. package/lib/checkbox-group.js +15 -47
  20. package/lib/checkbox.js +15 -47
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +110 -815
  23. package/lib/collapse.js +108 -108
  24. package/lib/color-picker.js +153 -3953
  25. package/lib/container.js +88 -88
  26. package/lib/date-picker.js +419 -5230
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +8 -63
  29. package/lib/dialog.js +22 -1200
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +105 -875
  32. package/lib/dropdown-item.js +11 -43
  33. package/lib/dropdown-menu.js +75 -2277
  34. package/lib/dropdown.js +136 -1072
  35. package/lib/element-ui.common.js +29785 -42723
  36. package/lib/empty.js +7 -603
  37. package/lib/fileUpload.js +109 -2477
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +28 -418
  40. package/lib/form.js +15 -29
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +4 -4
  43. package/lib/image.js +49 -1376
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +21 -311
  46. package/lib/input-number.js +33 -1422
  47. package/lib/input.js +37 -507
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +67 -804
  50. package/lib/main.js +64 -64
  51. package/lib/menu-item-group.js +4 -4
  52. package/lib/menu-item.js +61 -2945
  53. package/lib/menu.js +54 -745
  54. package/lib/message-box.js +80 -2537
  55. package/lib/message.js +24 -1102
  56. package/lib/notification.js +25 -1102
  57. package/lib/option-group.js +11 -43
  58. package/lib/option.js +18 -394
  59. package/lib/page-header.js +87 -683
  60. package/lib/pagination.js +139 -6078
  61. package/lib/popconfirm.js +219 -3508
  62. package/lib/popover.js +99 -2624
  63. package/lib/progress.js +4 -4
  64. package/lib/radio-button.js +11 -43
  65. package/lib/radio-group.js +11 -43
  66. package/lib/radio.js +15 -47
  67. package/lib/rate.js +113 -756
  68. package/lib/result.js +4 -4
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +50 -735
  71. package/lib/select.js +209 -4352
  72. package/lib/selectDisplayInput.js +108 -108
  73. package/lib/skeleton-item.js +2 -2
  74. package/lib/skeleton.js +108 -108
  75. package/lib/slider.js +120 -4266
  76. package/lib/spinner.js +4 -4
  77. package/lib/statistic.js +117 -9605
  78. package/lib/step.js +108 -108
  79. package/lib/steps.js +99 -514
  80. package/lib/subTitle.js +91 -91
  81. package/lib/submenu.js +121 -2442
  82. package/lib/switch.js +21 -476
  83. package/lib/tab-pane.js +4 -4
  84. package/lib/tabDialog.js +37 -1563
  85. package/lib/table-column.js +32 -880
  86. package/lib/table.js +424 -4467
  87. package/lib/tabs.js +12 -425
  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 +285 -5013
  195. package/lib/time-select.js +181 -4949
  196. package/lib/timeline-item.js +108 -108
  197. package/lib/timeline.js +82 -82
  198. package/lib/tooltip.js +41 -2566
  199. package/lib/transfer.js +142 -2136
  200. package/lib/tree.js +55 -1372
  201. package/lib/treeSelect.js +106 -3421
  202. package/lib/upload.js +28 -1047
  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
package/lib/switch.js CHANGED
@@ -82,91 +82,12 @@ 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 = 98);
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
- /***/ 12:
98
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
-
100
- "use strict";
101
- /* harmony import */ var element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
102
-
103
- /**
104
- * Show migrating guide in browser console.
105
- *
106
- * Usage:
107
- * import Migrating from 'element-ui/src/mixins/migrating';
108
- *
109
- * mixins: [Migrating]
110
- *
111
- * add getMigratingConfig method for your component.
112
- * getMigratingConfig() {
113
- * return {
114
- * props: {
115
- * 'allow-no-selection': 'allow-no-selection is removed.',
116
- * 'selection-mode': 'selection-mode is removed.'
117
- * },
118
- * events: {
119
- * selectionchange: 'selectionchange is renamed to selection-change.'
120
- * }
121
- * };
122
- * },
123
- */
124
- /* harmony default export */ __webpack_exports__["a"] = ({
125
- mounted: function mounted() {
126
- if (true) return;
127
- if (!this.$vnode) return;
128
-
129
- var _getMigratingConfig = this.getMigratingConfig(),
130
- _getMigratingConfig$p = _getMigratingConfig.props,
131
- props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
132
- _getMigratingConfig$e = _getMigratingConfig.events,
133
- events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
134
-
135
- var _$vnode = this.$vnode,
136
- data = _$vnode.data,
137
- componentOptions = _$vnode.componentOptions;
138
-
139
- var definedProps = data.attrs || {};
140
- var definedEvents = componentOptions.listeners || {};
141
-
142
- for (var propName in definedProps) {
143
- propName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(propName); // compatible with camel case
144
- if (props[propName]) {
145
- console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
146
- }
147
- }
148
-
149
- for (var eventName in definedEvents) {
150
- eventName = Object(element_ui_src_utils_util__WEBPACK_IMPORTED_MODULE_0__[/* kebabCase */ "q"])(eventName); // compatible with camel case
151
- if (events[eventName]) {
152
- console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
153
- }
154
- }
155
- },
156
-
157
- methods: {
158
- getMigratingConfig: function getMigratingConfig() {
159
- return {
160
- props: {},
161
- events: {}
162
- };
163
- }
164
- }
165
- });
166
-
167
- /***/ }),
168
-
169
- /***/ 2:
170
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
171
92
 
172
93
  "use strict";
@@ -271,407 +192,28 @@ function normalizeComponent(
271
192
 
272
193
  /***/ }),
273
194
 
274
- /***/ 3:
275
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
276
-
277
- "use strict";
278
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
279
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
280
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
281
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
282
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
283
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
284
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
285
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
286
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
287
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
288
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
289
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
290
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
291
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
292
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
293
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
294
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
295
- /* unused harmony export looseEqual */
296
- /* unused harmony export arrayEquals */
297
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
298
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
299
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
300
- /* unused harmony export objToArray */
301
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
302
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
303
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
304
- /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
305
- 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; };
306
-
307
-
308
-
309
-
310
- var hasOwnProperty = Object.prototype.hasOwnProperty;
311
-
312
- function noop() {};
313
-
314
- function hasOwn(obj, key) {
315
- return hasOwnProperty.call(obj, key);
316
- };
317
-
318
- function extend(to, _from) {
319
- for (var key in _from) {
320
- to[key] = _from[key];
321
- }
322
- return to;
323
- };
324
-
325
- function toObject(arr) {
326
- var res = {};
327
- for (var i = 0; i < arr.length; i++) {
328
- if (arr[i]) {
329
- extend(res, arr[i]);
330
- }
331
- }
332
- return res;
333
- };
334
-
335
- var getValueByPath = function getValueByPath(object, prop) {
336
- prop = prop || '';
337
- var paths = prop.split('.');
338
- var current = object;
339
- var result = null;
340
- for (var i = 0, j = paths.length; i < j; i++) {
341
- var path = paths[i];
342
- if (!current) break;
343
-
344
- if (i === j - 1) {
345
- result = current[path];
346
- break;
347
- }
348
- current = current[path];
349
- }
350
- return result;
351
- };
352
-
353
- function getPropByPath(obj, path, strict) {
354
- var tempObj = obj;
355
- path = path.replace(/\[(\w+)\]/g, '.$1');
356
- path = path.replace(/^\./, '');
357
-
358
- var keyArr = path.split('.');
359
- var i = 0;
360
- for (var len = keyArr.length; i < len - 1; ++i) {
361
- if (!tempObj && !strict) break;
362
- var key = keyArr[i];
363
- if (key in tempObj) {
364
- tempObj = tempObj[key];
365
- } else {
366
- if (strict) {
367
- throw new Error('please transfer a valid prop path to form item!');
368
- }
369
- break;
370
- }
371
- }
372
- return {
373
- o: tempObj,
374
- k: keyArr[i],
375
- v: tempObj ? tempObj[keyArr[i]] : null
376
- };
377
- };
378
-
379
- var generateId = function generateId() {
380
- return Math.floor(Math.random() * 10000);
381
- };
382
-
383
- var valueEquals = function valueEquals(a, b) {
384
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
385
- if (a === b) return true;
386
- if (!(a instanceof Array)) return false;
387
- if (!(b instanceof Array)) return false;
388
- if (a.length !== b.length) return false;
389
- for (var i = 0; i !== a.length; ++i) {
390
- if (a[i] !== b[i]) return false;
391
- }
392
- return true;
393
- };
394
-
395
- var escapeRegexpString = function escapeRegexpString() {
396
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
397
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
398
- };
399
-
400
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
401
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
402
- for (var i = 0; i !== arr.length; ++i) {
403
- if (pred(arr[i])) {
404
- return i;
405
- }
406
- }
407
- return -1;
408
- };
409
-
410
- var arrayFind = function arrayFind(arr, pred) {
411
- var idx = arrayFindIndex(arr, pred);
412
- return idx !== -1 ? arr[idx] : undefined;
413
- };
414
-
415
- // coerce truthy value to array
416
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
417
- if (Array.isArray(val)) {
418
- return val;
419
- } else if (val) {
420
- return [val];
421
- } else {
422
- return [];
423
- }
424
- };
425
-
426
- var isIE = function isIE() {
427
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
428
- };
429
-
430
- var isEdge = function isEdge() {
431
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
432
- };
433
-
434
- var isFirefox = function isFirefox() {
435
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
436
- };
437
-
438
- var autoprefixer = function autoprefixer(style) {
439
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
440
- var rules = ['transform', 'transition', 'animation'];
441
- var prefixes = ['ms-', 'webkit-'];
442
- rules.forEach(function (rule) {
443
- var value = style[rule];
444
- if (rule && value) {
445
- prefixes.forEach(function (prefix) {
446
- style[prefix + rule] = value;
447
- });
448
- }
449
- });
450
- return style;
451
- };
452
-
453
- var kebabCase = function kebabCase(str) {
454
- var hyphenateRE = /([^-])([A-Z])/g;
455
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
456
- };
457
-
458
- var capitalize = function capitalize(str) {
459
- if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
460
- return str.charAt(0).toUpperCase() + str.slice(1);
461
- };
462
-
463
- var looseEqual = function looseEqual(a, b) {
464
- var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
465
- var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
466
- if (isObjectA && isObjectB) {
467
- return JSON.stringify(a) === JSON.stringify(b);
468
- } else if (!isObjectA && !isObjectB) {
469
- return String(a) === String(b);
470
- } else {
471
- return false;
472
- }
473
- };
474
-
475
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
476
- arrayA = arrayA || [];
477
- arrayB = arrayB || [];
478
-
479
- if (arrayA.length !== arrayB.length) {
480
- return false;
481
- }
482
-
483
- for (var i = 0; i < arrayA.length; i++) {
484
- if (!looseEqual(arrayA[i], arrayB[i])) {
485
- return false;
486
- }
487
- }
488
-
489
- return true;
490
- };
491
-
492
- var isEqual = function isEqual(value1, value2) {
493
- if (Array.isArray(value1) && Array.isArray(value2)) {
494
- return arrayEquals(value1, value2);
495
- }
496
- return looseEqual(value1, value2);
497
- };
498
-
499
- var isEmpty = function isEmpty(val) {
500
- // null or undefined
501
- if (val == null) return true;
502
-
503
- if (typeof val === 'boolean') return false;
504
-
505
- if (typeof val === 'number') return !val;
506
-
507
- if (val instanceof Error) return val.message === '';
508
-
509
- switch (Object.prototype.toString.call(val)) {
510
- // String or Array
511
- case '[object String]':
512
- case '[object Array]':
513
- return !val.length;
514
-
515
- // Map or Set or File
516
- case '[object File]':
517
- case '[object Map]':
518
- case '[object Set]':
519
- {
520
- return !val.size;
521
- }
522
- // Plain Object
523
- case '[object Object]':
524
- {
525
- return !Object.keys(val).length;
526
- }
527
- }
528
-
529
- return false;
530
- };
531
-
532
- function rafThrottle(fn) {
533
- var locked = false;
534
- return function () {
535
- var _this = this;
536
-
537
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
538
- args[_key] = arguments[_key];
539
- }
540
-
541
- if (locked) return;
542
- locked = true;
543
- window.requestAnimationFrame(function (_) {
544
- fn.apply(_this, args);
545
- locked = false;
546
- });
547
- };
548
- }
549
-
550
- function objToArray(obj) {
551
- if (Array.isArray(obj)) {
552
- return obj;
553
- }
554
- return isEmpty(obj) ? [] : [obj];
555
- }
195
+ /***/ 11:
196
+ /***/ (function(module, exports) {
556
197
 
557
- var isMac = function isMac() {
558
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
559
- };
198
+ module.exports = require("element-ui/lib/mixins/migrating");
560
199
 
561
200
  /***/ }),
562
201
 
563
- /***/ 30:
564
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
202
+ /***/ 22:
203
+ /***/ (function(module, exports) {
565
204
 
566
- "use strict";
567
- /* harmony default export */ __webpack_exports__["a"] = (function (ref) {
568
- return {
569
- methods: {
570
- focus: function focus() {
571
- this.$refs[ref].focus();
572
- }
573
- }
574
- };
575
- });;
205
+ module.exports = require("element-ui/lib/mixins/focus");
576
206
 
577
207
  /***/ }),
578
208
 
579
209
  /***/ 4:
580
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
581
-
582
- "use strict";
583
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
584
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
585
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
586
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
587
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
588
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
589
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
590
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
591
- 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; };
592
-
593
-
594
-
595
- function isString(obj) {
596
- return Object.prototype.toString.call(obj) === '[object String]';
597
- }
598
-
599
- function isObject(obj) {
600
- return Object.prototype.toString.call(obj) === '[object Object]';
601
- }
602
-
603
- function isHtmlElement(node) {
604
- return node && node.nodeType === Node.ELEMENT_NODE;
605
- }
606
-
607
- /**
608
- * - Inspired:
609
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
610
- */
611
- var isFunction = function isFunction(functionToCheck) {
612
- var getType = {};
613
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
614
- };
615
-
616
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
617
- isFunction = function isFunction(obj) {
618
- return typeof obj === 'function' || false;
619
- };
620
- }
621
-
622
-
623
-
624
- var isUndefined = function isUndefined(val) {
625
- return val === void 0;
626
- };
627
-
628
- var isDefined = function isDefined(val) {
629
- return val !== undefined && val !== null;
630
- };
631
-
632
- /***/ }),
633
-
634
- /***/ 6:
635
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
636
-
637
- "use strict";
638
- function _broadcast(componentName, eventName, params) {
639
- this.$children.forEach(function (child) {
640
- var name = child.$options.componentName;
641
-
642
- if (name === componentName) {
643
- child.$emit.apply(child, [eventName].concat(params));
644
- } else {
645
- _broadcast.apply(child, [componentName, eventName].concat([params]));
646
- }
647
- });
648
- }
649
- /* harmony default export */ __webpack_exports__["a"] = ({
650
- methods: {
651
- dispatch: function dispatch(componentName, eventName, params) {
652
- var parent = this.$parent || this.$root;
653
- var name = parent.$options.componentName;
654
-
655
- while (parent && (!name || name !== componentName)) {
656
- parent = parent.$parent;
210
+ /***/ (function(module, exports) {
657
211
 
658
- if (parent) {
659
- name = parent.$options.componentName;
660
- }
661
- }
662
- if (parent) {
663
- parent.$emit.apply(parent, [eventName].concat(params));
664
- }
665
- },
666
- broadcast: function broadcast(componentName, eventName, params) {
667
- _broadcast.call(this, componentName, eventName, params);
668
- }
669
- }
670
- });
212
+ module.exports = require("element-ui/lib/mixins/emitter");
671
213
 
672
214
  /***/ }),
673
215
 
674
- /***/ 91:
216
+ /***/ 98:
675
217
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
676
218
 
677
219
  "use strict";
@@ -781,14 +323,17 @@ render._withStripped = true
781
323
 
782
324
  // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=template&id=5fd9d0ee
783
325
 
784
- // EXTERNAL MODULE: ./src/mixins/emitter.js
785
- var emitter = __webpack_require__(6);
326
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
327
+ var emitter_ = __webpack_require__(4);
328
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
786
329
 
787
- // EXTERNAL MODULE: ./src/mixins/focus.js
788
- var mixins_focus = __webpack_require__(30);
330
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
331
+ var focus_ = __webpack_require__(22);
332
+ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
789
333
 
790
- // EXTERNAL MODULE: ./src/mixins/migrating.js
791
- var migrating = __webpack_require__(12);
334
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
335
+ var migrating_ = __webpack_require__(11);
336
+ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
792
337
 
793
338
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=script&lang=js
794
339
 
@@ -798,7 +343,7 @@ var migrating = __webpack_require__(12);
798
343
 
799
344
  /* harmony default export */ var componentvue_type_script_lang_js = ({
800
345
  name: 'ElSwitch',
801
- mixins: [Object(mixins_focus["a" /* default */])('input'), migrating["a" /* default */], emitter["a" /* default */]],
346
+ mixins: [focus_default()('input'), migrating_default.a, emitter_default.a],
802
347
  inject: {
803
348
  elForm: {
804
349
  default: ''
@@ -933,7 +478,7 @@ var migrating = __webpack_require__(12);
933
478
  // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=script&lang=js
934
479
  /* harmony default export */ var src_componentvue_type_script_lang_js = (componentvue_type_script_lang_js);
935
480
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
936
- var componentNormalizer = __webpack_require__(2);
481
+ var componentNormalizer = __webpack_require__(0);
937
482
 
938
483
  // CONCATENATED MODULE: ./packages/switch/src/component.vue
939
484
 
package/lib/tab-pane.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 96);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 105);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 2:
90
+ /***/ 0:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 96:
195
+ /***/ 105:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -281,7 +281,7 @@ render._withStripped = true
281
281
  // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js
282
282
  /* harmony default export */ var src_tab_panevue_type_script_lang_js = (tab_panevue_type_script_lang_js);
283
283
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
284
- var componentNormalizer = __webpack_require__(2);
284
+ var componentNormalizer = __webpack_require__(0);
285
285
 
286
286
  // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue
287
287