vft 0.0.97 → 0.0.98
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.
- package/es/components/affix/affix.vue2.js +25 -26
- package/es/components/alert/alert.vue2.js +17 -18
- package/es/components/backtop/backtop.vue2.js +14 -15
- package/es/components/button/button-group.vue2.js +14 -15
- package/es/components/button/button.vue2.js +24 -25
- package/es/components/card/card.vue2.js +10 -11
- package/es/components/check-tag/check-tag.vue2.js +10 -11
- package/es/components/checkbox/checkbox-button.vue2.js +13 -14
- package/es/components/checkbox/checkbox-group.vue2.js +15 -16
- package/es/components/checkbox/checkbox.vue2.js +24 -25
- package/es/components/clamp/clamp.vue2.js +16 -17
- package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
- package/es/components/col/col.vue2.js +20 -21
- package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
- package/es/components/collection/collection-item.vue2.js +6 -7
- package/es/components/collection/collection.vue2.js +5 -7
- package/es/components/color-picker/color-picker.vue2.js +45 -46
- package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
- package/es/components/config-provider/config-provider.vue2.js +22 -23
- package/es/components/container/aside.vue2.js +12 -13
- package/es/components/container/container.vue2.js +10 -11
- package/es/components/container/footer.vue2.js +11 -12
- package/es/components/container/header.vue2.js +10 -11
- package/es/components/container/main.vue2.js +12 -13
- package/es/components/context-menu/context-menu.vue2.js +18 -19
- package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
- package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
- package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
- package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
- package/es/components/date-time-select/date-time-select.vue2.js +20 -21
- package/es/components/descriptions/description-item.vue2.js +9 -10
- package/es/components/descriptions/description.vue2.js +20 -21
- package/es/components/descriptions/descriptions-row.vue2.js +15 -16
- package/es/components/dialog/dialog-content.vue2.js +12 -13
- package/es/components/dialog/dialog.vue2.js +40 -41
- package/es/components/divider/divider.vue2.js +10 -11
- package/es/components/dropdown/dropdown.vue2.js +38 -39
- package/es/components/empty/empty.vue2.js +11 -12
- package/es/components/footer-layout/footer-layout.vue2.js +7 -8
- package/es/components/form/form-item.vue2.js +43 -44
- package/es/components/form/form.vue2.js +28 -29
- package/es/components/full-screen/full-screen.vue2.js +15 -16
- package/es/components/header-layout/header-layout.vue2.js +21 -22
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
- package/es/components/icon/icon.vue2.js +12 -13
- package/es/components/icon-text/icon-text.vue2.js +13 -14
- package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
- package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
- package/es/components/image/image.vue2.js +25 -26
- package/es/components/image-viewer/image-viewer.vue2.js +54 -55
- package/es/components/index.js +90 -90
- package/es/components/link/link.vue2.js +11 -12
- package/es/components/list-cell/list-cell.vue2.js +21 -22
- package/es/components/logo/logo.vue2.js +12 -13
- package/es/components/md-comment/md-comment.vue2.js +12 -13
- package/es/components/md-container/md-container.vue2.js +33 -34
- package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
- package/es/components/menu/menu-item-group.vue2.js +13 -14
- package/es/components/menu/menu-item.vue2.js +12 -13
- package/es/components/menu/menu.vue2.js +44 -45
- package/es/components/menu/sub-menu.vue2.js +30 -31
- package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
- package/es/components/overlay/overlay.vue2.js +23 -24
- package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
- package/es/components/pagination/pagination.vue2.js +17 -18
- package/es/components/popconfirm/popconfirm.vue2.js +17 -18
- package/es/components/popover/popover.vue2.js +31 -32
- package/es/components/popper/arrow.vue2.js +15 -16
- package/es/components/popper/content.vue2.js +38 -39
- package/es/components/popper/popper.vue2.js +13 -14
- package/es/components/popper/trigger.vue2.js +11 -12
- package/es/components/qrcode/qrcode.vue2.js +21 -22
- package/es/components/radio/radio-button.vue2.js +16 -17
- package/es/components/radio/radio-group.vue2.js +16 -17
- package/es/components/radio/radio.vue2.js +15 -16
- package/es/components/result/result.vue2.js +12 -13
- package/es/components/router-view-content/router-view-content.vue2.js +10 -11
- package/es/components/row/row.vue2.js +17 -18
- package/es/components/scrollbar/scrollbar.vue2.js +30 -31
- package/es/components/search/search.vue2.js +39 -40
- package/es/components/side-menu/side-menu.vue2.js +43 -45
- package/es/components/skeleton/skeleton-item.vue2.js +9 -10
- package/es/components/skeleton/skeleton.vue2.js +11 -12
- package/es/components/switch/switch.vue2.js +27 -28
- package/es/components/table/table.vue2.js +36 -37
- package/es/components/tabs/tab-nav.vue2.js +28 -29
- package/es/components/tabs/tab-pane.vue2.js +23 -24
- package/es/components/tabs/tabs.vue2.js +30 -31
- package/es/components/time-picker/common/picker.vue2.js +48 -49
- package/es/components/time-select/time-select.vue2.js +28 -29
- package/es/components/tooltip/content.vue2.js +36 -37
- package/es/components/tooltip/tooltip.vue2.js +15 -16
- package/es/components/tooltip/trigger.vue2.js +37 -38
- package/es/components/verify-code/verify-code.vue2.js +19 -20
- package/es/constants/date.js +7 -7
- package/es/index.js +90 -90
- package/es/package.json.js +1 -1
- package/lib/components/affix/affix.vue2.cjs +1 -1
- package/lib/components/alert/alert.vue2.cjs +1 -1
- package/lib/components/backtop/backtop.vue2.cjs +1 -1
- package/lib/components/button/button-group.vue2.cjs +1 -1
- package/lib/components/button/button.vue2.cjs +1 -1
- package/lib/components/card/card.vue2.cjs +1 -1
- package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
- package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
- package/lib/components/clamp/clamp.vue2.cjs +1 -1
- package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
- package/lib/components/col/col.vue2.cjs +1 -1
- package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
- package/lib/components/collection/collection-item.vue2.cjs +1 -1
- package/lib/components/collection/collection.vue2.cjs +1 -1
- package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
- package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
- package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
- package/lib/components/container/aside.vue2.cjs +1 -1
- package/lib/components/container/container.vue2.cjs +1 -1
- package/lib/components/container/footer.vue2.cjs +1 -1
- package/lib/components/container/header.vue2.cjs +1 -1
- package/lib/components/container/main.vue2.cjs +1 -1
- package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
- package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
- package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
- package/lib/components/descriptions/description-item.vue2.cjs +1 -1
- package/lib/components/descriptions/description.vue2.cjs +1 -1
- package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
- package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
- package/lib/components/dialog/dialog.vue2.cjs +1 -1
- package/lib/components/divider/divider.vue2.cjs +1 -1
- package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
- package/lib/components/empty/empty.vue2.cjs +1 -1
- package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
- package/lib/components/form/form-item.vue2.cjs +1 -1
- package/lib/components/form/form.vue2.cjs +1 -1
- package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
- package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/icon/icon.vue2.cjs +1 -1
- package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
- package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
- package/lib/components/index.cjs +1 -1
- package/lib/components/link/link.vue2.cjs +1 -1
- package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
- package/lib/components/logo/logo.vue2.cjs +1 -1
- package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
- package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
- package/lib/components/menu/menu-item.vue2.cjs +1 -1
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue2.cjs +1 -1
- package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
- package/lib/components/overlay/overlay.vue2.cjs +1 -1
- package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
- package/lib/components/pagination/pagination.vue2.cjs +1 -1
- package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
- package/lib/components/popover/popover.vue2.cjs +1 -1
- package/lib/components/popper/arrow.vue2.cjs +1 -1
- package/lib/components/popper/content.vue2.cjs +1 -1
- package/lib/components/popper/popper.vue2.cjs +1 -1
- package/lib/components/popper/trigger.vue2.cjs +1 -1
- package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
- package/lib/components/radio/radio-button.vue2.cjs +1 -1
- package/lib/components/radio/radio-group.vue2.cjs +1 -1
- package/lib/components/radio/radio.vue2.cjs +1 -1
- package/lib/components/result/result.vue2.cjs +1 -1
- package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
- package/lib/components/row/row.vue2.cjs +1 -1
- package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
- package/lib/components/search/search.vue2.cjs +1 -1
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
- package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
- package/lib/components/switch/switch.vue2.cjs +1 -1
- package/lib/components/table/table.vue2.cjs +1 -1
- package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
- package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
- package/lib/components/tabs/tabs.vue2.cjs +1 -1
- package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
- package/lib/components/time-select/time-select.vue2.cjs +1 -1
- package/lib/components/tooltip/content.vue2.cjs +1 -1
- package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
- package/lib/components/tooltip/trigger.vue2.cjs +1 -1
- package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
- package/lib/constants/date.cjs +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/package.json +8 -8
- package/web-types.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as f, getCurrentInstance as k, computed as b, openBlock as r, createElementBlock as a, normalizeClass as s, unref as o, createBlock as y, normalizeProps as C, mergeProps as g, createCommentVNode as c, renderSlot as B } from "vue";
|
|
2
2
|
import { singleAttrToObj as P } from "@vft/utils";
|
|
3
3
|
import { VftIcon as R } from "../icon/index.js";
|
|
4
4
|
import { useNamespace as $ } from "../../hooks/use-namespace/index.js";
|
|
@@ -11,10 +11,9 @@ import { useRouterHelper as h } from "@vft/router";
|
|
|
11
11
|
const t = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
$("link")
|
|
14
|
-
),
|
|
15
|
-
name: t.b()
|
|
16
|
-
|
|
17
|
-
...v,
|
|
14
|
+
), q = /* @__PURE__ */ f({
|
|
15
|
+
name: t.b(),
|
|
16
|
+
__name: "link",
|
|
18
17
|
props: {
|
|
19
18
|
type: { default: "default" },
|
|
20
19
|
underline: { type: Boolean, default: !0 },
|
|
@@ -24,13 +23,13 @@ const t = (
|
|
|
24
23
|
icon: {}
|
|
25
24
|
},
|
|
26
25
|
emits: ["click"],
|
|
27
|
-
setup(n, { emit:
|
|
28
|
-
const
|
|
29
|
-
function
|
|
30
|
-
n.route &&
|
|
26
|
+
setup(n, { emit: u }) {
|
|
27
|
+
const m = k().appContext.config.globalProperties.$router, { go: d } = h(m);
|
|
28
|
+
function p(e) {
|
|
29
|
+
n.route && d(n.route, n.isReplace), n.disabled || u("click", e);
|
|
31
30
|
}
|
|
32
31
|
const l = b(() => P(n.icon, "icon"));
|
|
33
|
-
return (e,
|
|
32
|
+
return (e, z) => {
|
|
34
33
|
var i;
|
|
35
34
|
return r(), a("span", {
|
|
36
35
|
class: s([
|
|
@@ -39,7 +38,7 @@ const t = (
|
|
|
39
38
|
o(t).is("disabled", e.disabled),
|
|
40
39
|
o(t).is("underline", e.underline && !e.disabled)
|
|
41
40
|
]),
|
|
42
|
-
onClick:
|
|
41
|
+
onClick: p
|
|
43
42
|
}, [
|
|
44
43
|
(i = l.value) != null && i.icon ? (r(), y(o(R), C(g({ key: 0 }, l.value)), null, 16)) : c("", !0),
|
|
45
44
|
e.$slots.default ? (r(), a("span", {
|
|
@@ -53,5 +52,5 @@ const t = (
|
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
q as default
|
|
57
56
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as y, ref as z, computed as m, openBlock as c, createElementBlock as a, normalizeStyle as V, normalizeClass as o, unref as e, Fragment as N, renderList as _, createElementVNode as u, createVNode as b, normalizeProps as d, guardReactiveProps as B, toDisplayString as D, createBlock as p, mergeProps as P } from "vue";
|
|
2
2
|
import { VftIcon as g } from "../icon/index.js";
|
|
3
3
|
import { useNamespace as T } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -10,10 +10,9 @@ import { generateCssVars as H } from "../../utils/ns-cover.js";
|
|
|
10
10
|
const S = ["onClick"], l = (
|
|
11
11
|
/* hoist-static*/
|
|
12
12
|
T("list-cell")
|
|
13
|
-
),
|
|
14
|
-
name: l.b()
|
|
15
|
-
|
|
16
|
-
...j,
|
|
13
|
+
), G = /* @__PURE__ */ y({
|
|
14
|
+
name: l.b(),
|
|
15
|
+
__name: "list-cell",
|
|
17
16
|
props: {
|
|
18
17
|
list: { default: [] },
|
|
19
18
|
cellHeight: { default: 50 },
|
|
@@ -21,46 +20,46 @@ const S = ["onClick"], l = (
|
|
|
21
20
|
activeIndex: {}
|
|
22
21
|
},
|
|
23
22
|
emits: ["item-click"],
|
|
24
|
-
setup(r, { emit:
|
|
25
|
-
const f =
|
|
23
|
+
setup(r, { emit: k }) {
|
|
24
|
+
const f = z(r.activeIndex), I = m(() => r.list.map((t) => (t.leftIcon = v(t.leftIcon, "icon", { size: 16 }), t.rightIcon = v(t.rightIcon, "icon", {
|
|
26
25
|
icon: "ico-ep:arrow-right",
|
|
27
26
|
size: 16
|
|
28
|
-
}), t))),
|
|
27
|
+
}), t))), C = m(() => H({
|
|
29
28
|
height: h(r.cellHeight),
|
|
30
29
|
"left-text-distance": h(r.leftTextDistance)
|
|
31
30
|
}, "list-cell"));
|
|
32
|
-
function
|
|
33
|
-
f.value = i,
|
|
31
|
+
function x(t, i) {
|
|
32
|
+
f.value = i, k("item-click", t, i);
|
|
34
33
|
}
|
|
35
|
-
return (t, i) => (
|
|
36
|
-
style:
|
|
37
|
-
class:
|
|
34
|
+
return (t, i) => (c(), a("div", {
|
|
35
|
+
style: V(C.value),
|
|
36
|
+
class: o(e(l).b())
|
|
38
37
|
}, [
|
|
39
|
-
(
|
|
40
|
-
onClick: (
|
|
38
|
+
(c(!0), a(N, null, _(I.value, (n, s) => (c(), a("div", {
|
|
39
|
+
onClick: (j) => x(n, s),
|
|
41
40
|
key: s,
|
|
42
|
-
class:
|
|
41
|
+
class: o([e(l).e("item"), e(l).is("active", f.value === s)])
|
|
43
42
|
}, [
|
|
44
43
|
u("div", {
|
|
45
|
-
class:
|
|
44
|
+
class: o(e(l).m("left"))
|
|
46
45
|
}, [
|
|
47
46
|
b(e(g), d(B(n.leftIcon)), null, 16),
|
|
48
47
|
u("span", {
|
|
49
|
-
class:
|
|
48
|
+
class: o(e(l).e("text"))
|
|
50
49
|
}, D(n.text), 3)
|
|
51
50
|
], 2),
|
|
52
51
|
u("div", {
|
|
53
|
-
class:
|
|
52
|
+
class: o(e(l).m("right"))
|
|
54
53
|
}, [
|
|
55
|
-
n != null && n.rightContent ? (
|
|
54
|
+
n != null && n.rightContent ? (c(), p(e(E), {
|
|
56
55
|
key: 0,
|
|
57
56
|
content: n.rightContent
|
|
58
|
-
}, null, 8, ["content"])) : (
|
|
57
|
+
}, null, 8, ["content"])) : (c(), p(e(g), d(P({ key: 1 }, n.rightIcon)), null, 16))
|
|
59
58
|
], 2)
|
|
60
59
|
], 10, S))), 128))
|
|
61
60
|
], 6));
|
|
62
61
|
}
|
|
63
62
|
});
|
|
64
63
|
export {
|
|
65
|
-
|
|
64
|
+
G as default
|
|
66
65
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, computed as r, getCurrentInstance as g, openBlock as f, createElementBlock as d, normalizeClass as e, normalizeStyle as C, createElementVNode as s, unref as l, toDisplayString as h } from "vue";
|
|
2
2
|
import { useRouterHelper as k } from "@vft/router";
|
|
3
3
|
import { useNamespace as P } from "../../hooks/use-namespace/index.js";
|
|
4
4
|
import "@popperjs/core";
|
|
@@ -7,34 +7,33 @@ import "../../hooks/use-z-index/index.js";
|
|
|
7
7
|
import "@vueuse/core";
|
|
8
8
|
import "@vft/utils";
|
|
9
9
|
import "../../utils/ns-cover.js";
|
|
10
|
-
const
|
|
10
|
+
const j = ["src"], t = (
|
|
11
11
|
/* hoist-static*/
|
|
12
12
|
P("logo")
|
|
13
|
-
),
|
|
14
|
-
name: t.b()
|
|
15
|
-
|
|
16
|
-
...j,
|
|
13
|
+
), x = /* @__PURE__ */ u({
|
|
14
|
+
name: t.b(),
|
|
15
|
+
__name: "logo",
|
|
17
16
|
props: {
|
|
18
17
|
title: {},
|
|
19
18
|
logo: {},
|
|
20
19
|
jumpPath: {}
|
|
21
20
|
},
|
|
22
21
|
setup(o) {
|
|
23
|
-
const
|
|
24
|
-
function
|
|
25
|
-
o.jumpPath &&
|
|
22
|
+
const a = r(() => [t.b()]), i = g().appContext.config.globalProperties.$router, { go: c } = k(i);
|
|
23
|
+
function m() {
|
|
24
|
+
o.jumpPath && c(o.jumpPath);
|
|
26
25
|
}
|
|
27
26
|
const p = r(() => o.jumpPath ? {} : t.cssVarBlock({ cursor: "inital" }));
|
|
28
27
|
return (n, b) => (f(), d("div", {
|
|
29
|
-
class: e(
|
|
30
|
-
onClick:
|
|
28
|
+
class: e(a.value),
|
|
29
|
+
onClick: m,
|
|
31
30
|
style: C(p.value)
|
|
32
31
|
}, [
|
|
33
32
|
s("img", {
|
|
34
33
|
class: e(l(t).e("img")),
|
|
35
34
|
src: n.logo,
|
|
36
35
|
alt: ""
|
|
37
|
-
}, null, 10,
|
|
36
|
+
}, null, 10, j),
|
|
38
37
|
s("div", {
|
|
39
38
|
class: e(["ml-2 truncate", l(t).e("title")])
|
|
40
39
|
}, h(n.title), 3)
|
|
@@ -42,5 +41,5 @@ const _ = ["src"], t = (
|
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
x as default
|
|
46
45
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { defineComponent as i, onMounted as n, openBlock as m, createElementBlock as t, normalizeClass as r, unref as o, createElementVNode as a } from "vue";
|
|
2
|
-
import { useNamespace as
|
|
2
|
+
import { useNamespace as p } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
5
5
|
import "../../hooks/use-z-index/index.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
|
-
import { init as
|
|
10
|
-
const
|
|
9
|
+
import { init as c } from "@waline/client";
|
|
10
|
+
const l = ["id"], e = (
|
|
11
11
|
/* hoist-static*/
|
|
12
|
-
|
|
13
|
-
),
|
|
14
|
-
name: e.b()
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
setup(u) {
|
|
12
|
+
p("md-comment")
|
|
13
|
+
), q = /* @__PURE__ */ i({
|
|
14
|
+
name: e.b(),
|
|
15
|
+
__name: "md-comment",
|
|
16
|
+
setup(s) {
|
|
18
17
|
return n(() => {
|
|
19
|
-
|
|
18
|
+
c({
|
|
20
19
|
el: `#${e.e("waline")}`,
|
|
21
20
|
serverURL: "https://waline.wflynn.cn/",
|
|
22
21
|
pageview: !0,
|
|
@@ -30,15 +29,15 @@ const s = ["id"], e = (
|
|
|
30
29
|
"//unpkg.com/@waline/emojis@1.1.0/tw-emoji"
|
|
31
30
|
]
|
|
32
31
|
});
|
|
33
|
-
}), (
|
|
32
|
+
}), (u, w) => (m(), t("div", {
|
|
34
33
|
class: r(o(e).b())
|
|
35
34
|
}, [
|
|
36
35
|
a("div", {
|
|
37
36
|
id: o(e).e("waline")
|
|
38
|
-
}, null, 8,
|
|
37
|
+
}, null, 8, l)
|
|
39
38
|
], 2));
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
q as default
|
|
44
43
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, getCurrentInstance as $, ref as _, onMounted as B, nextTick as H, unref as t, computed as I, openBlock as n, createElementBlock as l, normalizeClass as a, createBlock as x, createCommentVNode as C, createElementVNode as i, toDisplayString as k, createVNode as c, Fragment as L, renderList as M, withCtx as R, createTextVNode as q, renderSlot as F } from "vue";
|
|
2
2
|
import "../divider/index.js";
|
|
3
3
|
import { VftIcon as T } from "../icon/index.js";
|
|
4
4
|
import "../avatar/index.js";
|
|
@@ -91,26 +91,25 @@ import et from "./toc.js";
|
|
|
91
91
|
import { useCopyCode as it } from "./use/useCopyCode.js";
|
|
92
92
|
import { useActiveHeaderLinks as rt } from "./use/useActiveHeaderLinks.js";
|
|
93
93
|
import { COMP_TYPE as mt } from "./utils.js";
|
|
94
|
-
const pt = { class: "info-container" },
|
|
94
|
+
const pt = { class: "info-container" }, nt = {
|
|
95
95
|
key: 0,
|
|
96
96
|
class: "flex align-center"
|
|
97
|
-
},
|
|
97
|
+
}, st = { class: "infos" }, at = {
|
|
98
98
|
class: "reading",
|
|
99
99
|
title: "阅读量"
|
|
100
100
|
}, ct = ["data-path"], r = (
|
|
101
101
|
/* hoist-static*/
|
|
102
102
|
U("md-container")
|
|
103
|
-
),
|
|
104
|
-
name: r.b()
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const n = y(), m = ot();
|
|
103
|
+
), Zo = /* @__PURE__ */ P({
|
|
104
|
+
name: r.b(),
|
|
105
|
+
__name: "md-container",
|
|
106
|
+
setup(lt, { expose: V }) {
|
|
107
|
+
const u = $(), { initPhotoSwipe: w } = Z(`.${r.e("content")} img`);
|
|
108
|
+
w(), rt({}), it();
|
|
109
|
+
const s = _(), m = ot();
|
|
111
110
|
B(() => {
|
|
112
111
|
H(() => {
|
|
113
|
-
|
|
112
|
+
s.value = u.exposed.infos, setTimeout(() => {
|
|
114
113
|
j(m.hash);
|
|
115
114
|
});
|
|
116
115
|
const e = document.querySelectorAll(".item.expand"), p = document.querySelectorAll("div.language-vue");
|
|
@@ -119,25 +118,25 @@ const pt = { class: "info-container" }, st = {
|
|
|
119
118
|
p[o].offsetHeight === 0 ? (p[o].style.height = "auto", p[o].style.visibility = "visible") : (p[o].style.height = "0px", p[o].style.visibility = "hidden");
|
|
120
119
|
});
|
|
121
120
|
});
|
|
122
|
-
}),
|
|
123
|
-
infos: t(
|
|
121
|
+
}), V({
|
|
122
|
+
infos: t(s)
|
|
124
123
|
});
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
|
|
124
|
+
const D = location.pathname, b = u.appContext.config.globalProperties.$router, { go: E } = X(b);
|
|
125
|
+
function S(e) {
|
|
126
|
+
E("/?tag=" + e);
|
|
128
127
|
}
|
|
129
|
-
const
|
|
128
|
+
const z = I(() => {
|
|
130
129
|
var e;
|
|
131
130
|
return (e = m.meta.category) == null ? void 0 : e.includes("api");
|
|
132
|
-
}),
|
|
131
|
+
}), A = _(W());
|
|
133
132
|
return (e, p) => {
|
|
134
|
-
var o, d, f, g, h,
|
|
135
|
-
return
|
|
136
|
-
class: a([t(r).b(), t(r).is("api",
|
|
133
|
+
var o, d, f, g, h, v;
|
|
134
|
+
return n(), l("div", {
|
|
135
|
+
class: a([t(r).b(), t(r).is("api", z.value)])
|
|
137
136
|
}, [
|
|
138
|
-
(o =
|
|
137
|
+
(o = s.value) != null && o.sideData ? (n(), x(t(et), {
|
|
139
138
|
key: 0,
|
|
140
|
-
items:
|
|
139
|
+
items: s.value.sideData
|
|
141
140
|
}, null, 8, ["items"])) : C("", !0),
|
|
142
141
|
i("div", {
|
|
143
142
|
class: a(t(r).e("header"))
|
|
@@ -146,34 +145,34 @@ const pt = { class: "info-container" }, st = {
|
|
|
146
145
|
class: a(t(r).e("title"))
|
|
147
146
|
}, k((d = t(m).meta) == null ? void 0 : d.title), 3),
|
|
148
147
|
i("div", pt, [
|
|
149
|
-
(g = (f = t(m).meta) == null ? void 0 : f.category) != null && g.length ? (
|
|
148
|
+
(g = (f = t(m).meta) == null ? void 0 : f.category) != null && g.length ? (n(), l("div", nt, [
|
|
150
149
|
c(t(T), {
|
|
151
150
|
size: 14,
|
|
152
|
-
color:
|
|
151
|
+
color: A.value,
|
|
153
152
|
icon: "ico-bx:category",
|
|
154
153
|
class: "mr-8px"
|
|
155
154
|
}, null, 8, ["color"]),
|
|
156
|
-
(
|
|
155
|
+
(n(!0), l(L, null, M((h = t(m).meta) == null ? void 0 : h.category, (y, N) => (n(), x(t(K), {
|
|
157
156
|
size: "small",
|
|
158
157
|
class: "mr-5px cursor-pointer",
|
|
159
158
|
type: t(J)(t(mt), 1)[0],
|
|
160
|
-
key:
|
|
161
|
-
onClick: (
|
|
159
|
+
key: N,
|
|
160
|
+
onClick: (ut) => S(y)
|
|
162
161
|
}, {
|
|
163
162
|
default: R(() => [
|
|
164
|
-
q(k(
|
|
163
|
+
q(k(y), 1)
|
|
165
164
|
]),
|
|
166
165
|
_: 2
|
|
167
166
|
}, 1032, ["type", "onClick"]))), 128))
|
|
168
167
|
])) : C("", !0),
|
|
169
|
-
i("div",
|
|
168
|
+
i("div", st, [
|
|
170
169
|
c(t(G), {
|
|
171
170
|
title: "发布时间",
|
|
172
171
|
icon: "ico-uiw:date",
|
|
173
172
|
size: 12,
|
|
174
173
|
class: "mr-10px",
|
|
175
174
|
distance: 5,
|
|
176
|
-
text: t(O)(new Date((
|
|
175
|
+
text: t(O)(new Date((v = t(m).meta) == null ? void 0 : v.date).getTime() - t(Y)())
|
|
177
176
|
}, null, 8, ["text"]),
|
|
178
177
|
i("div", at, [
|
|
179
178
|
c(t(T), {
|
|
@@ -183,7 +182,7 @@ const pt = { class: "info-container" }, st = {
|
|
|
183
182
|
}),
|
|
184
183
|
i("div", {
|
|
185
184
|
class: "waline-pageview-count lh-1",
|
|
186
|
-
"data-path": t(
|
|
185
|
+
"data-path": t(D)
|
|
187
186
|
}, "0", 8, ct)
|
|
188
187
|
])
|
|
189
188
|
])
|
|
@@ -200,5 +199,5 @@ const pt = { class: "info-container" }, st = {
|
|
|
200
199
|
}
|
|
201
200
|
});
|
|
202
201
|
export {
|
|
203
|
-
|
|
202
|
+
Zo as default
|
|
204
203
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as d, ref as n, shallowRef as v, computed as m, onMounted as f, createVNode as e, withDirectives as w, h as g, resolveDirective as h } from "vue";
|
|
2
2
|
import { useNamespace as V } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -6,40 +6,39 @@ import "../../hooks/use-z-index/index.js";
|
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "@vft/utils";
|
|
8
8
|
import "../../utils/ns-cover.js";
|
|
9
|
-
import { getVuePlaygroundSettings as
|
|
10
|
-
import { VftIcon as
|
|
11
|
-
const
|
|
9
|
+
import { getVuePlaygroundSettings as y } from "./playground.js";
|
|
10
|
+
import { VftIcon as C } from "../icon/index.js";
|
|
11
|
+
const r = (
|
|
12
12
|
/* hoist-static*/
|
|
13
13
|
V("md-vue-playground")
|
|
14
|
-
),
|
|
15
|
-
name:
|
|
16
|
-
|
|
17
|
-
...y,
|
|
14
|
+
), k = /* @__PURE__ */ d({
|
|
15
|
+
name: r.b(),
|
|
16
|
+
__name: "md-vue-playground",
|
|
18
17
|
props: {
|
|
19
18
|
title: {},
|
|
20
19
|
files: {},
|
|
21
20
|
settings: {}
|
|
22
21
|
},
|
|
23
22
|
setup(t) {
|
|
24
|
-
const
|
|
23
|
+
const s = n(!0), a = v(), i = n(), o = m(() => y(t.settings)), l = n(o.value.showCode || !1), u = async () => {
|
|
25
24
|
const {
|
|
26
|
-
ReplStore:
|
|
27
|
-
Repl:
|
|
25
|
+
ReplStore: c,
|
|
26
|
+
Repl: p
|
|
28
27
|
} = await import("@vue/repl");
|
|
29
|
-
a.value =
|
|
28
|
+
a.value = p, i.value = new c({
|
|
30
29
|
serializedState: decodeURIComponent(t.files),
|
|
31
30
|
showOutput: !0
|
|
32
|
-
}), o.value.vueVersion && await
|
|
31
|
+
}), o.value.vueVersion && await i.value.setVueVersion(o.value.vueVersion);
|
|
33
32
|
};
|
|
34
33
|
return f(async () => {
|
|
35
|
-
await
|
|
34
|
+
await u(), s.value = !1;
|
|
36
35
|
}), () => e("div", {
|
|
37
|
-
class:
|
|
36
|
+
class: r.b()
|
|
38
37
|
}, [e("div", {
|
|
39
38
|
class: "title-wrapper"
|
|
40
39
|
}, [t.title ? e("div", {
|
|
41
40
|
class: "title"
|
|
42
|
-
}, [decodeURIComponent(t.title)]) : null, e(
|
|
41
|
+
}, [decodeURIComponent(t.title)]) : null, e(C, {
|
|
43
42
|
cursor: !0,
|
|
44
43
|
icon: l.value ? "ico-bx:collapse-alt" : "ico-bx:expand-alt",
|
|
45
44
|
size: 20,
|
|
@@ -49,11 +48,11 @@ const u = (
|
|
|
49
48
|
}, null)]), w(e("div", {
|
|
50
49
|
class: ["repl-container", l.value ? "show-code" : "hide-code"]
|
|
51
50
|
}, [a.value ? g(a.value, {
|
|
52
|
-
store:
|
|
51
|
+
store: i.value,
|
|
53
52
|
...o.value
|
|
54
|
-
}) : null]), [[h("loading"),
|
|
53
|
+
}) : null]), [[h("loading"), s.value]])]);
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
export {
|
|
58
|
-
|
|
57
|
+
k as default
|
|
59
58
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as r, normalizeClass as l, unref as m, createElementVNode as s, Fragment as p, createTextVNode as a, toDisplayString as u, renderSlot as i } from "vue";
|
|
2
2
|
import { useNamespace as c } from "../../hooks/use-namespace/index.js";
|
|
3
3
|
import "@popperjs/core";
|
|
4
4
|
import "lodash";
|
|
@@ -9,30 +9,29 @@ import "../../utils/ns-cover.js";
|
|
|
9
9
|
const t = (
|
|
10
10
|
/* hoist-static*/
|
|
11
11
|
c("menu-item-group")
|
|
12
|
-
),
|
|
13
|
-
name: t.b()
|
|
14
|
-
|
|
15
|
-
...d,
|
|
12
|
+
), C = /* @__PURE__ */ n({
|
|
13
|
+
name: t.b(),
|
|
14
|
+
__name: "menu-item-group",
|
|
16
15
|
props: {
|
|
17
16
|
title: {}
|
|
18
17
|
},
|
|
19
|
-
setup(
|
|
20
|
-
return (e,
|
|
21
|
-
class: l(
|
|
18
|
+
setup(d) {
|
|
19
|
+
return (e, f) => (o(), r("li", {
|
|
20
|
+
class: l(m(t).b())
|
|
22
21
|
}, [
|
|
23
|
-
|
|
24
|
-
class: l(
|
|
22
|
+
s("div", {
|
|
23
|
+
class: l(m(t).e("title"))
|
|
25
24
|
}, [
|
|
26
|
-
e.$slots.title ?
|
|
25
|
+
e.$slots.title ? i(e.$slots, "title", { key: 1 }) : (o(), r(p, { key: 0 }, [
|
|
27
26
|
a(u(e.title), 1)
|
|
28
27
|
], 64))
|
|
29
28
|
], 2),
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
s("ul", null, [
|
|
30
|
+
i(e.$slots, "default")
|
|
32
31
|
])
|
|
33
32
|
], 2));
|
|
34
33
|
}
|
|
35
34
|
});
|
|
36
35
|
export {
|
|
37
|
-
|
|
36
|
+
C as default
|
|
38
37
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as q, getCurrentInstance as G, useAttrs as H, inject as P, computed as u, reactive as J, onMounted as K, onBeforeUnmount as L, openBlock as r, createElementBlock as k, Fragment as b, createBlock as l, unref as o, createCommentVNode as d, createElementVNode as y, normalizeClass as A, withCtx as E, renderSlot as g, normalizeProps as S, mergeProps as T, createVNode as Q } from "vue";
|
|
2
2
|
import { singleAttrToObj as R, renderTNode as W, VNode as X } from "@vft/utils";
|
|
3
3
|
import { throwError as w } from "../../utils/error.js";
|
|
4
4
|
import "lodash";
|
|
@@ -89,11 +89,10 @@ import "../message/index.js";
|
|
|
89
89
|
const ee = ["title"], c = (
|
|
90
90
|
/* hoist-static*/
|
|
91
91
|
U("menu-item")
|
|
92
|
-
),
|
|
92
|
+
), wt = /* @__PURE__ */ q({
|
|
93
93
|
name: c.b(),
|
|
94
|
-
inheritAttrs: !1
|
|
95
|
-
|
|
96
|
-
...te,
|
|
94
|
+
inheritAttrs: !1,
|
|
95
|
+
__name: "menu-item",
|
|
97
96
|
props: {
|
|
98
97
|
index: {},
|
|
99
98
|
route: {},
|
|
@@ -107,7 +106,7 @@ const ee = ["title"], c = (
|
|
|
107
106
|
},
|
|
108
107
|
emits: ["click", "mouseenter", "mouseleave"],
|
|
109
108
|
setup(t, { emit: f }) {
|
|
110
|
-
const B = G(),
|
|
109
|
+
const B = G(), Y = H(), D = U("menu"), v = U("menu-item"), e = t.isAloneUse ? null : P("rootMenu");
|
|
111
110
|
!e && !t.isAloneUse && w(c.b(), "can not inject root menu");
|
|
112
111
|
const { parentMenu: C, indexPath: N } = Z(B, u(() => t.index)), m = t.isAloneUse ? null : P(`subMenu:${C.value.uid}`);
|
|
113
112
|
!m && !t.isAloneUse && w(c.b(), "can not inject sub menu");
|
|
@@ -115,14 +114,14 @@ const ee = ["title"], c = (
|
|
|
115
114
|
index: t.index,
|
|
116
115
|
indexPath: N,
|
|
117
116
|
active: $
|
|
118
|
-
}),
|
|
117
|
+
}), F = () => {
|
|
119
118
|
t.disabled || (e == null || e.handleMenuItemClick({
|
|
120
|
-
...
|
|
119
|
+
...Y,
|
|
121
120
|
index: t.index,
|
|
122
121
|
indexPath: N.value,
|
|
123
122
|
route: t.route
|
|
124
123
|
}), f("click", n));
|
|
125
|
-
}, p = u(() => R(t.icon, "icon")),
|
|
124
|
+
}, p = u(() => R(t.icon, "icon")), O = u(() => W(B, "title"));
|
|
126
125
|
return K(() => {
|
|
127
126
|
t.isAloneUse || (m == null || m.addSubMenu(n), e == null || e.addMenuItem(n));
|
|
128
127
|
}), L(() => {
|
|
@@ -145,7 +144,7 @@ const ee = ["title"], c = (
|
|
|
145
144
|
onMouseleave: s[1] || (s[1] = (a) => f("mouseleave")),
|
|
146
145
|
role: "menuitem",
|
|
147
146
|
tabindex: "-1",
|
|
148
|
-
onClick:
|
|
147
|
+
onClick: F
|
|
149
148
|
}, [
|
|
150
149
|
((V = (I = o(C)) == null ? void 0 : I.type) == null ? void 0 : V.name) === "vft-menu" && ((h = o(e)) != null && h.props.collapse) && i.$slots.title ? (r(), l(o(_), {
|
|
151
150
|
key: 0,
|
|
@@ -160,7 +159,7 @@ const ee = ["title"], c = (
|
|
|
160
159
|
var a;
|
|
161
160
|
return [
|
|
162
161
|
y("div", {
|
|
163
|
-
class: A(o(
|
|
162
|
+
class: A(o(D).be("tooltip", "trigger"))
|
|
164
163
|
}, [
|
|
165
164
|
(a = p.value) != null && a.icon ? (r(), l(o(z), S(T({ key: 0 }, p.value)), null, 16)) : d("", !0),
|
|
166
165
|
g(i.$slots, "default")
|
|
@@ -175,7 +174,7 @@ const ee = ["title"], c = (
|
|
|
175
174
|
class: A(o(c).e("text")),
|
|
176
175
|
title: i.title
|
|
177
176
|
}, [
|
|
178
|
-
Q(o(X), { content:
|
|
177
|
+
Q(o(X), { content: O.value }, null, 8, ["content"])
|
|
179
178
|
], 10, ee)
|
|
180
179
|
], 64))
|
|
181
180
|
], 64))
|
|
@@ -189,5 +188,5 @@ const ee = ["title"], c = (
|
|
|
189
188
|
}
|
|
190
189
|
});
|
|
191
190
|
export {
|
|
192
|
-
|
|
191
|
+
wt as default
|
|
193
192
|
};
|