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
package/lib/image.js CHANGED
@@ -82,184 +82,1919 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 67);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 157);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
93
+
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18);
111
+ /* 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__);
112
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(53);
113
+ /* 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__);
114
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6);
115
+ /* 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__);
116
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
117
+ /* 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__);
118
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
119
+ /* 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__);
120
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(16);
121
+ /* 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__);
122
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(12);
123
+ /* 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__);
124
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(0);
125
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_7__);
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ /* istanbul ignore next */
134
+
135
+
136
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_7___default.a.prototype.$isServer;
137
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
138
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
139
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
140
+
141
+ /* istanbul ignore next */
142
+ var trim = function trim(string) {
143
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
144
+ };
145
+ /* istanbul ignore next */
146
+ var camelCase = function camelCase(name) {
147
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
148
+ return offset ? letter.toUpperCase() : letter;
149
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
150
+ };
151
+
152
+ /* istanbul ignore next */
153
+ var on = function () {
154
+ if (!isServer && document.addEventListener) {
155
+ return function (element, event, handler) {
156
+ if (element && event && handler) {
157
+ element.addEventListener(event, handler, false);
158
+ }
159
+ };
160
+ } else {
161
+ return function (element, event, handler) {
162
+ if (element && event && handler) {
163
+ element.attachEvent('on' + event, handler);
164
+ }
165
+ };
166
+ }
167
+ }();
168
+
169
+ /* istanbul ignore next */
170
+ var off = function () {
171
+ if (!isServer && document.removeEventListener) {
172
+ return function (element, event, handler) {
173
+ if (element && event) {
174
+ element.removeEventListener(event, handler, false);
175
+ }
176
+ };
177
+ } else {
178
+ return function (element, event, handler) {
179
+ if (element && event) {
180
+ element.detachEvent('on' + event, handler);
181
+ }
182
+ };
183
+ }
184
+ }();
185
+
186
+ /* istanbul ignore next */
187
+ var once = function once(el, event, fn) {
188
+ var _listener = function listener() {
189
+ if (fn) {
190
+ fn.apply(this, arguments);
191
+ }
192
+ off(el, event, _listener);
193
+ };
194
+ on(el, event, _listener);
195
+ };
196
+
197
+ /* istanbul ignore next */
198
+ function hasClass(el, cls) {
199
+ if (!el || !cls) return false;
200
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
201
+ if (el.classList) {
202
+ return el.classList.contains(cls);
203
+ } else {
204
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
205
+ }
206
+ }
207
+ ;
208
+
209
+ /* istanbul ignore next */
210
+ function addClass(el, cls) {
211
+ if (!el) return;
212
+ var curClass = el.className;
213
+ var classes = (cls || '').split(' ');
214
+ for (var i = 0, j = classes.length; i < j; i++) {
215
+ var clsName = classes[i];
216
+ if (!clsName) continue;
217
+ if (el.classList) {
218
+ el.classList.add(clsName);
219
+ } else if (!hasClass(el, clsName)) {
220
+ curClass += ' ' + clsName;
221
+ }
222
+ }
223
+ if (!el.classList) {
224
+ el.setAttribute('class', curClass);
225
+ }
226
+ }
227
+ ;
228
+
229
+ /* istanbul ignore next */
230
+ function removeClass(el, cls) {
231
+ if (!el || !cls) return;
232
+ var classes = cls.split(' ');
233
+ var curClass = ' ' + el.className + ' ';
234
+ for (var i = 0, j = classes.length; i < j; i++) {
235
+ var clsName = classes[i];
236
+ if (!clsName) continue;
237
+ if (el.classList) {
238
+ el.classList.remove(clsName);
239
+ } else if (hasClass(el, clsName)) {
240
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
241
+ }
242
+ }
243
+ if (!el.classList) {
244
+ el.setAttribute('class', trim(curClass));
245
+ }
246
+ }
247
+ ;
248
+
249
+ /* istanbul ignore next */
250
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
251
+ if (isServer) return;
252
+ if (!element || !styleName) return null;
253
+ styleName = camelCase(styleName);
254
+ if (styleName === 'float') {
255
+ styleName = 'styleFloat';
256
+ }
257
+ try {
258
+ switch (styleName) {
259
+ case 'opacity':
260
+ try {
261
+ return element.filters.item('alpha').opacity / 100;
262
+ } catch (e) {
263
+ return 1.0;
264
+ }
265
+ default:
266
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
267
+ }
268
+ } catch (e) {
269
+ return element.style[styleName];
270
+ }
271
+ } : function (element, styleName) {
272
+ if (isServer) return;
273
+ if (!element || !styleName) return null;
274
+ styleName = camelCase(styleName);
275
+ if (styleName === 'float') {
276
+ styleName = 'cssFloat';
277
+ }
278
+ try {
279
+ var computed = document.defaultView.getComputedStyle(element, '');
280
+ return element.style[styleName] || computed ? computed[styleName] : null;
281
+ } catch (e) {
282
+ return element.style[styleName];
283
+ }
284
+ };
285
+
286
+ /* istanbul ignore next */
287
+ function setStyle(element, styleName, value) {
288
+ if (!element || !styleName) return;
289
+ if (typeof styleName === 'object') {
290
+ for (var prop in styleName) {
291
+ if (styleName.hasOwnProperty(prop)) {
292
+ setStyle(element, prop, styleName[prop]);
293
+ }
294
+ }
295
+ } else {
296
+ styleName = camelCase(styleName);
297
+ if (styleName === 'opacity' && ieVersion < 9) {
298
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
299
+ } else {
300
+ element.style[styleName] = value;
301
+ }
302
+ }
303
+ }
304
+ ;
305
+ var isScroll = function isScroll(el, vertical) {
306
+ if (isServer) return;
307
+ var determinedDirection = vertical !== null && vertical !== undefined;
308
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
309
+ return overflow.match(/(scroll|auto|overlay)/);
310
+ };
311
+ var getScrollContainer = function getScrollContainer(el, vertical) {
312
+ if (isServer) return;
313
+ var parent = el;
314
+ while (parent) {
315
+ if ([window, document, document.documentElement].includes(parent)) {
316
+ return window;
317
+ }
318
+ if (isScroll(parent, vertical)) {
319
+ return parent;
320
+ }
321
+ parent = parent.parentNode;
322
+ }
323
+ return parent;
324
+ };
325
+ var isInContainer = function isInContainer(el, container) {
326
+ if (isServer || !el || !container) return false;
327
+ var elRect = el.getBoundingClientRect();
328
+ var containerRect;
329
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
330
+ containerRect = {
331
+ top: 0,
332
+ right: window.innerWidth,
333
+ bottom: window.innerHeight,
334
+ left: 0
335
+ };
336
+ } else {
337
+ containerRect = container.getBoundingClientRect();
338
+ }
339
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
340
+ };
341
+
342
+ /***/ }),
343
+ /* 2 */
344
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
345
+
346
+ "use strict";
347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
348
+ /* globals __VUE_SSR_CONTEXT__ */
349
+
350
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
351
+ // This module is a runtime utility for cleaner component module output and will
352
+ // be included in the final webpack user bundle.
353
+
354
+ function normalizeComponent(
355
+ scriptExports,
356
+ render,
357
+ staticRenderFns,
358
+ functionalTemplate,
359
+ injectStyles,
360
+ scopeId,
361
+ moduleIdentifier /* server only */,
362
+ shadowMode /* vue-cli only */
363
+ ) {
364
+ // Vue.extend constructor export interop
365
+ var options =
366
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
367
+
368
+ // render functions
369
+ if (render) {
370
+ options.render = render
371
+ options.staticRenderFns = staticRenderFns
372
+ options._compiled = true
373
+ }
374
+
375
+ // functional template
376
+ if (functionalTemplate) {
377
+ options.functional = true
378
+ }
379
+
380
+ // scopedId
381
+ if (scopeId) {
382
+ options._scopeId = 'data-v-' + scopeId
383
+ }
384
+
385
+ var hook
386
+ if (moduleIdentifier) {
387
+ // server build
388
+ hook = function (context) {
389
+ // 2.3 injection
390
+ context =
391
+ context || // cached call
392
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
393
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
394
+ // 2.2 with runInNewContext: true
395
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
396
+ context = __VUE_SSR_CONTEXT__
397
+ }
398
+ // inject component styles
399
+ if (injectStyles) {
400
+ injectStyles.call(this, context)
401
+ }
402
+ // register component module identifier for async chunk inferrence
403
+ if (context && context._registeredComponents) {
404
+ context._registeredComponents.add(moduleIdentifier)
405
+ }
406
+ }
407
+ // used by ssr in case component is cached and beforeCreate
408
+ // never gets called
409
+ options._ssrRegister = hook
410
+ } else if (injectStyles) {
411
+ hook = shadowMode
412
+ ? function () {
413
+ injectStyles.call(
414
+ this,
415
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
416
+ )
417
+ }
418
+ : injectStyles
419
+ }
420
+
421
+ if (hook) {
422
+ if (options.functional) {
423
+ // for template-only hot-reload because in that case the render fn doesn't
424
+ // go through the normalizer
425
+ options._injectStyles = hook
426
+ // register for functional component in vue file
427
+ var originalRender = options.render
428
+ options.render = function renderWithStyleInjection(h, context) {
429
+ hook.call(context)
430
+ return originalRender(h, context)
431
+ }
432
+ } else {
433
+ // inject component registration as beforeCreate hook
434
+ var existing = options.beforeCreate
435
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
436
+ }
437
+ }
438
+
439
+ return {
440
+ exports: scriptExports,
441
+ options: options
442
+ }
443
+ }
444
+
445
+
446
+ /***/ }),
447
+ /* 3 */
448
+ /***/ (function(module, exports) {
449
+
450
+ module.exports = require("core-js/modules/es.object.to-string.js");
451
+
452
+ /***/ }),
453
+ /* 4 */
454
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
455
+
456
+ "use strict";
457
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
458
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
459
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
460
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
461
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
462
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
463
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
464
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
465
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
466
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
467
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
468
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
469
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
470
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
471
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
472
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
473
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
474
+ /* unused harmony export looseEqual */
475
+ /* unused harmony export arrayEquals */
476
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
477
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
478
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
479
+ /* unused harmony export objToArray */
480
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
481
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
482
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__);
483
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
484
+ /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);
485
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
486
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__);
487
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
488
+ /* 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__);
489
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
490
+ /* 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__);
491
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
492
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__);
493
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
494
+ /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__);
495
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
496
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);
497
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
498
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
499
+ /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
511
+ function noop() {}
512
+ ;
513
+ function hasOwn(obj, key) {
514
+ return hasOwnProperty.call(obj, key);
515
+ }
516
+ ;
517
+ function extend(to, _from) {
518
+ for (var key in _from) {
519
+ to[key] = _from[key];
520
+ }
521
+ return to;
522
+ }
523
+ ;
524
+ function toObject(arr) {
525
+ var res = {};
526
+ for (var i = 0; i < arr.length; i++) {
527
+ if (arr[i]) {
528
+ extend(res, arr[i]);
529
+ }
530
+ }
531
+ return res;
532
+ }
533
+ ;
534
+ var getValueByPath = function getValueByPath(object, prop) {
535
+ prop = prop || '';
536
+ var paths = prop.split('.');
537
+ var current = object;
538
+ var result = null;
539
+ for (var i = 0, j = paths.length; i < j; i++) {
540
+ var path = paths[i];
541
+ if (!current) break;
542
+ if (i === j - 1) {
543
+ result = current[path];
544
+ break;
545
+ }
546
+ current = current[path];
547
+ }
548
+ return result;
549
+ };
550
+ function getPropByPath(obj, path, strict) {
551
+ var tempObj = obj;
552
+ path = path.replace(/\[(\w+)\]/g, '.$1');
553
+ path = path.replace(/^\./, '');
554
+ var keyArr = path.split('.');
555
+ var i = 0;
556
+ for (var len = keyArr.length; i < len - 1; ++i) {
557
+ if (!tempObj && !strict) break;
558
+ var key = keyArr[i];
559
+ if (key in tempObj) {
560
+ tempObj = tempObj[key];
561
+ } else {
562
+ if (strict) {
563
+ throw new Error('please transfer a valid prop path to form item!');
564
+ }
565
+ break;
566
+ }
567
+ }
568
+ return {
569
+ o: tempObj,
570
+ k: keyArr[i],
571
+ v: tempObj ? tempObj[keyArr[i]] : null
572
+ };
573
+ }
574
+ ;
575
+ var generateId = function generateId() {
576
+ return Math.floor(Math.random() * 10000);
577
+ };
578
+ var valueEquals = function valueEquals(a, b) {
579
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
580
+ if (a === b) return true;
581
+ if (!(a instanceof Array)) return false;
582
+ if (!(b instanceof Array)) return false;
583
+ if (a.length !== b.length) return false;
584
+ for (var i = 0; i !== a.length; ++i) {
585
+ if (a[i] !== b[i]) return false;
586
+ }
587
+ return true;
588
+ };
589
+ var escapeRegexpString = function escapeRegexpString(value) {
590
+ if (value === void 0) {
591
+ value = '';
592
+ }
593
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
594
+ };
595
+
596
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
597
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
598
+ for (var i = 0; i !== arr.length; ++i) {
599
+ if (pred(arr[i])) {
600
+ return i;
601
+ }
602
+ }
603
+ return -1;
604
+ };
605
+ var arrayFind = function arrayFind(arr, pred) {
606
+ var idx = arrayFindIndex(arr, pred);
607
+ return idx !== -1 ? arr[idx] : undefined;
608
+ };
609
+
610
+ // coerce truthy value to array
611
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
612
+ if (Array.isArray(val)) {
613
+ return val;
614
+ } else if (val) {
615
+ return [val];
616
+ } else {
617
+ return [];
618
+ }
619
+ };
620
+ var isIE = function isIE() {
621
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
622
+ };
623
+ var isEdge = function isEdge() {
624
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
625
+ };
626
+ var isFirefox = function isFirefox() {
627
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
628
+ };
629
+ var autoprefixer = function autoprefixer(style) {
630
+ if (typeof style !== 'object') return style;
631
+ var rules = ['transform', 'transition', 'animation'];
632
+ var prefixes = ['ms-', 'webkit-'];
633
+ rules.forEach(function (rule) {
634
+ var value = style[rule];
635
+ if (rule && value) {
636
+ prefixes.forEach(function (prefix) {
637
+ style[prefix + rule] = value;
638
+ });
639
+ }
640
+ });
641
+ return style;
642
+ };
643
+ var kebabCase = function kebabCase(str) {
644
+ var hyphenateRE = /([^-])([A-Z])/g;
645
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
646
+ };
647
+ var capitalize = function capitalize(str) {
648
+ if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
649
+ return str.charAt(0).toUpperCase() + str.slice(1);
650
+ };
651
+ var looseEqual = function looseEqual(a, b) {
652
+ var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
653
+ var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
654
+ if (isObjectA && isObjectB) {
655
+ return JSON.stringify(a) === JSON.stringify(b);
656
+ } else if (!isObjectA && !isObjectB) {
657
+ return String(a) === String(b);
658
+ } else {
659
+ return false;
660
+ }
661
+ };
662
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
663
+ arrayA = arrayA || [];
664
+ arrayB = arrayB || [];
665
+ if (arrayA.length !== arrayB.length) {
666
+ return false;
667
+ }
668
+ for (var i = 0; i < arrayA.length; i++) {
669
+ if (!looseEqual(arrayA[i], arrayB[i])) {
670
+ return false;
671
+ }
672
+ }
673
+ return true;
674
+ };
675
+ var isEqual = function isEqual(value1, value2) {
676
+ if (Array.isArray(value1) && Array.isArray(value2)) {
677
+ return arrayEquals(value1, value2);
678
+ }
679
+ return looseEqual(value1, value2);
680
+ };
681
+ var isEmpty = function isEmpty(val) {
682
+ // null or undefined
683
+ if (val == null) return true;
684
+ if (typeof val === 'boolean') return false;
685
+ if (typeof val === 'number') return !val;
686
+ if (val instanceof Error) return val.message === '';
687
+ switch (Object.prototype.toString.call(val)) {
688
+ // String or Array
689
+ case '[object String]':
690
+ case '[object Array]':
691
+ return !val.length;
692
+
693
+ // Map or Set or File
694
+ case '[object File]':
695
+ case '[object Map]':
696
+ case '[object Set]':
697
+ {
698
+ return !val.size;
699
+ }
700
+ // Plain Object
701
+ case '[object Object]':
702
+ {
703
+ return !Object.keys(val).length;
704
+ }
705
+ }
706
+ return false;
707
+ };
708
+ function rafThrottle(fn) {
709
+ var locked = false;
710
+ return function () {
711
+ var _this = this;
712
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
713
+ args[_key] = arguments[_key];
714
+ }
715
+ if (locked) return;
716
+ locked = true;
717
+ window.requestAnimationFrame(function (_) {
718
+ fn.apply(_this, args);
719
+ locked = false;
720
+ });
721
+ };
722
+ }
723
+ function objToArray(obj) {
724
+ if (Array.isArray(obj)) {
725
+ return obj;
726
+ }
727
+ return isEmpty(obj) ? [] : [obj];
728
+ }
729
+ var isMac = function isMac() {
730
+ return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
731
+ };
732
+
733
+ /***/ }),
734
+ /* 5 */
735
+ /***/ (function(module, exports) {
736
+
737
+ module.exports = require("core-js/modules/es.function.name.js");
738
+
739
+ /***/ }),
740
+ /* 6 */
741
+ /***/ (function(module, exports) {
742
+
743
+ module.exports = require("core-js/modules/es.number.constructor.js");
744
+
745
+ /***/ }),
746
+ /* 7 */
747
+ /***/ (function(module, exports) {
748
+
749
+ module.exports = require("core-js/modules/es.regexp.exec.js");
750
+
751
+ /***/ }),
752
+ /* 8 */
753
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
754
+
755
+ "use strict";
756
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
757
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
758
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
759
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
760
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
761
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
762
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
763
+ /* 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__);
764
+ /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
765
+ /* 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__);
766
+ /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
767
+ /* 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__);
768
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
769
+ /* 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__);
770
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
771
+ /* 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__);
772
+ /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
773
+ /* 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__);
774
+ /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
775
+ /* 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__);
776
+ /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
777
+ /* 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__);
778
+ /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
779
+ /* 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__);
780
+ /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
781
+ /* 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__);
782
+ /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
783
+ /* 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__);
784
+ /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
785
+ /* 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__);
786
+ /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
787
+ /* 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__);
788
+ /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
789
+ /* 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__);
790
+ /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
791
+ /* 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__);
792
+ /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
793
+ /* 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__);
794
+ /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
795
+ /* 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__);
796
+ /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
797
+ /* 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__);
798
+ /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
799
+ /* 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__);
800
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
801
+ /* 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__);
802
+ /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
803
+ /* 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__);
804
+ /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
805
+ /* 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__);
806
+ /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
807
+ /* 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__);
808
+ /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
809
+ /* 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__);
810
+ /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
811
+ /* 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__);
812
+ /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
813
+ /* 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__);
814
+ /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
815
+ /* 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__);
816
+ /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
817
+ /* 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__);
818
+ /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
819
+ /* 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__);
820
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
821
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+ function isString(obj) {
853
+ return Object.prototype.toString.call(obj) === '[object String]';
854
+ }
855
+ function isObject(obj) {
856
+ return Object.prototype.toString.call(obj) === '[object Object]';
857
+ }
858
+ function isHtmlElement(node) {
859
+ return node && node.nodeType === Node.ELEMENT_NODE;
860
+ }
861
+
862
+ /**
863
+ * - Inspired:
864
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
865
+ */
866
+ var isFunction = function isFunction(functionToCheck) {
867
+ var getType = {};
868
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
869
+ };
870
+ if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
871
+ isFunction = function isFunction(obj) {
872
+ return typeof obj === 'function' || false;
873
+ };
874
+ }
875
+
876
+ var isUndefined = function isUndefined(val) {
877
+ return val === void 0;
878
+ };
879
+ var isDefined = function isDefined(val) {
880
+ return val !== undefined && val !== null;
881
+ };
882
+
883
+ /***/ }),
884
+ /* 9 */,
885
+ /* 10 */
886
+ /***/ (function(module, exports) {
887
+
888
+ module.exports = require("core-js/modules/web.dom-collections.for-each.js");
889
+
890
+ /***/ }),
891
+ /* 11 */
892
+ /***/ (function(module, exports) {
893
+
894
+ module.exports = require("core-js/modules/es.regexp.to-string.js");
895
+
896
+ /***/ }),
897
+ /* 12 */
898
+ /***/ (function(module, exports) {
899
+
900
+ module.exports = require("core-js/modules/es.string.replace.js");
901
+
902
+ /***/ }),
903
+ /* 13 */
904
+ /***/ (function(module, exports) {
905
+
906
+ module.exports = require("core-js/modules/es.array.slice.js");
907
+
908
+ /***/ }),
909
+ /* 14 */,
910
+ /* 15 */
911
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
912
+
913
+ "use strict";
914
+ /* harmony default export */ __webpack_exports__["a"] = (function (target) {
915
+ for (var i = 1, j = arguments.length; i < j; i++) {
916
+ var source = arguments[i] || {};
917
+ for (var prop in source) {
918
+ if (source.hasOwnProperty(prop)) {
919
+ var value = source[prop];
920
+ if (value !== undefined) {
921
+ target[prop] = value;
922
+ }
923
+ }
924
+ }
925
+ }
926
+ return target;
927
+ });
928
+ ;
929
+
930
+ /***/ }),
931
+ /* 16 */
932
+ /***/ (function(module, exports) {
933
+
934
+ module.exports = require("core-js/modules/es.string.match.js");
935
+
936
+ /***/ }),
937
+ /* 17 */
938
+ /***/ (function(module, exports) {
939
+
940
+ module.exports = require("core-js/modules/es.object.keys.js");
941
+
942
+ /***/ }),
943
+ /* 18 */
944
+ /***/ (function(module, exports) {
945
+
946
+ module.exports = require("core-js/modules/es.array.filter.js");
947
+
948
+ /***/ }),
949
+ /* 19 */
950
+ /***/ (function(module, exports) {
951
+
952
+ module.exports = require("core-js/modules/es.array.iterator.js");
953
+
954
+ /***/ }),
955
+ /* 20 */,
956
+ /* 21 */,
957
+ /* 22 */
958
+ /***/ (function(module, exports) {
959
+
960
+ module.exports = require("core-js/modules/es.array.splice.js");
961
+
962
+ /***/ }),
963
+ /* 23 */
964
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
965
+
966
+ "use strict";
967
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
968
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
969
+
970
+ var scrollBarWidth;
971
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
972
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
973
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
974
+ var outer = document.createElement('div');
975
+ outer.className = 'el-scrollbar__wrap';
976
+ outer.style.visibility = 'hidden';
977
+ outer.style.width = '100px';
978
+ outer.style.position = 'absolute';
979
+ outer.style.top = '-9999px';
980
+ document.body.appendChild(outer);
981
+ var widthNoScroll = outer.offsetWidth;
982
+ outer.style.overflow = 'scroll';
983
+ var inner = document.createElement('div');
984
+ inner.style.width = '100%';
985
+ outer.appendChild(inner);
986
+ var widthWithScroll = inner.offsetWidth;
987
+ outer.parentNode.removeChild(outer);
988
+ scrollBarWidth = widthNoScroll - widthWithScroll;
989
+ return scrollBarWidth;
990
+ });
991
+ ;
992
+
993
+ /***/ }),
994
+ /* 24 */
995
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
996
+
997
+ "use strict";
998
+
999
+ // EXPORTS
1000
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1001
+
1002
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1003
+ var es_number_constructor_js_ = __webpack_require__(6);
1004
+
1005
+ // EXTERNAL MODULE: external "vue"
1006
+ var external_vue_ = __webpack_require__(0);
1007
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1008
+
1009
+ // EXTERNAL MODULE: ./src/utils/merge.js
1010
+ var merge = __webpack_require__(15);
1011
+
1012
+ // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
1013
+ var es_array_splice_js_ = __webpack_require__(22);
1014
+
1015
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1016
+ var es_object_to_string_js_ = __webpack_require__(3);
1017
+
1018
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1019
+ var es_regexp_exec_js_ = __webpack_require__(7);
1020
+
1021
+ // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
1022
+ var es_string_split_js_ = __webpack_require__(59);
1023
+
1024
+ // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
1025
+ var es_string_trim_js_ = __webpack_require__(55);
1026
+
1027
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1028
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
1029
+
1030
+ // EXTERNAL MODULE: ./src/utils/dom.js
1031
+ var utils_dom = __webpack_require__(1);
1032
+
1033
+ // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ var hasModal = false;
1043
+ var hasInitZIndex = false;
1044
+ var popup_manager_zIndex;
1045
+ var popup_manager_getModal = function getModal() {
1046
+ if (external_vue_default.a.prototype.$isServer) return;
1047
+ var modalDom = PopupManager.modalDom;
1048
+ if (modalDom) {
1049
+ hasModal = true;
1050
+ } else {
1051
+ hasModal = false;
1052
+ modalDom = document.createElement('div');
1053
+ PopupManager.modalDom = modalDom;
1054
+ modalDom.addEventListener('touchmove', function (event) {
1055
+ event.preventDefault();
1056
+ event.stopPropagation();
1057
+ });
1058
+ modalDom.addEventListener('click', function () {
1059
+ PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1060
+ });
1061
+ }
1062
+ return modalDom;
1063
+ };
1064
+ var instances = {};
1065
+ var PopupManager = {
1066
+ modalFade: true,
1067
+ getInstance: function getInstance(id) {
1068
+ return instances[id];
1069
+ },
1070
+ register: function register(id, instance) {
1071
+ if (id && instance) {
1072
+ instances[id] = instance;
1073
+ }
1074
+ },
1075
+ deregister: function deregister(id) {
1076
+ if (id) {
1077
+ instances[id] = null;
1078
+ delete instances[id];
1079
+ }
1080
+ },
1081
+ nextZIndex: function nextZIndex() {
1082
+ return PopupManager.zIndex++;
1083
+ },
1084
+ modalStack: [],
1085
+ doOnModalClick: function doOnModalClick() {
1086
+ var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1087
+ if (!topItem) return;
1088
+ var instance = PopupManager.getInstance(topItem.id);
1089
+ if (instance && instance.closeOnClickModal) {
1090
+ instance.close();
1091
+ }
1092
+ },
1093
+ openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
1094
+ if (external_vue_default.a.prototype.$isServer) return;
1095
+ if (!id || zIndex === undefined) return;
1096
+ this.modalFade = modalFade;
1097
+ var modalStack = this.modalStack;
1098
+ for (var i = 0, j = modalStack.length; i < j; i++) {
1099
+ var item = modalStack[i];
1100
+ if (item.id === id) {
1101
+ return;
1102
+ }
1103
+ }
1104
+ var modalDom = popup_manager_getModal();
1105
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1106
+ if (this.modalFade && !hasModal) {
1107
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1108
+ }
1109
+ if (modalClass) {
1110
+ var classArr = modalClass.trim().split(/\s+/);
1111
+ classArr.forEach(function (item) {
1112
+ return Object(utils_dom["a" /* addClass */])(modalDom, item);
1113
+ });
1114
+ }
1115
+ setTimeout(function () {
1116
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1117
+ }, 200);
1118
+ if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1119
+ dom.parentNode.appendChild(modalDom);
1120
+ } else {
1121
+ document.body.appendChild(modalDom);
1122
+ }
1123
+ if (zIndex) {
1124
+ modalDom.style.zIndex = zIndex;
1125
+ }
1126
+ modalDom.tabIndex = 0;
1127
+ modalDom.style.display = '';
1128
+ this.modalStack.push({
1129
+ id: id,
1130
+ zIndex: zIndex,
1131
+ modalClass: modalClass
1132
+ });
1133
+ },
1134
+ closeModal: function closeModal(id) {
1135
+ var modalStack = this.modalStack;
1136
+ var modalDom = popup_manager_getModal();
1137
+ if (modalStack.length > 0) {
1138
+ var topItem = modalStack[modalStack.length - 1];
1139
+ if (topItem.id === id) {
1140
+ if (topItem.modalClass) {
1141
+ var classArr = topItem.modalClass.trim().split(/\s+/);
1142
+ classArr.forEach(function (item) {
1143
+ return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1144
+ });
1145
+ }
1146
+ modalStack.pop();
1147
+ if (modalStack.length > 0) {
1148
+ modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1149
+ }
1150
+ } else {
1151
+ for (var i = modalStack.length - 1; i >= 0; i--) {
1152
+ if (modalStack[i].id === id) {
1153
+ modalStack.splice(i, 1);
1154
+ break;
1155
+ }
1156
+ }
1157
+ }
1158
+ }
1159
+ if (modalStack.length === 0) {
1160
+ if (this.modalFade) {
1161
+ Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1162
+ }
1163
+ setTimeout(function () {
1164
+ if (modalStack.length === 0) {
1165
+ if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1166
+ modalDom.style.display = 'none';
1167
+ PopupManager.modalDom = undefined;
1168
+ }
1169
+ Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1170
+ }, 200);
1171
+ }
1172
+ }
1173
+ };
1174
+ Object.defineProperty(PopupManager, 'zIndex', {
1175
+ configurable: true,
1176
+ get: function get() {
1177
+ if (!hasInitZIndex) {
1178
+ popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1179
+ hasInitZIndex = true;
1180
+ }
1181
+ return popup_manager_zIndex;
1182
+ },
1183
+ set: function set(value) {
1184
+ popup_manager_zIndex = value;
1185
+ }
1186
+ });
1187
+ var popup_manager_getTopPopup = function getTopPopup() {
1188
+ if (external_vue_default.a.prototype.$isServer) return;
1189
+ if (PopupManager.modalStack.length > 0) {
1190
+ var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1191
+ if (!topPopup) return;
1192
+ var instance = PopupManager.getInstance(topPopup.id);
1193
+ return instance;
1194
+ }
1195
+ };
1196
+ if (!external_vue_default.a.prototype.$isServer) {
1197
+ // handle `esc` key when the popup is shown
1198
+ window.addEventListener('keydown', function (event) {
1199
+ if (event.keyCode === 27) {
1200
+ var topPopup = popup_manager_getTopPopup();
1201
+ if (topPopup && topPopup.closeOnPressEscape) {
1202
+ topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1203
+ }
1204
+ }
1205
+ });
1206
+ }
1207
+ /* harmony default export */ var popup_manager = (PopupManager);
1208
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1209
+ var scrollbar_width = __webpack_require__(23);
1210
+
1211
+ // CONCATENATED MODULE: ./src/utils/popup/index.js
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+ var idSeed = 1;
1219
+ var scrollBarWidth;
1220
+ /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1221
+ props: {
1222
+ visible: {
1223
+ type: Boolean,
1224
+ default: false
1225
+ },
1226
+ openDelay: {},
1227
+ closeDelay: {},
1228
+ zIndex: {},
1229
+ modal: {
1230
+ type: Boolean,
1231
+ default: false
1232
+ },
1233
+ modalFade: {
1234
+ type: Boolean,
1235
+ default: true
1236
+ },
1237
+ modalClass: {},
1238
+ modalAppendToBody: {
1239
+ type: Boolean,
1240
+ default: false
1241
+ },
1242
+ lockScroll: {
1243
+ type: Boolean,
1244
+ default: true
1245
+ },
1246
+ closeOnPressEscape: {
1247
+ type: Boolean,
1248
+ default: false
1249
+ },
1250
+ closeOnClickModal: {
1251
+ type: Boolean,
1252
+ default: false
1253
+ }
1254
+ },
1255
+ beforeMount: function beforeMount() {
1256
+ this._popupId = 'popup-' + idSeed++;
1257
+ popup_manager.register(this._popupId, this);
1258
+ },
1259
+ beforeDestroy: function beforeDestroy() {
1260
+ popup_manager.deregister(this._popupId);
1261
+ popup_manager.closeModal(this._popupId);
1262
+ this.restoreBodyStyle();
1263
+ },
1264
+ data: function data() {
1265
+ return {
1266
+ opened: false,
1267
+ bodyPaddingRight: null,
1268
+ computedBodyPaddingRight: 0,
1269
+ withoutHiddenClass: true,
1270
+ rendered: false
1271
+ };
1272
+ },
1273
+ watch: {
1274
+ visible: function visible(val) {
1275
+ var _this = this;
1276
+ if (val) {
1277
+ if (this._opening) return;
1278
+ if (!this.rendered) {
1279
+ this.rendered = true;
1280
+ external_vue_default.a.nextTick(function () {
1281
+ _this.open();
1282
+ });
1283
+ } else {
1284
+ this.open();
1285
+ }
1286
+ } else {
1287
+ this.close();
1288
+ }
1289
+ }
1290
+ },
1291
+ methods: {
1292
+ open: function open(options) {
1293
+ var _this2 = this;
1294
+ if (!this.rendered) {
1295
+ this.rendered = true;
1296
+ }
1297
+ var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1298
+ if (this._closeTimer) {
1299
+ clearTimeout(this._closeTimer);
1300
+ this._closeTimer = null;
1301
+ }
1302
+ clearTimeout(this._openTimer);
1303
+ var openDelay = Number(props.openDelay);
1304
+ if (openDelay > 0) {
1305
+ this._openTimer = setTimeout(function () {
1306
+ _this2._openTimer = null;
1307
+ _this2.doOpen(props);
1308
+ }, openDelay);
1309
+ } else {
1310
+ this.doOpen(props);
1311
+ }
1312
+ },
1313
+ doOpen: function doOpen(props) {
1314
+ if (this.$isServer) return;
1315
+ if (this.willOpen && !this.willOpen()) return;
1316
+ if (this.opened) return;
1317
+ this._opening = true;
1318
+ var dom = this.$el;
1319
+ var modal = props.modal;
1320
+ var zIndex = props.zIndex;
1321
+ if (zIndex) {
1322
+ popup_manager.zIndex = zIndex;
1323
+ }
1324
+ if (modal) {
1325
+ if (this._closing) {
1326
+ popup_manager.closeModal(this._popupId);
1327
+ this._closing = false;
1328
+ }
1329
+ popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1330
+ if (props.lockScroll) {
1331
+ this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1332
+ if (this.withoutHiddenClass) {
1333
+ this.bodyPaddingRight = document.body.style.paddingRight;
1334
+ this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1335
+ }
1336
+ scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1337
+ var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1338
+ var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1339
+ if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1340
+ document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1341
+ }
1342
+ Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1343
+ }
1344
+ }
1345
+ if (getComputedStyle(dom).position === 'static') {
1346
+ dom.style.position = 'absolute';
1347
+ }
1348
+ dom.style.zIndex = popup_manager.nextZIndex();
1349
+ this.opened = true;
1350
+ this.onOpen && this.onOpen();
1351
+ this.doAfterOpen();
1352
+ },
1353
+ doAfterOpen: function doAfterOpen() {
1354
+ this._opening = false;
1355
+ },
1356
+ close: function close() {
1357
+ var _this3 = this;
1358
+ if (this.willClose && !this.willClose()) return;
1359
+ if (this._openTimer !== null) {
1360
+ clearTimeout(this._openTimer);
1361
+ this._openTimer = null;
1362
+ }
1363
+ clearTimeout(this._closeTimer);
1364
+ var closeDelay = Number(this.closeDelay);
1365
+ if (closeDelay > 0) {
1366
+ this._closeTimer = setTimeout(function () {
1367
+ _this3._closeTimer = null;
1368
+ _this3.doClose();
1369
+ }, closeDelay);
1370
+ } else {
1371
+ this.doClose();
1372
+ }
1373
+ },
1374
+ doClose: function doClose() {
1375
+ this._closing = true;
1376
+ this.onClose && this.onClose();
1377
+ if (this.lockScroll) {
1378
+ setTimeout(this.restoreBodyStyle, 200);
1379
+ }
1380
+ this.opened = false;
1381
+ this.doAfterClose();
1382
+ },
1383
+ doAfterClose: function doAfterClose() {
1384
+ popup_manager.closeModal(this._popupId);
1385
+ this._closing = false;
1386
+ },
1387
+ restoreBodyStyle: function restoreBodyStyle() {
1388
+ if (this.modal && this.withoutHiddenClass) {
1389
+ document.body.style.paddingRight = this.bodyPaddingRight;
1390
+ Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1391
+ }
1392
+ this.withoutHiddenClass = true;
1393
+ }
1394
+ }
1395
+ });
1396
+
1397
+
1398
+ /***/ }),
1399
+ /* 25 */
1400
+ /***/ (function(module, exports) {
1401
+
1402
+ module.exports = require("core-js/modules/es.array-buffer.constructor.js");
1403
+
1404
+ /***/ }),
1405
+ /* 26 */
1406
+ /***/ (function(module, exports) {
1407
+
1408
+ module.exports = require("core-js/modules/es.array-buffer.slice.js");
1409
+
1410
+ /***/ }),
1411
+ /* 27 */
1412
+ /***/ (function(module, exports) {
1413
+
1414
+ module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1415
+
1416
+ /***/ }),
1417
+ /* 28 */
1418
+ /***/ (function(module, exports) {
1419
+
1420
+ module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1421
+
1422
+ /***/ }),
1423
+ /* 29 */
1424
+ /***/ (function(module, exports) {
1425
+
1426
+ module.exports = require("core-js/modules/es.typed-array.every.js");
1427
+
1428
+ /***/ }),
1429
+ /* 30 */
1430
+ /***/ (function(module, exports) {
1431
+
1432
+ module.exports = require("core-js/modules/es.typed-array.fill.js");
1433
+
1434
+ /***/ }),
1435
+ /* 31 */
1436
+ /***/ (function(module, exports) {
1437
+
1438
+ module.exports = require("core-js/modules/es.typed-array.filter.js");
1439
+
1440
+ /***/ }),
1441
+ /* 32 */
1442
+ /***/ (function(module, exports) {
1443
+
1444
+ module.exports = require("core-js/modules/es.typed-array.find.js");
1445
+
1446
+ /***/ }),
1447
+ /* 33 */
1448
+ /***/ (function(module, exports) {
1449
+
1450
+ module.exports = require("core-js/modules/es.typed-array.find-index.js");
89
1451
 
90
- /***/ 0:
1452
+ /***/ }),
1453
+ /* 34 */
1454
+ /***/ (function(module, exports) {
1455
+
1456
+ module.exports = require("core-js/modules/es.typed-array.for-each.js");
1457
+
1458
+ /***/ }),
1459
+ /* 35 */
1460
+ /***/ (function(module, exports) {
1461
+
1462
+ module.exports = require("core-js/modules/es.typed-array.includes.js");
1463
+
1464
+ /***/ }),
1465
+ /* 36 */
1466
+ /***/ (function(module, exports) {
1467
+
1468
+ module.exports = require("core-js/modules/es.typed-array.index-of.js");
1469
+
1470
+ /***/ }),
1471
+ /* 37 */
1472
+ /***/ (function(module, exports) {
1473
+
1474
+ module.exports = require("core-js/modules/es.typed-array.iterator.js");
1475
+
1476
+ /***/ }),
1477
+ /* 38 */
1478
+ /***/ (function(module, exports) {
1479
+
1480
+ module.exports = require("core-js/modules/es.typed-array.join.js");
1481
+
1482
+ /***/ }),
1483
+ /* 39 */
1484
+ /***/ (function(module, exports) {
1485
+
1486
+ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1487
+
1488
+ /***/ }),
1489
+ /* 40 */
1490
+ /***/ (function(module, exports) {
1491
+
1492
+ module.exports = require("core-js/modules/es.typed-array.map.js");
1493
+
1494
+ /***/ }),
1495
+ /* 41 */
1496
+ /***/ (function(module, exports) {
1497
+
1498
+ module.exports = require("core-js/modules/es.typed-array.reduce.js");
1499
+
1500
+ /***/ }),
1501
+ /* 42 */
1502
+ /***/ (function(module, exports) {
1503
+
1504
+ module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1505
+
1506
+ /***/ }),
1507
+ /* 43 */
1508
+ /***/ (function(module, exports) {
1509
+
1510
+ module.exports = require("core-js/modules/es.typed-array.reverse.js");
1511
+
1512
+ /***/ }),
1513
+ /* 44 */
1514
+ /***/ (function(module, exports) {
1515
+
1516
+ module.exports = require("core-js/modules/es.typed-array.set.js");
1517
+
1518
+ /***/ }),
1519
+ /* 45 */
1520
+ /***/ (function(module, exports) {
1521
+
1522
+ module.exports = require("core-js/modules/es.typed-array.slice.js");
1523
+
1524
+ /***/ }),
1525
+ /* 46 */
1526
+ /***/ (function(module, exports) {
1527
+
1528
+ module.exports = require("core-js/modules/es.typed-array.some.js");
1529
+
1530
+ /***/ }),
1531
+ /* 47 */
1532
+ /***/ (function(module, exports) {
1533
+
1534
+ module.exports = require("core-js/modules/es.typed-array.sort.js");
1535
+
1536
+ /***/ }),
1537
+ /* 48 */
1538
+ /***/ (function(module, exports) {
1539
+
1540
+ module.exports = require("core-js/modules/es.typed-array.subarray.js");
1541
+
1542
+ /***/ }),
1543
+ /* 49 */
1544
+ /***/ (function(module, exports) {
1545
+
1546
+ module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1547
+
1548
+ /***/ }),
1549
+ /* 50 */
1550
+ /***/ (function(module, exports) {
1551
+
1552
+ module.exports = require("core-js/modules/es.typed-array.to-string.js");
1553
+
1554
+ /***/ }),
1555
+ /* 51 */,
1556
+ /* 52 */
91
1557
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
1558
 
93
1559
  "use strict";
94
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
- /* globals __VUE_SSR_CONTEXT__ */
96
1560
 
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.
1561
+ // EXPORTS
1562
+ __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
1563
+
1564
+ // UNUSED EXPORTS: use, i18n
1565
+
1566
+ // EXTERNAL MODULE: external "core-js/modules/es.object.get-prototype-of.js"
1567
+ var es_object_get_prototype_of_js_ = __webpack_require__(68);
1568
+
1569
+ // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
1570
+ /* harmony default export */ var zh_CN = ({
1571
+ el: {
1572
+ colorpicker: {
1573
+ confirm: '确定',
1574
+ clear: '清空'
1575
+ },
1576
+ datepicker: {
1577
+ now: '此刻',
1578
+ today: '今天',
1579
+ cancel: '取消',
1580
+ clear: '清空',
1581
+ confirm: '确定',
1582
+ selectDate: '选择日期',
1583
+ selectTime: '选择时间',
1584
+ startDate: '开始日期',
1585
+ startTime: '开始时间',
1586
+ endDate: '结束日期',
1587
+ endTime: '结束时间',
1588
+ prevYear: '前一年',
1589
+ nextYear: '后一年',
1590
+ prevMonth: '上个月',
1591
+ nextMonth: '下个月',
1592
+ year: '年',
1593
+ month1: '1 月',
1594
+ month2: '2 月',
1595
+ month3: '3 月',
1596
+ month4: '4 月',
1597
+ month5: '5 月',
1598
+ month6: '6 月',
1599
+ month7: '7 月',
1600
+ month8: '8 月',
1601
+ month9: '9 月',
1602
+ month10: '10 月',
1603
+ month11: '11 月',
1604
+ month12: '12 月',
1605
+ // week: '周次',
1606
+ weeks: {
1607
+ sun: '日',
1608
+ mon: '一',
1609
+ tue: '二',
1610
+ wed: '三',
1611
+ thu: '四',
1612
+ fri: '五',
1613
+ sat: '六'
1614
+ },
1615
+ months: {
1616
+ jan: '一月',
1617
+ feb: '二月',
1618
+ mar: '三月',
1619
+ apr: '四月',
1620
+ may: '五月',
1621
+ jun: '六月',
1622
+ jul: '七月',
1623
+ aug: '八月',
1624
+ sep: '九月',
1625
+ oct: '十月',
1626
+ nov: '十一月',
1627
+ dec: '十二月'
1628
+ }
1629
+ },
1630
+ select: {
1631
+ loading: '加载中',
1632
+ noMatch: '无匹配数据',
1633
+ noData: '无数据',
1634
+ placeholder: '请选择'
1635
+ },
1636
+ cascader: {
1637
+ noMatch: '无匹配数据',
1638
+ loading: '加载中',
1639
+ placeholder: '请选择',
1640
+ noData: '暂无数据'
1641
+ },
1642
+ pagination: {
1643
+ goto: '前往',
1644
+ pagesize: '条/页',
1645
+ total: '共 {total} 条',
1646
+ pageClassifier: '页'
1647
+ },
1648
+ messagebox: {
1649
+ title: '提示',
1650
+ confirm: '确定',
1651
+ cancel: '取消',
1652
+ error: '输入的数据不合法!'
1653
+ },
1654
+ upload: {
1655
+ deleteTip: '按 delete 键可删除',
1656
+ delete: '删除',
1657
+ preview: '查看图片',
1658
+ continue: '继续上传'
1659
+ },
1660
+ table: {
1661
+ emptyText: '暂无数据',
1662
+ confirmFilter: '筛选',
1663
+ resetFilter: '重置',
1664
+ clearFilter: '全部',
1665
+ sumText: '合计'
1666
+ },
1667
+ tree: {
1668
+ emptyText: '暂无数据'
1669
+ },
1670
+ transfer: {
1671
+ noMatch: '无匹配数据',
1672
+ noData: '无数据',
1673
+ titles: ['列表 1', '列表 2'],
1674
+ filterPlaceholder: '请输入搜索内容',
1675
+ noCheckedFormat: '共 {total} 项',
1676
+ hasCheckedFormat: '已选 {checked}/{total} 项'
1677
+ },
1678
+ image: {
1679
+ error: '加载失败'
1680
+ },
1681
+ pageHeader: {
1682
+ title: '返回'
1683
+ },
1684
+ popconfirm: {
1685
+ confirmButtonText: '确定',
1686
+ cancelButtonText: '取消'
1687
+ },
1688
+ empty: {
1689
+ description: '暂无数据'
1690
+ }
1691
+ }
1692
+ });
1693
+ // EXTERNAL MODULE: external "vue"
1694
+ var external_vue_ = __webpack_require__(0);
1695
+ var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
100
1696
 
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
1697
+ // EXTERNAL MODULE: external "deepmerge"
1698
+ var external_deepmerge_ = __webpack_require__(58);
1699
+ var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
114
1700
 
115
- // render functions
116
- if (render) {
117
- options.render = render
118
- options.staticRenderFns = staticRenderFns
119
- options._compiled = true
120
- }
1701
+ // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1702
+ var es_regexp_exec_js_ = __webpack_require__(7);
121
1703
 
122
- // functional template
123
- if (functionalTemplate) {
124
- options.functional = true
125
- }
1704
+ // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
1705
+ var es_string_replace_js_ = __webpack_require__(12);
126
1706
 
127
- // scopedId
128
- if (scopeId) {
129
- options._scopeId = 'data-v-' + scopeId
130
- }
1707
+ // EXTERNAL MODULE: ./src/utils/util.js
1708
+ var util = __webpack_require__(4);
131
1709
 
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
- }
1710
+ // CONCATENATED MODULE: ./src/locale/format.js
1711
+
1712
+
1713
+
1714
+ var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1715
+ /**
1716
+ * String format template
1717
+ * - Inspired:
1718
+ * https://github.com/Matt-Esch/string-template/index.js
1719
+ */
1720
+ /* harmony default export */ var format = (function (Vue) {
1721
+ /**
1722
+ * template
1723
+ *
1724
+ * @param {String} string
1725
+ * @param {Array} ...args
1726
+ * @return {String}
1727
+ */
1728
+
1729
+ function template(string) {
1730
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1731
+ args[_key - 1] = arguments[_key];
153
1732
  }
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
- )
1733
+ if (args.length === 1 && typeof args[0] === 'object') {
1734
+ args = args[0];
1735
+ }
1736
+ if (!args || !args.hasOwnProperty) {
1737
+ args = {};
1738
+ }
1739
+ return string.replace(RE_NARGS, function (match, prefix, i, index) {
1740
+ var result;
1741
+ if (string[index - 1] === '{' && string[index + match.length] === '}') {
1742
+ return i;
1743
+ } else {
1744
+ result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
1745
+ if (result === null || result === undefined) {
1746
+ return '';
164
1747
  }
165
- : injectStyles
1748
+ return result;
1749
+ }
1750
+ });
166
1751
  }
1752
+ return template;
1753
+ });
1754
+ // CONCATENATED MODULE: ./src/locale/index.js
167
1755
 
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]
1756
+
1757
+
1758
+
1759
+
1760
+ var locale_format = format(external_vue_default.a);
1761
+ var lang = zh_CN;
1762
+ var merged = false;
1763
+ var locale_i18nHandler = function i18nHandler() {
1764
+ var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
1765
+ if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
1766
+ if (!merged) {
1767
+ merged = true;
1768
+ external_vue_default.a.locale(external_vue_default.a.config.lang, external_deepmerge_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, {
1769
+ clone: true
1770
+ }));
183
1771
  }
1772
+ return vuei18n.apply(this, arguments);
184
1773
  }
185
-
186
- return {
187
- exports: scriptExports,
188
- options: options
1774
+ };
1775
+ var t = function t(path, options) {
1776
+ var value = locale_i18nHandler.apply(this, arguments);
1777
+ if (value !== null && value !== undefined) return value;
1778
+ var array = path.split('.');
1779
+ var current = lang;
1780
+ for (var i = 0, j = array.length; i < j; i++) {
1781
+ var property = array[i];
1782
+ value = current[property];
1783
+ if (i === j - 1) return locale_format(value, options);
1784
+ if (!value) return '';
1785
+ current = value;
189
1786
  }
190
- }
191
-
1787
+ return '';
1788
+ };
1789
+ var use = function use(l) {
1790
+ lang = l || lang;
1791
+ };
1792
+ var i18n = function i18n(fn) {
1793
+ locale_i18nHandler = fn || locale_i18nHandler;
1794
+ };
1795
+ /* harmony default export */ var locale = ({
1796
+ use: use,
1797
+ t: t,
1798
+ i18n: i18n
1799
+ });
192
1800
 
193
1801
  /***/ }),
194
-
195
- /***/ 13:
1802
+ /* 53 */
196
1803
  /***/ (function(module, exports) {
197
1804
 
198
- module.exports = require("element-ui/lib/utils/popup");
1805
+ module.exports = require("core-js/modules/es.array.includes.js");
199
1806
 
200
1807
  /***/ }),
201
-
202
- /***/ 18:
1808
+ /* 54 */,
1809
+ /* 55 */
203
1810
  /***/ (function(module, exports) {
204
1811
 
205
- module.exports = require("element-ui/lib/utils/types");
1812
+ module.exports = require("core-js/modules/es.string.trim.js");
206
1813
 
207
1814
  /***/ }),
1815
+ /* 56 */
1816
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
1817
 
209
- /***/ 2:
210
- /***/ (function(module, exports) {
1818
+ "use strict";
1819
+ /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52);
211
1820
 
212
- module.exports = require("element-ui/lib/utils/dom");
1821
+ /* harmony default export */ __webpack_exports__["a"] = ({
1822
+ methods: {
1823
+ t: function t() {
1824
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1825
+ args[_key] = arguments[_key];
1826
+ }
1827
+ return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
1828
+ }
1829
+ }
1830
+ });
213
1831
 
214
1832
  /***/ }),
1833
+ /* 57 */,
1834
+ /* 58 */
1835
+ /***/ (function(module, exports) {
215
1836
 
216
- /***/ 25:
1837
+ module.exports = require("deepmerge");
1838
+
1839
+ /***/ }),
1840
+ /* 59 */
217
1841
  /***/ (function(module, exports) {
218
1842
 
219
- module.exports = require("throttle-debounce/throttle");
1843
+ module.exports = require("core-js/modules/es.string.split.js");
220
1844
 
221
1845
  /***/ }),
1846
+ /* 60 */
1847
+ /***/ (function(module, exports) {
222
1848
 
223
- /***/ 3:
1849
+ module.exports = require("core-js/modules/es.object.assign.js");
1850
+
1851
+ /***/ }),
1852
+ /* 61 */,
1853
+ /* 62 */,
1854
+ /* 63 */,
1855
+ /* 64 */,
1856
+ /* 65 */,
1857
+ /* 66 */,
1858
+ /* 67 */,
1859
+ /* 68 */
224
1860
  /***/ (function(module, exports) {
225
1861
 
226
- module.exports = require("element-ui/lib/utils/util");
1862
+ module.exports = require("core-js/modules/es.object.get-prototype-of.js");
227
1863
 
228
1864
  /***/ }),
1865
+ /* 69 */,
1866
+ /* 70 */,
1867
+ /* 71 */,
1868
+ /* 72 */,
1869
+ /* 73 */,
1870
+ /* 74 */,
1871
+ /* 75 */,
1872
+ /* 76 */,
1873
+ /* 77 */,
1874
+ /* 78 */,
1875
+ /* 79 */,
1876
+ /* 80 */,
1877
+ /* 81 */,
1878
+ /* 82 */,
1879
+ /* 83 */,
1880
+ /* 84 */,
1881
+ /* 85 */,
1882
+ /* 86 */,
1883
+ /* 87 */,
1884
+ /* 88 */,
1885
+ /* 89 */
1886
+ /***/ (function(module, exports) {
1887
+
1888
+ module.exports = require("core-js/modules/es.number.to-fixed.js");
229
1889
 
230
- /***/ 6:
1890
+ /***/ }),
1891
+ /* 90 */,
1892
+ /* 91 */,
1893
+ /* 92 */,
1894
+ /* 93 */,
1895
+ /* 94 */,
1896
+ /* 95 */,
1897
+ /* 96 */,
1898
+ /* 97 */,
1899
+ /* 98 */
231
1900
  /***/ (function(module, exports) {
232
1901
 
233
- module.exports = require("element-ui/lib/mixins/locale");
1902
+ module.exports = require("throttle-debounce/throttle");
234
1903
 
235
1904
  /***/ }),
1905
+ /* 99 */,
1906
+ /* 100 */,
1907
+ /* 101 */,
1908
+ /* 102 */,
1909
+ /* 103 */,
1910
+ /* 104 */,
1911
+ /* 105 */,
1912
+ /* 106 */,
1913
+ /* 107 */,
1914
+ /* 108 */,
1915
+ /* 109 */,
1916
+ /* 110 */,
1917
+ /* 111 */,
1918
+ /* 112 */,
1919
+ /* 113 */,
1920
+ /* 114 */,
1921
+ /* 115 */,
1922
+ /* 116 */,
1923
+ /* 117 */,
1924
+ /* 118 */,
1925
+ /* 119 */,
1926
+ /* 120 */,
1927
+ /* 121 */,
1928
+ /* 122 */,
1929
+ /* 123 */,
1930
+ /* 124 */,
1931
+ /* 125 */,
1932
+ /* 126 */,
1933
+ /* 127 */,
1934
+ /* 128 */,
1935
+ /* 129 */,
1936
+ /* 130 */,
1937
+ /* 131 */,
1938
+ /* 132 */,
1939
+ /* 133 */
1940
+ /***/ (function(module, exports) {
1941
+
1942
+ module.exports = require("core-js/modules/es.object.values.js");
236
1943
 
237
- /***/ 67:
1944
+ /***/ }),
1945
+ /* 134 */,
1946
+ /* 135 */,
1947
+ /* 136 */,
1948
+ /* 137 */,
1949
+ /* 138 */,
1950
+ /* 139 */,
1951
+ /* 140 */,
1952
+ /* 141 */,
1953
+ /* 142 */,
1954
+ /* 143 */,
1955
+ /* 144 */,
1956
+ /* 145 */,
1957
+ /* 146 */,
1958
+ /* 147 */,
1959
+ /* 148 */,
1960
+ /* 149 */,
1961
+ /* 150 */,
1962
+ /* 151 */,
1963
+ /* 152 */,
1964
+ /* 153 */,
1965
+ /* 154 */,
1966
+ /* 155 */,
1967
+ /* 156 */,
1968
+ /* 157 */
238
1969
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
239
1970
 
240
1971
  "use strict";
241
1972
  // ESM COMPAT FLAG
242
1973
  __webpack_require__.r(__webpack_exports__);
243
1974
 
244
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=template&id=4e908bdb
245
- var render = function () {
246
- var _vm = this
247
- var _h = _vm.$createElement
248
- var _c = _vm._self._c || _h
1975
+ // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1976
+ var es_function_name_js_ = __webpack_require__(5);
1977
+
1978
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=template&id=3e81616a
1979
+ var render = function render() {
1980
+ var _vm = this,
1981
+ _c = _vm._self._c
249
1982
  return _c(
250
1983
  "div",
251
1984
  { staticClass: "el-image" },
252
1985
  [
253
1986
  _vm.loading
254
- ? _vm._t("placeholder", [
255
- _c("div", { staticClass: "el-image__placeholder" }),
256
- ])
1987
+ ? _vm._t("placeholder", function () {
1988
+ return [_c("div", { staticClass: "el-image__placeholder" })]
1989
+ })
257
1990
  : _vm.error
258
- ? _vm._t("error", [
259
- _c("div", { staticClass: "el-image__error" }, [
260
- _vm._v(_vm._s(_vm.t("el.image.error"))),
261
- ]),
262
- ])
1991
+ ? _vm._t("error", function () {
1992
+ return [
1993
+ _c("div", { staticClass: "el-image__error" }, [
1994
+ _vm._v(_vm._s(_vm.t("el.image.error"))),
1995
+ ]),
1996
+ ]
1997
+ })
263
1998
  : _c(
264
1999
  "img",
265
2000
  _vm._g(
@@ -303,13 +2038,24 @@ var staticRenderFns = []
303
2038
  render._withStripped = true
304
2039
 
305
2040
 
306
- // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=template&id=4e908bdb
2041
+ // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=template&id=3e81616a
2042
+
2043
+ // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
2044
+ var es_number_constructor_js_ = __webpack_require__(6);
2045
+
2046
+ // EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
2047
+ var es_object_keys_js_ = __webpack_require__(17);
307
2048
 
308
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=template&id=23d19747
309
- var image_viewervue_type_template_id_23d19747_render = function () {
310
- var _vm = this
311
- var _h = _vm.$createElement
312
- var _c = _vm._self._c || _h
2049
+ // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
2050
+ var es_object_to_string_js_ = __webpack_require__(3);
2051
+
2052
+ // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
2053
+ var web_dom_collections_for_each_js_ = __webpack_require__(10);
2054
+
2055
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=template&id=01ce5736
2056
+ var image_viewervue_type_template_id_01ce5736_render = function render() {
2057
+ var _vm = this,
2058
+ _c = _vm._self._c
313
2059
  return _c("transition", { attrs: { name: "viewer-fade" } }, [
314
2060
  _c(
315
2061
  "div",
@@ -324,10 +2070,8 @@ var image_viewervue_type_template_id_23d19747_render = function () {
324
2070
  staticClass: "el-image-viewer__mask",
325
2071
  on: {
326
2072
  click: function ($event) {
327
- if ($event.target !== $event.currentTarget) {
328
- return null
329
- }
330
- return _vm.handleMaskClick($event)
2073
+ if ($event.target !== $event.currentTarget) return null
2074
+ return _vm.handleMaskClick.apply(null, arguments)
331
2075
  },
332
2076
  },
333
2077
  }),
@@ -431,382 +2175,324 @@ var image_viewervue_type_template_id_23d19747_render = function () {
431
2175
  ),
432
2176
  ])
433
2177
  }
434
- var image_viewervue_type_template_id_23d19747_staticRenderFns = []
435
- image_viewervue_type_template_id_23d19747_render._withStripped = true
2178
+ var image_viewervue_type_template_id_01ce5736_staticRenderFns = []
2179
+ image_viewervue_type_template_id_01ce5736_render._withStripped = true
2180
+
2181
+
2182
+ // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=template&id=01ce5736
436
2183
 
2184
+ // EXTERNAL MODULE: external "core-js/modules/es.number.to-fixed.js"
2185
+ var es_number_to_fixed_js_ = __webpack_require__(89);
437
2186
 
438
- // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=template&id=23d19747
2187
+ // EXTERNAL MODULE: external "core-js/modules/es.object.assign.js"
2188
+ var es_object_assign_js_ = __webpack_require__(60);
439
2189
 
440
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
441
- var dom_ = __webpack_require__(2);
2190
+ // EXTERNAL MODULE: external "core-js/modules/es.object.values.js"
2191
+ var es_object_values_js_ = __webpack_require__(133);
442
2192
 
443
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
444
- var util_ = __webpack_require__(3);
2193
+ // EXTERNAL MODULE: ./src/utils/dom.js
2194
+ var dom = __webpack_require__(1);
445
2195
 
446
- // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
447
- var popup_ = __webpack_require__(13);
2196
+ // EXTERNAL MODULE: ./src/utils/util.js
2197
+ var util = __webpack_require__(4);
2198
+
2199
+ // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
2200
+ var popup = __webpack_require__(24);
448
2201
 
449
2202
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=script&lang=js
450
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
451
-
452
- //
453
- //
454
- //
455
- //
456
- //
457
- //
458
- //
459
- //
460
- //
461
- //
462
- //
463
- //
464
- //
465
- //
466
- //
467
- //
468
- //
469
- //
470
- //
471
- //
472
- //
473
- //
474
- //
475
- //
476
- //
477
- //
478
- //
479
- //
480
- //
481
- //
482
- //
483
- //
484
- //
485
- //
486
- //
487
- //
488
- //
489
- //
490
- //
491
- //
492
- //
493
- //
494
- //
495
- //
496
- //
497
- //
498
- //
499
- //
500
- //
501
- //
502
- //
503
- //
504
- //
505
2203
 
506
2204
 
507
2205
 
508
2206
 
509
2207
 
510
- var Mode = {
511
- CONTAIN: {
512
- name: 'contain',
513
- icon: 'el-icon-full-screen'
514
- },
515
- ORIGINAL: {
516
- name: 'original',
517
- icon: 'el-icon-c-scale-to-original'
518
- }
519
- };
520
2208
 
521
- var mousewheelEventName = Object(util_["isFirefox"])() ? 'DOMMouseScroll' : 'mousewheel';
522
2209
 
2210
+
2211
+ var Mode = {
2212
+ CONTAIN: {
2213
+ name: 'contain',
2214
+ icon: 'el-icon-full-screen'
2215
+ },
2216
+ ORIGINAL: {
2217
+ name: 'original',
2218
+ icon: 'el-icon-c-scale-to-original'
2219
+ }
2220
+ };
2221
+ var mousewheelEventName = Object(util["n" /* isFirefox */])() ? 'DOMMouseScroll' : 'mousewheel';
523
2222
  /* harmony default export */ var image_viewervue_type_script_lang_js = ({
524
- name: 'elImageViewer',
525
-
526
- props: {
527
- urlList: {
528
- type: Array,
529
- default: function _default() {
530
- return [];
531
- }
532
- },
533
- zIndex: {
534
- type: Number,
535
- default: 2000
536
- },
537
- onSwitch: {
538
- type: Function,
539
- default: function _default() {}
540
- },
541
- onClose: {
542
- type: Function,
543
- default: function _default() {}
544
- },
545
- initialIndex: {
546
- type: Number,
547
- default: 0
548
- },
549
- appendToBody: {
550
- type: Boolean,
551
- default: true
552
- },
553
- maskClosable: {
554
- type: Boolean,
555
- default: true
556
- }
557
- },
558
-
559
- data: function data() {
560
- return {
561
- index: this.initialIndex,
562
- isShow: false,
563
- infinite: true,
564
- loading: false,
565
- mode: Mode.CONTAIN,
566
- transform: {
567
- scale: 1,
568
- deg: 0,
569
- offsetX: 0,
570
- offsetY: 0,
571
- enableTransition: false
572
- }
573
- };
574
- },
575
-
576
- computed: {
577
- isSingle: function isSingle() {
578
- return this.urlList.length <= 1;
579
- },
580
- isFirst: function isFirst() {
581
- return this.index === 0;
582
- },
583
- isLast: function isLast() {
584
- return this.index === this.urlList.length - 1;
585
- },
586
- currentImg: function currentImg() {
587
- return this.urlList[this.index];
588
- },
589
- imgStyle: function imgStyle() {
590
- var _transform = this.transform,
591
- scale = _transform.scale,
592
- deg = _transform.deg,
593
- offsetX = _transform.offsetX,
594
- offsetY = _transform.offsetY,
595
- enableTransition = _transform.enableTransition;
596
-
597
- var style = {
598
- transform: 'scale(' + scale + ') rotate(' + deg + 'deg)',
599
- transition: enableTransition ? 'transform .3s' : '',
600
- 'margin-left': offsetX + 'px',
601
- 'margin-top': offsetY + 'px'
602
- };
603
- if (this.mode === Mode.CONTAIN) {
604
- style.maxWidth = style.maxHeight = '100%';
605
- }
606
- return style;
607
- },
608
- viewerZIndex: function viewerZIndex() {
609
- var nextZIndex = popup_["PopupManager"].nextZIndex();
610
- return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;
611
- }
612
- },
613
- watch: {
614
- index: {
615
- handler: function handler(val) {
616
- this.reset();
617
- this.onSwitch(val);
618
- }
619
- },
620
- currentImg: function currentImg(val) {
621
- var _this = this;
622
-
623
- this.$nextTick(function (_) {
624
- var $img = _this.$refs.img[0];
625
- if (!$img.complete) {
626
- _this.loading = true;
627
- }
628
- });
629
- }
630
- },
631
- methods: {
632
- hide: function hide() {
633
- this.deviceSupportUninstall();
634
- this.onClose();
635
- },
636
- deviceSupportInstall: function deviceSupportInstall() {
637
- var _this2 = this;
638
-
639
- this._keyDownHandler = function (e) {
640
- e.stopPropagation();
641
- var keyCode = e.keyCode;
642
- switch (keyCode) {
643
- // ESC
644
- case 27:
645
- _this2.hide();
646
- break;
647
- // SPACE
648
- case 32:
649
- _this2.toggleMode();
650
- break;
651
- // LEFT_ARROW
652
- case 37:
653
- _this2.prev();
654
- break;
655
- // UP_ARROW
656
- case 38:
657
- _this2.handleActions('zoomIn');
658
- break;
659
- // RIGHT_ARROW
660
- case 39:
661
- _this2.next();
662
- break;
663
- // DOWN_ARROW
664
- case 40:
665
- _this2.handleActions('zoomOut');
666
- break;
667
- }
668
- };
669
- this._mouseWheelHandler = Object(util_["rafThrottle"])(function (e) {
670
- var delta = e.wheelDelta ? e.wheelDelta : -e.detail;
671
- if (delta > 0) {
672
- _this2.handleActions('zoomIn', {
673
- zoomRate: 0.015,
674
- enableTransition: false
675
- });
676
- } else {
677
- _this2.handleActions('zoomOut', {
678
- zoomRate: 0.015,
679
- enableTransition: false
680
- });
681
- }
682
- });
683
- Object(dom_["on"])(document, 'keydown', this._keyDownHandler);
684
- Object(dom_["on"])(document, mousewheelEventName, this._mouseWheelHandler);
685
- },
686
- deviceSupportUninstall: function deviceSupportUninstall() {
687
- Object(dom_["off"])(document, 'keydown', this._keyDownHandler);
688
- Object(dom_["off"])(document, mousewheelEventName, this._mouseWheelHandler);
689
- this._keyDownHandler = null;
690
- this._mouseWheelHandler = null;
691
- },
692
- handleImgLoad: function handleImgLoad(e) {
693
- this.loading = false;
694
- },
695
- handleImgError: function handleImgError(e) {
696
- this.loading = false;
697
- e.target.alt = '加载失败';
698
- },
699
- handleMouseDown: function handleMouseDown(e) {
700
- var _this3 = this;
701
-
702
- if (this.loading || e.button !== 0) return;
703
-
704
- var _transform2 = this.transform,
705
- offsetX = _transform2.offsetX,
706
- offsetY = _transform2.offsetY;
707
-
708
- var startX = e.pageX;
709
- var startY = e.pageY;
710
- this._dragHandler = Object(util_["rafThrottle"])(function (ev) {
711
- _this3.transform.offsetX = offsetX + ev.pageX - startX;
712
- _this3.transform.offsetY = offsetY + ev.pageY - startY;
713
- });
714
- Object(dom_["on"])(document, 'mousemove', this._dragHandler);
715
- Object(dom_["on"])(document, 'mouseup', function (ev) {
716
- Object(dom_["off"])(document, 'mousemove', _this3._dragHandler);
717
- });
718
-
719
- e.preventDefault();
720
- },
721
- handleMaskClick: function handleMaskClick() {
722
- if (this.maskClosable) {
723
- this.hide();
724
- }
725
- },
726
- reset: function reset() {
727
- this.transform = {
728
- scale: 1,
729
- deg: 0,
730
- offsetX: 0,
731
- offsetY: 0,
732
- enableTransition: false
733
- };
734
- },
735
- toggleMode: function toggleMode() {
736
- if (this.loading) return;
737
-
738
- var modeNames = Object.keys(Mode);
739
- var modeValues = Object.values(Mode);
740
- var index = modeValues.indexOf(this.mode);
741
- var nextIndex = (index + 1) % modeNames.length;
742
- this.mode = Mode[modeNames[nextIndex]];
743
- this.reset();
744
- },
745
- prev: function prev() {
746
- if (this.isFirst && !this.infinite) return;
747
- var len = this.urlList.length;
748
- this.index = (this.index - 1 + len) % len;
749
- },
750
- next: function next() {
751
- if (this.isLast && !this.infinite) return;
752
- var len = this.urlList.length;
753
- this.index = (this.index + 1) % len;
754
- },
755
- handleActions: function handleActions(action) {
756
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
757
-
758
- if (this.loading) return;
759
-
760
- var _zoomRate$rotateDeg$e = _extends({
761
- zoomRate: 0.2,
762
- rotateDeg: 90,
763
- enableTransition: true
764
- }, options),
765
- zoomRate = _zoomRate$rotateDeg$e.zoomRate,
766
- rotateDeg = _zoomRate$rotateDeg$e.rotateDeg,
767
- enableTransition = _zoomRate$rotateDeg$e.enableTransition;
768
-
769
- var transform = this.transform;
770
-
771
- switch (action) {
772
- case 'zoomOut':
773
- if (transform.scale > 0.2) {
774
- transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3));
775
- }
776
- break;
777
- case 'zoomIn':
778
- transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3));
779
- break;
780
- case 'clocelise':
781
- transform.deg += rotateDeg;
782
- break;
783
- case 'anticlocelise':
784
- transform.deg -= rotateDeg;
785
- break;
786
- }
787
- transform.enableTransition = enableTransition;
788
- }
789
- },
790
- mounted: function mounted() {
791
- this.deviceSupportInstall();
792
- if (this.appendToBody) {
793
- document.body.appendChild(this.$el);
794
- }
795
- // add tabindex then wrapper can be focusable via Javascript
796
- // focus wrapper so arrow key can't cause inner scroll behavior underneath
797
- this.$refs['el-image-viewer__wrapper'].focus();
798
- },
799
- destroyed: function destroyed() {
800
- // if appendToBody is true, remove DOM node after destroy
801
- if (this.appendToBody && this.$el && this.$el.parentNode) {
802
- this.$el.parentNode.removeChild(this.$el);
803
- }
804
- }
2223
+ name: 'ElImageViewer',
2224
+ props: {
2225
+ urlList: {
2226
+ type: Array,
2227
+ default: function _default() {
2228
+ return [];
2229
+ }
2230
+ },
2231
+ zIndex: {
2232
+ type: Number,
2233
+ default: 2000
2234
+ },
2235
+ onSwitch: {
2236
+ type: Function,
2237
+ default: function _default() {}
2238
+ },
2239
+ onClose: {
2240
+ type: Function,
2241
+ default: function _default() {}
2242
+ },
2243
+ initialIndex: {
2244
+ type: Number,
2245
+ default: 0
2246
+ },
2247
+ appendToBody: {
2248
+ type: Boolean,
2249
+ default: true
2250
+ },
2251
+ maskClosable: {
2252
+ type: Boolean,
2253
+ default: true
2254
+ }
2255
+ },
2256
+ data: function data() {
2257
+ return {
2258
+ index: this.initialIndex,
2259
+ isShow: false,
2260
+ infinite: true,
2261
+ loading: false,
2262
+ mode: Mode.CONTAIN,
2263
+ transform: {
2264
+ scale: 1,
2265
+ deg: 0,
2266
+ offsetX: 0,
2267
+ offsetY: 0,
2268
+ enableTransition: false
2269
+ }
2270
+ };
2271
+ },
2272
+ computed: {
2273
+ isSingle: function isSingle() {
2274
+ return this.urlList.length <= 1;
2275
+ },
2276
+ isFirst: function isFirst() {
2277
+ return this.index === 0;
2278
+ },
2279
+ isLast: function isLast() {
2280
+ return this.index === this.urlList.length - 1;
2281
+ },
2282
+ currentImg: function currentImg() {
2283
+ return this.urlList[this.index];
2284
+ },
2285
+ imgStyle: function imgStyle() {
2286
+ var _this$transform = this.transform,
2287
+ scale = _this$transform.scale,
2288
+ deg = _this$transform.deg,
2289
+ offsetX = _this$transform.offsetX,
2290
+ offsetY = _this$transform.offsetY,
2291
+ enableTransition = _this$transform.enableTransition;
2292
+ var style = {
2293
+ transform: "scale(" + scale + ") rotate(" + deg + "deg)",
2294
+ transition: enableTransition ? 'transform .3s' : '',
2295
+ 'margin-left': offsetX + "px",
2296
+ 'margin-top': offsetY + "px"
2297
+ };
2298
+ if (this.mode === Mode.CONTAIN) {
2299
+ style.maxWidth = style.maxHeight = '100%';
2300
+ }
2301
+ return style;
2302
+ },
2303
+ viewerZIndex: function viewerZIndex() {
2304
+ var nextZIndex = popup["a" /* PopupManager */].nextZIndex();
2305
+ return this.zIndex > nextZIndex ? this.zIndex : nextZIndex;
2306
+ }
2307
+ },
2308
+ watch: {
2309
+ index: {
2310
+ handler: function handler(val) {
2311
+ this.reset();
2312
+ this.onSwitch(val);
2313
+ }
2314
+ },
2315
+ currentImg: function currentImg(val) {
2316
+ var _this = this;
2317
+ this.$nextTick(function (_) {
2318
+ var $img = _this.$refs.img[0];
2319
+ if (!$img.complete) {
2320
+ _this.loading = true;
2321
+ }
2322
+ });
2323
+ }
2324
+ },
2325
+ methods: {
2326
+ hide: function hide() {
2327
+ this.deviceSupportUninstall();
2328
+ this.onClose();
2329
+ },
2330
+ deviceSupportInstall: function deviceSupportInstall() {
2331
+ var _this2 = this;
2332
+ this._keyDownHandler = function (e) {
2333
+ e.stopPropagation();
2334
+ var keyCode = e.keyCode;
2335
+ switch (keyCode) {
2336
+ // ESC
2337
+ case 27:
2338
+ _this2.hide();
2339
+ break;
2340
+ // SPACE
2341
+ case 32:
2342
+ _this2.toggleMode();
2343
+ break;
2344
+ // LEFT_ARROW
2345
+ case 37:
2346
+ _this2.prev();
2347
+ break;
2348
+ // UP_ARROW
2349
+ case 38:
2350
+ _this2.handleActions('zoomIn');
2351
+ break;
2352
+ // RIGHT_ARROW
2353
+ case 39:
2354
+ _this2.next();
2355
+ break;
2356
+ // DOWN_ARROW
2357
+ case 40:
2358
+ _this2.handleActions('zoomOut');
2359
+ break;
2360
+ }
2361
+ };
2362
+ this._mouseWheelHandler = Object(util["s" /* rafThrottle */])(function (e) {
2363
+ var delta = e.wheelDelta ? e.wheelDelta : -e.detail;
2364
+ if (delta > 0) {
2365
+ _this2.handleActions('zoomIn', {
2366
+ zoomRate: 0.015,
2367
+ enableTransition: false
2368
+ });
2369
+ } else {
2370
+ _this2.handleActions('zoomOut', {
2371
+ zoomRate: 0.015,
2372
+ enableTransition: false
2373
+ });
2374
+ }
2375
+ });
2376
+ Object(dom["g" /* on */])(document, 'keydown', this._keyDownHandler);
2377
+ Object(dom["g" /* on */])(document, mousewheelEventName, this._mouseWheelHandler);
2378
+ },
2379
+ deviceSupportUninstall: function deviceSupportUninstall() {
2380
+ Object(dom["f" /* off */])(document, 'keydown', this._keyDownHandler);
2381
+ Object(dom["f" /* off */])(document, mousewheelEventName, this._mouseWheelHandler);
2382
+ this._keyDownHandler = null;
2383
+ this._mouseWheelHandler = null;
2384
+ },
2385
+ handleImgLoad: function handleImgLoad(e) {
2386
+ this.loading = false;
2387
+ },
2388
+ handleImgError: function handleImgError(e) {
2389
+ this.loading = false;
2390
+ e.target.alt = '加载失败';
2391
+ },
2392
+ handleMouseDown: function handleMouseDown(e) {
2393
+ var _this3 = this;
2394
+ if (this.loading || e.button !== 0) return;
2395
+ var _this$transform2 = this.transform,
2396
+ offsetX = _this$transform2.offsetX,
2397
+ offsetY = _this$transform2.offsetY;
2398
+ var startX = e.pageX;
2399
+ var startY = e.pageY;
2400
+ this._dragHandler = Object(util["s" /* rafThrottle */])(function (ev) {
2401
+ _this3.transform.offsetX = offsetX + ev.pageX - startX;
2402
+ _this3.transform.offsetY = offsetY + ev.pageY - startY;
2403
+ });
2404
+ Object(dom["g" /* on */])(document, 'mousemove', this._dragHandler);
2405
+ Object(dom["g" /* on */])(document, 'mouseup', function (ev) {
2406
+ Object(dom["f" /* off */])(document, 'mousemove', _this3._dragHandler);
2407
+ });
2408
+ e.preventDefault();
2409
+ },
2410
+ handleMaskClick: function handleMaskClick() {
2411
+ if (this.maskClosable) {
2412
+ this.hide();
2413
+ }
2414
+ },
2415
+ reset: function reset() {
2416
+ this.transform = {
2417
+ scale: 1,
2418
+ deg: 0,
2419
+ offsetX: 0,
2420
+ offsetY: 0,
2421
+ enableTransition: false
2422
+ };
2423
+ },
2424
+ toggleMode: function toggleMode() {
2425
+ if (this.loading) return;
2426
+ var modeNames = Object.keys(Mode);
2427
+ var modeValues = Object.values(Mode);
2428
+ var index = modeValues.indexOf(this.mode);
2429
+ var nextIndex = (index + 1) % modeNames.length;
2430
+ this.mode = Mode[modeNames[nextIndex]];
2431
+ this.reset();
2432
+ },
2433
+ prev: function prev() {
2434
+ if (this.isFirst && !this.infinite) return;
2435
+ var len = this.urlList.length;
2436
+ this.index = (this.index - 1 + len) % len;
2437
+ },
2438
+ next: function next() {
2439
+ if (this.isLast && !this.infinite) return;
2440
+ var len = this.urlList.length;
2441
+ this.index = (this.index + 1) % len;
2442
+ },
2443
+ handleActions: function handleActions(action, options) {
2444
+ if (options === void 0) {
2445
+ options = {};
2446
+ }
2447
+ if (this.loading) return;
2448
+ var _zoomRate$rotateDeg$e = Object.assign({
2449
+ zoomRate: 0.2,
2450
+ rotateDeg: 90,
2451
+ enableTransition: true
2452
+ }, options),
2453
+ zoomRate = _zoomRate$rotateDeg$e.zoomRate,
2454
+ rotateDeg = _zoomRate$rotateDeg$e.rotateDeg,
2455
+ enableTransition = _zoomRate$rotateDeg$e.enableTransition;
2456
+ var transform = this.transform;
2457
+ switch (action) {
2458
+ case 'zoomOut':
2459
+ if (transform.scale > 0.2) {
2460
+ transform.scale = parseFloat((transform.scale - zoomRate).toFixed(3));
2461
+ }
2462
+ break;
2463
+ case 'zoomIn':
2464
+ transform.scale = parseFloat((transform.scale + zoomRate).toFixed(3));
2465
+ break;
2466
+ case 'clocelise':
2467
+ transform.deg += rotateDeg;
2468
+ break;
2469
+ case 'anticlocelise':
2470
+ transform.deg -= rotateDeg;
2471
+ break;
2472
+ }
2473
+ transform.enableTransition = enableTransition;
2474
+ }
2475
+ },
2476
+ mounted: function mounted() {
2477
+ this.deviceSupportInstall();
2478
+ if (this.appendToBody) {
2479
+ document.body.appendChild(this.$el);
2480
+ }
2481
+ // add tabindex then wrapper can be focusable via Javascript
2482
+ // focus wrapper so arrow key can't cause inner scroll behavior underneath
2483
+ this.$refs['el-image-viewer__wrapper'].focus();
2484
+ },
2485
+ destroyed: function destroyed() {
2486
+ // if appendToBody is true, remove DOM node after destroy
2487
+ if (this.appendToBody && this.$el && this.$el.parentNode) {
2488
+ this.$el.parentNode.removeChild(this.$el);
2489
+ }
2490
+ }
805
2491
  });
806
2492
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue?vue&type=script&lang=js
807
2493
  /* harmony default export */ var src_image_viewervue_type_script_lang_js = (image_viewervue_type_script_lang_js);
808
2494
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
809
- var componentNormalizer = __webpack_require__(0);
2495
+ var componentNormalizer = __webpack_require__(2);
810
2496
 
811
2497
  // CONCATENATED MODULE: ./packages/image/src/image-viewer.vue
812
2498
 
@@ -818,8 +2504,8 @@ var componentNormalizer = __webpack_require__(0);
818
2504
 
819
2505
  var component = Object(componentNormalizer["a" /* default */])(
820
2506
  src_image_viewervue_type_script_lang_js,
821
- image_viewervue_type_template_id_23d19747_render,
822
- image_viewervue_type_template_id_23d19747_staticRenderFns,
2507
+ image_viewervue_type_template_id_01ce5736_render,
2508
+ image_viewervue_type_template_id_01ce5736_staticRenderFns,
823
2509
  false,
824
2510
  null,
825
2511
  null,
@@ -828,41 +2514,19 @@ var component = Object(componentNormalizer["a" /* default */])(
828
2514
  )
829
2515
 
830
2516
  /* harmony default export */ var image_viewer = (component.exports);
831
- // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
832
- var locale_ = __webpack_require__(6);
833
- var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
2517
+ // EXTERNAL MODULE: ./src/mixins/locale.js
2518
+ var locale = __webpack_require__(56);
834
2519
 
835
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
836
- var types_ = __webpack_require__(18);
2520
+ // EXTERNAL MODULE: ./src/utils/types.js
2521
+ var types = __webpack_require__(8);
837
2522
 
838
2523
  // EXTERNAL MODULE: external "throttle-debounce/throttle"
839
- var throttle_ = __webpack_require__(25);
2524
+ var throttle_ = __webpack_require__(98);
840
2525
  var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
841
2526
 
842
2527
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/main.vue?vue&type=script&lang=js
843
- //
844
- //
845
- //
846
- //
847
- //
848
- //
849
- //
850
- //
851
- //
852
- //
853
- //
854
- //
855
- //
856
- //
857
- //
858
- //
859
- //
860
- //
861
- //
862
- //
863
- //
864
- //
865
- //
2528
+
2529
+
866
2530
 
867
2531
 
868
2532
 
@@ -871,235 +2535,218 @@ var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
871
2535
 
872
2536
 
873
2537
  var isSupportObjectFit = function isSupportObjectFit() {
874
- return document.documentElement.style.objectFit !== undefined;
2538
+ return document.documentElement.style.objectFit !== undefined;
875
2539
  };
876
-
877
2540
  var ObjectFit = {
878
- NONE: 'none',
879
- CONTAIN: 'contain',
880
- COVER: 'cover',
881
- FILL: 'fill',
882
- SCALE_DOWN: 'scale-down'
2541
+ NONE: 'none',
2542
+ CONTAIN: 'contain',
2543
+ COVER: 'cover',
2544
+ FILL: 'fill',
2545
+ SCALE_DOWN: 'scale-down'
883
2546
  };
884
-
885
2547
  var prevOverflow = '';
886
-
887
2548
  /* harmony default export */ var mainvue_type_script_lang_js = ({
888
- name: 'ElImage',
889
-
890
- mixins: [locale_default.a],
891
- inheritAttrs: false,
892
-
893
- components: {
894
- ImageViewer: image_viewer
895
- },
896
-
897
- props: {
898
- src: String,
899
- fit: String,
900
- lazy: Boolean,
901
- scrollContainer: {},
902
- previewSrcList: {
903
- type: Array,
904
- default: function _default() {
905
- return [];
906
- }
907
- },
908
- zIndex: {
909
- type: Number,
910
- default: 2000
911
- },
912
- initialIndex: Number
913
- },
914
-
915
- data: function data() {
916
- return {
917
- loading: true,
918
- error: false,
919
- show: !this.lazy,
920
- imageWidth: 0,
921
- imageHeight: 0,
922
- showViewer: false
923
- };
924
- },
925
-
926
-
927
- computed: {
928
- imageStyle: function imageStyle() {
929
- var fit = this.fit;
930
-
931
- if (!this.$isServer && fit) {
932
- return isSupportObjectFit() ? { 'object-fit': fit } : this.getImageStyle(fit);
933
- }
934
- return {};
935
- },
936
- alignCenter: function alignCenter() {
937
- return !this.$isServer && !isSupportObjectFit() && this.fit !== ObjectFit.FILL;
938
- },
939
- preview: function preview() {
940
- var previewSrcList = this.previewSrcList;
941
-
942
- return Array.isArray(previewSrcList) && previewSrcList.length > 0;
943
- },
944
- imageIndex: function imageIndex() {
945
- var previewIndex = 0;
946
- var initialIndex = this.initialIndex;
947
- if (initialIndex >= 0) {
948
- previewIndex = initialIndex;
949
- return previewIndex;
950
- }
951
- var srcIndex = this.previewSrcList.indexOf(this.src);
952
- if (srcIndex >= 0) {
953
- previewIndex = srcIndex;
954
- return previewIndex;
955
- }
956
- return previewIndex;
957
- }
958
- },
959
-
960
- watch: {
961
- src: function src(val) {
962
- this.show && this.loadImage();
963
- },
964
- show: function show(val) {
965
- val && this.loadImage();
966
- }
967
- },
968
-
969
- mounted: function mounted() {
970
- if (this.lazy) {
971
- this.addLazyLoadListener();
972
- } else {
973
- this.loadImage();
974
- }
975
- },
976
- beforeDestroy: function beforeDestroy() {
977
- this.lazy && this.removeLazyLoadListener();
978
- },
979
-
980
-
981
- methods: {
982
- loadImage: function loadImage() {
983
- var _this = this;
984
-
985
- if (this.$isServer) return;
986
-
987
- // reset status
988
- this.loading = true;
989
- this.error = false;
990
-
991
- var img = new Image();
992
- img.onload = function (e) {
993
- return _this.handleLoad(e, img);
994
- };
995
- img.onerror = this.handleError.bind(this);
996
-
997
- // bind html attrs
998
- // so it can behave consistently
999
- Object.keys(this.$attrs).forEach(function (key) {
1000
- var value = _this.$attrs[key];
1001
- img.setAttribute(key, value);
1002
- });
1003
- img.src = this.src;
1004
- },
1005
- handleLoad: function handleLoad(e, img) {
1006
- this.imageWidth = img.width;
1007
- this.imageHeight = img.height;
1008
- this.loading = false;
1009
- this.error = false;
1010
- },
1011
- handleError: function handleError(e) {
1012
- this.loading = false;
1013
- this.error = true;
1014
- this.$emit('error', e);
1015
- },
1016
- handleLazyLoad: function handleLazyLoad() {
1017
- if (Object(dom_["isInContainer"])(this.$el, this._scrollContainer)) {
1018
- this.show = true;
1019
- this.removeLazyLoadListener();
1020
- }
1021
- },
1022
- addLazyLoadListener: function addLazyLoadListener() {
1023
- if (this.$isServer) return;
1024
-
1025
- var scrollContainer = this.scrollContainer;
1026
-
1027
- var _scrollContainer = null;
1028
-
1029
- if (Object(types_["isHtmlElement"])(scrollContainer)) {
1030
- _scrollContainer = scrollContainer;
1031
- } else if (Object(types_["isString"])(scrollContainer)) {
1032
- _scrollContainer = document.querySelector(scrollContainer);
1033
- } else {
1034
- _scrollContainer = Object(dom_["getScrollContainer"])(this.$el);
1035
- }
1036
-
1037
- if (_scrollContainer) {
1038
- this._scrollContainer = _scrollContainer;
1039
- this._lazyLoadHandler = throttle_default()(200, this.handleLazyLoad);
1040
- Object(dom_["on"])(_scrollContainer, 'scroll', this._lazyLoadHandler);
1041
- this.handleLazyLoad();
1042
- }
1043
- },
1044
- removeLazyLoadListener: function removeLazyLoadListener() {
1045
- var _scrollContainer = this._scrollContainer,
1046
- _lazyLoadHandler = this._lazyLoadHandler;
1047
-
1048
-
1049
- if (this.$isServer || !_scrollContainer || !_lazyLoadHandler) return;
1050
-
1051
- Object(dom_["off"])(_scrollContainer, 'scroll', _lazyLoadHandler);
1052
- this._scrollContainer = null;
1053
- this._lazyLoadHandler = null;
1054
- },
1055
-
1056
- /**
1057
- * simulate object-fit behavior to compatible with IE11 and other browsers which not support object-fit
1058
- */
1059
- getImageStyle: function getImageStyle(fit) {
1060
- var imageWidth = this.imageWidth,
1061
- imageHeight = this.imageHeight;
1062
- var _$el = this.$el,
1063
- containerWidth = _$el.clientWidth,
1064
- containerHeight = _$el.clientHeight;
1065
-
1066
-
1067
- if (!imageWidth || !imageHeight || !containerWidth || !containerHeight) return {};
1068
-
1069
- var imageAspectRatio = imageWidth / imageHeight;
1070
- var containerAspectRatio = containerWidth / containerHeight;
1071
-
1072
- if (fit === ObjectFit.SCALE_DOWN) {
1073
- var isSmaller = imageWidth < containerWidth && imageHeight < containerHeight;
1074
- fit = isSmaller ? ObjectFit.NONE : ObjectFit.CONTAIN;
1075
- }
1076
-
1077
- switch (fit) {
1078
- case ObjectFit.NONE:
1079
- return { width: 'auto', height: 'auto' };
1080
- case ObjectFit.CONTAIN:
1081
- return imageAspectRatio < containerAspectRatio ? { width: 'auto' } : { height: 'auto' };
1082
- case ObjectFit.COVER:
1083
- return imageAspectRatio < containerAspectRatio ? { height: 'auto' } : { width: 'auto' };
1084
- default:
1085
- return {};
1086
- }
1087
- },
1088
- clickHandler: function clickHandler() {
1089
- // don't show viewer when preview is false
1090
- if (!this.preview) {
1091
- return;
1092
- }
1093
- // prevent body scroll
1094
- prevOverflow = document.body.style.overflow;
1095
- document.body.style.overflow = 'hidden';
1096
- this.showViewer = true;
1097
- },
1098
- closeViewer: function closeViewer() {
1099
- document.body.style.overflow = prevOverflow;
1100
- this.showViewer = false;
1101
- }
1102
- }
2549
+ name: 'ElImage',
2550
+ mixins: [locale["a" /* default */]],
2551
+ inheritAttrs: false,
2552
+ components: {
2553
+ ImageViewer: image_viewer
2554
+ },
2555
+ props: {
2556
+ src: String,
2557
+ fit: String,
2558
+ lazy: Boolean,
2559
+ scrollContainer: {},
2560
+ previewSrcList: {
2561
+ type: Array,
2562
+ default: function _default() {
2563
+ return [];
2564
+ }
2565
+ },
2566
+ zIndex: {
2567
+ type: Number,
2568
+ default: 2000
2569
+ },
2570
+ initialIndex: Number
2571
+ },
2572
+ data: function data() {
2573
+ return {
2574
+ loading: true,
2575
+ error: false,
2576
+ show: !this.lazy,
2577
+ imageWidth: 0,
2578
+ imageHeight: 0,
2579
+ showViewer: false
2580
+ };
2581
+ },
2582
+ computed: {
2583
+ imageStyle: function imageStyle() {
2584
+ var fit = this.fit;
2585
+ if (!this.$isServer && fit) {
2586
+ return isSupportObjectFit() ? {
2587
+ 'object-fit': fit
2588
+ } : this.getImageStyle(fit);
2589
+ }
2590
+ return {};
2591
+ },
2592
+ alignCenter: function alignCenter() {
2593
+ return !this.$isServer && !isSupportObjectFit() && this.fit !== ObjectFit.FILL;
2594
+ },
2595
+ preview: function preview() {
2596
+ var previewSrcList = this.previewSrcList;
2597
+ return Array.isArray(previewSrcList) && previewSrcList.length > 0;
2598
+ },
2599
+ imageIndex: function imageIndex() {
2600
+ var previewIndex = 0;
2601
+ var initialIndex = this.initialIndex;
2602
+ if (initialIndex >= 0) {
2603
+ previewIndex = initialIndex;
2604
+ return previewIndex;
2605
+ }
2606
+ var srcIndex = this.previewSrcList.indexOf(this.src);
2607
+ if (srcIndex >= 0) {
2608
+ previewIndex = srcIndex;
2609
+ return previewIndex;
2610
+ }
2611
+ return previewIndex;
2612
+ }
2613
+ },
2614
+ watch: {
2615
+ src: function src(val) {
2616
+ this.show && this.loadImage();
2617
+ },
2618
+ show: function show(val) {
2619
+ val && this.loadImage();
2620
+ }
2621
+ },
2622
+ mounted: function mounted() {
2623
+ if (this.lazy) {
2624
+ this.addLazyLoadListener();
2625
+ } else {
2626
+ this.loadImage();
2627
+ }
2628
+ },
2629
+ beforeDestroy: function beforeDestroy() {
2630
+ this.lazy && this.removeLazyLoadListener();
2631
+ },
2632
+ methods: {
2633
+ loadImage: function loadImage() {
2634
+ var _this = this;
2635
+ if (this.$isServer) return;
2636
+
2637
+ // reset status
2638
+ this.loading = true;
2639
+ this.error = false;
2640
+ var img = new Image();
2641
+ img.onload = function (e) {
2642
+ return _this.handleLoad(e, img);
2643
+ };
2644
+ img.onerror = this.handleError.bind(this);
2645
+
2646
+ // bind html attrs
2647
+ // so it can behave consistently
2648
+ Object.keys(this.$attrs).forEach(function (key) {
2649
+ var value = _this.$attrs[key];
2650
+ img.setAttribute(key, value);
2651
+ });
2652
+ img.src = this.src;
2653
+ },
2654
+ handleLoad: function handleLoad(e, img) {
2655
+ this.imageWidth = img.width;
2656
+ this.imageHeight = img.height;
2657
+ this.loading = false;
2658
+ this.error = false;
2659
+ },
2660
+ handleError: function handleError(e) {
2661
+ this.loading = false;
2662
+ this.error = true;
2663
+ this.$emit('error', e);
2664
+ },
2665
+ handleLazyLoad: function handleLazyLoad() {
2666
+ if (Object(dom["e" /* isInContainer */])(this.$el, this._scrollContainer)) {
2667
+ this.show = true;
2668
+ this.removeLazyLoadListener();
2669
+ }
2670
+ },
2671
+ addLazyLoadListener: function addLazyLoadListener() {
2672
+ if (this.$isServer) return;
2673
+ var scrollContainer = this.scrollContainer;
2674
+ var _scrollContainer = null;
2675
+ if (Object(types["c" /* isHtmlElement */])(scrollContainer)) {
2676
+ _scrollContainer = scrollContainer;
2677
+ } else if (Object(types["e" /* isString */])(scrollContainer)) {
2678
+ _scrollContainer = document.querySelector(scrollContainer);
2679
+ } else {
2680
+ _scrollContainer = Object(dom["b" /* getScrollContainer */])(this.$el);
2681
+ }
2682
+ if (_scrollContainer) {
2683
+ this._scrollContainer = _scrollContainer;
2684
+ this._lazyLoadHandler = throttle_default()(200, this.handleLazyLoad);
2685
+ Object(dom["g" /* on */])(_scrollContainer, 'scroll', this._lazyLoadHandler);
2686
+ this.handleLazyLoad();
2687
+ }
2688
+ },
2689
+ removeLazyLoadListener: function removeLazyLoadListener() {
2690
+ var _scrollContainer = this._scrollContainer,
2691
+ _lazyLoadHandler = this._lazyLoadHandler;
2692
+ if (this.$isServer || !_scrollContainer || !_lazyLoadHandler) return;
2693
+ Object(dom["f" /* off */])(_scrollContainer, 'scroll', _lazyLoadHandler);
2694
+ this._scrollContainer = null;
2695
+ this._lazyLoadHandler = null;
2696
+ },
2697
+ /**
2698
+ * simulate object-fit behavior to compatible with IE11 and other browsers which not support object-fit
2699
+ */
2700
+ getImageStyle: function getImageStyle(fit) {
2701
+ var imageWidth = this.imageWidth,
2702
+ imageHeight = this.imageHeight;
2703
+ var _this$$el = this.$el,
2704
+ containerWidth = _this$$el.clientWidth,
2705
+ containerHeight = _this$$el.clientHeight;
2706
+ if (!imageWidth || !imageHeight || !containerWidth || !containerHeight) return {};
2707
+ var imageAspectRatio = imageWidth / imageHeight;
2708
+ var containerAspectRatio = containerWidth / containerHeight;
2709
+ if (fit === ObjectFit.SCALE_DOWN) {
2710
+ var isSmaller = imageWidth < containerWidth && imageHeight < containerHeight;
2711
+ fit = isSmaller ? ObjectFit.NONE : ObjectFit.CONTAIN;
2712
+ }
2713
+ switch (fit) {
2714
+ case ObjectFit.NONE:
2715
+ return {
2716
+ width: 'auto',
2717
+ height: 'auto'
2718
+ };
2719
+ case ObjectFit.CONTAIN:
2720
+ return imageAspectRatio < containerAspectRatio ? {
2721
+ width: 'auto'
2722
+ } : {
2723
+ height: 'auto'
2724
+ };
2725
+ case ObjectFit.COVER:
2726
+ return imageAspectRatio < containerAspectRatio ? {
2727
+ height: 'auto'
2728
+ } : {
2729
+ width: 'auto'
2730
+ };
2731
+ default:
2732
+ return {};
2733
+ }
2734
+ },
2735
+ clickHandler: function clickHandler() {
2736
+ // don't show viewer when preview is false
2737
+ if (!this.preview) {
2738
+ return;
2739
+ }
2740
+ // prevent body scroll
2741
+ prevOverflow = document.body.style.overflow;
2742
+ document.body.style.overflow = 'hidden';
2743
+ this.showViewer = true;
2744
+ },
2745
+ closeViewer: function closeViewer() {
2746
+ document.body.style.overflow = prevOverflow;
2747
+ this.showViewer = false;
2748
+ }
2749
+ }
1103
2750
  });
1104
2751
  // CONCATENATED MODULE: ./packages/image/src/main.vue?vue&type=script&lang=js
1105
2752
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
@@ -1126,13 +2773,12 @@ var main_component = Object(componentNormalizer["a" /* default */])(
1126
2773
  // CONCATENATED MODULE: ./packages/image/index.js
1127
2774
 
1128
2775
 
2776
+
1129
2777
  /* istanbul ignore next */
1130
2778
  main.install = function (Vue) {
1131
- Vue.component(main.name, main);
2779
+ Vue.component(main.name, main);
1132
2780
  };
1133
-
1134
2781
  /* harmony default export */ var packages_image = __webpack_exports__["default"] = (main);
1135
2782
 
1136
2783
  /***/ })
1137
-
1138
- /******/ });
2784
+ /******/ ]);