vft 0.0.136 → 0.0.138

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 (280) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/es/comp-resolver.js +1 -3
  4. package/es/component.js +29 -25
  5. package/es/components/alert/alert.vue2.js +1 -4
  6. package/es/components/autocomplete/autocomplete.vue2.js +2 -8
  7. package/es/components/backtop/backtop.vue2.js +3 -2
  8. package/es/components/backtop/use-backtop.js +9 -5
  9. package/es/components/button/constants.js +1 -3
  10. package/es/components/button/use-button.js +4 -6
  11. package/es/components/carousel/carousel.vue2.js +3 -13
  12. package/es/components/carousel/use-carousel-item.js +2 -10
  13. package/es/components/carousel/use-carousel.js +2 -9
  14. package/es/components/checkbox/checkbox-button.vue2.js +1 -8
  15. package/es/components/checkbox/checkbox-group.vue2.js +1 -9
  16. package/es/components/checkbox/composables/use-checkbox-disabled.js +1 -3
  17. package/es/components/checkbox/composables/use-checkbox-event.js +2 -8
  18. package/es/components/checkbox/composables/use-checkbox.js +3 -7
  19. package/es/components/clamp/clamp.vue2.js +1 -4
  20. package/es/components/col/col.vue2.js +1 -3
  21. package/es/components/collection/collection.js +2 -6
  22. package/es/components/color-picker/color-picker.vue2.js +1 -5
  23. package/es/components/color-picker/components/hue-slider.vue2.js +4 -12
  24. package/es/components/color-picker/components/predefine.vue.js +1 -5
  25. package/es/components/color-picker/composables/use-alpha-slider.js +5 -17
  26. package/es/components/color-picker/contants.js +1 -3
  27. package/es/components/color-picker/utils/color.js +9 -29
  28. package/es/components/config-provider/hooks/use-global-config.js +5 -10
  29. package/es/components/container/footer.vue2.js +1 -3
  30. package/es/components/context-menu/context-menu.vue2.js +30 -15
  31. package/es/components/date-picker/composables/use-shortcut.js +1 -4
  32. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +2 -6
  33. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +3 -11
  34. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +6 -20
  35. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +2 -14
  36. package/es/components/descriptions/description.vue2.js +4 -6
  37. package/es/components/descriptions/descriptions-cell.js +1 -3
  38. package/es/components/dialog/dialog.vue.d.ts +1 -1
  39. package/es/components/drawer/drawer.vue2.js +1 -3
  40. package/es/components/dropdown/dropdown-item-impl.vue2.js +2 -9
  41. package/es/components/dropdown/dropdown-item.vue2.js +1 -4
  42. package/es/components/dropdown/dropdown-menu.vue2.js +5 -25
  43. package/es/components/dropdown/dropdown.vue2.js +2 -14
  44. package/es/components/dropdown/types.js +1 -10
  45. package/es/components/dropdown/useDropdown.js +1 -3
  46. package/es/components/exception/exception.vue2.js +6 -3
  47. package/es/components/focus-trap/focus-trap.vue2.js +4 -19
  48. package/es/components/footer-layout/footer-layout.vue2.js +3 -2
  49. package/es/components/form/form-item.vue2.js +7 -15
  50. package/es/components/form/hooks/use-form-common-props.js +1 -3
  51. package/es/components/form/types.d.ts +1 -1
  52. package/es/components/form/types.js +1 -6
  53. package/es/components/header-layout/header-layout.vue2.js +3 -2
  54. package/es/components/icon/icon.vue2.js +12 -7
  55. package/es/components/icon-text/icon-text.vue2.js +9 -6
  56. package/es/components/image/image.vue2.js +2 -10
  57. package/es/components/image/index.d.ts +49 -0
  58. package/es/components/image/index.js +3 -1
  59. package/es/components/image/p-image.vue.d.ts +51 -0
  60. package/es/components/image/p-image.vue.js +4 -0
  61. package/es/components/image/p-image.vue2.js +57 -0
  62. package/es/components/image/types.d.ts +1 -0
  63. package/es/components/image-viewer/image-viewer.vue2.js +4 -16
  64. package/es/components/index.d.ts +1 -0
  65. package/es/components/index.js +277 -274
  66. package/es/components/infinite-scroll/infinite-scroll.js +1 -3
  67. package/es/components/input/input.vue2.js +17 -9
  68. package/es/components/input-number/directives.js +1 -3
  69. package/es/components/input-number/input-number.vue2.js +2 -9
  70. package/es/components/link/link.vue2.js +1 -6
  71. package/es/components/list-cell/list-cell.vue2.js +7 -4
  72. package/es/components/loading/directive.js +1 -3
  73. package/es/components/md-code-demo/code-demo/code.js +14 -7
  74. package/es/components/md-code-demo/md-code-demo.js +97 -85
  75. package/es/components/md-code-tabs/md-code-tabs.js +3 -1
  76. package/es/components/md-container/md-container.vue2.js +3 -2
  77. package/es/components/md-container/toc.js +6 -1
  78. package/es/components/md-container/use/useActiveHeaderLinks.js +1 -7
  79. package/es/components/md-tabs/md-tabs.js +3 -1
  80. package/es/components/menu/menu-item.vue2.js +7 -3
  81. package/es/components/menu/menu.vue2.js +6 -14
  82. package/es/components/menu/sub-menu.vue2.js +3 -2
  83. package/es/components/message/message.vue2.js +1 -3
  84. package/es/components/message/method.js +5 -1
  85. package/es/components/modal/modal-footer-action.vue2.js +3 -2
  86. package/es/components/multiple-tabs/multiple-tabs.vue2.js +45 -36
  87. package/es/components/overlay/overlay.vue2.js +1 -5
  88. package/es/components/p-image/style/css.d.ts +0 -0
  89. package/es/components/p-image/style/css.js +2 -0
  90. package/es/components/p-image/style/index.d.ts +0 -0
  91. package/es/components/p-image/style/index.js +2 -0
  92. package/es/components/pagination/components/next.vue2.js +1 -3
  93. package/es/components/pagination/components/pager.vue2.js +5 -24
  94. package/es/components/pagination/components/prev.vue2.js +1 -3
  95. package/es/components/popconfirm/popconfirm.vue2.js +1 -5
  96. package/es/components/popper/arrow.vue2.js +1 -4
  97. package/es/components/popper/composables/use-content-dom.js +3 -16
  98. package/es/components/popper/composables/use-content.js +7 -11
  99. package/es/components/popper/content.vue.d.ts +2 -4
  100. package/es/components/popper/content.vue2.js +8 -12
  101. package/es/components/popper/trigger.vue2.js +6 -29
  102. package/es/components/progress/progress.vue2.js +1 -6
  103. package/es/components/progress-i/index.d.ts +2 -0
  104. package/es/components/progress-i/index.js +12 -0
  105. package/es/components/progress-i/progress-i.vue.d.ts +2 -0
  106. package/es/components/progress-i/progress-i.vue.js +4 -0
  107. package/es/components/progress-i/progress-i.vue2.js +10 -0
  108. package/es/components/progress-i/style/css.d.ts +0 -0
  109. package/es/components/progress-i/style/css.js +2 -0
  110. package/es/components/progress-i/style/index.d.ts +0 -0
  111. package/es/components/progress-i/style/index.js +2 -0
  112. package/es/components/qrcode/drawLogo.js +8 -1
  113. package/es/components/qrcode/qrcode.vue2.js +7 -3
  114. package/es/components/radio/radio.vue2.js +2 -9
  115. package/es/components/result/result.vue2.js +10 -5
  116. package/es/components/roving-focus-group/roving-focus-group-impl.vue2.js +2 -11
  117. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -10
  118. package/es/components/roving-focus-group/types.js +1 -6
  119. package/es/components/scrollbar/constants.js +1 -3
  120. package/es/components/scrollbar/scrollbar.vue2.js +2 -9
  121. package/es/components/scrollbar/thumb.vue2.js +2 -12
  122. package/es/components/search/index.d.ts +2 -0
  123. package/es/components/search/search.vue.d.ts +1 -1
  124. package/es/components/select/select.vue.js +5 -20
  125. package/es/components/select/select.vue2.js +1 -9
  126. package/es/components/select/token.js +1 -3
  127. package/es/components/select/useAllowCreate.js +1 -3
  128. package/es/components/select/useSelect.js +10 -48
  129. package/es/components/side-menu/side-menu.vue2.js +19 -18
  130. package/es/components/skeleton/skeleton.vue2.js +5 -5
  131. package/es/components/slider/composables/use-lifecycle.js +1 -4
  132. package/es/components/slider/composables/use-slide.js +1 -4
  133. package/es/components/slider/composables/use-slider-button.js +5 -1
  134. package/es/components/slider/composables/use-stops.js +2 -6
  135. package/es/components/slider/composables/use-watch.js +1 -3
  136. package/es/components/slider/marker.js +1 -3
  137. package/es/components/slider/slider.vue2.js +2 -8
  138. package/es/components/space/space.js +25 -39
  139. package/es/components/super-form/component-map.js +13 -10
  140. package/es/components/super-form/index.d.ts +10 -7
  141. package/es/components/super-form/super-form-action.vue2.js +4 -6
  142. package/es/components/super-form/super-form-item.vue.d.ts +1 -1
  143. package/es/components/super-form/super-form-item.vue2.js +26 -25
  144. package/es/components/super-form/super-form.vue.d.ts +4 -3
  145. package/es/components/super-form/super-form.vue2.js +5 -3
  146. package/es/components/super-form/use/use-auto-focus.js +1 -6
  147. package/es/components/super-form/use/use-form-events.js +2 -6
  148. package/es/components/super-form/use/use-form-values.js +1 -6
  149. package/es/components/switch/switch.vue2.js +3 -17
  150. package/es/components/table/field.js +21 -20
  151. package/es/components/table/index.d.ts +357 -82
  152. package/es/components/table/table.vue.d.ts +91 -30
  153. package/es/components/table/table.vue2.js +128 -113
  154. package/es/components/table/types.d.ts +2 -2
  155. package/es/components/table/use/use-data-source.js +91 -92
  156. package/es/components/table/use/use-table.d.ts +1 -4
  157. package/es/components/table/use/use-table.js +3 -1
  158. package/es/components/tabs/tab-nav.vue2.js +18 -17
  159. package/es/components/time-picker/common/picker.vue2.js +8 -26
  160. package/es/components/time-picker/composables/use-time-panel.js +3 -14
  161. package/es/components/time-picker/composables/use-time-picker.js +2 -8
  162. package/es/components/time-picker/constants.d.ts +1 -1
  163. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +2 -9
  164. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +6 -10
  165. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +3 -14
  166. package/es/components/time-picker/utils.js +1 -5
  167. package/es/components/tooltip/content.vue2.js +4 -12
  168. package/es/components/tooltip/trigger.vue2.js +7 -25
  169. package/es/components/tooltip/utils.js +1 -3
  170. package/es/components/tree/model/node.js +2 -8
  171. package/es/components/tree/model/useDragNode.js +2 -12
  172. package/es/components/tree/model/useKeydown.js +5 -17
  173. package/es/components/tree/tree-node.vue2.js +2 -12
  174. package/es/components/tree/tree.vue2.js +2 -10
  175. package/es/components/upload/upload-content.vue2.js +2 -6
  176. package/es/components/upload/upload-dragger.vue2.js +1 -4
  177. package/es/components/upload/upload-list.vue2.js +2 -10
  178. package/es/components/upload/use-handlers.js +1 -3
  179. package/es/components/virtual-list/builders/build-grid.js +14 -77
  180. package/es/components/virtual-list/builders/build-list.js +9 -46
  181. package/es/components/virtual-list/components/dynamic-size-grid.js +4 -29
  182. package/es/components/virtual-list/components/dynamic-size-list.js +2 -11
  183. package/es/components/virtual-list/components/fixed-size-grid.js +9 -40
  184. package/es/components/virtual-list/components/fixed-size-list.js +1 -3
  185. package/es/components/virtual-list/components/scrollbar.js +3 -14
  186. package/es/components/virtual-list/props.js +1 -4
  187. package/es/constants/date.d.ts +1 -1
  188. package/es/constants/date.js +1 -9
  189. package/es/constants/size.d.ts +1 -1
  190. package/es/hooks/use-draggable/index.js +2 -10
  191. package/es/hooks/use-lockscreen/index.js +1 -4
  192. package/es/hooks/use-model-toggle/index.js +1 -3
  193. package/es/hooks/use-ordered-children/index.js +1 -3
  194. package/es/hooks/use-popper/index.js +5 -18
  195. package/es/index.js +408 -405
  196. package/es/package.json.d.ts +77 -0
  197. package/es/package.json.js +1 -1
  198. package/es/plugin.js +1 -5
  199. package/es/utils/ns-cover.js +16 -7
  200. package/es/utils/vue/install.d.ts +3 -0
  201. package/es/utils/vue/props/runtime.js +2 -9
  202. package/lib/component.cjs +1 -1
  203. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  204. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  205. package/lib/components/dialog/dialog.vue.d.ts +1 -1
  206. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  207. package/lib/components/form/types.d.ts +1 -1
  208. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  209. package/lib/components/image/index.cjs +1 -1
  210. package/lib/components/image/index.d.ts +49 -0
  211. package/lib/components/image/p-image.vue.cjs +1 -0
  212. package/lib/components/image/p-image.vue.d.ts +51 -0
  213. package/lib/components/image/p-image.vue2.cjs +1 -0
  214. package/lib/components/image/types.d.ts +1 -0
  215. package/lib/components/index.cjs +1 -1
  216. package/lib/components/index.d.ts +1 -0
  217. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  218. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  219. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  220. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  221. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  222. package/lib/components/p-image/style/css.cjs +1 -0
  223. package/lib/components/p-image/style/css.d.ts +0 -0
  224. package/lib/components/p-image/style/index.cjs +1 -0
  225. package/lib/components/p-image/style/index.d.ts +0 -0
  226. package/lib/components/popper/content.vue.d.ts +2 -4
  227. package/lib/components/progress-i/index.cjs +1 -0
  228. package/lib/components/progress-i/index.d.ts +2 -0
  229. package/lib/components/progress-i/progress-i.vue.cjs +1 -0
  230. package/lib/components/progress-i/progress-i.vue.d.ts +2 -0
  231. package/lib/components/progress-i/progress-i.vue2.cjs +1 -0
  232. package/lib/components/progress-i/style/css.cjs +1 -0
  233. package/lib/components/progress-i/style/css.d.ts +0 -0
  234. package/lib/components/progress-i/style/index.cjs +1 -0
  235. package/lib/components/progress-i/style/index.d.ts +0 -0
  236. package/lib/components/result/result.vue2.cjs +1 -1
  237. package/lib/components/search/index.d.ts +2 -0
  238. package/lib/components/search/search.vue.d.ts +1 -1
  239. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  240. package/lib/components/super-form/component-map.cjs +1 -1
  241. package/lib/components/super-form/index.d.ts +10 -7
  242. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  243. package/lib/components/super-form/super-form-item.vue.d.ts +1 -1
  244. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  245. package/lib/components/super-form/super-form.vue.d.ts +4 -3
  246. package/lib/components/super-form/super-form.vue2.cjs +1 -1
  247. package/lib/components/table/field.cjs +1 -1
  248. package/lib/components/table/index.d.ts +357 -82
  249. package/lib/components/table/table.vue.d.ts +91 -30
  250. package/lib/components/table/table.vue2.cjs +1 -1
  251. package/lib/components/table/types.d.ts +2 -2
  252. package/lib/components/table/use/use-data-source.cjs +1 -1
  253. package/lib/components/table/use/use-table.d.ts +1 -4
  254. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  255. package/lib/components/time-picker/constants.d.ts +1 -1
  256. package/lib/constants/date.d.ts +1 -1
  257. package/lib/constants/size.d.ts +1 -1
  258. package/lib/index.cjs +1 -1
  259. package/lib/package.json.cjs +1 -1
  260. package/lib/package.json.d.ts +77 -0
  261. package/lib/utils/vue/install.d.ts +3 -0
  262. package/package.json +4 -4
  263. package/tags.json +1 -1
  264. package/theme-style/index.css +1 -1
  265. package/theme-style/src/index.scss +4 -0
  266. package/theme-style/src/input.scss +1 -0
  267. package/theme-style/src/p-image.scss +18 -0
  268. package/theme-style/src/progress-i.scss +0 -0
  269. package/theme-style/src/table.scss +7 -0
  270. package/theme-style/src/tabs.scss +120 -3
  271. package/theme-style/vft-input.css +1 -1
  272. package/theme-style/vft-md-comment.css +1 -1
  273. package/theme-style/vft-md-container.css +1 -1
  274. package/theme-style/vft-md-vue-playground.css +1 -1
  275. package/theme-style/vft-p-image.css +1 -0
  276. package/theme-style/vft-progress-i.css +0 -0
  277. package/theme-style/vft-select.css +1 -1
  278. package/theme-style/vft-table.css +1 -1
  279. package/theme-style/vft-tabs.css +1 -1
  280. package/web-types.json +1 -1
@@ -84,15 +84,19 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
84
84
  excludeKeys: l(() => Object.keys(Z.value))
85
85
  }), { form: T, formItem: u } = aa(), { inputId: _ } = ta(Ce.props, {
86
86
  formItemContext: u
87
- }), ze = oa(), h = na(), o = be("input"), ee = be("textarea"), M = q(), b = q(), w = V(!1), L = V(!1), k = V(!1), P = V(!1), ae = V(), O = q(a.inputStyle), z = l(() => M.value || b.value), j = l(() => X(a.prefixIcon, "icon", { size: 16 })), te = l(() => X(a.suffixIcon, "icon", { size: 16 })), Ie = l(() => X(a.clearIcon, "icon", { icon: "icon-circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), I = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(() => I.value && {
88
- validating: "icon-loading",
89
- success: "icon-circle-check",
90
- error: "icon-circle-close"
91
- }[I.value]), Se = l(
87
+ }), ze = oa(), h = na(), o = be("input"), ee = be("textarea"), M = q(), b = q(), w = V(!1), L = V(!1), k = V(!1), P = V(!1), ae = V(), O = q(a.inputStyle), z = l(() => M.value || b.value), j = l(() => X(a.prefixIcon, "icon", { size: 16 })), te = l(() => X(a.suffixIcon, "icon", { size: 16 })), Ie = l(() => X(a.clearIcon, "icon", { icon: "icon-circle-close", size: 16 })), oe = l(() => (T == null ? void 0 : T.statusIcon) ?? !1), I = l(() => (u == null ? void 0 : u.validateState) || ""), ne = l(
88
+ () => I.value && {
89
+ validating: "icon-loading",
90
+ success: "icon-circle-check",
91
+ error: "icon-circle-close"
92
+ }[I.value]
93
+ ), Se = l(
92
94
  () => P.value ? { icon: "icon-view", size: 16 } : { icon: "icon-hide", size: 16 }
93
- ), Ee = l(() => [C.style, a.inputStyle]), le = l(
94
- () => [a.inputStyle, O.value, { resize: a.resize }]
95
- ), p = l(() => _e(a.modelValue) ? "" : String(a.modelValue)), R = l(
95
+ ), Ee = l(() => [C.style, a.inputStyle]), le = l(() => [
96
+ a.inputStyle,
97
+ O.value,
98
+ { resize: a.resize }
99
+ ]), p = l(() => _e(a.modelValue) ? "" : String(a.modelValue)), R = l(
96
100
  () => a.clearable && !h.value && !a.readonly && !!p.value && (w.value || L.value)
97
101
  ), W = l(
98
102
  () => a.showPassword && !h.value && !a.readonly && !!p.value && (!!p.value || w.value)
@@ -316,7 +320,11 @@ const la = ["role"], sa = ["id", "type", "disabled", "formatter", "parser", "rea
316
320
  I.value && ne.value && oe.value ? (i(), F(t(K), {
317
321
  key: 4,
318
322
  icon: ne.value,
319
- class: c([t(o).e("icon"), t(o).e("validateIcon"), t(o).is("loading", I.value === "validating")])
323
+ class: c([
324
+ t(o).e("icon"),
325
+ t(o).e("validateIcon"),
326
+ t(o).is("loading", I.value === "validating")
327
+ ])
320
328
  }, null, 8, ["icon", "class"])) : r("", !0)
321
329
  ], 2)
322
330
  ], 2)) : r("", !0)
@@ -1,9 +1,7 @@
1
1
  import { isFunction as a } from "@vft/utils";
2
2
  const u = 100, v = 600, m = {
3
3
  beforeMount(l, i) {
4
- const e = i.value, { interval: c = u, delay: d = v } = a(
5
- e
6
- ) ? {} : e;
4
+ const e = i.value, { interval: c = u, delay: d = v } = a(e) ? {} : e;
7
5
  let t, n;
8
6
  const o = () => a(e) ? e() : e.handler(), r = () => {
9
7
  n && (clearTimeout(n), n = void 0), t && (clearInterval(t), t = void 0);
@@ -51,16 +51,9 @@ const de = ["onKeydown"], me = ["onKeydown"], c = (
51
51
  const d = ee(), i = ne({
52
52
  currentValue: n.modelValue,
53
53
  userInput: null
54
- }), { formItem: o } = oe(), K = f(
55
- () => n.modelValue && s(n.modelValue) && n.modelValue <= n.min
56
- ), M = f(
57
- () => n.modelValue && s(n.modelValue) && n.modelValue >= n.max
58
- ), p = f(() => {
54
+ }), { formItem: o } = oe(), K = f(() => n.modelValue && s(n.modelValue) && n.modelValue <= n.min), M = f(() => n.modelValue && s(n.modelValue) && n.modelValue >= n.max), p = f(() => {
59
55
  const e = z(n.step);
60
- return y(n.precision) ? Math.max(z(n.modelValue), e) : (e > n.precision && D(
61
- "InputNumber",
62
- "precision should not be less than the decimal places of step"
63
- ), n.precision);
56
+ return y(n.precision) ? Math.max(z(n.modelValue), e) : (e > n.precision && D("InputNumber", "precision should not be less than the decimal places of step"), n.precision);
64
57
  }), I = f(() => n.controls && n.controlsPosition === "right"), k = se(), m = ce(), E = f(() => {
65
58
  if (i.userInput !== null)
66
59
  return i.userInput;
@@ -33,12 +33,7 @@ const n = (
33
33
  return (e, I) => {
34
34
  var i;
35
35
  return r(), a("span", {
36
- class: s([
37
- t(n).b(),
38
- t(n).m(e.type),
39
- t(n).is("disabled", e.disabled),
40
- t(n).is("underline", e.underline && !e.disabled)
41
- ]),
36
+ class: s([t(n).b(), t(n).m(e.type), t(n).is("disabled", e.disabled), t(n).is("underline", e.underline && !e.disabled)]),
42
37
  onClick: f
43
38
  }, [
44
39
  (i = l.value) != null && i.icon ? (r(), y(t(R), C(g({ key: 0 }, l.value)), null, 16)) : c("", !0),
@@ -25,10 +25,13 @@ const S = ["onClick"], l = (
25
25
  const f = _(r.activeIndex), C = m(() => r.list.map((t) => (t.leftIcon = g(t.leftIcon, "icon", { size: 16 }), t.rightIcon = g(t.rightIcon, "icon", {
26
26
  icon: "icon-arrow-right",
27
27
  size: 16
28
- }), t))), x = m(() => E({
29
- height: v(r.cellHeight),
30
- "left-text-distance": v(r.leftTextDistance)
31
- }, "list-cell"));
28
+ }), t))), x = m(() => E(
29
+ {
30
+ height: v(r.cellHeight),
31
+ "left-text-distance": v(r.leftTextDistance)
32
+ },
33
+ "list-cell"
34
+ ));
32
35
  function y(t, i) {
33
36
  f.value = i, I("item-click", t, i);
34
37
  }
@@ -5,9 +5,7 @@ const f = Symbol("VftLoading"), m = (a, t) => {
5
5
  const o = t.instance, e = (c) => p(t.value) ? t.value[c] : void 0, l = (c) => {
6
6
  const u = x(c) && (o == null ? void 0 : o[c]) || c;
7
7
  return u && k(u);
8
- }, s = (c) => l(
9
- e(c) ?? a.getAttribute(`vft-loading-${i(c)}`)
10
- ), r = e("fullscreen") ?? t.modifiers.fullscreen, v = {
8
+ }, s = (c) => l(e(c) ?? a.getAttribute(`vft-loading-${i(c)}`)), r = e("fullscreen") ?? t.modifiers.fullscreen, v = {
11
9
  text: s("text"),
12
10
  svg: s("svg"),
13
11
  svgViewBox: s("svgViewBox"),
@@ -15,8 +15,14 @@ const b = (e) => {
15
15
  }), t.isLegal = (!t.html.length || t.html[1] === "none") && (!t.js.length || t.js[1] === "none") && (!t.css.length || t.css[1] === "none"), t;
16
16
  }, d = (e) => e.replace(/<br \/>/g, "<br>").replace(/<((\S+)[^<]*?)\s+\/>/g, "<$1></$2>"), f = (e) => `<div id="app">
17
17
  ${d(e)}
18
- </div>`, L = (e) => `${e.replace("export default ", "const $reactApp = ").replace(/App\.__style__(\s*)=(\s*)`([\s\S]*)?`/, "")};
19
- ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`, C = (e) => e.replace(/export\s+default\s*\{([\s\S]*)\n*\}\s*;?$/u, "Vue.createApp({$1}).mount('#app')").replace(/export\s+default\s*define(Async)?Component\s*\(\s*\{([\s\S]*)\n*\}\s*\)\s*;?$/u, "Vue.createApp({$1}).mount('#app')").trim(), h = (e) => `(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?module.exports.default:module.exports;})({})`, _ = (e, r) => {
18
+ </div>`, L = (e) => `${e.replace("export default ", "const $reactApp = ").replace(
19
+ /App\.__style__(\s*)=(\s*)`([\s\S]*)?`/,
20
+ ""
21
+ )};
22
+ ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($reactApp))`, C = (e) => e.replace(/export\s+default\s*\{([\s\S]*)\n*\}\s*;?$/u, "Vue.createApp({$1}).mount('#app')").replace(
23
+ /export\s+default\s*define(Async)?Component\s*\(\s*\{([\s\S]*)\n*\}\s*\)\s*;?$/u,
24
+ "Vue.createApp({$1}).mount('#app')"
25
+ ).trim(), h = (e) => `(function(exports){var module={};module.exports=exports;${e};return module.exports.__esModule?module.exports.default:module.exports;})({})`, _ = (e, r) => {
20
26
  const t = p(r), s = e.js[0] || "";
21
27
  return {
22
28
  ...t,
@@ -41,10 +47,9 @@ ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($
41
47
  getScript: () => {
42
48
  var m, u;
43
49
  const x = r.useBabel ? ((u = (m = window.Babel) == null ? void 0 : m.transform(a, { presets: ["es2015"] })) == null ? void 0 : u.code) || "" : a.replace(/export\s+default/u, "return");
44
- return `const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${h(x)};appOptions.template=\`${l.replace(
45
- "`",
46
- '\\`"'
47
- )}\`;window.Vue.createApp(appOptions).mount(app);`;
50
+ return `const app=window.document.createElement('div');document.firstElementChild.appendChild(app);const appOptions=${h(
51
+ x
52
+ )};appOptions.template=\`${l.replace("`", '\\`"')}\`;window.Vue.createApp(appOptions).mount(app);`;
48
53
  }
49
54
  };
50
55
  }, A = (e, r) => {
@@ -62,7 +67,9 @@ ReactDOM.createRoot(document.getElementById("app")).render(React.createElement($
62
67
  const s = ((n = (c = window.Babel) == null ? void 0 : c.transform(e.js[0] || "", {
63
68
  presets: ["es2015", "react"]
64
69
  })) == null ? void 0 : n.code) || "";
65
- return `window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${h(s)}))`;
70
+ return `window.ReactDOM.createRoot(document.firstElementChild).render(window.React.createElement(${h(
71
+ s
72
+ )}))`;
66
73
  }
67
74
  };
68
75
  };
@@ -96,91 +96,103 @@ const O = 800, B = L({
96
96
  }
97
97
  }) : null,
98
98
  a.title ? t("span", { class: "title" }, decodeURIComponent(a.title)) : null,
99
- t("div", {
100
- style: { display: "flex" }
101
- }, [
102
- e.value.isLegal && e.value.jsfiddle !== !1 ? t(
103
- "form",
104
- {
105
- class: "code-demo-jsfiddle",
106
- target: "_blank",
107
- action: "https://jsfiddle.net/api/post/library/pure/",
108
- method: "post"
109
- },
110
- [
111
- t("input", {
112
- type: "hidden",
113
- name: "html",
114
- value: e.value.html
115
- }),
116
- t("input", {
117
- type: "hidden",
118
- name: "js",
119
- value: e.value.js
120
- }),
121
- t("input", {
122
- type: "hidden",
123
- name: "css",
124
- value: e.value.css
125
- }),
126
- t("input", { type: "hidden", name: "wrap", value: "1" }),
127
- t("input", { type: "hidden", name: "panel_js", value: "3" }),
128
- t("input", {
129
- type: "hidden",
130
- name: "resources",
131
- value: [...e.value.cssLib, ...e.value.jsLib].join(",")
132
- }),
133
- t("button", {
134
- type: "submit",
135
- "aria-label": "JSFiddle",
136
- "data-balloon-pos": "up"
137
- }, t(y, {
138
- icon: "icon-jsfiddle",
139
- class: "jsfiddle-button"
140
- }))
141
- ]
142
- ) : null,
143
- !e.value.isLegal || e.value.codepen !== !1 ? t(
144
- "form",
145
- {
146
- class: "code-demo-codepen",
147
- target: "_blank",
148
- action: "https://codepen.io/pen/define",
149
- method: "post"
150
- },
151
- [
152
- t("input", {
153
- type: "hidden",
154
- name: "data",
155
- value: JSON.stringify({
156
- html: e.value.html,
157
- js: e.value.js,
158
- css: e.value.css,
159
- // eslint-disable-next-line @typescript-eslint/naming-convention
160
- js_external: e.value.jsLib.join(";"),
161
- // eslint-disable-next-line @typescript-eslint/naming-convention
162
- css_external: e.value.cssLib.join(";"),
163
- layout: e.value.codepenLayout,
164
- // eslint-disable-next-line @typescript-eslint/naming-convention
165
- html_pre_processor: o.value ? o.value.html[1] : "none",
166
- // eslint-disable-next-line @typescript-eslint/naming-convention
167
- js_pre_processor: o.value ? o.value.js[1] : e.value.jsx ? "babel" : "none",
168
- // eslint-disable-next-line @typescript-eslint/naming-convention
169
- css_pre_processor: o.value ? o.value.css[1] : "none",
170
- editors: e.value.codepenEditors
171
- })
172
- }),
173
- t("button", {
174
- type: "submit",
175
- "aria-label": "Codepen",
176
- "data-balloon-pos": "up"
177
- }, t(y, {
178
- icon: "icon-codepen",
179
- class: "codepen-button"
180
- }))
181
- ]
182
- ) : null
183
- ])
99
+ t(
100
+ "div",
101
+ {
102
+ style: { display: "flex" }
103
+ },
104
+ [
105
+ e.value.isLegal && e.value.jsfiddle !== !1 ? t(
106
+ "form",
107
+ {
108
+ class: "code-demo-jsfiddle",
109
+ target: "_blank",
110
+ action: "https://jsfiddle.net/api/post/library/pure/",
111
+ method: "post"
112
+ },
113
+ [
114
+ t("input", {
115
+ type: "hidden",
116
+ name: "html",
117
+ value: e.value.html
118
+ }),
119
+ t("input", {
120
+ type: "hidden",
121
+ name: "js",
122
+ value: e.value.js
123
+ }),
124
+ t("input", {
125
+ type: "hidden",
126
+ name: "css",
127
+ value: e.value.css
128
+ }),
129
+ t("input", { type: "hidden", name: "wrap", value: "1" }),
130
+ t("input", { type: "hidden", name: "panel_js", value: "3" }),
131
+ t("input", {
132
+ type: "hidden",
133
+ name: "resources",
134
+ value: [...e.value.cssLib, ...e.value.jsLib].join(",")
135
+ }),
136
+ t(
137
+ "button",
138
+ {
139
+ type: "submit",
140
+ "aria-label": "JSFiddle",
141
+ "data-balloon-pos": "up"
142
+ },
143
+ t(y, {
144
+ icon: "icon-jsfiddle",
145
+ class: "jsfiddle-button"
146
+ })
147
+ )
148
+ ]
149
+ ) : null,
150
+ !e.value.isLegal || e.value.codepen !== !1 ? t(
151
+ "form",
152
+ {
153
+ class: "code-demo-codepen",
154
+ target: "_blank",
155
+ action: "https://codepen.io/pen/define",
156
+ method: "post"
157
+ },
158
+ [
159
+ t("input", {
160
+ type: "hidden",
161
+ name: "data",
162
+ value: JSON.stringify({
163
+ html: e.value.html,
164
+ js: e.value.js,
165
+ css: e.value.css,
166
+ // eslint-disable-next-line @typescript-eslint/naming-convention
167
+ js_external: e.value.jsLib.join(";"),
168
+ // eslint-disable-next-line @typescript-eslint/naming-convention
169
+ css_external: e.value.cssLib.join(";"),
170
+ layout: e.value.codepenLayout,
171
+ // eslint-disable-next-line @typescript-eslint/naming-convention
172
+ html_pre_processor: o.value ? o.value.html[1] : "none",
173
+ // eslint-disable-next-line @typescript-eslint/naming-convention
174
+ js_pre_processor: o.value ? o.value.js[1] : e.value.jsx ? "babel" : "none",
175
+ // eslint-disable-next-line @typescript-eslint/naming-convention
176
+ css_pre_processor: o.value ? o.value.css[1] : "none",
177
+ editors: e.value.codepenEditors
178
+ })
179
+ }),
180
+ t(
181
+ "button",
182
+ {
183
+ type: "submit",
184
+ "aria-label": "Codepen",
185
+ "data-balloon-pos": "up"
186
+ },
187
+ t(y, {
188
+ icon: "icon-codepen",
189
+ class: "codepen-button"
190
+ })
191
+ )
192
+ ]
193
+ ) : null
194
+ ]
195
+ )
184
196
  ]),
185
197
  t("div", {
186
198
  ref: f,
@@ -57,7 +57,9 @@ const n = m("VUEPRESS_CODE_TAB_STORE", {}), C = g({
57
57
  }
58
58
  }, y = () => {
59
59
  if (e.tabId) {
60
- const a = e.data.findIndex(({ title: t, id: u = t }) => n.value[e.tabId] === u);
60
+ const a = e.data.findIndex(
61
+ ({ title: t, id: u = t }) => n.value[e.tabId] === u
62
+ );
61
63
  if (a !== -1)
62
64
  return a;
63
65
  }
@@ -94,6 +94,7 @@ import "@popperjs/core";
94
94
  import "../../hooks/use-z-index/index.js";
95
95
  import "../message/index.js";
96
96
  import "../infinite-scroll/index.js";
97
+ import "../progress-i/index.js";
97
98
  import ot from "./toc.js";
98
99
  import { useCopyCode as et } from "./use/useCopyCode.js";
99
100
  import { useActiveHeaderLinks as it } from "./use/useActiveHeaderLinks.js";
@@ -109,7 +110,7 @@ const mt = { class: "info-container" }, pt = {
109
110
  tt("md-container")
110
111
  ), ct = D({
111
112
  name: "vft-md-container"
112
- }), pe = /* @__PURE__ */ D({
113
+ }), ne = /* @__PURE__ */ D({
113
114
  ...ct,
114
115
  setup(lt, { expose: w }) {
115
116
  const u = $(), { initPhotoSwipe: E } = J(`.${p.e("content")} img`);
@@ -208,5 +209,5 @@ const mt = { class: "info-container" }, pt = {
208
209
  }
209
210
  });
210
211
  export {
211
- pe as default
212
+ ne as default
212
213
  };
@@ -72,7 +72,12 @@ const k = m({
72
72
  );
73
73
  }), () => {
74
74
  const o = e.items.length ? s(e.items, e.headerDepth, e.route) : s([], e.headerDepth, e.route);
75
- return o ? n("div", { class: "toc-place-holder" }, [n("aside", { id: "toc" }, [n("div", { class: "toc-header" }, ["此页内容"]), n("div", { class: "toc-wrapper", ref: t }, [o])])]) : null;
75
+ return o ? n("div", { class: "toc-place-holder" }, [
76
+ n("aside", { id: "toc" }, [
77
+ n("div", { class: "toc-header" }, ["此页内容"]),
78
+ n("div", { class: "toc-wrapper", ref: t }, [o])
79
+ ])
80
+ ]) : null;
76
81
  };
77
82
  }
78
83
  });
@@ -14,13 +14,7 @@ const I = ({
14
14
  A(a, "");
15
15
  return;
16
16
  }
17
- const y = window.innerHeight + n - 100, H = u.scrollHeight, g = Math.abs(H - y) < i, q = Array.from(
18
- document.querySelectorAll(e)
19
- ), t = Array.from(
20
- document.querySelectorAll(c)
21
- ).filter(
22
- (o) => q.some((r) => r.hash === o.hash)
23
- );
17
+ const y = window.innerHeight + n - 100, H = u.scrollHeight, g = Math.abs(H - y) < i, q = Array.from(document.querySelectorAll(e)), t = Array.from(document.querySelectorAll(c)).filter((o) => q.some((r) => r.hash === o.hash));
24
18
  for (let o = 0; o < t.length; o++) {
25
19
  const r = t[o], f = t[o + 1], R = n >= (((d = r.parentElement) == null ? void 0 : d.offsetTop) ?? 0) - 100, S = !f || n < (((m = f.parentElement) == null ? void 0 : m.offsetTop) ?? 0) - 100;
26
20
  if (!(R && S))
@@ -54,7 +54,9 @@ const c = y("VUEPRESS_TAB_STORE", {}), $ = g({
54
54
  a.key === " " || a.key === "Enter" ? (a.preventDefault(), i.value = e) : a.key === "ArrowRight" ? (a.preventDefault(), o()) : a.key === "ArrowLeft" && (a.preventDefault(), s()), f();
55
55
  }, m = () => {
56
56
  if (t.tabId) {
57
- const a = t.data.findIndex(({ title: e, id: l = e }) => c.value[t.tabId] === l);
57
+ const a = t.data.findIndex(
58
+ ({ title: e, id: l = e }) => c.value[t.tabId] === l
59
+ );
58
60
  if (a !== -1)
59
61
  return a;
60
62
  }
@@ -93,6 +93,7 @@ import "@popperjs/core";
93
93
  import "../../hooks/use-z-index/index.js";
94
94
  import "../message/index.js";
95
95
  import "../infinite-scroll/index.js";
96
+ import "../progress-i/index.js";
96
97
  import _ from "./use-menu.js";
97
98
  const tt = ["title"], g = (
98
99
  /* hoist-static*/
@@ -100,7 +101,7 @@ const tt = ["title"], g = (
100
101
  ), et = Y({
101
102
  name: "vft-menu-item",
102
103
  inheritAttrs: !1
103
- }), He = /* @__PURE__ */ Y({
104
+ }), Je = /* @__PURE__ */ Y({
104
105
  ...et,
105
106
  props: {
106
107
  index: {},
@@ -117,7 +118,10 @@ const tt = ["title"], g = (
117
118
  setup(e, { emit: c }) {
118
119
  const B = G(), D = H(), F = U("menu"), f = U("menu-item"), t = e.isAloneUse ? null : P("rootMenu");
119
120
  !t && !e.isAloneUse && z(g.b(), "can not inject root menu");
120
- const { parentMenu: C, indexPath: N } = _(B, u(() => e.index)), m = e.isAloneUse ? null : P(`subMenu:${C.value.uid}`);
121
+ const { parentMenu: C, indexPath: N } = _(
122
+ B,
123
+ u(() => e.index)
124
+ ), m = e.isAloneUse ? null : P(`subMenu:${C.value.uid}`);
121
125
  !m && !e.isAloneUse && z(g.b(), "can not inject sub menu");
122
126
  const $ = u(() => e.index === (t == null ? void 0 : t.activeIndex)), n = J({
123
127
  index: e.index,
@@ -197,5 +201,5 @@ const tt = ["title"], g = (
197
201
  }
198
202
  });
199
203
  export {
200
- He as default
204
+ Je as default
201
205
  };
@@ -32,9 +32,7 @@ const I = (
32
32
  },
33
33
  emits: ["update:collapse", "sub-menu-click", "select", "close", "open"],
34
34
  setup(n, { expose: V, emit: v }) {
35
- const y = X(), h = Y(), O = h.appContext.config.globalProperties.$router, i = s(), k = W("sub-menu"), f = s(-1), u = s(
36
- n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []
37
- ), a = s(n.defaultActive), r = s({}), p = s({}), $ = Z(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), q = () => {
35
+ const y = X(), h = Y(), O = h.appContext.config.globalProperties.$router, i = s(), k = W("sub-menu"), f = s(-1), u = s(n.defaultOpeneds && !n.collapse ? n.defaultOpeneds.slice(0) : []), a = s(n.defaultActive), r = s({}), p = s({}), $ = Z(() => n.mode === "horizontal" || n.mode === "vertical" && n.collapse), q = () => {
38
36
  const e = a.value && r.value[a.value];
39
37
  if (!e || n.mode === "horizontal" || n.collapse)
40
38
  return;
@@ -160,10 +158,7 @@ const I = (
160
158
  let e = ((m = y.default) == null ? void 0 : m.call(y)) ?? [];
161
159
  const t = [];
162
160
  if (n.mode === "horizontal" && i.value) {
163
- const c = ae(e), M = f.value === -1 ? c : c.slice(
164
- 0,
165
- f.value
166
- ), d = f.value === -1 ? [] : c.slice(f.value);
161
+ const c = ae(e), M = f.value === -1 ? c : c.slice(0, f.value), d = f.value === -1 ? [] : c.slice(f.value);
167
162
  d != null && d.length && n.ellipsis && (e = M, t.push(
168
163
  x(
169
164
  ie,
@@ -172,13 +167,10 @@ const I = (
172
167
  class: k.e("hide-arrow")
173
168
  },
174
169
  {
175
- title: () => x(
176
- oe,
177
- {
178
- icon: "icon-menu-line",
179
- class: k.e("icon-more")
180
- }
181
- ),
170
+ title: () => x(oe, {
171
+ icon: "icon-menu-line",
172
+ class: k.e("icon-more")
173
+ }),
182
174
  default: () => d
183
175
  }
184
176
  )
@@ -93,6 +93,7 @@ import "@popperjs/core";
93
93
  import "../../hooks/use-z-index/index.js";
94
94
  import "../message/index.js";
95
95
  import "../infinite-scroll/index.js";
96
+ import "../progress-i/index.js";
96
97
  import he from "./use-menu.js";
97
98
  import { useMenuCssVar as Te } from "./use-menu-css-var.js";
98
99
  const q = (
@@ -101,7 +102,7 @@ const q = (
101
102
  ), Ce = G({
102
103
  name: "vft-sub-menu",
103
104
  inheritAttrs: !1
104
- }), mt = /* @__PURE__ */ G({
105
+ }), ct = /* @__PURE__ */ G({
105
106
  ...Ce,
106
107
  props: {
107
108
  index: {},
@@ -316,5 +317,5 @@ const q = (
316
317
  }
317
318
  });
318
319
  export {
319
- mt as default
320
+ ct as default
320
321
  };
@@ -36,9 +36,7 @@ const te = ["id"], se = ["innerHTML"], ie = ["onClick"], ge = /* @__PURE__ */ V(
36
36
  ]), v = s(() => (o.icon ? X(o.icon) ? o.icon : { icon: o.icon } : "") || z.get(o.type) || ""), O = s(() => {
37
37
  const e = o.type;
38
38
  return { [t.bm("icon", e)]: e };
39
- }), E = s(() => ee(o.id)), y = s(
40
- () => oe(o.id, o.offset) + E.value
41
- ), I = s(() => g.value + y.value), N = s(() => ({
39
+ }), E = s(() => ee(o.id)), y = s(() => oe(o.id, o.offset) + E.value), I = s(() => g.value + y.value), N = s(() => ({
42
40
  top: `${y.value}px`,
43
41
  zIndex: L.value
44
42
  }));
@@ -40,7 +40,11 @@ const x = (e) => {
40
40
  onDestroy: () => {
41
41
  u(null, c);
42
42
  }
43
- }, l = y(E, t, a(t.message) || h(t.message) ? { default: a(t.message) ? t.message : () => t.message } : null);
43
+ }, l = y(
44
+ E,
45
+ t,
46
+ a(t.message) || h(t.message) ? { default: a(t.message) ? t.message : () => t.message } : null
47
+ );
44
48
  l.appContext = o || p._context, u(l, c), e.appendChild(c.firstElementChild);
45
49
  const m = l.component, d = {
46
50
  id: s,
@@ -92,7 +92,8 @@ import "@popperjs/core";
92
92
  import "../../hooks/use-z-index/index.js";
93
93
  import "../message/index.js";
94
94
  import "../infinite-scroll/index.js";
95
- const ao = /* @__PURE__ */ O({
95
+ import "../progress-i/index.js";
96
+ const uo = /* @__PURE__ */ O({
96
97
  __name: "modal-footer-action",
97
98
  props: {
98
99
  showSubmitButton: { type: Boolean },
@@ -134,5 +135,5 @@ const ao = /* @__PURE__ */ O({
134
135
  }
135
136
  });
136
137
  export {
137
- ao as default
138
+ uo as default
138
139
  };