cy-element-ui 1.0.4 → 1.0.6

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 (415) hide show
  1. package/README.md +22 -13
  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 +22 -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-cy/lib/element.css +1 -0
  376. package/packages/theme-cy/lib/fileUpload.css +1 -0
  377. package/packages/theme-cy/lib/index.css +1 -1
  378. package/packages/theme-cy/lib/subTitle.css +1 -0
  379. package/packages/theme-cy/lib/tabDialog.css +1 -0
  380. package/packages/theme-cy/lib/treeselect.css +1 -1
  381. package/packages/theme-cy/src/element.scss +45 -0
  382. package/packages/theme-cy/src/fileUpload.scss +30 -0
  383. package/packages/theme-cy/src/index.scss +4 -0
  384. package/packages/theme-cy/src/subTitle.scss +26 -0
  385. package/packages/theme-cy/src/tabDialog.scss +43 -0
  386. package/packages/theme-cy/src/treeselect.scss +20 -14
  387. package/packages/timeline/src/item.vue +24 -24
  388. package/packages/timeline/src/main.vue +27 -27
  389. package/packages/tooltip/src/main.js +1 -1
  390. package/packages/transfer/src/main.vue +169 -169
  391. package/packages/transfer/src/transfer-panel.vue +164 -164
  392. package/packages/tree/src/tree-node.vue +169 -169
  393. package/packages/tree/src/tree.vue +408 -408
  394. package/packages/treeSelect/index.js +8 -0
  395. package/packages/{treeselect → treeSelect}/src/main.vue +19 -19
  396. package/packages/upload/src/ajax.js +3 -3
  397. package/packages/upload/src/upload-dragger.vue +50 -50
  398. package/packages/upload/src/upload-list.vue +33 -33
  399. package/packages/upload/src/upload.vue +1 -1
  400. package/src/index.js +13 -5
  401. package/src/locale/format.js +0 -1
  402. package/src/mixins/migrating.js +2 -2
  403. package/src/utils/date.js +2 -368
  404. package/src/utils/date_source.js +368 -0
  405. package/src/utils/lodash.js +9 -18075
  406. package/src/utils/lodash_source.js +18075 -0
  407. package/src/utils/types.js +1 -1
  408. package/types/element-ui.d.ts +16 -3
  409. package/types/fileUpload.d.ts +5 -0
  410. package/types/subTitle.d.ts +5 -0
  411. package/types/tabDialog.d.ts +5 -0
  412. package/types/treeSelect.d.ts +5 -0
  413. package/lib/treeselect.js +0 -682
  414. package/packages/treeselect/index.js +0 -8
  415. package/types/treeselect.d.ts +0 -5
@@ -82,219 +82,883 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 142);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 221);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 142:
90
+ /***/ 0:
91
+ /***/ (function(module, exports) {
92
+
93
+ module.exports = require("vue");
94
+
95
+ /***/ }),
96
+
97
+ /***/ 1:
98
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
+
100
+ "use strict";
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
+ /* unused harmony export setStyle */
109
+ /* unused harmony export isScroll */
110
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
113
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__);
114
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
115
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__);
116
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
117
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
118
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
119
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
120
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
121
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
122
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
123
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__);
124
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
125
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__);
126
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
127
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ /* istanbul ignore next */
136
+
137
+
138
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
139
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
140
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
141
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
142
+
143
+ /* istanbul ignore next */
144
+ var trim = function trim(string) {
145
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
146
+ };
147
+ /* istanbul ignore next */
148
+ var camelCase = function camelCase(name) {
149
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
150
+ return offset ? letter.toUpperCase() : letter;
151
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
152
+ };
153
+
154
+ /* istanbul ignore next */
155
+ var on = function () {
156
+ if (!isServer && document.addEventListener) {
157
+ return function (element, event, handler) {
158
+ if (element && event && handler) {
159
+ element.addEventListener(event, handler, false);
160
+ }
161
+ };
162
+ } else {
163
+ return function (element, event, handler) {
164
+ if (element && event && handler) {
165
+ element.attachEvent('on' + event, handler);
166
+ }
167
+ };
168
+ }
169
+ }();
170
+
171
+ /* istanbul ignore next */
172
+ var off = function () {
173
+ if (!isServer && document.removeEventListener) {
174
+ return function (element, event, handler) {
175
+ if (element && event) {
176
+ element.removeEventListener(event, handler, false);
177
+ }
178
+ };
179
+ } else {
180
+ return function (element, event, handler) {
181
+ if (element && event) {
182
+ element.detachEvent('on' + event, handler);
183
+ }
184
+ };
185
+ }
186
+ }();
187
+
188
+ /* istanbul ignore next */
189
+ var once = function once(el, event, fn) {
190
+ var _listener = function listener() {
191
+ if (fn) {
192
+ fn.apply(this, arguments);
193
+ }
194
+ off(el, event, _listener);
195
+ };
196
+ on(el, event, _listener);
197
+ };
198
+
199
+ /* istanbul ignore next */
200
+ function hasClass(el, cls) {
201
+ if (!el || !cls) return false;
202
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
203
+ if (el.classList) {
204
+ return el.classList.contains(cls);
205
+ } else {
206
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
207
+ }
208
+ }
209
+ ;
210
+
211
+ /* istanbul ignore next */
212
+ function addClass(el, cls) {
213
+ if (!el) return;
214
+ var curClass = el.className;
215
+ var classes = (cls || '').split(' ');
216
+ for (var i = 0, j = classes.length; i < j; i++) {
217
+ var clsName = classes[i];
218
+ if (!clsName) continue;
219
+ if (el.classList) {
220
+ el.classList.add(clsName);
221
+ } else if (!hasClass(el, clsName)) {
222
+ curClass += ' ' + clsName;
223
+ }
224
+ }
225
+ if (!el.classList) {
226
+ el.setAttribute('class', curClass);
227
+ }
228
+ }
229
+ ;
230
+
231
+ /* istanbul ignore next */
232
+ function removeClass(el, cls) {
233
+ if (!el || !cls) return;
234
+ var classes = cls.split(' ');
235
+ var curClass = ' ' + el.className + ' ';
236
+ for (var i = 0, j = classes.length; i < j; i++) {
237
+ var clsName = classes[i];
238
+ if (!clsName) continue;
239
+ if (el.classList) {
240
+ el.classList.remove(clsName);
241
+ } else if (hasClass(el, clsName)) {
242
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
243
+ }
244
+ }
245
+ if (!el.classList) {
246
+ el.setAttribute('class', trim(curClass));
247
+ }
248
+ }
249
+ ;
250
+
251
+ /* istanbul ignore next */
252
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
253
+ if (isServer) return;
254
+ if (!element || !styleName) return null;
255
+ styleName = camelCase(styleName);
256
+ if (styleName === 'float') {
257
+ styleName = 'styleFloat';
258
+ }
259
+ try {
260
+ switch (styleName) {
261
+ case 'opacity':
262
+ try {
263
+ return element.filters.item('alpha').opacity / 100;
264
+ } catch (e) {
265
+ return 1.0;
266
+ }
267
+ default:
268
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
269
+ }
270
+ } catch (e) {
271
+ return element.style[styleName];
272
+ }
273
+ } : function (element, styleName) {
274
+ if (isServer) return;
275
+ if (!element || !styleName) return null;
276
+ styleName = camelCase(styleName);
277
+ if (styleName === 'float') {
278
+ styleName = 'cssFloat';
279
+ }
280
+ try {
281
+ var computed = document.defaultView.getComputedStyle(element, '');
282
+ return element.style[styleName] || computed ? computed[styleName] : null;
283
+ } catch (e) {
284
+ return element.style[styleName];
285
+ }
286
+ };
287
+
288
+ /* istanbul ignore next */
289
+ function setStyle(element, styleName, value) {
290
+ if (!element || !styleName) return;
291
+ if (typeof styleName === 'object') {
292
+ for (var prop in styleName) {
293
+ if (styleName.hasOwnProperty(prop)) {
294
+ setStyle(element, prop, styleName[prop]);
295
+ }
296
+ }
297
+ } else {
298
+ styleName = camelCase(styleName);
299
+ if (styleName === 'opacity' && ieVersion < 9) {
300
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
301
+ } else {
302
+ element.style[styleName] = value;
303
+ }
304
+ }
305
+ }
306
+ ;
307
+ var isScroll = function isScroll(el, vertical) {
308
+ if (isServer) return;
309
+ var determinedDirection = vertical !== null && vertical !== undefined;
310
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
311
+ return overflow.match(/(scroll|auto|overlay)/);
312
+ };
313
+ var getScrollContainer = function getScrollContainer(el, vertical) {
314
+ if (isServer) return;
315
+ var parent = el;
316
+ while (parent) {
317
+ if ([window, document, document.documentElement].includes(parent)) {
318
+ return window;
319
+ }
320
+ if (isScroll(parent, vertical)) {
321
+ return parent;
322
+ }
323
+ parent = parent.parentNode;
324
+ }
325
+ return parent;
326
+ };
327
+ var isInContainer = function isInContainer(el, container) {
328
+ if (isServer || !el || !container) return false;
329
+ var elRect = el.getBoundingClientRect();
330
+ var containerRect;
331
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
332
+ containerRect = {
333
+ top: 0,
334
+ right: window.innerWidth,
335
+ bottom: window.innerHeight,
336
+ left: 0
337
+ };
338
+ } else {
339
+ containerRect = container.getBoundingClientRect();
340
+ }
341
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
342
+ };
343
+
344
+ /***/ }),
345
+
346
+ /***/ 11:
347
+ /***/ (function(module, exports) {
348
+
349
+ module.exports = require("core-js/modules/es.regexp.to-string.js");
350
+
351
+ /***/ }),
352
+
353
+ /***/ 12:
354
+ /***/ (function(module, exports) {
355
+
356
+ module.exports = require("core-js/modules/es.string.replace.js");
357
+
358
+ /***/ }),
359
+
360
+ /***/ 134:
361
+ /***/ (function(module, exports) {
362
+
363
+ module.exports = require("core-js/modules/es.number.is-nan.js");
364
+
365
+ /***/ }),
366
+
367
+ /***/ 135:
368
+ /***/ (function(module, exports) {
369
+
370
+ module.exports = require("core-js/modules/es.number.parse-float.js");
371
+
372
+ /***/ }),
373
+
374
+ /***/ 16:
375
+ /***/ (function(module, exports) {
376
+
377
+ module.exports = require("core-js/modules/es.string.match.js");
378
+
379
+ /***/ }),
380
+
381
+ /***/ 17:
382
+ /***/ (function(module, exports) {
383
+
384
+ module.exports = require("core-js/modules/es.object.keys.js");
385
+
386
+ /***/ }),
387
+
388
+ /***/ 18:
389
+ /***/ (function(module, exports) {
390
+
391
+ module.exports = require("core-js/modules/es.array.filter.js");
392
+
393
+ /***/ }),
394
+
395
+ /***/ 19:
396
+ /***/ (function(module, exports) {
397
+
398
+ module.exports = require("core-js/modules/es.array.iterator.js");
399
+
400
+ /***/ }),
401
+
402
+ /***/ 20:
403
+ /***/ (function(module, exports) {
404
+
405
+ module.exports = require("core-js/modules/es.array.map.js");
406
+
407
+ /***/ }),
408
+
409
+ /***/ 221:
91
410
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
411
 
93
412
  "use strict";
94
413
  // ESM COMPAT FLAG
95
414
  __webpack_require__.r(__webpack_exports__);
96
415
 
416
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
417
+ var es_function_name_js_ = __webpack_require__(5);
418
+
419
+ // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
420
+ var es_array_map_js_ = __webpack_require__(20);
421
+
422
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
423
+ var es_number_constructor_js_ = __webpack_require__(6);
424
+
425
+ // EXTERNAL MODULE: external "core-js/modules/es.number.is-nan.js"
426
+ var es_number_is_nan_js_ = __webpack_require__(134);
427
+
428
+ // EXTERNAL MODULE: external "core-js/modules/es.number.parse-float.js"
429
+ var es_number_parse_float_js_ = __webpack_require__(135);
430
+
431
+ // EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
432
+ var es_object_keys_js_ = __webpack_require__(17);
433
+
434
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
435
+ var es_object_to_string_js_ = __webpack_require__(3);
436
+
97
437
  // EXTERNAL MODULE: external "throttle-debounce/debounce"
98
- var debounce_ = __webpack_require__(19);
438
+ var debounce_ = __webpack_require__(72);
99
439
  var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
100
440
 
101
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
102
- var types_ = __webpack_require__(18);
441
+ // EXTERNAL MODULE: ./src/utils/types.js
442
+ var types = __webpack_require__(8);
103
443
 
104
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
105
- var dom_ = __webpack_require__(2);
444
+ // EXTERNAL MODULE: ./src/utils/dom.js
445
+ var dom = __webpack_require__(1);
106
446
 
107
447
  // CONCATENATED MODULE: ./packages/infinite-scroll/src/main.js
108
448
 
109
449
 
110
450
 
111
451
 
452
+
453
+
454
+
455
+
456
+
112
457
  var getStyleComputedProperty = function getStyleComputedProperty(element, property) {
113
- if (element === window) {
114
- element = document.documentElement;
115
- }
116
-
117
- if (element.nodeType !== 1) {
118
- return [];
119
- }
120
- // NOTE: 1 DOM access here
121
- var css = window.getComputedStyle(element, null);
122
- return property ? css[property] : css;
458
+ if (element === window) {
459
+ element = document.documentElement;
460
+ }
461
+ if (element.nodeType !== 1) {
462
+ return [];
463
+ }
464
+ // NOTE: 1 DOM access here
465
+ var css = window.getComputedStyle(element, null);
466
+ return property ? css[property] : css;
123
467
  };
124
-
125
468
  var entries = function entries(obj) {
126
- return Object.keys(obj || {}).map(function (key) {
127
- return [key, obj[key]];
128
- });
469
+ return Object.keys(obj || {}).map(function (key) {
470
+ return [key, obj[key]];
471
+ });
129
472
  };
130
-
131
473
  var getPositionSize = function getPositionSize(el, prop) {
132
- return el === window || el === document ? document.documentElement[prop] : el[prop];
474
+ return el === window || el === document ? document.documentElement[prop] : el[prop];
133
475
  };
134
-
135
476
  var getOffsetHeight = function getOffsetHeight(el) {
136
- return getPositionSize(el, 'offsetHeight');
477
+ return getPositionSize(el, 'offsetHeight');
137
478
  };
138
-
139
479
  var getClientHeight = function getClientHeight(el) {
140
- return getPositionSize(el, 'clientHeight');
480
+ return getPositionSize(el, 'clientHeight');
141
481
  };
142
-
143
482
  var scope = 'ElInfiniteScroll';
144
483
  var attributes = {
145
- delay: {
146
- type: Number,
147
- default: 200
148
- },
149
- distance: {
150
- type: Number,
151
- default: 0
152
- },
153
- disabled: {
154
- type: Boolean,
155
- default: false
156
- },
157
- immediate: {
158
- type: Boolean,
159
- default: true
160
- }
484
+ delay: {
485
+ type: Number,
486
+ default: 200
487
+ },
488
+ distance: {
489
+ type: Number,
490
+ default: 0
491
+ },
492
+ disabled: {
493
+ type: Boolean,
494
+ default: false
495
+ },
496
+ immediate: {
497
+ type: Boolean,
498
+ default: true
499
+ }
161
500
  };
162
-
163
501
  var main_getScrollOptions = function getScrollOptions(el, vm) {
164
- if (!Object(types_["isHtmlElement"])(el)) return {};
165
-
166
- return entries(attributes).reduce(function (map, _ref) {
167
- var key = _ref[0],
168
- option = _ref[1];
169
- var type = option.type,
170
- defaultValue = option.default;
171
-
172
- var value = el.getAttribute('infinite-scroll-' + key);
173
- value = Object(types_["isUndefined"])(vm[value]) ? value : vm[value];
174
- switch (type) {
175
- case Number:
176
- value = Number(value);
177
- value = Number.isNaN(value) ? defaultValue : value;
178
- break;
179
- case Boolean:
180
- value = Object(types_["isDefined"])(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
181
- break;
182
- default:
183
- value = type(value);
184
- }
185
- map[key] = value;
186
- return map;
187
- }, {});
502
+ if (!Object(types["c" /* isHtmlElement */])(el)) return {};
503
+ return entries(attributes).reduce(function (map, _ref) {
504
+ var key = _ref[0],
505
+ option = _ref[1];
506
+ var type = option.type,
507
+ defaultValue = option.default;
508
+ var value = el.getAttribute("infinite-scroll-" + key);
509
+ value = Object(types["f" /* isUndefined */])(vm[value]) ? value : vm[value];
510
+ switch (type) {
511
+ case Number:
512
+ value = Number(value);
513
+ value = Number.isNaN(value) ? defaultValue : value;
514
+ break;
515
+ case Boolean:
516
+ value = Object(types["a" /* isDefined */])(value) ? value === 'false' ? false : Boolean(value) : defaultValue;
517
+ break;
518
+ default:
519
+ value = type(value);
520
+ }
521
+ map[key] = value;
522
+ return map;
523
+ }, {});
188
524
  };
189
-
190
525
  var getElementTop = function getElementTop(el) {
191
- return el.getBoundingClientRect().top;
526
+ return el.getBoundingClientRect().top;
192
527
  };
193
-
194
528
  var main_handleScroll = function handleScroll(cb) {
195
- var _scope = this[scope],
196
- el = _scope.el,
197
- vm = _scope.vm,
198
- container = _scope.container,
199
- observer = _scope.observer;
200
-
201
- var _getScrollOptions = main_getScrollOptions(el, vm),
202
- distance = _getScrollOptions.distance,
203
- disabled = _getScrollOptions.disabled;
204
-
205
- if (disabled) return;
206
-
207
- var containerInfo = container.getBoundingClientRect();
208
- if (!containerInfo.width && !containerInfo.height) return;
209
-
210
- var shouldTrigger = false;
211
-
212
- if (container === el) {
213
- // be aware of difference between clientHeight & offsetHeight & window.getComputedStyle().height
214
- var scrollBottom = container.scrollTop + getClientHeight(container);
215
- shouldTrigger = container.scrollHeight - scrollBottom <= distance;
216
- } else {
217
- var heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
218
- var offsetHeight = getOffsetHeight(container);
219
- var borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
220
- shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
221
- }
222
-
223
- if (shouldTrigger && Object(types_["isFunction"])(cb)) {
224
- cb.call(vm);
225
- } else if (observer) {
226
- observer.disconnect();
227
- this[scope].observer = null;
228
- }
529
+ var _this$scope = this[scope],
530
+ el = _this$scope.el,
531
+ vm = _this$scope.vm,
532
+ container = _this$scope.container,
533
+ observer = _this$scope.observer;
534
+ var _getScrollOptions = main_getScrollOptions(el, vm),
535
+ distance = _getScrollOptions.distance,
536
+ disabled = _getScrollOptions.disabled;
537
+ if (disabled) return;
538
+ var containerInfo = container.getBoundingClientRect();
539
+ if (!containerInfo.width && !containerInfo.height) return;
540
+ var shouldTrigger = false;
541
+ if (container === el) {
542
+ // be aware of difference between clientHeight & offsetHeight & window.getComputedStyle().height
543
+ var scrollBottom = container.scrollTop + getClientHeight(container);
544
+ shouldTrigger = container.scrollHeight - scrollBottom <= distance;
545
+ } else {
546
+ var heightBelowTop = getOffsetHeight(el) + getElementTop(el) - getElementTop(container);
547
+ var offsetHeight = getOffsetHeight(container);
548
+ var borderBottom = Number.parseFloat(getStyleComputedProperty(container, 'borderBottomWidth'));
549
+ shouldTrigger = heightBelowTop - offsetHeight + borderBottom <= distance;
550
+ }
551
+ if (shouldTrigger && Object(types["b" /* isFunction */])(cb)) {
552
+ cb.call(vm);
553
+ } else if (observer) {
554
+ observer.disconnect();
555
+ this[scope].observer = null;
556
+ }
229
557
  };
230
-
231
558
  /* harmony default export */ var main = ({
232
- name: 'InfiniteScroll',
233
- inserted: function inserted(el, binding, vnode) {
234
- var cb = binding.value;
235
-
236
- var vm = vnode.context;
237
- // only include vertical scroll
238
- var container = Object(dom_["getScrollContainer"])(el, true);
239
-
240
- var _getScrollOptions2 = main_getScrollOptions(el, vm),
241
- delay = _getScrollOptions2.delay,
242
- immediate = _getScrollOptions2.immediate;
243
-
244
- var onScroll = debounce_default()(delay, main_handleScroll.bind(el, cb));
245
-
246
- el[scope] = { el: el, vm: vm, container: container, onScroll: onScroll };
247
-
248
- if (container) {
249
- container.addEventListener('scroll', onScroll);
250
-
251
- if (immediate) {
252
- var observer = el[scope].observer = new MutationObserver(onScroll);
253
- observer.observe(container, { childList: true, subtree: true });
254
- onScroll();
255
- }
256
- }
257
- },
258
- unbind: function unbind(el) {
259
- var _el$scope = el[scope],
260
- container = _el$scope.container,
261
- onScroll = _el$scope.onScroll;
262
-
263
- if (container) {
264
- container.removeEventListener('scroll', onScroll);
265
- }
266
- }
559
+ name: 'InfiniteScroll',
560
+ inserted: function inserted(el, binding, vnode) {
561
+ var cb = binding.value;
562
+ var vm = vnode.context;
563
+ // only include vertical scroll
564
+ var container = Object(dom["b" /* getScrollContainer */])(el, true);
565
+ var _getScrollOptions2 = main_getScrollOptions(el, vm),
566
+ delay = _getScrollOptions2.delay,
567
+ immediate = _getScrollOptions2.immediate;
568
+ var onScroll = debounce_default()(delay, main_handleScroll.bind(el, cb));
569
+ el[scope] = {
570
+ el: el,
571
+ vm: vm,
572
+ container: container,
573
+ onScroll: onScroll
574
+ };
575
+ if (container) {
576
+ container.addEventListener('scroll', onScroll);
577
+ if (immediate) {
578
+ var observer = el[scope].observer = new MutationObserver(onScroll);
579
+ observer.observe(container, {
580
+ childList: true,
581
+ subtree: true
582
+ });
583
+ onScroll();
584
+ }
585
+ }
586
+ },
587
+ unbind: function unbind(el) {
588
+ var _el$scope = el[scope],
589
+ container = _el$scope.container,
590
+ onScroll = _el$scope.onScroll;
591
+ if (container) {
592
+ container.removeEventListener('scroll', onScroll);
593
+ }
594
+ }
267
595
  });
268
596
  // CONCATENATED MODULE: ./packages/infinite-scroll/index.js
269
597
 
270
598
 
599
+
271
600
  /* istanbul ignore next */
272
601
  main.install = function (Vue) {
273
- Vue.directive(main.name, main);
602
+ Vue.directive(main.name, main);
274
603
  };
275
-
276
604
  /* harmony default export */ var infinite_scroll = __webpack_exports__["default"] = (main);
277
605
 
278
606
  /***/ }),
279
607
 
280
- /***/ 18:
608
+ /***/ 25:
281
609
  /***/ (function(module, exports) {
282
610
 
283
- module.exports = require("element-ui/lib/utils/types");
611
+ module.exports = require("core-js/modules/es.array-buffer.constructor.js");
284
612
 
285
613
  /***/ }),
286
614
 
287
- /***/ 19:
615
+ /***/ 26:
288
616
  /***/ (function(module, exports) {
289
617
 
290
- module.exports = require("throttle-debounce/debounce");
618
+ module.exports = require("core-js/modules/es.array-buffer.slice.js");
619
+
620
+ /***/ }),
621
+
622
+ /***/ 27:
623
+ /***/ (function(module, exports) {
624
+
625
+ module.exports = require("core-js/modules/es.typed-array.int8-array.js");
626
+
627
+ /***/ }),
628
+
629
+ /***/ 28:
630
+ /***/ (function(module, exports) {
631
+
632
+ module.exports = require("core-js/modules/es.typed-array.copy-within.js");
633
+
634
+ /***/ }),
635
+
636
+ /***/ 29:
637
+ /***/ (function(module, exports) {
638
+
639
+ module.exports = require("core-js/modules/es.typed-array.every.js");
640
+
641
+ /***/ }),
642
+
643
+ /***/ 3:
644
+ /***/ (function(module, exports) {
645
+
646
+ module.exports = require("core-js/modules/es.object.to-string.js");
647
+
648
+ /***/ }),
649
+
650
+ /***/ 30:
651
+ /***/ (function(module, exports) {
652
+
653
+ module.exports = require("core-js/modules/es.typed-array.fill.js");
654
+
655
+ /***/ }),
656
+
657
+ /***/ 31:
658
+ /***/ (function(module, exports) {
659
+
660
+ module.exports = require("core-js/modules/es.typed-array.filter.js");
661
+
662
+ /***/ }),
663
+
664
+ /***/ 32:
665
+ /***/ (function(module, exports) {
666
+
667
+ module.exports = require("core-js/modules/es.typed-array.find.js");
668
+
669
+ /***/ }),
670
+
671
+ /***/ 33:
672
+ /***/ (function(module, exports) {
673
+
674
+ module.exports = require("core-js/modules/es.typed-array.find-index.js");
675
+
676
+ /***/ }),
677
+
678
+ /***/ 34:
679
+ /***/ (function(module, exports) {
680
+
681
+ module.exports = require("core-js/modules/es.typed-array.for-each.js");
682
+
683
+ /***/ }),
684
+
685
+ /***/ 35:
686
+ /***/ (function(module, exports) {
687
+
688
+ module.exports = require("core-js/modules/es.typed-array.includes.js");
689
+
690
+ /***/ }),
691
+
692
+ /***/ 36:
693
+ /***/ (function(module, exports) {
694
+
695
+ module.exports = require("core-js/modules/es.typed-array.index-of.js");
696
+
697
+ /***/ }),
698
+
699
+ /***/ 37:
700
+ /***/ (function(module, exports) {
701
+
702
+ module.exports = require("core-js/modules/es.typed-array.iterator.js");
703
+
704
+ /***/ }),
705
+
706
+ /***/ 38:
707
+ /***/ (function(module, exports) {
708
+
709
+ module.exports = require("core-js/modules/es.typed-array.join.js");
710
+
711
+ /***/ }),
712
+
713
+ /***/ 39:
714
+ /***/ (function(module, exports) {
715
+
716
+ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
717
+
718
+ /***/ }),
719
+
720
+ /***/ 40:
721
+ /***/ (function(module, exports) {
722
+
723
+ module.exports = require("core-js/modules/es.typed-array.map.js");
724
+
725
+ /***/ }),
726
+
727
+ /***/ 41:
728
+ /***/ (function(module, exports) {
729
+
730
+ module.exports = require("core-js/modules/es.typed-array.reduce.js");
731
+
732
+ /***/ }),
733
+
734
+ /***/ 42:
735
+ /***/ (function(module, exports) {
736
+
737
+ module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
738
+
739
+ /***/ }),
740
+
741
+ /***/ 43:
742
+ /***/ (function(module, exports) {
743
+
744
+ module.exports = require("core-js/modules/es.typed-array.reverse.js");
745
+
746
+ /***/ }),
747
+
748
+ /***/ 44:
749
+ /***/ (function(module, exports) {
750
+
751
+ module.exports = require("core-js/modules/es.typed-array.set.js");
752
+
753
+ /***/ }),
754
+
755
+ /***/ 45:
756
+ /***/ (function(module, exports) {
757
+
758
+ module.exports = require("core-js/modules/es.typed-array.slice.js");
759
+
760
+ /***/ }),
761
+
762
+ /***/ 46:
763
+ /***/ (function(module, exports) {
764
+
765
+ module.exports = require("core-js/modules/es.typed-array.some.js");
766
+
767
+ /***/ }),
768
+
769
+ /***/ 47:
770
+ /***/ (function(module, exports) {
771
+
772
+ module.exports = require("core-js/modules/es.typed-array.sort.js");
291
773
 
292
774
  /***/ }),
293
775
 
294
- /***/ 2:
776
+ /***/ 48:
295
777
  /***/ (function(module, exports) {
296
778
 
297
- module.exports = require("element-ui/lib/utils/dom");
779
+ module.exports = require("core-js/modules/es.typed-array.subarray.js");
780
+
781
+ /***/ }),
782
+
783
+ /***/ 49:
784
+ /***/ (function(module, exports) {
785
+
786
+ module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
787
+
788
+ /***/ }),
789
+
790
+ /***/ 5:
791
+ /***/ (function(module, exports) {
792
+
793
+ module.exports = require("core-js/modules/es.function.name.js");
794
+
795
+ /***/ }),
796
+
797
+ /***/ 50:
798
+ /***/ (function(module, exports) {
799
+
800
+ module.exports = require("core-js/modules/es.typed-array.to-string.js");
801
+
802
+ /***/ }),
803
+
804
+ /***/ 53:
805
+ /***/ (function(module, exports) {
806
+
807
+ module.exports = require("core-js/modules/es.array.includes.js");
808
+
809
+ /***/ }),
810
+
811
+ /***/ 6:
812
+ /***/ (function(module, exports) {
813
+
814
+ module.exports = require("core-js/modules/es.number.constructor.js");
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
+ /***/ 72:
826
+ /***/ (function(module, exports) {
827
+
828
+ module.exports = require("throttle-debounce/debounce");
829
+
830
+ /***/ }),
831
+
832
+ /***/ 8:
833
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
834
+
835
+ "use strict";
836
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
837
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
838
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
839
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
840
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
841
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
842
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
843
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
844
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
845
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
846
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
847
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__);
848
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
849
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
850
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
851
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
852
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
853
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__);
854
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
855
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__);
856
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
857
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__);
858
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
859
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__);
860
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
861
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__);
862
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
863
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__);
864
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
865
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__);
866
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
867
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__);
868
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
869
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__);
870
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
871
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__);
872
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
873
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
874
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
875
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__);
876
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
877
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__);
878
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
879
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__);
880
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
881
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__);
882
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
883
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__);
884
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
885
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__);
886
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
887
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__);
888
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
889
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__);
890
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
891
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__);
892
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
893
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__);
894
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
895
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__);
896
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
897
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__);
898
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
899
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__);
900
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
901
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+ function isString(obj) {
933
+ return Object.prototype.toString.call(obj) === '[object String]';
934
+ }
935
+ function isObject(obj) {
936
+ return Object.prototype.toString.call(obj) === '[object Object]';
937
+ }
938
+ function isHtmlElement(node) {
939
+ return node && node.nodeType === Node.ELEMENT_NODE;
940
+ }
941
+
942
+ /**
943
+ * - Inspired:
944
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
945
+ */
946
+ var isFunction = function isFunction(functionToCheck) {
947
+ var getType = {};
948
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
949
+ };
950
+ if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
951
+ isFunction = function isFunction(obj) {
952
+ return typeof obj === 'function' || false;
953
+ };
954
+ }
955
+
956
+ var isUndefined = function isUndefined(val) {
957
+ return val === void 0;
958
+ };
959
+ var isDefined = function isDefined(val) {
960
+ return val !== undefined && val !== null;
961
+ };
298
962
 
299
963
  /***/ })
300
964