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 L, ref as ee, reactive as te, computed as d, watch as ne, onMounted as ie, onUpdated as ue, createElementBlock as C, openBlock as S, withModifiers as V, normalizeClass as P, unref as u, withDirectives as R, createCommentVNode as W, createVNode as B, withKeys as N } from "vue";
1
+ import { defineComponent as L, ref as ee, reactive as te, computed as d, watch as ne, onMounted as ie, onUpdated as ue, openBlock as C, createElementBlock as S, withModifiers as V, normalizeClass as P, unref as u, withDirectives as R, withKeys as N, createVNode as B, createCommentVNode as W } from "vue";
2
2
  import { isNumber as s, isUndefined as h, isString as le } from "@vft/utils";
3
3
  import "../form/index.js";
4
4
  import { VftIcon as Y } from "../icon/index.js";
@@ -142,7 +142,7 @@ const me = L({
142
142
  focus: X,
143
143
  /** @description remove focus the input component */
144
144
  blur: Z
145
- }), (t, n) => (S(), C("div", {
145
+ }), (t, n) => (C(), S("div", {
146
146
  class: P([
147
147
  u(o).b(),
148
148
  u(o).m(u(k)),
@@ -153,7 +153,7 @@ const me = L({
153
153
  onDragstart: n[1] || (n[1] = V(() => {
154
154
  }, ["prevent"]))
155
155
  }, [
156
- e.controls ? R((S(), C("span", {
156
+ e.controls ? R((C(), S("span", {
157
157
  key: 0,
158
158
  role: "button",
159
159
  class: P([u(o).e("decrease"), u(o).is("disabled", D.value)]),
@@ -165,7 +165,7 @@ const me = L({
165
165
  ], 34)), [
166
166
  [u(H), F]
167
167
  ]) : W("", !0),
168
- e.controls ? R((S(), C("span", {
168
+ e.controls ? R((C(), S("span", {
169
169
  key: 1,
170
170
  role: "button",
171
171
  class: P([u(o).e("increase"), u(o).is("disabled", M.value)]),
@@ -1,6 +1,6 @@
1
1
  import { shallowRef as B, ref as L, computed as c, watch as G } from "vue";
2
2
  import { EVENT_CODE as g } from "../../../constants/aria.js";
3
- import { CHANGE_EVENT as i, UPDATE_MODEL_EVENT as d, INPUT_EVENT as H } from "../../../constants/event.js";
3
+ import { CHANGE_EVENT as i, INPUT_EVENT as H, UPDATE_MODEL_EVENT as d } from "../../../constants/event.js";
4
4
  import "@vueuse/core";
5
5
  import { isUndefined as K } from "@vft/utils";
6
6
  import { debugWarn as C } from "../../../utils/error.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, useSlots as ge, computed as y, createElementBlock as m, openBlock as l, unref as e, normalizeStyle as ve, normalizeClass as a, createCommentVNode as f, createElementVNode as p, renderSlot as I, withDirectives as x, Fragment as ye, renderList as Ie, createBlock as C, withModifiers as F, withCtx as Ce, createTextVNode as he, toDisplayString as K, mergeProps as be, isRef as De, vModelText as ke, vShow as we } from "vue";
1
+ import { defineComponent as B, useSlots as ge, computed as y, openBlock as l, createElementBlock as m, unref as e, normalizeStyle as ve, normalizeClass as a, renderSlot as I, createCommentVNode as f, createElementVNode as p, Fragment as ye, renderList as Ie, createBlock as C, withModifiers as x, withCtx as Ce, createTextVNode as he, toDisplayString as F, withDirectives as K, mergeProps as be, isRef as De, vModelText as ke, vShow as we } from "vue";
2
2
  import "../form/index.js";
3
3
  import { VftIcon as $ } from "../icon/index.js";
4
4
  import { VftTag as Se } from "../tag/index.js";
@@ -108,7 +108,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
108
108
  onDragstart: (u) => e(se)(u, d),
109
109
  onDragover: (u) => e(ie)(u, d),
110
110
  onDragend: e(de),
111
- onDrop: o[0] || (o[0] = F(() => {
111
+ onDrop: o[0] || (o[0] = x(() => {
112
112
  }, ["stop"]))
113
113
  }, {
114
114
  default: Ce(() => [
@@ -116,7 +116,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
116
116
  value: t,
117
117
  index: d
118
118
  }, () => [
119
- he(K(t), 1)
119
+ he(F(t), 1)
120
120
  ])
121
121
  ]),
122
122
  _: 2
@@ -124,7 +124,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
124
124
  p("div", {
125
125
  class: a(e(r).e("input-wrapper"))
126
126
  }, [
127
- x(p("input", be({
127
+ K(p("input", be({
128
128
  id: e(j),
129
129
  ref_key: "inputRef",
130
130
  ref: G,
@@ -160,10 +160,10 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
160
160
  ref: ne,
161
161
  "aria-hidden": "true",
162
162
  class: a(e(r).e("input-calculator")),
163
- textContent: K(e(i))
163
+ textContent: F(e(i))
164
164
  }, null, 10, Ne)
165
165
  ], 2),
166
- x(p("div", {
166
+ K(p("div", {
167
167
  ref_key: "dropIndicatorRef",
168
168
  ref: re,
169
169
  class: a(e(r).e("drop-indicator"))
@@ -179,7 +179,7 @@ const Be = ["id", "minlength", "maxlength", "disabled", "readonly", "autocomplet
179
179
  e(fe) ? (l(), C(e($), {
180
180
  key: 0,
181
181
  class: a([e(r).e("icon"), e(r).e("clear")]),
182
- onMousedown: F(e(Re), ["prevent"]),
182
+ onMousedown: x(e(Re), ["prevent"]),
183
183
  onClick: e(ee),
184
184
  icon: "icon-circle-close"
185
185
  }, null, 8, ["class", "onMousedown", "onClick"])) : f("", !0),
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, getCurrentInstance as k, computed as b, createElementBlock as r, openBlock as i, normalizeClass as a, unref as t, createBlock as y, createCommentVNode as c, normalizeProps as C, mergeProps as g, renderSlot as B } from "vue";
1
+ import { defineComponent as s, getCurrentInstance as k, computed as b, openBlock as i, createElementBlock as r, normalizeClass as a, unref as t, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as c, renderSlot as B } from "vue";
2
2
  import { VftIcon as v } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
4
  import { singleAttrToObj as P } from "@vft/utils";
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, ref as y, computed as _, createElementBlock as m, openBlock as l, normalizeClass as r, normalizeStyle as V, unref as e, Fragment as N, renderList as z, createElementVNode as f, createVNode as B, mergeProps as d, toDisplayString as D, createBlock as p, createCommentVNode as T } from "vue";
1
+ import { defineComponent as h, ref as y, computed as _, openBlock as l, createElementBlock as m, normalizeClass as r, unref as e, normalizeStyle as V, Fragment as N, renderList as z, createElementVNode as f, createVNode as B, mergeProps as d, toDisplayString as D, createBlock as p, createCommentVNode as T } from "vue";
2
2
  import { VftIcon as g } from "../icon/index.js";
3
3
  import "@vueuse/core";
4
4
  import { VNode as b, singleAttrToObj as E } from "@vft/utils";
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, computed as r, getCurrentInstance as p, createElementBlock as o, createCommentVNode as l, openBlock as n, normalizeStyle as d, normalizeClass as i, unref as a, toDisplayString as k } from "vue";
1
+ import { defineComponent as c, computed as r, getCurrentInstance as p, openBlock as o, createElementBlock as l, normalizeStyle as d, normalizeClass as n, unref as a, createCommentVNode as i, toDisplayString as k } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -26,23 +26,23 @@ const y = ["src"], v = c({
26
26
  const f = r(
27
27
  () => t.jumpPath ? {} : e.cssVarBlock({ cursor: "inital" })
28
28
  );
29
- return (j, x) => t.logo || t.title ? (n(), o("div", {
29
+ return (j, x) => t.logo || t.title ? (o(), l("div", {
30
30
  key: 0,
31
- class: i(s.value),
31
+ class: n(s.value),
32
32
  onClick: g,
33
33
  style: d(f.value)
34
34
  }, [
35
- t.logo ? (n(), o("img", {
35
+ t.logo ? (o(), l("img", {
36
36
  key: 0,
37
- class: i(a(e).e("img")),
37
+ class: n(a(e).e("img")),
38
38
  src: t.logo,
39
39
  alt: ""
40
- }, null, 10, y)) : l("", !0),
41
- t.title ? (n(), o("div", {
40
+ }, null, 10, y)) : i("", !0),
41
+ t.title ? (o(), l("div", {
42
42
  key: 1,
43
- class: i(a(e).e("title"))
44
- }, k(t.title), 3)) : l("", !0)
45
- ], 6)) : l("", !0);
43
+ class: n(a(e).e("title"))
44
+ }, k(t.title), 3)) : i("", !0)
45
+ ], 6)) : i("", !0);
46
46
  }
47
47
  });
48
48
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as i, onMounted as m, createElementBlock as n, openBlock as t, normalizeClass as r, unref as o, createElementVNode as p } from "vue";
1
+ import { defineComponent as i, onMounted as m, openBlock as n, createElementBlock as t, normalizeClass as r, unref as o, createElementVNode as p } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -30,7 +30,7 @@ const l = ["id"], s = i({
30
30
  "//unpkg.com/@waline/emojis@1.1.0/tw-emoji"
31
31
  ]
32
32
  });
33
- }), (w, d) => (t(), n("div", {
33
+ }), (w, d) => (n(), t("div", {
34
34
  class: r(o(e).b())
35
35
  }, [
36
36
  p("div", {
@@ -1,88 +1,86 @@
1
- import { defineComponent as S, getCurrentInstance as $, ref as N, computed as x, onMounted as A, nextTick as P, onDeactivated as q, onBeforeMount as z, createElementBlock as u, openBlock as r, normalizeClass as c, unref as e, createBlock as f, createCommentVNode as p, createElementVNode as l, toDisplayString as k, createVNode as g, Fragment as B, renderList as I, withCtx as O, createTextVNode as F, renderSlot as H } from "vue";
2
- import { VftIcon as b } from "../icon/index.js";
3
- import { VftIconText as J } from "../icon-text/index.js";
4
- import { VftMdComment as j } from "../md-comment/index.js";
5
- import { VftSideMenu as U } from "../side-menu/index.js";
6
- import { VftTag as Y } from "../tag/index.js";
1
+ import { defineComponent as S, getCurrentInstance as N, ref as A, computed as k, onMounted as P, nextTick as q, onDeactivated as z, onBeforeMount as B, openBlock as s, createElementBlock as u, normalizeClass as c, unref as e, createBlock as f, createCommentVNode as p, createElementVNode as l, toDisplayString as b, createVNode as h, Fragment as I, renderList as O, withCtx as F, createTextVNode as H, renderSlot as J } from "vue";
2
+ import { VftIcon as T } from "../icon/index.js";
3
+ import { VftIconText as j } from "../icon-text/index.js";
4
+ import { VftMdComment as U } from "../md-comment/index.js";
5
+ import { VftSideMenu as Y } from "../side-menu/index.js";
6
+ import { VftTag as G } from "../tag/index.js";
7
7
  import "@vueuse/core";
8
- import { handleScrollPosition as G, getAdaptiveOffset as K, jumpElement as D, getRandomElementForArr as Q, isClient as W } from "@vft/utils";
8
+ import { handleScrollPosition as K, getAdaptiveOffset as Q, jumpElement as D, getRandomElementForArr as W, isClient as X } from "@vft/utils";
9
9
  import "../config-provider/hooks/use-global-config.js";
10
- import { primaryColor as X } from "../../utils/ns-cover.js";
11
- import { debounce as Z } from "lodash-es";
10
+ import { primaryColor as Z } from "../../utils/ns-cover.js";
11
+ import { debounce as ee } from "lodash-es";
12
12
  import "../form/index.js";
13
- import { useNamespace as ee } from "../../hooks/use-namespace/index.js";
13
+ import { useNamespace as te } from "../../hooks/use-namespace/index.js";
14
14
  import "../../hooks/use-model-toggle/index.js";
15
15
  import "@popperjs/core";
16
16
  import "../../hooks/use-z-index/index.js";
17
- import { useRouterHelper as te } from "@vft/router";
18
- import { useEventListener as oe } from "@vft/use";
19
- import { usePhotoSwipe as ne } from "@vft/use/photoswipe";
20
- import { formatToDateTime as ie, getDayTimestamp as le } from "@vft/utils/date";
21
- import { useCopyCode as ae } from "./use/useCopyCode.js";
22
- import { COMP_TYPE as se } from "./utils.js";
23
- const re = { class: "info-container" }, ce = {
17
+ import oe from "../../locale/use-locale.js";
18
+ import { useRouterHelper as ne } from "@vft/router";
19
+ import { useEventListener as ie } from "@vft/use";
20
+ import { usePhotoSwipe as le } from "@vft/use/photoswipe";
21
+ import { formatToDateTime as ae, getDayTimestamp as re } from "@vft/utils/date";
22
+ import { useCopyCode as se } from "./use/useCopyCode.js";
23
+ import { COMP_TYPE as ce } from "./utils.js";
24
+ const me = { class: "info-container" }, de = {
24
25
  key: 0,
25
26
  class: "left"
26
- }, me = { class: "infos" }, de = {
27
- class: "reading",
28
- title: "阅读量"
29
- }, ue = ["data-path"], fe = S({
27
+ }, ue = { class: "infos" }, fe = ["title"], pe = ["data-path"], he = S({
30
28
  name: "vft-md-container"
31
- }), qe = /* @__PURE__ */ S({
32
- ...fe,
29
+ }), Ie = /* @__PURE__ */ S({
30
+ ...he,
33
31
  props: {
34
32
  tocList: {},
35
33
  scrollDom: { default: ".layout-content" },
36
34
  showComment: { type: Boolean, default: !0 }
37
35
  },
38
36
  setup(a) {
39
- const s = ee("md-container"), T = $(), m = N(), d = x(() => a.tocList && a.tocList !== "undefined" ? JSON.parse(a.tocList) : ""), { initPhotoSwipe: w } = ne(`.${s.e("content")} img`);
40
- w(), ae();
41
- const h = T.appContext.config.globalProperties.$router, n = h.currentRoute.value, L = X(), V = W ? location.pathname : "", { go: _ } = te(h);
42
- function E(o) {
43
- _(`/?classify=${o}`);
37
+ const r = te("md-container"), L = N(), { t: g } = oe(), m = A(), d = k(() => a.tocList && a.tocList !== "undefined" ? JSON.parse(a.tocList) : ""), { initPhotoSwipe: w } = le(`.${r.e("content")} img`);
38
+ w(), se();
39
+ const v = L.appContext.config.globalProperties.$router, n = v.currentRoute.value, V = Z(), _ = X ? location.pathname : "", { go: E } = ne(v);
40
+ function M(o) {
41
+ E(`/?classify=${o}`);
44
42
  }
45
- const M = x(() => n.meta.category?.includes("api")), v = Z(
46
- () => G({
43
+ const R = k(() => n.meta.category?.includes("api")), y = ee(
44
+ () => K({
47
45
  scrollDom: a.scrollDom,
48
46
  contentDom: ".header-anchor",
49
47
  selectAttrName: "href",
50
- offset: K(210, 1920, 1500, 1920),
48
+ offset: Q(210, 1920, 1500, 1920),
51
49
  callback: (o) => {
52
50
  m.value?.menuRef && (m.value.menuRef.activeIndex = o.slice(1));
53
51
  }
54
52
  }),
55
53
  100
56
- ), y = (o) => {
54
+ ), C = (o) => {
57
55
  D(`[id="${o.index}"]`, a.scrollDom, 120);
58
- }, C = () => {
56
+ }, x = () => {
59
57
  const o = document.querySelector(a.scrollDom);
60
- o && o.removeEventListener("scroll", v);
58
+ o && o.removeEventListener("scroll", y);
61
59
  };
62
- return A(() => {
63
- P(() => {
60
+ return P(() => {
61
+ q(() => {
64
62
  setTimeout(() => {
65
63
  n.hash && D(`[id="${encodeURI(n.hash).slice(1)}"]`);
66
64
  }), setTimeout(() => {
67
65
  const t = document.querySelector(".layout-content");
68
- t && t.addEventListener("scroll", v);
66
+ t && t.addEventListener("scroll", y);
69
67
  }, 1500);
70
68
  const o = document.querySelectorAll(".item.expand"), i = document.querySelectorAll(
71
69
  "div.language-vue"
72
70
  );
73
71
  for (let t = 0; t < o.length; t++)
74
- oe(o[t], "click", () => {
72
+ ie(o[t], "click", () => {
75
73
  i[t].offsetHeight === 0 ? (i[t].style.height = "auto", i[t].style.visibility = "visible") : (i[t].style.height = "0px", i[t].style.visibility = "hidden");
76
74
  });
77
75
  });
78
- }), q(() => {
79
- C();
80
76
  }), z(() => {
81
- C();
82
- }), (o, i) => (r(), u("div", {
83
- class: c([e(s).b(), e(s).is("api", M.value)])
77
+ x();
78
+ }), B(() => {
79
+ x();
80
+ }), (o, i) => (s(), u("div", {
81
+ class: c([e(r).b(), e(r).is("api", R.value)])
84
82
  }, [
85
- d.value?.length ? (r(), f(e(U), {
83
+ d.value?.length ? (s(), f(e(Y), {
86
84
  key: 0,
87
85
  ref_key: "sideMenuRef",
88
86
  ref: m,
@@ -96,66 +94,69 @@ const re = { class: "info-container" }, ce = {
96
94
  "attr-mapping": {
97
95
  index: "slug"
98
96
  },
99
- onSelect: y,
100
- onSubMenuClick: y
97
+ onSelect: C,
98
+ onSubMenuClick: C
101
99
  }, null, 8, ["default-active", "menus"])) : p("", !0),
102
100
  l("div", {
103
- class: c(e(s).e("header"))
101
+ class: c(e(r).e("header"))
104
102
  }, [
105
103
  l("h1", {
106
- class: c(e(s).e("title"))
107
- }, k(e(n).meta?.title), 3),
108
- l("div", re, [
109
- e(n).meta?.category?.length ? (r(), u("div", ce, [
110
- g(e(b), {
104
+ class: c(e(r).e("title"))
105
+ }, b(e(n).meta?.title), 3),
106
+ l("div", me, [
107
+ e(n).meta?.category?.length ? (s(), u("div", de, [
108
+ h(e(T), {
111
109
  size: 14,
112
- color: e(L),
110
+ color: e(V),
113
111
  icon: "icon-category"
114
112
  }, null, 8, ["color"]),
115
- (r(!0), u(B, null, I(e(n).meta?.category, (t, R) => (r(), f(e(Y), {
113
+ (s(!0), u(I, null, O(e(n).meta?.category, (t, $) => (s(), f(e(G), {
116
114
  size: "small",
117
115
  class: "tag",
118
- type: e(Q)(e(se), 1)[0],
119
- key: R,
120
- onClick: (pe) => E(t)
116
+ type: e(W)(e(ce), 1)[0],
117
+ key: $,
118
+ onClick: (ge) => M(t)
121
119
  }, {
122
- default: O(() => [
123
- F(k(t), 1)
120
+ default: F(() => [
121
+ H(b(t), 1)
124
122
  ]),
125
123
  _: 2
126
124
  }, 1032, ["type", "onClick"]))), 128))
127
125
  ])) : p("", !0),
128
- l("div", me, [
129
- g(e(J), {
130
- title: "发布时间",
126
+ l("div", ue, [
127
+ h(e(j), {
128
+ title: e(g)("vft.mdContainer.publishTime"),
131
129
  icon: "icon-date",
132
130
  size: 12,
133
131
  class: "mr-10px",
134
132
  distance: 5,
135
- text: e(ie)(
136
- (e(n).meta?.date ? new Date(e(n).meta.date).getTime() : (/* @__PURE__ */ new Date()).getTime()) - e(le)()
133
+ text: e(ae)(
134
+ (e(n).meta?.date ? new Date(e(n).meta.date).getTime() : (/* @__PURE__ */ new Date()).getTime()) - e(re)()
137
135
  )
138
- }, null, 8, ["text"]),
139
- l("div", de, [
140
- g(e(b), {
136
+ }, null, 8, ["title", "text"]),
137
+ l("div", {
138
+ class: "reading",
139
+ title: e(g)("vft.mdContainer.readCount")
140
+ }, [
141
+ h(e(T), {
141
142
  icon: "icon-reading",
142
143
  size: 14,
143
144
  class: "mr-5px"
144
145
  }),
145
146
  l("div", {
146
147
  class: "waline-pageview-count lh-1",
147
- "data-path": e(V)
148
- }, "0", 8, ue)
149
- ])
148
+ "data-path": e(_)
149
+ }, "0", 8, pe)
150
+ ], 8, fe)
150
151
  ])
151
152
  ])
152
153
  ], 2),
153
154
  l("div", {
154
- class: c(e(s).e("content"))
155
+ class: c(e(r).e("content"))
155
156
  }, [
156
- H(o.$slots, "default")
157
+ J(o.$slots, "default")
157
158
  ], 2),
158
- a.showComment ? (r(), f(e(j), { key: 1 })) : p("", !0),
159
+ a.showComment ? (s(), f(e(U), { key: 1 })) : p("", !0),
159
160
  i[0] || (i[0] = l("ins", {
160
161
  class: "adsbygoogle",
161
162
  style: { display: "block", "text-align": "center" },
@@ -168,5 +169,5 @@ const re = { class: "info-container" }, ce = {
168
169
  }
169
170
  });
170
171
  export {
171
- qe as default
172
+ Ie as default
172
173
  };
@@ -1,40 +1,41 @@
1
1
  import { jumpElement as h } from "@vft/utils";
2
- import { defineComponent as v, ref as f, getCurrentInstance as g, computed as T, onMounted as C, watch as $, h as o } from "vue";
3
- import { isActiveLink as I } from "./utils.js";
4
- const k = ({ title: t, level: e, slug: l }) => o(
2
+ import v from "../../locale/use-locale.js";
3
+ import { defineComponent as g, ref as C, getCurrentInstance as T, computed as $, onMounted as I, watch as b, h as n } from "vue";
4
+ import { isActiveLink as k } from "./utils.js";
5
+ const y = ({ title: e, level: o, slug: t }) => n(
5
6
  "a",
6
7
  {
7
- href: `#${l}`,
8
- class: ["toc-link", `level${e}`]
8
+ href: `#${t}`,
9
+ class: ["toc-link", `level${o}`]
9
10
  },
10
- t
11
- ), a = (t, e, l) => t.length && e > 0 ? o(
11
+ e
12
+ ), u = (e, o, t) => e.length && o > 0 ? n(
12
13
  "ul",
13
14
  { class: "toc-list" },
14
- t.map((c) => [
15
- o(
15
+ e.map((l) => [
16
+ n(
16
17
  "li",
17
18
  {
18
19
  class: [
19
20
  "toc-item",
20
21
  {
21
- active: I(
22
- l,
23
- `#${decodeURIComponent(c.slug)}`
22
+ active: k(
23
+ t,
24
+ `#${decodeURIComponent(l.slug)}`
24
25
  )
25
26
  }
26
27
  ],
27
- onClick: (r) => y(r, c.slug)
28
+ onClick: (s) => H(s, l.slug)
28
29
  },
29
- k(c)
30
+ y(l)
30
31
  ),
31
- a(c.children, e - 1, l)
32
+ u(l.children, o - 1, t)
32
33
  ])
33
34
  ) : null;
34
- function y(t, e) {
35
- t.preventDefault(), h(`[id="${e}"]`);
35
+ function H(e, o) {
36
+ e.preventDefault(), h(`[id="${o}"]`);
36
37
  }
37
- const A = v({
38
+ const w = g({
38
39
  props: {
39
40
  /**
40
41
  * TOC items config
@@ -55,37 +56,37 @@ const A = v({
55
56
  default: 2
56
57
  }
57
58
  },
58
- setup(t) {
59
- const e = f(), c = g().appContext.config.globalProperties.$router, r = T(() => c.currentRoute.value), u = (n) => {
60
- e.value?.scrollTo({ top: n, behavior: "smooth" });
59
+ setup(e) {
60
+ const { t: o } = v(), t = C(), s = T().appContext.config.globalProperties.$router, a = $(() => s.currentRoute.value), m = (c) => {
61
+ t.value?.scrollTo({ top: c, behavior: "smooth" });
61
62
  };
62
- return C(() => {
63
- $(
64
- () => r.value.hash,
65
- (n) => {
66
- if (e.value) {
63
+ return I(() => {
64
+ b(
65
+ () => a.value.hash,
66
+ (c) => {
67
+ if (t.value) {
67
68
  const p = document.querySelector(
68
- `#toc a.toc-link[href$="${n}"]`
69
+ `#toc a.toc-link[href$="${c}"]`
69
70
  );
70
71
  if (!p) return;
71
- const { top: i, height: d } = e.value.getBoundingClientRect(), { top: s, height: m } = p.getBoundingClientRect();
72
- s < i ? u(e.value.scrollTop + s - i) : s + m > i + d && u(
73
- e.value.scrollTop + s + m - i - d
72
+ const { top: r, height: d } = t.value.getBoundingClientRect(), { top: i, height: f } = p.getBoundingClientRect();
73
+ i < r ? m(t.value.scrollTop + i - r) : i + f > r + d && m(
74
+ t.value.scrollTop + i + f - r - d
74
75
  );
75
76
  }
76
77
  }
77
78
  );
78
79
  }), () => {
79
- const n = t.items.length ? a(t.items, t.headerDepth, r.value) || [] : a([], t.headerDepth, r.value) || null;
80
- return n ? o("div", { class: "toc-place-holder" }, [
81
- o("aside", { id: "toc" }, [
82
- o("div", { class: "toc-header" }, ["此页内容"]),
83
- o("div", { class: "toc-wrapper", ref: e }, [n])
80
+ const c = e.items.length ? u(e.items, e.headerDepth, a.value) || [] : u([], e.headerDepth, a.value) || null;
81
+ return c ? n("div", { class: "toc-place-holder" }, [
82
+ n("aside", { id: "toc" }, [
83
+ n("div", { class: "toc-header" }, [o("vft.mdContainer.tableOfContents")]),
84
+ n("div", { class: "toc-wrapper", ref: t }, [c])
84
85
  ])
85
86
  ]) : null;
86
87
  };
87
88
  }
88
89
  });
89
90
  export {
90
- A as default
91
+ w as default
91
92
  };
@@ -1,8 +1,8 @@
1
1
  import o from "./menu-collapse-transition.vue2.js";
2
- import { createBlock as r, openBlock as t, Transition as n, mergeProps as s, withCtx as i, renderSlot as a } from "vue";
2
+ import { openBlock as r, createBlock as t, Transition as n, mergeProps as s, withCtx as i, renderSlot as a } from "vue";
3
3
  import p from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  function f(e, l, c, m, d, u) {
5
- return t(), r(n, s({ mode: "out-in" }, e.listeners), {
5
+ return r(), t(n, s({ mode: "out-in" }, e.listeners), {
6
6
  default: i(() => [
7
7
  a(e.$slots, "default")
8
8
  ]),
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, createElementBlock as t, openBlock as o, normalizeClass as i, unref as m, createCommentVNode as a, createElementVNode as p, renderSlot as s, Fragment as u, createTextVNode as c, toDisplayString as d } from "vue";
1
+ import { defineComponent as n, openBlock as t, createElementBlock as o, normalizeClass as i, unref as m, Fragment as a, createTextVNode as p, toDisplayString as u, renderSlot as s, createCommentVNode as c, createElementVNode as d } from "vue";
2
2
  import "@vueuse/core";
3
3
  import "@vft/utils";
4
4
  import "../config-provider/hooks/use-global-config.js";
@@ -17,18 +17,18 @@ const k = n({
17
17
  },
18
18
  setup(r) {
19
19
  const l = f("menu-item-group");
20
- return (e, g) => (o(), t("li", {
20
+ return (e, g) => (t(), o("li", {
21
21
  class: i(m(l).b())
22
22
  }, [
23
- r.title || e.$slots.title ? (o(), t("div", {
23
+ r.title || e.$slots.title ? (t(), o("div", {
24
24
  key: 0,
25
25
  class: i(m(l).e("title"))
26
26
  }, [
27
- e.$slots.title ? s(e.$slots, "title", { key: 1 }) : (o(), t(u, { key: 0 }, [
28
- c(d(r.title), 1)
27
+ e.$slots.title ? s(e.$slots, "title", { key: 1 }) : (t(), o(a, { key: 0 }, [
28
+ p(u(r.title), 1)
29
29
  ], 64))
30
- ], 2)) : a("", !0),
31
- p("ul", null, [
30
+ ], 2)) : c("", !0),
31
+ d("ul", null, [
32
32
  s(e.$slots, "default")
33
33
  ])
34
34
  ], 2));
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, getCurrentInstance as F, useAttrs as O, inject as N, computed as a, reactive as q, onMounted as G, onBeforeUnmount as H, createElementBlock as k, openBlock as n, Fragment as b, createBlock as s, createCommentVNode as m, createElementVNode as M, unref as t, normalizeClass as y, withCtx as $, renderSlot as A, normalizeProps as I, mergeProps as V, createVNode as J } from "vue";
1
+ import { defineComponent as P, getCurrentInstance as F, useAttrs as O, inject as N, computed as a, reactive as q, onMounted as G, onBeforeUnmount as H, openBlock as n, createElementBlock as k, Fragment as b, createBlock as s, unref as t, createCommentVNode as m, createElementVNode as M, normalizeClass as y, withCtx as $, normalizeProps as I, mergeProps as V, renderSlot as A, createVNode as J } from "vue";
2
2
  import { singleAttrToObj as K, renderTNode as L, VNode as Q } from "@vft/utils";
3
3
  import { VftIcon as h } from "../icon/index.js";
4
4
  import { VftDivider as j } from "../divider/index.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, ref as m, computed as i, onMounted as H, watch as $, createBlock as w, openBlock as c, Transition as D, unref as o, withCtx as F, withDirectives as P, createElementVNode as j, normalizeStyle as A, normalizeClass as a, createElementBlock as d, createCommentVNode as B, renderSlot as U, createVNode as Z, normalizeProps as G, guardReactiveProps as q, toDisplayString as J, mergeProps as K, withModifiers as Q, vShow as W } from "vue";
1
+ import { defineComponent as V, ref as m, computed as i, onMounted as H, watch as $, openBlock as c, createBlock as w, Transition as D, unref as o, withCtx as F, withDirectives as P, createElementVNode as j, normalizeStyle as A, normalizeClass as a, createElementBlock as d, createVNode as U, normalizeProps as Z, guardReactiveProps as G, createCommentVNode as B, renderSlot as q, toDisplayString as J, mergeProps as K, withModifiers as Q, vShow as W } from "vue";
2
2
  import { VftIcon as k } from "../icon/index.js";
3
3
  import { EVENT_CODE as X } from "@vft/constants";
4
4
  import { useEventListener as Y } from "@vft/use";
@@ -107,9 +107,9 @@ const se = ["id"], ie = ["innerHTML"], ve = /* @__PURE__ */ V({
107
107
  key: 0,
108
108
  class: a([o(t).e("icon"), O.value])
109
109
  }, [
110
- Z(o(k), G(q(v.value)), null, 16)
110
+ U(o(k), Z(G(v.value)), null, 16)
111
111
  ], 2)) : B("", !0),
112
- U(s.$slots, "default", {}, () => [
112
+ q(s.$slots, "default", {}, () => [
113
113
  e.dangerouslyUseHTMLString ? (c(), d("p", {
114
114
  key: 1,
115
115
  class: a(o(t).e("content")),
@@ -0,0 +1,4 @@
1
+ export declare const VftMessageBox: import("vft/es/utils").SFCInstallWithContext<import("./types").IMessageBox>;
2
+ export default VftMessageBox;
3
+ export { VftMessageBox as MessageBox };
4
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ import "@vueuse/core";
2
+ import "@vft/utils";
3
+ import "../config-provider/hooks/use-global-config.js";
4
+ import "vue";
5
+ import { withInstallFunction as o } from "../../utils/vue/install.js";
6
+ import "lodash-es";
7
+ import "../form/index.js";
8
+ import t from "./method.js";
9
+ const f = o(t, "$msgbox");
10
+ export {
11
+ f as MessageBox,
12
+ f as VftMessageBox,
13
+ f as default
14
+ };