nd-autosize-elementui 2.15.15 → 2.15.16

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 (561) hide show
  1. package/package.json +2 -147
  2. package/LICENSE +0 -21
  3. package/README.md +0 -148
  4. package/packages/alert/index.js +0 -8
  5. package/packages/alert/src/main.vue +0 -94
  6. package/packages/aside/index.js +0 -8
  7. package/packages/aside/src/main.vue +0 -20
  8. package/packages/autocomplete/index.js +0 -8
  9. package/packages/autocomplete/src/autocomplete-suggestions.vue +0 -76
  10. package/packages/autocomplete/src/autocomplete.vue +0 -285
  11. package/packages/avatar/index.js +0 -8
  12. package/packages/avatar/src/main.vue +0 -107
  13. package/packages/backtop/index.js +0 -8
  14. package/packages/backtop/src/main.vue +0 -110
  15. package/packages/badge/index.js +0 -8
  16. package/packages/badge/src/main.vue +0 -53
  17. package/packages/breadcrumb/index.js +0 -8
  18. package/packages/breadcrumb/src/breadcrumb-item.vue +0 -41
  19. package/packages/breadcrumb/src/breadcrumb.vue +0 -34
  20. package/packages/breadcrumb-item/index.js +0 -8
  21. package/packages/button/index.js +0 -8
  22. package/packages/button/src/button-group.vue +0 -10
  23. package/packages/button/src/button.vue +0 -78
  24. package/packages/button-group/index.js +0 -8
  25. package/packages/calendar/index.js +0 -8
  26. package/packages/calendar/src/date-table.vue +0 -200
  27. package/packages/calendar/src/main.vue +0 -280
  28. package/packages/card/index.js +0 -8
  29. package/packages/card/src/main.vue +0 -23
  30. package/packages/carousel/index.js +0 -8
  31. package/packages/carousel/src/item.vue +0 -138
  32. package/packages/carousel/src/main.vue +0 -315
  33. package/packages/carousel-item/index.js +0 -8
  34. package/packages/cascader/index.js +0 -8
  35. package/packages/cascader/src/cascader.vue +0 -663
  36. package/packages/cascader-panel/index.js +0 -8
  37. package/packages/cascader-panel/src/cascader-menu.vue +0 -138
  38. package/packages/cascader-panel/src/cascader-node.vue +0 -246
  39. package/packages/cascader-panel/src/cascader-panel.vue +0 -391
  40. package/packages/cascader-panel/src/node.js +0 -166
  41. package/packages/cascader-panel/src/store.js +0 -58
  42. package/packages/checkbox/index.js +0 -8
  43. package/packages/checkbox/src/checkbox-button.vue +0 -199
  44. package/packages/checkbox/src/checkbox-group.vue +0 -48
  45. package/packages/checkbox/src/checkbox.vue +0 -222
  46. package/packages/checkbox-button/index.js +0 -8
  47. package/packages/checkbox-group/index.js +0 -8
  48. package/packages/col/index.js +0 -9
  49. package/packages/col/src/col.js +0 -71
  50. package/packages/collapse/index.js +0 -9
  51. package/packages/collapse/src/collapse-item.vue +0 -114
  52. package/packages/collapse/src/collapse.vue +0 -73
  53. package/packages/collapse-item/index.js +0 -8
  54. package/packages/color-picker/index.js +0 -8
  55. package/packages/color-picker/src/color.js +0 -317
  56. package/packages/color-picker/src/components/alpha-slider.vue +0 -132
  57. package/packages/color-picker/src/components/hue-slider.vue +0 -123
  58. package/packages/color-picker/src/components/picker-dropdown.vue +0 -121
  59. package/packages/color-picker/src/components/predefine.vue +0 -61
  60. package/packages/color-picker/src/components/sv-panel.vue +0 -100
  61. package/packages/color-picker/src/draggable.js +0 -36
  62. package/packages/color-picker/src/main.vue +0 -188
  63. package/packages/container/index.js +0 -8
  64. package/packages/container/src/main.vue +0 -33
  65. package/packages/date-picker/index.js +0 -8
  66. package/packages/date-picker/src/basic/date-table.vue +0 -441
  67. package/packages/date-picker/src/basic/month-table.vue +0 -269
  68. package/packages/date-picker/src/basic/time-spinner.vue +0 -304
  69. package/packages/date-picker/src/basic/year-table.vue +0 -111
  70. package/packages/date-picker/src/panel/date-range.vue +0 -680
  71. package/packages/date-picker/src/panel/date.vue +0 -609
  72. package/packages/date-picker/src/panel/month-range.vue +0 -289
  73. package/packages/date-picker/src/panel/time-range.vue +0 -248
  74. package/packages/date-picker/src/panel/time-select.vue +0 -178
  75. package/packages/date-picker/src/panel/time.vue +0 -186
  76. package/packages/date-picker/src/picker/date-picker.js +0 -43
  77. package/packages/date-picker/src/picker/time-picker.js +0 -39
  78. package/packages/date-picker/src/picker/time-select.js +0 -21
  79. package/packages/date-picker/src/picker.vue +0 -956
  80. package/packages/descriptions/index.js +0 -8
  81. package/packages/descriptions/src/descriptions-item.js +0 -30
  82. package/packages/descriptions/src/descriptions-row.js +0 -116
  83. package/packages/descriptions/src/index.js +0 -180
  84. package/packages/descriptions-item/index.js +0 -8
  85. package/packages/dialog/index.js +0 -8
  86. package/packages/dialog/src/component.vue +0 -212
  87. package/packages/divider/index.js +0 -8
  88. package/packages/divider/src/main.vue +0 -37
  89. package/packages/drawer/index.js +0 -8
  90. package/packages/drawer/src/main.vue +0 -205
  91. package/packages/dropdown/index.js +0 -8
  92. package/packages/dropdown/src/dropdown-item.vue +0 -37
  93. package/packages/dropdown/src/dropdown-menu.vue +0 -63
  94. package/packages/dropdown/src/dropdown.vue +0 -293
  95. package/packages/dropdown-item/index.js +0 -8
  96. package/packages/dropdown-menu/index.js +0 -8
  97. package/packages/empty/index.js +0 -7
  98. package/packages/empty/src/img-empty.vue +0 -132
  99. package/packages/empty/src/index.vue +0 -50
  100. package/packages/footer/index.js +0 -8
  101. package/packages/footer/src/main.vue +0 -20
  102. package/packages/form/index.js +0 -8
  103. package/packages/form/src/form-item.vue +0 -324
  104. package/packages/form/src/form.vue +0 -182
  105. package/packages/form/src/label-wrap.vue +0 -78
  106. package/packages/form-item/index.js +0 -8
  107. package/packages/header/index.js +0 -8
  108. package/packages/header/src/main.vue +0 -20
  109. package/packages/icon/index.js +0 -8
  110. package/packages/icon/src/icon.vue +0 -13
  111. package/packages/image/index.js +0 -8
  112. package/packages/image/src/image-viewer.vue +0 -330
  113. package/packages/image/src/main.vue +0 -249
  114. package/packages/infinite-scroll/index.js +0 -8
  115. package/packages/infinite-scroll/src/main.js +0 -150
  116. package/packages/input/index.js +0 -8
  117. package/packages/input/src/calcTextareaHeight.js +0 -104
  118. package/packages/input/src/input.vue +0 -440
  119. package/packages/input-number/index.js +0 -8
  120. package/packages/input-number/src/input-number.vue +0 -283
  121. package/packages/link/index.js +0 -8
  122. package/packages/link/src/main.vue +0 -53
  123. package/packages/loading/index.js +0 -11
  124. package/packages/loading/src/directive.js +0 -133
  125. package/packages/loading/src/index.js +0 -106
  126. package/packages/loading/src/loading.vue +0 -41
  127. package/packages/main/index.js +0 -8
  128. package/packages/main/src/main.vue +0 -12
  129. package/packages/menu/index.js +0 -8
  130. package/packages/menu/src/menu-item-group.vue +0 -45
  131. package/packages/menu/src/menu-item.vue +0 -112
  132. package/packages/menu/src/menu-mixin.js +0 -44
  133. package/packages/menu/src/menu.vue +0 -325
  134. package/packages/menu/src/submenu.vue +0 -349
  135. package/packages/menu-item/index.js +0 -8
  136. package/packages/menu-item-group/index.js +0 -8
  137. package/packages/message/index.js +0 -2
  138. package/packages/message/src/main.js +0 -91
  139. package/packages/message/src/main.vue +0 -117
  140. package/packages/message-box/index.js +0 -2
  141. package/packages/message-box/src/main.js +0 -216
  142. package/packages/message-box/src/main.vue +0 -332
  143. package/packages/notification/index.js +0 -2
  144. package/packages/notification/src/main.js +0 -94
  145. package/packages/notification/src/main.vue +0 -152
  146. package/packages/option/index.js +0 -8
  147. package/packages/option-group/index.js +0 -8
  148. package/packages/page-header/index.js +0 -8
  149. package/packages/page-header/src/main.vue +0 -30
  150. package/packages/pagination/index.js +0 -8
  151. package/packages/pagination/src/pager.vue +0 -163
  152. package/packages/pagination/src/pagination.js +0 -386
  153. package/packages/popconfirm/index.js +0 -8
  154. package/packages/popconfirm/src/main.vue +0 -104
  155. package/packages/popover/index.js +0 -14
  156. package/packages/popover/src/directive.js +0 -20
  157. package/packages/popover/src/main.vue +0 -237
  158. package/packages/progress/index.js +0 -8
  159. package/packages/progress/src/progress.vue +0 -235
  160. package/packages/radio/index.js +0 -8
  161. package/packages/radio/src/radio-button.vue +0 -115
  162. package/packages/radio/src/radio-group.vue +0 -113
  163. package/packages/radio/src/radio.vue +0 -134
  164. package/packages/radio-button/index.js +0 -8
  165. package/packages/radio-group/index.js +0 -8
  166. package/packages/rate/index.js +0 -8
  167. package/packages/rate/src/main.vue +0 -348
  168. package/packages/result/index.js +0 -8
  169. package/packages/result/src/icon-error.vue +0 -13
  170. package/packages/result/src/icon-info.vue +0 -13
  171. package/packages/result/src/icon-success.vue +0 -13
  172. package/packages/result/src/icon-warning.vue +0 -13
  173. package/packages/result/src/index.vue +0 -65
  174. package/packages/row/index.js +0 -9
  175. package/packages/row/src/row.js +0 -44
  176. package/packages/scrollbar/index.js +0 -8
  177. package/packages/scrollbar/src/bar.js +0 -92
  178. package/packages/scrollbar/src/main.js +0 -130
  179. package/packages/scrollbar/src/util.js +0 -34
  180. package/packages/select/index.js +0 -8
  181. package/packages/select/src/navigation-mixin.js +0 -54
  182. package/packages/select/src/option-group.vue +0 -60
  183. package/packages/select/src/option.vue +0 -168
  184. package/packages/select/src/select-dropdown.vue +0 -74
  185. package/packages/select/src/select.vue +0 -900
  186. package/packages/skeleton/index.js +0 -8
  187. package/packages/skeleton/src/img-placeholder.vue +0 -16
  188. package/packages/skeleton/src/index.vue +0 -76
  189. package/packages/skeleton/src/item.vue +0 -22
  190. package/packages/skeleton-item/index.js +0 -8
  191. package/packages/slider/index.js +0 -8
  192. package/packages/slider/src/button.vue +0 -238
  193. package/packages/slider/src/main.vue +0 -427
  194. package/packages/slider/src/marker.js +0 -18
  195. package/packages/spinner/index.js +0 -8
  196. package/packages/spinner/src/spinner.vue +0 -27
  197. package/packages/statistic/index.js +0 -8
  198. package/packages/statistic/src/main.vue +0 -204
  199. package/packages/step/index.js +0 -8
  200. package/packages/steps/README.md +0 -69
  201. package/packages/steps/index.js +0 -8
  202. package/packages/steps/src/step.vue +0 -184
  203. package/packages/steps/src/steps.vue +0 -68
  204. package/packages/submenu/index.js +0 -8
  205. package/packages/switch/index.js +0 -9
  206. package/packages/switch/src/component.vue +0 -174
  207. package/packages/tab-pane/index.js +0 -8
  208. package/packages/table/index.js +0 -8
  209. package/packages/table/src/config.js +0 -124
  210. package/packages/table/src/dropdown.js +0 -28
  211. package/packages/table/src/filter-panel.vue +0 -194
  212. package/packages/table/src/layout-observer.js +0 -68
  213. package/packages/table/src/store/current.js +0 -76
  214. package/packages/table/src/store/expand.js +0 -65
  215. package/packages/table/src/store/helper.js +0 -41
  216. package/packages/table/src/store/index.js +0 -147
  217. package/packages/table/src/store/tree.js +0 -209
  218. package/packages/table/src/store/watcher.js +0 -381
  219. package/packages/table/src/table-body.js +0 -469
  220. package/packages/table/src/table-column.js +0 -319
  221. package/packages/table/src/table-footer.js +0 -153
  222. package/packages/table/src/table-header.js +0 -511
  223. package/packages/table/src/table-layout.js +0 -249
  224. package/packages/table/src/table-row.js +0 -101
  225. package/packages/table/src/table.vue +0 -712
  226. package/packages/table/src/util.js +0 -273
  227. package/packages/table-column/index.js +0 -8
  228. package/packages/tabs/index.js +0 -8
  229. package/packages/tabs/src/tab-bar.vue +0 -57
  230. package/packages/tabs/src/tab-nav.vue +0 -294
  231. package/packages/tabs/src/tab-pane.vue +0 -56
  232. package/packages/tabs/src/tabs.vue +0 -191
  233. package/packages/tag/index.js +0 -8
  234. package/packages/tag/src/tag.vue +0 -58
  235. package/packages/theme-chalk/README.md +0 -33
  236. package/packages/theme-chalk/gulpfile.js +0 -25
  237. package/packages/theme-chalk/package.json +0 -35
  238. package/packages/theme-chalk/src/alert.scss +0 -147
  239. package/packages/theme-chalk/src/aside.scss +0 -7
  240. package/packages/theme-chalk/src/autocomplete.scss +0 -80
  241. package/packages/theme-chalk/src/avatar.scss +0 -51
  242. package/packages/theme-chalk/src/backtop.scss +0 -22
  243. package/packages/theme-chalk/src/badge.scss +0 -57
  244. package/packages/theme-chalk/src/base.scss +0 -2
  245. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  246. package/packages/theme-chalk/src/breadcrumb.scss +0 -55
  247. package/packages/theme-chalk/src/button-group.scss +0 -0
  248. package/packages/theme-chalk/src/button.scss +0 -262
  249. package/packages/theme-chalk/src/calendar.scss +0 -79
  250. package/packages/theme-chalk/src/card.scss +0 -32
  251. package/packages/theme-chalk/src/carousel-item.scss +0 -50
  252. package/packages/theme-chalk/src/carousel.scss +0 -161
  253. package/packages/theme-chalk/src/cascader-panel.scss +0 -120
  254. package/packages/theme-chalk/src/cascader.scss +0 -182
  255. package/packages/theme-chalk/src/checkbox-button.scss +0 -0
  256. package/packages/theme-chalk/src/checkbox-group.scss +0 -0
  257. package/packages/theme-chalk/src/checkbox.scss +0 -359
  258. package/packages/theme-chalk/src/col.scss +0 -156
  259. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  260. package/packages/theme-chalk/src/collapse.scss +0 -63
  261. package/packages/theme-chalk/src/color-picker.scss +0 -384
  262. package/packages/theme-chalk/src/common/popup.scss +0 -42
  263. package/packages/theme-chalk/src/common/transition.scss +0 -99
  264. package/packages/theme-chalk/src/common/var.scss +0 -1028
  265. package/packages/theme-chalk/src/container.scss +0 -14
  266. package/packages/theme-chalk/src/date-picker/date-picker.scss +0 -97
  267. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
  268. package/packages/theme-chalk/src/date-picker/date-table.scss +0 -151
  269. package/packages/theme-chalk/src/date-picker/month-table.scss +0 -82
  270. package/packages/theme-chalk/src/date-picker/picker-panel.scss +0 -117
  271. package/packages/theme-chalk/src/date-picker/picker.scss +0 -197
  272. package/packages/theme-chalk/src/date-picker/time-picker.scss +0 -85
  273. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
  274. package/packages/theme-chalk/src/date-picker/time-spinner.scss +0 -110
  275. package/packages/theme-chalk/src/date-picker/year-table.scss +0 -51
  276. package/packages/theme-chalk/src/date-picker.scss +0 -12
  277. package/packages/theme-chalk/src/descriptions-item.scss +0 -42
  278. package/packages/theme-chalk/src/descriptions.scss +0 -111
  279. package/packages/theme-chalk/src/dialog.scss +0 -123
  280. package/packages/theme-chalk/src/display.scss +0 -12
  281. package/packages/theme-chalk/src/divider.scss +0 -47
  282. package/packages/theme-chalk/src/drawer.scss +0 -219
  283. package/packages/theme-chalk/src/dropdown-item.scss +0 -0
  284. package/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  285. package/packages/theme-chalk/src/dropdown.scss +0 -182
  286. package/packages/theme-chalk/src/empty.scss +0 -45
  287. package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
  288. package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
  289. package/packages/theme-chalk/src/footer.scss +0 -8
  290. package/packages/theme-chalk/src/form-item.scss +0 -0
  291. package/packages/theme-chalk/src/form.scss +0 -167
  292. package/packages/theme-chalk/src/header.scss +0 -8
  293. package/packages/theme-chalk/src/icon.scss +0 -1167
  294. package/packages/theme-chalk/src/image.scss +0 -179
  295. package/packages/theme-chalk/src/index.scss +0 -87
  296. package/packages/theme-chalk/src/infinite-scroll.scss +0 -0
  297. package/packages/theme-chalk/src/infiniteScroll.scss +0 -0
  298. package/packages/theme-chalk/src/input-number.scss +0 -180
  299. package/packages/theme-chalk/src/input.scss +0 -360
  300. package/packages/theme-chalk/src/link.scss +0 -81
  301. package/packages/theme-chalk/src/loading.scss +0 -96
  302. package/packages/theme-chalk/src/main.scss +0 -12
  303. package/packages/theme-chalk/src/menu-item-group.scss +0 -0
  304. package/packages/theme-chalk/src/menu-item.scss +0 -0
  305. package/packages/theme-chalk/src/menu.scss +0 -289
  306. package/packages/theme-chalk/src/message-box.scss +0 -226
  307. package/packages/theme-chalk/src/message.scss +0 -120
  308. package/packages/theme-chalk/src/mixins/_button.scss +0 -81
  309. package/packages/theme-chalk/src/mixins/config.scss +0 -4
  310. package/packages/theme-chalk/src/mixins/function.scss +0 -44
  311. package/packages/theme-chalk/src/mixins/mixins.scss +0 -190
  312. package/packages/theme-chalk/src/mixins/utils.scss +0 -39
  313. package/packages/theme-chalk/src/notification.scss +0 -99
  314. package/packages/theme-chalk/src/option-group.scss +0 -42
  315. package/packages/theme-chalk/src/option.scss +0 -36
  316. package/packages/theme-chalk/src/page-header.scss +0 -41
  317. package/packages/theme-chalk/src/pagination.scss +0 -295
  318. package/packages/theme-chalk/src/popconfirm.scss +0 -16
  319. package/packages/theme-chalk/src/popover.scss +0 -40
  320. package/packages/theme-chalk/src/popper.scss +0 -101
  321. package/packages/theme-chalk/src/progress.scss +0 -141
  322. package/packages/theme-chalk/src/radio-button.scss +0 -113
  323. package/packages/theme-chalk/src/radio-group.scss +0 -9
  324. package/packages/theme-chalk/src/radio.scss +0 -199
  325. package/packages/theme-chalk/src/rate.scss +0 -49
  326. package/packages/theme-chalk/src/reset.scss +0 -79
  327. package/packages/theme-chalk/src/result.scss +0 -61
  328. package/packages/theme-chalk/src/row.scss +0 -43
  329. package/packages/theme-chalk/src/scrollbar.scss +0 -72
  330. package/packages/theme-chalk/src/select-dropdown.scss +0 -62
  331. package/packages/theme-chalk/src/select.scss +0 -152
  332. package/packages/theme-chalk/src/skeleton-item.scss +0 -84
  333. package/packages/theme-chalk/src/skeleton.scss +0 -40
  334. package/packages/theme-chalk/src/slider.scss +0 -250
  335. package/packages/theme-chalk/src/spinner.scss +0 -44
  336. package/packages/theme-chalk/src/statistic.scss +0 -38
  337. package/packages/theme-chalk/src/step.scss +0 -317
  338. package/packages/theme-chalk/src/steps.scss +0 -20
  339. package/packages/theme-chalk/src/submenu.scss +0 -0
  340. package/packages/theme-chalk/src/switch.scss +0 -116
  341. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  342. package/packages/theme-chalk/src/table-column.scss +0 -97
  343. package/packages/theme-chalk/src/table.scss +0 -564
  344. package/packages/theme-chalk/src/tabs.scss +0 -602
  345. package/packages/theme-chalk/src/tag.scss +0 -163
  346. package/packages/theme-chalk/src/time-picker.scss +0 -8
  347. package/packages/theme-chalk/src/time-select.scss +0 -37
  348. package/packages/theme-chalk/src/timeline-item.scss +0 -86
  349. package/packages/theme-chalk/src/timeline.scss +0 -14
  350. package/packages/theme-chalk/src/tooltip.scss +0 -141
  351. package/packages/theme-chalk/src/transfer.scss +0 -227
  352. package/packages/theme-chalk/src/tree.scss +0 -123
  353. package/packages/theme-chalk/src/upload.scss +0 -603
  354. package/packages/time-picker/index.js +0 -8
  355. package/packages/time-select/index.js +0 -8
  356. package/packages/timeline/index.js +0 -8
  357. package/packages/timeline/src/item.vue +0 -73
  358. package/packages/timeline/src/main.vue +0 -33
  359. package/packages/timeline-item/index.js +0 -8
  360. package/packages/tooltip/index.js +0 -8
  361. package/packages/tooltip/src/main.js +0 -257
  362. package/packages/transfer/index.js +0 -8
  363. package/packages/transfer/src/main.vue +0 -231
  364. package/packages/transfer/src/transfer-panel.vue +0 -251
  365. package/packages/tree/index.js +0 -8
  366. package/packages/tree/src/model/node.js +0 -484
  367. package/packages/tree/src/model/tree-store.js +0 -340
  368. package/packages/tree/src/model/util.js +0 -27
  369. package/packages/tree/src/tree-node.vue +0 -279
  370. package/packages/tree/src/tree.vue +0 -496
  371. package/packages/upload/index.js +0 -8
  372. package/packages/upload/src/ajax.js +0 -85
  373. package/packages/upload/src/index.vue +0 -338
  374. package/packages/upload/src/upload-dragger.vue +0 -70
  375. package/packages/upload/src/upload-list.vue +0 -105
  376. package/packages/upload/src/upload.vue +0 -211
  377. package/src/directives/mousewheel.js +0 -18
  378. package/src/directives/repeat-click.js +0 -26
  379. package/src/index.js +0 -309
  380. package/src/locale/format.js +0 -46
  381. package/src/locale/index.js +0 -48
  382. package/src/locale/lang/af-ZA.js +0 -123
  383. package/src/locale/lang/ar.js +0 -122
  384. package/src/locale/lang/az.js +0 -126
  385. package/src/locale/lang/bg.js +0 -123
  386. package/src/locale/lang/bn.js +0 -126
  387. package/src/locale/lang/ca.js +0 -122
  388. package/src/locale/lang/cs-CZ.js +0 -125
  389. package/src/locale/lang/da.js +0 -122
  390. package/src/locale/lang/de.js +0 -124
  391. package/src/locale/lang/ee.js +0 -123
  392. package/src/locale/lang/el.js +0 -123
  393. package/src/locale/lang/en.js +0 -123
  394. package/src/locale/lang/eo.js +0 -123
  395. package/src/locale/lang/es.js +0 -122
  396. package/src/locale/lang/eu.js +0 -123
  397. package/src/locale/lang/fa.js +0 -123
  398. package/src/locale/lang/fi.js +0 -123
  399. package/src/locale/lang/fr.js +0 -122
  400. package/src/locale/lang/he.js +0 -123
  401. package/src/locale/lang/hr.js +0 -123
  402. package/src/locale/lang/hu.js +0 -122
  403. package/src/locale/lang/hy-AM.js +0 -123
  404. package/src/locale/lang/id.js +0 -123
  405. package/src/locale/lang/is.js +0 -124
  406. package/src/locale/lang/it.js +0 -122
  407. package/src/locale/lang/ja.js +0 -123
  408. package/src/locale/lang/kg.js +0 -123
  409. package/src/locale/lang/km.js +0 -123
  410. package/src/locale/lang/ko.js +0 -123
  411. package/src/locale/lang/ku.js +0 -123
  412. package/src/locale/lang/kz.js +0 -123
  413. package/src/locale/lang/lo-LA.js +0 -126
  414. package/src/locale/lang/lt.js +0 -123
  415. package/src/locale/lang/lv.js +0 -123
  416. package/src/locale/lang/mn.js +0 -123
  417. package/src/locale/lang/ms.js +0 -122
  418. package/src/locale/lang/nb-NO.js +0 -122
  419. package/src/locale/lang/nl.js +0 -123
  420. package/src/locale/lang/pl.js +0 -123
  421. package/src/locale/lang/pt-br.js +0 -123
  422. package/src/locale/lang/pt.js +0 -123
  423. package/src/locale/lang/ro.js +0 -123
  424. package/src/locale/lang/ru-RU.js +0 -123
  425. package/src/locale/lang/si.js +0 -123
  426. package/src/locale/lang/sk.js +0 -125
  427. package/src/locale/lang/sl.js +0 -123
  428. package/src/locale/lang/sr-Latn.js +0 -123
  429. package/src/locale/lang/sr.js +0 -123
  430. package/src/locale/lang/sv-SE.js +0 -123
  431. package/src/locale/lang/sw.js +0 -123
  432. package/src/locale/lang/ta.js +0 -122
  433. package/src/locale/lang/th.js +0 -123
  434. package/src/locale/lang/tk.js +0 -123
  435. package/src/locale/lang/tr-TR.js +0 -123
  436. package/src/locale/lang/ua.js +0 -123
  437. package/src/locale/lang/ug-CN.js +0 -123
  438. package/src/locale/lang/uz-UZ.js +0 -123
  439. package/src/locale/lang/vi.js +0 -123
  440. package/src/locale/lang/zh-CN.js +0 -123
  441. package/src/locale/lang/zh-TW.js +0 -123
  442. package/src/mixins/emitter.js +0 -33
  443. package/src/mixins/focus.js +0 -9
  444. package/src/mixins/locale.js +0 -9
  445. package/src/mixins/migrating.js +0 -54
  446. package/src/transitions/collapse-transition.js +0 -77
  447. package/src/utils/after-leave.js +0 -27
  448. package/src/utils/aria-dialog.js +0 -90
  449. package/src/utils/aria-utils.js +0 -122
  450. package/src/utils/clickoutside.js +0 -76
  451. package/src/utils/date-util.js +0 -282
  452. package/src/utils/date.js +0 -368
  453. package/src/utils/dom.js +0 -227
  454. package/src/utils/lodash.js +0 -18075
  455. package/src/utils/menu/aria-menubar.js +0 -14
  456. package/src/utils/menu/aria-menuitem.js +0 -49
  457. package/src/utils/menu/aria-submenu.js +0 -59
  458. package/src/utils/merge.js +0 -15
  459. package/src/utils/popper.js +0 -1276
  460. package/src/utils/popup/index.js +0 -218
  461. package/src/utils/popup/popup-manager.js +0 -194
  462. package/src/utils/resize-event.js +0 -36
  463. package/src/utils/scroll-into-view.js +0 -27
  464. package/src/utils/scrollbar-width.js +0 -29
  465. package/src/utils/shared.js +0 -7
  466. package/src/utils/types.js +0 -40
  467. package/src/utils/util.js +0 -245
  468. package/src/utils/vdom.js +0 -5
  469. package/src/utils/vue-popper.js +0 -218
  470. package/types/alert.d.ts +0 -31
  471. package/types/aside.d.ts +0 -7
  472. package/types/autocomplete.d.ts +0 -78
  473. package/types/avatar.d.ts +0 -20
  474. package/types/backtop.d.ts +0 -16
  475. package/types/badge.d.ts +0 -16
  476. package/types/breadcrumb-item.d.ts +0 -10
  477. package/types/breadcrumb.d.ts +0 -10
  478. package/types/button-group.d.ts +0 -4
  479. package/types/button.d.ts +0 -37
  480. package/types/calendar.d.ts +0 -15
  481. package/types/card.d.ts +0 -26
  482. package/types/carousel-item.d.ts +0 -10
  483. package/types/carousel.d.ts +0 -57
  484. package/types/cascader-panel.d.ts +0 -72
  485. package/types/cascader.d.ts +0 -65
  486. package/types/checkbox-button.d.ts +0 -22
  487. package/types/checkbox-group.d.ts +0 -22
  488. package/types/checkbox.d.ts +0 -34
  489. package/types/col.d.ts +0 -46
  490. package/types/collapse-item.d.ts +0 -26
  491. package/types/collapse.d.ts +0 -10
  492. package/types/color-picker.d.ts +0 -21
  493. package/types/component.d.ts +0 -13
  494. package/types/container.d.ts +0 -7
  495. package/types/date-picker.d.ts +0 -124
  496. package/types/descriptions-item.d.ts +0 -37
  497. package/types/descriptions.d.ts +0 -52
  498. package/types/dialog.d.ts +0 -62
  499. package/types/divider.d.ts +0 -12
  500. package/types/drawer.d.ts +0 -63
  501. package/types/dropdown-item.d.ts +0 -16
  502. package/types/dropdown-menu.d.ts +0 -4
  503. package/types/dropdown.d.ts +0 -38
  504. package/types/element-ui.d.ts +0 -382
  505. package/types/empty.d.ts +0 -31
  506. package/types/footer.d.ts +0 -7
  507. package/types/form-item.d.ts +0 -37
  508. package/types/form.d.ts +0 -82
  509. package/types/header.d.ts +0 -7
  510. package/types/icon.d.ts +0 -7
  511. package/types/image.d.ts +0 -43
  512. package/types/index.d.ts +0 -4
  513. package/types/infinite-scroll.d.ts +0 -6
  514. package/types/input-number.d.ts +0 -47
  515. package/types/input.d.ts +0 -107
  516. package/types/link.d.ts +0 -25
  517. package/types/loading.d.ts +0 -62
  518. package/types/main.d.ts +0 -4
  519. package/types/menu-item-group.d.ts +0 -7
  520. package/types/menu-item.d.ts +0 -10
  521. package/types/menu.d.ts +0 -46
  522. package/types/message-box.d.ts +0 -176
  523. package/types/message.d.ts +0 -90
  524. package/types/notification.d.ts +0 -84
  525. package/types/option-group.d.ts +0 -10
  526. package/types/option.d.ts +0 -13
  527. package/types/page-header.d.ts +0 -10
  528. package/types/pagination.d.ts +0 -43
  529. package/types/popconfirm.d.ts +0 -29
  530. package/types/popover.d.ts +0 -71
  531. package/types/progress.d.ts +0 -37
  532. package/types/radio-button.d.ts +0 -16
  533. package/types/radio-group.d.ts +0 -18
  534. package/types/radio.d.ts +0 -19
  535. package/types/rate.d.ts +0 -64
  536. package/types/result.d.ts +0 -33
  537. package/types/row.d.ts +0 -25
  538. package/types/select.d.ts +0 -90
  539. package/types/skeleton-item.d.ts +0 -7
  540. package/types/skeleton.d.ts +0 -33
  541. package/types/slider.d.ts +0 -68
  542. package/types/spinner.d.ts +0 -16
  543. package/types/statistic.d.ts +0 -37
  544. package/types/step.d.ts +0 -34
  545. package/types/steps.d.ts +0 -28
  546. package/types/submenu.d.ts +0 -22
  547. package/types/switch.d.ts +0 -43
  548. package/types/tab-pane.d.ts +0 -19
  549. package/types/table-column.d.ts +0 -117
  550. package/types/table.d.ts +0 -177
  551. package/types/tabs.d.ts +0 -31
  552. package/types/tag.d.ts +0 -28
  553. package/types/time-picker.d.ts +0 -63
  554. package/types/time-select.d.ts +0 -56
  555. package/types/timeline-item.d.ts +0 -20
  556. package/types/timeline.d.ts +0 -6
  557. package/types/tooltip.d.ts +0 -52
  558. package/types/transfer.d.ts +0 -73
  559. package/types/tree.d.ts +0 -266
  560. package/types/upload.d.ts +0 -124
  561. package/web-types.json +0 -4195
@@ -1,285 +0,0 @@
1
- <template>
2
- <div
3
- class="el-autocomplete"
4
- v-clickoutside="close"
5
- aria-haspopup="listbox"
6
- role="combobox"
7
- :aria-expanded="suggestionVisible"
8
- :aria-owns="id"
9
- >
10
- <el-input
11
- ref="input"
12
- v-bind="[$props, $attrs]"
13
- @input="handleInput"
14
- @change="handleChange"
15
- @focus="handleFocus"
16
- @blur="handleBlur"
17
- @clear="handleClear"
18
- @keydown.up.native.prevent="highlight(highlightedIndex - 1)"
19
- @keydown.down.native.prevent="highlight(highlightedIndex + 1)"
20
- @keydown.enter.native="handleKeyEnter"
21
- @keydown.native.tab="close"
22
- >
23
- <template slot="prepend" v-if="$slots.prepend">
24
- <slot name="prepend"></slot>
25
- </template>
26
- <template slot="append" v-if="$slots.append">
27
- <slot name="append"></slot>
28
- </template>
29
- <template slot="prefix" v-if="$slots.prefix">
30
- <slot name="prefix"></slot>
31
- </template>
32
- <template slot="suffix" v-if="$slots.suffix">
33
- <slot name="suffix"></slot>
34
- </template>
35
- </el-input>
36
- <el-autocomplete-suggestions
37
- visible-arrow
38
- :class="[popperClass ? popperClass : '']"
39
- :popper-options="popperOptions"
40
- :append-to-body="popperAppendToBody"
41
- ref="suggestions"
42
- :placement="placement"
43
- :id="id">
44
- <li
45
- v-for="(item, index) in suggestions"
46
- :key="index"
47
- :class="{'highlighted': highlightedIndex === index}"
48
- @click="select(item)"
49
- :id="`${id}-item-${index}`"
50
- role="option"
51
- :aria-selected="highlightedIndex === index"
52
- >
53
- <slot :item="item">
54
- {{ item[valueKey] }}
55
- </slot>
56
- </li>
57
- </el-autocomplete-suggestions>
58
- </div>
59
- </template>
60
- <script>
61
- import debounce from 'throttle-debounce/debounce';
62
- import ElInput from 'element-ui/packages/input';
63
- import Clickoutside from 'element-ui/src/utils/clickoutside';
64
- import ElAutocompleteSuggestions from './autocomplete-suggestions.vue';
65
- import Emitter from 'element-ui/src/mixins/emitter';
66
- import Migrating from 'element-ui/src/mixins/migrating';
67
- import { generateId } from 'element-ui/src/utils/util';
68
- import Focus from 'element-ui/src/mixins/focus';
69
-
70
- export default {
71
- name: 'ElAutocomplete',
72
-
73
- mixins: [Emitter, Focus('input'), Migrating],
74
-
75
- inheritAttrs: false,
76
-
77
- componentName: 'ElAutocomplete',
78
-
79
- components: {
80
- ElInput,
81
- ElAutocompleteSuggestions
82
- },
83
-
84
- directives: { Clickoutside },
85
-
86
- props: {
87
- valueKey: {
88
- type: String,
89
- default: 'value'
90
- },
91
- popperClass: String,
92
- popperOptions: Object,
93
- placeholder: String,
94
- clearable: {
95
- type: Boolean,
96
- default: false
97
- },
98
- disabled: Boolean,
99
- name: String,
100
- size: String,
101
- value: String,
102
- maxlength: Number,
103
- minlength: Number,
104
- autofocus: Boolean,
105
- fetchSuggestions: Function,
106
- triggerOnFocus: {
107
- type: Boolean,
108
- default: true
109
- },
110
- customItem: String,
111
- selectWhenUnmatched: {
112
- type: Boolean,
113
- default: false
114
- },
115
- prefixIcon: String,
116
- suffixIcon: String,
117
- label: String,
118
- debounce: {
119
- type: Number,
120
- default: 300
121
- },
122
- placement: {
123
- type: String,
124
- default: 'bottom-start'
125
- },
126
- hideLoading: Boolean,
127
- popperAppendToBody: {
128
- type: Boolean,
129
- default: true
130
- },
131
- highlightFirstItem: {
132
- type: Boolean,
133
- default: false
134
- }
135
- },
136
- data() {
137
- return {
138
- activated: false,
139
- suggestions: [],
140
- loading: false,
141
- highlightedIndex: -1,
142
- suggestionDisabled: false
143
- };
144
- },
145
- computed: {
146
- suggestionVisible() {
147
- const suggestions = this.suggestions;
148
- let isValidData = Array.isArray(suggestions) && suggestions.length > 0;
149
- return (isValidData || this.loading) && this.activated;
150
- },
151
- id() {
152
- return `el-autocomplete-${generateId()}`;
153
- }
154
- },
155
- watch: {
156
- suggestionVisible(val) {
157
- let $input = this.getInput();
158
- if ($input) {
159
- this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $input.offsetWidth]);
160
- }
161
- }
162
- },
163
- methods: {
164
- getMigratingConfig() {
165
- return {
166
- props: {
167
- 'custom-item': 'custom-item is removed, use scoped slot instead.',
168
- 'props': 'props is removed, use value-key instead.'
169
- }
170
- };
171
- },
172
- getData(queryString) {
173
- if (this.suggestionDisabled) {
174
- return;
175
- }
176
- this.loading = true;
177
- this.fetchSuggestions(queryString, (suggestions) => {
178
- this.loading = false;
179
- if (this.suggestionDisabled) {
180
- return;
181
- }
182
- if (Array.isArray(suggestions)) {
183
- this.suggestions = suggestions;
184
- this.highlightedIndex = this.highlightFirstItem ? 0 : -1;
185
- } else {
186
- console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array');
187
- }
188
- });
189
- },
190
- handleInput(value) {
191
- this.$emit('input', value);
192
- this.suggestionDisabled = false;
193
- if (!this.triggerOnFocus && !value) {
194
- this.suggestionDisabled = true;
195
- this.suggestions = [];
196
- return;
197
- }
198
- this.debouncedGetData(value);
199
- },
200
- handleChange(value) {
201
- this.$emit('change', value);
202
- },
203
- handleFocus(event) {
204
- this.activated = true;
205
- this.$emit('focus', event);
206
- if (this.triggerOnFocus) {
207
- this.debouncedGetData(this.value);
208
- }
209
- },
210
- handleBlur(event) {
211
- this.$emit('blur', event);
212
- },
213
- handleClear() {
214
- this.activated = false;
215
- this.$emit('clear');
216
- },
217
- close(e) {
218
- this.activated = false;
219
- },
220
- handleKeyEnter(e) {
221
- if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
222
- e.preventDefault();
223
- this.select(this.suggestions[this.highlightedIndex]);
224
- } else if (this.selectWhenUnmatched) {
225
- this.$emit('select', {value: this.value});
226
- this.$nextTick(_ => {
227
- this.suggestions = [];
228
- this.highlightedIndex = -1;
229
- });
230
- }
231
- },
232
- select(item) {
233
- this.$emit('input', item[this.valueKey]);
234
- this.$emit('select', item);
235
- this.$nextTick(_ => {
236
- this.suggestions = [];
237
- this.highlightedIndex = -1;
238
- });
239
- },
240
- highlight(index) {
241
- if (!this.suggestionVisible || this.loading) { return; }
242
- if (index < 0) {
243
- this.highlightedIndex = -1;
244
- return;
245
- }
246
- if (index >= this.suggestions.length) {
247
- index = this.suggestions.length - 1;
248
- }
249
- const suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
250
- const suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
251
-
252
- let highlightItem = suggestionList[index];
253
- let scrollTop = suggestion.scrollTop;
254
- let offsetTop = highlightItem.offsetTop;
255
-
256
- if (offsetTop + highlightItem.scrollHeight > (scrollTop + suggestion.clientHeight)) {
257
- suggestion.scrollTop += highlightItem.scrollHeight;
258
- }
259
- if (offsetTop < scrollTop) {
260
- suggestion.scrollTop -= highlightItem.scrollHeight;
261
- }
262
- this.highlightedIndex = index;
263
- let $input = this.getInput();
264
- $input.setAttribute('aria-activedescendant', `${this.id}-item-${this.highlightedIndex}`);
265
- },
266
- getInput() {
267
- return this.$refs.input.getInput();
268
- }
269
- },
270
- mounted() {
271
- this.debouncedGetData = debounce(this.debounce, this.getData);
272
- this.$on('item-click', item => {
273
- this.select(item);
274
- });
275
- let $input = this.getInput();
276
- $input.setAttribute('role', 'textbox');
277
- $input.setAttribute('aria-autocomplete', 'list');
278
- $input.setAttribute('aria-controls', 'id');
279
- $input.setAttribute('aria-activedescendant', `${this.id}-item-${this.highlightedIndex}`);
280
- },
281
- beforeDestroy() {
282
- this.$refs.suggestions.$destroy();
283
- }
284
- };
285
- </script>
@@ -1,8 +0,0 @@
1
- import Avatar from './src/main';
2
-
3
- /* istanbul ignore next */
4
- Avatar.install = function(Vue) {
5
- Vue.component(Avatar.name, Avatar);
6
- };
7
-
8
- export default Avatar;
@@ -1,107 +0,0 @@
1
- <script>
2
- export default {
3
- name: 'ElAvatar',
4
-
5
- props: {
6
- size: {
7
- type: [Number, String],
8
- validator(val) {
9
- if (typeof val === 'string') {
10
- return ['large', 'medium', 'small'].includes(val);
11
- }
12
- return typeof val === 'number';
13
- }
14
- },
15
- shape: {
16
- type: String,
17
- default: 'circle',
18
- validator(val) {
19
- return ['circle', 'square'].includes(val);
20
- }
21
- },
22
- icon: String,
23
- src: String,
24
- alt: String,
25
- srcSet: String,
26
- error: Function,
27
- fit: {
28
- type: String,
29
- default: 'cover'
30
- }
31
- },
32
-
33
- data() {
34
- return {
35
- isImageExist: true
36
- };
37
- },
38
-
39
- computed: {
40
- avatarClass() {
41
- const { size, icon, shape } = this;
42
- let classList = ['el-avatar'];
43
-
44
- if (size && typeof size === 'string') {
45
- classList.push(`el-avatar--${size}`);
46
- }
47
-
48
- if (icon) {
49
- classList.push('el-avatar--icon');
50
- }
51
-
52
- if (shape) {
53
- classList.push(`el-avatar--${shape}`);
54
- }
55
-
56
- return classList.join(' ');
57
- }
58
- },
59
-
60
- methods: {
61
- handleError() {
62
- const { error } = this;
63
- const errorFlag = error ? error() : undefined;
64
- if (errorFlag !== false) {
65
- this.isImageExist = false;
66
- }
67
- },
68
- renderAvatar() {
69
- const { icon, src, alt, isImageExist, srcSet, fit } = this;
70
-
71
- if (isImageExist && src) {
72
- return <img
73
- src={src}
74
- onError={this.handleError}
75
- alt={alt}
76
- srcSet={srcSet}
77
- style={{ 'object-fit': fit }}/>;
78
- }
79
-
80
- if (icon) {
81
- return (<i class={icon} />);
82
- }
83
-
84
- return this.$slots.default;
85
- }
86
- },
87
-
88
- render() {
89
- const { avatarClass, size } = this;
90
-
91
- const sizeStyle = typeof size === 'number' ? {
92
- height: `${size}px`,
93
- width: `${size}px`,
94
- lineHeight: `${size}px`
95
- } : {};
96
-
97
- return (
98
- <span class={ avatarClass } style={ sizeStyle }>
99
- {
100
- this.renderAvatar()
101
- }
102
- </span>
103
- );
104
- }
105
-
106
- };
107
- </script>
@@ -1,8 +0,0 @@
1
- import Backtop from './src/main';
2
-
3
- /* istanbul ignore next */
4
- Backtop.install = function(Vue) {
5
- Vue.component(Backtop.name, Backtop);
6
- };
7
-
8
- export default Backtop;
@@ -1,110 +0,0 @@
1
- <template>
2
- <transition name="el-fade-in">
3
- <div
4
- v-if="visible"
5
- @click.stop="handleClick"
6
- :style="{
7
- 'right': styleRight,
8
- 'bottom': styleBottom
9
- }"
10
- class="el-backtop">
11
- <slot>
12
- <el-icon name="caret-top"></el-icon>
13
- </slot>
14
- </div>
15
- </transition>
16
- </template>
17
-
18
- <script>
19
- import throttle from 'throttle-debounce/throttle';
20
-
21
- const cubic = value => Math.pow(value, 3);
22
- const easeInOutCubic = value => value < 0.5
23
- ? cubic(value * 2) / 2
24
- : 1 - cubic((1 - value) * 2) / 2;
25
-
26
- export default {
27
- name: 'ElBacktop',
28
-
29
- props: {
30
- visibilityHeight: {
31
- type: Number,
32
- default: 200
33
- },
34
- target: [String],
35
- right: {
36
- type: Number,
37
- default: 40
38
- },
39
- bottom: {
40
- type: Number,
41
- default: 40
42
- }
43
- },
44
-
45
- data() {
46
- return {
47
- el: null,
48
- container: null,
49
- visible: false
50
- };
51
- },
52
-
53
- computed: {
54
- styleBottom() {
55
- return `${this.bottom}px`;
56
- },
57
- styleRight() {
58
- return `${this.right}px`;
59
- }
60
- },
61
-
62
- mounted() {
63
- this.init();
64
- this.throttledScrollHandler = throttle(300, this.onScroll);
65
- this.container.addEventListener('scroll', this.throttledScrollHandler);
66
- },
67
-
68
- methods: {
69
- init() {
70
- this.container = document;
71
- this.el = document.documentElement;
72
- if (this.target) {
73
- this.el = document.querySelector(this.target);
74
- if (!this.el) {
75
- throw new Error(`target is not existed: ${this.target}`);
76
- }
77
- this.container = this.el;
78
- }
79
- },
80
- onScroll() {
81
- const scrollTop = this.el.scrollTop;
82
- this.visible = scrollTop >= this.visibilityHeight;
83
- },
84
- handleClick(e) {
85
- this.scrollToTop();
86
- this.$emit('click', e);
87
- },
88
- scrollToTop() {
89
- const el = this.el;
90
- const beginTime = Date.now();
91
- const beginValue = el.scrollTop;
92
- const rAF = window.requestAnimationFrame || (func => setTimeout(func, 16));
93
- const frameFunc = () => {
94
- const progress = (Date.now() - beginTime) / 500;
95
- if (progress < 1) {
96
- el.scrollTop = beginValue * (1 - easeInOutCubic(progress));
97
- rAF(frameFunc);
98
- } else {
99
- el.scrollTop = 0;
100
- }
101
- };
102
- rAF(frameFunc);
103
- }
104
- },
105
-
106
- beforeDestroy() {
107
- this.container.removeEventListener('scroll', this.throttledScrollHandler);
108
- }
109
- };
110
- </script>
@@ -1,8 +0,0 @@
1
- import Badge from './src/main';
2
-
3
- /* istanbul ignore next */
4
- Badge.install = function(Vue) {
5
- Vue.component(Badge.name, Badge);
6
- };
7
-
8
- export default Badge;
@@ -1,53 +0,0 @@
1
- <template>
2
- <div class="el-badge">
3
- <slot></slot>
4
- <transition name="el-zoom-in-center">
5
- <sup
6
- v-show="!hidden && (content || content === 0 || isDot)"
7
- v-text="content"
8
- class="el-badge__content"
9
- :class="[
10
- type ? 'el-badge__content--' + type : null,
11
- {
12
- 'is-fixed': $slots.default,
13
- 'is-dot': isDot
14
- }
15
- ]">
16
- </sup>
17
- </transition>
18
- </div>
19
- </template>
20
-
21
- <script>
22
- export default {
23
- name: 'ElBadge',
24
-
25
- props: {
26
- value: [String, Number],
27
- max: Number,
28
- isDot: Boolean,
29
- hidden: Boolean,
30
- type: {
31
- type: String,
32
- validator(val) {
33
- return ['primary', 'success', 'warning', 'info', 'danger'].indexOf(val) > -1;
34
- }
35
- }
36
- },
37
-
38
- computed: {
39
- content() {
40
- if (this.isDot) return;
41
-
42
- const value = this.value;
43
- const max = this.max;
44
-
45
- if (typeof value === 'number' && typeof max === 'number') {
46
- return max < value ? `${max}+` : value;
47
- }
48
-
49
- return value;
50
- }
51
- }
52
- };
53
- </script>
@@ -1,8 +0,0 @@
1
- import ElBreadcrumb from './src/breadcrumb';
2
-
3
- /* istanbul ignore next */
4
- ElBreadcrumb.install = function(Vue) {
5
- Vue.component(ElBreadcrumb.name, ElBreadcrumb);
6
- };
7
-
8
- export default ElBreadcrumb;
@@ -1,41 +0,0 @@
1
- <template>
2
- <span class="el-breadcrumb__item">
3
- <span
4
- :class="['el-breadcrumb__inner', to ? 'is-link' : '']"
5
- ref="link"
6
- role="link">
7
- <slot></slot>
8
- </span>
9
- <i v-if="separatorClass" class="el-breadcrumb__separator" :class="separatorClass"></i>
10
- <span v-else class="el-breadcrumb__separator" role="presentation">{{separator}}</span>
11
- </span>
12
- </template>
13
- <script>
14
- export default {
15
- name: 'ElBreadcrumbItem',
16
- props: {
17
- to: {},
18
- replace: Boolean
19
- },
20
- data() {
21
- return {
22
- separator: '',
23
- separatorClass: ''
24
- };
25
- },
26
-
27
- inject: ['elBreadcrumb'],
28
-
29
- mounted() {
30
- this.separator = this.elBreadcrumb.separator;
31
- this.separatorClass = this.elBreadcrumb.separatorClass;
32
- const link = this.$refs.link;
33
- link.setAttribute('role', 'link');
34
- link.addEventListener('click', _ => {
35
- const { to, $router } = this;
36
- if (!to || !$router) return;
37
- this.replace ? $router.replace(to) : $router.push(to);
38
- });
39
- }
40
- };
41
- </script>
@@ -1,34 +0,0 @@
1
- <template>
2
- <div class="el-breadcrumb" aria-label="Breadcrumb" role="navigation">
3
- <slot></slot>
4
- </div>
5
- </template>
6
- <script>
7
- export default {
8
- name: 'ElBreadcrumb',
9
-
10
- props: {
11
- separator: {
12
- type: String,
13
- default: '/'
14
- },
15
- separatorClass: {
16
- type: String,
17
- default: ''
18
- }
19
- },
20
-
21
- provide() {
22
- return {
23
- elBreadcrumb: this
24
- };
25
- },
26
-
27
- mounted() {
28
- const items = this.$el.querySelectorAll('.el-breadcrumb__item');
29
- if (items.length) {
30
- items[items.length - 1].setAttribute('aria-current', 'page');
31
- }
32
- }
33
- };
34
- </script>
@@ -1,8 +0,0 @@
1
- import ElBreadcrumbItem from '../breadcrumb/src/breadcrumb-item';
2
-
3
- /* istanbul ignore next */
4
- ElBreadcrumbItem.install = function(Vue) {
5
- Vue.component(ElBreadcrumbItem.name, ElBreadcrumbItem);
6
- };
7
-
8
- export default ElBreadcrumbItem;
@@ -1,8 +0,0 @@
1
- import ElButton from './src/button';
2
-
3
- /* istanbul ignore next */
4
- ElButton.install = function(Vue) {
5
- Vue.component(ElButton.name, ElButton);
6
- };
7
-
8
- export default ElButton;
@@ -1,10 +0,0 @@
1
- <template>
2
- <div class="el-button-group">
3
- <slot></slot>
4
- </div>
5
- </template>
6
- <script>
7
- export default {
8
- name: 'ElButtonGroup'
9
- };
10
- </script>