vft 0.0.71 → 0.0.72

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 (408) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/component.js +56 -40
  4. package/es/components/aside/style/css.js +2 -0
  5. package/es/components/aside/style/index.js +2 -0
  6. package/es/components/back-top/back-top.vue2.js +8 -2
  7. package/es/components/col/col.vue.js +4 -0
  8. package/es/components/col/col.vue2.js +60 -0
  9. package/es/components/col/index.js +12 -0
  10. package/es/components/col/style/css.js +2 -0
  11. package/es/components/col/style/index.js +2 -0
  12. package/es/components/col/types.js +1 -0
  13. package/es/components/color-picker/utils/color.js +41 -51
  14. package/es/components/container/aside.vue.js +4 -0
  15. package/es/components/container/aside.vue2.js +37 -0
  16. package/es/components/container/container.vue.js +4 -0
  17. package/es/components/container/container.vue2.js +33 -0
  18. package/es/components/container/footer.vue.js +4 -0
  19. package/es/components/container/footer.vue2.js +39 -0
  20. package/es/components/container/header.vue.js +4 -0
  21. package/es/components/container/header.vue2.js +39 -0
  22. package/es/components/container/index.js +25 -0
  23. package/es/components/container/main.vue.js +4 -0
  24. package/es/components/container/main.vue2.js +26 -0
  25. package/es/components/container/style/css.js +6 -0
  26. package/es/components/container/style/index.js +6 -0
  27. package/es/components/context-menu/context-menu.vue2.js +20 -14
  28. package/es/components/date-picker/composables/use-month-range-header.js +29 -0
  29. package/es/components/date-picker/composables/use-range-picker.js +68 -0
  30. package/es/components/date-picker/composables/use-shortcut.js +24 -0
  31. package/es/components/date-picker/constants.js +4 -0
  32. package/es/components/date-picker/date-picker-com/basic-cell-render.js +37 -0
  33. package/es/components/date-picker/date-picker-com/basic-date-table.vue.js +4 -0
  34. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +206 -0
  35. package/es/components/date-picker/date-picker-com/basic-month-table.vue.js +4 -0
  36. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +131 -0
  37. package/es/components/date-picker/date-picker-com/basic-year-table.vue.js +4 -0
  38. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +85 -0
  39. package/es/components/date-picker/date-picker-com/panel-date-pick.vue.js +4 -0
  40. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +455 -0
  41. package/es/components/date-picker/date-picker-com/panel-date-range.vue.js +4 -0
  42. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +383 -0
  43. package/es/components/date-picker/date-picker-com/panel-month-range.vue.js +4 -0
  44. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +170 -0
  45. package/es/components/date-picker/date-picker.js +81 -0
  46. package/es/components/date-picker/date-picker.type.js +1 -0
  47. package/es/components/date-picker/index.js +14 -0
  48. package/es/components/date-picker/panel-utils.js +17 -0
  49. package/es/components/date-picker/props/basic-cell.js +14 -0
  50. package/es/components/date-picker/props/basic-date-table.js +18 -0
  51. package/es/components/date-picker/props/basic-month-table.js +14 -0
  52. package/es/components/date-picker/props/basic-year-table.js +15 -0
  53. package/es/components/date-picker/props/date-picker.js +18 -0
  54. package/es/components/date-picker/props/panel-date-pick.js +23 -0
  55. package/es/components/date-picker/props/panel-date-range.js +14 -0
  56. package/es/components/date-picker/props/panel-month-range.js +14 -0
  57. package/es/components/date-picker/props/shared.js +56 -0
  58. package/es/components/date-picker/style/css.js +2 -0
  59. package/es/components/date-picker/style/index.js +7 -0
  60. package/es/components/date-picker/utils.js +49 -0
  61. package/es/components/date-time-select/date-time-select.vue2.js +70 -62
  62. package/es/components/date-time-select/style/index.js +6 -0
  63. package/es/components/footer/style/css.js +2 -0
  64. package/es/components/footer/style/index.js +2 -0
  65. package/es/components/footer-layout/footer-layout.vue2.js +105 -35
  66. package/es/components/header/style/css.js +2 -0
  67. package/es/components/header/style/index.js +2 -0
  68. package/es/components/header-layout/header-layout.vue2.js +122 -37
  69. package/es/components/horizontal-menu/horizontal-menu.vue.js +4 -0
  70. package/es/components/horizontal-menu/horizontal-menu.vue2.js +115 -0
  71. package/es/components/horizontal-menu/index.js +12 -0
  72. package/es/components/horizontal-menu/style/css.js +6 -0
  73. package/es/components/horizontal-menu/style/index.js +6 -0
  74. package/es/components/index.js +254 -209
  75. package/es/components/input/input.vue2.js +184 -178
  76. package/es/components/link/link.vue2.js +24 -24
  77. package/es/components/logo/logo.vue2.js +21 -21
  78. package/es/components/main/style/css.js +2 -0
  79. package/es/components/main/style/index.js +2 -0
  80. package/es/components/md-container/md-container.vue2.js +65 -59
  81. package/es/components/md-container/toc.js +1 -1
  82. package/es/components/menu/menu-item.vue2.js +89 -62
  83. package/es/components/menu/menu.vue2.js +100 -106
  84. package/es/components/menu/sub-menu.vue2.js +83 -76
  85. package/es/components/menu/utils/menu-item.js +15 -19
  86. package/es/components/menu/utils/submenu.js +20 -25
  87. package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -39
  88. package/es/components/result/result.vue2.js +8 -2
  89. package/es/components/row/constants.js +4 -0
  90. package/es/components/row/index.js +14 -0
  91. package/es/components/row/row.vue.js +4 -0
  92. package/es/components/row/row.vue2.js +49 -0
  93. package/es/components/row/style/css.js +2 -0
  94. package/es/components/row/style/index.js +2 -0
  95. package/es/components/row/types.js +1 -0
  96. package/es/components/search/search.vue2.js +126 -114
  97. package/es/components/side-menu/side-menu.vue2.js +212 -146
  98. package/es/components/side-menu/use-drag-line.js +29 -28
  99. package/es/components/tabs/tab-nav.vue2.js +48 -42
  100. package/es/components/time-picker/common/picker.vue.js +4 -0
  101. package/es/components/time-picker/common/picker.vue2.js +438 -0
  102. package/es/components/time-picker/common/props.js +201 -0
  103. package/es/components/time-picker/composables/use-time-panel.js +60 -0
  104. package/es/components/time-picker/composables/use-time-picker.js +40 -0
  105. package/es/components/time-picker/constants.js +17 -0
  106. package/es/components/time-picker/index.js +31 -0
  107. package/es/components/time-picker/props/basic-time-spinner.js +31 -0
  108. package/es/components/time-picker/props/panel-time-picker.js +17 -0
  109. package/es/components/time-picker/props/panel-time-range.js +16 -0
  110. package/es/components/time-picker/props/shared.js +40 -0
  111. package/es/components/time-picker/style/css.js +2 -0
  112. package/es/components/time-picker/style/index.js +2 -0
  113. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue.js +4 -0
  114. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +227 -0
  115. package/es/components/time-picker/time-picker-com/panel-time-pick.vue.js +4 -0
  116. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +107 -0
  117. package/es/components/time-picker/time-picker-com/panel-time-range.vue.js +4 -0
  118. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +190 -0
  119. package/es/components/time-picker/time-picker.js +70 -0
  120. package/es/components/time-picker/types.js +1 -0
  121. package/es/components/time-picker/utils.js +35 -0
  122. package/es/components/time-select/style/css.js +2 -0
  123. package/es/components/time-select/style/index.js +2 -0
  124. package/es/components/time-select/time-select.js +54 -0
  125. package/es/components/time-select/time-select.vue.js +4 -0
  126. package/es/components/time-select/time-select.vue2.js +104 -0
  127. package/es/components/time-select/utils.js +40 -0
  128. package/es/components/tooltip/index.js +5 -3
  129. package/es/index.js +381 -336
  130. package/es/package.json.js +1 -1
  131. package/global.d.ts +73 -2
  132. package/lib/component.cjs +1 -1
  133. package/lib/components/aside/style/css.cjs +1 -0
  134. package/lib/components/aside/style/index.cjs +1 -0
  135. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  136. package/lib/components/col/col.vue.cjs +1 -0
  137. package/lib/components/col/col.vue2.cjs +1 -0
  138. package/lib/components/col/index.cjs +1 -0
  139. package/lib/components/col/style/css.cjs +1 -0
  140. package/lib/components/col/style/index.cjs +1 -0
  141. package/lib/components/col/types.cjs +1 -0
  142. package/lib/components/color-picker/utils/color.cjs +1 -1
  143. package/lib/components/container/aside.vue.cjs +1 -0
  144. package/lib/components/container/aside.vue2.cjs +1 -0
  145. package/lib/components/container/container.vue.cjs +1 -0
  146. package/lib/components/container/container.vue2.cjs +1 -0
  147. package/lib/components/container/footer.vue.cjs +1 -0
  148. package/lib/components/container/footer.vue2.cjs +1 -0
  149. package/lib/components/container/header.vue.cjs +1 -0
  150. package/lib/components/container/header.vue2.cjs +1 -0
  151. package/lib/components/container/index.cjs +1 -0
  152. package/lib/components/container/main.vue.cjs +1 -0
  153. package/lib/components/container/main.vue2.cjs +1 -0
  154. package/lib/components/container/style/css.cjs +1 -0
  155. package/lib/components/container/style/index.cjs +1 -0
  156. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  157. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -0
  158. package/lib/components/date-picker/composables/use-range-picker.cjs +1 -0
  159. package/lib/components/date-picker/composables/use-shortcut.cjs +1 -0
  160. package/lib/components/date-picker/constants.cjs +1 -0
  161. package/lib/components/date-picker/date-picker-com/basic-cell-render.cjs +1 -0
  162. package/lib/components/date-picker/date-picker-com/basic-date-table.vue.cjs +1 -0
  163. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -0
  164. package/lib/components/date-picker/date-picker-com/basic-month-table.vue.cjs +1 -0
  165. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -0
  166. package/lib/components/date-picker/date-picker-com/basic-year-table.vue.cjs +1 -0
  167. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -0
  168. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue.cjs +1 -0
  169. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -0
  170. package/lib/components/date-picker/date-picker-com/panel-date-range.vue.cjs +1 -0
  171. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -0
  172. package/lib/components/date-picker/date-picker-com/panel-month-range.vue.cjs +1 -0
  173. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -0
  174. package/lib/components/date-picker/date-picker.cjs +1 -0
  175. package/lib/components/date-picker/date-picker.type.cjs +1 -0
  176. package/lib/components/date-picker/index.cjs +1 -0
  177. package/lib/components/date-picker/panel-utils.cjs +1 -0
  178. package/lib/components/date-picker/props/basic-cell.cjs +1 -0
  179. package/lib/components/date-picker/props/basic-date-table.cjs +1 -0
  180. package/lib/components/date-picker/props/basic-month-table.cjs +1 -0
  181. package/lib/components/date-picker/props/basic-year-table.cjs +1 -0
  182. package/lib/components/date-picker/props/date-picker.cjs +1 -0
  183. package/lib/components/date-picker/props/panel-date-pick.cjs +1 -0
  184. package/lib/components/date-picker/props/panel-date-range.cjs +1 -0
  185. package/lib/components/date-picker/props/panel-month-range.cjs +1 -0
  186. package/lib/components/date-picker/props/shared.cjs +1 -0
  187. package/lib/components/date-picker/style/css.cjs +1 -0
  188. package/lib/components/date-picker/style/index.cjs +1 -0
  189. package/lib/components/date-picker/utils.cjs +1 -0
  190. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  191. package/lib/components/date-time-select/style/index.cjs +1 -1
  192. package/lib/components/footer/style/css.cjs +1 -0
  193. package/lib/components/footer/style/index.cjs +1 -0
  194. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  195. package/lib/components/header/style/css.cjs +1 -0
  196. package/lib/components/header/style/index.cjs +1 -0
  197. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  198. package/lib/components/horizontal-menu/horizontal-menu.vue.cjs +1 -0
  199. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -0
  200. package/lib/components/horizontal-menu/index.cjs +1 -0
  201. package/lib/components/horizontal-menu/style/css.cjs +1 -0
  202. package/lib/components/horizontal-menu/style/index.cjs +1 -0
  203. package/lib/components/index.cjs +1 -1
  204. package/lib/components/input/input.vue2.cjs +1 -1
  205. package/lib/components/link/link.vue2.cjs +1 -1
  206. package/lib/components/logo/logo.vue2.cjs +1 -1
  207. package/lib/components/main/style/css.cjs +1 -0
  208. package/lib/components/main/style/index.cjs +1 -0
  209. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  210. package/lib/components/md-container/toc.cjs +1 -1
  211. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  212. package/lib/components/menu/menu.vue2.cjs +1 -1
  213. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  214. package/lib/components/menu/utils/menu-item.cjs +1 -1
  215. package/lib/components/menu/utils/submenu.cjs +1 -1
  216. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  217. package/lib/components/result/result.vue2.cjs +1 -1
  218. package/lib/components/row/constants.cjs +1 -0
  219. package/lib/components/row/index.cjs +1 -0
  220. package/lib/components/row/row.vue.cjs +1 -0
  221. package/lib/components/row/row.vue2.cjs +1 -0
  222. package/lib/components/row/style/css.cjs +1 -0
  223. package/lib/components/row/style/index.cjs +1 -0
  224. package/lib/components/row/types.cjs +1 -0
  225. package/lib/components/search/search.vue2.cjs +1 -1
  226. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  227. package/lib/components/side-menu/use-drag-line.cjs +1 -1
  228. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  229. package/lib/components/time-picker/common/picker.vue.cjs +1 -0
  230. package/lib/components/time-picker/common/picker.vue2.cjs +1 -0
  231. package/lib/components/time-picker/common/props.cjs +1 -0
  232. package/lib/components/time-picker/composables/use-time-panel.cjs +1 -0
  233. package/lib/components/time-picker/composables/use-time-picker.cjs +1 -0
  234. package/lib/components/time-picker/constants.cjs +1 -0
  235. package/lib/components/time-picker/index.cjs +1 -0
  236. package/lib/components/time-picker/props/basic-time-spinner.cjs +1 -0
  237. package/lib/components/time-picker/props/panel-time-picker.cjs +1 -0
  238. package/lib/components/time-picker/props/panel-time-range.cjs +1 -0
  239. package/lib/components/time-picker/props/shared.cjs +1 -0
  240. package/lib/components/time-picker/style/css.cjs +1 -0
  241. package/lib/components/time-picker/style/index.cjs +1 -0
  242. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue.cjs +1 -0
  243. package/lib/components/time-picker/time-picker-com/basic-time-spinner.vue2.cjs +1 -0
  244. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue.cjs +1 -0
  245. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -0
  246. package/lib/components/time-picker/time-picker-com/panel-time-range.vue.cjs +1 -0
  247. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -0
  248. package/lib/components/time-picker/time-picker.cjs +1 -0
  249. package/lib/components/time-picker/types.cjs +1 -0
  250. package/lib/components/time-picker/utils.cjs +1 -0
  251. package/lib/components/time-select/style/css.cjs +1 -0
  252. package/lib/components/time-select/style/index.cjs +1 -0
  253. package/lib/components/time-select/time-select.cjs +1 -0
  254. package/lib/components/time-select/time-select.vue.cjs +1 -0
  255. package/lib/components/time-select/time-select.vue2.cjs +1 -0
  256. package/lib/components/time-select/utils.cjs +1 -0
  257. package/lib/components/tooltip/index.cjs +1 -1
  258. package/lib/index.cjs +1 -1
  259. package/lib/package.json.cjs +1 -1
  260. package/package.json +7 -7
  261. package/tags.json +1 -1
  262. package/theme-style/base.css +1 -1
  263. package/theme-style/display.css +1 -0
  264. package/theme-style/index.css +1 -1
  265. package/theme-style/src/affix.scss +7 -0
  266. package/theme-style/src/aside.scss +8 -0
  267. package/theme-style/src/autocomplete.scss +83 -0
  268. package/theme-style/src/back-top.scss +7 -6
  269. package/theme-style/src/badge.scss +57 -0
  270. package/theme-style/src/breadcrumb-item.scss +0 -0
  271. package/theme-style/src/breadcrumb.scss +61 -0
  272. package/theme-style/src/calendar.scss +80 -0
  273. package/theme-style/src/card.scss +38 -0
  274. package/theme-style/src/carousel-item.scss +50 -0
  275. package/theme-style/src/carousel.scss +174 -0
  276. package/theme-style/src/cascader-panel.scss +138 -0
  277. package/theme-style/src/cascader.scss +216 -0
  278. package/theme-style/src/check-tag.scss +29 -0
  279. package/theme-style/src/col.scss +52 -0
  280. package/theme-style/src/collapse-item.scss +0 -0
  281. package/theme-style/src/collapse.scss +67 -0
  282. package/theme-style/src/color-picker.scss +2 -2
  283. package/theme-style/src/common/popup.scss +47 -0
  284. package/theme-style/src/common/var.scss +381 -6
  285. package/theme-style/src/container.scss +14 -0
  286. package/theme-style/src/date-picker/date-picker.scss +110 -0
  287. package/theme-style/src/date-picker/date-range-picker.scss +113 -0
  288. package/theme-style/src/date-picker/date-table.scss +162 -0
  289. package/theme-style/src/date-picker/month-table.scss +90 -0
  290. package/theme-style/src/date-picker/picker-panel.scss +131 -0
  291. package/theme-style/src/date-picker/picker.scss +210 -0
  292. package/theme-style/src/date-picker/time-picker.scss +90 -0
  293. package/theme-style/src/date-picker/time-range-picker.scss +33 -0
  294. package/theme-style/src/date-picker/time-spinner.scss +111 -0
  295. package/theme-style/src/date-picker/year-table.scss +60 -0
  296. package/theme-style/src/date-picker.scss +9 -0
  297. package/theme-style/src/date-time-select.scss +1 -1
  298. package/theme-style/src/display.scss +12 -0
  299. package/theme-style/src/drawer.scss +160 -0
  300. package/theme-style/src/footer-layout.scss +4 -9
  301. package/theme-style/src/footer.scss +11 -0
  302. package/theme-style/src/header-layout.scss +26 -15
  303. package/theme-style/src/header.scss +11 -0
  304. package/theme-style/src/horizontal-menu.scss +90 -0
  305. package/theme-style/src/icon.scss +6 -6
  306. package/theme-style/src/index.scss +123 -76
  307. package/theme-style/src/infinite-scroll.scss +0 -0
  308. package/theme-style/src/input-number.scss +175 -0
  309. package/theme-style/src/input.scss +2 -4
  310. package/theme-style/src/list-cell.scss +3 -3
  311. package/theme-style/src/loading.scss +1 -1
  312. package/theme-style/src/main.scss +10 -0
  313. package/theme-style/src/md/code.scss +3 -3
  314. package/theme-style/src/md/demo-block.scss +2 -2
  315. package/theme-style/src/md/pswp.scss +4 -4
  316. package/theme-style/src/md/scroll-bar.scss +1 -1
  317. package/theme-style/src/md/table.scss +3 -3
  318. package/theme-style/src/md/toc.scss +3 -3
  319. package/theme-style/src/md-container.scss +6 -8
  320. package/theme-style/src/menu.scss +43 -17
  321. package/theme-style/src/message-box.scss +258 -0
  322. package/theme-style/src/mixins/_col.scss +38 -0
  323. package/theme-style/src/mixins/mixins.scss +25 -0
  324. package/theme-style/src/notification.scss +105 -0
  325. package/theme-style/src/option.scss +36 -0
  326. package/theme-style/src/pagination.scss +0 -2
  327. package/theme-style/src/progress.scss +169 -0
  328. package/theme-style/src/rate.scss +101 -0
  329. package/theme-style/src/reset.scss +92 -0
  330. package/theme-style/src/row.scss +31 -0
  331. package/theme-style/src/search.scss +6 -5
  332. package/theme-style/src/select-dropdown.scss +2 -2
  333. package/theme-style/src/side-menu.scss +9 -3
  334. package/theme-style/src/slider.scss +211 -0
  335. package/theme-style/src/space.scss +20 -0
  336. package/theme-style/src/spinner.scss +43 -0
  337. package/theme-style/src/statistic.scss +35 -0
  338. package/theme-style/src/step.scss +316 -0
  339. package/theme-style/src/steps.scss +21 -0
  340. package/theme-style/src/tabs.scss +2 -2
  341. package/theme-style/src/time-picker.scss +5 -0
  342. package/theme-style/src/time-select.scss +37 -0
  343. package/theme-style/src/timeline-item.scss +85 -0
  344. package/theme-style/src/timeline.scss +46 -0
  345. package/theme-style/src/transfer.scss +206 -0
  346. package/theme-style/src/tree-select.scss +36 -0
  347. package/theme-style/src/tree.scss +131 -0
  348. package/theme-style/src/upload.scss +621 -0
  349. package/theme-style/vft-affix.css +1 -0
  350. package/theme-style/vft-aside.css +1 -0
  351. package/theme-style/vft-autocomplete.css +1 -0
  352. package/theme-style/vft-back-top.css +1 -1
  353. package/theme-style/vft-badge.css +1 -0
  354. package/theme-style/vft-breadcrumb-item.css +0 -0
  355. package/theme-style/vft-breadcrumb.css +1 -0
  356. package/theme-style/vft-calendar.css +1 -0
  357. package/theme-style/vft-card.css +1 -0
  358. package/theme-style/vft-carousel-item.css +1 -0
  359. package/theme-style/vft-carousel.css +1 -0
  360. package/theme-style/vft-cascader-panel.css +1 -0
  361. package/theme-style/vft-cascader.css +1 -0
  362. package/theme-style/vft-check-tag.css +1 -0
  363. package/theme-style/vft-col.css +1 -0
  364. package/theme-style/vft-collapse-item.css +0 -0
  365. package/theme-style/vft-collapse.css +1 -0
  366. package/theme-style/vft-color-picker.css +1 -1
  367. package/theme-style/vft-container.css +1 -0
  368. package/theme-style/vft-date-picker.css +1 -0
  369. package/theme-style/vft-drawer.css +1 -0
  370. package/theme-style/vft-footer-layout.css +1 -1
  371. package/theme-style/vft-footer.css +1 -0
  372. package/theme-style/vft-header-layout.css +1 -1
  373. package/theme-style/vft-header.css +1 -0
  374. package/theme-style/vft-horizontal-menu.css +1 -0
  375. package/theme-style/vft-infinite-scroll.css +0 -0
  376. package/theme-style/vft-input-number.css +1 -0
  377. package/theme-style/vft-main.css +1 -0
  378. package/theme-style/vft-md-container.css +1 -1
  379. package/theme-style/vft-menu.css +1 -1
  380. package/theme-style/vft-message-box.css +1 -0
  381. package/theme-style/vft-notification.css +1 -0
  382. package/theme-style/vft-option.css +1 -0
  383. package/theme-style/vft-pagination.css +1 -1
  384. package/theme-style/vft-progress.css +1 -0
  385. package/theme-style/vft-rate.css +1 -0
  386. package/theme-style/vft-reset.css +1 -0
  387. package/theme-style/vft-row.css +1 -0
  388. package/theme-style/vft-search.css +1 -1
  389. package/theme-style/vft-select-dropdown.css +1 -1
  390. package/theme-style/vft-select.css +1 -1
  391. package/theme-style/vft-side-menu.css +1 -1
  392. package/theme-style/vft-slider.css +1 -0
  393. package/theme-style/vft-space.css +1 -0
  394. package/theme-style/vft-spinner.css +1 -0
  395. package/theme-style/vft-statistic.css +1 -0
  396. package/theme-style/vft-step.css +1 -0
  397. package/theme-style/vft-steps.css +1 -0
  398. package/theme-style/vft-time-picker.css +1 -0
  399. package/theme-style/vft-time-select.css +1 -0
  400. package/theme-style/vft-timeline-item.css +1 -0
  401. package/theme-style/vft-timeline.css +1 -0
  402. package/theme-style/vft-transfer.css +1 -0
  403. package/theme-style/vft-tree-select.css +1 -0
  404. package/theme-style/vft-tree.css +1 -0
  405. package/theme-style/vft-upload.css +1 -0
  406. package/theme-style/vft-var.css +1 -1
  407. package/web-types.json +1 -1
  408. package/theme-style/src/md/list.scss +0 -21
@@ -1,24 +1,24 @@
1
- import { defineComponent as B, useSlots as J, getCurrentInstance as K, ref as d, computed as Q, watch as O, watchEffect as U, provide as A, reactive as X, onMounted as Y, h as I, nextTick as Z } from "vue";
2
- import { useResizeObserver as _ } from "@vueuse/core";
3
- import "@vft/utils";
4
- import { flattedChildren as ee } from "../../utils/vue/vnode.js";
1
+ import { defineComponent as B, useSlots as J, getCurrentInstance as K, ref as r, computed as Q, watch as O, watchEffect as X, provide as w, reactive as Y, onMounted as Z, h as S, nextTick as _ } from "vue";
2
+ import { useResizeObserver as ee } from "@vueuse/core";
3
+ import { isNullOrUndefined as A } from "@vft/utils";
4
+ import { flattedChildren as te } from "../../utils/vue/vnode.js";
5
5
  import "lodash";
6
6
  import "../../utils/ns-cover.js";
7
- import { useNamespace as N } from "../../hooks/use-namespace/index.js";
7
+ import { useNamespace as W } from "../../hooks/use-namespace/index.js";
8
8
  import "@popperjs/core";
9
9
  import "../../hooks/use-z-index/index.js";
10
- import te from "./utils/menu-bar.js";
10
+ import ne from "./utils/menu-bar.js";
11
11
  import le from "./menu-collapse-transition.vue.js";
12
- import ne from "./sub-menu.vue2.js";
13
- import { useMenuCssVar as oe } from "./use-menu-css-var.js";
14
- import { VftIcon as ue } from "../icon/index.js";
12
+ import oe from "./sub-menu.vue2.js";
13
+ import { useMenuCssVar as ue } from "./use-menu-css-var.js";
14
+ import { VftIcon as ae } from "../icon/index.js";
15
15
  const M = (
16
16
  /* hoist-static*/
17
- N("menu")
18
- ), ae = B({
17
+ W("menu")
18
+ ), ie = B({
19
19
  name: M.b()
20
- }), Ie = /* @__PURE__ */ B({
21
- ...ae,
20
+ }), ye = /* @__PURE__ */ B({
21
+ ...ie,
22
22
  props: {
23
23
  mode: { default: "vertical" },
24
24
  defaultActive: { default: "" },
@@ -27,180 +27,174 @@ const M = (
27
27
  router: { type: Boolean },
28
28
  menuTrigger: { default: "hover" },
29
29
  collapse: { type: Boolean },
30
- backgroundColor: null,
31
- textColor: null,
32
- activeTextColor: null,
33
30
  collapseTransition: { type: Boolean, default: !0 },
34
31
  ellipsis: { type: Boolean, default: !0 }
35
32
  },
36
- emits: [
37
- "close",
38
- "open",
39
- "select"
40
- ],
41
- setup(l, { expose: W, emit: b }) {
42
- const y = J(), v = K(), T = v.appContext.config.globalProperties.$router, s = d(), z = N("sub-menu"), f = d(-1), o = d(
43
- l.defaultOpeneds && !l.collapse ? l.defaultOpeneds.slice(0) : []
44
- ), u = d(l.defaultActive), c = d({}), h = d({}), E = Q(() => l.mode === "horizontal" || l.mode === "vertical" && l.collapse), V = () => {
45
- const e = u.value && c.value[u.value];
46
- if (!e || l.mode === "horizontal" || l.collapse)
33
+ emits: ["update:collapse", "select", "close", "open"],
34
+ setup(n, { expose: E, emit: b }) {
35
+ const y = J(), v = K(), T = v.appContext.config.globalProperties.$router, i = r(), z = W("sub-menu"), f = r(-1), u = r(
36
+ n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []
37
+ ), a = r(n.defaultActive), c = r({}), h = r({}), V = Q(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), $ = () => {
38
+ const e = a.value && c.value[a.value];
39
+ if (!e || n.mode === "horizontal" || n.collapse)
47
40
  return;
48
- e.indexPath.forEach((n) => {
49
- const a = h.value[n];
50
- a && g(n, a.indexPath);
41
+ e.indexPath.forEach((l) => {
42
+ const o = h.value[l];
43
+ o && g(l, o.indexPath);
51
44
  });
52
- }, g = (e, t) => {
53
- o.value.includes(e) || (l.uniqueOpened && (o.value = o.value.filter((n) => t.includes(n))), o.value.push(e), b("open", e, t));
54
- }, S = (e, t) => {
55
- const n = o.value.indexOf(e);
56
- n !== -1 && o.value.splice(n, 1), b("close", e, t);
57
- }, $ = ({ index: e, indexPath: t }) => {
58
- o.value.includes(e) ? S(e, t) : g(e, t);
59
- }, q = (e) => {
60
- (l.mode === "horizontal" || l.collapse) && (o.value = []);
61
- const { index: t, indexPath: n } = e;
62
- if (!(t === void 0 || n === void 0))
63
- if (l.router && T) {
64
- const a = e.route || t, m = T.push(a).then((i) => (i || (u.value = t), i));
45
+ }, g = (e, t, l) => {
46
+ u.value.includes(e) || (n.uniqueOpened && (u.value = u.value.filter((o) => t.includes(o))), u.value.push(e), b("open", { index: e, indexPath: t, e: l }));
47
+ }, C = (e, t, l) => {
48
+ const o = u.value.indexOf(e);
49
+ o !== -1 && u.value.splice(o, 1), b("close", { index: e, indexPath: t, e: l });
50
+ }, q = ({ e, index: t, indexPath: l }) => {
51
+ u.value.includes(t) ? C(t, l, e) : g(t, l, e);
52
+ }, D = (e) => {
53
+ (n.mode === "horizontal" || n.collapse) && (u.value = []);
54
+ const { index: t, indexPath: l } = e;
55
+ if (!(A(t) || A(l)))
56
+ if (n.router && T) {
57
+ const o = e.route || t, m = T.push(o).then((s) => (s || (a.value = t), s));
65
58
  b("select", e, m);
66
59
  } else
67
- u.value = t, b("select", e);
68
- }, D = (e) => {
69
- const t = c.value, n = t[e] || u.value && t[u.value] || t[l.defaultActive];
70
- n ? u.value = n.index : u.value = e;
71
- }, L = () => {
72
- var r;
73
- if (!s.value)
60
+ a.value = t, b("select", e);
61
+ }, L = (e) => {
62
+ const t = c.value, l = t[e] || a.value && t[a.value] || t[n.defaultActive];
63
+ l ? a.value = l.index : a.value = e;
64
+ }, F = () => {
65
+ var d;
66
+ if (!i.value)
74
67
  return -1;
75
- const e = Array.from(((r = s.value) == null ? void 0 : r.childNodes) ?? []).filter(
76
- (C) => C.nodeName !== "#text" || C.nodeValue
77
- ), t = 64, n = Number.parseInt(getComputedStyle(s.value).paddingLeft, 10), a = Number.parseInt(getComputedStyle(s.value).paddingRight, 10), m = s.value.clientWidth - n - a;
78
- let i = 0, p = 0;
79
- return e.forEach((C, H) => {
80
- i += C.offsetWidth || 0, i <= m - t && (p = H + 1);
68
+ const e = Array.from(((d = i.value) == null ? void 0 : d.childNodes) ?? []).filter(
69
+ (I) => I.nodeName !== "#text" || I.nodeValue
70
+ ), t = 64, l = Number.parseInt(getComputedStyle(i.value).paddingLeft, 10), o = Number.parseInt(getComputedStyle(i.value).paddingRight, 10), m = i.value.clientWidth - l - o;
71
+ let s = 0, p = 0;
72
+ return e.forEach((I, H) => {
73
+ s += I.offsetWidth || 0, s <= m - t && (p = H + 1);
81
74
  }), p === e.length ? -1 : p;
82
- }, F = (e, t = 33.34) => {
83
- let n;
75
+ }, U = (e, t = 33.34) => {
76
+ let l;
84
77
  return () => {
85
- n && clearTimeout(n), n = setTimeout(() => {
78
+ l && clearTimeout(l), l = setTimeout(() => {
86
79
  e();
87
80
  }, t);
88
81
  };
89
82
  };
90
- let k = !0;
83
+ let N = !0;
91
84
  const P = () => {
92
85
  const e = () => {
93
- f.value = -1, Z(() => {
94
- f.value = L();
86
+ f.value = -1, _(() => {
87
+ f.value = F();
95
88
  });
96
89
  };
97
- k ? e() : F(e)(), k = !1;
90
+ N ? e() : U(e)(), N = !1;
98
91
  };
99
92
  O(
100
- () => l.defaultActive,
93
+ () => n.defaultActive,
101
94
  (e) => {
102
- c.value[e] || (u.value = ""), D(e);
95
+ c.value[e] || (a.value = ""), L(e);
103
96
  }
104
97
  ), O(
105
- () => l.collapse,
98
+ () => n.collapse,
106
99
  (e) => {
107
- e && (o.value = []);
100
+ e && (u.value = []);
108
101
  }
109
- ), O(c.value, V);
102
+ ), O(c.value, $);
110
103
  let x;
111
- U(() => {
112
- l.mode === "horizontal" && l.ellipsis ? x = _(s, P).stop : x == null || x();
104
+ X(() => {
105
+ n.mode === "horizontal" && n.ellipsis ? x = ee(i, P).stop : x == null || x();
113
106
  });
114
107
  const R = (e) => {
115
108
  h.value[e.index] = e;
116
- }, w = (e) => {
109
+ }, k = (e) => {
117
110
  delete h.value[e.index];
118
111
  }, j = (e) => {
119
112
  c.value[e.index] = e;
120
113
  }, G = (e) => {
121
114
  delete c.value[e.index];
122
115
  };
123
- return A(
116
+ return w(
124
117
  "rootMenu",
125
- X({
118
+ Y({
126
119
  props: v.props,
127
- openedMenus: o,
120
+ openedMenus: u,
128
121
  items: c,
129
122
  subMenus: h,
130
- activeIndex: u,
131
- isMenuPopup: E,
123
+ activeIndex: a,
124
+ isMenuPopup: V,
132
125
  addMenuItem: j,
133
126
  removeMenuItem: G,
134
127
  addSubMenu: R,
135
- removeSubMenu: w,
128
+ removeSubMenu: k,
136
129
  openMenu: g,
137
- closeMenu: S,
138
- handleMenuItemClick: q,
139
- handleSubMenuClick: $
130
+ closeMenu: C,
131
+ handleMenuItemClick: D,
132
+ handleSubMenuClick: q
140
133
  })
141
- ), A(`subMenu:${v.uid}`, {
134
+ ), w(`subMenu:${v.uid}`, {
142
135
  addSubMenu: R,
143
- removeSubMenu: w,
144
- mouseInChild: d(!1),
136
+ removeSubMenu: k,
137
+ mouseInChild: r(!1),
145
138
  // 表示当前是第一级的 sub-menu
146
139
  level: 0
147
- }), Y(() => {
148
- l.mode === "horizontal" && new te(v.vnode.el, M.namespace.value);
149
- }), W({
140
+ }), Z(() => {
141
+ n.mode === "horizontal" && new ne(v.vnode.el, M.namespace.value);
142
+ }), E({
150
143
  open: (e) => {
151
144
  const { indexPath: t } = h.value[e];
152
- t.forEach((n) => g(n, t));
145
+ t.forEach((l) => g(l, t));
153
146
  },
154
- close: S,
155
- handleResize: P
147
+ close: C,
148
+ handleResize: P,
149
+ menu: i
156
150
  }), () => {
157
151
  var m;
158
152
  let e = ((m = y.default) == null ? void 0 : m.call(y)) ?? [];
159
153
  const t = [];
160
- if (l.mode === "horizontal" && s.value) {
161
- const i = ee(e), p = f.value === -1 ? i : i.slice(
154
+ if (n.mode === "horizontal" && i.value) {
155
+ const s = te(e), p = f.value === -1 ? s : s.slice(
162
156
  0,
163
157
  f.value
164
- ), r = f.value === -1 ? [] : i.slice(f.value);
165
- r != null && r.length && l.ellipsis && (e = p, t.push(
166
- I(
167
- ne,
158
+ ), d = f.value === -1 ? [] : s.slice(f.value);
159
+ d != null && d.length && n.ellipsis && (e = p, t.push(
160
+ S(
161
+ oe,
168
162
  {
169
163
  index: "sub-menu-more",
170
164
  class: z.e("hide-arrow")
171
165
  },
172
166
  {
173
- title: () => I(
174
- ue,
167
+ title: () => S(
168
+ ae,
175
169
  {
176
170
  icon: "ico-line-md:menu",
177
171
  class: z.e("icon-more")
178
172
  }
179
173
  ),
180
- default: () => r
174
+ default: () => d
181
175
  }
182
176
  )
183
177
  ));
184
178
  }
185
- const n = oe(v.props, 0), a = I(
179
+ const l = ue(v.props, 0), o = S(
186
180
  "ul",
187
181
  {
188
- key: String(l.collapse),
182
+ key: String(n.collapse),
189
183
  role: "menubar",
190
- ref: s,
191
- style: n.value,
184
+ ref: i,
185
+ style: l.value,
192
186
  class: {
193
187
  [M.b()]: !0,
194
- [M.m(l.mode)]: !0,
195
- [M.m("collapse")]: l.collapse
188
+ [M.m(n.mode)]: !0,
189
+ [M.m("collapse")]: n.collapse
196
190
  }
197
191
  },
198
192
  [...e, ...t]
199
193
  );
200
- return l.collapseTransition && l.mode === "vertical" ? I(le, () => a) : a;
194
+ return n.collapseTransition && n.mode === "vertical" ? S(le, () => o) : o;
201
195
  };
202
196
  }
203
197
  });
204
198
  export {
205
- Ie as default
199
+ ye as default
206
200
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, getCurrentInstance as Y, computed as r, 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 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";
2
2
  import "../divider/index.js";
3
3
  import { VftIcon as H } from "../icon/index.js";
4
4
  import "../avatar/index.js";
@@ -7,10 +7,10 @@ import "../result/index.js";
7
7
  import "../tabs/index.js";
8
8
  import "../popper/index.js";
9
9
  import { VftCollapseTransition as ue } from "../collapse-transition/index.js";
10
- import { VftTooltip as pe } from "../tooltip/index.js";
10
+ import { VftTooltip as se } from "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "./index.js";
13
- import { singleAttrToObj as se, renderTNode as me } from "@vft/utils";
13
+ import { singleAttrToObj as pe, 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";
@@ -19,6 +19,7 @@ import "../iframe-layout/index.js";
19
19
  import "../router-view-content/index.js";
20
20
  import "../logo/index.js";
21
21
  import "../back-top/index.js";
22
+ import "../container/index.js";
22
23
  import "../config-provider/index.js";
23
24
  import "../descriptions/index.js";
24
25
  import "../full-screen/index.js";
@@ -56,6 +57,11 @@ import "../image-viewer/index.js";
56
57
  import "../list-cell/index.js";
57
58
  import "../dialog/index.js";
58
59
  import "../date-time-select/index.js";
60
+ import "../col/index.js";
61
+ import "../row/index.js";
62
+ import "../horizontal-menu/index.js";
63
+ import "../time-picker/index.js";
64
+ import "../date-picker/index.js";
59
65
  import "../md-container/index.js";
60
66
  import "../md-comment/index.js";
61
67
  import "../md-tabs/index.js";
@@ -76,8 +82,9 @@ const S = (
76
82
  /* hoist-static*/
77
83
  I("sub-menu")
78
84
  ), ve = Z({
79
- name: S.b()
80
- }), Oo = /* @__PURE__ */ Z({
85
+ name: S.b(),
86
+ inheritAttrs: !1
87
+ }), Lo = /* @__PURE__ */ Z({
81
88
  ...ve,
82
89
  props: {
83
90
  index: null,
@@ -91,10 +98,6 @@ const S = (
91
98
  disabled: {
92
99
  type: Boolean
93
100
  },
94
- popperAppendToBody: {
95
- type: Boolean,
96
- default: void 0
97
- },
98
101
  popperOffset: {
99
102
  default: 6
100
103
  },
@@ -110,81 +113,89 @@ const S = (
110
113
  type: Boolean,
111
114
  default: !0
112
115
  },
113
- toolTipCfg: null
116
+ toolTipCfg: null,
117
+ teleported: {
118
+ type: Boolean,
119
+ default: void 0
120
+ }
114
121
  },
115
122
  setup(o, {
116
123
  expose: q
117
124
  }) {
118
- const v = Y(), {
125
+ const f = Y(), {
119
126
  indexPath: h,
120
127
  parentMenu: z
121
- } = ce(v, r(() => o.index)), u = I("menu"), p = I("sub-menu"), e = D("rootMenu");
128
+ } = ce(f, n(() => o.index)), u = I("menu"), s = I("sub-menu"), e = D("rootMenu");
122
129
  e || U(S.b(), "can not inject root menu");
123
130
  const a = D(`subMenu:${z.value.uid}`);
124
131
  a || U(S.b(), "can not inject sub menu");
125
132
  const T = x({});
126
- let s;
127
- const B = x(!1), G = x(), A = x(null), P = r(() => c.value === "horizontal" && M.value ? "bottom-start" : "right-start"), M = r(() => a.level === 0), w = r(() => o.popperAppendToBody === void 0 ? M.value : !!o.popperAppendToBody), J = r(() => e.props.collapse ? `${u.namespace.value}-zoom-in-left` : `${u.namespace.value}-zoom-in-top`), K = r(() => c.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"]), m = r(() => e.openedMenus.includes(o.index)), f = r(() => {
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(() => {
128
135
  let t = !1;
129
136
  return Object.values(T.value).forEach((l) => {
130
137
  l.active && (t = !0);
131
138
  }), o.index === e.activeIndex && (t = !0), t;
132
- }), j = r(() => e.props.backgroundColor || ""), E = r(() => e.props.activeTextColor || ""), F = r(() => e.props.textColor || ""), c = r(() => e.props.mode), C = _({
139
+ }), j = n(() => e.props.backgroundColor || ""), E = n(() => e.props.activeTextColor || ""), F = n(() => e.props.textColor || ""), d = n(() => e.props.mode), C = _({
133
140
  index: o.index,
134
141
  indexPath: h,
135
- active: f
136
- }), $ = r(() => c.value !== "horizontal" ? {
142
+ active: b
143
+ }), $ = de(e.props, a.level + 1), O = n(() => d.value !== "horizontal" ? {
137
144
  color: F.value
138
145
  } : {
139
- borderBottomColor: f.value ? e.props.activeTextColor ? E.value : "" : "transparent",
140
- color: f.value ? E.value : F.value
146
+ borderBottomColor: b.value ? e.props.activeTextColor ? E.value : "" : "transparent",
147
+ color: b.value ? E.value : F.value
141
148
  }), Q = () => {
142
- var t, l, n;
143
- return (n = (l = (t = A.value) == null ? void 0 : t.popperRef) == null ? void 0 : l.popperInstanceRef) == null ? void 0 : n.destroy();
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();
144
151
  }, W = (t) => {
145
152
  t || Q();
146
- }, O = () => {
147
- e.props.menuTrigger === "hover" && e.props.mode === "horizontal" || e.props.collapse && e.props.mode === "vertical" || o.disabled || e.handleSubMenuClick({
153
+ }, V = (t) => {
154
+ if (e.props.menuTrigger === "hover" && e.props.mode === "horizontal" || e.props.collapse && e.props.mode === "vertical" || o.disabled)
155
+ return;
156
+ const l = {
157
+ e: t,
148
158
  index: o.index,
149
159
  indexPath: h.value,
150
- active: f.value
151
- });
160
+ active: b.value
161
+ };
162
+ e.handleSubMenuClick(l);
152
163
  }, g = (t, l = o.showTimeout) => {
153
- var n;
154
- t.type !== "focus" && (e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || o.disabled || (a.mouseInChild.value = !0, s == null || s(), {
155
- stop: s
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
156
167
  } = L(() => {
157
168
  e.openMenu(o.index, h.value);
158
- }, l), w.value && ((n = z.value.vnode.el) == null || n.dispatchEvent(new MouseEvent("mouseenter")))));
169
+ }, l), w.value && ((r = z.value.vnode.el) == null || r.dispatchEvent(new MouseEvent("mouseenter")))));
159
170
  }, y = (t = !1) => {
160
- var l, n;
161
- e.props.menuTrigger === "click" && e.props.mode === "horizontal" || !e.props.collapse && e.props.mode === "vertical" || (s == null || s(), a.mouseInChild.value = !1, {
162
- stop: s
163
- } = L(() => !B.value && e.closeMenu(o.index, h.value), o.hideTimeout), w.value && t && ((l = v.parent) == null ? void 0 : l.type.name) === "vft-sub-menu" && ((n = a.handleMouseleave) == null || n.call(a, !0)));
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)));
164
175
  };
165
176
  ee(() => e.props.collapse, (t) => W(!!t));
166
177
  {
167
- const t = (n) => {
168
- T.value[n.index] = n;
169
- }, l = (n) => {
170
- delete T.value[n.index];
178
+ const t = (r) => {
179
+ T.value[r.index] = r;
180
+ }, l = (r) => {
181
+ delete T.value[r.index];
171
182
  };
172
- oe(`subMenu:${v.uid}`, {
183
+ oe(`subMenu:${f.uid}`, {
173
184
  addSubMenu: t,
174
185
  removeSubMenu: l,
175
186
  handleMouseleave: y,
176
- mouseInChild: B,
187
+ mouseInChild: A,
177
188
  level: a.level + 1
178
189
  });
179
190
  }
180
191
  q({
181
- opened: m
192
+ opened: c
182
193
  }), te(() => {
183
194
  e.addSubMenu(C), a.addSubMenu(C);
184
195
  }), re(() => {
185
196
  a.removeSubMenu(C), e.removeSubMenu(C);
186
197
  });
187
- const d = ne(), X = r(() => c.value === "horizontal" && M.value || c.value === "vertical" && !e.props.collapse ? {
198
+ const v = ne(), X = n(() => d.value === "horizontal" && M.value || d.value === "vertical" && !e.props.collapse ? {
188
199
  icon: "ico-ep:arrow-down",
189
200
  size: 20,
190
201
  ...o.expandIcon
@@ -192,23 +203,23 @@ const S = (
192
203
  icon: "ico-ep:arrow-right",
193
204
  size: 18,
194
205
  ...o.collapseIcon
195
- }), V = r(() => se(o.icon, "icon")), N = r(() => me(v, "title"));
206
+ }), N = n(() => pe(o.icon, "icon")), R = n(() => me(f, "title"));
196
207
  return () => {
197
- var R;
198
- const t = [(R = V.value) != null && R.icon ? i(H, {
199
- ...V.value
208
+ var r;
209
+ const t = [(r = N.value) != null && r.icon ? i(H, {
210
+ ...N.value
200
211
  }) : null, i("span", {
201
- class: o.showArrow ? p.e("text") : "",
202
- title: v.props.title
203
- }, N.value), o.showArrow ? i(H, {
204
- class: p.e("icon-arrow"),
212
+ class: o.showArrow ? s.e("text") : "",
213
+ title: f.props.title
214
+ }, R.value), o.showArrow ? i(H, {
215
+ class: s.e("icon-arrow"),
205
216
  ...X.value,
206
217
  style: {
207
- transform: m.value ? "rotateZ(180deg)" : "none"
218
+ transform: c.value ? "rotateZ(180deg)" : "none"
208
219
  }
209
- }) : !1], l = de(e.props, a.level + 1), n = e.isMenuPopup ? i(pe, {
210
- ref: A,
211
- visible: m.value,
220
+ }) : !1], l = e.isMenuPopup ? i(se, {
221
+ ref: B,
222
+ visible: c.value,
212
223
  effect: "light",
213
224
  pure: !0,
214
225
  offset: o.popperOffset,
@@ -223,60 +234,56 @@ const S = (
223
234
  ...o.toolTipCfg
224
235
  }, {
225
236
  content: () => {
226
- var b;
237
+ var m;
227
238
  return i("div", {
228
- class: [u.m(c.value), u.m("popup-container"), o.popperClass],
239
+ class: [u.m(d.value), u.m("popup-container"), o.popperClass],
229
240
  onMouseenter: (k) => g(k, 100),
230
241
  onMouseleave: () => y(!0),
231
242
  onFocus: (k) => g(k, 100)
232
243
  }, [i("ul", {
233
244
  class: [u.b(), u.m("popup"), u.m(`popup-${P.value}`)],
234
- style: l.value
235
- }, [(b = d.default) == null ? void 0 : b.call(d)])]);
245
+ style: $.value
246
+ }, [(m = v.default) == null ? void 0 : m.call(v)])]);
236
247
  },
237
248
  default: () => i("div", {
238
- class: p.e("title"),
239
- style: [$.value, {
249
+ class: s.e("title"),
250
+ style: [O.value, {
240
251
  backgroundColor: j.value
241
252
  }],
242
- onClick: O
253
+ onClick: (m) => V(m)
243
254
  }, t)
244
255
  }) : (
245
- /**
246
- * Fragment 碎片化节点,可以让 dom 没有根节点
247
- *
248
- * 以下是无需 tooltip 渲染的组件,通常是侧边栏没有折叠的时候
249
- */
250
- i(le, {}, [N.value ? i("div", {
251
- class: p.e("title"),
252
- style: [$.value, {
256
+ // 以下是无需 tooltip 渲染的组件,通常是侧边栏没有折叠的时候
257
+ i(le, {}, [R.value ? i("div", {
258
+ class: s.e("title"),
259
+ style: [O.value, {
253
260
  backgroundColor: j.value
254
261
  }],
255
262
  ref: G,
256
- onClick: O
263
+ onClick: V
257
264
  }, t) : null, i(ue, {}, {
258
265
  default: () => {
259
- var b;
266
+ var m;
260
267
  return ie(i("ul", {
261
268
  role: "menu",
262
269
  class: [u.b(), u.m("inline")],
263
- style: l.value
264
- }, [(b = d.default) == null ? void 0 : b.call(d)]), [[ae, m.value]]);
270
+ style: $.value
271
+ }, [(m = v.default) == null ? void 0 : m.call(v)]), [[ae, c.value]]);
265
272
  }
266
273
  })])
267
274
  );
268
275
  return i("li", {
269
- class: [p.b(), p.is("active", f.value), p.is("opened", m.value), p.is("disabled", o.disabled)],
276
+ class: [s.b(), s.is("active", b.value), s.is("opened", c.value), s.is("disabled", o.disabled)],
270
277
  role: "menuitem",
271
278
  ariaHaspopup: !0,
272
- ariaExpanded: m.value,
279
+ ariaExpanded: c.value,
273
280
  onMouseenter: g,
274
281
  onMouseleave: () => y(!0),
275
282
  onFocus: g
276
- }, [n]);
283
+ }, [l]);
277
284
  };
278
285
  }
279
286
  });
280
287
  export {
281
- Oo as default
288
+ Lo as default
282
289
  };