cy-element-ui 1.0.3 → 1.0.5

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 (416) hide show
  1. package/README.md +163 -59
  2. package/lib/alert.js +211 -203
  3. package/lib/aside.js +29 -29
  4. package/lib/autocomplete.js +4615 -483
  5. package/lib/avatar.js +152 -126
  6. package/lib/backtop.js +117 -125
  7. package/lib/badge.js +128 -134
  8. package/lib/breadcrumb-item.js +146 -122
  9. package/lib/breadcrumb.js +97 -96
  10. package/lib/button-group.js +68 -65
  11. package/lib/button.js +67 -87
  12. package/lib/calendar.js +2475 -603
  13. package/lib/card.js +101 -100
  14. package/lib/carousel-item.js +854 -210
  15. package/lib/carousel.js +575 -408
  16. package/lib/cascader-panel.js +3546 -1153
  17. package/lib/cascader.js +7376 -970
  18. package/lib/checkbox-button.js +337 -290
  19. package/lib/checkbox-group.js +176 -105
  20. package/lib/checkbox.js +240 -220
  21. package/lib/col.js +113 -68
  22. package/lib/collapse-item.js +1228 -225
  23. package/lib/collapse.js +163 -123
  24. package/lib/color-picker.js +5223 -1251
  25. package/lib/container.js +98 -88
  26. package/lib/date-picker.js +8396 -3945
  27. package/lib/descriptions-item.js +53 -32
  28. package/lib/descriptions.js +697 -334
  29. package/lib/dialog.js +1725 -247
  30. package/lib/directives/mousewheel.js +14 -20
  31. package/lib/directives/repeat-click.js +27 -30
  32. package/lib/divider.js +38 -45
  33. package/lib/drawer.js +1032 -238
  34. package/lib/dropdown-item.js +159 -111
  35. package/lib/dropdown-menu.js +2445 -117
  36. package/lib/dropdown.js +1675 -366
  37. package/lib/element-ui.common.js +49110 -39985
  38. package/lib/empty.js +1084 -203
  39. package/lib/fileUpload.js +3900 -0
  40. package/lib/footer.js +29 -29
  41. package/lib/form-item.js +1236 -467
  42. package/lib/form.js +326 -258
  43. package/lib/header.js +80 -80
  44. package/lib/icon.js +71 -68
  45. package/lib/image.js +2389 -743
  46. package/lib/index.js +1 -1
  47. package/lib/infinite-scroll.js +814 -150
  48. package/lib/input-number.js +2181 -444
  49. package/lib/input.js +1197 -517
  50. package/lib/link.js +117 -135
  51. package/lib/loading.js +1130 -363
  52. package/lib/locale/format.js +38 -49
  53. package/lib/locale/index.js +38 -52
  54. package/lib/locale/lang/af-ZA.js +130 -123
  55. package/lib/locale/lang/ar.js +123 -122
  56. package/lib/locale/lang/az.js +122 -121
  57. package/lib/locale/lang/bg.js +133 -123
  58. package/lib/locale/lang/bn.js +121 -121
  59. package/lib/locale/lang/ca.js +123 -122
  60. package/lib/locale/lang/cs-CZ.js +127 -125
  61. package/lib/locale/lang/da.js +124 -122
  62. package/lib/locale/lang/de.js +126 -124
  63. package/lib/locale/lang/ee.js +125 -123
  64. package/lib/locale/lang/el.js +125 -123
  65. package/lib/locale/lang/en.js +127 -123
  66. package/lib/locale/lang/eo.js +125 -123
  67. package/lib/locale/lang/es.js +123 -122
  68. package/lib/locale/lang/eu.js +128 -123
  69. package/lib/locale/lang/fa.js +125 -123
  70. package/lib/locale/lang/fi.js +125 -123
  71. package/lib/locale/lang/fr.js +125 -122
  72. package/lib/locale/lang/he.js +130 -123
  73. package/lib/locale/lang/hr.js +128 -123
  74. package/lib/locale/lang/hu.js +124 -122
  75. package/lib/locale/lang/hy-AM.js +125 -123
  76. package/lib/locale/lang/id.js +124 -123
  77. package/lib/locale/lang/is.js +124 -123
  78. package/lib/locale/lang/it.js +123 -122
  79. package/lib/locale/lang/ja.js +125 -123
  80. package/lib/locale/lang/kg.js +125 -123
  81. package/lib/locale/lang/km.js +124 -123
  82. package/lib/locale/lang/ko.js +125 -123
  83. package/lib/locale/lang/ku.js +125 -123
  84. package/lib/locale/lang/kz.js +125 -123
  85. package/lib/locale/lang/lo-LA.js +121 -121
  86. package/lib/locale/lang/lt.js +125 -123
  87. package/lib/locale/lang/lv.js +125 -123
  88. package/lib/locale/lang/mn.js +125 -123
  89. package/lib/locale/lang/ms.js +123 -122
  90. package/lib/locale/lang/nb-NO.js +123 -122
  91. package/lib/locale/lang/nl.js +125 -123
  92. package/lib/locale/lang/pl.js +125 -123
  93. package/lib/locale/lang/pt-br.js +124 -123
  94. package/lib/locale/lang/pt.js +133 -123
  95. package/lib/locale/lang/ro.js +125 -123
  96. package/lib/locale/lang/ru-RU.js +124 -123
  97. package/lib/locale/lang/si.js +127 -123
  98. package/lib/locale/lang/sk.js +126 -125
  99. package/lib/locale/lang/sl.js +125 -123
  100. package/lib/locale/lang/sr-Latn.js +124 -123
  101. package/lib/locale/lang/sr.js +128 -123
  102. package/lib/locale/lang/sv-SE.js +128 -123
  103. package/lib/locale/lang/sw.js +127 -123
  104. package/lib/locale/lang/ta.js +130 -122
  105. package/lib/locale/lang/th.js +127 -123
  106. package/lib/locale/lang/tk.js +129 -123
  107. package/lib/locale/lang/tr-TR.js +125 -123
  108. package/lib/locale/lang/ua.js +124 -123
  109. package/lib/locale/lang/ug-CN.js +124 -123
  110. package/lib/locale/lang/uz-UZ.js +124 -123
  111. package/lib/locale/lang/vi.js +124 -123
  112. package/lib/locale/lang/zh-CN.js +124 -123
  113. package/lib/locale/lang/zh-TW.js +128 -123
  114. package/lib/main.js +23 -21
  115. package/lib/menu-item-group.js +105 -111
  116. package/lib/menu-item.js +3558 -253
  117. package/lib/menu.js +1680 -528
  118. package/lib/message-box.js +3427 -684
  119. package/lib/message.js +1677 -229
  120. package/lib/mixins/emitter.js +28 -30
  121. package/lib/mixins/focus.js +10 -11
  122. package/lib/mixins/locale.js +12 -14
  123. package/lib/mixins/migrating.js +38 -45
  124. package/lib/notification.js +1707 -269
  125. package/lib/option-group.js +190 -139
  126. package/lib/option.js +949 -196
  127. package/lib/page-header.js +964 -42
  128. package/lib/pagination.js +6947 -641
  129. package/lib/popconfirm.js +3951 -223
  130. package/lib/popover.js +3247 -369
  131. package/lib/progress.js +254 -244
  132. package/lib/radio-button.js +259 -226
  133. package/lib/radio-group.js +249 -186
  134. package/lib/radio.js +263 -253
  135. package/lib/rate.js +1399 -420
  136. package/lib/result.js +183 -227
  137. package/lib/row.js +58 -41
  138. package/lib/scrollbar.js +1331 -278
  139. package/lib/select.js +5816 -1428
  140. package/lib/skeleton-item.js +133 -145
  141. package/lib/skeleton.js +82 -91
  142. package/lib/slider.js +5157 -702
  143. package/lib/spinner.js +113 -101
  144. package/lib/statistic.js +10205 -254
  145. package/lib/step.js +274 -311
  146. package/lib/steps.js +854 -117
  147. package/lib/subTitle.js +292 -0
  148. package/lib/submenu.js +2867 -429
  149. package/lib/switch.js +1051 -291
  150. package/lib/tab-pane.js +125 -135
  151. package/lib/tabDialog.js +2658 -0
  152. package/lib/table-column.js +1975 -751
  153. package/lib/table.js +8019 -3979
  154. package/lib/tabs.js +1455 -605
  155. package/lib/tag.js +73 -68
  156. package/lib/theme-chalk/src/index.scss +3 -0
  157. package/lib/time-picker.js +6821 -1944
  158. package/lib/time-select.js +6297 -1186
  159. package/lib/timeline-item.js +43 -84
  160. package/lib/timeline.js +43 -39
  161. package/lib/tooltip.js +3185 -287
  162. package/lib/transfer.js +2943 -625
  163. package/lib/transitions/collapse-transition.js +69 -87
  164. package/lib/tree.js +3312 -1791
  165. package/lib/treeSelect.js +4436 -0
  166. package/lib/umd/locale/af-ZA.js +145 -138
  167. package/lib/umd/locale/ar.js +138 -137
  168. package/lib/umd/locale/az.js +139 -137
  169. package/lib/umd/locale/bg.js +148 -138
  170. package/lib/umd/locale/bn.js +138 -137
  171. package/lib/umd/locale/ca.js +138 -137
  172. package/lib/umd/locale/cs-CZ.js +142 -140
  173. package/lib/umd/locale/da.js +139 -137
  174. package/lib/umd/locale/de.js +141 -139
  175. package/lib/umd/locale/ee.js +140 -138
  176. package/lib/umd/locale/el.js +140 -138
  177. package/lib/umd/locale/en.js +142 -138
  178. package/lib/umd/locale/eo.js +140 -138
  179. package/lib/umd/locale/es.js +138 -137
  180. package/lib/umd/locale/eu.js +143 -138
  181. package/lib/umd/locale/fa.js +140 -138
  182. package/lib/umd/locale/fi.js +140 -138
  183. package/lib/umd/locale/fr.js +140 -137
  184. package/lib/umd/locale/he.js +145 -138
  185. package/lib/umd/locale/hr.js +143 -138
  186. package/lib/umd/locale/hu.js +139 -137
  187. package/lib/umd/locale/hy-AM.js +140 -138
  188. package/lib/umd/locale/id.js +139 -138
  189. package/lib/umd/locale/is.js +139 -138
  190. package/lib/umd/locale/it.js +138 -137
  191. package/lib/umd/locale/ja.js +140 -138
  192. package/lib/umd/locale/kg.js +140 -138
  193. package/lib/umd/locale/km.js +139 -138
  194. package/lib/umd/locale/ko.js +140 -138
  195. package/lib/umd/locale/ku.js +140 -138
  196. package/lib/umd/locale/kz.js +140 -138
  197. package/lib/umd/locale/lo-LA.js +138 -137
  198. package/lib/umd/locale/lt.js +140 -138
  199. package/lib/umd/locale/lv.js +140 -138
  200. package/lib/umd/locale/mn.js +140 -138
  201. package/lib/umd/locale/ms.js +138 -137
  202. package/lib/umd/locale/nb-NO.js +138 -137
  203. package/lib/umd/locale/nl.js +140 -138
  204. package/lib/umd/locale/pl.js +140 -138
  205. package/lib/umd/locale/pt-br.js +139 -138
  206. package/lib/umd/locale/pt.js +148 -138
  207. package/lib/umd/locale/ro.js +140 -138
  208. package/lib/umd/locale/ru-RU.js +139 -138
  209. package/lib/umd/locale/si.js +142 -138
  210. package/lib/umd/locale/sk.js +141 -140
  211. package/lib/umd/locale/sl.js +140 -138
  212. package/lib/umd/locale/sr-Latn.js +139 -138
  213. package/lib/umd/locale/sr.js +143 -138
  214. package/lib/umd/locale/sv-SE.js +143 -138
  215. package/lib/umd/locale/sw.js +142 -138
  216. package/lib/umd/locale/ta.js +145 -137
  217. package/lib/umd/locale/th.js +142 -138
  218. package/lib/umd/locale/tk.js +144 -138
  219. package/lib/umd/locale/tr-TR.js +140 -138
  220. package/lib/umd/locale/ua.js +139 -138
  221. package/lib/umd/locale/ug-CN.js +139 -138
  222. package/lib/umd/locale/uz-UZ.js +139 -138
  223. package/lib/umd/locale/vi.js +139 -138
  224. package/lib/umd/locale/zh-CN.js +139 -138
  225. package/lib/umd/locale/zh-TW.js +143 -138
  226. package/lib/upload.js +2377 -987
  227. package/lib/utils/after-leave.js +36 -33
  228. package/lib/utils/aria-dialog.js +55 -73
  229. package/lib/utils/aria-utils.js +67 -76
  230. package/lib/utils/clickoutside.js +52 -60
  231. package/lib/utils/date-util.js +198 -241
  232. package/lib/utils/date.js +6 -368
  233. package/lib/utils/date_source.js +349 -0
  234. package/lib/utils/dom.js +167 -183
  235. package/lib/utils/lodash.js +13 -9421
  236. package/lib/utils/lodash_source.js +9421 -0
  237. package/lib/utils/menu/aria-menubar.js +13 -18
  238. package/lib/utils/menu/aria-menuitem.js +43 -54
  239. package/lib/utils/menu/aria-submenu.js +50 -59
  240. package/lib/utils/merge.js +15 -17
  241. package/lib/utils/popper.js +1141 -1170
  242. package/lib/utils/popup/index.js +186 -230
  243. package/lib/utils/popup/popup-manager.js +159 -191
  244. package/lib/utils/resize-event.js +29 -44
  245. package/lib/utils/scroll-into-view.js +25 -33
  246. package/lib/utils/scrollbar-width.js +25 -36
  247. package/lib/utils/shared.js +3 -3
  248. package/lib/utils/types.js +19 -32
  249. package/lib/utils/util.js +187 -221
  250. package/lib/utils/vdom.js +5 -9
  251. package/lib/utils/vue-popper.js +166 -188
  252. package/package.json +20 -19
  253. package/packages/alert/src/main.vue +63 -63
  254. package/packages/aside/src/main.vue +9 -9
  255. package/packages/autocomplete/src/autocomplete-suggestions.vue +46 -46
  256. package/packages/autocomplete/src/autocomplete.vue +198 -198
  257. package/packages/avatar/src/main.vue +5 -5
  258. package/packages/backtop/src/main.vue +3 -3
  259. package/packages/badge/src/main.vue +1 -1
  260. package/packages/breadcrumb/src/breadcrumb-item.vue +26 -26
  261. package/packages/breadcrumb/src/breadcrumb.vue +22 -22
  262. package/packages/button/src/button-group.vue +3 -3
  263. package/packages/button/src/button.vue +44 -44
  264. package/packages/calendar/src/date-table.vue +3 -3
  265. package/packages/calendar/src/main.vue +7 -7
  266. package/packages/card/src/main.vue +9 -9
  267. package/packages/carousel/src/item.vue +98 -98
  268. package/packages/carousel/src/main.vue +2 -2
  269. package/packages/cascader/src/cascader.vue +4 -4
  270. package/packages/cascader-panel/src/cascader-menu.vue +4 -4
  271. package/packages/cascader-panel/src/cascader-node.vue +232 -232
  272. package/packages/cascader-panel/src/cascader-panel.vue +3 -3
  273. package/packages/cascader-panel/src/node.js +2 -3
  274. package/packages/cascader-panel/src/store.js +0 -1
  275. package/packages/checkbox/src/checkbox-button.vue +139 -139
  276. package/packages/checkbox/src/checkbox-group.vue +33 -33
  277. package/packages/checkbox/src/checkbox.vue +140 -140
  278. package/packages/col/src/col.js +5 -5
  279. package/packages/collapse/src/collapse-item.vue +55 -55
  280. package/packages/collapse/src/collapse.vue +54 -54
  281. package/packages/color-picker/src/color.js +4 -4
  282. package/packages/color-picker/src/components/alpha-slider.vue +100 -100
  283. package/packages/color-picker/src/components/hue-slider.vue +91 -91
  284. package/packages/color-picker/src/components/picker-dropdown.vue +64 -64
  285. package/packages/color-picker/src/components/predefine.vue +43 -43
  286. package/packages/color-picker/src/components/sv-panel.vue +70 -70
  287. package/packages/color-picker/src/main.vue +141 -141
  288. package/packages/container/src/main.vue +20 -20
  289. package/packages/date-picker/src/basic/date-table.vue +360 -360
  290. package/packages/date-picker/src/basic/month-table.vue +222 -223
  291. package/packages/date-picker/src/basic/time-spinner.vue +174 -174
  292. package/packages/date-picker/src/basic/year-table.vue +91 -91
  293. package/packages/date-picker/src/panel/date-range.vue +415 -415
  294. package/packages/date-picker/src/panel/date.vue +423 -423
  295. package/packages/date-picker/src/panel/month-range.vue +177 -177
  296. package/packages/date-picker/src/panel/time-range.vue +173 -173
  297. package/packages/date-picker/src/panel/time-select.vue +131 -131
  298. package/packages/date-picker/src/panel/time.vue +131 -131
  299. package/packages/date-picker/src/picker.vue +7 -7
  300. package/packages/descriptions/src/descriptions-row.js +3 -3
  301. package/packages/descriptions/src/index.js +1 -1
  302. package/packages/dialog/src/component.vue +155 -155
  303. package/packages/divider/src/main.vue +1 -1
  304. package/packages/drawer/src/main.vue +2 -2
  305. package/packages/dropdown/src/dropdown-item.vue +15 -15
  306. package/packages/dropdown/src/dropdown-menu.vue +47 -47
  307. package/packages/dropdown/src/dropdown.vue +260 -260
  308. package/packages/empty/src/index.vue +1 -1
  309. package/packages/fileUpload/index.js +8 -0
  310. package/packages/fileUpload/src/main.vue +430 -0
  311. package/packages/footer/src/main.vue +9 -9
  312. package/packages/form/src/form-item.vue +245 -245
  313. package/packages/form/src/form.vue +154 -154
  314. package/packages/header/src/main.vue +9 -9
  315. package/packages/icon/src/icon.vue +6 -6
  316. package/packages/image/src/image-viewer.vue +9 -9
  317. package/packages/image/src/main.vue +206 -206
  318. package/packages/infinite-scroll/src/main.js +1 -2
  319. package/packages/input/src/calcTextareaHeight.js +2 -2
  320. package/packages/input/src/input.vue +311 -311
  321. package/packages/input-number/src/input-number.vue +205 -205
  322. package/packages/loading/src/loading.vue +19 -19
  323. package/packages/main/src/main.vue +4 -4
  324. package/packages/menu/src/menu-item-group.vue +27 -27
  325. package/packages/menu/src/menu-item.vue +69 -69
  326. package/packages/menu/src/menu.vue +284 -284
  327. package/packages/menu/src/submenu.vue +308 -309
  328. package/packages/message/src/main.js +1 -1
  329. package/packages/message/src/main.vue +72 -72
  330. package/packages/message-box/src/main.vue +216 -216
  331. package/packages/notification/src/main.js +1 -1
  332. package/packages/notification/src/main.vue +93 -93
  333. package/packages/pagination/src/pager.vue +99 -99
  334. package/packages/popconfirm/src/main.vue +28 -28
  335. package/packages/popover/src/main.vue +6 -6
  336. package/packages/progress/src/progress.vue +174 -174
  337. package/packages/radio/src/radio-button.vue +64 -64
  338. package/packages/radio/src/radio-group.vue +88 -88
  339. package/packages/radio/src/radio.vue +74 -74
  340. package/packages/rate/src/main.vue +270 -270
  341. package/packages/row/src/row.js +3 -3
  342. package/packages/scrollbar/src/main.js +2 -2
  343. package/packages/scrollbar/src/util.js +1 -1
  344. package/packages/select/src/option-group.vue +46 -46
  345. package/packages/select/src/option.vue +122 -122
  346. package/packages/select/src/select-dropdown.vue +49 -49
  347. package/packages/select/src/select.vue +676 -676
  348. package/packages/skeleton/src/item.vue +12 -12
  349. package/packages/slider/src/button.vue +191 -191
  350. package/packages/slider/src/main.vue +314 -314
  351. package/packages/spinner/src/spinner.vue +16 -16
  352. package/packages/statistic/src/main.vue +5 -6
  353. package/packages/steps/src/step.vue +2 -2
  354. package/packages/steps/src/steps.vue +4 -4
  355. package/packages/subTitle/index.js +8 -0
  356. package/packages/subTitle/src/main.vue +33 -0
  357. package/packages/switch/src/component.vue +123 -123
  358. package/packages/tabDialog/index.js +23 -0
  359. package/packages/tabDialog/src/dialog/drag.js +63 -0
  360. package/packages/tabDialog/src/dialog/dragHeight.js +34 -0
  361. package/packages/tabDialog/src/dialog/dragWidth.js +30 -0
  362. package/packages/tabDialog/src/main.vue +277 -0
  363. package/packages/table/src/filter-panel.vue +128 -128
  364. package/packages/table/src/store/index.js +1 -1
  365. package/packages/table/src/table-body.js +2 -2
  366. package/packages/table/src/table-column.js +1 -1
  367. package/packages/table/src/table-header.js +1 -1
  368. package/packages/table/src/table-layout.js +1 -1
  369. package/packages/table/src/table.vue +416 -416
  370. package/packages/tabs/src/tab-bar.vue +43 -43
  371. package/packages/tabs/src/tab-nav.vue +250 -250
  372. package/packages/tabs/src/tab-pane.vue +34 -34
  373. package/packages/tabs/src/tabs.vue +165 -165
  374. package/packages/tag/src/tag.vue +52 -52
  375. package/packages/theme-chalk/src/index.scss +3 -0
  376. package/packages/theme-cy/lib/element.css +1 -0
  377. package/packages/theme-cy/lib/fileUpload.css +1 -0
  378. package/packages/theme-cy/lib/index.css +1 -1
  379. package/packages/theme-cy/lib/subTitle.css +1 -0
  380. package/packages/theme-cy/lib/tabDialog.css +1 -0
  381. package/packages/theme-cy/lib/treeselect.css +1 -1
  382. package/packages/theme-cy/src/element.scss +45 -0
  383. package/packages/theme-cy/src/fileUpload.scss +30 -0
  384. package/packages/theme-cy/src/index.scss +4 -0
  385. package/packages/theme-cy/src/subTitle.scss +26 -0
  386. package/packages/theme-cy/src/tabDialog.scss +43 -0
  387. package/packages/theme-cy/src/treeselect.scss +20 -14
  388. package/packages/timeline/src/item.vue +24 -24
  389. package/packages/timeline/src/main.vue +27 -27
  390. package/packages/tooltip/src/main.js +1 -1
  391. package/packages/transfer/src/main.vue +169 -169
  392. package/packages/transfer/src/transfer-panel.vue +164 -164
  393. package/packages/tree/src/tree-node.vue +169 -169
  394. package/packages/tree/src/tree.vue +408 -408
  395. package/packages/treeSelect/index.js +8 -0
  396. package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
  397. package/packages/upload/src/ajax.js +3 -3
  398. package/packages/upload/src/upload-dragger.vue +50 -50
  399. package/packages/upload/src/upload-list.vue +33 -33
  400. package/packages/upload/src/upload.vue +1 -1
  401. package/src/index.js +13 -5
  402. package/src/locale/format.js +0 -1
  403. package/src/mixins/migrating.js +2 -2
  404. package/src/utils/date.js +2 -368
  405. package/src/utils/date_source.js +368 -0
  406. package/src/utils/lodash.js +9 -18075
  407. package/src/utils/lodash_source.js +18075 -0
  408. package/src/utils/types.js +1 -1
  409. package/types/element-ui.d.ts +16 -3
  410. package/types/fileUpload.d.ts +5 -0
  411. package/types/subTitle.d.ts +5 -0
  412. package/types/tabDialog.d.ts +5 -0
  413. package/types/treeSelect.d.ts +5 -0
  414. package/lib/treeselect.js +0 -682
  415. package/packages/treeselect/index.js +0 -8
  416. package/types/treeselect.d.ts +0 -5
package/lib/carousel.js CHANGED
@@ -82,128 +82,60 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 111);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 193);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 0:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
90
+ /***/ 10:
91
+ /***/ (function(module, exports) {
92
92
 
93
- "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
93
+ module.exports = require("core-js/modules/web.dom-collections.for-each.js");
96
94
 
97
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
- // This module is a runtime utility for cleaner component module output and will
99
- // be included in the final webpack user bundle.
95
+ /***/ }),
100
96
 
101
- function normalizeComponent(
102
- scriptExports,
103
- render,
104
- staticRenderFns,
105
- functionalTemplate,
106
- injectStyles,
107
- scopeId,
108
- moduleIdentifier /* server only */,
109
- shadowMode /* vue-cli only */
110
- ) {
111
- // Vue.extend constructor export interop
112
- var options =
113
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
97
+ /***/ 11:
98
+ /***/ (function(module, exports) {
114
99
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
100
+ module.exports = require("core-js/modules/es.regexp.to-string.js");
121
101
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
102
+ /***/ }),
126
103
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
104
+ /***/ 13:
105
+ /***/ (function(module, exports) {
131
106
 
132
- var hook
133
- if (moduleIdentifier) {
134
- // server build
135
- hook = function (context) {
136
- // 2.3 injection
137
- context =
138
- context || // cached call
139
- (this.$vnode && this.$vnode.ssrContext) || // stateful
140
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
- // 2.2 with runInNewContext: true
142
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
- context = __VUE_SSR_CONTEXT__
144
- }
145
- // inject component styles
146
- if (injectStyles) {
147
- injectStyles.call(this, context)
148
- }
149
- // register component module identifier for async chunk inferrence
150
- if (context && context._registeredComponents) {
151
- context._registeredComponents.add(moduleIdentifier)
152
- }
153
- }
154
- // used by ssr in case component is cached and beforeCreate
155
- // never gets called
156
- options._ssrRegister = hook
157
- } else if (injectStyles) {
158
- hook = shadowMode
159
- ? function () {
160
- injectStyles.call(
161
- this,
162
- (options.functional ? this.parent : this).$root.$options.shadowRoot
163
- )
164
- }
165
- : injectStyles
166
- }
107
+ module.exports = require("core-js/modules/es.array.slice.js");
167
108
 
168
- if (hook) {
169
- if (options.functional) {
170
- // for template-only hot-reload because in that case the render fn doesn't
171
- // go through the normalizer
172
- options._injectStyles = hook
173
- // register for functional component in vue file
174
- var originalRender = options.render
175
- options.render = function renderWithStyleInjection(h, context) {
176
- hook.call(context)
177
- return originalRender(h, context)
178
- }
179
- } else {
180
- // inject component registration as beforeCreate hook
181
- var existing = options.beforeCreate
182
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
- }
184
- }
109
+ /***/ }),
185
110
 
186
- return {
187
- exports: scriptExports,
188
- options: options
189
- }
190
- }
111
+ /***/ 18:
112
+ /***/ (function(module, exports) {
113
+
114
+ module.exports = require("core-js/modules/es.array.filter.js");
115
+
116
+ /***/ }),
117
+
118
+ /***/ 19:
119
+ /***/ (function(module, exports) {
191
120
 
121
+ module.exports = require("core-js/modules/es.array.iterator.js");
192
122
 
193
123
  /***/ }),
194
124
 
195
- /***/ 111:
125
+ /***/ 193:
196
126
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
127
 
198
128
  "use strict";
199
129
  // ESM COMPAT FLAG
200
130
  __webpack_require__.r(__webpack_exports__);
201
131
 
202
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=3171eb48
203
- var render = function () {
204
- var _vm = this
205
- var _h = _vm.$createElement
206
- var _c = _vm._self._c || _h
132
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
133
+ var es_function_name_js_ = __webpack_require__(5);
134
+
135
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=f9d03448
136
+ var render = function render() {
137
+ var _vm = this,
138
+ _c = _vm._self._c
207
139
  return _c(
208
140
  "div",
209
141
  {
@@ -211,11 +143,11 @@ var render = function () {
211
143
  on: {
212
144
  mouseenter: function ($event) {
213
145
  $event.stopPropagation()
214
- return _vm.handleMouseEnter($event)
146
+ return _vm.handleMouseEnter.apply(null, arguments)
215
147
  },
216
148
  mouseleave: function ($event) {
217
149
  $event.stopPropagation()
218
- return _vm.handleMouseLeave($event)
150
+ return _vm.handleMouseLeave.apply(null, arguments)
219
151
  },
220
152
  },
221
153
  },
@@ -340,323 +272,275 @@ var staticRenderFns = []
340
272
  render._withStripped = true
341
273
 
342
274
 
343
- // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=3171eb48
275
+ // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=f9d03448
276
+
277
+ // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
278
+ var es_array_filter_js_ = __webpack_require__(18);
279
+
280
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
281
+ var es_number_constructor_js_ = __webpack_require__(6);
282
+
283
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
284
+ var es_object_to_string_js_ = __webpack_require__(3);
285
+
286
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
287
+ var es_regexp_to_string_js_ = __webpack_require__(11);
288
+
289
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
290
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
344
291
 
345
292
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
346
- var throttle_ = __webpack_require__(25);
293
+ var throttle_ = __webpack_require__(98);
347
294
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
348
295
 
349
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
350
- var resize_event_ = __webpack_require__(17);
296
+ // EXTERNAL MODULE: ./src/utils/resize-event.js
297
+ var resize_event = __webpack_require__(57);
351
298
 
352
299
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js
353
- //
354
- //
355
- //
356
- //
357
- //
358
- //
359
- //
360
- //
361
- //
362
- //
363
- //
364
- //
365
- //
366
- //
367
- //
368
- //
369
- //
370
- //
371
- //
372
- //
373
- //
374
- //
375
- //
376
- //
377
- //
378
- //
379
- //
380
- //
381
- //
382
- //
383
- //
384
- //
385
- //
386
- //
387
- //
388
- //
389
- //
390
- //
391
- //
392
- //
393
- //
394
- //
395
- //
396
- //
397
- //
398
- //
399
- //
400
- //
401
- //
402
- //
403
- //
404
- //
405
- //
406
- //
407
- //
408
- //
300
+
301
+
302
+
303
+
409
304
 
410
305
 
411
306
 
412
307
 
413
308
  /* harmony default export */ var mainvue_type_script_lang_js = ({
414
- name: 'ElCarousel',
415
-
416
- props: {
417
- initialIndex: {
418
- type: Number,
419
- default: 0
420
- },
421
- height: String,
422
- trigger: {
423
- type: String,
424
- default: 'hover'
425
- },
426
- autoplay: {
427
- type: Boolean,
428
- default: true
429
- },
430
- interval: {
431
- type: Number,
432
- default: 3000
433
- },
434
- indicatorPosition: String,
435
- indicator: {
436
- type: Boolean,
437
- default: true
438
- },
439
- arrow: {
440
- type: String,
441
- default: 'hover'
442
- },
443
- type: String,
444
- loop: {
445
- type: Boolean,
446
- default: true
447
- },
448
- direction: {
449
- type: String,
450
- default: 'horizontal',
451
- validator: function validator(val) {
452
- return ['horizontal', 'vertical'].indexOf(val) !== -1;
453
- }
454
- }
455
- },
456
-
457
- data: function data() {
458
- return {
459
- items: [],
460
- activeIndex: -1,
461
- containerWidth: 0,
462
- timer: null,
463
- hover: false
464
- };
465
- },
466
-
467
-
468
- computed: {
469
- arrowDisplay: function arrowDisplay() {
470
- return this.arrow !== 'never' && this.direction !== 'vertical';
471
- },
472
- hasLabel: function hasLabel() {
473
- return this.items.some(function (item) {
474
- return item.label.toString().length > 0;
475
- });
476
- },
477
- carouselClasses: function carouselClasses() {
478
- var classes = ['el-carousel', 'el-carousel--' + this.direction];
479
- if (this.type === 'card') {
480
- classes.push('el-carousel--card');
481
- }
482
- return classes;
483
- },
484
- indicatorsClasses: function indicatorsClasses() {
485
- var classes = ['el-carousel__indicators', 'el-carousel__indicators--' + this.direction];
486
- if (this.hasLabel) {
487
- classes.push('el-carousel__indicators--labels');
488
- }
489
- if (this.indicatorPosition === 'outside' || this.type === 'card') {
490
- classes.push('el-carousel__indicators--outside');
491
- }
492
- return classes;
493
- }
494
- },
495
-
496
- watch: {
497
- items: function items(val) {
498
- if (val.length > 0) this.setActiveItem(this.initialIndex);
499
- },
500
- activeIndex: function activeIndex(val, oldVal) {
501
- this.resetItemPosition(oldVal);
502
- if (oldVal > -1) {
503
- this.$emit('change', val, oldVal);
504
- }
505
- },
506
- autoplay: function autoplay(val) {
507
- val ? this.startTimer() : this.pauseTimer();
508
- },
509
- loop: function loop() {
510
- this.setActiveItem(this.activeIndex);
511
- },
512
- interval: function interval() {
513
- this.pauseTimer();
514
- this.startTimer();
515
- }
516
- },
517
-
518
- methods: {
519
- handleMouseEnter: function handleMouseEnter() {
520
- this.hover = true;
521
- this.pauseTimer();
522
- },
523
- handleMouseLeave: function handleMouseLeave() {
524
- this.hover = false;
525
- this.startTimer();
526
- },
527
- itemInStage: function itemInStage(item, index) {
528
- var length = this.items.length;
529
- if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
530
- return 'left';
531
- } else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
532
- return 'right';
533
- }
534
- return false;
535
- },
536
- handleButtonEnter: function handleButtonEnter(arrow) {
537
- var _this = this;
538
-
539
- if (this.direction === 'vertical') return;
540
- this.items.forEach(function (item, index) {
541
- if (arrow === _this.itemInStage(item, index)) {
542
- item.hover = true;
543
- }
544
- });
545
- },
546
- handleButtonLeave: function handleButtonLeave() {
547
- if (this.direction === 'vertical') return;
548
- this.items.forEach(function (item) {
549
- item.hover = false;
550
- });
551
- },
552
- updateItems: function updateItems() {
553
- this.items = this.$children.filter(function (child) {
554
- return child.$options.name === 'ElCarouselItem';
555
- });
556
- },
557
- resetItemPosition: function resetItemPosition(oldIndex) {
558
- var _this2 = this;
559
-
560
- this.items.forEach(function (item, index) {
561
- item.translateItem(index, _this2.activeIndex, oldIndex);
562
- });
563
- },
564
- playSlides: function playSlides() {
565
- if (this.activeIndex < this.items.length - 1) {
566
- this.activeIndex++;
567
- } else if (this.loop) {
568
- this.activeIndex = 0;
569
- }
570
- },
571
- pauseTimer: function pauseTimer() {
572
- if (this.timer) {
573
- clearInterval(this.timer);
574
- this.timer = null;
575
- }
576
- },
577
- startTimer: function startTimer() {
578
- if (this.interval <= 0 || !this.autoplay || this.timer) return;
579
- this.timer = setInterval(this.playSlides, this.interval);
580
- },
581
- resetTimer: function resetTimer() {
582
- this.pauseTimer();
583
- this.startTimer();
584
- },
585
- setActiveItem: function setActiveItem(index) {
586
- if (typeof index === 'string') {
587
- var filteredItems = this.items.filter(function (item) {
588
- return item.name === index;
589
- });
590
- if (filteredItems.length > 0) {
591
- index = this.items.indexOf(filteredItems[0]);
592
- }
593
- }
594
- index = Number(index);
595
- if (isNaN(index) || index !== Math.floor(index)) {
596
- console.warn('[Element Warn][Carousel]index must be an integer.');
597
- return;
598
- }
599
- var length = this.items.length;
600
- var oldIndex = this.activeIndex;
601
- if (index < 0) {
602
- this.activeIndex = this.loop ? length - 1 : 0;
603
- } else if (index >= length) {
604
- this.activeIndex = this.loop ? 0 : length - 1;
605
- } else {
606
- this.activeIndex = index;
607
- }
608
- if (oldIndex === this.activeIndex) {
609
- this.resetItemPosition(oldIndex);
610
- }
611
- this.resetTimer();
612
- },
613
- prev: function prev() {
614
- this.setActiveItem(this.activeIndex - 1);
615
- },
616
- next: function next() {
617
- this.setActiveItem(this.activeIndex + 1);
618
- },
619
- handleIndicatorClick: function handleIndicatorClick(index) {
620
- this.activeIndex = index;
621
- },
622
- handleIndicatorHover: function handleIndicatorHover(index) {
623
- if (this.trigger === 'hover' && index !== this.activeIndex) {
624
- this.activeIndex = index;
625
- }
626
- }
627
- },
628
-
629
- created: function created() {
630
- var _this3 = this;
631
-
632
- this.throttledArrowClick = throttle_default()(300, true, function (index) {
633
- _this3.setActiveItem(index);
634
- });
635
- this.throttledIndicatorHover = throttle_default()(300, function (index) {
636
- _this3.handleIndicatorHover(index);
637
- });
638
- },
639
- mounted: function mounted() {
640
- var _this4 = this;
641
-
642
- this.updateItems();
643
- this.$nextTick(function () {
644
- Object(resize_event_["addResizeListener"])(_this4.$el, _this4.resetItemPosition);
645
- if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
646
- _this4.activeIndex = _this4.initialIndex;
647
- }
648
- _this4.startTimer();
649
- });
650
- },
651
- beforeDestroy: function beforeDestroy() {
652
- if (this.$el) Object(resize_event_["removeResizeListener"])(this.$el, this.resetItemPosition);
653
- this.pauseTimer();
654
- }
309
+ name: 'ElCarousel',
310
+ props: {
311
+ initialIndex: {
312
+ type: Number,
313
+ default: 0
314
+ },
315
+ height: String,
316
+ trigger: {
317
+ type: String,
318
+ default: 'hover'
319
+ },
320
+ autoplay: {
321
+ type: Boolean,
322
+ default: true
323
+ },
324
+ interval: {
325
+ type: Number,
326
+ default: 3000
327
+ },
328
+ indicatorPosition: String,
329
+ indicator: {
330
+ type: Boolean,
331
+ default: true
332
+ },
333
+ arrow: {
334
+ type: String,
335
+ default: 'hover'
336
+ },
337
+ type: String,
338
+ loop: {
339
+ type: Boolean,
340
+ default: true
341
+ },
342
+ direction: {
343
+ type: String,
344
+ default: 'horizontal',
345
+ validator: function validator(val) {
346
+ return ['horizontal', 'vertical'].indexOf(val) !== -1;
347
+ }
348
+ }
349
+ },
350
+ data: function data() {
351
+ return {
352
+ items: [],
353
+ activeIndex: -1,
354
+ containerWidth: 0,
355
+ timer: null,
356
+ hover: false
357
+ };
358
+ },
359
+ computed: {
360
+ arrowDisplay: function arrowDisplay() {
361
+ return this.arrow !== 'never' && this.direction !== 'vertical';
362
+ },
363
+ hasLabel: function hasLabel() {
364
+ return this.items.some(function (item) {
365
+ return item.label.toString().length > 0;
366
+ });
367
+ },
368
+ carouselClasses: function carouselClasses() {
369
+ var classes = ['el-carousel', 'el-carousel--' + this.direction];
370
+ if (this.type === 'card') {
371
+ classes.push('el-carousel--card');
372
+ }
373
+ return classes;
374
+ },
375
+ indicatorsClasses: function indicatorsClasses() {
376
+ var classes = ['el-carousel__indicators', 'el-carousel__indicators--' + this.direction];
377
+ if (this.hasLabel) {
378
+ classes.push('el-carousel__indicators--labels');
379
+ }
380
+ if (this.indicatorPosition === 'outside' || this.type === 'card') {
381
+ classes.push('el-carousel__indicators--outside');
382
+ }
383
+ return classes;
384
+ }
385
+ },
386
+ watch: {
387
+ items: function items(val) {
388
+ if (val.length > 0) this.setActiveItem(this.initialIndex);
389
+ },
390
+ activeIndex: function activeIndex(val, oldVal) {
391
+ this.resetItemPosition(oldVal);
392
+ if (oldVal > -1) {
393
+ this.$emit('change', val, oldVal);
394
+ }
395
+ },
396
+ autoplay: function autoplay(val) {
397
+ val ? this.startTimer() : this.pauseTimer();
398
+ },
399
+ loop: function loop() {
400
+ this.setActiveItem(this.activeIndex);
401
+ },
402
+ interval: function interval() {
403
+ this.pauseTimer();
404
+ this.startTimer();
405
+ }
406
+ },
407
+ methods: {
408
+ handleMouseEnter: function handleMouseEnter() {
409
+ this.hover = true;
410
+ this.pauseTimer();
411
+ },
412
+ handleMouseLeave: function handleMouseLeave() {
413
+ this.hover = false;
414
+ this.startTimer();
415
+ },
416
+ itemInStage: function itemInStage(item, index) {
417
+ var length = this.items.length;
418
+ if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
419
+ return 'left';
420
+ } else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
421
+ return 'right';
422
+ }
423
+ return false;
424
+ },
425
+ handleButtonEnter: function handleButtonEnter(arrow) {
426
+ var _this = this;
427
+ if (this.direction === 'vertical') return;
428
+ this.items.forEach(function (item, index) {
429
+ if (arrow === _this.itemInStage(item, index)) {
430
+ item.hover = true;
431
+ }
432
+ });
433
+ },
434
+ handleButtonLeave: function handleButtonLeave() {
435
+ if (this.direction === 'vertical') return;
436
+ this.items.forEach(function (item) {
437
+ item.hover = false;
438
+ });
439
+ },
440
+ updateItems: function updateItems() {
441
+ this.items = this.$children.filter(function (child) {
442
+ return child.$options.name === 'ElCarouselItem';
443
+ });
444
+ },
445
+ resetItemPosition: function resetItemPosition(oldIndex) {
446
+ var _this2 = this;
447
+ this.items.forEach(function (item, index) {
448
+ item.translateItem(index, _this2.activeIndex, oldIndex);
449
+ });
450
+ },
451
+ playSlides: function playSlides() {
452
+ if (this.activeIndex < this.items.length - 1) {
453
+ this.activeIndex++;
454
+ } else if (this.loop) {
455
+ this.activeIndex = 0;
456
+ }
457
+ },
458
+ pauseTimer: function pauseTimer() {
459
+ if (this.timer) {
460
+ clearInterval(this.timer);
461
+ this.timer = null;
462
+ }
463
+ },
464
+ startTimer: function startTimer() {
465
+ if (this.interval <= 0 || !this.autoplay || this.timer) return;
466
+ this.timer = setInterval(this.playSlides, this.interval);
467
+ },
468
+ resetTimer: function resetTimer() {
469
+ this.pauseTimer();
470
+ this.startTimer();
471
+ },
472
+ setActiveItem: function setActiveItem(index) {
473
+ if (typeof index === 'string') {
474
+ var filteredItems = this.items.filter(function (item) {
475
+ return item.name === index;
476
+ });
477
+ if (filteredItems.length > 0) {
478
+ index = this.items.indexOf(filteredItems[0]);
479
+ }
480
+ }
481
+ index = Number(index);
482
+ if (isNaN(index) || index !== Math.floor(index)) {
483
+ console.warn('[Element Warn][Carousel]index must be an integer.');
484
+ return;
485
+ }
486
+ var length = this.items.length;
487
+ var oldIndex = this.activeIndex;
488
+ if (index < 0) {
489
+ this.activeIndex = this.loop ? length - 1 : 0;
490
+ } else if (index >= length) {
491
+ this.activeIndex = this.loop ? 0 : length - 1;
492
+ } else {
493
+ this.activeIndex = index;
494
+ }
495
+ if (oldIndex === this.activeIndex) {
496
+ this.resetItemPosition(oldIndex);
497
+ }
498
+ this.resetTimer();
499
+ },
500
+ prev: function prev() {
501
+ this.setActiveItem(this.activeIndex - 1);
502
+ },
503
+ next: function next() {
504
+ this.setActiveItem(this.activeIndex + 1);
505
+ },
506
+ handleIndicatorClick: function handleIndicatorClick(index) {
507
+ this.activeIndex = index;
508
+ },
509
+ handleIndicatorHover: function handleIndicatorHover(index) {
510
+ if (this.trigger === 'hover' && index !== this.activeIndex) {
511
+ this.activeIndex = index;
512
+ }
513
+ }
514
+ },
515
+ created: function created() {
516
+ var _this3 = this;
517
+ this.throttledArrowClick = throttle_default()(300, true, function (index) {
518
+ _this3.setActiveItem(index);
519
+ });
520
+ this.throttledIndicatorHover = throttle_default()(300, function (index) {
521
+ _this3.handleIndicatorHover(index);
522
+ });
523
+ },
524
+ mounted: function mounted() {
525
+ var _this4 = this;
526
+ this.updateItems();
527
+ this.$nextTick(function () {
528
+ Object(resize_event["a" /* addResizeListener */])(_this4.$el, _this4.resetItemPosition);
529
+ if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
530
+ _this4.activeIndex = _this4.initialIndex;
531
+ }
532
+ _this4.startTimer();
533
+ });
534
+ },
535
+ beforeDestroy: function beforeDestroy() {
536
+ if (this.$el) Object(resize_event["b" /* removeResizeListener */])(this.$el, this.resetItemPosition);
537
+ this.pauseTimer();
538
+ }
655
539
  });
656
540
  // CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js
657
541
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
658
542
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
659
- var componentNormalizer = __webpack_require__(0);
543
+ var componentNormalizer = __webpack_require__(2);
660
544
 
661
545
  // CONCATENATED MODULE: ./packages/carousel/src/main.vue
662
546
 
@@ -681,23 +565,306 @@ var component = Object(componentNormalizer["a" /* default */])(
681
565
  // CONCATENATED MODULE: ./packages/carousel/index.js
682
566
 
683
567
 
568
+
684
569
  /* istanbul ignore next */
685
570
  main.install = function (Vue) {
686
- Vue.component(main.name, main);
571
+ Vue.component(main.name, main);
687
572
  };
688
-
689
573
  /* harmony default export */ var carousel = __webpack_exports__["default"] = (main);
690
574
 
691
575
  /***/ }),
692
576
 
693
- /***/ 17:
577
+ /***/ 2:
578
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
579
+
580
+ "use strict";
581
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
582
+ /* globals __VUE_SSR_CONTEXT__ */
583
+
584
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
585
+ // This module is a runtime utility for cleaner component module output and will
586
+ // be included in the final webpack user bundle.
587
+
588
+ function normalizeComponent(
589
+ scriptExports,
590
+ render,
591
+ staticRenderFns,
592
+ functionalTemplate,
593
+ injectStyles,
594
+ scopeId,
595
+ moduleIdentifier /* server only */,
596
+ shadowMode /* vue-cli only */
597
+ ) {
598
+ // Vue.extend constructor export interop
599
+ var options =
600
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
601
+
602
+ // render functions
603
+ if (render) {
604
+ options.render = render
605
+ options.staticRenderFns = staticRenderFns
606
+ options._compiled = true
607
+ }
608
+
609
+ // functional template
610
+ if (functionalTemplate) {
611
+ options.functional = true
612
+ }
613
+
614
+ // scopedId
615
+ if (scopeId) {
616
+ options._scopeId = 'data-v-' + scopeId
617
+ }
618
+
619
+ var hook
620
+ if (moduleIdentifier) {
621
+ // server build
622
+ hook = function (context) {
623
+ // 2.3 injection
624
+ context =
625
+ context || // cached call
626
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
627
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
628
+ // 2.2 with runInNewContext: true
629
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
630
+ context = __VUE_SSR_CONTEXT__
631
+ }
632
+ // inject component styles
633
+ if (injectStyles) {
634
+ injectStyles.call(this, context)
635
+ }
636
+ // register component module identifier for async chunk inferrence
637
+ if (context && context._registeredComponents) {
638
+ context._registeredComponents.add(moduleIdentifier)
639
+ }
640
+ }
641
+ // used by ssr in case component is cached and beforeCreate
642
+ // never gets called
643
+ options._ssrRegister = hook
644
+ } else if (injectStyles) {
645
+ hook = shadowMode
646
+ ? function () {
647
+ injectStyles.call(
648
+ this,
649
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
650
+ )
651
+ }
652
+ : injectStyles
653
+ }
654
+
655
+ if (hook) {
656
+ if (options.functional) {
657
+ // for template-only hot-reload because in that case the render fn doesn't
658
+ // go through the normalizer
659
+ options._injectStyles = hook
660
+ // register for functional component in vue file
661
+ var originalRender = options.render
662
+ options.render = function renderWithStyleInjection(h, context) {
663
+ hook.call(context)
664
+ return originalRender(h, context)
665
+ }
666
+ } else {
667
+ // inject component registration as beforeCreate hook
668
+ var existing = options.beforeCreate
669
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
670
+ }
671
+ }
672
+
673
+ return {
674
+ exports: scriptExports,
675
+ options: options
676
+ }
677
+ }
678
+
679
+
680
+ /***/ }),
681
+
682
+ /***/ 22:
683
+ /***/ (function(module, exports) {
684
+
685
+ module.exports = require("core-js/modules/es.array.splice.js");
686
+
687
+ /***/ }),
688
+
689
+ /***/ 3:
690
+ /***/ (function(module, exports) {
691
+
692
+ module.exports = require("core-js/modules/es.object.to-string.js");
693
+
694
+ /***/ }),
695
+
696
+ /***/ 5:
697
+ /***/ (function(module, exports) {
698
+
699
+ module.exports = require("core-js/modules/es.function.name.js");
700
+
701
+ /***/ }),
702
+
703
+ /***/ 57:
704
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
705
+
706
+ "use strict";
707
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addResizeListener; });
708
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeResizeListener; });
709
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78);
710
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);
711
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(79);
712
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);
713
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83);
714
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
715
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(84);
716
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_3__);
717
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
718
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
719
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(13);
720
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__);
721
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(22);
722
+ /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__);
723
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(5);
724
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__);
725
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3);
726
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
727
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(7);
728
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);
729
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(11);
730
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_10__);
731
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(82);
732
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_11__);
733
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(10);
734
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
735
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(65);
736
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
737
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(70);
738
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14__);
739
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(69);
740
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_15__);
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+ function _createForOfIteratorHelperLoose(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (t) return (t = t.call(r)).next.bind(t); if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var o = 0; return function () { return o >= r.length ? { done: !0 } : { done: !1, value: r[o++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
756
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
757
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
758
+
759
+
760
+ var isServer = typeof window === 'undefined';
761
+
762
+ /* istanbul ignore next */
763
+ var resizeHandler = function resizeHandler(entries) {
764
+ for (var _iterator = _createForOfIteratorHelperLoose(entries), _step; !(_step = _iterator()).done;) {
765
+ var entry = _step.value;
766
+ var listeners = entry.target.__resizeListeners__ || [];
767
+ if (listeners.length) {
768
+ listeners.forEach(function (fn) {
769
+ fn();
770
+ });
771
+ }
772
+ }
773
+ };
774
+
775
+ /* istanbul ignore next */
776
+ var addResizeListener = function addResizeListener(element, fn) {
777
+ if (isServer) return;
778
+ if (!element.__resizeListeners__) {
779
+ element.__resizeListeners__ = [];
780
+ element.__ro__ = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_14___default.a(Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_15__["debounce"])(16, resizeHandler));
781
+ element.__ro__.observe(element);
782
+ }
783
+ element.__resizeListeners__.push(fn);
784
+ };
785
+
786
+ /* istanbul ignore next */
787
+ var removeResizeListener = function removeResizeListener(element, fn) {
788
+ if (!element || !element.__resizeListeners__) return;
789
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
790
+ if (!element.__resizeListeners__.length) {
791
+ element.__ro__.disconnect();
792
+ }
793
+ };
794
+
795
+ /***/ }),
796
+
797
+ /***/ 6:
798
+ /***/ (function(module, exports) {
799
+
800
+ module.exports = require("core-js/modules/es.number.constructor.js");
801
+
802
+ /***/ }),
803
+
804
+ /***/ 65:
805
+ /***/ (function(module, exports) {
806
+
807
+ module.exports = require("core-js/modules/web.dom-collections.iterator.js");
808
+
809
+ /***/ }),
810
+
811
+ /***/ 69:
812
+ /***/ (function(module, exports) {
813
+
814
+ module.exports = require("throttle-debounce");
815
+
816
+ /***/ }),
817
+
818
+ /***/ 7:
819
+ /***/ (function(module, exports) {
820
+
821
+ module.exports = require("core-js/modules/es.regexp.exec.js");
822
+
823
+ /***/ }),
824
+
825
+ /***/ 70:
826
+ /***/ (function(module, exports) {
827
+
828
+ module.exports = require("resize-observer-polyfill");
829
+
830
+ /***/ }),
831
+
832
+ /***/ 78:
833
+ /***/ (function(module, exports) {
834
+
835
+ module.exports = require("core-js/modules/es.symbol.js");
836
+
837
+ /***/ }),
838
+
839
+ /***/ 79:
840
+ /***/ (function(module, exports) {
841
+
842
+ module.exports = require("core-js/modules/es.symbol.description.js");
843
+
844
+ /***/ }),
845
+
846
+ /***/ 82:
847
+ /***/ (function(module, exports) {
848
+
849
+ module.exports = require("core-js/modules/es.string.iterator.js");
850
+
851
+ /***/ }),
852
+
853
+ /***/ 83:
854
+ /***/ (function(module, exports) {
855
+
856
+ module.exports = require("core-js/modules/es.symbol.iterator.js");
857
+
858
+ /***/ }),
859
+
860
+ /***/ 84:
694
861
  /***/ (function(module, exports) {
695
862
 
696
- module.exports = require("element-ui/lib/utils/resize-event");
863
+ module.exports = require("core-js/modules/es.array.from.js");
697
864
 
698
865
  /***/ }),
699
866
 
700
- /***/ 25:
867
+ /***/ 98:
701
868
  /***/ (function(module, exports) {
702
869
 
703
870
  module.exports = require("throttle-debounce/throttle");