vft 0.0.516 → 0.0.517
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/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/image/image.vue2.js +15 -15
- package/es/components/md-container/index.d.ts +1 -0
- package/es/components/md-container/md-container.vue.d.ts +1 -0
- package/es/components/md-container/md-container.vue2.js +52 -50
- package/es/components/message-box/message-box.vue2.js +2 -2
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/image/image.vue2.cjs +1 -1
- package/lib/components/md-container/index.d.ts +1 -0
- package/lib/components/md-container/md-container.vue.d.ts +1 -0
- package/lib/components/md-container/md-container.vue2.cjs +1 -1
- package/lib/components/message-box/message-box.vue2.cjs +1 -1
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +3 -3
- package/web-types.json +1 -1
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
63
63
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
64
64
|
readonly effect?: "light" | "dark" | undefined;
|
|
65
|
-
readonly visible?: boolean | null | undefined;
|
|
66
65
|
readonly teleported?: boolean | undefined;
|
|
67
66
|
readonly open?: boolean | undefined;
|
|
67
|
+
readonly visible?: boolean | null | undefined;
|
|
68
68
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
69
69
|
readonly arrowOffset?: number | undefined;
|
|
70
70
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
481
481
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
482
482
|
readonly effect?: "light" | "dark" | undefined;
|
|
483
|
-
readonly visible?: boolean | null | undefined;
|
|
484
483
|
readonly teleported?: boolean | undefined;
|
|
485
484
|
readonly open?: boolean | undefined;
|
|
485
|
+
readonly visible?: boolean | null | undefined;
|
|
486
486
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
487
487
|
readonly arrowOffset?: number | undefined;
|
|
488
488
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -85,9 +85,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
85
85
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
86
86
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
87
87
|
readonly effect?: "light" | "dark" | undefined;
|
|
88
|
-
readonly visible?: boolean | null | undefined;
|
|
89
88
|
readonly teleported?: boolean | undefined;
|
|
90
89
|
readonly open?: boolean | undefined;
|
|
90
|
+
readonly visible?: boolean | null | undefined;
|
|
91
91
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
92
92
|
readonly arrowOffset?: number | undefined;
|
|
93
93
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -503,9 +503,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
503
503
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
504
504
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
505
505
|
readonly effect?: "light" | "dark" | undefined;
|
|
506
|
-
readonly visible?: boolean | null | undefined;
|
|
507
506
|
readonly teleported?: boolean | undefined;
|
|
508
507
|
readonly open?: boolean | undefined;
|
|
508
|
+
readonly visible?: boolean | null | undefined;
|
|
509
509
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
510
510
|
readonly arrowOffset?: number | undefined;
|
|
511
511
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1006,9 +1006,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1006
1006
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1007
1007
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1008
1008
|
readonly effect?: "light" | "dark" | undefined;
|
|
1009
|
-
readonly visible?: boolean | null | undefined;
|
|
1010
1009
|
readonly teleported?: boolean | undefined;
|
|
1011
1010
|
readonly open?: boolean | undefined;
|
|
1011
|
+
readonly visible?: boolean | null | undefined;
|
|
1012
1012
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1013
1013
|
readonly arrowOffset?: number | undefined;
|
|
1014
1014
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1424,9 +1424,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1424
1424
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1425
1425
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1426
1426
|
readonly effect?: "light" | "dark" | undefined;
|
|
1427
|
-
readonly visible?: boolean | null | undefined;
|
|
1428
1427
|
readonly teleported?: boolean | undefined;
|
|
1429
1428
|
readonly open?: boolean | undefined;
|
|
1429
|
+
readonly visible?: boolean | null | undefined;
|
|
1430
1430
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1431
1431
|
readonly arrowOffset?: number | undefined;
|
|
1432
1432
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1916,9 +1916,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1916
1916
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1917
1917
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1918
1918
|
readonly effect?: "light" | "dark" | undefined;
|
|
1919
|
-
readonly visible?: boolean | null | undefined;
|
|
1920
1919
|
readonly teleported?: boolean | undefined;
|
|
1921
1920
|
readonly open?: boolean | undefined;
|
|
1921
|
+
readonly visible?: boolean | null | undefined;
|
|
1922
1922
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1923
1923
|
readonly arrowOffset?: number | undefined;
|
|
1924
1924
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -2334,9 +2334,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2334
2334
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
2335
2335
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
2336
2336
|
readonly effect?: "light" | "dark" | undefined;
|
|
2337
|
-
readonly visible?: boolean | null | undefined;
|
|
2338
2337
|
readonly teleported?: boolean | undefined;
|
|
2339
2338
|
readonly open?: boolean | undefined;
|
|
2339
|
+
readonly visible?: boolean | null | undefined;
|
|
2340
2340
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
2341
2341
|
readonly arrowOffset?: number | undefined;
|
|
2342
2342
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
autofocus: {
|
|
25
25
|
type: import("vue").PropType<boolean>;
|
|
26
26
|
};
|
|
27
|
-
icon: {
|
|
28
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
29
|
-
};
|
|
30
27
|
dark: {
|
|
31
28
|
type: import("vue").PropType<boolean>;
|
|
32
29
|
};
|
|
30
|
+
icon: {
|
|
31
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
32
|
+
};
|
|
33
33
|
loading: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
35
35
|
};
|
|
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
autofocus: {
|
|
115
115
|
type: import("vue").PropType<boolean>;
|
|
116
116
|
};
|
|
117
|
-
icon: {
|
|
118
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
119
|
-
};
|
|
120
117
|
dark: {
|
|
121
118
|
type: import("vue").PropType<boolean>;
|
|
122
119
|
};
|
|
120
|
+
icon: {
|
|
121
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
122
|
+
};
|
|
123
123
|
loading: {
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
};
|
|
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
autofocus: {
|
|
200
200
|
type: import("vue").PropType<boolean>;
|
|
201
201
|
};
|
|
202
|
-
icon: {
|
|
203
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
204
|
-
};
|
|
205
202
|
dark: {
|
|
206
203
|
type: import("vue").PropType<boolean>;
|
|
207
204
|
};
|
|
205
|
+
icon: {
|
|
206
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
207
|
+
};
|
|
208
208
|
loading: {
|
|
209
209
|
type: import("vue").PropType<boolean>;
|
|
210
210
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as T, useAttrs as W, ref as o, computed as d, watch as G, onMounted as J, openBlock as s, createElementBlock as f, normalizeStyle as Q, normalizeClass as y, unref as l, mergeProps as U, createCommentVNode as u, renderSlot as k, createElementVNode as A, Fragment as X, createBlock as Z, withCtx as _, nextTick as ee } from "vue";
|
|
2
2
|
import { useAttrs as te } from "@vft/use";
|
|
3
|
-
import { isInContainer as le, isElement as
|
|
3
|
+
import { isInContainer as le, isElement as ae, isString as ne, getScrollContainer as ie } from "@vft/utils";
|
|
4
4
|
import { VftImageViewer as re } from "../image-viewer/index.js";
|
|
5
5
|
import { isClient as v, useThrottleFn as oe, useEventListener as V } from "@vueuse/core";
|
|
6
6
|
import "../config-provider/hooks/use-global-config.js";
|
|
@@ -34,33 +34,33 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
|
|
|
34
34
|
setup(e, { expose: $, emit: b }) {
|
|
35
35
|
const c = b, i = se("image");
|
|
36
36
|
let C = "";
|
|
37
|
-
const M = W(), O = te(), w = o(), r = o(!1),
|
|
37
|
+
const M = W(), O = te(), w = o(), r = o(!1), a = o(!0), h = o(!1), m = o(), n = o(), H = v && "loading" in HTMLImageElement.prototype;
|
|
38
38
|
let z, S;
|
|
39
39
|
const F = d(() => M.style), N = d(() => v && e.fit ? { objectFit: e.fit } : {}), g = d(() => Array.isArray(e.previewSrcList) && e.previewSrcList.length > 0), P = d(() => {
|
|
40
40
|
let t = e.initialIndex;
|
|
41
41
|
return e.initialIndex > e.previewSrcList.length - 1 && (t = 0), t;
|
|
42
42
|
}), p = d(() => e.loading === "eager" ? !1 : !H && e.loading === "lazy" || e.lazy), L = () => {
|
|
43
|
-
v && (
|
|
43
|
+
v && (a.value = !0, r.value = !1, w.value = e.src);
|
|
44
44
|
};
|
|
45
45
|
function D(t) {
|
|
46
|
-
|
|
46
|
+
a.value = !1, r.value = !1, c("load", t);
|
|
47
47
|
}
|
|
48
48
|
function R(t) {
|
|
49
|
-
|
|
49
|
+
a.value = !1, r.value = !0, c("error", t);
|
|
50
50
|
}
|
|
51
51
|
function x() {
|
|
52
|
-
le(m.value,
|
|
52
|
+
le(m.value, n.value) && (L(), B());
|
|
53
53
|
}
|
|
54
54
|
const I = oe(x, 200);
|
|
55
55
|
async function E() {
|
|
56
|
-
v && (await ee(),
|
|
57
|
-
|
|
56
|
+
v && (await ee(), ae(e.scrollContainer) ? n.value = e.scrollContainer : ne(e.scrollContainer) && e.scrollContainer !== "" ? n.value = document.querySelector(e.scrollContainer) ?? void 0 : m.value && (n.value = ie(m.value)), n.value && (z = V(
|
|
57
|
+
n,
|
|
58
58
|
"scroll",
|
|
59
59
|
I
|
|
60
60
|
), setTimeout(() => x(), 100)));
|
|
61
61
|
}
|
|
62
62
|
function B() {
|
|
63
|
-
!v || !
|
|
63
|
+
!v || !n.value || !I || (z?.(), n.value = void 0);
|
|
64
64
|
}
|
|
65
65
|
function Y(t) {
|
|
66
66
|
if (t.ctrlKey) {
|
|
@@ -76,7 +76,7 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
|
|
|
76
76
|
}), C = document.body.style.overflow, document.body.style.overflow = "hidden", h.value = !0, c("show"));
|
|
77
77
|
}
|
|
78
78
|
function q() {
|
|
79
|
-
|
|
79
|
+
S?.(), document.body.style.overflow = C, h.value = !1, c("close");
|
|
80
80
|
}
|
|
81
81
|
function K(t) {
|
|
82
82
|
c("switch", t);
|
|
@@ -84,12 +84,12 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
|
|
|
84
84
|
return G(
|
|
85
85
|
() => e.src,
|
|
86
86
|
() => {
|
|
87
|
-
p.value ? (
|
|
87
|
+
p.value ? (a.value = !0, r.value = !1, B(), E()) : L();
|
|
88
88
|
}
|
|
89
89
|
), J(() => {
|
|
90
90
|
p.value ? E() : L();
|
|
91
91
|
}), $({
|
|
92
|
-
isLoading:
|
|
92
|
+
isLoading: a
|
|
93
93
|
}), (t, fe) => (s(), f("div", {
|
|
94
94
|
ref_key: "container",
|
|
95
95
|
ref: m,
|
|
@@ -103,18 +103,18 @@ const ue = ["src", "loading"], ce = { key: 0 }, de = T({
|
|
|
103
103
|
class: [
|
|
104
104
|
l(i).e("inner"),
|
|
105
105
|
g.value && l(i).e("preview"),
|
|
106
|
-
|
|
106
|
+
a.value && l(i).is("loading")
|
|
107
107
|
],
|
|
108
108
|
onClick: j,
|
|
109
109
|
onLoad: D,
|
|
110
110
|
onError: R,
|
|
111
111
|
alt: ""
|
|
112
112
|
}), null, 16, ue)) : u("", !0),
|
|
113
|
-
|
|
113
|
+
a.value || r.value ? (s(), f("div", {
|
|
114
114
|
key: 1,
|
|
115
115
|
class: y(l(i).e("wrapper"))
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
a.value ? k(t.$slots, "placeholder", { key: 0 }, () => [
|
|
118
118
|
A("div", {
|
|
119
119
|
class: y(l(i).e("placeholder"))
|
|
120
120
|
}, null, 2)
|
|
@@ -43,6 +43,7 @@ export declare const VftMdContainer: import("vft/es/utils").SFCWithInstall<{
|
|
|
43
43
|
}>> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
44
44
|
$slots: {
|
|
45
45
|
default?(_: {}): any;
|
|
46
|
+
comment?(_: {}): any;
|
|
46
47
|
};
|
|
47
48
|
})> & Record<string, any>;
|
|
48
49
|
export default VftMdContainer;
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
}
|
|
9
9
|
declare function __VLS_template(): {
|
|
10
10
|
default?(_: {}): any;
|
|
11
|
+
comment?(_: {}): any;
|
|
11
12
|
};
|
|
12
13
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
13
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VftIcon as
|
|
1
|
+
import { defineComponent as T, getCurrentInstance as N, ref as A, computed as C, onMounted as P, nextTick as q, onDeactivated as z, onBeforeMount as B, openBlock as r, createElementBlock as f, normalizeClass as c, unref as e, createBlock as k, createCommentVNode as p, createElementVNode as l, toDisplayString as x, createVNode as m, Fragment as I, renderList as O, withCtx as F, createTextVNode as H, renderSlot as b } from "vue";
|
|
2
|
+
import { VftIcon as D } from "../icon/index.js";
|
|
3
3
|
import { VftIconText as J } from "../icon-text/index.js";
|
|
4
4
|
import { VftMdComment as j } from "../md-comment/index.js";
|
|
5
5
|
import { VftSideMenu as U } from "../side-menu/index.js";
|
|
6
6
|
import { VftTag as Y } from "../tag/index.js";
|
|
7
7
|
import "@vueuse/core";
|
|
8
|
-
import { handleScrollPosition as G, getAdaptiveOffset as K, jumpElement as
|
|
8
|
+
import { handleScrollPosition as G, getAdaptiveOffset as K, jumpElement as S, getRandomElementForArr as Q, isClient as W } from "@vft/utils";
|
|
9
9
|
import "../config-provider/hooks/use-global-config.js";
|
|
10
10
|
import { primaryColor as X } from "../../utils/ns-cover.js";
|
|
11
11
|
import { debounce as Z } from "lodash-es";
|
|
@@ -26,9 +26,9 @@ const re = { class: "info-container" }, ce = {
|
|
|
26
26
|
}, me = { class: "infos" }, de = {
|
|
27
27
|
class: "reading",
|
|
28
28
|
title: "阅读量"
|
|
29
|
-
}, ue = ["data-path"], fe =
|
|
29
|
+
}, ue = ["data-path"], fe = T({
|
|
30
30
|
name: "vft-md-container"
|
|
31
|
-
}), qe = /* @__PURE__ */
|
|
31
|
+
}), qe = /* @__PURE__ */ T({
|
|
32
32
|
...fe,
|
|
33
33
|
props: {
|
|
34
34
|
tocList: {},
|
|
@@ -36,59 +36,59 @@ const re = { class: "info-container" }, ce = {
|
|
|
36
36
|
showComment: { type: Boolean, default: !0 }
|
|
37
37
|
},
|
|
38
38
|
setup(a) {
|
|
39
|
-
const s = ee("md-container"),
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
function E(
|
|
43
|
-
|
|
39
|
+
const s = ee("md-container"), w = N(), d = A(), u = C(() => a.tocList && a.tocList !== "undefined" ? JSON.parse(a.tocList) : ""), { initPhotoSwipe: L } = ne(`.${s.e("content")} img`);
|
|
40
|
+
L(), ae();
|
|
41
|
+
const g = w.appContext.config.globalProperties.$router, n = g.currentRoute.value, V = X(), _ = W ? location.pathname : "", { go: $ } = te(g);
|
|
42
|
+
function E(t) {
|
|
43
|
+
$(`/?classify=${t}`);
|
|
44
44
|
}
|
|
45
|
-
const M =
|
|
45
|
+
const M = C(() => n.meta.category?.includes("api")), h = Z(
|
|
46
46
|
() => G({
|
|
47
47
|
scrollDom: a.scrollDom,
|
|
48
48
|
contentDom: ".header-anchor",
|
|
49
49
|
selectAttrName: "href",
|
|
50
50
|
offset: K(210, 1920, 1500, 1920),
|
|
51
|
-
callback: (
|
|
52
|
-
|
|
51
|
+
callback: (t) => {
|
|
52
|
+
d.value?.menuRef && (d.value.menuRef.activeIndex = t.slice(1));
|
|
53
53
|
}
|
|
54
54
|
}),
|
|
55
55
|
100
|
|
56
|
-
),
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
|
|
56
|
+
), v = (t) => {
|
|
57
|
+
S(`[id="${t.index}"]`, a.scrollDom, 120);
|
|
58
|
+
}, y = () => {
|
|
59
|
+
const t = document.querySelector(a.scrollDom);
|
|
60
|
+
t && t.removeEventListener("scroll", h);
|
|
61
61
|
};
|
|
62
|
-
return
|
|
63
|
-
|
|
62
|
+
return P(() => {
|
|
63
|
+
q(() => {
|
|
64
64
|
setTimeout(() => {
|
|
65
|
-
n.hash &&
|
|
65
|
+
n.hash && S(`[id="${encodeURI(n.hash).slice(1)}"]`);
|
|
66
66
|
}), setTimeout(() => {
|
|
67
|
-
const
|
|
68
|
-
|
|
67
|
+
const o = document.querySelector(".layout-content");
|
|
68
|
+
o && o.addEventListener("scroll", h);
|
|
69
69
|
}, 1500);
|
|
70
|
-
const
|
|
70
|
+
const t = document.querySelectorAll(".item.expand"), i = document.querySelectorAll(
|
|
71
71
|
"div.language-vue"
|
|
72
72
|
);
|
|
73
|
-
for (let
|
|
74
|
-
oe(o
|
|
75
|
-
i[
|
|
73
|
+
for (let o = 0; o < t.length; o++)
|
|
74
|
+
oe(t[o], "click", () => {
|
|
75
|
+
i[o].offsetHeight === 0 ? (i[o].style.height = "auto", i[o].style.visibility = "visible") : (i[o].style.height = "0px", i[o].style.visibility = "hidden");
|
|
76
76
|
});
|
|
77
77
|
});
|
|
78
|
-
}), q(() => {
|
|
79
|
-
C();
|
|
80
78
|
}), z(() => {
|
|
81
|
-
|
|
82
|
-
}), (
|
|
79
|
+
y();
|
|
80
|
+
}), B(() => {
|
|
81
|
+
y();
|
|
82
|
+
}), (t, i) => (r(), f("div", {
|
|
83
83
|
class: c([e(s).b(), e(s).is("api", M.value)])
|
|
84
84
|
}, [
|
|
85
|
-
|
|
85
|
+
u.value?.length ? (r(), k(e(U), {
|
|
86
86
|
key: 0,
|
|
87
87
|
ref_key: "sideMenuRef",
|
|
88
|
-
ref:
|
|
89
|
-
"default-active":
|
|
88
|
+
ref: d,
|
|
89
|
+
"default-active": u.value[0].slug,
|
|
90
90
|
class: "toc-side-menu",
|
|
91
|
-
menus:
|
|
91
|
+
menus: u.value,
|
|
92
92
|
"is-fixed-left": !1,
|
|
93
93
|
"default-openeds-level": "",
|
|
94
94
|
"unique-opened": !1,
|
|
@@ -96,37 +96,37 @@ const re = { class: "info-container" }, ce = {
|
|
|
96
96
|
"attr-mapping": {
|
|
97
97
|
index: "slug"
|
|
98
98
|
},
|
|
99
|
-
onSelect:
|
|
100
|
-
onSubMenuClick:
|
|
99
|
+
onSelect: v,
|
|
100
|
+
onSubMenuClick: v
|
|
101
101
|
}, null, 8, ["default-active", "menus"])) : p("", !0),
|
|
102
102
|
l("div", {
|
|
103
103
|
class: c(e(s).e("header"))
|
|
104
104
|
}, [
|
|
105
105
|
l("h1", {
|
|
106
106
|
class: c(e(s).e("title"))
|
|
107
|
-
},
|
|
107
|
+
}, x(e(n).meta?.title), 3),
|
|
108
108
|
l("div", re, [
|
|
109
|
-
e(n).meta?.category?.length ? (r(),
|
|
110
|
-
|
|
109
|
+
e(n).meta?.category?.length ? (r(), f("div", ce, [
|
|
110
|
+
m(e(D), {
|
|
111
111
|
size: 14,
|
|
112
|
-
color: e(
|
|
112
|
+
color: e(V),
|
|
113
113
|
icon: "icon-category"
|
|
114
114
|
}, null, 8, ["color"]),
|
|
115
|
-
(r(!0),
|
|
115
|
+
(r(!0), f(I, null, O(e(n).meta?.category, (o, R) => (r(), k(e(Y), {
|
|
116
116
|
size: "small",
|
|
117
117
|
class: "tag",
|
|
118
118
|
type: e(Q)(e(se), 1)[0],
|
|
119
119
|
key: R,
|
|
120
|
-
onClick: (pe) => E(
|
|
120
|
+
onClick: (pe) => E(o)
|
|
121
121
|
}, {
|
|
122
|
-
default:
|
|
123
|
-
|
|
122
|
+
default: F(() => [
|
|
123
|
+
H(x(o), 1)
|
|
124
124
|
]),
|
|
125
125
|
_: 2
|
|
126
126
|
}, 1032, ["type", "onClick"]))), 128))
|
|
127
127
|
])) : p("", !0),
|
|
128
128
|
l("div", me, [
|
|
129
|
-
|
|
129
|
+
m(e(J), {
|
|
130
130
|
title: "发布时间",
|
|
131
131
|
icon: "icon-date",
|
|
132
132
|
size: 12,
|
|
@@ -137,14 +137,14 @@ const re = { class: "info-container" }, ce = {
|
|
|
137
137
|
)
|
|
138
138
|
}, null, 8, ["text"]),
|
|
139
139
|
l("div", de, [
|
|
140
|
-
|
|
140
|
+
m(e(D), {
|
|
141
141
|
icon: "icon-reading",
|
|
142
142
|
size: 14,
|
|
143
143
|
class: "mr-5px"
|
|
144
144
|
}),
|
|
145
145
|
l("div", {
|
|
146
146
|
class: "waline-pageview-count lh-1",
|
|
147
|
-
"data-path": e(
|
|
147
|
+
"data-path": e(_)
|
|
148
148
|
}, "0", 8, ue)
|
|
149
149
|
])
|
|
150
150
|
])
|
|
@@ -153,9 +153,11 @@ const re = { class: "info-container" }, ce = {
|
|
|
153
153
|
l("div", {
|
|
154
154
|
class: c(e(s).e("content"))
|
|
155
155
|
}, [
|
|
156
|
-
|
|
156
|
+
b(t.$slots, "default")
|
|
157
157
|
], 2),
|
|
158
|
-
a.showComment ? (
|
|
158
|
+
a.showComment ? b(t.$slots, "comment", { key: 1 }, () => [
|
|
159
|
+
m(e(j))
|
|
160
|
+
]) : p("", !0),
|
|
159
161
|
i[0] || (i[0] = l("ins", {
|
|
160
162
|
class: "adsbygoogle",
|
|
161
163
|
style: { display: "block", "text-align": "center" },
|
|
@@ -106,12 +106,12 @@ const xe = ["aria-label", "aria-describedby"], we = ["id"], he = J({
|
|
|
106
106
|
), F(
|
|
107
107
|
() => d.value,
|
|
108
108
|
(n) => {
|
|
109
|
-
|
|
109
|
+
n && (l.boxType !== "prompt" && (e.autofocus ? C.value = P.value?.$el ?? f.value : C.value = f.value), e.zIndex = $()), l.boxType === "prompt" && (n ? T().then(() => {
|
|
110
110
|
B.value && B.value.$el && (e.autofocus ? C.value = le() ?? f.value : C.value = f.value);
|
|
111
111
|
}) : (e.editorErrorMessage = "", e.validateError = !1));
|
|
112
112
|
}
|
|
113
113
|
), ie(async () => {
|
|
114
|
-
await T(),
|
|
114
|
+
await T(), l.closeOnHashChange && window.addEventListener("hashchange", b);
|
|
115
115
|
}), re(() => {
|
|
116
116
|
l.closeOnHashChange && window.removeEventListener("hashchange", b);
|
|
117
117
|
});
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|
|
@@ -263,9 +263,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
263
263
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
264
264
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
265
265
|
readonly effect?: "light" | "dark" | undefined;
|
|
266
|
-
readonly visible?: boolean | null | undefined;
|
|
267
266
|
readonly teleported?: boolean | undefined;
|
|
268
267
|
readonly open?: boolean | undefined;
|
|
268
|
+
readonly visible?: boolean | null | undefined;
|
|
269
269
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
270
270
|
readonly arrowOffset?: number | undefined;
|
|
271
271
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -681,9 +681,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
681
681
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
682
682
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
683
683
|
readonly effect?: "light" | "dark" | undefined;
|
|
684
|
-
readonly visible?: boolean | null | undefined;
|
|
685
684
|
readonly teleported?: boolean | undefined;
|
|
686
685
|
readonly open?: boolean | undefined;
|
|
686
|
+
readonly visible?: boolean | null | undefined;
|
|
687
687
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
688
688
|
readonly arrowOffset?: number | undefined;
|
|
689
689
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1100,9 +1100,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1100
1100
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1101
1101
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1102
1102
|
readonly effect?: "light" | "dark" | undefined;
|
|
1103
|
-
readonly visible?: boolean | null | undefined;
|
|
1104
1103
|
readonly teleported?: boolean | undefined;
|
|
1105
1104
|
readonly open?: boolean | undefined;
|
|
1105
|
+
readonly visible?: boolean | null | undefined;
|
|
1106
1106
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1107
1107
|
readonly arrowOffset?: number | undefined;
|
|
1108
1108
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1518,9 +1518,9 @@ export declare const VftSelect: SFCWithInstall<import("vue").DefineComponent<imp
|
|
|
1518
1518
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1519
1519
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1520
1520
|
readonly effect?: "light" | "dark" | undefined;
|
|
1521
|
-
readonly visible?: boolean | null | undefined;
|
|
1522
1521
|
readonly teleported?: boolean | undefined;
|
|
1523
1522
|
readonly open?: boolean | undefined;
|
|
1523
|
+
readonly visible?: boolean | null | undefined;
|
|
1524
1524
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1525
1525
|
readonly arrowOffset?: number | undefined;
|
|
1526
1526
|
readonly gpuAcceleration?: boolean | undefined;
|