@xiaou66/u-web-ui 0.0.55 → 0.0.56
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/dist/components/container/LazyLoader/LazyLoader.vue.d.ts +5 -1
- package/dist/components/container/LazyLoader/LazyLoader.vue.d.ts.map +1 -1
- package/dist/components/container/LazyLoader/useGlobalIntersectionObserver.d.ts +13 -0
- package/dist/components/container/LazyLoader/useGlobalIntersectionObserver.d.ts.map +1 -0
- package/dist/index.es.js +149 -95
- package/package.json +1 -1
|
@@ -15,7 +15,11 @@ declare function __VLS_template(): {
|
|
|
15
15
|
rootEl: any;
|
|
16
16
|
};
|
|
17
17
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
19
|
+
load: () => any;
|
|
20
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onLoad?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
19
23
|
w: string;
|
|
20
24
|
h: string;
|
|
21
25
|
distance: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyLoader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/container/LazyLoader/LazyLoader.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"LazyLoader.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/container/LazyLoader/LazyLoader.vue"],"names":[],"mappings":";AAsDA,KAAK,WAAW,GAAG;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA0CF,iBAAS,cAAc;WA+BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;OA9Ff,MAAM;OACN,MAAM;cACC,MAAM;;;OAqGjB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function useGlobalIntersectionObserver(callback: (isIntersecting: boolean) => void, options?: {
|
|
2
|
+
rootMargin?: string;
|
|
3
|
+
}): {
|
|
4
|
+
start: (target: HTMLElement) => void;
|
|
5
|
+
stop: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function getIntersectionObserverStats(): {
|
|
8
|
+
observerCount: number;
|
|
9
|
+
elementCount: number;
|
|
10
|
+
observerDetails: string[];
|
|
11
|
+
memoryEstimate: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useGlobalIntersectionObserver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGlobalIntersectionObserver.d.ts","sourceRoot":"","sources":["../../../../src/components/container/LazyLoader/useGlobalIntersectionObserver.ts"],"names":[],"mappings":"AAoFA,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,EAC3C,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO;oBAKd,WAAW;;EAqBnC;AAGD,wBAAgB,4BAA4B;;;;;EAE3C"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createStaticVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, getCurrentInstance as p, inject as m, mergeModels as h, mergeProps as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onMounted as b, onUnmounted as x, openBlock as S, provide as C, reactive as w, ref as T, renderList as E, renderSlot as D, resolveComponent as O, resolveDynamicComponent as k, toDisplayString as A, toHandlers as j, toRefs as M, unref as N, useAttrs as P, useModel as F, useSlots as I, watch as L, withCtx as R, withModifiers as z } from "vue";
|
|
2
2
|
import { Aside as B, Button as V, Content as H, Divider as U, HeadMenu as W, Header as G, Icon as K, Layout as q, Menu as J, MenuItem as ee, Submenu as te, Switch as ne } from "tdesign-vue-next";
|
|
3
3
|
import { useRoute as re, useRouter as ie } from "vue-router";
|
|
4
|
-
import { useEventListener as ae
|
|
4
|
+
import { useEventListener as ae } from "@vueuse/core";
|
|
5
5
|
function Y(...e) {
|
|
6
6
|
return "u-web-" + e.join("-");
|
|
7
7
|
}
|
|
@@ -9,15 +9,15 @@ function X(...e) {
|
|
|
9
9
|
let t = e.join("-");
|
|
10
10
|
return (...e) => Y(t, ...e);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function oe(e) {
|
|
13
13
|
return e.substring(0, 1).toUpperCase() + e.substring(1);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const se = [
|
|
16
16
|
"Capture",
|
|
17
17
|
"Passive",
|
|
18
18
|
"Once"
|
|
19
|
-
],
|
|
20
|
-
function
|
|
19
|
+
], ce = /* @__PURE__ */ RegExp(`^(${se.join("|")})*$`);
|
|
20
|
+
function le(...e) {
|
|
21
21
|
if (!e.length) return !1;
|
|
22
22
|
let t = p();
|
|
23
23
|
if (!t) return !1;
|
|
@@ -25,28 +25,28 @@ function ue(...e) {
|
|
|
25
25
|
if (!r) return !1;
|
|
26
26
|
let i = r.props || {}, a = [...Object.keys(n).filter((e) => e.startsWith("on")), ...Object.keys(i).filter((e) => e.startsWith("on"))];
|
|
27
27
|
for (let t of e) {
|
|
28
|
-
let e = t.startsWith("on") ? t : `on${
|
|
28
|
+
let e = t.startsWith("on") ? t : `on${oe(t)}`;
|
|
29
29
|
if (a.includes(e)) return !0;
|
|
30
30
|
for (let t of a) if (t.startsWith(e)) {
|
|
31
31
|
let n = t.slice(e.length);
|
|
32
|
-
if (n &&
|
|
32
|
+
if (n && ce.test(n)) return !0;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
return !1;
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function ue(e) {
|
|
38
38
|
return typeof e == "function";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function de(e) {
|
|
41
41
|
return e === null;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function fe(e) {
|
|
44
44
|
return e === void 0;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function pe(e) {
|
|
47
47
|
return typeof e == "number" && !isNaN(e);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function me(e) {
|
|
50
50
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
51
51
|
}
|
|
52
52
|
function Z(e, t, n) {
|
|
@@ -55,7 +55,7 @@ function Z(e, t, n) {
|
|
|
55
55
|
function Q(e, t, n) {
|
|
56
56
|
e.removeEventListener(t, n);
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var he = /* @__PURE__ */ f({
|
|
59
59
|
__name: "BackTop",
|
|
60
60
|
props: {
|
|
61
61
|
visibleHeight: { default: 200 },
|
|
@@ -120,7 +120,7 @@ var ge = /* @__PURE__ */ f({
|
|
|
120
120
|
_: 3
|
|
121
121
|
}));
|
|
122
122
|
}
|
|
123
|
-
}),
|
|
123
|
+
}), ge = he, _e = /* @__PURE__ */ f({
|
|
124
124
|
__name: "WebBaseLayout",
|
|
125
125
|
setup(e) {
|
|
126
126
|
return (e, t) => {
|
|
@@ -146,14 +146,14 @@ var ge = /* @__PURE__ */ f({
|
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
}),
|
|
149
|
+
}), ve = _e;
|
|
150
150
|
let $ = /* @__PURE__ */ function(e) {
|
|
151
151
|
return e.Refresh = "u:leftMenu:refresh", e;
|
|
152
152
|
}({});
|
|
153
|
-
const
|
|
153
|
+
const ye = { refresh: () => {
|
|
154
154
|
window.dispatchEvent(new CustomEvent($.Refresh));
|
|
155
155
|
} };
|
|
156
|
-
var
|
|
156
|
+
var be = /* @__PURE__ */ f({
|
|
157
157
|
__name: "LeftMenu",
|
|
158
158
|
props: /* @__PURE__ */ h({
|
|
159
159
|
hideOperations: {
|
|
@@ -259,7 +259,7 @@ var xe = /* @__PURE__ */ f({
|
|
|
259
259
|
]);
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
|
-
}),
|
|
262
|
+
}), xe = be, Se = /* @__PURE__ */ f({
|
|
263
263
|
__name: "ContextMenuItem",
|
|
264
264
|
props: {
|
|
265
265
|
label: {},
|
|
@@ -303,7 +303,7 @@ var xe = /* @__PURE__ */ f({
|
|
|
303
303
|
class: v([N(i)("icon"), e.icon])
|
|
304
304
|
}, A(e.icon), 3)) : a("", !0), s("span", { class: v(N(i)("label")) }, A(e.label), 3)], 34));
|
|
305
305
|
}
|
|
306
|
-
}),
|
|
306
|
+
}), Ce = Se, we = /* @__PURE__ */ f({
|
|
307
307
|
__name: "ContextMenuGroup",
|
|
308
308
|
props: { title: {} },
|
|
309
309
|
setup(e) {
|
|
@@ -313,12 +313,12 @@ var xe = /* @__PURE__ */ f({
|
|
|
313
313
|
class: v(N(t)("title"))
|
|
314
314
|
}, A(e.title), 3)) : a("", !0), D(e.$slots, "default")], 2));
|
|
315
315
|
}
|
|
316
|
-
}),
|
|
316
|
+
}), Te = we, Ee = /* @__PURE__ */ f({
|
|
317
317
|
__name: "ContextMenuDivider",
|
|
318
318
|
setup(e) {
|
|
319
319
|
return (e, t) => (S(), o("div", { class: v(N(Y)("context-menu-divider")) }, null, 2));
|
|
320
320
|
}
|
|
321
|
-
}),
|
|
321
|
+
}), De = Ee, Oe = /* @__PURE__ */ f({
|
|
322
322
|
__name: "ContextMenuSubmenu",
|
|
323
323
|
props: {
|
|
324
324
|
label: {},
|
|
@@ -431,7 +431,7 @@ var xe = /* @__PURE__ */ f({
|
|
|
431
431
|
}, [D(e.$slots, "default")], 38)) : a("", !0)
|
|
432
432
|
], 34));
|
|
433
433
|
}
|
|
434
|
-
}),
|
|
434
|
+
}), ke = Oe, Ae = /* @__PURE__ */ f({
|
|
435
435
|
__name: "ContextMenu",
|
|
436
436
|
props: {
|
|
437
437
|
hideOnSelect: {
|
|
@@ -504,12 +504,12 @@ var xe = /* @__PURE__ */ f({
|
|
|
504
504
|
}, null, 34)) : a("", !0)]))
|
|
505
505
|
], 64));
|
|
506
506
|
}
|
|
507
|
-
}),
|
|
507
|
+
}), je = Ae, Me = /* @__PURE__ */ f({
|
|
508
508
|
__name: "WebLayout",
|
|
509
509
|
setup(e) {
|
|
510
510
|
return (e, t) => {
|
|
511
511
|
let n = W, r = O("router-view");
|
|
512
|
-
return S(), i(
|
|
512
|
+
return S(), i(ve, null, {
|
|
513
513
|
header: R(() => [d(n, {
|
|
514
514
|
value: "item1",
|
|
515
515
|
height: "60px"
|
|
@@ -522,13 +522,13 @@ var xe = /* @__PURE__ */ f({
|
|
|
522
522
|
fn: R(() => [D(e.$slots, "operations")]),
|
|
523
523
|
key: "1"
|
|
524
524
|
} : void 0]), 1024)]),
|
|
525
|
-
left: R(() => [D(e.$slots, "left", {}, () => [d(N(
|
|
525
|
+
left: R(() => [D(e.$slots, "left", {}, () => [d(N(xe))])]),
|
|
526
526
|
default: R(() => [D(e.$slots, "default", {}, () => [s("div", { class: v([N(Y)("main-content-inner")]) }, [d(r)], 2)])]),
|
|
527
527
|
_: 3
|
|
528
528
|
});
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
}),
|
|
531
|
+
}), Ne = Me, Pe = /* @__PURE__ */ f({
|
|
532
532
|
__name: "SplitPanel",
|
|
533
533
|
props: {
|
|
534
534
|
component: { default: "div" },
|
|
@@ -680,7 +680,7 @@ var xe = /* @__PURE__ */ f({
|
|
|
680
680
|
_: 3
|
|
681
681
|
}, 8, ["class"]));
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), Fe = Pe, Ie = /* @__PURE__ */ f({
|
|
684
684
|
__name: "UtoolsBaseLayout",
|
|
685
685
|
setup(e) {
|
|
686
686
|
return (e, t) => {
|
|
@@ -700,12 +700,12 @@ var xe = /* @__PURE__ */ f({
|
|
|
700
700
|
});
|
|
701
701
|
};
|
|
702
702
|
}
|
|
703
|
-
}),
|
|
704
|
-
const
|
|
703
|
+
}), Le = Ie;
|
|
704
|
+
const Re = { class: "utools" }, ze = { class: "w-8 h-auto overflow-hidden" }, Be = ["src"], Ve = { class: "title pl-5" }, He = { class: "flex justify-end h-full pr-3 w-full" }, Ue = { class: "content" }, We = { class: "content-inner" }, Ge = {
|
|
705
705
|
class: "flex items-center justify-center",
|
|
706
706
|
style: { "font-size": "10px" }
|
|
707
707
|
};
|
|
708
|
-
var
|
|
708
|
+
var Ke = /* @__PURE__ */ f({
|
|
709
709
|
__name: "UtoolsLayout",
|
|
710
710
|
props: {
|
|
711
711
|
avatar: { default: "https://www.u-tools.cn/assets/favicon.png" },
|
|
@@ -718,11 +718,11 @@ var qe = /* @__PURE__ */ f({
|
|
|
718
718
|
let t = T(), n = T(!0);
|
|
719
719
|
return (e, r) => {
|
|
720
720
|
let i = O("router-view");
|
|
721
|
-
return S(), o("div",
|
|
721
|
+
return S(), o("div", Re, [d(Le, null, {
|
|
722
722
|
left: R(() => [s("div", { class: v(N(Y)("utools", "left-menu")) }, [s("div", {
|
|
723
723
|
class: v(["flex items-center justify-center", N(Y)("utools", "left-menu", "collapse")]),
|
|
724
724
|
onClick: r[0] ||= (e) => t.value?.changeCollapsed()
|
|
725
|
-
}, [s("div", { class: v(["w-5 h-5 font-bold", n.value ? "i-p-expandLeft" : "i-p-expandRight"]) }, null, 2)], 2), d(N(
|
|
725
|
+
}, [s("div", { class: v(["w-5 h-5 font-bold", n.value ? "i-p-expandLeft" : "i-p-expandRight"]) }, null, 2)], 2), d(N(xe), g({
|
|
726
726
|
ref_key: "leftMenuRef",
|
|
727
727
|
ref: t
|
|
728
728
|
}, {
|
|
@@ -734,23 +734,23 @@ var qe = /* @__PURE__ */ f({
|
|
|
734
734
|
"onUpdate:collapsed": r[1] ||= (e) => n.value = e,
|
|
735
735
|
hideOperations: ""
|
|
736
736
|
}), {
|
|
737
|
-
logo: R(() => [s("div",
|
|
737
|
+
logo: R(() => [s("div", ze, [s("img", {
|
|
738
738
|
class: "logo w-full h-full rounded-full",
|
|
739
739
|
src: e.avatar,
|
|
740
740
|
alt: "logo"
|
|
741
|
-
}, null, 8,
|
|
741
|
+
}, null, 8, Be)]), s("div", Ve, A(e.title), 1)]),
|
|
742
742
|
_: 1
|
|
743
743
|
}, 16, ["collapsed"])], 2)]),
|
|
744
744
|
default: R(() => [s("div", { class: v(N(Y)("utools", "content-wrapper")) }, [
|
|
745
|
-
s("div",
|
|
746
|
-
s("div",
|
|
747
|
-
D(e.$slots, "footer", {}, () => [s("div",
|
|
745
|
+
s("div", He, [D(e.$slots, "header-tips")]),
|
|
746
|
+
s("div", Ue, [s("div", We, [d(i)])]),
|
|
747
|
+
D(e.$slots, "footer", {}, () => [s("div", Ge, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
|
|
748
748
|
], 2)]),
|
|
749
749
|
_: 3
|
|
750
750
|
})]);
|
|
751
751
|
};
|
|
752
752
|
}
|
|
753
|
-
}),
|
|
753
|
+
}), qe = Ke, Je = /* @__PURE__ */ f({
|
|
754
754
|
__name: "PageHeader",
|
|
755
755
|
props: {
|
|
756
756
|
title: { default: "" },
|
|
@@ -762,7 +762,7 @@ var qe = /* @__PURE__ */ f({
|
|
|
762
762
|
let t = e, n = X("page-header"), i = r(() => {
|
|
763
763
|
let e = [n()];
|
|
764
764
|
return t.size !== "default" && e.push(n(t.size)), e;
|
|
765
|
-
}), c = r(() =>
|
|
765
|
+
}), c = r(() => le("onBack"));
|
|
766
766
|
return (e, t) => {
|
|
767
767
|
let r = K, l = V, f = U;
|
|
768
768
|
return S(), o("div", { class: v(i.value) }, [s("div", { class: v(["flex items-center", N(n)("header")]) }, [
|
|
@@ -787,40 +787,40 @@ var qe = /* @__PURE__ */ f({
|
|
|
787
787
|
}, [D(e.$slots, "extra")], 2)) : a("", !0)], 2);
|
|
788
788
|
};
|
|
789
789
|
}
|
|
790
|
-
}),
|
|
790
|
+
}), Ye = Je, Xe = (e, t) => {
|
|
791
791
|
let n = e.__vccOpts || e;
|
|
792
792
|
for (let [e, r] of t) n[e] = r;
|
|
793
793
|
return n;
|
|
794
794
|
};
|
|
795
|
-
const
|
|
796
|
-
function
|
|
797
|
-
return S(), o("div",
|
|
795
|
+
const Ze = {}, Qe = { class: "result-error-icon" };
|
|
796
|
+
function $e(e, t) {
|
|
797
|
+
return S(), o("div", Qe, t[0] ||= [l("<svg width=\"240\" height=\"160\" viewBox=\"0 0 240 160\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" data-v-fc6ebdc7><g opacity=\"0.8\" data-v-fc6ebdc7><path d=\"M120 80C120 124.183 84.1828 160 40 160C-4.18278 160 -40 124.183 -40 80C-40 35.8172 -4.18278 0 40 0C84.1828 0 120 35.8172 120 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-fc6ebdc7></path><path d=\"M280 80C280 124.183 244.183 160 200 160C155.817 160 120 124.183 120 80C120 35.8172 155.817 0 200 0C244.183 0 280 35.8172 280 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-fc6ebdc7></path></g><rect x=\"60\" y=\"40\" width=\"120\" height=\"80\" rx=\"8\" fill=\"var(--u-bg-color-3)\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" data-v-fc6ebdc7></rect><path d=\"M90 60H150M90 80H150M90 100H130\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" stroke-linecap=\"round\" data-v-fc6ebdc7></path><circle cx=\"120\" cy=\"80\" r=\"20\" fill=\"none\" stroke=\"rgb(var(--red-6))\" stroke-width=\"3\" data-v-fc6ebdc7></circle><path d=\"M110 70L130 90M130 70L110 90\" stroke=\"rgb(var(--red-6))\" stroke-width=\"3\" stroke-linecap=\"round\" data-v-fc6ebdc7></path></svg><div class=\"result-error-text\" data-v-fc6ebdc7>403</div>", 2)]);
|
|
798
798
|
}
|
|
799
|
-
var
|
|
800
|
-
const
|
|
801
|
-
function
|
|
802
|
-
return S(), o("div",
|
|
799
|
+
var et = /* @__PURE__ */ Xe(Ze, [["render", $e], ["__scopeId", "data-v-fc6ebdc7"]]);
|
|
800
|
+
const tt = {}, nt = { class: "result-error-icon" };
|
|
801
|
+
function rt(e, t) {
|
|
802
|
+
return S(), o("div", nt, t[0] ||= [l("<svg width=\"240\" height=\"160\" viewBox=\"0 0 240 160\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" data-v-cdc3b8a1><g opacity=\"0.8\" data-v-cdc3b8a1><path d=\"M120 80C120 124.183 84.1828 160 40 160C-4.18278 160 -40 124.183 -40 80C-40 35.8172 -4.18278 0 40 0C84.1828 0 120 35.8172 120 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-cdc3b8a1></path><path d=\"M280 80C280 124.183 244.183 160 200 160C155.817 160 120 124.183 120 80C120 35.8172 155.817 0 200 0C244.183 0 280 35.8172 280 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-cdc3b8a1></path></g><rect x=\"60\" y=\"40\" width=\"120\" height=\"80\" rx=\"8\" fill=\"var(--u-bg-color-3)\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" data-v-cdc3b8a1></rect><path d=\"M90 60H150M90 80H150M90 100H130\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" stroke-linecap=\"round\" data-v-cdc3b8a1></path><circle cx=\"120\" cy=\"80\" r=\"25\" fill=\"none\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"3\" data-v-cdc3b8a1></circle><path d=\"M105 65L135 95\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"3\" stroke-linecap=\"round\" data-v-cdc3b8a1></path><circle cx=\"110\" cy=\"75\" r=\"3\" fill=\"var(--u-text-color-placeholder)\" data-v-cdc3b8a1></circle><circle cx=\"130\" cy=\"85\" r=\"3\" fill=\"var(--u-text-color-placeholder)\" data-v-cdc3b8a1></circle></svg><div class=\"result-error-text\" data-v-cdc3b8a1>404</div>", 2)]);
|
|
803
803
|
}
|
|
804
|
-
var
|
|
805
|
-
const
|
|
806
|
-
function
|
|
807
|
-
return S(), o("div",
|
|
804
|
+
var it = /* @__PURE__ */ Xe(tt, [["render", rt], ["__scopeId", "data-v-cdc3b8a1"]]);
|
|
805
|
+
const at = {}, ot = { class: "result-error-icon" };
|
|
806
|
+
function st(e, t) {
|
|
807
|
+
return S(), o("div", ot, t[0] ||= [l("<svg width=\"240\" height=\"160\" viewBox=\"0 0 240 160\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" data-v-cb66ef61><g opacity=\"0.8\" data-v-cb66ef61><path d=\"M120 80C120 124.183 84.1828 160 40 160C-4.18278 160 -40 124.183 -40 80C-40 35.8172 -4.18278 0 40 0C84.1828 0 120 35.8172 120 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-cb66ef61></path><path d=\"M280 80C280 124.183 244.183 160 200 160C155.817 160 120 124.183 120 80C120 35.8172 155.817 0 200 0C244.183 0 280 35.8172 280 80Z\" fill=\"var(--u-text-color-placeholder)\" opacity=\"0.1\" data-v-cb66ef61></path></g><rect x=\"60\" y=\"40\" width=\"120\" height=\"80\" rx=\"8\" fill=\"var(--u-bg-color-3)\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" data-v-cb66ef61></rect><path d=\"M90 60H150M90 80H150M90 100H130\" stroke=\"var(--u-text-color-placeholder)\" stroke-width=\"2\" stroke-linecap=\"round\" data-v-cb66ef61></path><rect x=\"100\" y=\"65\" width=\"40\" height=\"30\" rx=\"4\" fill=\"none\" stroke=\"rgb(var(--red-6))\" stroke-width=\"2\" data-v-cb66ef61></rect><path d=\"M110 75L130 85M130 75L110 85\" stroke=\"rgb(var(--red-6))\" stroke-width=\"2\" stroke-linecap=\"round\" data-v-cb66ef61></path><path d=\"M115 55L125 65\" stroke=\"rgb(var(--red-6))\" stroke-width=\"2\" stroke-linecap=\"round\" data-v-cb66ef61></path><circle cx=\"118\" cy=\"52\" r=\"2\" fill=\"rgb(var(--red-6))\" data-v-cb66ef61></circle></svg><div class=\"result-error-text\" data-v-cb66ef61>500</div>", 2)]);
|
|
808
808
|
}
|
|
809
|
-
var
|
|
810
|
-
const
|
|
809
|
+
var ct = /* @__PURE__ */ Xe(at, [["render", st], ["__scopeId", "data-v-cb66ef61"]]);
|
|
810
|
+
const lt = {
|
|
811
811
|
key: 0,
|
|
812
812
|
class: "i-p-info w-12 h-12"
|
|
813
|
-
},
|
|
813
|
+
}, ut = {
|
|
814
814
|
key: 1,
|
|
815
815
|
class: "i-p-check"
|
|
816
|
-
},
|
|
816
|
+
}, dt = {
|
|
817
817
|
key: 2,
|
|
818
818
|
class: "i-p-info w-12 h-12"
|
|
819
|
-
},
|
|
819
|
+
}, ft = {
|
|
820
820
|
key: 3,
|
|
821
821
|
class: "i-p-close"
|
|
822
822
|
};
|
|
823
|
-
var
|
|
823
|
+
var pt = /* @__PURE__ */ f({
|
|
824
824
|
__name: "Result",
|
|
825
825
|
props: {
|
|
826
826
|
status: { default: "info" },
|
|
@@ -844,7 +844,7 @@ var mt = /* @__PURE__ */ f({
|
|
|
844
844
|
s("div", { class: v([`${N(c)}-icon`, {
|
|
845
845
|
[`${N(c)}-icon-${e.status}`]: e.status,
|
|
846
846
|
[`${N(c)}-icon-custom`]: e.status === null
|
|
847
|
-
}]) }, [s("div", { class: v(`${N(c)}-icon-tip`) }, [D(e.$slots, "icon", {}, () => [e.status === "info" ? (S(), o("span",
|
|
847
|
+
}]) }, [s("div", { class: v(`${N(c)}-icon-tip`) }, [D(e.$slots, "icon", {}, () => [e.status === "info" ? (S(), o("span", lt)) : e.status === "success" ? (S(), o("span", ut)) : e.status === "warning" ? (S(), o("span", dt)) : e.status === "error" ? (S(), o("span", ft)) : e.status === "403" ? (S(), i(et, { key: 4 })) : e.status === "404" ? (S(), i(it, { key: 5 })) : e.status === "500" ? (S(), i(ct, { key: 6 })) : a("", !0)])], 2)], 2),
|
|
848
848
|
e.title || e.$slots.title ? (S(), o("div", {
|
|
849
849
|
key: 0,
|
|
850
850
|
class: v(`${N(c)}-title`)
|
|
@@ -863,9 +863,9 @@ var mt = /* @__PURE__ */ f({
|
|
|
863
863
|
}, [D(e.$slots, "default")], 2)) : a("", !0)
|
|
864
864
|
], 2));
|
|
865
865
|
}
|
|
866
|
-
}),
|
|
867
|
-
const
|
|
868
|
-
var
|
|
866
|
+
}), mt = pt;
|
|
867
|
+
const ht = { class: "flex justify-between items-center" };
|
|
868
|
+
var gt = /* @__PURE__ */ f({
|
|
869
869
|
__name: "SettingItem",
|
|
870
870
|
props: {
|
|
871
871
|
title: {},
|
|
@@ -883,22 +883,22 @@ var _t = /* @__PURE__ */ f({
|
|
|
883
883
|
return (e, t) => (S(), o("div", g({
|
|
884
884
|
class: [...a.value],
|
|
885
885
|
style: { background: e.background }
|
|
886
|
-
}, j({ ...i.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [s("div",
|
|
886
|
+
}, j({ ...i.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [s("div", ht, [s("div", null, [s("div", { class: v(["u-fx u-gap5 u-fac", N(Y)("setting-item-title")]) }, [D(e.$slots, "title", {}, () => [u(A(e.title), 1)])], 2), D(e.$slots, "desc", {}, () => [s("div", { class: v(N(Y)("setting-item-desc")) }, A(e.desc), 3)])]), s("div", null, [D(e.$slots, "default")])]), s("div", null, [D(e.$slots, "extra")])], 16));
|
|
887
887
|
}
|
|
888
|
-
}),
|
|
888
|
+
}), _t = gt, vt = /* @__PURE__ */ f({
|
|
889
889
|
__name: "SettingDivision",
|
|
890
890
|
setup(e) {
|
|
891
891
|
return (e, t) => (S(), o("div", { class: v(N(Y)("setting-division")) }, null, 2));
|
|
892
892
|
}
|
|
893
|
-
}),
|
|
894
|
-
const
|
|
895
|
-
var
|
|
893
|
+
}), yt = vt;
|
|
894
|
+
const bt = { key: 0 };
|
|
895
|
+
var xt = /* @__PURE__ */ f({
|
|
896
896
|
__name: "SettingGroup",
|
|
897
897
|
props: { title: {} },
|
|
898
898
|
setup(e) {
|
|
899
|
-
return (e, t) => (S(), o("div", { class: v([N(Y)("setting-group")]) }, [s("div", { class: v(N(Y)("setting-group-header")) }, [s("div", { class: v(N(Y)("setting-group-title")) }, A(e.title), 3), e.$slots.desc ? (S(), o("div",
|
|
899
|
+
return (e, t) => (S(), o("div", { class: v([N(Y)("setting-group")]) }, [s("div", { class: v(N(Y)("setting-group-header")) }, [s("div", { class: v(N(Y)("setting-group-title")) }, A(e.title), 3), e.$slots.desc ? (S(), o("div", bt, [D(e.$slots, "desc")])) : a("", !0)], 2), s("div", null, [D(e.$slots, "default")])], 2));
|
|
900
900
|
}
|
|
901
|
-
}),
|
|
901
|
+
}), St = xt, Ct = /* @__PURE__ */ f({
|
|
902
902
|
name: "SwitchEnable",
|
|
903
903
|
inheritAttrs: !1,
|
|
904
904
|
__name: "SwitchEnable",
|
|
@@ -945,9 +945,9 @@ var St = /* @__PURE__ */ f({
|
|
|
945
945
|
}), null, 16, ["class", "modelValue"]);
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
}),
|
|
949
|
-
const
|
|
950
|
-
var
|
|
948
|
+
}), wt = Ct;
|
|
949
|
+
const Tt = ["aria-checked", "disabled"];
|
|
950
|
+
var Et = /* @__PURE__ */ f({
|
|
951
951
|
name: "SwitchPlus",
|
|
952
952
|
__name: "SwitchPlus",
|
|
953
953
|
props: /* @__PURE__ */ h({
|
|
@@ -1017,7 +1017,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1017
1017
|
}, w = async (e) => {
|
|
1018
1018
|
if (x.value || h.value) return;
|
|
1019
1019
|
let t = !_.value, n = t ? c.checkedValue : c.uncheckedValue, r = c.beforeChange;
|
|
1020
|
-
if (
|
|
1020
|
+
if (ue(r)) {
|
|
1021
1021
|
b.value = !0;
|
|
1022
1022
|
try {
|
|
1023
1023
|
let i = await r(n);
|
|
@@ -1032,7 +1032,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1032
1032
|
l("blur", e);
|
|
1033
1033
|
};
|
|
1034
1034
|
L(i, (e) => {
|
|
1035
|
-
(
|
|
1035
|
+
(fe(e) || de(e)) && (i.value = c.uncheckedValue);
|
|
1036
1036
|
});
|
|
1037
1037
|
let k = r(() => [
|
|
1038
1038
|
m,
|
|
@@ -1071,9 +1071,9 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1071
1071
|
}, [s("span", { class: v(`${N(m)}-handle-icon`) }, [x.value ? (S(), o("span", {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
class: v(["i-p-loading", `${N(m)}-loading-icon`])
|
|
1074
|
-
}, null, 2)) : (S(), o(e, { key: 1 }, [_.value ? D(t.$slots, "checked-icon", { key: 0 }) : D(t.$slots, "unchecked-icon", { key: 1 })], 64))], 2)], 6), t.type !== "line" && N(f) !== "small" && (N(d).checked || t.checkedText || N(d).unchecked || t.uncheckedText) ? (S(), o(e, { key: 0 }, [s("span", { class: v(`${N(m)}-text-holder`) }, [_.value ? D(t.$slots, "checked", { key: 0 }, () => [u(A(t.checkedText), 1)]) : D(t.$slots, "unchecked", { key: 1 }, () => [u(A(t.uncheckedText), 1)])], 2), s("span", { class: v(`${N(m)}-text`) }, [_.value ? D(t.$slots, "checked", { key: 0 }, () => [u(A(t.checkedText), 1)]) : D(t.$slots, "unchecked", { key: 1 }, () => [u(A(t.uncheckedText), 1)])], 2)], 64)) : a("", !0)], 46,
|
|
1074
|
+
}, null, 2)) : (S(), o(e, { key: 1 }, [_.value ? D(t.$slots, "checked-icon", { key: 0 }) : D(t.$slots, "unchecked-icon", { key: 1 })], 64))], 2)], 6), t.type !== "line" && N(f) !== "small" && (N(d).checked || t.checkedText || N(d).unchecked || t.uncheckedText) ? (S(), o(e, { key: 0 }, [s("span", { class: v(`${N(m)}-text-holder`) }, [_.value ? D(t.$slots, "checked", { key: 0 }, () => [u(A(t.checkedText), 1)]) : D(t.$slots, "unchecked", { key: 1 }, () => [u(A(t.uncheckedText), 1)])], 2), s("span", { class: v(`${N(m)}-text`) }, [_.value ? D(t.$slots, "checked", { key: 0 }, () => [u(A(t.checkedText), 1)]) : D(t.$slots, "unchecked", { key: 1 }, () => [u(A(t.uncheckedText), 1)])], 2)], 64)) : a("", !0)], 46, Tt));
|
|
1075
1075
|
}
|
|
1076
|
-
}),
|
|
1076
|
+
}), Dt = Et, Ot = /* @__PURE__ */ f({
|
|
1077
1077
|
__name: "SwitchPlusEnable",
|
|
1078
1078
|
props: /* @__PURE__ */ h({
|
|
1079
1079
|
modelValue: { type: [
|
|
@@ -1130,7 +1130,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1130
1130
|
emits: ["update:value"],
|
|
1131
1131
|
setup(e) {
|
|
1132
1132
|
let t = F(e, "value"), n = e;
|
|
1133
|
-
return (e, r) => (S(), i(
|
|
1133
|
+
return (e, r) => (S(), i(Dt, g({
|
|
1134
1134
|
value: t.value,
|
|
1135
1135
|
"onUpdate:value": r[0] ||= (e) => t.value = e
|
|
1136
1136
|
}, n), {
|
|
@@ -1151,7 +1151,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1151
1151
|
_: 1
|
|
1152
1152
|
}, 16, ["value"]));
|
|
1153
1153
|
}
|
|
1154
|
-
}),
|
|
1154
|
+
}), kt = Ot, At = /* @__PURE__ */ f({
|
|
1155
1155
|
__name: "thumb",
|
|
1156
1156
|
props: {
|
|
1157
1157
|
data: {},
|
|
@@ -1214,7 +1214,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1214
1214
|
onMousedown: g
|
|
1215
1215
|
}, [s("div", { class: v(`${N(c)}-thumb-bar`) }, null, 2)], 38)], 34));
|
|
1216
1216
|
}
|
|
1217
|
-
}),
|
|
1217
|
+
}), jt = At, Mt = /* @__PURE__ */ f({
|
|
1218
1218
|
__name: "Scrollbar",
|
|
1219
1219
|
props: {
|
|
1220
1220
|
type: { default: "embed" },
|
|
@@ -1300,7 +1300,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1300
1300
|
{ [`${u}-both`]: O.value },
|
|
1301
1301
|
c.outerClass
|
|
1302
1302
|
]), R = (e, t) => {
|
|
1303
|
-
|
|
1303
|
+
me(e) ? d.value?.scrollTo(e) : (e || t) && d.value?.scrollTo(e, t);
|
|
1304
1304
|
}, z = (e) => {
|
|
1305
1305
|
d.value?.scrollTo({ top: e });
|
|
1306
1306
|
}, B = (e) => {
|
|
@@ -1319,7 +1319,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1319
1319
|
ref: d,
|
|
1320
1320
|
class: `${N(u)}-container`
|
|
1321
1321
|
}, e.$attrs, { onScroll: M }), [D(e.$slots, "default")], 16),
|
|
1322
|
-
!e.hide && w.value ? (S(), i(
|
|
1322
|
+
!e.hide && w.value ? (S(), i(jt, {
|
|
1323
1323
|
key: 0,
|
|
1324
1324
|
ref_key: "horizontalThumbRef",
|
|
1325
1325
|
ref: m,
|
|
@@ -1328,7 +1328,7 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1328
1328
|
both: O.value,
|
|
1329
1329
|
onScroll: P
|
|
1330
1330
|
}, null, 8, ["data", "both"])) : a("", !0),
|
|
1331
|
-
!e.hide && E.value ? (S(), i(
|
|
1331
|
+
!e.hide && E.value ? (S(), i(jt, {
|
|
1332
1332
|
key: 1,
|
|
1333
1333
|
ref_key: "verticalThumbRef",
|
|
1334
1334
|
ref: h,
|
|
@@ -1339,29 +1339,83 @@ var Dt = /* @__PURE__ */ f({
|
|
|
1339
1339
|
}, null, 8, ["data", "both"])) : a("", !0)
|
|
1340
1340
|
], 6));
|
|
1341
1341
|
}
|
|
1342
|
-
}),
|
|
1342
|
+
}), Nt = Mt, Pt = class {
|
|
1343
|
+
observers = /* @__PURE__ */ new Map();
|
|
1344
|
+
entries = /* @__PURE__ */ new Map();
|
|
1345
|
+
getStats() {
|
|
1346
|
+
return {
|
|
1347
|
+
observerCount: this.observers.size,
|
|
1348
|
+
elementCount: this.entries.size,
|
|
1349
|
+
observerDetails: Array.from(this.observers.keys()),
|
|
1350
|
+
memoryEstimate: `约 ${Math.round(this.entries.size * .1)}KB`
|
|
1351
|
+
};
|
|
1352
|
+
}
|
|
1353
|
+
observe(e, t, n = {}) {
|
|
1354
|
+
let r = n.rootMargin || "0px", i = `rootMargin:${r}`, a = this.observers.get(i);
|
|
1355
|
+
a || (a = new IntersectionObserver((e) => {
|
|
1356
|
+
e.forEach((e) => {
|
|
1357
|
+
let t = this.entries.get(e.target);
|
|
1358
|
+
t && t.callback(e.isIntersecting);
|
|
1359
|
+
});
|
|
1360
|
+
}, {
|
|
1361
|
+
rootMargin: r,
|
|
1362
|
+
threshold: 0
|
|
1363
|
+
}), this.observers.set(i, a));
|
|
1364
|
+
let o = {
|
|
1365
|
+
element: e,
|
|
1366
|
+
callback: t,
|
|
1367
|
+
rootMargin: r
|
|
1368
|
+
};
|
|
1369
|
+
return this.entries.set(e, o), a.observe(e), () => {
|
|
1370
|
+
this.unobserve(e);
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
unobserve(e) {
|
|
1374
|
+
let t = this.entries.get(e);
|
|
1375
|
+
if (!t) return;
|
|
1376
|
+
let n = `rootMargin:${t.rootMargin}`, r = this.observers.get(n);
|
|
1377
|
+
r && r.unobserve(e), this.entries.delete(e);
|
|
1378
|
+
let i = Array.from(this.entries.values()).some((e) => e.rootMargin === t.rootMargin);
|
|
1379
|
+
!i && r && (r.disconnect(), this.observers.delete(n));
|
|
1380
|
+
}
|
|
1381
|
+
};
|
|
1382
|
+
const Ft = new Pt();
|
|
1383
|
+
function It(e, t = {}) {
|
|
1384
|
+
let n = null, r = (r) => {
|
|
1385
|
+
r && !n && (n = Ft.observe(r, e, t));
|
|
1386
|
+
}, i = () => {
|
|
1387
|
+
n && (n(), n = null);
|
|
1388
|
+
};
|
|
1389
|
+
return x(() => {
|
|
1390
|
+
i();
|
|
1391
|
+
}), {
|
|
1392
|
+
start: r,
|
|
1393
|
+
stop: i
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
var Lt = /* @__PURE__ */ f({
|
|
1343
1397
|
__name: "LazyLoader",
|
|
1344
1398
|
props: {
|
|
1345
1399
|
w: { default: "100%" },
|
|
1346
1400
|
h: { default: "100%" },
|
|
1347
1401
|
distance: { default: 0 }
|
|
1348
1402
|
},
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1403
|
+
emits: ["load"],
|
|
1404
|
+
setup(e, { emit: t }) {
|
|
1405
|
+
let n = e, r = t, i = T(!1), a = T(), { start: s, stop: c } = It((e) => {
|
|
1406
|
+
e && (i.value = !0, r("load"), c());
|
|
1407
|
+
}, { rootMargin: `${n.distance}px` });
|
|
1408
|
+
return L(a, (e) => {
|
|
1409
|
+
e && s(e);
|
|
1410
|
+
}, { immediate: !0 }), (e, t) => i.value ? D(e.$slots, "default", { key: 0 }) : (S(), o("div", {
|
|
1357
1411
|
key: 1,
|
|
1358
1412
|
ref_key: "box",
|
|
1359
|
-
ref:
|
|
1413
|
+
ref: a,
|
|
1360
1414
|
style: y({
|
|
1361
|
-
height:
|
|
1362
|
-
width:
|
|
1415
|
+
height: e.h,
|
|
1416
|
+
width: e.w
|
|
1363
1417
|
})
|
|
1364
1418
|
}, null, 4));
|
|
1365
1419
|
}
|
|
1366
|
-
}),
|
|
1367
|
-
export {
|
|
1420
|
+
}), Rt = Lt;
|
|
1421
|
+
export { ge as BackTop, je as ContextMenu, De as ContextMenuDivider, Te as ContextMenuGroup, Ce as ContextMenuItem, ke as ContextMenuSubmenu, Rt as LazyLoader, xe as LeftMenu, ye as LeftMenuEventDispatch, $ as LeftMenuEvents, Ye as PageHeader, mt as Result, Nt as Scrollbar, yt as SettingDivision, St as SettingGroup, _t as SettingItem, Fe as SplitPanel, wt as SwitchEnable, Dt as SwitchPlus, kt as SwitchPlusEnable, jt as Thumb, Le as UtoolsBaseLayout, qe as UtoolsLayout, ve as WebBaseLayout, Ne as WebLayout, X as getBuildCurrentClassPrefix, Y as getClassPrefix, le as isEventExist, ue as isFunction, de as isNull, pe as isNumber, me as isObject, fe as isUndefined, Q as off, Z as on };
|