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
package/es/component.js CHANGED
@@ -9,30 +9,30 @@ import { VftBackTop as V } from "./components/back-top/index.js";
9
9
  import { VftPopover as e } from "./components/popover/index.js";
10
10
  import { VftPopper as a } from "./components/popper/index.js";
11
11
  import { VftLogo as n } from "./components/logo/index.js";
12
- import { VftIconText as u } from "./components/icon-text/index.js";
13
- import { VftImage as l } from "./components/image/index.js";
14
- import { VftFullScreen as d } from "./components/full-screen/index.js";
15
- import { VftInput as c } from "./components/input/index.js";
12
+ import { VftIconText as l } from "./components/icon-text/index.js";
13
+ import { VftImage as u } from "./components/image/index.js";
14
+ import { VftFullScreen as c } from "./components/full-screen/index.js";
15
+ import { VftInput as d } from "./components/input/index.js";
16
16
  import { VftLink as C } from "./components/link/index.js";
17
- import { VftTag as s } from "./components/tag/index.js";
18
- import { VftQrcode as M } from "./components/qrcode/index.js";
19
- import { VftOverlay as T } from "./components/overlay/index.js";
20
- import { VftSideMenu as b } from "./components/side-menu/index.js";
17
+ import { VftTag as T } from "./components/tag/index.js";
18
+ import { VftQrcode as s } from "./components/qrcode/index.js";
19
+ import { VftOverlay as M } from "./components/overlay/index.js";
20
+ import { VftSideMenu as S } from "./components/side-menu/index.js";
21
21
  import { VftClamp as g } from "./components/clamp/index.js";
22
22
  import { VftPageWrapper as I } from "./components/page-wrapper/index.js";
23
- import { VftClampToggle as D } from "./components/clamp-toggle/index.js";
24
- import { VftRouterViewContent as P } from "./components/router-view-content/index.js";
25
- import { VftIframeLayout as k } from "./components/iframe-layout/index.js";
26
- import { VftFooterLayout as S } from "./components/footer-layout/index.js";
23
+ import { VftClampToggle as b } from "./components/clamp-toggle/index.js";
24
+ import { VftRouterViewContent as k } from "./components/router-view-content/index.js";
25
+ import { VftIframeLayout as P } from "./components/iframe-layout/index.js";
26
+ import { VftFooterLayout as D } from "./components/footer-layout/index.js";
27
27
  import { VftHeaderLayout as w } from "./components/header-layout/index.js";
28
28
  import { VftPagination as y } from "./components/pagination/index.js";
29
- import { VftTabs as x, VftTabPane as L } from "./components/tabs/index.js";
30
- import { VftForm as R, VftFormItem as h } from "./components/form/index.js";
29
+ import { VftTabs as h, VftTabPane as x } from "./components/tabs/index.js";
30
+ import { VftForm as L, VftFormItem as R } from "./components/form/index.js";
31
31
  import { VftDescriptions as v, VftDescriptionsItem as B } from "./components/descriptions/index.js";
32
32
  import { VftMultipleTabs as F } from "./components/multiple-tabs/index.js";
33
33
  import { VftCollapseTransition as G } from "./components/collapse-transition/index.js";
34
- import { VftMenu as H, VftMenuItem as A, VftMenuItemGroup as E, VftSubMenu as z } from "./components/menu/index.js";
35
- import { VftException as O } from "./components/exception/index.js";
34
+ import { VftMenu as H, VftMenuItem as O, VftMenuItemGroup as A, VftSubMenu as E } from "./components/menu/index.js";
35
+ import { VftException as z } from "./components/exception/index.js";
36
36
  import { VftSearch as Q } from "./components/search/index.js";
37
37
  import { VftButton as W, VftButtonGroup as j } from "./components/button/index.js";
38
38
  import { VftCheckboxGroup as q, VftCheckbox as J, VftCheckboxButton as K } from "./components/checkbox/index.js";
@@ -50,33 +50,52 @@ import { VftDialog as Vo } from "./components/dialog/index.js";
50
50
  import { VftDateTimeSelect as eo } from "./components/date-time-select/index.js";
51
51
  import { VftHorizontalMenu as ao } from "./components/horizontal-menu/index.js";
52
52
  import { VftCol as no } from "./components/col/index.js";
53
- import { VftRow as uo } from "./components/row/index.js";
54
- import { VftTimePicker as lo } from "./components/time-picker/index.js";
53
+ import { VftRow as lo } from "./components/row/index.js";
54
+ import { VftTimePicker as uo } from "./components/time-picker/index.js";
55
55
  import { VftDatePicker as co } from "./components/date-picker/index.js";
56
- import { VftAside as Co, VftContainer as so, VftFooter as Mo, VftHeader as To, VftMain as bo } from "./components/container/index.js";
57
- import { VftMdComment as go } from "./components/md-comment/index.js";
58
- import { VftMdTabs as Io } from "./components/md-tabs/index.js";
59
- import { VftMdVuePlayground as Do } from "./components/md-vue-playground/index.js";
60
- import { VftMdCodeDemo as Po } from "./components/md-code-demo/index.js";
61
- import { VftMdCodeTabs as ko } from "./components/md-code-tabs/index.js";
62
- import { VftMdContainer as So } from "./components/md-container/index.js";
63
- const Ft = [
56
+ import { VftCheckTag as Co } from "./components/check-tag/index.js";
57
+ import { VftTree as To } from "./components/tree/index.js";
58
+ import { VftSpace as so } from "./components/space/index.js";
59
+ import { VftCard as Mo } from "./components/card/index.js";
60
+ import { VftPopconfirm as So } from "./components/popconfirm/index.js";
61
+ import { VftTreeSelect as go } from "./components/tree-select/index.js";
62
+ import { VftSkeleton as Io, VftSkeletonItem as bo } from "./components/skeleton/index.js";
63
+ import { VftAside as ko, VftContainer as Po, VftFooter as Do, VftHeader as wo, VftMain as yo } from "./components/container/index.js";
64
+ import { VftOption as ho, VftOptionGroup as xo, VftSelect as Lo } from "./components/select/index.js";
65
+ import { VftMdComment as Ro } from "./components/md-comment/index.js";
66
+ import { VftMdTabs as vo } from "./components/md-tabs/index.js";
67
+ import { VftMdVuePlayground as Bo } from "./components/md-vue-playground/index.js";
68
+ import { VftMdCodeDemo as Fo } from "./components/md-code-demo/index.js";
69
+ import { VftMdCodeTabs as Go } from "./components/md-code-tabs/index.js";
70
+ import { VftMdContainer as Ho } from "./components/md-container/index.js";
71
+ const $t = [
72
+ go,
73
+ ho,
74
+ xo,
75
+ Lo,
64
76
  So,
77
+ Mo,
78
+ so,
79
+ Io,
80
+ bo,
81
+ To,
82
+ Co,
83
+ Ho,
84
+ Go,
85
+ Fo,
86
+ Bo,
87
+ vo,
88
+ co,
89
+ Ro,
65
90
  ko,
66
91
  Po,
67
92
  Do,
68
- Io,
69
- co,
70
- go,
71
- Co,
72
- so,
73
- Mo,
74
- To,
75
- bo,
93
+ wo,
94
+ yo,
76
95
  ao,
77
96
  no,
78
- lo,
79
97
  uo,
98
+ lo,
80
99
  Vo,
81
100
  eo,
82
101
  po,
@@ -98,49 +117,49 @@ const Ft = [
98
117
  K,
99
118
  W,
100
119
  j,
120
+ L,
101
121
  R,
102
- h,
103
122
  Q,
104
123
  I,
105
124
  g,
106
- D,
125
+ b,
126
+ s,
107
127
  M,
108
128
  T,
109
- s,
110
- b,
129
+ S,
111
130
  y,
112
131
  C,
113
- c,
114
- l,
115
- u,
116
132
  d,
133
+ u,
134
+ l,
135
+ c,
117
136
  v,
118
137
  B,
119
138
  t,
120
139
  V,
121
- P,
122
140
  k,
123
- S,
141
+ P,
142
+ D,
124
143
  w,
125
144
  n,
126
145
  F,
127
146
  H,
147
+ O,
128
148
  A,
129
149
  E,
130
- z,
131
150
  G,
132
151
  o,
133
152
  r,
134
153
  f,
135
154
  m,
136
155
  i,
156
+ h,
137
157
  x,
138
- L,
139
158
  p,
140
159
  e,
141
160
  a,
142
- O
161
+ z
143
162
  ];
144
163
  export {
145
- Ft as default
164
+ $t as default
146
165
  };
@@ -0,0 +1,45 @@
1
+ import { isNumber as e, isBoolean as o } from "@vft/utils";
2
+ import "vue";
3
+ import { buildProps as i } from "../../utils/vue/props/runtime.js";
4
+ import "@vueuse/core";
5
+ import { CHANGE_EVENT as p } from "../../constants/event.js";
6
+ import "../../utils/ns-cover.js";
7
+ import "lodash";
8
+ const d = i({
9
+ /**
10
+ * @description affix element zIndex value
11
+ * */
12
+ zIndex: {
13
+ type: Number,
14
+ default: 100
15
+ },
16
+ /**
17
+ * @description target container. (CSS selector)
18
+ */
19
+ target: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ /**
24
+ * @description offset distance
25
+ * */
26
+ offset: {
27
+ type: Number,
28
+ default: 0
29
+ },
30
+ /**
31
+ * @description position of affix
32
+ * */
33
+ position: {
34
+ type: String,
35
+ values: ["top", "bottom"],
36
+ default: "top"
37
+ }
38
+ }), b = {
39
+ scroll: ({ scrollTop: t, fixed: r }) => e(t) && o(r),
40
+ [p]: (t) => o(t)
41
+ };
42
+ export {
43
+ b as affixEmits,
44
+ d as affixProps
45
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./affix.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,83 @@
1
+ import { defineComponent as $, shallowRef as m, ref as v, computed as S, watch as M, onMounted as R, watchEffect as W, openBlock as A, createElementBlock as H, normalizeClass as _, unref as f, normalizeStyle as y, createElementVNode as I, renderSlot as O } from "vue";
2
+ import { useWindowSize as P, useElementBounding as T, useEventListener as q } from "@vueuse/core";
3
+ import { addUnit as L } from "@vft/utils";
4
+ import { throwError as U } from "../../utils/error.js";
5
+ import "lodash";
6
+ import "../../utils/ns-cover.js";
7
+ import { getScrollContainer as V } from "../../utils/dom/scroll.js";
8
+ import { useNamespace as Y } from "../../hooks/use-namespace/index.js";
9
+ import "@popperjs/core";
10
+ import "../../hooks/use-z-index/index.js";
11
+ import { affixProps as j, affixEmits as D } from "./affix.js";
12
+ const b = "ElAffix", F = $({
13
+ name: b
14
+ }), ne = /* @__PURE__ */ $({
15
+ ...F,
16
+ props: j,
17
+ emits: D,
18
+ setup(z, { expose: C, emit: p }) {
19
+ const e = z, d = Y("affix"), a = m(), i = m(), l = m(), { height: r } = P(), {
20
+ height: n,
21
+ width: h,
22
+ top: g,
23
+ bottom: x,
24
+ update: c
25
+ } = T(i, { windowScroll: !1 }), s = T(a), o = v(!1), w = v(0), u = v(0), N = S(() => ({
26
+ height: o.value ? `${n.value}px` : "",
27
+ width: o.value ? `${h.value}px` : ""
28
+ })), B = S(() => {
29
+ if (!o.value)
30
+ return {};
31
+ const t = e.offset ? L(e.offset) : 0;
32
+ return {
33
+ height: `${n.value}px`,
34
+ width: `${h.value}px`,
35
+ top: e.position === "top" ? t : "",
36
+ bottom: e.position === "bottom" ? t : "",
37
+ transform: u.value ? `translateY(${u.value}px)` : "",
38
+ zIndex: e.zIndex
39
+ };
40
+ }), E = () => {
41
+ if (l.value)
42
+ if (w.value = l.value instanceof Window ? document.documentElement.scrollTop : l.value.scrollTop || 0, e.position === "top")
43
+ if (e.target) {
44
+ const t = s.bottom.value - e.offset - n.value;
45
+ o.value = e.offset > g.value && s.bottom.value > 0, u.value = t < 0 ? t : 0;
46
+ } else
47
+ o.value = e.offset > g.value;
48
+ else if (e.target) {
49
+ const t = r.value - s.top.value - e.offset - n.value;
50
+ o.value = r.value - e.offset < x.value && r.value > s.top.value, u.value = t < 0 ? -t : 0;
51
+ } else
52
+ o.value = r.value - e.offset < x.value;
53
+ }, k = () => {
54
+ c(), p("scroll", {
55
+ scrollTop: w.value,
56
+ fixed: o.value
57
+ });
58
+ };
59
+ return M(o, (t) => p("change", t)), R(() => {
60
+ e.target ? (a.value = document.querySelector(e.target) ?? void 0, a.value || U(b, `Target is not existed: ${e.target}`)) : a.value = document.documentElement, l.value = V(i.value, !0), c();
61
+ }), q(l, "scroll", k), W(E), C({
62
+ /** @description update affix status */
63
+ update: E,
64
+ /** @description update rootRect info */
65
+ updateRoot: c
66
+ }), (t, G) => (A(), H("div", {
67
+ ref_key: "root",
68
+ ref: i,
69
+ class: _(f(d).b()),
70
+ style: y(f(N))
71
+ }, [
72
+ I("div", {
73
+ class: _({ [f(d).m("fixed")]: o.value }),
74
+ style: y(f(B))
75
+ }, [
76
+ O(t.$slots, "default")
77
+ ], 6)
78
+ ], 6));
79
+ }
80
+ });
81
+ export {
82
+ ne as default
83
+ };
@@ -0,0 +1,12 @@
1
+ import { withInstall as t } 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 o from "./affix.vue2.js";
8
+ const l = t(o);
9
+ export {
10
+ l as VftAffix,
11
+ l as default
12
+ };
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/vft-affix.css";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/affix.scss";
@@ -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";
@@ -81,7 +89,7 @@ const r = (
81
89
  _("back-top")
82
90
  ), N = c({
83
91
  name: r.b()
84
- }), ro = /* @__PURE__ */ c({
92
+ }), so = /* @__PURE__ */ c({
85
93
  ...N,
86
94
  props: {
87
95
  visibilityHeight: { default: 200 },
@@ -124,5 +132,5 @@ const r = (
124
132
  }
125
133
  });
126
134
  export {
127
- ro as default
135
+ so as default
128
136
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, computed as I, openBlock as l, createElementBlock as s, normalizeClass as d, unref as e, normalizeStyle as T, Fragment as v, renderSlot as k, createBlock as g, normalizeProps as A, mergeProps as N, createCommentVNode as B } from "vue";
2
- import { VftIcon as z } from "../icon/index.js";
3
- import { useNamespace as P } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as C, computed as I, openBlock as l, createBlock as i, resolveDynamicComponent as v, mergeProps as y, unref as e, withCtx as A, createElementBlock as f, Fragment as N, renderSlot as k, normalizeClass as g, normalizeProps as P, createCommentVNode as B } from "vue";
2
+ import { VftIcon as b } from "../icon/index.js";
3
+ import { useNamespace as T } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
@@ -8,15 +8,16 @@ import "@vueuse/core";
8
8
  import { singleAttrToObj as V } from "@vft/utils";
9
9
  import "../../utils/ns-cover.js";
10
10
  import { useButton as j } from "./use-button.js";
11
- import { useButtonCustomStyle as E } from "./button-custom.js";
12
- const F = ["aria-disabled", "disabled", "autofocus", "type"], o = (
11
+ import { useButtonCustomStyle as w } from "./button-custom.js";
12
+ const o = (
13
13
  /* hoist-static*/
14
- P("button")
15
- ), O = C({
14
+ T("button")
15
+ ), D = C({
16
16
  name: o.b()
17
17
  }), U = /* @__PURE__ */ C({
18
- ...O,
18
+ ...D,
19
19
  props: {
20
+ tag: { default: "button" },
20
21
  size: null,
21
22
  disabled: { type: Boolean },
22
23
  type: null,
@@ -37,62 +38,60 @@ const F = ["aria-disabled", "disabled", "autofocus", "type"], o = (
37
38
  block: { type: Boolean }
38
39
  },
39
40
  emits: ["click"],
40
- setup(t, { expose: S, emit: $ }) {
41
- const i = t, r = I(() => V(i.icon, "icon")), h = E(i), { _ref: c, _size: u, _type: m, _disabled: n, shouldAddSpace: y, handleClick: f } = j(i, $);
42
- return S({
41
+ setup(t, { expose: h, emit: z }) {
42
+ const a = t, s = I(() => V(a.icon, "icon")), S = w(a), { _ref: r, _size: c, _type: u, _disabled: d, _props: x, shouldAddSpace: m, handleClick: $ } = j(a, z);
43
+ return h({
43
44
  /** @description button html element */
44
- ref: c,
45
+ ref: r,
45
46
  /** @description button size */
46
- size: u,
47
+ size: c,
47
48
  /** @description button type */
48
- type: m,
49
+ type: u,
49
50
  /** @description button disabled */
50
- disabled: n,
51
+ disabled: d,
51
52
  /** @description whether adding space */
52
- shouldAddSpace: y
53
- }), (a, p) => {
54
- var b;
55
- return l(), s("button", {
56
- ref_key: "_ref",
57
- ref: c,
58
- class: d([
59
- e(o).b(),
60
- e(o).m(e(m)),
61
- e(o).m(e(u)),
62
- e(o).is("disabled", e(n)),
63
- e(o).is("loading", t.loading),
64
- e(o).is("plain", t.plain),
65
- e(o).is("round", t.round),
66
- e(o).is("circle", t.circle),
67
- e(o).is("text", t.text),
68
- e(o).is("link", t.link),
69
- e(o).is("has-bg", t.bg),
70
- e(o).is("block", t.block)
71
- ]),
72
- "aria-disabled": e(n) || t.loading,
73
- disabled: e(n) || t.loading,
74
- autofocus: t.autofocus,
75
- type: t.nativeType,
76
- style: T(e(h)),
77
- onClick: p[0] || (p[0] = //@ts-ignore
78
- (...x) => e(f) && e(f)(...x))
79
- }, [
80
- t.loading ? (l(), s(v, { key: 0 }, [
81
- a.$slots.loading ? k(a.$slots, "loading", { key: 0 }) : (l(), g(e(z), {
82
- key: 1,
83
- rotate: "",
84
- class: d(e(o).is("loading")),
85
- icon: "ico-ep:loading"
86
- }, null, 8, ["class"]))
87
- ], 64)) : (b = e(r)) != null && b.icon ? (l(), g(e(z), A(N({ key: 1 }, e(r))), null, 16)) : B("", !0),
88
- a.$slots.default ? (l(), s("span", {
89
- key: 2,
90
- class: d({ [e(o).em("text", "expand")]: e(y) })
91
- }, [
92
- k(a.$slots, "default")
93
- ], 2)) : B("", !0)
94
- ], 14, F);
95
- };
53
+ shouldAddSpace: m
54
+ }), (n, E) => (l(), i(v(t.tag), y({
55
+ ref_key: "_ref",
56
+ ref: r
57
+ }, e(x), {
58
+ class: [
59
+ e(o).b(),
60
+ e(o).m(e(u)),
61
+ e(o).m(e(c)),
62
+ e(o).is("disabled", e(d)),
63
+ e(o).is("loading", t.loading),
64
+ e(o).is("plain", t.plain),
65
+ e(o).is("round", t.round),
66
+ e(o).is("circle", t.circle),
67
+ e(o).is("text", t.text),
68
+ e(o).is("link", t.link),
69
+ e(o).is("has-bg", t.bg)
70
+ ],
71
+ style: e(S),
72
+ onClick: e($)
73
+ }), {
74
+ default: A(() => {
75
+ var p;
76
+ return [
77
+ t.loading ? (l(), f(N, { key: 0 }, [
78
+ n.$slots.loading ? k(n.$slots, "loading", { key: 0 }) : (l(), i(e(b), {
79
+ key: 1,
80
+ rotate: "",
81
+ class: g(e(o).is("loading")),
82
+ icon: "ico-ep:loading"
83
+ }, null, 8, ["class"]))
84
+ ], 64)) : (p = e(s)) != null && p.icon ? (l(), i(e(b), P(y({ key: 1 }, e(s))), null, 16)) : B("", !0),
85
+ n.$slots.default ? (l(), f("span", {
86
+ key: 2,
87
+ class: g({ [e(o).em("text", "expand")]: e(m) })
88
+ }, [
89
+ k(n.$slots, "default")
90
+ ], 2)) : B("", !0)
91
+ ];
92
+ }),
93
+ _: 3
94
+ }, 16, ["class", "style", "onClick"]));
96
95
  }
97
96
  });
98
97
  export {
@@ -1,39 +1,45 @@
1
- import { inject as g, computed as s, ref as I, useSlots as S, Text as _ } from "vue";
1
+ import { inject as v, computed as i, ref as _, useSlots as b, Text as h } from "vue";
2
2
  import "../form/index.js";
3
3
  import "../config-provider/index.js";
4
- import { buttonGroupContextKey as v } from "./constants.js";
5
- import { useGlobalConfig as F } from "../config-provider/hooks/use-global-config.js";
6
- import { useFormItem as b } from "../form/hooks/use-form-item.js";
4
+ import { buttonGroupContextKey as I } from "./constants.js";
5
+ import { useGlobalConfig as S } from "../config-provider/hooks/use-global-config.js";
6
+ import { useFormItem as F } from "../form/hooks/use-form-item.js";
7
7
  import { useFormSize as k, useFormDisabled as z } from "../form/hooks/use-form-common-props.js";
8
- const U = (i, a) => {
9
- const t = g(v, void 0), l = F("button"), { form: n } = b(), m = k(s(() => t == null ? void 0 : t.size)), u = z(), d = I(), r = S(), f = s(() => i.type || (t == null ? void 0 : t.type) || ""), p = s(
8
+ const $ = (t, u) => {
9
+ const o = v(I, void 0), l = S("button"), { form: s } = F(), d = k(i(() => o == null ? void 0 : o.size)), a = z(), f = _(), c = b(), m = i(() => t.type || (o == null ? void 0 : o.type) || ""), p = i(
10
10
  () => {
11
11
  var e;
12
- return i.autoInsertSpace ?? ((e = l.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
12
+ return t.autoInsertSpace ?? ((e = l.value) == null ? void 0 : e.autoInsertSpace) ?? !1;
13
13
  }
14
- ), h = s(() => {
15
- var c;
16
- const e = (c = r.default) == null ? void 0 : c.call(r);
14
+ ), g = i(() => {
15
+ var r;
16
+ const e = (r = c.default) == null ? void 0 : r.call(c);
17
17
  if (p.value && (e == null ? void 0 : e.length) === 1) {
18
- const o = e[0];
19
- if ((o == null ? void 0 : o.type) === _) {
20
- const y = o.children;
18
+ const n = e[0];
19
+ if ((n == null ? void 0 : n.type) === h) {
20
+ const y = n.children;
21
21
  return /^\p{Unified_Ideograph}{2}$/u.test(y.trim());
22
22
  }
23
23
  }
24
24
  return !1;
25
25
  });
26
26
  return {
27
- _disabled: u,
28
- _size: m,
29
- _type: f,
30
- _ref: d,
31
- shouldAddSpace: h,
27
+ _props: i(() => t.tag === "button" ? {
28
+ ariaDisabled: a.value || t.loading,
29
+ disabled: a.value || t.loading,
30
+ autofocus: t.autofocus,
31
+ type: t.nativeType
32
+ } : {}),
33
+ _disabled: a,
34
+ _size: d,
35
+ _type: m,
36
+ _ref: f,
37
+ shouldAddSpace: g,
32
38
  handleClick: (e) => {
33
- i.nativeType === "reset" && (n == null || n.resetFields()), a("click", e);
39
+ t.nativeType === "reset" && (s == null || s.resetFields()), u("click", e);
34
40
  }
35
41
  };
36
42
  };
37
43
  export {
38
- U as useButton
44
+ $ as useButton
39
45
  };
@@ -0,0 +1,4 @@
1
+ import f from "./card.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as m, openBlock as s, createElementBlock as d, normalizeClass as r, unref as a, renderSlot as l, createTextVNode as n, toDisplayString as i, createCommentVNode as c, createElementVNode as u, normalizeStyle as f } from "vue";
2
+ import { useNamespace as h } 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
+ const e = (
10
+ /* hoist-static*/
11
+ h("card")
12
+ ), p = m({
13
+ name: e.b()
14
+ }), V = /* @__PURE__ */ m({
15
+ ...p,
16
+ props: {
17
+ header: { default: "" },
18
+ bodyStyle: { default: "" },
19
+ shadow: { default: "always" }
20
+ },
21
+ setup(t) {
22
+ return (o, y) => (s(), d("div", {
23
+ class: r([a(e).b(), a(e).is(`${t.shadow}-shadow`)])
24
+ }, [
25
+ o.$slots.header || t.header ? (s(), d("div", {
26
+ key: 0,
27
+ class: r(a(e).e("header"))
28
+ }, [
29
+ l(o.$slots, "header", {}, () => [
30
+ n(i(t.header), 1)
31
+ ])
32
+ ], 2)) : c("", !0),
33
+ u("div", {
34
+ class: r(a(e).e("body")),
35
+ style: f(t.bodyStyle)
36
+ }, [
37
+ l(o.$slots, "default")
38
+ ], 6)
39
+ ], 2));
40
+ }
41
+ });
42
+ export {
43
+ V as default
44
+ };
@@ -0,0 +1,12 @@
1
+ import { withInstall as t } 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 o from "./card.vue2.js";
8
+ const l = t(o);
9
+ export {
10
+ l as VftCard,
11
+ l as default
12
+ };
@@ -0,0 +1 @@
1
+