cy-element-ui 1.0.27 → 1.0.29

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 (902) hide show
  1. package/CHANGELOG.md +280 -280
  2. package/LICENSE +21 -21
  3. package/README.md +171 -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 +4024 -8447
  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 +315 -1109
  36. package/lib/dropdown-item.js +111 -159
  37. package/lib/dropdown-menu.js +117 -2445
  38. package/lib/dropdown.js +381 -1784
  39. package/lib/element-ui.common.js +42414 -46083
  40. package/lib/empty.js +202 -1069
  41. package/lib/fileUpload.js +605 -3512
  42. package/lib/footer.js +80 -80
  43. package/lib/form-item.js +467 -1222
  44. package/lib/form.js +258 -326
  45. package/lib/header.js +80 -80
  46. package/lib/icon.js +68 -71
  47. package/lib/image.js +743 -2375
  48. package/lib/index.js +1 -1
  49. package/lib/infinite-scroll.js +150 -814
  50. package/lib/input-number.js +444 -2177
  51. package/lib/input.js +517 -1197
  52. package/lib/link.js +135 -117
  53. package/lib/loading.js +372 -1139
  54. package/lib/locale/format.js +52 -42
  55. package/lib/locale/index.js +52 -38
  56. package/lib/locale/lang/af-ZA.js +123 -130
  57. package/lib/locale/lang/ar.js +122 -123
  58. package/lib/locale/lang/az.js +121 -122
  59. package/lib/locale/lang/bg.js +123 -133
  60. package/lib/locale/lang/bn.js +121 -121
  61. package/lib/locale/lang/ca.js +122 -123
  62. package/lib/locale/lang/cs-CZ.js +125 -127
  63. package/lib/locale/lang/da.js +122 -124
  64. package/lib/locale/lang/de.js +124 -126
  65. package/lib/locale/lang/ee.js +123 -125
  66. package/lib/locale/lang/el.js +123 -125
  67. package/lib/locale/lang/en.js +123 -127
  68. package/lib/locale/lang/eo.js +123 -125
  69. package/lib/locale/lang/es.js +122 -123
  70. package/lib/locale/lang/eu.js +123 -128
  71. package/lib/locale/lang/fa.js +123 -125
  72. package/lib/locale/lang/fi.js +123 -125
  73. package/lib/locale/lang/fr.js +122 -125
  74. package/lib/locale/lang/he.js +123 -130
  75. package/lib/locale/lang/hr.js +123 -128
  76. package/lib/locale/lang/hu.js +122 -124
  77. package/lib/locale/lang/hy-AM.js +123 -125
  78. package/lib/locale/lang/id.js +123 -124
  79. package/lib/locale/lang/is.js +123 -124
  80. package/lib/locale/lang/it.js +122 -123
  81. package/lib/locale/lang/ja.js +123 -125
  82. package/lib/locale/lang/kg.js +123 -125
  83. package/lib/locale/lang/km.js +123 -124
  84. package/lib/locale/lang/ko.js +123 -125
  85. package/lib/locale/lang/ku.js +123 -125
  86. package/lib/locale/lang/kz.js +123 -125
  87. package/lib/locale/lang/lo-LA.js +121 -121
  88. package/lib/locale/lang/lt.js +123 -125
  89. package/lib/locale/lang/lv.js +123 -125
  90. package/lib/locale/lang/mn.js +123 -125
  91. package/lib/locale/lang/ms.js +122 -123
  92. package/lib/locale/lang/nb-NO.js +122 -123
  93. package/lib/locale/lang/nl.js +123 -125
  94. package/lib/locale/lang/pl.js +123 -125
  95. package/lib/locale/lang/pt-br.js +123 -124
  96. package/lib/locale/lang/pt.js +123 -133
  97. package/lib/locale/lang/ro.js +123 -125
  98. package/lib/locale/lang/ru-RU.js +123 -124
  99. package/lib/locale/lang/si.js +123 -127
  100. package/lib/locale/lang/sk.js +125 -126
  101. package/lib/locale/lang/sl.js +123 -125
  102. package/lib/locale/lang/sr-Latn.js +123 -124
  103. package/lib/locale/lang/sr.js +123 -128
  104. package/lib/locale/lang/sv-SE.js +123 -128
  105. package/lib/locale/lang/sw.js +123 -127
  106. package/lib/locale/lang/ta.js +122 -130
  107. package/lib/locale/lang/th.js +123 -127
  108. package/lib/locale/lang/tk.js +123 -129
  109. package/lib/locale/lang/tr-TR.js +123 -125
  110. package/lib/locale/lang/ua.js +123 -124
  111. package/lib/locale/lang/ug-CN.js +123 -124
  112. package/lib/locale/lang/uz-UZ.js +123 -124
  113. package/lib/locale/lang/vi.js +123 -124
  114. package/lib/locale/lang/zh-CN.js +123 -124
  115. package/lib/locale/lang/zh-TW.js +123 -128
  116. package/lib/main.js +67 -69
  117. package/lib/menu-item-group.js +111 -105
  118. package/lib/menu-item.js +259 -3549
  119. package/lib/menu.js +559 -1697
  120. package/lib/message-box.js +693 -3422
  121. package/lib/message.js +229 -1663
  122. package/lib/mixins/emitter.js +30 -28
  123. package/lib/mixins/focus.js +11 -10
  124. package/lib/mixins/locale.js +14 -12
  125. package/lib/mixins/migrating.js +65 -58
  126. package/lib/notification.js +269 -1693
  127. package/lib/option-group.js +139 -190
  128. package/lib/option.js +192 -941
  129. package/lib/page-header.js +92 -1014
  130. package/lib/pagination.js +677 -6969
  131. package/lib/popconfirm.js +219 -3932
  132. package/lib/popover.js +368 -3242
  133. package/lib/progress.js +244 -254
  134. package/lib/radio-button.js +226 -259
  135. package/lib/radio-group.js +186 -249
  136. package/lib/radio.js +253 -263
  137. package/lib/rate.js +415 -1394
  138. package/lib/result.js +233 -189
  139. package/lib/row.js +41 -58
  140. package/lib/scrollbar.js +278 -1331
  141. package/lib/select.js +1347 -5731
  142. package/lib/skeleton-item.js +145 -133
  143. package/lib/skeleton.js +172 -163
  144. package/lib/slider.js +702 -5143
  145. package/lib/spinner.js +101 -113
  146. package/lib/statistic.js +533 -0
  147. package/lib/step.js +310 -273
  148. package/lib/steps.js +115 -852
  149. package/lib/subTitle.js +96 -95
  150. package/lib/submenu.js +448 -2887
  151. package/lib/switch.js +204 -1036
  152. package/lib/tab-pane.js +135 -125
  153. package/lib/tabDialog.js +493 -2350
  154. package/lib/table-column.js +751 -1975
  155. package/lib/table.js +3934 -7957
  156. package/lib/tabs.js +605 -1441
  157. package/lib/tag.js +68 -73
  158. package/lib/theme-chalk/README.md +33 -33
  159. package/lib/theme-chalk/package.json +35 -35
  160. package/lib/theme-chalk/src/alert.scss +147 -147
  161. package/lib/theme-chalk/src/aside.scss +7 -7
  162. package/lib/theme-chalk/src/autocomplete.scss +80 -80
  163. package/lib/theme-chalk/src/avatar.scss +51 -51
  164. package/lib/theme-chalk/src/backtop.scss +22 -22
  165. package/lib/theme-chalk/src/badge.scss +57 -57
  166. package/lib/theme-chalk/src/base.scss +2 -2
  167. package/lib/theme-chalk/src/breadcrumb.scss +55 -55
  168. package/lib/theme-chalk/src/button.scss +262 -262
  169. package/lib/theme-chalk/src/calendar.scss +79 -79
  170. package/lib/theme-chalk/src/card.scss +32 -32
  171. package/lib/theme-chalk/src/carousel-item.scss +50 -50
  172. package/lib/theme-chalk/src/carousel.scss +161 -161
  173. package/lib/theme-chalk/src/cascader-panel.scss +120 -120
  174. package/lib/theme-chalk/src/cascader.scss +182 -182
  175. package/lib/theme-chalk/src/checkbox.scss +359 -359
  176. package/lib/theme-chalk/src/col.scss +156 -156
  177. package/lib/theme-chalk/src/collapse.scss +63 -63
  178. package/lib/theme-chalk/src/color-picker.scss +384 -384
  179. package/lib/theme-chalk/src/common/popup.scss +42 -42
  180. package/lib/theme-chalk/src/common/transition.scss +99 -99
  181. package/lib/theme-chalk/src/common/var.scss +1028 -1028
  182. package/lib/theme-chalk/src/container.scss +14 -14
  183. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -97
  184. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  185. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -151
  186. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -82
  187. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  188. package/lib/theme-chalk/src/date-picker/picker.scss +197 -197
  189. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -85
  190. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  191. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  192. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -51
  193. package/lib/theme-chalk/src/date-picker.scss +11 -11
  194. package/lib/theme-chalk/src/descriptions-item.scss +42 -42
  195. package/lib/theme-chalk/src/descriptions.scss +111 -111
  196. package/lib/theme-chalk/src/dialog.scss +123 -123
  197. package/lib/theme-chalk/src/display.scss +12 -12
  198. package/lib/theme-chalk/src/divider.scss +47 -47
  199. package/lib/theme-chalk/src/drawer.scss +219 -219
  200. package/lib/theme-chalk/src/dropdown.scss +182 -182
  201. package/lib/theme-chalk/src/empty.scss +45 -45
  202. package/lib/theme-chalk/src/footer.scss +8 -8
  203. package/lib/theme-chalk/src/form.scss +167 -167
  204. package/lib/theme-chalk/src/header.scss +8 -8
  205. package/lib/theme-chalk/src/icon.scss +1167 -1167
  206. package/lib/theme-chalk/src/image.scss +179 -179
  207. package/lib/theme-chalk/src/index.scss +90 -89
  208. package/lib/theme-chalk/src/input-number.scss +180 -180
  209. package/lib/theme-chalk/src/input.scss +360 -360
  210. package/lib/theme-chalk/src/link.scss +81 -81
  211. package/lib/theme-chalk/src/loading.scss +96 -96
  212. package/lib/theme-chalk/src/main.scss +12 -12
  213. package/lib/theme-chalk/src/menu.scss +289 -289
  214. package/lib/theme-chalk/src/message-box.scss +226 -226
  215. package/lib/theme-chalk/src/message.scss +120 -120
  216. package/lib/theme-chalk/src/mixins/_button.scss +81 -81
  217. package/lib/theme-chalk/src/mixins/config.scss +4 -4
  218. package/lib/theme-chalk/src/mixins/function.scss +44 -44
  219. package/lib/theme-chalk/src/mixins/mixins.scss +190 -190
  220. package/lib/theme-chalk/src/mixins/utils.scss +39 -39
  221. package/lib/theme-chalk/src/notification.scss +99 -99
  222. package/lib/theme-chalk/src/option-group.scss +42 -42
  223. package/lib/theme-chalk/src/option.scss +36 -36
  224. package/lib/theme-chalk/src/page-header.scss +41 -41
  225. package/lib/theme-chalk/src/pagination.scss +295 -295
  226. package/lib/theme-chalk/src/popconfirm.scss +16 -16
  227. package/lib/theme-chalk/src/popover.scss +40 -40
  228. package/lib/theme-chalk/src/popper.scss +101 -101
  229. package/lib/theme-chalk/src/progress.scss +141 -141
  230. package/lib/theme-chalk/src/radio-button.scss +113 -113
  231. package/lib/theme-chalk/src/radio-group.scss +9 -9
  232. package/lib/theme-chalk/src/radio.scss +199 -199
  233. package/lib/theme-chalk/src/rate.scss +49 -49
  234. package/lib/theme-chalk/src/reset.scss +79 -79
  235. package/lib/theme-chalk/src/result.scss +61 -61
  236. package/lib/theme-chalk/src/row.scss +43 -43
  237. package/lib/theme-chalk/src/scrollbar.scss +72 -72
  238. package/lib/theme-chalk/src/select-dropdown.scss +62 -62
  239. package/lib/theme-chalk/src/select.scss +152 -152
  240. package/lib/theme-chalk/src/skeleton-item.scss +84 -84
  241. package/lib/theme-chalk/src/skeleton.scss +40 -40
  242. package/lib/theme-chalk/src/slider.scss +250 -250
  243. package/lib/theme-chalk/src/spinner.scss +44 -44
  244. package/lib/theme-chalk/src/statistic.scss +38 -0
  245. package/lib/theme-chalk/src/step.scss +317 -317
  246. package/lib/theme-chalk/src/steps.scss +20 -20
  247. package/lib/theme-chalk/src/switch.scss +116 -116
  248. package/lib/theme-chalk/src/table-column.scss +97 -97
  249. package/lib/theme-chalk/src/table.scss +564 -564
  250. package/lib/theme-chalk/src/tabs.scss +602 -602
  251. package/lib/theme-chalk/src/tag.scss +163 -163
  252. package/lib/theme-chalk/src/time-picker.scss +8 -8
  253. package/lib/theme-chalk/src/time-select.scss +37 -37
  254. package/lib/theme-chalk/src/timeline-item.scss +86 -86
  255. package/lib/theme-chalk/src/timeline.scss +14 -14
  256. package/lib/theme-chalk/src/tooltip.scss +141 -141
  257. package/lib/theme-chalk/src/transfer.scss +227 -227
  258. package/lib/theme-chalk/src/tree.scss +123 -123
  259. package/lib/theme-chalk/src/upload.scss +603 -603
  260. package/lib/time-picker.js +1837 -6690
  261. package/lib/time-select.js +1240 -6327
  262. package/lib/timeline-item.js +174 -133
  263. package/lib/timeline.js +39 -43
  264. package/lib/tooltip.js +287 -3184
  265. package/lib/transfer.js +625 -2929
  266. package/lib/transitions/collapse-transition.js +87 -69
  267. package/lib/tree.js +1741 -3248
  268. package/lib/treeSelect.js +370 -4109
  269. package/lib/umd/locale/af-ZA.js +138 -145
  270. package/lib/umd/locale/ar.js +137 -138
  271. package/lib/umd/locale/az.js +137 -139
  272. package/lib/umd/locale/bg.js +138 -148
  273. package/lib/umd/locale/bn.js +137 -138
  274. package/lib/umd/locale/ca.js +137 -138
  275. package/lib/umd/locale/cs-CZ.js +140 -142
  276. package/lib/umd/locale/da.js +137 -139
  277. package/lib/umd/locale/de.js +139 -141
  278. package/lib/umd/locale/ee.js +138 -140
  279. package/lib/umd/locale/el.js +138 -140
  280. package/lib/umd/locale/en.js +138 -142
  281. package/lib/umd/locale/eo.js +138 -140
  282. package/lib/umd/locale/es.js +137 -138
  283. package/lib/umd/locale/eu.js +138 -143
  284. package/lib/umd/locale/fa.js +138 -140
  285. package/lib/umd/locale/fi.js +138 -140
  286. package/lib/umd/locale/fr.js +137 -140
  287. package/lib/umd/locale/he.js +138 -145
  288. package/lib/umd/locale/hr.js +138 -143
  289. package/lib/umd/locale/hu.js +137 -139
  290. package/lib/umd/locale/hy-AM.js +138 -140
  291. package/lib/umd/locale/id.js +138 -139
  292. package/lib/umd/locale/is.js +138 -139
  293. package/lib/umd/locale/it.js +137 -138
  294. package/lib/umd/locale/ja.js +138 -140
  295. package/lib/umd/locale/kg.js +138 -140
  296. package/lib/umd/locale/km.js +138 -139
  297. package/lib/umd/locale/ko.js +138 -140
  298. package/lib/umd/locale/ku.js +138 -140
  299. package/lib/umd/locale/kz.js +138 -140
  300. package/lib/umd/locale/lo-LA.js +137 -138
  301. package/lib/umd/locale/lt.js +138 -140
  302. package/lib/umd/locale/lv.js +138 -140
  303. package/lib/umd/locale/mn.js +138 -140
  304. package/lib/umd/locale/ms.js +137 -138
  305. package/lib/umd/locale/nb-NO.js +137 -138
  306. package/lib/umd/locale/nl.js +138 -140
  307. package/lib/umd/locale/pl.js +138 -140
  308. package/lib/umd/locale/pt-br.js +138 -139
  309. package/lib/umd/locale/pt.js +138 -148
  310. package/lib/umd/locale/ro.js +138 -140
  311. package/lib/umd/locale/ru-RU.js +138 -139
  312. package/lib/umd/locale/si.js +138 -142
  313. package/lib/umd/locale/sk.js +140 -141
  314. package/lib/umd/locale/sl.js +138 -140
  315. package/lib/umd/locale/sr-Latn.js +138 -139
  316. package/lib/umd/locale/sr.js +138 -143
  317. package/lib/umd/locale/sv-SE.js +138 -143
  318. package/lib/umd/locale/sw.js +138 -142
  319. package/lib/umd/locale/ta.js +137 -145
  320. package/lib/umd/locale/th.js +138 -142
  321. package/lib/umd/locale/tk.js +138 -144
  322. package/lib/umd/locale/tr-TR.js +138 -140
  323. package/lib/umd/locale/ua.js +138 -139
  324. package/lib/umd/locale/ug-CN.js +138 -139
  325. package/lib/umd/locale/uz-UZ.js +138 -139
  326. package/lib/umd/locale/vi.js +138 -139
  327. package/lib/umd/locale/zh-CN.js +138 -139
  328. package/lib/umd/locale/zh-TW.js +138 -143
  329. package/lib/upload.js +990 -2376
  330. package/lib/utils/after-leave.js +33 -36
  331. package/lib/utils/aria-dialog.js +89 -71
  332. package/lib/utils/aria-utils.js +101 -92
  333. package/lib/utils/clickoutside.js +67 -59
  334. package/lib/utils/date-util.js +241 -198
  335. package/lib/utils/date.js +369 -14
  336. package/lib/utils/dom.js +183 -167
  337. package/lib/utils/lodash.js +9421 -13
  338. package/lib/utils/menu/aria-menubar.js +18 -13
  339. package/lib/utils/menu/aria-menuitem.js +54 -43
  340. package/lib/utils/menu/aria-submenu.js +59 -50
  341. package/lib/utils/merge.js +17 -15
  342. package/lib/utils/popper.js +1196 -1167
  343. package/lib/utils/popup/index.js +230 -186
  344. package/lib/utils/popup/popup-manager.js +191 -159
  345. package/lib/utils/resize-event.js +44 -29
  346. package/lib/utils/scroll-into-view.js +33 -25
  347. package/lib/utils/scrollbar-width.js +36 -25
  348. package/lib/utils/shared.js +3 -3
  349. package/lib/utils/types.js +35 -22
  350. package/lib/utils/util.js +221 -187
  351. package/lib/utils/vdom.js +9 -5
  352. package/lib/utils/vue-popper.js +195 -173
  353. package/package.json +160 -160
  354. package/packages/alert/index.js +8 -8
  355. package/packages/alert/src/main.vue +94 -94
  356. package/packages/aside/index.js +8 -8
  357. package/packages/aside/src/main.vue +20 -20
  358. package/packages/autocomplete/index.js +8 -8
  359. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  360. package/packages/autocomplete/src/autocomplete.vue +285 -285
  361. package/packages/avatar/index.js +8 -8
  362. package/packages/avatar/src/main.vue +107 -107
  363. package/packages/backtop/index.js +8 -8
  364. package/packages/backtop/src/main.vue +110 -110
  365. package/packages/badge/index.js +8 -8
  366. package/packages/badge/src/main.vue +53 -53
  367. package/packages/breadcrumb/index.js +8 -8
  368. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
  369. package/packages/breadcrumb/src/breadcrumb.vue +34 -34
  370. package/packages/breadcrumb-item/index.js +8 -8
  371. package/packages/button/index.js +8 -8
  372. package/packages/button/src/button-group.vue +10 -10
  373. package/packages/button/src/button.vue +78 -78
  374. package/packages/button-group/index.js +8 -8
  375. package/packages/calendar/index.js +8 -8
  376. package/packages/calendar/src/date-table.vue +200 -200
  377. package/packages/calendar/src/main.vue +280 -280
  378. package/packages/card/index.js +8 -8
  379. package/packages/card/src/main.vue +23 -23
  380. package/packages/carousel/index.js +8 -8
  381. package/packages/carousel/src/item.vue +138 -138
  382. package/packages/carousel/src/main.vue +315 -315
  383. package/packages/carousel-item/index.js +8 -8
  384. package/packages/cascader/index.js +8 -8
  385. package/packages/cascader/src/cascader.vue +663 -663
  386. package/packages/cascader-panel/index.js +8 -8
  387. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  388. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  389. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  390. package/packages/cascader-panel/src/node.js +164 -164
  391. package/packages/cascader-panel/src/store.js +56 -56
  392. package/packages/checkbox/index.js +8 -8
  393. package/packages/checkbox/src/checkbox-button.vue +199 -199
  394. package/packages/checkbox/src/checkbox-group.vue +48 -48
  395. package/packages/checkbox/src/checkbox.vue +222 -222
  396. package/packages/checkbox-button/index.js +8 -8
  397. package/packages/checkbox-group/index.js +8 -8
  398. package/packages/col/index.js +9 -9
  399. package/packages/col/src/col.js +71 -71
  400. package/packages/collapse/index.js +9 -9
  401. package/packages/collapse/src/collapse-item.vue +114 -114
  402. package/packages/collapse/src/collapse.vue +73 -73
  403. package/packages/collapse-item/index.js +8 -8
  404. package/packages/color-picker/index.js +8 -8
  405. package/packages/color-picker/src/color.js +317 -317
  406. package/packages/color-picker/src/components/alpha-slider.vue +132 -132
  407. package/packages/color-picker/src/components/hue-slider.vue +123 -123
  408. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  409. package/packages/color-picker/src/components/predefine.vue +61 -61
  410. package/packages/color-picker/src/components/sv-panel.vue +100 -100
  411. package/packages/color-picker/src/draggable.js +36 -36
  412. package/packages/color-picker/src/main.vue +188 -188
  413. package/packages/container/index.js +8 -8
  414. package/packages/container/src/main.vue +33 -33
  415. package/packages/date-picker/index.js +8 -8
  416. package/packages/date-picker/src/basic/date-table.vue +441 -441
  417. package/packages/date-picker/src/basic/month-table.vue +268 -268
  418. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  419. package/packages/date-picker/src/basic/year-table.vue +111 -111
  420. package/packages/date-picker/src/panel/date-range.vue +680 -680
  421. package/packages/date-picker/src/panel/date.vue +609 -609
  422. package/packages/date-picker/src/panel/month-range.vue +289 -289
  423. package/packages/date-picker/src/panel/time-range.vue +248 -248
  424. package/packages/date-picker/src/panel/time-select.vue +178 -178
  425. package/packages/date-picker/src/panel/time.vue +186 -186
  426. package/packages/date-picker/src/picker/date-picker.js +43 -43
  427. package/packages/date-picker/src/picker/time-picker.js +39 -39
  428. package/packages/date-picker/src/picker/time-select.js +21 -21
  429. package/packages/date-picker/src/picker.vue +956 -956
  430. package/packages/descriptions/index.js +8 -8
  431. package/packages/descriptions/src/descriptions-item.js +30 -30
  432. package/packages/descriptions/src/descriptions-row.js +116 -116
  433. package/packages/descriptions/src/index.js +180 -180
  434. package/packages/descriptions-item/index.js +8 -8
  435. package/packages/dialog/index.js +8 -8
  436. package/packages/dialog/src/component.vue +212 -212
  437. package/packages/divider/index.js +8 -8
  438. package/packages/divider/src/main.vue +37 -37
  439. package/packages/drawer/index.js +8 -8
  440. package/packages/drawer/src/main.vue +205 -205
  441. package/packages/dropdown/index.js +8 -8
  442. package/packages/dropdown/src/dropdown-item.vue +37 -37
  443. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  444. package/packages/dropdown/src/dropdown.vue +293 -293
  445. package/packages/dropdown-item/index.js +8 -8
  446. package/packages/dropdown-menu/index.js +8 -8
  447. package/packages/empty/index.js +7 -7
  448. package/packages/empty/src/img-empty.vue +132 -132
  449. package/packages/empty/src/index.vue +50 -50
  450. package/packages/footer/index.js +8 -8
  451. package/packages/footer/src/main.vue +20 -20
  452. package/packages/form/index.js +8 -8
  453. package/packages/form/src/form-item.vue +324 -324
  454. package/packages/form/src/form.vue +182 -182
  455. package/packages/form/src/label-wrap.vue +78 -78
  456. package/packages/form-item/index.js +8 -8
  457. package/packages/header/index.js +8 -8
  458. package/packages/header/src/main.vue +20 -20
  459. package/packages/icon/index.js +8 -8
  460. package/packages/icon/src/icon.vue +13 -13
  461. package/packages/image/index.js +8 -8
  462. package/packages/image/src/image-viewer.vue +330 -330
  463. package/packages/image/src/main.vue +249 -249
  464. package/packages/infinite-scroll/index.js +8 -8
  465. package/packages/infinite-scroll/src/main.js +148 -148
  466. package/packages/input/index.js +8 -8
  467. package/packages/input/src/calcTextareaHeight.js +104 -104
  468. package/packages/input/src/input.vue +440 -440
  469. package/packages/input-number/index.js +8 -8
  470. package/packages/input-number/src/input-number.vue +283 -283
  471. package/packages/link/index.js +8 -8
  472. package/packages/link/src/main.vue +53 -53
  473. package/packages/loading/index.js +11 -11
  474. package/packages/loading/src/directive.js +133 -133
  475. package/packages/loading/src/index.js +106 -106
  476. package/packages/loading/src/loading.vue +41 -41
  477. package/packages/main/index.js +8 -8
  478. package/packages/main/src/main.vue +12 -12
  479. package/packages/menu/index.js +8 -8
  480. package/packages/menu/src/menu-item-group.vue +45 -45
  481. package/packages/menu/src/menu-item.vue +112 -112
  482. package/packages/menu/src/menu-mixin.js +44 -44
  483. package/packages/menu/src/menu.vue +325 -325
  484. package/packages/menu/src/submenu.vue +348 -348
  485. package/packages/menu-item/index.js +8 -8
  486. package/packages/menu-item-group/index.js +8 -8
  487. package/packages/message/index.js +2 -2
  488. package/packages/message/src/main.js +91 -91
  489. package/packages/message/src/main.vue +117 -117
  490. package/packages/message-box/index.js +2 -2
  491. package/packages/message-box/src/main.js +216 -216
  492. package/packages/message-box/src/main.vue +332 -332
  493. package/packages/notification/index.js +2 -2
  494. package/packages/notification/src/main.js +94 -94
  495. package/packages/notification/src/main.vue +152 -152
  496. package/packages/option/index.js +8 -8
  497. package/packages/option-group/index.js +8 -8
  498. package/packages/page-header/index.js +8 -8
  499. package/packages/page-header/src/main.vue +30 -30
  500. package/packages/pagination/index.js +8 -8
  501. package/packages/pagination/src/pager.vue +163 -163
  502. package/packages/pagination/src/pagination.js +386 -386
  503. package/packages/popconfirm/index.js +8 -8
  504. package/packages/popconfirm/src/main.vue +104 -104
  505. package/packages/popover/index.js +14 -14
  506. package/packages/popover/src/directive.js +20 -20
  507. package/packages/popover/src/main.vue +237 -237
  508. package/packages/progress/index.js +8 -8
  509. package/packages/progress/src/progress.vue +235 -235
  510. package/packages/radio/index.js +8 -8
  511. package/packages/radio/src/radio-button.vue +115 -115
  512. package/packages/radio/src/radio-group.vue +113 -113
  513. package/packages/radio/src/radio.vue +134 -134
  514. package/packages/radio-button/index.js +8 -8
  515. package/packages/radio-group/index.js +8 -8
  516. package/packages/rate/index.js +8 -8
  517. package/packages/rate/src/main.vue +348 -348
  518. package/packages/result/index.js +8 -8
  519. package/packages/result/src/icon-error.vue +13 -13
  520. package/packages/result/src/icon-info.vue +13 -13
  521. package/packages/result/src/icon-success.vue +13 -13
  522. package/packages/result/src/icon-warning.vue +13 -13
  523. package/packages/result/src/index.vue +65 -65
  524. package/packages/row/index.js +9 -9
  525. package/packages/row/src/row.js +44 -44
  526. package/packages/scrollbar/index.js +8 -8
  527. package/packages/scrollbar/src/bar.js +92 -92
  528. package/packages/scrollbar/src/main.js +130 -130
  529. package/packages/scrollbar/src/util.js +34 -34
  530. package/packages/select/index.js +8 -8
  531. package/packages/select/src/navigation-mixin.js +54 -54
  532. package/packages/select/src/option-group.vue +60 -60
  533. package/packages/select/src/option.vue +168 -168
  534. package/packages/select/src/select-dropdown.vue +74 -74
  535. package/packages/select/src/select.vue +900 -900
  536. package/packages/skeleton/index.js +8 -8
  537. package/packages/skeleton/src/img-placeholder.vue +16 -16
  538. package/packages/skeleton/src/index.vue +76 -76
  539. package/packages/skeleton/src/item.vue +22 -22
  540. package/packages/skeleton-item/index.js +8 -8
  541. package/packages/slider/index.js +8 -8
  542. package/packages/slider/src/button.vue +238 -238
  543. package/packages/slider/src/main.vue +427 -427
  544. package/packages/slider/src/marker.js +18 -18
  545. package/packages/spinner/index.js +8 -8
  546. package/packages/spinner/src/spinner.vue +27 -27
  547. package/packages/statistic/index.js +8 -0
  548. package/packages/statistic/src/main.vue +203 -0
  549. package/packages/step/index.js +8 -8
  550. package/packages/steps/README.md +69 -69
  551. package/packages/steps/index.js +8 -8
  552. package/packages/steps/src/step.vue +184 -184
  553. package/packages/steps/src/steps.vue +68 -68
  554. package/packages/submenu/index.js +8 -8
  555. package/packages/switch/index.js +9 -9
  556. package/packages/switch/src/component.vue +174 -174
  557. package/packages/tab-pane/index.js +8 -8
  558. package/packages/table/index.js +8 -8
  559. package/packages/table/src/config.js +124 -124
  560. package/packages/table/src/dropdown.js +28 -28
  561. package/packages/table/src/filter-panel.vue +194 -194
  562. package/packages/table/src/layout-observer.js +68 -68
  563. package/packages/table/src/store/current.js +76 -76
  564. package/packages/table/src/store/expand.js +65 -65
  565. package/packages/table/src/store/helper.js +41 -41
  566. package/packages/table/src/store/index.js +147 -147
  567. package/packages/table/src/store/tree.js +209 -209
  568. package/packages/table/src/store/watcher.js +381 -381
  569. package/packages/table/src/table-body.js +469 -469
  570. package/packages/table/src/table-column.js +319 -319
  571. package/packages/table/src/table-footer.js +153 -153
  572. package/packages/table/src/table-header.js +511 -511
  573. package/packages/table/src/table-layout.js +249 -249
  574. package/packages/table/src/table-row.js +101 -101
  575. package/packages/table/src/table.vue +712 -712
  576. package/packages/table/src/util.js +273 -273
  577. package/packages/table-column/index.js +8 -8
  578. package/packages/tabs/index.js +8 -8
  579. package/packages/tabs/src/tab-bar.vue +57 -57
  580. package/packages/tabs/src/tab-nav.vue +294 -294
  581. package/packages/tabs/src/tab-pane.vue +56 -56
  582. package/packages/tabs/src/tabs.vue +191 -191
  583. package/packages/tag/index.js +8 -8
  584. package/packages/tag/src/tag.vue +58 -58
  585. package/packages/theme-chalk/README.md +33 -33
  586. package/packages/theme-chalk/package.json +35 -35
  587. package/packages/theme-chalk/src/alert.scss +147 -147
  588. package/packages/theme-chalk/src/aside.scss +7 -7
  589. package/packages/theme-chalk/src/autocomplete.scss +80 -80
  590. package/packages/theme-chalk/src/avatar.scss +51 -51
  591. package/packages/theme-chalk/src/backtop.scss +22 -22
  592. package/packages/theme-chalk/src/badge.scss +57 -57
  593. package/packages/theme-chalk/src/base.scss +2 -2
  594. package/packages/theme-chalk/src/breadcrumb.scss +55 -55
  595. package/packages/theme-chalk/src/button.scss +262 -262
  596. package/packages/theme-chalk/src/calendar.scss +79 -79
  597. package/packages/theme-chalk/src/card.scss +32 -32
  598. package/packages/theme-chalk/src/carousel-item.scss +50 -50
  599. package/packages/theme-chalk/src/carousel.scss +161 -161
  600. package/packages/theme-chalk/src/cascader-panel.scss +120 -120
  601. package/packages/theme-chalk/src/cascader.scss +182 -182
  602. package/packages/theme-chalk/src/checkbox.scss +359 -359
  603. package/packages/theme-chalk/src/col.scss +156 -156
  604. package/packages/theme-chalk/src/collapse.scss +63 -63
  605. package/packages/theme-chalk/src/color-picker.scss +384 -384
  606. package/packages/theme-chalk/src/common/popup.scss +42 -42
  607. package/packages/theme-chalk/src/common/transition.scss +99 -99
  608. package/packages/theme-chalk/src/common/var.scss +1028 -1028
  609. package/packages/theme-chalk/src/container.scss +14 -14
  610. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
  611. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  612. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
  613. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
  614. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  615. package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
  616. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
  617. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  618. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  619. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
  620. package/packages/theme-chalk/src/date-picker.scss +11 -11
  621. package/packages/theme-chalk/src/descriptions-item.scss +42 -42
  622. package/packages/theme-chalk/src/descriptions.scss +111 -111
  623. package/packages/theme-chalk/src/dialog.scss +123 -123
  624. package/packages/theme-chalk/src/display.scss +12 -12
  625. package/packages/theme-chalk/src/divider.scss +47 -47
  626. package/packages/theme-chalk/src/drawer.scss +219 -219
  627. package/packages/theme-chalk/src/dropdown.scss +182 -182
  628. package/packages/theme-chalk/src/empty.scss +45 -45
  629. package/packages/theme-chalk/src/footer.scss +8 -8
  630. package/packages/theme-chalk/src/form.scss +167 -167
  631. package/packages/theme-chalk/src/header.scss +8 -8
  632. package/packages/theme-chalk/src/icon.scss +1167 -1167
  633. package/packages/theme-chalk/src/image.scss +179 -179
  634. package/packages/theme-chalk/src/index.scss +90 -89
  635. package/packages/theme-chalk/src/input-number.scss +180 -180
  636. package/packages/theme-chalk/src/input.scss +360 -360
  637. package/packages/theme-chalk/src/link.scss +81 -81
  638. package/packages/theme-chalk/src/loading.scss +96 -96
  639. package/packages/theme-chalk/src/main.scss +12 -12
  640. package/packages/theme-chalk/src/menu.scss +289 -289
  641. package/packages/theme-chalk/src/message-box.scss +226 -226
  642. package/packages/theme-chalk/src/message.scss +120 -120
  643. package/packages/theme-chalk/src/mixins/_button.scss +81 -81
  644. package/packages/theme-chalk/src/mixins/config.scss +4 -4
  645. package/packages/theme-chalk/src/mixins/function.scss +44 -44
  646. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  647. package/packages/theme-chalk/src/mixins/utils.scss +39 -39
  648. package/packages/theme-chalk/src/notification.scss +99 -99
  649. package/packages/theme-chalk/src/option-group.scss +42 -42
  650. package/packages/theme-chalk/src/option.scss +36 -36
  651. package/packages/theme-chalk/src/page-header.scss +41 -41
  652. package/packages/theme-chalk/src/pagination.scss +295 -295
  653. package/packages/theme-chalk/src/popconfirm.scss +16 -16
  654. package/packages/theme-chalk/src/popover.scss +40 -40
  655. package/packages/theme-chalk/src/popper.scss +101 -101
  656. package/packages/theme-chalk/src/progress.scss +141 -141
  657. package/packages/theme-chalk/src/radio-button.scss +113 -113
  658. package/packages/theme-chalk/src/radio-group.scss +9 -9
  659. package/packages/theme-chalk/src/radio.scss +199 -199
  660. package/packages/theme-chalk/src/rate.scss +49 -49
  661. package/packages/theme-chalk/src/reset.scss +79 -79
  662. package/packages/theme-chalk/src/result.scss +61 -61
  663. package/packages/theme-chalk/src/row.scss +43 -43
  664. package/packages/theme-chalk/src/scrollbar.scss +72 -72
  665. package/packages/theme-chalk/src/select-dropdown.scss +62 -62
  666. package/packages/theme-chalk/src/select.scss +152 -152
  667. package/packages/theme-chalk/src/skeleton-item.scss +84 -84
  668. package/packages/theme-chalk/src/skeleton.scss +40 -40
  669. package/packages/theme-chalk/src/slider.scss +250 -250
  670. package/packages/theme-chalk/src/spinner.scss +44 -44
  671. package/packages/theme-chalk/src/statistic.scss +38 -0
  672. package/packages/theme-chalk/src/step.scss +317 -317
  673. package/packages/theme-chalk/src/steps.scss +20 -20
  674. package/packages/theme-chalk/src/switch.scss +116 -116
  675. package/packages/theme-chalk/src/table-column.scss +97 -97
  676. package/packages/theme-chalk/src/table.scss +564 -564
  677. package/packages/theme-chalk/src/tabs.scss +602 -602
  678. package/packages/theme-chalk/src/tag.scss +163 -163
  679. package/packages/theme-chalk/src/time-picker.scss +8 -8
  680. package/packages/theme-chalk/src/time-select.scss +37 -37
  681. package/packages/theme-chalk/src/timeline-item.scss +86 -86
  682. package/packages/theme-chalk/src/timeline.scss +14 -14
  683. package/packages/theme-chalk/src/tooltip.scss +141 -141
  684. package/packages/theme-chalk/src/transfer.scss +227 -227
  685. package/packages/theme-chalk/src/tree.scss +123 -123
  686. package/packages/theme-chalk/src/upload.scss +603 -603
  687. package/packages/theme-cy/README.md +38 -38
  688. package/packages/theme-cy/package.json +35 -35
  689. package/packages/theme-cy/src/index.scss +1 -1
  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/upload/index.js +8 -8
  708. package/packages/upload/src/ajax.js +85 -85
  709. package/packages/upload/src/index.vue +338 -338
  710. package/packages/upload/src/upload-dragger.vue +70 -70
  711. package/packages/upload/src/upload-list.vue +105 -105
  712. package/packages/upload/src/upload.vue +211 -211
  713. package/src/directives/mousewheel.js +18 -18
  714. package/src/directives/repeat-click.js +26 -26
  715. package/src/index.js +4 -1
  716. package/src/locale/format.js +44 -44
  717. package/src/locale/index.js +48 -48
  718. package/src/locale/lang/af-ZA.js +123 -123
  719. package/src/locale/lang/ar.js +122 -122
  720. package/src/locale/lang/az.js +126 -126
  721. package/src/locale/lang/bg.js +123 -123
  722. package/src/locale/lang/bn.js +126 -126
  723. package/src/locale/lang/ca.js +122 -122
  724. package/src/locale/lang/cs-CZ.js +125 -125
  725. package/src/locale/lang/da.js +122 -122
  726. package/src/locale/lang/de.js +124 -124
  727. package/src/locale/lang/ee.js +123 -123
  728. package/src/locale/lang/el.js +123 -123
  729. package/src/locale/lang/en.js +123 -123
  730. package/src/locale/lang/eo.js +123 -123
  731. package/src/locale/lang/es.js +122 -122
  732. package/src/locale/lang/eu.js +123 -123
  733. package/src/locale/lang/fa.js +123 -123
  734. package/src/locale/lang/fi.js +123 -123
  735. package/src/locale/lang/fr.js +122 -122
  736. package/src/locale/lang/he.js +123 -123
  737. package/src/locale/lang/hr.js +123 -123
  738. package/src/locale/lang/hu.js +122 -122
  739. package/src/locale/lang/hy-AM.js +123 -123
  740. package/src/locale/lang/id.js +123 -123
  741. package/src/locale/lang/is.js +124 -124
  742. package/src/locale/lang/it.js +122 -122
  743. package/src/locale/lang/ja.js +123 -123
  744. package/src/locale/lang/kg.js +123 -123
  745. package/src/locale/lang/km.js +123 -123
  746. package/src/locale/lang/ko.js +123 -123
  747. package/src/locale/lang/ku.js +123 -123
  748. package/src/locale/lang/kz.js +123 -123
  749. package/src/locale/lang/lo-LA.js +126 -126
  750. package/src/locale/lang/lt.js +123 -123
  751. package/src/locale/lang/lv.js +123 -123
  752. package/src/locale/lang/mn.js +123 -123
  753. package/src/locale/lang/ms.js +122 -122
  754. package/src/locale/lang/nb-NO.js +122 -122
  755. package/src/locale/lang/nl.js +123 -123
  756. package/src/locale/lang/pl.js +123 -123
  757. package/src/locale/lang/pt-br.js +123 -123
  758. package/src/locale/lang/pt.js +123 -123
  759. package/src/locale/lang/ro.js +123 -123
  760. package/src/locale/lang/ru-RU.js +123 -123
  761. package/src/locale/lang/si.js +123 -123
  762. package/src/locale/lang/sk.js +125 -125
  763. package/src/locale/lang/sl.js +123 -123
  764. package/src/locale/lang/sr-Latn.js +123 -123
  765. package/src/locale/lang/sr.js +123 -123
  766. package/src/locale/lang/sv-SE.js +123 -123
  767. package/src/locale/lang/ta.js +122 -122
  768. package/src/locale/lang/th.js +123 -123
  769. package/src/locale/lang/tk.js +123 -123
  770. package/src/locale/lang/tr-TR.js +123 -123
  771. package/src/locale/lang/ua.js +123 -123
  772. package/src/locale/lang/ug-CN.js +123 -123
  773. package/src/locale/lang/uz-UZ.js +123 -123
  774. package/src/locale/lang/vi.js +123 -123
  775. package/src/locale/lang/zh-CN.js +123 -123
  776. package/src/locale/lang/zh-TW.js +123 -123
  777. package/src/mixins/emitter.js +33 -33
  778. package/src/mixins/focus.js +9 -9
  779. package/src/mixins/locale.js +9 -9
  780. package/src/mixins/migrating.js +54 -54
  781. package/src/transitions/collapse-transition.js +77 -77
  782. package/src/utils/after-leave.js +27 -27
  783. package/src/utils/aria-dialog.js +90 -90
  784. package/src/utils/aria-utils.js +122 -122
  785. package/src/utils/clickoutside.js +76 -76
  786. package/src/utils/date-util.js +282 -282
  787. package/src/utils/date.js +368 -2
  788. package/src/utils/dom.js +227 -227
  789. package/src/utils/lodash.js +18075 -9
  790. package/src/utils/menu/aria-menubar.js +14 -14
  791. package/src/utils/menu/aria-menuitem.js +49 -49
  792. package/src/utils/menu/aria-submenu.js +59 -59
  793. package/src/utils/merge.js +15 -15
  794. package/src/utils/popper.js +1276 -1276
  795. package/src/utils/popup/index.js +218 -218
  796. package/src/utils/popup/popup-manager.js +194 -194
  797. package/src/utils/resize-event.js +36 -36
  798. package/src/utils/scroll-into-view.js +27 -27
  799. package/src/utils/scrollbar-width.js +29 -29
  800. package/src/utils/shared.js +7 -7
  801. package/src/utils/types.js +40 -40
  802. package/src/utils/util.js +245 -245
  803. package/src/utils/vdom.js +5 -5
  804. package/src/utils/vue-popper.js +198 -198
  805. package/types/alert.d.ts +31 -31
  806. package/types/aside.d.ts +7 -7
  807. package/types/autocomplete.d.ts +78 -78
  808. package/types/avatar.d.ts +20 -20
  809. package/types/backtop.d.ts +16 -16
  810. package/types/badge.d.ts +16 -16
  811. package/types/breadcrumb-item.d.ts +10 -10
  812. package/types/breadcrumb.d.ts +10 -10
  813. package/types/button-group.d.ts +4 -4
  814. package/types/button.d.ts +37 -37
  815. package/types/calendar.d.ts +15 -15
  816. package/types/card.d.ts +26 -26
  817. package/types/carousel-item.d.ts +10 -10
  818. package/types/carousel.d.ts +57 -57
  819. package/types/cascader-panel.d.ts +72 -72
  820. package/types/cascader.d.ts +65 -65
  821. package/types/checkbox-button.d.ts +22 -22
  822. package/types/checkbox-group.d.ts +22 -22
  823. package/types/checkbox.d.ts +34 -34
  824. package/types/col.d.ts +46 -46
  825. package/types/collapse-item.d.ts +26 -26
  826. package/types/collapse.d.ts +10 -10
  827. package/types/color-picker.d.ts +21 -21
  828. package/types/component.d.ts +13 -13
  829. package/types/container.d.ts +7 -7
  830. package/types/date-picker.d.ts +124 -124
  831. package/types/descriptions-item.d.ts +37 -37
  832. package/types/descriptions.d.ts +52 -52
  833. package/types/dialog.d.ts +62 -62
  834. package/types/divider.d.ts +12 -12
  835. package/types/drawer.d.ts +63 -63
  836. package/types/dropdown-item.d.ts +16 -16
  837. package/types/dropdown-menu.d.ts +4 -4
  838. package/types/dropdown.d.ts +38 -38
  839. package/types/element-ui.d.ts +9 -9
  840. package/types/empty.d.ts +31 -31
  841. package/types/footer.d.ts +7 -7
  842. package/types/form-item.d.ts +37 -37
  843. package/types/form.d.ts +82 -82
  844. package/types/header.d.ts +7 -7
  845. package/types/icon.d.ts +7 -7
  846. package/types/image.d.ts +43 -43
  847. package/types/index.d.ts +4 -4
  848. package/types/infinite-scroll.d.ts +5 -5
  849. package/types/input-number.d.ts +47 -47
  850. package/types/input.d.ts +107 -107
  851. package/types/link.d.ts +25 -25
  852. package/types/loading.d.ts +62 -62
  853. package/types/main.d.ts +4 -4
  854. package/types/menu-item-group.d.ts +7 -7
  855. package/types/menu-item.d.ts +10 -10
  856. package/types/menu.d.ts +46 -46
  857. package/types/message-box.d.ts +176 -176
  858. package/types/message.d.ts +90 -90
  859. package/types/notification.d.ts +84 -84
  860. package/types/option-group.d.ts +10 -10
  861. package/types/option.d.ts +13 -13
  862. package/types/page-header.d.ts +10 -10
  863. package/types/pagination.d.ts +43 -43
  864. package/types/popconfirm.d.ts +29 -29
  865. package/types/popover.d.ts +71 -71
  866. package/types/progress.d.ts +37 -37
  867. package/types/radio-button.d.ts +16 -16
  868. package/types/radio-group.d.ts +18 -18
  869. package/types/radio.d.ts +19 -19
  870. package/types/rate.d.ts +64 -64
  871. package/types/result.d.ts +33 -33
  872. package/types/row.d.ts +25 -25
  873. package/types/select.d.ts +90 -90
  874. package/types/skeleton-item.d.ts +7 -7
  875. package/types/skeleton.d.ts +33 -33
  876. package/types/slider.d.ts +68 -68
  877. package/types/spinner.d.ts +16 -16
  878. package/types/statistic.d.ts +37 -0
  879. package/types/step.d.ts +34 -34
  880. package/types/steps.d.ts +28 -28
  881. package/types/submenu.d.ts +22 -22
  882. package/types/switch.d.ts +43 -43
  883. package/types/tab-pane.d.ts +19 -19
  884. package/types/table-column.d.ts +117 -117
  885. package/types/table.d.ts +177 -177
  886. package/types/tabs.d.ts +31 -31
  887. package/types/tag.d.ts +28 -28
  888. package/types/time-picker.d.ts +63 -63
  889. package/types/time-select.d.ts +56 -56
  890. package/types/timeline-item.d.ts +20 -20
  891. package/types/timeline.d.ts +6 -6
  892. package/types/tooltip.d.ts +52 -52
  893. package/types/transfer.d.ts +73 -73
  894. package/types/tree.d.ts +266 -266
  895. package/types/upload.d.ts +124 -124
  896. package/web-types.json +4195 -4195
  897. package/lib/utils/date_source.js +0 -335
  898. package/lib/utils/lodash_source.js +0 -9421
  899. package/src/utils/date_source.js +0 -352
  900. package/src/utils/lodash_source.js +0 -18090
  901. /package/packages/theme-cy/lib/{treeselect.css → treeSelect.css} +0 -0
  902. /package/packages/theme-cy/src/{treeselect.scss → treeSelect.scss} +0 -0
package/lib/transfer.js CHANGED
@@ -82,2573 +82,177 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 142);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 69);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ([
89
- /* 0 */
90
- /***/ (function(module, exports) {
91
-
92
- module.exports = require("vue");
88
+ /******/ ({
93
89
 
94
- /***/ }),
95
- /* 1 */,
96
- /* 2 */
90
+ /***/ 0:
97
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
98
92
 
99
93
  "use strict";
100
94
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
101
95
  /* globals __VUE_SSR_CONTEXT__ */
102
96
 
103
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
104
- // This module is a runtime utility for cleaner component module output and will
105
- // be included in the final webpack user bundle.
106
-
107
- function normalizeComponent(
108
- scriptExports,
109
- render,
110
- staticRenderFns,
111
- functionalTemplate,
112
- injectStyles,
113
- scopeId,
114
- moduleIdentifier /* server only */,
115
- shadowMode /* vue-cli only */
116
- ) {
117
- // Vue.extend constructor export interop
118
- var options =
119
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
120
-
121
- // render functions
122
- if (render) {
123
- options.render = render
124
- options.staticRenderFns = staticRenderFns
125
- options._compiled = true
126
- }
127
-
128
- // functional template
129
- if (functionalTemplate) {
130
- options.functional = true
131
- }
132
-
133
- // scopedId
134
- if (scopeId) {
135
- options._scopeId = 'data-v-' + scopeId
136
- }
137
-
138
- var hook
139
- if (moduleIdentifier) {
140
- // server build
141
- hook = function (context) {
142
- // 2.3 injection
143
- context =
144
- context || // cached call
145
- (this.$vnode && this.$vnode.ssrContext) || // stateful
146
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
147
- // 2.2 with runInNewContext: true
148
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
149
- context = __VUE_SSR_CONTEXT__
150
- }
151
- // inject component styles
152
- if (injectStyles) {
153
- injectStyles.call(this, context)
154
- }
155
- // register component module identifier for async chunk inferrence
156
- if (context && context._registeredComponents) {
157
- context._registeredComponents.add(moduleIdentifier)
158
- }
159
- }
160
- // used by ssr in case component is cached and beforeCreate
161
- // never gets called
162
- options._ssrRegister = hook
163
- } else if (injectStyles) {
164
- hook = shadowMode
165
- ? function () {
166
- injectStyles.call(
167
- this,
168
- (options.functional ? this.parent : this).$root.$options.shadowRoot
169
- )
170
- }
171
- : injectStyles
172
- }
173
-
174
- if (hook) {
175
- if (options.functional) {
176
- // for template-only hot-reload because in that case the render fn doesn't
177
- // go through the normalizer
178
- options._injectStyles = hook
179
- // register for functional component in vue file
180
- var originalRender = options.render
181
- options.render = function renderWithStyleInjection(h, context) {
182
- hook.call(context)
183
- return originalRender(h, context)
184
- }
185
- } else {
186
- // inject component registration as beforeCreate hook
187
- var existing = options.beforeCreate
188
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
189
- }
190
- }
191
-
192
- return {
193
- exports: scriptExports,
194
- options: options
195
- }
196
- }
197
-
198
-
199
- /***/ }),
200
- /* 3 */
201
- /***/ (function(module, exports) {
202
-
203
- module.exports = require("core-js/modules/es.object.to-string.js");
204
-
205
- /***/ }),
206
- /* 4 */
207
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
208
-
209
- "use strict";
210
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
211
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
212
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
213
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
214
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
215
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
216
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
217
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
218
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
219
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
220
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
221
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
222
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
223
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
224
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
225
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
226
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
227
- /* unused harmony export looseEqual */
228
- /* unused harmony export arrayEquals */
229
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
230
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
231
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
232
- /* unused harmony export objToArray */
233
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
234
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(13);
235
- /* 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__);
236
- /* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
237
- /* 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__);
238
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17);
239
- /* 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__);
240
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
241
- /* 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__);
242
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(7);
243
- /* 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__);
244
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11);
245
- /* 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__);
246
- /* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(16);
247
- /* 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__);
248
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12);
249
- /* 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__);
250
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(0);
251
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_8__);
252
- /* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8);
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
- var hasOwnProperty = Object.prototype.hasOwnProperty;
264
- function noop() {}
265
- ;
266
- function hasOwn(obj, key) {
267
- return hasOwnProperty.call(obj, key);
268
- }
269
- ;
270
- function extend(to, _from) {
271
- for (var key in _from) {
272
- to[key] = _from[key];
273
- }
274
- return to;
275
- }
276
- ;
277
- function toObject(arr) {
278
- var res = {};
279
- for (var i = 0; i < arr.length; i++) {
280
- if (arr[i]) {
281
- extend(res, arr[i]);
282
- }
283
- }
284
- return res;
285
- }
286
- ;
287
- var getValueByPath = function getValueByPath(object, prop) {
288
- prop = prop || '';
289
- var paths = prop.split('.');
290
- var current = object;
291
- var result = null;
292
- for (var i = 0, j = paths.length; i < j; i++) {
293
- var path = paths[i];
294
- if (!current) break;
295
- if (i === j - 1) {
296
- result = current[path];
297
- break;
298
- }
299
- current = current[path];
300
- }
301
- return result;
302
- };
303
- function getPropByPath(obj, path, strict) {
304
- var tempObj = obj;
305
- path = path.replace(/\[(\w+)\]/g, '.$1');
306
- path = path.replace(/^\./, '');
307
- var keyArr = path.split('.');
308
- var i = 0;
309
- for (var len = keyArr.length; i < len - 1; ++i) {
310
- if (!tempObj && !strict) break;
311
- var key = keyArr[i];
312
- if (key in tempObj) {
313
- tempObj = tempObj[key];
314
- } else {
315
- if (strict) {
316
- throw new Error('please transfer a valid prop path to form item!');
317
- }
318
- break;
319
- }
320
- }
321
- return {
322
- o: tempObj,
323
- k: keyArr[i],
324
- v: tempObj ? tempObj[keyArr[i]] : null
325
- };
326
- }
327
- ;
328
- var generateId = function generateId() {
329
- return Math.floor(Math.random() * 10000);
330
- };
331
- var valueEquals = function valueEquals(a, b) {
332
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
333
- if (a === b) return true;
334
- if (!(a instanceof Array)) return false;
335
- if (!(b instanceof Array)) return false;
336
- if (a.length !== b.length) return false;
337
- for (var i = 0; i !== a.length; ++i) {
338
- if (a[i] !== b[i]) return false;
339
- }
340
- return true;
341
- };
342
- var escapeRegexpString = function escapeRegexpString(value) {
343
- if (value === void 0) {
344
- value = '';
345
- }
346
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
347
- };
348
-
349
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
350
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
351
- for (var i = 0; i !== arr.length; ++i) {
352
- if (pred(arr[i])) {
353
- return i;
354
- }
355
- }
356
- return -1;
357
- };
358
- var arrayFind = function arrayFind(arr, pred) {
359
- var idx = arrayFindIndex(arr, pred);
360
- return idx !== -1 ? arr[idx] : undefined;
361
- };
362
-
363
- // coerce truthy value to array
364
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
365
- if (Array.isArray(val)) {
366
- return val;
367
- } else if (val) {
368
- return [val];
369
- } else {
370
- return [];
371
- }
372
- };
373
- var isIE = function isIE() {
374
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
375
- };
376
- var isEdge = function isEdge() {
377
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
378
- };
379
- var isFirefox = function isFirefox() {
380
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
381
- };
382
- var autoprefixer = function autoprefixer(style) {
383
- if (typeof style !== 'object') return style;
384
- var rules = ['transform', 'transition', 'animation'];
385
- var prefixes = ['ms-', 'webkit-'];
386
- rules.forEach(function (rule) {
387
- var value = style[rule];
388
- if (rule && value) {
389
- prefixes.forEach(function (prefix) {
390
- style[prefix + rule] = value;
391
- });
392
- }
393
- });
394
- return style;
395
- };
396
- var kebabCase = function kebabCase(str) {
397
- var hyphenateRE = /([^-])([A-Z])/g;
398
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
399
- };
400
- var capitalize = function capitalize(str) {
401
- if (!Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isString */ "e"])(str)) return str;
402
- return str.charAt(0).toUpperCase() + str.slice(1);
403
- };
404
- var looseEqual = function looseEqual(a, b) {
405
- var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(a);
406
- var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_9__[/* isObject */ "d"])(b);
407
- if (isObjectA && isObjectB) {
408
- return JSON.stringify(a) === JSON.stringify(b);
409
- } else if (!isObjectA && !isObjectB) {
410
- return String(a) === String(b);
411
- } else {
412
- return false;
413
- }
414
- };
415
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
416
- arrayA = arrayA || [];
417
- arrayB = arrayB || [];
418
- if (arrayA.length !== arrayB.length) {
419
- return false;
420
- }
421
- for (var i = 0; i < arrayA.length; i++) {
422
- if (!looseEqual(arrayA[i], arrayB[i])) {
423
- return false;
424
- }
425
- }
426
- return true;
427
- };
428
- var isEqual = function isEqual(value1, value2) {
429
- if (Array.isArray(value1) && Array.isArray(value2)) {
430
- return arrayEquals(value1, value2);
431
- }
432
- return looseEqual(value1, value2);
433
- };
434
- var isEmpty = function isEmpty(val) {
435
- // null or undefined
436
- if (val == null) return true;
437
- if (typeof val === 'boolean') return false;
438
- if (typeof val === 'number') return !val;
439
- if (val instanceof Error) return val.message === '';
440
- switch (Object.prototype.toString.call(val)) {
441
- // String or Array
442
- case '[object String]':
443
- case '[object Array]':
444
- return !val.length;
445
-
446
- // Map or Set or File
447
- case '[object File]':
448
- case '[object Map]':
449
- case '[object Set]':
450
- {
451
- return !val.size;
452
- }
453
- // Plain Object
454
- case '[object Object]':
455
- {
456
- return !Object.keys(val).length;
457
- }
458
- }
459
- return false;
460
- };
461
- function rafThrottle(fn) {
462
- var locked = false;
463
- return function () {
464
- var _this = this;
465
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
466
- args[_key] = arguments[_key];
467
- }
468
- if (locked) return;
469
- locked = true;
470
- window.requestAnimationFrame(function (_) {
471
- fn.apply(_this, args);
472
- locked = false;
473
- });
474
- };
475
- }
476
- function objToArray(obj) {
477
- if (Array.isArray(obj)) {
478
- return obj;
479
- }
480
- return isEmpty(obj) ? [] : [obj];
481
- }
482
- var isMac = function isMac() {
483
- return !vue__WEBPACK_IMPORTED_MODULE_8___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
484
- };
485
-
486
- /***/ }),
487
- /* 5 */
488
- /***/ (function(module, exports) {
489
-
490
- module.exports = require("core-js/modules/es.function.name.js");
491
-
492
- /***/ }),
493
- /* 6 */
494
- /***/ (function(module, exports) {
495
-
496
- module.exports = require("core-js/modules/es.number.constructor.js");
497
-
498
- /***/ }),
499
- /* 7 */
500
- /***/ (function(module, exports) {
501
-
502
- module.exports = require("core-js/modules/es.regexp.exec.js");
503
-
504
- /***/ }),
505
- /* 8 */
506
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
507
-
508
- "use strict";
509
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
510
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
511
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
512
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
513
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
514
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
515
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19);
516
- /* 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__);
517
- /* harmony import */ var core_js_modules_es_array_buffer_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(25);
518
- /* 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__);
519
- /* harmony import */ var core_js_modules_es_array_buffer_slice_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
520
- /* 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__);
521
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3);
522
- /* 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__);
523
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11);
524
- /* 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__);
525
- /* harmony import */ var core_js_modules_es_typed_array_int8_array_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(27);
526
- /* 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__);
527
- /* harmony import */ var core_js_modules_es_typed_array_copy_within_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(28);
528
- /* 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__);
529
- /* harmony import */ var core_js_modules_es_typed_array_every_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(29);
530
- /* 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__);
531
- /* harmony import */ var core_js_modules_es_typed_array_fill_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(30);
532
- /* 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__);
533
- /* harmony import */ var core_js_modules_es_typed_array_filter_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(31);
534
- /* 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__);
535
- /* harmony import */ var core_js_modules_es_typed_array_find_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(32);
536
- /* 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__);
537
- /* harmony import */ var core_js_modules_es_typed_array_find_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(33);
538
- /* 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__);
539
- /* harmony import */ var core_js_modules_es_typed_array_for_each_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(34);
540
- /* 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__);
541
- /* harmony import */ var core_js_modules_es_typed_array_includes_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(35);
542
- /* 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__);
543
- /* harmony import */ var core_js_modules_es_typed_array_index_of_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(36);
544
- /* 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__);
545
- /* harmony import */ var core_js_modules_es_typed_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37);
546
- /* 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__);
547
- /* harmony import */ var core_js_modules_es_typed_array_join_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(38);
548
- /* 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__);
549
- /* harmony import */ var core_js_modules_es_typed_array_last_index_of_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(39);
550
- /* 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__);
551
- /* harmony import */ var core_js_modules_es_typed_array_map_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(40);
552
- /* 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__);
553
- /* harmony import */ var core_js_modules_es_typed_array_reduce_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(41);
554
- /* 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__);
555
- /* harmony import */ var core_js_modules_es_typed_array_reduce_right_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(42);
556
- /* 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__);
557
- /* harmony import */ var core_js_modules_es_typed_array_reverse_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(43);
558
- /* 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__);
559
- /* harmony import */ var core_js_modules_es_typed_array_set_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(44);
560
- /* 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__);
561
- /* harmony import */ var core_js_modules_es_typed_array_slice_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(45);
562
- /* 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__);
563
- /* harmony import */ var core_js_modules_es_typed_array_some_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(46);
564
- /* 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__);
565
- /* harmony import */ var core_js_modules_es_typed_array_sort_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(47);
566
- /* 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__);
567
- /* harmony import */ var core_js_modules_es_typed_array_subarray_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(48);
568
- /* 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__);
569
- /* harmony import */ var core_js_modules_es_typed_array_to_locale_string_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(49);
570
- /* 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__);
571
- /* harmony import */ var core_js_modules_es_typed_array_to_string_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(50);
572
- /* 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__);
573
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(0);
574
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_29__);
575
-
576
-
577
-
578
-
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
-
597
-
598
-
599
-
600
-
601
-
602
-
603
-
604
-
605
- function isString(obj) {
606
- return Object.prototype.toString.call(obj) === '[object String]';
607
- }
608
- function isObject(obj) {
609
- return Object.prototype.toString.call(obj) === '[object Object]';
610
- }
611
- function isHtmlElement(node) {
612
- return node && node.nodeType === Node.ELEMENT_NODE;
613
- }
614
-
615
- /**
616
- * - Inspired:
617
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
618
- */
619
- var isFunction = function isFunction(functionToCheck) {
620
- var getType = {};
621
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
622
- };
623
- if ( true && typeof Int8Array !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_29___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
624
- isFunction = function isFunction(obj) {
625
- return typeof obj === 'function' || false;
626
- };
627
- }
628
-
629
- var isUndefined = function isUndefined(val) {
630
- return val === void 0;
631
- };
632
- var isDefined = function isDefined(val) {
633
- return val !== undefined && val !== null;
634
- };
635
-
636
- /***/ }),
637
- /* 9 */,
638
- /* 10 */
639
- /***/ (function(module, exports) {
640
-
641
- module.exports = require("core-js/modules/web.dom-collections.for-each.js");
642
-
643
- /***/ }),
644
- /* 11 */
645
- /***/ (function(module, exports) {
646
-
647
- module.exports = require("core-js/modules/es.regexp.to-string.js");
648
-
649
- /***/ }),
650
- /* 12 */
651
- /***/ (function(module, exports) {
652
-
653
- module.exports = require("core-js/modules/es.string.replace.js");
654
-
655
- /***/ }),
656
- /* 13 */
657
- /***/ (function(module, exports) {
658
-
659
- module.exports = require("core-js/modules/es.array.slice.js");
660
-
661
- /***/ }),
662
- /* 14 */
663
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
664
-
665
- "use strict";
666
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21);
667
- /* 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__);
668
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
669
- /* 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__);
670
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10);
671
- /* 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__);
672
-
673
-
674
-
675
- function _broadcast(componentName, eventName, params) {
676
- this.$children.forEach(function (child) {
677
- var name = child.$options.componentName;
678
- if (name === componentName) {
679
- child.$emit.apply(child, [eventName].concat(params));
680
- } else {
681
- _broadcast.apply(child, [componentName, eventName].concat([params]));
682
- }
683
- });
684
- }
685
- /* harmony default export */ __webpack_exports__["a"] = ({
686
- methods: {
687
- dispatch: function dispatch(componentName, eventName, params) {
688
- var parent = this.$parent || this.$root;
689
- var name = parent.$options.componentName;
690
- while (parent && (!name || name !== componentName)) {
691
- parent = parent.$parent;
692
- if (parent) {
693
- name = parent.$options.componentName;
694
- }
695
- }
696
- if (parent) {
697
- parent.$emit.apply(parent, [eventName].concat(params));
698
- }
699
- },
700
- broadcast: function broadcast(componentName, eventName, params) {
701
- _broadcast.call(this, componentName, eventName, params);
702
- }
703
- }
704
- });
705
-
706
- /***/ }),
707
- /* 15 */
708
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
709
-
710
- "use strict";
711
- /* harmony default export */ __webpack_exports__["a"] = (function (target) {
712
- for (var i = 1, j = arguments.length; i < j; i++) {
713
- var source = arguments[i] || {};
714
- for (var prop in source) {
715
- if (source.hasOwnProperty(prop)) {
716
- var value = source[prop];
717
- if (value !== undefined) {
718
- target[prop] = value;
719
- }
720
- }
721
- }
722
- }
723
- return target;
724
- });
725
- ;
726
-
727
- /***/ }),
728
- /* 16 */
729
- /***/ (function(module, exports) {
730
-
731
- module.exports = require("core-js/modules/es.string.match.js");
732
-
733
- /***/ }),
734
- /* 17 */
735
- /***/ (function(module, exports) {
736
-
737
- module.exports = require("core-js/modules/es.object.keys.js");
738
-
739
- /***/ }),
740
- /* 18 */
741
- /***/ (function(module, exports) {
742
-
743
- module.exports = require("core-js/modules/es.array.filter.js");
744
-
745
- /***/ }),
746
- /* 19 */
747
- /***/ (function(module, exports) {
748
-
749
- module.exports = require("core-js/modules/es.array.iterator.js");
750
-
751
- /***/ }),
752
- /* 20 */
753
- /***/ (function(module, exports) {
754
-
755
- module.exports = require("core-js/modules/es.array.map.js");
756
-
757
- /***/ }),
758
- /* 21 */
759
- /***/ (function(module, exports) {
760
-
761
- module.exports = require("core-js/modules/es.array.concat.js");
762
-
763
- /***/ }),
764
- /* 22 */
765
- /***/ (function(module, exports) {
766
-
767
- module.exports = require("core-js/modules/es.array.splice.js");
768
-
769
- /***/ }),
770
- /* 23 */,
771
- /* 24 */,
772
- /* 25 */
773
- /***/ (function(module, exports) {
774
-
775
- module.exports = require("core-js/modules/es.array-buffer.constructor.js");
776
-
777
- /***/ }),
778
- /* 26 */
779
- /***/ (function(module, exports) {
780
-
781
- module.exports = require("core-js/modules/es.array-buffer.slice.js");
782
-
783
- /***/ }),
784
- /* 27 */
785
- /***/ (function(module, exports) {
786
-
787
- module.exports = require("core-js/modules/es.typed-array.int8-array.js");
788
-
789
- /***/ }),
790
- /* 28 */
791
- /***/ (function(module, exports) {
792
-
793
- module.exports = require("core-js/modules/es.typed-array.copy-within.js");
794
-
795
- /***/ }),
796
- /* 29 */
797
- /***/ (function(module, exports) {
798
-
799
- module.exports = require("core-js/modules/es.typed-array.every.js");
800
-
801
- /***/ }),
802
- /* 30 */
803
- /***/ (function(module, exports) {
804
-
805
- module.exports = require("core-js/modules/es.typed-array.fill.js");
806
-
807
- /***/ }),
808
- /* 31 */
809
- /***/ (function(module, exports) {
810
-
811
- module.exports = require("core-js/modules/es.typed-array.filter.js");
812
-
813
- /***/ }),
814
- /* 32 */
815
- /***/ (function(module, exports) {
816
-
817
- module.exports = require("core-js/modules/es.typed-array.find.js");
818
-
819
- /***/ }),
820
- /* 33 */
821
- /***/ (function(module, exports) {
822
-
823
- module.exports = require("core-js/modules/es.typed-array.find-index.js");
824
-
825
- /***/ }),
826
- /* 34 */
827
- /***/ (function(module, exports) {
828
-
829
- module.exports = require("core-js/modules/es.typed-array.for-each.js");
830
-
831
- /***/ }),
832
- /* 35 */
833
- /***/ (function(module, exports) {
834
-
835
- module.exports = require("core-js/modules/es.typed-array.includes.js");
836
-
837
- /***/ }),
838
- /* 36 */
839
- /***/ (function(module, exports) {
840
-
841
- module.exports = require("core-js/modules/es.typed-array.index-of.js");
842
-
843
- /***/ }),
844
- /* 37 */
845
- /***/ (function(module, exports) {
846
-
847
- module.exports = require("core-js/modules/es.typed-array.iterator.js");
848
-
849
- /***/ }),
850
- /* 38 */
851
- /***/ (function(module, exports) {
852
-
853
- module.exports = require("core-js/modules/es.typed-array.join.js");
854
-
855
- /***/ }),
856
- /* 39 */
857
- /***/ (function(module, exports) {
858
-
859
- module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
860
-
861
- /***/ }),
862
- /* 40 */
863
- /***/ (function(module, exports) {
864
-
865
- module.exports = require("core-js/modules/es.typed-array.map.js");
866
-
867
- /***/ }),
868
- /* 41 */
869
- /***/ (function(module, exports) {
870
-
871
- module.exports = require("core-js/modules/es.typed-array.reduce.js");
872
-
873
- /***/ }),
874
- /* 42 */
875
- /***/ (function(module, exports) {
876
-
877
- module.exports = require("core-js/modules/es.typed-array.reduce-right.js");
878
-
879
- /***/ }),
880
- /* 43 */
881
- /***/ (function(module, exports) {
882
-
883
- module.exports = require("core-js/modules/es.typed-array.reverse.js");
884
-
885
- /***/ }),
886
- /* 44 */
887
- /***/ (function(module, exports) {
888
-
889
- module.exports = require("core-js/modules/es.typed-array.set.js");
890
-
891
- /***/ }),
892
- /* 45 */
893
- /***/ (function(module, exports) {
894
-
895
- module.exports = require("core-js/modules/es.typed-array.slice.js");
896
-
897
- /***/ }),
898
- /* 46 */
899
- /***/ (function(module, exports) {
900
-
901
- module.exports = require("core-js/modules/es.typed-array.some.js");
902
-
903
- /***/ }),
904
- /* 47 */
905
- /***/ (function(module, exports) {
906
-
907
- module.exports = require("core-js/modules/es.typed-array.sort.js");
908
-
909
- /***/ }),
910
- /* 48 */
911
- /***/ (function(module, exports) {
912
-
913
- module.exports = require("core-js/modules/es.typed-array.subarray.js");
914
-
915
- /***/ }),
916
- /* 49 */
917
- /***/ (function(module, exports) {
918
-
919
- module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
920
-
921
- /***/ }),
922
- /* 50 */
923
- /***/ (function(module, exports) {
924
-
925
- module.exports = require("core-js/modules/es.typed-array.to-string.js");
926
-
927
- /***/ }),
928
- /* 51 */,
929
- /* 52 */
930
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
931
-
932
- "use strict";
933
-
934
- // EXPORTS
935
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
936
-
937
- // UNUSED EXPORTS: use, i18n
938
-
939
- // EXTERNAL MODULE: external "core-js/modules/es.object.get-prototype-of.js"
940
- var es_object_get_prototype_of_js_ = __webpack_require__(66);
941
-
942
- // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
943
- /* harmony default export */ var zh_CN = ({
944
- el: {
945
- colorpicker: {
946
- confirm: '确定',
947
- clear: '清空'
948
- },
949
- datepicker: {
950
- now: '此刻',
951
- today: '今天',
952
- cancel: '取消',
953
- clear: '清空',
954
- confirm: '确定',
955
- selectDate: '选择日期',
956
- selectTime: '选择时间',
957
- startDate: '开始日期',
958
- startTime: '开始时间',
959
- endDate: '结束日期',
960
- endTime: '结束时间',
961
- prevYear: '前一年',
962
- nextYear: '后一年',
963
- prevMonth: '上个月',
964
- nextMonth: '下个月',
965
- year: '年',
966
- month1: '1 月',
967
- month2: '2 月',
968
- month3: '3 月',
969
- month4: '4 月',
970
- month5: '5 月',
971
- month6: '6 月',
972
- month7: '7 月',
973
- month8: '8 月',
974
- month9: '9 月',
975
- month10: '10 月',
976
- month11: '11 月',
977
- month12: '12 月',
978
- // week: '周次',
979
- weeks: {
980
- sun: '日',
981
- mon: '一',
982
- tue: '二',
983
- wed: '三',
984
- thu: '四',
985
- fri: '五',
986
- sat: '六'
987
- },
988
- months: {
989
- jan: '一月',
990
- feb: '二月',
991
- mar: '三月',
992
- apr: '四月',
993
- may: '五月',
994
- jun: '六月',
995
- jul: '七月',
996
- aug: '八月',
997
- sep: '九月',
998
- oct: '十月',
999
- nov: '十一月',
1000
- dec: '十二月'
1001
- }
1002
- },
1003
- select: {
1004
- loading: '加载中',
1005
- noMatch: '无匹配数据',
1006
- noData: '无数据',
1007
- placeholder: '请选择'
1008
- },
1009
- cascader: {
1010
- noMatch: '无匹配数据',
1011
- loading: '加载中',
1012
- placeholder: '请选择',
1013
- noData: '暂无数据'
1014
- },
1015
- pagination: {
1016
- goto: '前往',
1017
- pagesize: '条/页',
1018
- total: '共 {total} 条',
1019
- pageClassifier: '页'
1020
- },
1021
- messagebox: {
1022
- title: '提示',
1023
- confirm: '确定',
1024
- cancel: '取消',
1025
- error: '输入的数据不合法!'
1026
- },
1027
- upload: {
1028
- deleteTip: '按 delete 键可删除',
1029
- delete: '删除',
1030
- preview: '查看图片',
1031
- continue: '继续上传'
1032
- },
1033
- table: {
1034
- emptyText: '暂无数据',
1035
- confirmFilter: '筛选',
1036
- resetFilter: '重置',
1037
- clearFilter: '全部',
1038
- sumText: '合计'
1039
- },
1040
- tree: {
1041
- emptyText: '暂无数据'
1042
- },
1043
- transfer: {
1044
- noMatch: '无匹配数据',
1045
- noData: '无数据',
1046
- titles: ['列表 1', '列表 2'],
1047
- filterPlaceholder: '请输入搜索内容',
1048
- noCheckedFormat: '共 {total} 项',
1049
- hasCheckedFormat: '已选 {checked}/{total} 项'
1050
- },
1051
- image: {
1052
- error: '加载失败'
1053
- },
1054
- pageHeader: {
1055
- title: '返回'
1056
- },
1057
- popconfirm: {
1058
- confirmButtonText: '确定',
1059
- cancelButtonText: '取消'
1060
- },
1061
- empty: {
1062
- description: '暂无数据'
1063
- }
1064
- }
1065
- });
1066
- // EXTERNAL MODULE: external "vue"
1067
- var external_vue_ = __webpack_require__(0);
1068
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
1069
-
1070
- // EXTERNAL MODULE: external "deepmerge"
1071
- var external_deepmerge_ = __webpack_require__(58);
1072
- var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
1073
-
1074
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
1075
- var es_regexp_exec_js_ = __webpack_require__(7);
1076
-
1077
- // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
1078
- var es_string_replace_js_ = __webpack_require__(12);
1079
-
1080
- // EXTERNAL MODULE: ./src/utils/util.js
1081
- var util = __webpack_require__(4);
1082
-
1083
- // CONCATENATED MODULE: ./src/locale/format.js
1084
-
1085
-
1086
-
1087
- var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
1088
- /**
1089
- * String format template
1090
- * - Inspired:
1091
- * https://github.com/Matt-Esch/string-template/index.js
1092
- */
1093
- /* harmony default export */ var format = (function (Vue) {
1094
- /**
1095
- * template
1096
- *
1097
- * @param {String} string
1098
- * @param {Array} ...args
1099
- * @return {String}
1100
- */
1101
-
1102
- function template(string) {
1103
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1104
- args[_key - 1] = arguments[_key];
1105
- }
1106
- if (args.length === 1 && typeof args[0] === 'object') {
1107
- args = args[0];
1108
- }
1109
- if (!args || !args.hasOwnProperty) {
1110
- args = {};
1111
- }
1112
- return string.replace(RE_NARGS, function (match, prefix, i, index) {
1113
- var result;
1114
- if (string[index - 1] === '{' && string[index + match.length] === '}') {
1115
- return i;
1116
- } else {
1117
- result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
1118
- if (result === null || result === undefined) {
1119
- return '';
1120
- }
1121
- return result;
1122
- }
1123
- });
1124
- }
1125
- return template;
1126
- });
1127
- // CONCATENATED MODULE: ./src/locale/index.js
1128
-
1129
-
1130
-
1131
-
1132
-
1133
- var locale_format = format(external_vue_default.a);
1134
- var lang = zh_CN;
1135
- var merged = false;
1136
- var locale_i18nHandler = function i18nHandler() {
1137
- var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
1138
- if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
1139
- if (!merged) {
1140
- merged = true;
1141
- 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) || {}, {
1142
- clone: true
1143
- }));
1144
- }
1145
- return vuei18n.apply(this, arguments);
1146
- }
1147
- };
1148
- var t = function t(path, options) {
1149
- var value = locale_i18nHandler.apply(this, arguments);
1150
- if (value !== null && value !== undefined) return value;
1151
- var array = path.split('.');
1152
- var current = lang;
1153
- for (var i = 0, j = array.length; i < j; i++) {
1154
- var property = array[i];
1155
- value = current[property];
1156
- if (i === j - 1) return locale_format(value, options);
1157
- if (!value) return '';
1158
- current = value;
1159
- }
1160
- return '';
1161
- };
1162
- var use = function use(l) {
1163
- lang = l || lang;
1164
- };
1165
- var i18n = function i18n(fn) {
1166
- locale_i18nHandler = fn || locale_i18nHandler;
1167
- };
1168
- /* harmony default export */ var locale = ({
1169
- use: use,
1170
- t: t,
1171
- i18n: i18n
1172
- });
1173
-
1174
- /***/ }),
1175
- /* 53 */,
1176
- /* 54 */
1177
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1178
-
1179
- "use strict";
1180
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5);
1181
- /* 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__);
1182
- /* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
1183
-
1184
-
1185
- /**
1186
- * Show migrating guide in browser console.
1187
- *
1188
- * Usage:
1189
- * import Migrating from 'element-ui/src/mixins/migrating';
1190
- *
1191
- * mixins: [Migrating]
1192
- *
1193
- * add getMigratingConfig method for your component.
1194
- * getMigratingConfig() {
1195
- * return {
1196
- * props: {
1197
- * 'allow-no-selection': 'allow-no-selection is removed.',
1198
- * 'selection-mode': 'selection-mode is removed.'
1199
- * },
1200
- * events: {
1201
- * selectionchange: 'selectionchange is renamed to selection-change.'
1202
- * }
1203
- * };
1204
- * },
1205
- */
1206
- /* harmony default export */ __webpack_exports__["a"] = ({
1207
- mounted: function mounted() {
1208
- if (true) return;
1209
- if (!this.$vnode) return;
1210
- var _this$getMigratingCon = this.getMigratingConfig(),
1211
- _this$getMigratingCon2 = _this$getMigratingCon.props,
1212
- props = _this$getMigratingCon2 === void 0 ? {} : _this$getMigratingCon2,
1213
- _this$getMigratingCon3 = _this$getMigratingCon.events,
1214
- events = _this$getMigratingCon3 === void 0 ? {} : _this$getMigratingCon3;
1215
- var _this$$vnode = this.$vnode,
1216
- data = _this$$vnode.data,
1217
- componentOptions = _this$$vnode.componentOptions;
1218
- var definedProps = data.attrs || {};
1219
- var definedEvents = componentOptions.listeners || {};
1220
- for (var propName in definedProps) {
1221
- propName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(propName); // compatible with camel case
1222
- if (props[propName]) {
1223
- console.warn("[Element Migrating][" + this.$options.name + "][Attribute]: " + props[propName]);
1224
- }
1225
- }
1226
- for (var eventName in definedEvents) {
1227
- eventName = Object(_utils_util__WEBPACK_IMPORTED_MODULE_1__[/* kebabCase */ "q"])(eventName); // compatible with camel case
1228
- if (events[eventName]) {
1229
- console.warn("[Element Migrating][" + this.$options.name + "][Event]: " + events[eventName]);
1230
- }
1231
- }
1232
- },
1233
- methods: {
1234
- getMigratingConfig: function getMigratingConfig() {
1235
- return {
1236
- props: {},
1237
- events: {}
1238
- };
1239
- }
1240
- }
1241
- });
1242
-
1243
- /***/ }),
1244
- /* 55 */
1245
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1246
-
1247
- "use strict";
1248
- /* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52);
1249
-
1250
- /* harmony default export */ __webpack_exports__["a"] = ({
1251
- methods: {
1252
- t: function t() {
1253
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1254
- args[_key] = arguments[_key];
1255
- }
1256
- return _locale__WEBPACK_IMPORTED_MODULE_0__[/* t */ "a"].apply(this, args);
1257
- }
1258
- }
1259
- });
1260
-
1261
- /***/ }),
1262
- /* 56 */,
1263
- /* 57 */,
1264
- /* 58 */
1265
- /***/ (function(module, exports) {
1266
-
1267
- module.exports = require("deepmerge");
1268
-
1269
- /***/ }),
1270
- /* 59 */,
1271
- /* 60 */,
1272
- /* 61 */
1273
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1274
-
1275
- "use strict";
1276
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDef; });
1277
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isKorean; });
1278
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
1279
- /* 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__);
1280
-
1281
- function isDef(val) {
1282
- return val !== undefined && val !== null;
1283
- }
1284
- function isKorean(text) {
1285
- var reg = /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;
1286
- return reg.test(text);
1287
- }
1288
-
1289
- /***/ }),
1290
- /* 62 */,
1291
- /* 63 */
1292
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1293
-
1294
- "use strict";
1295
- // ESM COMPAT FLAG
1296
- __webpack_require__.r(__webpack_exports__);
1297
-
1298
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1299
- var es_function_name_js_ = __webpack_require__(5);
1300
-
1301
- // 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
1302
- var render = function render() {
1303
- var _vm = this,
1304
- _c = _vm._self._c
1305
- return _c(
1306
- "div",
1307
- {
1308
- class: [
1309
- _vm.type === "textarea" ? "el-textarea" : "el-input",
1310
- _vm.inputSize ? "el-input--" + _vm.inputSize : "",
1311
- {
1312
- "is-disabled": _vm.inputDisabled,
1313
- "is-exceed": _vm.inputExceed,
1314
- "el-input-group": _vm.$slots.prepend || _vm.$slots.append,
1315
- "el-input-group--append": _vm.$slots.append,
1316
- "el-input-group--prepend": _vm.$slots.prepend,
1317
- "el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
1318
- "el-input--suffix":
1319
- _vm.$slots.suffix ||
1320
- _vm.suffixIcon ||
1321
- _vm.clearable ||
1322
- _vm.showPassword,
1323
- },
1324
- ],
1325
- on: {
1326
- mouseenter: function ($event) {
1327
- _vm.hovering = true
1328
- },
1329
- mouseleave: function ($event) {
1330
- _vm.hovering = false
1331
- },
1332
- },
1333
- },
1334
- [
1335
- _vm.type !== "textarea"
1336
- ? [
1337
- _vm.$slots.prepend
1338
- ? _c(
1339
- "div",
1340
- { staticClass: "el-input-group__prepend" },
1341
- [_vm._t("prepend")],
1342
- 2
1343
- )
1344
- : _vm._e(),
1345
- _vm.type !== "textarea"
1346
- ? _c(
1347
- "input",
1348
- _vm._b(
1349
- {
1350
- ref: "input",
1351
- staticClass: "el-input__inner",
1352
- attrs: {
1353
- tabindex: _vm.tabindex,
1354
- type: _vm.showPassword
1355
- ? _vm.passwordVisible
1356
- ? "text"
1357
- : "password"
1358
- : _vm.type,
1359
- disabled: _vm.inputDisabled,
1360
- readonly: _vm.readonly,
1361
- autocomplete: _vm.autoComplete || _vm.autocomplete,
1362
- "aria-label": _vm.label,
1363
- },
1364
- on: {
1365
- compositionstart: _vm.handleCompositionStart,
1366
- compositionupdate: _vm.handleCompositionUpdate,
1367
- compositionend: _vm.handleCompositionEnd,
1368
- input: _vm.handleInput,
1369
- focus: _vm.handleFocus,
1370
- blur: _vm.handleBlur,
1371
- change: _vm.handleChange,
1372
- },
1373
- },
1374
- "input",
1375
- _vm.$attrs,
1376
- false
1377
- )
1378
- )
1379
- : _vm._e(),
1380
- _vm.$slots.prefix || _vm.prefixIcon
1381
- ? _c(
1382
- "span",
1383
- { staticClass: "el-input__prefix" },
1384
- [
1385
- _vm._t("prefix"),
1386
- _vm.prefixIcon
1387
- ? _c("i", {
1388
- staticClass: "el-input__icon",
1389
- class: _vm.prefixIcon,
1390
- })
1391
- : _vm._e(),
1392
- ],
1393
- 2
1394
- )
1395
- : _vm._e(),
1396
- _vm.getSuffixVisible()
1397
- ? _c("span", { staticClass: "el-input__suffix" }, [
1398
- _c(
1399
- "span",
1400
- { staticClass: "el-input__suffix-inner" },
1401
- [
1402
- !_vm.showClear ||
1403
- !_vm.showPwdVisible ||
1404
- !_vm.isWordLimitVisible
1405
- ? [
1406
- _vm._t("suffix"),
1407
- _vm.suffixIcon
1408
- ? _c("i", {
1409
- staticClass: "el-input__icon",
1410
- class: _vm.suffixIcon,
1411
- })
1412
- : _vm._e(),
1413
- ]
1414
- : _vm._e(),
1415
- _vm.showClear
1416
- ? _c("i", {
1417
- staticClass:
1418
- "el-input__icon el-icon-circle-close el-input__clear",
1419
- on: {
1420
- mousedown: function ($event) {
1421
- $event.preventDefault()
1422
- },
1423
- click: _vm.clear,
1424
- },
1425
- })
1426
- : _vm._e(),
1427
- _vm.showPwdVisible
1428
- ? _c("i", {
1429
- staticClass:
1430
- "el-input__icon el-icon-view el-input__clear",
1431
- on: { click: _vm.handlePasswordVisible },
1432
- })
1433
- : _vm._e(),
1434
- _vm.isWordLimitVisible
1435
- ? _c("span", { staticClass: "el-input__count" }, [
1436
- _c(
1437
- "span",
1438
- { staticClass: "el-input__count-inner" },
1439
- [
1440
- _vm._v(
1441
- "\n\t\t\t\t\t\t" +
1442
- _vm._s(_vm.textLength) +
1443
- "/" +
1444
- _vm._s(_vm.upperLimit) +
1445
- "\n\t\t\t\t\t"
1446
- ),
1447
- ]
1448
- ),
1449
- ])
1450
- : _vm._e(),
1451
- ],
1452
- 2
1453
- ),
1454
- _vm.validateState
1455
- ? _c("i", {
1456
- staticClass: "el-input__icon",
1457
- class: ["el-input__validateIcon", _vm.validateIcon],
1458
- })
1459
- : _vm._e(),
1460
- ])
1461
- : _vm._e(),
1462
- _vm.$slots.append
1463
- ? _c(
1464
- "div",
1465
- { staticClass: "el-input-group__append" },
1466
- [_vm._t("append")],
1467
- 2
1468
- )
1469
- : _vm._e(),
1470
- ]
1471
- : _c(
1472
- "textarea",
1473
- _vm._b(
1474
- {
1475
- ref: "textarea",
1476
- staticClass: "el-textarea__inner",
1477
- style: _vm.textareaStyle,
1478
- attrs: {
1479
- tabindex: _vm.tabindex,
1480
- disabled: _vm.inputDisabled,
1481
- readonly: _vm.readonly,
1482
- autocomplete: _vm.autoComplete || _vm.autocomplete,
1483
- "aria-label": _vm.label,
1484
- },
1485
- on: {
1486
- compositionstart: _vm.handleCompositionStart,
1487
- compositionupdate: _vm.handleCompositionUpdate,
1488
- compositionend: _vm.handleCompositionEnd,
1489
- input: _vm.handleInput,
1490
- focus: _vm.handleFocus,
1491
- blur: _vm.handleBlur,
1492
- change: _vm.handleChange,
1493
- },
1494
- },
1495
- "textarea",
1496
- _vm.$attrs,
1497
- false
1498
- )
1499
- ),
1500
- _vm.isWordLimitVisible && _vm.type === "textarea"
1501
- ? _c("span", { staticClass: "el-input__count" }, [
1502
- _vm._v(_vm._s(_vm.textLength) + "/" + _vm._s(_vm.upperLimit)),
1503
- ])
1504
- : _vm._e(),
1505
- ],
1506
- 2
1507
- )
1508
- }
1509
- var staticRenderFns = []
1510
- render._withStripped = true
1511
-
1512
-
1513
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=6c0da156
1514
-
1515
- // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
1516
- var es_array_slice_js_ = __webpack_require__(13);
1517
-
1518
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
1519
- var es_number_constructor_js_ = __webpack_require__(6);
1520
-
1521
- // EXTERNAL MODULE: ./src/mixins/emitter.js
1522
- var emitter = __webpack_require__(14);
1523
-
1524
- // EXTERNAL MODULE: ./src/mixins/migrating.js
1525
- var migrating = __webpack_require__(54);
1526
-
1527
- // EXTERNAL MODULE: external "core-js/modules/es.array.join.js"
1528
- var es_array_join_js_ = __webpack_require__(64);
1529
-
1530
- // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
1531
- var es_array_map_js_ = __webpack_require__(20);
1532
-
1533
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
1534
- var es_object_to_string_js_ = __webpack_require__(3);
1535
-
1536
- // CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
1537
-
1538
-
1539
-
1540
- var hiddenTextarea;
1541
- 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";
1542
- 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'];
1543
- function calculateNodeStyling(targetElement) {
1544
- var style = window.getComputedStyle(targetElement);
1545
- var boxSizing = style.getPropertyValue('box-sizing');
1546
- var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
1547
- var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
1548
- var contextStyle = CONTEXT_STYLE.map(function (name) {
1549
- return name + ":" + style.getPropertyValue(name);
1550
- }).join(';');
1551
- return {
1552
- contextStyle: contextStyle,
1553
- paddingSize: paddingSize,
1554
- borderSize: borderSize,
1555
- boxSizing: boxSizing
1556
- };
1557
- }
1558
- function calcTextareaHeight(targetElement, minRows, maxRows) {
1559
- if (minRows === void 0) {
1560
- minRows = 1;
1561
- }
1562
- if (maxRows === void 0) {
1563
- maxRows = null;
1564
- }
1565
- if (!hiddenTextarea) {
1566
- hiddenTextarea = document.createElement('textarea');
1567
- document.body.appendChild(hiddenTextarea);
1568
- }
1569
- var _calculateNodeStyling = calculateNodeStyling(targetElement),
1570
- paddingSize = _calculateNodeStyling.paddingSize,
1571
- borderSize = _calculateNodeStyling.borderSize,
1572
- boxSizing = _calculateNodeStyling.boxSizing,
1573
- contextStyle = _calculateNodeStyling.contextStyle;
1574
- hiddenTextarea.setAttribute('style', contextStyle + ";" + HIDDEN_STYLE);
1575
- hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
1576
- var height = hiddenTextarea.scrollHeight;
1577
- var result = {};
1578
- if (boxSizing === 'border-box') {
1579
- height = height + borderSize;
1580
- } else if (boxSizing === 'content-box') {
1581
- height = height - paddingSize;
1582
- }
1583
- hiddenTextarea.value = '';
1584
- var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
1585
- if (minRows !== null) {
1586
- var minHeight = singleRowHeight * minRows;
1587
- if (boxSizing === 'border-box') {
1588
- minHeight = minHeight + paddingSize + borderSize;
1589
- }
1590
- height = Math.max(minHeight, height);
1591
- result.minHeight = minHeight + "px";
1592
- }
1593
- if (maxRows !== null) {
1594
- var maxHeight = singleRowHeight * maxRows;
1595
- if (boxSizing === 'border-box') {
1596
- maxHeight = maxHeight + paddingSize + borderSize;
1597
- }
1598
- height = Math.min(maxHeight, height);
1599
- }
1600
- result.height = height + "px";
1601
- hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
1602
- hiddenTextarea = null;
1603
- return result;
1604
- }
1605
- ;
1606
- // EXTERNAL MODULE: ./src/utils/merge.js
1607
- var merge = __webpack_require__(15);
1608
-
1609
- // EXTERNAL MODULE: ./src/utils/shared.js
1610
- var shared = __webpack_require__(61);
1611
-
1612
- // 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
1613
-
1614
-
1615
-
1616
-
1617
-
1618
-
1619
-
1620
- /* harmony default export */ var inputvue_type_script_lang_js = ({
1621
- name: 'ElInput',
1622
- componentName: 'ElInput',
1623
- mixins: [emitter["a" /* default */], migrating["a" /* default */]],
1624
- inheritAttrs: false,
1625
- inject: {
1626
- elForm: {
1627
- default: ''
1628
- },
1629
- elFormItem: {
1630
- default: ''
1631
- }
1632
- },
1633
- data: function data() {
1634
- return {
1635
- textareaCalcStyle: {},
1636
- hovering: false,
1637
- focused: false,
1638
- isComposing: false,
1639
- passwordVisible: false
1640
- };
1641
- },
1642
- props: {
1643
- value: [String, Number],
1644
- size: String,
1645
- resize: String,
1646
- form: String,
1647
- disabled: Boolean,
1648
- readonly: Boolean,
1649
- type: {
1650
- type: String,
1651
- default: 'text'
1652
- },
1653
- autosize: {
1654
- type: [Boolean, Object],
1655
- default: false
1656
- },
1657
- autocomplete: {
1658
- type: String,
1659
- default: 'off'
1660
- },
1661
- /** @Deprecated in next major version */
1662
- autoComplete: {
1663
- type: String,
1664
- validator: function validator(val) {
1665
- false && false;
1666
- return true;
1667
- }
1668
- },
1669
- validateEvent: {
1670
- type: Boolean,
1671
- default: true
1672
- },
1673
- suffixIcon: String,
1674
- prefixIcon: String,
1675
- label: String,
1676
- clearable: {
1677
- type: Boolean,
1678
- default: false
1679
- },
1680
- showPassword: {
1681
- type: Boolean,
1682
- default: false
1683
- },
1684
- showWordLimit: {
1685
- type: Boolean,
1686
- default: false
1687
- },
1688
- tabindex: String
1689
- },
1690
- computed: {
1691
- _elFormItemSize: function _elFormItemSize() {
1692
- return (this.elFormItem || {}).elFormItemSize;
1693
- },
1694
- validateState: function validateState() {
1695
- return this.elFormItem ? this.elFormItem.validateState : '';
1696
- },
1697
- needStatusIcon: function needStatusIcon() {
1698
- return this.elForm ? this.elForm.statusIcon : false;
1699
- },
1700
- validateIcon: function validateIcon() {
1701
- return {
1702
- validating: 'el-icon-loading',
1703
- success: 'el-icon-circle-check',
1704
- error: 'el-icon-circle-close'
1705
- }[this.validateState];
1706
- },
1707
- textareaStyle: function textareaStyle() {
1708
- return Object(merge["a" /* default */])({}, this.textareaCalcStyle, {
1709
- resize: this.resize
1710
- });
1711
- },
1712
- inputSize: function inputSize() {
1713
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
1714
- },
1715
- inputDisabled: function inputDisabled() {
1716
- return this.disabled || (this.elForm || {}).disabled;
1717
- },
1718
- nativeInputValue: function nativeInputValue() {
1719
- return this.value === null || this.value === undefined ? '' : String(this.value);
1720
- },
1721
- showClear: function showClear() {
1722
- return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
1723
- },
1724
- showPwdVisible: function showPwdVisible() {
1725
- return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
1726
- },
1727
- isWordLimitVisible: function isWordLimitVisible() {
1728
- return this.showWordLimit && this.$attrs.maxlength && (this.type === 'text' || this.type === 'textarea') && !this.inputDisabled && !this.readonly && !this.showPassword;
1729
- },
1730
- upperLimit: function upperLimit() {
1731
- return this.$attrs.maxlength;
1732
- },
1733
- textLength: function textLength() {
1734
- if (typeof this.value === 'number') {
1735
- return String(this.value).length;
1736
- }
1737
- return (this.value || '').length;
1738
- },
1739
- inputExceed: function inputExceed() {
1740
- // show exceed style if length of initial value greater then maxlength
1741
- return this.isWordLimitVisible && this.textLength > this.upperLimit;
1742
- }
1743
- },
1744
- watch: {
1745
- value: function value(val) {
1746
- this.$nextTick(this.resizeTextarea);
1747
- if (this.validateEvent) {
1748
- this.dispatch('ElFormItem', 'el.form.change', [val]);
1749
- }
1750
- },
1751
- // native input value is set explicitly
1752
- // do not use v-model / :value in template
1753
- // see: https://github.com/ElemeFE/element/issues/14521
1754
- nativeInputValue: function nativeInputValue() {
1755
- this.setNativeInputValue();
1756
- },
1757
- // when change between <input> and <textarea>,
1758
- // update DOM dependent value and styles
1759
- // https://github.com/ElemeFE/element/issues/14857
1760
- type: function type() {
1761
- var _this = this;
1762
- this.$nextTick(function () {
1763
- _this.setNativeInputValue();
1764
- _this.resizeTextarea();
1765
- _this.updateIconOffset();
1766
- });
1767
- }
1768
- },
1769
- methods: {
1770
- focus: function focus() {
1771
- this.getInput().focus();
1772
- },
1773
- blur: function blur() {
1774
- this.getInput().blur();
1775
- },
1776
- getMigratingConfig: function getMigratingConfig() {
1777
- return {
1778
- props: {
1779
- 'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
1780
- 'on-icon-click': 'on-icon-click is removed.'
1781
- },
1782
- events: {
1783
- 'click': 'click is removed.'
1784
- }
1785
- };
1786
- },
1787
- handleBlur: function handleBlur(event) {
1788
- this.focused = false;
1789
- this.$emit('blur', event);
1790
- if (this.validateEvent) {
1791
- this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
1792
- }
1793
- },
1794
- select: function select() {
1795
- this.getInput().select();
1796
- },
1797
- resizeTextarea: function resizeTextarea() {
1798
- if (this.$isServer) return;
1799
- var autosize = this.autosize,
1800
- type = this.type;
1801
- if (type !== 'textarea') return;
1802
- if (!autosize) {
1803
- this.textareaCalcStyle = {
1804
- minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
1805
- };
1806
- return;
1807
- }
1808
- var minRows = autosize.minRows;
1809
- var maxRows = autosize.maxRows;
1810
- this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
1811
- },
1812
- setNativeInputValue: function setNativeInputValue() {
1813
- var input = this.getInput();
1814
- if (!input) return;
1815
- if (input.value === this.nativeInputValue) return;
1816
- input.value = this.nativeInputValue;
1817
- },
1818
- handleFocus: function handleFocus(event) {
1819
- this.focused = true;
1820
- this.$emit('focus', event);
1821
- },
1822
- handleCompositionStart: function handleCompositionStart(event) {
1823
- this.$emit('compositionstart', event);
1824
- this.isComposing = true;
1825
- },
1826
- handleCompositionUpdate: function handleCompositionUpdate(event) {
1827
- this.$emit('compositionupdate', event);
1828
- var text = event.target.value;
1829
- var lastCharacter = text[text.length - 1] || '';
1830
- this.isComposing = !Object(shared["b" /* isKorean */])(lastCharacter);
1831
- },
1832
- handleCompositionEnd: function handleCompositionEnd(event) {
1833
- this.$emit('compositionend', event);
1834
- if (this.isComposing) {
1835
- this.isComposing = false;
1836
- this.handleInput(event);
1837
- }
1838
- },
1839
- handleInput: function handleInput(event) {
1840
- // should not emit input during composition
1841
- // see: https://github.com/ElemeFE/element/issues/10516
1842
- if (this.isComposing) return;
1843
-
1844
- // hack for https://github.com/ElemeFE/element/issues/8548
1845
- // should remove the following line when we don't support IE
1846
- if (event.target.value === this.nativeInputValue) return;
1847
- this.$emit('input', event.target.value);
1848
-
1849
- // ensure native input value is controlled
1850
- // see: https://github.com/ElemeFE/element/issues/12850
1851
- this.$nextTick(this.setNativeInputValue);
1852
- },
1853
- handleChange: function handleChange(event) {
1854
- this.$emit('change', event.target.value);
1855
- },
1856
- calcIconOffset: function calcIconOffset(place) {
1857
- var elList = [].slice.call(this.$el.querySelectorAll(".el-input__" + place) || []);
1858
- if (!elList.length) return;
1859
- var el = null;
1860
- for (var i = 0; i < elList.length; i++) {
1861
- if (elList[i].parentNode === this.$el) {
1862
- el = elList[i];
1863
- break;
1864
- }
1865
- }
1866
- if (!el) return;
1867
- var pendantMap = {
1868
- suffix: 'append',
1869
- prefix: 'prepend'
1870
- };
1871
- var pendant = pendantMap[place];
1872
- if (this.$slots[pendant]) {
1873
- el.style.transform = "translateX(" + (place === 'suffix' ? '-' : '') + this.$el.querySelector(".el-input-group__" + pendant).offsetWidth + "px)";
1874
- } else {
1875
- el.removeAttribute('style');
1876
- }
1877
- },
1878
- updateIconOffset: function updateIconOffset() {
1879
- this.calcIconOffset('prefix');
1880
- this.calcIconOffset('suffix');
1881
- },
1882
- clear: function clear() {
1883
- this.$emit('input', '');
1884
- this.$emit('change', '');
1885
- this.$emit('clear');
1886
- },
1887
- handlePasswordVisible: function handlePasswordVisible() {
1888
- var _this2 = this;
1889
- this.passwordVisible = !this.passwordVisible;
1890
- this.$nextTick(function () {
1891
- _this2.focus();
1892
- });
1893
- },
1894
- getInput: function getInput() {
1895
- return this.$refs.input || this.$refs.textarea;
1896
- },
1897
- getSuffixVisible: function getSuffixVisible() {
1898
- return this.$slots.suffix || this.suffixIcon || this.showClear || this.showPassword || this.isWordLimitVisible || this.validateState && this.needStatusIcon;
1899
- }
1900
- },
1901
- created: function created() {
1902
- this.$on('inputSelect', this.select);
1903
- },
1904
- mounted: function mounted() {
1905
- this.setNativeInputValue();
1906
- this.resizeTextarea();
1907
- this.updateIconOffset();
1908
- },
1909
- updated: function updated() {
1910
- this.$nextTick(this.updateIconOffset);
1911
- }
1912
- });
1913
- // CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js
1914
- /* harmony default export */ var src_inputvue_type_script_lang_js = (inputvue_type_script_lang_js);
1915
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1916
- var componentNormalizer = __webpack_require__(2);
1917
-
1918
- // CONCATENATED MODULE: ./packages/input/src/input.vue
1919
-
1920
-
1921
-
1922
-
1923
-
1924
- /* normalize component */
1925
-
1926
- var component = Object(componentNormalizer["a" /* default */])(
1927
- src_inputvue_type_script_lang_js,
1928
- render,
1929
- staticRenderFns,
1930
- false,
1931
- null,
1932
- null,
1933
- null
1934
-
1935
- )
1936
-
1937
- /* harmony default export */ var input = (component.exports);
1938
- // CONCATENATED MODULE: ./packages/input/index.js
1939
-
1940
-
1941
-
1942
- /* istanbul ignore next */
1943
- input.install = function (Vue) {
1944
- Vue.component(input.name, input);
1945
- };
1946
- /* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
1947
-
1948
- /***/ }),
1949
- /* 64 */
1950
- /***/ (function(module, exports) {
1951
-
1952
- module.exports = require("core-js/modules/es.array.join.js");
1953
-
1954
- /***/ }),
1955
- /* 65 */,
1956
- /* 66 */
1957
- /***/ (function(module, exports) {
1958
-
1959
- module.exports = require("core-js/modules/es.object.get-prototype-of.js");
1960
-
1961
- /***/ }),
1962
- /* 67 */,
1963
- /* 68 */,
1964
- /* 69 */,
1965
- /* 70 */,
1966
- /* 71 */,
1967
- /* 72 */,
1968
- /* 73 */,
1969
- /* 74 */,
1970
- /* 75 */,
1971
- /* 76 */,
1972
- /* 77 */
1973
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1974
-
1975
- "use strict";
1976
- // ESM COMPAT FLAG
1977
- __webpack_require__.r(__webpack_exports__);
1978
-
1979
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
1980
- var es_function_name_js_ = __webpack_require__(5);
1981
-
1982
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=5fbea7a2
1983
- var render = function render() {
1984
- var _vm = this,
1985
- _c = _vm._self._c
1986
- return _c(
1987
- "label",
1988
- {
1989
- staticClass: "el-checkbox",
1990
- class: [
1991
- _vm.border && _vm.checkboxSize
1992
- ? "el-checkbox--" + _vm.checkboxSize
1993
- : "",
1994
- { "is-disabled": _vm.isDisabled },
1995
- { "is-bordered": _vm.border },
1996
- { "is-checked": _vm.isChecked },
1997
- ],
1998
- attrs: { id: _vm.id },
1999
- },
2000
- [
2001
- _c(
2002
- "span",
2003
- {
2004
- staticClass: "el-checkbox__input",
2005
- class: {
2006
- "is-disabled": _vm.isDisabled,
2007
- "is-checked": _vm.isChecked,
2008
- "is-indeterminate": _vm.indeterminate,
2009
- "is-focus": _vm.focus,
2010
- },
2011
- attrs: {
2012
- tabindex: _vm.indeterminate ? 0 : false,
2013
- role: _vm.indeterminate ? "checkbox" : false,
2014
- "aria-checked": _vm.indeterminate ? "mixed" : false,
2015
- },
2016
- },
2017
- [
2018
- _c("span", { staticClass: "el-checkbox__inner" }),
2019
- _vm.trueLabel || _vm.falseLabel
2020
- ? _c("input", {
2021
- directives: [
2022
- {
2023
- name: "model",
2024
- rawName: "v-model",
2025
- value: _vm.model,
2026
- expression: "model",
2027
- },
2028
- ],
2029
- staticClass: "el-checkbox__original",
2030
- attrs: {
2031
- type: "checkbox",
2032
- "aria-hidden": _vm.indeterminate ? "true" : "false",
2033
- name: _vm.name,
2034
- disabled: _vm.isDisabled,
2035
- "true-value": _vm.trueLabel,
2036
- "false-value": _vm.falseLabel,
2037
- },
2038
- domProps: {
2039
- checked: Array.isArray(_vm.model)
2040
- ? _vm._i(_vm.model, null) > -1
2041
- : _vm._q(_vm.model, _vm.trueLabel),
2042
- },
2043
- on: {
2044
- change: [
2045
- function ($event) {
2046
- var $$a = _vm.model,
2047
- $$el = $event.target,
2048
- $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
2049
- if (Array.isArray($$a)) {
2050
- var $$v = null,
2051
- $$i = _vm._i($$a, $$v)
2052
- if ($$el.checked) {
2053
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
2054
- } else {
2055
- $$i > -1 &&
2056
- (_vm.model = $$a
2057
- .slice(0, $$i)
2058
- .concat($$a.slice($$i + 1)))
2059
- }
2060
- } else {
2061
- _vm.model = $$c
2062
- }
2063
- },
2064
- _vm.handleChange,
2065
- ],
2066
- focus: function ($event) {
2067
- _vm.focus = true
2068
- },
2069
- blur: function ($event) {
2070
- _vm.focus = false
2071
- },
2072
- },
2073
- })
2074
- : _c("input", {
2075
- directives: [
2076
- {
2077
- name: "model",
2078
- rawName: "v-model",
2079
- value: _vm.model,
2080
- expression: "model",
2081
- },
2082
- ],
2083
- staticClass: "el-checkbox__original",
2084
- attrs: {
2085
- type: "checkbox",
2086
- "aria-hidden": _vm.indeterminate ? "true" : "false",
2087
- disabled: _vm.isDisabled,
2088
- name: _vm.name,
2089
- },
2090
- domProps: {
2091
- value: _vm.label,
2092
- checked: Array.isArray(_vm.model)
2093
- ? _vm._i(_vm.model, _vm.label) > -1
2094
- : _vm.model,
2095
- },
2096
- on: {
2097
- change: [
2098
- function ($event) {
2099
- var $$a = _vm.model,
2100
- $$el = $event.target,
2101
- $$c = $$el.checked ? true : false
2102
- if (Array.isArray($$a)) {
2103
- var $$v = _vm.label,
2104
- $$i = _vm._i($$a, $$v)
2105
- if ($$el.checked) {
2106
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
2107
- } else {
2108
- $$i > -1 &&
2109
- (_vm.model = $$a
2110
- .slice(0, $$i)
2111
- .concat($$a.slice($$i + 1)))
2112
- }
2113
- } else {
2114
- _vm.model = $$c
2115
- }
2116
- },
2117
- _vm.handleChange,
2118
- ],
2119
- focus: function ($event) {
2120
- _vm.focus = true
2121
- },
2122
- blur: function ($event) {
2123
- _vm.focus = false
2124
- },
2125
- },
2126
- }),
2127
- ]
2128
- ),
2129
- _vm.$slots.default || _vm.label
2130
- ? _c(
2131
- "span",
2132
- { staticClass: "el-checkbox__label" },
2133
- [
2134
- _vm._t("default"),
2135
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e(),
2136
- ],
2137
- 2
2138
- )
2139
- : _vm._e(),
2140
- ]
2141
- )
2142
- }
2143
- var staticRenderFns = []
2144
- render._withStripped = true
2145
-
2146
-
2147
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=5fbea7a2
2148
-
2149
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
2150
- var es_number_constructor_js_ = __webpack_require__(6);
2151
-
2152
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
2153
- var es_object_to_string_js_ = __webpack_require__(3);
2154
-
2155
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
2156
- var es_regexp_to_string_js_ = __webpack_require__(11);
2157
-
2158
- // EXTERNAL MODULE: ./src/mixins/emitter.js
2159
- var emitter = __webpack_require__(14);
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
2160
100
 
2161
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2162
114
 
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
2163
121
 
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
2164
126
 
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
2165
131
 
2166
- /* harmony default export */ var checkboxvue_type_script_lang_js = ({
2167
- name: 'ElCheckbox',
2168
- mixins: [emitter["a" /* default */]],
2169
- inject: {
2170
- elForm: {
2171
- default: ''
2172
- },
2173
- elFormItem: {
2174
- default: ''
2175
- }
2176
- },
2177
- componentName: 'ElCheckbox',
2178
- data: function data() {
2179
- return {
2180
- selfModel: false,
2181
- focus: false,
2182
- isLimitExceeded: false
2183
- };
2184
- },
2185
- computed: {
2186
- model: {
2187
- get: function get() {
2188
- return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
2189
- },
2190
- set: function set(val) {
2191
- if (this.isGroup) {
2192
- this.isLimitExceeded = false;
2193
- this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
2194
- this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
2195
- this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
2196
- } else {
2197
- this.$emit('input', val);
2198
- this.selfModel = val;
2199
- }
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__
2200
144
  }
2201
- },
2202
- isChecked: function isChecked() {
2203
- if ({}.toString.call(this.model) === '[object Boolean]') {
2204
- return this.model;
2205
- } else if (Array.isArray(this.model)) {
2206
- return this.model.indexOf(this.label) > -1;
2207
- } else if (this.model !== null && this.model !== undefined) {
2208
- return this.model === this.trueLabel;
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
2209
148
  }
2210
- },
2211
- isGroup: function isGroup() {
2212
- var parent = this.$parent;
2213
- while (parent) {
2214
- if (parent.$options.componentName !== 'ElCheckboxGroup') {
2215
- parent = parent.$parent;
2216
- } else {
2217
- this._checkboxGroup = parent;
2218
- return true;
2219
- }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
2220
152
  }
2221
- return false;
2222
- },
2223
- store: function store() {
2224
- return this._checkboxGroup ? this._checkboxGroup.value : this.value;
2225
- },
2226
- /* used to make the isDisabled judgment under max/min props */isLimitDisabled: function isLimitDisabled() {
2227
- var _this$_checkboxGroup = this._checkboxGroup,
2228
- max = _this$_checkboxGroup.max,
2229
- min = _this$_checkboxGroup.min;
2230
- return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
2231
- },
2232
- isDisabled: function isDisabled() {
2233
- return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
2234
- },
2235
- _elFormItemSize: function _elFormItemSize() {
2236
- return (this.elFormItem || {}).elFormItemSize;
2237
- },
2238
- checkboxSize: function checkboxSize() {
2239
- var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2240
- return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
2241
153
  }
2242
- },
2243
- props: {
2244
- value: {},
2245
- label: {},
2246
- indeterminate: Boolean,
2247
- disabled: Boolean,
2248
- checked: Boolean,
2249
- name: String,
2250
- trueLabel: [String, Number],
2251
- falseLabel: [String, Number],
2252
- id: String,
2253
- /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
2254
- controls: String,
2255
- /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
2256
- border: Boolean,
2257
- size: String
2258
- },
2259
- methods: {
2260
- addToStore: function addToStore() {
2261
- if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
2262
- this.model.push(this.label);
2263
- } else {
2264
- this.model = this.trueLabel || true;
2265
- }
2266
- },
2267
- handleChange: function handleChange(ev) {
2268
- var _this = this;
2269
- if (this.isLimitExceeded) return;
2270
- var value;
2271
- if (ev.target.checked) {
2272
- value = this.trueLabel === undefined ? true : this.trueLabel;
2273
- } else {
2274
- value = this.falseLabel === undefined ? false : this.falseLabel;
2275
- }
2276
- this.$emit('change', value, ev);
2277
- this.$nextTick(function () {
2278
- if (_this.isGroup) {
2279
- _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
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
+ )
2280
164
  }
2281
- });
2282
- }
2283
- },
2284
- created: function created() {
2285
- this.checked && this.addToStore();
2286
- },
2287
- mounted: function mounted() {
2288
- // 为indeterminate元素 添加aria-controls 属性
2289
- if (this.indeterminate) {
2290
- this.$el.setAttribute('aria-controls', this.controls);
2291
- }
2292
- },
2293
- watch: {
2294
- value: function value(_value) {
2295
- this.dispatch('ElFormItem', 'el.form.change', _value);
2296
- }
165
+ : injectStyles
2297
166
  }
2298
- });
2299
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
2300
- /* harmony default export */ var src_checkboxvue_type_script_lang_js = (checkboxvue_type_script_lang_js);
2301
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2302
- var componentNormalizer = __webpack_require__(2);
2303
-
2304
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
2305
-
2306
-
2307
-
2308
-
2309
-
2310
- /* normalize component */
2311
-
2312
- var component = Object(componentNormalizer["a" /* default */])(
2313
- src_checkboxvue_type_script_lang_js,
2314
- render,
2315
- staticRenderFns,
2316
- false,
2317
- null,
2318
- null,
2319
- null
2320
-
2321
- )
2322
-
2323
- /* harmony default export */ var src_checkbox = (component.exports);
2324
- // CONCATENATED MODULE: ./packages/checkbox/index.js
2325
-
2326
-
2327
-
2328
- /* istanbul ignore next */
2329
- src_checkbox.install = function (Vue) {
2330
- Vue.component(src_checkbox.name, src_checkbox);
2331
- };
2332
- /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
2333
-
2334
- /***/ }),
2335
- /* 78 */,
2336
- /* 79 */,
2337
- /* 80 */
2338
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2339
167
 
2340
- "use strict";
2341
- // ESM COMPAT FLAG
2342
- __webpack_require__.r(__webpack_exports__);
2343
-
2344
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
2345
- var es_function_name_js_ = __webpack_require__(5);
2346
-
2347
- // 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
2348
- var render = function render() {
2349
- var _vm = this,
2350
- _c = _vm._self._c
2351
- return _c(
2352
- "button",
2353
- {
2354
- staticClass: "el-button",
2355
- class: [
2356
- _vm.type ? "el-button--" + _vm.type : "",
2357
- _vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
2358
- {
2359
- "is-disabled": _vm.buttonDisabled,
2360
- "is-loading": _vm.loading,
2361
- "is-plain": _vm.plain,
2362
- "is-round": _vm.round,
2363
- "is-circle": _vm.circle,
2364
- },
2365
- ],
2366
- attrs: {
2367
- disabled: _vm.buttonDisabled || _vm.loading,
2368
- autofocus: _vm.autofocus,
2369
- type: _vm.nativeType,
2370
- },
2371
- on: { click: _vm.handleClick },
2372
- },
2373
- [
2374
- _vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
2375
- _vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
2376
- _vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e(),
2377
- ]
2378
- )
2379
- }
2380
- var staticRenderFns = []
2381
- render._withStripped = true
2382
-
2383
-
2384
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=595a2866
2385
-
2386
- // 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
2387
- /* harmony default export */ var buttonvue_type_script_lang_js = ({
2388
- name: 'ElButton',
2389
- inject: {
2390
- elForm: {
2391
- default: ''
2392
- },
2393
- elFormItem: {
2394
- default: ''
2395
- }
2396
- },
2397
- props: {
2398
- type: {
2399
- type: String,
2400
- default: 'default'
2401
- },
2402
- size: String,
2403
- icon: {
2404
- type: String,
2405
- default: ''
2406
- },
2407
- nativeType: {
2408
- type: String,
2409
- default: 'button'
2410
- },
2411
- loading: Boolean,
2412
- disabled: Boolean,
2413
- plain: Boolean,
2414
- autofocus: Boolean,
2415
- round: Boolean,
2416
- circle: Boolean
2417
- },
2418
- computed: {
2419
- _elFormItemSize: function _elFormItemSize() {
2420
- return (this.elFormItem || {}).elFormItemSize;
2421
- },
2422
- buttonSize: function buttonSize() {
2423
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2424
- },
2425
- buttonDisabled: function buttonDisabled() {
2426
- return this.$options.propsData.hasOwnProperty('disabled') ? this.disabled : (this.elForm || {}).disabled;
2427
- }
2428
- },
2429
- methods: {
2430
- handleClick: function handleClick(evt) {
2431
- this.$emit('click', evt);
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2432
183
  }
2433
184
  }
2434
- });
2435
- // CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js
2436
- /* harmony default export */ var src_buttonvue_type_script_lang_js = (buttonvue_type_script_lang_js);
2437
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2438
- var componentNormalizer = __webpack_require__(2);
2439
-
2440
- // CONCATENATED MODULE: ./packages/button/src/button.vue
2441
-
2442
-
2443
-
2444
-
2445
-
2446
- /* normalize component */
2447
-
2448
- var component = Object(componentNormalizer["a" /* default */])(
2449
- src_buttonvue_type_script_lang_js,
2450
- render,
2451
- staticRenderFns,
2452
- false,
2453
- null,
2454
- null,
2455
- null
2456
-
2457
- )
2458
-
2459
- /* harmony default export */ var src_button = (component.exports);
2460
- // CONCATENATED MODULE: ./packages/button/index.js
2461
-
2462
185
 
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
2463
191
 
2464
- /* istanbul ignore next */
2465
- src_button.install = function (Vue) {
2466
- Vue.component(src_button.name, src_button);
2467
- };
2468
- /* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
2469
192
 
2470
193
  /***/ }),
2471
- /* 81 */,
2472
- /* 82 */,
2473
- /* 83 */,
2474
- /* 84 */,
2475
- /* 85 */,
2476
- /* 86 */,
2477
- /* 87 */,
2478
- /* 88 */,
2479
- /* 89 */,
2480
- /* 90 */,
2481
- /* 91 */,
2482
- /* 92 */,
2483
- /* 93 */,
2484
- /* 94 */,
2485
- /* 95 */,
2486
- /* 96 */,
2487
- /* 97 */,
2488
- /* 98 */,
2489
- /* 99 */,
2490
- /* 100 */,
2491
- /* 101 */,
2492
- /* 102 */,
2493
- /* 103 */,
2494
- /* 104 */
2495
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2496
-
2497
- "use strict";
2498
- // ESM COMPAT FLAG
2499
- __webpack_require__.r(__webpack_exports__);
2500
194
 
2501
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
2502
- var es_function_name_js_ = __webpack_require__(5);
195
+ /***/ 10:
196
+ /***/ (function(module, exports) {
2503
197
 
2504
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=768b91be
2505
- var render = function render() {
2506
- var _vm = this,
2507
- _c = _vm._self._c
2508
- return _c(
2509
- "div",
2510
- {
2511
- staticClass: "el-checkbox-group",
2512
- attrs: { role: "group", "aria-label": "checkbox-group" },
2513
- },
2514
- [_vm._t("default")],
2515
- 2
2516
- )
2517
- }
2518
- var staticRenderFns = []
2519
- render._withStripped = true
198
+ module.exports = require("element-ui/lib/input");
2520
199
 
200
+ /***/ }),
2521
201
 
2522
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=768b91be
202
+ /***/ 11:
203
+ /***/ (function(module, exports) {
2523
204
 
2524
- // EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
2525
- var es_number_constructor_js_ = __webpack_require__(6);
205
+ module.exports = require("element-ui/lib/mixins/migrating");
2526
206
 
2527
- // EXTERNAL MODULE: ./src/mixins/emitter.js
2528
- var emitter = __webpack_require__(14);
207
+ /***/ }),
2529
208
 
2530
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js
209
+ /***/ 13:
210
+ /***/ (function(module, exports) {
2531
211
 
212
+ module.exports = require("element-ui/lib/button");
2532
213
 
2533
- /* harmony default export */ var checkbox_groupvue_type_script_lang_js = ({
2534
- name: 'ElCheckboxGroup',
2535
- componentName: 'ElCheckboxGroup',
2536
- mixins: [emitter["a" /* default */]],
2537
- inject: {
2538
- elFormItem: {
2539
- default: ''
2540
- }
2541
- },
2542
- props: {
2543
- value: {},
2544
- disabled: Boolean,
2545
- min: Number,
2546
- max: Number,
2547
- size: String,
2548
- fill: String,
2549
- textColor: String
2550
- },
2551
- computed: {
2552
- _elFormItemSize: function _elFormItemSize() {
2553
- return (this.elFormItem || {}).elFormItemSize;
2554
- },
2555
- checkboxGroupSize: function checkboxGroupSize() {
2556
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2557
- }
2558
- },
2559
- watch: {
2560
- value: function value(_value) {
2561
- this.dispatch('ElFormItem', 'el.form.change', [_value]);
2562
- }
2563
- }
2564
- });
2565
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js
2566
- /* harmony default export */ var src_checkbox_groupvue_type_script_lang_js = (checkbox_groupvue_type_script_lang_js);
2567
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
2568
- var componentNormalizer = __webpack_require__(2);
214
+ /***/ }),
2569
215
 
2570
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue
216
+ /***/ 15:
217
+ /***/ (function(module, exports) {
2571
218
 
219
+ module.exports = require("element-ui/lib/checkbox");
2572
220
 
221
+ /***/ }),
2573
222
 
223
+ /***/ 4:
224
+ /***/ (function(module, exports) {
2574
225
 
226
+ module.exports = require("element-ui/lib/mixins/emitter");
2575
227
 
2576
- /* normalize component */
228
+ /***/ }),
2577
229
 
2578
- var component = Object(componentNormalizer["a" /* default */])(
2579
- src_checkbox_groupvue_type_script_lang_js,
2580
- render,
2581
- staticRenderFns,
2582
- false,
2583
- null,
2584
- null,
2585
- null
2586
-
2587
- )
230
+ /***/ 40:
231
+ /***/ (function(module, exports) {
2588
232
 
2589
- /* harmony default export */ var checkbox_group = (component.exports);
2590
- // CONCATENATED MODULE: ./packages/checkbox-group/index.js
233
+ module.exports = require("element-ui/lib/checkbox-group");
2591
234
 
235
+ /***/ }),
2592
236
 
237
+ /***/ 6:
238
+ /***/ (function(module, exports) {
2593
239
 
2594
- /* istanbul ignore next */
2595
- checkbox_group.install = function (Vue) {
2596
- Vue.component(checkbox_group.name, checkbox_group);
2597
- };
2598
- /* harmony default export */ var packages_checkbox_group = __webpack_exports__["default"] = (checkbox_group);
240
+ module.exports = require("element-ui/lib/mixins/locale");
2599
241
 
2600
242
  /***/ }),
2601
- /* 105 */,
2602
- /* 106 */,
2603
- /* 107 */,
2604
- /* 108 */,
2605
- /* 109 */,
2606
- /* 110 */,
2607
- /* 111 */,
2608
- /* 112 */,
2609
- /* 113 */,
2610
- /* 114 */,
2611
- /* 115 */,
2612
- /* 116 */,
2613
- /* 117 */,
2614
- /* 118 */,
2615
- /* 119 */,
2616
- /* 120 */,
2617
- /* 121 */,
2618
- /* 122 */,
2619
- /* 123 */,
2620
- /* 124 */,
2621
- /* 125 */,
2622
- /* 126 */,
2623
- /* 127 */,
2624
- /* 128 */,
2625
- /* 129 */,
2626
- /* 130 */,
2627
- /* 131 */,
2628
- /* 132 */,
2629
- /* 133 */,
2630
- /* 134 */,
2631
- /* 135 */,
2632
- /* 136 */,
2633
- /* 137 */,
2634
- /* 138 */,
2635
- /* 139 */,
2636
- /* 140 */,
2637
- /* 141 */,
2638
- /* 142 */
243
+
244
+ /***/ 69:
2639
245
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2640
246
 
2641
247
  "use strict";
2642
248
  // ESM COMPAT FLAG
2643
249
  __webpack_require__.r(__webpack_exports__);
2644
250
 
2645
- // EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
2646
- var es_function_name_js_ = __webpack_require__(5);
2647
-
2648
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=template&id=7f2cdc13
2649
- var render = function render() {
2650
- var _vm = this,
2651
- _c = _vm._self._c
251
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=template&id=1e56d6d0
252
+ var render = function () {
253
+ var _vm = this
254
+ var _h = _vm.$createElement
255
+ var _c = _vm._self._c || _h
2652
256
  return _c(
2653
257
  "div",
2654
258
  { staticClass: "el-transfer" },
@@ -2691,7 +295,7 @@ var render = function render() {
2691
295
  },
2692
296
  nativeOn: {
2693
297
  click: function ($event) {
2694
- return _vm.addToLeft.apply(null, arguments)
298
+ return _vm.addToLeft($event)
2695
299
  },
2696
300
  },
2697
301
  },
@@ -2715,7 +319,7 @@ var render = function render() {
2715
319
  },
2716
320
  nativeOn: {
2717
321
  click: function ($event) {
2718
- return _vm.addToRight.apply(null, arguments)
322
+ return _vm.addToRight($event)
2719
323
  },
2720
324
  },
2721
325
  },
@@ -2758,39 +362,25 @@ var staticRenderFns = []
2758
362
  render._withStripped = true
2759
363
 
2760
364
 
2761
- // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=template&id=7f2cdc13
2762
-
2763
- // EXTERNAL MODULE: external "core-js/modules/es.array.concat.js"
2764
- var es_array_concat_js_ = __webpack_require__(21);
2765
-
2766
- // EXTERNAL MODULE: external "core-js/modules/es.array.filter.js"
2767
- var es_array_filter_js_ = __webpack_require__(18);
2768
-
2769
- // EXTERNAL MODULE: external "core-js/modules/es.array.slice.js"
2770
- var es_array_slice_js_ = __webpack_require__(13);
365
+ // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=template&id=1e56d6d0
2771
366
 
2772
- // EXTERNAL MODULE: external "core-js/modules/es.array.splice.js"
2773
- var es_array_splice_js_ = __webpack_require__(22);
367
+ // EXTERNAL MODULE: external "element-ui/lib/button"
368
+ var button_ = __webpack_require__(13);
369
+ var button_default = /*#__PURE__*/__webpack_require__.n(button_);
2774
370
 
2775
- // EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
2776
- var es_object_to_string_js_ = __webpack_require__(3);
371
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
372
+ var emitter_ = __webpack_require__(4);
373
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
2777
374
 
2778
- // EXTERNAL MODULE: external "core-js/modules/web.dom-collections.for-each.js"
2779
- var web_dom_collections_for_each_js_ = __webpack_require__(10);
375
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/locale"
376
+ var locale_ = __webpack_require__(6);
377
+ var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
2780
378
 
2781
- // EXTERNAL MODULE: ./packages/button/index.js + 5 modules
2782
- var packages_button = __webpack_require__(80);
2783
-
2784
- // EXTERNAL MODULE: ./src/mixins/emitter.js
2785
- var emitter = __webpack_require__(14);
2786
-
2787
- // EXTERNAL MODULE: ./src/mixins/locale.js
2788
- var locale = __webpack_require__(55);
2789
-
2790
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=template&id=6f760bc0
2791
- var transfer_panelvue_type_template_id_6f760bc0_render = function render() {
2792
- var _vm = this,
2793
- _c = _vm._self._c
379
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=template&id=1a143248
380
+ var transfer_panelvue_type_template_id_1a143248_render = function () {
381
+ var _vm = this
382
+ var _h = _vm.$createElement
383
+ var _c = _vm._self._c || _h
2794
384
  return _c("div", { staticClass: "el-transfer-panel" }, [
2795
385
  _c(
2796
386
  "p",
@@ -2939,40 +529,78 @@ var transfer_panelvue_type_template_id_6f760bc0_render = function render() {
2939
529
  : _vm._e(),
2940
530
  ])
2941
531
  }
2942
- var transfer_panelvue_type_template_id_6f760bc0_staticRenderFns = []
2943
- transfer_panelvue_type_template_id_6f760bc0_render._withStripped = true
2944
-
532
+ var transfer_panelvue_type_template_id_1a143248_staticRenderFns = []
533
+ transfer_panelvue_type_template_id_1a143248_render._withStripped = true
2945
534
 
2946
- // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=template&id=6f760bc0
2947
535
 
2948
- // EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
2949
- var es_array_map_js_ = __webpack_require__(20);
536
+ // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=template&id=1a143248
2950
537
 
2951
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.exec.js"
2952
- var es_regexp_exec_js_ = __webpack_require__(7);
538
+ // EXTERNAL MODULE: external "element-ui/lib/checkbox-group"
539
+ var checkbox_group_ = __webpack_require__(40);
540
+ var checkbox_group_default = /*#__PURE__*/__webpack_require__.n(checkbox_group_);
2953
541
 
2954
- // EXTERNAL MODULE: external "core-js/modules/es.regexp.to-string.js"
2955
- var es_regexp_to_string_js_ = __webpack_require__(11);
542
+ // EXTERNAL MODULE: external "element-ui/lib/checkbox"
543
+ var checkbox_ = __webpack_require__(15);
544
+ var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
2956
545
 
2957
- // EXTERNAL MODULE: external "core-js/modules/es.string.replace.js"
2958
- var es_string_replace_js_ = __webpack_require__(12);
2959
-
2960
- // EXTERNAL MODULE: ./packages/checkbox-group/index.js + 5 modules
2961
- var checkbox_group = __webpack_require__(104);
2962
-
2963
- // EXTERNAL MODULE: ./packages/checkbox/index.js + 5 modules
2964
- var packages_checkbox = __webpack_require__(77);
2965
-
2966
- // EXTERNAL MODULE: ./packages/input/index.js + 6 modules
2967
- var input = __webpack_require__(63);
546
+ // EXTERNAL MODULE: external "element-ui/lib/input"
547
+ var input_ = __webpack_require__(10);
548
+ var input_default = /*#__PURE__*/__webpack_require__.n(input_);
2968
549
 
2969
550
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js
2970
-
2971
-
2972
-
2973
-
2974
-
2975
-
551
+ //
552
+ //
553
+ //
554
+ //
555
+ //
556
+ //
557
+ //
558
+ //
559
+ //
560
+ //
561
+ //
562
+ //
563
+ //
564
+ //
565
+ //
566
+ //
567
+ //
568
+ //
569
+ //
570
+ //
571
+ //
572
+ //
573
+ //
574
+ //
575
+ //
576
+ //
577
+ //
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
2976
604
 
2977
605
 
2978
606
 
@@ -2980,191 +608,207 @@ var input = __webpack_require__(63);
2980
608
 
2981
609
 
2982
610
  /* harmony default export */ var transfer_panelvue_type_script_lang_js = ({
2983
- mixins: [locale["a" /* default */]],
2984
- name: 'ElTransferPanel',
2985
- componentName: 'ElTransferPanel',
2986
- components: {
2987
- ElCheckboxGroup: checkbox_group["default"],
2988
- ElCheckbox: packages_checkbox["default"],
2989
- ElInput: input["default"],
2990
- OptionContent: {
2991
- props: {
2992
- option: Object
2993
- },
2994
- render: function render(h) {
2995
- var _getParent = function getParent(vm) {
2996
- if (vm.$options.componentName === 'ElTransferPanel') {
2997
- return vm;
2998
- } else if (vm.$parent) {
2999
- return _getParent(vm.$parent);
3000
- } else {
3001
- return vm;
3002
- }
3003
- };
3004
- var panel = _getParent(this);
3005
- var transfer = panel.$parent || panel;
3006
- return panel.renderContent ? panel.renderContent(h, this.option) : transfer.$scopedSlots.default ? transfer.$scopedSlots.default({
3007
- option: this.option
3008
- }) : h("span", [this.option[panel.labelProp] || this.option[panel.keyProp]]);
3009
- }
3010
- }
3011
- },
3012
- props: {
3013
- data: {
3014
- type: Array,
3015
- default: function _default() {
3016
- return [];
3017
- }
3018
- },
3019
- renderContent: Function,
3020
- placeholder: String,
3021
- title: String,
3022
- filterable: Boolean,
3023
- format: Object,
3024
- filterMethod: Function,
3025
- defaultChecked: Array,
3026
- props: Object
3027
- },
3028
- data: function data() {
3029
- return {
3030
- checked: [],
3031
- allChecked: false,
3032
- query: '',
3033
- inputHover: false,
3034
- checkChangeByUser: true
3035
- };
3036
- },
3037
- watch: {
3038
- checked: function checked(val, oldVal) {
3039
- this.updateAllChecked();
3040
- if (this.checkChangeByUser) {
3041
- var movedKeys = val.concat(oldVal).filter(function (v) {
3042
- return val.indexOf(v) === -1 || oldVal.indexOf(v) === -1;
3043
- });
3044
- this.$emit('checked-change', val, movedKeys);
3045
- } else {
3046
- this.$emit('checked-change', val);
3047
- this.checkChangeByUser = true;
3048
- }
3049
- },
3050
- data: function data() {
3051
- var _this = this;
3052
- var checked = [];
3053
- var filteredDataKeys = this.filteredData.map(function (item) {
3054
- return item[_this.keyProp];
3055
- });
3056
- this.checked.forEach(function (item) {
3057
- if (filteredDataKeys.indexOf(item) > -1) {
3058
- checked.push(item);
3059
- }
3060
- });
3061
- this.checkChangeByUser = false;
3062
- this.checked = checked;
3063
- },
3064
- checkableData: function checkableData() {
3065
- this.updateAllChecked();
3066
- },
3067
- defaultChecked: {
3068
- immediate: true,
3069
- handler: function handler(val, oldVal) {
3070
- var _this2 = this;
3071
- if (oldVal && val.length === oldVal.length && val.every(function (item) {
3072
- return oldVal.indexOf(item) > -1;
3073
- })) return;
3074
- var checked = [];
3075
- var checkableDataKeys = this.checkableData.map(function (item) {
3076
- return item[_this2.keyProp];
3077
- });
3078
- val.forEach(function (item) {
3079
- if (checkableDataKeys.indexOf(item) > -1) {
3080
- checked.push(item);
3081
- }
3082
- });
3083
- this.checkChangeByUser = false;
3084
- this.checked = checked;
3085
- }
3086
- }
3087
- },
3088
- computed: {
3089
- filteredData: function filteredData() {
3090
- var _this3 = this;
3091
- return this.data.filter(function (item) {
3092
- if (typeof _this3.filterMethod === 'function') {
3093
- return _this3.filterMethod(_this3.query, item);
3094
- } else {
3095
- var label = item[_this3.labelProp] || item[_this3.keyProp].toString();
3096
- return label.toLowerCase().indexOf(_this3.query.toLowerCase()) > -1;
3097
- }
3098
- });
3099
- },
3100
- checkableData: function checkableData() {
3101
- var _this4 = this;
3102
- return this.filteredData.filter(function (item) {
3103
- return !item[_this4.disabledProp];
3104
- });
3105
- },
3106
- checkedSummary: function checkedSummary() {
3107
- var checkedLength = this.checked.length;
3108
- var dataLength = this.data.length;
3109
- var _this$format = this.format,
3110
- noChecked = _this$format.noChecked,
3111
- hasChecked = _this$format.hasChecked;
3112
- if (noChecked && hasChecked) {
3113
- return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) : noChecked.replace(/\${total}/g, dataLength);
3114
- } else {
3115
- return checkedLength + "/" + dataLength;
3116
- }
3117
- },
3118
- isIndeterminate: function isIndeterminate() {
3119
- var checkedLength = this.checked.length;
3120
- return checkedLength > 0 && checkedLength < this.checkableData.length;
3121
- },
3122
- hasNoMatch: function hasNoMatch() {
3123
- return this.query.length > 0 && this.filteredData.length === 0;
3124
- },
3125
- inputIcon: function inputIcon() {
3126
- return this.query.length > 0 && this.inputHover ? 'circle-close' : 'search';
3127
- },
3128
- labelProp: function labelProp() {
3129
- return this.props.label || 'label';
3130
- },
3131
- keyProp: function keyProp() {
3132
- return this.props.key || 'key';
3133
- },
3134
- disabledProp: function disabledProp() {
3135
- return this.props.disabled || 'disabled';
3136
- },
3137
- hasFooter: function hasFooter() {
3138
- return !!this.$slots.default;
3139
- }
3140
- },
3141
- methods: {
3142
- updateAllChecked: function updateAllChecked() {
3143
- var _this5 = this;
3144
- var checkableDataKeys = this.checkableData.map(function (item) {
3145
- return item[_this5.keyProp];
3146
- });
3147
- this.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every(function (item) {
3148
- return _this5.checked.indexOf(item) > -1;
3149
- });
3150
- },
3151
- handleAllCheckedChange: function handleAllCheckedChange(value) {
3152
- var _this6 = this;
3153
- this.checked = value ? this.checkableData.map(function (item) {
3154
- return item[_this6.keyProp];
3155
- }) : [];
3156
- },
3157
- clearQuery: function clearQuery() {
3158
- if (this.inputIcon === 'circle-close') {
3159
- this.query = '';
3160
- }
3161
- }
3162
- }
611
+ mixins: [locale_default.a],
612
+
613
+ name: 'ElTransferPanel',
614
+
615
+ componentName: 'ElTransferPanel',
616
+
617
+ components: {
618
+ ElCheckboxGroup: checkbox_group_default.a,
619
+ ElCheckbox: checkbox_default.a,
620
+ ElInput: input_default.a,
621
+ OptionContent: {
622
+ props: {
623
+ option: Object
624
+ },
625
+ render: function render(h) {
626
+ var getParent = function getParent(vm) {
627
+ if (vm.$options.componentName === 'ElTransferPanel') {
628
+ return vm;
629
+ } else if (vm.$parent) {
630
+ return getParent(vm.$parent);
631
+ } else {
632
+ return vm;
633
+ }
634
+ };
635
+ var panel = getParent(this);
636
+ var transfer = panel.$parent || panel;
637
+ return panel.renderContent ? panel.renderContent(h, this.option) : transfer.$scopedSlots.default ? transfer.$scopedSlots.default({ option: this.option }) : h('span', [this.option[panel.labelProp] || this.option[panel.keyProp]]);
638
+ }
639
+ }
640
+ },
641
+
642
+ props: {
643
+ data: {
644
+ type: Array,
645
+ default: function _default() {
646
+ return [];
647
+ }
648
+ },
649
+ renderContent: Function,
650
+ placeholder: String,
651
+ title: String,
652
+ filterable: Boolean,
653
+ format: Object,
654
+ filterMethod: Function,
655
+ defaultChecked: Array,
656
+ props: Object
657
+ },
658
+
659
+ data: function data() {
660
+ return {
661
+ checked: [],
662
+ allChecked: false,
663
+ query: '',
664
+ inputHover: false,
665
+ checkChangeByUser: true
666
+ };
667
+ },
668
+
669
+
670
+ watch: {
671
+ checked: function checked(val, oldVal) {
672
+ this.updateAllChecked();
673
+ if (this.checkChangeByUser) {
674
+ var movedKeys = val.concat(oldVal).filter(function (v) {
675
+ return val.indexOf(v) === -1 || oldVal.indexOf(v) === -1;
676
+ });
677
+ this.$emit('checked-change', val, movedKeys);
678
+ } else {
679
+ this.$emit('checked-change', val);
680
+ this.checkChangeByUser = true;
681
+ }
682
+ },
683
+ data: function data() {
684
+ var _this = this;
685
+
686
+ var checked = [];
687
+ var filteredDataKeys = this.filteredData.map(function (item) {
688
+ return item[_this.keyProp];
689
+ });
690
+ this.checked.forEach(function (item) {
691
+ if (filteredDataKeys.indexOf(item) > -1) {
692
+ checked.push(item);
693
+ }
694
+ });
695
+ this.checkChangeByUser = false;
696
+ this.checked = checked;
697
+ },
698
+ checkableData: function checkableData() {
699
+ this.updateAllChecked();
700
+ },
701
+
702
+
703
+ defaultChecked: {
704
+ immediate: true,
705
+ handler: function handler(val, oldVal) {
706
+ var _this2 = this;
707
+
708
+ if (oldVal && val.length === oldVal.length && val.every(function (item) {
709
+ return oldVal.indexOf(item) > -1;
710
+ })) return;
711
+ var checked = [];
712
+ var checkableDataKeys = this.checkableData.map(function (item) {
713
+ return item[_this2.keyProp];
714
+ });
715
+ val.forEach(function (item) {
716
+ if (checkableDataKeys.indexOf(item) > -1) {
717
+ checked.push(item);
718
+ }
719
+ });
720
+ this.checkChangeByUser = false;
721
+ this.checked = checked;
722
+ }
723
+ }
724
+ },
725
+
726
+ computed: {
727
+ filteredData: function filteredData() {
728
+ var _this3 = this;
729
+
730
+ return this.data.filter(function (item) {
731
+ if (typeof _this3.filterMethod === 'function') {
732
+ return _this3.filterMethod(_this3.query, item);
733
+ } else {
734
+ var label = item[_this3.labelProp] || item[_this3.keyProp].toString();
735
+ return label.toLowerCase().indexOf(_this3.query.toLowerCase()) > -1;
736
+ }
737
+ });
738
+ },
739
+ checkableData: function checkableData() {
740
+ var _this4 = this;
741
+
742
+ return this.filteredData.filter(function (item) {
743
+ return !item[_this4.disabledProp];
744
+ });
745
+ },
746
+ checkedSummary: function checkedSummary() {
747
+ var checkedLength = this.checked.length;
748
+ var dataLength = this.data.length;
749
+ var _format = this.format,
750
+ noChecked = _format.noChecked,
751
+ hasChecked = _format.hasChecked;
752
+
753
+ if (noChecked && hasChecked) {
754
+ return checkedLength > 0 ? hasChecked.replace(/\${checked}/g, checkedLength).replace(/\${total}/g, dataLength) : noChecked.replace(/\${total}/g, dataLength);
755
+ } else {
756
+ return checkedLength + '/' + dataLength;
757
+ }
758
+ },
759
+ isIndeterminate: function isIndeterminate() {
760
+ var checkedLength = this.checked.length;
761
+ return checkedLength > 0 && checkedLength < this.checkableData.length;
762
+ },
763
+ hasNoMatch: function hasNoMatch() {
764
+ return this.query.length > 0 && this.filteredData.length === 0;
765
+ },
766
+ inputIcon: function inputIcon() {
767
+ return this.query.length > 0 && this.inputHover ? 'circle-close' : 'search';
768
+ },
769
+ labelProp: function labelProp() {
770
+ return this.props.label || 'label';
771
+ },
772
+ keyProp: function keyProp() {
773
+ return this.props.key || 'key';
774
+ },
775
+ disabledProp: function disabledProp() {
776
+ return this.props.disabled || 'disabled';
777
+ },
778
+ hasFooter: function hasFooter() {
779
+ return !!this.$slots.default;
780
+ }
781
+ },
782
+
783
+ methods: {
784
+ updateAllChecked: function updateAllChecked() {
785
+ var _this5 = this;
786
+
787
+ var checkableDataKeys = this.checkableData.map(function (item) {
788
+ return item[_this5.keyProp];
789
+ });
790
+ this.allChecked = checkableDataKeys.length > 0 && checkableDataKeys.every(function (item) {
791
+ return _this5.checked.indexOf(item) > -1;
792
+ });
793
+ },
794
+ handleAllCheckedChange: function handleAllCheckedChange(value) {
795
+ var _this6 = this;
796
+
797
+ this.checked = value ? this.checkableData.map(function (item) {
798
+ return item[_this6.keyProp];
799
+ }) : [];
800
+ },
801
+ clearQuery: function clearQuery() {
802
+ if (this.inputIcon === 'circle-close') {
803
+ this.query = '';
804
+ }
805
+ }
806
+ }
3163
807
  });
3164
808
  // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue?vue&type=script&lang=js
3165
809
  /* harmony default export */ var src_transfer_panelvue_type_script_lang_js = (transfer_panelvue_type_script_lang_js);
3166
810
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3167
- var componentNormalizer = __webpack_require__(2);
811
+ var componentNormalizer = __webpack_require__(0);
3168
812
 
3169
813
  // CONCATENATED MODULE: ./packages/transfer/src/transfer-panel.vue
3170
814
 
@@ -3176,8 +820,8 @@ var componentNormalizer = __webpack_require__(2);
3176
820
 
3177
821
  var component = Object(componentNormalizer["a" /* default */])(
3178
822
  src_transfer_panelvue_type_script_lang_js,
3179
- transfer_panelvue_type_template_id_6f760bc0_render,
3180
- transfer_panelvue_type_template_id_6f760bc0_staticRenderFns,
823
+ transfer_panelvue_type_template_id_1a143248_render,
824
+ transfer_panelvue_type_template_id_1a143248_staticRenderFns,
3181
825
  false,
3182
826
  null,
3183
827
  null,
@@ -3186,14 +830,54 @@ var component = Object(componentNormalizer["a" /* default */])(
3186
830
  )
3187
831
 
3188
832
  /* harmony default export */ var transfer_panel = (component.exports);
3189
- // EXTERNAL MODULE: ./src/mixins/migrating.js
3190
- var migrating = __webpack_require__(54);
833
+ // EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
834
+ var migrating_ = __webpack_require__(11);
835
+ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
3191
836
 
3192
837
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/transfer/src/main.vue?vue&type=script&lang=js
3193
-
3194
-
3195
-
3196
-
838
+ //
839
+ //
840
+ //
841
+ //
842
+ //
843
+ //
844
+ //
845
+ //
846
+ //
847
+ //
848
+ //
849
+ //
850
+ //
851
+ //
852
+ //
853
+ //
854
+ //
855
+ //
856
+ //
857
+ //
858
+ //
859
+ //
860
+ //
861
+ //
862
+ //
863
+ //
864
+ //
865
+ //
866
+ //
867
+ //
868
+ //
869
+ //
870
+ //
871
+ //
872
+ //
873
+ //
874
+ //
875
+ //
876
+ //
877
+ //
878
+ //
879
+ //
880
+ //
3197
881
 
3198
882
 
3199
883
 
@@ -3202,173 +886,184 @@ var migrating = __webpack_require__(54);
3202
886
 
3203
887
 
3204
888
  /* harmony default export */ var mainvue_type_script_lang_js = ({
3205
- name: 'ElTransfer',
3206
- mixins: [emitter["a" /* default */], locale["a" /* default */], migrating["a" /* default */]],
3207
- components: {
3208
- TransferPanel: transfer_panel,
3209
- ElButton: packages_button["default"]
3210
- },
3211
- props: {
3212
- data: {
3213
- type: Array,
3214
- default: function _default() {
3215
- return [];
3216
- }
3217
- },
3218
- titles: {
3219
- type: Array,
3220
- default: function _default() {
3221
- return [];
3222
- }
3223
- },
3224
- buttonTexts: {
3225
- type: Array,
3226
- default: function _default() {
3227
- return [];
3228
- }
3229
- },
3230
- filterPlaceholder: {
3231
- type: String,
3232
- default: ''
3233
- },
3234
- filterMethod: Function,
3235
- leftDefaultChecked: {
3236
- type: Array,
3237
- default: function _default() {
3238
- return [];
3239
- }
3240
- },
3241
- rightDefaultChecked: {
3242
- type: Array,
3243
- default: function _default() {
3244
- return [];
3245
- }
3246
- },
3247
- renderContent: Function,
3248
- value: {
3249
- type: Array,
3250
- default: function _default() {
3251
- return [];
3252
- }
3253
- },
3254
- format: {
3255
- type: Object,
3256
- default: function _default() {
3257
- return {};
3258
- }
3259
- },
3260
- filterable: Boolean,
3261
- props: {
3262
- type: Object,
3263
- default: function _default() {
3264
- return {
3265
- label: 'label',
3266
- key: 'key',
3267
- disabled: 'disabled'
3268
- };
3269
- }
3270
- },
3271
- targetOrder: {
3272
- type: String,
3273
- default: 'original'
3274
- }
3275
- },
3276
- data: function data() {
3277
- return {
3278
- leftChecked: [],
3279
- rightChecked: []
3280
- };
3281
- },
3282
- computed: {
3283
- dataObj: function dataObj() {
3284
- var key = this.props.key;
3285
- return this.data.reduce(function (o, cur) {
3286
- return (o[cur[key]] = cur) && o;
3287
- }, {});
3288
- },
3289
- sourceData: function sourceData() {
3290
- var _this = this;
3291
- return this.data.filter(function (item) {
3292
- return _this.value.indexOf(item[_this.props.key]) === -1;
3293
- });
3294
- },
3295
- targetData: function targetData() {
3296
- var _this2 = this;
3297
- if (this.targetOrder === 'original') {
3298
- return this.data.filter(function (item) {
3299
- return _this2.value.indexOf(item[_this2.props.key]) > -1;
3300
- });
3301
- } else {
3302
- return this.value.reduce(function (arr, cur) {
3303
- var val = _this2.dataObj[cur];
3304
- if (val) {
3305
- arr.push(val);
3306
- }
3307
- return arr;
3308
- }, []);
3309
- }
3310
- },
3311
- hasButtonTexts: function hasButtonTexts() {
3312
- return this.buttonTexts.length === 2;
3313
- }
3314
- },
3315
- watch: {
3316
- value: function value(val) {
3317
- this.dispatch('ElFormItem', 'el.form.change', val);
3318
- }
3319
- },
3320
- methods: {
3321
- getMigratingConfig: function getMigratingConfig() {
3322
- return {
3323
- props: {
3324
- 'footer-format': 'footer-format is renamed to format.'
3325
- }
3326
- };
3327
- },
3328
- onSourceCheckedChange: function onSourceCheckedChange(val, movedKeys) {
3329
- this.leftChecked = val;
3330
- if (movedKeys === undefined) return;
3331
- this.$emit('left-check-change', val, movedKeys);
3332
- },
3333
- onTargetCheckedChange: function onTargetCheckedChange(val, movedKeys) {
3334
- this.rightChecked = val;
3335
- if (movedKeys === undefined) return;
3336
- this.$emit('right-check-change', val, movedKeys);
3337
- },
3338
- addToLeft: function addToLeft() {
3339
- var currentValue = this.value.slice();
3340
- this.rightChecked.forEach(function (item) {
3341
- var index = currentValue.indexOf(item);
3342
- if (index > -1) {
3343
- currentValue.splice(index, 1);
3344
- }
3345
- });
3346
- this.$emit('input', currentValue);
3347
- this.$emit('change', currentValue, 'left', this.rightChecked);
3348
- },
3349
- addToRight: function addToRight() {
3350
- var _this3 = this;
3351
- var currentValue = this.value.slice();
3352
- var itemsToBeMoved = [];
3353
- var key = this.props.key;
3354
- this.data.forEach(function (item) {
3355
- var itemKey = item[key];
3356
- if (_this3.leftChecked.indexOf(itemKey) > -1 && _this3.value.indexOf(itemKey) === -1) {
3357
- itemsToBeMoved.push(itemKey);
3358
- }
3359
- });
3360
- currentValue = this.targetOrder === 'unshift' ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
3361
- this.$emit('input', currentValue);
3362
- this.$emit('change', currentValue, 'right', this.leftChecked);
3363
- },
3364
- clearQuery: function clearQuery(which) {
3365
- if (which === 'left') {
3366
- this.$refs.leftPanel.query = '';
3367
- } else if (which === 'right') {
3368
- this.$refs.rightPanel.query = '';
3369
- }
3370
- }
3371
- }
889
+ name: 'ElTransfer',
890
+
891
+ mixins: [emitter_default.a, locale_default.a, migrating_default.a],
892
+
893
+ components: {
894
+ TransferPanel: transfer_panel,
895
+ ElButton: button_default.a
896
+ },
897
+
898
+ props: {
899
+ data: {
900
+ type: Array,
901
+ default: function _default() {
902
+ return [];
903
+ }
904
+ },
905
+ titles: {
906
+ type: Array,
907
+ default: function _default() {
908
+ return [];
909
+ }
910
+ },
911
+ buttonTexts: {
912
+ type: Array,
913
+ default: function _default() {
914
+ return [];
915
+ }
916
+ },
917
+ filterPlaceholder: {
918
+ type: String,
919
+ default: ''
920
+ },
921
+ filterMethod: Function,
922
+ leftDefaultChecked: {
923
+ type: Array,
924
+ default: function _default() {
925
+ return [];
926
+ }
927
+ },
928
+ rightDefaultChecked: {
929
+ type: Array,
930
+ default: function _default() {
931
+ return [];
932
+ }
933
+ },
934
+ renderContent: Function,
935
+ value: {
936
+ type: Array,
937
+ default: function _default() {
938
+ return [];
939
+ }
940
+ },
941
+ format: {
942
+ type: Object,
943
+ default: function _default() {
944
+ return {};
945
+ }
946
+ },
947
+ filterable: Boolean,
948
+ props: {
949
+ type: Object,
950
+ default: function _default() {
951
+ return {
952
+ label: 'label',
953
+ key: 'key',
954
+ disabled: 'disabled'
955
+ };
956
+ }
957
+ },
958
+ targetOrder: {
959
+ type: String,
960
+ default: 'original'
961
+ }
962
+ },
963
+
964
+ data: function data() {
965
+ return {
966
+ leftChecked: [],
967
+ rightChecked: []
968
+ };
969
+ },
970
+
971
+
972
+ computed: {
973
+ dataObj: function dataObj() {
974
+ var key = this.props.key;
975
+ return this.data.reduce(function (o, cur) {
976
+ return (o[cur[key]] = cur) && o;
977
+ }, {});
978
+ },
979
+ sourceData: function sourceData() {
980
+ var _this = this;
981
+
982
+ return this.data.filter(function (item) {
983
+ return _this.value.indexOf(item[_this.props.key]) === -1;
984
+ });
985
+ },
986
+ targetData: function targetData() {
987
+ var _this2 = this;
988
+
989
+ if (this.targetOrder === 'original') {
990
+ return this.data.filter(function (item) {
991
+ return _this2.value.indexOf(item[_this2.props.key]) > -1;
992
+ });
993
+ } else {
994
+ return this.value.reduce(function (arr, cur) {
995
+ var val = _this2.dataObj[cur];
996
+ if (val) {
997
+ arr.push(val);
998
+ }
999
+ return arr;
1000
+ }, []);
1001
+ }
1002
+ },
1003
+ hasButtonTexts: function hasButtonTexts() {
1004
+ return this.buttonTexts.length === 2;
1005
+ }
1006
+ },
1007
+
1008
+ watch: {
1009
+ value: function value(val) {
1010
+ this.dispatch('ElFormItem', 'el.form.change', val);
1011
+ }
1012
+ },
1013
+
1014
+ methods: {
1015
+ getMigratingConfig: function getMigratingConfig() {
1016
+ return {
1017
+ props: {
1018
+ 'footer-format': 'footer-format is renamed to format.'
1019
+ }
1020
+ };
1021
+ },
1022
+ onSourceCheckedChange: function onSourceCheckedChange(val, movedKeys) {
1023
+ this.leftChecked = val;
1024
+ if (movedKeys === undefined) return;
1025
+ this.$emit('left-check-change', val, movedKeys);
1026
+ },
1027
+ onTargetCheckedChange: function onTargetCheckedChange(val, movedKeys) {
1028
+ this.rightChecked = val;
1029
+ if (movedKeys === undefined) return;
1030
+ this.$emit('right-check-change', val, movedKeys);
1031
+ },
1032
+ addToLeft: function addToLeft() {
1033
+ var currentValue = this.value.slice();
1034
+ this.rightChecked.forEach(function (item) {
1035
+ var index = currentValue.indexOf(item);
1036
+ if (index > -1) {
1037
+ currentValue.splice(index, 1);
1038
+ }
1039
+ });
1040
+ this.$emit('input', currentValue);
1041
+ this.$emit('change', currentValue, 'left', this.rightChecked);
1042
+ },
1043
+ addToRight: function addToRight() {
1044
+ var _this3 = this;
1045
+
1046
+ var currentValue = this.value.slice();
1047
+ var itemsToBeMoved = [];
1048
+ var key = this.props.key;
1049
+ this.data.forEach(function (item) {
1050
+ var itemKey = item[key];
1051
+ if (_this3.leftChecked.indexOf(itemKey) > -1 && _this3.value.indexOf(itemKey) === -1) {
1052
+ itemsToBeMoved.push(itemKey);
1053
+ }
1054
+ });
1055
+ currentValue = this.targetOrder === 'unshift' ? itemsToBeMoved.concat(currentValue) : currentValue.concat(itemsToBeMoved);
1056
+ this.$emit('input', currentValue);
1057
+ this.$emit('change', currentValue, 'right', this.leftChecked);
1058
+ },
1059
+ clearQuery: function clearQuery(which) {
1060
+ if (which === 'left') {
1061
+ this.$refs.leftPanel.query = '';
1062
+ } else if (which === 'right') {
1063
+ this.$refs.rightPanel.query = '';
1064
+ }
1065
+ }
1066
+ }
3372
1067
  });
3373
1068
  // CONCATENATED MODULE: ./packages/transfer/src/main.vue?vue&type=script&lang=js
3374
1069
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
@@ -3395,12 +1090,13 @@ var main_component = Object(componentNormalizer["a" /* default */])(
3395
1090
  // CONCATENATED MODULE: ./packages/transfer/index.js
3396
1091
 
3397
1092
 
3398
-
3399
1093
  /* istanbul ignore next */
3400
1094
  main.install = function (Vue) {
3401
- Vue.component(main.name, main);
1095
+ Vue.component(main.name, main);
3402
1096
  };
1097
+
3403
1098
  /* harmony default export */ var transfer = __webpack_exports__["default"] = (main);
3404
1099
 
3405
1100
  /***/ })
3406
- /******/ ]);
1101
+
1102
+ /******/ });