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
@@ -25,7 +25,6 @@ $name: menu;
25
25
  transition: border-color getCssVar('transition-duration'),
26
26
  background-color getCssVar('transition-duration'),
27
27
  color getCssVar('transition-duration');
28
- box-sizing: border-box;
29
28
  white-space: nowrap;
30
29
 
31
30
  * {
@@ -34,7 +33,7 @@ $name: menu;
34
33
 
35
34
  i {
36
35
  flex-shrink: 0;
37
- margin-right: getCompCssVar('icon-mr');
36
+ //margin-right: getCompCssVar('icon-mr');
38
37
  }
39
38
 
40
39
  &:hover,
@@ -44,6 +43,7 @@ $name: menu;
44
43
 
45
44
  &:hover {
46
45
  background-color: getCompCssVar('hover-bg-color');
46
+
47
47
  }
48
48
 
49
49
  @include when(disabled) {
@@ -66,7 +66,6 @@ $name: menu;
66
66
  margin: 0;
67
67
  padding-left: 0;
68
68
  background-color: getCompCssVar('bg-color');
69
- box-sizing: border-box;
70
69
  scroll-behavior: smooth;
71
70
 
72
71
  @include m(vertical) {
@@ -88,11 +87,15 @@ $name: menu;
88
87
  }
89
88
  }
90
89
 
91
- & > .#{$namespace}-sub-menu {
92
- @include e(title) {
93
- padding-right: calc(#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')});
94
- }
90
+ .#{$namespace}-sub-menu__icon-arrow {
91
+ position: absolute;
92
+ right: getCompCssVar('base-level-padding');
95
93
  }
94
+ //& > .#{$namespace}-sub-menu {
95
+ // @include e(title) {
96
+ // padding-right: calc(#{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')});
97
+ // }
98
+ //}
96
99
  }
97
100
 
98
101
  @include m(horizontal) {
@@ -109,8 +112,9 @@ $name: menu;
109
112
  height: 100%;
110
113
 
111
114
  margin: 0;
112
- border-bottom: 2px solid transparent;
115
+ border-bottom: getCompCssVar('item-border-bottom');
113
116
  color: getCompCssVar('text-color');
117
+ //box-sizing: content-box;
114
118
 
115
119
  a,
116
120
  a:hover {
@@ -122,21 +126,16 @@ $name: menu;
122
126
  background-color: #fff;
123
127
  }
124
128
  }
129
+
125
130
  & > .#{$namespace}-sub-menu {
126
131
  &:focus,
127
132
  &:hover {
128
133
  outline: none;
129
134
  }
130
135
 
131
- &:hover {
132
- .#{$namespace}-sub-menu__title {
133
- color: getCompCssVar('hover-text-color');
134
- }
135
- }
136
-
137
136
  &.is-active {
138
137
  .#{$namespace}-sub-menu__title {
139
- border-bottom: 2px solid getCompCssVar('active-color');
138
+ border-bottom: getCompCssVar('item-active-border-bottom');;
140
139
  color: getCompCssVar('active-color');
141
140
 
142
141
  &:hover {
@@ -147,12 +146,12 @@ $name: menu;
147
146
 
148
147
  & .#{$namespace}-sub-menu__title {
149
148
  height: 100%;
150
- line-height: 100%;
151
- border-bottom: 2px solid transparent;
149
+ //line-height: 100%;
150
+ border-bottom: getCompCssVar('item-border-bottom');
152
151
  color: getCompCssVar('text-color');
153
152
 
154
-
155
153
  &:hover {
154
+ color: getCompCssVar('hover-text-color');
156
155
  background-color: getCompCssVar('hover-bg-color');
157
156
  }
158
157
  }
@@ -164,14 +163,9 @@ $name: menu;
164
163
  display: flex;
165
164
  align-items: center;
166
165
  height: getCompCssVar('horizontal-sub-item-height');
167
- padding: 0 10px;
168
166
  color: getCompCssVar('text-color');
169
167
  }
170
168
 
171
- & .#{$namespace}-sub-menu__title {
172
- padding-right: 40px;
173
- }
174
-
175
169
  & .#{$namespace}-menu-item.is-active,
176
170
  & .#{$namespace}-sub-menu.is-active > .#{$namespace}-sub-menu__title {
177
171
  color: getCompCssVar('active-color');
@@ -188,10 +182,11 @@ $name: menu;
188
182
  background-color: getCompCssVar('focus-bg-color');
189
183
  }
190
184
  & > .#{$namespace}-menu-item.is-active {
191
- border-bottom: 2px solid getCompCssVar('active-color');
185
+ border-bottom: getCompCssVar('item-active-border-bottom');;
192
186
  color: getCompCssVar('active-color');
193
187
  }
194
188
  }
189
+
195
190
  @include m(collapse) {
196
191
  width: calc(
197
192
  #{getCompCssVar('icon-width')} + #{getCompCssVar('base-level-padding')} *
@@ -233,6 +228,7 @@ $name: menu;
233
228
  padding-right: 0px;
234
229
  }
235
230
  }
231
+
236
232
  @include m(popup) {
237
233
  z-index: 100;
238
234
  min-width: 200px;
@@ -241,44 +237,28 @@ $name: menu;
241
237
  box-shadow: getCssVar('box-shadow-light');
242
238
 
243
239
  // Todo radius
244
- border-radius: getCompCssVar('popup-border-radius');
245
- }
240
+ border-radius: getCssVar('popper-border-radius');
246
241
 
247
- .#{$namespace}-icon {
248
- flex-shrink: 0;
249
- }
250
- }
242
+ .vft-sub-menu__title {
243
+ color: getCompCssVar('text-color');
244
+ border-bottom: none !important;
245
+ }
251
246
 
252
- @include b(menu-item) {
253
- @include menu-item;
247
+ .is-active {
248
+ .vft-sub-menu__title {
249
+ color: getCompCssVar('active-color') !important;
250
+ border-bottom: none !important;
251
+ }
252
+ }
254
253
 
255
- & [class^='#{$namespace}-icon'] {
256
- margin-right: getCompCssVar('icon-mr');
257
- width: getCompCssVar('icon-width');
258
- text-align: center;
259
- vertical-align: middle;
260
- }
261
- @include when(active) {
262
- color: getCompCssVar('active-color');
263
- i {
264
- color: inherit;
254
+ .#{$namespace}-sub-menu__icon-arrow {
255
+ position: absolute;
256
+ right: getCompCssVar('base-level-padding');
265
257
  }
266
258
  }
267
- .#{$namespace}-menu-tooltip__trigger {
268
- position: absolute;
269
- left: 0;
270
- top: 0;
271
- height: 100%;
272
- width: 100%;
273
- display: inline-flex;
274
- align-items: center;
275
- box-sizing: border-box;
276
- padding: 0 getCompCssVar('base-level-padding');
277
- }
278
- span {
279
- @include line-clamp();
280
- word-break: break-all;
281
- white-space: break-spaces;
259
+
260
+ .#{$namespace}-icon {
261
+ flex-shrink: 0;
282
262
  }
283
263
  }
284
264
 
@@ -290,19 +270,18 @@ $name: menu;
290
270
 
291
271
  @include e(title) {
292
272
  @include menu-item;
273
+
293
274
  &:hover {
294
275
  background-color: getCompCssVar('hover-bg-color');
295
276
  }
296
277
 
297
- //&:not(.vft-menu--collapse) {
298
- // .#{$namespace}-sub-menu__text {
299
- // white-space: break-spaces;
300
- // }
301
- //}
278
+ //padding-right: calc(
279
+ // #{getCssVar('menu-base-level-padding')} + #{getCssVar('menu-icon-width')}
280
+ //);
281
+
302
282
  @include e(text) {
303
283
  padding-right: getCompCssVar('base-level-padding');
304
284
  }
305
-
306
285
  }
307
286
  & .#{$namespace}-menu {
308
287
  border: none;
@@ -341,18 +320,49 @@ $name: menu;
341
320
  margin-right: getCompCssVar('icon-mr');
342
321
  text-align: center;
343
322
 
344
- &.#{$namespace}-sub-menu__icon-more {
323
+ &.#{$namespace}-sub-menu__icon-more,&.#{$namespace}-sub-menu__icon-arrow {
345
324
  margin-right: 0 !important;
346
325
  }
347
326
  }
348
327
  .#{$namespace}-sub-menu__icon-arrow {
349
- position: absolute;
350
- right: getCompCssVar('base-level-padding');
351
328
  transition: transform getCssVar('transition-duration');
352
329
  color: inherit;
353
330
  }
354
331
  }
355
332
 
333
+ @include b(menu-item) {
334
+ @include menu-item;
335
+
336
+ & [class^='#{$namespace}-icon'] {
337
+ margin-right: getCompCssVar('icon-mr');
338
+ width: getCompCssVar('icon-width');
339
+ text-align: center;
340
+ vertical-align: middle;
341
+ }
342
+ @include when(active) {
343
+ color: getCompCssVar('active-color');
344
+ i {
345
+ color: inherit;
346
+ }
347
+ }
348
+ .#{$namespace}-menu-tooltip__trigger {
349
+ position: absolute;
350
+ left: 0;
351
+ top: 0;
352
+ height: 100%;
353
+ width: 100%;
354
+ display: inline-flex;
355
+ align-items: center;
356
+ padding: 0 getCompCssVar('base-level-padding');
357
+ }
358
+
359
+ .vft-menu-item__text {
360
+ @include line-clamp($inline: true);
361
+ word-break: break-all;
362
+ white-space: break-spaces;
363
+ }
364
+ }
365
+
356
366
  @include b(menu-item-group) {
357
367
  > ul {
358
368
  padding: 0;
@@ -7,14 +7,14 @@
7
7
  // set css var value, because we need translate value to string
8
8
  // for example:
9
9
  // @include set-css-var-value('color-white', white); --vft-color-white: white;
10
- // @include set-css-var-value(('color', 'primary'), red); --vft-primary-color: red;
10
+ // @include set-css-var-value(('primary-color'), red); --vft-primary-color: red;
11
11
  // @include set-css-var-value('color' 'primary', red); --vft-primary-color: red;
12
12
  // --vft-primary-color: red;
13
13
  @mixin set-css-var-value($name, $value) {
14
14
  #{joinVarName($name)}: #{$value};
15
15
  }
16
16
 
17
- // @include set-css-var-type('color', 'primary', $map);
17
+ // @include set-css-var-type('primary-color', $map);
18
18
  // --vft-primary-color: #{map.get($map, 'primary')};
19
19
  @mixin set-css-var-type($name, $type, $variables) {
20
20
  #{getCssVarName($name, $type)}: #{map.get($variables, $type)};
@@ -212,9 +212,9 @@
212
212
 
213
213
  @mixin inset-input-border($color, $important: false) {
214
214
  @if $important == true {
215
- box-shadow: 0 0 0 1px $color inset !important;
215
+ border: 1px solid $color !important;
216
216
  } @else {
217
- box-shadow: 0 0 0 1px $color inset;
217
+ border: 1px solid $color;
218
218
  }
219
219
  }
220
220
 
@@ -0,0 +1,16 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(popconfirm) {
5
+ @include e(main) {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+ @include e(icon) {
10
+ margin-right: 5px;
11
+ }
12
+ @include e(action) {
13
+ text-align: right;
14
+ margin-top: 8px;
15
+ }
16
+ }
@@ -4,8 +4,10 @@
4
4
 
5
5
  $name: popper;
6
6
 
7
- @include b(popper) {
8
- @include set-component-css-var('popper', $popper);
7
+ @include set-root-css-vars($name, $popper);
8
+
9
+ @function getCompCssVar($value) {
10
+ @return getCssVar($name, $value);
9
11
  }
10
12
 
11
13
  @include b(popper) {
@@ -9,7 +9,7 @@
9
9
 
10
10
  @include e(text) {
11
11
  font-size: 14px;
12
- color: getCssVar('text-color', 'regular');
12
+ color: getCssVar('text-regular-color');
13
13
  margin-left: 5px;
14
14
  min-width: 50px;
15
15
  line-height: 1;
@@ -6,14 +6,14 @@ body {
6
6
  'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
7
7
  font-weight: 400;
8
8
  font-size: getCssVar('font-size', 'base');
9
- color: getCssVar('text-color', 'primary');
9
+ color: getCssVar('text-primary-color');
10
10
  -webkit-font-smoothing: antialiased;
11
11
  -moz-osx-font-smoothing: grayscale;
12
12
  -webkit-tap-highlight-color: transparent;
13
13
  }
14
14
 
15
15
  a {
16
- color: getCssVar('color', 'primary');
16
+ color: getCssVar('primary-color');
17
17
  text-decoration: none;
18
18
 
19
19
  &:hover,
@@ -32,7 +32,7 @@ h3,
32
32
  h4,
33
33
  h5,
34
34
  h6 {
35
- color: getCssVar('text-color', 'regular');
35
+ color: getCssVar('text-regular-color');
36
36
  font-weight: inherit;
37
37
 
38
38
  &:first-child {
@@ -34,7 +34,7 @@ $name: result;
34
34
  p {
35
35
  margin: 0;
36
36
  font-size: getCssVar('result-title-font-size');
37
- color: getCssVar('text-color', 'primary');
37
+ color: getCssVar('text-primary-color');
38
38
  line-height: 1.3;
39
39
  }
40
40
  }
@@ -45,7 +45,7 @@ $name: result;
45
45
  p {
46
46
  margin: 0;
47
47
  font-size: getCssVar('font-size', 'base');
48
- color: getCssVar('text-color', 'regular');
48
+ color: getCssVar('text-regular-color');
49
49
  line-height: 1.3;
50
50
  }
51
51
  }
@@ -5,7 +5,7 @@
5
5
  @use 'common/var' as *;
6
6
 
7
7
  @include b(select-dropdown) {
8
- z-index: calc(#{getCssVar('index-top')} + 1);
8
+ z-index: calc(#{getCssVar('z-index-top')} + 1);
9
9
  border-radius: getCssVar('border-radius-base');
10
10
  box-sizing: border-box;
11
11
 
@@ -25,7 +25,7 @@ $checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='
25
25
  }
26
26
 
27
27
  @include b(select-dropdown) {
28
- z-index: calc(#{getCssVar('index-top')} + 1);
28
+ z-index: calc(#{getCssVar('z-index-top')} + 1);
29
29
  border-radius: getCssVar('border-radius-base');
30
30
  box-sizing: border-box;
31
31
 
@@ -206,7 +206,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
206
206
  cursor: pointer;
207
207
  position: absolute;
208
208
  top: 8px;
209
- z-index: getCssVar('index-top');
209
+ z-index: getCssVar('z-index-top');
210
210
  right: 25px;
211
211
  color: getCssVar('select-input-color');
212
212
  line-height: 18px;
@@ -273,7 +273,7 @@ $input-inline-start: map.get($input-padding-horizontal, 'default') !default;
273
273
 
274
274
  @include e(selection) {
275
275
  white-space: normal;
276
- z-index: getCssVar('index-normal');
276
+ z-index: getCssVar('z-index-normal');
277
277
  display: flex;
278
278
  align-items: center;
279
279
  flex-wrap: wrap;
@@ -8,7 +8,7 @@
8
8
 
9
9
  @mixin select-tag-normal {
10
10
  white-space: normal;
11
- z-index: getCssVar('index-normal');
11
+ z-index: getCssVar('z-index-normal');
12
12
  display: flex;
13
13
  align-items: center;
14
14
  flex-wrap: wrap;
@@ -23,13 +23,13 @@
23
23
  }
24
24
 
25
25
  .#{$namespace}-icon-close {
26
- background-color: getCssVar('text-color', 'placeholder');
26
+ background-color: getCssVar('text-placeholder-color');
27
27
  right: -7px;
28
28
  top: 0;
29
29
  color: $color-white;
30
30
 
31
31
  &:hover {
32
- background-color: getCssVar('text-color', 'secondary');
32
+ background-color: getCssVar('text-secondary-color');
33
33
  }
34
34
 
35
35
  &::before {
@@ -134,7 +134,6 @@
134
134
 
135
135
  &.#{$namespace}-icon {
136
136
  position: relative;
137
- height: inherit;
138
137
  z-index: 2;
139
138
  }
140
139
  }
@@ -190,7 +189,7 @@
190
189
  cursor: pointer;
191
190
  position: absolute;
192
191
  top: 8px;
193
- z-index: getCssVar('index-top');
192
+ z-index: getCssVar('z-index-top');
194
193
  right: 25px;
195
194
  color: getCssVar('select-input-color');
196
195
  line-height: 18px;
@@ -16,7 +16,6 @@ $name: side-menu;
16
16
  flex-direction: column;
17
17
  border-right: getCssVar('menu-border-right');
18
18
  position: relative;
19
- overflow-x: hidden;
20
19
 
21
20
  @include m(fixed) {
22
21
  position: fixed;
@@ -0,0 +1,83 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(skeleton) {
5
+ @include css-var-from-global(('skeleton', 'circle-size'), ('avatar', 'size'));
6
+ }
7
+
8
+ @mixin circle-size($size) {
9
+ width: $size;
10
+ height: $size;
11
+ line-height: $size;
12
+ }
13
+
14
+ @include b(skeleton) {
15
+ @include e(item) {
16
+ background: getCssVar('skeleton-color');
17
+ display: inline-block;
18
+ height: 16px;
19
+ border-radius: getCssVar('border-radius-base');
20
+ width: 100%;
21
+ }
22
+
23
+ @include e(circle) {
24
+ border-radius: 50%;
25
+
26
+ width: getCssVar('skeleton-circle-size');
27
+ height: getCssVar('skeleton-circle-size');
28
+ line-height: getCssVar('skeleton-circle-size');
29
+ }
30
+
31
+ @include e(button) {
32
+ height: 40px;
33
+ width: 64px;
34
+ border-radius: 4px;
35
+ }
36
+
37
+ @include e(p) {
38
+ width: 100%;
39
+ @include when(last) {
40
+ width: 61%;
41
+ }
42
+
43
+ @include when(first) {
44
+ width: 33%;
45
+ }
46
+ }
47
+
48
+ @include e(text) {
49
+ width: 100%;
50
+ height: getCssVar('font-size-small');
51
+ }
52
+
53
+ @include e(caption) {
54
+ height: getCssVar('font-size-extra-small');
55
+ }
56
+
57
+ @include e(h1) {
58
+ height: getCssVar('font-size-extra-large');
59
+ }
60
+
61
+ @include e(h3) {
62
+ height: getCssVar('font-size-large');
63
+ }
64
+
65
+ @include e(h5) {
66
+ height: getCssVar('font-size-medium');
67
+ }
68
+
69
+ @include e(image) {
70
+ width: unset;
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ border-radius: 0;
75
+
76
+ svg {
77
+ color: getCssVar('svg-monochrome-grey');
78
+ fill: currentColor;
79
+ width: 22%;
80
+ height: 22%;
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,44 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(skeleton) {
6
+ @include set-component-css-var('skeleton', $skeleton);
7
+ }
8
+
9
+ @mixin skeleton-color() {
10
+ background: linear-gradient(
11
+ 90deg,
12
+ getCssVar('skeleton-color') 25%,
13
+ getCssVar('skeleton-to-color') 37%,
14
+ getCssVar('skeleton-color') 63%
15
+ );
16
+ background-size: 400% 100%;
17
+ animation: #{$namespace}-skeleton-loading 1.4s ease infinite;
18
+ }
19
+
20
+ @keyframes #{$namespace}-skeleton-loading {
21
+ 0% {
22
+ background-position: 100% 50%;
23
+ }
24
+ 100% {
25
+ background-position: 0 50%;
26
+ }
27
+ }
28
+
29
+ @include b(skeleton) {
30
+ width: 100%;
31
+ @each $unit in (first-line, paragraph) {
32
+ @include e($unit) {
33
+ height: 16px;
34
+ margin-top: 16px;
35
+ background: getCssVar('skeleton-color');
36
+ }
37
+ }
38
+
39
+ @include when(animated) {
40
+ .#{$namespace}-skeleton__item {
41
+ @include skeleton-color();
42
+ }
43
+ }
44
+ }
@@ -27,13 +27,13 @@
27
27
  width: 100%;
28
28
 
29
29
  @include when(process) {
30
- color: getCssVar('text-color', 'primary');
31
- border-color: getCssVar('text-color', 'primary');
30
+ color: getCssVar('text-primary-color');
31
+ border-color: getCssVar('text-primary-color');
32
32
  }
33
33
 
34
34
  @include when(wait) {
35
- color: getCssVar('text-color', 'placeholder');
36
- border-color: getCssVar('text-color', 'placeholder');
35
+ color: getCssVar('text-placeholder-color');
36
+ border-color: getCssVar('text-placeholder-color');
37
37
  }
38
38
 
39
39
  @include when(success) {
@@ -98,7 +98,7 @@
98
98
  @include e(line) {
99
99
  position: absolute;
100
100
  border-color: inherit;
101
- background-color: getCssVar('text-color', 'placeholder');
101
+ background-color: getCssVar('text-placeholder-color');
102
102
  }
103
103
 
104
104
  @include e(line-inner) {
@@ -123,11 +123,11 @@
123
123
 
124
124
  @include when(process) {
125
125
  font-weight: bold;
126
- color: getCssVar('text-color', 'primary');
126
+ color: getCssVar('text-primary-color');
127
127
  }
128
128
 
129
129
  @include when(wait) {
130
- color: getCssVar('text-color', 'placeholder');
130
+ color: getCssVar('text-placeholder-color');
131
131
  }
132
132
 
133
133
  @include when(success) {
@@ -151,11 +151,11 @@
151
151
  font-weight: normal;
152
152
 
153
153
  @include when(process) {
154
- color: getCssVar('text-color', 'primary');
154
+ color: getCssVar('text-primary-color');
155
155
  }
156
156
 
157
157
  @include when(wait) {
158
- color: getCssVar('text-color', 'placeholder');
158
+ color: getCssVar('text-placeholder-color');
159
159
  }
160
160
 
161
161
  @include when(success) {
@@ -293,7 +293,7 @@
293
293
  position: absolute;
294
294
  height: 15px;
295
295
  width: 1px;
296
- background: getCssVar('text-color', 'placeholder');
296
+ background: getCssVar('text-placeholder-color');
297
297
  }
298
298
 
299
299
  &::before {