@xiaou66/u-web-ui 0.0.54 → 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.
@@ -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, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
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":";AAuCA,KAAK,WAAW,GAAG;IACjB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AA0BF,iBAAS,cAAc;WA+BT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;EAgB/B;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;OA7Ef,MAAM;OACN,MAAM;cACC,MAAM;;;OAmFjB,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"}
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"}
@@ -1 +1 @@
1
- {"version":3,"file":"UtoolsLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/UtoolsLayout/UtoolsLayout.vue"],"names":[],"mappings":";;;AA6EA,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEjF,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;CAC3B,CAAC;AAmBJ,iBAAS,cAAc;WAwHT,OAAO,IAA6B;;+BAZd,GAAG;wBACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6D61f,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA7Cl/f;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAhKV,SAAS,GAAG,OAAO;WADlB,MAAM;YAHL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAkM02f,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;kBArBj/f,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"}
1
+ {"version":3,"file":"UtoolsLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/UtoolsLayout/UtoolsLayout.vue"],"names":[],"mappings":";;;AA+EA,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,YAAY,CAAA;AAEjF,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;CAC3B,CAAC;AAmBJ,iBAAS,cAAc;WAyHT,OAAO,IAA6B;;+BAZd,GAAG;wBACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA6Dyxf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;EA7C96f;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;UAjKV,SAAS,GAAG,OAAO;WADlB,MAAM;YAHL,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAmMsyf,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;kBArB76f,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"}
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, useIntersectionObserver as oe } from "@vueuse/core";
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 se(e) {
12
+ function oe(e) {
13
13
  return e.substring(0, 1).toUpperCase() + e.substring(1);
14
14
  }
15
- const ce = [
15
+ const se = [
16
16
  "Capture",
17
17
  "Passive",
18
18
  "Once"
19
- ], le = /* @__PURE__ */ RegExp(`^(${ce.join("|")})*$`);
20
- function ue(...e) {
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${se(t)}`;
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 && le.test(n)) return !0;
32
+ if (n && ce.test(n)) return !0;
33
33
  }
34
34
  }
35
35
  return !1;
36
36
  }
37
- function de(e) {
37
+ function ue(e) {
38
38
  return typeof e == "function";
39
39
  }
40
- function fe(e) {
40
+ function de(e) {
41
41
  return e === null;
42
42
  }
43
- function pe(e) {
43
+ function fe(e) {
44
44
  return e === void 0;
45
45
  }
46
- function me(e) {
46
+ function pe(e) {
47
47
  return typeof e == "number" && !isNaN(e);
48
48
  }
49
- function he(e) {
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 ge = /* @__PURE__ */ f({
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
- }), _e = ge, ve = /* @__PURE__ */ f({
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
- }), ye = ve;
149
+ }), ve = _e;
150
150
  let $ = /* @__PURE__ */ function(e) {
151
151
  return e.Refresh = "u:leftMenu:refresh", e;
152
152
  }({});
153
- const be = { refresh: () => {
153
+ const ye = { refresh: () => {
154
154
  window.dispatchEvent(new CustomEvent($.Refresh));
155
155
  } };
156
- var xe = /* @__PURE__ */ f({
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
- }), Se = xe, Ce = /* @__PURE__ */ f({
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
- }), we = Ce, Te = /* @__PURE__ */ f({
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
- }), Ee = Te, De = /* @__PURE__ */ f({
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
- }), Oe = De, ke = /* @__PURE__ */ f({
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
- }), Ae = ke, je = /* @__PURE__ */ f({
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
- }), Me = je, Ne = /* @__PURE__ */ f({
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(ye, null, {
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(Se))])]),
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
- }), Pe = Ne, Fe = /* @__PURE__ */ f({
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
- }), Ie = Fe, Le = /* @__PURE__ */ f({
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
- }), Re = Le;
704
- const ze = { class: "utools" }, Be = { class: "w-8 h-auto overflow-hidden rounded-full" }, Ve = ["src"], He = { class: "title pl-5" }, Ue = { class: "flex justify-end h-full pr-3 w-full" }, We = { class: "content" }, Ge = { class: "content-inner" }, Ke = {
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 qe = /* @__PURE__ */ f({
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", ze, [d(Re, null, {
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(Se), g({
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,22 +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", Be, [s("img", {
738
- class: "logo w-full h-full",
739
- src: e.avatar
740
- }, null, 8, Ve)]), s("div", He, A(e.title), 1)]),
737
+ logo: R(() => [s("div", ze, [s("img", {
738
+ class: "logo w-full h-full rounded-full",
739
+ src: e.avatar,
740
+ alt: "logo"
741
+ }, null, 8, Be)]), s("div", Ve, A(e.title), 1)]),
741
742
  _: 1
742
743
  }, 16, ["collapsed"])], 2)]),
743
744
  default: R(() => [s("div", { class: v(N(Y)("utools", "content-wrapper")) }, [
744
- s("div", Ue, [D(e.$slots, "header-tips")]),
745
- s("div", We, [s("div", Ge, [d(i)])]),
746
- D(e.$slots, "footer", {}, () => [s("div", Ke, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
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)])
747
748
  ], 2)]),
748
749
  _: 3
749
750
  })]);
750
751
  };
751
752
  }
752
- }), Je = qe, Ye = /* @__PURE__ */ f({
753
+ }), qe = Ke, Je = /* @__PURE__ */ f({
753
754
  __name: "PageHeader",
754
755
  props: {
755
756
  title: { default: "" },
@@ -761,7 +762,7 @@ var qe = /* @__PURE__ */ f({
761
762
  let t = e, n = X("page-header"), i = r(() => {
762
763
  let e = [n()];
763
764
  return t.size !== "default" && e.push(n(t.size)), e;
764
- }), c = r(() => ue("onBack"));
765
+ }), c = r(() => le("onBack"));
765
766
  return (e, t) => {
766
767
  let r = K, l = V, f = U;
767
768
  return S(), o("div", { class: v(i.value) }, [s("div", { class: v(["flex items-center", N(n)("header")]) }, [
@@ -786,40 +787,40 @@ var qe = /* @__PURE__ */ f({
786
787
  }, [D(e.$slots, "extra")], 2)) : a("", !0)], 2);
787
788
  };
788
789
  }
789
- }), Xe = Ye, Ze = (e, t) => {
790
+ }), Ye = Je, Xe = (e, t) => {
790
791
  let n = e.__vccOpts || e;
791
792
  for (let [e, r] of t) n[e] = r;
792
793
  return n;
793
794
  };
794
- const Qe = {}, $e = { class: "result-error-icon" };
795
- function et(e, t) {
796
- return S(), o("div", $e, 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)]);
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)]);
797
798
  }
798
- var tt = /* @__PURE__ */ Ze(Qe, [["render", et], ["__scopeId", "data-v-fc6ebdc7"]]);
799
- const nt = {}, rt = { class: "result-error-icon" };
800
- function it(e, t) {
801
- return S(), o("div", rt, 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)]);
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)]);
802
803
  }
803
- var at = /* @__PURE__ */ Ze(nt, [["render", it], ["__scopeId", "data-v-cdc3b8a1"]]);
804
- const ot = {}, st = { class: "result-error-icon" };
805
- function ct(e, t) {
806
- return S(), o("div", st, 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)]);
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)]);
807
808
  }
808
- var lt = /* @__PURE__ */ Ze(ot, [["render", ct], ["__scopeId", "data-v-cb66ef61"]]);
809
- const ut = {
809
+ var ct = /* @__PURE__ */ Xe(at, [["render", st], ["__scopeId", "data-v-cb66ef61"]]);
810
+ const lt = {
810
811
  key: 0,
811
812
  class: "i-p-info w-12 h-12"
812
- }, dt = {
813
+ }, ut = {
813
814
  key: 1,
814
815
  class: "i-p-check"
815
- }, ft = {
816
+ }, dt = {
816
817
  key: 2,
817
818
  class: "i-p-info w-12 h-12"
818
- }, pt = {
819
+ }, ft = {
819
820
  key: 3,
820
821
  class: "i-p-close"
821
822
  };
822
- var mt = /* @__PURE__ */ f({
823
+ var pt = /* @__PURE__ */ f({
823
824
  __name: "Result",
824
825
  props: {
825
826
  status: { default: "info" },
@@ -843,7 +844,7 @@ var mt = /* @__PURE__ */ f({
843
844
  s("div", { class: v([`${N(c)}-icon`, {
844
845
  [`${N(c)}-icon-${e.status}`]: e.status,
845
846
  [`${N(c)}-icon-custom`]: e.status === null
846
- }]) }, [s("div", { class: v(`${N(c)}-icon-tip`) }, [D(e.$slots, "icon", {}, () => [e.status === "info" ? (S(), o("span", ut)) : e.status === "success" ? (S(), o("span", dt)) : e.status === "warning" ? (S(), o("span", ft)) : e.status === "error" ? (S(), o("span", pt)) : e.status === "403" ? (S(), i(tt, { key: 4 })) : e.status === "404" ? (S(), i(at, { key: 5 })) : e.status === "500" ? (S(), i(lt, { key: 6 })) : a("", !0)])], 2)], 2),
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),
847
848
  e.title || e.$slots.title ? (S(), o("div", {
848
849
  key: 0,
849
850
  class: v(`${N(c)}-title`)
@@ -862,9 +863,9 @@ var mt = /* @__PURE__ */ f({
862
863
  }, [D(e.$slots, "default")], 2)) : a("", !0)
863
864
  ], 2));
864
865
  }
865
- }), ht = mt;
866
- const gt = { class: "flex justify-between items-center" };
867
- var _t = /* @__PURE__ */ f({
866
+ }), mt = pt;
867
+ const ht = { class: "flex justify-between items-center" };
868
+ var gt = /* @__PURE__ */ f({
868
869
  __name: "SettingItem",
869
870
  props: {
870
871
  title: {},
@@ -882,22 +883,22 @@ var _t = /* @__PURE__ */ f({
882
883
  return (e, t) => (S(), o("div", g({
883
884
  class: [...a.value],
884
885
  style: { background: e.background }
885
- }, j({ ...i.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [s("div", gt, [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));
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));
886
887
  }
887
- }), vt = _t, yt = /* @__PURE__ */ f({
888
+ }), _t = gt, vt = /* @__PURE__ */ f({
888
889
  __name: "SettingDivision",
889
890
  setup(e) {
890
891
  return (e, t) => (S(), o("div", { class: v(N(Y)("setting-division")) }, null, 2));
891
892
  }
892
- }), bt = yt;
893
- const xt = { key: 0 };
894
- var St = /* @__PURE__ */ f({
893
+ }), yt = vt;
894
+ const bt = { key: 0 };
895
+ var xt = /* @__PURE__ */ f({
895
896
  __name: "SettingGroup",
896
897
  props: { title: {} },
897
898
  setup(e) {
898
- 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", xt, [D(e.$slots, "desc")])) : a("", !0)], 2), s("div", null, [D(e.$slots, "default")])], 2));
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));
899
900
  }
900
- }), Ct = St, wt = /* @__PURE__ */ f({
901
+ }), St = xt, Ct = /* @__PURE__ */ f({
901
902
  name: "SwitchEnable",
902
903
  inheritAttrs: !1,
903
904
  __name: "SwitchEnable",
@@ -944,9 +945,9 @@ var St = /* @__PURE__ */ f({
944
945
  }), null, 16, ["class", "modelValue"]);
945
946
  };
946
947
  }
947
- }), Tt = wt;
948
- const Et = ["aria-checked", "disabled"];
949
- var Dt = /* @__PURE__ */ f({
948
+ }), wt = Ct;
949
+ const Tt = ["aria-checked", "disabled"];
950
+ var Et = /* @__PURE__ */ f({
950
951
  name: "SwitchPlus",
951
952
  __name: "SwitchPlus",
952
953
  props: /* @__PURE__ */ h({
@@ -1016,7 +1017,7 @@ var Dt = /* @__PURE__ */ f({
1016
1017
  }, w = async (e) => {
1017
1018
  if (x.value || h.value) return;
1018
1019
  let t = !_.value, n = t ? c.checkedValue : c.uncheckedValue, r = c.beforeChange;
1019
- if (de(r)) {
1020
+ if (ue(r)) {
1020
1021
  b.value = !0;
1021
1022
  try {
1022
1023
  let i = await r(n);
@@ -1031,7 +1032,7 @@ var Dt = /* @__PURE__ */ f({
1031
1032
  l("blur", e);
1032
1033
  };
1033
1034
  L(i, (e) => {
1034
- (pe(e) || fe(e)) && (i.value = c.uncheckedValue);
1035
+ (fe(e) || de(e)) && (i.value = c.uncheckedValue);
1035
1036
  });
1036
1037
  let k = r(() => [
1037
1038
  m,
@@ -1070,9 +1071,9 @@ var Dt = /* @__PURE__ */ f({
1070
1071
  }, [s("span", { class: v(`${N(m)}-handle-icon`) }, [x.value ? (S(), o("span", {
1071
1072
  key: 0,
1072
1073
  class: v(["i-p-loading", `${N(m)}-loading-icon`])
1073
- }, 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, Et));
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));
1074
1075
  }
1075
- }), Ot = Dt, kt = /* @__PURE__ */ f({
1076
+ }), Dt = Et, Ot = /* @__PURE__ */ f({
1076
1077
  __name: "SwitchPlusEnable",
1077
1078
  props: /* @__PURE__ */ h({
1078
1079
  modelValue: { type: [
@@ -1129,7 +1130,7 @@ var Dt = /* @__PURE__ */ f({
1129
1130
  emits: ["update:value"],
1130
1131
  setup(e) {
1131
1132
  let t = F(e, "value"), n = e;
1132
- return (e, r) => (S(), i(Ot, g({
1133
+ return (e, r) => (S(), i(Dt, g({
1133
1134
  value: t.value,
1134
1135
  "onUpdate:value": r[0] ||= (e) => t.value = e
1135
1136
  }, n), {
@@ -1150,7 +1151,7 @@ var Dt = /* @__PURE__ */ f({
1150
1151
  _: 1
1151
1152
  }, 16, ["value"]));
1152
1153
  }
1153
- }), At = kt, jt = /* @__PURE__ */ f({
1154
+ }), kt = Ot, At = /* @__PURE__ */ f({
1154
1155
  __name: "thumb",
1155
1156
  props: {
1156
1157
  data: {},
@@ -1213,7 +1214,7 @@ var Dt = /* @__PURE__ */ f({
1213
1214
  onMousedown: g
1214
1215
  }, [s("div", { class: v(`${N(c)}-thumb-bar`) }, null, 2)], 38)], 34));
1215
1216
  }
1216
- }), Mt = jt, Nt = /* @__PURE__ */ f({
1217
+ }), jt = At, Mt = /* @__PURE__ */ f({
1217
1218
  __name: "Scrollbar",
1218
1219
  props: {
1219
1220
  type: { default: "embed" },
@@ -1299,7 +1300,7 @@ var Dt = /* @__PURE__ */ f({
1299
1300
  { [`${u}-both`]: O.value },
1300
1301
  c.outerClass
1301
1302
  ]), R = (e, t) => {
1302
- he(e) ? d.value?.scrollTo(e) : (e || t) && d.value?.scrollTo(e, t);
1303
+ me(e) ? d.value?.scrollTo(e) : (e || t) && d.value?.scrollTo(e, t);
1303
1304
  }, z = (e) => {
1304
1305
  d.value?.scrollTo({ top: e });
1305
1306
  }, B = (e) => {
@@ -1318,7 +1319,7 @@ var Dt = /* @__PURE__ */ f({
1318
1319
  ref: d,
1319
1320
  class: `${N(u)}-container`
1320
1321
  }, e.$attrs, { onScroll: M }), [D(e.$slots, "default")], 16),
1321
- !e.hide && w.value ? (S(), i(Mt, {
1322
+ !e.hide && w.value ? (S(), i(jt, {
1322
1323
  key: 0,
1323
1324
  ref_key: "horizontalThumbRef",
1324
1325
  ref: m,
@@ -1327,7 +1328,7 @@ var Dt = /* @__PURE__ */ f({
1327
1328
  both: O.value,
1328
1329
  onScroll: P
1329
1330
  }, null, 8, ["data", "both"])) : a("", !0),
1330
- !e.hide && E.value ? (S(), i(Mt, {
1331
+ !e.hide && E.value ? (S(), i(jt, {
1331
1332
  key: 1,
1332
1333
  ref_key: "verticalThumbRef",
1333
1334
  ref: h,
@@ -1338,29 +1339,83 @@ var Dt = /* @__PURE__ */ f({
1338
1339
  }, null, 8, ["data", "both"])) : a("", !0)
1339
1340
  ], 6));
1340
1341
  }
1341
- }), Pt = Nt, Ft = /* @__PURE__ */ f({
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({
1342
1397
  __name: "LazyLoader",
1343
1398
  props: {
1344
1399
  w: { default: "100%" },
1345
1400
  h: { default: "100%" },
1346
1401
  distance: { default: 0 }
1347
1402
  },
1348
- setup(e) {
1349
- let t = e, n = T(!1), r = T(), { stop: i } = oe(r, ([{ isIntersecting: e }]) => {
1350
- e && (n.value = !0, i());
1351
- }, {
1352
- rootMargin: `${t.distance}px`,
1353
- threshold: 0
1354
- });
1355
- return (e, i) => n.value ? D(e.$slots, "default", { key: 0 }) : (S(), o("div", {
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", {
1356
1411
  key: 1,
1357
1412
  ref_key: "box",
1358
- ref: r,
1413
+ ref: a,
1359
1414
  style: y({
1360
- height: t.h,
1361
- width: t.w
1415
+ height: e.h,
1416
+ width: e.w
1362
1417
  })
1363
1418
  }, null, 4));
1364
1419
  }
1365
- }), It = Ft;
1366
- export { _e as BackTop, Me as ContextMenu, Oe as ContextMenuDivider, Ee as ContextMenuGroup, we as ContextMenuItem, Ae as ContextMenuSubmenu, It as LazyLoader, Se as LeftMenu, be as LeftMenuEventDispatch, $ as LeftMenuEvents, Xe as PageHeader, ht as Result, Pt as Scrollbar, bt as SettingDivision, Ct as SettingGroup, vt as SettingItem, Ie as SplitPanel, Tt as SwitchEnable, Ot as SwitchPlus, At as SwitchPlusEnable, Mt as Thumb, Re as UtoolsBaseLayout, Je as UtoolsLayout, ye as WebBaseLayout, Pe as WebLayout, X as getBuildCurrentClassPrefix, Y as getClassPrefix, ue as isEventExist, de as isFunction, fe as isNull, me as isNumber, he as isObject, pe as isUndefined, Q as off, Z as on };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaou66/u-web-ui",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "description": "web-ui",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",