cy-element-ui 1.0.87 → 1.1.2

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