cy-element-ui 1.0.26 → 1.0.28

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 (928) hide show
  1. package/CHANGELOG.md +280 -280
  2. package/LICENSE +21 -21
  3. package/README.md +162 -171
  4. package/lib/alert.js +203 -211
  5. package/lib/aside.js +80 -80
  6. package/lib/autocomplete.js +465 -4583
  7. package/lib/avatar.js +126 -152
  8. package/lib/backtop.js +198 -190
  9. package/lib/badge.js +134 -128
  10. package/lib/breadcrumb-item.js +122 -146
  11. package/lib/breadcrumb.js +96 -97
  12. package/lib/button-group.js +65 -68
  13. package/lib/button.js +87 -67
  14. package/lib/calendar.js +605 -2416
  15. package/lib/card.js +100 -101
  16. package/lib/carousel-item.js +210 -854
  17. package/lib/carousel.js +411 -578
  18. package/lib/cascader-panel.js +1153 -3542
  19. package/lib/cascader.js +893 -7284
  20. package/lib/checkbox-button.js +290 -337
  21. package/lib/checkbox-group.js +105 -176
  22. package/lib/checkbox.js +220 -240
  23. package/lib/col.js +68 -113
  24. package/lib/collapse-item.js +162 -1250
  25. package/lib/collapse.js +123 -163
  26. package/lib/color-picker.js +1242 -5200
  27. package/lib/container.js +88 -98
  28. package/lib/date-picker.js +4023 -8450
  29. package/lib/descriptions-item.js +32 -53
  30. package/lib/descriptions.js +334 -697
  31. package/lib/dialog.js +247 -1721
  32. package/lib/directives/mousewheel.js +20 -14
  33. package/lib/directives/repeat-click.js +30 -27
  34. package/lib/divider.js +116 -109
  35. package/lib/drawer.js +316 -1110
  36. package/lib/dropdown-item.js +111 -159
  37. package/lib/dropdown-menu.js +117 -2445
  38. package/lib/dropdown.js +392 -1795
  39. package/lib/element-ui.common.js +41037 -46119
  40. package/lib/empty.js +203 -1070
  41. package/lib/footer.js +80 -80
  42. package/lib/form-item.js +467 -1222
  43. package/lib/form.js +258 -326
  44. package/lib/header.js +80 -80
  45. package/lib/icon.js +68 -71
  46. package/lib/image.js +743 -2375
  47. package/lib/index.js +1 -1
  48. package/lib/infinite-scroll.js +150 -814
  49. package/lib/input-number.js +444 -2177
  50. package/lib/input.js +517 -1197
  51. package/lib/link.js +135 -117
  52. package/lib/loading.js +372 -1139
  53. package/lib/locale/format.js +53 -42
  54. package/lib/locale/index.js +52 -38
  55. package/lib/locale/lang/af-ZA.js +123 -130
  56. package/lib/locale/lang/ar.js +122 -123
  57. package/lib/locale/lang/az.js +121 -122
  58. package/lib/locale/lang/bg.js +123 -133
  59. package/lib/locale/lang/bn.js +121 -121
  60. package/lib/locale/lang/ca.js +122 -123
  61. package/lib/locale/lang/cs-CZ.js +125 -127
  62. package/lib/locale/lang/da.js +122 -124
  63. package/lib/locale/lang/de.js +124 -126
  64. package/lib/locale/lang/ee.js +123 -125
  65. package/lib/locale/lang/el.js +123 -125
  66. package/lib/locale/lang/en.js +123 -127
  67. package/lib/locale/lang/eo.js +123 -125
  68. package/lib/locale/lang/es.js +122 -123
  69. package/lib/locale/lang/eu.js +123 -128
  70. package/lib/locale/lang/fa.js +123 -125
  71. package/lib/locale/lang/fi.js +123 -125
  72. package/lib/locale/lang/fr.js +122 -125
  73. package/lib/locale/lang/he.js +123 -130
  74. package/lib/locale/lang/hr.js +123 -128
  75. package/lib/locale/lang/hu.js +122 -124
  76. package/lib/locale/lang/hy-AM.js +123 -125
  77. package/lib/locale/lang/id.js +123 -124
  78. package/lib/locale/lang/is.js +123 -124
  79. package/lib/locale/lang/it.js +122 -123
  80. package/lib/locale/lang/ja.js +123 -125
  81. package/lib/locale/lang/kg.js +123 -125
  82. package/lib/locale/lang/km.js +123 -124
  83. package/lib/locale/lang/ko.js +123 -125
  84. package/lib/locale/lang/ku.js +123 -125
  85. package/lib/locale/lang/kz.js +123 -125
  86. package/lib/locale/lang/lo-LA.js +121 -121
  87. package/lib/locale/lang/lt.js +123 -125
  88. package/lib/locale/lang/lv.js +123 -125
  89. package/lib/locale/lang/mn.js +123 -125
  90. package/lib/locale/lang/ms.js +122 -123
  91. package/lib/locale/lang/nb-NO.js +122 -123
  92. package/lib/locale/lang/nl.js +123 -125
  93. package/lib/locale/lang/pl.js +123 -125
  94. package/lib/locale/lang/pt-br.js +123 -124
  95. package/lib/locale/lang/pt.js +123 -133
  96. package/lib/locale/lang/ro.js +123 -125
  97. package/lib/locale/lang/ru-RU.js +123 -124
  98. package/lib/locale/lang/si.js +123 -127
  99. package/lib/locale/lang/sk.js +125 -126
  100. package/lib/locale/lang/sl.js +123 -125
  101. package/lib/locale/lang/sr-Latn.js +123 -124
  102. package/lib/locale/lang/sr.js +123 -128
  103. package/lib/locale/lang/sv-SE.js +123 -128
  104. package/lib/locale/lang/sw.js +123 -127
  105. package/lib/locale/lang/ta.js +122 -130
  106. package/lib/locale/lang/th.js +123 -127
  107. package/lib/locale/lang/tk.js +123 -129
  108. package/lib/locale/lang/tr-TR.js +123 -125
  109. package/lib/locale/lang/ua.js +123 -124
  110. package/lib/locale/lang/ug-CN.js +123 -124
  111. package/lib/locale/lang/uz-UZ.js +123 -124
  112. package/lib/locale/lang/vi.js +123 -124
  113. package/lib/locale/lang/zh-CN.js +123 -124
  114. package/lib/locale/lang/zh-TW.js +123 -128
  115. package/lib/main.js +67 -69
  116. package/lib/menu-item-group.js +111 -105
  117. package/lib/menu-item.js +259 -3549
  118. package/lib/menu.js +559 -1697
  119. package/lib/message-box.js +693 -3422
  120. package/lib/message.js +229 -1663
  121. package/lib/mixins/emitter.js +30 -28
  122. package/lib/mixins/focus.js +11 -10
  123. package/lib/mixins/locale.js +14 -12
  124. package/lib/mixins/migrating.js +65 -58
  125. package/lib/notification.js +269 -1693
  126. package/lib/option-group.js +139 -190
  127. package/lib/option.js +192 -941
  128. package/lib/page-header.js +92 -1014
  129. package/lib/pagination.js +677 -6969
  130. package/lib/popconfirm.js +223 -3936
  131. package/lib/popover.js +368 -3242
  132. package/lib/progress.js +244 -254
  133. package/lib/radio-button.js +226 -259
  134. package/lib/radio-group.js +186 -249
  135. package/lib/radio.js +253 -263
  136. package/lib/rate.js +416 -1395
  137. package/lib/result.js +233 -189
  138. package/lib/row.js +41 -58
  139. package/lib/scrollbar.js +278 -1331
  140. package/lib/select.js +1347 -5731
  141. package/lib/skeleton-item.js +145 -133
  142. package/lib/skeleton.js +172 -163
  143. package/lib/slider.js +702 -5143
  144. package/lib/spinner.js +101 -113
  145. package/lib/{subTitle.js → statistic.js} +335 -94
  146. package/lib/step.js +311 -274
  147. package/lib/steps.js +117 -854
  148. package/lib/submenu.js +448 -2886
  149. package/lib/switch.js +204 -1036
  150. package/lib/tab-pane.js +135 -125
  151. package/lib/table-column.js +751 -1975
  152. package/lib/table.js +3930 -7956
  153. package/lib/tabs.js +605 -1441
  154. package/lib/tag.js +68 -73
  155. package/lib/theme-chalk/README.md +33 -33
  156. package/lib/theme-chalk/package.json +35 -35
  157. package/lib/theme-chalk/src/alert.scss +147 -147
  158. package/lib/theme-chalk/src/aside.scss +7 -7
  159. package/lib/theme-chalk/src/autocomplete.scss +80 -80
  160. package/lib/theme-chalk/src/avatar.scss +51 -51
  161. package/lib/theme-chalk/src/backtop.scss +22 -22
  162. package/lib/theme-chalk/src/badge.scss +57 -57
  163. package/lib/theme-chalk/src/base.scss +2 -2
  164. package/lib/theme-chalk/src/breadcrumb.scss +55 -55
  165. package/lib/theme-chalk/src/button.scss +262 -262
  166. package/lib/theme-chalk/src/calendar.scss +79 -79
  167. package/lib/theme-chalk/src/card.scss +32 -32
  168. package/lib/theme-chalk/src/carousel-item.scss +50 -50
  169. package/lib/theme-chalk/src/carousel.scss +161 -161
  170. package/lib/theme-chalk/src/cascader-panel.scss +120 -120
  171. package/lib/theme-chalk/src/cascader.scss +182 -182
  172. package/lib/theme-chalk/src/checkbox.scss +359 -359
  173. package/lib/theme-chalk/src/col.scss +156 -156
  174. package/lib/theme-chalk/src/collapse.scss +63 -63
  175. package/lib/theme-chalk/src/color-picker.scss +384 -384
  176. package/lib/theme-chalk/src/common/popup.scss +42 -42
  177. package/lib/theme-chalk/src/common/transition.scss +99 -99
  178. package/lib/theme-chalk/src/common/var.scss +1028 -1028
  179. package/lib/theme-chalk/src/container.scss +14 -14
  180. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -97
  181. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  182. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -151
  183. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -82
  184. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  185. package/lib/theme-chalk/src/date-picker/picker.scss +197 -197
  186. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -85
  187. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  188. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  189. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -51
  190. package/lib/theme-chalk/src/date-picker.scss +11 -11
  191. package/lib/theme-chalk/src/descriptions-item.scss +42 -42
  192. package/lib/theme-chalk/src/descriptions.scss +111 -111
  193. package/lib/theme-chalk/src/dialog.scss +123 -123
  194. package/lib/theme-chalk/src/display.scss +12 -12
  195. package/lib/theme-chalk/src/divider.scss +47 -47
  196. package/lib/theme-chalk/src/drawer.scss +219 -219
  197. package/lib/theme-chalk/src/dropdown.scss +182 -182
  198. package/lib/theme-chalk/src/empty.scss +45 -45
  199. package/lib/theme-chalk/src/footer.scss +8 -8
  200. package/lib/theme-chalk/src/form.scss +167 -167
  201. package/lib/theme-chalk/src/header.scss +8 -8
  202. package/lib/theme-chalk/src/icon.scss +1167 -1167
  203. package/lib/theme-chalk/src/image.scss +179 -179
  204. package/lib/theme-chalk/src/index.scss +90 -89
  205. package/lib/theme-chalk/src/input-number.scss +180 -180
  206. package/lib/theme-chalk/src/input.scss +360 -360
  207. package/lib/theme-chalk/src/link.scss +81 -81
  208. package/lib/theme-chalk/src/loading.scss +96 -96
  209. package/lib/theme-chalk/src/main.scss +12 -12
  210. package/lib/theme-chalk/src/menu.scss +289 -289
  211. package/lib/theme-chalk/src/message-box.scss +226 -226
  212. package/lib/theme-chalk/src/message.scss +120 -120
  213. package/lib/theme-chalk/src/mixins/_button.scss +81 -81
  214. package/lib/theme-chalk/src/mixins/config.scss +4 -4
  215. package/lib/theme-chalk/src/mixins/function.scss +44 -44
  216. package/lib/theme-chalk/src/mixins/mixins.scss +190 -190
  217. package/lib/theme-chalk/src/mixins/utils.scss +39 -39
  218. package/lib/theme-chalk/src/notification.scss +99 -99
  219. package/lib/theme-chalk/src/option-group.scss +42 -42
  220. package/lib/theme-chalk/src/option.scss +36 -36
  221. package/lib/theme-chalk/src/page-header.scss +41 -41
  222. package/lib/theme-chalk/src/pagination.scss +295 -295
  223. package/lib/theme-chalk/src/popconfirm.scss +16 -16
  224. package/lib/theme-chalk/src/popover.scss +40 -40
  225. package/lib/theme-chalk/src/popper.scss +101 -101
  226. package/lib/theme-chalk/src/progress.scss +141 -141
  227. package/lib/theme-chalk/src/radio-button.scss +113 -113
  228. package/lib/theme-chalk/src/radio-group.scss +9 -9
  229. package/lib/theme-chalk/src/radio.scss +199 -199
  230. package/lib/theme-chalk/src/rate.scss +49 -49
  231. package/lib/theme-chalk/src/reset.scss +79 -79
  232. package/lib/theme-chalk/src/result.scss +61 -61
  233. package/lib/theme-chalk/src/row.scss +43 -43
  234. package/lib/theme-chalk/src/scrollbar.scss +72 -72
  235. package/lib/theme-chalk/src/select-dropdown.scss +62 -62
  236. package/lib/theme-chalk/src/select.scss +152 -152
  237. package/lib/theme-chalk/src/skeleton-item.scss +84 -84
  238. package/lib/theme-chalk/src/skeleton.scss +40 -40
  239. package/lib/theme-chalk/src/slider.scss +250 -250
  240. package/lib/theme-chalk/src/spinner.scss +44 -44
  241. package/lib/theme-chalk/src/statistic.scss +38 -0
  242. package/lib/theme-chalk/src/step.scss +317 -317
  243. package/lib/theme-chalk/src/steps.scss +20 -20
  244. package/lib/theme-chalk/src/switch.scss +116 -116
  245. package/lib/theme-chalk/src/table-column.scss +97 -97
  246. package/lib/theme-chalk/src/table.scss +564 -564
  247. package/lib/theme-chalk/src/tabs.scss +602 -602
  248. package/lib/theme-chalk/src/tag.scss +163 -163
  249. package/lib/theme-chalk/src/time-picker.scss +8 -8
  250. package/lib/theme-chalk/src/time-select.scss +37 -37
  251. package/lib/theme-chalk/src/timeline-item.scss +86 -86
  252. package/lib/theme-chalk/src/timeline.scss +14 -14
  253. package/lib/theme-chalk/src/tooltip.scss +141 -141
  254. package/lib/theme-chalk/src/transfer.scss +227 -227
  255. package/lib/theme-chalk/src/tree.scss +123 -123
  256. package/lib/theme-chalk/src/upload.scss +603 -603
  257. package/lib/time-picker.js +1837 -6690
  258. package/lib/time-select.js +1240 -6327
  259. package/lib/timeline-item.js +174 -133
  260. package/lib/timeline.js +39 -43
  261. package/lib/tooltip.js +287 -3184
  262. package/lib/transfer.js +625 -2929
  263. package/lib/transitions/collapse-transition.js +87 -69
  264. package/lib/tree.js +1741 -3248
  265. package/lib/treeselect.js +682 -0
  266. package/lib/umd/locale/af-ZA.js +138 -145
  267. package/lib/umd/locale/ar.js +137 -138
  268. package/lib/umd/locale/az.js +137 -139
  269. package/lib/umd/locale/bg.js +138 -148
  270. package/lib/umd/locale/bn.js +137 -138
  271. package/lib/umd/locale/ca.js +137 -138
  272. package/lib/umd/locale/cs-CZ.js +140 -142
  273. package/lib/umd/locale/da.js +137 -139
  274. package/lib/umd/locale/de.js +139 -141
  275. package/lib/umd/locale/ee.js +138 -140
  276. package/lib/umd/locale/el.js +138 -140
  277. package/lib/umd/locale/en.js +138 -142
  278. package/lib/umd/locale/eo.js +138 -140
  279. package/lib/umd/locale/es.js +137 -138
  280. package/lib/umd/locale/eu.js +138 -143
  281. package/lib/umd/locale/fa.js +138 -140
  282. package/lib/umd/locale/fi.js +138 -140
  283. package/lib/umd/locale/fr.js +137 -140
  284. package/lib/umd/locale/he.js +138 -145
  285. package/lib/umd/locale/hr.js +138 -143
  286. package/lib/umd/locale/hu.js +137 -139
  287. package/lib/umd/locale/hy-AM.js +138 -140
  288. package/lib/umd/locale/id.js +138 -139
  289. package/lib/umd/locale/is.js +138 -139
  290. package/lib/umd/locale/it.js +137 -138
  291. package/lib/umd/locale/ja.js +138 -140
  292. package/lib/umd/locale/kg.js +138 -140
  293. package/lib/umd/locale/km.js +138 -139
  294. package/lib/umd/locale/ko.js +138 -140
  295. package/lib/umd/locale/ku.js +138 -140
  296. package/lib/umd/locale/kz.js +138 -140
  297. package/lib/umd/locale/lo-LA.js +137 -138
  298. package/lib/umd/locale/lt.js +138 -140
  299. package/lib/umd/locale/lv.js +138 -140
  300. package/lib/umd/locale/mn.js +138 -140
  301. package/lib/umd/locale/ms.js +137 -138
  302. package/lib/umd/locale/nb-NO.js +137 -138
  303. package/lib/umd/locale/nl.js +138 -140
  304. package/lib/umd/locale/pl.js +138 -140
  305. package/lib/umd/locale/pt-br.js +138 -139
  306. package/lib/umd/locale/pt.js +138 -148
  307. package/lib/umd/locale/ro.js +138 -140
  308. package/lib/umd/locale/ru-RU.js +138 -139
  309. package/lib/umd/locale/si.js +138 -142
  310. package/lib/umd/locale/sk.js +140 -141
  311. package/lib/umd/locale/sl.js +138 -140
  312. package/lib/umd/locale/sr-Latn.js +138 -139
  313. package/lib/umd/locale/sr.js +138 -143
  314. package/lib/umd/locale/sv-SE.js +138 -143
  315. package/lib/umd/locale/sw.js +138 -142
  316. package/lib/umd/locale/ta.js +137 -145
  317. package/lib/umd/locale/th.js +138 -142
  318. package/lib/umd/locale/tk.js +138 -144
  319. package/lib/umd/locale/tr-TR.js +138 -140
  320. package/lib/umd/locale/ua.js +138 -139
  321. package/lib/umd/locale/ug-CN.js +138 -139
  322. package/lib/umd/locale/uz-UZ.js +138 -139
  323. package/lib/umd/locale/vi.js +138 -139
  324. package/lib/umd/locale/zh-CN.js +138 -139
  325. package/lib/umd/locale/zh-TW.js +138 -143
  326. package/lib/upload.js +989 -2375
  327. package/lib/utils/after-leave.js +33 -36
  328. package/lib/utils/aria-dialog.js +89 -71
  329. package/lib/utils/aria-utils.js +101 -92
  330. package/lib/utils/clickoutside.js +67 -59
  331. package/lib/utils/date-util.js +241 -198
  332. package/lib/utils/date.js +369 -14
  333. package/lib/utils/dom.js +183 -167
  334. package/lib/utils/lodash.js +9421 -13
  335. package/lib/utils/menu/aria-menubar.js +18 -13
  336. package/lib/utils/menu/aria-menuitem.js +54 -43
  337. package/lib/utils/menu/aria-submenu.js +59 -50
  338. package/lib/utils/merge.js +17 -15
  339. package/lib/utils/popper.js +1196 -1167
  340. package/lib/utils/popup/index.js +230 -186
  341. package/lib/utils/popup/popup-manager.js +191 -159
  342. package/lib/utils/resize-event.js +44 -29
  343. package/lib/utils/scroll-into-view.js +33 -25
  344. package/lib/utils/scrollbar-width.js +36 -25
  345. package/lib/utils/shared.js +3 -3
  346. package/lib/utils/types.js +35 -22
  347. package/lib/utils/util.js +221 -187
  348. package/lib/utils/vdom.js +9 -5
  349. package/lib/utils/vue-popper.js +195 -173
  350. package/package.json +156 -160
  351. package/packages/alert/index.js +8 -8
  352. package/packages/alert/src/main.vue +94 -94
  353. package/packages/aside/index.js +8 -8
  354. package/packages/aside/src/main.vue +20 -20
  355. package/packages/autocomplete/index.js +8 -8
  356. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  357. package/packages/autocomplete/src/autocomplete.vue +285 -285
  358. package/packages/avatar/index.js +8 -8
  359. package/packages/avatar/src/main.vue +107 -107
  360. package/packages/backtop/index.js +8 -8
  361. package/packages/backtop/src/main.vue +110 -110
  362. package/packages/badge/index.js +8 -8
  363. package/packages/badge/src/main.vue +53 -53
  364. package/packages/breadcrumb/index.js +8 -8
  365. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
  366. package/packages/breadcrumb/src/breadcrumb.vue +34 -34
  367. package/packages/breadcrumb-item/index.js +8 -8
  368. package/packages/button/index.js +8 -8
  369. package/packages/button/src/button-group.vue +10 -10
  370. package/packages/button/src/button.vue +78 -78
  371. package/packages/button-group/index.js +8 -8
  372. package/packages/calendar/index.js +8 -8
  373. package/packages/calendar/src/date-table.vue +200 -200
  374. package/packages/calendar/src/main.vue +280 -280
  375. package/packages/card/index.js +8 -8
  376. package/packages/card/src/main.vue +23 -23
  377. package/packages/carousel/index.js +8 -8
  378. package/packages/carousel/src/item.vue +138 -138
  379. package/packages/carousel/src/main.vue +315 -315
  380. package/packages/carousel-item/index.js +8 -8
  381. package/packages/cascader/index.js +8 -8
  382. package/packages/cascader/src/cascader.vue +663 -663
  383. package/packages/cascader-panel/index.js +8 -8
  384. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  385. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  386. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  387. package/packages/cascader-panel/src/node.js +166 -165
  388. package/packages/cascader-panel/src/store.js +58 -57
  389. package/packages/checkbox/index.js +8 -8
  390. package/packages/checkbox/src/checkbox-button.vue +199 -199
  391. package/packages/checkbox/src/checkbox-group.vue +48 -48
  392. package/packages/checkbox/src/checkbox.vue +222 -222
  393. package/packages/checkbox-button/index.js +8 -8
  394. package/packages/checkbox-group/index.js +8 -8
  395. package/packages/col/index.js +9 -9
  396. package/packages/col/src/col.js +71 -71
  397. package/packages/collapse/index.js +9 -9
  398. package/packages/collapse/src/collapse-item.vue +114 -114
  399. package/packages/collapse/src/collapse.vue +73 -73
  400. package/packages/collapse-item/index.js +8 -8
  401. package/packages/color-picker/index.js +8 -8
  402. package/packages/color-picker/src/color.js +317 -317
  403. package/packages/color-picker/src/components/alpha-slider.vue +132 -132
  404. package/packages/color-picker/src/components/hue-slider.vue +123 -123
  405. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  406. package/packages/color-picker/src/components/predefine.vue +61 -61
  407. package/packages/color-picker/src/components/sv-panel.vue +100 -100
  408. package/packages/color-picker/src/draggable.js +36 -36
  409. package/packages/color-picker/src/main.vue +188 -188
  410. package/packages/container/index.js +8 -8
  411. package/packages/container/src/main.vue +33 -33
  412. package/packages/date-picker/index.js +8 -8
  413. package/packages/date-picker/src/basic/date-table.vue +441 -441
  414. package/packages/date-picker/src/basic/month-table.vue +269 -268
  415. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  416. package/packages/date-picker/src/basic/year-table.vue +111 -111
  417. package/packages/date-picker/src/panel/date-range.vue +680 -680
  418. package/packages/date-picker/src/panel/date.vue +609 -609
  419. package/packages/date-picker/src/panel/month-range.vue +289 -289
  420. package/packages/date-picker/src/panel/time-range.vue +248 -248
  421. package/packages/date-picker/src/panel/time-select.vue +178 -178
  422. package/packages/date-picker/src/panel/time.vue +186 -186
  423. package/packages/date-picker/src/picker/date-picker.js +43 -43
  424. package/packages/date-picker/src/picker/time-picker.js +39 -39
  425. package/packages/date-picker/src/picker/time-select.js +21 -21
  426. package/packages/date-picker/src/picker.vue +956 -956
  427. package/packages/descriptions/index.js +8 -8
  428. package/packages/descriptions/src/descriptions-item.js +30 -30
  429. package/packages/descriptions/src/descriptions-row.js +116 -116
  430. package/packages/descriptions/src/index.js +180 -180
  431. package/packages/descriptions-item/index.js +8 -8
  432. package/packages/dialog/index.js +8 -8
  433. package/packages/dialog/src/component.vue +212 -212
  434. package/packages/divider/index.js +8 -8
  435. package/packages/divider/src/main.vue +37 -37
  436. package/packages/drawer/index.js +8 -8
  437. package/packages/drawer/src/main.vue +205 -205
  438. package/packages/dropdown/index.js +8 -8
  439. package/packages/dropdown/src/dropdown-item.vue +37 -37
  440. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  441. package/packages/dropdown/src/dropdown.vue +293 -293
  442. package/packages/dropdown-item/index.js +8 -8
  443. package/packages/dropdown-menu/index.js +8 -8
  444. package/packages/empty/index.js +7 -7
  445. package/packages/empty/src/img-empty.vue +132 -132
  446. package/packages/empty/src/index.vue +50 -50
  447. package/packages/footer/index.js +8 -8
  448. package/packages/footer/src/main.vue +20 -20
  449. package/packages/form/index.js +8 -8
  450. package/packages/form/src/form-item.vue +324 -324
  451. package/packages/form/src/form.vue +182 -182
  452. package/packages/form/src/label-wrap.vue +78 -78
  453. package/packages/form-item/index.js +8 -8
  454. package/packages/header/index.js +8 -8
  455. package/packages/header/src/main.vue +20 -20
  456. package/packages/icon/index.js +8 -8
  457. package/packages/icon/src/icon.vue +13 -13
  458. package/packages/image/index.js +8 -8
  459. package/packages/image/src/image-viewer.vue +330 -330
  460. package/packages/image/src/main.vue +249 -249
  461. package/packages/infinite-scroll/index.js +8 -8
  462. package/packages/infinite-scroll/src/main.js +150 -149
  463. package/packages/input/index.js +8 -8
  464. package/packages/input/src/calcTextareaHeight.js +104 -104
  465. package/packages/input/src/input.vue +440 -440
  466. package/packages/input-number/index.js +8 -8
  467. package/packages/input-number/src/input-number.vue +283 -283
  468. package/packages/link/index.js +8 -8
  469. package/packages/link/src/main.vue +53 -53
  470. package/packages/loading/index.js +11 -11
  471. package/packages/loading/src/directive.js +133 -133
  472. package/packages/loading/src/index.js +106 -106
  473. package/packages/loading/src/loading.vue +41 -41
  474. package/packages/main/index.js +8 -8
  475. package/packages/main/src/main.vue +12 -12
  476. package/packages/menu/index.js +8 -8
  477. package/packages/menu/src/menu-item-group.vue +45 -45
  478. package/packages/menu/src/menu-item.vue +112 -112
  479. package/packages/menu/src/menu-mixin.js +44 -44
  480. package/packages/menu/src/menu.vue +325 -325
  481. package/packages/menu/src/submenu.vue +349 -348
  482. package/packages/menu-item/index.js +8 -8
  483. package/packages/menu-item-group/index.js +8 -8
  484. package/packages/message/index.js +2 -2
  485. package/packages/message/src/main.js +91 -91
  486. package/packages/message/src/main.vue +117 -117
  487. package/packages/message-box/index.js +2 -2
  488. package/packages/message-box/src/main.js +216 -216
  489. package/packages/message-box/src/main.vue +332 -332
  490. package/packages/notification/index.js +2 -2
  491. package/packages/notification/src/main.js +94 -94
  492. package/packages/notification/src/main.vue +152 -152
  493. package/packages/option/index.js +8 -8
  494. package/packages/option-group/index.js +8 -8
  495. package/packages/page-header/index.js +8 -8
  496. package/packages/page-header/src/main.vue +30 -30
  497. package/packages/pagination/index.js +8 -8
  498. package/packages/pagination/src/pager.vue +163 -163
  499. package/packages/pagination/src/pagination.js +386 -386
  500. package/packages/popconfirm/index.js +8 -8
  501. package/packages/popconfirm/src/main.vue +104 -104
  502. package/packages/popover/index.js +14 -14
  503. package/packages/popover/src/directive.js +20 -20
  504. package/packages/popover/src/main.vue +237 -237
  505. package/packages/progress/index.js +8 -8
  506. package/packages/progress/src/progress.vue +235 -235
  507. package/packages/radio/index.js +8 -8
  508. package/packages/radio/src/radio-button.vue +115 -115
  509. package/packages/radio/src/radio-group.vue +113 -113
  510. package/packages/radio/src/radio.vue +134 -134
  511. package/packages/radio-button/index.js +8 -8
  512. package/packages/radio-group/index.js +8 -8
  513. package/packages/rate/index.js +8 -8
  514. package/packages/rate/src/main.vue +348 -348
  515. package/packages/result/index.js +8 -8
  516. package/packages/result/src/icon-error.vue +13 -13
  517. package/packages/result/src/icon-info.vue +13 -13
  518. package/packages/result/src/icon-success.vue +13 -13
  519. package/packages/result/src/icon-warning.vue +13 -13
  520. package/packages/result/src/index.vue +65 -65
  521. package/packages/row/index.js +9 -9
  522. package/packages/row/src/row.js +44 -44
  523. package/packages/scrollbar/index.js +8 -8
  524. package/packages/scrollbar/src/bar.js +92 -92
  525. package/packages/scrollbar/src/main.js +130 -130
  526. package/packages/scrollbar/src/util.js +34 -34
  527. package/packages/select/index.js +8 -8
  528. package/packages/select/src/navigation-mixin.js +54 -54
  529. package/packages/select/src/option-group.vue +60 -60
  530. package/packages/select/src/option.vue +168 -168
  531. package/packages/select/src/select-dropdown.vue +74 -74
  532. package/packages/select/src/select.vue +900 -900
  533. package/packages/skeleton/index.js +8 -8
  534. package/packages/skeleton/src/img-placeholder.vue +16 -16
  535. package/packages/skeleton/src/index.vue +76 -76
  536. package/packages/skeleton/src/item.vue +22 -22
  537. package/packages/skeleton-item/index.js +8 -8
  538. package/packages/slider/index.js +8 -8
  539. package/packages/slider/src/button.vue +238 -238
  540. package/packages/slider/src/main.vue +427 -427
  541. package/packages/slider/src/marker.js +18 -18
  542. package/packages/spinner/index.js +8 -8
  543. package/packages/spinner/src/spinner.vue +27 -27
  544. package/packages/statistic/index.js +8 -0
  545. package/packages/statistic/src/main.vue +204 -0
  546. package/packages/step/index.js +8 -8
  547. package/packages/steps/README.md +69 -69
  548. package/packages/steps/index.js +8 -8
  549. package/packages/steps/src/step.vue +184 -184
  550. package/packages/steps/src/steps.vue +68 -68
  551. package/packages/submenu/index.js +8 -8
  552. package/packages/switch/index.js +9 -9
  553. package/packages/switch/src/component.vue +174 -174
  554. package/packages/tab-pane/index.js +8 -8
  555. package/packages/table/index.js +8 -8
  556. package/packages/table/src/config.js +124 -124
  557. package/packages/table/src/dropdown.js +28 -28
  558. package/packages/table/src/filter-panel.vue +194 -194
  559. package/packages/table/src/layout-observer.js +68 -68
  560. package/packages/table/src/store/current.js +76 -76
  561. package/packages/table/src/store/expand.js +65 -65
  562. package/packages/table/src/store/helper.js +41 -41
  563. package/packages/table/src/store/index.js +147 -147
  564. package/packages/table/src/store/tree.js +209 -209
  565. package/packages/table/src/store/watcher.js +381 -381
  566. package/packages/table/src/table-body.js +469 -469
  567. package/packages/table/src/table-column.js +319 -319
  568. package/packages/table/src/table-footer.js +153 -153
  569. package/packages/table/src/table-header.js +511 -511
  570. package/packages/table/src/table-layout.js +249 -249
  571. package/packages/table/src/table-row.js +101 -101
  572. package/packages/table/src/table.vue +712 -712
  573. package/packages/table/src/util.js +273 -273
  574. package/packages/table-column/index.js +8 -8
  575. package/packages/tabs/index.js +8 -8
  576. package/packages/tabs/src/tab-bar.vue +57 -57
  577. package/packages/tabs/src/tab-nav.vue +294 -294
  578. package/packages/tabs/src/tab-pane.vue +56 -56
  579. package/packages/tabs/src/tabs.vue +191 -191
  580. package/packages/tag/index.js +8 -8
  581. package/packages/tag/src/tag.vue +58 -58
  582. package/packages/theme-chalk/README.md +33 -33
  583. package/packages/theme-chalk/package.json +35 -35
  584. package/packages/theme-chalk/src/alert.scss +147 -147
  585. package/packages/theme-chalk/src/aside.scss +7 -7
  586. package/packages/theme-chalk/src/autocomplete.scss +80 -80
  587. package/packages/theme-chalk/src/avatar.scss +51 -51
  588. package/packages/theme-chalk/src/backtop.scss +22 -22
  589. package/packages/theme-chalk/src/badge.scss +57 -57
  590. package/packages/theme-chalk/src/base.scss +2 -2
  591. package/packages/theme-chalk/src/breadcrumb.scss +55 -55
  592. package/packages/theme-chalk/src/button.scss +262 -262
  593. package/packages/theme-chalk/src/calendar.scss +79 -79
  594. package/packages/theme-chalk/src/card.scss +32 -32
  595. package/packages/theme-chalk/src/carousel-item.scss +50 -50
  596. package/packages/theme-chalk/src/carousel.scss +161 -161
  597. package/packages/theme-chalk/src/cascader-panel.scss +120 -120
  598. package/packages/theme-chalk/src/cascader.scss +182 -182
  599. package/packages/theme-chalk/src/checkbox.scss +359 -359
  600. package/packages/theme-chalk/src/col.scss +156 -156
  601. package/packages/theme-chalk/src/collapse.scss +63 -63
  602. package/packages/theme-chalk/src/color-picker.scss +384 -384
  603. package/packages/theme-chalk/src/common/popup.scss +42 -42
  604. package/packages/theme-chalk/src/common/transition.scss +99 -99
  605. package/packages/theme-chalk/src/common/var.scss +1028 -1028
  606. package/packages/theme-chalk/src/container.scss +14 -14
  607. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
  608. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  609. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
  610. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
  611. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  612. package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
  613. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
  614. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  615. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  616. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
  617. package/packages/theme-chalk/src/date-picker.scss +11 -11
  618. package/packages/theme-chalk/src/descriptions-item.scss +42 -42
  619. package/packages/theme-chalk/src/descriptions.scss +111 -111
  620. package/packages/theme-chalk/src/dialog.scss +123 -123
  621. package/packages/theme-chalk/src/display.scss +12 -12
  622. package/packages/theme-chalk/src/divider.scss +47 -47
  623. package/packages/theme-chalk/src/drawer.scss +219 -219
  624. package/packages/theme-chalk/src/dropdown.scss +182 -182
  625. package/packages/theme-chalk/src/empty.scss +45 -45
  626. package/packages/theme-chalk/src/footer.scss +8 -8
  627. package/packages/theme-chalk/src/form.scss +167 -167
  628. package/packages/theme-chalk/src/header.scss +8 -8
  629. package/packages/theme-chalk/src/icon.scss +1167 -1167
  630. package/packages/theme-chalk/src/image.scss +179 -179
  631. package/packages/theme-chalk/src/index.scss +90 -89
  632. package/packages/theme-chalk/src/input-number.scss +180 -180
  633. package/packages/theme-chalk/src/input.scss +360 -360
  634. package/packages/theme-chalk/src/link.scss +81 -81
  635. package/packages/theme-chalk/src/loading.scss +96 -96
  636. package/packages/theme-chalk/src/main.scss +12 -12
  637. package/packages/theme-chalk/src/menu.scss +289 -289
  638. package/packages/theme-chalk/src/message-box.scss +226 -226
  639. package/packages/theme-chalk/src/message.scss +120 -120
  640. package/packages/theme-chalk/src/mixins/_button.scss +81 -81
  641. package/packages/theme-chalk/src/mixins/config.scss +4 -4
  642. package/packages/theme-chalk/src/mixins/function.scss +44 -44
  643. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  644. package/packages/theme-chalk/src/mixins/utils.scss +39 -39
  645. package/packages/theme-chalk/src/notification.scss +99 -99
  646. package/packages/theme-chalk/src/option-group.scss +42 -42
  647. package/packages/theme-chalk/src/option.scss +36 -36
  648. package/packages/theme-chalk/src/page-header.scss +41 -41
  649. package/packages/theme-chalk/src/pagination.scss +295 -295
  650. package/packages/theme-chalk/src/popconfirm.scss +16 -16
  651. package/packages/theme-chalk/src/popover.scss +40 -40
  652. package/packages/theme-chalk/src/popper.scss +101 -101
  653. package/packages/theme-chalk/src/progress.scss +141 -141
  654. package/packages/theme-chalk/src/radio-button.scss +113 -113
  655. package/packages/theme-chalk/src/radio-group.scss +9 -9
  656. package/packages/theme-chalk/src/radio.scss +199 -199
  657. package/packages/theme-chalk/src/rate.scss +49 -49
  658. package/packages/theme-chalk/src/reset.scss +79 -79
  659. package/packages/theme-chalk/src/result.scss +61 -61
  660. package/packages/theme-chalk/src/row.scss +43 -43
  661. package/packages/theme-chalk/src/scrollbar.scss +72 -72
  662. package/packages/theme-chalk/src/select-dropdown.scss +62 -62
  663. package/packages/theme-chalk/src/select.scss +152 -152
  664. package/packages/theme-chalk/src/skeleton-item.scss +84 -84
  665. package/packages/theme-chalk/src/skeleton.scss +40 -40
  666. package/packages/theme-chalk/src/slider.scss +250 -250
  667. package/packages/theme-chalk/src/spinner.scss +44 -44
  668. package/packages/theme-chalk/src/statistic.scss +38 -0
  669. package/packages/theme-chalk/src/step.scss +317 -317
  670. package/packages/theme-chalk/src/steps.scss +20 -20
  671. package/packages/theme-chalk/src/switch.scss +116 -116
  672. package/packages/theme-chalk/src/table-column.scss +97 -97
  673. package/packages/theme-chalk/src/table.scss +564 -564
  674. package/packages/theme-chalk/src/tabs.scss +602 -602
  675. package/packages/theme-chalk/src/tag.scss +163 -163
  676. package/packages/theme-chalk/src/time-picker.scss +8 -8
  677. package/packages/theme-chalk/src/time-select.scss +37 -37
  678. package/packages/theme-chalk/src/timeline-item.scss +86 -86
  679. package/packages/theme-chalk/src/timeline.scss +14 -14
  680. package/packages/theme-chalk/src/tooltip.scss +141 -141
  681. package/packages/theme-chalk/src/transfer.scss +227 -227
  682. package/packages/theme-chalk/src/tree.scss +123 -123
  683. package/packages/theme-chalk/src/upload.scss +603 -603
  684. package/packages/theme-cy/README.md +38 -38
  685. package/packages/theme-cy/lib/index.css +1 -1
  686. package/packages/theme-cy/lib/treeselect.css +1 -1
  687. package/packages/theme-cy/package.json +35 -35
  688. package/packages/theme-cy/src/index.scss +0 -4
  689. package/packages/theme-cy/src/treeselect.scss +87 -93
  690. package/packages/time-picker/index.js +8 -8
  691. package/packages/time-select/index.js +8 -8
  692. package/packages/timeline/index.js +8 -8
  693. package/packages/timeline/src/item.vue +73 -73
  694. package/packages/timeline/src/main.vue +33 -33
  695. package/packages/timeline-item/index.js +8 -8
  696. package/packages/tooltip/index.js +8 -8
  697. package/packages/tooltip/src/main.js +242 -242
  698. package/packages/transfer/index.js +8 -8
  699. package/packages/transfer/src/main.vue +231 -231
  700. package/packages/transfer/src/transfer-panel.vue +251 -251
  701. package/packages/tree/index.js +8 -8
  702. package/packages/tree/src/model/node.js +484 -484
  703. package/packages/tree/src/model/tree-store.js +340 -340
  704. package/packages/tree/src/model/util.js +27 -27
  705. package/packages/tree/src/tree-node.vue +279 -279
  706. package/packages/tree/src/tree.vue +496 -496
  707. package/packages/treeselect/index.js +8 -0
  708. package/packages/{treeSelect → treeselect}/src/main.vue +243 -243
  709. package/packages/upload/index.js +8 -8
  710. package/packages/upload/src/ajax.js +85 -85
  711. package/packages/upload/src/index.vue +338 -338
  712. package/packages/upload/src/upload-dragger.vue +70 -70
  713. package/packages/upload/src/upload-list.vue +105 -105
  714. package/packages/upload/src/upload.vue +211 -211
  715. package/src/directives/mousewheel.js +18 -18
  716. package/src/directives/repeat-click.js +26 -26
  717. package/src/index.js +8 -13
  718. package/src/locale/format.js +46 -45
  719. package/src/locale/index.js +48 -48
  720. package/src/locale/lang/af-ZA.js +123 -123
  721. package/src/locale/lang/ar.js +122 -122
  722. package/src/locale/lang/az.js +126 -126
  723. package/src/locale/lang/bg.js +123 -123
  724. package/src/locale/lang/bn.js +126 -126
  725. package/src/locale/lang/ca.js +122 -122
  726. package/src/locale/lang/cs-CZ.js +125 -125
  727. package/src/locale/lang/da.js +122 -122
  728. package/src/locale/lang/de.js +124 -124
  729. package/src/locale/lang/ee.js +123 -123
  730. package/src/locale/lang/el.js +123 -123
  731. package/src/locale/lang/en.js +123 -123
  732. package/src/locale/lang/eo.js +123 -123
  733. package/src/locale/lang/es.js +122 -122
  734. package/src/locale/lang/eu.js +123 -123
  735. package/src/locale/lang/fa.js +123 -123
  736. package/src/locale/lang/fi.js +123 -123
  737. package/src/locale/lang/fr.js +122 -122
  738. package/src/locale/lang/he.js +123 -123
  739. package/src/locale/lang/hr.js +123 -123
  740. package/src/locale/lang/hu.js +122 -122
  741. package/src/locale/lang/hy-AM.js +123 -123
  742. package/src/locale/lang/id.js +123 -123
  743. package/src/locale/lang/is.js +124 -124
  744. package/src/locale/lang/it.js +122 -122
  745. package/src/locale/lang/ja.js +123 -123
  746. package/src/locale/lang/kg.js +123 -123
  747. package/src/locale/lang/km.js +123 -123
  748. package/src/locale/lang/ko.js +123 -123
  749. package/src/locale/lang/ku.js +123 -123
  750. package/src/locale/lang/kz.js +123 -123
  751. package/src/locale/lang/lo-LA.js +126 -126
  752. package/src/locale/lang/lt.js +123 -123
  753. package/src/locale/lang/lv.js +123 -123
  754. package/src/locale/lang/mn.js +123 -123
  755. package/src/locale/lang/ms.js +122 -122
  756. package/src/locale/lang/nb-NO.js +122 -122
  757. package/src/locale/lang/nl.js +123 -123
  758. package/src/locale/lang/pl.js +123 -123
  759. package/src/locale/lang/pt-br.js +123 -123
  760. package/src/locale/lang/pt.js +123 -123
  761. package/src/locale/lang/ro.js +123 -123
  762. package/src/locale/lang/ru-RU.js +123 -123
  763. package/src/locale/lang/si.js +123 -123
  764. package/src/locale/lang/sk.js +125 -125
  765. package/src/locale/lang/sl.js +123 -123
  766. package/src/locale/lang/sr-Latn.js +123 -123
  767. package/src/locale/lang/sr.js +123 -123
  768. package/src/locale/lang/sv-SE.js +123 -123
  769. package/src/locale/lang/ta.js +122 -122
  770. package/src/locale/lang/th.js +123 -123
  771. package/src/locale/lang/tk.js +123 -123
  772. package/src/locale/lang/tr-TR.js +123 -123
  773. package/src/locale/lang/ua.js +123 -123
  774. package/src/locale/lang/ug-CN.js +123 -123
  775. package/src/locale/lang/uz-UZ.js +123 -123
  776. package/src/locale/lang/vi.js +123 -123
  777. package/src/locale/lang/zh-CN.js +123 -123
  778. package/src/locale/lang/zh-TW.js +123 -123
  779. package/src/mixins/emitter.js +33 -33
  780. package/src/mixins/focus.js +9 -9
  781. package/src/mixins/locale.js +9 -9
  782. package/src/mixins/migrating.js +54 -54
  783. package/src/transitions/collapse-transition.js +77 -77
  784. package/src/utils/after-leave.js +27 -27
  785. package/src/utils/aria-dialog.js +90 -90
  786. package/src/utils/aria-utils.js +122 -122
  787. package/src/utils/clickoutside.js +76 -76
  788. package/src/utils/date-util.js +282 -282
  789. package/src/utils/date.js +368 -2
  790. package/src/utils/dom.js +227 -227
  791. package/src/utils/lodash.js +18075 -9
  792. package/src/utils/menu/aria-menubar.js +14 -14
  793. package/src/utils/menu/aria-menuitem.js +49 -49
  794. package/src/utils/menu/aria-submenu.js +59 -59
  795. package/src/utils/merge.js +15 -15
  796. package/src/utils/popper.js +1276 -1276
  797. package/src/utils/popup/index.js +218 -218
  798. package/src/utils/popup/popup-manager.js +194 -194
  799. package/src/utils/resize-event.js +36 -36
  800. package/src/utils/scroll-into-view.js +27 -27
  801. package/src/utils/scrollbar-width.js +29 -29
  802. package/src/utils/shared.js +7 -7
  803. package/src/utils/types.js +40 -40
  804. package/src/utils/util.js +245 -245
  805. package/src/utils/vdom.js +5 -5
  806. package/src/utils/vue-popper.js +198 -198
  807. package/types/alert.d.ts +31 -31
  808. package/types/aside.d.ts +7 -7
  809. package/types/autocomplete.d.ts +78 -78
  810. package/types/avatar.d.ts +20 -20
  811. package/types/backtop.d.ts +16 -16
  812. package/types/badge.d.ts +16 -16
  813. package/types/breadcrumb-item.d.ts +10 -10
  814. package/types/breadcrumb.d.ts +10 -10
  815. package/types/button-group.d.ts +4 -4
  816. package/types/button.d.ts +37 -37
  817. package/types/calendar.d.ts +15 -15
  818. package/types/card.d.ts +26 -26
  819. package/types/carousel-item.d.ts +10 -10
  820. package/types/carousel.d.ts +57 -57
  821. package/types/cascader-panel.d.ts +72 -72
  822. package/types/cascader.d.ts +65 -65
  823. package/types/checkbox-button.d.ts +22 -22
  824. package/types/checkbox-group.d.ts +22 -22
  825. package/types/checkbox.d.ts +34 -34
  826. package/types/col.d.ts +46 -46
  827. package/types/collapse-item.d.ts +26 -26
  828. package/types/collapse.d.ts +10 -10
  829. package/types/color-picker.d.ts +21 -21
  830. package/types/component.d.ts +13 -13
  831. package/types/container.d.ts +7 -7
  832. package/types/date-picker.d.ts +124 -124
  833. package/types/descriptions-item.d.ts +37 -37
  834. package/types/descriptions.d.ts +52 -52
  835. package/types/dialog.d.ts +62 -62
  836. package/types/divider.d.ts +12 -12
  837. package/types/drawer.d.ts +63 -63
  838. package/types/dropdown-item.d.ts +16 -16
  839. package/types/dropdown-menu.d.ts +4 -4
  840. package/types/dropdown.d.ts +38 -38
  841. package/types/element-ui.d.ts +3 -16
  842. package/types/empty.d.ts +31 -31
  843. package/types/footer.d.ts +7 -7
  844. package/types/form-item.d.ts +37 -37
  845. package/types/form.d.ts +82 -82
  846. package/types/header.d.ts +7 -7
  847. package/types/icon.d.ts +7 -7
  848. package/types/image.d.ts +43 -43
  849. package/types/index.d.ts +4 -4
  850. package/types/infinite-scroll.d.ts +5 -5
  851. package/types/input-number.d.ts +47 -47
  852. package/types/input.d.ts +107 -107
  853. package/types/link.d.ts +25 -25
  854. package/types/loading.d.ts +62 -62
  855. package/types/main.d.ts +4 -4
  856. package/types/menu-item-group.d.ts +7 -7
  857. package/types/menu-item.d.ts +10 -10
  858. package/types/menu.d.ts +46 -46
  859. package/types/message-box.d.ts +176 -176
  860. package/types/message.d.ts +90 -90
  861. package/types/notification.d.ts +84 -84
  862. package/types/option-group.d.ts +10 -10
  863. package/types/option.d.ts +13 -13
  864. package/types/page-header.d.ts +10 -10
  865. package/types/pagination.d.ts +43 -43
  866. package/types/popconfirm.d.ts +29 -29
  867. package/types/popover.d.ts +71 -71
  868. package/types/progress.d.ts +37 -37
  869. package/types/radio-button.d.ts +16 -16
  870. package/types/radio-group.d.ts +18 -18
  871. package/types/radio.d.ts +19 -19
  872. package/types/rate.d.ts +64 -64
  873. package/types/result.d.ts +33 -33
  874. package/types/row.d.ts +25 -25
  875. package/types/select.d.ts +90 -90
  876. package/types/skeleton-item.d.ts +7 -7
  877. package/types/skeleton.d.ts +33 -33
  878. package/types/slider.d.ts +68 -68
  879. package/types/spinner.d.ts +16 -16
  880. package/types/statistic.d.ts +37 -0
  881. package/types/step.d.ts +34 -34
  882. package/types/steps.d.ts +28 -28
  883. package/types/submenu.d.ts +22 -22
  884. package/types/switch.d.ts +43 -43
  885. package/types/tab-pane.d.ts +19 -19
  886. package/types/table-column.d.ts +117 -117
  887. package/types/table.d.ts +177 -177
  888. package/types/tabs.d.ts +31 -31
  889. package/types/tag.d.ts +28 -28
  890. package/types/time-picker.d.ts +63 -63
  891. package/types/time-select.d.ts +56 -56
  892. package/types/timeline-item.d.ts +20 -20
  893. package/types/timeline.d.ts +6 -6
  894. package/types/tooltip.d.ts +52 -52
  895. package/types/transfer.d.ts +73 -73
  896. package/types/tree.d.ts +266 -266
  897. package/types/treeselect.d.ts +5 -0
  898. package/types/upload.d.ts +124 -124
  899. package/web-types.json +4195 -4195
  900. package/lib/fileUpload.js +0 -3885
  901. package/lib/tabDialog.js +0 -2644
  902. package/lib/treeSelect.js +0 -4421
  903. package/lib/utils/date_source.js +0 -335
  904. package/lib/utils/lodash_source.js +0 -9421
  905. package/packages/fileUpload/index.js +0 -8
  906. package/packages/fileUpload/src/main.vue +0 -430
  907. package/packages/subTitle/index.js +0 -8
  908. package/packages/subTitle/src/main.vue +0 -33
  909. package/packages/tabDialog/index.js +0 -23
  910. package/packages/tabDialog/src/dialog/drag.js +0 -63
  911. package/packages/tabDialog/src/dialog/dragHeight.js +0 -34
  912. package/packages/tabDialog/src/dialog/dragWidth.js +0 -30
  913. package/packages/tabDialog/src/main.vue +0 -277
  914. package/packages/theme-cy/lib/element.css +0 -1
  915. package/packages/theme-cy/lib/fileUpload.css +0 -1
  916. package/packages/theme-cy/lib/subTitle.css +0 -1
  917. package/packages/theme-cy/lib/tabDialog.css +0 -1
  918. package/packages/theme-cy/src/element.scss +0 -45
  919. package/packages/theme-cy/src/fileUpload.scss +0 -30
  920. package/packages/theme-cy/src/subTitle.scss +0 -26
  921. package/packages/theme-cy/src/tabDialog.scss +0 -43
  922. package/packages/treeSelect/index.js +0 -8
  923. package/src/utils/date_source.js +0 -352
  924. package/src/utils/lodash_source.js +0 -18090
  925. package/types/fileUpload.d.ts +0 -5
  926. package/types/subTitle.d.ts +0 -5
  927. package/types/tabDialog.d.ts +0 -5
  928. package/types/treeSelect.d.ts +0 -5
@@ -82,265 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 150);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 79);
86
86
  /******/ })
87
87
  /************************************************************************/
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
- };
88
+ /******/ ({
341
89
 
342
- /***/ }),
343
- /* 2 */
90
+ /***/ 0:
344
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
345
92
 
346
93
  "use strict";
@@ -361,2692 +108,169 @@ function normalizeComponent(
361
108
  moduleIdentifier /* server only */,
362
109
  shadowMode /* vue-cli only */
363
110
  ) {
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
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
911
-
912
- "use strict";
913
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
914
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
915
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
916
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
917
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
918
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
919
-
920
-
921
-
922
- function _broadcast(componentName, eventName, params) {
923
- this.$children.forEach(function (child) {
924
- var name = child.$options.componentName;
925
- if (name === componentName) {
926
- child.$emit.apply(child, [eventName].concat(params));
927
- } else {
928
- _broadcast.apply(child, [componentName, eventName].concat([params]));
929
- }
930
- });
931
- }
932
- /* harmony default export */ __webpack_exports__["a"] = ({
933
- methods: {
934
- dispatch: function dispatch(componentName, eventName, params) {
935
- var parent = this.$parent || this.$root;
936
- var name = parent.$options.componentName;
937
- while (parent && (!name || name !== componentName)) {
938
- parent = parent.$parent;
939
- if (parent) {
940
- name = parent.$options.componentName;
941
- }
942
- }
943
- if (parent) {
944
- parent.$emit.apply(parent, [eventName].concat(params));
945
- }
946
- },
947
- broadcast: function broadcast(componentName, eventName, params) {
948
- _broadcast.call(this, componentName, eventName, params);
949
- }
950
- }
951
- });
952
-
953
- /***/ }),
954
- /* 15 */
955
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
956
-
957
- "use strict";
958
- /* harmony default export */ __webpack_exports__["a"] = (function (target) {
959
- for (var i = 1, j = arguments.length; i < j; i++) {
960
- var source = arguments[i] || {};
961
- for (var prop in source) {
962
- if (source.hasOwnProperty(prop)) {
963
- var value = source[prop];
964
- if (value !== undefined) {
965
- target[prop] = value;
966
- }
967
- }
968
- }
969
- }
970
- return target;
971
- });
972
- ;
973
-
974
- /***/ }),
975
- /* 16 */
976
- /***/ (function(module, exports) {
977
-
978
- module.exports = require("core-js/modules/es.string.match.js");
979
-
980
- /***/ }),
981
- /* 17 */
982
- /***/ (function(module, exports) {
983
-
984
- module.exports = require("core-js/modules/es.object.keys.js");
985
-
986
- /***/ }),
987
- /* 18 */
988
- /***/ (function(module, exports) {
989
-
990
- module.exports = require("core-js/modules/es.array.filter.js");
991
-
992
- /***/ }),
993
- /* 19 */
994
- /***/ (function(module, exports) {
995
-
996
- module.exports = require("core-js/modules/es.array.iterator.js");
997
-
998
- /***/ }),
999
- /* 20 */
1000
- /***/ (function(module, exports) {
1001
-
1002
- module.exports = require("core-js/modules/es.array.map.js");
1003
-
1004
- /***/ }),
1005
- /* 21 */
1006
- /***/ (function(module, exports) {
1007
-
1008
- module.exports = require("core-js/modules/es.array.concat.js");
1009
-
1010
- /***/ }),
1011
- /* 22 */
1012
- /***/ (function(module, exports) {
1013
-
1014
- module.exports = require("core-js/modules/es.array.splice.js");
1015
-
1016
- /***/ }),
1017
- /* 23 */
1018
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1019
-
1020
- "use strict";
1021
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
1022
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
1023
-
1024
- var scrollBarWidth;
1025
- /* harmony default export */ __webpack_exports__["a"] = (function () {
1026
- if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
1027
- if (scrollBarWidth !== undefined) return scrollBarWidth;
1028
- var outer = document.createElement('div');
1029
- outer.className = 'el-scrollbar__wrap';
1030
- outer.style.visibility = 'hidden';
1031
- outer.style.width = '100px';
1032
- outer.style.position = 'absolute';
1033
- outer.style.top = '-9999px';
1034
- document.body.appendChild(outer);
1035
- var widthNoScroll = outer.offsetWidth;
1036
- outer.style.overflow = 'scroll';
1037
- var inner = document.createElement('div');
1038
- inner.style.width = '100%';
1039
- outer.appendChild(inner);
1040
- var widthWithScroll = inner.offsetWidth;
1041
- outer.parentNode.removeChild(outer);
1042
- scrollBarWidth = widthNoScroll - widthWithScroll;
1043
- return scrollBarWidth;
1044
- });
1045
- ;
1046
-
1047
- /***/ }),
1048
- /* 24 */
1049
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1050
-
1051
- "use strict";
1052
-
1053
- // EXPORTS
1054
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ popup_manager; });
1055
-
1056
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1057
- var es_number_constructor_js_ = __webpack_require__(6);
1058
-
1059
- // EXTERNAL MODULE: external "vue"
1060
- var external_vue_ = __webpack_require__(0);
1061
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1062
-
1063
- // EXTERNAL MODULE: ./src/utils/merge.js
1064
- var merge = __webpack_require__(15);
1065
-
1066
- // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
1067
- var es_array_splice_js_ = __webpack_require__(22);
1068
-
1069
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1070
- var es_object_to_string_js_ = __webpack_require__(3);
1071
-
1072
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1073
- var es_regexp_exec_js_ = __webpack_require__(7);
1074
-
1075
- // EXTERNAL MODULE: external "core-js/modules/es.string.split.js"
1076
- var es_string_split_js_ = __webpack_require__(59);
1077
-
1078
- // EXTERNAL MODULE: external "core-js/modules/es.string.trim.js"
1079
- var es_string_trim_js_ = __webpack_require__(56);
1080
-
1081
- // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
1082
- var web_dom_collections_for_each_js_ = __webpack_require__(10);
1083
-
1084
- // EXTERNAL MODULE: ./src/utils/dom.js
1085
- var utils_dom = __webpack_require__(1);
1086
-
1087
- // CONCATENATED MODULE: ./src/utils/popup/popup-manager.js
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
- var hasModal = false;
1097
- var hasInitZIndex = false;
1098
- var popup_manager_zIndex;
1099
- var popup_manager_getModal = function getModal() {
1100
- if (external_vue_default.a.prototype.$isServer) return;
1101
- var modalDom = PopupManager.modalDom;
1102
- if (modalDom) {
1103
- hasModal = true;
1104
- } else {
1105
- hasModal = false;
1106
- modalDom = document.createElement('div');
1107
- PopupManager.modalDom = modalDom;
1108
- modalDom.addEventListener('touchmove', function (event) {
1109
- event.preventDefault();
1110
- event.stopPropagation();
1111
- });
1112
- modalDom.addEventListener('click', function () {
1113
- PopupManager.doOnModalClick && PopupManager.doOnModalClick();
1114
- });
1115
- }
1116
- return modalDom;
1117
- };
1118
- var instances = {};
1119
- var PopupManager = {
1120
- modalFade: true,
1121
- getInstance: function getInstance(id) {
1122
- return instances[id];
1123
- },
1124
- register: function register(id, instance) {
1125
- if (id && instance) {
1126
- instances[id] = instance;
1127
- }
1128
- },
1129
- deregister: function deregister(id) {
1130
- if (id) {
1131
- instances[id] = null;
1132
- delete instances[id];
1133
- }
1134
- },
1135
- nextZIndex: function nextZIndex() {
1136
- return PopupManager.zIndex++;
1137
- },
1138
- modalStack: [],
1139
- doOnModalClick: function doOnModalClick() {
1140
- var topItem = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1141
- if (!topItem) return;
1142
- var instance = PopupManager.getInstance(topItem.id);
1143
- if (instance && instance.closeOnClickModal) {
1144
- instance.close();
1145
- }
1146
- },
1147
- openModal: function openModal(id, zIndex, dom, modalClass, modalFade) {
1148
- if (external_vue_default.a.prototype.$isServer) return;
1149
- if (!id || zIndex === undefined) return;
1150
- this.modalFade = modalFade;
1151
- var modalStack = this.modalStack;
1152
- for (var i = 0, j = modalStack.length; i < j; i++) {
1153
- var item = modalStack[i];
1154
- if (item.id === id) {
1155
- return;
1156
- }
1157
- }
1158
- var modalDom = popup_manager_getModal();
1159
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal');
1160
- if (this.modalFade && !hasModal) {
1161
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-enter');
1162
- }
1163
- if (modalClass) {
1164
- var classArr = modalClass.trim().split(/\s+/);
1165
- classArr.forEach(function (item) {
1166
- return Object(utils_dom["a" /* addClass */])(modalDom, item);
1167
- });
1168
- }
1169
- setTimeout(function () {
1170
- Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-enter');
1171
- }, 200);
1172
- if (dom && dom.parentNode && dom.parentNode.nodeType !== 11) {
1173
- dom.parentNode.appendChild(modalDom);
1174
- } else {
1175
- document.body.appendChild(modalDom);
1176
- }
1177
- if (zIndex) {
1178
- modalDom.style.zIndex = zIndex;
1179
- }
1180
- modalDom.tabIndex = 0;
1181
- modalDom.style.display = '';
1182
- this.modalStack.push({
1183
- id: id,
1184
- zIndex: zIndex,
1185
- modalClass: modalClass
1186
- });
1187
- },
1188
- closeModal: function closeModal(id) {
1189
- var modalStack = this.modalStack;
1190
- var modalDom = popup_manager_getModal();
1191
- if (modalStack.length > 0) {
1192
- var topItem = modalStack[modalStack.length - 1];
1193
- if (topItem.id === id) {
1194
- if (topItem.modalClass) {
1195
- var classArr = topItem.modalClass.trim().split(/\s+/);
1196
- classArr.forEach(function (item) {
1197
- return Object(utils_dom["i" /* removeClass */])(modalDom, item);
1198
- });
1199
- }
1200
- modalStack.pop();
1201
- if (modalStack.length > 0) {
1202
- modalDom.style.zIndex = modalStack[modalStack.length - 1].zIndex;
1203
- }
1204
- } else {
1205
- for (var i = modalStack.length - 1; i >= 0; i--) {
1206
- if (modalStack[i].id === id) {
1207
- modalStack.splice(i, 1);
1208
- break;
1209
- }
1210
- }
1211
- }
1212
- }
1213
- if (modalStack.length === 0) {
1214
- if (this.modalFade) {
1215
- Object(utils_dom["a" /* addClass */])(modalDom, 'v-modal-leave');
1216
- }
1217
- setTimeout(function () {
1218
- if (modalStack.length === 0) {
1219
- if (modalDom.parentNode) modalDom.parentNode.removeChild(modalDom);
1220
- modalDom.style.display = 'none';
1221
- PopupManager.modalDom = undefined;
1222
- }
1223
- Object(utils_dom["i" /* removeClass */])(modalDom, 'v-modal-leave');
1224
- }, 200);
1225
- }
1226
- }
1227
- };
1228
- Object.defineProperty(PopupManager, 'zIndex', {
1229
- configurable: true,
1230
- get: function get() {
1231
- if (!hasInitZIndex) {
1232
- popup_manager_zIndex = popup_manager_zIndex || (external_vue_default.a.prototype.$ELEMENT || {}).zIndex || 2000;
1233
- hasInitZIndex = true;
1234
- }
1235
- return popup_manager_zIndex;
1236
- },
1237
- set: function set(value) {
1238
- popup_manager_zIndex = value;
1239
- }
1240
- });
1241
- var popup_manager_getTopPopup = function getTopPopup() {
1242
- if (external_vue_default.a.prototype.$isServer) return;
1243
- if (PopupManager.modalStack.length > 0) {
1244
- var topPopup = PopupManager.modalStack[PopupManager.modalStack.length - 1];
1245
- if (!topPopup) return;
1246
- var instance = PopupManager.getInstance(topPopup.id);
1247
- return instance;
1248
- }
1249
- };
1250
- if (!external_vue_default.a.prototype.$isServer) {
1251
- // handle `esc` key when the popup is shown
1252
- window.addEventListener('keydown', function (event) {
1253
- if (event.keyCode === 27) {
1254
- var topPopup = popup_manager_getTopPopup();
1255
- if (topPopup && topPopup.closeOnPressEscape) {
1256
- topPopup.handleClose ? topPopup.handleClose() : topPopup.handleAction ? topPopup.handleAction('cancel') : topPopup.close();
1257
- }
1258
- }
1259
- });
1260
- }
1261
- /* harmony default export */ var popup_manager = (PopupManager);
1262
- // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1263
- var scrollbar_width = __webpack_require__(23);
1264
-
1265
- // CONCATENATED MODULE: ./src/utils/popup/index.js
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
- var idSeed = 1;
1273
- var scrollBarWidth;
1274
- /* harmony default export */ var popup = __webpack_exports__["b"] = ({
1275
- props: {
1276
- visible: {
1277
- type: Boolean,
1278
- default: false
1279
- },
1280
- openDelay: {},
1281
- closeDelay: {},
1282
- zIndex: {},
1283
- modal: {
1284
- type: Boolean,
1285
- default: false
1286
- },
1287
- modalFade: {
1288
- type: Boolean,
1289
- default: true
1290
- },
1291
- modalClass: {},
1292
- modalAppendToBody: {
1293
- type: Boolean,
1294
- default: false
1295
- },
1296
- lockScroll: {
1297
- type: Boolean,
1298
- default: true
1299
- },
1300
- closeOnPressEscape: {
1301
- type: Boolean,
1302
- default: false
1303
- },
1304
- closeOnClickModal: {
1305
- type: Boolean,
1306
- default: false
1307
- }
1308
- },
1309
- beforeMount: function beforeMount() {
1310
- this._popupId = 'popup-' + idSeed++;
1311
- popup_manager.register(this._popupId, this);
1312
- },
1313
- beforeDestroy: function beforeDestroy() {
1314
- popup_manager.deregister(this._popupId);
1315
- popup_manager.closeModal(this._popupId);
1316
- this.restoreBodyStyle();
1317
- },
1318
- data: function data() {
1319
- return {
1320
- opened: false,
1321
- bodyPaddingRight: null,
1322
- computedBodyPaddingRight: 0,
1323
- withoutHiddenClass: true,
1324
- rendered: false
1325
- };
1326
- },
1327
- watch: {
1328
- visible: function visible(val) {
1329
- var _this = this;
1330
- if (val) {
1331
- if (this._opening) return;
1332
- if (!this.rendered) {
1333
- this.rendered = true;
1334
- external_vue_default.a.nextTick(function () {
1335
- _this.open();
1336
- });
1337
- } else {
1338
- this.open();
1339
- }
1340
- } else {
1341
- this.close();
1342
- }
1343
- }
1344
- },
1345
- methods: {
1346
- open: function open(options) {
1347
- var _this2 = this;
1348
- if (!this.rendered) {
1349
- this.rendered = true;
1350
- }
1351
- var props = Object(merge["a" /* default */])({}, this.$props || this, options);
1352
- if (this._closeTimer) {
1353
- clearTimeout(this._closeTimer);
1354
- this._closeTimer = null;
1355
- }
1356
- clearTimeout(this._openTimer);
1357
- var openDelay = Number(props.openDelay);
1358
- if (openDelay > 0) {
1359
- this._openTimer = setTimeout(function () {
1360
- _this2._openTimer = null;
1361
- _this2.doOpen(props);
1362
- }, openDelay);
1363
- } else {
1364
- this.doOpen(props);
1365
- }
1366
- },
1367
- doOpen: function doOpen(props) {
1368
- if (this.$isServer) return;
1369
- if (this.willOpen && !this.willOpen()) return;
1370
- if (this.opened) return;
1371
- this._opening = true;
1372
- var dom = this.$el;
1373
- var modal = props.modal;
1374
- var zIndex = props.zIndex;
1375
- if (zIndex) {
1376
- popup_manager.zIndex = zIndex;
1377
- }
1378
- if (modal) {
1379
- if (this._closing) {
1380
- popup_manager.closeModal(this._popupId);
1381
- this._closing = false;
1382
- }
1383
- popup_manager.openModal(this._popupId, popup_manager.nextZIndex(), this.modalAppendToBody ? undefined : dom, props.modalClass, props.modalFade);
1384
- if (props.lockScroll) {
1385
- this.withoutHiddenClass = !Object(utils_dom["d" /* hasClass */])(document.body, 'el-popup-parent--hidden');
1386
- if (this.withoutHiddenClass) {
1387
- this.bodyPaddingRight = document.body.style.paddingRight;
1388
- this.computedBodyPaddingRight = parseInt(Object(utils_dom["c" /* getStyle */])(document.body, 'paddingRight'), 10);
1389
- }
1390
- scrollBarWidth = Object(scrollbar_width["a" /* default */])();
1391
- var bodyHasOverflow = document.documentElement.clientHeight < document.body.scrollHeight;
1392
- var bodyOverflowY = Object(utils_dom["c" /* getStyle */])(document.body, 'overflowY');
1393
- if (scrollBarWidth > 0 && (bodyHasOverflow || bodyOverflowY === 'scroll') && this.withoutHiddenClass) {
1394
- document.body.style.paddingRight = this.computedBodyPaddingRight + scrollBarWidth + 'px';
1395
- }
1396
- Object(utils_dom["a" /* addClass */])(document.body, 'el-popup-parent--hidden');
1397
- }
1398
- }
1399
- if (getComputedStyle(dom).position === 'static') {
1400
- dom.style.position = 'absolute';
1401
- }
1402
- dom.style.zIndex = popup_manager.nextZIndex();
1403
- this.opened = true;
1404
- this.onOpen && this.onOpen();
1405
- this.doAfterOpen();
1406
- },
1407
- doAfterOpen: function doAfterOpen() {
1408
- this._opening = false;
1409
- },
1410
- close: function close() {
1411
- var _this3 = this;
1412
- if (this.willClose && !this.willClose()) return;
1413
- if (this._openTimer !== null) {
1414
- clearTimeout(this._openTimer);
1415
- this._openTimer = null;
1416
- }
1417
- clearTimeout(this._closeTimer);
1418
- var closeDelay = Number(this.closeDelay);
1419
- if (closeDelay > 0) {
1420
- this._closeTimer = setTimeout(function () {
1421
- _this3._closeTimer = null;
1422
- _this3.doClose();
1423
- }, closeDelay);
1424
- } else {
1425
- this.doClose();
1426
- }
1427
- },
1428
- doClose: function doClose() {
1429
- this._closing = true;
1430
- this.onClose && this.onClose();
1431
- if (this.lockScroll) {
1432
- setTimeout(this.restoreBodyStyle, 200);
1433
- }
1434
- this.opened = false;
1435
- this.doAfterClose();
1436
- },
1437
- doAfterClose: function doAfterClose() {
1438
- popup_manager.closeModal(this._popupId);
1439
- this._closing = false;
1440
- },
1441
- restoreBodyStyle: function restoreBodyStyle() {
1442
- if (this.modal && this.withoutHiddenClass) {
1443
- document.body.style.paddingRight = this.bodyPaddingRight;
1444
- Object(utils_dom["i" /* removeClass */])(document.body, 'el-popup-parent--hidden');
1445
- }
1446
- this.withoutHiddenClass = true;
1447
- }
1448
- }
1449
- });
1450
-
1451
-
1452
- /***/ }),
1453
- /* 25 */
1454
- /***/ (function(module, exports) {
1455
-
1456
- module.exports = require("core-js/modules/es.array-buffer.constructor.js");
1457
-
1458
- /***/ }),
1459
- /* 26 */
1460
- /***/ (function(module, exports) {
1461
-
1462
- module.exports = require("core-js/modules/es.array-buffer.slice.js");
1463
-
1464
- /***/ }),
1465
- /* 27 */
1466
- /***/ (function(module, exports) {
1467
-
1468
- module.exports = require("core-js/modules/es.typed-array.int8-array.js");
1469
-
1470
- /***/ }),
1471
- /* 28 */
1472
- /***/ (function(module, exports) {
1473
-
1474
- module.exports = require("core-js/modules/es.typed-array.copy-within.js");
1475
-
1476
- /***/ }),
1477
- /* 29 */
1478
- /***/ (function(module, exports) {
1479
-
1480
- module.exports = require("core-js/modules/es.typed-array.every.js");
1481
-
1482
- /***/ }),
1483
- /* 30 */
1484
- /***/ (function(module, exports) {
1485
-
1486
- module.exports = require("core-js/modules/es.typed-array.fill.js");
1487
-
1488
- /***/ }),
1489
- /* 31 */
1490
- /***/ (function(module, exports) {
1491
-
1492
- module.exports = require("core-js/modules/es.typed-array.filter.js");
1493
-
1494
- /***/ }),
1495
- /* 32 */
1496
- /***/ (function(module, exports) {
1497
-
1498
- module.exports = require("core-js/modules/es.typed-array.find.js");
1499
-
1500
- /***/ }),
1501
- /* 33 */
1502
- /***/ (function(module, exports) {
1503
-
1504
- module.exports = require("core-js/modules/es.typed-array.find-index.js");
1505
-
1506
- /***/ }),
1507
- /* 34 */
1508
- /***/ (function(module, exports) {
1509
-
1510
- module.exports = require("core-js/modules/es.typed-array.for-each.js");
1511
-
1512
- /***/ }),
1513
- /* 35 */
1514
- /***/ (function(module, exports) {
1515
-
1516
- module.exports = require("core-js/modules/es.typed-array.includes.js");
1517
-
1518
- /***/ }),
1519
- /* 36 */
1520
- /***/ (function(module, exports) {
1521
-
1522
- module.exports = require("core-js/modules/es.typed-array.index-of.js");
1523
-
1524
- /***/ }),
1525
- /* 37 */
1526
- /***/ (function(module, exports) {
1527
-
1528
- module.exports = require("core-js/modules/es.typed-array.iterator.js");
1529
-
1530
- /***/ }),
1531
- /* 38 */
1532
- /***/ (function(module, exports) {
1533
-
1534
- module.exports = require("core-js/modules/es.typed-array.join.js");
1535
-
1536
- /***/ }),
1537
- /* 39 */
1538
- /***/ (function(module, exports) {
1539
-
1540
- module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
1541
-
1542
- /***/ }),
1543
- /* 40 */
1544
- /***/ (function(module, exports) {
1545
-
1546
- module.exports = require("core-js/modules/es.typed-array.map.js");
1547
-
1548
- /***/ }),
1549
- /* 41 */
1550
- /***/ (function(module, exports) {
1551
-
1552
- module.exports = require("core-js/modules/es.typed-array.reduce.js");
1553
-
1554
- /***/ }),
1555
- /* 42 */
1556
- /***/ (function(module, exports) {
1557
-
1558
- module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
1559
-
1560
- /***/ }),
1561
- /* 43 */
1562
- /***/ (function(module, exports) {
1563
-
1564
- module.exports = require("core-js/modules/es.typed-array.reverse.js");
1565
-
1566
- /***/ }),
1567
- /* 44 */
1568
- /***/ (function(module, exports) {
1569
-
1570
- module.exports = require("core-js/modules/es.typed-array.set.js");
1571
-
1572
- /***/ }),
1573
- /* 45 */
1574
- /***/ (function(module, exports) {
1575
-
1576
- module.exports = require("core-js/modules/es.typed-array.slice.js");
1577
-
1578
- /***/ }),
1579
- /* 46 */
1580
- /***/ (function(module, exports) {
1581
-
1582
- module.exports = require("core-js/modules/es.typed-array.some.js");
1583
-
1584
- /***/ }),
1585
- /* 47 */
1586
- /***/ (function(module, exports) {
1587
-
1588
- module.exports = require("core-js/modules/es.typed-array.sort.js");
1589
-
1590
- /***/ }),
1591
- /* 48 */
1592
- /***/ (function(module, exports) {
1593
-
1594
- module.exports = require("core-js/modules/es.typed-array.subarray.js");
1595
-
1596
- /***/ }),
1597
- /* 49 */
1598
- /***/ (function(module, exports) {
1599
-
1600
- module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
1601
-
1602
- /***/ }),
1603
- /* 50 */
1604
- /***/ (function(module, exports) {
1605
-
1606
- module.exports = require("core-js/modules/es.typed-array.to-string.js");
1607
-
1608
- /***/ }),
1609
- /* 51 */,
1610
- /* 52 */
1611
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1612
-
1613
- "use strict";
1614
-
1615
- // EXPORTS
1616
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
1617
-
1618
- // UNUSED EXPORTS: use, i18n
1619
-
1620
- // EXTERNAL MODULE: external "core-js/modules/es.object.get-prototype-of.js"
1621
- var es_object_get_prototype_of_js_ = __webpack_require__(66);
1622
-
1623
- // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
1624
- /* harmony default export */ var zh_CN = ({
1625
- el: {
1626
- colorpicker: {
1627
- confirm: '确定',
1628
- clear: '清空'
1629
- },
1630
- datepicker: {
1631
- now: '此刻',
1632
- today: '今天',
1633
- cancel: '取消',
1634
- clear: '清空',
1635
- confirm: '确定',
1636
- selectDate: '选择日期',
1637
- selectTime: '选择时间',
1638
- startDate: '开始日期',
1639
- startTime: '开始时间',
1640
- endDate: '结束日期',
1641
- endTime: '结束时间',
1642
- prevYear: '前一年',
1643
- nextYear: '后一年',
1644
- prevMonth: '上个月',
1645
- nextMonth: '下个月',
1646
- year: '年',
1647
- month1: '1 月',
1648
- month2: '2 月',
1649
- month3: '3 月',
1650
- month4: '4 月',
1651
- month5: '5 月',
1652
- month6: '6 月',
1653
- month7: '7 月',
1654
- month8: '8 月',
1655
- month9: '9 月',
1656
- month10: '10 月',
1657
- month11: '11 月',
1658
- month12: '12 月',
1659
- // week: '周次',
1660
- weeks: {
1661
- sun: '日',
1662
- mon: '一',
1663
- tue: '二',
1664
- wed: '三',
1665
- thu: '四',
1666
- fri: '五',
1667
- sat: '六'
1668
- },
1669
- months: {
1670
- jan: '一月',
1671
- feb: '二月',
1672
- mar: '三月',
1673
- apr: '四月',
1674
- may: '五月',
1675
- jun: '六月',
1676
- jul: '七月',
1677
- aug: '八月',
1678
- sep: '九月',
1679
- oct: '十月',
1680
- nov: '十一月',
1681
- dec: '十二月'
1682
- }
1683
- },
1684
- select: {
1685
- loading: '加载中',
1686
- noMatch: '无匹配数据',
1687
- noData: '无数据',
1688
- placeholder: '请选择'
1689
- },
1690
- cascader: {
1691
- noMatch: '无匹配数据',
1692
- loading: '加载中',
1693
- placeholder: '请选择',
1694
- noData: '暂无数据'
1695
- },
1696
- pagination: {
1697
- goto: '前往',
1698
- pagesize: '条/页',
1699
- total: '共 {total} 条',
1700
- pageClassifier: '页'
1701
- },
1702
- messagebox: {
1703
- title: '提示',
1704
- confirm: '确定',
1705
- cancel: '取消',
1706
- error: '输入的数据不合法!'
1707
- },
1708
- upload: {
1709
- deleteTip: '按 delete 键可删除',
1710
- delete: '删除',
1711
- preview: '查看图片',
1712
- continue: '继续上传'
1713
- },
1714
- table: {
1715
- emptyText: '暂无数据',
1716
- confirmFilter: '筛选',
1717
- resetFilter: '重置',
1718
- clearFilter: '全部',
1719
- sumText: '合计'
1720
- },
1721
- tree: {
1722
- emptyText: '暂无数据'
1723
- },
1724
- transfer: {
1725
- noMatch: '无匹配数据',
1726
- noData: '无数据',
1727
- titles: ['列表 1', '列表 2'],
1728
- filterPlaceholder: '请输入搜索内容',
1729
- noCheckedFormat: '共 {total} 项',
1730
- hasCheckedFormat: '已选 {checked}/{total} 项'
1731
- },
1732
- image: {
1733
- error: '加载失败'
1734
- },
1735
- pageHeader: {
1736
- title: '返回'
1737
- },
1738
- popconfirm: {
1739
- confirmButtonText: '确定',
1740
- cancelButtonText: '取消'
1741
- },
1742
- empty: {
1743
- description: '暂无数据'
1744
- }
1745
- }
1746
- });
1747
- // EXTERNAL MODULE: external "vue"
1748
- var external_vue_ = __webpack_require__(0);
1749
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1750
-
1751
- // EXTERNAL MODULE: external "deepmerge"
1752
- var external_deepmerge_ = __webpack_require__(58);
1753
- var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
1754
-
1755
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1756
- var es_regexp_exec_js_ = __webpack_require__(7);
1757
-
1758
- // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
1759
- var es_string_replace_js_ = __webpack_require__(12);
1760
-
1761
- // EXTERNAL MODULE: ./src/utils/util.js
1762
- var util = __webpack_require__(4);
1763
-
1764
- // CONCATENATED MODULE: ./src/locale/format.js
1765
-
1766
-
1767
-
1768
- var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1769
- /**
1770
- * String format template
1771
- * - Inspired:
1772
- * https://github.com/Matt-Esch/string-template/index.js
1773
- */
1774
- /* harmony default export */ var format = (function (Vue) {
1775
- /**
1776
- * template
1777
- *
1778
- * @param {String} string
1779
- * @param {Array} ...args
1780
- * @return {String}
1781
- */
1782
-
1783
- function template(string) {
1784
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1785
- args[_key - 1] = arguments[_key];
1786
- }
1787
- if (args.length === 1 && typeof args[0] === 'object') {
1788
- args = args[0];
1789
- }
1790
- if (!args || !args.hasOwnProperty) {
1791
- args = {};
1792
- }
1793
- return string.replace(RE_NARGS, function (match, prefix, i, index) {
1794
- var result;
1795
- if (string[index - 1] === '{' && string[index + match.length] === '}') {
1796
- return i;
1797
- } else {
1798
- result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
1799
- if (result === null || result === undefined) {
1800
- return '';
1801
- }
1802
- return result;
1803
- }
1804
- });
1805
- }
1806
- return template;
1807
- });
1808
- // CONCATENATED MODULE: ./src/locale/index.js
1809
-
1810
-
1811
-
1812
-
1813
-
1814
- var locale_format = format(external_vue_default.a);
1815
- var lang = zh_CN;
1816
- var merged = false;
1817
- var locale_i18nHandler = function i18nHandler() {
1818
- var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
1819
- if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
1820
- if (!merged) {
1821
- merged = true;
1822
- 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) || {}, {
1823
- clone: true
1824
- }));
1825
- }
1826
- return vuei18n.apply(this, arguments);
1827
- }
1828
- };
1829
- var t = function t(path, options) {
1830
- var value = locale_i18nHandler.apply(this, arguments);
1831
- if (value !== null && value !== undefined) return value;
1832
- var array = path.split('.');
1833
- var current = lang;
1834
- for (var i = 0, j = array.length; i < j; i++) {
1835
- var property = array[i];
1836
- value = current[property];
1837
- if (i === j - 1) return locale_format(value, options);
1838
- if (!value) return '';
1839
- current = value;
1840
- }
1841
- return '';
1842
- };
1843
- var use = function use(l) {
1844
- lang = l || lang;
1845
- };
1846
- var i18n = function i18n(fn) {
1847
- locale_i18nHandler = fn || locale_i18nHandler;
1848
- };
1849
- /* harmony default export */ var locale = ({
1850
- use: use,
1851
- t: t,
1852
- i18n: i18n
1853
- });
1854
-
1855
- /***/ }),
1856
- /* 53 */
1857
- /***/ (function(module, exports) {
1858
-
1859
- module.exports = require("core-js/modules/es.array.includes.js");
1860
-
1861
- /***/ }),
1862
- /* 54 */
1863
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1864
-
1865
- "use strict";
1866
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1867
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
1868
- /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1869
-
1870
-
1871
- /**
1872
- * Show migrating guide in browser console.
1873
- *
1874
- * Usage:
1875
- * import Migrating from 'element-ui/src/mixins/migrating';
1876
- *
1877
- * mixins: [Migrating]
1878
- *
1879
- * add getMigratingConfig method for your component.
1880
- * getMigratingConfig() {
1881
- * return {
1882
- * props: {
1883
- * 'allow-no-selection': 'allow-no-selection is removed.',
1884
- * 'selection-mode': 'selection-mode is removed.'
1885
- * },
1886
- * events: {
1887
- * selectionchange: 'selectionchange is renamed to selection-change.'
1888
- * }
1889
- * };
1890
- * },
1891
- */
1892
- /* harmony default export */ __webpack_exports__["a"] = ({
1893
- mounted: function mounted() {
1894
- if (true) return;
1895
- if (!this.$vnode) return;
1896
- var _this$getMigratingCon = this.getMigratingConfig(),
1897
- _this$getMigratingCon2 = _this$getMigratingCon.props,
1898
- props = _this$getMigratingCon2 === void 0 ? {} : _this$getMigratingCon2,
1899
- _this$getMigratingCon3 = _this$getMigratingCon.events,
1900
- events = _this$getMigratingCon3 === void 0 ? {} : _this$getMigratingCon3;
1901
- var _this$$vnode = this.$vnode,
1902
- data = _this$$vnode.data,
1903
- componentOptions = _this$$vnode.componentOptions;
1904
- var definedProps = data.attrs || {};
1905
- var definedEvents = componentOptions.listeners || {};
1906
- for (var propName in definedProps) {
1907
- propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(propName); // compatible with camel case
1908
- if (props[propName]) {
1909
- console.warn("[Element Migrating][" + this.$options.name + "][Attribute]: " + props[propName]);
1910
- }
1911
- }
1912
- for (var eventName in definedEvents) {
1913
- eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(eventName); // compatible with camel case
1914
- if (events[eventName]) {
1915
- console.warn("[Element Migrating][" + this.$options.name + "][Event]: " + events[eventName]);
1916
- }
1917
- }
1918
- },
1919
- methods: {
1920
- getMigratingConfig: function getMigratingConfig() {
1921
- return {
1922
- props: {},
1923
- events: {}
1924
- };
1925
- }
1926
- }
1927
- });
1928
-
1929
- /***/ }),
1930
- /* 55 */
1931
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1932
-
1933
- "use strict";
1934
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52);
1935
-
1936
- /* harmony default export */ __webpack_exports__["a"] = ({
1937
- methods: {
1938
- t: function t() {
1939
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1940
- args[_key] = arguments[_key];
1941
- }
1942
- return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
1943
- }
1944
- }
1945
- });
1946
-
1947
- /***/ }),
1948
- /* 56 */
1949
- /***/ (function(module, exports) {
1950
-
1951
- module.exports = require("core-js/modules/es.string.trim.js");
1952
-
1953
- /***/ }),
1954
- /* 57 */,
1955
- /* 58 */
1956
- /***/ (function(module, exports) {
1957
-
1958
- module.exports = require("deepmerge");
1959
-
1960
- /***/ }),
1961
- /* 59 */
1962
- /***/ (function(module, exports) {
1963
-
1964
- module.exports = require("core-js/modules/es.string.split.js");
1965
-
1966
- /***/ }),
1967
- /* 60 */,
1968
- /* 61 */
1969
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1970
-
1971
- "use strict";
1972
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDef; });
1973
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isKorean; });
1974
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
1975
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__);
1976
-
1977
- function isDef(val) {
1978
- return val !== undefined && val !== null;
1979
- }
1980
- function isKorean(text) {
1981
- var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
1982
- return reg.test(text);
1983
- }
1984
-
1985
- /***/ }),
1986
- /* 62 */,
1987
- /* 63 */
1988
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1989
-
1990
- "use strict";
1991
- // ESM COMPAT FLAG
1992
- __webpack_require__.r(__webpack_exports__);
1993
-
1994
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1995
- var es_function_name_js_ = __webpack_require__(5);
1996
-
1997
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=6c0da156
1998
- var render = function render() {
1999
- var _vm = this,
2000
- _c = _vm._self._c
2001
- return _c(
2002
- "div",
2003
- {
2004
- class: [
2005
- _vm.type === "textarea" ? "el-textarea" : "el-input",
2006
- _vm.inputSize ? "el-input--" + _vm.inputSize : "",
2007
- {
2008
- "is-disabled": _vm.inputDisabled,
2009
- "is-exceed": _vm.inputExceed,
2010
- "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
2011
- "el-input-group--append": _vm.$slots.append,
2012
- "el-input-group--prepend": _vm.$slots.prepend,
2013
- "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
2014
- "el-input--suffix":
2015
- _vm.$slots.suffix ||
2016
- _vm.suffixIcon ||
2017
- _vm.clearable ||
2018
- _vm.showPassword,
2019
- },
2020
- ],
2021
- on: {
2022
- mouseenter: function ($event) {
2023
- _vm.hovering = true
2024
- },
2025
- mouseleave: function ($event) {
2026
- _vm.hovering = false
2027
- },
2028
- },
2029
- },
2030
- [
2031
- _vm.type !== "textarea"
2032
- ? [
2033
- _vm.$slots.prepend
2034
- ? _c(
2035
- "div",
2036
- { staticClass: "el-input-group__prepend" },
2037
- [_vm._t("prepend")],
2038
- 2
2039
- )
2040
- : _vm._e(),
2041
- _vm.type !== "textarea"
2042
- ? _c(
2043
- "input",
2044
- _vm._b(
2045
- {
2046
- ref: "input",
2047
- staticClass: "el-input__inner",
2048
- attrs: {
2049
- tabindex: _vm.tabindex,
2050
- type: _vm.showPassword
2051
- ? _vm.passwordVisible
2052
- ? "text"
2053
- : "password"
2054
- : _vm.type,
2055
- disabled: _vm.inputDisabled,
2056
- readonly: _vm.readonly,
2057
- autocomplete: _vm.autoComplete || _vm.autocomplete,
2058
- "aria-label": _vm.label,
2059
- },
2060
- on: {
2061
- compositionstart: _vm.handleCompositionStart,
2062
- compositionupdate: _vm.handleCompositionUpdate,
2063
- compositionend: _vm.handleCompositionEnd,
2064
- input: _vm.handleInput,
2065
- focus: _vm.handleFocus,
2066
- blur: _vm.handleBlur,
2067
- change: _vm.handleChange,
2068
- },
2069
- },
2070
- "input",
2071
- _vm.$attrs,
2072
- false
2073
- )
2074
- )
2075
- : _vm._e(),
2076
- _vm.$slots.prefix || _vm.prefixIcon
2077
- ? _c(
2078
- "span",
2079
- { staticClass: "el-input__prefix" },
2080
- [
2081
- _vm._t("prefix"),
2082
- _vm.prefixIcon
2083
- ? _c("i", {
2084
- staticClass: "el-input__icon",
2085
- class: _vm.prefixIcon,
2086
- })
2087
- : _vm._e(),
2088
- ],
2089
- 2
2090
- )
2091
- : _vm._e(),
2092
- _vm.getSuffixVisible()
2093
- ? _c("span", { staticClass: "el-input__suffix" }, [
2094
- _c(
2095
- "span",
2096
- { staticClass: "el-input__suffix-inner" },
2097
- [
2098
- !_vm.showClear ||
2099
- !_vm.showPwdVisible ||
2100
- !_vm.isWordLimitVisible
2101
- ? [
2102
- _vm._t("suffix"),
2103
- _vm.suffixIcon
2104
- ? _c("i", {
2105
- staticClass: "el-input__icon",
2106
- class: _vm.suffixIcon,
2107
- })
2108
- : _vm._e(),
2109
- ]
2110
- : _vm._e(),
2111
- _vm.showClear
2112
- ? _c("i", {
2113
- staticClass:
2114
- "el-input__icon el-icon-circle-close el-input__clear",
2115
- on: {
2116
- mousedown: function ($event) {
2117
- $event.preventDefault()
2118
- },
2119
- click: _vm.clear,
2120
- },
2121
- })
2122
- : _vm._e(),
2123
- _vm.showPwdVisible
2124
- ? _c("i", {
2125
- staticClass:
2126
- "el-input__icon el-icon-view el-input__clear",
2127
- on: { click: _vm.handlePasswordVisible },
2128
- })
2129
- : _vm._e(),
2130
- _vm.isWordLimitVisible
2131
- ? _c("span", { staticClass: "el-input__count" }, [
2132
- _c(
2133
- "span",
2134
- { staticClass: "el-input__count-inner" },
2135
- [
2136
- _vm._v(
2137
- "\n\t\t\t\t\t\t" +
2138
- _vm._s(_vm.textLength) +
2139
- "/" +
2140
- _vm._s(_vm.upperLimit) +
2141
- "\n\t\t\t\t\t"
2142
- ),
2143
- ]
2144
- ),
2145
- ])
2146
- : _vm._e(),
2147
- ],
2148
- 2
2149
- ),
2150
- _vm.validateState
2151
- ? _c("i", {
2152
- staticClass: "el-input__icon",
2153
- class: ["el-input__validateIcon", _vm.validateIcon],
2154
- })
2155
- : _vm._e(),
2156
- ])
2157
- : _vm._e(),
2158
- _vm.$slots.append
2159
- ? _c(
2160
- "div",
2161
- { staticClass: "el-input-group__append" },
2162
- [_vm._t("append")],
2163
- 2
2164
- )
2165
- : _vm._e(),
2166
- ]
2167
- : _c(
2168
- "textarea",
2169
- _vm._b(
2170
- {
2171
- ref: "textarea",
2172
- staticClass: "el-textarea__inner",
2173
- style: _vm.textareaStyle,
2174
- attrs: {
2175
- tabindex: _vm.tabindex,
2176
- disabled: _vm.inputDisabled,
2177
- readonly: _vm.readonly,
2178
- autocomplete: _vm.autoComplete || _vm.autocomplete,
2179
- "aria-label": _vm.label,
2180
- },
2181
- on: {
2182
- compositionstart: _vm.handleCompositionStart,
2183
- compositionupdate: _vm.handleCompositionUpdate,
2184
- compositionend: _vm.handleCompositionEnd,
2185
- input: _vm.handleInput,
2186
- focus: _vm.handleFocus,
2187
- blur: _vm.handleBlur,
2188
- change: _vm.handleChange,
2189
- },
2190
- },
2191
- "textarea",
2192
- _vm.$attrs,
2193
- false
2194
- )
2195
- ),
2196
- _vm.isWordLimitVisible && _vm.type === "textarea"
2197
- ? _c("span", { staticClass: "el-input__count" }, [
2198
- _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
2199
- ])
2200
- : _vm._e(),
2201
- ],
2202
- 2
2203
- )
2204
- }
2205
- var staticRenderFns = []
2206
- render._withStripped = true
2207
-
2208
-
2209
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=6c0da156
2210
-
2211
- // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
2212
- var es_array_slice_js_ = __webpack_require__(13);
2213
-
2214
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
2215
- var es_number_constructor_js_ = __webpack_require__(6);
2216
-
2217
- // EXTERNAL MODULE: ./src/mixins/emitter.js
2218
- var emitter = __webpack_require__(14);
2219
-
2220
- // EXTERNAL MODULE: ./src/mixins/migrating.js
2221
- var migrating = __webpack_require__(54);
2222
-
2223
- // EXTERNAL MODULE: external "core-js/modules/es.array.join.js"
2224
- var es_array_join_js_ = __webpack_require__(64);
2225
-
2226
- // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
2227
- var es_array_map_js_ = __webpack_require__(20);
2228
-
2229
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
2230
- var es_object_to_string_js_ = __webpack_require__(3);
2231
-
2232
- // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
2233
-
2234
-
2235
-
2236
- var hiddenTextarea;
2237
- var HIDDEN_STYLE = "\n\theight:0 !important;\n\tvisibility:hidden !important;\n\toverflow:hidden !important;\n\tposition:absolute !important;\n\tz-index:-1000 !important;\n\ttop:0 !important;\n\tright:0 !important\n";
2238
- var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
2239
- function calculateNodeStyling(targetElement) {
2240
- var style = window.getComputedStyle(targetElement);
2241
- var boxSizing = style.getPropertyValue('box-sizing');
2242
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
2243
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
2244
- var contextStyle = CONTEXT_STYLE.map(function (name) {
2245
- return name + ":" + style.getPropertyValue(name);
2246
- }).join(';');
2247
- return {
2248
- contextStyle: contextStyle,
2249
- paddingSize: paddingSize,
2250
- borderSize: borderSize,
2251
- boxSizing: boxSizing
2252
- };
2253
- }
2254
- function calcTextareaHeight(targetElement, minRows, maxRows) {
2255
- if (minRows === void 0) {
2256
- minRows = 1;
2257
- }
2258
- if (maxRows === void 0) {
2259
- maxRows = null;
2260
- }
2261
- if (!hiddenTextarea) {
2262
- hiddenTextarea = document.createElement('textarea');
2263
- document.body.appendChild(hiddenTextarea);
2264
- }
2265
- var _calculateNodeStyling = calculateNodeStyling(targetElement),
2266
- paddingSize = _calculateNodeStyling.paddingSize,
2267
- borderSize = _calculateNodeStyling.borderSize,
2268
- boxSizing = _calculateNodeStyling.boxSizing,
2269
- contextStyle = _calculateNodeStyling.contextStyle;
2270
- hiddenTextarea.setAttribute('style', contextStyle + ";" + HIDDEN_STYLE);
2271
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
2272
- var height = hiddenTextarea.scrollHeight;
2273
- var result = {};
2274
- if (boxSizing === 'border-box') {
2275
- height = height + borderSize;
2276
- } else if (boxSizing === 'content-box') {
2277
- height = height - paddingSize;
2278
- }
2279
- hiddenTextarea.value = '';
2280
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
2281
- if (minRows !== null) {
2282
- var minHeight = singleRowHeight * minRows;
2283
- if (boxSizing === 'border-box') {
2284
- minHeight = minHeight + paddingSize + borderSize;
2285
- }
2286
- height = Math.max(minHeight, height);
2287
- result.minHeight = minHeight + "px";
2288
- }
2289
- if (maxRows !== null) {
2290
- var maxHeight = singleRowHeight * maxRows;
2291
- if (boxSizing === 'border-box') {
2292
- maxHeight = maxHeight + paddingSize + borderSize;
2293
- }
2294
- height = Math.min(maxHeight, height);
2295
- }
2296
- result.height = height + "px";
2297
- hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
2298
- hiddenTextarea = null;
2299
- return result;
2300
- }
2301
- ;
2302
- // EXTERNAL MODULE: ./src/utils/merge.js
2303
- var merge = __webpack_require__(15);
2304
-
2305
- // EXTERNAL MODULE: ./src/utils/shared.js
2306
- var shared = __webpack_require__(61);
2307
-
2308
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js
2309
-
2310
-
2311
-
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2312
114
 
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
2313
121
 
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
2314
126
 
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
2315
131
 
2316
- /* harmony default export */ var inputvue_type_script_lang_js = ({
2317
- name: 'ElInput',
2318
- componentName: 'ElInput',
2319
- mixins: [emitter["a" /* default */], migrating["a" /* default */]],
2320
- inheritAttrs: false,
2321
- inject: {
2322
- elForm: {
2323
- default: ''
2324
- },
2325
- elFormItem: {
2326
- default: ''
2327
- }
2328
- },
2329
- data: function data() {
2330
- return {
2331
- textareaCalcStyle: {},
2332
- hovering: false,
2333
- focused: false,
2334
- isComposing: false,
2335
- passwordVisible: false
2336
- };
2337
- },
2338
- props: {
2339
- value: [String, Number],
2340
- size: String,
2341
- resize: String,
2342
- form: String,
2343
- disabled: Boolean,
2344
- readonly: Boolean,
2345
- type: {
2346
- type: String,
2347
- default: 'text'
2348
- },
2349
- autosize: {
2350
- type: [Boolean, Object],
2351
- default: false
2352
- },
2353
- autocomplete: {
2354
- type: String,
2355
- default: 'off'
2356
- },
2357
- /** @Deprecated in next major version */
2358
- autoComplete: {
2359
- type: String,
2360
- validator: function validator(val) {
2361
- false && false;
2362
- return true;
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__
2363
144
  }
2364
- },
2365
- validateEvent: {
2366
- type: Boolean,
2367
- default: true
2368
- },
2369
- suffixIcon: String,
2370
- prefixIcon: String,
2371
- label: String,
2372
- clearable: {
2373
- type: Boolean,
2374
- default: false
2375
- },
2376
- showPassword: {
2377
- type: Boolean,
2378
- default: false
2379
- },
2380
- showWordLimit: {
2381
- type: Boolean,
2382
- default: false
2383
- },
2384
- tabindex: String
2385
- },
2386
- computed: {
2387
- _elFormItemSize: function _elFormItemSize() {
2388
- return (this.elFormItem || {}).elFormItemSize;
2389
- },
2390
- validateState: function validateState() {
2391
- return this.elFormItem ? this.elFormItem.validateState : '';
2392
- },
2393
- needStatusIcon: function needStatusIcon() {
2394
- return this.elForm ? this.elForm.statusIcon : false;
2395
- },
2396
- validateIcon: function validateIcon() {
2397
- return {
2398
- validating: 'el-icon-loading',
2399
- success: 'el-icon-circle-check',
2400
- error: 'el-icon-circle-close'
2401
- }[this.validateState];
2402
- },
2403
- textareaStyle: function textareaStyle() {
2404
- return Object(merge["a" /* default */])({}, this.textareaCalcStyle, {
2405
- resize: this.resize
2406
- });
2407
- },
2408
- inputSize: function inputSize() {
2409
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2410
- },
2411
- inputDisabled: function inputDisabled() {
2412
- return this.disabled || (this.elForm || {}).disabled;
2413
- },
2414
- nativeInputValue: function nativeInputValue() {
2415
- return this.value === null || this.value === undefined ? '' : String(this.value);
2416
- },
2417
- showClear: function showClear() {
2418
- return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
2419
- },
2420
- showPwdVisible: function showPwdVisible() {
2421
- return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
2422
- },
2423
- isWordLimitVisible: function isWordLimitVisible() {
2424
- return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
2425
- },
2426
- upperLimit: function upperLimit() {
2427
- return this.$attrs.maxlength;
2428
- },
2429
- textLength: function textLength() {
2430
- if (typeof this.value === 'number') {
2431
- return String(this.value).length;
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
2432
148
  }
2433
- return (this.value || '').length;
2434
- },
2435
- inputExceed: function inputExceed() {
2436
- // show exceed style if length of initial value greater then maxlength
2437
- return this.isWordLimitVisible && this.textLength > this.upperLimit;
2438
- }
2439
- },
2440
- watch: {
2441
- value: function value(val) {
2442
- this.$nextTick(this.resizeTextarea);
2443
- if (this.validateEvent) {
2444
- this.dispatch('ElFormItem', 'el.form.change', [val]);
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
2445
152
  }
2446
- },
2447
- // native input value is set explicitly
2448
- // do not use v-model / :value in template
2449
- // see: https://github.com/ElemeFE/element/issues/14521
2450
- nativeInputValue: function nativeInputValue() {
2451
- this.setNativeInputValue();
2452
- },
2453
- // when change between <input> and <textarea>,
2454
- // update DOM dependent value and styles
2455
- // https://github.com/ElemeFE/element/issues/14857
2456
- type: function type() {
2457
- var _this = this;
2458
- this.$nextTick(function () {
2459
- _this.setNativeInputValue();
2460
- _this.resizeTextarea();
2461
- _this.updateIconOffset();
2462
- });
2463
153
  }
2464
- },
2465
- methods: {
2466
- focus: function focus() {
2467
- this.getInput().focus();
2468
- },
2469
- blur: function blur() {
2470
- this.getInput().blur();
2471
- },
2472
- getMigratingConfig: function getMigratingConfig() {
2473
- return {
2474
- props: {
2475
- 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
2476
- 'on-icon-click': 'on-icon-click is removed.'
2477
- },
2478
- events: {
2479
- 'click': 'click is removed.'
2480
- }
2481
- };
2482
- },
2483
- handleBlur: function handleBlur(event) {
2484
- this.focused = false;
2485
- this.$emit('blur', event);
2486
- if (this.validateEvent) {
2487
- this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
2488
- }
2489
- },
2490
- select: function select() {
2491
- this.getInput().select();
2492
- },
2493
- resizeTextarea: function resizeTextarea() {
2494
- if (this.$isServer) return;
2495
- var autosize = this.autosize,
2496
- type = this.type;
2497
- if (type !== 'textarea') return;
2498
- if (!autosize) {
2499
- this.textareaCalcStyle = {
2500
- minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
2501
- };
2502
- return;
2503
- }
2504
- var minRows = autosize.minRows;
2505
- var maxRows = autosize.maxRows;
2506
- this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
2507
- },
2508
- setNativeInputValue: function setNativeInputValue() {
2509
- var input = this.getInput();
2510
- if (!input) return;
2511
- if (input.value === this.nativeInputValue) return;
2512
- input.value = this.nativeInputValue;
2513
- },
2514
- handleFocus: function handleFocus(event) {
2515
- this.focused = true;
2516
- this.$emit('focus', event);
2517
- },
2518
- handleCompositionStart: function handleCompositionStart(event) {
2519
- this.$emit('compositionstart', event);
2520
- this.isComposing = true;
2521
- },
2522
- handleCompositionUpdate: function handleCompositionUpdate(event) {
2523
- this.$emit('compositionupdate', event);
2524
- var text = event.target.value;
2525
- var lastCharacter = text[text.length - 1] || '';
2526
- this.isComposing = !Object(shared["b" /* isKorean */])(lastCharacter);
2527
- },
2528
- handleCompositionEnd: function handleCompositionEnd(event) {
2529
- this.$emit('compositionend', event);
2530
- if (this.isComposing) {
2531
- this.isComposing = false;
2532
- this.handleInput(event);
2533
- }
2534
- },
2535
- handleInput: function handleInput(event) {
2536
- // should not emit input during composition
2537
- // see: https://github.com/ElemeFE/element/issues/10516
2538
- if (this.isComposing) return;
2539
-
2540
- // hack for https://github.com/ElemeFE/element/issues/8548
2541
- // should remove the following line when we don't support IE
2542
- if (event.target.value === this.nativeInputValue) return;
2543
- this.$emit('input', event.target.value);
2544
-
2545
- // ensure native input value is controlled
2546
- // see: https://github.com/ElemeFE/element/issues/12850
2547
- this.$nextTick(this.setNativeInputValue);
2548
- },
2549
- handleChange: function handleChange(event) {
2550
- this.$emit('change', event.target.value);
2551
- },
2552
- calcIconOffset: function calcIconOffset(place) {
2553
- var elList = [].slice.call(this.$el.querySelectorAll(".el-input__" + place) || []);
2554
- if (!elList.length) return;
2555
- var el = null;
2556
- for (var i = 0; i < elList.length; i++) {
2557
- if (elList[i].parentNode === this.$el) {
2558
- el = elList[i];
2559
- break;
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
+ )
2560
164
  }
165
+ : injectStyles
166
+ }
167
+
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)
2561
178
  }
2562
- if (!el) return;
2563
- var pendantMap = {
2564
- suffix: 'append',
2565
- prefix: 'prepend'
2566
- };
2567
- var pendant = pendantMap[place];
2568
- if (this.$slots[pendant]) {
2569
- el.style.transform = "translateX(" + (place === 'suffix' ? '-' : '') + this.$el.querySelector(".el-input-group__" + pendant).offsetWidth + "px)";
2570
- } else {
2571
- el.removeAttribute('style');
2572
- }
2573
- },
2574
- updateIconOffset: function updateIconOffset() {
2575
- this.calcIconOffset('prefix');
2576
- this.calcIconOffset('suffix');
2577
- },
2578
- clear: function clear() {
2579
- this.$emit('input', '');
2580
- this.$emit('change', '');
2581
- this.$emit('clear');
2582
- },
2583
- handlePasswordVisible: function handlePasswordVisible() {
2584
- var _this2 = this;
2585
- this.passwordVisible = !this.passwordVisible;
2586
- this.$nextTick(function () {
2587
- _this2.focus();
2588
- });
2589
- },
2590
- getInput: function getInput() {
2591
- return this.$refs.input || this.$refs.textarea;
2592
- },
2593
- getSuffixVisible: function getSuffixVisible() {
2594
- return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2595
183
  }
2596
- },
2597
- created: function created() {
2598
- this.$on('inputSelect', this.select);
2599
- },
2600
- mounted: function mounted() {
2601
- this.setNativeInputValue();
2602
- this.resizeTextarea();
2603
- this.updateIconOffset();
2604
- },
2605
- updated: function updated() {
2606
- this.$nextTick(this.updateIconOffset);
2607
184
  }
2608
- });
2609
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
2610
- /* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
2611
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2612
- var componentNormalizer = __webpack_require__(2);
2613
-
2614
- // CONCATENATED MODULE: ./packages/input/src/input.vue
2615
-
2616
-
2617
-
2618
-
2619
-
2620
- /* normalize component */
2621
-
2622
- var component = Object(componentNormalizer["a" /* default */])(
2623
- src_inputvue_type_script_lang_js,
2624
- render,
2625
- staticRenderFns,
2626
- false,
2627
- null,
2628
- null,
2629
- null
2630
-
2631
- )
2632
-
2633
- /* harmony default export */ var input = (component.exports);
2634
- // CONCATENATED MODULE: ./packages/input/index.js
2635
-
2636
185
 
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
2637
191
 
2638
- /* istanbul ignore next */
2639
- input.install = function (Vue) {
2640
- Vue.component(input.name, input);
2641
- };
2642
- /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
2643
192
 
2644
193
  /***/ }),
2645
- /* 64 */
2646
- /***/ (function(module, exports) {
2647
194
 
2648
- module.exports = require("core-js/modules/es.array.join.js");
2649
-
2650
- /***/ }),
2651
- /* 65 */
195
+ /***/ 10:
2652
196
  /***/ (function(module, exports) {
2653
197
 
2654
- module.exports = require("core-js/modules/web.dom-collections.iterator.js");
198
+ module.exports = require("element-ui/lib/input");
2655
199
 
2656
200
  /***/ }),
2657
- /* 66 */
201
+
202
+ /***/ 13:
2658
203
  /***/ (function(module, exports) {
2659
204
 
2660
- module.exports = require("core-js/modules/es.object.get-prototype-of.js");
205
+ module.exports = require("element-ui/lib/utils/popup");
2661
206
 
2662
207
  /***/ }),
2663
- /* 67 */,
2664
- /* 68 */,
2665
- /* 69 */,
2666
- /* 70 */,
2667
- /* 71 */,
2668
- /* 72 */,
2669
- /* 73 */,
2670
- /* 74 */,
2671
- /* 75 */,
2672
- /* 76 */,
2673
- /* 77 */,
2674
- /* 78 */,
2675
- /* 79 */,
2676
- /* 80 */
2677
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2678
-
2679
- "use strict";
2680
- // ESM COMPAT FLAG
2681
- __webpack_require__.r(__webpack_exports__);
2682
-
2683
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
2684
- var es_function_name_js_ = __webpack_require__(5);
2685
-
2686
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=595a2866
2687
- var render = function render() {
2688
- var _vm = this,
2689
- _c = _vm._self._c
2690
- return _c(
2691
- "button",
2692
- {
2693
- staticClass: "el-button",
2694
- class: [
2695
- _vm.type ? "el-button--" + _vm.type : "",
2696
- _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
2697
- {
2698
- "is-disabled": _vm.buttonDisabled,
2699
- "is-loading": _vm.loading,
2700
- "is-plain": _vm.plain,
2701
- "is-round": _vm.round,
2702
- "is-circle": _vm.circle,
2703
- },
2704
- ],
2705
- attrs: {
2706
- disabled: _vm.buttonDisabled || _vm.loading,
2707
- autofocus: _vm.autofocus,
2708
- type: _vm.nativeType,
2709
- },
2710
- on: { click: _vm.handleClick },
2711
- },
2712
- [
2713
- _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
2714
- _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
2715
- _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
2716
- ]
2717
- )
2718
- }
2719
- var staticRenderFns = []
2720
- render._withStripped = true
2721
208
 
209
+ /***/ 15:
210
+ /***/ (function(module, exports) {
2722
211
 
2723
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=595a2866
2724
-
2725
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js
2726
- /* harmony default export */ var buttonvue_type_script_lang_js = ({
2727
- name: 'ElButton',
2728
- inject: {
2729
- elForm: {
2730
- default: ''
2731
- },
2732
- elFormItem: {
2733
- default: ''
2734
- }
2735
- },
2736
- props: {
2737
- type: {
2738
- type: String,
2739
- default: 'default'
2740
- },
2741
- size: String,
2742
- icon: {
2743
- type: String,
2744
- default: ''
2745
- },
2746
- nativeType: {
2747
- type: String,
2748
- default: 'button'
2749
- },
2750
- loading: Boolean,
2751
- disabled: Boolean,
2752
- plain: Boolean,
2753
- autofocus: Boolean,
2754
- round: Boolean,
2755
- circle: Boolean
2756
- },
2757
- computed: {
2758
- _elFormItemSize: function _elFormItemSize() {
2759
- return (this.elFormItem || {}).elFormItemSize;
2760
- },
2761
- buttonSize: function buttonSize() {
2762
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2763
- },
2764
- buttonDisabled: function buttonDisabled() {
2765
- return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
2766
- }
2767
- },
2768
- methods: {
2769
- handleClick: function handleClick(evt) {
2770
- this.$emit('click', evt);
2771
- }
2772
- }
2773
- });
2774
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
2775
- /* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
2776
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2777
- var componentNormalizer = __webpack_require__(2);
2778
-
2779
- // CONCATENATED MODULE: ./packages/button/src/button.vue
2780
-
212
+ module.exports = require("element-ui/lib/button");
2781
213
 
214
+ /***/ }),
2782
215
 
216
+ /***/ 2:
217
+ /***/ (function(module, exports) {
2783
218
 
219
+ module.exports = require("element-ui/lib/utils/dom");
2784
220
 
2785
- /* normalize component */
221
+ /***/ }),
2786
222
 
2787
- var component = Object(componentNormalizer["a" /* default */])(
2788
- src_buttonvue_type_script_lang_js,
2789
- render,
2790
- staticRenderFns,
2791
- false,
2792
- null,
2793
- null,
2794
- null
2795
-
2796
- )
223
+ /***/ 20:
224
+ /***/ (function(module, exports) {
2797
225
 
2798
- /* harmony default export */ var src_button = (component.exports);
2799
- // CONCATENATED MODULE: ./packages/button/index.js
226
+ module.exports = require("element-ui/lib/locale");
2800
227
 
228
+ /***/ }),
2801
229
 
230
+ /***/ 23:
231
+ /***/ (function(module, exports) {
2802
232
 
2803
- /* istanbul ignore next */
2804
- src_button.install = function (Vue) {
2805
- Vue.component(src_button.name, src_button);
2806
- };
2807
- /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
233
+ module.exports = require("element-ui/lib/utils/vdom");
2808
234
 
2809
235
  /***/ }),
2810
- /* 81 */,
2811
- /* 82 */,
2812
- /* 83 */,
2813
- /* 84 */,
2814
- /* 85 */
2815
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2816
-
2817
- "use strict";
2818
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
2819
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);
2820
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(19);
2821
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_1__);
2822
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3);
2823
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
2824
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7);
2825
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
2826
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65);
2827
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
2828
-
2829
-
2830
-
2831
-
2832
-
2833
- var aria = aria || {};
2834
- aria.Utils = aria.Utils || {};
2835
-
2836
- /**
2837
- * @desc Set focus on descendant nodes until the first focusable element is
2838
- * found.
2839
- * @param element
2840
- * DOM node for which to find the first focusable descendant.
2841
- * @returns
2842
- * true if a focusable element is found and focus is set.
2843
- */
2844
- aria.Utils.focusFirstDescendant = function (element) {
2845
- for (var i = 0; i < element.childNodes.length; i++) {
2846
- var child = element.childNodes[i];
2847
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
2848
- return true;
2849
- }
2850
- }
2851
- return false;
2852
- };
2853
-
2854
- /**
2855
- * @desc Find the last descendant node that is focusable.
2856
- * @param element
2857
- * DOM node for which to find the last focusable descendant.
2858
- * @returns
2859
- * true if a focusable element is found and focus is set.
2860
- */
2861
-
2862
- aria.Utils.focusLastDescendant = function (element) {
2863
- for (var i = element.childNodes.length - 1; i >= 0; i--) {
2864
- var child = element.childNodes[i];
2865
- if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
2866
- return true;
2867
- }
2868
- }
2869
- return false;
2870
- };
2871
236
 
2872
- /**
2873
- * @desc Set Attempt to set focus on the current node.
2874
- * @param element
2875
- * The node to attempt to focus on.
2876
- * @returns
2877
- * true if element is focused.
2878
- */
2879
- aria.Utils.attemptFocus = function (element) {
2880
- if (!aria.Utils.isFocusable(element)) {
2881
- return false;
2882
- }
2883
- aria.Utils.IgnoreUtilFocusChanges = true;
2884
- try {
2885
- element.focus();
2886
- } catch (e) {}
2887
- aria.Utils.IgnoreUtilFocusChanges = false;
2888
- return document.activeElement === element;
2889
- };
2890
- aria.Utils.isFocusable = function (element) {
2891
- if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
2892
- return true;
2893
- }
2894
- if (element.disabled) {
2895
- return false;
2896
- }
2897
- switch (element.nodeName) {
2898
- case 'A':
2899
- return !!element.href && element.rel !== 'ignore';
2900
- case 'INPUT':
2901
- return element.type !== 'hidden' && element.type !== 'file';
2902
- case 'BUTTON':
2903
- case 'SELECT':
2904
- case 'TEXTAREA':
2905
- return true;
2906
- default:
2907
- return false;
2908
- }
2909
- };
237
+ /***/ 49:
238
+ /***/ (function(module, exports) {
2910
239
 
2911
- /**
2912
- * 触发一个事件
2913
- * mouseenter, mouseleave, mouseover, keyup, change, click 等
2914
- * @param {Element} elm
2915
- * @param {String} name
2916
- * @param {*} opts
2917
- */
2918
- aria.Utils.triggerEvent = function (elm, name) {
2919
- var eventName;
2920
- if (/^mouse|click/.test(name)) {
2921
- eventName = 'MouseEvents';
2922
- } else if (/^key/.test(name)) {
2923
- eventName = 'KeyboardEvent';
2924
- } else {
2925
- eventName = 'HTMLEvents';
2926
- }
2927
- var evt = document.createEvent(eventName);
2928
- for (var _len = arguments.length, opts = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2929
- opts[_key - 2] = arguments[_key];
2930
- }
2931
- evt.initEvent.apply(evt, [name].concat(opts));
2932
- elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
2933
- return elm;
2934
- };
2935
- aria.Utils.keys = {
2936
- tab: 9,
2937
- enter: 13,
2938
- space: 32,
2939
- left: 37,
2940
- up: 38,
2941
- right: 39,
2942
- down: 40,
2943
- esc: 27
2944
- };
2945
- /* harmony default export */ __webpack_exports__["a"] = (aria.Utils);
240
+ module.exports = require("element-ui/lib/utils/aria-dialog");
2946
241
 
2947
242
  /***/ }),
2948
- /* 86 */,
2949
- /* 87 */,
2950
- /* 88 */,
2951
- /* 89 */,
2952
- /* 90 */,
2953
- /* 91 */,
2954
- /* 92 */,
2955
- /* 93 */,
2956
- /* 94 */
2957
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2958
243
 
2959
- "use strict";
2960
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isVNode; });
2961
- /* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4);
244
+ /***/ 6:
245
+ /***/ (function(module, exports) {
2962
246
 
2963
- function isVNode(node) {
2964
- return node !== null && typeof node === 'object' && Object(_util__WEBPACK_IMPORTED_MODULE_0__[/* hasOwn */ "j"])(node, 'componentOptions');
2965
- }
2966
- ;
247
+ module.exports = require("element-ui/lib/mixins/locale");
2967
248
 
2968
249
  /***/ }),
2969
- /* 95 */,
2970
- /* 96 */,
2971
- /* 97 */,
2972
- /* 98 */,
2973
- /* 99 */,
2974
- /* 100 */,
2975
- /* 101 */,
2976
- /* 102 */,
2977
- /* 103 */,
2978
- /* 104 */,
2979
- /* 105 */,
2980
- /* 106 */,
2981
- /* 107 */
250
+
251
+ /***/ 7:
2982
252
  /***/ (function(module, exports) {
2983
253
 
2984
- module.exports = require("core-js/modules/es.promise.js");
254
+ module.exports = require("vue");
2985
255
 
2986
256
  /***/ }),
2987
- /* 108 */,
2988
- /* 109 */,
2989
- /* 110 */,
2990
- /* 111 */,
2991
- /* 112 */,
2992
- /* 113 */,
2993
- /* 114 */,
2994
- /* 115 */,
2995
- /* 116 */,
2996
- /* 117 */,
2997
- /* 118 */,
2998
- /* 119 */,
2999
- /* 120 */,
3000
- /* 121 */,
3001
- /* 122 */,
3002
- /* 123 */,
3003
- /* 124 */,
3004
- /* 125 */,
3005
- /* 126 */,
3006
- /* 127 */,
3007
- /* 128 */,
3008
- /* 129 */,
3009
- /* 130 */,
3010
- /* 131 */,
3011
- /* 132 */,
3012
- /* 133 */,
3013
- /* 134 */,
3014
- /* 135 */,
3015
- /* 136 */,
3016
- /* 137 */,
3017
- /* 138 */,
3018
- /* 139 */,
3019
- /* 140 */,
3020
- /* 141 */,
3021
- /* 142 */,
3022
- /* 143 */,
3023
- /* 144 */,
3024
- /* 145 */,
3025
- /* 146 */,
3026
- /* 147 */,
3027
- /* 148 */,
3028
- /* 149 */,
3029
- /* 150 */
257
+
258
+ /***/ 79:
3030
259
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3031
260
 
3032
261
  "use strict";
3033
262
  // ESM COMPAT FLAG
3034
263
  __webpack_require__.r(__webpack_exports__);
3035
264
 
3036
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
3037
- var es_object_to_string_js_ = __webpack_require__(3);
3038
-
3039
- // EXTERNAL MODULE: external "core-js/modules/es.promise.js"
3040
- var es_promise_js_ = __webpack_require__(107);
3041
-
3042
265
  // EXTERNAL MODULE: external "vue"
3043
- var external_vue_ = __webpack_require__(0);
266
+ var external_vue_ = __webpack_require__(7);
3044
267
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
3045
268
 
3046
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=template&id=4e9381d2
3047
- var render = function render() {
3048
- var _vm = this,
3049
- _c = _vm._self._c
269
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=template&id=cb66f6ce
270
+ var render = function () {
271
+ var _vm = this
272
+ var _h = _vm.$createElement
273
+ var _c = _vm._self._c || _h
3050
274
  return _c("transition", { attrs: { name: "msgbox-fade" } }, [
3051
275
  _c(
3052
276
  "div",
@@ -3068,8 +292,10 @@ var render = function render() {
3068
292
  },
3069
293
  on: {
3070
294
  click: function ($event) {
3071
- if ($event.target !== $event.currentTarget) return null
3072
- return _vm.handleWrapperClick.apply(null, arguments)
295
+ if ($event.target !== $event.currentTarget) {
296
+ return null
297
+ }
298
+ return _vm.handleWrapperClick($event)
3073
299
  },
3074
300
  },
3075
301
  },
@@ -3115,8 +341,9 @@ var render = function render() {
3115
341
  $event.key,
3116
342
  "Enter"
3117
343
  )
3118
- )
344
+ ) {
3119
345
  return null
346
+ }
3120
347
  return _vm.handleAction(
3121
348
  _vm.distinguishCancelAndClose
3122
349
  ? "close"
@@ -3144,15 +371,13 @@ var render = function render() {
3144
371
  "div",
3145
372
  { staticClass: "el-message-box__message" },
3146
373
  [
3147
- _vm._t("default", function () {
3148
- return [
3149
- !_vm.dangerouslyUseHTMLString
3150
- ? _c("p", [_vm._v(_vm._s(_vm.message))])
3151
- : _c("p", {
3152
- domProps: { innerHTML: _vm._s(_vm.message) },
3153
- }),
3154
- ]
3155
- }),
374
+ _vm._t("default", [
375
+ !_vm.dangerouslyUseHTMLString
376
+ ? _c("p", [_vm._v(_vm._s(_vm.message))])
377
+ : _c("p", {
378
+ domProps: { innerHTML: _vm._s(_vm.message) },
379
+ }),
380
+ ]),
3156
381
  ],
3157
382
  2
3158
383
  )
@@ -3189,9 +414,10 @@ var render = function render() {
3189
414
  $event.key,
3190
415
  "Enter"
3191
416
  )
3192
- )
417
+ ) {
3193
418
  return null
3194
- return _vm.handleInputEnter.apply(null, arguments)
419
+ }
420
+ return _vm.handleInputEnter($event)
3195
421
  },
3196
422
  },
3197
423
  model: {
@@ -3243,8 +469,9 @@ var render = function render() {
3243
469
  $event.key,
3244
470
  "Enter"
3245
471
  )
3246
- )
472
+ ) {
3247
473
  return null
474
+ }
3248
475
  return _vm.handleAction("cancel")
3249
476
  },
3250
477
  },
@@ -3295,8 +522,9 @@ var render = function render() {
3295
522
  $event.key,
3296
523
  "Enter"
3297
524
  )
3298
- )
525
+ ) {
3299
526
  return null
527
+ }
3300
528
  return _vm.handleAction("confirm")
3301
529
  },
3302
530
  },
@@ -3330,360 +558,375 @@ var staticRenderFns = []
3330
558
  render._withStripped = true
3331
559
 
3332
560
 
3333
- // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=template&id=4e9381d2
3334
-
3335
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
3336
- var es_regexp_exec_js_ = __webpack_require__(7);
3337
-
3338
- // EXTERNAL MODULE: ./src/utils/popup/index.js + 1 modules
3339
- var popup = __webpack_require__(24);
561
+ // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=template&id=cb66f6ce
3340
562
 
3341
- // EXTERNAL MODULE: ./src/mixins/locale.js
3342
- var locale = __webpack_require__(55);
563
+ // EXTERNAL MODULE: external "element-ui/lib/utils/popup"
564
+ var popup_ = __webpack_require__(13);
565
+ var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
3343
566
 
3344
- // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
3345
- var input = __webpack_require__(63);
567
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
568
+ var locale_ = __webpack_require__(6);
569
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
3346
570
 
3347
- // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
3348
- var packages_button = __webpack_require__(80);
571
+ // EXTERNAL MODULE: external "element-ui/lib/input"
572
+ var input_ = __webpack_require__(10);
573
+ var input_default = /*#__PURE__*/__webpack_require__.n(input_);
3349
574
 
3350
- // EXTERNAL MODULE: ./src/utils/dom.js
3351
- var dom = __webpack_require__(1);
575
+ // EXTERNAL MODULE: external "element-ui/lib/button"
576
+ var button_ = __webpack_require__(15);
577
+ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
3352
578
 
3353
- // EXTERNAL MODULE: ./src/locale/index.js + 2 modules
3354
- var src_locale = __webpack_require__(52);
579
+ // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
580
+ var dom_ = __webpack_require__(2);
3355
581
 
3356
- // EXTERNAL MODULE: ./src/utils/aria-utils.js
3357
- var aria_utils = __webpack_require__(85);
582
+ // EXTERNAL MODULE: external "element-ui/lib/locale"
583
+ var lib_locale_ = __webpack_require__(20);
3358
584
 
3359
- // CONCATENATED MODULE: ./src/utils/aria-dialog.js
585
+ // EXTERNAL MODULE: external "element-ui/lib/utils/aria-dialog"
586
+ var aria_dialog_ = __webpack_require__(49);
587
+ var aria_dialog_default = /*#__PURE__*/__webpack_require__.n(aria_dialog_);
3360
588
 
3361
-
3362
- /**
3363
- * @constructor
3364
- * @desc Dialog object providing modal focus management.
3365
- *
3366
- * Assumptions: The element serving as the dialog container is present in the
3367
- * DOM and hidden. The dialog container has role='dialog'.
3368
- *
3369
- * @param dialogId
3370
- * The ID of the element serving as the dialog container.
3371
- * @param focusAfterClosed
3372
- * Either the DOM node or the ID of the DOM node to focus when the
3373
- * dialog closes.
3374
- * @param focusFirst
3375
- * Optional parameter containing either the DOM node or the ID of the
3376
- * DOM node to focus when the dialog opens. If not specified, the
3377
- * first focusable element in the dialog will receive focus.
3378
- */
3379
- var aria = aria || {};
3380
- var tabEvent;
3381
- aria.Dialog = function (dialog, focusAfterClosed, focusFirst) {
3382
- var _this = this;
3383
- this.dialogNode = dialog;
3384
- if (this.dialogNode === null || this.dialogNode.getAttribute('role') !== 'dialog') {
3385
- throw new Error('Dialog() requires a DOM element with ARIA role of dialog.');
3386
- }
3387
- if (typeof focusAfterClosed === 'string') {
3388
- this.focusAfterClosed = document.getElementById(focusAfterClosed);
3389
- } else if (typeof focusAfterClosed === 'object') {
3390
- this.focusAfterClosed = focusAfterClosed;
3391
- } else {
3392
- this.focusAfterClosed = null;
3393
- }
3394
- if (typeof focusFirst === 'string') {
3395
- this.focusFirst = document.getElementById(focusFirst);
3396
- } else if (typeof focusFirst === 'object') {
3397
- this.focusFirst = focusFirst;
3398
- } else {
3399
- this.focusFirst = null;
3400
- }
3401
- if (this.focusFirst) {
3402
- this.focusFirst.focus();
3403
- } else {
3404
- aria_utils["a" /* default */].focusFirstDescendant(this.dialogNode);
3405
- }
3406
- this.lastFocus = document.activeElement;
3407
- tabEvent = function tabEvent(e) {
3408
- _this.trapFocus(e);
3409
- };
3410
- this.addListeners();
3411
- };
3412
- aria.Dialog.prototype.addListeners = function () {
3413
- document.addEventListener('focus', tabEvent, true);
3414
- };
3415
- aria.Dialog.prototype.removeListeners = function () {
3416
- document.removeEventListener('focus', tabEvent, true);
3417
- };
3418
- aria.Dialog.prototype.closeDialog = function () {
3419
- var _this2 = this;
3420
- this.removeListeners();
3421
- if (this.focusAfterClosed) {
3422
- setTimeout(function () {
3423
- _this2.focusAfterClosed.focus();
3424
- });
3425
- }
3426
- };
3427
- aria.Dialog.prototype.trapFocus = function (event) {
3428
- if (aria_utils["a" /* default */].IgnoreUtilFocusChanges) {
3429
- return;
3430
- }
3431
- if (this.dialogNode.contains(event.target)) {
3432
- this.lastFocus = event.target;
3433
- } else {
3434
- aria_utils["a" /* default */].focusFirstDescendant(this.dialogNode);
3435
- if (this.lastFocus === document.activeElement) {
3436
- aria_utils["a" /* default */].focusLastDescendant(this.dialogNode);
3437
- }
3438
- this.lastFocus = document.activeElement;
3439
- }
3440
- };
3441
- /* harmony default export */ var aria_dialog = (aria.Dialog);
3442
589
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message-box/src/main.vue?vue&type=script&lang=js
3443
-
3444
-
3445
-
3446
-
3447
-
3448
-
3449
-
3450
-
3451
- var messageBox;
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
604
+ //
605
+ //
606
+ //
607
+ //
608
+ //
609
+ //
610
+ //
611
+ //
612
+ //
613
+ //
614
+ //
615
+ //
616
+ //
617
+ //
618
+ //
619
+ //
620
+ //
621
+ //
622
+ //
623
+ //
624
+ //
625
+ //
626
+ //
627
+ //
628
+ //
629
+ //
630
+ //
631
+ //
632
+ //
633
+ //
634
+ //
635
+ //
636
+ //
637
+ //
638
+ //
639
+ //
640
+ //
641
+ //
642
+ //
643
+ //
644
+ //
645
+ //
646
+ //
647
+ //
648
+ //
649
+ //
650
+ //
651
+ //
652
+ //
653
+ //
654
+ //
655
+ //
656
+ //
657
+ //
658
+ //
659
+ //
660
+ //
661
+ //
662
+ //
663
+ //
664
+ //
665
+ //
666
+ //
667
+ //
668
+ //
669
+ //
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+ var messageBox = void 0;
3452
680
  var typeMap = {
3453
- success: 'success',
3454
- info: 'info',
3455
- warning: 'warning',
3456
- error: 'error'
681
+ success: 'success',
682
+ info: 'info',
683
+ warning: 'warning',
684
+ error: 'error'
3457
685
  };
3458
- /* harmony default export */ var mainvue_type_script_lang_js = ({
3459
- mixins: [popup["b" /* default */], locale["a" /* default */]],
3460
- props: {
3461
- modal: {
3462
- default: true
3463
- },
3464
- lockScroll: {
3465
- default: true
3466
- },
3467
- showClose: {
3468
- type: Boolean,
3469
- default: true
3470
- },
3471
- closeOnClickModal: {
3472
- default: true
3473
- },
3474
- closeOnPressEscape: {
3475
- default: true
3476
- },
3477
- closeOnHashChange: {
3478
- default: true
3479
- },
3480
- center: {
3481
- default: false,
3482
- type: Boolean
3483
- },
3484
- roundButton: {
3485
- default: false,
3486
- type: Boolean
3487
- }
3488
- },
3489
- components: {
3490
- ElInput: input["default"],
3491
- ElButton: packages_button["default"]
3492
- },
3493
- computed: {
3494
- icon: function icon() {
3495
- var type = this.type,
3496
- iconClass = this.iconClass;
3497
- return iconClass || (type && typeMap[type] ? "el-icon-" + typeMap[type] : '');
3498
- },
3499
- confirmButtonClasses: function confirmButtonClasses() {
3500
- return "el-button--primary " + this.confirmButtonClass;
3501
- },
3502
- cancelButtonClasses: function cancelButtonClasses() {
3503
- return "" + this.cancelButtonClass;
3504
- }
3505
- },
3506
- methods: {
3507
- getSafeClose: function getSafeClose() {
3508
- var _this = this;
3509
- var currentId = this.uid;
3510
- return function () {
3511
- _this.$nextTick(function () {
3512
- if (currentId === _this.uid) _this.doClose();
3513
- });
3514
- };
3515
- },
3516
- doClose: function doClose() {
3517
- var _this2 = this;
3518
- if (!this.visible) return;
3519
- this.visible = false;
3520
- this._closing = true;
3521
- this.onClose && this.onClose();
3522
- messageBox.closeDialog(); // 解绑
3523
- if (this.lockScroll) {
3524
- setTimeout(this.restoreBodyStyle, 200);
3525
- }
3526
- this.opened = false;
3527
- this.doAfterClose();
3528
- setTimeout(function () {
3529
- if (_this2.action) _this2.callback(_this2.action, _this2);
3530
- });
3531
- },
3532
- handleWrapperClick: function handleWrapperClick() {
3533
- if (this.closeOnClickModal) {
3534
- this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel');
3535
- }
3536
- },
3537
- handleInputEnter: function handleInputEnter() {
3538
- if (this.inputType !== 'textarea') {
3539
- return this.handleAction('confirm');
3540
- }
3541
- },
3542
- handleAction: function handleAction(action) {
3543
- if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
3544
- return;
3545
- }
3546
- this.action = action;
3547
- if (typeof this.beforeClose === 'function') {
3548
- this.close = this.getSafeClose();
3549
- this.beforeClose(action, this, this.close);
3550
- } else {
3551
- this.doClose();
3552
- }
3553
- },
3554
- validate: function validate() {
3555
- if (this.$type === 'prompt') {
3556
- var inputPattern = this.inputPattern;
3557
- if (inputPattern && !inputPattern.test(this.inputValue || '')) {
3558
- this.editorErrorMessage = this.inputErrorMessage || Object(src_locale["a" /* t */])('el.messagebox.error');
3559
- Object(dom["a" /* addClass */])(this.getInputElement(), 'invalid');
3560
- return false;
3561
- }
3562
- var inputValidator = this.inputValidator;
3563
- if (typeof inputValidator === 'function') {
3564
- var validateResult = inputValidator(this.inputValue);
3565
- if (validateResult === false) {
3566
- this.editorErrorMessage = this.inputErrorMessage || Object(src_locale["a" /* t */])('el.messagebox.error');
3567
- Object(dom["a" /* addClass */])(this.getInputElement(), 'invalid');
3568
- return false;
3569
- }
3570
- if (typeof validateResult === 'string') {
3571
- this.editorErrorMessage = validateResult;
3572
- Object(dom["a" /* addClass */])(this.getInputElement(), 'invalid');
3573
- return false;
3574
- }
3575
- }
3576
- }
3577
- this.editorErrorMessage = '';
3578
- Object(dom["i" /* removeClass */])(this.getInputElement(), 'invalid');
3579
- return true;
3580
- },
3581
- getFirstFocus: function getFirstFocus() {
3582
- var btn = this.$el.querySelector('.el-message-box__btns .el-button');
3583
- var title = this.$el.querySelector('.el-message-box__btns .el-message-box__title');
3584
- return btn || title;
3585
- },
3586
- getInputElement: function getInputElement() {
3587
- var inputRefs = this.$refs.input.$refs;
3588
- return inputRefs.input || inputRefs.textarea;
3589
- },
3590
- handleClose: function handleClose() {
3591
- this.handleAction('close');
3592
- }
3593
- },
3594
- watch: {
3595
- inputValue: {
3596
- immediate: true,
3597
- handler: function handler(val) {
3598
- var _this3 = this;
3599
- this.$nextTick(function (_) {
3600
- if (_this3.$type === 'prompt' && val !== null) {
3601
- _this3.validate();
3602
- }
3603
- });
3604
- }
3605
- },
3606
- visible: function visible(val) {
3607
- var _this4 = this;
3608
- if (val) {
3609
- this.uid++;
3610
- if (this.$type === 'alert' || this.$type === 'confirm') {
3611
- this.$nextTick(function () {
3612
- _this4.$refs.confirm.$el.focus();
3613
- });
3614
- }
3615
- this.focusAfterClosed = document.activeElement;
3616
- messageBox = new aria_dialog(this.$el, this.focusAfterClosed, this.getFirstFocus());
3617
- }
3618
686
 
3619
- // prompt
3620
- if (this.$type !== 'prompt') return;
3621
- if (val) {
3622
- setTimeout(function () {
3623
- if (_this4.$refs.input && _this4.$refs.input.$el) {
3624
- _this4.getInputElement().focus();
3625
- }
3626
- }, 500);
3627
- } else {
3628
- this.editorErrorMessage = '';
3629
- Object(dom["i" /* removeClass */])(this.getInputElement(), 'invalid');
3630
- }
3631
- }
3632
- },
3633
- mounted: function mounted() {
3634
- var _this5 = this;
3635
- this.$nextTick(function () {
3636
- if (_this5.closeOnHashChange) {
3637
- window.addEventListener('hashchange', _this5.close);
3638
- }
3639
- });
3640
- },
3641
- beforeDestroy: function beforeDestroy() {
3642
- if (this.closeOnHashChange) {
3643
- window.removeEventListener('hashchange', this.close);
3644
- }
3645
- setTimeout(function () {
3646
- messageBox.closeDialog();
3647
- });
3648
- },
3649
- data: function data() {
3650
- return {
3651
- uid: 1,
3652
- title: undefined,
3653
- message: '',
3654
- type: '',
3655
- iconClass: '',
3656
- customClass: '',
3657
- showInput: false,
3658
- inputValue: null,
3659
- inputPlaceholder: '',
3660
- inputType: 'text',
3661
- inputPattern: null,
3662
- inputValidator: null,
3663
- inputErrorMessage: '',
3664
- showConfirmButton: true,
3665
- showCancelButton: false,
3666
- action: '',
3667
- confirmButtonText: '',
3668
- cancelButtonText: '',
3669
- confirmButtonLoading: false,
3670
- cancelButtonLoading: false,
3671
- confirmButtonClass: '',
3672
- confirmButtonDisabled: false,
3673
- cancelButtonClass: '',
3674
- editorErrorMessage: null,
3675
- callback: null,
3676
- dangerouslyUseHTMLString: false,
3677
- focusAfterClosed: null,
3678
- isOnComposition: false,
3679
- distinguishCancelAndClose: false
3680
- };
3681
- }
687
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
688
+ mixins: [popup_default.a, locale_default.a],
689
+
690
+ props: {
691
+ modal: {
692
+ default: true
693
+ },
694
+ lockScroll: {
695
+ default: true
696
+ },
697
+ showClose: {
698
+ type: Boolean,
699
+ default: true
700
+ },
701
+ closeOnClickModal: {
702
+ default: true
703
+ },
704
+ closeOnPressEscape: {
705
+ default: true
706
+ },
707
+ closeOnHashChange: {
708
+ default: true
709
+ },
710
+ center: {
711
+ default: false,
712
+ type: Boolean
713
+ },
714
+ roundButton: {
715
+ default: false,
716
+ type: Boolean
717
+ }
718
+ },
719
+
720
+ components: {
721
+ ElInput: input_default.a,
722
+ ElButton: button_default.a
723
+ },
724
+
725
+ computed: {
726
+ icon: function icon() {
727
+ var type = this.type,
728
+ iconClass = this.iconClass;
729
+
730
+ return iconClass || (type && typeMap[type] ? 'el-icon-' + typeMap[type] : '');
731
+ },
732
+ confirmButtonClasses: function confirmButtonClasses() {
733
+ return 'el-button--primary ' + this.confirmButtonClass;
734
+ },
735
+ cancelButtonClasses: function cancelButtonClasses() {
736
+ return '' + this.cancelButtonClass;
737
+ }
738
+ },
739
+
740
+ methods: {
741
+ getSafeClose: function getSafeClose() {
742
+ var _this = this;
743
+
744
+ var currentId = this.uid;
745
+ return function () {
746
+ _this.$nextTick(function () {
747
+ if (currentId === _this.uid) _this.doClose();
748
+ });
749
+ };
750
+ },
751
+ doClose: function doClose() {
752
+ var _this2 = this;
753
+
754
+ if (!this.visible) return;
755
+ this.visible = false;
756
+ this._closing = true;
757
+
758
+ this.onClose && this.onClose();
759
+ messageBox.closeDialog(); // 解绑
760
+ if (this.lockScroll) {
761
+ setTimeout(this.restoreBodyStyle, 200);
762
+ }
763
+ this.opened = false;
764
+ this.doAfterClose();
765
+ setTimeout(function () {
766
+ if (_this2.action) _this2.callback(_this2.action, _this2);
767
+ });
768
+ },
769
+ handleWrapperClick: function handleWrapperClick() {
770
+ if (this.closeOnClickModal) {
771
+ this.handleAction(this.distinguishCancelAndClose ? 'close' : 'cancel');
772
+ }
773
+ },
774
+ handleInputEnter: function handleInputEnter() {
775
+ if (this.inputType !== 'textarea') {
776
+ return this.handleAction('confirm');
777
+ }
778
+ },
779
+ handleAction: function handleAction(action) {
780
+ if (this.$type === 'prompt' && action === 'confirm' && !this.validate()) {
781
+ return;
782
+ }
783
+ this.action = action;
784
+ if (typeof this.beforeClose === 'function') {
785
+ this.close = this.getSafeClose();
786
+ this.beforeClose(action, this, this.close);
787
+ } else {
788
+ this.doClose();
789
+ }
790
+ },
791
+ validate: function validate() {
792
+ if (this.$type === 'prompt') {
793
+ var inputPattern = this.inputPattern;
794
+ if (inputPattern && !inputPattern.test(this.inputValue || '')) {
795
+ this.editorErrorMessage = this.inputErrorMessage || Object(lib_locale_["t"])('el.messagebox.error');
796
+ Object(dom_["addClass"])(this.getInputElement(), 'invalid');
797
+ return false;
798
+ }
799
+ var inputValidator = this.inputValidator;
800
+ if (typeof inputValidator === 'function') {
801
+ var validateResult = inputValidator(this.inputValue);
802
+ if (validateResult === false) {
803
+ this.editorErrorMessage = this.inputErrorMessage || Object(lib_locale_["t"])('el.messagebox.error');
804
+ Object(dom_["addClass"])(this.getInputElement(), 'invalid');
805
+ return false;
806
+ }
807
+ if (typeof validateResult === 'string') {
808
+ this.editorErrorMessage = validateResult;
809
+ Object(dom_["addClass"])(this.getInputElement(), 'invalid');
810
+ return false;
811
+ }
812
+ }
813
+ }
814
+ this.editorErrorMessage = '';
815
+ Object(dom_["removeClass"])(this.getInputElement(), 'invalid');
816
+ return true;
817
+ },
818
+ getFirstFocus: function getFirstFocus() {
819
+ var btn = this.$el.querySelector('.el-message-box__btns .el-button');
820
+ var title = this.$el.querySelector('.el-message-box__btns .el-message-box__title');
821
+ return btn || title;
822
+ },
823
+ getInputElement: function getInputElement() {
824
+ var inputRefs = this.$refs.input.$refs;
825
+ return inputRefs.input || inputRefs.textarea;
826
+ },
827
+ handleClose: function handleClose() {
828
+ this.handleAction('close');
829
+ }
830
+ },
831
+
832
+ watch: {
833
+ inputValue: {
834
+ immediate: true,
835
+ handler: function handler(val) {
836
+ var _this3 = this;
837
+
838
+ this.$nextTick(function (_) {
839
+ if (_this3.$type === 'prompt' && val !== null) {
840
+ _this3.validate();
841
+ }
842
+ });
843
+ }
844
+ },
845
+
846
+ visible: function visible(val) {
847
+ var _this4 = this;
848
+
849
+ if (val) {
850
+ this.uid++;
851
+ if (this.$type === 'alert' || this.$type === 'confirm') {
852
+ this.$nextTick(function () {
853
+ _this4.$refs.confirm.$el.focus();
854
+ });
855
+ }
856
+ this.focusAfterClosed = document.activeElement;
857
+ messageBox = new aria_dialog_default.a(this.$el, this.focusAfterClosed, this.getFirstFocus());
858
+ }
859
+
860
+ // prompt
861
+ if (this.$type !== 'prompt') return;
862
+ if (val) {
863
+ setTimeout(function () {
864
+ if (_this4.$refs.input && _this4.$refs.input.$el) {
865
+ _this4.getInputElement().focus();
866
+ }
867
+ }, 500);
868
+ } else {
869
+ this.editorErrorMessage = '';
870
+ Object(dom_["removeClass"])(this.getInputElement(), 'invalid');
871
+ }
872
+ }
873
+ },
874
+
875
+ mounted: function mounted() {
876
+ var _this5 = this;
877
+
878
+ this.$nextTick(function () {
879
+ if (_this5.closeOnHashChange) {
880
+ window.addEventListener('hashchange', _this5.close);
881
+ }
882
+ });
883
+ },
884
+ beforeDestroy: function beforeDestroy() {
885
+ if (this.closeOnHashChange) {
886
+ window.removeEventListener('hashchange', this.close);
887
+ }
888
+ setTimeout(function () {
889
+ messageBox.closeDialog();
890
+ });
891
+ },
892
+ data: function data() {
893
+ return {
894
+ uid: 1,
895
+ title: undefined,
896
+ message: '',
897
+ type: '',
898
+ iconClass: '',
899
+ customClass: '',
900
+ showInput: false,
901
+ inputValue: null,
902
+ inputPlaceholder: '',
903
+ inputType: 'text',
904
+ inputPattern: null,
905
+ inputValidator: null,
906
+ inputErrorMessage: '',
907
+ showConfirmButton: true,
908
+ showCancelButton: false,
909
+ action: '',
910
+ confirmButtonText: '',
911
+ cancelButtonText: '',
912
+ confirmButtonLoading: false,
913
+ cancelButtonLoading: false,
914
+ confirmButtonClass: '',
915
+ confirmButtonDisabled: false,
916
+ cancelButtonClass: '',
917
+ editorErrorMessage: null,
918
+ callback: null,
919
+ dangerouslyUseHTMLString: false,
920
+ focusAfterClosed: null,
921
+ isOnComposition: false,
922
+ distinguishCancelAndClose: false
923
+ };
924
+ }
3682
925
  });
3683
926
  // CONCATENATED MODULE: ./packages/message-box/src/main.vue?vue&type=script&lang=js
3684
927
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
3685
928
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3686
- var componentNormalizer = __webpack_require__(2);
929
+ var componentNormalizer = __webpack_require__(0);
3687
930
 
3688
931
  // CONCATENATED MODULE: ./packages/message-box/src/main.vue
3689
932
 
@@ -3705,217 +948,245 @@ var component = Object(componentNormalizer["a" /* default */])(
3705
948
  )
3706
949
 
3707
950
  /* harmony default export */ var main = (component.exports);
3708
- // EXTERNAL MODULE: ./src/utils/merge.js
3709
- var merge = __webpack_require__(15);
951
+ // EXTERNAL MODULE: external "element-ui/lib/utils/merge"
952
+ var merge_ = __webpack_require__(9);
953
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
3710
954
 
3711
- // EXTERNAL MODULE: ./src/utils/vdom.js
3712
- var vdom = __webpack_require__(94);
955
+ // EXTERNAL MODULE: external "element-ui/lib/utils/vdom"
956
+ var vdom_ = __webpack_require__(23);
3713
957
 
3714
958
  // CONCATENATED MODULE: ./packages/message-box/src/main.js
3715
-
959
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3716
960
 
3717
961
  var defaults = {
3718
- title: null,
3719
- message: '',
3720
- type: '',
3721
- iconClass: '',
3722
- showInput: false,
3723
- showClose: true,
3724
- modalFade: true,
3725
- lockScroll: true,
3726
- closeOnClickModal: true,
3727
- closeOnPressEscape: true,
3728
- closeOnHashChange: true,
3729
- inputValue: null,
3730
- inputPlaceholder: '',
3731
- inputType: 'text',
3732
- inputPattern: null,
3733
- inputValidator: null,
3734
- inputErrorMessage: '',
3735
- showConfirmButton: true,
3736
- showCancelButton: false,
3737
- confirmButtonPosition: 'right',
3738
- confirmButtonHighlight: false,
3739
- cancelButtonHighlight: false,
3740
- confirmButtonText: '',
3741
- cancelButtonText: '',
3742
- confirmButtonClass: '',
3743
- cancelButtonClass: '',
3744
- customClass: '',
3745
- beforeClose: null,
3746
- dangerouslyUseHTMLString: false,
3747
- center: false,
3748
- roundButton: false,
3749
- distinguishCancelAndClose: false
962
+ title: null,
963
+ message: '',
964
+ type: '',
965
+ iconClass: '',
966
+ showInput: false,
967
+ showClose: true,
968
+ modalFade: true,
969
+ lockScroll: true,
970
+ closeOnClickModal: true,
971
+ closeOnPressEscape: true,
972
+ closeOnHashChange: true,
973
+ inputValue: null,
974
+ inputPlaceholder: '',
975
+ inputType: 'text',
976
+ inputPattern: null,
977
+ inputValidator: null,
978
+ inputErrorMessage: '',
979
+ showConfirmButton: true,
980
+ showCancelButton: false,
981
+ confirmButtonPosition: 'right',
982
+ confirmButtonHighlight: false,
983
+ cancelButtonHighlight: false,
984
+ confirmButtonText: '',
985
+ cancelButtonText: '',
986
+ confirmButtonClass: '',
987
+ cancelButtonClass: '',
988
+ customClass: '',
989
+ beforeClose: null,
990
+ dangerouslyUseHTMLString: false,
991
+ center: false,
992
+ roundButton: false,
993
+ distinguishCancelAndClose: false
3750
994
  };
3751
995
 
3752
996
 
3753
997
 
3754
998
 
999
+
1000
+
3755
1001
  var MessageBoxConstructor = external_vue_default.a.extend(main);
3756
- var currentMsg, instance;
1002
+
1003
+ var currentMsg = void 0,
1004
+ instance = void 0;
3757
1005
  var msgQueue = [];
1006
+
3758
1007
  var defaultCallback = function defaultCallback(action) {
3759
- if (currentMsg) {
3760
- var callback = currentMsg.callback;
3761
- if (typeof callback === 'function') {
3762
- if (instance.showInput) {
3763
- callback(instance.inputValue, action);
3764
- } else {
3765
- callback(action);
3766
- }
3767
- }
3768
- if (currentMsg.resolve) {
3769
- if (action === 'confirm') {
3770
- if (instance.showInput) {
3771
- currentMsg.resolve({
3772
- value: instance.inputValue,
3773
- action: action
3774
- });
3775
- } else {
3776
- currentMsg.resolve(action);
3777
- }
3778
- } else if (currentMsg.reject && (action === 'cancel' || action === 'close')) {
3779
- currentMsg.reject(action);
3780
- }
3781
- }
3782
- }
1008
+ if (currentMsg) {
1009
+ var callback = currentMsg.callback;
1010
+ if (typeof callback === 'function') {
1011
+ if (instance.showInput) {
1012
+ callback(instance.inputValue, action);
1013
+ } else {
1014
+ callback(action);
1015
+ }
1016
+ }
1017
+ if (currentMsg.resolve) {
1018
+ if (action === 'confirm') {
1019
+ if (instance.showInput) {
1020
+ currentMsg.resolve({ value: instance.inputValue, action: action });
1021
+ } else {
1022
+ currentMsg.resolve(action);
1023
+ }
1024
+ } else if (currentMsg.reject && (action === 'cancel' || action === 'close')) {
1025
+ currentMsg.reject(action);
1026
+ }
1027
+ }
1028
+ }
3783
1029
  };
1030
+
3784
1031
  var initInstance = function initInstance() {
3785
- instance = new MessageBoxConstructor({
3786
- el: document.createElement('div')
3787
- });
3788
- instance.callback = defaultCallback;
1032
+ instance = new MessageBoxConstructor({
1033
+ el: document.createElement('div')
1034
+ });
1035
+
1036
+ instance.callback = defaultCallback;
3789
1037
  };
3790
- var _showNextMsg = function showNextMsg() {
3791
- if (!instance) {
3792
- initInstance();
3793
- }
3794
- instance.action = '';
3795
- if (!instance.visible || instance.closeTimer) {
3796
- if (msgQueue.length > 0) {
3797
- currentMsg = msgQueue.shift();
3798
- var options = currentMsg.options;
3799
- for (var prop in options) {
3800
- if (options.hasOwnProperty(prop)) {
3801
- instance[prop] = options[prop];
3802
- }
3803
- }
3804
- if (options.callback === undefined) {
3805
- instance.callback = defaultCallback;
3806
- }
3807
- var oldCb = instance.callback;
3808
- instance.callback = function (action, instance) {
3809
- oldCb(action, instance);
3810
- _showNextMsg();
3811
- };
3812
- if (Object(vdom["a" /* isVNode */])(instance.message)) {
3813
- instance.$slots.default = [instance.message];
3814
- instance.message = null;
3815
- } else {
3816
- delete instance.$slots.default;
3817
- }
3818
- ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape', 'closeOnHashChange'].forEach(function (prop) {
3819
- if (instance[prop] === undefined) {
3820
- instance[prop] = true;
3821
- }
3822
- });
3823
- document.body.appendChild(instance.$el);
3824
- external_vue_default.a.nextTick(function () {
3825
- instance.visible = true;
3826
- });
3827
- }
3828
- }
1038
+
1039
+ var main_showNextMsg = function showNextMsg() {
1040
+ if (!instance) {
1041
+ initInstance();
1042
+ }
1043
+ instance.action = '';
1044
+
1045
+ if (!instance.visible || instance.closeTimer) {
1046
+ if (msgQueue.length > 0) {
1047
+ currentMsg = msgQueue.shift();
1048
+
1049
+ var options = currentMsg.options;
1050
+ for (var prop in options) {
1051
+ if (options.hasOwnProperty(prop)) {
1052
+ instance[prop] = options[prop];
1053
+ }
1054
+ }
1055
+ if (options.callback === undefined) {
1056
+ instance.callback = defaultCallback;
1057
+ }
1058
+
1059
+ var oldCb = instance.callback;
1060
+ instance.callback = function (action, instance) {
1061
+ oldCb(action, instance);
1062
+ showNextMsg();
1063
+ };
1064
+ if (Object(vdom_["isVNode"])(instance.message)) {
1065
+ instance.$slots.default = [instance.message];
1066
+ instance.message = null;
1067
+ } else {
1068
+ delete instance.$slots.default;
1069
+ }
1070
+ ['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape', 'closeOnHashChange'].forEach(function (prop) {
1071
+ if (instance[prop] === undefined) {
1072
+ instance[prop] = true;
1073
+ }
1074
+ });
1075
+ document.body.appendChild(instance.$el);
1076
+
1077
+ external_vue_default.a.nextTick(function () {
1078
+ instance.visible = true;
1079
+ });
1080
+ }
1081
+ }
3829
1082
  };
3830
- var _MessageBox = function MessageBox(options, callback) {
3831
- if (external_vue_default.a.prototype.$isServer) return;
3832
- if (typeof options === 'string' || Object(vdom["a" /* isVNode */])(options)) {
3833
- options = {
3834
- message: options
3835
- };
3836
- if (typeof arguments[1] === 'string') {
3837
- options.title = arguments[1];
3838
- }
3839
- } else if (options.callback && !callback) {
3840
- callback = options.callback;
3841
- }
3842
- if (typeof Promise !== 'undefined') {
3843
- return new Promise(function (resolve, reject) {
3844
- // eslint-disable-line
3845
- msgQueue.push({
3846
- options: Object(merge["a" /* default */])({}, defaults, _MessageBox.defaults, options),
3847
- callback: callback,
3848
- resolve: resolve,
3849
- reject: reject
3850
- });
3851
- _showNextMsg();
3852
- });
3853
- } else {
3854
- msgQueue.push({
3855
- options: Object(merge["a" /* default */])({}, defaults, _MessageBox.defaults, options),
3856
- callback: callback
3857
- });
3858
- _showNextMsg();
3859
- }
1083
+
1084
+ var main_MessageBox = function MessageBox(options, callback) {
1085
+ if (external_vue_default.a.prototype.$isServer) return;
1086
+ if (typeof options === 'string' || Object(vdom_["isVNode"])(options)) {
1087
+ options = {
1088
+ message: options
1089
+ };
1090
+ if (typeof arguments[1] === 'string') {
1091
+ options.title = arguments[1];
1092
+ }
1093
+ } else if (options.callback && !callback) {
1094
+ callback = options.callback;
1095
+ }
1096
+
1097
+ if (typeof Promise !== 'undefined') {
1098
+ return new Promise(function (resolve, reject) {
1099
+ // eslint-disable-line
1100
+ msgQueue.push({
1101
+ options: merge_default()({}, defaults, MessageBox.defaults, options),
1102
+ callback: callback,
1103
+ resolve: resolve,
1104
+ reject: reject
1105
+ });
1106
+
1107
+ main_showNextMsg();
1108
+ });
1109
+ } else {
1110
+ msgQueue.push({
1111
+ options: merge_default()({}, defaults, MessageBox.defaults, options),
1112
+ callback: callback
1113
+ });
1114
+
1115
+ main_showNextMsg();
1116
+ }
3860
1117
  };
3861
- _MessageBox.setDefaults = function (defaults) {
3862
- _MessageBox.defaults = defaults;
1118
+
1119
+ main_MessageBox.setDefaults = function (defaults) {
1120
+ main_MessageBox.defaults = defaults;
3863
1121
  };
3864
- _MessageBox.alert = function (message, title, options) {
3865
- if (typeof title === 'object') {
3866
- options = title;
3867
- title = '';
3868
- } else if (title === undefined) {
3869
- title = '';
3870
- }
3871
- return _MessageBox(Object(merge["a" /* default */])({
3872
- title: title,
3873
- message: message,
3874
- $type: 'alert',
3875
- closeOnPressEscape: false,
3876
- closeOnClickModal: false
3877
- }, options));
1122
+
1123
+ main_MessageBox.alert = function (message, title, options) {
1124
+ if ((typeof title === 'undefined' ? 'undefined' : _typeof(title)) === 'object') {
1125
+ options = title;
1126
+ title = '';
1127
+ } else if (title === undefined) {
1128
+ title = '';
1129
+ }
1130
+ return main_MessageBox(merge_default()({
1131
+ title: title,
1132
+ message: message,
1133
+ $type: 'alert',
1134
+ closeOnPressEscape: false,
1135
+ closeOnClickModal: false
1136
+ }, options));
3878
1137
  };
3879
- _MessageBox.confirm = function (message, title, options) {
3880
- if (typeof title === 'object') {
3881
- options = title;
3882
- title = '';
3883
- } else if (title === undefined) {
3884
- title = '';
3885
- }
3886
- return _MessageBox(Object(merge["a" /* default */])({
3887
- title: title,
3888
- message: message,
3889
- $type: 'confirm',
3890
- showCancelButton: true
3891
- }, options));
1138
+
1139
+ main_MessageBox.confirm = function (message, title, options) {
1140
+ if ((typeof title === 'undefined' ? 'undefined' : _typeof(title)) === 'object') {
1141
+ options = title;
1142
+ title = '';
1143
+ } else if (title === undefined) {
1144
+ title = '';
1145
+ }
1146
+ return main_MessageBox(merge_default()({
1147
+ title: title,
1148
+ message: message,
1149
+ $type: 'confirm',
1150
+ showCancelButton: true
1151
+ }, options));
3892
1152
  };
3893
- _MessageBox.prompt = function (message, title, options) {
3894
- if (typeof title === 'object') {
3895
- options = title;
3896
- title = '';
3897
- } else if (title === undefined) {
3898
- title = '';
3899
- }
3900
- return _MessageBox(Object(merge["a" /* default */])({
3901
- title: title,
3902
- message: message,
3903
- showCancelButton: true,
3904
- showInput: true,
3905
- $type: 'prompt'
3906
- }, options));
1153
+
1154
+ main_MessageBox.prompt = function (message, title, options) {
1155
+ if ((typeof title === 'undefined' ? 'undefined' : _typeof(title)) === 'object') {
1156
+ options = title;
1157
+ title = '';
1158
+ } else if (title === undefined) {
1159
+ title = '';
1160
+ }
1161
+ return main_MessageBox(merge_default()({
1162
+ title: title,
1163
+ message: message,
1164
+ showCancelButton: true,
1165
+ showInput: true,
1166
+ $type: 'prompt'
1167
+ }, options));
3907
1168
  };
3908
- _MessageBox.close = function () {
3909
- instance.doClose();
3910
- instance.visible = false;
3911
- msgQueue = [];
3912
- currentMsg = null;
1169
+
1170
+ main_MessageBox.close = function () {
1171
+ instance.doClose();
1172
+ instance.visible = false;
1173
+ msgQueue = [];
1174
+ currentMsg = null;
3913
1175
  };
3914
- /* harmony default export */ var src_main = (_MessageBox);
1176
+
1177
+ /* harmony default export */ var src_main = (main_MessageBox);
3915
1178
 
3916
1179
  // CONCATENATED MODULE: ./packages/message-box/index.js
3917
1180
 
3918
1181
  /* harmony default export */ var message_box = __webpack_exports__["default"] = (src_main);
3919
1182
 
1183
+ /***/ }),
1184
+
1185
+ /***/ 9:
1186
+ /***/ (function(module, exports) {
1187
+
1188
+ module.exports = require("element-ui/lib/utils/merge");
1189
+
3920
1190
  /***/ })
3921
- /******/ ]);
1191
+
1192
+ /******/ });