vft 0.0.53 → 0.0.55

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 (68) hide show
  1. package/attributes.json +1 -0
  2. package/dist/index.css +1 -1
  3. package/es/component.js +0 -2
  4. package/es/components/back-top/back-top.vue2.js +4 -3
  5. package/es/components/context-menu/context-menu.vue2.js +46 -41
  6. package/es/components/icon-text/icon-text.vue2.js +31 -24
  7. package/es/components/md-container/md-container.vue2.js +74 -68
  8. package/es/components/md-container/use/useCopyCode.js +3 -3
  9. package/es/components/menu/menu-item.vue2.js +4 -3
  10. package/es/components/menu/sub-menu.vue2.js +4 -3
  11. package/es/components/multiple-tabs/multiple-tabs.vue2.js +34 -36
  12. package/es/components/multiple-tabs/tab-content.vue2.js +18 -84
  13. package/es/components/result/result.vue2.js +4 -3
  14. package/es/components/search/search.vue2.js +4 -3
  15. package/es/components/side-menu/side-menu.vue2.js +3 -2
  16. package/es/components/tabs/index.d.ts +8 -8
  17. package/es/components/tabs/tab-nav.vue.d.ts +6 -7
  18. package/es/components/tabs/tab-nav.vue2.js +42 -38
  19. package/es/components/tabs/tabs.vue.d.ts +9 -9
  20. package/es/components/tabs/tabs.vue2.js +43 -48
  21. package/es/package.json.js +1 -1
  22. package/global.d.ts +28 -3
  23. package/lib/components/back-top/back-top.vue2.cjs +1 -1
  24. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  25. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  26. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  27. package/lib/components/md-container/use/useCopyCode.cjs +1 -1
  28. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  29. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  30. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  31. package/lib/components/multiple-tabs/tab-content.vue2.cjs +1 -1
  32. package/lib/components/result/result.vue2.cjs +1 -1
  33. package/lib/components/search/search.vue2.cjs +1 -1
  34. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  35. package/lib/components/tabs/index.d.ts +8 -8
  36. package/lib/components/tabs/tab-nav.vue.d.ts +6 -7
  37. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  38. package/lib/components/tabs/tabs.vue.d.ts +9 -9
  39. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  40. package/lib/package.json.cjs +1 -1
  41. package/package.json +6 -1
  42. package/tags.json +1 -0
  43. package/theme-style/dark/css-vars.css +1 -1
  44. package/theme-style/index.css +1 -1
  45. package/theme-style/src/button.scss +1 -2
  46. package/theme-style/src/common/var.scss +19 -20
  47. package/theme-style/src/context-menu.scss +12 -0
  48. package/theme-style/src/dark/css-vars.scss +26 -0
  49. package/theme-style/src/dark/var.scss +61 -17
  50. package/theme-style/src/icon-text.scss +2 -0
  51. package/theme-style/src/logo.scss +1 -1
  52. package/theme-style/src/md/table.scss +5 -0
  53. package/theme-style/src/md-container.scss +42 -2
  54. package/theme-style/src/menu.scss +3 -3
  55. package/theme-style/src/side-menu.scss +2 -2
  56. package/theme-style/src/tabs.scss +70 -70
  57. package/theme-style/vft-button.css +1 -1
  58. package/theme-style/vft-context-menu.css +1 -0
  59. package/theme-style/vft-footer-layout.css +1 -1
  60. package/theme-style/vft-header-layout.css +1 -1
  61. package/theme-style/vft-icon-text.css +1 -1
  62. package/theme-style/vft-logo.css +1 -1
  63. package/theme-style/vft-md-container.css +1 -1
  64. package/theme-style/vft-menu.css +1 -1
  65. package/theme-style/vft-multiple-tabs.css +1 -1
  66. package/theme-style/vft-side-menu.css +1 -1
  67. package/theme-style/vft-tabs.css +1 -1
  68. package/web-types.json +1 -0
package/es/component.js CHANGED
@@ -52,14 +52,12 @@ import { VftMdCodeDemo as ao } from "./components/md-code-demo/index.js";
52
52
  import { VftMdCodeTabs as no } from "./components/md-code-tabs/index.js";
53
53
  import { VftMdContainer as uo } from "./components/md-container/index.js";
54
54
  const dt = [
55
- // md
56
55
  uo,
57
56
  no,
58
57
  ao,
59
58
  eo,
60
59
  Vo,
61
60
  po,
62
- // md
63
61
  io,
64
62
  mo,
65
63
  fo,
@@ -11,10 +11,11 @@ import "../collapse-transition/index.js";
11
11
  import "../tooltip/index.js";
12
12
  import "../popover/index.js";
13
13
  import "../menu/index.js";
14
- import "@vft/use";
14
+ import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
16
  import "@vft/router";
17
17
  import "@vft/store";
18
+ import "@vft/use";
18
19
  import "vue-router";
19
20
  import "../header-layout/index.js";
20
21
  import "../footer-layout/index.js";
@@ -77,7 +78,7 @@ const r = (
77
78
  _("back-top")
78
79
  ), N = c({
79
80
  name: r.b()
80
- }), Yt = /* @__PURE__ */ c({
81
+ }), Zt = /* @__PURE__ */ c({
81
82
  ...N,
82
83
  props: {
83
84
  visibilityHeight: { default: 200 },
@@ -120,5 +121,5 @@ const r = (
120
121
  }
121
122
  });
122
123
  export {
123
- Yt as default
124
+ Zt as default
124
125
  };
@@ -1,5 +1,14 @@
1
- import { defineComponent as w, ref as u, computed as y, openBlock as n, createBlock as d, Transition as k, withCtx as C, withDirectives as b, createElementVNode as c, normalizeStyle as g, unref as l, withModifiers as M, createElementBlock as $, Fragment as z, renderList as B, vShow as E } from "vue";
2
- import { useTimeoutFn as S, useClickAway as A, useEventListener as a } from "@vft/use";
1
+ import { defineComponent as f, ref as u, computed as k, openBlock as l, createBlock as d, Transition as b, withCtx as C, withDirectives as g, createElementVNode as a, normalizeStyle as z, unref as p, withModifiers as M, normalizeClass as $, createElementBlock as B, Fragment as E, renderList as S, vShow as A } from "vue";
2
+ import { useNamespace as F } from "../../hooks/use-namespace/index.js";
3
+ import "@popperjs/core";
4
+ import "lodash";
5
+ import "../../hooks/use-z-index/index.js";
6
+ import "@vueuse/core";
7
+ import "@vft/utils";
8
+ import "../../utils/ns-cover.js";
9
+ import "@vue/reactivity";
10
+ import "@vue/shared";
11
+ import { useTimeoutFn as H, useClickAway as I, useEventListener as c } from "@vft/use";
3
12
  import "../divider/index.js";
4
13
  import "../icon/index.js";
5
14
  import "../avatar/index.js";
@@ -10,8 +19,7 @@ import "../popper/index.js";
10
19
  import "../collapse-transition/index.js";
11
20
  import "../tooltip/index.js";
12
21
  import "../popover/index.js";
13
- import { VftMenuItem as F } from "../menu/index.js";
14
- import "@vft/utils";
22
+ import { VftMenuItem as L } from "../menu/index.js";
15
23
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
24
  import "@vft/router";
17
25
  import "@vft/store";
@@ -63,16 +71,13 @@ import "../md-vue-playground/index.js";
63
71
  import "../md-code-demo/index.js";
64
72
  import "../md-code-tabs/index.js";
65
73
  import "../message/index.js";
66
- import "../config-provider/hooks/use-global-config.js";
67
- import "@popperjs/core";
68
- import "lodash";
69
- import "../../hooks/use-z-index/index.js";
70
- import "@vueuse/core";
71
- import "../../utils/ns-cover.js";
72
- import "@vue/reactivity";
73
- import "@vue/shared";
74
- const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
75
- __name: "context-menu",
74
+ const N = { class: "vft-sub-menu" }, x = (
75
+ /* hoist-static*/
76
+ F("context-menu")
77
+ ), R = f({
78
+ name: x.b()
79
+ }), io = /* @__PURE__ */ f({
80
+ ...R,
76
81
  props: {
77
82
  axis: null,
78
83
  styles: null,
@@ -81,63 +86,63 @@ const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
81
86
  },
82
87
  setup(r) {
83
88
  let s = u();
84
- const f = y(() => {
85
- const { x: t, y: i } = r.axis || { x: 0, y: 0 }, o = (r.items || []).length * 40, m = r.width || 0, p = document.body, v = p.clientWidth < t + m ? t - m : t, h = p.clientHeight < i + o ? i - o : i;
89
+ const v = k(() => {
90
+ const { x: t, y: o } = r.axis || { x: 0, y: 0 }, i = (r.items || []).length * 40, m = r.width || 0, n = document.body, w = n.clientWidth < t + m ? t - m : t, y = n.clientHeight < o + i ? o - i : o;
86
91
  return {
87
92
  zIndex: 3e3,
88
93
  ...r.styles,
89
94
  position: "fixed",
90
95
  width: `${r.width}px`,
91
- left: `${v + 1}px`,
92
- top: `${h + 1}px`
96
+ left: `${w + 1}px`,
97
+ top: `${y + 1}px`
93
98
  };
94
99
  });
95
100
  let e = u(!1);
96
- S(() => {
101
+ H(() => {
97
102
  e.value = !0;
98
- }, 0), A(s, () => {
103
+ }, 0), I(s, () => {
99
104
  e.value = !1;
100
105
  }, {
101
106
  listenerOptions: {
102
107
  capture: !0
103
108
  }
104
- }), a(window, "scroll", () => {
109
+ }), c(window, "scroll", () => {
105
110
  e.value = !1;
106
111
  }, {
107
112
  capture: !0
108
- }), a(window, "drag", () => {
113
+ }), c(window, "drag", () => {
109
114
  e.value = !1;
110
115
  }, {
111
116
  capture: !0
112
117
  });
113
- function x(t) {
114
- var i;
115
- t != null && t.disabled || ((i = t.handler) == null || i.call(t), e.value = !1);
118
+ function h(t) {
119
+ var o;
120
+ t != null && t.disabled || ((o = t.handler) == null || o.call(t), e.value = !1);
116
121
  }
117
- return (t, i) => (n(), d(k, { name: "vft-zoom-in-top" }, {
122
+ return (t, o) => (l(), d(b, { name: "vft-zoom-in-top" }, {
118
123
  default: C(() => [
119
- b(c("div", {
124
+ g(a("div", {
120
125
  ref_key: "contextMenuRef",
121
126
  ref: s,
122
- style: g(l(f)),
123
- onClick: i[0] || (i[0] = M(() => {
127
+ style: z(p(v)),
128
+ onClick: o[0] || (o[0] = M(() => {
124
129
  }, ["stop"])),
125
- class: "vft-menu"
130
+ class: $([p(x).b(), "vft-menu"])
126
131
  }, [
127
- c("div", H, [
128
- (n(!0), $(z, null, B(r.items, (o, m) => (n(), d(l(F), {
129
- onClick: (p) => x(o),
130
- index: m + o.text,
131
- title: o.text,
132
- divider: o.divider,
133
- disabled: o.disabled,
134
- icon: o.iconCfg,
132
+ a("div", N, [
133
+ (l(!0), B(E, null, S(r.items, (i, m) => (l(), d(p(L), {
134
+ onClick: (n) => h(i),
135
+ index: m + i.text,
136
+ title: i.text,
137
+ divider: i.divider,
138
+ disabled: i.disabled,
139
+ icon: i.iconCfg,
135
140
  isAloneUse: "",
136
141
  key: m
137
142
  }, null, 8, ["onClick", "index", "title", "divider", "disabled", "icon"]))), 128))
138
143
  ])
139
- ], 4), [
140
- [E, l(e)]
144
+ ], 6), [
145
+ [A, p(e)]
141
146
  ])
142
147
  ]),
143
148
  _: 1
@@ -145,5 +150,5 @@ const H = { class: "vft-sub-menu" }, Zt = /* @__PURE__ */ w({
145
150
  }
146
151
  });
147
152
  export {
148
- Zt as default
153
+ io as default
149
154
  };
@@ -1,44 +1,51 @@
1
- import { defineComponent as f, computed as o, openBlock as r, createElementBlock as k, normalizeClass as g, unref as t, normalizeStyle as x, createBlock as s, mergeProps as m, createCommentVNode as a, createTextVNode as z, toDisplayString as h } from "vue";
2
- import { singleAttrToObj as B, addUnit as n } from "@vft/utils";
3
- import "lodash";
4
- import "@vueuse/core";
5
- import { generateCssVars as S } from "../../utils/ns-cover.js";
6
- import { VftIcon as u } from "../icon/index.js";
7
- import { useNamespace as V } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as d, computed as o, openBlock as r, createElementBlock as h, normalizeClass as S, unref as t, normalizeStyle as B, createBlock as a, mergeProps as m, createCommentVNode as u, createElementVNode as V, toDisplayString as b } from "vue";
2
+ import { VftIcon as v } from "../icon/index.js";
3
+ import { useNamespace as N } from "../../hooks/use-namespace/index.js";
8
4
  import "@popperjs/core";
5
+ import "lodash";
9
6
  import "../../hooks/use-z-index/index.js";
7
+ import "@vueuse/core";
8
+ import { singleAttrToObj as E, addUnit as l, removeUnit as f } from "@vft/utils";
9
+ import { generateCssVars as U } from "../../utils/ns-cover.js";
10
10
  import "@vue/reactivity";
11
11
  import "@vue/shared";
12
- const d = (
12
+ const y = (
13
13
  /* hoist-static*/
14
- V("icon-text")
15
- ), b = f({
16
- name: d.b()
17
- }), q = /* @__PURE__ */ f({
18
- ...b,
14
+ N("icon-text")
15
+ ), $ = d({
16
+ name: y.b()
17
+ }), G = /* @__PURE__ */ d({
18
+ ...$,
19
19
  props: {
20
20
  text: null,
21
21
  icon: null,
22
- color: { default: "#434343" },
22
+ color: null,
23
23
  hoverColor: null,
24
24
  distance: null,
25
25
  reverse: { type: Boolean },
26
26
  size: null
27
27
  },
28
28
  emits: ["click"],
29
- setup(e, { emit: y }) {
30
- const v = o(() => e.hoverColor ? e.hoverColor : e.color), l = o(() => B(e.icon, "icon", { size: e.size, color: e.color })), i = o(() => e.reverse ? { marginLeft: n(e.distance) } : { marginRight: n(e.distance) }), C = o(() => S({ "hover-color": v.value, color: e.color, fontSize: n(e.size) }, "icon-text"));
31
- return (N, c) => (r(), k("span", {
32
- class: g(t(d).b()),
33
- onClick: c[0] || (c[0] = (T) => y("click")),
34
- style: x(t(C))
29
+ setup(e, { emit: z }) {
30
+ const C = o(() => e.hoverColor ? e.hoverColor : e.color), c = o(() => E(e.icon, "icon", { size: e.size, color: e.color })), i = o(() => e.reverse ? { marginLeft: l(e.distance) } : { marginRight: l(e.distance) }), n = o(() => f(e.size)), k = o(() => n.value && f(n.value) < 12 ? { transform: `scale(${n.value / 12})` } : {}), x = o(() => ({
31
+ ...U({
32
+ color: e.color,
33
+ "hover-color": C.value,
34
+ fontSize: n.value < 12 ? "12px" : l(e.size)
35
+ }, "icon-text"),
36
+ ...k.value
37
+ }));
38
+ return (g, s) => (r(), h("span", {
39
+ class: S(t(y).b()),
40
+ onClick: s[0] || (s[0] = (j) => z("click")),
41
+ style: B(t(x))
35
42
  }, [
36
- e.reverse ? a("", !0) : (r(), s(t(u), m({ key: 0 }, t(l), { style: t(i) }), null, 16, ["style"])),
37
- z(" " + h(e.text) + " ", 1),
38
- e.reverse ? (r(), s(t(u), m({ key: 1 }, t(l), { style: t(i) }), null, 16, ["style"])) : a("", !0)
43
+ e.reverse ? u("", !0) : (r(), a(t(v), m({ key: 0 }, t(c), { style: t(i) }), null, 16, ["style"])),
44
+ V("span", null, b(e.text), 1),
45
+ e.reverse ? (r(), a(t(v), m({ key: 1 }, t(c), { style: t(i) }), null, 16, ["style"])) : u("", !0)
39
46
  ], 6));
40
47
  }
41
48
  });
42
49
  export {
43
- q as default
50
+ G as default
44
51
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as T, getCurrentInstance as S, ref as g, onMounted as b, nextTick as B, unref as t, openBlock as i, createElementBlock as a, normalizeClass as p, createBlock as v, createCommentVNode as x, createElementVNode as o, toDisplayString as C, createVNode as n, Fragment as I, renderList as M, withCtx as R, createTextVNode as $, renderSlot as A } from "vue";
1
+ import { defineComponent as T, getCurrentInstance as A, ref as v, onMounted as P, nextTick as B, unref as t, openBlock as s, createElementBlock as c, normalizeClass as a, createBlock as y, createCommentVNode as x, createElementVNode as e, toDisplayString as C, createVNode as l, Fragment as H, renderList as I, withCtx as L, createTextVNode as M, renderSlot as R } from "vue";
2
2
  import "../divider/index.js";
3
- import { VftIcon as y } from "../icon/index.js";
3
+ import { VftIcon as k } from "../icon/index.js";
4
4
  import "../avatar/index.js";
5
5
  import "../empty/index.js";
6
6
  import "../result/index.js";
@@ -10,12 +10,13 @@ import "../collapse-transition/index.js";
10
10
  import "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "../menu/index.js";
13
- import { jumpElement as F, getRandomElementForArr as H, formatToDateTime as L, getDayTimestamp as j } from "@vft/utils";
14
- import { usePhotoSwipe as J } from "@vft/use";
13
+ import { jumpElement as $, getRandomElementForArr as q, formatToDateTime as F, getDayTimestamp as j } from "@vft/utils";
14
+ import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
- import { useRouterHelper as O } from "@vft/router";
16
+ import { useRouterHelper as J } from "@vft/router";
17
17
  import "@vft/store";
18
- import { useRoute as Y } from "vue-router";
18
+ import { usePhotoSwipe as O, useEventListener as Y } from "@vft/use";
19
+ import { useRoute as G } from "vue-router";
19
20
  import "../header-layout/index.js";
20
21
  import "../footer-layout/index.js";
21
22
  import "../iframe-layout/index.js";
@@ -25,12 +26,12 @@ import "../back-top/index.js";
25
26
  import "../config-provider/index.js";
26
27
  import "../descriptions/index.js";
27
28
  import "../full-screen/index.js";
28
- import { VftIconText as q } from "../icon-text/index.js";
29
+ import { VftIconText as K } from "../icon-text/index.js";
29
30
  import "../image/index.js";
30
31
  import "../input/index.js";
31
32
  import "../link/index.js";
32
33
  import "../pagination/index.js";
33
- import { VftTag as G } from "../tag/index.js";
34
+ import { VftTag as Q } from "../tag/index.js";
34
35
  import "../side-menu/index.js";
35
36
  import "../qrcode/index.js";
36
37
  import "../overlay/index.js";
@@ -57,120 +58,125 @@ import "../verify-code/index.js";
57
58
  import "../table/index.js";
58
59
  import "../image-viewer/index.js";
59
60
  import "./index.js";
60
- import { VftMdComment as K } from "../md-comment/index.js";
61
+ import { VftMdComment as U } from "../md-comment/index.js";
61
62
  import "../md-tabs/index.js";
62
63
  import "../md-vue-playground/index.js";
63
64
  import "../md-code-demo/index.js";
64
65
  import "../md-code-tabs/index.js";
65
66
  import "../message/index.js";
66
- import { useNamespace as Q } from "../../hooks/use-namespace/index.js";
67
+ import { useNamespace as W } from "../../hooks/use-namespace/index.js";
67
68
  import "@popperjs/core";
68
69
  import "lodash";
69
70
  import "../../hooks/use-z-index/index.js";
70
71
  import "@vueuse/core";
71
- import { primaryColor as U } from "../../utils/ns-cover.js";
72
+ import { primaryColor as X } from "../../utils/ns-cover.js";
72
73
  import "@vue/reactivity";
73
74
  import "@vue/shared";
74
- import W from "./toc.js";
75
- import { useCopyCode as X } from "./use/useCopyCode.js";
76
- import { useActiveHeaderLinks as Z } from "./use/useActiveHeaderLinks.js";
77
- import { COMP_TYPE as tt } from "./utils.js";
78
- const ot = { class: "info-container" }, et = {
75
+ import Z from "./toc.js";
76
+ import { useCopyCode as tt } from "./use/useCopyCode.js";
77
+ import { useActiveHeaderLinks as ot } from "./use/useActiveHeaderLinks.js";
78
+ import { COMP_TYPE as et } from "./utils.js";
79
+ const it = { class: "info-container" }, rt = {
79
80
  key: 0,
80
81
  class: "flex align-center"
81
- }, rt = { class: "infos" }, it = {
82
+ }, mt = { class: "infos" }, pt = {
82
83
  class: "reading",
83
84
  title: "阅读量"
84
- }, mt = ["data-path"], e = (
85
+ }, st = ["data-path"], m = (
85
86
  /* hoist-static*/
86
- Q("md-container")
87
- ), pt = T({
88
- name: e.b()
87
+ W("md-container")
88
+ ), nt = T({
89
+ name: m.b()
89
90
  }), Io = /* @__PURE__ */ T({
90
- ...pt,
91
- setup(nt, { expose: k }) {
92
- const V = S(), { initPhotoSwipe: w } = J(`.${e.e("content")} img`);
93
- w(), Z({}), X();
94
- const m = g(), r = Y();
95
- b(() => {
91
+ ...nt,
92
+ setup(at, { expose: V }) {
93
+ const w = A(), { initPhotoSwipe: D } = O(`.${m.e("content")} img`);
94
+ D(), ot({}), tt();
95
+ const n = v(), p = G();
96
+ P(() => {
96
97
  B(() => {
97
- m.value = V.exposed.infos, setTimeout(() => {
98
- F(r.hash.replace("#", ""));
98
+ n.value = w.exposed.infos, setTimeout(() => {
99
+ $(p.hash.replace("#", ""));
99
100
  });
101
+ const i = document.querySelectorAll(".item.expand"), r = document.querySelectorAll("div.language-vue");
102
+ for (let o = 0; o < i.length; o++)
103
+ Y(i[o], "click", () => {
104
+ r[o].offsetHeight === 0 ? (r[o].style.height = "auto", r[o].style.visibility = "visible") : (r[o].style.height = 0 + "px", r[o].style.visibility = "hidden");
105
+ });
100
106
  });
101
- }), k({
102
- infos: t(m)
107
+ }), V({
108
+ infos: t(n)
103
109
  });
104
- const D = location.pathname, { go: z } = O();
105
- function E(s) {
106
- z("/?tag=" + s);
110
+ const b = location.pathname, { go: E } = J();
111
+ function S(i) {
112
+ E("/?tag=" + i);
107
113
  }
108
- const N = g(U());
109
- return (s, st) => {
110
- var c, l, d, u, f, _;
111
- return i(), a("div", {
112
- class: p(t(e).b())
114
+ const z = v(X());
115
+ return (i, r) => {
116
+ var o, d, u, f, h, g;
117
+ return s(), c("div", {
118
+ class: a(t(m).b())
113
119
  }, [
114
- (c = m.value) != null && c.sideData ? (i(), v(t(W), {
120
+ (o = n.value) != null && o.sideData ? (s(), y(t(Z), {
115
121
  key: 0,
116
- items: m.value.sideData
122
+ items: n.value.sideData
117
123
  }, null, 8, ["items"])) : x("", !0),
118
- o("div", {
119
- class: p(t(e).e("header"))
124
+ e("div", {
125
+ class: a(t(m).e("header"))
120
126
  }, [
121
- o("h1", {
122
- class: p(t(e).e("title"))
123
- }, C((l = t(r).meta) == null ? void 0 : l.title), 3),
124
- o("div", ot, [
125
- (u = (d = t(r).meta) == null ? void 0 : d.category) != null && u.length ? (i(), a("div", et, [
126
- n(t(y), {
127
+ e("h1", {
128
+ class: a(t(m).e("title"))
129
+ }, C((d = t(p).meta) == null ? void 0 : d.title), 3),
130
+ e("div", it, [
131
+ (f = (u = t(p).meta) == null ? void 0 : u.category) != null && f.length ? (s(), c("div", rt, [
132
+ l(t(k), {
127
133
  size: 14,
128
- color: N.value,
134
+ color: z.value,
129
135
  icon: "ico-bx:category",
130
136
  class: "mr-8px"
131
137
  }, null, 8, ["color"]),
132
- (i(!0), a(I, null, M((f = t(r).meta) == null ? void 0 : f.category, (h, P) => (i(), v(t(G), {
138
+ (s(!0), c(H, null, I((h = t(p).meta) == null ? void 0 : h.category, (_, N) => (s(), y(t(Q), {
133
139
  size: "small",
134
140
  class: "mr-5px cursor-pointer",
135
- type: t(H)(t(tt), 1)[0],
136
- key: P,
137
- onClick: (at) => E(h)
141
+ type: t(q)(t(et), 1)[0],
142
+ key: N,
143
+ onClick: (lt) => S(_)
138
144
  }, {
139
- default: R(() => [
140
- $(C(h), 1)
145
+ default: L(() => [
146
+ M(C(_), 1)
141
147
  ]),
142
148
  _: 2
143
149
  }, 1032, ["type", "onClick"]))), 128))
144
150
  ])) : x("", !0),
145
- o("div", rt, [
146
- n(t(q), {
151
+ e("div", mt, [
152
+ l(t(K), {
147
153
  title: "发布时间",
148
154
  icon: "ico-uiw:date",
149
155
  size: 12,
150
156
  class: "mr-10px",
151
157
  distance: 5,
152
- text: t(L)(new Date((_ = t(r).meta) == null ? void 0 : _.date).getTime() - t(j)())
158
+ text: t(F)(new Date((g = t(p).meta) == null ? void 0 : g.date).getTime() - t(j)())
153
159
  }, null, 8, ["text"]),
154
- o("div", it, [
155
- n(t(y), {
160
+ e("div", pt, [
161
+ l(t(k), {
156
162
  icon: "ico-flat-color-icons:reading",
157
163
  size: 14,
158
164
  class: "mr-5px"
159
165
  }),
160
- o("div", {
166
+ e("div", {
161
167
  class: "waline-pageview-count lh-1",
162
- "data-path": t(D)
163
- }, "0", 8, mt)
168
+ "data-path": t(b)
169
+ }, "0", 8, st)
164
170
  ])
165
171
  ])
166
172
  ])
167
173
  ], 2),
168
- o("div", {
169
- class: p(t(e).e("content"))
174
+ e("div", {
175
+ class: a(t(m).e("content"))
170
176
  }, [
171
- A(s.$slots, "default")
177
+ R(i.$slots, "default")
172
178
  ], 2),
173
- n(t(K))
179
+ l(t(U))
174
180
  ], 2);
175
181
  };
176
182
  }
@@ -8,9 +8,9 @@ function u() {
8
8
  const n = t.parentElement, s = t.nextElementSibling;
9
9
  if (!n || !s)
10
10
  return;
11
- const l = /language-(shellscript|shell|bash|sh|zsh)/.test(n.classList.toString());
12
- let { innerText: i = "" } = s;
13
- l && (i = i.replace(/^ *(\$|>) /gm, "")), r(i).then(() => {
11
+ const i = /language-(shellscript|shell|bash|sh|zsh)/.test(n.classList.toString());
12
+ let l = s.textContent;
13
+ i && (l = l.replace(/^ *(\$|>) /gm, "")), r(l).then(() => {
14
14
  t.classList.add("copied"), clearTimeout(o.get(t));
15
15
  const c = setTimeout(() => {
16
16
  t.classList.remove("copied"), t.blur(), o.delete(t);
@@ -21,10 +21,11 @@ import "../collapse-transition/index.js";
21
21
  import { VftTooltip as R } from "../tooltip/index.js";
22
22
  import "../popover/index.js";
23
23
  import "./index.js";
24
- import "@vft/use";
24
+ import "../context-menu/context-menu.vue2.js";
25
25
  import "../multiple-tabs/multiple-tabs.vue2.js";
26
26
  import "@vft/router";
27
27
  import "@vft/store";
28
+ import "@vft/use";
28
29
  import "vue-router";
29
30
  import "../header-layout/index.js";
30
31
  import "../footer-layout/index.js";
@@ -78,7 +79,7 @@ const W = ["title"], k = (
78
79
  v("menu-item")
79
80
  ), X = S({
80
81
  name: k.b()
81
- }), he = /* @__PURE__ */ S({
82
+ }), xe = /* @__PURE__ */ S({
82
83
  ...X,
83
84
  props: {
84
85
  index: null,
@@ -163,5 +164,5 @@ const W = ["title"], k = (
163
164
  }
164
165
  });
165
166
  export {
166
- he as default
167
+ xe as default
167
168
  };
@@ -11,10 +11,11 @@ import { VftTooltip as pe } from "../tooltip/index.js";
11
11
  import "../popover/index.js";
12
12
  import "./index.js";
13
13
  import { singleAttrToObj as se, renderTNode as me } from "@vft/utils";
14
- import "@vft/use";
14
+ import "../context-menu/context-menu.vue2.js";
15
15
  import "../multiple-tabs/multiple-tabs.vue2.js";
16
16
  import "@vft/router";
17
17
  import "@vft/store";
18
+ import "@vft/use";
18
19
  import "vue-router";
19
20
  import "../header-layout/index.js";
20
21
  import "../footer-layout/index.js";
@@ -79,7 +80,7 @@ const S = (
79
80
  I("sub-menu")
80
81
  ), ve = Z({
81
82
  name: S.b()
82
- }), No = /* @__PURE__ */ Z({
83
+ }), Ro = /* @__PURE__ */ Z({
83
84
  ...ve,
84
85
  props: {
85
86
  index: null,
@@ -280,5 +281,5 @@ const S = (
280
281
  }
281
282
  });
282
283
  export {
283
- No as default
284
+ Ro as default
284
285
  };