vft 0.0.509 → 0.0.513

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 (329) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/affix.vue2.js +2 -2
  3. package/es/components/alert/alert.vue2.js +1 -1
  4. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  5. package/es/components/autocomplete/autocomplete.vue2.js +1 -1
  6. package/es/components/autocomplete/index.d.ts +6 -6
  7. package/es/components/avatar/avatar.vue2.js +2 -2
  8. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  9. package/es/components/backtop/backtop.vue2.js +1 -1
  10. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  11. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  12. package/es/components/button/button-group.vue2.js +2 -2
  13. package/es/components/button/button.vue2.js +7 -7
  14. package/es/components/button/index.d.ts +9 -9
  15. package/es/components/button/use-button.js +3 -3
  16. package/es/components/card/card.vue2.js +6 -6
  17. package/es/components/carousel/carousel-item.vue2.js +3 -3
  18. package/es/components/carousel/carousel.vue2.js +1 -1
  19. package/es/components/cascader/cascader.vue2.js +202 -203
  20. package/es/components/cascader-panel/index.vue2.js +1 -1
  21. package/es/components/cascader-panel/menu.vue2.js +49 -50
  22. package/es/components/cascader-panel/node.vue2.js +8 -8
  23. package/es/components/check-tag/check-tag.vue2.js +2 -2
  24. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  25. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  26. package/es/components/checkbox/checkbox.vue2.js +1 -1
  27. package/es/components/clamp/clamp.vue2.js +2 -2
  28. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  29. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  30. package/es/components/col/col.vue2.js +2 -2
  31. package/es/components/collapse/collapse-item.vue2.js +2 -2
  32. package/es/components/collapse/collapse.vue2.js +2 -2
  33. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  34. package/es/components/color-picker/color-picker.vue2.js +133 -134
  35. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  36. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  37. package/es/components/color-picker/components/predefine.vue.js +3 -3
  38. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  39. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  40. package/es/components/config-provider/config-provider.vue2.js +4 -5
  41. package/es/components/config-provider/constants.d.ts +0 -1
  42. package/es/components/config-provider/constants.js +2 -3
  43. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  44. package/es/components/config-provider/index.d.ts +0 -9
  45. package/es/components/config-provider/index.js +5 -6
  46. package/es/components/container/aside.vue2.js +2 -2
  47. package/es/components/container/container.vue2.js +2 -2
  48. package/es/components/container/footer.vue2.js +2 -2
  49. package/es/components/container/header.vue2.js +2 -2
  50. package/es/components/container/main.vue2.js +2 -2
  51. package/es/components/context-menu/context-menu.vue2.js +1 -1
  52. package/es/components/countdown/countdown.vue2.js +2 -2
  53. package/es/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  54. package/es/components/date-picker/composables/use-basic-date-table.js +123 -124
  55. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  56. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  57. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  58. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +39 -40
  59. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +40 -41
  60. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +178 -179
  61. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  62. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  63. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  64. package/es/components/date-picker/props/basic-date-table.js +3 -3
  65. package/es/components/date-picker/props/basic-month-table.js +3 -3
  66. package/es/components/date-picker/props/basic-year-table.js +3 -3
  67. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  68. package/es/components/descriptions/description.vue2.js +1 -1
  69. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  70. package/es/components/dialog/dialog-content.vue2.js +3 -3
  71. package/es/components/dialog/dialog.vue2.js +5 -5
  72. package/es/components/divider/divider.vue2.js +5 -5
  73. package/es/components/drawer/drawer.vue2.js +4 -4
  74. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  75. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  76. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  77. package/es/components/dropdown/dropdown.vue2.js +66 -67
  78. package/es/components/empty/empty.vue2.js +36 -37
  79. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  80. package/es/components/form/form-item.vue2.js +16 -16
  81. package/es/components/form/form.vue2.js +2 -2
  82. package/es/components/full-screen/full-screen.vue2.js +17 -18
  83. package/es/components/header-layout/header-layout.vue2.js +1 -1
  84. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  85. package/es/components/icon/icon.vue2.js +3 -3
  86. package/es/components/icon-text/icon-text.vue2.js +1 -1
  87. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  88. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  89. package/es/components/image/image.vue2.js +59 -60
  90. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  91. package/es/components/index.d.ts +1 -0
  92. package/es/components/index.js +213 -211
  93. package/es/components/input/input.vue2.js +6 -6
  94. package/es/components/input-number/input-number.vue2.js +4 -4
  95. package/es/components/input-tag/input-tag.vue2.js +7 -7
  96. package/es/components/link/link.vue2.js +1 -1
  97. package/es/components/list-cell/list-cell.vue2.js +1 -1
  98. package/es/components/logo/logo.vue2.js +10 -10
  99. package/es/components/md-comment/md-comment.vue2.js +2 -2
  100. package/es/components/md-container/md-container.vue2.js +74 -75
  101. package/es/components/md-container/toc.js +36 -37
  102. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  103. package/es/components/menu/menu-item-group.vue2.js +7 -7
  104. package/es/components/menu/menu-item.vue2.js +1 -1
  105. package/es/components/message/message.vue2.js +3 -3
  106. package/es/components/message-box/index.d.ts +4 -0
  107. package/es/components/message-box/index.js +14 -0
  108. package/es/components/message-box/message-box.vue.d.ts +103 -0
  109. package/es/components/message-box/message-box.vue.js +4 -0
  110. package/es/components/message-box/message-box.vue2.js +358 -0
  111. package/es/components/message-box/method.d.ts +3 -0
  112. package/es/components/message-box/method.js +100 -0
  113. package/es/components/message-box/style/css.d.ts +2 -0
  114. package/es/components/message-box/style/css.js +3 -0
  115. package/es/components/message-box/style/index.d.ts +2 -0
  116. package/es/components/message-box/style/index.js +3 -0
  117. package/es/components/message-box/types.d.ts +202 -0
  118. package/es/components/modal/index.d.ts +1 -0
  119. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  120. package/es/components/modal/modal.vue.d.ts +1 -0
  121. package/es/components/modal/modal.vue2.js +30 -28
  122. package/es/components/multiple-tabs/multiple-tabs.vue2.js +16 -17
  123. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  124. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  125. package/es/components/notification/notification.vue2.js +1 -1
  126. package/es/components/overlay/overlay.vue2.js +1 -1
  127. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  128. package/es/components/pagination/components/jumper.vue2.js +28 -29
  129. package/es/components/pagination/components/next.vue2.js +4 -4
  130. package/es/components/pagination/components/pager.vue2.js +1 -1
  131. package/es/components/pagination/components/prev.vue2.js +4 -4
  132. package/es/components/pagination/components/sizes.vue2.js +20 -21
  133. package/es/components/pagination/components/total.vue2.js +10 -11
  134. package/es/components/popconfirm/index.d.ts +15 -15
  135. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  136. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  137. package/es/components/popover/popover.vue2.js +1 -1
  138. package/es/components/popper/arrow.vue2.js +2 -2
  139. package/es/components/popper/content.vue2.js +2 -2
  140. package/es/components/popper/trigger.vue2.js +4 -4
  141. package/es/components/progress/progress.vue2.js +1 -1
  142. package/es/components/progress-i/progress-i.vue2.js +2 -2
  143. package/es/components/qrcode/qrcode.vue2.js +1 -1
  144. package/es/components/radio/radio-button.vue2.js +2 -2
  145. package/es/components/radio/radio-group.vue2.js +3 -3
  146. package/es/components/radio/radio.vue2.js +2 -2
  147. package/es/components/rate/rate.vue2.js +6 -6
  148. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  149. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  150. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  151. package/es/components/row/row.vue2.js +2 -2
  152. package/es/components/scrollbar/bar.vue2.js +2 -2
  153. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  154. package/es/components/scrollbar/thumb.vue2.js +2 -2
  155. package/es/components/search/search.vue2.js +50 -51
  156. package/es/components/segmented/segmented.vue2.js +7 -7
  157. package/es/components/select/group-item.vue.js +2 -2
  158. package/es/components/select/index.d.ts +4 -4
  159. package/es/components/select/option-item.vue.js +2 -2
  160. package/es/components/select/select.vue.d.ts +4 -4
  161. package/es/components/select/select.vue.js +1 -1
  162. package/es/components/select/useSelect.d.ts +4 -4
  163. package/es/components/select/useSelect.js +231 -232
  164. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  165. package/es/components/skeleton/skeleton.vue2.js +8 -8
  166. package/es/components/slider/button.vue2.js +2 -2
  167. package/es/components/slider/slider.vue2.js +1 -1
  168. package/es/components/space/space.js +1 -1
  169. package/es/components/statistic/statistic.vue2.js +17 -17
  170. package/es/components/steps/item.vue2.js +11 -11
  171. package/es/components/steps/steps.vue2.js +2 -2
  172. package/es/components/super-form/super-form-action.vue2.js +47 -48
  173. package/es/components/super-form/super-form-item.vue2.js +204 -206
  174. package/es/components/super-form/super-form.vue2.js +7 -7
  175. package/es/components/super-form/use/helper.d.ts +1 -1
  176. package/es/components/super-form/use/helper.js +63 -63
  177. package/es/components/super-form/use/use-form.js +8 -8
  178. package/es/components/switch/switch.vue2.js +1 -1
  179. package/es/components/table/field.js +111 -130
  180. package/es/components/table/table.vue2.js +128 -133
  181. package/es/components/table/use/use-columns.js +26 -29
  182. package/es/components/table/use/use-data-source.js +59 -60
  183. package/es/components/tabs/tab-bar.vue2.js +2 -2
  184. package/es/components/tabs/tab-pane.vue2.js +6 -6
  185. package/es/components/teleport/teleport.vue2.js +2 -2
  186. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  187. package/es/components/time-picker/common/picker.vue2.js +8 -8
  188. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  189. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  190. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  191. package/es/components/time-select/time-select.vue2.js +3 -3
  192. package/es/components/timeline/timeline-item.vue2.js +1 -1
  193. package/es/components/tooltip/content.vue2.js +6 -6
  194. package/es/components/tooltip/tooltip.vue2.js +1 -1
  195. package/es/components/tooltip/trigger.vue2.js +2 -2
  196. package/es/components/transfer/transfer-panel.vue2.js +58 -59
  197. package/es/components/transfer/transfer.vue2.js +69 -70
  198. package/es/components/tree/tree-node.vue.js +1 -1
  199. package/es/components/tree/tree.vue2.js +59 -60
  200. package/es/components/upload/upload-content.vue2.js +47 -48
  201. package/es/components/upload/upload-dragger.vue2.js +2 -2
  202. package/es/components/upload/upload-list.vue2.js +45 -46
  203. package/es/components/upload/upload.vue2.js +98 -99
  204. package/es/components/verify-code/verify-code.vue2.js +2 -2
  205. package/es/components/watermark/watermark.vue2.js +2 -2
  206. package/es/hooks/use-id/index.js +2 -2
  207. package/es/hooks/use-z-index/index.js +3 -3
  208. package/es/index.d.ts +0 -1
  209. package/es/index.js +39 -42
  210. package/es/package.json.d.ts +1 -1
  211. package/es/package.json.js +1 -1
  212. package/es/plugin.js +5 -3
  213. package/es/utils/helper.js +2 -2
  214. package/es/utils/ns-cover.js +1 -1
  215. package/es/utils/vue/vnode.js +3 -3
  216. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  217. package/lib/components/autocomplete/index.d.ts +6 -6
  218. package/lib/components/button/index.d.ts +9 -9
  219. package/lib/components/button/use-button.cjs +1 -1
  220. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  221. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  222. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  223. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  224. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  225. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  226. package/lib/components/config-provider/constants.cjs +1 -1
  227. package/lib/components/config-provider/constants.d.ts +0 -1
  228. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  229. package/lib/components/config-provider/index.cjs +1 -1
  230. package/lib/components/config-provider/index.d.ts +0 -9
  231. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  232. package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  233. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  234. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  235. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  236. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  237. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  238. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  239. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  240. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  241. package/lib/components/empty/empty.vue2.cjs +1 -1
  242. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  243. package/lib/components/image/image.vue2.cjs +1 -1
  244. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  245. package/lib/components/index.cjs +1 -1
  246. package/lib/components/index.d.ts +1 -0
  247. package/lib/components/input/input.vue2.cjs +1 -1
  248. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  249. package/lib/components/md-container/toc.cjs +1 -1
  250. package/lib/components/message-box/index.cjs +1 -0
  251. package/lib/components/message-box/index.d.ts +4 -0
  252. package/lib/components/message-box/message-box.vue.cjs +1 -0
  253. package/lib/components/message-box/message-box.vue.d.ts +103 -0
  254. package/lib/components/message-box/message-box.vue2.cjs +1 -0
  255. package/lib/components/message-box/method.cjs +1 -0
  256. package/lib/components/message-box/method.d.ts +3 -0
  257. package/lib/components/message-box/style/css.cjs +1 -0
  258. package/lib/components/message-box/style/css.d.ts +2 -0
  259. package/lib/components/message-box/style/index.cjs +1 -0
  260. package/lib/components/message-box/style/index.d.ts +2 -0
  261. package/lib/components/message-box/types.d.ts +202 -0
  262. package/lib/components/modal/index.d.ts +1 -0
  263. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  264. package/lib/components/modal/modal.vue.d.ts +1 -0
  265. package/lib/components/modal/modal.vue2.cjs +1 -1
  266. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  267. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  268. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  269. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  270. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  271. package/lib/components/popconfirm/index.d.ts +15 -15
  272. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  273. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  274. package/lib/components/search/search.vue2.cjs +1 -1
  275. package/lib/components/select/index.d.ts +4 -4
  276. package/lib/components/select/select.vue.d.ts +4 -4
  277. package/lib/components/select/useSelect.cjs +1 -1
  278. package/lib/components/select/useSelect.d.ts +4 -4
  279. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  280. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  281. package/lib/components/super-form/use/helper.cjs +1 -1
  282. package/lib/components/super-form/use/helper.d.ts +1 -1
  283. package/lib/components/super-form/use/use-form.cjs +1 -1
  284. package/lib/components/table/field.cjs +1 -1
  285. package/lib/components/table/table.vue2.cjs +1 -1
  286. package/lib/components/table/use/use-columns.cjs +1 -1
  287. package/lib/components/table/use/use-data-source.cjs +1 -1
  288. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  289. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  290. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  291. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  292. package/lib/components/tree/tree.vue2.cjs +1 -1
  293. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  294. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  295. package/lib/components/upload/upload.vue2.cjs +1 -1
  296. package/lib/index.cjs +1 -1
  297. package/lib/index.d.ts +0 -1
  298. package/lib/package.json.cjs +1 -1
  299. package/lib/package.json.d.ts +1 -1
  300. package/lib/plugin.cjs +1 -1
  301. package/package.json +3 -3
  302. package/theme-style/index.css +1 -1
  303. package/theme-style/src/message-box.scss +2 -2
  304. package/theme-style/src/table.scss +6 -0
  305. package/theme-style/vft-message-box.css +1 -1
  306. package/theme-style/vft-table.css +1 -1
  307. package/web-types.json +1 -1
  308. package/es/locale/index.d.ts +0 -26
  309. package/es/locale/index.js +0 -10
  310. package/es/locale/lang/en.d.ts +0 -183
  311. package/es/locale/lang/en.js +0 -241
  312. package/es/locale/lang/zh-cn.d.ts +0 -183
  313. package/es/locale/lang/zh-cn.js +0 -241
  314. package/es/locale/lang/zh-tw.d.ts +0 -183
  315. package/es/locale/lang/zh-tw.js +0 -241
  316. package/es/locale/use-locale.d.ts +0 -17
  317. package/es/locale/use-locale.js +0 -56
  318. package/lib/locale/index.cjs +0 -1
  319. package/lib/locale/index.d.ts +0 -26
  320. package/lib/locale/lang/en.cjs +0 -1
  321. package/lib/locale/lang/en.d.ts +0 -183
  322. package/lib/locale/lang/zh-cn.cjs +0 -1
  323. package/lib/locale/lang/zh-cn.d.ts +0 -183
  324. package/lib/locale/lang/zh-tw.cjs +0 -1
  325. package/lib/locale/lang/zh-tw.d.ts +0 -183
  326. package/lib/locale/use-locale.cjs +0 -1
  327. package/lib/locale/use-locale.d.ts +0 -17
  328. /package/es/{locale/index.d.js → components/message-box/types.js} +0 -0
  329. /package/lib/{locale/index.d.cjs → components/message-box/types.cjs} +0 -0
@@ -1,32 +1,31 @@
1
- import { defineComponent as S, getCurrentInstance as Z, ref as a, computed as b, watch as _, toRef as h, onBeforeUnmount as ee, provide as T, createElementBlock as te, openBlock as $, normalizeClass as x, unref as o, createVNode as r, createBlock as oe, createCommentVNode as ne, createSlots as re, withCtx as n, renderSlot as y, mergeProps as I } from "vue";
2
- import { VftButtonGroup as le, VftButton as O } from "../button/index.js";
1
+ import { defineComponent as S, getCurrentInstance as X, ref as a, computed as b, watch as Z, toRef as h, onBeforeUnmount as _, provide as T, openBlock as $, createElementBlock as ee, normalizeClass as x, unref as o, createVNode as r, createSlots as te, withCtx as n, renderSlot as y, createBlock as oe, mergeProps as I, createCommentVNode as ne } from "vue";
2
+ import { VftButtonGroup as re, VftButton as O } from "../button/index.js";
3
3
  import "../form/index.js";
4
- import { VftIcon as ie } from "../icon/index.js";
5
- import ae from "../roving-focus-group/roving-focus-group.vue2.js";
4
+ import { VftIcon as le } from "../icon/index.js";
5
+ import ie from "../roving-focus-group/roving-focus-group.vue2.js";
6
6
  import "../roving-focus-group/roving-focus-group-impl.vue2.js";
7
7
  import "../roving-focus-group/roving-focus-item.vue2.js";
8
8
  import "../roving-focus-group/types.js";
9
9
  import { EVENT_CODE as w } from "../../constants/aria.js";
10
- import { VftScrollbar as de } from "../scrollbar/index.js";
11
- import { OnlyChild as fe } from "../slot/only-child.js";
12
- import { VftTooltip as ue } from "../tooltip/index.js";
10
+ import { VftScrollbar as ae } from "../scrollbar/index.js";
11
+ import { OnlyChild as de } from "../slot/only-child.js";
12
+ import { VftTooltip as fe } from "../tooltip/index.js";
13
13
  import "@vueuse/core";
14
- import { isArray as se } from "@vft/utils";
15
- import { addUnit as ce } from "../../utils/helper.js";
14
+ import { isArray as ue } from "@vft/utils";
15
+ import { addUnit as se } from "../../utils/helper.js";
16
16
  import "lodash-es";
17
- import { useId as me } from "../../hooks/use-id/index.js";
18
- import { useNamespace as pe } from "../../hooks/use-namespace/index.js";
17
+ import { useId as ce } from "../../hooks/use-id/index.js";
18
+ import { useNamespace as me } from "../../hooks/use-namespace/index.js";
19
19
  import "../../hooks/use-model-toggle/index.js";
20
20
  import "@popperjs/core";
21
21
  import "../../hooks/use-z-index/index.js";
22
- import { useLocale as ve } from "../../locale/use-locale.js";
23
- import { DROPDOWN_INJECTION_KEY as ge } from "./tokens.js";
24
- import { VftCollection as be } from "./types.js";
25
- import { useFormSize as he } from "../form/hooks/use-form-common-props.js";
26
- const ye = S({
22
+ import { DROPDOWN_INJECTION_KEY as pe } from "./tokens.js";
23
+ import { VftCollection as ve } from "./types.js";
24
+ import { useFormSize as ge } from "../form/hooks/use-form-common-props.js";
25
+ const be = S({
27
26
  name: "vft-dropdown"
28
- }), Me = /* @__PURE__ */ S({
29
- ...ye,
27
+ }), Ue = /* @__PURE__ */ S({
28
+ ...be,
30
29
  props: {
31
30
  trigger: { default: "hover" },
32
31
  effect: { default: "light" },
@@ -49,99 +48,99 @@ const ye = S({
49
48
  teleported: { type: Boolean, default: !0 }
50
49
  },
51
50
  emits: ["visible-change", "command", "click"],
52
- setup(e, { expose: z, emit: L }) {
53
- const { t: R } = ve(), d = e, u = L, l = pe("dropdown"), V = Z(), i = a(), C = a(), m = a(null), f = a(null), D = a(null), p = a(null), k = a(!1), N = [w.enter, w.space, w.down], H = b(() => ({
54
- maxHeight: ce(d.maxHeight)
55
- })), P = me().value, v = b(() => d.id || P);
56
- _(
51
+ setup(e, { expose: z, emit: R }) {
52
+ const d = e, u = R, l = me("dropdown"), L = X(), i = a(), C = a(), m = a(null), f = a(null), V = a(null), p = a(null), k = a(!1), N = [w.enter, w.space, w.down], D = b(() => ({
53
+ maxHeight: se(d.maxHeight)
54
+ })), H = ce().value, v = b(() => d.id || H);
55
+ Z(
57
56
  [i, h(d, "trigger")],
58
57
  ([t, c], [B]) => {
59
- const X = se(c) ? c : [c];
58
+ const Q = ue(c) ? c : [c];
60
59
  B?.$el?.removeEventListener && B.$el.removeEventListener(
61
60
  "pointerenter",
62
61
  s
63
62
  ), t?.$el?.removeEventListener && t.$el.removeEventListener(
64
63
  "pointerenter",
65
64
  s
66
- ), t?.$el?.addEventListener && X.includes("hover") && t.$el.addEventListener(
65
+ ), t?.$el?.addEventListener && Q.includes("hover") && t.$el.addEventListener(
67
66
  "pointerenter",
68
67
  s
69
68
  );
70
69
  },
71
70
  { immediate: !0 }
72
- ), ee(() => {
71
+ ), _(() => {
73
72
  i.value?.$el?.removeEventListener && i.value.$el.removeEventListener(
74
73
  "pointerenter",
75
74
  s
76
75
  );
77
76
  });
78
- function A() {
77
+ function P() {
79
78
  E();
80
79
  }
81
80
  function E() {
82
81
  m.value?.onClose();
83
82
  }
84
- function F() {
83
+ function A() {
85
84
  m.value?.onOpen();
86
85
  }
87
- const g = he();
88
- function K(...t) {
86
+ const g = ge();
87
+ function F(...t) {
89
88
  u("command", ...t);
90
89
  }
91
90
  function s() {
92
91
  i.value?.$el?.focus();
93
92
  }
94
- function U() {
93
+ function K() {
95
94
  }
96
- function G() {
95
+ function U() {
97
96
  o(f)?.focus(), p.value = null;
98
97
  }
99
- function J(t) {
98
+ function G(t) {
100
99
  p.value = t;
101
100
  }
102
- function M(t) {
101
+ function J(t) {
103
102
  k.value || (t.preventDefault(), t.stopImmediatePropagation());
104
103
  }
105
- function W() {
104
+ function M() {
106
105
  u("visible-change", !0);
107
106
  }
108
- function Y(t) {
107
+ function W(t) {
109
108
  t?.type === "keydown" && f.value?.focus();
110
109
  }
111
- function j() {
110
+ function Y() {
112
111
  u("visible-change", !1);
113
112
  }
114
- T(ge, {
113
+ T(pe, {
115
114
  contentRef: f,
116
115
  role: b(() => d.role),
117
116
  triggerId: v,
118
117
  isUsingKeyboard: k,
119
- onItemEnter: U,
120
- onItemLeave: G
118
+ onItemEnter: K,
119
+ onItemLeave: U
121
120
  }), T("elDropdown", {
122
- instance: V,
121
+ instance: L,
123
122
  dropdownSize: g,
124
- handleClick: A,
125
- commandHandler: K,
123
+ handleClick: P,
124
+ commandHandler: F,
126
125
  trigger: h(d, "trigger"),
127
126
  hideOnClick: h(d, "hideOnClick")
128
127
  });
129
- const q = (t) => {
128
+ const j = (t) => {
130
129
  t.preventDefault(), f.value?.focus?.({
131
130
  preventScroll: !0
132
131
  });
133
- }, Q = (t) => {
132
+ }, q = (t) => {
134
133
  u("click", t);
135
134
  };
136
135
  return z({
137
136
  handleClose: E,
138
- handleOpen: F,
137
+ handleOpen: A,
139
138
  // Todo
140
- onFocusAfterTrapped: q
141
- }), (t, c) => ($(), te("div", {
139
+ onFocusAfterTrapped: j
140
+ }), (t, c) => ($(), ee("div", {
142
141
  class: x([o(l).b(), o(l).is("disabled", e.disabled)])
143
142
  }, [
144
- r(o(ue), {
143
+ r(o(fe), {
145
144
  ref_key: "popperRef",
146
145
  ref: m,
147
146
  role: e.role,
@@ -166,28 +165,28 @@ const ye = S({
166
165
  teleported: e.teleported,
167
166
  pure: "",
168
167
  persistent: "",
169
- onBeforeShow: W,
170
- onShow: Y,
171
- onBeforeHide: j
172
- }, re({
168
+ onBeforeShow: M,
169
+ onShow: W,
170
+ onBeforeHide: Y
171
+ }, te({
173
172
  content: n(() => [
174
- r(o(de), {
173
+ r(o(ae), {
175
174
  ref_key: "scrollbar",
176
- ref: D,
177
- "wrap-style": H.value,
175
+ ref: V,
176
+ "wrap-style": D.value,
178
177
  tag: "div",
179
178
  "view-class": [o(l).e("list"), "test"]
180
179
  }, {
181
180
  default: n(() => [
182
- r(o(ae), {
181
+ r(o(ie), {
183
182
  loop: e.loop,
184
183
  "current-tab-id": p.value,
185
184
  orientation: "horizontal",
186
- onCurrentTabIdChange: J,
187
- onEntryFocus: M
185
+ onCurrentTabIdChange: G,
186
+ onEntryFocus: J
188
187
  }, {
189
188
  default: n(() => [
190
- r(o(be), null, {
189
+ r(o(ve), null, {
191
190
  default: n(() => [
192
191
  y(t.$slots, "dropdown")
193
192
  ]),
@@ -205,7 +204,7 @@ const ye = S({
205
204
  e.splitButton ? void 0 : {
206
205
  name: "default",
207
206
  fn: n(() => [
208
- r(o(fe), {
207
+ r(o(de), {
209
208
  id: v.value,
210
209
  ref_key: "triggeringElementRef",
211
210
  ref: i,
@@ -221,7 +220,7 @@ const ye = S({
221
220
  key: "0"
222
221
  }
223
222
  ]), 1032, ["role", "effect", "popper-options", "hide-after", "placement", "popper-class", "reference-element", "trigger", "trigger-target-el", "show-after", "virtual-ref", "virtual-triggering", "disabled", "transition", "teleported"]),
224
- e.splitButton ? ($(), oe(o(le), { key: 0 }, {
223
+ e.splitButton ? ($(), oe(o(re), { key: 0 }, {
225
224
  default: n(() => [
226
225
  r(o(O), I({
227
226
  ref_key: "referenceElementRef",
@@ -231,7 +230,7 @@ const ye = S({
231
230
  type: e.type,
232
231
  disabled: e.disabled,
233
232
  tabindex: e.tabindex,
234
- onClick: Q
233
+ onClick: q
235
234
  }), {
236
235
  default: n(() => [
237
236
  y(t.$slots, "default")
@@ -249,16 +248,16 @@ const ye = S({
249
248
  class: o(l).e("caret-button"),
250
249
  disabled: e.disabled,
251
250
  tabindex: e.tabindex,
252
- "aria-label": o(R)("toggleDropdown")
251
+ "aria-label": "切换下拉菜单"
253
252
  }), {
254
253
  default: n(() => [
255
- r(o(ie), {
254
+ r(o(le), {
256
255
  class: x(o(l).e("icon")),
257
256
  icon: "icon-arrow-down"
258
257
  }, null, 8, ["class"])
259
258
  ]),
260
259
  _: 1
261
- }, 16, ["id", "size", "type", "class", "disabled", "tabindex", "aria-label"])
260
+ }, 16, ["id", "size", "type", "class", "disabled", "tabindex"])
262
261
  ]),
263
262
  _: 3
264
263
  })) : ne("", !0)
@@ -266,5 +265,5 @@ const ye = S({
266
265
  }
267
266
  });
268
267
  export {
269
- Me as default
268
+ Ue as default
270
269
  };
@@ -1,72 +1,71 @@
1
- import { defineComponent as p, getCurrentInstance as k, computed as s, createElementBlock as l, openBlock as m, normalizeClass as c, unref as o, createElementVNode as z, createCommentVNode as u, renderSlot as d, createBlock as x, normalizeProps as D, mergeProps as E, createVNode as C } from "vue";
1
+ import { defineComponent as d, getCurrentInstance as v, computed as s, openBlock as a, createElementBlock as l, normalizeClass as c, unref as t, createElementVNode as k, renderSlot as i, createBlock as z, normalizeProps as x, mergeProps as C, createVNode as E, createCommentVNode as u } from "vue";
2
2
  import { VftIcon as V } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
- import { singleAttrToObj as h, renderTNode as w, VNode as F } from "@vft/utils";
5
- import { addUnit as $ } from "../../utils/helper.js";
4
+ import { singleAttrToObj as D, renderTNode as $, VNode as b } from "@vft/utils";
5
+ import { addUnit as h } from "../../utils/helper.js";
6
6
  import "lodash-es";
7
7
  import "../form/index.js";
8
- import { useNamespace as b } from "../../hooks/use-namespace/index.js";
8
+ import { useNamespace as w } from "../../hooks/use-namespace/index.js";
9
9
  import "../../hooks/use-model-toggle/index.js";
10
10
  import "@popperjs/core";
11
11
  import "../../hooks/use-z-index/index.js";
12
- import { useLocale as B } from "../../locale/use-locale.js";
13
12
  import { EmptyEnum as e } from "./constants.js";
14
- const I = p({
13
+ const B = d({
15
14
  name: "vft-empty"
16
- }), Q = /* @__PURE__ */ p({
17
- ...I,
15
+ }), J = /* @__PURE__ */ d({
16
+ ...B,
18
17
  props: {
19
18
  icon: {},
20
19
  type: { default: () => e.NoData },
21
20
  size: { default: "default" },
22
21
  desc: {}
23
22
  },
24
- setup(n) {
25
- const r = b("empty"), f = k(), { t } = B(), y = /* @__PURE__ */ new Map([
23
+ setup(o) {
24
+ const n = w("empty"), p = v(), f = /* @__PURE__ */ new Map([
26
25
  [
27
26
  e.NotFound,
28
27
  {
29
- text: t("vft.empty.notFound")
28
+ text: "页面不存在"
30
29
  }
31
30
  ],
32
31
  [
33
32
  e.Delete,
34
33
  {
35
- text: t("vft.empty.deleted")
34
+ text: "已删除"
36
35
  }
37
36
  ],
38
37
  [
39
38
  e.NetworkDisconnect,
40
39
  {
41
- text: t("vft.empty.networkDisconnect")
40
+ text: "网络已断开"
42
41
  }
43
42
  ],
44
43
  [
45
44
  e.NoData,
46
45
  {
47
- text: t("vft.empty.noData")
46
+ text: "暂无数据"
48
47
  }
49
48
  ],
50
49
  [
51
50
  e.PageError,
52
51
  {
53
- text: t("vft.empty.pageError")
52
+ text: "系统异常"
54
53
  }
55
54
  ],
56
55
  [
57
56
  e.NoFilter,
58
57
  {
59
- text: t("vft.empty.noFilter")
58
+ text: "此筛选条件下无结果"
60
59
  }
61
60
  ],
62
61
  [
63
62
  e.NoSearch,
64
63
  {
65
- text: t("vft.empty.noSearch")
64
+ text: "没有搜索结果"
66
65
  }
67
66
  ]
68
- ]), v = s(() => y.get(n.type)), N = s(() => {
69
- switch (n.size) {
67
+ ]), N = s(() => f.get(o.type)), g = s(() => {
68
+ switch (o.size) {
70
69
  case "large":
71
70
  return 120;
72
71
  case "default":
@@ -74,37 +73,37 @@ const I = p({
74
73
  case "small":
75
74
  return 60;
76
75
  default:
77
- return n.size || 80;
76
+ return o.size || 80;
78
77
  }
79
- }), g = s(() => h(n.icon, "icon", {
80
- size: $(N.value),
81
- icon: n.type
82
- })), i = s(
83
- () => w(f, "desc", { defaultNode: v.value?.text })
78
+ }), y = s(() => D(o.icon, "icon", {
79
+ size: h(g.value),
80
+ icon: o.type
81
+ })), m = s(
82
+ () => $(p, "desc", { defaultNode: N.value?.text })
84
83
  );
85
- return (a, P) => (m(), l("div", {
86
- class: c([o(r).b()])
84
+ return (r, I) => (a(), l("div", {
85
+ class: c([t(n).b()])
87
86
  }, [
88
- z("div", {
89
- class: c(o(r).e("image"))
87
+ k("div", {
88
+ class: c(t(n).e("image"))
90
89
  }, [
91
- a.$slots.img ? d(a.$slots, "img", { key: 0 }) : (m(), x(o(V), D(E({ key: 1 }, g.value)), null, 16))
90
+ r.$slots.img ? i(r.$slots, "img", { key: 0 }) : (a(), z(t(V), x(C({ key: 1 }, y.value)), null, 16))
92
91
  ], 2),
93
- i.value ? (m(), l("span", {
92
+ m.value ? (a(), l("span", {
94
93
  key: 0,
95
- class: c(o(r).e("desc"))
94
+ class: c(t(n).e("desc"))
96
95
  }, [
97
- C(o(F), { content: i.value }, null, 8, ["content"])
96
+ E(t(b), { content: m.value }, null, 8, ["content"])
98
97
  ], 2)) : u("", !0),
99
- a.$slots.default ? (m(), l("div", {
98
+ r.$slots.default ? (a(), l("div", {
100
99
  key: 1,
101
- class: c(o(r).e("bottom"))
100
+ class: c(t(n).e("bottom"))
102
101
  }, [
103
- d(a.$slots, "default")
102
+ i(r.$slots, "default")
104
103
  ], 2)) : u("", !0)
105
104
  ], 2));
106
105
  }
107
106
  });
108
107
  export {
109
- Q as default
108
+ J as default
110
109
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, createBlock as i, openBlock as m, unref as t, normalizeClass as o, withCtx as p, createElementVNode as s, renderSlot as l } from "vue";
1
+ import { defineComponent as a, openBlock as i, createBlock as m, unref as t, normalizeClass as o, withCtx as p, createElementVNode as s, renderSlot as l } from "vue";
2
2
  import { VftFooter as n } from "../container/index.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -15,7 +15,7 @@ const c = a({
15
15
  ...c,
16
16
  setup(u) {
17
17
  const e = f("footer-layout");
18
- return (r, d) => (m(), i(t(n), {
18
+ return (r, d) => (i(), m(t(n), {
19
19
  class: o(t(e).b())
20
20
  }, {
21
21
  default: p(() => [
@@ -1,4 +1,4 @@
1
- import { defineComponent as Z, useSlots as ye, inject as E, ref as b, computed as a, watch as T, reactive as Se, toRefs as ke, provide as qe, onMounted as Ie, onBeforeUnmount as Ve, createElementBlock as we, openBlock as R, unref as f, normalizeClass as g, createBlock as G, createCommentVNode as _, createElementVNode as K, withCtx as B, resolveDynamicComponent as Ce, normalizeStyle as U, renderSlot as M, createTextVNode as Fe, toDisplayString as O, createVNode as Re, TransitionGroup as _e, nextTick as Be } from "vue";
1
+ import { defineComponent as Z, useSlots as ye, inject as E, ref as b, computed as a, watch as T, reactive as Se, toRefs as ke, provide as qe, onMounted as Ie, onBeforeUnmount as Ve, openBlock as R, createElementBlock as we, unref as f, normalizeClass as g, createBlock as G, withCtx as _, resolveDynamicComponent as Ce, normalizeStyle as K, renderSlot as B, createTextVNode as Fe, toDisplayString as U, createCommentVNode as M, createElementVNode as O, createVNode as Re, TransitionGroup as _e, nextTick as Be } from "vue";
2
2
  import { refDebounced as Me } from "@vueuse/core";
3
3
  import { isBoolean as We, getProp as W, isFunction as xe } from "@vft/utils";
4
4
  import { addUnit as H, castArray as J } from "../../utils/helper.js";
@@ -185,46 +185,46 @@ const je = ["role", "aria-labelledby"], De = Z({
185
185
  role: I.value ? "group" : void 0,
186
186
  "aria-labelledby": I.value ? f(S) : void 0
187
187
  }, [
188
- x.hideLabel ? _("", !0) : (R(), G(f(Ne), {
188
+ x.hideLabel ? M("", !0) : (R(), G(f(Ne), {
189
189
  key: 0,
190
190
  "is-auto-width": A.value.width === "auto",
191
191
  "update-all": f(o)?.labelWidth === "auto"
192
192
  }, {
193
- default: B(() => [
193
+ default: _(() => [
194
194
  k.value ? (R(), G(Ce(q.value ? "label" : "div"), {
195
195
  key: 0,
196
196
  id: f(S),
197
197
  for: q.value,
198
198
  class: g(f(s).e("label")),
199
- style: U(A.value)
199
+ style: K(A.value)
200
200
  }, {
201
- default: B(() => [
202
- M(e.$slots, "label", { label: L.value }, () => [
203
- Fe(O(L.value), 1)
201
+ default: _(() => [
202
+ B(e.$slots, "label", { label: L.value }, () => [
203
+ Fe(U(L.value), 1)
204
204
  ])
205
205
  ]),
206
206
  _: 3
207
- }, 8, ["id", "for", "class", "style"])) : _("", !0)
207
+ }, 8, ["id", "for", "class", "style"])) : M("", !0)
208
208
  ]),
209
209
  _: 3
210
210
  }, 8, ["is-auto-width", "update-all"])),
211
- K("div", {
211
+ O("div", {
212
212
  class: g(f(s).e("content")),
213
- style: U(ae.value)
213
+ style: K(ae.value)
214
214
  }, [
215
- M(e.$slots, "default"),
215
+ B(e.$slots, "default"),
216
216
  Re(_e, {
217
217
  name: `${f(s).namespace.value}-zoom-in-top`
218
218
  }, {
219
- default: B(() => [
220
- me.value ? M(e.$slots, "error", {
219
+ default: _(() => [
220
+ me.value ? B(e.$slots, "error", {
221
221
  key: 0,
222
222
  error: n.value
223
223
  }, () => [
224
- K("div", {
224
+ O("div", {
225
225
  class: g(ne.value)
226
- }, O(n.value), 3)
227
- ]) : _("", !0)
226
+ }, U(n.value), 3)
227
+ ]) : M("", !0)
228
228
  ]),
229
229
  _: 3
230
230
  }, 8, ["name"])
@@ -1,4 +1,4 @@
1
- import { defineComponent as b, getCurrentInstance as q, ref as x, reactive as y, computed as F, watch as z, provide as T, toRefs as $, createElementBlock as j, openBlock as M, normalizeClass as W, renderSlot as A } from "vue";
1
+ import { defineComponent as b, getCurrentInstance as q, ref as x, reactive as y, computed as F, watch as z, provide as T, toRefs as $, openBlock as j, createElementBlock as M, normalizeClass as W, renderSlot as A } from "vue";
2
2
  import "@vueuse/core";
3
3
  import { isFunction as K } from "@vft/utils";
4
4
  import { debugWarn as n } from "../../utils/error.js";
@@ -133,7 +133,7 @@ const H = b({
133
133
  * @description Scroll to the specified fields.
134
134
  */
135
135
  scrollToField: S
136
- }), (e, t) => (M(), j("form", {
136
+ }), (e, t) => (j(), M("form", {
137
137
  ref_key: "formRef",
138
138
  ref: d,
139
139
  class: W(C.value)
@@ -1,21 +1,20 @@
1
- import { defineComponent as r, createBlock as p, openBlock as m, unref as o, mergeProps as a } from "vue";
2
- import { useFullscreen as u } from "@vft/use";
3
- import { delObjAttrNotExist as f } from "@vft/utils";
4
- import { VftIconText as x } from "../icon-text/index.js";
1
+ import { defineComponent as r, openBlock as p, createBlock as s, unref as o, mergeProps as m } from "vue";
2
+ import { useFullscreen as a } from "@vft/use";
3
+ import { delObjAttrNotExist as u } from "@vft/utils";
4
+ import { VftIconText as f } from "../icon-text/index.js";
5
5
  import "@vueuse/core";
6
6
  import "../config-provider/hooks/use-global-config.js";
7
7
  import { primaryColor as d } from "../../utils/ns-cover.js";
8
8
  import "lodash-es";
9
9
  import "../form/index.js";
10
- import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
10
+ import { useNamespace as x } from "../../hooks/use-namespace/index.js";
11
11
  import "../../hooks/use-model-toggle/index.js";
12
12
  import "@popperjs/core";
13
13
  import "../../hooks/use-z-index/index.js";
14
- import { useLocale as v } from "../../locale/use-locale.js";
15
- const y = r({
14
+ const _ = r({
16
15
  name: "full-screen"
17
- }), A = /* @__PURE__ */ r({
18
- ...y,
16
+ }), z = /* @__PURE__ */ r({
17
+ ..._,
19
18
  props: {
20
19
  text: {},
21
20
  icon: {},
@@ -33,18 +32,18 @@ const y = r({
33
32
  clampTooltipCfg: {},
34
33
  useClamp: { type: Boolean }
35
34
  },
36
- setup(n) {
37
- const l = n, c = _("full-screen"), { t: e } = v(), { toggle: i, isFullscreen: t } = u(), s = d().value;
38
- return (B, C) => (m(), p(o(x), a({
39
- class: o(c).b(),
35
+ setup(t) {
36
+ const n = t, l = x("full-screen"), { toggle: i, isFullscreen: e } = a(), c = d().value;
37
+ return (y, B) => (p(), s(o(f), m({
38
+ class: o(l).b(),
40
39
  distance: 2,
41
- "hover-color": o(s),
40
+ "hover-color": o(c),
42
41
  onClick: o(i),
43
- icon: o(t) ? "icon-exit-full-screen" : "icon-full-screen",
44
- text: o(t) ? o(e)("vft.fullScreen.exit") : o(e)("vft.fullScreen.enter")
45
- }, o(f)(l, !0, !0), { pointer: "" }), null, 16, ["class", "hover-color", "onClick", "icon", "text"]));
42
+ icon: o(e) ? "icon-exit-full-screen" : "icon-full-screen",
43
+ text: o(e) ? "退出全屏" : "全屏"
44
+ }, o(u)(n, !0, !0), { pointer: "" }), null, 16, ["class", "hover-color", "onClick", "icon", "text"]));
46
45
  }
47
46
  });
48
47
  export {
49
- A as default
48
+ z as default
50
49
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as d, createBlock as n, openBlock as e, unref as t, normalizeClass as m, withCtx as r, createVNode as f, createCommentVNode as l, createElementVNode as u, createElementBlock as c, renderSlot as i, normalizeProps as p, mergeProps as g } from "vue";
1
+ import { defineComponent as d, openBlock as e, createBlock as n, unref as t, normalizeClass as m, withCtx as r, createVNode as f, createElementVNode as u, createElementBlock as c, normalizeProps as p, mergeProps as g, createCommentVNode as l, renderSlot as i } from "vue";
2
2
  import { VftHeader as h, VftContainer as C, VftMain as V, VftFooter as k } from "../container/index.js";
3
3
  import { VftLogo as _ } from "../logo/index.js";
4
4
  import "@vueuse/core";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as V, computed as S, getCurrentInstance as Y, useSlots as q, ref as F, createVNode as c, mergeProps as w, isVNode as K } from "vue";
2
2
  import { useRouterHelper as Q } from "@vft/router";
3
3
  import { isUrl as X } from "@vft/utils";
4
- import { VftMenu as Z, VftSubMenu as _, VftMenuItem as ee, VftMenuItemGroup as te } from "../menu/index.js";
4
+ import { VftMenu as Z, VftSubMenu as _, VftMenuItemGroup as ee, VftMenuItem as te } from "../menu/index.js";
5
5
  import "@vueuse/core";
6
6
  import "../config-provider/hooks/use-global-config.js";
7
7
  import "lodash-es";
@@ -71,7 +71,7 @@ const ue = V({
71
71
  ...t.attrMapping
72
72
  })), B = Y(), h = q(), O = F(), T = B.appContext.config.globalProperties.$router, v = (e, o, a) => {
73
73
  const i = e[l.value.path], r = e[l.value.title], n = e?.[l.value.index], M = e?.[l.value.icon], m = !!e?.[l.value.disabled], d = t.disabledJudgeTurnOver ? !m : m, g = n || i || o + r;
74
- return c(ee, w(e, {
74
+ return c(te, w(e, {
75
75
  key: g,
76
76
  index: String(g),
77
77
  icon: M,
@@ -92,7 +92,7 @@ const ue = V({
92
92
  p("close", e);
93
93
  }, z = (e) => {
94
94
  p("sub-menu-click", e);
95
- }, H = (e, o) => !t.enableScroll || !e ? e : o > t.scrollThreshold ? c(te, {
95
+ }, H = (e, o) => !t.enableScroll || !e ? e : o > t.scrollThreshold ? c(ee, {
96
96
  style: {
97
97
  maxHeight: t.scrollMaxHeight,
98
98
  overflowY: "auto"
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, computed as t, createElementBlock as c, openBlock as s, normalizeStyle as l, normalizeClass as m, unref as i } from "vue";
1
+ import { defineComponent as f, computed as t, openBlock as c, createElementBlock as s, normalizeStyle as l, normalizeClass as m, unref as i } from "vue";
2
2
  import { isString as y } from "@vft/utils";
3
3
  import "../config-provider/index.js";
4
4
  import "@vueuse/core";
@@ -37,13 +37,13 @@ const z = ["src"], I = f({
37
37
  "icon"
38
38
  )
39
39
  ), u = (a) => a?.includes("/"), v = t(() => u(o.icon)), d = t(() => e.value?.iconifyPrefixClass && o.icon && y(o.icon) ? o.icon.startsWith(e.value?.iconifyPrefixClass) : !1).value ? "" : e.value?.iconfontClass || "";
40
- return (a, x) => v.value ? (s(), c("img", {
40
+ return (a, x) => v.value ? (c(), s("img", {
41
41
  key: 0,
42
42
  class: m(i(n).e("image")),
43
43
  src: o.icon,
44
44
  alt: "",
45
45
  style: l(r.value)
46
- }, null, 14, z)) : (s(), c("i", {
46
+ }, null, 14, z)) : (c(), s("i", {
47
47
  key: 1,
48
48
  class: m([i(n).b(), o.icon, i(d)]),
49
49
  style: l(r.value)
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as o, createElementBlock as f, openBlock as l, normalizeStyle as k, normalizeClass as S, unref as r, createBlock as c, createCommentVNode as y, mergeProps as s, normalizeProps as b, toDisplayString as I } from "vue";
1
+ import { defineComponent as C, computed as o, openBlock as l, createElementBlock as f, normalizeStyle as k, normalizeClass as S, unref as r, createBlock as c, mergeProps as s, createCommentVNode as y, normalizeProps as b, toDisplayString as I } from "vue";
2
2
  import { VftClampTooltip as w } from "../clamp-tooltip/index.js";
3
3
  import { VftIcon as h } from "../icon/index.js";
4
4
  import "@vueuse/core";