cbvirtua 1.0.37 → 1.0.39

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 (473) hide show
  1. package/package.json +1 -1
  2. package/src/packages/alert/index.js +8 -0
  3. package/src/packages/alert/src/main.vue +94 -0
  4. package/src/packages/aside/index.js +8 -0
  5. package/src/packages/aside/src/main.vue +20 -0
  6. package/src/packages/autocomplete/index.js +8 -0
  7. package/src/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  8. package/src/packages/autocomplete/src/autocomplete.vue +285 -0
  9. package/src/packages/avatar/index.js +8 -0
  10. package/src/packages/avatar/src/main.vue +107 -0
  11. package/src/packages/backtop/index.js +8 -0
  12. package/src/packages/backtop/src/main.vue +110 -0
  13. package/src/packages/badge/index.js +8 -0
  14. package/src/packages/badge/src/main.vue +53 -0
  15. package/src/packages/breadcrumb/index.js +8 -0
  16. package/src/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  17. package/src/packages/breadcrumb/src/breadcrumb.vue +34 -0
  18. package/src/packages/breadcrumb-item/index.js +8 -0
  19. package/src/packages/button/index.js +8 -0
  20. package/src/packages/button/src/button-group.vue +10 -0
  21. package/src/packages/button/src/button.vue +78 -0
  22. package/src/packages/button-group/index.js +8 -0
  23. package/src/packages/calendar/index.js +8 -0
  24. package/src/packages/calendar/src/date-table.vue +200 -0
  25. package/src/packages/calendar/src/main.vue +280 -0
  26. package/src/packages/card/index.js +8 -0
  27. package/src/packages/card/src/main.vue +23 -0
  28. package/src/packages/carousel/index.js +8 -0
  29. package/src/packages/carousel/src/item.vue +138 -0
  30. package/src/packages/carousel/src/main.vue +315 -0
  31. package/src/packages/carousel-item/index.js +8 -0
  32. package/src/packages/cascader/index.js +8 -0
  33. package/src/packages/cascader/src/cascader.vue +663 -0
  34. package/src/packages/cascader-panel/index.js +8 -0
  35. package/src/packages/cascader-panel/src/cascader-menu.vue +138 -0
  36. package/src/packages/cascader-panel/src/cascader-node.vue +246 -0
  37. package/src/packages/cascader-panel/src/cascader-panel.vue +391 -0
  38. package/src/packages/cascader-panel/src/node.js +166 -0
  39. package/src/packages/cascader-panel/src/store.js +58 -0
  40. package/src/packages/checkbox/index.js +8 -0
  41. package/src/packages/checkbox/src/checkbox-button.vue +199 -0
  42. package/src/packages/checkbox/src/checkbox-group.vue +48 -0
  43. package/src/packages/checkbox/src/checkbox.vue +222 -0
  44. package/src/packages/checkbox-button/index.js +8 -0
  45. package/src/packages/checkbox-group/index.js +8 -0
  46. package/src/packages/col/index.js +9 -0
  47. package/src/packages/col/src/col.js +71 -0
  48. package/src/packages/collapse/index.js +9 -0
  49. package/src/packages/collapse/src/collapse-item.vue +114 -0
  50. package/src/packages/collapse/src/collapse.vue +73 -0
  51. package/src/packages/collapse-item/index.js +8 -0
  52. package/src/packages/color-picker/index.js +8 -0
  53. package/src/packages/color-picker/src/color.js +317 -0
  54. package/src/packages/color-picker/src/components/alpha-slider.vue +132 -0
  55. package/src/packages/color-picker/src/components/hue-slider.vue +123 -0
  56. package/src/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  57. package/src/packages/color-picker/src/components/predefine.vue +61 -0
  58. package/src/packages/color-picker/src/components/sv-panel.vue +100 -0
  59. package/src/packages/color-picker/src/draggable.js +36 -0
  60. package/src/packages/color-picker/src/main.vue +188 -0
  61. package/src/packages/container/index.js +8 -0
  62. package/src/packages/container/src/main.vue +33 -0
  63. package/src/packages/date-picker/index.js +8 -0
  64. package/src/packages/date-picker/src/basic/date-table.vue +441 -0
  65. package/src/packages/date-picker/src/basic/month-table.vue +269 -0
  66. package/src/packages/date-picker/src/basic/time-spinner.vue +304 -0
  67. package/src/packages/date-picker/src/basic/year-table.vue +111 -0
  68. package/src/packages/date-picker/src/panel/date-range.vue +680 -0
  69. package/src/packages/date-picker/src/panel/date.vue +609 -0
  70. package/src/packages/date-picker/src/panel/month-range.vue +289 -0
  71. package/src/packages/date-picker/src/panel/time-range.vue +248 -0
  72. package/src/packages/date-picker/src/panel/time-select.vue +178 -0
  73. package/src/packages/date-picker/src/panel/time.vue +186 -0
  74. package/src/packages/date-picker/src/picker/date-picker.js +43 -0
  75. package/src/packages/date-picker/src/picker/time-picker.js +39 -0
  76. package/src/packages/date-picker/src/picker/time-select.js +21 -0
  77. package/src/packages/date-picker/src/picker.vue +956 -0
  78. package/src/packages/descriptions/index.js +8 -0
  79. package/src/packages/descriptions/src/descriptions-item.js +30 -0
  80. package/src/packages/descriptions/src/descriptions-row.js +116 -0
  81. package/src/packages/descriptions/src/index.js +180 -0
  82. package/src/packages/descriptions-item/index.js +8 -0
  83. package/src/packages/dialog/index.js +8 -0
  84. package/src/packages/dialog/src/component.vue +212 -0
  85. package/src/packages/divider/index.js +8 -0
  86. package/src/packages/divider/src/main.vue +37 -0
  87. package/src/packages/drawer/index.js +8 -0
  88. package/src/packages/drawer/src/main.vue +205 -0
  89. package/src/packages/dropdown/index.js +8 -0
  90. package/src/packages/dropdown/src/dropdown-item.vue +37 -0
  91. package/src/packages/dropdown/src/dropdown-menu.vue +63 -0
  92. package/src/packages/dropdown/src/dropdown.vue +293 -0
  93. package/src/packages/dropdown-item/index.js +8 -0
  94. package/src/packages/dropdown-menu/index.js +8 -0
  95. package/src/packages/empty/index.js +7 -0
  96. package/src/packages/empty/src/img-empty.vue +132 -0
  97. package/src/packages/empty/src/index.vue +50 -0
  98. package/src/packages/footer/index.js +8 -0
  99. package/src/packages/footer/src/main.vue +20 -0
  100. package/src/packages/form/index.js +8 -0
  101. package/src/packages/form/src/form-item.vue +324 -0
  102. package/src/packages/form/src/form.vue +182 -0
  103. package/src/packages/form/src/label-wrap.vue +78 -0
  104. package/src/packages/form-item/index.js +8 -0
  105. package/src/packages/header/index.js +8 -0
  106. package/src/packages/header/src/main.vue +20 -0
  107. package/src/packages/icon/index.js +8 -0
  108. package/src/packages/icon/src/icon.vue +13 -0
  109. package/src/packages/image/index.js +8 -0
  110. package/src/packages/image/src/image-viewer.vue +330 -0
  111. package/src/packages/image/src/main.vue +249 -0
  112. package/src/packages/infinite-scroll/index.js +8 -0
  113. package/src/packages/infinite-scroll/src/main.js +150 -0
  114. package/src/packages/input/index.js +8 -0
  115. package/src/packages/input/src/calcTextareaHeight.js +104 -0
  116. package/src/packages/input/src/input.vue +440 -0
  117. package/src/packages/input-number/index.js +8 -0
  118. package/src/packages/input-number/src/input-number.vue +283 -0
  119. package/src/packages/link/index.js +8 -0
  120. package/src/packages/link/src/main.vue +53 -0
  121. package/src/packages/loading/index.js +11 -0
  122. package/src/packages/loading/src/directive.js +133 -0
  123. package/src/packages/loading/src/index.js +106 -0
  124. package/src/packages/loading/src/loading.vue +41 -0
  125. package/src/packages/main/index.js +8 -0
  126. package/src/packages/main/src/main.vue +12 -0
  127. package/src/packages/menu/index.js +8 -0
  128. package/src/packages/menu/src/menu-item-group.vue +45 -0
  129. package/src/packages/menu/src/menu-item.vue +112 -0
  130. package/src/packages/menu/src/menu-mixin.js +44 -0
  131. package/src/packages/menu/src/menu.vue +325 -0
  132. package/src/packages/menu/src/submenu.vue +349 -0
  133. package/src/packages/menu-item/index.js +8 -0
  134. package/src/packages/menu-item-group/index.js +8 -0
  135. package/src/packages/message/index.js +2 -0
  136. package/src/packages/message/src/main.js +91 -0
  137. package/src/packages/message/src/main.vue +117 -0
  138. package/src/packages/message-box/index.js +2 -0
  139. package/src/packages/message-box/src/main.js +216 -0
  140. package/src/packages/message-box/src/main.vue +332 -0
  141. package/src/packages/notification/index.js +2 -0
  142. package/src/packages/notification/src/main.js +94 -0
  143. package/src/packages/notification/src/main.vue +152 -0
  144. package/src/packages/option/index.js +8 -0
  145. package/src/packages/option-group/index.js +8 -0
  146. package/src/packages/page-header/index.js +8 -0
  147. package/src/packages/page-header/src/main.vue +30 -0
  148. package/src/packages/pagination/index.js +8 -0
  149. package/src/packages/pagination/src/pager.vue +163 -0
  150. package/src/packages/pagination/src/pagination.js +386 -0
  151. package/src/packages/popconfirm/index.js +8 -0
  152. package/src/packages/popconfirm/src/main.vue +104 -0
  153. package/src/packages/popover/index.js +14 -0
  154. package/src/packages/popover/src/directive.js +20 -0
  155. package/src/packages/popover/src/main.vue +237 -0
  156. package/src/packages/progress/index.js +8 -0
  157. package/src/packages/progress/src/progress.vue +235 -0
  158. package/src/packages/radio/index.js +8 -0
  159. package/src/packages/radio/src/radio-button.vue +115 -0
  160. package/src/packages/radio/src/radio-group.vue +113 -0
  161. package/src/packages/radio/src/radio.vue +134 -0
  162. package/src/packages/radio-button/index.js +8 -0
  163. package/src/packages/radio-group/index.js +8 -0
  164. package/src/packages/rate/index.js +8 -0
  165. package/src/packages/rate/src/main.vue +348 -0
  166. package/src/packages/result/index.js +8 -0
  167. package/src/packages/result/src/icon-error.vue +13 -0
  168. package/src/packages/result/src/icon-info.vue +13 -0
  169. package/src/packages/result/src/icon-success.vue +13 -0
  170. package/src/packages/result/src/icon-warning.vue +13 -0
  171. package/src/packages/result/src/index.vue +65 -0
  172. package/src/packages/row/index.js +9 -0
  173. package/src/packages/row/src/row.js +44 -0
  174. package/src/packages/scrollbar/index.js +8 -0
  175. package/src/packages/scrollbar/src/bar.js +92 -0
  176. package/src/packages/scrollbar/src/main.js +130 -0
  177. package/src/packages/scrollbar/src/util.js +34 -0
  178. package/src/packages/select/index.js +8 -0
  179. package/src/packages/select/src/navigation-mixin.js +54 -0
  180. package/src/packages/select/src/option-group.vue +60 -0
  181. package/src/packages/select/src/option.vue +168 -0
  182. package/src/packages/select/src/select-dropdown.vue +74 -0
  183. package/src/packages/select/src/select.vue +900 -0
  184. package/src/packages/skeleton/index.js +8 -0
  185. package/src/packages/skeleton/src/img-placeholder.vue +16 -0
  186. package/src/packages/skeleton/src/index.vue +76 -0
  187. package/src/packages/skeleton/src/item.vue +22 -0
  188. package/src/packages/skeleton-item/index.js +8 -0
  189. package/src/packages/slider/index.js +8 -0
  190. package/src/packages/slider/src/button.vue +238 -0
  191. package/src/packages/slider/src/main.vue +427 -0
  192. package/src/packages/slider/src/marker.js +18 -0
  193. package/src/packages/spinner/index.js +8 -0
  194. package/src/packages/spinner/src/spinner.vue +27 -0
  195. package/src/packages/statistic/index.js +8 -0
  196. package/src/packages/statistic/src/main.vue +204 -0
  197. package/src/packages/step/index.js +8 -0
  198. package/src/packages/steps/README.md +69 -0
  199. package/src/packages/steps/index.js +8 -0
  200. package/src/packages/steps/src/step.vue +184 -0
  201. package/src/packages/steps/src/steps.vue +68 -0
  202. package/src/packages/submenu/index.js +8 -0
  203. package/src/packages/switch/index.js +9 -0
  204. package/src/packages/switch/src/component.vue +174 -0
  205. package/src/packages/tab-pane/index.js +8 -0
  206. package/src/packages/table/index.js +8 -0
  207. package/src/packages/table/src/config.js +124 -0
  208. package/src/packages/table/src/dropdown.js +28 -0
  209. package/src/packages/table/src/filter-panel.vue +194 -0
  210. package/src/packages/table/src/layout-observer.js +68 -0
  211. package/src/packages/table/src/store/current.js +76 -0
  212. package/src/packages/table/src/store/expand.js +65 -0
  213. package/src/packages/table/src/store/helper.js +41 -0
  214. package/src/packages/table/src/store/index.js +147 -0
  215. package/src/packages/table/src/store/tree.js +209 -0
  216. package/src/packages/table/src/store/watcher.js +381 -0
  217. package/src/packages/table/src/table-body.js +469 -0
  218. package/src/packages/table/src/table-column.js +319 -0
  219. package/src/packages/table/src/table-footer.js +153 -0
  220. package/src/packages/table/src/table-header.js +511 -0
  221. package/src/packages/table/src/table-layout.js +249 -0
  222. package/src/packages/table/src/table-row.js +101 -0
  223. package/src/packages/table/src/table.vue +712 -0
  224. package/src/packages/table/src/util.js +273 -0
  225. package/src/packages/table-column/index.js +8 -0
  226. package/src/packages/tabs/index.js +8 -0
  227. package/src/packages/tabs/src/tab-bar.vue +57 -0
  228. package/src/packages/tabs/src/tab-nav.vue +294 -0
  229. package/src/packages/tabs/src/tab-pane.vue +56 -0
  230. package/src/packages/tabs/src/tabs.vue +191 -0
  231. package/src/packages/tag/index.js +8 -0
  232. package/src/packages/tag/src/tag.vue +58 -0
  233. package/src/packages/theme-chalk/README.md +33 -0
  234. package/src/packages/theme-chalk/gulpfile.js +25 -0
  235. package/src/packages/theme-chalk/package.json +35 -0
  236. package/src/packages/theme-chalk/src/alert.scss +147 -0
  237. package/src/packages/theme-chalk/src/aside.scss +7 -0
  238. package/src/packages/theme-chalk/src/autocomplete.scss +80 -0
  239. package/src/packages/theme-chalk/src/avatar.scss +51 -0
  240. package/src/packages/theme-chalk/src/backtop.scss +22 -0
  241. package/src/packages/theme-chalk/src/badge.scss +57 -0
  242. package/src/packages/theme-chalk/src/base.scss +2 -0
  243. package/src/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  244. package/src/packages/theme-chalk/src/breadcrumb.scss +55 -0
  245. package/src/packages/theme-chalk/src/button-group.scss +0 -0
  246. package/src/packages/theme-chalk/src/button.scss +262 -0
  247. package/src/packages/theme-chalk/src/calendar.scss +79 -0
  248. package/src/packages/theme-chalk/src/card.scss +32 -0
  249. package/src/packages/theme-chalk/src/carousel-item.scss +50 -0
  250. package/src/packages/theme-chalk/src/carousel.scss +161 -0
  251. package/src/packages/theme-chalk/src/cascader-panel.scss +120 -0
  252. package/src/packages/theme-chalk/src/cascader.scss +182 -0
  253. package/src/packages/theme-chalk/src/checkbox-button.scss +0 -0
  254. package/src/packages/theme-chalk/src/checkbox-group.scss +0 -0
  255. package/src/packages/theme-chalk/src/checkbox.scss +359 -0
  256. package/src/packages/theme-chalk/src/col.scss +156 -0
  257. package/src/packages/theme-chalk/src/collapse-item.scss +0 -0
  258. package/src/packages/theme-chalk/src/collapse.scss +63 -0
  259. package/src/packages/theme-chalk/src/color-picker.scss +384 -0
  260. package/src/packages/theme-chalk/src/common/popup.scss +42 -0
  261. package/src/packages/theme-chalk/src/common/transition.scss +99 -0
  262. package/src/packages/theme-chalk/src/common/var.scss +1028 -0
  263. package/src/packages/theme-chalk/src/container.scss +14 -0
  264. package/src/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  265. package/src/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  266. package/src/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  267. package/src/packages/theme-chalk/src/date-picker/month-table.scss +82 -0
  268. package/src/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  269. package/src/packages/theme-chalk/src/date-picker/picker.scss +197 -0
  270. package/src/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  271. package/src/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  272. package/src/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  273. package/src/packages/theme-chalk/src/date-picker/year-table.scss +51 -0
  274. package/src/packages/theme-chalk/src/date-picker.scss +12 -0
  275. package/src/packages/theme-chalk/src/descriptions-item.scss +42 -0
  276. package/src/packages/theme-chalk/src/descriptions.scss +111 -0
  277. package/src/packages/theme-chalk/src/dialog.scss +123 -0
  278. package/src/packages/theme-chalk/src/display.scss +12 -0
  279. package/src/packages/theme-chalk/src/divider.scss +47 -0
  280. package/src/packages/theme-chalk/src/drawer.scss +219 -0
  281. package/src/packages/theme-chalk/src/dropdown-item.scss +0 -0
  282. package/src/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  283. package/src/packages/theme-chalk/src/dropdown.scss +182 -0
  284. package/src/packages/theme-chalk/src/empty.scss +45 -0
  285. package/src/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
  286. package/src/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
  287. package/src/packages/theme-chalk/src/footer.scss +8 -0
  288. package/src/packages/theme-chalk/src/form-item.scss +0 -0
  289. package/src/packages/theme-chalk/src/form.scss +167 -0
  290. package/src/packages/theme-chalk/src/header.scss +8 -0
  291. package/src/packages/theme-chalk/src/icon.scss +1167 -0
  292. package/src/packages/theme-chalk/src/image.scss +179 -0
  293. package/src/packages/theme-chalk/src/index.scss +87 -0
  294. package/src/packages/theme-chalk/src/infinite-scroll.scss +0 -0
  295. package/src/packages/theme-chalk/src/infiniteScroll.scss +0 -0
  296. package/src/packages/theme-chalk/src/input-number.scss +180 -0
  297. package/src/packages/theme-chalk/src/input.scss +360 -0
  298. package/src/packages/theme-chalk/src/link.scss +81 -0
  299. package/src/packages/theme-chalk/src/loading.scss +96 -0
  300. package/src/packages/theme-chalk/src/main.scss +12 -0
  301. package/src/packages/theme-chalk/src/menu-item-group.scss +0 -0
  302. package/src/packages/theme-chalk/src/menu-item.scss +0 -0
  303. package/src/packages/theme-chalk/src/menu.scss +289 -0
  304. package/src/packages/theme-chalk/src/message-box.scss +226 -0
  305. package/src/packages/theme-chalk/src/message.scss +120 -0
  306. package/src/packages/theme-chalk/src/mixins/_button.scss +81 -0
  307. package/src/packages/theme-chalk/src/mixins/config.scss +4 -0
  308. package/src/packages/theme-chalk/src/mixins/function.scss +44 -0
  309. package/src/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  310. package/src/packages/theme-chalk/src/mixins/utils.scss +39 -0
  311. package/src/packages/theme-chalk/src/notification.scss +99 -0
  312. package/src/packages/theme-chalk/src/option-group.scss +42 -0
  313. package/src/packages/theme-chalk/src/option.scss +36 -0
  314. package/src/packages/theme-chalk/src/page-header.scss +41 -0
  315. package/src/packages/theme-chalk/src/pagination.scss +295 -0
  316. package/src/packages/theme-chalk/src/popconfirm.scss +16 -0
  317. package/src/packages/theme-chalk/src/popover.scss +40 -0
  318. package/src/packages/theme-chalk/src/popper.scss +101 -0
  319. package/src/packages/theme-chalk/src/progress.scss +141 -0
  320. package/src/packages/theme-chalk/src/radio-button.scss +113 -0
  321. package/src/packages/theme-chalk/src/radio-group.scss +9 -0
  322. package/src/packages/theme-chalk/src/radio.scss +199 -0
  323. package/src/packages/theme-chalk/src/rate.scss +49 -0
  324. package/src/packages/theme-chalk/src/reset.scss +79 -0
  325. package/src/packages/theme-chalk/src/result.scss +61 -0
  326. package/src/packages/theme-chalk/src/row.scss +43 -0
  327. package/src/packages/theme-chalk/src/scrollbar.scss +72 -0
  328. package/src/packages/theme-chalk/src/select-dropdown.scss +62 -0
  329. package/src/packages/theme-chalk/src/select.scss +152 -0
  330. package/src/packages/theme-chalk/src/skeleton-item.scss +84 -0
  331. package/src/packages/theme-chalk/src/skeleton.scss +40 -0
  332. package/src/packages/theme-chalk/src/slider.scss +250 -0
  333. package/src/packages/theme-chalk/src/spinner.scss +44 -0
  334. package/src/packages/theme-chalk/src/statistic.scss +38 -0
  335. package/src/packages/theme-chalk/src/step.scss +317 -0
  336. package/src/packages/theme-chalk/src/steps.scss +20 -0
  337. package/src/packages/theme-chalk/src/submenu.scss +0 -0
  338. package/src/packages/theme-chalk/src/switch.scss +116 -0
  339. package/src/packages/theme-chalk/src/tab-pane.scss +0 -0
  340. package/src/packages/theme-chalk/src/table-column.scss +97 -0
  341. package/src/packages/theme-chalk/src/table.scss +564 -0
  342. package/src/packages/theme-chalk/src/tabs.scss +602 -0
  343. package/src/packages/theme-chalk/src/tag.scss +163 -0
  344. package/src/packages/theme-chalk/src/time-picker.scss +8 -0
  345. package/src/packages/theme-chalk/src/time-select.scss +37 -0
  346. package/src/packages/theme-chalk/src/timeline-item.scss +86 -0
  347. package/src/packages/theme-chalk/src/timeline.scss +14 -0
  348. package/src/packages/theme-chalk/src/tooltip.scss +141 -0
  349. package/src/packages/theme-chalk/src/transfer.scss +227 -0
  350. package/src/packages/theme-chalk/src/tree.scss +123 -0
  351. package/src/packages/theme-chalk/src/upload.scss +603 -0
  352. package/src/packages/time-picker/index.js +8 -0
  353. package/src/packages/time-select/index.js +8 -0
  354. package/src/packages/timeline/index.js +8 -0
  355. package/src/packages/timeline/src/item.vue +73 -0
  356. package/src/packages/timeline/src/main.vue +33 -0
  357. package/src/packages/timeline-item/index.js +8 -0
  358. package/src/packages/tooltip/index.js +8 -0
  359. package/src/packages/tooltip/src/main.js +242 -0
  360. package/src/packages/transfer/index.js +8 -0
  361. package/src/packages/transfer/src/main.vue +231 -0
  362. package/src/packages/transfer/src/transfer-panel.vue +251 -0
  363. package/src/packages/tree/index.js +8 -0
  364. package/src/packages/tree/src/model/node.js +484 -0
  365. package/src/packages/tree/src/model/tree-store.js +340 -0
  366. package/src/packages/tree/src/model/util.js +27 -0
  367. package/src/packages/tree/src/tree-node.vue +279 -0
  368. package/src/packages/tree/src/tree.vue +496 -0
  369. package/src/packages/upload/index.js +8 -0
  370. package/src/packages/upload/src/ajax.js +85 -0
  371. package/src/packages/upload/src/index.vue +338 -0
  372. package/src/packages/upload/src/upload-dragger.vue +70 -0
  373. package/src/packages/upload/src/upload-list.vue +105 -0
  374. package/src/packages/upload/src/upload.vue +211 -0
  375. package/src/src/directives/mousewheel.js +18 -0
  376. package/src/src/directives/repeat-click.js +26 -0
  377. package/src/src/index.js +309 -0
  378. package/src/src/locale/format.js +46 -0
  379. package/src/src/locale/index.js +48 -0
  380. package/src/src/locale/lang/af-ZA.js +123 -0
  381. package/src/src/locale/lang/ar.js +122 -0
  382. package/src/src/locale/lang/az.js +126 -0
  383. package/src/src/locale/lang/bg.js +123 -0
  384. package/src/src/locale/lang/bn.js +126 -0
  385. package/src/src/locale/lang/ca.js +122 -0
  386. package/src/src/locale/lang/cs-CZ.js +125 -0
  387. package/src/src/locale/lang/da.js +122 -0
  388. package/src/src/locale/lang/de.js +124 -0
  389. package/src/src/locale/lang/ee.js +123 -0
  390. package/src/src/locale/lang/el.js +123 -0
  391. package/src/src/locale/lang/en.js +123 -0
  392. package/src/src/locale/lang/eo.js +123 -0
  393. package/src/src/locale/lang/es.js +122 -0
  394. package/src/src/locale/lang/eu.js +123 -0
  395. package/src/src/locale/lang/fa.js +123 -0
  396. package/src/src/locale/lang/fi.js +123 -0
  397. package/src/src/locale/lang/fr.js +122 -0
  398. package/src/src/locale/lang/he.js +123 -0
  399. package/src/src/locale/lang/hr.js +123 -0
  400. package/src/src/locale/lang/hu.js +122 -0
  401. package/src/src/locale/lang/hy-AM.js +123 -0
  402. package/src/src/locale/lang/id.js +123 -0
  403. package/src/src/locale/lang/is.js +124 -0
  404. package/src/src/locale/lang/it.js +122 -0
  405. package/src/src/locale/lang/ja.js +123 -0
  406. package/src/src/locale/lang/kg.js +123 -0
  407. package/src/src/locale/lang/km.js +123 -0
  408. package/src/src/locale/lang/ko.js +123 -0
  409. package/src/src/locale/lang/ku.js +123 -0
  410. package/src/src/locale/lang/kz.js +123 -0
  411. package/src/src/locale/lang/lo-LA.js +126 -0
  412. package/src/src/locale/lang/lt.js +123 -0
  413. package/src/src/locale/lang/lv.js +123 -0
  414. package/src/src/locale/lang/mn.js +123 -0
  415. package/src/src/locale/lang/ms.js +122 -0
  416. package/src/src/locale/lang/nb-NO.js +122 -0
  417. package/src/src/locale/lang/nl.js +123 -0
  418. package/src/src/locale/lang/pl.js +123 -0
  419. package/src/src/locale/lang/pt-br.js +123 -0
  420. package/src/src/locale/lang/pt.js +123 -0
  421. package/src/src/locale/lang/ro.js +123 -0
  422. package/src/src/locale/lang/ru-RU.js +123 -0
  423. package/src/src/locale/lang/si.js +123 -0
  424. package/src/src/locale/lang/sk.js +125 -0
  425. package/src/src/locale/lang/sl.js +123 -0
  426. package/src/src/locale/lang/sr-Latn.js +123 -0
  427. package/src/src/locale/lang/sr.js +123 -0
  428. package/src/src/locale/lang/sv-SE.js +123 -0
  429. package/src/src/locale/lang/sw.js +123 -0
  430. package/src/src/locale/lang/ta.js +122 -0
  431. package/src/src/locale/lang/th.js +123 -0
  432. package/src/src/locale/lang/tk.js +123 -0
  433. package/src/src/locale/lang/tr-TR.js +123 -0
  434. package/src/src/locale/lang/ua.js +123 -0
  435. package/src/src/locale/lang/ug-CN.js +123 -0
  436. package/src/src/locale/lang/uz-UZ.js +123 -0
  437. package/src/src/locale/lang/vi.js +123 -0
  438. package/src/src/locale/lang/zh-CN.js +123 -0
  439. package/src/src/locale/lang/zh-TW.js +123 -0
  440. package/src/src/mixins/emitter.js +33 -0
  441. package/src/src/mixins/focus.js +9 -0
  442. package/src/src/mixins/locale.js +9 -0
  443. package/src/src/mixins/migrating.js +54 -0
  444. package/src/src/transitions/collapse-transition.js +77 -0
  445. package/src/src/utils/after-leave.js +27 -0
  446. package/src/src/utils/aria-dialog.js +90 -0
  447. package/src/src/utils/aria-utils.js +122 -0
  448. package/src/src/utils/clickoutside.js +76 -0
  449. package/src/src/utils/date-util.js +282 -0
  450. package/src/src/utils/date.js +368 -0
  451. package/src/src/utils/dom.js +227 -0
  452. package/src/src/utils/lodash.js +18075 -0
  453. package/src/src/utils/menu/aria-menubar.js +14 -0
  454. package/src/src/utils/menu/aria-menuitem.js +49 -0
  455. package/src/src/utils/menu/aria-submenu.js +59 -0
  456. package/src/src/utils/merge.js +15 -0
  457. package/src/src/utils/popper.js +1276 -0
  458. package/src/src/utils/popup/index.js +218 -0
  459. package/src/src/utils/popup/popup-manager.js +194 -0
  460. package/src/src/utils/resize-event.js +36 -0
  461. package/src/src/utils/scroll-into-view.js +27 -0
  462. package/src/src/utils/scrollbar-width.js +29 -0
  463. package/src/src/utils/shared.js +7 -0
  464. package/src/src/utils/types.js +40 -0
  465. package/src/src/utils/util.js +245 -0
  466. package/src/src/utils/vdom.js +5 -0
  467. package/src/src/utils/vue-popper.js +198 -0
  468. package/src//346/226/260/345/273/272 /346/226/207/346/234/254/346/226/207/346/241/243.txt" +131 -0
  469. package/.postcssrc.js +0 -18
  470. package/asy.js +0 -32
  471. package/catch.js +0 -176
  472. package/queue.js +0 -125
  473. package/ske.txt +0 -76
@@ -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,25 @@
1
+ 'use strict';
2
+
3
+ const { series, src, dest } = require('gulp');
4
+ const sass = require('gulp-sass');
5
+ const autoprefixer = require('gulp-autoprefixer');
6
+ const cssmin = require('gulp-cssmin');
7
+
8
+ function compile() {
9
+ return src('./src/*.scss')
10
+ .pipe(sass.sync())
11
+ .pipe(autoprefixer({
12
+ browsers: ['ie > 9', 'last 2 versions'],
13
+ cascade: false
14
+ }))
15
+ .pipe(cssmin())
16
+ .pipe(dest('./lib'));
17
+ }
18
+
19
+ function copyfont() {
20
+ return src('./src/fonts/**')
21
+ .pipe(cssmin())
22
+ .pipe(dest('./lib/fonts'));
23
+ }
24
+
25
+ exports.build = series(compile, copyfont);
@@ -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
+ }