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 Y, useSlots as ae, ref as E, computed as z, provide as ne, reactive as F, watch as b, onBeforeUpdate as le, onMounted as se, createElementBlock as I, openBlock as D, normalizeClass as re, unref as K, Fragment as ce, renderList as ue, createBlock as ie, withCtx as de, renderSlot as pe, nextTick as fe } from "vue";
1
+ import { defineComponent as Y, useSlots as ae, ref as E, computed as z, provide as ne, reactive as F, watch as b, onBeforeUpdate as le, onMounted as se, openBlock as D, createElementBlock as I, normalizeClass as re, unref as K, Fragment as ce, renderList as ue, createBlock as ie, withCtx as de, renderSlot as pe, nextTick as fe } from "vue";
2
2
  import { isEqual as $, flattenDeep as me, cloneDeep as ve } from "lodash-es";
3
3
  import { focusNode as M, getSibling as he } from "../../utils/dom/aria.js";
4
4
  import "@vueuse/core";
@@ -1,22 +1,23 @@
1
- import { defineComponent as N, getCurrentInstance as I, inject as Z, ref as b, computed as p, createBlock as k, openBlock as r, unref as e, normalizeClass as l, withCtx as A, createElementBlock as m, createCommentVNode as B, Fragment as z, renderList as S, createVNode as q, createTextVNode as x, renderSlot as R } from "vue";
2
- import { VftScrollbar as X } from "../scrollbar/index.js";
1
+ import { defineComponent as N, getCurrentInstance as b, inject as A, ref as B, computed as p, openBlock as n, createBlock as k, unref as e, normalizeClass as i, withCtx as S, createElementBlock as u, Fragment as z, renderList as D, createVNode as q, createTextVNode as x, toDisplayString as L, renderSlot as R, createCommentVNode as X } from "vue";
2
+ import { VftScrollbar as j } from "../scrollbar/index.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
5
5
  import "../config-provider/hooks/use-global-config.js";
6
6
  import "lodash-es";
7
7
  import "../form/index.js";
8
- import { useId as j } from "../../hooks/use-id/index.js";
9
- import { useNamespace as D } from "../../hooks/use-namespace/index.js";
8
+ import { useId as F } from "../../hooks/use-id/index.js";
9
+ import { useNamespace as J } 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
- import { VftIcon as F } from "../icon/index.js";
14
- import J from "./node.vue2.js";
15
- import { CASCADER_PANEL_INJECTION_KEY as K } from "./types.js";
16
- const O = N({
13
+ import K from "../../locale/use-locale.js";
14
+ import { VftIcon as O } from "../icon/index.js";
15
+ import P from "./node.vue2.js";
16
+ import { CASCADER_PANEL_INJECTION_KEY as W } from "./types.js";
17
+ const Y = N({
17
18
  name: "VftCascaderMenu"
18
- }), ce = /* @__PURE__ */ N({
19
- ...O,
19
+ }), pe = /* @__PURE__ */ N({
20
+ ...Y,
20
21
  props: {
21
22
  nodes: {
22
23
  type: Array,
@@ -28,70 +29,70 @@ const O = N({
28
29
  }
29
30
  },
30
31
  setup(f) {
31
- const v = f, w = I(), t = D("cascader-menu"), E = j();
32
- let s, i;
33
- const c = Z(K), a = b(), y = p(() => !v.nodes.length), H = p(() => !c.initialLoaded), g = p(() => `${E.value}-${v.index}`), L = (n) => {
34
- s = n.target;
35
- }, V = (n) => {
36
- if (!(!c.isHoverMenu || !s || !a.value))
37
- if (s.contains(n.target)) {
38
- h();
39
- const o = w.vnode.el, { left: u } = o.getBoundingClientRect(), { offsetWidth: M, offsetHeight: _ } = o, C = n.clientX - u, d = s.offsetTop, T = d + s.offsetHeight;
32
+ const v = f, w = b(), t = J("cascader-menu"), { t: g } = K(), E = F();
33
+ let r, s;
34
+ const l = A(W), a = B(), h = p(() => !v.nodes.length), H = p(() => !l.initialLoaded), y = p(() => `${E.value}-${v.index}`), V = (o) => {
35
+ r = o.target;
36
+ }, I = (o) => {
37
+ if (!(!l.isHoverMenu || !r || !a.value))
38
+ if (r.contains(o.target)) {
39
+ $();
40
+ const m = w.vnode.el, { left: c } = m.getBoundingClientRect(), { offsetWidth: M, offsetHeight: Z } = m, C = o.clientX - c, d = r.offsetTop, T = d + r.offsetHeight;
40
41
  a.value.innerHTML = `
41
42
  <path style="pointer-events: auto;" fill="transparent" d="M${C} ${d} L${M} 0 V${d} Z" />
42
- <path style="pointer-events: auto;" fill="transparent" d="M${C} ${T} L${M} ${_} V${T} Z" />
43
+ <path style="pointer-events: auto;" fill="transparent" d="M${C} ${T} L${M} ${Z} V${T} Z" />
43
44
  `;
44
- } else i || (i = window.setTimeout($, c.config.hoverThreshold));
45
- }, h = () => {
46
- i && (clearTimeout(i), i = void 0);
45
+ } else s || (s = window.setTimeout(_, l.config.hoverThreshold));
47
46
  }, $ = () => {
48
- a.value && (a.value.innerHTML = "", h());
47
+ s && (clearTimeout(s), s = void 0);
48
+ }, _ = () => {
49
+ a.value && (a.value.innerHTML = "", $());
49
50
  };
50
- return (n, o) => (r(), k(e(X), {
51
- key: g.value,
51
+ return (o, m) => (n(), k(e(j), {
52
+ key: y.value,
52
53
  tag: "ul",
53
54
  role: "menu",
54
- class: l(e(t).b()),
55
+ class: i(e(t).b()),
55
56
  "wrap-class": e(t).e("wrap"),
56
- "view-class": [e(t).e("list"), e(t).is("empty", y.value)],
57
- onMousemove: V,
58
- onMouseleave: $
57
+ "view-class": [e(t).e("list"), e(t).is("empty", h.value)],
58
+ onMousemove: I,
59
+ onMouseleave: _
59
60
  }, {
60
- default: A(() => [
61
- (r(!0), m(z, null, S(f.nodes, (u) => (r(), k(J, {
62
- key: u.uid,
63
- node: u,
64
- "menu-id": g.value,
65
- onExpand: L
61
+ default: S(() => [
62
+ (n(!0), u(z, null, D(f.nodes, (c) => (n(), k(P, {
63
+ key: c.uid,
64
+ node: c,
65
+ "menu-id": y.value,
66
+ onExpand: V
66
67
  }, null, 8, ["node", "menu-id"]))), 128)),
67
- H.value ? (r(), m("div", {
68
+ H.value ? (n(), u("div", {
68
69
  key: 0,
69
- class: l(e(t).e("empty-text"))
70
+ class: i(e(t).e("empty-text"))
70
71
  }, [
71
- q(e(F), {
72
+ q(e(O), {
72
73
  icon: "icon-loadding",
73
74
  size: "14",
74
- class: l(e(t).is("loading"))
75
+ class: i(e(t).is("loading"))
75
76
  }, null, 8, ["class"]),
76
- o[0] || (o[0] = x(" 加载中 ", -1))
77
- ], 2)) : y.value ? (r(), m("div", {
77
+ x(" " + L(e(g)("vft.loading")), 1)
78
+ ], 2)) : h.value ? (n(), u("div", {
78
79
  key: 1,
79
- class: l(e(t).e("empty-text"))
80
+ class: i(e(t).e("empty-text"))
80
81
  }, [
81
- R(n.$slots, "empty", {}, () => [
82
- o[1] || (o[1] = x("暂无数据", -1))
82
+ R(o.$slots, "empty", {}, () => [
83
+ x(L(e(g)("vft.noData")), 1)
83
84
  ])
84
- ], 2)) : e(c)?.isHoverMenu ? (r(), m("svg", {
85
+ ], 2)) : e(l)?.isHoverMenu ? (n(), u("svg", {
85
86
  key: 2,
86
87
  ref_key: "hoverZone",
87
88
  ref: a,
88
- class: l(e(t).e("hover-zone"))
89
- }, null, 2)) : B("", !0)
89
+ class: i(e(t).e("hover-zone"))
90
+ }, null, 2)) : X("", !0)
90
91
  ]),
91
92
  _: 3
92
93
  }, 8, ["class", "wrap-class", "view-class"]));
93
94
  }
94
95
  });
95
96
  export {
96
- ce as default
97
+ pe as default
97
98
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, inject as F, computed as d, createElementBlock as P, openBlock as u, normalizeClass as f, unref as n, createBlock as m, createCommentVNode as S, createVNode as O, withModifiers as L, withCtx as R, createElementVNode as U, Fragment as $ } from "vue";
1
+ import { defineComponent as H, inject as F, computed as d, openBlock as u, createElementBlock as P, normalizeClass as f, unref as n, createBlock as m, withModifiers as S, withCtx as O, createElementVNode as R, createCommentVNode as L, createVNode as U, Fragment as $ } from "vue";
2
2
  import { VftCheckbox as q } from "../checkbox/index.js";
3
3
  import { VftRadio as J } from "../radio/index.js";
4
4
  import { VftIcon as x } from "../icon/index.js";
@@ -78,7 +78,7 @@ const G = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"], Q =
78
78
  "model-value": o.node.checked,
79
79
  indeterminate: o.node.indeterminate,
80
80
  disabled: r.value,
81
- onClick: a[0] || (a[0] = L(() => {
81
+ onClick: a[0] || (a[0] = S(() => {
82
82
  }, ["stop"])),
83
83
  "onUpdate:modelValue": k
84
84
  }, null, 8, ["model-value", "indeterminate", "disabled"])) : s.value && N.value ? (u(), m(n(J), {
@@ -87,24 +87,24 @@ const G = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"], Q =
87
87
  label: o.node.uid,
88
88
  disabled: r.value,
89
89
  "onUpdate:modelValue": k,
90
- onClick: a[1] || (a[1] = L(() => {
90
+ onClick: a[1] || (a[1] = S(() => {
91
91
  }, ["stop"]))
92
92
  }, {
93
- default: R(() => [...a[2] || (a[2] = [
94
- U("span", null, null, -1)
93
+ default: O(() => [...a[2] || (a[2] = [
94
+ R("span", null, null, -1)
95
95
  ])]),
96
96
  _: 1
97
97
  }, 8, ["model-value", "label", "disabled"])) : i.value && o.node.checked ? (u(), m(n(x), {
98
98
  key: 2,
99
99
  icon: "icon-check",
100
100
  class: f(n(c).e("prefix"))
101
- }, null, 8, ["class"])) : S("", !0),
102
- O(n(T), {
101
+ }, null, 8, ["class"])) : L("", !0),
102
+ U(n(T), {
103
103
  node: o.node,
104
104
  disabled: r.value,
105
105
  onHandleSelectCheck: k
106
106
  }, null, 8, ["node", "disabled"]),
107
- i.value ? S("", !0) : (u(), P($, { key: 3 }, [
107
+ i.value ? L("", !0) : (u(), P($, { key: 3 }, [
108
108
  o.node.loading ? (u(), m(n(x), {
109
109
  key: 0,
110
110
  icon: "icon-loading",
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, computed as s, createElementBlock as i, openBlock as p, normalizeClass as l, renderSlot as d } from "vue";
1
+ import { defineComponent as o, computed as s, openBlock as i, createElementBlock as p, normalizeClass as l, renderSlot as d } from "vue";
2
2
  import { CHANGE_EVENT as h } from "../../constants/event.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
@@ -21,7 +21,7 @@ const u = o({
21
21
  const t = a, c = k("check-tag"), n = s(() => [c.b(), c.is("checked", e.checked)]), m = () => {
22
22
  t(h, !e.checked), t("update:checked", !e.checked);
23
23
  };
24
- return (r, f) => (p(), i("span", {
24
+ return (r, f) => (i(), p("span", {
25
25
  class: l(n.value),
26
26
  onClick: m
27
27
  }, [
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, useSlots as z, inject as D, computed as f, createElementBlock as d, openBlock as r, normalizeClass as b, withDirectives as x, createCommentVNode as k, unref as t, isRef as y, vModelCheckbox as C, normalizeStyle as F, createTextVNode as V, renderSlot as j, toDisplayString as p } from "vue";
1
+ import { defineComponent as B, useSlots as z, inject as D, computed as f, openBlock as d, createElementBlock as r, normalizeClass as b, withDirectives as x, unref as t, isRef as k, vModelCheckbox as y, normalizeStyle as F, createTextVNode as C, toDisplayString as V, renderSlot as j, createCommentVNode as p } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -55,12 +55,12 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
55
55
  a.is("checked", v.value),
56
56
  a.is("focus", i.value)
57
57
  ]);
58
- return (n, e) => (r(), d("label", {
58
+ return (n, e) => (d(), r("label", {
59
59
  class: b(N.value)
60
60
  }, [
61
- l.trueValue || l.falseValue ? x((r(), d("input", {
61
+ l.trueValue || l.falseValue ? x((d(), r("input", {
62
62
  key: 0,
63
- "onUpdate:modelValue": e[0] || (e[0] = (o) => y(u) ? u.value = o : null),
63
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => k(u) ? u.value = o : null),
64
64
  class: b(t(a).be("button", "original")),
65
65
  type: "checkbox",
66
66
  name: l.name,
@@ -73,10 +73,10 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
73
73
  onFocus: e[2] || (e[2] = (o) => i.value = !0),
74
74
  onBlur: e[3] || (e[3] = (o) => i.value = !1)
75
75
  }, null, 42, K)), [
76
- [C, t(u)]
77
- ]) : x((r(), d("input", {
76
+ [y, t(u)]
77
+ ]) : x((d(), r("input", {
78
78
  key: 1,
79
- "onUpdate:modelValue": e[4] || (e[4] = (o) => y(u) ? u.value = o : null),
79
+ "onUpdate:modelValue": e[4] || (e[4] = (o) => k(u) ? u.value = o : null),
80
80
  class: b(t(a).be("button", "original")),
81
81
  type: "checkbox",
82
82
  name: l.name,
@@ -88,18 +88,18 @@ const K = ["name", "tabindex", "disabled", "true-value", "false-value"], U = ["n
88
88
  onFocus: e[6] || (e[6] = (o) => i.value = !0),
89
89
  onBlur: e[7] || (e[7] = (o) => i.value = !1)
90
90
  }, null, 42, U)), [
91
- [C, t(u)]
91
+ [y, t(u)]
92
92
  ]),
93
- n.$slots.default || l.value || l.label ? (r(), d("span", {
93
+ n.$slots.default || l.value || l.label ? (d(), r("span", {
94
94
  key: 2,
95
95
  class: b(t(a).be("button", "inner")),
96
96
  style: F(t(v) ? h.value : void 0)
97
97
  }, [
98
- V(p(l.label) + " ", 1),
99
- l.label ? k("", !0) : j(n.$slots, "default", { key: 0 }, () => [
100
- V(p(l.value), 1)
98
+ C(V(l.label) + " ", 1),
99
+ l.label ? p("", !0) : j(n.$slots, "default", { key: 0 }, () => [
100
+ C(V(l.value), 1)
101
101
  ])
102
- ], 6)) : k("", !0)
102
+ ], 6)) : p("", !0)
103
103
  ], 2));
104
104
  }
105
105
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, computed as x, provide as h, toRefs as k, watch as g, createBlock as m, openBlock as n, resolveDynamicComponent as u, unref as l, normalizeClass as y, withCtx as E, createElementBlock as I, renderSlot as B, Fragment as C, renderList as V, nextTick as z } from "vue";
1
+ import { defineComponent as c, computed as x, provide as h, toRefs as k, watch as g, openBlock as n, createBlock as m, resolveDynamicComponent as u, unref as l, normalizeClass as y, withCtx as E, createElementBlock as I, Fragment as B, renderList as C, renderSlot as V, nextTick as z } from "vue";
2
2
  import "../form/index.js";
3
3
  import { UPDATE_MODEL_EVENT as F } from "../../constants/event.js";
4
4
  import "@vueuse/core";
@@ -71,7 +71,7 @@ const A = c({
71
71
  "aria-labelledby": l(d) ? l(r)?.labelId : void 0
72
72
  }, {
73
73
  default: E(() => [
74
- a.options ? (n(!0), I(C, { key: 0 }, V(a.options, (e) => (n(), m(u(a.useButton ? T : L), {
74
+ a.options ? (n(!0), I(B, { key: 0 }, C(a.options, (e) => (n(), m(u(a.useButton ? T : L), {
75
75
  value: e.value,
76
76
  label: e.label,
77
77
  indeterminate: e.indeterminate,
@@ -87,7 +87,7 @@ const A = c({
87
87
  tabindex: e.tabindex,
88
88
  "validate-event": e.validateEvent,
89
89
  key: e.value
90
- }, null, 8, ["value", "label", "indeterminate", "disabled", "checked", "name", "true-value", "false-value", "id", "controls", "border", "size", "tabindex", "validate-event"]))), 128)) : B(t.$slots, "default", { key: 1 })
90
+ }, null, 8, ["value", "label", "indeterminate", "disabled", "checked", "name", "true-value", "false-value", "id", "controls", "border", "size", "tabindex", "validate-event"]))), 128)) : V(t.$slots, "default", { key: 1 })
91
91
  ]),
92
92
  _: 3
93
93
  }, 8, ["id", "class", "aria-label", "aria-labelledby"]));
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, useSlots as I, computed as y, createBlock as K, openBlock as o, resolveDynamicComponent as L, unref as a, normalizeClass as d, withCtx as O, createElementVNode as h, createElementBlock as s, createCommentVNode as c, withDirectives as C, isRef as B, vModelCheckbox as V, createTextVNode as g, toDisplayString as p, Fragment as N, renderSlot as R } from "vue";
1
+ import { defineComponent as S, useSlots as I, computed as y, openBlock as o, createBlock as K, resolveDynamicComponent as L, unref as a, normalizeClass as d, withCtx as O, createElementVNode as h, withDirectives as C, createElementBlock as s, isRef as B, vModelCheckbox as V, createTextVNode as g, toDisplayString as p, Fragment as N, renderSlot as R, createCommentVNode as c } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, ref as v, reactive as N, computed as u, watch as s, nextTick as E, onUnmounted as V, onMounted as q, createElementBlock as D, openBlock as G, normalizeStyle as I, createElementVNode as w, renderSlot as B } from "vue";
1
+ import { defineComponent as M, ref as v, reactive as N, computed as u, watch as s, nextTick as E, onUnmounted as V, onMounted as q, openBlock as D, createElementBlock as G, normalizeStyle as I, createElementVNode as w, renderSlot as B } from "vue";
2
2
  import "@vueuse/core";
3
3
  import { addListener as J, removeListener as K } from "@vft/utils";
4
4
  import { addUnit as P } from "../../utils/helper.js";
@@ -116,7 +116,7 @@ const Q = ["title", "aria-label"], W = M({
116
116
  k();
117
117
  }), T({
118
118
  isClamped: n
119
- }), (t, i) => (G(), D("div", {
119
+ }), (t, i) => (D(), G("div", {
120
120
  ref_key: "textClampRef",
121
121
  ref: a,
122
122
  class: "text-clamp",
@@ -1,19 +1,20 @@
1
- import { defineComponent as a, computed as s, createBlock as c, openBlock as o, unref as l, normalizeStyle as g, withCtx as d, createElementBlock as u, createCommentVNode as x, normalizeClass as f, toDisplayString as p } from "vue";
2
- import { VftClamp as z } from "../clamp/index.js";
1
+ import { defineComponent as m, computed as t, openBlock as i, createBlock as f, unref as n, normalizeStyle as x, withCtx as d, createElementBlock as p, normalizeClass as z, toDisplayString as C, createCommentVNode as h } from "vue";
2
+ import { VftClamp as y } from "../clamp/index.js";
3
3
  import "@vueuse/core";
4
4
  import "@vft/utils";
5
5
  import "../config-provider/hooks/use-global-config.js";
6
- import { generateCssVars as C } from "../../utils/ns-cover.js";
6
+ import { generateCssVars as T } from "../../utils/ns-cover.js";
7
7
  import "lodash-es";
8
8
  import "../form/index.js";
9
- import { useNamespace as h } from "../../hooks/use-namespace/index.js";
9
+ import { useNamespace as v } 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 y = ["onClick"], k = a({
13
+ import k from "../../locale/use-locale.js";
14
+ const B = ["onClick"], S = m({
14
15
  name: "vft-clamp-toggle"
15
- }), A = /* @__PURE__ */ a({
16
- ...k,
16
+ }), J = /* @__PURE__ */ m({
17
+ ...S,
17
18
  props: {
18
19
  text: {},
19
20
  maxHeight: {},
@@ -26,15 +27,18 @@ const y = ["onClick"], k = a({
26
27
  size: {},
27
28
  toggleColor: {},
28
29
  toggleSize: {},
29
- toggleText: { default: () => ["展开", "收缩"] }
30
+ toggleText: {}
30
31
  },
31
32
  setup(e) {
32
- const i = h("clamp-toggle"), n = s(() => C(
33
+ const { t: o } = k(), s = v("clamp-toggle"), c = t(() => [
34
+ o("vft.clampToggle.expand"),
35
+ o("vft.clampToggle.collapse")
36
+ ]), l = t(() => e.toggleText || c.value), r = t(() => T(
33
37
  { color: e.color, size: e.size, toggleColor: e.toggleColor, toggleSize: e.toggleSize },
34
38
  "clamp-toggle"
35
39
  ));
36
- return (B, S) => (o(), c(l(z), {
37
- style: g(n.value),
40
+ return (L, V) => (i(), f(n(y), {
41
+ style: x(r.value),
38
42
  text: e.text,
39
43
  "max-height": e.maxHeight,
40
44
  "max-lines": e.maxLines,
@@ -43,17 +47,17 @@ const y = ["onClick"], k = a({
43
47
  ellipsis: e.ellipsis,
44
48
  "auto-resize": e.autoResize
45
49
  }, {
46
- after: d(({ toggle: m, expanded: t, clamped: r }) => [
47
- t || r ? (o(), u("span", {
50
+ after: d(({ toggle: g, expanded: a, clamped: u }) => [
51
+ a || u ? (i(), p("span", {
48
52
  key: 0,
49
- class: f(["cursor-pointer", [l(i).e("more")]]),
50
- onClick: m
51
- }, p(t ? e.toggleText[1] : e.toggleText[0]), 11, y)) : x("", !0)
53
+ class: z(["cursor-pointer", [n(s).e("more")]]),
54
+ onClick: g
55
+ }, C(a ? l.value[1] : l.value[0]), 11, B)) : h("", !0)
52
56
  ]),
53
57
  _: 1
54
58
  }, 8, ["style", "text", "max-height", "max-lines", "expanded", "location", "ellipsis", "auto-resize"]));
55
59
  }
56
60
  });
57
61
  export {
58
- A as default
62
+ J as default
59
63
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, ref as s, createElementBlock as u, openBlock as o, Fragment as d, createVNode as l, createBlock as p, unref as e, withCtx as m, mergeProps as r } from "vue";
1
+ import { defineComponent as c, ref as s, openBlock as o, createElementBlock as u, Fragment as d, createVNode as l, unref as e, withCtx as p, mergeProps as m, createBlock as r } from "vue";
2
2
  import { createReusableTemplate as x } from "@vueuse/core";
3
3
  import { VftClamp as k } from "../clamp/index.js";
4
4
  import { VftTooltip as y } from "../tooltip/index.js";
@@ -19,24 +19,24 @@ const R = /* @__PURE__ */ c({
19
19
  const a = s(), [i, n] = x();
20
20
  return (f, B) => (o(), u(d, null, [
21
21
  l(e(i), null, {
22
- default: m(() => [
23
- l(e(k), r({
22
+ default: p(() => [
23
+ l(e(k), m({
24
24
  ref_key: "clampRef",
25
25
  ref: a
26
26
  }, f.$props), null, 16)
27
27
  ]),
28
28
  _: 1
29
29
  }),
30
- t.showTooltip ? (o(), p(e(y), r({
30
+ t.showTooltip ? (o(), r(e(y), m({
31
31
  key: 0,
32
32
  disabled: !a.value?.isClamped,
33
33
  content: t.text
34
34
  }, t.tooltipCfg), {
35
- default: m(() => [
35
+ default: p(() => [
36
36
  l(e(n))
37
37
  ]),
38
38
  _: 1
39
- }, 16, ["disabled", "content"])) : (o(), p(e(n), { key: 1 }))
39
+ }, 16, ["disabled", "content"])) : (o(), r(e(n), { key: 1 }))
40
40
  ], 64));
41
41
  }
42
42
  });
@@ -1,4 +1,4 @@
1
- import { defineComponent as f, inject as d, computed as n, createBlock as h, openBlock as $, resolveDynamicComponent as g, normalizeStyle as b, normalizeClass as v, withCtx as x, renderSlot as y } from "vue";
1
+ import { defineComponent as f, inject as d, computed as n, openBlock as h, createBlock as $, resolveDynamicComponent as g, normalizeStyle as b, normalizeClass as v, withCtx as x, renderSlot as y } from "vue";
2
2
  import "../row/index.js";
3
3
  import "@vueuse/core";
4
4
  import { isNumber as r, isObject as _ } from "@vft/utils";
@@ -46,7 +46,7 @@ const j = f({
46
46
  );
47
47
  }), a.value && t.push(o.is("guttered")), e.className && t.push(e.className), [o.b(), t];
48
48
  });
49
- return (t, p) => ($(), h(g(c.tag), {
49
+ return (t, p) => (h(), $(g(c.tag), {
50
50
  class: v(i.value),
51
51
  style: b(m.value)
52
52
  }, {
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, createElementBlock as g, openBlock as x, normalizeClass as l, unref as e, createElementVNode as a, createVNode as b, withKeys as A, withModifiers as B, renderSlot as r, createTextVNode as D, toDisplayString as E, withCtx as N, withDirectives as S, vShow as T } from "vue";
1
+ import { defineComponent as C, openBlock as g, createElementBlock as x, normalizeClass as l, unref as e, createElementVNode as a, withKeys as A, withModifiers as B, renderSlot as r, createTextVNode as D, toDisplayString as E, createVNode as b, withCtx as N, withDirectives as S, vShow as T } from "vue";
2
2
  import { VftCollapseTransition as F } from "../collapse-transition/index.js";
3
3
  import { VftIcon as H } from "../icon/index.js";
4
4
  import { collapseItemProps as M } from "./collapse-item.js";
@@ -29,7 +29,7 @@ const P = ["id", "aria-expanded", "aria-controls", "aria-describedby", "tabindex
29
29
  return K({
30
30
  /** @description current collapse-item whether active */
31
31
  isActive: s
32
- }), (t, o) => (x(), g("div", {
32
+ }), (t, o) => (g(), x("div", {
33
33
  class: l(e(h))
34
34
  }, [
35
35
  a("div", {
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, createElementBlock as m, openBlock as i, normalizeClass as f, unref as u, renderSlot as _ } from "vue";
1
+ import { defineComponent as o, openBlock as m, createElementBlock as i, normalizeClass as f, unref as u, renderSlot as _ } from "vue";
2
2
  import { collapseEmits as d, collapseProps as C } from "./collapse.js";
3
3
  import { useCollapse as v, useCollapseDOM as k } from "./use-collapse.js";
4
4
  const x = o({
@@ -14,7 +14,7 @@ const x = o({
14
14
  activeNames: a,
15
15
  /** @description set active names */
16
16
  setActiveNames: n
17
- }), (c, B) => (i(), m("div", {
17
+ }), (c, B) => (m(), i("div", {
18
18
  class: f(u(p))
19
19
  }, [
20
20
  _(c.$slots, "default")
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, createBlock as e, openBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
1
+ import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -33,7 +33,7 @@ const f = o({
33
33
  t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
34
34
  }
35
35
  };
36
- return (t, c) => (s(), e(i, n({
36
+ return (t, c) => (e(), s(i, n({
37
37
  name: r(a).b()
38
38
  }, p(d)), {
39
39
  default: m(() => [