vft 0.0.74 → 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 (361) 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/result/result.vue2.js +10 -2
  60. package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
  61. package/es/components/select/index.js +22 -0
  62. package/es/components/select/option-group.vue.js +25 -0
  63. package/es/components/select/option-group.vue2.js +53 -0
  64. package/es/components/select/option.vue.js +27 -0
  65. package/es/components/select/option.vue2.js +58 -0
  66. package/es/components/select/options.js +34 -0
  67. package/es/components/select/select-dropdown.vue.js +15 -0
  68. package/es/components/select/select-dropdown.vue2.js +32 -0
  69. package/es/components/select/select.vue.js +327 -0
  70. package/es/components/select/select.vue2.js +348 -0
  71. package/es/components/select/style/css.js +8 -0
  72. package/es/components/select/style/index.js +8 -0
  73. package/es/components/select/token.js +5 -0
  74. package/es/components/select/useOption.js +71 -0
  75. package/es/components/select/useSelect.js +414 -0
  76. package/es/components/select-v2/select-dropdown.js +1 -1
  77. package/es/components/select-v2/useSelect.js +269 -269
  78. package/es/components/side-menu/side-menu.vue2.js +153 -142
  79. package/es/components/skeleton/index.js +16 -0
  80. package/es/components/skeleton/skeleton-item.vue.js +4 -0
  81. package/es/components/skeleton/skeleton-item.vue2.js +31 -0
  82. package/es/components/skeleton/skeleton.vue.js +4 -0
  83. package/es/components/skeleton/skeleton.vue2.js +55 -0
  84. package/es/components/skeleton/style/css.js +3 -0
  85. package/es/components/skeleton/style/index.js +3 -0
  86. package/es/components/skeleton-item/style/css.js +2 -0
  87. package/es/components/skeleton-item/style/index.js +2 -0
  88. package/es/components/space/index.js +17 -0
  89. package/es/components/space/item.js +24 -0
  90. package/es/components/space/space.js +182 -0
  91. package/es/components/space/style/css.js +2 -0
  92. package/es/components/space/style/index.js +2 -0
  93. package/es/components/space/use-space.js +44 -0
  94. package/es/components/switch/switch.vue2.js +1 -1
  95. package/es/components/tabs/tab-nav.vue2.js +30 -22
  96. package/es/components/tabs/tabs.vue2.js +37 -37
  97. package/es/components/time-picker/common/picker.vue2.js +241 -257
  98. package/es/components/time-picker/common/props.js +10 -6
  99. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
  100. package/es/components/time-picker/time-picker.js +10 -10
  101. package/es/components/time-select/time-select.vue2.js +38 -42
  102. package/es/components/tooltip/content.vue2.js +1 -1
  103. package/es/components/tree/index.js +14 -0
  104. package/es/components/tree/model/node.js +248 -0
  105. package/es/components/tree/model/tree-store.js +197 -0
  106. package/es/components/tree/model/useDragNode.js +71 -0
  107. package/es/components/tree/model/useKeydown.js +81 -0
  108. package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
  109. package/es/components/tree/model/util.js +21 -0
  110. package/es/components/tree/style/css.js +3 -0
  111. package/es/components/tree/style/index.js +3 -0
  112. package/es/components/tree/tree-node-content.vue.js +4 -0
  113. package/es/components/tree/tree-node-content.vue2.js +28 -0
  114. package/es/components/tree/tree-node.vue.js +98 -0
  115. package/es/components/tree/tree-node.vue2.js +152 -0
  116. package/es/components/tree/tree.type.js +1 -0
  117. package/es/components/tree/tree.vue.js +48 -0
  118. package/es/components/tree/tree.vue2.js +268 -0
  119. package/es/components/tree-select/cache-options.js +32 -0
  120. package/es/components/tree-select/index.js +9 -0
  121. package/es/components/tree-select/select.js +38 -0
  122. package/es/components/tree-select/style/css.js +11 -0
  123. package/es/components/tree-select/style/index.js +11 -0
  124. package/es/components/tree-select/tree-select-option.js +21 -0
  125. package/es/components/tree-select/tree-select.vue.js +4 -0
  126. package/es/components/tree-select/tree-select.vue2.js +81 -0
  127. package/es/components/tree-select/tree.js +137 -0
  128. package/es/components/tree-select/utils.js +45 -0
  129. package/es/hooks/index.js +25 -21
  130. package/es/hooks/use-focus/index.js +9 -0
  131. package/es/hooks/use-throttle-render/index.js +21 -0
  132. package/es/index.js +408 -368
  133. package/es/package.json.js +1 -1
  134. package/es/utils/helper.js +5 -2
  135. package/es/utils/index.js +48 -46
  136. package/lib/component.cjs +1 -1
  137. package/lib/components/affix/affix.cjs +1 -0
  138. package/lib/components/affix/affix.vue.cjs +1 -0
  139. package/lib/components/affix/affix.vue2.cjs +1 -0
  140. package/lib/components/affix/index.cjs +1 -0
  141. package/lib/components/affix/style/css.cjs +1 -0
  142. package/lib/components/affix/style/index.cjs +1 -0
  143. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  144. package/lib/components/button/button.vue2.cjs +1 -1
  145. package/lib/components/button/use-button.cjs +1 -1
  146. package/lib/components/card/card.vue.cjs +1 -0
  147. package/lib/components/card/card.vue2.cjs +1 -0
  148. package/lib/components/card/index.cjs +1 -0
  149. package/lib/components/card/instance.cjs +1 -0
  150. package/lib/components/card/style/css.cjs +1 -0
  151. package/lib/components/card/style/index.cjs +1 -0
  152. package/lib/components/check-tag/check-tag.vue.cjs +1 -0
  153. package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
  154. package/lib/components/check-tag/index.cjs +1 -0
  155. package/lib/components/check-tag/style/css.cjs +1 -0
  156. package/lib/components/check-tag/style/index.cjs +1 -0
  157. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  158. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  159. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  160. package/lib/components/date-picker/constants.cjs +1 -1
  161. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  162. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  163. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  164. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  165. package/lib/components/date-picker/date-picker.cjs +1 -1
  166. package/lib/components/date-picker/index.cjs +1 -1
  167. package/lib/components/date-picker/props/shared.cjs +1 -1
  168. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  169. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  170. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  171. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  172. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  173. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  174. package/lib/components/horizontal-menu/constants.cjs +1 -0
  175. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  176. package/lib/components/horizontal-menu/index.cjs +1 -1
  177. package/lib/components/index.cjs +1 -1
  178. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  179. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  180. package/lib/components/menu/menu.vue2.cjs +1 -1
  181. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  182. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  183. package/lib/components/option/style/css.cjs +1 -0
  184. package/lib/components/option/style/index.cjs +1 -0
  185. package/lib/components/option-group/style/css.cjs +1 -0
  186. package/lib/components/option-group/style/index.cjs +1 -0
  187. package/lib/components/popconfirm/index.cjs +1 -0
  188. package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
  189. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
  190. package/lib/components/popconfirm/style/css.cjs +1 -0
  191. package/lib/components/popconfirm/style/index.cjs +1 -0
  192. package/lib/components/result/result.vue2.cjs +1 -1
  193. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  194. package/lib/components/select/index.cjs +1 -0
  195. package/lib/components/select/option-group.vue.cjs +1 -0
  196. package/lib/components/select/option-group.vue2.cjs +1 -0
  197. package/lib/components/select/option.vue.cjs +1 -0
  198. package/lib/components/select/option.vue2.cjs +1 -0
  199. package/lib/components/select/options.cjs +1 -0
  200. package/lib/components/select/select-dropdown.vue.cjs +1 -0
  201. package/lib/components/select/select-dropdown.vue2.cjs +1 -0
  202. package/lib/components/select/select.vue.cjs +1 -0
  203. package/lib/components/select/select.vue2.cjs +1 -0
  204. package/lib/components/select/style/css.cjs +1 -0
  205. package/lib/components/select/style/index.cjs +1 -0
  206. package/lib/components/select/token.cjs +1 -0
  207. package/lib/components/select/useOption.cjs +1 -0
  208. package/lib/components/select/useSelect.cjs +1 -0
  209. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  210. package/lib/components/select-v2/useSelect.cjs +1 -1
  211. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  212. package/lib/components/skeleton/index.cjs +1 -0
  213. package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
  214. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
  215. package/lib/components/skeleton/skeleton.vue.cjs +1 -0
  216. package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
  217. package/lib/components/skeleton/style/css.cjs +1 -0
  218. package/lib/components/skeleton/style/index.cjs +1 -0
  219. package/lib/components/skeleton-item/style/css.cjs +1 -0
  220. package/lib/components/skeleton-item/style/index.cjs +1 -0
  221. package/lib/components/space/index.cjs +1 -0
  222. package/lib/components/space/item.cjs +1 -0
  223. package/lib/components/space/space.cjs +1 -0
  224. package/lib/components/space/style/css.cjs +1 -0
  225. package/lib/components/space/style/index.cjs +1 -0
  226. package/lib/components/space/use-space.cjs +1 -0
  227. package/lib/components/switch/switch.vue2.cjs +1 -1
  228. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  229. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  230. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  231. package/lib/components/time-picker/common/props.cjs +1 -1
  232. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  233. package/lib/components/time-picker/time-picker.cjs +1 -1
  234. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  235. package/lib/components/tooltip/content.vue2.cjs +1 -1
  236. package/lib/components/tree/index.cjs +1 -0
  237. package/lib/components/tree/model/node.cjs +1 -0
  238. package/lib/components/tree/model/tree-store.cjs +1 -0
  239. package/lib/components/tree/model/useDragNode.cjs +1 -0
  240. package/lib/components/tree/model/useKeydown.cjs +1 -0
  241. package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
  242. package/lib/components/tree/model/util.cjs +1 -0
  243. package/lib/components/tree/style/css.cjs +1 -0
  244. package/lib/components/tree/style/index.cjs +1 -0
  245. package/lib/components/tree/tree-node-content.vue.cjs +1 -0
  246. package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
  247. package/lib/components/tree/tree-node.vue.cjs +1 -0
  248. package/lib/components/tree/tree-node.vue2.cjs +1 -0
  249. package/lib/components/tree/tree.type.cjs +1 -0
  250. package/lib/components/tree/tree.vue.cjs +1 -0
  251. package/lib/components/tree/tree.vue2.cjs +1 -0
  252. package/lib/components/tree-select/cache-options.cjs +1 -0
  253. package/lib/components/tree-select/index.cjs +1 -0
  254. package/lib/components/tree-select/select.cjs +1 -0
  255. package/lib/components/tree-select/style/css.cjs +1 -0
  256. package/lib/components/tree-select/style/index.cjs +1 -0
  257. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  258. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  259. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  260. package/lib/components/tree-select/tree.cjs +1 -0
  261. package/lib/components/tree-select/utils.cjs +1 -0
  262. package/lib/hooks/index.cjs +1 -1
  263. package/lib/hooks/use-focus/index.cjs +1 -0
  264. package/lib/hooks/use-throttle-render/index.cjs +1 -0
  265. package/lib/index.cjs +1 -1
  266. package/lib/package.json.cjs +1 -1
  267. package/lib/utils/helper.cjs +1 -1
  268. package/lib/utils/index.cjs +1 -1
  269. package/package.json +2 -2
  270. package/tags.json +1 -1
  271. package/theme-style/base.css +1 -1
  272. package/theme-style/index.css +1 -1
  273. package/theme-style/src/alert.scss +1 -1
  274. package/theme-style/src/autocomplete.scss +2 -2
  275. package/theme-style/src/breadcrumb.scss +4 -4
  276. package/theme-style/src/calendar.scss +2 -2
  277. package/theme-style/src/card.scss +1 -1
  278. package/theme-style/src/carousel.scss +1 -1
  279. package/theme-style/src/cascader.scss +3 -3
  280. package/theme-style/src/check-tag.scss +3 -3
  281. package/theme-style/src/checkbox.scss +1 -1
  282. package/theme-style/src/color-picker.scss +2 -2
  283. package/theme-style/src/common/var.scss +527 -521
  284. package/theme-style/src/date-picker/date-picker.scss +1 -1
  285. package/theme-style/src/date-picker/date-range-picker.scss +2 -2
  286. package/theme-style/src/date-picker/date-table.scss +1 -1
  287. package/theme-style/src/date-picker/month-table.scss +2 -2
  288. package/theme-style/src/date-picker/picker-panel.scss +4 -5
  289. package/theme-style/src/date-picker/picker.scss +7 -9
  290. package/theme-style/src/date-picker/time-picker.scss +2 -2
  291. package/theme-style/src/date-picker/time-spinner.scss +6 -8
  292. package/theme-style/src/date-picker/year-table.scss +3 -3
  293. package/theme-style/src/date-time-select.scss +3 -4
  294. package/theme-style/src/descriptions-item.scss +4 -4
  295. package/theme-style/src/descriptions.scss +2 -2
  296. package/theme-style/src/header-layout.scss +1 -1
  297. package/theme-style/src/horizontal-menu.scss +27 -39
  298. package/theme-style/src/image-viewer.scss +1 -1
  299. package/theme-style/src/index.scss +3 -0
  300. package/theme-style/src/input-number.scss +1 -1
  301. package/theme-style/src/menu.scss +76 -66
  302. package/theme-style/src/mixins/_var.scss +2 -2
  303. package/theme-style/src/mixins/mixins.scss +2 -2
  304. package/theme-style/src/popconfirm.scss +16 -0
  305. package/theme-style/src/popper.scss +4 -2
  306. package/theme-style/src/progress.scss +1 -1
  307. package/theme-style/src/reset.scss +3 -3
  308. package/theme-style/src/result.scss +2 -2
  309. package/theme-style/src/select-dropdown-v2.scss +1 -1
  310. package/theme-style/src/select-dropdown.scss +1 -1
  311. package/theme-style/src/select-v2.scss +2 -2
  312. package/theme-style/src/select.scss +4 -5
  313. package/theme-style/src/skeleton-item.scss +83 -0
  314. package/theme-style/src/skeleton.scss +44 -0
  315. package/theme-style/src/step.scss +10 -10
  316. package/theme-style/src/tabs.scss +15 -155
  317. package/theme-style/src/timeline-item.scss +2 -2
  318. package/theme-style/src/transfer.scss +5 -5
  319. package/theme-style/src/tree.scss +2 -5
  320. package/theme-style/src/upload.scss +11 -11
  321. package/theme-style/src/var.scss +1 -1
  322. package/theme-style/vft-alert.css +1 -1
  323. package/theme-style/vft-autocomplete.css +1 -1
  324. package/theme-style/vft-breadcrumb.css +1 -1
  325. package/theme-style/vft-calendar.css +1 -1
  326. package/theme-style/vft-card.css +1 -1
  327. package/theme-style/vft-carousel.css +1 -1
  328. package/theme-style/vft-cascader.css +1 -1
  329. package/theme-style/vft-check-tag.css +1 -1
  330. package/theme-style/vft-checkbox.css +1 -1
  331. package/theme-style/vft-color-picker.css +1 -1
  332. package/theme-style/vft-date-picker.css +1 -1
  333. package/theme-style/vft-date-time-select.css +1 -1
  334. package/theme-style/vft-descriptions-item.css +1 -1
  335. package/theme-style/vft-descriptions.css +1 -1
  336. package/theme-style/vft-header-layout.css +1 -1
  337. package/theme-style/vft-horizontal-menu.css +1 -1
  338. package/theme-style/vft-image-viewer.css +1 -1
  339. package/theme-style/vft-input-number.css +1 -1
  340. package/theme-style/vft-menu.css +1 -1
  341. package/theme-style/vft-popconfirm.css +1 -0
  342. package/theme-style/vft-popper.css +1 -1
  343. package/theme-style/vft-progress.css +1 -1
  344. package/theme-style/vft-reset.css +1 -1
  345. package/theme-style/vft-result.css +1 -1
  346. package/theme-style/vft-select-dropdown-v2.css +1 -1
  347. package/theme-style/vft-select-dropdown.css +1 -1
  348. package/theme-style/vft-select-v2.css +1 -1
  349. package/theme-style/vft-select.css +1 -1
  350. package/theme-style/vft-skeleton-item.css +1 -0
  351. package/theme-style/vft-skeleton.css +1 -0
  352. package/theme-style/vft-step.css +1 -1
  353. package/theme-style/vft-tabs.css +1 -1
  354. package/theme-style/vft-time-picker.css +1 -1
  355. package/theme-style/vft-time-select.css +1 -1
  356. package/theme-style/vft-timeline-item.css +1 -1
  357. package/theme-style/vft-transfer.css +1 -1
  358. package/theme-style/vft-tree.css +1 -1
  359. package/theme-style/vft-upload.css +1 -1
  360. package/theme-style/vft-var.css +1 -1
  361. package/web-types.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as E, toRefs as ee, useSlots as te, getCurrentInstance as oe, ref as y, computed as g, h as C, createVNode as f, onMounted as le, nextTick as ne, watch as re, isVNode as ie } from "vue";
1
+ import { defineComponent as I, toRefs as le, useSlots as ne, getCurrentInstance as re, ref as C, computed as v, h as M, createVNode as f, onMounted as ie, nextTick as ae, watch as pe, isVNode as ue } from "vue";
2
2
  import "../divider/index.js";
3
- import { VftIcon as ae } from "../icon/index.js";
3
+ import { VftIcon as se } from "../icon/index.js";
4
4
  import "../avatar/index.js";
5
5
  import "../empty/index.js";
6
6
  import "../result/index.js";
@@ -9,8 +9,8 @@ import "../popper/index.js";
9
9
  import "../collapse-transition/index.js";
10
10
  import "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
- import { VftMenu as pe, VftSubMenu as ue, VftMenuItem as A } from "../menu/index.js";
13
- import { isUrl as se, isNullOrUndefined as V, addUnit as j, isNumber as de } from "@vft/utils";
12
+ import { VftMenu as de, VftSubMenu as ce, VftMenuItem as j } from "../menu/index.js";
13
+ import { isUrl as me, isNullOrUndefined as E, addUnit as q, isNumber as fe } from "@vft/utils";
14
14
  import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/index.js";
16
16
  import "../header-layout/index.js";
@@ -51,6 +51,8 @@ import "../virtual-list/components/fixed-size-grid.js";
51
51
  import "../virtual-list/components/dynamic-size-grid.js";
52
52
  import "../virtual-list/props.js";
53
53
  import "../select-v2/index.js";
54
+ import "../select/index.js";
55
+ import "../tree-select/index.js";
54
56
  import "../verify-code/index.js";
55
57
  import "../table/index.js";
56
58
  import "../image-viewer/index.js";
@@ -62,6 +64,12 @@ import "../row/index.js";
62
64
  import "../horizontal-menu/index.js";
63
65
  import "../time-picker/index.js";
64
66
  import "../date-picker/index.js";
67
+ import "../check-tag/index.js";
68
+ import "../tree/index.js";
69
+ import "../skeleton/index.js";
70
+ import "../space/index.js";
71
+ import "../card/index.js";
72
+ import "../popconfirm/index.js";
65
73
  import "../md-container/index.js";
66
74
  import "../md-comment/index.js";
67
75
  import "../md-tabs/index.js";
@@ -69,26 +77,26 @@ import "../md-vue-playground/index.js";
69
77
  import "../md-code-demo/index.js";
70
78
  import "../md-code-tabs/index.js";
71
79
  import "../message/index.js";
72
- import { useNamespace as ce } from "../../hooks/use-namespace/index.js";
80
+ import { useNamespace as he } from "../../hooks/use-namespace/index.js";
73
81
  import "@popperjs/core";
74
82
  import "lodash";
75
83
  import "../../hooks/use-z-index/index.js";
76
84
  import "@vueuse/core";
77
85
  import "../../utils/ns-cover.js";
78
- import { listenerRouteChange as me, useRouterHelper as fe } from "@vft/router";
79
- import { useSortable as he } from "@vft/use";
80
- import { useDragLine as ge } from "./use-drag-line.js";
81
- const p = (
86
+ import { listenerRouteChange as ge, useRouterHelper as ve } from "@vft/router";
87
+ import { useSortable as be } from "@vft/use";
88
+ import { useDragLine as ye } from "./use-drag-line.js";
89
+ const u = (
82
90
  /* hoist-static*/
83
- ce("side-menu")
91
+ he("side-menu")
84
92
  );
85
- function ve(v) {
86
- return typeof v == "function" || Object.prototype.toString.call(v) === "[object Object]" && !ie(v);
93
+ function Ce(b) {
94
+ return typeof b == "function" || Object.prototype.toString.call(b) === "[object Object]" && !ue(b);
87
95
  }
88
- const be = E({
89
- name: p.b()
90
- }), Ft = /* @__PURE__ */ E({
91
- ...be,
96
+ const Me = I({
97
+ name: u.b()
98
+ }), oo = /* @__PURE__ */ I({
99
+ ...Me,
92
100
  props: {
93
101
  isFixedLeft: {
94
102
  type: Boolean,
@@ -140,21 +148,25 @@ const be = E({
140
148
  type: Boolean,
141
149
  default: !0
142
150
  },
151
+ disabledJudgeTurnOver: {
152
+ type: Boolean,
153
+ default: !1
154
+ },
143
155
  defaultActive: null,
144
156
  defaultOpeneds: null
145
157
  },
146
158
  emits: ["update:collapse", "update:width", "dragEnd", "dragWidthEnd", "select", "subMenuClick", "menuItemMouseenter", "menuItemMouseleave"],
147
- setup(v, {
148
- expose: I,
149
- emit: m
159
+ setup(b, {
160
+ expose: L,
161
+ emit: c
150
162
  }) {
151
- const t = v, {
152
- defaultActive: M,
163
+ const t = b, {
164
+ defaultActive: S,
153
165
  collapse: h,
154
- uniqueOpened: q,
155
- defaultOpeneds: S,
156
- openMenuCollapse: L
157
- } = ee(t), i = te(), O = oe(), B = y(), a = g(() => ({
166
+ uniqueOpened: P,
167
+ defaultOpeneds: O,
168
+ openMenuCollapse: H
169
+ } = le(t), r = ne(), B = re(), _ = C(), a = v(() => ({
158
170
  path: "path",
159
171
  children: "children",
160
172
  title: "title",
@@ -163,184 +175,183 @@ const be = E({
163
175
  disabled: "disabled",
164
176
  ...t.attrMapping
165
177
  }));
166
- me((e) => {
167
- var n;
168
- !e || (n = e.meta) != null && n.hideSide && !t.useRouterJump || (B.value = e.path);
169
- });
170
- const P = (e) => {
178
+ ge((e) => {
171
179
  var o;
172
- const n = e.e;
173
- if (t.autoScrollActiveDom && n) {
174
- const u = de(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, r = n.target;
175
- (o = b.value) != null && o.menu && r && setTimeout(() => {
176
- b.value.menu.scrollTop = b.value.menu.scrollTop + (r.getBoundingClientRect().top - b.value.menu.getBoundingClientRect().top) + u;
180
+ !e || (o = e.meta) != null && o.hideSide && !t.useRouterJump || (_.value = e.path);
181
+ });
182
+ const U = (e) => {
183
+ var l;
184
+ const o = e.e;
185
+ if (t.autoScrollActiveDom && o) {
186
+ const p = fe(t.autoScrollActiveDom) ? t.autoScrollActiveDom : 0, n = o.target;
187
+ (l = y.value) != null && l.menu && n && setTimeout(() => {
188
+ y.value.menu.scrollTop = y.value.menu.scrollTop + (n.getBoundingClientRect().top - y.value.menu.getBoundingClientRect().top) + p;
177
189
  }, 300);
178
190
  }
179
- m("subMenuClick", e);
180
- }, H = (e) => {
181
- m("menuItemMouseenter", e);
182
- }, J = (e) => {
183
- m("menuItemMouseleave", e);
184
- }, _ = (e, n) => {
185
- const o = e[a.value.path], u = e[a.value.title], r = e == null ? void 0 : e[a.value.children], s = e == null ? void 0 : e[a.value.index], d = e == null ? void 0 : e[a.value.icon], c = !!(e != null && e[a.value.disabled]);
186
- return r != null && r.length ? C(
191
+ c("subMenuClick", e);
192
+ }, F = (e) => {
193
+ c("menuItemMouseenter", e);
194
+ }, Z = (e) => {
195
+ c("menuItemMouseleave", e);
196
+ }, T = (e, o) => {
197
+ const l = e[a.value.path], p = e[a.value.title], n = e == null ? void 0 : e[a.value.children], m = e == null ? void 0 : e[a.value.index], s = e == null ? void 0 : e[a.value.icon], d = !!(e != null && e[a.value.disabled]), g = t.disabledJudgeTurnOver ? !d : d, N = m || l || o + p;
198
+ return n != null && n.length ? M(
187
199
  // @ts-ignore
188
- ue,
200
+ ce,
189
201
  {
190
202
  ...e,
191
203
  popperAppendToBody: !0,
192
- key: s || o,
193
- index: s || o,
194
- title: u,
195
- icon: d,
196
- class: s || o,
197
- disabled: t.openDisabled && c,
198
- popperClass: p.e("popper")
204
+ key: N,
205
+ index: N,
206
+ title: p,
207
+ icon: s,
208
+ disabled: t.openDisabled && g,
209
+ popperClass: u.e("popper")
199
210
  },
200
211
  {
201
- default: () => r == null ? void 0 : r.map((l, G) => {
202
- var k;
203
- const w = l[a.value.path], N = l[a.value.index], K = l[a.value.icon], Q = l[a.value.title], X = !!l[a.value.disabled];
204
- return (k = l == null ? void 0 : l[a.value.children]) != null && k.length ? _(l, G) : (
212
+ default: () => n == null ? void 0 : n.map((i, X) => {
213
+ var V;
214
+ const w = i[a.value.path], W = i[a.value.index], ee = i[a.value.icon], te = i[a.value.title], A = !!i[a.value.disabled], oe = t.disabledJudgeTurnOver ? !A : A;
215
+ return (V = i == null ? void 0 : i[a.value.children]) != null && V.length ? T(i, X) : (
205
216
  // @ts-ignore
206
- C(A, {
207
- ...l,
208
- key: N || w,
209
- index: N || w,
217
+ M(j, {
218
+ ...i,
219
+ key: W || w,
220
+ index: W || w,
210
221
  route: w,
211
- icon: K,
212
- title: Q,
213
- disabled: t.openDisabled && X
214
- }, i.menuItem ? () => {
215
- var W;
216
- return (W = i.menuItem) == null ? void 0 : W.call(i, {
217
- item: l
222
+ icon: ee,
223
+ title: te,
224
+ disabled: t.openDisabled && oe
225
+ }, r.menuItem ? () => {
226
+ var J;
227
+ return (J = r.menuItem) == null ? void 0 : J.call(r, {
228
+ item: i
218
229
  });
219
230
  } : "")
220
231
  );
221
232
  })
222
233
  }
223
- ) : C(A, {
234
+ ) : M(j, {
224
235
  ...e,
225
- key: s || o,
226
- index: s || o,
227
- title: u,
228
- route: o,
229
- icon: d,
230
- disabled: t.openDisabled && c,
231
- onMouseenter: () => H(e),
232
- onMouseleave: () => J(e)
233
- }, i.menuItem ? () => {
234
- var l;
235
- return (l = i.menuItem) == null ? void 0 : l.call(i, {
236
+ key: m || l,
237
+ index: m || l,
238
+ title: p,
239
+ route: l,
240
+ icon: s,
241
+ disabled: t.openDisabled && g,
242
+ onMouseenter: () => F(e),
243
+ onMouseleave: () => Z(e)
244
+ }, r.menuItem ? () => {
245
+ var i;
246
+ return (i = r.menuItem) == null ? void 0 : i.call(r, {
236
247
  item: e,
237
- index: n
248
+ index: o
238
249
  });
239
250
  } : "");
240
- }, b = y(), U = g(() => ({
251
+ }, y = C(), $ = v(() => ({
241
252
  ...t.collapseWidth === 0 && h.value ? {
242
253
  width: 0
243
254
  } : {},
244
255
  height: `calc(100% - ${t.menuTopBottomHeight}px)`
245
- })), F = g(() => {
246
- var n, o;
256
+ })), z = v(() => {
257
+ var o, l;
247
258
  let e;
248
- return C(f(pe, {
249
- ref: b,
250
- onSelect: Z,
251
- onOpen: P,
252
- defaultActive: (M == null ? void 0 : M.value) || B.value,
253
- defaultOpeneds: S == null ? void 0 : S.value,
254
- class: [p.e("con"), (n = t.dragOption) != null && n.dragClassName ? p.e((o = t.dragOption) == null ? void 0 : o.dragClassName) : ""],
255
- style: U.value,
256
- collapse: L.value ? h.value : !1,
257
- uniqueOpened: q.value,
259
+ return M(f(de, {
260
+ ref: y,
261
+ onSelect: Y,
262
+ onOpen: U,
263
+ defaultActive: (S == null ? void 0 : S.value) || _.value,
264
+ defaultOpeneds: O == null ? void 0 : O.value,
265
+ class: [u.e("con"), (o = t.dragOption) != null && o.dragClassName ? u.e((l = t.dragOption) == null ? void 0 : l.dragClassName) : ""],
266
+ style: $.value,
267
+ collapse: H.value ? h.value : !1,
268
+ uniqueOpened: P.value,
258
269
  collapseTransition: !1
259
- }, ve(e = t.menus.map((u, r) => _(u, r))) ? e : {
270
+ }, Ce(e = t.menus.map((p, n) => T(p, n))) ? e : {
260
271
  default: () => [e]
261
272
  }));
262
- }), R = O.appContext.config.globalProperties.$router;
263
- async function Z(e) {
264
- var n, o, u;
273
+ }), D = B.appContext.config.globalProperties.$router;
274
+ async function Y(e) {
275
+ var o, l, p;
265
276
  if (t.useRouterJump) {
266
277
  const {
267
- go: r
268
- } = fe(R), s = e.route;
269
- let d = e.route;
270
- e.indexPath.some((l) => se(l)) && (d = e.indexPath.slice(-2).join("/"));
271
- const c = (u = (o = (n = R.getRoutes().filter((l) => l.path === d)) == null ? void 0 : n[0]) == null ? void 0 : o.meta) == null ? void 0 : u.linkTarget;
272
- r(c ? {
273
- url: s,
278
+ go: n
279
+ } = ve(D), m = e.route;
280
+ let s = e.route;
281
+ e.indexPath.some((g) => me(g)) && (s = e.indexPath.slice(-2).join("/"));
282
+ const d = (p = (l = (o = D.getRoutes().filter((g) => g.path === s)) == null ? void 0 : o[0]) == null ? void 0 : l.meta) == null ? void 0 : p.linkTarget;
283
+ n(d ? {
284
+ url: m,
274
285
  winOpenOpt: {
275
- target: c
286
+ target: d
276
287
  }
277
- } : s);
288
+ } : m);
278
289
  }
279
- m("select", e);
290
+ c("select", e);
280
291
  }
281
- le(() => {
282
- ne(() => {
283
- var e, n, o;
292
+ ie(() => {
293
+ ae(() => {
294
+ var e, o, l;
284
295
  if ((e = t.dragOption) != null && e.dragClassName) {
285
- const u = (o = document.querySelectorAll("." + p.e((n = t.dragOption) == null ? void 0 : n.dragClassName))) == null ? void 0 : o[0], {
286
- initSortable: r
287
- } = he(u, {
296
+ const p = (l = document.querySelectorAll("." + u.e((o = t.dragOption) == null ? void 0 : o.dragClassName))) == null ? void 0 : l[0], {
297
+ initSortable: n
298
+ } = be(p, {
288
299
  draggable: ".vft-menu-item",
289
- onEnd: (s) => {
300
+ onEnd: (m) => {
290
301
  const {
291
- oldIndex: d,
292
- newIndex: c
293
- } = s;
294
- V(d) || V(c) || d === c || m("dragEnd", d, c);
302
+ oldIndex: s,
303
+ newIndex: d
304
+ } = m;
305
+ E(s) || E(d) || s === d || c("dragEnd", s, d);
295
306
  },
296
307
  ...t.dragOption
297
308
  });
298
- r();
309
+ n();
299
310
  }
300
311
  });
301
312
  });
302
- const x = y(), D = y(), T = y(), $ = g(() => ({
313
+ const x = C(), R = C(), k = C(), G = v(() => ({
303
314
  ...t.collapseWidth === 0 && h.value ? {
304
315
  borderRight: "none"
305
316
  } : {},
306
- width: j(t.width),
317
+ width: q(t.width),
307
318
  height: t.height
308
319
  }));
309
- re(() => h.value, (e) => {
310
- e ? m("update:width", t.collapseWidth) : m("update:width", T.value || t.width), T.value = t.width;
311
- }), t.dragWidthCfg && ge(x, D, O);
312
- const z = g(() => ({
313
- left: j(t.width)
314
- })), Y = g(() => [p.b(), t.isFixedLeft ? p.m("fixed") : ""]);
315
- return I({
320
+ pe(() => h.value, (e) => {
321
+ e ? c("update:width", t.collapseWidth) : c("update:width", k.value || t.width), k.value = t.width;
322
+ }), t.dragWidthCfg && ye(x, R, B);
323
+ const K = v(() => ({
324
+ left: q(t.width)
325
+ })), Q = v(() => [u.b(), t.isFixedLeft ? u.m("fixed") : ""]);
326
+ return L({
316
327
  sideRef: x
317
328
  }), () => {
318
329
  var e;
319
330
  return f("div", {
320
331
  ref: x,
321
- class: Y.value,
322
- style: $.value
323
- }, [i.top ? f("div", {
324
- class: p.e("top")
325
- }, [i.top()]) : null, F.value, i.bottom ? f("div", {
326
- class: p.e("bottom")
327
- }, [i.bottom()]) : t.showCollapse ? f("div", {
328
- onClick: () => m("update:collapse", !h.value),
329
- class: [p.e("bottom"), p.e("collapse")]
330
- }, [f(ae, {
332
+ class: Q.value,
333
+ style: G.value
334
+ }, [r.top ? f("div", {
335
+ class: u.e("top")
336
+ }, [r.top()]) : null, z.value, r.bottom ? f("div", {
337
+ class: u.e("bottom")
338
+ }, [r.bottom()]) : t.showCollapse ? f("div", {
339
+ onClick: () => c("update:collapse", !h.value),
340
+ class: [u.e("bottom"), u.e("collapse")]
341
+ }, [f(se, {
331
342
  style: {
332
343
  transform: h.value ? "rotateY(180deg)" : ""
333
344
  },
334
345
  size: 20,
335
346
  icon: "ico-iconoir:sidebar-collapse"
336
- }, null)]) : null, (e = i.default) == null ? void 0 : e.call(i), t.dragWidthCfg ? f("div", {
337
- ref: D,
338
- style: z.value,
339
- class: p.e("drag-bar")
347
+ }, null)]) : null, (e = r.default) == null ? void 0 : e.call(r), t.dragWidthCfg ? f("div", {
348
+ ref: R,
349
+ style: K.value,
350
+ class: u.e("drag-bar")
340
351
  }, null) : null]);
341
352
  };
342
353
  }
343
354
  });
344
355
  export {
345
- Ft as default
356
+ oo as default
346
357
  };
@@ -0,0 +1,16 @@
1
+ import { withInstall as o, withNoopInstall as m } from "../../utils/vue/install.js";
2
+ import "vue";
3
+ import "@vft/utils";
4
+ import "lodash";
5
+ import "@vueuse/core";
6
+ import "../../utils/ns-cover.js";
7
+ import i from "./skeleton.vue2.js";
8
+ import t from "./skeleton-item.vue2.js";
9
+ const c = o(i, {
10
+ SkeletonItem: t
11
+ }), I = m(t);
12
+ export {
13
+ c as VftSkeleton,
14
+ I as VftSkeletonItem,
15
+ c as default
16
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./skeleton-item.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as m, openBlock as r, createElementBlock as n, normalizeClass as a, unref as e, createBlock as i, createCommentVNode as c } from "vue";
2
+ import { useNamespace as p } from "../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../utils/ns-cover.js";
9
+ import { VftIcon as l } from "../icon/index.js";
10
+ const s = m({
11
+ name: "VftSkeletonItem"
12
+ }), N = /* @__PURE__ */ m({
13
+ ...s,
14
+ props: {
15
+ variant: { default: "text" }
16
+ },
17
+ setup(t) {
18
+ const o = p("skeleton");
19
+ return (f, u) => (r(), n("div", {
20
+ class: a([e(o).e("item"), e(o).e(t.variant)])
21
+ }, [
22
+ t.variant === "image" ? (r(), i(e(l), {
23
+ key: 0,
24
+ icon: "ico-ep:picture-filled"
25
+ })) : c("", !0)
26
+ ], 2));
27
+ }
28
+ });
29
+ export {
30
+ N as default
31
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./skeleton.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,55 @@
1
+ import { defineComponent as k, computed as y, unref as t, openBlock as r, createElementBlock as l, mergeProps as u, Fragment as n, renderList as d, renderSlot as c, createVNode as h, normalizeClass as f, createBlock as B, createCommentVNode as $, normalizeProps as w } from "vue";
2
+ import { useNamespace as v } from "../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../utils/ns-cover.js";
9
+ import { useThrottleRender as C } from "../../hooks/use-throttle-render/index.js";
10
+ import p from "./skeleton-item.vue2.js";
11
+ const a = (
12
+ /* hoist-static*/
13
+ v("skeleton")
14
+ ), N = k({
15
+ name: a.b()
16
+ }), q = /* @__PURE__ */ k({
17
+ ...N,
18
+ props: {
19
+ animated: { type: Boolean, default: !1 },
20
+ count: { default: 1 },
21
+ rows: { default: 3 },
22
+ loading: { type: Boolean, default: !0 },
23
+ throttle: null
24
+ },
25
+ setup(e, { expose: g }) {
26
+ const s = C(y(() => e.loading), e.throttle);
27
+ return g({
28
+ /** @description loading state */
29
+ uiLoading: s
30
+ }), (o, b) => t(s) ? (r(), l("div", u({
31
+ key: 0,
32
+ class: [t(a).b(), t(a).is("animated", e.animated)]
33
+ }, o.$attrs), [
34
+ (r(!0), l(n, null, d(e.count, (m) => (r(), l(n, { key: m }, [
35
+ e.loading ? c(o.$slots, "template", { key: m }, () => [
36
+ h(p, {
37
+ class: f(t(a).is("first")),
38
+ variant: "p"
39
+ }, null, 8, ["class"]),
40
+ (r(!0), l(n, null, d(e.rows, (i) => (r(), B(p, {
41
+ key: i,
42
+ class: f([
43
+ t(a).e("paragraph"),
44
+ t(a).is("last", i === e.rows && e.rows > 1)
45
+ ]),
46
+ variant: "p"
47
+ }, null, 8, ["class"]))), 128))
48
+ ]) : $("", !0)
49
+ ], 64))), 128))
50
+ ], 16)) : c(o.$slots, "default", w(u({ key: 1 }, o.$attrs)));
51
+ }
52
+ });
53
+ export {
54
+ q as default
55
+ };
@@ -0,0 +1,3 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-skeleton-item.css";
3
+ import "vft/theme-style/vft-skeleton.css";
@@ -0,0 +1,3 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/skeleton-item.scss";
3
+ import "vft/theme-style/src/skeleton.scss";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-skeleton-item.css";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/skeleton-item.scss";
@@ -0,0 +1,17 @@
1
+ import { withInstall as o } from "../../utils/vue/install.js";
2
+ import "vue";
3
+ import "@vft/utils";
4
+ import "lodash";
5
+ import "@vueuse/core";
6
+ import "../../utils/ns-cover.js";
7
+ import p from "./space.js";
8
+ import { spaceProps as S } from "./space.js";
9
+ import "./item.js";
10
+ import { useSpace as u } from "./use-space.js";
11
+ const c = o(p);
12
+ export {
13
+ c as VftSpace,
14
+ c as default,
15
+ S as spaceProps,
16
+ u as useSpace
17
+ };
@@ -0,0 +1,24 @@
1
+ import { defineComponent as r, computed as s, h as m, renderSlot as i } from "vue";
2
+ import "@vft/utils";
3
+ import { buildProps as a } from "../../utils/vue/props/runtime.js";
4
+ import "@vueuse/core";
5
+ import "../../utils/ns-cover.js";
6
+ import "lodash";
7
+ import { useNamespace as c } from "../../hooks/use-namespace/index.js";
8
+ import "@popperjs/core";
9
+ import "../../hooks/use-z-index/index.js";
10
+ const n = a({
11
+ prefixCls: {
12
+ type: String
13
+ }
14
+ }), v = r({
15
+ name: "ElSpaceItem",
16
+ props: n,
17
+ setup(e, { slots: t }) {
18
+ const p = c("space"), o = s(() => `${e.prefixCls || p.b()}__item`);
19
+ return () => m("div", { class: o.value }, i(t, "default"));
20
+ }
21
+ });
22
+ export {
23
+ v as default
24
+ };