cy-element-ui 1.0.0

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 (569) hide show
  1. package/CHANGELOG.md +280 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -0
  4. package/package.json +156 -0
  5. package/packages/alert/index.js +8 -0
  6. package/packages/alert/src/main.vue +94 -0
  7. package/packages/aside/index.js +8 -0
  8. package/packages/aside/src/main.vue +20 -0
  9. package/packages/autocomplete/index.js +8 -0
  10. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  11. package/packages/autocomplete/src/autocomplete.vue +285 -0
  12. package/packages/avatar/index.js +8 -0
  13. package/packages/avatar/src/main.vue +107 -0
  14. package/packages/backtop/index.js +8 -0
  15. package/packages/backtop/src/main.vue +110 -0
  16. package/packages/badge/index.js +8 -0
  17. package/packages/badge/src/main.vue +53 -0
  18. package/packages/breadcrumb/index.js +8 -0
  19. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  20. package/packages/breadcrumb/src/breadcrumb.vue +34 -0
  21. package/packages/breadcrumb-item/index.js +8 -0
  22. package/packages/button/index.js +8 -0
  23. package/packages/button/src/button-group.vue +10 -0
  24. package/packages/button/src/button.vue +78 -0
  25. package/packages/button-group/index.js +8 -0
  26. package/packages/calendar/index.js +8 -0
  27. package/packages/calendar/src/date-table.vue +200 -0
  28. package/packages/calendar/src/main.vue +280 -0
  29. package/packages/card/index.js +8 -0
  30. package/packages/card/src/main.vue +23 -0
  31. package/packages/carousel/index.js +8 -0
  32. package/packages/carousel/src/item.vue +138 -0
  33. package/packages/carousel/src/main.vue +315 -0
  34. package/packages/carousel-item/index.js +8 -0
  35. package/packages/cascader/index.js +8 -0
  36. package/packages/cascader/src/cascader.vue +663 -0
  37. package/packages/cascader-panel/index.js +8 -0
  38. package/packages/cascader-panel/src/cascader-menu.vue +138 -0
  39. package/packages/cascader-panel/src/cascader-node.vue +246 -0
  40. package/packages/cascader-panel/src/cascader-panel.vue +391 -0
  41. package/packages/cascader-panel/src/node.js +166 -0
  42. package/packages/cascader-panel/src/store.js +58 -0
  43. package/packages/checkbox/index.js +8 -0
  44. package/packages/checkbox/src/checkbox-button.vue +199 -0
  45. package/packages/checkbox/src/checkbox-group.vue +48 -0
  46. package/packages/checkbox/src/checkbox.vue +222 -0
  47. package/packages/checkbox-button/index.js +8 -0
  48. package/packages/checkbox-group/index.js +8 -0
  49. package/packages/col/index.js +9 -0
  50. package/packages/col/src/col.js +71 -0
  51. package/packages/collapse/index.js +9 -0
  52. package/packages/collapse/src/collapse-item.vue +114 -0
  53. package/packages/collapse/src/collapse.vue +73 -0
  54. package/packages/collapse-item/index.js +8 -0
  55. package/packages/color-picker/index.js +8 -0
  56. package/packages/color-picker/src/color.js +317 -0
  57. package/packages/color-picker/src/components/alpha-slider.vue +132 -0
  58. package/packages/color-picker/src/components/hue-slider.vue +123 -0
  59. package/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  60. package/packages/color-picker/src/components/predefine.vue +61 -0
  61. package/packages/color-picker/src/components/sv-panel.vue +100 -0
  62. package/packages/color-picker/src/draggable.js +36 -0
  63. package/packages/color-picker/src/main.vue +188 -0
  64. package/packages/container/index.js +8 -0
  65. package/packages/container/src/main.vue +33 -0
  66. package/packages/date-picker/index.js +8 -0
  67. package/packages/date-picker/src/basic/date-table.vue +441 -0
  68. package/packages/date-picker/src/basic/month-table.vue +269 -0
  69. package/packages/date-picker/src/basic/time-spinner.vue +304 -0
  70. package/packages/date-picker/src/basic/year-table.vue +111 -0
  71. package/packages/date-picker/src/panel/date-range.vue +680 -0
  72. package/packages/date-picker/src/panel/date.vue +609 -0
  73. package/packages/date-picker/src/panel/month-range.vue +289 -0
  74. package/packages/date-picker/src/panel/time-range.vue +248 -0
  75. package/packages/date-picker/src/panel/time-select.vue +178 -0
  76. package/packages/date-picker/src/panel/time.vue +186 -0
  77. package/packages/date-picker/src/picker/date-picker.js +43 -0
  78. package/packages/date-picker/src/picker/time-picker.js +39 -0
  79. package/packages/date-picker/src/picker/time-select.js +21 -0
  80. package/packages/date-picker/src/picker.vue +956 -0
  81. package/packages/descriptions/index.js +8 -0
  82. package/packages/descriptions/src/descriptions-item.js +30 -0
  83. package/packages/descriptions/src/descriptions-row.js +116 -0
  84. package/packages/descriptions/src/index.js +180 -0
  85. package/packages/descriptions-item/index.js +8 -0
  86. package/packages/dialog/index.js +8 -0
  87. package/packages/dialog/src/component.vue +212 -0
  88. package/packages/divider/index.js +8 -0
  89. package/packages/divider/src/main.vue +37 -0
  90. package/packages/drawer/index.js +8 -0
  91. package/packages/drawer/src/main.vue +205 -0
  92. package/packages/dropdown/index.js +8 -0
  93. package/packages/dropdown/src/dropdown-item.vue +37 -0
  94. package/packages/dropdown/src/dropdown-menu.vue +63 -0
  95. package/packages/dropdown/src/dropdown.vue +293 -0
  96. package/packages/dropdown-item/index.js +8 -0
  97. package/packages/dropdown-menu/index.js +8 -0
  98. package/packages/empty/index.js +7 -0
  99. package/packages/empty/src/img-empty.vue +132 -0
  100. package/packages/empty/src/index.vue +50 -0
  101. package/packages/footer/index.js +8 -0
  102. package/packages/footer/src/main.vue +20 -0
  103. package/packages/form/index.js +8 -0
  104. package/packages/form/src/form-item.vue +324 -0
  105. package/packages/form/src/form.vue +182 -0
  106. package/packages/form/src/label-wrap.vue +78 -0
  107. package/packages/form-item/index.js +8 -0
  108. package/packages/header/index.js +8 -0
  109. package/packages/header/src/main.vue +20 -0
  110. package/packages/icon/index.js +8 -0
  111. package/packages/icon/src/icon.vue +13 -0
  112. package/packages/image/index.js +8 -0
  113. package/packages/image/src/image-viewer.vue +330 -0
  114. package/packages/image/src/main.vue +249 -0
  115. package/packages/infinite-scroll/index.js +8 -0
  116. package/packages/infinite-scroll/src/main.js +150 -0
  117. package/packages/input/index.js +8 -0
  118. package/packages/input/src/calcTextareaHeight.js +104 -0
  119. package/packages/input/src/input.vue +440 -0
  120. package/packages/input-number/index.js +8 -0
  121. package/packages/input-number/src/input-number.vue +283 -0
  122. package/packages/link/index.js +8 -0
  123. package/packages/link/src/main.vue +53 -0
  124. package/packages/loading/index.js +11 -0
  125. package/packages/loading/src/directive.js +133 -0
  126. package/packages/loading/src/index.js +106 -0
  127. package/packages/loading/src/loading.vue +41 -0
  128. package/packages/main/index.js +8 -0
  129. package/packages/main/src/main.vue +12 -0
  130. package/packages/menu/index.js +8 -0
  131. package/packages/menu/src/menu-item-group.vue +45 -0
  132. package/packages/menu/src/menu-item.vue +112 -0
  133. package/packages/menu/src/menu-mixin.js +44 -0
  134. package/packages/menu/src/menu.vue +325 -0
  135. package/packages/menu/src/submenu.vue +349 -0
  136. package/packages/menu-item/index.js +8 -0
  137. package/packages/menu-item-group/index.js +8 -0
  138. package/packages/message/index.js +2 -0
  139. package/packages/message/src/main.js +91 -0
  140. package/packages/message/src/main.vue +117 -0
  141. package/packages/message-box/index.js +2 -0
  142. package/packages/message-box/src/main.js +216 -0
  143. package/packages/message-box/src/main.vue +332 -0
  144. package/packages/notification/index.js +2 -0
  145. package/packages/notification/src/main.js +94 -0
  146. package/packages/notification/src/main.vue +152 -0
  147. package/packages/option/index.js +8 -0
  148. package/packages/option-group/index.js +8 -0
  149. package/packages/page-header/index.js +8 -0
  150. package/packages/page-header/src/main.vue +30 -0
  151. package/packages/pagination/index.js +8 -0
  152. package/packages/pagination/src/pager.vue +163 -0
  153. package/packages/pagination/src/pagination.js +386 -0
  154. package/packages/popconfirm/index.js +8 -0
  155. package/packages/popconfirm/src/main.vue +104 -0
  156. package/packages/popover/index.js +14 -0
  157. package/packages/popover/src/directive.js +20 -0
  158. package/packages/popover/src/main.vue +237 -0
  159. package/packages/progress/index.js +8 -0
  160. package/packages/progress/src/progress.vue +235 -0
  161. package/packages/radio/index.js +8 -0
  162. package/packages/radio/src/radio-button.vue +115 -0
  163. package/packages/radio/src/radio-group.vue +113 -0
  164. package/packages/radio/src/radio.vue +134 -0
  165. package/packages/radio-button/index.js +8 -0
  166. package/packages/radio-group/index.js +8 -0
  167. package/packages/rate/index.js +8 -0
  168. package/packages/rate/src/main.vue +348 -0
  169. package/packages/result/index.js +8 -0
  170. package/packages/result/src/icon-error.vue +13 -0
  171. package/packages/result/src/icon-info.vue +13 -0
  172. package/packages/result/src/icon-success.vue +13 -0
  173. package/packages/result/src/icon-warning.vue +13 -0
  174. package/packages/result/src/index.vue +65 -0
  175. package/packages/row/index.js +9 -0
  176. package/packages/row/src/row.js +44 -0
  177. package/packages/scrollbar/index.js +8 -0
  178. package/packages/scrollbar/src/bar.js +92 -0
  179. package/packages/scrollbar/src/main.js +130 -0
  180. package/packages/scrollbar/src/util.js +34 -0
  181. package/packages/select/index.js +8 -0
  182. package/packages/select/src/navigation-mixin.js +54 -0
  183. package/packages/select/src/option-group.vue +60 -0
  184. package/packages/select/src/option.vue +168 -0
  185. package/packages/select/src/select-dropdown.vue +74 -0
  186. package/packages/select/src/select.vue +900 -0
  187. package/packages/skeleton/index.js +8 -0
  188. package/packages/skeleton/src/img-placeholder.vue +16 -0
  189. package/packages/skeleton/src/index.vue +76 -0
  190. package/packages/skeleton/src/item.vue +22 -0
  191. package/packages/skeleton-item/index.js +8 -0
  192. package/packages/slider/index.js +8 -0
  193. package/packages/slider/src/button.vue +238 -0
  194. package/packages/slider/src/main.vue +427 -0
  195. package/packages/slider/src/marker.js +18 -0
  196. package/packages/spinner/index.js +8 -0
  197. package/packages/spinner/src/spinner.vue +27 -0
  198. package/packages/statistic/index.js +8 -0
  199. package/packages/statistic/src/main.vue +204 -0
  200. package/packages/step/index.js +8 -0
  201. package/packages/steps/README.md +69 -0
  202. package/packages/steps/index.js +8 -0
  203. package/packages/steps/src/step.vue +184 -0
  204. package/packages/steps/src/steps.vue +68 -0
  205. package/packages/submenu/index.js +8 -0
  206. package/packages/switch/index.js +9 -0
  207. package/packages/switch/src/component.vue +174 -0
  208. package/packages/tab-pane/index.js +8 -0
  209. package/packages/table/index.js +8 -0
  210. package/packages/table/src/config.js +124 -0
  211. package/packages/table/src/dropdown.js +28 -0
  212. package/packages/table/src/filter-panel.vue +194 -0
  213. package/packages/table/src/layout-observer.js +68 -0
  214. package/packages/table/src/store/current.js +76 -0
  215. package/packages/table/src/store/expand.js +65 -0
  216. package/packages/table/src/store/helper.js +41 -0
  217. package/packages/table/src/store/index.js +147 -0
  218. package/packages/table/src/store/tree.js +209 -0
  219. package/packages/table/src/store/watcher.js +381 -0
  220. package/packages/table/src/table-body.js +469 -0
  221. package/packages/table/src/table-column.js +319 -0
  222. package/packages/table/src/table-footer.js +153 -0
  223. package/packages/table/src/table-header.js +511 -0
  224. package/packages/table/src/table-layout.js +249 -0
  225. package/packages/table/src/table-row.js +101 -0
  226. package/packages/table/src/table.vue +712 -0
  227. package/packages/table/src/util.js +273 -0
  228. package/packages/table-column/index.js +8 -0
  229. package/packages/tabs/index.js +8 -0
  230. package/packages/tabs/src/tab-bar.vue +57 -0
  231. package/packages/tabs/src/tab-nav.vue +294 -0
  232. package/packages/tabs/src/tab-pane.vue +56 -0
  233. package/packages/tabs/src/tabs.vue +191 -0
  234. package/packages/tag/index.js +8 -0
  235. package/packages/tag/src/tag.vue +58 -0
  236. package/packages/theme-chalk/README.md +33 -0
  237. package/packages/theme-chalk/package.json +35 -0
  238. package/packages/theme-chalk/src/alert.scss +147 -0
  239. package/packages/theme-chalk/src/aside.scss +7 -0
  240. package/packages/theme-chalk/src/autocomplete.scss +80 -0
  241. package/packages/theme-chalk/src/avatar.scss +51 -0
  242. package/packages/theme-chalk/src/backtop.scss +22 -0
  243. package/packages/theme-chalk/src/badge.scss +57 -0
  244. package/packages/theme-chalk/src/base.scss +2 -0
  245. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  246. package/packages/theme-chalk/src/breadcrumb.scss +55 -0
  247. package/packages/theme-chalk/src/button-group.scss +0 -0
  248. package/packages/theme-chalk/src/button.scss +262 -0
  249. package/packages/theme-chalk/src/calendar.scss +79 -0
  250. package/packages/theme-chalk/src/card.scss +32 -0
  251. package/packages/theme-chalk/src/carousel-item.scss +50 -0
  252. package/packages/theme-chalk/src/carousel.scss +161 -0
  253. package/packages/theme-chalk/src/cascader-panel.scss +120 -0
  254. package/packages/theme-chalk/src/cascader.scss +182 -0
  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 +359 -0
  258. package/packages/theme-chalk/src/col.scss +156 -0
  259. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  260. package/packages/theme-chalk/src/collapse.scss +63 -0
  261. package/packages/theme-chalk/src/color-picker.scss +384 -0
  262. package/packages/theme-chalk/src/common/popup.scss +42 -0
  263. package/packages/theme-chalk/src/common/transition.scss +99 -0
  264. package/packages/theme-chalk/src/common/var.scss +1028 -0
  265. package/packages/theme-chalk/src/container.scss +14 -0
  266. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  267. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  268. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  269. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -0
  270. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  271. package/packages/theme-chalk/src/date-picker/picker.scss +197 -0
  272. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  273. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  274. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  275. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -0
  276. package/packages/theme-chalk/src/date-picker.scss +12 -0
  277. package/packages/theme-chalk/src/descriptions-item.scss +42 -0
  278. package/packages/theme-chalk/src/descriptions.scss +111 -0
  279. package/packages/theme-chalk/src/dialog.scss +123 -0
  280. package/packages/theme-chalk/src/display.scss +12 -0
  281. package/packages/theme-chalk/src/divider.scss +47 -0
  282. package/packages/theme-chalk/src/drawer.scss +219 -0
  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 +182 -0
  286. package/packages/theme-chalk/src/empty.scss +45 -0
  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 +8 -0
  290. package/packages/theme-chalk/src/form-item.scss +0 -0
  291. package/packages/theme-chalk/src/form.scss +167 -0
  292. package/packages/theme-chalk/src/header.scss +8 -0
  293. package/packages/theme-chalk/src/icon.scss +1167 -0
  294. package/packages/theme-chalk/src/image.scss +179 -0
  295. package/packages/theme-chalk/src/index.scss +87 -0
  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 +180 -0
  299. package/packages/theme-chalk/src/input.scss +360 -0
  300. package/packages/theme-chalk/src/link.scss +81 -0
  301. package/packages/theme-chalk/src/loading.scss +96 -0
  302. package/packages/theme-chalk/src/main.scss +12 -0
  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 +289 -0
  306. package/packages/theme-chalk/src/message-box.scss +226 -0
  307. package/packages/theme-chalk/src/message.scss +120 -0
  308. package/packages/theme-chalk/src/mixins/_button.scss +81 -0
  309. package/packages/theme-chalk/src/mixins/config.scss +4 -0
  310. package/packages/theme-chalk/src/mixins/function.scss +44 -0
  311. package/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  312. package/packages/theme-chalk/src/mixins/utils.scss +39 -0
  313. package/packages/theme-chalk/src/notification.scss +99 -0
  314. package/packages/theme-chalk/src/option-group.scss +42 -0
  315. package/packages/theme-chalk/src/option.scss +36 -0
  316. package/packages/theme-chalk/src/page-header.scss +41 -0
  317. package/packages/theme-chalk/src/pagination.scss +295 -0
  318. package/packages/theme-chalk/src/popconfirm.scss +16 -0
  319. package/packages/theme-chalk/src/popover.scss +40 -0
  320. package/packages/theme-chalk/src/popper.scss +101 -0
  321. package/packages/theme-chalk/src/progress.scss +141 -0
  322. package/packages/theme-chalk/src/radio-button.scss +113 -0
  323. package/packages/theme-chalk/src/radio-group.scss +9 -0
  324. package/packages/theme-chalk/src/radio.scss +199 -0
  325. package/packages/theme-chalk/src/rate.scss +49 -0
  326. package/packages/theme-chalk/src/reset.scss +79 -0
  327. package/packages/theme-chalk/src/result.scss +61 -0
  328. package/packages/theme-chalk/src/row.scss +43 -0
  329. package/packages/theme-chalk/src/scrollbar.scss +72 -0
  330. package/packages/theme-chalk/src/select-dropdown.scss +62 -0
  331. package/packages/theme-chalk/src/select.scss +152 -0
  332. package/packages/theme-chalk/src/skeleton-item.scss +84 -0
  333. package/packages/theme-chalk/src/skeleton.scss +40 -0
  334. package/packages/theme-chalk/src/slider.scss +250 -0
  335. package/packages/theme-chalk/src/spinner.scss +44 -0
  336. package/packages/theme-chalk/src/statistic.scss +38 -0
  337. package/packages/theme-chalk/src/step.scss +317 -0
  338. package/packages/theme-chalk/src/steps.scss +20 -0
  339. package/packages/theme-chalk/src/submenu.scss +0 -0
  340. package/packages/theme-chalk/src/switch.scss +116 -0
  341. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  342. package/packages/theme-chalk/src/table-column.scss +97 -0
  343. package/packages/theme-chalk/src/table.scss +564 -0
  344. package/packages/theme-chalk/src/tabs.scss +602 -0
  345. package/packages/theme-chalk/src/tag.scss +163 -0
  346. package/packages/theme-chalk/src/time-picker.scss +8 -0
  347. package/packages/theme-chalk/src/time-select.scss +37 -0
  348. package/packages/theme-chalk/src/timeline-item.scss +86 -0
  349. package/packages/theme-chalk/src/timeline.scss +14 -0
  350. package/packages/theme-chalk/src/tooltip.scss +141 -0
  351. package/packages/theme-chalk/src/transfer.scss +227 -0
  352. package/packages/theme-chalk/src/tree.scss +123 -0
  353. package/packages/theme-chalk/src/upload.scss +603 -0
  354. package/packages/theme-cy/README.md +38 -0
  355. package/packages/theme-cy/package.json +35 -0
  356. package/packages/theme-cy/src/base.scss +0 -0
  357. package/packages/theme-cy/src/index.scss +2 -0
  358. package/packages/theme-cy/src/treeselect.scss +4 -0
  359. package/packages/time-picker/index.js +8 -0
  360. package/packages/time-select/index.js +8 -0
  361. package/packages/timeline/index.js +8 -0
  362. package/packages/timeline/src/item.vue +73 -0
  363. package/packages/timeline/src/main.vue +33 -0
  364. package/packages/timeline-item/index.js +8 -0
  365. package/packages/tooltip/index.js +8 -0
  366. package/packages/tooltip/src/main.js +242 -0
  367. package/packages/transfer/index.js +8 -0
  368. package/packages/transfer/src/main.vue +231 -0
  369. package/packages/transfer/src/transfer-panel.vue +251 -0
  370. package/packages/tree/index.js +8 -0
  371. package/packages/tree/src/model/node.js +484 -0
  372. package/packages/tree/src/model/tree-store.js +340 -0
  373. package/packages/tree/src/model/util.js +27 -0
  374. package/packages/tree/src/tree-node.vue +279 -0
  375. package/packages/tree/src/tree.vue +496 -0
  376. package/packages/treeselect/index.js +8 -0
  377. package/packages/treeselect/src/main.vue +331 -0
  378. package/packages/upload/index.js +8 -0
  379. package/packages/upload/src/ajax.js +85 -0
  380. package/packages/upload/src/index.vue +338 -0
  381. package/packages/upload/src/upload-dragger.vue +70 -0
  382. package/packages/upload/src/upload-list.vue +105 -0
  383. package/packages/upload/src/upload.vue +211 -0
  384. package/src/directives/mousewheel.js +18 -0
  385. package/src/directives/repeat-click.js +26 -0
  386. package/src/index.js +312 -0
  387. package/src/locale/format.js +46 -0
  388. package/src/locale/index.js +48 -0
  389. package/src/locale/lang/af-ZA.js +123 -0
  390. package/src/locale/lang/ar.js +122 -0
  391. package/src/locale/lang/az.js +126 -0
  392. package/src/locale/lang/bg.js +123 -0
  393. package/src/locale/lang/bn.js +126 -0
  394. package/src/locale/lang/ca.js +122 -0
  395. package/src/locale/lang/cs-CZ.js +125 -0
  396. package/src/locale/lang/da.js +122 -0
  397. package/src/locale/lang/de.js +124 -0
  398. package/src/locale/lang/ee.js +123 -0
  399. package/src/locale/lang/el.js +123 -0
  400. package/src/locale/lang/en.js +123 -0
  401. package/src/locale/lang/eo.js +123 -0
  402. package/src/locale/lang/es.js +122 -0
  403. package/src/locale/lang/eu.js +123 -0
  404. package/src/locale/lang/fa.js +123 -0
  405. package/src/locale/lang/fi.js +123 -0
  406. package/src/locale/lang/fr.js +122 -0
  407. package/src/locale/lang/he.js +123 -0
  408. package/src/locale/lang/hr.js +123 -0
  409. package/src/locale/lang/hu.js +122 -0
  410. package/src/locale/lang/hy-AM.js +123 -0
  411. package/src/locale/lang/id.js +123 -0
  412. package/src/locale/lang/is.js +124 -0
  413. package/src/locale/lang/it.js +122 -0
  414. package/src/locale/lang/ja.js +123 -0
  415. package/src/locale/lang/kg.js +123 -0
  416. package/src/locale/lang/km.js +123 -0
  417. package/src/locale/lang/ko.js +123 -0
  418. package/src/locale/lang/ku.js +123 -0
  419. package/src/locale/lang/kz.js +123 -0
  420. package/src/locale/lang/lo-LA.js +126 -0
  421. package/src/locale/lang/lt.js +123 -0
  422. package/src/locale/lang/lv.js +123 -0
  423. package/src/locale/lang/mn.js +123 -0
  424. package/src/locale/lang/ms.js +122 -0
  425. package/src/locale/lang/nb-NO.js +122 -0
  426. package/src/locale/lang/nl.js +123 -0
  427. package/src/locale/lang/pl.js +123 -0
  428. package/src/locale/lang/pt-br.js +123 -0
  429. package/src/locale/lang/pt.js +123 -0
  430. package/src/locale/lang/ro.js +123 -0
  431. package/src/locale/lang/ru-RU.js +123 -0
  432. package/src/locale/lang/si.js +123 -0
  433. package/src/locale/lang/sk.js +125 -0
  434. package/src/locale/lang/sl.js +123 -0
  435. package/src/locale/lang/sr-Latn.js +123 -0
  436. package/src/locale/lang/sr.js +123 -0
  437. package/src/locale/lang/sv-SE.js +123 -0
  438. package/src/locale/lang/sw.js +123 -0
  439. package/src/locale/lang/ta.js +122 -0
  440. package/src/locale/lang/th.js +123 -0
  441. package/src/locale/lang/tk.js +123 -0
  442. package/src/locale/lang/tr-TR.js +123 -0
  443. package/src/locale/lang/ua.js +123 -0
  444. package/src/locale/lang/ug-CN.js +123 -0
  445. package/src/locale/lang/uz-UZ.js +123 -0
  446. package/src/locale/lang/vi.js +123 -0
  447. package/src/locale/lang/zh-CN.js +123 -0
  448. package/src/locale/lang/zh-TW.js +123 -0
  449. package/src/mixins/emitter.js +33 -0
  450. package/src/mixins/focus.js +9 -0
  451. package/src/mixins/locale.js +9 -0
  452. package/src/mixins/migrating.js +54 -0
  453. package/src/transitions/collapse-transition.js +77 -0
  454. package/src/utils/after-leave.js +27 -0
  455. package/src/utils/aria-dialog.js +90 -0
  456. package/src/utils/aria-utils.js +122 -0
  457. package/src/utils/clickoutside.js +76 -0
  458. package/src/utils/date-util.js +282 -0
  459. package/src/utils/date.js +368 -0
  460. package/src/utils/dom.js +227 -0
  461. package/src/utils/lodash.js +18075 -0
  462. package/src/utils/menu/aria-menubar.js +14 -0
  463. package/src/utils/menu/aria-menuitem.js +49 -0
  464. package/src/utils/menu/aria-submenu.js +59 -0
  465. package/src/utils/merge.js +15 -0
  466. package/src/utils/popper.js +1276 -0
  467. package/src/utils/popup/index.js +218 -0
  468. package/src/utils/popup/popup-manager.js +194 -0
  469. package/src/utils/resize-event.js +36 -0
  470. package/src/utils/scroll-into-view.js +27 -0
  471. package/src/utils/scrollbar-width.js +29 -0
  472. package/src/utils/shared.js +7 -0
  473. package/src/utils/types.js +40 -0
  474. package/src/utils/util.js +245 -0
  475. package/src/utils/vdom.js +5 -0
  476. package/src/utils/vue-popper.js +198 -0
  477. package/types/alert.d.ts +31 -0
  478. package/types/aside.d.ts +7 -0
  479. package/types/autocomplete.d.ts +78 -0
  480. package/types/avatar.d.ts +20 -0
  481. package/types/backtop.d.ts +16 -0
  482. package/types/badge.d.ts +16 -0
  483. package/types/breadcrumb-item.d.ts +10 -0
  484. package/types/breadcrumb.d.ts +10 -0
  485. package/types/button-group.d.ts +4 -0
  486. package/types/button.d.ts +37 -0
  487. package/types/calendar.d.ts +15 -0
  488. package/types/card.d.ts +26 -0
  489. package/types/carousel-item.d.ts +10 -0
  490. package/types/carousel.d.ts +57 -0
  491. package/types/cascader-panel.d.ts +72 -0
  492. package/types/cascader.d.ts +65 -0
  493. package/types/checkbox-button.d.ts +22 -0
  494. package/types/checkbox-group.d.ts +22 -0
  495. package/types/checkbox.d.ts +34 -0
  496. package/types/col.d.ts +46 -0
  497. package/types/collapse-item.d.ts +26 -0
  498. package/types/collapse.d.ts +10 -0
  499. package/types/color-picker.d.ts +21 -0
  500. package/types/component.d.ts +13 -0
  501. package/types/container.d.ts +7 -0
  502. package/types/date-picker.d.ts +124 -0
  503. package/types/descriptions-item.d.ts +37 -0
  504. package/types/descriptions.d.ts +52 -0
  505. package/types/dialog.d.ts +62 -0
  506. package/types/divider.d.ts +12 -0
  507. package/types/drawer.d.ts +63 -0
  508. package/types/dropdown-item.d.ts +16 -0
  509. package/types/dropdown-menu.d.ts +4 -0
  510. package/types/dropdown.d.ts +38 -0
  511. package/types/element-ui.d.ts +386 -0
  512. package/types/empty.d.ts +31 -0
  513. package/types/footer.d.ts +7 -0
  514. package/types/form-item.d.ts +37 -0
  515. package/types/form.d.ts +82 -0
  516. package/types/header.d.ts +7 -0
  517. package/types/icon.d.ts +7 -0
  518. package/types/image.d.ts +43 -0
  519. package/types/index.d.ts +4 -0
  520. package/types/infinite-scroll.d.ts +6 -0
  521. package/types/input-number.d.ts +47 -0
  522. package/types/input.d.ts +107 -0
  523. package/types/link.d.ts +25 -0
  524. package/types/loading.d.ts +62 -0
  525. package/types/main.d.ts +4 -0
  526. package/types/menu-item-group.d.ts +7 -0
  527. package/types/menu-item.d.ts +10 -0
  528. package/types/menu.d.ts +46 -0
  529. package/types/message-box.d.ts +176 -0
  530. package/types/message.d.ts +90 -0
  531. package/types/notification.d.ts +84 -0
  532. package/types/option-group.d.ts +10 -0
  533. package/types/option.d.ts +13 -0
  534. package/types/page-header.d.ts +10 -0
  535. package/types/pagination.d.ts +43 -0
  536. package/types/popconfirm.d.ts +29 -0
  537. package/types/popover.d.ts +71 -0
  538. package/types/progress.d.ts +37 -0
  539. package/types/radio-button.d.ts +16 -0
  540. package/types/radio-group.d.ts +18 -0
  541. package/types/radio.d.ts +19 -0
  542. package/types/rate.d.ts +64 -0
  543. package/types/result.d.ts +33 -0
  544. package/types/row.d.ts +25 -0
  545. package/types/select.d.ts +90 -0
  546. package/types/skeleton-item.d.ts +7 -0
  547. package/types/skeleton.d.ts +33 -0
  548. package/types/slider.d.ts +68 -0
  549. package/types/spinner.d.ts +16 -0
  550. package/types/statistic.d.ts +37 -0
  551. package/types/step.d.ts +34 -0
  552. package/types/steps.d.ts +28 -0
  553. package/types/submenu.d.ts +22 -0
  554. package/types/switch.d.ts +43 -0
  555. package/types/tab-pane.d.ts +19 -0
  556. package/types/table-column.d.ts +117 -0
  557. package/types/table.d.ts +177 -0
  558. package/types/tabs.d.ts +31 -0
  559. package/types/tag.d.ts +28 -0
  560. package/types/time-picker.d.ts +63 -0
  561. package/types/time-select.d.ts +56 -0
  562. package/types/timeline-item.d.ts +20 -0
  563. package/types/timeline.d.ts +6 -0
  564. package/types/tooltip.d.ts +52 -0
  565. package/types/transfer.d.ts +73 -0
  566. package/types/tree.d.ts +266 -0
  567. package/types/treeselect.d.ts +5 -0
  568. package/types/upload.d.ts +124 -0
  569. package/web-types.json +4195 -0
@@ -0,0 +1,191 @@
1
+ <script>
2
+ import TabNav from './tab-nav';
3
+
4
+ export default {
5
+ name: 'ElTabs',
6
+
7
+ components: {
8
+ TabNav
9
+ },
10
+
11
+ props: {
12
+ type: String,
13
+ activeName: String,
14
+ closable: Boolean,
15
+ addable: Boolean,
16
+ value: {},
17
+ editable: Boolean,
18
+ tabPosition: {
19
+ type: String,
20
+ default: 'top'
21
+ },
22
+ beforeLeave: Function,
23
+ stretch: Boolean
24
+ },
25
+
26
+ provide() {
27
+ return {
28
+ rootTabs: this
29
+ };
30
+ },
31
+
32
+ data() {
33
+ return {
34
+ currentName: this.value || this.activeName,
35
+ panes: []
36
+ };
37
+ },
38
+
39
+ watch: {
40
+ activeName(value) {
41
+ this.setCurrentName(value);
42
+ },
43
+ value(value) {
44
+ this.setCurrentName(value);
45
+ },
46
+ currentName(value) {
47
+ if (this.$refs.nav) {
48
+ this.$nextTick(() => {
49
+ this.$refs.nav.$nextTick(_ => {
50
+ this.$refs.nav.scrollToActiveTab();
51
+ });
52
+ });
53
+ }
54
+ }
55
+ },
56
+
57
+ methods: {
58
+ calcPaneInstances(isForceUpdate = false) {
59
+ if (this.$slots.default) {
60
+ const paneSlots = this.$slots.default.filter(vnode => vnode.tag &&
61
+ vnode.componentOptions && vnode.componentOptions.Ctor.options.name === 'ElTabPane');
62
+ // update indeed
63
+ const panes = paneSlots.map(({ componentInstance }) => componentInstance);
64
+ const panesChanged = !(panes.length === this.panes.length && panes.every((pane, index) => pane === this.panes[index]));
65
+ if (isForceUpdate || panesChanged) {
66
+ this.panes = panes;
67
+ }
68
+ } else if (this.panes.length !== 0) {
69
+ this.panes = [];
70
+ }
71
+ },
72
+ handleTabClick(tab, tabName, event) {
73
+ if (tab.disabled) return;
74
+ this.setCurrentName(tabName);
75
+ this.$emit('tab-click', tab, event);
76
+ },
77
+ handleTabRemove(pane, ev) {
78
+ if (pane.disabled) return;
79
+ ev.stopPropagation();
80
+ this.$emit('edit', pane.name, 'remove');
81
+ this.$emit('tab-remove', pane.name);
82
+ },
83
+ handleTabAdd() {
84
+ this.$emit('edit', null, 'add');
85
+ this.$emit('tab-add');
86
+ },
87
+ setCurrentName(value) {
88
+ const changeCurrentName = () => {
89
+ this.currentName = value;
90
+ this.$emit('input', value);
91
+ };
92
+ if (this.currentName !== value && this.beforeLeave) {
93
+ const before = this.beforeLeave(value, this.currentName);
94
+ if (before && before.then) {
95
+ before
96
+ .then(() => {
97
+ changeCurrentName();
98
+ this.$refs.nav && this.$refs.nav.removeFocus();
99
+ }, () => {
100
+ // https://github.com/ElemeFE/element/pull/14816
101
+ // ignore promise rejection in `before-leave` hook
102
+ });
103
+ } else if (before !== false) {
104
+ changeCurrentName();
105
+ }
106
+ } else {
107
+ changeCurrentName();
108
+ }
109
+ }
110
+ },
111
+
112
+ render(h) {
113
+ let {
114
+ type,
115
+ handleTabClick,
116
+ handleTabRemove,
117
+ handleTabAdd,
118
+ currentName,
119
+ panes,
120
+ editable,
121
+ addable,
122
+ tabPosition,
123
+ stretch
124
+ } = this;
125
+
126
+ const newButton = editable || addable
127
+ ? (
128
+ <span
129
+ class="el-tabs__new-tab"
130
+ on-click={ handleTabAdd }
131
+ tabindex="0"
132
+ on-keydown={ (ev) => { if (ev.keyCode === 13) { handleTabAdd(); }} }
133
+ >
134
+ <i class="el-icon-plus"></i>
135
+ </span>
136
+ )
137
+ : null;
138
+
139
+ const navData = {
140
+ props: {
141
+ currentName,
142
+ onTabClick: handleTabClick,
143
+ onTabRemove: handleTabRemove,
144
+ editable,
145
+ type,
146
+ panes,
147
+ stretch
148
+ },
149
+ ref: 'nav'
150
+ };
151
+ const header = (
152
+ <div class={['el-tabs__header', `is-${tabPosition}`]}>
153
+ {newButton}
154
+ <tab-nav { ...navData }></tab-nav>
155
+ </div>
156
+ );
157
+ const panels = (
158
+ <div class="el-tabs__content">
159
+ {this.$slots.default}
160
+ </div>
161
+ );
162
+
163
+ return (
164
+ <div class={{
165
+ 'el-tabs': true,
166
+ 'el-tabs--card': type === 'card',
167
+ [`el-tabs--${tabPosition}`]: true,
168
+ 'el-tabs--border-card': type === 'border-card'
169
+ }}>
170
+ { tabPosition !== 'bottom' ? [header, panels] : [panels, header] }
171
+ </div>
172
+ );
173
+ },
174
+
175
+ created() {
176
+ if (!this.currentName) {
177
+ this.setCurrentName('0');
178
+ }
179
+
180
+ this.$on('tab-nav-update', this.calcPaneInstances.bind(null, true));
181
+ },
182
+
183
+ mounted() {
184
+ this.calcPaneInstances();
185
+ },
186
+
187
+ updated() {
188
+ this.calcPaneInstances();
189
+ }
190
+ };
191
+ </script>
@@ -0,0 +1,8 @@
1
+ import ElTag from './src/tag';
2
+
3
+ /* istanbul ignore next */
4
+ ElTag.install = function(Vue) {
5
+ Vue.component(ElTag.name, ElTag);
6
+ };
7
+
8
+ export default ElTag;
@@ -0,0 +1,58 @@
1
+ <script>
2
+ export default {
3
+ name: 'ElTag',
4
+ props: {
5
+ text: String,
6
+ closable: Boolean,
7
+ type: String,
8
+ hit: Boolean,
9
+ disableTransitions: Boolean,
10
+ color: String,
11
+ size: String,
12
+ effect: {
13
+ type: String,
14
+ default: 'light',
15
+ validator(val) {
16
+ return ['dark', 'light', 'plain'].indexOf(val) !== -1;
17
+ }
18
+ }
19
+ },
20
+ methods: {
21
+ handleClose(event) {
22
+ event.stopPropagation();
23
+ this.$emit('close', event);
24
+ },
25
+ handleClick(event) {
26
+ this.$emit('click', event);
27
+ }
28
+ },
29
+ computed: {
30
+ tagSize() {
31
+ return this.size || (this.$ELEMENT || {}).size;
32
+ }
33
+ },
34
+ render(h) {
35
+ const { type, tagSize, hit, effect } = this;
36
+ const classes = [
37
+ 'el-tag',
38
+ type ? `el-tag--${type}` : '',
39
+ tagSize ? `el-tag--${tagSize}` : '',
40
+ effect ? `el-tag--${effect}` : '',
41
+ hit && 'is-hit'
42
+ ];
43
+ const tagEl = (
44
+ <span
45
+ class={ classes }
46
+ style={{ backgroundColor: this.color }}
47
+ on-click={ this.handleClick }>
48
+ { this.$slots.default }
49
+ {
50
+ this.closable && <i class="el-tag__close el-icon-close" on-click={ this.handleClose }></i>
51
+ }
52
+ </span>
53
+ );
54
+
55
+ return this.disableTransitions ? tagEl : <transition name="el-zoom-in-center">{ tagEl }</transition>;
56
+ }
57
+ };
58
+ </script>
@@ -0,0 +1,33 @@
1
+ # element-theme-chalk
2
+ > element component chalk theme.
3
+
4
+
5
+ ## Installation
6
+ ```shell
7
+ npm i element-theme-chalk -S
8
+ ```
9
+
10
+ ## Usage
11
+
12
+ Use Sass import
13
+ ```css
14
+ @import 'element-theme-chalk';
15
+ ```
16
+
17
+ Or Use webpack
18
+ ```javascript
19
+ import 'element-theme-chalk';
20
+ ```
21
+
22
+ Or
23
+ ```html
24
+ <link rel="stylesheet" href="path/to/node_modules/element-theme-chalk/lib/index.css">
25
+ ```
26
+
27
+ ## Import on demand
28
+ ```javascript
29
+ import 'element-theme-chalk/lib/input.css';
30
+ import 'element-theme-chalk/lib/select.css';
31
+
32
+ // ...
33
+ ```
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "element-theme-chalk",
3
+ "version": "2.15.14",
4
+ "description": "Element component chalk theme.",
5
+ "main": "lib/index.css",
6
+ "style": "lib/index.css",
7
+ "files": [
8
+ "lib",
9
+ "src"
10
+ ],
11
+ "scripts": {
12
+ "build": "gulp build"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/ElementUI/theme-chalk.git"
17
+ },
18
+ "keywords": [
19
+ "element",
20
+ "theme"
21
+ ],
22
+ "author": "yi.shyang@ele.me",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/ElementUI/theme-chalk/issues"
26
+ },
27
+ "homepage": "https://github.com/ElementUI/theme-chalk#readme",
28
+ "devDependencies": {
29
+ "gulp": "^3.9.1",
30
+ "gulp-cssmin": "^0.1.7",
31
+ "gulp-sass": "^3.1.0",
32
+ "gulp-autoprefixer": "^4.0.0"
33
+ },
34
+ "dependencies": {}
35
+ }
@@ -0,0 +1,147 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(alert) {
5
+ width: 100%;
6
+ padding: $--alert-padding;
7
+ margin: 0;
8
+ box-sizing: border-box;
9
+ border-radius: $--alert-border-radius;
10
+ position: relative;
11
+ background-color: $--color-white;
12
+ overflow: hidden;
13
+ opacity: 1;
14
+ display: flex;
15
+ align-items: center;
16
+ transition: opacity .2s;
17
+
18
+ @include when(light) {
19
+ .el-alert__closebtn {
20
+ color: $--color-text-placeholder;
21
+ }
22
+ }
23
+
24
+ @include when(dark) {
25
+ .el-alert__closebtn {
26
+ color: $--color-white;
27
+ }
28
+ .el-alert__description {
29
+ color: $--color-white;
30
+ }
31
+ }
32
+
33
+ @include when(center) {
34
+ justify-content: center;
35
+ }
36
+
37
+ @include m(success) {
38
+ &.is-light {
39
+ background-color: $--alert-success-color;
40
+ color: $--color-success;
41
+
42
+ .el-alert__description {
43
+ color: $--color-success;
44
+ }
45
+ }
46
+
47
+ &.is-dark {
48
+ background-color: $--color-success;
49
+ color: $--color-white;
50
+ }
51
+ }
52
+
53
+ @include m(info) {
54
+ &.is-light {
55
+ background-color: $--alert-info-color;
56
+ color: $--color-info;
57
+ }
58
+
59
+ &.is-dark {
60
+ background-color: $--color-info;
61
+ color: $--color-white;
62
+ }
63
+
64
+ .el-alert__description {
65
+ color: $--color-info;
66
+ }
67
+ }
68
+
69
+ @include m(warning) {
70
+ &.is-light {
71
+ background-color: $--alert-warning-color;
72
+ color: $--color-warning;
73
+
74
+ .el-alert__description {
75
+ color: $--color-warning;
76
+ }
77
+ }
78
+
79
+ &.is-dark {
80
+ background-color: $--color-warning;
81
+ color: $--color-white;
82
+ }
83
+ }
84
+
85
+ @include m(error) {
86
+ &.is-light {
87
+ background-color: $--alert-danger-color;
88
+ color: $--color-danger;
89
+
90
+ .el-alert__description {
91
+ color: $--color-danger;
92
+ }
93
+ }
94
+
95
+ &.is-dark {
96
+ background-color: $--color-danger;
97
+ color: $--color-white;
98
+ }
99
+ }
100
+
101
+ @include e(content) {
102
+ display: table-cell;
103
+ padding: 0 8px;
104
+ }
105
+
106
+ @include e(icon) {
107
+ font-size: $--alert-icon-size;
108
+ width: $--alert-icon-size;
109
+ @include when(big) {
110
+ font-size: $--alert-icon-large-size;
111
+ width: $--alert-icon-large-size;
112
+ }
113
+ }
114
+
115
+ @include e(title) {
116
+ font-size: $--alert-title-font-size;
117
+ line-height: 18px;
118
+ @include when(bold) {
119
+ font-weight: bold;
120
+ }
121
+ }
122
+
123
+ & .el-alert__description {
124
+ font-size: $--alert-description-font-size;
125
+ margin: 5px 0 0 0;
126
+ }
127
+
128
+ @include e(closebtn) {
129
+ font-size: $--alert-close-font-size;
130
+ opacity: 1;
131
+ position: absolute;
132
+ top: 12px;
133
+ right: 15px;
134
+ cursor: pointer;
135
+
136
+ @include when(customed) {
137
+ font-style: normal;
138
+ font-size: $--alert-close-customed-font-size;
139
+ top: 9px;
140
+ }
141
+ }
142
+ }
143
+
144
+ .el-alert-fade-enter,
145
+ .el-alert-fade-leave-active {
146
+ opacity: 0;
147
+ }
@@ -0,0 +1,7 @@
1
+ @import "mixins/mixins";
2
+
3
+ @include b(aside) {
4
+ overflow: auto;
5
+ box-sizing: border-box;
6
+ flex-shrink: 0;
7
+ }
@@ -0,0 +1,80 @@
1
+ @import "mixins/mixins";
2
+ @import "mixins/utils";
3
+ @import "common/var";
4
+ @import "./input.scss";
5
+ @import "./scrollbar.scss";
6
+ @import "./popper";
7
+
8
+ @include b(autocomplete) {
9
+ position: relative;
10
+ display: inline-block;
11
+ }
12
+
13
+ @include b(autocomplete-suggestion) {
14
+ margin: 5px 0;
15
+ box-shadow: $--box-shadow-light;
16
+ border-radius: $--border-radius-base;
17
+ border: 1px solid $--border-color-light;
18
+ box-sizing: border-box;
19
+ background-color: $--color-white;
20
+
21
+ @include e(wrap) {
22
+ max-height: 280px;
23
+ padding: 10px 0;
24
+ box-sizing: border-box;
25
+ }
26
+
27
+ @include e(list) {
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ & li {
33
+ padding: 0 20px;
34
+ margin: 0;
35
+ line-height: 34px;
36
+ cursor: pointer;
37
+ color: $--color-text-regular;
38
+ font-size: $--font-size-base;
39
+ list-style: none;
40
+ white-space: nowrap;
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+
44
+ &:hover {
45
+ background-color: $--select-option-hover-background;
46
+ }
47
+
48
+ &.highlighted {
49
+ background-color: $--select-option-hover-background;
50
+ }
51
+
52
+ &.divider {
53
+ margin-top: 6px;
54
+ border-top: 1px solid $--color-black;
55
+ }
56
+
57
+ &.divider:last-child {
58
+ margin-bottom: -6px;
59
+ }
60
+ }
61
+
62
+ @include when(loading) {
63
+ li {
64
+ text-align: center;
65
+ height: 100px;
66
+ line-height: 100px;
67
+ font-size: 20px;
68
+ color: #999;
69
+ @include utils-vertical-center;
70
+
71
+ &:hover {
72
+ background-color: $--color-white;
73
+ }
74
+ }
75
+
76
+ & .el-icon-loading {
77
+ vertical-align: middle;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,51 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(avatar) {
5
+ display: inline-block;
6
+ box-sizing: border-box;
7
+ text-align: center;
8
+ overflow: hidden;
9
+ color: $--avatar-font-color;
10
+ background: $--avatar-background-color;
11
+ width: $--avatar-large-size;
12
+ height: $--avatar-large-size;
13
+ line-height: $--avatar-large-size;
14
+ font-size: $--avatar-text-font-size;
15
+
16
+ >img {
17
+ display: block;
18
+ height: 100%;
19
+ vertical-align: middle;
20
+ }
21
+
22
+ @include m(circle) {
23
+ border-radius: 50%;
24
+ }
25
+
26
+ @include m(square) {
27
+ border-radius: $--avatar-border-radius;
28
+ }
29
+
30
+ @include m(icon) {
31
+ font-size: $--avatar-icon-font-size;
32
+ }
33
+
34
+ @include m(large) {
35
+ width: $--avatar-large-size;
36
+ height: $--avatar-large-size;
37
+ line-height: $--avatar-large-size;
38
+ }
39
+
40
+ @include m(medium) {
41
+ width: $--avatar-medium-size;
42
+ height: $--avatar-medium-size;
43
+ line-height: $--avatar-medium-size;
44
+ }
45
+
46
+ @include m(small) {
47
+ width: $--avatar-small-size;
48
+ height: $--avatar-small-size;
49
+ line-height: $--avatar-small-size;
50
+ }
51
+ }
@@ -0,0 +1,22 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(backtop) {
5
+ position: fixed;
6
+ background-color: $--backtop-background-color;
7
+ width: 40px;
8
+ height: 40px;
9
+ border-radius: 50%;
10
+ color: $--backtop-font-color;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ font-size: 20px;
15
+ box-shadow: 0 0 6px rgba(0,0,0, .12);
16
+ cursor: pointer;
17
+ z-index: 5;
18
+
19
+ &:hover {
20
+ background-color: $--backtop-hover-background-color
21
+ }
22
+ }
@@ -0,0 +1,57 @@
1
+ @import "mixins/mixins";
2
+ @import "common/var";
3
+
4
+ @include b(badge) {
5
+ position: relative;
6
+ vertical-align: middle;
7
+ display: inline-block;
8
+
9
+ @include e(content) {
10
+ background-color: $--badge-background-color;
11
+ border-radius: $--badge-radius;
12
+ color: $--color-white;
13
+ display: inline-block;
14
+ font-size: $--badge-font-size;
15
+ height: $--badge-size;
16
+ line-height: $--badge-size;
17
+ padding: 0 $--badge-padding;
18
+ text-align: center;
19
+ white-space: nowrap;
20
+ border: 1px solid $--color-white;
21
+
22
+ @include when(fixed) {
23
+ position: absolute;
24
+ top: 0;
25
+ right: #{1 + $--badge-size / 2};
26
+ transform: translateY(-50%) translateX(100%);
27
+
28
+ @include when(dot) {
29
+ right: 5px;
30
+ }
31
+ }
32
+
33
+ @include when(dot) {
34
+ height: 8px;
35
+ width: 8px;
36
+ padding: 0;
37
+ right: 0;
38
+ border-radius: 50%;
39
+ }
40
+
41
+ @each $type in (primary, success, warning, info, danger) {
42
+ @include m($type) {
43
+ @if $type == primary {
44
+ background-color: $--color-primary;
45
+ } @else if $type == success {
46
+ background-color: $--color-success;
47
+ } @else if $type == warning {
48
+ background-color: $--color-warning;
49
+ } @else if $type == info {
50
+ background-color: $--color-info;
51
+ } @else {
52
+ background-color: $--color-danger;
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,2 @@
1
+ @import "common/transition.scss";
2
+ @import "icon.scss";
File without changes