vft 0.0.32 → 0.0.35

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/dist/index.css +1 -1
  2. package/es/components/avatar/avatar.vue2.mjs +3 -2
  3. package/es/components/avatar/index.mjs +4 -3
  4. package/es/components/back-top/back-top.vue.d.ts +2 -2
  5. package/es/components/back-top/back-top.vue2.mjs +3 -2
  6. package/es/components/back-top/index.d.ts +2 -2
  7. package/es/components/back-top/index.mjs +4 -3
  8. package/es/components/back-top/use-back-top.mjs +11 -10
  9. package/es/components/clamp/clamp.vue2.mjs +10 -9
  10. package/es/components/clamp/index.mjs +4 -3
  11. package/es/components/clamp-toggle/clamp-toggle.vue2.mjs +3 -2
  12. package/es/components/clamp-toggle/index.mjs +4 -3
  13. package/es/components/collapse-transition/src/collapse-transition.vue2.mjs +6 -5
  14. package/es/components/config-provider/config-provider.vue2.mjs +3 -2
  15. package/es/components/config-provider/hooks/use-global-config.d.ts +1 -1
  16. package/es/components/config-provider/hooks/use-global-config.mjs +5 -4
  17. package/es/components/config-provider/index.mjs +11 -10
  18. package/es/components/context-menu/context-menu.vue2.mjs +4 -2
  19. package/es/components/descriptions/description-item.vue2.mjs +6 -5
  20. package/es/components/descriptions/description.vue2.mjs +14 -13
  21. package/es/components/descriptions/descriptions-cell.mjs +12 -11
  22. package/es/components/descriptions/descriptions-row.vue2.mjs +12 -11
  23. package/es/components/descriptions/index.mjs +6 -5
  24. package/es/components/divider/divider.vue2.mjs +6 -5
  25. package/es/components/divider/index.mjs +4 -3
  26. package/es/components/empty/empty.vue2.mjs +3 -2
  27. package/es/components/empty/index.mjs +6 -5
  28. package/es/components/exception/index.mjs +4 -3
  29. package/es/components/focus-trap/focus-trap.vue2.mjs +1 -1
  30. package/es/components/footer-layout/footer-layout.vue2.mjs +10 -9
  31. package/es/components/footer-layout/index.mjs +4 -3
  32. package/es/components/full-screen/full-screen.vue2.mjs +7 -6
  33. package/es/components/full-screen/index.mjs +4 -3
  34. package/es/components/header-layout/header-layout.vue2.mjs +3 -2
  35. package/es/components/header-layout/index.mjs +4 -3
  36. package/es/components/icon/icon.vue2.mjs +7 -6
  37. package/es/components/icon/index.mjs +5 -4
  38. package/es/components/icon-text/icon-text.vue.d.ts +2 -2
  39. package/es/components/icon-text/icon-text.vue2.mjs +10 -9
  40. package/es/components/icon-text/index.d.ts +2 -2
  41. package/es/components/icon-text/index.mjs +4 -3
  42. package/es/components/iframe-layout/iframe-layout.vue2.mjs +3 -2
  43. package/es/components/iframe-layout/iframe-page.vue2.mjs +3 -2
  44. package/es/components/iframe-layout/index.mjs +4 -3
  45. package/es/components/image/image.vue2.mjs +8 -7
  46. package/es/components/image/index.mjs +4 -3
  47. package/es/components/input/index.mjs +4 -3
  48. package/es/components/input/input.vue2.mjs +3 -2
  49. package/es/components/link/index.mjs +4 -3
  50. package/es/components/link/link.vue2.mjs +3 -2
  51. package/es/components/loading/loading.mjs +56 -50
  52. package/es/components/loading/service.mjs +20 -19
  53. package/es/components/logo/index.mjs +4 -3
  54. package/es/components/logo/logo.vue2.mjs +10 -9
  55. package/es/components/md-code-demo/index.mjs +4 -3
  56. package/es/components/md-code-demo/md-code-demo.mjs +4 -2
  57. package/es/components/md-code-tabs/index.mjs +4 -3
  58. package/es/components/md-comment/index.mjs +4 -3
  59. package/es/components/md-comment/md-comment.vue2.mjs +1 -1
  60. package/es/components/md-container/index.mjs +4 -3
  61. package/es/components/md-container/md-container.vue2.mjs +43 -42
  62. package/es/components/md-tabs/index.mjs +4 -3
  63. package/es/components/md-vue-playground/index.mjs +4 -3
  64. package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +11 -10
  65. package/es/components/menu/index.d.ts +4 -4
  66. package/es/components/menu/index.mjs +9 -8
  67. package/es/components/menu/menu-collapse-transition.vue2.mjs +3 -2
  68. package/es/components/menu/menu-item-group.vue2.mjs +8 -7
  69. package/es/components/menu/menu-item.vue.d.ts +2 -2
  70. package/es/components/menu/menu-item.vue2.mjs +3 -2
  71. package/es/components/menu/menu.vue2.mjs +3 -2
  72. package/es/components/menu/sub-menu.vue2.mjs +3 -2
  73. package/es/components/menu/use-menu-css-var.mjs +3 -2
  74. package/es/components/message/index.mjs +8 -7
  75. package/es/components/message/message.vue2.mjs +5 -4
  76. package/es/components/message/method.mjs +17 -15
  77. package/es/components/multiple-tabs/multiple-tabs.vue2.mjs +3 -2
  78. package/es/components/multiple-tabs/tab-content.vue2.mjs +4 -2
  79. package/es/components/multiple-tabs/use/use-tab-dropdown.mjs +16 -16
  80. package/es/components/overlay/index.mjs +4 -3
  81. package/es/components/overlay/overlay.vue2.mjs +16 -15
  82. package/es/components/page-wrapper/index.mjs +4 -3
  83. package/es/components/page-wrapper/page-wrapper.vue2.mjs +6 -5
  84. package/es/components/pagination/components/jumper.vue2.mjs +15 -14
  85. package/es/components/pagination/components/pager.vue2.mjs +3 -2
  86. package/es/components/pagination/components/sizes.vue2.mjs +3 -2
  87. package/es/components/pagination/components/total.vue2.mjs +5 -4
  88. package/es/components/pagination/index.mjs +9 -8
  89. package/es/components/pagination/pagination.mjs +19 -18
  90. package/es/components/popover/index.d.ts +2 -2
  91. package/es/components/popover/index.mjs +4 -3
  92. package/es/components/popover/popover.vue.d.ts +2 -2
  93. package/es/components/popover/popover.vue2.mjs +3 -2
  94. package/es/components/popper/arrow.vue2.mjs +3 -2
  95. package/es/components/popper/composables/use-content-dom.mjs +3 -2
  96. package/es/components/popper/composables/use-content.mjs +4 -2
  97. package/es/components/popper/index.mjs +10 -9
  98. package/es/components/popper/trigger.vue2.mjs +11 -9
  99. package/es/components/qrcode/index.mjs +4 -3
  100. package/es/components/qrcode/qrcode.vue2.mjs +6 -5
  101. package/es/components/result/index.mjs +4 -3
  102. package/es/components/result/result.vue2.mjs +3 -2
  103. package/es/components/router-view-content/index.d.ts +6 -6
  104. package/es/components/router-view-content/index.mjs +4 -3
  105. package/es/components/router-view-content/router-view-content.vue.d.ts +6 -6
  106. package/es/components/router-view-content/router-view-content.vue2.mjs +17 -16
  107. package/es/components/search/index.mjs +4 -3
  108. package/es/components/search/search.vue2.mjs +3 -2
  109. package/es/components/side-menu/index.mjs +4 -3
  110. package/es/components/side-menu/side-menu.vue2.mjs +14 -12
  111. package/es/components/slot/only-child.mjs +3 -2
  112. package/es/components/tabs/index.mjs +9 -8
  113. package/es/components/tabs/tab-bar.vue2.mjs +3 -2
  114. package/es/components/tabs/tab-nav.vue2.mjs +3 -2
  115. package/es/components/tabs/tab-pane.vue2.mjs +3 -2
  116. package/es/components/tabs/tabs.vue2.mjs +3 -2
  117. package/es/components/tag/index.d.ts +2 -2
  118. package/es/components/tag/index.mjs +4 -3
  119. package/es/components/tag/tag.vue.d.ts +2 -2
  120. package/es/components/tag/tag.vue2.mjs +3 -2
  121. package/es/components/tooltip/content.vue2.mjs +12 -11
  122. package/es/components/tooltip/index.d.ts +2 -2
  123. package/es/components/tooltip/index.mjs +4 -3
  124. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  125. package/es/components/tooltip/tooltip.vue2.mjs +12 -10
  126. package/es/components/tooltip/trigger.vue2.mjs +7 -6
  127. package/es/components/tooltip/utils.mjs +6 -4
  128. package/es/hooks/use-cursor/index.mjs +4 -4
  129. package/es/hooks/use-id/index.mjs +6 -5
  130. package/es/hooks/use-namespace/index.d.ts +1 -1
  131. package/es/hooks/use-namespace/index.mjs +27 -26
  132. package/es/hooks/use-ordered-children/index.mjs +5 -4
  133. package/es/index.mjs +53 -51
  134. package/es/package.json.mjs +1 -1
  135. package/es/utils/index.d.ts +1 -0
  136. package/es/utils/index.mjs +19 -17
  137. package/es/utils/ns-cover.d.ts +1 -0
  138. package/es/utils/ns-cover.mjs +7 -0
  139. package/lib/components/avatar/avatar.vue2.js +1 -1
  140. package/lib/components/avatar/index.js +1 -1
  141. package/lib/components/back-top/back-top.vue.d.ts +2 -2
  142. package/lib/components/back-top/back-top.vue2.js +1 -1
  143. package/lib/components/back-top/index.d.ts +2 -2
  144. package/lib/components/back-top/index.js +1 -1
  145. package/lib/components/back-top/use-back-top.js +1 -1
  146. package/lib/components/clamp/clamp.vue2.js +1 -1
  147. package/lib/components/clamp/index.js +1 -1
  148. package/lib/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
  149. package/lib/components/clamp-toggle/index.js +1 -1
  150. package/lib/components/collapse-transition/src/collapse-transition.vue2.js +1 -1
  151. package/lib/components/config-provider/config-provider.vue2.js +1 -1
  152. package/lib/components/config-provider/hooks/use-global-config.d.ts +1 -1
  153. package/lib/components/config-provider/hooks/use-global-config.js +1 -1
  154. package/lib/components/config-provider/index.js +1 -1
  155. package/lib/components/context-menu/context-menu.vue2.js +1 -1
  156. package/lib/components/descriptions/description-item.vue2.js +1 -1
  157. package/lib/components/descriptions/description.vue2.js +1 -1
  158. package/lib/components/descriptions/descriptions-cell.js +1 -1
  159. package/lib/components/descriptions/descriptions-row.vue2.js +1 -1
  160. package/lib/components/descriptions/index.js +1 -1
  161. package/lib/components/divider/divider.vue2.js +1 -1
  162. package/lib/components/divider/index.js +1 -1
  163. package/lib/components/empty/empty.vue2.js +1 -1
  164. package/lib/components/empty/index.js +1 -1
  165. package/lib/components/exception/index.js +1 -1
  166. package/lib/components/focus-trap/focus-trap.vue2.js +1 -1
  167. package/lib/components/footer-layout/footer-layout.vue2.js +1 -1
  168. package/lib/components/footer-layout/index.js +1 -1
  169. package/lib/components/full-screen/full-screen.vue2.js +1 -1
  170. package/lib/components/full-screen/index.js +1 -1
  171. package/lib/components/header-layout/header-layout.vue2.js +1 -1
  172. package/lib/components/header-layout/index.js +1 -1
  173. package/lib/components/icon/icon.vue2.js +1 -1
  174. package/lib/components/icon/index.js +1 -1
  175. package/lib/components/icon-text/icon-text.vue.d.ts +2 -2
  176. package/lib/components/icon-text/icon-text.vue2.js +1 -1
  177. package/lib/components/icon-text/index.d.ts +2 -2
  178. package/lib/components/icon-text/index.js +1 -1
  179. package/lib/components/iframe-layout/iframe-layout.vue2.js +1 -1
  180. package/lib/components/iframe-layout/iframe-page.vue2.js +1 -1
  181. package/lib/components/iframe-layout/index.js +1 -1
  182. package/lib/components/image/image.vue2.js +1 -1
  183. package/lib/components/image/index.js +1 -1
  184. package/lib/components/input/index.js +1 -1
  185. package/lib/components/input/input.vue2.js +1 -1
  186. package/lib/components/link/index.js +1 -1
  187. package/lib/components/link/link.vue2.js +1 -1
  188. package/lib/components/loading/loading.js +1 -1
  189. package/lib/components/loading/service.js +1 -1
  190. package/lib/components/logo/index.js +1 -1
  191. package/lib/components/logo/logo.vue2.js +1 -1
  192. package/lib/components/md-code-demo/index.js +1 -1
  193. package/lib/components/md-code-demo/md-code-demo.js +1 -1
  194. package/lib/components/md-code-tabs/index.js +1 -1
  195. package/lib/components/md-comment/index.js +1 -1
  196. package/lib/components/md-comment/md-comment.vue2.js +1 -1
  197. package/lib/components/md-container/index.js +1 -1
  198. package/lib/components/md-container/md-container.vue2.js +1 -1
  199. package/lib/components/md-tabs/index.js +1 -1
  200. package/lib/components/md-vue-playground/index.js +1 -1
  201. package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
  202. package/lib/components/menu/index.d.ts +4 -4
  203. package/lib/components/menu/index.js +1 -1
  204. package/lib/components/menu/menu-collapse-transition.vue2.js +1 -1
  205. package/lib/components/menu/menu-item-group.vue2.js +1 -1
  206. package/lib/components/menu/menu-item.vue.d.ts +2 -2
  207. package/lib/components/menu/menu-item.vue2.js +1 -1
  208. package/lib/components/menu/menu.vue2.js +1 -1
  209. package/lib/components/menu/sub-menu.vue2.js +1 -1
  210. package/lib/components/menu/use-menu-css-var.js +1 -1
  211. package/lib/components/message/index.js +1 -1
  212. package/lib/components/message/message.vue2.js +1 -1
  213. package/lib/components/message/method.js +1 -1
  214. package/lib/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  215. package/lib/components/multiple-tabs/tab-content.vue2.js +1 -1
  216. package/lib/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
  217. package/lib/components/overlay/index.js +1 -1
  218. package/lib/components/overlay/overlay.vue2.js +1 -1
  219. package/lib/components/page-wrapper/index.js +1 -1
  220. package/lib/components/page-wrapper/page-wrapper.vue2.js +1 -1
  221. package/lib/components/pagination/components/jumper.vue2.js +1 -1
  222. package/lib/components/pagination/components/pager.vue2.js +1 -1
  223. package/lib/components/pagination/components/sizes.vue2.js +1 -1
  224. package/lib/components/pagination/components/total.vue2.js +1 -1
  225. package/lib/components/pagination/index.js +1 -1
  226. package/lib/components/pagination/pagination.js +1 -1
  227. package/lib/components/popover/index.d.ts +2 -2
  228. package/lib/components/popover/index.js +1 -1
  229. package/lib/components/popover/popover.vue.d.ts +2 -2
  230. package/lib/components/popover/popover.vue2.js +1 -1
  231. package/lib/components/popper/arrow.vue2.js +1 -1
  232. package/lib/components/popper/composables/use-content-dom.js +1 -1
  233. package/lib/components/popper/composables/use-content.js +1 -1
  234. package/lib/components/popper/index.js +1 -1
  235. package/lib/components/popper/trigger.vue2.js +1 -1
  236. package/lib/components/qrcode/index.js +1 -1
  237. package/lib/components/qrcode/qrcode.vue2.js +1 -1
  238. package/lib/components/result/index.js +1 -1
  239. package/lib/components/result/result.vue2.js +1 -1
  240. package/lib/components/router-view-content/index.d.ts +6 -6
  241. package/lib/components/router-view-content/index.js +1 -1
  242. package/lib/components/router-view-content/router-view-content.vue.d.ts +6 -6
  243. package/lib/components/router-view-content/router-view-content.vue2.js +1 -1
  244. package/lib/components/search/index.js +1 -1
  245. package/lib/components/search/search.vue2.js +1 -1
  246. package/lib/components/side-menu/index.js +1 -1
  247. package/lib/components/side-menu/side-menu.vue2.js +1 -1
  248. package/lib/components/slot/only-child.js +1 -1
  249. package/lib/components/tabs/index.js +1 -1
  250. package/lib/components/tabs/tab-bar.vue2.js +1 -1
  251. package/lib/components/tabs/tab-nav.vue2.js +1 -1
  252. package/lib/components/tabs/tab-pane.vue2.js +1 -1
  253. package/lib/components/tabs/tabs.vue2.js +1 -1
  254. package/lib/components/tag/index.d.ts +2 -2
  255. package/lib/components/tag/index.js +1 -1
  256. package/lib/components/tag/tag.vue.d.ts +2 -2
  257. package/lib/components/tag/tag.vue2.js +1 -1
  258. package/lib/components/tooltip/content.vue2.js +1 -1
  259. package/lib/components/tooltip/index.d.ts +2 -2
  260. package/lib/components/tooltip/index.js +1 -1
  261. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  262. package/lib/components/tooltip/tooltip.vue2.js +1 -1
  263. package/lib/components/tooltip/trigger.vue2.js +1 -1
  264. package/lib/components/tooltip/utils.js +1 -1
  265. package/lib/hooks/use-cursor/index.js +1 -1
  266. package/lib/hooks/use-id/index.js +1 -1
  267. package/lib/hooks/use-namespace/index.d.ts +1 -1
  268. package/lib/hooks/use-namespace/index.js +1 -1
  269. package/lib/hooks/use-ordered-children/index.js +1 -1
  270. package/lib/index.js +1 -1
  271. package/lib/package.json.js +1 -1
  272. package/lib/utils/index.d.ts +1 -0
  273. package/lib/utils/index.js +1 -1
  274. package/lib/utils/ns-cover.d.ts +1 -0
  275. package/lib/utils/ns-cover.js +1 -0
  276. package/package.json +6 -6
  277. package/theme-style/index.css +1 -1
  278. package/theme-style/src/side-menu.scss +1 -0
  279. package/theme-style/vft-md-basic-tabs.css +0 -0
  280. package/theme-style/vft-side-menu.css +1 -1
@@ -1,67 +1,73 @@
1
- import { removeClass as v, singleAttrToObj as C } from "@vft/utils";
2
- import { ref as x, reactive as h, watch as w, createApp as A, toRefs as T, h as r, Transition as V, withCtx as N, withDirectives as $, createVNode as k, vShow as y } from "vue";
3
- import { useNamespace as B } from "../../hooks/use-namespace/index.mjs";
1
+ import { removeClass as b, singleAttrToObj as w } from "@vft/utils";
2
+ import { ref as A, reactive as T, watch as V, createApp as I, toRefs as N, h as i, Transition as $, withCtx as k, withDirectives as y, createVNode as B, vShow as S } from "vue";
3
+ import { useNamespace as O } from "../../hooks/use-namespace/index.mjs";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
- import "../../hooks/use-z-index/index.mjs";
6
+ import { useZIndex as j } from "../../hooks/use-z-index/index.mjs";
7
7
  import "@vueuse/core";
8
8
  import "@vue/shared";
9
- import { VftIcon as I } from "../icon/index.mjs";
10
- function q(i) {
9
+ import "../../utils/ns-cover.mjs";
10
+ import { VftIcon as z } from "../icon/index.mjs";
11
+ function J(o) {
11
12
  let c;
12
- const o = B("loading"), s = x(!1), t = h({
13
- ...i,
13
+ const r = O("loading"), s = A(!1), e = T({
14
+ ...o,
14
15
  originalPosition: "",
15
16
  originalOverflow: "",
16
17
  visible: !1
17
18
  });
18
- function g(e) {
19
- t.text = e;
19
+ function p(t) {
20
+ e.text = t;
20
21
  }
21
- w(
22
- () => t.visible,
23
- (e) => {
24
- e || u();
22
+ V(
23
+ () => e.visible,
24
+ (t) => {
25
+ t || u();
25
26
  }
26
27
  );
27
- function b() {
28
- const e = t.parent;
29
- if (!e.vLoadingAddClassList) {
30
- let n = e.getAttribute("loading-number");
31
- n = Number.parseInt(n) - 1, n ? e.setAttribute("loading-number", n.toString()) : (v(e, o.bm("parent", "relative")), e.removeAttribute("loading-number")), v(e, o.bm("parent", "hidden"));
28
+ function x() {
29
+ const t = e.parent;
30
+ if (!t.vLoadingAddClassList) {
31
+ let n = t.getAttribute("loading-number");
32
+ n = Number.parseInt(n) - 1, n ? t.setAttribute("loading-number", n.toString()) : (b(t, r.bm("parent", "relative")), t.removeAttribute("loading-number")), b(t, r.bm("parent", "hidden"));
32
33
  }
33
34
  m(), f.unmount();
34
35
  }
35
36
  function m() {
36
- var e, n;
37
- (n = (e = a.$el) == null ? void 0 : e.parentNode) == null || n.removeChild(a.$el);
37
+ var t, n;
38
+ (n = (t = a.$el) == null ? void 0 : t.parentNode) == null || n.removeChild(a.$el);
38
39
  }
39
40
  function u() {
40
- var e;
41
- i.beforeClose && !i.beforeClose() || (s.value = !0, clearTimeout(c), c = window.setTimeout(l, 400), t.visible = !1, (e = i.closed) == null || e.call(i));
41
+ var t;
42
+ o.beforeClose && !o.beforeClose() || (s.value = !0, clearTimeout(c), c = window.setTimeout(l, 400), e.visible = !1, (t = o.closed) == null || t.call(o));
42
43
  }
43
44
  function l() {
44
45
  if (!s.value)
45
46
  return;
46
- const e = t.parent;
47
- s.value = !1, e.vLoadingAddClassList = void 0, b();
47
+ const t = e.parent;
48
+ s.value = !1, t.vLoadingAddClassList = void 0, x();
48
49
  }
49
- const f = A({
50
+ const f = I({
50
51
  name: "VftLoading",
51
- setup() {
52
+ setup(t, { expose: n }) {
52
53
  return () => {
53
- const e = t.spinner || t.svg, n = t.img, d = t.icon ? C(t.icon, "icon") : !1, p = d ? r(I, d) : n ? r("img", {
54
- class: ["circular circular-img", t.rotate ? "" : "circular-no-rotate"],
55
- src: n
56
- }) : r(
54
+ const L = j();
55
+ n({
56
+ ns: r,
57
+ zIndex: L
58
+ });
59
+ const d = e.spinner || e.svg, v = e.img, g = e.icon ? w(e.icon, "icon") : !1, C = g ? i(z, g) : v ? i("img", {
60
+ class: ["circular circular-img", e.rotate ? "" : "circular-no-rotate"],
61
+ src: v
62
+ }) : i(
57
63
  "svg",
58
64
  {
59
65
  class: "circular",
60
- viewBox: t.svgViewBox ? t.svgViewBox : "0 0 50 50",
61
- ...e ? { innerHTML: e } : {}
66
+ viewBox: e.svgViewBox ? e.svgViewBox : "0 0 50 50",
67
+ ...d ? { innerHTML: d } : {}
62
68
  },
63
69
  [
64
- r("circle", {
70
+ i("circle", {
65
71
  class: "path",
66
72
  cx: "25",
67
73
  cy: "25",
@@ -69,35 +75,35 @@ function q(i) {
69
75
  fill: "none"
70
76
  })
71
77
  ]
72
- ), L = t.text ? r("p", { class: o.b("text") }, [t.text]) : void 0;
73
- return r(
74
- V,
78
+ ), h = e.text ? i("p", { class: r.b("text") }, [e.text]) : void 0;
79
+ return i(
80
+ $,
75
81
  {
76
- name: o.b("fade"),
82
+ name: r.b("fade"),
77
83
  onAfterLeave: l
78
84
  },
79
85
  {
80
- default: N(() => [
81
- $(
82
- k(
86
+ default: k(() => [
87
+ y(
88
+ B(
83
89
  "div",
84
90
  {
85
91
  style: {
86
- backgroundColor: t.background || ""
92
+ backgroundColor: e.background || ""
87
93
  },
88
- class: [o.b("mask"), t.customClass, t.fullscreen ? "is-fullscreen" : ""]
94
+ class: [r.b("mask"), e.customClass, e.fullscreen ? "is-fullscreen" : ""]
89
95
  },
90
96
  [
91
- r(
97
+ i(
92
98
  "div",
93
99
  {
94
- class: o.b("spinner")
100
+ class: r.b("spinner")
95
101
  },
96
- [p, L]
102
+ [C, h]
97
103
  )
98
104
  ]
99
105
  ),
100
- [[y, t.visible]]
106
+ [[S, e.visible]]
101
107
  )
102
108
  ])
103
109
  }
@@ -106,8 +112,8 @@ function q(i) {
106
112
  }
107
113
  }), a = f.mount(document.createElement("div"));
108
114
  return {
109
- ...T(t),
110
- setText: g,
115
+ ...N(e),
116
+ setText: p,
111
117
  removeVftLoadingChild: m,
112
118
  close: u,
113
119
  handleAfterLeave: l,
@@ -118,5 +124,5 @@ function q(i) {
118
124
  };
119
125
  }
120
126
  export {
121
- q as createLoadingComponent
127
+ J as createLoadingComponent
122
128
  };
@@ -2,31 +2,32 @@ import { useNamespace as g } from "../../hooks/use-namespace/index.mjs";
2
2
  import { nextTick as f, unref as n } from "vue";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
- import { useZIndex as b } from "../../hooks/use-z-index/index.mjs";
6
- import { isClient as v } from "@vueuse/core";
5
+ import "../../hooks/use-z-index/index.mjs";
6
+ import { isClient as b } from "@vueuse/core";
7
7
  import "@vue/shared";
8
- import { isString as p, getStyle as s, addClass as c, removeClass as u } from "@vft/utils";
9
- import { createLoadingComponent as y } from "./loading.mjs";
8
+ import { isString as v, getStyle as a, addClass as c, removeClass as u } from "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
10
+ import { createLoadingComponent as p } from "./loading.mjs";
10
11
  let d;
11
12
  const P = function(t = {}) {
12
- if (!v)
13
+ if (!b)
13
14
  return;
14
- const e = x(t);
15
+ const e = y(t);
15
16
  if (e.fullscreen && d)
16
17
  return d;
17
- const r = y({
18
+ const r = p({
18
19
  ...e,
19
20
  closed: () => {
20
21
  var i;
21
22
  (i = e.closed) == null || i.call(e), e.fullscreen && (d = void 0);
22
23
  }
23
24
  });
24
- C(e, e.parent, r), m(e, e.parent, r), e.parent.vLoadingAddClassList = () => m(e, e.parent, r);
25
+ x(e, e.parent, r), m(e, e.parent, r), e.parent.vLoadingAddClassList = () => m(e, e.parent, r);
25
26
  let o = e.parent.getAttribute("loading-number");
26
27
  return o ? o = `${Number.parseInt(o) + 1}` : o = "1", e.parent.setAttribute("loading-number", o), e.parent.appendChild(r.$el), f(() => r.visible.value = e.visible), e.fullscreen && (d = r), r;
27
- }, x = (t) => {
28
+ }, y = (t) => {
28
29
  let e;
29
- return p(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
30
+ return v(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
30
31
  parent: e === document.body || t.body ? document.body : e,
31
32
  background: n(t.background) || "",
32
33
  svg: n(t.svg) || "",
@@ -42,23 +43,23 @@ const P = function(t = {}) {
42
43
  visible: t.visible ?? !0,
43
44
  target: e
44
45
  };
45
- }, C = async (t, e, r) => {
46
- const { nextZIndex: o } = b(), i = {};
46
+ }, x = async (t, e, r) => {
47
+ const { nextZIndex: o } = r.vm.zIndex, i = {};
47
48
  if (t.fullscreen)
48
- r.originalPosition.value = s(document.body, "position"), r.originalOverflow.value = s(document.body, "overflow"), i.zIndex = o();
49
+ r.originalPosition.value = a(document.body, "position"), r.originalOverflow.value = a(document.body, "overflow"), i.zIndex = o();
49
50
  else if (t.parent === document.body) {
50
- r.originalPosition.value = s(document.body, "position"), await f();
51
+ r.originalPosition.value = a(document.body, "position"), await f();
51
52
  for (const l of ["top", "left"]) {
52
- const a = l === "top" ? "scrollTop" : "scrollLeft";
53
+ const s = l === "top" ? "scrollTop" : "scrollLeft";
53
54
  i[l] = `${// @ts-ignore
54
- t.target.getBoundingClientRect()[l] + document.body[a] + document.documentElement[a] - Number.parseInt(s(document.body, `margin-${l}`), 10)}px`;
55
+ t.target.getBoundingClientRect()[l] + document.body[s] + document.documentElement[s] - Number.parseInt(a(document.body, `margin-${l}`), 10)}px`;
55
56
  }
56
57
  for (const l of ["height", "width"])
57
58
  i[l] = `${t.target.getBoundingClientRect()[l]}px`;
58
59
  } else
59
- r.originalPosition.value = s(e, "position");
60
- for (const [l, a] of Object.entries(i))
61
- r.$el.style[l] = a;
60
+ r.originalPosition.value = a(e, "position");
61
+ for (const [l, s] of Object.entries(i))
62
+ r.$el.style[l] = s;
62
63
  }, m = (t, e, r) => {
63
64
  const o = g("loading");
64
65
  ["absolute", "fixed", "sticky"].includes(r.originalPosition.value) ? u(e, o.bm("parent", "relative")) : c(e, o.bm("parent", "relative")), t.fullscreen && t.lock ? c(e, o.bm("parent", "hidden")) : u(e, o.bm("parent", "hidden"));
@@ -2,9 +2,10 @@ import { withInstall as o } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import t from "./logo.vue2.mjs";
6
- const a = o(t);
7
+ const s = o(t);
7
8
  export {
8
- a as VftLogo,
9
- a as default
9
+ s as VftLogo,
10
+ s as default
10
11
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, computed as n, openBlock as u, createElementBlock as p, normalizeClass as l, unref as e, normalizeStyle as g, createElementVNode as s, toDisplayString as f } from "vue";
1
+ import { defineComponent as r, computed as n, openBlock as u, createElementBlock as p, normalizeClass as l, unref as e, normalizeStyle as g, createElementVNode as i, toDisplayString as f } from "vue";
2
2
  import { useRouterHelper as d } from "@vft/router";
3
3
  import { useNamespace as h } from "../../hooks/use-namespace/index.mjs";
4
4
  import "@popperjs/core";
@@ -7,12 +7,13 @@ import "../../hooks/use-z-index/index.mjs";
7
7
  import "@vueuse/core";
8
8
  import "@vue/shared";
9
9
  import "@vft/utils";
10
+ import "../../utils/ns-cover.mjs";
10
11
  const k = ["src"], o = (
11
12
  /* hoist-static*/
12
13
  h("logo")
13
- ), C = c({
14
+ ), C = r({
14
15
  name: o.b()
15
- }), N = /* @__PURE__ */ c({
16
+ }), S = /* @__PURE__ */ r({
16
17
  ...C,
17
18
  props: {
18
19
  title: null,
@@ -20,27 +21,27 @@ const k = ["src"], o = (
20
21
  jumpPath: null
21
22
  },
22
23
  setup(t) {
23
- const i = n(() => [o.b()]), { go: r } = d();
24
+ const s = n(() => [o.b()]), { go: c } = d();
24
25
  function m() {
25
- t.jumpPath && r(t.jumpPath);
26
+ t.jumpPath && c(t.jumpPath);
26
27
  }
27
28
  const a = n(() => t.jumpPath ? {} : o.cssVarBlock({ cursor: "inital" }));
28
29
  return (j, P) => (u(), p("div", {
29
- class: l(e(i)),
30
+ class: l(e(s)),
30
31
  onClick: m,
31
32
  style: g(e(a))
32
33
  }, [
33
- s("img", {
34
+ i("img", {
34
35
  class: l(e(o).e("img")),
35
36
  src: t.logo,
36
37
  alt: ""
37
38
  }, null, 10, k),
38
- s("div", {
39
+ i("div", {
39
40
  class: l(["ml-2 truncate", e(o).e("title")])
40
41
  }, f(t.title), 3)
41
42
  ], 6));
42
43
  }
43
44
  });
44
45
  export {
45
- N as default
46
+ S as default
46
47
  };
@@ -2,9 +2,10 @@ import { withInstall as o } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import t from "./md-code-demo.mjs";
6
- const d = o(t);
7
+ const f = o(t);
7
8
  export {
8
- d as VftMdCodeDemo,
9
- d as default
9
+ f as VftMdCodeDemo,
10
+ f as default
10
11
  };
@@ -1,17 +1,19 @@
1
1
  import { defineComponent as C, ref as n, computed as u, onMounted as L, withDirectives as S, h as t } from "vue";
2
+ import "../config-provider/hooks/use-global-config.mjs";
2
3
  import "@popperjs/core";
3
4
  import "lodash";
4
5
  import "../../hooks/use-z-index/index.mjs";
5
6
  import "@vueuse/core";
6
7
  import "@vue/shared";
7
8
  import "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
8
10
  import { VftIcon as y } from "../icon/index.mjs";
9
11
  import { vLoading as _ } from "../loading/directive.mjs";
10
12
  import { getCode as N, getReactCode as w, getVueCode as x, getNormalCode as D } from "./code-demo/code.mjs";
11
13
  import { loadNormal as E, loadVue as M, loadReact as R } from "./code-demo/loadScript.mjs";
12
14
  import "balloon-css/balloon.css";
13
15
  import { atou as b, injectCSS as k, injectScript as J } from "./utils.mjs";
14
- const O = 800, B = C({
16
+ const O = 800, P = C({
15
17
  name: "VftMdCodeDemo",
16
18
  props: {
17
19
  /**
@@ -208,5 +210,5 @@ const O = 800, B = C({
208
210
  }
209
211
  });
210
212
  export {
211
- B as default
213
+ P as default
212
214
  };
@@ -2,9 +2,10 @@ import { withInstall as o } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import t from "./md-code-tabs.mjs";
6
- const d = o(t);
7
+ const s = o(t);
7
8
  export {
8
- d as VftMdCodeTabs,
9
- d as default
9
+ s as VftMdCodeTabs,
10
+ s as default
10
11
  };
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import m from "./md-comment.vue2.mjs";
6
- const a = t(m);
7
+ const n = t(m);
7
8
  export {
8
- a as VftMdComment,
9
- a as default
9
+ n as VftMdComment,
10
+ n as default
10
11
  };
@@ -6,8 +6,8 @@ import "../../hooks/use-z-index/index.mjs";
6
6
  import "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
9
10
  import { init as l } from "@waline/client";
10
- import "@waline/client/dist/waline.css";
11
11
  const s = ["id"], e = (
12
12
  /* hoist-static*/
13
13
  p("md-comment")
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./md-container.vue2.mjs";
6
- const f = t(o);
7
+ const n = t(o);
7
8
  export {
8
- f as VftMdContainer,
9
- f as default
9
+ n as VftMdContainer,
10
+ n as default
10
11
  };
@@ -1,17 +1,4 @@
1
- import { defineComponent as C, getCurrentInstance as z, ref as P, onMounted as S, nextTick as b, unref as t, openBlock as i, createElementBlock as s, normalizeClass as p, createBlock as h, createCommentVNode as v, createElementVNode as o, toDisplayString as x, createVNode as n, Fragment as B, renderList as I, withCtx as M, createTextVNode as R, renderSlot as $ } from "vue";
2
- import "photoswipe/dist/photoswipe.css";
3
- import { usePhotoSwipe as A } from "@vft/use";
4
- import { jumpElement as F, getCssVarValue as H, getRandomElementForArr as L, formatToDateTime as j, getDayTimestamp as J } from "@vft/utils";
5
- import { useNamespace as O } from "../../hooks/use-namespace/index.mjs";
6
- import "@popperjs/core";
7
- import "lodash";
8
- import "../../hooks/use-z-index/index.mjs";
9
- import "@vueuse/core";
10
- import "@vue/shared";
11
- import Y from "./toc.mjs";
12
- import { useCopyCode as q } from "./use/useCopyCode.mjs";
13
- import { useActiveHeaderLinks as G } from "./use/useActiveHeaderLinks.mjs";
14
- import { COMP_TYPE as K } from "./utils.mjs";
1
+ import { defineComponent as C, getCurrentInstance as z, ref as P, onMounted as S, nextTick as b, unref as t, openBlock as i, createElementBlock as s, normalizeClass as p, createBlock as g, createCommentVNode as v, createElementVNode as o, toDisplayString as x, createVNode as a, Fragment as B, renderList as I, withCtx as M, createTextVNode as R, renderSlot as $ } from "vue";
15
2
  import "../divider/index.mjs";
16
3
  import { VftIcon as y } from "../icon/index.mjs";
17
4
  import "../avatar/index.mjs";
@@ -23,10 +10,12 @@ import "../collapse-transition/index.mjs";
23
10
  import "../tooltip/index.mjs";
24
11
  import "../popover/index.mjs";
25
12
  import "../menu/index.mjs";
13
+ import { jumpElement as A, getRandomElementForArr as F, formatToDateTime as H, getDayTimestamp as L } from "@vft/utils";
14
+ import { usePhotoSwipe as j } from "@vft/use";
26
15
  import "../multiple-tabs/multiple-tabs.vue2.mjs";
27
- import { useRouterHelper as Q } from "@vft/router";
16
+ import { useRouterHelper as J } from "@vft/router";
28
17
  import "@vft/store";
29
- import { useRoute as U } from "vue-router";
18
+ import { useRoute as O } from "vue-router";
30
19
  import "../header-layout/index.mjs";
31
20
  import "../footer-layout/index.mjs";
32
21
  import "../iframe-layout/index.mjs";
@@ -36,12 +25,12 @@ import "../back-top/index.mjs";
36
25
  import "../config-provider/index.mjs";
37
26
  import "../descriptions/index.mjs";
38
27
  import "../full-screen/index.mjs";
39
- import { VftIconText as W } from "../icon-text/index.mjs";
28
+ import { VftIconText as Y } from "../icon-text/index.mjs";
40
29
  import "../image/index.mjs";
41
30
  import "../input/index.mjs";
42
31
  import "../link/index.mjs";
43
32
  import "../pagination/index.mjs";
44
- import { VftTag as X } from "../tag/index.mjs";
33
+ import { VftTag as q } from "../tag/index.mjs";
45
34
  import "../side-menu/index.mjs";
46
35
  import "../qrcode/index.mjs";
47
36
  import "../overlay/index.mjs";
@@ -51,12 +40,24 @@ import "../page-wrapper/index.mjs";
51
40
  import "../exception/index.mjs";
52
41
  import "../search/index.mjs";
53
42
  import "./index.mjs";
54
- import { VftMdComment as Z } from "../md-comment/index.mjs";
43
+ import { VftMdComment as G } from "../md-comment/index.mjs";
55
44
  import "../md-tabs/index.mjs";
56
45
  import "../md-vue-playground/index.mjs";
57
46
  import "../md-code-demo/index.mjs";
58
47
  import "../md-code-tabs/index.mjs";
59
48
  import "../message/index.mjs";
49
+ import { useNamespace as K } from "../../hooks/use-namespace/index.mjs";
50
+ import "@popperjs/core";
51
+ import "lodash";
52
+ import "../../hooks/use-z-index/index.mjs";
53
+ import "@vueuse/core";
54
+ import "@vue/shared";
55
+ import { cssVarValue as Q } from "../../utils/ns-cover.mjs";
56
+ import "photoswipe/dist/photoswipe.css";
57
+ import U from "./toc.mjs";
58
+ import { useCopyCode as W } from "./use/useCopyCode.mjs";
59
+ import { useActiveHeaderLinks as X } from "./use/useActiveHeaderLinks.mjs";
60
+ import { COMP_TYPE as Z } from "./utils.mjs";
60
61
  const tt = { class: "info-container" }, ot = {
61
62
  key: 0,
62
63
  class: "flex align-center"
@@ -65,34 +66,34 @@ const tt = { class: "info-container" }, ot = {
65
66
  title: "阅读量"
66
67
  }, it = ["data-path"], e = (
67
68
  /* hoist-static*/
68
- O("md-container")
69
+ K("md-container")
69
70
  ), mt = C({
70
71
  name: e.b()
71
- }), _o = /* @__PURE__ */ C({
72
+ }), ho = /* @__PURE__ */ C({
72
73
  ...mt,
73
74
  setup(pt, { expose: T }) {
74
- const k = z(), { initPhotoSwipe: V } = A(`.${e.e("content")} img`);
75
- V(), G({}), q();
76
- const m = P(), r = U();
75
+ const k = z(), { initPhotoSwipe: V } = j(`.${e.e("content")} img`);
76
+ V(), X({}), W();
77
+ const m = P(), r = O();
77
78
  S(() => {
78
79
  b(() => {
79
80
  m.value = k.exposed.infos, setTimeout(() => {
80
- F(r.hash.replace("#", ""));
81
+ A(r.hash.replace("#", ""));
81
82
  });
82
83
  });
83
84
  }), T({
84
85
  infos: t(m)
85
86
  });
86
- const w = location.pathname, { go: D } = Q();
87
- function E(a) {
88
- D("/?tag=" + a);
87
+ const w = location.pathname, { go: D } = J();
88
+ function E(n) {
89
+ D("/?tag=" + n);
89
90
  }
90
- return (a, nt) => {
91
+ return (n, at) => {
91
92
  var c, l, d, u, f, _;
92
93
  return i(), s("div", {
93
94
  class: p(t(e).b())
94
95
  }, [
95
- (c = m.value) != null && c.sideData ? (i(), h(t(Y), {
96
+ (c = m.value) != null && c.sideData ? (i(), g(t(U), {
96
97
  key: 0,
97
98
  items: m.value.sideData
98
99
  }, null, 8, ["items"])) : v("", !0),
@@ -104,35 +105,35 @@ const tt = { class: "info-container" }, ot = {
104
105
  }, x((l = t(r).meta) == null ? void 0 : l.title), 3),
105
106
  o("div", tt, [
106
107
  (u = (d = t(r).meta) == null ? void 0 : d.category) != null && u.length ? (i(), s("div", ot, [
107
- n(t(y), {
108
- color: t(H)("--vft-primary-color"),
108
+ a(t(y), {
109
+ color: t(Q)("primary-color").value,
109
110
  icon: "i-bx:category",
110
111
  class: "mr-8px"
111
112
  }, null, 8, ["color"]),
112
- (i(!0), s(B, null, I((f = t(r).meta) == null ? void 0 : f.category, (g, N) => (i(), h(t(X), {
113
+ (i(!0), s(B, null, I((f = t(r).meta) == null ? void 0 : f.category, (h, N) => (i(), g(t(q), {
113
114
  size: "small",
114
115
  class: "mr-5px cursor-pointer",
115
- type: t(L)(t(K), 1)[0],
116
+ type: t(F)(t(Z), 1)[0],
116
117
  key: N,
117
- onClick: (at) => E(g)
118
+ onClick: (nt) => E(h)
118
119
  }, {
119
120
  default: M(() => [
120
- R(x(g), 1)
121
+ R(x(h), 1)
121
122
  ]),
122
123
  _: 2
123
124
  }, 1032, ["type", "onClick"]))), 128))
124
125
  ])) : v("", !0),
125
126
  o("div", et, [
126
- n(t(W), {
127
+ a(t(Y), {
127
128
  title: "发布时间",
128
129
  icon: "i-uiw:date",
129
130
  size: 14,
130
131
  class: "mr-10px",
131
132
  distance: 5,
132
- text: t(j)(new Date((_ = t(r).meta) == null ? void 0 : _.date).getTime() - t(J)())
133
+ text: t(H)(new Date((_ = t(r).meta) == null ? void 0 : _.date).getTime() - t(L)())
133
134
  }, null, 8, ["text"]),
134
135
  o("div", rt, [
135
- n(t(y), {
136
+ a(t(y), {
136
137
  icon: "i-flat-color-icons:reading",
137
138
  size: 14,
138
139
  class: "mr-5px"
@@ -148,13 +149,13 @@ const tt = { class: "info-container" }, ot = {
148
149
  o("div", {
149
150
  class: p(t(e).e("content"))
150
151
  }, [
151
- $(a.$slots, "default")
152
+ $(n.$slots, "default")
152
153
  ], 2),
153
- n(t(Z))
154
+ a(t(G))
154
155
  ], 2);
155
156
  };
156
157
  }
157
158
  });
158
159
  export {
159
- _o as default
160
+ ho as default
160
161
  };
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./md-tabs.mjs";
6
- const s = t(o);
7
+ const f = t(o);
7
8
  export {
8
- s as VftMdTabs,
9
- s as default
9
+ f as VftMdTabs,
10
+ f as default
10
11
  };
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./md-vue-playground.vue2.mjs";
6
- const f = t(o);
7
+ const l = t(o);
7
8
  export {
8
- f as VftMdVuePlayground,
9
- f as default
9
+ l as VftMdVuePlayground,
10
+ l as default
10
11
  };