@xiaou66/u-web-ui 0.0.49 → 0.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.es.js +144 -144
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1,7 +1,7 @@
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, useTemplateRef as L, watch as R, withCtx as z, withModifiers as B } from "vue";
2
- import { Aside as V, Button as H, Content as U, Divider as W, HeadMenu as G, Header as K, Icon as q, Layout as J, Menu as ee, MenuItem as te, Submenu as ne, Switch as re } from "tdesign-vue-next";
3
- import { useRoute as ie, useRouter as ae } from "vue-router";
4
- import { useEventListener as oe, useIntersectionObserver as se } from "@vueuse/core";
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
+ 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
+ import { useRoute as re, useRouter as ie } from "vue-router";
4
+ import { useEventListener as ae, useIntersectionObserver as oe } 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 ce(e) {
12
+ function se(e) {
13
13
  return e.substring(0, 1).toUpperCase() + e.substring(1);
14
14
  }
15
- const le = [
15
+ const ce = [
16
16
  "Capture",
17
17
  "Passive",
18
18
  "Once"
19
- ], ue = /* @__PURE__ */ RegExp(`^(${le.join("|")})*$`);
20
- function de(...e) {
19
+ ], le = /* @__PURE__ */ RegExp(`^(${ce.join("|")})*$`);
20
+ function ue(...e) {
21
21
  if (!e.length) return !1;
22
22
  let t = p();
23
23
  if (!t) return !1;
@@ -25,28 +25,28 @@ function de(...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${ce(t)}`;
28
+ let e = t.startsWith("on") ? t : `on${se(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 && ue.test(n)) return !0;
32
+ if (n && le.test(n)) return !0;
33
33
  }
34
34
  }
35
35
  return !1;
36
36
  }
37
- function fe(e) {
37
+ function de(e) {
38
38
  return typeof e == "function";
39
39
  }
40
- function pe(e) {
40
+ function fe(e) {
41
41
  return e === null;
42
42
  }
43
- function me(e) {
43
+ function pe(e) {
44
44
  return e === void 0;
45
45
  }
46
- function he(e) {
46
+ function me(e) {
47
47
  return typeof e == "number" && !isNaN(e);
48
48
  }
49
- function ge(e) {
49
+ function he(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 _e = /* @__PURE__ */ f({
58
+ var ge = /* @__PURE__ */ f({
59
59
  __name: "BackTop",
60
60
  props: {
61
61
  visibleHeight: { default: 200 },
@@ -107,7 +107,7 @@ var _e = /* @__PURE__ */ f({
107
107
  };
108
108
  });
109
109
  return (e, t) => (S(), i(n, { name: "fade-in" }, {
110
- default: z(() => [d.value ? (S(), o("div", {
110
+ default: R(() => [d.value ? (S(), o("div", {
111
111
  key: 0,
112
112
  class: v([N(u), { [`${N(u)}-${e.size}`]: e.size !== "default" }]),
113
113
  style: y(O.value),
@@ -120,22 +120,22 @@ var _e = /* @__PURE__ */ f({
120
120
  _: 3
121
121
  }));
122
122
  }
123
- }), ve = _e, ye = /* @__PURE__ */ f({
123
+ }), _e = ge, ve = /* @__PURE__ */ f({
124
124
  __name: "WebBaseLayout",
125
125
  setup(e) {
126
126
  return (e, t) => {
127
- let n = K, r = V, o = U, s = J;
127
+ let n = G, r = B, o = H, s = q;
128
128
  return S(), i(s, { class: "h-screen" }, {
129
- default: z(() => [e.$slots.header ? (S(), i(n, { key: 0 }, {
130
- default: z(() => [D(e.$slots, "header")]),
129
+ default: R(() => [e.$slots.header ? (S(), i(n, { key: 0 }, {
130
+ default: R(() => [D(e.$slots, "header")]),
131
131
  _: 3
132
132
  })) : a("", !0), d(s, { class: "min-h-0" }, {
133
- default: z(() => [d(r, { width: "auto" }, {
134
- default: z(() => [D(e.$slots, "left")]),
133
+ default: R(() => [d(r, { width: "auto" }, {
134
+ default: R(() => [D(e.$slots, "left")]),
135
135
  _: 3
136
136
  }), d(s, { class: v(["min-h-0", [N(Y)("main-content")]]) }, {
137
- default: z(() => [d(o, { class: "xl:p-4 ut:p-2 p-1 h-full overflow-hidden" }, {
138
- default: z(() => [D(e.$slots, "default")]),
137
+ default: R(() => [d(o, { class: "xl:p-4 ut:p-2 p-1 h-full overflow-hidden" }, {
138
+ default: R(() => [D(e.$slots, "default")]),
139
139
  _: 3
140
140
  })]),
141
141
  _: 3
@@ -146,14 +146,14 @@ var _e = /* @__PURE__ */ f({
146
146
  });
147
147
  };
148
148
  }
149
- }), be = ye;
149
+ }), ye = ve;
150
150
  let $ = /* @__PURE__ */ function(e) {
151
151
  return e.Refresh = "u:leftMenu:refresh", e;
152
152
  }({});
153
- const xe = { refresh: () => {
153
+ const be = { refresh: () => {
154
154
  window.dispatchEvent(new CustomEvent($.Refresh));
155
155
  } };
156
- var Se = /* @__PURE__ */ f({
156
+ var xe = /* @__PURE__ */ f({
157
157
  __name: "LeftMenu",
158
158
  props: /* @__PURE__ */ h({
159
159
  hideOperations: {
@@ -179,7 +179,7 @@ var Se = /* @__PURE__ */ f({
179
179
  function s() {
180
180
  a.value = !a.value;
181
181
  }
182
- let l = ae(), f = ie(), p = T([]);
182
+ let l = ie(), f = re(), p = T([]);
183
183
  function m() {
184
184
  p.value = l.getRoutes().filter((e) => e.meta).filter((e) => e.path.split("/").length <= 2).filter((e) => e.meta.menu);
185
185
  }
@@ -195,11 +195,11 @@ var Se = /* @__PURE__ */ f({
195
195
  function _(e) {
196
196
  return e.children ? e.children.filter((e) => e.meta?.menu) : [];
197
197
  }
198
- return r.refreshEventListener && oe(document, $.Refresh, h), n({
198
+ return r.refreshEventListener && ae(document, $.Refresh, h), n({
199
199
  changeCollapsed: s,
200
200
  refreshRouter: h
201
201
  }), (t, n) => {
202
- let r = q, l = H, m = te, h = ne, y = ee;
202
+ let r = K, l = V, m = ee, h = te, y = J;
203
203
  return S(), i(y, {
204
204
  value: N(f).name,
205
205
  collapsed: a.value,
@@ -207,22 +207,22 @@ var Se = /* @__PURE__ */ f({
207
207
  width: ["180px", t.size === "small" ? "42px" : "52px"],
208
208
  class: v([{ "u-web-left-menu-small": t.size === "small" }])
209
209
  }, c({
210
- default: z(() => [(S(!0), o(e, null, E(p.value, (t) => (S(), o(e, { key: String(t.name) }, [_(t).length > 0 ? (S(), i(h, {
210
+ default: R(() => [(S(!0), o(e, null, E(p.value, (t) => (S(), o(e, { key: String(t.name) }, [_(t).length > 0 ? (S(), i(h, {
211
211
  key: 0,
212
212
  value: String(t.name)
213
213
  }, {
214
- icon: z(() => [d(r, { class: v(t.meta.icon) }, null, 8, ["class"])]),
215
- title: z(() => [u(A(t.meta.title), 1)]),
216
- default: z(() => [(S(!0), o(e, null, E(_(t), (e) => (S(), i(m, {
214
+ icon: R(() => [d(r, { class: v(t.meta.icon) }, null, 8, ["class"])]),
215
+ title: R(() => [u(A(t.meta.title), 1)]),
216
+ default: R(() => [(S(!0), o(e, null, E(_(t), (e) => (S(), i(m, {
217
217
  key: String(e.name),
218
218
  value: String(e.name),
219
219
  onClick: (t) => g(e)
220
220
  }, {
221
- icon: z(() => [d(r, {
221
+ icon: R(() => [d(r, {
222
222
  class: v(e.meta.icon),
223
223
  size: "small"
224
224
  }, null, 8, ["class"])]),
225
- default: z(() => [u(" " + A(e.meta.title), 1)]),
225
+ default: R(() => [u(" " + A(e.meta.title), 1)]),
226
226
  _: 2
227
227
  }, 1032, ["value", "onClick"]))), 128))]),
228
228
  _: 2
@@ -231,25 +231,25 @@ var Se = /* @__PURE__ */ f({
231
231
  value: String(t.name),
232
232
  onClick: (e) => g(t)
233
233
  }, {
234
- icon: z(() => [d(r, { class: v(t.meta.icon) }, null, 8, ["class"])]),
235
- default: z(() => [u(" " + A(t.meta.title), 1)]),
234
+ icon: R(() => [d(r, { class: v(t.meta.icon) }, null, 8, ["class"])]),
235
+ default: R(() => [u(" " + A(t.meta.title), 1)]),
236
236
  _: 2
237
237
  }, 1032, ["value", "onClick"]))], 64))), 128))]),
238
238
  _: 2
239
239
  }, [t.hideOperations ? void 0 : {
240
240
  name: "operations",
241
- fn: z(() => [d(l, {
241
+ fn: R(() => [d(l, {
242
242
  variant: "text",
243
243
  shape: "square",
244
244
  onClick: s
245
245
  }, {
246
- icon: z(() => [d(r, { name: "view-list" })]),
246
+ icon: R(() => [d(r, { name: "view-list" })]),
247
247
  _: 1
248
248
  })]),
249
249
  key: "0"
250
250
  }, t.$slots.logo ? {
251
251
  name: "logo",
252
- fn: z(() => [D(t.$slots, "logo")]),
252
+ fn: R(() => [D(t.$slots, "logo")]),
253
253
  key: "1"
254
254
  } : void 0]), 1032, [
255
255
  "value",
@@ -259,7 +259,7 @@ var Se = /* @__PURE__ */ f({
259
259
  ]);
260
260
  };
261
261
  }
262
- }), Ce = Se, we = /* @__PURE__ */ f({
262
+ }), Se = xe, Ce = /* @__PURE__ */ f({
263
263
  __name: "ContextMenu",
264
264
  props: { hideOnSelect: {
265
265
  type: Boolean,
@@ -304,7 +304,7 @@ var Se = /* @__PURE__ */ f({
304
304
  ref_key: "triggerRef",
305
305
  ref: d,
306
306
  class: v(N(u)("trigger")),
307
- onContextmenu: B(h, ["prevent"])
307
+ onContextmenu: z(h, ["prevent"])
308
308
  }, [D(n.$slots, "default")], 34),
309
309
  (S(), i(t, { to: "body" }, [p.value ? (S(), o("div", {
310
310
  key: 0,
@@ -312,17 +312,17 @@ var Se = /* @__PURE__ */ f({
312
312
  ref: f,
313
313
  class: v(N(u)("menu")),
314
314
  style: y(m),
315
- onContextmenu: r[0] ||= B(() => {}, ["prevent"])
315
+ onContextmenu: r[0] ||= z(() => {}, ["prevent"])
316
316
  }, [D(n.$slots, "content")], 38)) : a("", !0)])),
317
317
  (S(), i(t, { to: "body" }, [p.value ? (S(), o("div", {
318
318
  key: 0,
319
319
  class: v(N(u)("mask")),
320
320
  onClick: E,
321
- onContextmenu: B(E, ["prevent"])
321
+ onContextmenu: z(E, ["prevent"])
322
322
  }, null, 34)) : a("", !0)]))
323
323
  ], 64));
324
324
  }
325
- }), Te = we, Ee = /* @__PURE__ */ f({
325
+ }), we = Ce, Te = /* @__PURE__ */ f({
326
326
  __name: "ContextMenuItem",
327
327
  props: {
328
328
  label: {},
@@ -360,13 +360,13 @@ var Se = /* @__PURE__ */ f({
360
360
  [N(i)("danger")]: e.danger
361
361
  }]),
362
362
  onClick: l,
363
- onContextmenu: B(u, ["prevent", "stop"])
363
+ onContextmenu: z(u, ["prevent", "stop"])
364
364
  }, [e.icon ? (S(), o("span", {
365
365
  key: 0,
366
366
  class: v([N(i)("icon"), e.icon])
367
367
  }, A(e.icon), 3)) : a("", !0), s("span", { class: v(N(i)("label")) }, A(e.label), 3)], 34));
368
368
  }
369
- }), De = Ee, Oe = /* @__PURE__ */ f({
369
+ }), Ee = Te, De = /* @__PURE__ */ f({
370
370
  __name: "ContextMenuGroup",
371
371
  props: { title: {} },
372
372
  setup(e) {
@@ -376,12 +376,12 @@ var Se = /* @__PURE__ */ f({
376
376
  class: v(N(t)("title"))
377
377
  }, A(e.title), 3)) : a("", !0), D(e.$slots, "default")], 2));
378
378
  }
379
- }), ke = Oe, Ae = /* @__PURE__ */ f({
379
+ }), Oe = De, ke = /* @__PURE__ */ f({
380
380
  __name: "ContextMenuDivider",
381
381
  setup(e) {
382
382
  return (e, t) => (S(), o("div", { class: v(N(Y)("context-menu-divider")) }, null, 2));
383
383
  }
384
- }), je = Ae, Me = /* @__PURE__ */ f({
384
+ }), Ae = ke, je = /* @__PURE__ */ f({
385
385
  __name: "ContextMenuSubmenu",
386
386
  props: {
387
387
  label: {},
@@ -421,7 +421,7 @@ var Se = /* @__PURE__ */ f({
421
421
  O = !1, P();
422
422
  }, R = () => {
423
423
  k = !0, j();
424
- }, z = () => {
424
+ }, B = () => {
425
425
  k = !1, P();
426
426
  }, V = (e, t) => {
427
427
  f.value = !1, r("select", e, t), h && h(e, t);
@@ -470,7 +470,7 @@ var Se = /* @__PURE__ */ f({
470
470
  [N(c)("active")]: f.value
471
471
  }
472
472
  ]),
473
- onContextmenu: B(U, ["prevent", "stop"]),
473
+ onContextmenu: z(U, ["prevent", "stop"]),
474
474
  onMouseenter: I,
475
475
  onMouseleave: L,
476
476
  onClick: G
@@ -487,38 +487,38 @@ var Se = /* @__PURE__ */ f({
487
487
  ref: d,
488
488
  class: v([N(l)(), N(c)("popup")]),
489
489
  style: y(p),
490
- onContextmenu: B(W, ["prevent", "stop"]),
490
+ onContextmenu: z(W, ["prevent", "stop"]),
491
491
  onMouseenter: R,
492
- onMouseleave: z,
492
+ onMouseleave: B,
493
493
  onContextMenuSelect: H
494
494
  }, [D(e.$slots, "default")], 38)) : a("", !0)
495
495
  ], 34));
496
496
  }
497
- }), Ne = Me, Pe = /* @__PURE__ */ f({
497
+ }), Me = je, Ne = /* @__PURE__ */ f({
498
498
  __name: "WebLayout",
499
499
  setup(e) {
500
500
  return (e, t) => {
501
- let n = G, r = O("router-view");
502
- return S(), i(be, null, {
503
- header: z(() => [d(n, {
501
+ let n = W, r = O("router-view");
502
+ return S(), i(ye, null, {
503
+ header: R(() => [d(n, {
504
504
  value: "item1",
505
505
  height: "60px"
506
506
  }, c({ _: 2 }, [e.$slots.logo ? {
507
507
  name: "logo",
508
- fn: z(() => [D(e.$slots, "logo")]),
508
+ fn: R(() => [D(e.$slots, "logo")]),
509
509
  key: "0"
510
510
  } : void 0, e.$slots.operations ? {
511
511
  name: "operations",
512
- fn: z(() => [D(e.$slots, "operations")]),
512
+ fn: R(() => [D(e.$slots, "operations")]),
513
513
  key: "1"
514
514
  } : void 0]), 1024)]),
515
- left: z(() => [D(e.$slots, "left", {}, () => [d(N(Ce))])]),
516
- default: z(() => [D(e.$slots, "default", {}, () => [s("div", { class: v([N(Y)("main-content-inner")]) }, [d(r)], 2)])]),
515
+ left: R(() => [D(e.$slots, "left", {}, () => [d(N(Se))])]),
516
+ default: R(() => [D(e.$slots, "default", {}, () => [s("div", { class: v([N(Y)("main-content-inner")]) }, [d(r)], 2)])]),
517
517
  _: 3
518
518
  });
519
519
  };
520
520
  }
521
- }), Fe = Pe, Ie = /* @__PURE__ */ f({
521
+ }), Pe = Ne, Fe = /* @__PURE__ */ f({
522
522
  __name: "SplitPanel",
523
523
  props: {
524
524
  component: { default: "div" },
@@ -540,7 +540,7 @@ var Se = /* @__PURE__ */ f({
540
540
  ],
541
541
  setup(e, { emit: t }) {
542
542
  let n = e, c = t, { direction: l, size: u, defaultSize: d, min: f, max: p } = M(n), m = T(0), h = T(), g = T(), x = Y("split-panel"), C = Y("split-trigger"), w = T(d.value);
543
- R(u, (e) => {
543
+ L(u, (e) => {
544
544
  e !== void 0 && (w.value = e);
545
545
  }, { immediate: !0 });
546
546
  function E(e) {
@@ -566,7 +566,7 @@ var Se = /* @__PURE__ */ f({
566
566
  let r = e ?? t, i = E(r);
567
567
  return i.isPx ? i.size : i.size * n;
568
568
  }
569
- function L(e, t) {
569
+ function z(e, t) {
570
570
  return parseFloat(e) / parseFloat(t);
571
571
  }
572
572
  let B = {
@@ -581,7 +581,7 @@ var Se = /* @__PURE__ */ f({
581
581
  }
582
582
  function H(e, t) {
583
583
  if (!t) return;
584
- let n = O.value.isPx ? `${e}px` : L(e, t);
584
+ let n = O.value.isPx ? `${e}px` : z(e, t);
585
585
  w.value !== n && (w.value = n, c("update:size", n));
586
586
  }
587
587
  function U(e, t) {
@@ -649,7 +649,7 @@ var Se = /* @__PURE__ */ f({
649
649
  ref: h,
650
650
  class: v(j.value)
651
651
  }, {
652
- default: z(() => [
652
+ default: R(() => [
653
653
  s("div", {
654
654
  class: v([`${N(x)}-pane`, `${N(x)}-pane-first`]),
655
655
  style: y(F.value)
@@ -670,18 +670,18 @@ var Se = /* @__PURE__ */ f({
670
670
  _: 3
671
671
  }, 8, ["class"]));
672
672
  }
673
- }), Le = Ie, Re = /* @__PURE__ */ f({
673
+ }), Ie = Fe, Le = /* @__PURE__ */ f({
674
674
  __name: "UtoolsBaseLayout",
675
675
  setup(e) {
676
676
  return (e, t) => {
677
- let n = V, r = U, a = J;
677
+ let n = B, r = H, a = q;
678
678
  return S(), i(a, { class: "h-screen min-h-0" }, {
679
- default: z(() => [d(n, { width: "auto" }, {
680
- default: z(() => [D(e.$slots, "left")]),
679
+ default: R(() => [d(n, { width: "auto" }, {
680
+ default: R(() => [D(e.$slots, "left")]),
681
681
  _: 3
682
682
  }), d(a, { class: v(["min-h-0", [N(Y)("utools", "main-content")]]) }, {
683
- default: z(() => [d(r, { class: v(["h-full overflow-hidden", [N(Y)("utools", "main-content-area")]]) }, {
684
- default: z(() => [D(e.$slots, "default")]),
683
+ default: R(() => [d(r, { class: v(["h-full overflow-hidden", [N(Y)("utools", "main-content-area")]]) }, {
684
+ default: R(() => [D(e.$slots, "default")]),
685
685
  _: 3
686
686
  }, 8, ["class"])]),
687
687
  _: 3
@@ -690,12 +690,12 @@ var Se = /* @__PURE__ */ f({
690
690
  });
691
691
  };
692
692
  }
693
- }), ze = Re;
694
- const Be = { class: "utools" }, Ve = { class: "w-8 h-auto overflow-hidden rounded-full" }, He = ["src"], Ue = { class: "title pl-5" }, We = { class: "flex justify-end h-full pr-3 w-full" }, Ge = { class: "content" }, Ke = { class: "content-inner" }, qe = {
693
+ }), Re = Le;
694
+ 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 = {
695
695
  class: "flex items-center justify-center",
696
696
  style: { "font-size": "10px" }
697
697
  };
698
- var Je = /* @__PURE__ */ f({
698
+ var qe = /* @__PURE__ */ f({
699
699
  __name: "UtoolsLayout",
700
700
  props: {
701
701
  avatar: { default: "https://www.u-tools.cn/assets/favicon.png" },
@@ -708,11 +708,11 @@ var Je = /* @__PURE__ */ f({
708
708
  let t = T(), n = T(!0);
709
709
  return (e, r) => {
710
710
  let i = O("router-view");
711
- return S(), o("div", Be, [d(ze, null, {
712
- left: z(() => [s("div", { class: v(N(Y)("utools", "left-menu")) }, [s("div", {
711
+ return S(), o("div", ze, [d(Re, null, {
712
+ left: R(() => [s("div", { class: v(N(Y)("utools", "left-menu")) }, [s("div", {
713
713
  class: v(["flex items-center justify-center", N(Y)("utools", "left-menu", "collapse")]),
714
714
  onClick: r[0] ||= (e) => t.value?.changeCollapsed()
715
- }, [s("div", { class: v(["w-5 h-5 font-bold", n.value ? "i-p-expandLeft" : "i-p-expandRight"]) }, null, 2)], 2), d(N(Ce), g({
715
+ }, [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({
716
716
  ref_key: "leftMenuRef",
717
717
  ref: t
718
718
  }, {
@@ -724,22 +724,22 @@ var Je = /* @__PURE__ */ f({
724
724
  "onUpdate:collapsed": r[1] ||= (e) => n.value = e,
725
725
  hideOperations: ""
726
726
  }), {
727
- logo: z(() => [s("div", Ve, [s("img", {
727
+ logo: R(() => [s("div", Be, [s("img", {
728
728
  class: "logo w-full h-full",
729
729
  src: e.avatar
730
- }, null, 8, He)]), s("div", Ue, A(e.title), 1)]),
730
+ }, null, 8, Ve)]), s("div", He, A(e.title), 1)]),
731
731
  _: 1
732
732
  }, 16, ["collapsed"])], 2)]),
733
- default: z(() => [s("div", { class: v(N(Y)("utools", "content-wrapper")) }, [
734
- s("div", We, [D(e.$slots, "header-tips")]),
735
- s("div", Ge, [s("div", Ke, [d(i)])]),
736
- D(e.$slots, "footer", {}, () => [s("div", qe, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
733
+ default: R(() => [s("div", { class: v(N(Y)("utools", "content-wrapper")) }, [
734
+ s("div", Ue, [D(e.$slots, "header-tips")]),
735
+ s("div", We, [s("div", Ge, [d(i)])]),
736
+ D(e.$slots, "footer", {}, () => [s("div", Ke, " © " + A((/* @__PURE__ */ new Date()).getFullYear()) + " [xiaou]。保留所有权利 ", 1)])
737
737
  ], 2)]),
738
738
  _: 3
739
739
  })]);
740
740
  };
741
741
  }
742
- }), Ye = Je, Xe = /* @__PURE__ */ f({
742
+ }), Je = qe, Ye = /* @__PURE__ */ f({
743
743
  __name: "PageHeader",
744
744
  props: {
745
745
  title: { default: "" },
@@ -751,9 +751,9 @@ var Je = /* @__PURE__ */ f({
751
751
  let t = e, n = X("page-header"), i = r(() => {
752
752
  let e = [n()];
753
753
  return t.size !== "default" && e.push(n(t.size)), e;
754
- }), c = r(() => de("onBack"));
754
+ }), c = r(() => ue("onBack"));
755
755
  return (e, t) => {
756
- let r = q, l = H, f = W;
756
+ let r = K, l = V, f = U;
757
757
  return S(), o("div", { class: v(i.value) }, [s("div", { class: v(["flex items-center", N(n)("header")]) }, [
758
758
  c.value || e.$slots.prefix ? D(e.$slots, "prefix", { key: 0 }, () => [d(l, {
759
759
  class: v(N(n)("header", "back")),
@@ -761,7 +761,7 @@ var Je = /* @__PURE__ */ f({
761
761
  variant: "text",
762
762
  onClick: t[0] ||= (t) => e.$emit("back")
763
763
  }, {
764
- icon: z(() => [d(r, { class: "i-p-left" })]),
764
+ icon: R(() => [d(r, { class: "i-p-left" })]),
765
765
  _: 1
766
766
  }, 8, ["class"])]) : a("", !0),
767
767
  s("div", { class: v(N(n)("title")) }, [D(e.$slots, "title", {}, () => [u(A(e.title), 1)])], 2),
@@ -776,40 +776,40 @@ var Je = /* @__PURE__ */ f({
776
776
  }, [D(e.$slots, "extra")], 2)) : a("", !0)], 2);
777
777
  };
778
778
  }
779
- }), Ze = Xe, Qe = (e, t) => {
779
+ }), Xe = Ye, Ze = (e, t) => {
780
780
  let n = e.__vccOpts || e;
781
781
  for (let [e, r] of t) n[e] = r;
782
782
  return n;
783
783
  };
784
- const $e = {}, et = { class: "result-error-icon" };
785
- function tt(e, t) {
786
- return S(), o("div", et, 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)]);
784
+ const Qe = {}, $e = { class: "result-error-icon" };
785
+ function et(e, t) {
786
+ 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)]);
787
787
  }
788
- var nt = /* @__PURE__ */ Qe($e, [["render", tt], ["__scopeId", "data-v-fc6ebdc7"]]);
789
- const rt = {}, it = { class: "result-error-icon" };
790
- function at(e, t) {
791
- return S(), o("div", it, 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)]);
788
+ var tt = /* @__PURE__ */ Ze(Qe, [["render", et], ["__scopeId", "data-v-fc6ebdc7"]]);
789
+ const nt = {}, rt = { class: "result-error-icon" };
790
+ function it(e, t) {
791
+ 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)]);
792
792
  }
793
- var ot = /* @__PURE__ */ Qe(rt, [["render", at], ["__scopeId", "data-v-cdc3b8a1"]]);
794
- const st = {}, ct = { class: "result-error-icon" };
795
- function lt(e, t) {
796
- return S(), o("div", ct, 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)]);
793
+ var at = /* @__PURE__ */ Ze(nt, [["render", it], ["__scopeId", "data-v-cdc3b8a1"]]);
794
+ const ot = {}, st = { class: "result-error-icon" };
795
+ function ct(e, t) {
796
+ 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)]);
797
797
  }
798
- var ut = /* @__PURE__ */ Qe(st, [["render", lt], ["__scopeId", "data-v-cb66ef61"]]);
799
- const dt = {
798
+ var lt = /* @__PURE__ */ Ze(ot, [["render", ct], ["__scopeId", "data-v-cb66ef61"]]);
799
+ const ut = {
800
800
  key: 0,
801
801
  class: "i-p-info w-12 h-12"
802
- }, ft = {
802
+ }, dt = {
803
803
  key: 1,
804
804
  class: "i-p-check"
805
- }, pt = {
805
+ }, ft = {
806
806
  key: 2,
807
807
  class: "i-p-info w-12 h-12"
808
- }, mt = {
808
+ }, pt = {
809
809
  key: 3,
810
810
  class: "i-p-close"
811
811
  };
812
- var ht = /* @__PURE__ */ f({
812
+ var mt = /* @__PURE__ */ f({
813
813
  __name: "Result",
814
814
  props: {
815
815
  status: { default: "info" },
@@ -833,7 +833,7 @@ var ht = /* @__PURE__ */ f({
833
833
  s("div", { class: v([`${N(c)}-icon`, {
834
834
  [`${N(c)}-icon-${e.status}`]: e.status,
835
835
  [`${N(c)}-icon-custom`]: e.status === null
836
- }]) }, [s("div", { class: v(`${N(c)}-icon-tip`) }, [D(e.$slots, "icon", {}, () => [e.status === "info" ? (S(), o("span", dt)) : e.status === "success" ? (S(), o("span", ft)) : e.status === "warning" ? (S(), o("span", pt)) : e.status === "error" ? (S(), o("span", mt)) : e.status === "403" ? (S(), i(nt, { key: 4 })) : e.status === "404" ? (S(), i(ot, { key: 5 })) : e.status === "500" ? (S(), i(ut, { key: 6 })) : a("", !0)])], 2)], 2),
836
+ }]) }, [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),
837
837
  e.title || e.$slots.title ? (S(), o("div", {
838
838
  key: 0,
839
839
  class: v(`${N(c)}-title`)
@@ -852,9 +852,9 @@ var ht = /* @__PURE__ */ f({
852
852
  }, [D(e.$slots, "default")], 2)) : a("", !0)
853
853
  ], 2));
854
854
  }
855
- }), gt = ht;
856
- const _t = { class: "flex justify-between items-center" };
857
- var vt = /* @__PURE__ */ f({
855
+ }), ht = mt;
856
+ const gt = { class: "flex justify-between items-center" };
857
+ var _t = /* @__PURE__ */ f({
858
858
  __name: "SettingItem",
859
859
  props: {
860
860
  title: {},
@@ -872,22 +872,22 @@ var vt = /* @__PURE__ */ f({
872
872
  return (e, t) => (S(), o("div", g({
873
873
  class: [...a.value],
874
874
  style: { background: e.background }
875
- }, j({ ...i.value && { click: e.$attrs.onClick || e.$attrs.onClickCapture } }, !0)), [s("div", _t, [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));
875
+ }, 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));
876
876
  }
877
- }), yt = vt, bt = /* @__PURE__ */ f({
877
+ }), vt = _t, yt = /* @__PURE__ */ f({
878
878
  __name: "SettingDivision",
879
879
  setup(e) {
880
880
  return (e, t) => (S(), o("div", { class: v(N(Y)("setting-division")) }, null, 2));
881
881
  }
882
- }), xt = bt;
883
- const St = { key: 0 };
884
- var Ct = /* @__PURE__ */ f({
882
+ }), bt = yt;
883
+ const xt = { key: 0 };
884
+ var St = /* @__PURE__ */ f({
885
885
  __name: "SettingGroup",
886
886
  props: { title: {} },
887
887
  setup(e) {
888
- 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", St, [D(e.$slots, "desc")])) : a("", !0)], 2), s("div", null, [D(e.$slots, "default")])], 2));
888
+ 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));
889
889
  }
890
- }), wt = Ct, Tt = /* @__PURE__ */ f({
890
+ }), Ct = St, wt = /* @__PURE__ */ f({
891
891
  name: "SwitchEnable",
892
892
  inheritAttrs: !1,
893
893
  __name: "SwitchEnable",
@@ -922,7 +922,7 @@ var Ct = /* @__PURE__ */ f({
922
922
  style: "width: 10px; height: 10px;"
923
923
  }, null);
924
924
  return (e, t) => {
925
- let r = re;
925
+ let r = ne;
926
926
  return S(), i(r, g({ class: ["u-web-switch", { "u-web-switch-green": n.color === "green" }] }, {
927
927
  ...n,
928
928
  value: void 0
@@ -934,9 +934,9 @@ var Ct = /* @__PURE__ */ f({
934
934
  }), null, 16, ["class", "modelValue"]);
935
935
  };
936
936
  }
937
- }), Et = Tt;
938
- const Dt = ["aria-checked", "disabled"];
939
- var Ot = /* @__PURE__ */ f({
937
+ }), Tt = wt;
938
+ const Et = ["aria-checked", "disabled"];
939
+ var Dt = /* @__PURE__ */ f({
940
940
  name: "SwitchPlus",
941
941
  __name: "SwitchPlus",
942
942
  props: /* @__PURE__ */ h({
@@ -1006,7 +1006,7 @@ var Ot = /* @__PURE__ */ f({
1006
1006
  }, w = async (e) => {
1007
1007
  if (x.value || h.value) return;
1008
1008
  let t = !_.value, n = t ? c.checkedValue : c.uncheckedValue, r = c.beforeChange;
1009
- if (fe(r)) {
1009
+ if (de(r)) {
1010
1010
  b.value = !0;
1011
1011
  try {
1012
1012
  let i = await r(n);
@@ -1020,8 +1020,8 @@ var Ot = /* @__PURE__ */ f({
1020
1020
  }, O = (e) => {
1021
1021
  l("blur", e);
1022
1022
  };
1023
- R(i, (e) => {
1024
- (me(e) || pe(e)) && (i.value = c.uncheckedValue);
1023
+ L(i, (e) => {
1024
+ (pe(e) || fe(e)) && (i.value = c.uncheckedValue);
1025
1025
  });
1026
1026
  let k = r(() => [
1027
1027
  m,
@@ -1060,9 +1060,9 @@ var Ot = /* @__PURE__ */ f({
1060
1060
  }, [s("span", { class: v(`${N(m)}-handle-icon`) }, [x.value ? (S(), o("span", {
1061
1061
  key: 0,
1062
1062
  class: v(["i-p-loading", `${N(m)}-loading-icon`])
1063
- }, 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, Dt));
1063
+ }, 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));
1064
1064
  }
1065
- }), kt = Ot, At = /* @__PURE__ */ f({
1065
+ }), Ot = Dt, kt = /* @__PURE__ */ f({
1066
1066
  __name: "SwitchPlusEnable",
1067
1067
  props: /* @__PURE__ */ h({
1068
1068
  modelValue: { type: [
@@ -1119,18 +1119,18 @@ var Ot = /* @__PURE__ */ f({
1119
1119
  emits: ["update:value"],
1120
1120
  setup(e) {
1121
1121
  let t = F(e, "value"), n = e;
1122
- return (e, r) => (S(), i(kt, g({
1122
+ return (e, r) => (S(), i(Ot, g({
1123
1123
  value: t.value,
1124
1124
  "onUpdate:value": r[0] ||= (e) => t.value = e
1125
1125
  }, n), {
1126
- "checked-icon": z(() => r[1] ||= [s("span", {
1126
+ "checked-icon": R(() => r[1] ||= [s("span", {
1127
1127
  style: {
1128
1128
  width: "14px",
1129
1129
  height: "14px"
1130
1130
  },
1131
1131
  class: "i-p-checkSmall"
1132
1132
  }, null, -1)]),
1133
- "unchecked-icon": z(() => r[2] ||= [s("span", {
1133
+ "unchecked-icon": R(() => r[2] ||= [s("span", {
1134
1134
  style: {
1135
1135
  width: "14px",
1136
1136
  height: "14px"
@@ -1140,7 +1140,7 @@ var Ot = /* @__PURE__ */ f({
1140
1140
  _: 1
1141
1141
  }, 16, ["value"]));
1142
1142
  }
1143
- }), jt = At, Mt = /* @__PURE__ */ f({
1143
+ }), At = kt, jt = /* @__PURE__ */ f({
1144
1144
  __name: "thumb",
1145
1145
  props: {
1146
1146
  data: {},
@@ -1194,7 +1194,7 @@ var Ot = /* @__PURE__ */ f({
1194
1194
  ref_key: "trackRef",
1195
1195
  ref: l,
1196
1196
  class: v([`${N(c)}-track`, `${N(c)}-track-direction-${e.direction}`]),
1197
- onMousedown: B(_, ["self"])
1197
+ onMousedown: z(_, ["self"])
1198
1198
  }, [s("div", {
1199
1199
  ref_key: "thumbRef",
1200
1200
  ref: u,
@@ -1203,7 +1203,7 @@ var Ot = /* @__PURE__ */ f({
1203
1203
  onMousedown: g
1204
1204
  }, [s("div", { class: v(`${N(c)}-thumb-bar`) }, null, 2)], 38)], 34));
1205
1205
  }
1206
- }), Nt = Mt, Pt = /* @__PURE__ */ f({
1206
+ }), Mt = jt, Nt = /* @__PURE__ */ f({
1207
1207
  __name: "Scrollbar",
1208
1208
  props: {
1209
1209
  type: { default: "embed" },
@@ -1289,7 +1289,7 @@ var Ot = /* @__PURE__ */ f({
1289
1289
  { [`${u}-both`]: O.value },
1290
1290
  c.outerClass
1291
1291
  ]), R = (e, t) => {
1292
- ge(e) ? d.value?.scrollTo(e) : (e || t) && d.value?.scrollTo(e, t);
1292
+ he(e) ? d.value?.scrollTo(e) : (e || t) && d.value?.scrollTo(e, t);
1293
1293
  }, z = (e) => {
1294
1294
  d.value?.scrollTo({ top: e });
1295
1295
  }, B = (e) => {
@@ -1308,7 +1308,7 @@ var Ot = /* @__PURE__ */ f({
1308
1308
  ref: d,
1309
1309
  class: `${N(u)}-container`
1310
1310
  }, e.$attrs, { onScroll: M }), [D(e.$slots, "default")], 16),
1311
- !e.hide && w.value ? (S(), i(Nt, {
1311
+ !e.hide && w.value ? (S(), i(Mt, {
1312
1312
  key: 0,
1313
1313
  ref_key: "horizontalThumbRef",
1314
1314
  ref: m,
@@ -1317,7 +1317,7 @@ var Ot = /* @__PURE__ */ f({
1317
1317
  both: O.value,
1318
1318
  onScroll: P
1319
1319
  }, null, 8, ["data", "both"])) : a("", !0),
1320
- !e.hide && E.value ? (S(), i(Nt, {
1320
+ !e.hide && E.value ? (S(), i(Mt, {
1321
1321
  key: 1,
1322
1322
  ref_key: "verticalThumbRef",
1323
1323
  ref: h,
@@ -1328,7 +1328,7 @@ var Ot = /* @__PURE__ */ f({
1328
1328
  }, null, 8, ["data", "both"])) : a("", !0)
1329
1329
  ], 6));
1330
1330
  }
1331
- }), Ft = Pt, It = /* @__PURE__ */ f({
1331
+ }), Pt = Nt, Ft = /* @__PURE__ */ f({
1332
1332
  __name: "LazyLoader",
1333
1333
  props: {
1334
1334
  w: { default: "100%" },
@@ -1336,21 +1336,21 @@ var Ot = /* @__PURE__ */ f({
1336
1336
  distance: { default: 0 }
1337
1337
  },
1338
1338
  setup(e) {
1339
- let t = e, n = T(!1), r = L("box"), { stop: i } = se(r, ([{ isIntersecting: e }]) => {
1339
+ let t = e, n = T(!1), r = T(), { stop: i } = oe(r, ([{ isIntersecting: e }]) => {
1340
1340
  e && (n.value = !0, i());
1341
1341
  }, {
1342
1342
  rootMargin: `${t.distance}px`,
1343
1343
  threshold: 0
1344
1344
  });
1345
- return (e, t) => n.value ? D(e.$slots, "default", { key: 0 }) : (S(), o("div", {
1345
+ return (e, i) => n.value ? D(e.$slots, "default", { key: 0 }) : (S(), o("div", {
1346
1346
  key: 1,
1347
1347
  ref_key: "box",
1348
1348
  ref: r,
1349
1349
  style: y({
1350
- height: e.h,
1351
- width: e.w
1350
+ height: t.h,
1351
+ width: t.w
1352
1352
  })
1353
1353
  }, null, 4));
1354
1354
  }
1355
- }), Lt = It;
1356
- export { ve as BackTop, Te as ContextMenu, je as ContextMenuDivider, ke as ContextMenuGroup, De as ContextMenuItem, Ne as ContextMenuSubmenu, Lt as LazyLoader, Ce as LeftMenu, xe as LeftMenuEventDispatch, $ as LeftMenuEvents, Ze as PageHeader, gt as Result, Ft as Scrollbar, xt as SettingDivision, wt as SettingGroup, yt as SettingItem, Le as SplitPanel, Et as SwitchEnable, kt as SwitchPlus, jt as SwitchPlusEnable, Nt as Thumb, ze as UtoolsBaseLayout, Ye as UtoolsLayout, be as WebBaseLayout, Fe as WebLayout, X as getBuildCurrentClassPrefix, Y as getClassPrefix, de as isEventExist, fe as isFunction, pe as isNull, he as isNumber, ge as isObject, me as isUndefined, Q as off, Z as on };
1355
+ }), It = Ft;
1356
+ export { _e as BackTop, we as ContextMenu, Ae as ContextMenuDivider, Oe as ContextMenuGroup, Ee as ContextMenuItem, Me 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaou66/u-web-ui",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "web-ui",
5
5
  "main": "./dist/index.es.js",
6
6
  "module": "./dist/index.es.js",