vft 0.0.507 → 0.0.511

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 (326) 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.vue2.js +1 -1
  5. package/es/components/avatar/avatar.vue2.js +2 -2
  6. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  7. package/es/components/backtop/backtop.vue2.js +1 -1
  8. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  9. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  10. package/es/components/button/button-group.vue2.js +2 -2
  11. package/es/components/button/button.vue2.js +7 -7
  12. package/es/components/button/use-button.js +3 -3
  13. package/es/components/card/card.vue2.js +6 -6
  14. package/es/components/carousel/carousel-item.vue2.js +3 -3
  15. package/es/components/carousel/carousel.vue2.js +1 -1
  16. package/es/components/carousel/use-carousel.js +1 -1
  17. package/es/components/cascader/cascader.vue2.js +203 -202
  18. package/es/components/cascader-panel/index.vue2.js +1 -1
  19. package/es/components/cascader-panel/menu.vue2.js +50 -49
  20. package/es/components/cascader-panel/node.vue2.js +8 -8
  21. package/es/components/check-tag/check-tag.vue2.js +2 -2
  22. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  23. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  24. package/es/components/checkbox/checkbox.vue2.js +1 -1
  25. package/es/components/clamp/clamp.vue2.js +2 -2
  26. package/es/components/clamp-toggle/clamp-toggle.vue2.js +21 -17
  27. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  28. package/es/components/col/col.vue2.js +2 -2
  29. package/es/components/collapse/collapse-item.vue2.js +2 -2
  30. package/es/components/collapse/collapse.vue2.js +2 -2
  31. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  32. package/es/components/color-picker/color-picker.vue2.js +134 -133
  33. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  34. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  35. package/es/components/color-picker/components/predefine.vue.js +3 -3
  36. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  37. package/es/components/config-provider/config-provider.vue.d.ts +2 -0
  38. package/es/components/config-provider/config-provider.vue2.js +5 -4
  39. package/es/components/config-provider/constants.d.ts +1 -0
  40. package/es/components/config-provider/constants.js +3 -2
  41. package/es/components/config-provider/hooks/use-global-config.js +33 -30
  42. package/es/components/config-provider/index.d.ts +9 -0
  43. package/es/components/config-provider/index.js +6 -5
  44. package/es/components/container/aside.vue2.js +2 -2
  45. package/es/components/container/container.vue2.js +2 -2
  46. package/es/components/container/footer.vue2.js +2 -2
  47. package/es/components/container/header.vue2.js +2 -2
  48. package/es/components/container/main.vue2.js +2 -2
  49. package/es/components/context-menu/context-menu.vue2.js +1 -1
  50. package/es/components/countdown/countdown.vue2.js +2 -2
  51. package/es/components/date-picker/composables/use-basic-date-table.js +83 -82
  52. package/es/components/date-picker/composables/use-month-range-header.js +15 -14
  53. package/es/components/date-picker/composables/use-panel-date-range.js +24 -23
  54. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  55. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +40 -39
  56. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +41 -40
  57. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +184 -183
  58. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +225 -224
  59. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  60. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  61. package/es/components/date-picker/props/basic-date-table.js +3 -3
  62. package/es/components/date-picker/props/basic-month-table.js +3 -3
  63. package/es/components/date-picker/props/basic-year-table.js +3 -3
  64. package/es/components/date-time-select/date-time-select.vue2.js +39 -36
  65. package/es/components/descriptions/description.vue2.js +1 -1
  66. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  67. package/es/components/dialog/dialog-content.vue2.js +3 -3
  68. package/es/components/dialog/dialog.vue2.js +5 -5
  69. package/es/components/divider/divider.vue2.js +5 -5
  70. package/es/components/drawer/drawer.vue2.js +4 -4
  71. package/es/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  72. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  73. package/es/components/dropdown/dropdown-item.vue.d.ts +1 -1
  74. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  75. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  76. package/es/components/dropdown/dropdown.vue.d.ts +1 -1
  77. package/es/components/dropdown/dropdown.vue2.js +68 -67
  78. package/es/components/dropdown/index.d.ts +33 -33
  79. package/es/components/empty/empty.vue2.js +39 -38
  80. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  81. package/es/components/form/form-item.vue2.js +16 -16
  82. package/es/components/form/form.vue2.js +2 -2
  83. package/es/components/full-screen/full-screen.vue2.js +18 -17
  84. package/es/components/header-layout/header-layout.vue2.js +1 -1
  85. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  86. package/es/components/icon/icon.vue2.js +3 -3
  87. package/es/components/icon-text/icon-text.vue2.js +1 -1
  88. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  89. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  90. package/es/components/image/image.vue2.js +60 -59
  91. package/es/components/image-viewer/image-viewer.vue2.js +43 -42
  92. package/es/components/index.d.ts +1 -0
  93. package/es/components/index.js +214 -210
  94. package/es/components/input/input.vue2.js +2 -2
  95. package/es/components/input-number/input-number.vue2.js +4 -4
  96. package/es/components/input-tag/composables/use-input-tag.js +1 -1
  97. package/es/components/input-tag/input-tag.vue2.js +7 -7
  98. package/es/components/link/link.vue2.js +1 -1
  99. package/es/components/list-cell/list-cell.vue2.js +1 -1
  100. package/es/components/logo/logo.vue2.js +10 -10
  101. package/es/components/md-comment/md-comment.vue2.js +2 -2
  102. package/es/components/md-container/md-container.vue2.js +75 -74
  103. package/es/components/md-container/toc.js +37 -36
  104. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  105. package/es/components/menu/menu-item-group.vue2.js +7 -7
  106. package/es/components/menu/menu-item.vue2.js +1 -1
  107. package/es/components/message/message.vue2.js +3 -3
  108. package/es/components/message-box/index.d.ts +4 -0
  109. package/es/components/message-box/index.js +14 -0
  110. package/es/components/message-box/message-box.vue.d.ts +103 -0
  111. package/es/components/message-box/message-box.vue.js +4 -0
  112. package/es/components/message-box/message-box.vue2.js +358 -0
  113. package/es/components/message-box/method.d.ts +3 -0
  114. package/es/components/message-box/method.js +101 -0
  115. package/es/components/message-box/style/css.d.ts +2 -0
  116. package/es/components/message-box/style/css.js +3 -0
  117. package/es/components/message-box/style/index.d.ts +2 -0
  118. package/es/components/message-box/style/index.js +3 -0
  119. package/es/components/message-box/types.d.ts +202 -0
  120. package/es/components/message-box/types.js +1 -0
  121. package/es/components/modal/index.d.ts +1 -0
  122. package/es/components/modal/modal-footer-action.vue2.js +25 -24
  123. package/es/components/modal/modal.vue.d.ts +1 -0
  124. package/es/components/modal/modal.vue2.js +30 -28
  125. package/es/components/multiple-tabs/multiple-tabs.vue2.js +17 -16
  126. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  127. package/es/components/multiple-tabs/use/use-tab-dropdown.js +54 -53
  128. package/es/components/notification/notification.vue2.js +1 -1
  129. package/es/components/overlay/overlay.vue2.js +1 -1
  130. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  131. package/es/components/pagination/components/jumper.vue2.js +2 -2
  132. package/es/components/pagination/components/next.vue2.js +4 -4
  133. package/es/components/pagination/components/pager.vue2.js +1 -1
  134. package/es/components/pagination/components/prev.vue2.js +4 -4
  135. package/es/components/pagination/components/sizes.vue2.js +2 -2
  136. package/es/components/pagination/components/total.vue2.js +2 -2
  137. package/es/components/popconfirm/popconfirm.vue2.js +40 -39
  138. package/es/components/popover/popover.vue2.js +1 -1
  139. package/es/components/popper/arrow.vue2.js +2 -2
  140. package/es/components/popper/content.vue2.js +2 -2
  141. package/es/components/popper/trigger.vue2.js +4 -4
  142. package/es/components/progress/progress.vue2.js +1 -1
  143. package/es/components/progress-i/progress-i.vue2.js +2 -2
  144. package/es/components/qrcode/qrcode.vue2.js +1 -1
  145. package/es/components/radio/radio-button.vue2.js +2 -2
  146. package/es/components/radio/radio-group.vue2.js +3 -3
  147. package/es/components/radio/radio.vue2.js +2 -2
  148. package/es/components/rate/rate.vue2.js +6 -6
  149. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  150. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  151. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  152. package/es/components/row/row.vue2.js +2 -2
  153. package/es/components/scrollbar/bar.vue2.js +2 -2
  154. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  155. package/es/components/scrollbar/thumb.vue2.js +2 -2
  156. package/es/components/search/search.vue2.js +78 -76
  157. package/es/components/segmented/segmented.vue2.js +7 -7
  158. package/es/components/select/group-item.vue.js +2 -2
  159. package/es/components/select/option-item.vue.js +2 -2
  160. package/es/components/select/select.vue.js +1 -1
  161. package/es/components/select/useSelect.js +232 -231
  162. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  163. package/es/components/skeleton/skeleton.vue2.js +8 -8
  164. package/es/components/slider/button.vue2.js +2 -2
  165. package/es/components/slider/slider.vue2.js +1 -1
  166. package/es/components/space/space.js +1 -1
  167. package/es/components/statistic/statistic.vue2.js +17 -17
  168. package/es/components/steps/item.vue2.js +11 -11
  169. package/es/components/steps/steps.vue2.js +2 -2
  170. package/es/components/super-form/super-form-action.vue2.js +11 -11
  171. package/es/components/super-form/super-form-item.vue2.js +5 -4
  172. package/es/components/super-form/super-form.vue2.js +7 -7
  173. package/es/components/super-form/use/helper.js +12 -12
  174. package/es/components/super-form/use/use-form.js +8 -8
  175. package/es/components/switch/switch.vue2.js +1 -1
  176. package/es/components/table/field.js +34 -33
  177. package/es/components/table/table.vue2.js +154 -157
  178. package/es/components/table/use/use-data-source.js +90 -90
  179. package/es/components/tabs/tab-bar.vue2.js +2 -2
  180. package/es/components/tabs/tab-pane.vue2.js +6 -6
  181. package/es/components/teleport/teleport.vue2.js +2 -2
  182. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  183. package/es/components/time-picker/common/picker.vue2.js +8 -8
  184. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  185. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +66 -65
  186. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +134 -133
  187. package/es/components/time-select/time-select.vue2.js +3 -3
  188. package/es/components/timeline/timeline-item.vue2.js +1 -1
  189. package/es/components/tooltip/content.vue2.js +6 -6
  190. package/es/components/tooltip/tooltip.vue2.js +1 -1
  191. package/es/components/tooltip/trigger.vue2.js +2 -2
  192. package/es/components/transfer/transfer-panel.vue2.js +59 -58
  193. package/es/components/transfer/transfer.vue2.js +70 -69
  194. package/es/components/tree/tree-node.vue.js +1 -1
  195. package/es/components/tree/tree.vue2.js +60 -59
  196. package/es/components/upload/index.d.ts +3 -3
  197. package/es/components/upload/upload-content.vue.d.ts +2 -2
  198. package/es/components/upload/upload-content.vue2.js +76 -73
  199. package/es/components/upload/upload-dragger.vue2.js +2 -2
  200. package/es/components/upload/upload-list.vue2.js +46 -45
  201. package/es/components/upload/upload.vue.d.ts +2 -2
  202. package/es/components/upload/upload.vue2.js +87 -85
  203. package/es/components/upload/utils.js +29 -29
  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/constants/date.d.ts +1 -1
  207. package/es/constants/date.js +9 -1
  208. package/es/hooks/use-id/index.js +2 -2
  209. package/es/hooks/use-z-index/index.js +3 -3
  210. package/es/index.d.ts +1 -0
  211. package/es/index.js +43 -38
  212. package/es/locale/index.d.js +1 -0
  213. package/es/locale/index.d.ts +26 -0
  214. package/es/locale/index.js +10 -0
  215. package/es/locale/lang/en.d.ts +183 -0
  216. package/es/locale/lang/en.js +241 -0
  217. package/es/locale/lang/zh-cn.d.ts +183 -0
  218. package/es/locale/lang/zh-cn.js +241 -0
  219. package/es/locale/lang/zh-tw.d.ts +183 -0
  220. package/es/locale/lang/zh-tw.js +241 -0
  221. package/es/locale/use-locale.d.ts +17 -0
  222. package/es/locale/use-locale.js +56 -0
  223. package/es/package.json.d.ts +1 -1
  224. package/es/package.json.js +1 -1
  225. package/es/plugin.js +5 -3
  226. package/es/utils/helper.js +2 -2
  227. package/es/utils/ns-cover.js +1 -1
  228. package/es/utils/vue/vnode.js +4 -4
  229. package/lib/components/button/use-button.cjs +1 -1
  230. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  231. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  232. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  233. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  234. package/lib/components/config-provider/config-provider.vue.d.ts +2 -0
  235. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  236. package/lib/components/config-provider/constants.cjs +1 -1
  237. package/lib/components/config-provider/constants.d.ts +1 -0
  238. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  239. package/lib/components/config-provider/index.cjs +1 -1
  240. package/lib/components/config-provider/index.d.ts +9 -0
  241. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  242. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  243. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  244. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  245. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  246. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  247. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  248. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  249. package/lib/components/dropdown/dropdown-item-impl.vue.d.ts +1 -1
  250. package/lib/components/dropdown/dropdown-item.vue.d.ts +1 -1
  251. package/lib/components/dropdown/dropdown.vue.d.ts +1 -1
  252. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  253. package/lib/components/dropdown/index.d.ts +33 -33
  254. package/lib/components/empty/empty.vue2.cjs +1 -1
  255. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  256. package/lib/components/image/image.vue2.cjs +1 -1
  257. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  258. package/lib/components/index.cjs +1 -1
  259. package/lib/components/index.d.ts +1 -0
  260. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  261. package/lib/components/md-container/toc.cjs +1 -1
  262. package/lib/components/message-box/index.cjs +1 -0
  263. package/lib/components/message-box/index.d.ts +4 -0
  264. package/lib/components/message-box/message-box.vue.cjs +1 -0
  265. package/lib/components/message-box/message-box.vue.d.ts +103 -0
  266. package/lib/components/message-box/message-box.vue2.cjs +1 -0
  267. package/lib/components/message-box/method.cjs +1 -0
  268. package/lib/components/message-box/method.d.ts +3 -0
  269. package/lib/components/message-box/style/css.cjs +1 -0
  270. package/lib/components/message-box/style/css.d.ts +2 -0
  271. package/lib/components/message-box/style/index.cjs +1 -0
  272. package/lib/components/message-box/style/index.d.ts +2 -0
  273. package/lib/components/message-box/types.cjs +1 -0
  274. package/lib/components/message-box/types.d.ts +202 -0
  275. package/lib/components/modal/index.d.ts +1 -0
  276. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  277. package/lib/components/modal/modal.vue.d.ts +1 -0
  278. package/lib/components/modal/modal.vue2.cjs +1 -1
  279. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  280. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  281. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  282. package/lib/components/search/search.vue2.cjs +1 -1
  283. package/lib/components/select/useSelect.cjs +1 -1
  284. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  285. package/lib/components/super-form/use/helper.cjs +1 -1
  286. package/lib/components/super-form/use/use-form.cjs +1 -1
  287. package/lib/components/table/field.cjs +1 -1
  288. package/lib/components/table/table.vue2.cjs +1 -1
  289. package/lib/components/table/use/use-data-source.cjs +1 -1
  290. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  291. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  292. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  293. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  294. package/lib/components/tree/tree.vue2.cjs +1 -1
  295. package/lib/components/upload/index.d.ts +3 -3
  296. package/lib/components/upload/upload-content.vue.d.ts +2 -2
  297. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  298. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  299. package/lib/components/upload/upload.vue.d.ts +2 -2
  300. package/lib/components/upload/upload.vue2.cjs +1 -1
  301. package/lib/components/upload/utils.cjs +1 -1
  302. package/lib/constants/date.cjs +1 -1
  303. package/lib/constants/date.d.ts +1 -1
  304. package/lib/index.cjs +1 -1
  305. package/lib/index.d.ts +1 -0
  306. package/lib/locale/index.cjs +1 -0
  307. package/lib/locale/index.d.cjs +1 -0
  308. package/lib/locale/index.d.ts +26 -0
  309. package/lib/locale/lang/en.cjs +1 -0
  310. package/lib/locale/lang/en.d.ts +183 -0
  311. package/lib/locale/lang/zh-cn.cjs +1 -0
  312. package/lib/locale/lang/zh-cn.d.ts +183 -0
  313. package/lib/locale/lang/zh-tw.cjs +1 -0
  314. package/lib/locale/lang/zh-tw.d.ts +183 -0
  315. package/lib/locale/use-locale.cjs +1 -0
  316. package/lib/locale/use-locale.d.ts +17 -0
  317. package/lib/package.json.cjs +1 -1
  318. package/lib/package.json.d.ts +1 -1
  319. package/lib/plugin.cjs +1 -1
  320. package/package.json +2 -2
  321. package/theme-style/index.css +1 -1
  322. package/theme-style/src/super-form.scss +0 -1
  323. package/theme-style/src/table.scss +4 -0
  324. package/theme-style/vft-super-form.css +1 -1
  325. package/theme-style/vft-table.css +1 -1
  326. package/web-types.json +1 -1
@@ -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,20 +1,21 @@
1
- import { defineComponent as r, createBlock as p, openBlock 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";
1
+ import { defineComponent as r, openBlock as p, createBlock 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";
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 x } from "../../hooks/use-namespace/index.js";
10
+ import { useNamespace as _ } 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
- const _ = r({
14
+ import v from "../../locale/use-locale.js";
15
+ const y = r({
15
16
  name: "full-screen"
16
- }), z = /* @__PURE__ */ r({
17
- ..._,
17
+ }), A = /* @__PURE__ */ r({
18
+ ...y,
18
19
  props: {
19
20
  text: {},
20
21
  icon: {},
@@ -32,18 +33,18 @@ const _ = r({
32
33
  clampTooltipCfg: {},
33
34
  useClamp: { type: Boolean }
34
35
  },
35
- setup(t) {
36
- const n = t, l = x("full-screen"), { toggle: i, isFullscreen: e } = a(), c = d().value;
37
- return (y, B) => (s(), p(o(f), m({
38
- class: o(l).b(),
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) => (p(), m(o(x), a({
39
+ class: o(c).b(),
39
40
  distance: 2,
40
- "hover-color": o(c),
41
+ "hover-color": o(s),
41
42
  onClick: o(i),
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"]));
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"]));
45
46
  }
46
47
  });
47
48
  export {
48
- z as default
49
+ A as default
49
50
  };
@@ -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";
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, ref as p, computed as P, createElementBlock as n, openBlock as t, Fragment as m, renderList as _, withDirectives as g, createCommentVNode as k, createBlock as v, vShow as L } from "vue";
1
+ import { defineComponent as c, ref as p, computed as P, openBlock as t, createElementBlock as n, Fragment as m, renderList as _, withDirectives as g, createBlock as k, vShow as v, createCommentVNode as L } from "vue";
2
2
  import y from "./iframe-page.vue2.js";
3
3
  const B = c({
4
4
  name: "vft-iframe-layout"
@@ -19,7 +19,7 @@ const B = c({
19
19
  }), (a, f) => (t(!0), n(m, null, _(o.iframePages, (e, h) => (t(), n(m, {
20
20
  key: e.query ? e.fullPath : e.path
21
21
  }, [
22
- e.meta.frameSrc && e.meta.loaded ? g((t(), v(y, {
22
+ e.meta.frameSrc && e.meta.loaded ? g((t(), k(y, {
23
23
  key: 0,
24
24
  ref_for: !0,
25
25
  ref_key: "iframePageRef",
@@ -27,8 +27,8 @@ const B = c({
27
27
  onLoaded: (S) => s(e, h),
28
28
  "frame-src": e.meta.frameSrc
29
29
  }, null, 8, ["onLoaded", "frame-src"])), [
30
- [L, e.fullPath === (o.currentPath || a.$route.fullPath)]
31
- ]) : k("", !0)
30
+ [v, e.fullPath === (o.currentPath || a.$route.fullPath)]
31
+ ]) : L("", !0)
32
32
  ], 64))), 128));
33
33
  }
34
34
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, ref as a, onMounted as u, nextTick as t, createElementBlock as w, openBlock as _, normalizeClass as v, unref as g } from "vue";
1
+ import { defineComponent as n, ref as a, onMounted as u, nextTick as t, openBlock as w, createElementBlock as _, normalizeClass as v, unref as g } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -35,7 +35,7 @@ const h = ["src"], k = n({
35
35
  });
36
36
  }), s({
37
37
  isLoading: o
38
- }), (d, x) => (_(), w("iframe", {
38
+ }), (d, x) => (w(), _("iframe", {
39
39
  ref_key: "iframeRef",
40
40
  ref: e,
41
41
  sandbox: "allow-scripts allow-storage-access-by-user-activation allow-presentation allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-downloads allow-top-navigation allow-modals allow-forms allow-top-navigation-by-user-activation",
@@ -1,20 +1,21 @@
1
- import { defineComponent as T, useAttrs as W, ref as o, computed as d, watch as G, onMounted as J, createElementBlock as f, openBlock as s, normalizeStyle as Q, normalizeClass as y, unref as l, createCommentVNode as u, mergeProps as U, renderSlot as k, createElementVNode as A, Fragment as X, createBlock as Z, withCtx as _, nextTick as ee } from "vue";
2
- import { useAttrs as te } from "@vft/use";
3
- import { isInContainer as le, isElement as ne, isString as ae, getScrollContainer as ie } from "@vft/utils";
4
- import { VftImageViewer as re } from "../image-viewer/index.js";
5
- import { isClient as v, useThrottleFn as oe, useEventListener as V } from "@vueuse/core";
1
+ import { defineComponent as T, useAttrs as G, ref as o, computed as d, watch as J, onMounted as Q, openBlock as s, createElementBlock as f, normalizeStyle as U, normalizeClass as y, unref as l, mergeProps as X, createCommentVNode as u, renderSlot as k, createElementVNode as V, toDisplayString as Z, Fragment as _, createBlock as ee, withCtx as te, nextTick as le } from "vue";
2
+ import { useAttrs as ae } from "@vft/use";
3
+ import { isInContainer as ie, isElement as ne, isString as re, getScrollContainer as oe } from "@vft/utils";
4
+ import { VftImageViewer as se } from "../image-viewer/index.js";
5
+ import { isClient as v, useThrottleFn as ue, useEventListener as A } from "@vueuse/core";
6
6
  import "../config-provider/hooks/use-global-config.js";
7
7
  import "lodash-es";
8
8
  import "../form/index.js";
9
- import { useNamespace as se } from "../../hooks/use-namespace/index.js";
9
+ import { useNamespace as ce } from "../../hooks/use-namespace/index.js";
10
10
  import "../../hooks/use-model-toggle/index.js";
11
11
  import "@popperjs/core";
12
12
  import "../../hooks/use-z-index/index.js";
13
- const ue = ["src", "loading"], ce = { key: 0 }, de = T({
13
+ import de from "../../locale/use-locale.js";
14
+ const fe = ["src", "loading"], ve = { key: 0 }, me = T({
14
15
  name: "vft-image",
15
16
  inheritAttrs: !1
16
- }), Ie = /* @__PURE__ */ T({
17
- ...de,
17
+ }), Ve = /* @__PURE__ */ T({
18
+ ...me,
18
19
  props: {
19
20
  hideOnClickModal: { type: Boolean, default: !1 },
20
21
  src: { default: "" },
@@ -31,37 +32,37 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
31
32
  },
32
33
  emits: ["load", "error", "switch", "close", "show"],
33
34
  setup(e, { expose: $, emit: b }) {
34
- const c = b, i = se("image");
35
+ const c = b, n = ce("image"), { t: M } = de();
35
36
  let C = "";
36
- const M = W(), O = te(), w = o(), r = o(!1), n = o(!0), h = o(!1), m = o(), a = o(), H = v && "loading" in HTMLImageElement.prototype;
37
- let z, p;
38
- const F = d(() => M.style), N = d(() => v && e.fit ? { objectFit: e.fit } : {}), g = d(() => Array.isArray(e.previewSrcList) && e.previewSrcList.length > 0), P = d(() => {
37
+ const O = G(), F = ae(), w = o(), r = o(!1), a = o(!0), h = o(!1), m = o(), i = o(), H = v && "loading" in HTMLImageElement.prototype;
38
+ let p, z;
39
+ const D = d(() => O.style), N = d(() => v && e.fit ? { objectFit: e.fit } : {}), g = d(() => Array.isArray(e.previewSrcList) && e.previewSrcList.length > 0), P = d(() => {
39
40
  let t = e.initialIndex;
40
41
  return e.initialIndex > e.previewSrcList.length - 1 && (t = 0), t;
41
42
  }), S = d(() => e.loading === "eager" ? !1 : !H && e.loading === "lazy" || e.lazy), L = () => {
42
- v && (n.value = !0, r.value = !1, w.value = e.src);
43
+ v && (a.value = !0, r.value = !1, w.value = e.src);
43
44
  };
44
- function D(t) {
45
- n.value = !1, r.value = !1, c("load", t);
46
- }
47
45
  function Y(t) {
48
- n.value = !1, r.value = !0, c("error", t);
46
+ a.value = !1, r.value = !1, c("load", t);
47
+ }
48
+ function j(t) {
49
+ a.value = !1, r.value = !0, c("error", t);
49
50
  }
50
51
  function I() {
51
- le(m.value, a.value) && (L(), B());
52
+ ie(m.value, i.value) && (L(), B());
52
53
  }
53
- const x = oe(I, 200);
54
+ const x = ue(I, 200);
54
55
  async function E() {
55
- v && (await ee(), ne(e.scrollContainer) ? a.value = e.scrollContainer : ae(e.scrollContainer) && e.scrollContainer !== "" ? a.value = document.querySelector(e.scrollContainer) ?? void 0 : m.value && (a.value = ie(m.value)), a.value && (z = V(
56
- a,
56
+ v && (await le(), ne(e.scrollContainer) ? i.value = e.scrollContainer : re(e.scrollContainer) && e.scrollContainer !== "" ? i.value = document.querySelector(e.scrollContainer) ?? void 0 : m.value && (i.value = oe(m.value)), i.value && (p = A(
57
+ i,
57
58
  "scroll",
58
59
  x
59
60
  ), setTimeout(() => I(), 100)));
60
61
  }
61
62
  function B() {
62
- !v || !a.value || !x || (z?.(), a.value = void 0);
63
+ !v || !i.value || !x || (p?.(), i.value = void 0);
63
64
  }
64
- function j(t) {
65
+ function q(t) {
65
66
  if (t.ctrlKey) {
66
67
  if (t.deltaY < 0)
67
68
  return t.preventDefault(), !1;
@@ -69,62 +70,62 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
69
70
  return t.preventDefault(), !1;
70
71
  }
71
72
  }
72
- function q() {
73
- g.value && (p = V("wheel", j, {
73
+ function K() {
74
+ g.value && (z = A("wheel", q, {
74
75
  passive: !1
75
76
  }), C = document.body.style.overflow, document.body.style.overflow = "hidden", h.value = !0, c("show"));
76
77
  }
77
- function K() {
78
- p?.(), document.body.style.overflow = C, h.value = !1, c("close");
78
+ function R() {
79
+ z?.(), document.body.style.overflow = C, h.value = !1, c("close");
79
80
  }
80
- function R(t) {
81
+ function W(t) {
81
82
  c("switch", t);
82
83
  }
83
- return G(
84
+ return J(
84
85
  () => e.src,
85
86
  () => {
86
- S.value ? (n.value = !0, r.value = !1, B(), E()) : L();
87
+ S.value ? (a.value = !0, r.value = !1, B(), E()) : L();
87
88
  }
88
- ), J(() => {
89
+ ), Q(() => {
89
90
  S.value ? E() : L();
90
91
  }), $({
91
- isLoading: n
92
- }), (t, fe) => (s(), f("div", {
92
+ isLoading: a
93
+ }), (t, ye) => (s(), f("div", {
93
94
  ref_key: "container",
94
95
  ref: m,
95
- class: y([l(i).b(), t.$attrs.class]),
96
- style: Q(F.value)
96
+ class: y([l(n).b(), t.$attrs.class]),
97
+ style: U(D.value)
97
98
  }, [
98
- w.value !== void 0 && !r.value ? (s(), f("img", U({ key: 0 }, l(O), {
99
+ w.value !== void 0 && !r.value ? (s(), f("img", X({ key: 0 }, l(F), {
99
100
  src: w.value,
100
101
  loading: e.loading,
101
102
  style: N.value,
102
103
  class: [
103
- l(i).e("inner"),
104
- g.value && l(i).e("preview"),
105
- n.value && l(i).is("loading")
104
+ l(n).e("inner"),
105
+ g.value && l(n).e("preview"),
106
+ a.value && l(n).is("loading")
106
107
  ],
107
- onClick: q,
108
- onLoad: D,
109
- onError: Y,
108
+ onClick: K,
109
+ onLoad: Y,
110
+ onError: j,
110
111
  alt: ""
111
- }), null, 16, ue)) : u("", !0),
112
- n.value || r.value ? (s(), f("div", {
112
+ }), null, 16, fe)) : u("", !0),
113
+ a.value || r.value ? (s(), f("div", {
113
114
  key: 1,
114
- class: y(l(i).e("wrapper"))
115
+ class: y(l(n).e("wrapper"))
115
116
  }, [
116
- n.value ? k(t.$slots, "placeholder", { key: 0 }, () => [
117
- A("div", {
118
- class: y(l(i).e("placeholder"))
117
+ a.value ? k(t.$slots, "placeholder", { key: 0 }, () => [
118
+ V("div", {
119
+ class: y(l(n).e("placeholder"))
119
120
  }, null, 2)
120
121
  ]) : r.value ? k(t.$slots, "error", { key: 1 }, () => [
121
- A("div", {
122
- class: y(l(i).e("error"))
123
- }, "加载失败", 2)
122
+ V("div", {
123
+ class: y(l(n).e("error"))
124
+ }, Z(l(M)("vft.imageViewer.loadFailed")), 3)
124
125
  ]) : u("", !0)
125
126
  ], 2)) : u("", !0),
126
- g.value ? (s(), f(X, { key: 2 }, [
127
- h.value ? (s(), Z(l(re), {
127
+ g.value ? (s(), f(_, { key: 2 }, [
128
+ h.value ? (s(), ee(l(se), {
128
129
  key: 0,
129
130
  "z-index": e.zIndex,
130
131
  "initial-index": P.value,
@@ -134,11 +135,11 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
134
135
  "hide-on-click-modal": e.hideOnClickModal,
135
136
  teleported: e.previewTeleported,
136
137
  "close-on-press-escape": e.closeOnPressEscape,
137
- onClose: K,
138
- onSwitch: R
138
+ onClose: R,
139
+ onSwitch: W
139
140
  }, {
140
- default: _(() => [
141
- t.$slots.viewer ? (s(), f("div", ce, [
141
+ default: te(() => [
142
+ t.$slots.viewer ? (s(), f("div", ve, [
142
143
  k(t.$slots, "viewer")
143
144
  ])) : u("", !0)
144
145
  ]),
@@ -149,5 +150,5 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
149
150
  }
150
151
  });
151
152
  export {
152
- Ie as default
153
+ Ve as default
153
154
  };