vft 0.0.74 → 0.0.77

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 (373) 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/horizontal-menu/style/css.js +3 -0
  45. package/es/components/horizontal-menu/style/index.js +3 -0
  46. package/es/components/index.js +228 -194
  47. package/es/components/md-container/md-container.vue2.js +10 -2
  48. package/es/components/menu/menu-item.vue2.js +58 -58
  49. package/es/components/menu/menu.vue2.js +72 -68
  50. package/es/components/menu/style/css.js +3 -0
  51. package/es/components/menu/style/index.js +3 -0
  52. package/es/components/menu/sub-menu.vue2.js +139 -117
  53. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -26
  54. package/es/components/option/style/css.js +2 -0
  55. package/es/components/option/style/index.js +2 -0
  56. package/es/components/option-group/style/css.js +2 -0
  57. package/es/components/option-group/style/index.js +2 -0
  58. package/es/components/popconfirm/index.js +12 -0
  59. package/es/components/popconfirm/popconfirm.vue.js +4 -0
  60. package/es/components/popconfirm/popconfirm.vue2.js +112 -0
  61. package/es/components/popconfirm/style/css.js +6 -0
  62. package/es/components/popconfirm/style/index.js +6 -0
  63. package/es/components/result/result.vue2.js +10 -2
  64. package/es/components/roving-focus-group/roving-focus-item.vue2.js +1 -1
  65. package/es/components/select/index.js +22 -0
  66. package/es/components/select/option-group.vue.js +25 -0
  67. package/es/components/select/option-group.vue2.js +53 -0
  68. package/es/components/select/option.vue.js +27 -0
  69. package/es/components/select/option.vue2.js +58 -0
  70. package/es/components/select/options.js +34 -0
  71. package/es/components/select/select-dropdown.vue.js +15 -0
  72. package/es/components/select/select-dropdown.vue2.js +32 -0
  73. package/es/components/select/select.vue.js +327 -0
  74. package/es/components/select/select.vue2.js +348 -0
  75. package/es/components/select/style/css.js +8 -0
  76. package/es/components/select/style/index.js +8 -0
  77. package/es/components/select/token.js +5 -0
  78. package/es/components/select/useOption.js +71 -0
  79. package/es/components/select/useSelect.js +414 -0
  80. package/es/components/select-v2/select-dropdown.js +1 -1
  81. package/es/components/select-v2/useSelect.js +269 -269
  82. package/es/components/side-menu/side-menu.vue2.js +153 -142
  83. package/es/components/side-menu/style/css.js +3 -0
  84. package/es/components/side-menu/style/index.js +3 -0
  85. package/es/components/skeleton/index.js +16 -0
  86. package/es/components/skeleton/skeleton-item.vue.js +4 -0
  87. package/es/components/skeleton/skeleton-item.vue2.js +31 -0
  88. package/es/components/skeleton/skeleton.vue.js +4 -0
  89. package/es/components/skeleton/skeleton.vue2.js +55 -0
  90. package/es/components/skeleton/style/css.js +3 -0
  91. package/es/components/skeleton/style/index.js +3 -0
  92. package/es/components/skeleton-item/style/css.js +2 -0
  93. package/es/components/skeleton-item/style/index.js +2 -0
  94. package/es/components/space/index.js +17 -0
  95. package/es/components/space/item.js +24 -0
  96. package/es/components/space/space.js +182 -0
  97. package/es/components/space/style/css.js +2 -0
  98. package/es/components/space/style/index.js +2 -0
  99. package/es/components/space/use-space.js +44 -0
  100. package/es/components/switch/switch.vue2.js +1 -1
  101. package/es/components/tabs/tab-nav.vue2.js +30 -22
  102. package/es/components/tabs/tabs.vue2.js +37 -37
  103. package/es/components/time-picker/common/picker.vue2.js +241 -257
  104. package/es/components/time-picker/common/props.js +10 -6
  105. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +1 -1
  106. package/es/components/time-picker/time-picker.js +10 -10
  107. package/es/components/time-select/time-select.vue2.js +38 -42
  108. package/es/components/tooltip/content.vue2.js +1 -1
  109. package/es/components/tree/index.js +14 -0
  110. package/es/components/tree/model/node.js +248 -0
  111. package/es/components/tree/model/tree-store.js +197 -0
  112. package/es/components/tree/model/useDragNode.js +71 -0
  113. package/es/components/tree/model/useKeydown.js +81 -0
  114. package/es/components/tree/model/useNodeExpandEventBroadcast.js +19 -0
  115. package/es/components/tree/model/util.js +21 -0
  116. package/es/components/tree/style/css.js +3 -0
  117. package/es/components/tree/style/index.js +3 -0
  118. package/es/components/tree/tree-node-content.vue.js +4 -0
  119. package/es/components/tree/tree-node-content.vue2.js +28 -0
  120. package/es/components/tree/tree-node.vue.js +98 -0
  121. package/es/components/tree/tree-node.vue2.js +152 -0
  122. package/es/components/tree/tree.type.js +1 -0
  123. package/es/components/tree/tree.vue.js +48 -0
  124. package/es/components/tree/tree.vue2.js +268 -0
  125. package/es/components/tree-select/cache-options.js +32 -0
  126. package/es/components/tree-select/index.js +9 -0
  127. package/es/components/tree-select/select.js +38 -0
  128. package/es/components/tree-select/style/css.js +11 -0
  129. package/es/components/tree-select/style/index.js +11 -0
  130. package/es/components/tree-select/tree-select-option.js +21 -0
  131. package/es/components/tree-select/tree-select.vue.js +4 -0
  132. package/es/components/tree-select/tree-select.vue2.js +81 -0
  133. package/es/components/tree-select/tree.js +137 -0
  134. package/es/components/tree-select/utils.js +45 -0
  135. package/es/hooks/index.js +25 -21
  136. package/es/hooks/use-focus/index.js +9 -0
  137. package/es/hooks/use-throttle-render/index.js +21 -0
  138. package/es/index.js +408 -368
  139. package/es/package.json.js +1 -1
  140. package/es/utils/helper.js +5 -2
  141. package/es/utils/index.js +48 -46
  142. package/lib/component.cjs +1 -1
  143. package/lib/components/affix/affix.cjs +1 -0
  144. package/lib/components/affix/affix.vue.cjs +1 -0
  145. package/lib/components/affix/affix.vue2.cjs +1 -0
  146. package/lib/components/affix/index.cjs +1 -0
  147. package/lib/components/affix/style/css.cjs +1 -0
  148. package/lib/components/affix/style/index.cjs +1 -0
  149. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  150. package/lib/components/button/button.vue2.cjs +1 -1
  151. package/lib/components/button/use-button.cjs +1 -1
  152. package/lib/components/card/card.vue.cjs +1 -0
  153. package/lib/components/card/card.vue2.cjs +1 -0
  154. package/lib/components/card/index.cjs +1 -0
  155. package/lib/components/card/instance.cjs +1 -0
  156. package/lib/components/card/style/css.cjs +1 -0
  157. package/lib/components/card/style/index.cjs +1 -0
  158. package/lib/components/check-tag/check-tag.vue.cjs +1 -0
  159. package/lib/components/check-tag/check-tag.vue2.cjs +1 -0
  160. package/lib/components/check-tag/index.cjs +1 -0
  161. package/lib/components/check-tag/style/css.cjs +1 -0
  162. package/lib/components/check-tag/style/index.cjs +1 -0
  163. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  164. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  165. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  166. package/lib/components/date-picker/constants.cjs +1 -1
  167. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  168. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  169. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  170. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  171. package/lib/components/date-picker/date-picker.cjs +1 -1
  172. package/lib/components/date-picker/index.cjs +1 -1
  173. package/lib/components/date-picker/props/shared.cjs +1 -1
  174. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  175. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  176. package/lib/components/dialog/hooks/use-dialog.cjs +1 -1
  177. package/lib/components/dropdown/dropdown-menu.vue2.cjs +1 -1
  178. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  179. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  180. package/lib/components/horizontal-menu/constants.cjs +1 -0
  181. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  182. package/lib/components/horizontal-menu/index.cjs +1 -1
  183. package/lib/components/horizontal-menu/style/css.cjs +1 -1
  184. package/lib/components/horizontal-menu/style/index.cjs +1 -1
  185. package/lib/components/index.cjs +1 -1
  186. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  187. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  188. package/lib/components/menu/menu.vue2.cjs +1 -1
  189. package/lib/components/menu/style/css.cjs +1 -1
  190. package/lib/components/menu/style/index.cjs +1 -1
  191. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  192. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  193. package/lib/components/option/style/css.cjs +1 -0
  194. package/lib/components/option/style/index.cjs +1 -0
  195. package/lib/components/option-group/style/css.cjs +1 -0
  196. package/lib/components/option-group/style/index.cjs +1 -0
  197. package/lib/components/popconfirm/index.cjs +1 -0
  198. package/lib/components/popconfirm/popconfirm.vue.cjs +1 -0
  199. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -0
  200. package/lib/components/popconfirm/style/css.cjs +1 -0
  201. package/lib/components/popconfirm/style/index.cjs +1 -0
  202. package/lib/components/result/result.vue2.cjs +1 -1
  203. package/lib/components/roving-focus-group/roving-focus-item.vue2.cjs +1 -1
  204. package/lib/components/select/index.cjs +1 -0
  205. package/lib/components/select/option-group.vue.cjs +1 -0
  206. package/lib/components/select/option-group.vue2.cjs +1 -0
  207. package/lib/components/select/option.vue.cjs +1 -0
  208. package/lib/components/select/option.vue2.cjs +1 -0
  209. package/lib/components/select/options.cjs +1 -0
  210. package/lib/components/select/select-dropdown.vue.cjs +1 -0
  211. package/lib/components/select/select-dropdown.vue2.cjs +1 -0
  212. package/lib/components/select/select.vue.cjs +1 -0
  213. package/lib/components/select/select.vue2.cjs +1 -0
  214. package/lib/components/select/style/css.cjs +1 -0
  215. package/lib/components/select/style/index.cjs +1 -0
  216. package/lib/components/select/token.cjs +1 -0
  217. package/lib/components/select/useOption.cjs +1 -0
  218. package/lib/components/select/useSelect.cjs +1 -0
  219. package/lib/components/select-v2/select-dropdown.cjs +1 -1
  220. package/lib/components/select-v2/useSelect.cjs +1 -1
  221. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  222. package/lib/components/side-menu/style/css.cjs +1 -1
  223. package/lib/components/side-menu/style/index.cjs +1 -1
  224. package/lib/components/skeleton/index.cjs +1 -0
  225. package/lib/components/skeleton/skeleton-item.vue.cjs +1 -0
  226. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -0
  227. package/lib/components/skeleton/skeleton.vue.cjs +1 -0
  228. package/lib/components/skeleton/skeleton.vue2.cjs +1 -0
  229. package/lib/components/skeleton/style/css.cjs +1 -0
  230. package/lib/components/skeleton/style/index.cjs +1 -0
  231. package/lib/components/skeleton-item/style/css.cjs +1 -0
  232. package/lib/components/skeleton-item/style/index.cjs +1 -0
  233. package/lib/components/space/index.cjs +1 -0
  234. package/lib/components/space/item.cjs +1 -0
  235. package/lib/components/space/space.cjs +1 -0
  236. package/lib/components/space/style/css.cjs +1 -0
  237. package/lib/components/space/style/index.cjs +1 -0
  238. package/lib/components/space/use-space.cjs +1 -0
  239. package/lib/components/switch/switch.vue2.cjs +1 -1
  240. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  241. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  242. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  243. package/lib/components/time-picker/common/props.cjs +1 -1
  244. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  245. package/lib/components/time-picker/time-picker.cjs +1 -1
  246. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  247. package/lib/components/tooltip/content.vue2.cjs +1 -1
  248. package/lib/components/tree/index.cjs +1 -0
  249. package/lib/components/tree/model/node.cjs +1 -0
  250. package/lib/components/tree/model/tree-store.cjs +1 -0
  251. package/lib/components/tree/model/useDragNode.cjs +1 -0
  252. package/lib/components/tree/model/useKeydown.cjs +1 -0
  253. package/lib/components/tree/model/useNodeExpandEventBroadcast.cjs +1 -0
  254. package/lib/components/tree/model/util.cjs +1 -0
  255. package/lib/components/tree/style/css.cjs +1 -0
  256. package/lib/components/tree/style/index.cjs +1 -0
  257. package/lib/components/tree/tree-node-content.vue.cjs +1 -0
  258. package/lib/components/tree/tree-node-content.vue2.cjs +1 -0
  259. package/lib/components/tree/tree-node.vue.cjs +1 -0
  260. package/lib/components/tree/tree-node.vue2.cjs +1 -0
  261. package/lib/components/tree/tree.type.cjs +1 -0
  262. package/lib/components/tree/tree.vue.cjs +1 -0
  263. package/lib/components/tree/tree.vue2.cjs +1 -0
  264. package/lib/components/tree-select/cache-options.cjs +1 -0
  265. package/lib/components/tree-select/index.cjs +1 -0
  266. package/lib/components/tree-select/select.cjs +1 -0
  267. package/lib/components/tree-select/style/css.cjs +1 -0
  268. package/lib/components/tree-select/style/index.cjs +1 -0
  269. package/lib/components/tree-select/tree-select-option.cjs +1 -0
  270. package/lib/components/tree-select/tree-select.vue.cjs +1 -0
  271. package/lib/components/tree-select/tree-select.vue2.cjs +1 -0
  272. package/lib/components/tree-select/tree.cjs +1 -0
  273. package/lib/components/tree-select/utils.cjs +1 -0
  274. package/lib/hooks/index.cjs +1 -1
  275. package/lib/hooks/use-focus/index.cjs +1 -0
  276. package/lib/hooks/use-throttle-render/index.cjs +1 -0
  277. package/lib/index.cjs +1 -1
  278. package/lib/package.json.cjs +1 -1
  279. package/lib/utils/helper.cjs +1 -1
  280. package/lib/utils/index.cjs +1 -1
  281. package/package.json +2 -2
  282. package/tags.json +1 -1
  283. package/theme-style/base.css +1 -1
  284. package/theme-style/index.css +1 -1
  285. package/theme-style/src/alert.scss +1 -1
  286. package/theme-style/src/autocomplete.scss +2 -2
  287. package/theme-style/src/breadcrumb.scss +4 -4
  288. package/theme-style/src/calendar.scss +2 -2
  289. package/theme-style/src/card.scss +1 -1
  290. package/theme-style/src/carousel.scss +1 -1
  291. package/theme-style/src/cascader.scss +3 -3
  292. package/theme-style/src/check-tag.scss +3 -3
  293. package/theme-style/src/checkbox.scss +1 -1
  294. package/theme-style/src/color-picker.scss +2 -2
  295. package/theme-style/src/common/var.scss +527 -521
  296. package/theme-style/src/date-picker/date-picker.scss +1 -1
  297. package/theme-style/src/date-picker/date-range-picker.scss +2 -2
  298. package/theme-style/src/date-picker/date-table.scss +1 -1
  299. package/theme-style/src/date-picker/month-table.scss +2 -2
  300. package/theme-style/src/date-picker/picker-panel.scss +4 -5
  301. package/theme-style/src/date-picker/picker.scss +7 -9
  302. package/theme-style/src/date-picker/time-picker.scss +2 -2
  303. package/theme-style/src/date-picker/time-spinner.scss +6 -8
  304. package/theme-style/src/date-picker/year-table.scss +3 -3
  305. package/theme-style/src/date-time-select.scss +3 -4
  306. package/theme-style/src/descriptions-item.scss +4 -4
  307. package/theme-style/src/descriptions.scss +2 -2
  308. package/theme-style/src/header-layout.scss +1 -1
  309. package/theme-style/src/horizontal-menu.scss +27 -39
  310. package/theme-style/src/image-viewer.scss +1 -1
  311. package/theme-style/src/index.scss +3 -0
  312. package/theme-style/src/input-number.scss +1 -1
  313. package/theme-style/src/menu.scss +76 -66
  314. package/theme-style/src/mixins/_var.scss +2 -2
  315. package/theme-style/src/mixins/mixins.scss +2 -2
  316. package/theme-style/src/popconfirm.scss +16 -0
  317. package/theme-style/src/popper.scss +4 -2
  318. package/theme-style/src/progress.scss +1 -1
  319. package/theme-style/src/reset.scss +3 -3
  320. package/theme-style/src/result.scss +2 -2
  321. package/theme-style/src/select-dropdown-v2.scss +1 -1
  322. package/theme-style/src/select-dropdown.scss +1 -1
  323. package/theme-style/src/select-v2.scss +2 -2
  324. package/theme-style/src/select.scss +4 -5
  325. package/theme-style/src/skeleton-item.scss +83 -0
  326. package/theme-style/src/skeleton.scss +44 -0
  327. package/theme-style/src/step.scss +10 -10
  328. package/theme-style/src/tabs.scss +15 -155
  329. package/theme-style/src/timeline-item.scss +2 -2
  330. package/theme-style/src/transfer.scss +5 -5
  331. package/theme-style/src/tree.scss +2 -5
  332. package/theme-style/src/upload.scss +11 -11
  333. package/theme-style/src/var.scss +1 -1
  334. package/theme-style/vft-alert.css +1 -1
  335. package/theme-style/vft-autocomplete.css +1 -1
  336. package/theme-style/vft-breadcrumb.css +1 -1
  337. package/theme-style/vft-calendar.css +1 -1
  338. package/theme-style/vft-card.css +1 -1
  339. package/theme-style/vft-carousel.css +1 -1
  340. package/theme-style/vft-cascader.css +1 -1
  341. package/theme-style/vft-check-tag.css +1 -1
  342. package/theme-style/vft-checkbox.css +1 -1
  343. package/theme-style/vft-color-picker.css +1 -1
  344. package/theme-style/vft-date-picker.css +1 -1
  345. package/theme-style/vft-date-time-select.css +1 -1
  346. package/theme-style/vft-descriptions-item.css +1 -1
  347. package/theme-style/vft-descriptions.css +1 -1
  348. package/theme-style/vft-header-layout.css +1 -1
  349. package/theme-style/vft-horizontal-menu.css +1 -1
  350. package/theme-style/vft-image-viewer.css +1 -1
  351. package/theme-style/vft-input-number.css +1 -1
  352. package/theme-style/vft-menu.css +1 -1
  353. package/theme-style/vft-popconfirm.css +1 -0
  354. package/theme-style/vft-popper.css +1 -1
  355. package/theme-style/vft-progress.css +1 -1
  356. package/theme-style/vft-reset.css +1 -1
  357. package/theme-style/vft-result.css +1 -1
  358. package/theme-style/vft-select-dropdown-v2.css +1 -1
  359. package/theme-style/vft-select-dropdown.css +1 -1
  360. package/theme-style/vft-select-v2.css +1 -1
  361. package/theme-style/vft-select.css +1 -1
  362. package/theme-style/vft-skeleton-item.css +1 -0
  363. package/theme-style/vft-skeleton.css +1 -0
  364. package/theme-style/vft-step.css +1 -1
  365. package/theme-style/vft-tabs.css +1 -1
  366. package/theme-style/vft-time-picker.css +1 -1
  367. package/theme-style/vft-time-select.css +1 -1
  368. package/theme-style/vft-timeline-item.css +1 -1
  369. package/theme-style/vft-transfer.css +1 -1
  370. package/theme-style/vft-tree.css +1 -1
  371. package/theme-style/vft-upload.css +1 -1
  372. package/theme-style/vft-var.css +1 -1
  373. package/web-types.json +1 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as Z, getCurrentInstance as Y, computed as n, inject as D, ref as x, reactive as _, watch as ee, provide as oe, onMounted as te, onBeforeUnmount as re, useSlots as ne, h as i, Fragment as le, withDirectives as ie, vShow as ae } from "vue";
1
+ import { defineComponent as G, getCurrentInstance as re, computed as r, inject as L, ref as x, reactive as ie, watch as le, provide as ue, onMounted as ae, onBeforeUnmount as se, useSlots as pe, h as a, Fragment as me, withDirectives as ce, vShow as de } from "vue";
2
2
  import "../divider/index.js";
3
- import { VftIcon as H } from "../icon/index.js";
3
+ import { VftIcon as U } from "../icon/index.js";
4
4
  import "../avatar/index.js";
5
5
  import "../empty/index.js";
6
6
  import "../result/index.js";
7
7
  import "../tabs/index.js";
8
8
  import "../popper/index.js";
9
- import { VftCollapseTransition as ue } from "../collapse-transition/index.js";
10
- import { VftTooltip as se } from "../tooltip/index.js";
9
+ import { VftCollapseTransition as ve } from "../collapse-transition/index.js";
10
+ import { VftTooltip as fe } from "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "./index.js";
13
- import { singleAttrToObj as pe, renderTNode as me } from "@vft/utils";
13
+ import { singleAttrToObj as I, renderTNode as Me } 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,23 +77,23 @@ 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 I } from "../../hooks/use-namespace/index.js";
80
+ import { useNamespace as k } 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
- import { useTimeoutFn as L } from "@vueuse/core";
77
- import { throwError as U } from "../../utils/error.js";
84
+ import { useTimeoutFn as Z } from "@vueuse/core";
85
+ import { throwError as q } from "../../utils/error.js";
78
86
  import "../../utils/ns-cover.js";
79
- import ce from "./use-menu.js";
80
- import { useMenuCssVar as de } from "./use-menu-css-var.js";
81
- const S = (
87
+ import be from "./use-menu.js";
88
+ import { useMenuCssVar as he } from "./use-menu-css-var.js";
89
+ const z = (
82
90
  /* hoist-static*/
83
- I("sub-menu")
84
- ), ve = Z({
85
- name: S.b(),
91
+ k("sub-menu")
92
+ ), Te = G({
93
+ name: z.b(),
86
94
  inheritAttrs: !1
87
- }), Lo = /* @__PURE__ */ Z({
88
- ...ve,
95
+ }), ot = /* @__PURE__ */ G({
96
+ ...Te,
89
97
  props: {
90
98
  index: null,
91
99
  showTimeout: {
@@ -119,106 +127,118 @@ const S = (
119
127
  default: void 0
120
128
  }
121
129
  },
130
+ emits: ["mouseenter", "mouseleave"],
122
131
  setup(o, {
123
- expose: q
132
+ expose: J,
133
+ emit: E
124
134
  }) {
125
- const f = Y(), {
126
- indexPath: h,
127
- parentMenu: z
128
- } = ce(f, n(() => o.index)), u = I("menu"), s = I("sub-menu"), e = D("rootMenu");
129
- e || U(S.b(), "can not inject root menu");
130
- const a = D(`subMenu:${z.value.uid}`);
131
- a || U(S.b(), "can not inject sub menu");
132
- const T = x({});
133
- let p;
134
- const A = x(!1), G = x(), B = x(null), P = n(() => d.value === "horizontal" && M.value ? "bottom-start" : "right-start"), M = n(() => a.level === 0), w = n(() => o.teleported === void 0 ? M.value : o.teleported), J = n(() => e.props.collapse ? `${u.namespace.value}-zoom-in-left` : `${u.namespace.value}-zoom-in-top`), K = n(() => d.value === "horizontal" && M.value ? ["bottom-start", "bottom-end", "top-start", "top-end", "right-start", "left-start"] : ["right-start", "left-start", "bottom-start", "bottom-end", "top-start", "top-end"]), c = n(() => e.openedMenus.includes(o.index)), b = n(() => {
135
+ const f = re(), {
136
+ indexPath: T,
137
+ parentMenu: A
138
+ } = be(f, r(() => o.index)), p = k("menu"), s = k("sub-menu"), e = L("rootMenu");
139
+ e || q(z.b(), "can not inject root menu");
140
+ const u = L(`subMenu:${A.value.uid}`);
141
+ u || q(z.b(), "can not inject sub menu");
142
+ const w = x({});
143
+ let m;
144
+ const B = x(!1), K = x(), P = x(null), j = r(() => d.value === "horizontal" && C.value ? "bottom-start" : "right-start"), C = r(() => u.level === 0), y = r(() => o.teleported === void 0 ? C.value : o.teleported), Q = r(() => e.props.collapse ? `${p.namespace.value}-zoom-in-left` : `${p.namespace.value}-zoom-in-top`), W = r(() => d.value === "horizontal" && C.value ? ["bottom-start", "bottom-end", "top-start", "top-end", "right-start", "left-start"] : ["right-start", "left-start", "bottom-start", "bottom-end", "top-start", "top-end"]), c = r(() => e.openedMenus.includes(o.index)), M = r(() => {
135
145
  let t = !1;
136
- return Object.values(T.value).forEach((l) => {
146
+ return Object.values(w.value).forEach((l) => {
137
147
  l.active && (t = !0);
138
148
  }), o.index === e.activeIndex && (t = !0), t;
139
- }), j = n(() => e.props.backgroundColor || ""), E = n(() => e.props.activeTextColor || ""), F = n(() => e.props.textColor || ""), d = n(() => e.props.mode), C = _({
149
+ }), F = r(() => e.props.backgroundColor || ""), $ = r(() => e.props.activeTextColor || ""), O = r(() => e.props.textColor || ""), d = r(() => e.props.mode), S = ie({
140
150
  index: o.index,
141
- indexPath: h,
142
- active: b
143
- }), $ = de(e.props, a.level + 1), O = n(() => d.value !== "horizontal" ? {
144
- color: F.value
151
+ indexPath: T,
152
+ active: M
153
+ }), V = he(e.props, u.level + 1), N = r(() => d.value !== "horizontal" ? {
154
+ color: O.value
145
155
  } : {
146
- borderBottomColor: b.value ? e.props.activeTextColor ? E.value : "" : "transparent",
147
- color: b.value ? E.value : F.value
148
- }), Q = () => {
149
- var t, l, r;
150
- return (r = (l = (t = B.value) == null ? void 0 : t.popperRef) == null ? void 0 : l.popperInstanceRef) == null ? void 0 : r.destroy();
151
- }, W = (t) => {
152
- t || Q();
153
- }, V = (t) => {
156
+ borderBottomColor: M.value ? e.props.activeTextColor ? $.value : "" : "transparent",
157
+ color: M.value ? $.value : O.value
158
+ }), X = () => {
159
+ var t, l, i;
160
+ return (i = (l = (t = P.value) == null ? void 0 : t.popperRef) == null ? void 0 : l.popperInstanceRef) == null ? void 0 : i.destroy();
161
+ }, Y = (t) => {
162
+ t || X();
163
+ }, R = (t) => {
154
164
  if (e.props.menuTrigger === "hover" && e.props.mode === "horizontal" || e.props.collapse && e.props.mode === "vertical" || o.disabled)
155
165
  return;
156
166
  const l = {
157
167
  e: t,
158
168
  index: o.index,
159
- indexPath: h.value,
160
- active: b.value
169
+ indexPath: T.value,
170
+ active: M.value
161
171
  };
162
172
  e.handleSubMenuClick(l);
163
- }, g = (t, l = o.showTimeout) => {
164
- var r;
165
- t.type !== "focus" && (e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || o.disabled || (a.mouseInChild.value = !0, p == null || p(), {
166
- stop: p
167
- } = L(() => {
168
- e.openMenu(o.index, h.value);
169
- }, l), w.value && ((r = z.value.vnode.el) == null || r.dispatchEvent(new MouseEvent("mouseenter")))));
170
- }, y = (t = !1) => {
171
- var l, r;
172
- e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || (p == null || p(), a.mouseInChild.value = !1, {
173
- stop: p
174
- } = L(() => !A.value && e.closeMenu(o.index, h.value), o.hideTimeout), w.value && t && ((l = f.parent) == null ? void 0 : l.type.name) === "vft-sub-menu" && ((r = a.handleMouseleave) == null || r.call(a, !0)));
173
+ }, b = (t, l = o.showTimeout) => {
174
+ var i;
175
+ t.type !== "focus" && (e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || o.disabled || (u.mouseInChild.value = !0, m == null || m(), {
176
+ stop: m
177
+ } = Z(() => {
178
+ e.openMenu(o.index, T.value);
179
+ }, l), y.value && ((i = A.value.vnode.el) == null || i.dispatchEvent(new MouseEvent("mouseenter"))), E("mouseenter", t)));
180
+ }, _ = () => {
181
+ e.inSubMenuMouseEnterTimer && clearTimeout(e.inSubMenuMouseEnterTimer), e.inSubMenuMouseleaveTimer && clearTimeout(e.inSubMenuMouseleaveTimer), e.inSubMenuMouseEnterTimer = setTimeout(() => {
182
+ e.inSubMenu = !0;
183
+ }, o.showTimeout + 10);
184
+ }, ee = () => {
185
+ e.inSubMenuMouseEnterTimer && clearTimeout(e.inSubMenuMouseEnterTimer), e.inSubMenuMouseleaveTimer && clearTimeout(e.inSubMenuMouseleaveTimer), e.inSubMenuMouseleaveTimer = setTimeout(() => {
186
+ e.inSubMenu = !1;
187
+ }, o.hideTimeout - 10);
188
+ }, g = (t, l = !1) => {
189
+ var i, n;
190
+ e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || (m == null || m(), u.mouseInChild.value = !1, {
191
+ stop: m
192
+ } = Z(() => {
193
+ !B.value && e.closeMenu(o.index, T.value);
194
+ }, o.hideTimeout), y.value && l && ((i = f.parent) == null ? void 0 : i.type.name) === "vft-sub-menu" && ((n = u.handleMouseleave) == null || n.call(u, t, !0)), E("mouseleave", t));
175
195
  };
176
- ee(() => e.props.collapse, (t) => W(!!t));
196
+ le(() => e.props.collapse, (t) => Y(!!t));
177
197
  {
178
- const t = (r) => {
179
- T.value[r.index] = r;
180
- }, l = (r) => {
181
- delete T.value[r.index];
198
+ const t = (i) => {
199
+ w.value[i.index] = i;
200
+ }, l = (i) => {
201
+ delete w.value[i.index];
182
202
  };
183
- oe(`subMenu:${f.uid}`, {
203
+ ue(`subMenu:${f.uid}`, {
184
204
  addSubMenu: t,
185
205
  removeSubMenu: l,
186
- handleMouseleave: y,
187
- mouseInChild: A,
188
- level: a.level + 1
206
+ handleMouseleave: g,
207
+ mouseInChild: B,
208
+ level: u.level + 1
189
209
  });
190
210
  }
191
- q({
211
+ J({
192
212
  opened: c
193
- }), te(() => {
194
- e.addSubMenu(C), a.addSubMenu(C);
195
- }), re(() => {
196
- a.removeSubMenu(C), e.removeSubMenu(C);
213
+ }), ae(() => {
214
+ e.addSubMenu(S), u.addSubMenu(S);
215
+ }), se(() => {
216
+ u.removeSubMenu(S), e.removeSubMenu(S);
197
217
  });
198
- const v = ne(), X = n(() => d.value === "horizontal" && M.value || d.value === "vertical" && !e.props.collapse ? {
218
+ const v = pe(), D = r(() => I(o.icon, "icon")), oe = r(() => I(o.expandIcon, "icon")), te = r(() => I(o.collapseIcon, "icon")), ne = r(() => d.value === "horizontal" && C.value || d.value === "vertical" && !e.props.collapse ? {
199
219
  icon: "ico-ep:arrow-down",
200
220
  size: 20,
201
- ...o.expandIcon
221
+ ...oe.value
202
222
  } : {
203
223
  icon: "ico-ep:arrow-right",
204
224
  size: 18,
205
- ...o.collapseIcon
206
- }), N = n(() => pe(o.icon, "icon")), R = n(() => me(f, "title"));
225
+ ...te.value
226
+ }), H = r(() => Me(f, "title"));
207
227
  return () => {
208
- var r;
209
- const t = [(r = N.value) != null && r.icon ? i(H, {
210
- ...N.value
211
- }) : null, i("span", {
212
- class: o.showArrow ? s.e("text") : "",
228
+ var i;
229
+ const t = [(i = D.value) != null && i.icon ? a(U, {
230
+ ...D.value
231
+ }) : null, a("span", {
232
+ class: s.e("text"),
213
233
  title: f.props.title
214
- }, R.value), o.showArrow ? i(H, {
234
+ }, H.value), o.showArrow ? a(U, {
215
235
  class: s.e("icon-arrow"),
216
- ...X.value,
236
+ ...ne.value,
217
237
  style: {
218
238
  transform: c.value ? "rotateZ(180deg)" : "none"
219
239
  }
220
- }) : !1], l = e.isMenuPopup ? i(se, {
221
- ref: B,
240
+ }) : !1], l = e.isMenuPopup ? a(fe, {
241
+ ref: P,
222
242
  visible: c.value,
223
243
  effect: "light",
224
244
  pure: !0,
@@ -226,64 +246,66 @@ const S = (
226
246
  showArrow: !1,
227
247
  persistent: !0,
228
248
  popperClass: o.popperClass,
229
- placement: P.value,
230
- teleported: w.value,
231
- fallbackPlacements: K.value,
232
- transition: J.value,
249
+ placement: j.value,
250
+ teleported: y.value,
251
+ fallbackPlacements: W.value,
252
+ transition: Q.value,
233
253
  gpuAcceleration: !1,
234
254
  ...o.toolTipCfg
235
255
  }, {
236
256
  content: () => {
237
- var m;
238
- return i("div", {
239
- class: [u.m(d.value), u.m("popup-container"), o.popperClass],
240
- onMouseenter: (k) => g(k, 100),
241
- onMouseleave: () => y(!0),
242
- onFocus: (k) => g(k, 100)
243
- }, [i("ul", {
244
- class: [u.b(), u.m("popup"), u.m(`popup-${P.value}`)],
245
- style: $.value
246
- }, [(m = v.default) == null ? void 0 : m.call(v)])]);
257
+ var n;
258
+ return a("div", {
259
+ class: [p.m(d.value), p.m("popup-container"), o.popperClass],
260
+ onMouseenter: (h) => b(h, 100),
261
+ onMouseleave: (h) => g(h, !0),
262
+ onFocus: (h) => b(h, 100)
263
+ }, [a("ul", {
264
+ class: [p.b(), p.m("popup"), p.m(`popup-${j.value}`)],
265
+ style: V.value
266
+ }, [(n = v.default) == null ? void 0 : n.call(v)])]);
247
267
  },
248
- default: () => i("div", {
268
+ default: () => a("div", {
249
269
  class: s.e("title"),
250
- style: [O.value, {
251
- backgroundColor: j.value
270
+ style: [N.value, {
271
+ backgroundColor: F.value
252
272
  }],
253
- onClick: (m) => V(m)
273
+ onMouseenter: (n) => b(n),
274
+ onMouseleave: (n) => g(n, !0),
275
+ onClick: (n) => R(n)
254
276
  }, t)
255
277
  }) : (
256
278
  // 以下是无需 tooltip 渲染的组件,通常是侧边栏没有折叠的时候
257
- i(le, {}, [R.value ? i("div", {
279
+ a(me, {}, [H.value ? a("div", {
258
280
  class: s.e("title"),
259
- style: [O.value, {
260
- backgroundColor: j.value
281
+ style: [N.value, {
282
+ backgroundColor: F.value
261
283
  }],
262
- ref: G,
263
- onClick: V
264
- }, t) : null, i(ue, {}, {
284
+ ref: K,
285
+ onClick: R
286
+ }, t) : null, a(ve, {}, {
265
287
  default: () => {
266
- var m;
267
- return ie(i("ul", {
288
+ var n;
289
+ return ce(a("ul", {
268
290
  role: "menu",
269
- class: [u.b(), u.m("inline")],
270
- style: $.value
271
- }, [(m = v.default) == null ? void 0 : m.call(v)]), [[ae, c.value]]);
291
+ class: [p.b(), p.m("inline")],
292
+ style: V.value
293
+ }, [(n = v.default) == null ? void 0 : n.call(v)]), [[de, c.value]]);
272
294
  }
273
295
  })])
274
296
  );
275
- return i("li", {
276
- class: [s.b(), s.is("active", b.value), s.is("opened", c.value), s.is("disabled", o.disabled)],
297
+ return a("li", {
298
+ class: [s.b(), s.is("active", M.value), s.e(String(u.level)), s.is("in-popup", u.level !== 0), s.is("opened", c.value), s.is("disabled", o.disabled)],
277
299
  role: "menuitem",
278
300
  ariaHaspopup: !0,
279
301
  ariaExpanded: c.value,
280
- onMouseenter: g,
281
- onMouseleave: () => y(!0),
282
- onFocus: g
302
+ onMouseenter: [_, (n) => b(n)],
303
+ onMouseleave: [ee, (n) => g(n, !0)],
304
+ onFocus: b
283
305
  }, [l]);
284
306
  };
285
307
  }
286
308
  });
287
309
  export {
288
- Lo as default
310
+ ot as default
289
311
  };
@@ -62,6 +62,8 @@ import "../virtual-list/components/fixed-size-grid.js";
62
62
  import "../virtual-list/components/dynamic-size-grid.js";
63
63
  import "../virtual-list/props.js";
64
64
  import "../select-v2/index.js";
65
+ import "../select/index.js";
66
+ import "../tree-select/index.js";
65
67
  import "../verify-code/index.js";
66
68
  import "../table/index.js";
67
69
  import "../image-viewer/index.js";
@@ -73,6 +75,12 @@ import "../row/index.js";
73
75
  import "../horizontal-menu/index.js";
74
76
  import "../time-picker/index.js";
75
77
  import "../date-picker/index.js";
78
+ import "../check-tag/index.js";
79
+ import "../tree/index.js";
80
+ import "../skeleton/index.js";
81
+ import "../space/index.js";
82
+ import "../card/index.js";
83
+ import "../popconfirm/index.js";
76
84
  import "../md-container/index.js";
77
85
  import "../md-comment/index.js";
78
86
  import "../md-tabs/index.js";
@@ -87,7 +95,7 @@ const M = (
87
95
  X("multiple-tabs")
88
96
  ), rt = P({
89
97
  name: M.b()
90
- }), ze = /* @__PURE__ */ P({
98
+ }), je = /* @__PURE__ */ P({
91
99
  ...rt,
92
100
  props: {
93
101
  tabsStyle: null,
@@ -97,47 +105,47 @@ const M = (
97
105
  setup(d) {
98
106
  const i = et();
99
107
  d.canDrag && ot(i);
100
- const u = J(), n = v(""), a = v(0), b = v(), s = E().appContext.config.globalProperties.$router, { go: g } = q(s), c = h(() => u.getTabList.filter((t) => {
108
+ const s = J(), m = v(""), a = v(0), b = v(), u = E().appContext.config.globalProperties.$router, { go: g } = q(u), c = h(() => s.getTabList.filter((t) => {
101
109
  var e;
102
110
  return !((e = t.meta) != null && e.hideTab);
103
111
  }));
104
112
  H(() => {
105
113
  var t;
106
- if (n.value) {
107
- const e = c.value.findIndex((o) => f(o) === n.value);
114
+ if (m.value) {
115
+ const e = c.value.findIndex((o) => f(o) === m.value);
108
116
  e === -1 ? a.value = ((t = c.value) == null ? void 0 : t.length) - 1 : a.value = e, a.value = a.value < (i == null ? void 0 : i.length) ? (i == null ? void 0 : i.length) - 1 : a.value;
109
117
  }
110
118
  }), W(() => {
111
- b.value = r(s.currentRoute);
119
+ b.value = r(u.currentRoute);
112
120
  }), G((t) => {
113
121
  var T;
114
122
  if (!t || (T = t.meta) != null && T.hasTokenToRoot)
115
123
  return;
116
- const { meta: e = {} } = t, { currentActivePath: o, hideTab: m } = e, p = m ? o : null, l = f(t);
117
- if (n.value !== l && (n.value = l), p) {
118
- let y = s.getRoutes().find((D) => D.path === o);
119
- y && u.addTab(y, r(b), a.value, t);
124
+ const { meta: e = {} } = t, { currentActivePath: o, hideTab: n } = e, p = n ? o : null, l = f(t);
125
+ if (m.value !== l && (m.value = l), p) {
126
+ let y = u.getRoutes().find((D) => D.path === o);
127
+ y && s.addTab(y, r(b), a.value, t);
120
128
  } else
121
- u.addTab(r(t), r(b), a.value);
129
+ s.addTab(r(t), r(b), a.value);
122
130
  });
123
131
  function k(t) {
124
- var m, p;
125
- if (n.value === t.paneName)
132
+ var n, p;
133
+ if (m.value === t.paneName)
126
134
  return;
127
135
  const e = c.value[t.attrs.index];
128
- n.value = t.paneName;
129
- const o = (p = (m = e == null ? void 0 : e.meta) == null ? void 0 : m.hideActiveRoute) == null ? void 0 : p.fullPath;
136
+ m.value = t.paneName;
137
+ const o = (p = (n = e == null ? void 0 : e.meta) == null ? void 0 : n.hideActiveRoute) == null ? void 0 : p.fullPath;
130
138
  g(o || e.fullPath || e.path);
131
139
  }
132
140
  function B(t) {
133
- u.closeTabByKey(t, s);
141
+ s.closeTabByKey(t, u);
134
142
  }
135
143
  const [I, N] = O();
136
- function V(t) {
144
+ function w(t) {
137
145
  const e = t.pane.attrs.index, o = t.event;
138
146
  I.value[e].handleContext(o);
139
147
  }
140
- const w = h(() => ({ ..._({
148
+ const V = h(() => ({ ..._({
141
149
  padding: "4px 0 0",
142
150
  "border-bottom": "none",
143
151
  "header-height": "26px",
@@ -162,22 +170,23 @@ const M = (
162
170
  }));
163
171
  return (t, e) => (x(), R("div", {
164
172
  class: K(r(M).b()),
165
- style: $(r(w))
173
+ style: $(r(V))
166
174
  }, [
167
175
  S(r(Y), {
168
- "model-value": n.value,
169
- "onUpdate:modelValue": e[0] || (e[0] = (o) => n.value = o),
176
+ showBar: !1,
177
+ "model-value": m.value,
178
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => m.value = o),
170
179
  onTabClick: k,
171
180
  onTabRemove: B,
172
- onTabContextMenu: V
181
+ onTabContextMenu: w
173
182
  }, {
174
183
  default: C(() => [
175
- (x(!0), R(F, null, U(r(c), (o, m) => {
184
+ (x(!0), R(F, null, U(r(c), (o, n) => {
176
185
  var p;
177
186
  return x(), j(r(Z), {
178
- key: r(f)(o) + m,
187
+ key: r(f)(o) + n,
179
188
  closable: !((p = o.meta) != null && p.affix),
180
- index: m,
189
+ index: n,
181
190
  name: r(f)(o)
182
191
  }, {
183
192
  label: C(() => {
@@ -187,7 +196,7 @@ const M = (
187
196
  contextMenuStyle: r(z),
188
197
  affixNum: (l = r(i)) == null ? void 0 : l.length,
189
198
  ref_for: !0,
190
- ref: r(N)(m),
199
+ ref: r(N)(n),
191
200
  tabItem: o
192
201
  }, null, 8, ["contextMenuStyle", "affixNum", "tabItem"])
193
202
  ];
@@ -202,5 +211,5 @@ const M = (
202
211
  }
203
212
  });
204
213
  export {
205
- ze as default
214
+ je as default
206
215
  };
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/el-option.css";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/option.scss";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/base.css";
2
+ import "vft/theme-style/el-option-group.css";
@@ -0,0 +1,2 @@
1
+ import "vft/theme-style/src/base.scss";
2
+ import "vft/theme-style/src/option-group.scss";
@@ -0,0 +1,12 @@
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 t from "./popconfirm.vue2.js";
8
+ const s = o(t);
9
+ export {
10
+ s as VftPopconfirm,
11
+ s as default
12
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./popconfirm.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,112 @@
1
+ import { defineComponent as C, ref as N, computed as a, openBlock as y, createBlock as B, unref as o, mergeProps as w, withCtx as l, createElementVNode as f, normalizeClass as c, normalizeStyle as $, createCommentVNode as T, createTextVNode as s, toDisplayString as m, createVNode as x, renderSlot as b } from "vue";
2
+ import { VftButton as h } from "../button/index.js";
3
+ import { VftIcon as I } from "../icon/index.js";
4
+ import { VftTooltip as P } from "../tooltip/index.js";
5
+ import { useNamespace as S } from "../../hooks/use-namespace/index.js";
6
+ import "@popperjs/core";
7
+ import "lodash";
8
+ import "../../hooks/use-z-index/index.js";
9
+ import "@vueuse/core";
10
+ import { addUnit as A } from "@vft/utils";
11
+ import "../../utils/ns-cover.js";
12
+ const E = C({
13
+ name: "ElPopconfirm"
14
+ }), M = /* @__PURE__ */ C({
15
+ ...E,
16
+ props: {
17
+ title: null,
18
+ confirmButtonText: null,
19
+ cancelButtonText: null,
20
+ confirmButtonType: { default: "primary" },
21
+ cancelButtonType: null,
22
+ icon: { default: "ico-ep:question-filled" },
23
+ iconColor: { default: "#f90" },
24
+ hideIcon: { type: Boolean, default: !1 },
25
+ hideAfter: { default: 200 },
26
+ teleported: { type: Boolean, default: !0 },
27
+ persistent: { type: Boolean, default: !0 },
28
+ width: { default: 150 }
29
+ },
30
+ emits: ["confirm", "cancel"],
31
+ setup(e, { emit: u }) {
32
+ const i = e, n = S("popconfirm"), p = N(), d = () => {
33
+ var t, r;
34
+ (r = (t = p.value) == null ? void 0 : t.onClose) == null || r.call(t);
35
+ }, k = a(() => ({
36
+ width: A(i.width)
37
+ })), V = (t) => {
38
+ u("confirm", t), d();
39
+ }, g = (t) => {
40
+ u("cancel", t), d();
41
+ }, v = a(
42
+ () => i.confirmButtonText || "确认"
43
+ ), z = a(
44
+ () => i.cancelButtonText || "取消"
45
+ );
46
+ return (t, r) => (y(), B(o(P), w({
47
+ ref_key: "tooltipRef",
48
+ ref: p,
49
+ trigger: "click",
50
+ effect: "light"
51
+ }, t.$attrs, {
52
+ "popper-class": `${o(n).namespace.value}-popover`,
53
+ "popper-style": o(k),
54
+ teleported: e.teleported,
55
+ "fallback-placements": ["bottom", "top", "right", "left"],
56
+ "hide-after": e.hideAfter,
57
+ persistent: e.persistent
58
+ }), {
59
+ content: l(() => [
60
+ f("div", {
61
+ class: c(o(n).b())
62
+ }, [
63
+ f("div", {
64
+ class: c(o(n).e("main"))
65
+ }, [
66
+ !e.hideIcon && e.icon ? (y(), B(o(I), {
67
+ key: 0,
68
+ icon: e.icon,
69
+ size: 20,
70
+ class: c(o(n).e("icon")),
71
+ style: $({ color: e.iconColor })
72
+ }, null, 8, ["icon", "class", "style"])) : T("", !0),
73
+ s(" " + m(e.title), 1)
74
+ ], 2),
75
+ f("div", {
76
+ class: c(o(n).e("action"))
77
+ }, [
78
+ x(o(h), {
79
+ size: "small",
80
+ type: e.cancelButtonType === "text" ? "" : e.cancelButtonType,
81
+ text: e.cancelButtonType === "text",
82
+ onClick: g
83
+ }, {
84
+ default: l(() => [
85
+ s(m(o(z)), 1)
86
+ ]),
87
+ _: 1
88
+ }, 8, ["type", "text"]),
89
+ x(o(h), {
90
+ size: "small",
91
+ type: e.confirmButtonType === "text" ? "" : e.confirmButtonType,
92
+ text: e.confirmButtonType === "text",
93
+ onClick: V
94
+ }, {
95
+ default: l(() => [
96
+ s(m(o(v)), 1)
97
+ ]),
98
+ _: 1
99
+ }, 8, ["type", "text"])
100
+ ], 2)
101
+ ], 2)
102
+ ]),
103
+ default: l(() => [
104
+ t.$slots.reference ? b(t.$slots, "reference", { key: 0 }) : T("", !0)
105
+ ]),
106
+ _: 3
107
+ }, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]));
108
+ }
109
+ });
110
+ export {
111
+ M as default
112
+ };