vft 0.0.73 → 0.0.76

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 (369) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +67 -48
  4. package/es/components/affix/affix.js +45 -0
  5. package/es/components/affix/affix.vue.js +4 -0
  6. package/es/components/affix/affix.vue2.js +83 -0
  7. package/es/components/affix/index.js +12 -0
  8. package/es/components/affix/style/css.js +2 -0
  9. package/es/components/affix/style/index.js +2 -0
  10. package/es/components/back-top/back-top.vue2.js +10 -2
  11. package/es/components/button/button.vue2.js +58 -59
  12. package/es/components/button/use-button.js +26 -20
  13. package/es/components/card/card.vue.js +4 -0
  14. package/es/components/card/card.vue2.js +44 -0
  15. package/es/components/card/index.js +12 -0
  16. package/es/components/card/instance.js +1 -0
  17. package/es/components/card/style/css.js +2 -0
  18. package/es/components/card/style/index.js +2 -0
  19. package/es/components/check-tag/check-tag.vue.js +4 -0
  20. package/es/components/check-tag/check-tag.vue2.js +35 -0
  21. package/es/components/check-tag/index.js +12 -0
  22. package/es/components/check-tag/style/css.js +2 -0
  23. package/es/components/check-tag/style/index.js +2 -0
  24. package/es/components/color-picker/color-picker.vue2.js +1 -1
  25. package/es/components/context-menu/context-menu.vue2.js +10 -2
  26. package/es/components/date-picker/composables/use-month-range-header.js +1 -1
  27. package/es/components/date-picker/constants.js +16 -2
  28. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +37 -34
  29. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +0 -1
  30. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +177 -178
  31. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +328 -336
  32. package/es/components/date-picker/date-picker.js +18 -18
  33. package/es/components/date-picker/index.js +5 -4
  34. package/es/components/date-picker/props/shared.js +1 -1
  35. package/es/components/date-time-select/date-time-select.vue2.js +59 -59
  36. package/es/components/dialog/dialog.vue2.js +12 -12
  37. package/es/components/dialog/hooks/use-dialog.js +4 -4
  38. package/es/components/dropdown/dropdown-menu.vue2.js +4 -4
  39. package/es/components/footer-layout/footer-layout.vue2.js +10 -2
  40. package/es/components/header-layout/header-layout.vue2.js +10 -2
  41. package/es/components/horizontal-menu/constants.js +4 -0
  42. package/es/components/horizontal-menu/horizontal-menu.vue2.js +153 -86
  43. package/es/components/horizontal-menu/index.js +7 -5
  44. package/es/components/index.js +228 -194
  45. package/es/components/md-container/md-container.vue2.js +10 -2
  46. package/es/components/menu/menu-item.vue2.js +58 -58
  47. package/es/components/menu/menu.vue2.js +72 -68
  48. package/es/components/menu/sub-menu.vue2.js +139 -117
  49. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
  50. package/es/components/option/style/css.js +2 -0
  51. package/es/components/option/style/index.js +2 -0
  52. package/es/components/option-group/style/css.js +2 -0
  53. package/es/components/option-group/style/index.js +2 -0
  54. package/es/components/popconfirm/index.js +12 -0
  55. package/es/components/popconfirm/popconfirm.vue.js +4 -0
  56. package/es/components/popconfirm/popconfirm.vue2.js +112 -0
  57. package/es/components/popconfirm/style/css.js +6 -0
  58. package/es/components/popconfirm/style/index.js +6 -0
  59. package/es/components/popover/style/index.js +1 -1
  60. package/es/components/result/result.vue2.js +10 -2
  61. package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
  62. package/es/components/search/style/css.js +2 -0
  63. package/es/components/search/style/index.js +2 -0
  64. package/es/components/select/index.js +22 -0
  65. package/es/components/select/option-group.vue.js +25 -0
  66. package/es/components/select/option-group.vue2.js +53 -0
  67. package/es/components/select/option.vue.js +27 -0
  68. package/es/components/select/option.vue2.js +58 -0
  69. package/es/components/select/options.js +34 -0
  70. package/es/components/select/select-dropdown.vue.js +15 -0
  71. package/es/components/select/select-dropdown.vue2.js +32 -0
  72. package/es/components/select/select.vue.js +327 -0
  73. package/es/components/select/select.vue2.js +348 -0
  74. package/es/components/select/style/css.js +8 -0
  75. package/es/components/select/style/index.js +8 -0
  76. package/es/components/select/token.js +5 -0
  77. package/es/components/select/useOption.js +71 -0
  78. package/es/components/select/useSelect.js +414 -0
  79. package/es/components/select-v2/select-dropdown.js +1 -1
  80. package/es/components/select-v2/useSelect.js +269 -269
  81. package/es/components/side-menu/side-menu.vue2.js +153 -142
  82. package/es/components/skeleton/index.js +16 -0
  83. package/es/components/skeleton/skeleton-item.vue.js +4 -0
  84. package/es/components/skeleton/skeleton-item.vue2.js +31 -0
  85. package/es/components/skeleton/skeleton.vue.js +4 -0
  86. package/es/components/skeleton/skeleton.vue2.js +55 -0
  87. package/es/components/skeleton/style/css.js +3 -0
  88. package/es/components/skeleton/style/index.js +3 -0
  89. package/es/components/skeleton-item/style/css.js +2 -0
  90. package/es/components/skeleton-item/style/index.js +2 -0
  91. package/es/components/space/index.js +17 -0
  92. package/es/components/space/item.js +24 -0
  93. package/es/components/space/space.js +182 -0
  94. package/es/components/space/style/css.js +2 -0
  95. package/es/components/space/style/index.js +2 -0
  96. package/es/components/space/use-space.js +44 -0
  97. package/es/components/switch/switch.vue2.js +1 -1
  98. package/es/components/tabs/tab-nav.vue2.js +30 -22
  99. package/es/components/tabs/tabs.vue2.js +37 -37
  100. package/es/components/time-picker/common/picker.vue2.js +241 -257
  101. package/es/components/time-picker/common/props.js +10 -6
  102. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
  103. package/es/components/time-picker/time-picker.js +10 -10
  104. package/es/components/time-select/time-select.vue2.js +38 -42
  105. package/es/components/tooltip/content.vue2.js +1 -1
  106. package/es/components/tree/index.js +14 -0
  107. package/es/components/tree/model/node.js +248 -0
  108. package/es/components/tree/model/tree-store.js +197 -0
  109. package/es/components/tree/model/useDragNode.js +71 -0
  110. package/es/components/tree/model/useKeydown.js +81 -0
  111. package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
  112. package/es/components/tree/model/util.js +21 -0
  113. package/es/components/tree/style/css.js +3 -0
  114. package/es/components/tree/style/index.js +3 -0
  115. package/es/components/tree/tree-node-content.vue.js +4 -0
  116. package/es/components/tree/tree-node-content.vue2.js +28 -0
  117. package/es/components/tree/tree-node.vue.js +98 -0
  118. package/es/components/tree/tree-node.vue2.js +152 -0
  119. package/es/components/tree/tree.type.js +1 -0
  120. package/es/components/tree/tree.vue.js +48 -0
  121. package/es/components/tree/tree.vue2.js +268 -0
  122. package/es/components/tree-select/cache-options.js +32 -0
  123. package/es/components/tree-select/index.js +9 -0
  124. package/es/components/tree-select/select.js +38 -0
  125. package/es/components/tree-select/style/css.js +11 -0
  126. package/es/components/tree-select/style/index.js +11 -0
  127. package/es/components/tree-select/tree-select-option.js +21 -0
  128. package/es/components/tree-select/tree-select.vue.js +4 -0
  129. package/es/components/tree-select/tree-select.vue2.js +81 -0
  130. package/es/components/tree-select/tree.js +137 -0
  131. package/es/components/tree-select/utils.js +45 -0
  132. package/es/hooks/index.js +25 -21
  133. package/es/hooks/use-focus/index.js +9 -0
  134. package/es/hooks/use-throttle-render/index.js +21 -0
  135. package/es/index.js +408 -368
  136. package/es/package.json.js +1 -1
  137. package/es/utils/helper.js +5 -2
  138. package/es/utils/index.js +48 -46
  139. package/lib/component.cjs +1 -1
  140. package/lib/components/affix/affix.cjs +1 -0
  141. package/lib/components/affix/affix.vue.cjs +1 -0
  142. package/lib/components/affix/affix.vue2.cjs +1 -0
  143. package/lib/components/affix/index.cjs +1 -0
  144. package/lib/components/affix/style/css.cjs +1 -0
  145. package/lib/components/affix/style/index.cjs +1 -0
  146. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  147. package/lib/components/button/button.vue2.cjs +1 -1
  148. package/lib/components/button/use-button.cjs +1 -1
  149. package/lib/components/card/card.vue.cjs +1 -0
  150. package/lib/components/card/card.vue2.cjs +1 -0
  151. package/lib/components/card/index.cjs +1 -0
  152. package/lib/components/card/instance.cjs +1 -0
  153. package/lib/components/card/style/css.cjs +1 -0
  154. package/lib/components/card/style/index.cjs +1 -0
  155. package/lib/components/check-tag/check-tag.vue.cjs +1 -0
  156. package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
  157. package/lib/components/check-tag/index.cjs +1 -0
  158. package/lib/components/check-tag/style/css.cjs +1 -0
  159. package/lib/components/check-tag/style/index.cjs +1 -0
  160. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  161. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  162. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  163. package/lib/components/date-picker/constants.cjs +1 -1
  164. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  165. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  166. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  167. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  168. package/lib/components/date-picker/date-picker.cjs +1 -1
  169. package/lib/components/date-picker/index.cjs +1 -1
  170. package/lib/components/date-picker/props/shared.cjs +1 -1
  171. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  172. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  173. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  174. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  175. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  176. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  177. package/lib/components/horizontal-menu/constants.cjs +1 -0
  178. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  179. package/lib/components/horizontal-menu/index.cjs +1 -1
  180. package/lib/components/index.cjs +1 -1
  181. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  182. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  183. package/lib/components/menu/menu.vue2.cjs +1 -1
  184. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  185. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  186. package/lib/components/option/style/css.cjs +1 -0
  187. package/lib/components/option/style/index.cjs +1 -0
  188. package/lib/components/option-group/style/css.cjs +1 -0
  189. package/lib/components/option-group/style/index.cjs +1 -0
  190. package/lib/components/popconfirm/index.cjs +1 -0
  191. package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
  192. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
  193. package/lib/components/popconfirm/style/css.cjs +1 -0
  194. package/lib/components/popconfirm/style/index.cjs +1 -0
  195. package/lib/components/popover/style/index.cjs +1 -1
  196. package/lib/components/result/result.vue2.cjs +1 -1
  197. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  198. package/lib/components/search/style/css.cjs +1 -1
  199. package/lib/components/search/style/index.cjs +1 -1
  200. package/lib/components/select/index.cjs +1 -0
  201. package/lib/components/select/option-group.vue.cjs +1 -0
  202. package/lib/components/select/option-group.vue2.cjs +1 -0
  203. package/lib/components/select/option.vue.cjs +1 -0
  204. package/lib/components/select/option.vue2.cjs +1 -0
  205. package/lib/components/select/options.cjs +1 -0
  206. package/lib/components/select/select-dropdown.vue.cjs +1 -0
  207. package/lib/components/select/select-dropdown.vue2.cjs +1 -0
  208. package/lib/components/select/select.vue.cjs +1 -0
  209. package/lib/components/select/select.vue2.cjs +1 -0
  210. package/lib/components/select/style/css.cjs +1 -0
  211. package/lib/components/select/style/index.cjs +1 -0
  212. package/lib/components/select/token.cjs +1 -0
  213. package/lib/components/select/useOption.cjs +1 -0
  214. package/lib/components/select/useSelect.cjs +1 -0
  215. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  216. package/lib/components/select-v2/useSelect.cjs +1 -1
  217. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  218. package/lib/components/skeleton/index.cjs +1 -0
  219. package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
  220. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
  221. package/lib/components/skeleton/skeleton.vue.cjs +1 -0
  222. package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
  223. package/lib/components/skeleton/style/css.cjs +1 -0
  224. package/lib/components/skeleton/style/index.cjs +1 -0
  225. package/lib/components/skeleton-item/style/css.cjs +1 -0
  226. package/lib/components/skeleton-item/style/index.cjs +1 -0
  227. package/lib/components/space/index.cjs +1 -0
  228. package/lib/components/space/item.cjs +1 -0
  229. package/lib/components/space/space.cjs +1 -0
  230. package/lib/components/space/style/css.cjs +1 -0
  231. package/lib/components/space/style/index.cjs +1 -0
  232. package/lib/components/space/use-space.cjs +1 -0
  233. package/lib/components/switch/switch.vue2.cjs +1 -1
  234. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  235. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  236. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  237. package/lib/components/time-picker/common/props.cjs +1 -1
  238. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  239. package/lib/components/time-picker/time-picker.cjs +1 -1
  240. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  241. package/lib/components/tooltip/content.vue2.cjs +1 -1
  242. package/lib/components/tree/index.cjs +1 -0
  243. package/lib/components/tree/model/node.cjs +1 -0
  244. package/lib/components/tree/model/tree-store.cjs +1 -0
  245. package/lib/components/tree/model/useDragNode.cjs +1 -0
  246. package/lib/components/tree/model/useKeydown.cjs +1 -0
  247. package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
  248. package/lib/components/tree/model/util.cjs +1 -0
  249. package/lib/components/tree/style/css.cjs +1 -0
  250. package/lib/components/tree/style/index.cjs +1 -0
  251. package/lib/components/tree/tree-node-content.vue.cjs +1 -0
  252. package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
  253. package/lib/components/tree/tree-node.vue.cjs +1 -0
  254. package/lib/components/tree/tree-node.vue2.cjs +1 -0
  255. package/lib/components/tree/tree.type.cjs +1 -0
  256. package/lib/components/tree/tree.vue.cjs +1 -0
  257. package/lib/components/tree/tree.vue2.cjs +1 -0
  258. package/lib/components/tree-select/cache-options.cjs +1 -0
  259. package/lib/components/tree-select/index.cjs +1 -0
  260. package/lib/components/tree-select/select.cjs +1 -0
  261. package/lib/components/tree-select/style/css.cjs +1 -0
  262. package/lib/components/tree-select/style/index.cjs +1 -0
  263. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  264. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  265. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  266. package/lib/components/tree-select/tree.cjs +1 -0
  267. package/lib/components/tree-select/utils.cjs +1 -0
  268. package/lib/hooks/index.cjs +1 -1
  269. package/lib/hooks/use-focus/index.cjs +1 -0
  270. package/lib/hooks/use-throttle-render/index.cjs +1 -0
  271. package/lib/index.cjs +1 -1
  272. package/lib/package.json.cjs +1 -1
  273. package/lib/utils/helper.cjs +1 -1
  274. package/lib/utils/index.cjs +1 -1
  275. package/package.json +1 -1
  276. package/tags.json +1 -1
  277. package/theme-style/base.css +1 -1
  278. package/theme-style/index.css +1 -1
  279. package/theme-style/src/alert.scss +1 -1
  280. package/theme-style/src/autocomplete.scss +2 -2
  281. package/theme-style/src/breadcrumb.scss +4 -4
  282. package/theme-style/src/calendar.scss +2 -2
  283. package/theme-style/src/card.scss +1 -1
  284. package/theme-style/src/carousel.scss +1 -1
  285. package/theme-style/src/cascader.scss +3 -3
  286. package/theme-style/src/check-tag.scss +3 -3
  287. package/theme-style/src/checkbox.scss +1 -1
  288. package/theme-style/src/color-picker.scss +2 -2
  289. package/theme-style/src/common/var.scss +527 -521
  290. package/theme-style/src/date-picker/date-picker.scss +1 -1
  291. package/theme-style/src/date-picker/date-range-picker.scss +2 -2
  292. package/theme-style/src/date-picker/date-table.scss +1 -1
  293. package/theme-style/src/date-picker/month-table.scss +2 -2
  294. package/theme-style/src/date-picker/picker-panel.scss +4 -5
  295. package/theme-style/src/date-picker/picker.scss +7 -9
  296. package/theme-style/src/date-picker/time-picker.scss +2 -2
  297. package/theme-style/src/date-picker/time-spinner.scss +6 -8
  298. package/theme-style/src/date-picker/year-table.scss +3 -3
  299. package/theme-style/src/date-time-select.scss +3 -4
  300. package/theme-style/src/descriptions-item.scss +4 -4
  301. package/theme-style/src/descriptions.scss +2 -2
  302. package/theme-style/src/header-layout.scss +1 -1
  303. package/theme-style/src/horizontal-menu.scss +27 -39
  304. package/theme-style/src/image-viewer.scss +1 -1
  305. package/theme-style/src/index.scss +3 -0
  306. package/theme-style/src/input-number.scss +1 -1
  307. package/theme-style/src/menu.scss +76 -66
  308. package/theme-style/src/mixins/_var.scss +2 -2
  309. package/theme-style/src/mixins/mixins.scss +2 -2
  310. package/theme-style/src/popconfirm.scss +16 -0
  311. package/theme-style/src/popper.scss +4 -2
  312. package/theme-style/src/progress.scss +1 -1
  313. package/theme-style/src/reset.scss +3 -3
  314. package/theme-style/src/result.scss +2 -2
  315. package/theme-style/src/select-dropdown-v2.scss +1 -1
  316. package/theme-style/src/select-dropdown.scss +1 -1
  317. package/theme-style/src/select-v2.scss +2 -2
  318. package/theme-style/src/select.scss +4 -5
  319. package/theme-style/src/side-menu.scss +0 -1
  320. package/theme-style/src/skeleton-item.scss +83 -0
  321. package/theme-style/src/skeleton.scss +44 -0
  322. package/theme-style/src/step.scss +10 -10
  323. package/theme-style/src/tabs.scss +15 -155
  324. package/theme-style/src/timeline-item.scss +2 -2
  325. package/theme-style/src/transfer.scss +5 -5
  326. package/theme-style/src/tree.scss +2 -5
  327. package/theme-style/src/upload.scss +11 -11
  328. package/theme-style/src/var.scss +1 -1
  329. package/theme-style/vft-alert.css +1 -1
  330. package/theme-style/vft-autocomplete.css +1 -1
  331. package/theme-style/vft-breadcrumb.css +1 -1
  332. package/theme-style/vft-calendar.css +1 -1
  333. package/theme-style/vft-card.css +1 -1
  334. package/theme-style/vft-carousel.css +1 -1
  335. package/theme-style/vft-cascader.css +1 -1
  336. package/theme-style/vft-check-tag.css +1 -1
  337. package/theme-style/vft-checkbox.css +1 -1
  338. package/theme-style/vft-color-picker.css +1 -1
  339. package/theme-style/vft-date-picker.css +1 -1
  340. package/theme-style/vft-date-time-select.css +1 -1
  341. package/theme-style/vft-descriptions-item.css +1 -1
  342. package/theme-style/vft-descriptions.css +1 -1
  343. package/theme-style/vft-header-layout.css +1 -1
  344. package/theme-style/vft-horizontal-menu.css +1 -1
  345. package/theme-style/vft-image-viewer.css +1 -1
  346. package/theme-style/vft-input-number.css +1 -1
  347. package/theme-style/vft-menu.css +1 -1
  348. package/theme-style/vft-popconfirm.css +1 -0
  349. package/theme-style/vft-popper.css +1 -1
  350. package/theme-style/vft-progress.css +1 -1
  351. package/theme-style/vft-reset.css +1 -1
  352. package/theme-style/vft-result.css +1 -1
  353. package/theme-style/vft-select-dropdown-v2.css +1 -1
  354. package/theme-style/vft-select-dropdown.css +1 -1
  355. package/theme-style/vft-select-v2.css +1 -1
  356. package/theme-style/vft-select.css +1 -1
  357. package/theme-style/vft-side-menu.css +1 -1
  358. package/theme-style/vft-skeleton-item.css +1 -0
  359. package/theme-style/vft-skeleton.css +1 -0
  360. package/theme-style/vft-step.css +1 -1
  361. package/theme-style/vft-tabs.css +1 -1
  362. package/theme-style/vft-time-picker.css +1 -1
  363. package/theme-style/vft-time-select.css +1 -1
  364. package/theme-style/vft-timeline-item.css +1 -1
  365. package/theme-style/vft-transfer.css +1 -1
  366. package/theme-style/vft-tree.css +1 -1
  367. package/theme-style/vft-upload.css +1 -1
  368. package/theme-style/vft-var.css +1 -1
  369. package/web-types.json +1 -1
@@ -9,29 +9,29 @@ $types: primary, success, warning, danger, error, info;
9
9
  // Color
10
10
  $colors: () !default;
11
11
  $colors: map.deep-merge(
12
- (
13
- "white": #fff,
14
- "black": #000,
15
- "primary": (
16
- "base": #2196f3,
17
- ),
18
- "success": (
19
- "base": #3eaf7c,
20
- ),
21
- "warning": (
22
- "base": #fb9b5f,
23
- ),
24
- "danger": (
25
- "base": #f26d6d,
26
- ),
27
- "error": (
28
- "base": #f26d6d,
29
- ),
30
- "info": (
31
- "base": #909399,
12
+ (
13
+ "white": #fff,
14
+ "black": #000,
15
+ "primary": (
16
+ "base": #2196f3,
17
+ ),
18
+ "success": (
19
+ "base": #3eaf7c,
20
+ ),
21
+ "warning": (
22
+ "base": #fb9b5f,
23
+ ),
24
+ "danger": (
25
+ "base": #f26d6d,
26
+ ),
27
+ "error": (
28
+ "base": #f26d6d,
29
+ ),
30
+ "info": (
31
+ "base": #909399,
32
+ ),
32
33
  ),
33
- ),
34
- $colors
34
+ $colors
35
35
  );
36
36
 
37
37
  $color-white: map.get($colors, "white") !default;
@@ -51,17 +51,17 @@ $info-color: getCssVar("info-color") !default;
51
51
  $mix-color: $color-white
52
52
  ) {
53
53
  $colors: map.deep-merge(
54
- (
55
- $type: (
56
- "#{$mode}-#{$number}":
54
+ (
55
+ $type: (
56
+ "#{$mode}-#{$number}":
57
57
  mix(
58
- $mix-color,
59
- map.get($colors, $type, "base"),
60
- math.percentage(math.div($number, 10))
58
+ $mix-color,
59
+ map.get($colors, $type, "base"),
60
+ math.percentage(math.div($number, 10))
61
61
  ),
62
+ ),
62
63
  ),
63
- ),
64
- $colors
64
+ $colors
65
65
  ) !global;
66
66
  }
67
67
 
@@ -89,60 +89,60 @@ $info-color: getCssVar("info-color") !default;
89
89
 
90
90
  $text-color: () !default;
91
91
  $text-color: map.merge(
92
- (
93
- "primary-color": #303133,
94
- "regular-color": #606266,
95
- "secondary-color": #909399,
96
- "placeholder-color": #a8abb2,
97
- "disabled-color": #c0c4cc,
98
- ),
99
- $text-color
92
+ (
93
+ "primary-color": #303133,
94
+ "regular-color": #606266,
95
+ "secondary-color": #909399,
96
+ "placeholder-color": #a8abb2,
97
+ "disabled-color": #c0c4cc,
98
+ ),
99
+ $text-color
100
100
  );
101
101
 
102
102
  $text-color-dark: () !default;
103
103
  $text-color-dark: map.merge(
104
- (
105
- "primary-color": white,
106
- ),
107
- $text-color-dark
104
+ (
105
+ "primary-color": white,
106
+ ),
107
+ $text-color-dark
108
108
  );
109
109
 
110
110
  $border-color: () !default;
111
111
  $border-color: map.merge(
112
- (
113
- "": #dcdfe6,
114
- "light": #e4e7ed,
115
- "lighter": #ebeef5,
116
- "extra-light": #f2f6fc,
117
- "dark": #d4d7de,
118
- "darker": #cdd0d6,
119
- ),
120
- $border-color
112
+ (
113
+ "": #dcdfe6,
114
+ "light": #e4e7ed,
115
+ "lighter": #ebeef5,
116
+ "extra-light": #f2f6fc,
117
+ "dark": #d4d7de,
118
+ "darker": #cdd0d6,
119
+ ),
120
+ $border-color
121
121
  );
122
122
 
123
123
  $fill-color: () !default;
124
124
  $fill-color: map.merge(
125
- (
126
- "": #f0f2f5,
127
- "light": #f5f7fa,
128
- "lighter": #fafafa,
129
- "extra-light": #fafcff,
130
- "dark": #ebedf0,
131
- "darker": #e6e8eb,
132
- "blank": #fff,
133
- ),
134
- $fill-color
125
+ (
126
+ "": #f0f2f5,
127
+ "light": #f5f7fa,
128
+ "lighter": #fafafa,
129
+ "extra-light": #fafcff,
130
+ "dark": #ebedf0,
131
+ "darker": #e6e8eb,
132
+ "blank": #fff,
133
+ ),
134
+ $fill-color
135
135
  );
136
136
 
137
137
  // Background
138
138
  $bg-color: () !default;
139
139
  $bg-color: map.merge(
140
- (
141
- "": #fff,
142
- "page": #f2f3f5,
143
- "overlay": #fff,
144
- ),
145
- $bg-color
140
+ (
141
+ "": #fff,
142
+ "page": #f2f3f5,
143
+ "overlay": #fff,
144
+ ),
145
+ $bg-color
146
146
  );
147
147
 
148
148
  // Border
@@ -152,157 +152,151 @@ $border-color-hover: getCssVar("text", "disabled-color") !default;
152
152
 
153
153
  $border-radius: () !default;
154
154
  $border-radius: map.merge(
155
- (
156
- "base": 4px,
157
- "small": 2px,
158
- "round": 20px,
159
- "circle": 100%,
160
- ),
161
- $border-radius
155
+ (
156
+ "base": 4px,
157
+ "small": 2px,
158
+ "round": 20px,
159
+ "circle": 100%,
160
+ ),
161
+ $border-radius
162
162
  );
163
163
 
164
164
  // Box-shadow
165
165
  $box-shadow: () !default;
166
166
  $box-shadow: map.merge(
167
- (
168
- "": (
169
- 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
170
- 0px 8px 20px rgba(0, 0, 0, 0.08),
171
- ),
172
- "light": (
173
- 0px 0px 12px rgba(0, 0, 0, 0.12),
174
- ),
175
- "lighter": (
176
- 0px 0px 6px rgba(0, 0, 0, 0.12),
177
- ),
178
- "dark": (
179
- 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
180
- 0px 12px 32px rgba(0, 0, 0, 0.12),
181
- 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
167
+ (
168
+ "": (
169
+ 0px 12px 32px 4px rgba(0, 0, 0, 0.04),
170
+ 0px 8px 20px rgba(0, 0, 0, 0.08),
171
+ ),
172
+ "light": (
173
+ 0px 0px 12px rgba(0, 0, 0, 0.12),
174
+ ),
175
+ "lighter": (
176
+ 0px 0px 6px rgba(0, 0, 0, 0.12),
177
+ ),
178
+ "dark": (
179
+ 0px 16px 48px 16px rgba(0, 0, 0, 0.08),
180
+ 0px 12px 32px rgba(0, 0, 0, 0.12),
181
+ 0px 8px 16px -8px rgba(0, 0, 0, 0.16),
182
+ ),
182
183
  ),
183
- ),
184
- $box-shadow
184
+ $box-shadow
185
185
  );
186
186
 
187
187
  // Typography
188
188
  $font-family: () !default;
189
189
  $font-family: map.merge(
190
- (
191
- // default family
192
- "":
190
+ (
191
+ // default family
192
+ "":
193
193
  "'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif"
194
- ),
195
- $font-family
194
+ ),
195
+ $font-family
196
196
  );
197
197
 
198
198
  $font-size: () !default;
199
199
  $font-size: map.merge(
200
- (
201
- "extra-large": 20px,
202
- "large": 18px,
203
- "medium": 16px,
204
- "base": 14px,
205
- "small": 13px,
206
- "extra-small": 12px,
207
- ),
208
- $font-size
200
+ (
201
+ "extra-large": 20px,
202
+ "large": 18px,
203
+ "medium": 16px,
204
+ "base": 14px,
205
+ "small": 13px,
206
+ "extra-small": 12px,
207
+ ),
208
+ $font-size
209
209
  );
210
210
 
211
211
  // zIndex
212
212
  $z-index: () !default;
213
213
  $z-index: map.merge(
214
- (
215
- "normal": 1,
216
- "top": 1000,
217
- "popper": 2000,
218
- 'back-top': 3050
219
- ),
220
- $z-index
214
+ (
215
+ "normal": 1,
216
+ "top": 1000,
217
+ "popper": 2000,
218
+ 'back-top': 3050,
219
+ 'header-layout': 100
220
+ ),
221
+ $z-index
221
222
  );
222
223
 
223
224
  // Disable default
224
225
  $disabled: () !default;
225
226
  $disabled: map.merge(
226
- (
227
- "bg-color": getCssVar("fill-color", "light"),
228
- "text-color": getCssVar("text-color", "placeholder"),
229
- "border-color": getCssVar("border-color", "light"),
230
- ),
231
- $disabled
227
+ (
228
+ "bg-color": getCssVar("fill-color", "light"),
229
+ "text-color": getCssVar("text-color", "placeholder"),
230
+ "border-color": getCssVar("border-color", "light"),
231
+ ),
232
+ $disabled
232
233
  );
233
234
 
234
235
  $common-component-size: () !default;
235
236
  $common-component-size: map.merge(
236
- (
237
- "large": 40px,
238
- "default": 32px,
239
- "small": 24px,
240
- ),
241
- $common-component-size
237
+ (
238
+ "large": 40px,
239
+ "default": 32px,
240
+ "small": 24px,
241
+ ),
242
+ $common-component-size
242
243
  );
243
244
 
244
245
  // overlay
245
246
  $overlay-color: () !default;
246
247
  $overlay-color: map.merge(
247
- (
248
- "": rgba(0, 0, 0, 0.8),
249
- "light": rgba(0, 0, 0, 0.7),
250
- "lighter": rgba(0, 0, 0, 0.5),
251
- ),
252
- $overlay-color
248
+ (
249
+ "": rgba(0, 0, 0, 0.8),
250
+ "light": rgba(0, 0, 0, 0.7),
251
+ "lighter": rgba(0, 0, 0, 0.5),
252
+ ),
253
+ $overlay-color
253
254
  );
254
255
 
255
256
  // mask
256
257
  $mask-color: () !default;
257
258
  $mask-color: map.merge(
258
- (
259
- "": rgba(255, 255, 255, 0.9),
260
- "extra-light": rgba(255, 255, 255, 0.3),
261
- ),
262
- $mask-color
259
+ (
260
+ "": rgba(255, 255, 255, 0.9),
261
+ "extra-light": rgba(255, 255, 255, 0.3),
262
+ ),
263
+ $mask-color
263
264
  );
264
265
 
265
266
  // transition
266
267
  $transition: () !default;
267
268
  $transition: map.merge(
268
- (
269
- "all": all getCssVar("transition-duration")
270
- getCssVar("transition-function-ease-in-out-bezier"),
271
- "fade": opacity getCssVar("transition-duration")
272
- getCssVar("transition-function-fast-bezier"),
273
- "md-fade": (
274
- transform getCssVar("transition-duration")
275
- getCssVar("transition-function-fast-bezier"),
276
- opacity getCssVar("transition-duration")
277
- getCssVar("transition-function-fast-bezier"),
278
- ),
279
- "fade-linear": opacity getCssVar("transition-duration-fast") linear,
280
- "border": border-color getCssVar("transition-duration-fast")
281
- getCssVar("transition-function-ease-in-out-bezier"),
282
- "box-shadow": box-shadow getCssVar("transition-duration-fast")
283
- getCssVar("transition-function-ease-in-out-bezier"),
284
- "color": color getCssVar("transition-duration-fast")
285
- getCssVar("transition-function-ease-in-out-bezier"),
286
- ),
287
- $transition
269
+ (
270
+ "all": all getCssVar("transition-duration") getCssVar("transition-function-ease-in-out-bezier"),
271
+ "fade": opacity getCssVar("transition-duration") getCssVar("transition-function-fast-bezier"),
272
+ "md-fade": (
273
+ transform getCssVar("transition-duration") getCssVar("transition-function-fast-bezier"),
274
+ opacity getCssVar("transition-duration") getCssVar("transition-function-fast-bezier"),
275
+ ),
276
+ "fade-linear": opacity getCssVar("transition-duration-fast") linear,
277
+ "border": border-color getCssVar("transition-duration-fast") getCssVar("transition-function-ease-in-out-bezier"),
278
+ "box-shadow": box-shadow getCssVar("transition-duration-fast") getCssVar("transition-function-ease-in-out-bezier"),
279
+ "color": color getCssVar("transition-duration-fast") getCssVar("transition-function-ease-in-out-bezier"),
280
+ ),
281
+ $transition
288
282
  );
289
283
 
290
284
  $transition-duration: () !default;
291
285
  $transition-duration: map.merge(
292
- (
293
- "": 0.3s,
294
- "fast": 0.2s,
295
- ),
296
- $transition-duration
286
+ (
287
+ "": 0.3s,
288
+ "fast": 0.2s,
289
+ ),
290
+ $transition-duration
297
291
  );
298
292
 
299
293
  $transition-function: () !default;
300
294
  $transition-function: map.merge(
301
- (
302
- "ease-in-out-bezier": cubic-bezier(0.645, 0.045, 0.355, 1),
303
- "fast-bezier": cubic-bezier(0.23, 1, 0.32, 1),
304
- ),
305
- $transition-function
295
+ (
296
+ "ease-in-out-bezier": cubic-bezier(0.645, 0.045, 0.355, 1),
297
+ "fast-bezier": cubic-bezier(0.23, 1, 0.32, 1),
298
+ ),
299
+ $transition-function
306
300
  );
307
301
 
308
302
  $button: () !default;
@@ -551,56 +545,57 @@ $dropdown: map.merge(
551
545
 
552
546
  $header-layout: () !default;
553
547
  $header-layout: map-merge(
554
- (
555
- height: 70px,
556
- top-height: 40px,
557
- bg-color: #eff1f5,
558
- left-min-width: 800px,
559
- ),
548
+ (
549
+ height: 70px,
550
+ top-height: 40px,
551
+ bg-color: #eff1f5,
552
+ left-min-width: 800px,
553
+ z-index: getCssVar('z-index-header-layout'),
554
+ ),
560
555
  $header-layout
561
556
  );
562
557
 
563
558
  $footer-layout: () !default;
564
559
  $footer-layout: map-merge(
565
- (
566
- "bg-color": getCssVar('header-layout-bg-color'),
567
- "border-top": getCssVar('border'),
568
- "left": getCssVar("menu-width"),
569
- "height": "30px",
570
- "left-min-width": "auto",
571
- "right-min-width": "auto",
572
- 'z-index': 10,
573
- ),
560
+ (
561
+ "bg-color": getCssVar('header-layout-bg-color'),
562
+ "border-top": getCssVar('border'),
563
+ "left": getCssVar("menu-width"),
564
+ "height": "30px",
565
+ "left-min-width": "auto",
566
+ "right-min-width": "auto",
567
+ 'z-index': 10,
568
+ ),
574
569
  $footer-layout
575
570
  );
576
571
 
577
572
  $name: side-menu;
578
573
  $side-menu: () !default;
579
574
  $side-menu: map-merge(
580
- (
581
- "border": getCssVar("menu-border-right"),
582
- "scroll-mr": 0,
583
- ),
584
- $side-menu
575
+ (
576
+ "border": getCssVar("menu-border-right"),
577
+ "scroll-mr": 0,
578
+ ),
579
+ $side-menu
585
580
  );
586
581
 
587
582
  $iframe-page: () !default;
588
583
  $iframe-page: map-merge(
589
- (
590
- "text-color": white,
591
- ),
592
- $iframe-page
584
+ (
585
+ "text-color": white,
586
+ ),
587
+ $iframe-page
593
588
  );
594
589
 
595
590
  $icon: () !default;
596
591
  $icon: map-merge(
597
- (
598
- "size": 14px,
599
- "color": inherit,
600
- "cursor": initial,
601
- "animation": none,
602
- ),
603
- $icon
592
+ (
593
+ "size": 14px,
594
+ "color": inherit,
595
+ "cursor": initial,
596
+ "animation": none,
597
+ ),
598
+ $icon
604
599
  );
605
600
 
606
601
  $icon-text: () !default;
@@ -615,241 +610,242 @@ $icon-text: map-merge(
615
610
 
616
611
  $message: () !default;
617
612
  $message: map-merge(
618
- (
619
- "border-radius": 2px,
620
- "border-width": 2px,
621
- "border-color": red,
622
- "padding": 15px 19px,
623
- "bg-color": getCssVar("color", "info", "light-9"),
624
- ),
625
- $message
613
+ (
614
+ "border-radius": 2px,
615
+ "border-width": 2px,
616
+ "border-color": red,
617
+ "padding": 15px 19px,
618
+ "bg-color": getCssVar("color", "info", "light-9"),
619
+ ),
620
+ $message
626
621
  );
627
622
 
628
623
  $divider: () !default;
629
624
  $divider: map-merge(
630
- (
631
- "margin-y": "24px",
632
- "margin-x": "8px",
633
- "border-color": #dcdfe6,
634
- "border-style": "solid",
635
- ),
636
- $divider
625
+ (
626
+ "margin-y": "24px",
627
+ "margin-x": "8px",
628
+ "border-color": #dcdfe6,
629
+ "border-style": "solid",
630
+ ),
631
+ $divider
637
632
  );
638
633
 
639
634
  $tabs: () !default;
640
635
  $tabs: map-merge(
641
- (
642
- "padding": 0,
643
- "font-size": 14px,
644
- "font-weight": 400,
645
- "font-weight-active": 500,
646
- "header-height": 40px,
647
- "border-bottom": 1px solid #eee,
648
- "nav-color": #eee,
649
- "header-margin": 0 0 15px,
650
- "header-padding": 0,
651
- "header-border-bottom": none,
652
- "item-padding": 0 20px,
653
- "item-max-width": 100%,
654
- "item-bg-color": transparent,
655
- "item-bg-color-active": white,
656
- "item-bg-color-hover": white,
657
- "item-color": black,
658
- "item-color-active": inherit,
659
- "item-color-hover": inherit,
660
- "item-border": 1px solid #eee,
661
- "item-border-active": 0 solid transparent,
662
- "item-border-hover": 0 solid transparent,
663
- "item-distance": 10px,
664
- "item-border-radius": 5px 5px 0 0,
665
- "close-icon-left": 5px,
666
- "close-icon-hover-color": black,
667
- "close-icon-hover-bg-color": #dfdfdf,
668
- "add-icon-right": 30px,
669
- "add-icon-padding-left": 20px,
670
- "scroll-padding": 0 60px 0 20px,
671
- "active-distance": 14px,
672
- "show-border-bottom": block,
673
- ),
674
- $tabs
636
+ (
637
+ "padding": 0,
638
+ "font-size": 14px,
639
+ "font-weight": 400,
640
+ "font-weight-active": 500,
641
+ "header-height": 40px,
642
+ "border-bottom": 1px solid #eee,
643
+ "nav-color": #eee,
644
+ "header-margin": 0 0 15px,
645
+ "header-padding": 0,
646
+ "header-border-bottom": none,
647
+ "item-padding": 0 20px,
648
+ "item-max-width": 100%,
649
+ "item-bg-color": transparent,
650
+ "item-active-bg-color": transparent,
651
+ "item-hover-bg-color": transparent,
652
+ "item-color": black,
653
+ "item-active-color": inherit,
654
+ "item-hover-color": inherit,
655
+ "item-border": 0px solid #eee,
656
+ "item-active-border": 0px solid #eee,
657
+ "item-hover-border": 0px solid transparent,
658
+ "item-distance": 10px,
659
+ "item-border-radius": 5px 5px 0 0,
660
+ "close-icon-left": 5px,
661
+ "close-icon-hover-color": black,
662
+ "close-icon-hover-bg-color": #dfdfdf,
663
+ "add-icon-right": 30px,
664
+ "add-icon-padding-left": 20px,
665
+ "scroll-padding": 0 60px 0 20px,
666
+ "active-distance": 14px,
667
+ "show-border-bottom": block,
668
+ ),
669
+ $tabs
675
670
  );
676
671
 
677
672
  $multiple-tabs: () !default;
678
673
  $multiple-tabs: map-merge(
679
- (
680
- "bg-color": getCssVar('header-layout-bg-color'),
681
- "height": 30px,
682
- ),
683
- $multiple-tabs
674
+ (
675
+ "bg-color": getCssVar('header-layout-bg-color'),
676
+ "height": 30px,
677
+ ),
678
+ $multiple-tabs
684
679
  );
685
680
 
686
681
  $menu: () !default;
687
682
  $menu: map-merge(
688
- (
689
- "bg-color": getCssVar('fill-color', 'blank'),
690
- "sub-menu-bg-color": getCssVar('fill-color', 'blank'),
691
- "active-color": getCssVar("primary-color"),
692
- "text-color": getCssVar("text-primary-color"),
693
- "hover-text-color": getCssVar("primary-color"),
694
- "hover-bg-color": getCssVar("primary-color-light-9"),
695
- "focus-text-color": getCssVar("primary-color"),
696
- "focus-bg-color": getCssVar("primary-color-light-9"),
697
- "item-height": 56px,
698
- "sub-item-height": calc(#{getCssVar("menu-item-height")} - 6px),
699
- "horizontal-sub-item-height": 36px,
700
- "item-font-size": getCssVar("font-size-base"),
701
- "item-hover-fill": getCssVar("primary-color-light-9"),
702
- "border-bottom": getCssVar("border"),
703
- "base-level-padding": 20px,
704
- "level-padding": 20px,
705
- "icon-mr": 6px,
706
- "icon-width": 14px,
707
- "border": getCssVar("border"),
708
- "border-right": getCssVar('border'),
709
- "item-min-width": 200px,
710
- "popup-border-radius": getCssVar("border-radius"),
711
- ),
712
- $menu
683
+ (
684
+ "bg-color": transparent,
685
+ "sub-menu-bg-color": transparent,
686
+ "active-color": getCssVar("primary-color"),
687
+ "text-color": getCssVar("text-primary-color"),
688
+ "hover-text-color": getCssVar("primary-color"),
689
+ "hover-bg-color": getCssVar("primary-color-light-9"),
690
+ "focus-text-color": getCssVar("primary-color"),
691
+ "focus-bg-color": getCssVar("primary-color-light-9"),
692
+ "item-height": 56px,
693
+ "sub-item-height": calc(#{getCssVar("menu-item-height")} - 6px),
694
+ "horizontal-sub-item-height": 36px,
695
+ "item-font-size": getCssVar("font-size-base"),
696
+ "item-hover-fill": getCssVar("primary-color-light-9"),
697
+ "border-bottom": getCssVar("border"),
698
+ "base-level-padding": 20px,
699
+ "level-padding": 20px,
700
+ "icon-mr": 6px,
701
+ "icon-width": 14px,
702
+ "border": getCssVar("border"),
703
+ "border-right": getCssVar('border'),
704
+ 'item-border-bottom': 2px solid transparent,
705
+ 'item-active-border-bottom': 2px solid getCssVar('menu-active-color'),
706
+ "item-min-width": 200px,
707
+ ),
708
+ $menu
713
709
  );
714
710
 
715
711
  $logo: () !default;
716
712
  $logo: map-merge(
717
- (
718
- img-width: 30px,
719
- img-height: 30px,
720
- color: $primary-color,
721
- font-size: 16px,
722
- font-weight: 400,
723
- cursor: pointer,
724
- ),
725
- $logo
713
+ (
714
+ img-width: 30px,
715
+ img-height: 30px,
716
+ color: $primary-color,
717
+ font-size: 16px,
718
+ font-weight: 400,
719
+ cursor: pointer,
720
+ ),
721
+ $logo
726
722
  );
727
723
 
728
724
  $loading: () !default;
729
725
  $loading: map-merge(
730
- (
731
- "spinner-size": 20px,
732
- "fullscreen-spinner-size": 50px,
733
- "rotate-animation": loading-rotate 2s linear infinite,
734
- "color": $primary-color,
735
- "text-size": 14px,
736
- "margin": 3px 0,
737
- ),
738
- $loading
726
+ (
727
+ "spinner-size": 20px,
728
+ "fullscreen-spinner-size": 50px,
729
+ "rotate-animation": loading-rotate 2s linear infinite,
730
+ "color": $primary-color,
731
+ "text-size": 14px,
732
+ "margin": 3px 0,
733
+ ),
734
+ $loading
739
735
  );
740
736
 
741
737
  $full-screen: () !default;
742
738
  $full-screen: map-merge(
743
- (
744
- "color": getCssVar('text-primary-color'),
745
- "hover-color": $primary-color,
746
- "font-size": 12px,
747
- ),
748
- $full-screen
739
+ (
740
+ "color": getCssVar('text-primary-color'),
741
+ "hover-color": $primary-color,
742
+ "font-size": 12px,
743
+ ),
744
+ $full-screen
749
745
  );
750
746
 
751
747
  // Select
752
748
  $select: () !default;
753
749
  $select: map-merge(
754
- (
755
- "border-color-hover": getCssVar("border-color-hover"),
756
- "disabled-border": getCssVar("disabled-border-color"),
757
- "font-size": getCssVar("font-size-base"),
758
- "close-hover-color": getCssVar("text-secondary-color"),
759
- "input-color": getCssVar("text-placeholder-color"),
760
- "multiple-input-color": getCssVar("text-regular-color"),
761
- "input-focus-border-color": getCssVar("primary-color"),
762
- "input-font-size": 14px,
763
- ),
764
- $select
750
+ (
751
+ "border-color-hover": getCssVar("border-color-hover"),
752
+ "disabled-border": getCssVar("disabled-border-color"),
753
+ "font-size": getCssVar("font-size-base"),
754
+ "close-hover-color": getCssVar("text-secondary-color"),
755
+ "input-color": getCssVar("text-placeholder-color"),
756
+ "multiple-input-color": getCssVar("text-regular-color"),
757
+ "input-focus-border-color": getCssVar("primary-color"),
758
+ "input-font-size": 14px,
759
+ ),
760
+ $select
765
761
  );
766
762
 
767
763
  $select-option: () !default;
768
764
  $select-option: map-merge(
769
- (
770
- "text-color": getCssVar("text-regular-color"),
771
- "disabled-color": getCssVar("text-placeholder-color"),
772
- "height": 34px,
773
- "hover-background": getCssVar("fill-color", "light"),
774
- "selected-text-color": getCssVar("primary-color"),
775
- ),
776
- $select-option
765
+ (
766
+ "text-color": getCssVar("text-regular-color"),
767
+ "disabled-color": getCssVar("text-placeholder-color"),
768
+ "height": 34px,
769
+ "hover-background": getCssVar("fill-color", "light"),
770
+ "selected-text-color": getCssVar("primary-color"),
771
+ ),
772
+ $select-option
777
773
  );
778
774
 
779
775
  $select-group: () !default;
780
776
  $select-group: map-merge(
781
- (
782
- "text-color": getCssVar("info-color"),
783
- "height": 30px,
784
- "font-size": 12px,
785
- ),
786
- $select-group
777
+ (
778
+ "text-color": getCssVar("info-color"),
779
+ "height": 30px,
780
+ "font-size": 12px,
781
+ ),
782
+ $select-group
787
783
  );
788
784
 
789
785
  $select-dropdown: () !default;
790
786
  $select-dropdown: map-merge(
791
- (
792
- "bg-color": getCssVar("bg-color", "overlay"),
793
- "shadow": getCssVar("box-shadow-light"),
794
- "empty-color": getCssVar("text-secondary-color"),
795
- "max-height": 274px,
796
- "padding": 6px 0,
797
- "empty-padding": 10px 0,
798
- "border": 1px solid getCssVar("border-color-light"),
799
- ),
800
- $select-dropdown
787
+ (
788
+ "bg-color": getCssVar("bg-color", "overlay"),
789
+ "shadow": getCssVar("box-shadow-light"),
790
+ "empty-color": getCssVar("text-secondary-color"),
791
+ "max-height": 274px,
792
+ "padding": 6px 0,
793
+ "empty-padding": 10px 0,
794
+ "border": 1px solid getCssVar("border-color-light"),
795
+ ),
796
+ $select-dropdown
801
797
  );
802
798
 
803
799
  $select-tags-prefix-padding: () !default;
804
800
  $select-tags-prefix-padding: map-merge(
805
- (
806
- "large": 8px,
807
- "default": 6px,
808
- "small": 4px,
809
- ),
810
- $select-tags-prefix-padding
801
+ (
802
+ "large": 8px,
803
+ "default": 6px,
804
+ "small": 4px,
805
+ ),
806
+ $select-tags-prefix-padding
811
807
  );
812
808
 
813
809
  $input: () !default;
814
810
  $input: map-merge(
815
- (
816
- "width": "100%",
817
- "text-color": getCssVar("text-regular-color"),
818
- "border": getCssVar("border"),
819
- "hover-border": getCssVar("border-color-hover"),
820
- "focus-border": getCssVar("primary-color"),
821
- "transparent-border": 0 0 0 1px transparent inset,
822
- "border-color": getCssVar("border-color"),
823
- "border-radius": getCssVar("border-radius-base"),
824
- "bg-color": getCssVar("fill-color", "blank"),
825
- "icon-color": getCssVar("text-placeholder-color"),
826
- "placeholder-color": getCssVar("text-placeholder-color"),
827
- "hover-border-color": getCssVar("border-color-hover"),
828
- "clear-hover-color": getCssVar("text-secondary-color"),
829
- "focus-border-color": getCssVar("primary-color"),
830
- ),
831
- $input
811
+ (
812
+ "width": "100%",
813
+ "text-color": getCssVar("text-regular-color"),
814
+ "border": getCssVar("border"),
815
+ "hover-border": getCssVar("border-color-hover"),
816
+ "focus-border": getCssVar("primary-color"),
817
+ "transparent-border": 0 0 0 1px transparent inset,
818
+ "border-color": getCssVar("border-color"),
819
+ "border-radius": getCssVar("border-radius-base"),
820
+ "bg-color": getCssVar("fill-color", "blank"),
821
+ "icon-color": getCssVar("text-placeholder-color"),
822
+ "placeholder-color": getCssVar("text-placeholder-color"),
823
+ "hover-border-color": getCssVar("border-color-hover"),
824
+ "clear-hover-color": getCssVar("text-secondary-color"),
825
+ "focus-border-color": getCssVar("primary-color"),
826
+ ),
827
+ $input
832
828
  );
833
829
 
834
830
  $input-disabled: () !default;
835
831
  $input-disabled: map-merge(
836
- (
837
- "fill": getCssVar("disabled-bg-color"),
838
- "border": getCssVar("disabled-border-color"),
839
- "text-color": getCssVar("disabled-text-color"),
840
- "placeholder-color": getCssVar("text-placeholder-color"),
841
- ),
842
- $input-disabled
832
+ (
833
+ "fill": getCssVar("disabled-bg-color"),
834
+ "border": getCssVar("disabled-border-color"),
835
+ "text-color": getCssVar("disabled-text-color"),
836
+ "placeholder-color": getCssVar("text-placeholder-color"),
837
+ ),
838
+ $input-disabled
843
839
  );
844
840
 
845
841
  $input-font-size: () !default;
846
842
  $input-font-size: map-merge(
847
- (
848
- "large": 14px,
849
- "default": 14px,
850
- "small": 12px,
851
- ),
852
- $input-font-size
843
+ (
844
+ "large": 14px,
845
+ "default": 14px,
846
+ "small": 12px,
847
+ ),
848
+ $input-font-size
853
849
  );
854
850
 
855
851
  $input-height: () !default;
@@ -860,212 +856,212 @@ $input-line-height: map-merge($common-component-size, $input-line-height);
860
856
 
861
857
  $input-number-width: () !default;
862
858
  $input-number-width: map-merge(
863
- (
864
- "large": 180px,
865
- "default": 150px,
866
- "small": 120px,
867
- ),
868
- $input-number-width
859
+ (
860
+ "large": 180px,
861
+ "default": 150px,
862
+ "small": 120px,
863
+ ),
864
+ $input-number-width
869
865
  );
870
866
 
871
867
  $input-padding-horizontal: () !default;
872
868
  $input-padding-horizontal: map-merge(
873
- (
874
- "large": 16px,
875
- "default": 12px,
876
- "small": 8px,
877
- ),
878
- $input-padding-horizontal
869
+ (
870
+ "large": 16px,
871
+ "default": 12px,
872
+ "small": 8px,
873
+ ),
874
+ $input-padding-horizontal
879
875
  );
880
876
 
881
877
  $cascader: () !default;
882
878
  $cascader: map-merge(
883
- (
884
- "menu-text-color": getCssVar("text-regular-color"),
885
- "menu-selected-text-color": getCssVar("primary-color"),
886
- "menu-fill": getCssVar("bg-color", "overlay"),
887
- "menu-font-size": getCssVar("font-size-base"),
888
- "menu-radius": getCssVar("border-radius-base"),
889
- "menu-border": solid 1px getCssVar("border-color-light"),
890
- "menu-shadow": getCssVar("box-shadow-light"),
891
- "node-background-hover": getCssVar("fill-color", "light"),
892
- "node-color-disabled": getCssVar("text-placeholder-color"),
893
- "color-empty": getCssVar("text-placeholder-color"),
894
- "tag-background": getCssVar("fill-color"),
895
- ),
896
- $cascader
879
+ (
880
+ "menu-text-color": getCssVar("text-regular-color"),
881
+ "menu-selected-text-color": getCssVar("primary-color"),
882
+ "menu-fill": getCssVar("bg-color", "overlay"),
883
+ "menu-font-size": getCssVar("font-size-base"),
884
+ "menu-radius": getCssVar("border-radius-base"),
885
+ "menu-border": solid 1px getCssVar("border-color-light"),
886
+ "menu-shadow": getCssVar("box-shadow-light"),
887
+ "node-background-hover": getCssVar("fill-color", "light"),
888
+ "node-color-disabled": getCssVar("text-placeholder-color"),
889
+ "color-empty": getCssVar("text-placeholder-color"),
890
+ "tag-background": getCssVar("fill-color"),
891
+ ),
892
+ $cascader
897
893
  );
898
894
 
899
895
  $scrollbar: () !default;
900
896
  $scrollbar: map-merge(
901
- (
902
- "opacity": 0.3,
903
- "bg-color": getCssVar("text-secondary-color"),
904
- "hover-opacity": 0.5,
905
- "hover-bg-color": getCssVar("text-secondary-color"),
906
- ),
907
- $scrollbar
897
+ (
898
+ "opacity": 0.3,
899
+ "bg-color": getCssVar("text-secondary-color"),
900
+ "hover-opacity": 0.5,
901
+ "hover-bg-color": getCssVar("text-secondary-color"),
902
+ ),
903
+ $scrollbar
908
904
  );
909
905
 
910
906
  $popover: () !default;
911
907
  $popover: map-merge(
912
- (
913
- "bg-color": getCssVar("bg-color", "overlay"),
914
- "font-size": getCssVar("font-size-base"),
915
- "border-color": getCssVar("border-color-lighter"),
916
- "padding": 12px,
917
- "padding-large": 18px 20px,
918
- "title-font-size": 16px,
919
- "title-text-color": getCssVar("text-primary-color"),
920
- "border-radius": 4px,
921
- ),
922
- $popover
908
+ (
909
+ "bg-color": getCssVar("bg-color", "overlay"),
910
+ "font-size": getCssVar("font-size-base"),
911
+ "border-color": getCssVar("border-color-lighter"),
912
+ "padding": 12px,
913
+ "padding-large": 18px 20px,
914
+ "title-font-size": 16px,
915
+ "title-text-color": getCssVar("text-primary-color"),
916
+ "border-radius": 4px,
917
+ ),
918
+ $popover
923
919
  );
924
920
 
925
921
  $avatar: () !default;
926
922
  $avatar: map-merge(
927
- (
928
- "text-color": getCssVar("color-white"),
929
- "bg-color": getCssVar("text", "disabled-color"),
930
- "text-size": 14px,
931
- "icon-size": 18px,
932
- "border-radius": getCssVar("border-radius-base"),
933
- ),
934
- $avatar
923
+ (
924
+ "text-color": getCssVar("color-white"),
925
+ "bg-color": getCssVar("text", "disabled-color"),
926
+ "text-size": 14px,
927
+ "icon-size": 18px,
928
+ "border-radius": getCssVar("border-radius-base"),
929
+ ),
930
+ $avatar
935
931
  );
936
932
 
937
933
  $avatar-size: () !default;
938
934
  $avatar-size: map-merge(
939
- (
940
- "large": 56px,
941
- "default": 40px,
942
- "small": 24px,
943
- ),
944
- $avatar-size
935
+ (
936
+ "large": 56px,
937
+ "default": 40px,
938
+ "small": 24px,
939
+ ),
940
+ $avatar-size
945
941
  );
946
942
 
947
943
  $descriptions: () !default;
948
944
  $descriptions: map-merge(
949
- (
950
- "table-border": 1px solid getCssVar("border-color-lighter"),
951
- "item-bordered-label-background": getCssVar("fill-color", "light"),
952
- ),
953
- $descriptions
945
+ (
946
+ "table-border": 1px solid getCssVar("border-color-lighter"),
947
+ "item-bordered-label-background": getCssVar("fill-color", "light"),
948
+ ),
949
+ $descriptions
954
950
  );
955
951
 
956
952
  $md-container: () !default;
957
953
  $md-container: map-merge(
958
- (
959
- "primary-color": $primary-color,
960
- "content-max-width": 800px,
961
- "code-bg-color": #fff5f5,
962
- "line-numbers-width": "2.5rem",
963
- "icon-copy":url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E"),
964
- "icon-copied":url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E"),
965
- // info
966
- info-title-color: #193c47,
967
- info-bg-color: #eef9fd,
968
- info-border-color: #4cb3d4,
969
- info-code-bg-color: rgb(76 179 212 / 10%),
970
- // note
971
- note-title-color: #474748,
972
- note-bg-color: #fdfdfe,
973
- note-border-color: #ccc,
974
- note-code-bg-color: rgb(212 213 216 / 20%),
975
- // tip
976
- tip-title-color: #003100,
977
- tip-bg-color: #e6f6e6,
978
- tip-border-color: #009400,
979
- tip-code-bg-color: rgb(0 148 0 / 15%),
980
- // warning
981
- warning-title-color: #4d3800,
982
- warning-bg-color: #fff8e6,
983
- warning-border-color: #e6a700,
984
- warning-code-bg-color: rgb(230 167 0 / 15%),
985
- // danger
986
- danger-title-color: #4b1113,
987
- danger-bg-color: #ffebec,
988
- danger-border-color: #e13238,
989
- danger-code-bg-color: rgb(225 50 56 / 15%),
990
- // detail
991
- detail-bg-color: #eee,
992
- detail-text-color: inherit,
993
- detail-code-bg-color: rgb(127 127 127 / 15%),
994
- ), $md-container
954
+ (
955
+ "primary-color": $primary-color,
956
+ "content-max-width": 800px,
957
+ "code-bg-color": #fff5f5,
958
+ "line-numbers-width": "2.5rem",
959
+ "icon-copy":url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2'/%3E%3C/svg%3E"),
960
+ "icon-copied":url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' height='20' width='20' stroke='rgba(128,128,128,1)' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2m-6 9 2 2 4-4'/%3E%3C/svg%3E"),
961
+ // info
962
+ info-title-color: #193c47,
963
+ info-bg-color: #eef9fd,
964
+ info-border-color: #4cb3d4,
965
+ info-code-bg-color: rgb(76 179 212 / 10%),
966
+ // note
967
+ note-title-color: #474748,
968
+ note-bg-color: #fdfdfe,
969
+ note-border-color: #ccc,
970
+ note-code-bg-color: rgb(212 213 216 / 20%),
971
+ // tip
972
+ tip-title-color: #003100,
973
+ tip-bg-color: #e6f6e6,
974
+ tip-border-color: #009400,
975
+ tip-code-bg-color: rgb(0 148 0 / 15%),
976
+ // warning
977
+ warning-title-color: #4d3800,
978
+ warning-bg-color: #fff8e6,
979
+ warning-border-color: #e6a700,
980
+ warning-code-bg-color: rgb(230 167 0 / 15%),
981
+ // danger
982
+ danger-title-color: #4b1113,
983
+ danger-bg-color: #ffebec,
984
+ danger-border-color: #e13238,
985
+ danger-code-bg-color: rgb(225 50 56 / 15%),
986
+ // detail
987
+ detail-bg-color: #eee,
988
+ detail-text-color: inherit,
989
+ detail-code-bg-color: rgb(127 127 127 / 15%),
990
+ ), $md-container
995
991
  );
996
992
 
997
993
  $pagination: () !default;
998
994
  $pagination: map-merge(
999
- (
1000
- "font-size": 14px,
1001
- "bg-color": getCssVar("fill-color", "blank"),
1002
- "text-color": getCssVar("text-primary-color"),
1003
- "border-radius": 2px,
1004
- "button-color": getCssVar("text-primary-color"),
1005
- "button-width": 32px,
1006
- "button-height": 32px,
1007
- "button-disabled-color": getCssVar("text-placeholder-color"),
1008
- "button-disabled-bg-color": getCssVar("fill-color", "blank"),
1009
- "button-bg-color": getCssVar("fill-color"),
1010
- "hover-color": getCssVar("primary-color"),
1011
- "font-size-small": 12px,
1012
- "button-width-small": 24px,
1013
- "button-height-small": 24px,
1014
- "item-gap": 16px,
1015
- ),
1016
- $pagination
995
+ (
996
+ "font-size": 14px,
997
+ "bg-color": getCssVar("fill-color", "blank"),
998
+ "text-color": getCssVar("text-primary-color"),
999
+ "border-radius": 2px,
1000
+ "button-color": getCssVar("text-primary-color"),
1001
+ "button-width": 32px,
1002
+ "button-height": 32px,
1003
+ "button-disabled-color": getCssVar("text-placeholder-color"),
1004
+ "button-disabled-bg-color": getCssVar("fill-color", "blank"),
1005
+ "button-bg-color": getCssVar("fill-color"),
1006
+ "hover-color": getCssVar("primary-color"),
1007
+ "font-size-small": 12px,
1008
+ "button-width-small": 24px,
1009
+ "button-height-small": 24px,
1010
+ "item-gap": 16px,
1011
+ ),
1012
+ $pagination
1017
1013
  );
1018
1014
 
1019
1015
  $tag: () !default;
1020
1016
  $tag: map-merge(
1021
- (
1022
- "font-size": 12px,
1023
- "border-radius": 4px,
1024
- "border-radius-rounded": 9999px,
1025
- "content-line-clamp-num": 1,
1026
- "content-max-width": 100%,
1027
- ),
1028
- $tag
1017
+ (
1018
+ "font-size": 12px,
1019
+ "border-radius": 4px,
1020
+ "border-radius-rounded": 9999px,
1021
+ "content-line-clamp-num": 1,
1022
+ "content-max-width": 100%,
1023
+ ),
1024
+ $tag
1029
1025
  );
1030
1026
 
1031
1027
  $tag-height: () !default;
1032
1028
  $tag-height: map-merge(
1033
- (
1034
- "large": 32px,
1035
- "default": 24px,
1036
- "small": 20px,
1037
- ),
1038
- $tag-height
1029
+ (
1030
+ "large": 32px,
1031
+ "default": 24px,
1032
+ "small": 20px,
1033
+ ),
1034
+ $tag-height
1039
1035
  );
1040
1036
 
1041
1037
  $tag-padding: () !default;
1042
1038
  $tag-padding: map-merge(
1043
- (
1044
- "large": 12px,
1045
- "default": 10px,
1046
- "small": 8px,
1047
- ),
1048
- $tag-padding
1039
+ (
1040
+ "large": 12px,
1041
+ "default": 10px,
1042
+ "small": 8px,
1043
+ ),
1044
+ $tag-padding
1049
1045
  );
1050
1046
 
1051
1047
  $tag-icon-size: () !default;
1052
1048
  $tag-icon-size: map-merge(
1053
- (
1054
- "large": 16px,
1055
- "default": 14px,
1056
- "small": 12px,
1057
- ),
1058
- $tag-icon-size
1049
+ (
1050
+ "large": 16px,
1051
+ "default": 14px,
1052
+ "small": 12px,
1053
+ ),
1054
+ $tag-icon-size
1059
1055
  );
1060
1056
 
1061
1057
  $back-top: () !default;
1062
1058
  $back-top: map-merge(
1063
- (
1064
- "bg-color": getCssVar("bg-color-overlay"),
1065
- "text-color": getCssVar('text-primary-color'),
1066
- "hover-bg-color": getCssVar("border-color-extra-light"),
1067
- ),
1068
- $back-top
1059
+ (
1060
+ "bg-color": getCssVar("bg-color-overlay"),
1061
+ "text-color": getCssVar('text-primary-color'),
1062
+ "hover-bg-color": getCssVar("border-color-extra-light"),
1063
+ ),
1064
+ $back-top
1069
1065
  );
1070
1066
 
1071
1067
  $empty: () !default;
@@ -1500,7 +1496,7 @@ $calendar: map.merge(
1500
1496
  1px solid #{getCssVar('border-color-lighter')}
1501
1497
  ),
1502
1498
  'header-border-bottom': getCssVar('calendar-border'),
1503
- 'selected-bg-color': getCssVar('color', 'primary', 'light-9'),
1499
+ 'selected-bg-color': getCssVar('primary-color', 'light-9'),
1504
1500
  'cell-width': 85px,
1505
1501
  ),
1506
1502
  $calendar
@@ -1545,3 +1541,13 @@ $popup: map.merge(
1545
1541
  ),
1546
1542
  $popup
1547
1543
  );
1544
+
1545
+ $horizontal-menu: () !default;
1546
+ $horizontal-menu: map.merge((
1547
+ 'tile-width': 90vw,
1548
+ 'tile-height': 400px,
1549
+ 'tile-padding': 24px 10px 24px 24px,
1550
+ 'tile-content-gap-y': 20px,
1551
+ 'tile-content-col-item-gap': '12px 4px',
1552
+ 'tile-content-col-gap-y': 40px
1553
+ ), $horizontal-menu);