@lazycatcloud/lzc-toolkit 0.0.97 → 0.0.99

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/index.es.js CHANGED
@@ -8,8 +8,8 @@ const ht = {
8
8
  function a(s) {
9
9
  if (n === void 0)
10
10
  return;
11
- const u = s.clientX, r = s.clientY, i = Math.abs(u - n), c = Math.abs(r - o);
12
- i > 5 || c > 5 || e.value && e.value(s);
11
+ const u = s.clientX, c = s.clientY, i = Math.abs(u - n), r = Math.abs(c - o);
12
+ i > 5 || r > 5 || e.value && e.value(s);
13
13
  }
14
14
  t.__mouse_down__ = l, t.__mouse_up__ = a, t.addEventListener("mousedown", l), t.addEventListener("mouseup", a);
15
15
  },
@@ -58,12 +58,12 @@ function pt(t, e = !0, n = !0) {
58
58
  const s = () => {
59
59
  l && (clearTimeout(l), l = void 0);
60
60
  };
61
- return (r) => {
62
- const i = re(t), c = Date.now() - o;
61
+ return (c) => {
62
+ const i = re(t), r = Date.now() - o;
63
63
  if (s(), i <= 0)
64
- return o = Date.now(), r();
65
- c > i && (n || !a) ? (o = Date.now(), r()) : e && (l = setTimeout(() => {
66
- o = Date.now(), a = !0, s(), r();
64
+ return o = Date.now(), c();
65
+ r > i && (n || !a) ? (o = Date.now(), c()) : e && (l = setTimeout(() => {
66
+ o = Date.now(), a = !0, s(), c();
67
67
  }, i)), !n && !l && (l = setTimeout(() => a = !0, i)), a = !1;
68
68
  };
69
69
  }
@@ -76,12 +76,12 @@ function It(t, e) {
76
76
  a.value = !0, l();
77
77
  };
78
78
  R(t, s, { flush: "sync" });
79
- const u = Ae(e) ? e : e.get, r = Ae(e) ? void 0 : e.set, i = Mt((c, d) => (o = c, l = d, {
79
+ const u = Ae(e) ? e : e.get, c = Ae(e) ? void 0 : e.set, i = Mt((r, d) => (o = r, l = d, {
80
80
  get() {
81
81
  return a.value && (n = u(), a.value = !1), o(), n;
82
82
  },
83
83
  set(v) {
84
- r?.(v);
84
+ c?.(v);
85
85
  }
86
86
  }));
87
87
  return Object.isExtensible(i) && (i.trigger = s), i;
@@ -129,23 +129,23 @@ var Se = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, Ct
129
129
  function At(t, e, n = {}) {
130
130
  const o = n, { window: l = jt } = o, a = Ot(o, ["window"]);
131
131
  let s;
132
- const u = zt(() => l && "ResizeObserver" in l), r = () => {
132
+ const u = zt(() => l && "ResizeObserver" in l), c = () => {
133
133
  s && (s.disconnect(), s = void 0);
134
134
  }, i = R(() => Ge(t), (d) => {
135
- r(), u.value && l && d && (s = new ResizeObserver(e), s.observe(d, a));
136
- }, { immediate: !0, flush: "post" }), c = () => {
137
- r(), i();
135
+ c(), u.value && l && d && (s = new ResizeObserver(e), s.observe(d, a));
136
+ }, { immediate: !0, flush: "post" }), r = () => {
137
+ c(), i();
138
138
  };
139
- return Fe(c), {
139
+ return Fe(r), {
140
140
  isSupported: u,
141
- stop: c
141
+ stop: r
142
142
  };
143
143
  }
144
144
  function _t(t, e = { width: 0, height: 0 }, n = {}) {
145
145
  const { box: o = "content-box" } = n, l = f(e.width), a = f(e.height);
146
146
  return At(t, ([s]) => {
147
147
  const u = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
148
- u ? (l.value = u.reduce((r, { inlineSize: i }) => r + i, 0), a.value = u.reduce((r, { blockSize: i }) => r + i, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
148
+ u ? (l.value = u.reduce((c, { inlineSize: i }) => c + i, 0), a.value = u.reduce((c, { blockSize: i }) => c + i, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
149
149
  }, n), R(() => Ge(t), (s) => {
150
150
  l.value = s ? e.width : 0, a.value = s ? e.height : 0;
151
151
  }), {
@@ -165,22 +165,22 @@ function Ee(t, e = {}) {
165
165
  manual: a = !1,
166
166
  id: s = `vueuse_styletag_${++St}`
167
167
  } = e, u = f(t);
168
- let r = () => {
168
+ let c = () => {
169
169
  };
170
170
  const i = () => {
171
171
  if (!o)
172
172
  return;
173
173
  const d = o.getElementById(s) || o.createElement("style");
174
- d.type = "text/css", d.id = s, e.media && (d.media = e.media), o.head.appendChild(d), !n.value && (r = R(u, (v) => {
174
+ d.type = "text/css", d.id = s, e.media && (d.media = e.media), o.head.appendChild(d), !n.value && (c = R(u, (v) => {
175
175
  d.innerText = v;
176
176
  }, { immediate: !0 }), n.value = !0);
177
- }, c = () => {
178
- !o || !n.value || (r(), o.head.removeChild(o.getElementById(s)), n.value = !1);
177
+ }, r = () => {
178
+ !o || !n.value || (c(), o.head.removeChild(o.getElementById(s)), n.value = !1);
179
179
  };
180
- return l && !a && Ze(i), a || Fe(c), {
180
+ return l && !a && Ze(i), a || Fe(r), {
181
181
  id: s,
182
182
  css: u,
183
- unload: c,
183
+ unload: r,
184
184
  load: i,
185
185
  isLoaded: dt(n)
186
186
  };
@@ -223,20 +223,20 @@ Ut({
223
223
  linear: mt
224
224
  }, Bt);
225
225
  function Yt(t, e) {
226
- const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = e, a = f(null), s = _t(a), u = f(!0), r = We(Z, 100);
226
+ const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = e, a = f(null), s = _t(a), u = f(!0), c = We(Z, 100);
227
227
  let i;
228
- const c = gt(t), d = f(0), v = f({ start: 0, end: 10 }), M = f({ start: 0, end: l });
228
+ const r = gt(t), d = f(0), v = f({ start: 0, end: 10 }), M = f({ start: 0, end: l });
229
229
  let g = 0;
230
230
  const C = f([]), D = w(() => {
231
231
  let { sum: m, height: h } = { sum: 0, height: 0 };
232
- return c.value.map((b, k) => (typeof o == "number" ? h = o : h = o(k), m += h, { height: h, sum: m }));
232
+ return r.value.map((b, k) => (typeof o == "number" ? h = o : h = o(k), m += h, { height: h, sum: m }));
233
233
  }), y = w(() => J(v.value.start)), I = w(() => typeof o == "number" ? D.value.length * o : D.value[D.value.length - 1]?.sum || 0), Q = w(() => {
234
234
  const { start: m, end: h } = M.value;
235
235
  return C.value.slice(m, h);
236
236
  });
237
237
  oe(() => {
238
238
  }), Ye(() => cancelAnimationFrame(i)), R(
239
- c,
239
+ r,
240
240
  () => {
241
241
  (s.width.value || s.height.value) && O();
242
242
  },
@@ -248,7 +248,7 @@ function Yt(t, e) {
248
248
  },
249
249
  { deep: !0 }
250
250
  ), R(d, () => {
251
- W(), r();
251
+ W(), c();
252
252
  });
253
253
  function W() {
254
254
  u.value = !1;
@@ -266,9 +266,9 @@ function Yt(t, e) {
266
266
  g = G(m);
267
267
  let h = Math.max(0, m - l), b = Math.min(
268
268
  m + g + l,
269
- c.value.length
269
+ r.value.length
270
270
  );
271
- v.value = { start: h, end: b }, C.value = c.value.slice(h, b).map((k, L) => ({
271
+ v.value = { start: h, end: b }, C.value = r.value.slice(h, b).map((k, L) => ({
272
272
  data: k,
273
273
  index: L + h
274
274
  })), M.value.start = m - h, M.value.end = M.value.start + g;
@@ -346,15 +346,15 @@ function kn() {
346
346
  boolFn: (M) => !1,
347
347
  boolRef: w(() => !1),
348
348
  arrayRef: w(() => [])
349
- }, l = F(Je, o), a = F(Xe, e), s = F(nt, n), u = F(Ve, t), r = F(Ke, t), i = F(qe, t), c = F(et, t), d = F(tt, t), v = F(ot, t);
349
+ }, l = F(Je, o), a = F(Xe, e), s = F(nt, n), u = F(Ve, t), c = F(Ke, t), i = F(qe, t), r = F(et, t), d = F(tt, t), v = F(ot, t);
350
350
  return {
351
351
  selected: l,
352
352
  isSelected: a,
353
353
  isAllSelected: s,
354
354
  toggle: u,
355
- toggleAll: r,
355
+ toggleAll: c,
356
356
  select: i,
357
- selectAll: c,
357
+ selectAll: r,
358
358
  unselect: d,
359
359
  unselectAll: v
360
360
  };
@@ -374,7 +374,7 @@ function Qn(t, e) {
374
374
  n.value[M[e]] || (n.value[M[e]] = !0);
375
375
  });
376
376
  }
377
- function r(v) {
377
+ function c(v) {
378
378
  v.forEach((M) => {
379
379
  n.value[M[e]] && delete n.value[M[e]];
380
380
  });
@@ -382,7 +382,7 @@ function Qn(t, e) {
382
382
  function i(v) {
383
383
  return !!n.value[v[e]];
384
384
  }
385
- function c(v) {
385
+ function r(v) {
386
386
  v.forEach((M) => {
387
387
  i(M) ? delete n.value[M[e]] : n.value[M[e]] = !0;
388
388
  });
@@ -390,13 +390,13 @@ function Qn(t, e) {
390
390
  function d() {
391
391
  l.value ? s() : a();
392
392
  }
393
- return P(Ke, d), P(Ve, c), P(Xe, i), P(Je, o), P(qe, u), P(et, a), P(tt, r), P(nt, l), P(ot, s), {
393
+ return P(Ke, d), P(Ve, r), P(Xe, i), P(Je, o), P(qe, u), P(et, a), P(tt, c), P(nt, l), P(ot, s), {
394
394
  selected: o,
395
395
  select: u,
396
396
  selectAll: a,
397
- unselect: r,
397
+ unselect: c,
398
398
  unselectAll: s,
399
- toggle: c,
399
+ toggle: r,
400
400
  toggleAll: d,
401
401
  isSelected: i,
402
402
  isAllSelected: l
@@ -419,9 +419,9 @@ function lt({
419
419
  unselectAll: s = ge("\u53D6\u6D88\u5168\u9009")
420
420
  } = o();
421
421
  let u = {};
422
- const r = w(
422
+ const c = w(
423
423
  () => _e(e === "colum" ? st : at, 50)
424
- ), i = /* @__PURE__ */ new Set(), c = f(!0), d = f(), v = f(!1), M = f({ x: 0, y: 0 }), g = f({ x: 0, y: 0, scrollTop: 0 }), C = new ResizeObserver(
424
+ ), i = /* @__PURE__ */ new Set(), r = f(!0), d = f(), v = f(!1), M = f({ x: 0, y: 0 }), g = f({ x: 0, y: 0, scrollTop: 0 }), C = new ResizeObserver(
425
425
  (N) => D.value = N[0].target.getBoundingClientRect()
426
426
  ), D = f({}), y = f({
427
427
  top: 0,
@@ -486,19 +486,19 @@ function lt({
486
486
  z.sheet.insertRule(it, ne);
487
487
  }
488
488
  function h(N, T) {
489
- c.value = !0, v.value = !0, y.value.height ? y.value.sync() : y.value.sync(!0), M.value.x = N, M.value.y = T + y.value.top, g.value.x = M.value.x, g.value.y = M.value.y, d.value?.classList.add("disable-scroll-behavior"), i.clear();
489
+ r.value = !0, v.value = !0, y.value.height ? y.value.sync() : y.value.sync(!0), M.value.x = N, M.value.y = T + y.value.top, g.value.x = M.value.x, g.value.y = M.value.y, d.value?.classList.add("disable-scroll-behavior"), i.clear();
490
490
  }
491
491
  function b(N, T, U) {
492
- !v.value || (c.value && e === "colum" && !S() && (s(), c.value = !1), U?.(), ee(T), g.value.x = Math.max(N, D.value.left), g.value.y = Math.min(
492
+ !v.value || (r.value && e === "colum" && !S() && (s(), r.value = !1), U?.(), ee(T), g.value.x = Math.max(N, D.value.left), g.value.y = Math.min(
493
493
  T + y.value.top,
494
494
  y.value.height + D.value.top
495
- ), g.value.scrollTop = y.value.top, r.value());
495
+ ), g.value.scrollTop = y.value.top, c.value());
496
496
  }
497
497
  function k() {
498
498
  v.value = !1, d.value?.classList.remove("disable-scroll-behavior");
499
499
  }
500
500
  function L() {
501
- !v.value || (Y || q(), r.value());
501
+ !v.value || (Y || q(), c.value());
502
502
  }
503
503
  function S() {
504
504
  if (!v.value)
@@ -538,7 +538,7 @@ function lt({
538
538
  onScroll: L,
539
539
  isSingleClick: S,
540
540
  cancelSelectAllBySingleClick: de,
541
- selectFn: r,
541
+ selectFn: c,
542
542
  selectRange: I,
543
543
  isPressing: v,
544
544
  containerEl: d,
@@ -551,13 +551,13 @@ function Un(t) {
551
551
  dragStart: a,
552
552
  dragMove: s,
553
553
  dragEnd: u,
554
- cancelSelectAllBySingleClick: r
554
+ cancelSelectAllBySingleClick: c
555
555
  } = e, i = w(() => ({
556
556
  left: `${o.value.left}px`,
557
557
  top: `${o.value.top}px`,
558
558
  width: `${o.value.width}px`,
559
559
  height: `${o.value.height}px`
560
- })), { load: c } = Ee(
560
+ })), { load: r } = Ee(
561
561
  `.drag-select-box {
562
562
  position: absolute;
563
563
  z-index: 99999;
@@ -581,7 +581,7 @@ function Un(t) {
581
581
  s(y.x, y.y);
582
582
  }
583
583
  function g(y) {
584
- y.composedPath().some((Q) => Q?.getAttribute?.(t.attribute)) || r(), u();
584
+ y.composedPath().some((Q) => Q?.getAttribute?.(t.attribute)) || c(), u();
585
585
  }
586
586
  function C(y) {
587
587
  try {
@@ -589,7 +589,7 @@ function Un(t) {
589
589
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
590
590
  if (!e.containerEl?.value)
591
591
  return !1;
592
- ae(V(d), e.containerEl.value), c(), e.containerEl.value?.addEventListener("scroll", l), e.containerEl.value?.addEventListener("mousedown", v), window.addEventListener("mousemove", M), window.addEventListener("mouseup", g);
592
+ ae(V(d), e.containerEl.value), r(), e.containerEl.value?.addEventListener("scroll", l), e.containerEl.value?.addEventListener("mousedown", v), window.addEventListener("mousemove", M), window.addEventListener("mouseup", g);
593
593
  } catch (I) {
594
594
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", I);
595
595
  }
@@ -607,24 +607,24 @@ function Bn(t, e, n = 600) {
607
607
  startSpeed: 5,
608
608
  maxSpeed: 5
609
609
  }
610
- }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: u, dragEnd: r } = o;
610
+ }), { observer: l } = o, { onScroll: a, dragStart: s, dragMove: u, dragEnd: c } = o;
611
611
  let i;
612
- function c() {
612
+ function r() {
613
613
  clearTimeout(i);
614
614
  }
615
615
  function d(D) {
616
- c(), D.composedPath().some((I) => !!I?.getAttribute?.(t.attribute)) && (i = setTimeout(() => {
616
+ r(), D.composedPath().some((I) => !!I?.getAttribute?.(t.attribute)) && (i = setTimeout(() => {
617
617
  const { clientX: I, clientY: Q } = D.targetTouches[0];
618
618
  s(I, Q), e?.(), u(I, Q, () => D.preventDefault()), D.preventDefault();
619
619
  }, n));
620
620
  }
621
621
  function v(D) {
622
- c();
622
+ r();
623
623
  const { clientX: y, clientY: I } = D.targetTouches[0];
624
624
  u(y, I, () => D.preventDefault());
625
625
  }
626
626
  function M() {
627
- c(), r();
627
+ r(), c();
628
628
  }
629
629
  function g(D) {
630
630
  try {
@@ -792,14 +792,14 @@ const Xt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
792
792
  emits: ["close"],
793
793
  setup(t, { emit: e }) {
794
794
  const n = t, o = "lzc-loading-toast", l = w(() => {
795
- let r = {};
796
- return n.captureEvent && (r.pointerEvents = "none"), r;
795
+ let c = {};
796
+ return n.captureEvent && (c.pointerEvents = "none"), c;
797
797
  }), a = w(() => {
798
- let r = {};
799
- return n.width && (r.width = n.width), n.maxWidth && (r.maxWidth = n.maxWidth), n.overlayContentStyle && (r = {
800
- ...r,
798
+ let c = {};
799
+ return n.width && (c.width = n.width), n.maxWidth && (c.maxWidth = n.maxWidth), n.overlayContentStyle && (c = {
800
+ ...c,
801
801
  ...n.overlayContentStyle
802
- }), r;
802
+ }), c;
803
803
  });
804
804
  function s() {
805
805
  n.closeOnClickOverlay && e("close");
@@ -807,7 +807,7 @@ const Xt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
807
807
  function u() {
808
808
  n.closeOnClick && e("close");
809
809
  }
810
- return (r, i) => (x(), he(we, {
810
+ return (c, i) => (x(), he(we, {
811
811
  "enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
812
812
  "leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
813
813
  }, {
@@ -830,7 +830,7 @@ const Xt = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
830
830
  }, [
831
831
  t.showClose ? (x(), _("img", {
832
832
  key: 0,
833
- onClick: i[0] || (i[0] = se((c) => e("close"), ["stop"])),
833
+ onClick: i[0] || (i[0] = se((r) => e("close"), ["stop"])),
834
834
  src: E(Xt),
835
835
  class: K(`${o}-close`)
836
836
  }, null, 10, tn)) : ie("", !0),
@@ -905,24 +905,24 @@ function Rn(t, e) {
905
905
  captureEvent: e?.captureEvent,
906
906
  onClose: e?.onClose
907
907
  });
908
- async function r() {
908
+ async function c() {
909
909
  if (!a.value) {
910
910
  a.value = !0, s = setTimeout(() => {
911
911
  !n || !a.value || u.show();
912
912
  }, l);
913
913
  try {
914
914
  await t(), await i(o);
915
- } catch (c) {
916
- await i(o), await e?.onError?.(c);
915
+ } catch (r) {
916
+ console.error(r), await i(o), await e?.onError?.(r);
917
917
  }
918
918
  }
919
919
  }
920
- async function i(c = !0) {
921
- a.value = !1, s && clearTimeout(s), s = null, c && await u.destory();
920
+ async function i(r = !0) {
921
+ a.value = !1, s && clearTimeout(s), s = null, r && await u.destory();
922
922
  }
923
923
  return ft(i), {
924
924
  processing: a,
925
- handler: r,
925
+ handler: c,
926
926
  close: i
927
927
  };
928
928
  }
@@ -958,13 +958,13 @@ const sn = ["onClick"], an = /* @__PURE__ */ $({
958
958
  color: "white",
959
959
  fontSize: "14px"
960
960
  }));
961
- function r() {
961
+ function c() {
962
962
  !e.buttonClickEvent || e.buttonClickEvent();
963
963
  }
964
964
  return Te(() => {
965
965
  o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
966
- }), (i, c) => (x(), _("div", {
967
- onClick: se(r, ["stop"]),
966
+ }), (i, r) => (x(), _("div", {
967
+ onClick: se(c, ["stop"]),
968
968
  id: "toastWrapper",
969
969
  ref_key: "toastWrapper",
970
970
  ref: n,
@@ -1050,8 +1050,8 @@ function cn(t) {
1050
1050
  performance: l = {},
1051
1051
  maxHeightRatio: a = 0.9,
1052
1052
  observeMethod: s = "classList"
1053
- } = t, u = f(!0), r = We(J, 100);
1054
- let i, c = "";
1053
+ } = t, u = f(!0), c = We(J, 100);
1054
+ let i, r = "";
1055
1055
  const d = f(0), v = f(0), M = f(0), g = f({
1056
1056
  top: 0,
1057
1057
  scrollTop: 0,
@@ -1068,10 +1068,10 @@ function cn(t) {
1068
1068
  height: o ? `${Z.value}px` : void 0
1069
1069
  }));
1070
1070
  function j(L) {
1071
- G(), v.value = L.clientY - n.value.getBoundingClientRect().top || 1, c = getComputedStyle(e.value).scrollBehavior, c === "smooth" && (e.value.style.scrollBehavior = "unset");
1071
+ G(), v.value = L.clientY - n.value.getBoundingClientRect().top || 1, r = getComputedStyle(e.value).scrollBehavior, r === "smooth" && (e.value.style.scrollBehavior = "unset");
1072
1072
  }
1073
1073
  function A() {
1074
- e.value.style.scrollBehavior = c, v.value = 0, r();
1074
+ e.value.style.scrollBehavior = r, v.value = 0, c();
1075
1075
  }
1076
1076
  function G() {
1077
1077
  u.value = !1;
@@ -1130,7 +1130,7 @@ function cn(t) {
1130
1130
  console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: n });
1131
1131
  }
1132
1132
  return R(d, () => {
1133
- G(), r();
1133
+ G(), c();
1134
1134
  }), {
1135
1135
  isScrollEnd: u,
1136
1136
  isDragSlider: D,
@@ -1158,7 +1158,7 @@ const Mn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), dn = /* @__PURE__ *
1158
1158
  autoHeight: o ? n.autoHeight : !0,
1159
1159
  performance: n.performance,
1160
1160
  observeMethod: n.observeMethod
1161
- }), { scrollable: u, isScrollEnd: r, sliderPos: i } = s, c = f(!1), d = n.autoHide ? w(() => c.value || !r.value) : w(() => u.value), { load: v } = Ee(
1161
+ }), { scrollable: u, isScrollEnd: c, sliderPos: i } = s, r = f(!1), d = n.autoHide ? w(() => r.value || !c.value) : w(() => u.value), { load: v } = Ee(
1162
1162
  `.hide-scrollbar {
1163
1163
  scrollbar-width: none;
1164
1164
  -ms-overflow-style: none;
@@ -1176,10 +1176,10 @@ const Mn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), dn = /* @__PURE__ *
1176
1176
  s.modifySliderEventListener("remove");
1177
1177
  });
1178
1178
  function M() {
1179
- c.value = !0;
1179
+ r.value = !0;
1180
1180
  }
1181
1181
  function g() {
1182
- c.value = !1;
1182
+ r.value = !1;
1183
1183
  }
1184
1184
  return e({ uScrollBarReturn: s }), (C, D) => (x(), he(we, null, {
1185
1185
  default: pe(() => [
@@ -1217,7 +1217,7 @@ const Wn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-efefe52c"]]), gn = (t) =
1217
1217
  pullRefreshContainer: null
1218
1218
  },
1219
1219
  setup(t) {
1220
- const e = t, n = 0.7, o = "#2EC1CC", l = f(-999), a = f(1), s = f(0), u = f(0.3), r = f(!1), i = f(0), c = f(0), d = f(0), v = f(0), M = f(0), g = f(), C = w(() => e.scrollTop), D = w(() => ({
1220
+ const e = t, n = 0.7, o = "#2EC1CC", l = f(-999), a = f(1), s = f(0), u = f(0.3), c = f(!1), i = f(0), r = f(0), d = f(0), v = f(0), M = f(0), g = f(), C = w(() => e.scrollTop), D = w(() => ({
1221
1221
  transition: `${v.value}ms`,
1222
1222
  transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
1223
1223
  })), y = w(() => ({
@@ -1228,36 +1228,36 @@ const Wn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-efefe52c"]]), gn = (t) =
1228
1228
  }));
1229
1229
  R(M, (j) => {
1230
1230
  j === 0 && (l.value = -50, u.value = 0.3);
1231
- }), R(c, (j) => {
1231
+ }), R(r, (j) => {
1232
1232
  if (M.value === 2)
1233
1233
  return;
1234
1234
  const A = Math.pow(j, n);
1235
- A === 0 && (l.value = -50), A <= 50 && A > 0 && (l.value = A - 45, s.value = Math.pow(A, 1.5), A > 15 ? r.value = !0 : r.value = !1), A > 50 && (l.value = 5, u.value = 1, M.value);
1235
+ A === 0 && (l.value = -50), A <= 50 && A > 0 && (l.value = A - 45, s.value = Math.pow(A, 1.5), A > 15 ? c.value = !0 : c.value = !1), A > 50 && (l.value = 5, u.value = 1, M.value);
1236
1236
  });
1237
1237
  const I = f(0), Q = (j) => {
1238
1238
  I.value = j.touches[0].pageY;
1239
1239
  }, W = (j) => {
1240
1240
  const A = j.touches[0].pageY - I.value;
1241
- I.value = j.touches[0].pageY, !e.refreshOff && (!e?.refresh || M.value !== 2 && C.value === 0 && (i.value === 0 && (i.value = j.touches[0].pageY), d.value = 0, O.value.style.transition = `${d.value}ms`, v.value = 0, c.value = j.touches[0].pageY - i.value, O.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, A > 0 && j.preventDefault()));
1241
+ I.value = j.touches[0].pageY, !e.refreshOff && (!e?.refresh || M.value !== 2 && C.value === 0 && (i.value === 0 && (i.value = j.touches[0].pageY), d.value = 0, O.value.style.transition = `${d.value}ms`, v.value = 0, r.value = j.touches[0].pageY - i.value, O.value.style.transform = `translate3d(0, ${Math.pow(r.value, n)}px, 0)`, A > 0 && j.preventDefault()));
1242
1242
  }, Z = () => {
1243
1243
  if (e.refreshOff || !e?.refresh || M.value === 2)
1244
1244
  return;
1245
1245
  i.value = 0, d.value = 300;
1246
- const j = Math.pow(c.value, n);
1247
- O.value.style.transition = `${d.value}ms`, j > 50 ? (M.value = 2, c.value = Math.pow(50, 1 / n), O.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, v.value = 300, e?.refresh && e?.refresh().then(() => {
1246
+ const j = Math.pow(r.value, n);
1247
+ O.value.style.transition = `${d.value}ms`, j > 50 ? (M.value = 2, r.value = Math.pow(50, 1 / n), O.value.style.transform = `translate3d(0, ${Math.pow(r.value, n)}px, 0)`, v.value = 300, e?.refresh && e?.refresh().then(() => {
1248
1248
  g.value = "\u5237\u65B0\u6210\u529F";
1249
1249
  }).catch(() => {
1250
1250
  g.value = "\u5237\u65B0\u5931\u8D25";
1251
1251
  }).finally(() => {
1252
1252
  setTimeout(() => {
1253
- M.value = 0, c.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(
1254
- c.value,
1253
+ M.value = 0, r.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(
1254
+ r.value,
1255
1255
  n
1256
1256
  )}px, 0)`, setTimeout(() => {
1257
1257
  g.value = void 0;
1258
1258
  }, v.value);
1259
1259
  }, 600);
1260
- })) : (c.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
1260
+ })) : (r.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(r.value, n)}px, 0)`);
1261
1261
  }, O = f(null);
1262
1262
  return oe(() => {
1263
1263
  e?.refreshOff || (O.value = document.querySelector(
@@ -1290,7 +1290,7 @@ const Wn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-efefe52c"]]), gn = (t) =
1290
1290
  }, [
1291
1291
  p("div", wn, [
1292
1292
  p("div", {
1293
- class: K(["arrows", { opacity: r.value }]),
1293
+ class: K(["arrows", { opacity: c.value }]),
1294
1294
  style: B({ borderBottomColor: o })
1295
1295
  }, null, 6)
1296
1296
  ])
@@ -1324,9 +1324,9 @@ const In = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-18377f18"]]), jn = {
1324
1324
  list: a,
1325
1325
  containerProps: s,
1326
1326
  wrapperProps: u,
1327
- innerProps: r,
1327
+ innerProps: c,
1328
1328
  getItemHeightData: i,
1329
- scrollTop: c
1329
+ scrollTop: r
1330
1330
  } = l;
1331
1331
  e({
1332
1332
  vListReturn: l
@@ -1336,7 +1336,7 @@ const In = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-18377f18"]]), jn = {
1336
1336
  Re(In, {
1337
1337
  refresh: t.refresh,
1338
1338
  refreshOff: t.refreshOff,
1339
- scrollTop: E(c),
1339
+ scrollTop: E(r),
1340
1340
  pullRefreshContainer: "#" + d
1341
1341
  }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
1342
1342
  p("div", {
@@ -1349,7 +1349,7 @@ const In = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-18377f18"]]), jn = {
1349
1349
  class: "virtualList"
1350
1350
  }, v.$attrs), [
1351
1351
  p("div", fe(De(E(u))), [
1352
- p("div", fe(De(E(r))), [
1352
+ p("div", fe(De(E(c))), [
1353
1353
  (x(!0), _(Ce, null, Tt(E(a), ({ index: g, data: C }) => (x(), _("div", {
1354
1354
  key: g,
1355
1355
  style: B({
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const fe={created(o,t){let n,l;function s(a){n=a.clientX,l=a.clientY}function i(a){if(n===void 0)return;const r=a.clientX,u=a.clientY,c=Math.abs(r-n),M=Math.abs(u-l);c>5||M>5||t.value&&t.value(a)}o.__mouse_down__=s,o.__mouse_up__=i,o.addEventListener("mousedown",s),o.addEventListener("mouseup",i)},unmounted(o){o.removeEventListener("mousedown",o.__mouse_down__),o.removeEventListener("mouseup",o.__mouse_up__)}},xe={created(o,t){const{fn:n,ms:l=1500}=t.value;let s=null;function i(a){s||(n(a),s=setTimeout(()=>{s=null},l))}o.addEventListener("click",i)}};var ge;const F=typeof window<"u",Ne=o=>typeof o=="function";F&&((ge=window?.navigator)==null?void 0:ge.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Z(o){return typeof o=="function"?o():e.unref(o)}function De(o,t){function n(...l){o(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return n}function Se(o,t={}){let n,l;return i=>{const a=Z(o),r=Z(t.maxWait);if(n&&clearTimeout(n),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{n&&clearTimeout(n),l=null,i()},r)),n=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function _e(o,t=!0,n=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const c=Z(o),M=Date.now()-l;if(a(),c<=0)return l=Date.now(),u();M>c&&(n||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},c)),!n&&!s&&(s=setTimeout(()=>i=!0,c)),i=!1}}function ke(o){return o}function be(o,t){let n,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(o,a,{flush:"sync"});const r=Ne(t)?t:t.get,u=Ne(t)?void 0:t.set,c=e.customRef((M,f)=>(l=M,s=f,{get(){return i.value&&(n=r(),i.value=!1),l(),n},set(g){u?.(g)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function me(o){return e.getCurrentScope()?(e.onScopeDispose(o),!0):!1}function ye(o,t=200,n={}){return De(Se(t,n),o)}function he(o,t=200,n=!1,l=!0){return De(_e(t,n,l),o)}function Te(o,t=!0){e.getCurrentInstance()?e.onMounted(o):t?o():e.nextTick(o)}function pe(o){var t;const n=Z(o);return(t=n?.$el)!=null?t:n}const Qe=F?window:void 0,Be=F?window.document:void 0;F&&window.navigator,F&&window.location;function Ue(o,t=!1){const n=e.ref(),l=()=>n.value=Boolean(o());return l(),Te(l,t),n}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X="__vueuse_ssr_handlers__";G[X]=G[X]||{},G[X];function Ye(){const o=e.getCurrentInstance(),t=be(()=>null,()=>o.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var we=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Re=(o,t)=>{var n={};for(var l in o)$e.call(o,l)&&t.indexOf(l)<0&&(n[l]=o[l]);if(o!=null&&we)for(var l of we(o))t.indexOf(l)<0&&Pe.call(o,l)&&(n[l]=o[l]);return n};function He(o,t,n={}){const l=n,{window:s=Qe}=l,i=Re(l,["window"]);let a;const r=Ue(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>pe(o),f=>{u(),r.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),M=()=>{u(),c()};return me(M),{isSupported:r,stop:M}}function Ve(o,t={width:0,height:0},n={}){const{box:l="content-box"}=n,s=e.ref(t.width),i=e.ref(t.height);return He(o,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((u,{inlineSize:c})=>u+c,0),i.value=r.reduce((u,{blockSize:c})=>u+c,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},n),e.watch(()=>pe(o),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ee;(function(o){o.UP="UP",o.RIGHT="RIGHT",o.DOWN="DOWN",o.LEFT="LEFT",o.NONE="NONE"})(Ee||(Ee={}));let Fe=0;function J(o,t={}){const n=e.ref(!1),{document:l=Be,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Fe}`}=t,r=e.ref(o);let u=()=>{};const c=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!n.value&&(u=e.watch(r,g=>{f.innerText=g},{immediate:!0}),n.value=!0)},M=()=>{!l||!n.value||(u(),l.head.removeChild(l.getElementById(a)),n.value=!1)};return s&&!i&&Te(c),i||me(M),{id:a,css:r,unload:M,load:c,isLoaded:e.readonly(n)}}var We=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ze=(o,t,n)=>t in o?We(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,Ge=(o,t)=>{for(var n in t||(t={}))Ze.call(t,n)&&ze(o,n,t[n]);if(Ie)for(var n of Ie(t))Ke.call(t,n)&&ze(o,n,t[n]);return o};Ge({linear:ke},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function je(o,t){const{scrollEndHook:n,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ve(i),r=e.ref(!0),u=ye(U,100);let c;const M=e.shallowRef(o),f=e.ref(0),g=e.ref({start:0,end:10}),d=e.ref({start:0,end:s});let N=0;const C=e.ref([]),D=e.computed(()=>{let{sum:w,height:p}={sum:0,height:0};return M.value.map((A,x)=>(typeof l=="number"?p=l:p=l(x),w+=p,{height:p,sum:w}))}),h=e.computed(()=>$(g.value.start)),E=e.computed(()=>typeof l=="number"?D.value.length*l:D.value[D.value.length-1]?.sum||0),S=e.computed(()=>{const{start:w,end:p}=d.value;return C.value.slice(w,p)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch(M,()=>{(a.width.value||a.height.value)&&L()},{deep:!0}),e.watch([a.width,a.height],([w,p])=>{(w||p)&&L()},{deep:!0}),e.watch(f,()=>{B(),u()});function B(){r.value=!1}function U(){r.value=!0,n?.()}function L(){cancelAnimationFrame(c),c=requestAnimationFrame(I)}function I(){if(i.value){f.value=i.value.scrollTop;let w=v(f.value);N=Y(w);let p=Math.max(0,w-s),A=Math.min(w+N+s,M.value.length);g.value={start:p,end:A},C.value=M.value.slice(p,A).map((x,j)=>({data:x,index:j+p})),d.value.start=w-p,d.value.end=d.value.start+N}}function v(w){let p=0,A=D.value.length-1,x=-1;for(;p<=A;){const j=Math.floor((p+A)/2);D.value[j].sum>=w?(x=j,A=j-1):p=j+1}return Math.max(0,x)}function Y(w){let p=0,A=0;for(let x=w;x<D.value.length&&(p++,A+=D.value[x].height,!(A>=a.height.value));x++);return p}function $(w){if(typeof l=="number")return w*l;let p=D.value[w];return p?p.sum-p.height:0}function k(w){return D.value[w]||{sum:0,height:0}}function R(w){if(i.value){const p=k(w);i.value.scrollTop=p.sum-p.height,I()}}const W=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:r.value?void 0:"none"}})),H=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:C,visiableList:S,getItemHeightData:k,getoffsetTopIndex:v,totalHeight:E,clientHeight:a.height,scrollTo:R,scrollTop:f,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{L()},style:P},wrapperProps:W,innerProps:H}}const q=Symbol(),ee=Symbol(),te=Symbol(),oe=Symbol(),ne=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol();function Xe(){const{voidFn:o,boolFn:t,boolRef:n,arrayRef:l}={voidFn:d=>{},boolFn:d=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},s=e.inject(oe,l),i=e.inject(te,t),a=e.inject(ae,n),r=e.inject(ee,o),u=e.inject(q,o),c=e.inject(ne,o),M=e.inject(le,o),f=e.inject(se,o),g=e.inject(ie,o);return{selected:s,isSelected:i,isAllSelected:a,toggle:r,toggleAll:u,select:c,selectAll:M,unselect:f,unselectAll:g}}function Je(o,t){const n=e.ref({}),l=e.computed(()=>o.value.filter(g=>n.value[g[t]])),s=e.computed(()=>l.value.length!=0&&Object.keys(n.value).length==o.value.length);function i(){o.value.forEach(g=>{n.value[g[t]]=!0})}function a(){n.value={}}function r(g){g.forEach(d=>{n.value[d[t]]||(n.value[d[t]]=!0)})}function u(g){g.forEach(d=>{n.value[d[t]]&&delete n.value[d[t]]})}function c(g){return!!n.value[g[t]]}function M(g){g.forEach(d=>{c(d)?delete n.value[d[t]]:n.value[d[t]]=!0})}function f(){s.value?a():i()}return e.provide(q,f),e.provide(ee,M),e.provide(te,c),e.provide(oe,l),e.provide(ne,r),e.provide(le,i),e.provide(se,u),e.provide(ae,s),e.provide(ie,a),{selected:l,select:r,selectAll:i,unselect:u,unselectAll:a,toggle:M,toggleAll:f,isSelected:c,isAllSelected:s}}function re(o){return()=>{console.debug(`\u9ED8\u8BA4${o}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ce({attribute:o,selectWay:t="colum",scrollOptions:n={},getSelectMap:l=()=>({})}){const{select:s=re("\u9009\u62E9"),unselect:i=re("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=re("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>he(t==="colum"?Zt:Kt,50)),c=new Set,M=e.ref(!0),f=e.ref(),g=e.ref(!1),d=e.ref({x:0,y:0}),N=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(m=>D.value=m[0].target.getBoundingClientRect()),D=e.ref({}),h=e.ref({top:0,height:0,sync(m=!1){h.value.top=f.value?.scrollTop||0,m&&(h.value.height=f.value?.scrollHeight||0)}}),E=e.computed(()=>g.value?{left:Math.min(d.value.x,N.value.x)-D.value.left,top:Math.min(d.value.y,N.value.y)-D.value.top,width:Math.abs(d.value.x-N.value.x),height:Math.abs(d.value.y-N.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=n;let L;const I=S,v=B,Y=U,$=m=>m**1;let k=0;function R(m){if(cancelAnimationFrame(L),k=W(m),k=Math.max(Math.min(k,Y),-Y),k!==0){const T=f.value;if(!T||!g.value)return;const _=h.value.height-D.value.height;let z=h.value.top+Number(k);z=Math.min(Math.max(0,z),_),T.scrollTop=z,P(),L=requestAnimationFrame(()=>R(m))}}function W(m){if(f.value){const _=D.value,z=_.bottom-m;if(z<I)return v*$(1-z/I);const b=m-_.top;if(b<I)return-v*$(1-b/I)}return 0}function H(m){const T={...E.value,right:0,bottom:0};return T.left+=D.value.left,T.top+=D.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<m.right&&T.right>m.left&&T.top<m.bottom&&T.bottom>m.top}function P(){h.value.sync();const{top:m,height:T}=h.value;N.value.y=Math.min(T+D.value.top,N.value.y+m-N.value.scrollTop),N.value.scrollTop=m}function w(m,T,_="dynamic-styles"){let z=document.getElementById(_);z||(z=document.createElement("style"),z.id=_,document.head.appendChild(z));const b=z.sheet.cssRules,V=b.length,Xt=`${m} { ${T} }`;for(let de=0;de<V;de++){const Ae=b[de];if(Ae.selectorText===m&&Ae.style.cssText===T)return}z.sheet.insertRule(Xt,V)}function p(m,T){M.value=!0,g.value=!0,h.value.height?h.value.sync():h.value.sync(!0),d.value.x=m,d.value.y=T+h.value.top,N.value.x=d.value.x,N.value.y=d.value.y,f.value?.classList.add("disable-scroll-behavior"),c.clear()}function A(m,T,_){!g.value||(M.value&&t==="colum"&&!O()&&(a(),M.value=!1),_?.(),R(T),N.value.x=Math.max(m,D.value.left),N.value.y=Math.min(T+h.value.top,h.value.height+D.value.top),N.value.scrollTop=h.value.top,u.value())}function x(){g.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function j(){!g.value||(k||P(),u.value())}function O(){if(!g.value)return!1;const{width:m,height:T}=E.value;return!(Math.max(m,T)>5)}function Me(){O()&&a()}function Zt(){O()||f.value?.querySelectorAll(`[${o}]`).forEach(m=>{r[`${o}`]=m.getAttribute(`${o}`),H(m.getBoundingClientRect())?s([r]):i([r])})}function Kt(){const m=[];let T=null,_=0;f.value?.querySelectorAll(`[${o}]`).forEach((z,b)=>{const V=z.getAttribute(`${o}`);m.push(V),H(z.getBoundingClientRect())?(T===null&&(T=b),T=Math.min(T,b),_=Math.max(_,b)):(r[`${o}`]=V,c.has(V)&&i([r]))});for(let z=T;z<_+1;z++)r[`${o}`]=m[z],s([r]),c.add(m[z])}function Gt(m){return!m?.value||(f.value=m.value,!f?.value)?!1:(C.observe(f.value),w(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Gt,dragStart:p,dragMove:A,dragEnd:x,onScroll:j,isSingleClick:O,cancelSelectAllBySingleClick:Me,selectFn:u,selectRange:E,isPressing:g,containerEl:f,observer:C}}function qe(o){const t=ce(o),{observer:n,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:u}=t,c=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=J(`.drag-select-box {
1
+ (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const fe={created(o,t){let n,l;function s(a){n=a.clientX,l=a.clientY}function i(a){if(n===void 0)return;const r=a.clientX,M=a.clientY,c=Math.abs(r-n),u=Math.abs(M-l);c>5||u>5||t.value&&t.value(a)}o.__mouse_down__=s,o.__mouse_up__=i,o.addEventListener("mousedown",s),o.addEventListener("mouseup",i)},unmounted(o){o.removeEventListener("mousedown",o.__mouse_down__),o.removeEventListener("mouseup",o.__mouse_up__)}},xe={created(o,t){const{fn:n,ms:l=1500}=t.value;let s=null;function i(a){s||(n(a),s=setTimeout(()=>{s=null},l))}o.addEventListener("click",i)}};var ge;const F=typeof window<"u",Ne=o=>typeof o=="function";F&&((ge=window?.navigator)==null?void 0:ge.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Z(o){return typeof o=="function"?o():e.unref(o)}function De(o,t){function n(...l){o(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return n}function Se(o,t={}){let n,l;return i=>{const a=Z(o),r=Z(t.maxWait);if(n&&clearTimeout(n),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{n&&clearTimeout(n),l=null,i()},r)),n=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function _e(o,t=!0,n=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return M=>{const c=Z(o),u=Date.now()-l;if(a(),c<=0)return l=Date.now(),M();u>c&&(n||!i)?(l=Date.now(),M()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),M()},c)),!n&&!s&&(s=setTimeout(()=>i=!0,c)),i=!1}}function ke(o){return o}function be(o,t){let n,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(o,a,{flush:"sync"});const r=Ne(t)?t:t.get,M=Ne(t)?void 0:t.set,c=e.customRef((u,f)=>(l=u,s=f,{get(){return i.value&&(n=r(),i.value=!1),l(),n},set(g){M?.(g)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function me(o){return e.getCurrentScope()?(e.onScopeDispose(o),!0):!1}function ye(o,t=200,n={}){return De(Se(t,n),o)}function he(o,t=200,n=!1,l=!0){return De(_e(t,n,l),o)}function Te(o,t=!0){e.getCurrentInstance()?e.onMounted(o):t?o():e.nextTick(o)}function pe(o){var t;const n=Z(o);return(t=n?.$el)!=null?t:n}const Qe=F?window:void 0,Be=F?window.document:void 0;F&&window.navigator,F&&window.location;function Ue(o,t=!1){const n=e.ref(),l=()=>n.value=Boolean(o());return l(),Te(l,t),n}const G=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X="__vueuse_ssr_handlers__";G[X]=G[X]||{},G[X];function Ye(){const o=e.getCurrentInstance(),t=be(()=>null,()=>o.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var we=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,Re=(o,t)=>{var n={};for(var l in o)$e.call(o,l)&&t.indexOf(l)<0&&(n[l]=o[l]);if(o!=null&&we)for(var l of we(o))t.indexOf(l)<0&&Pe.call(o,l)&&(n[l]=o[l]);return n};function He(o,t,n={}){const l=n,{window:s=Qe}=l,i=Re(l,["window"]);let a;const r=Ue(()=>s&&"ResizeObserver"in s),M=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>pe(o),f=>{M(),r.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),u=()=>{M(),c()};return me(u),{isSupported:r,stop:u}}function Ve(o,t={width:0,height:0},n={}){const{box:l="content-box"}=n,s=e.ref(t.width),i=e.ref(t.height);return He(o,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((M,{inlineSize:c})=>M+c,0),i.value=r.reduce((M,{blockSize:c})=>M+c,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},n),e.watch(()=>pe(o),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var Ee;(function(o){o.UP="UP",o.RIGHT="RIGHT",o.DOWN="DOWN",o.LEFT="LEFT",o.NONE="NONE"})(Ee||(Ee={}));let Fe=0;function J(o,t={}){const n=e.ref(!1),{document:l=Be,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Fe}`}=t,r=e.ref(o);let M=()=>{};const c=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!n.value&&(M=e.watch(r,g=>{f.innerText=g},{immediate:!0}),n.value=!0)},u=()=>{!l||!n.value||(M(),l.head.removeChild(l.getElementById(a)),n.value=!1)};return s&&!i&&Te(c),i||me(u),{id:a,css:r,unload:u,load:c,isLoaded:e.readonly(n)}}var We=Object.defineProperty,Ie=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ze=(o,t,n)=>t in o?We(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,Ge=(o,t)=>{for(var n in t||(t={}))Ze.call(t,n)&&ze(o,n,t[n]);if(Ie)for(var n of Ie(t))Ke.call(t,n)&&ze(o,n,t[n]);return o};Ge({linear:ke},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function je(o,t){const{scrollEndHook:n,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ve(i),r=e.ref(!0),M=ye(U,100);let c;const u=e.shallowRef(o),f=e.ref(0),g=e.ref({start:0,end:10}),d=e.ref({start:0,end:s});let N=0;const C=e.ref([]),D=e.computed(()=>{let{sum:w,height:p}={sum:0,height:0};return u.value.map((A,x)=>(typeof l=="number"?p=l:p=l(x),w+=p,{height:p,sum:w}))}),h=e.computed(()=>$(g.value.start)),E=e.computed(()=>typeof l=="number"?D.value.length*l:D.value[D.value.length-1]?.sum||0),S=e.computed(()=>{const{start:w,end:p}=d.value;return C.value.slice(w,p)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch(u,()=>{(a.width.value||a.height.value)&&L()},{deep:!0}),e.watch([a.width,a.height],([w,p])=>{(w||p)&&L()},{deep:!0}),e.watch(f,()=>{B(),M()});function B(){r.value=!1}function U(){r.value=!0,n?.()}function L(){cancelAnimationFrame(c),c=requestAnimationFrame(I)}function I(){if(i.value){f.value=i.value.scrollTop;let w=v(f.value);N=Y(w);let p=Math.max(0,w-s),A=Math.min(w+N+s,u.value.length);g.value={start:p,end:A},C.value=u.value.slice(p,A).map((x,j)=>({data:x,index:j+p})),d.value.start=w-p,d.value.end=d.value.start+N}}function v(w){let p=0,A=D.value.length-1,x=-1;for(;p<=A;){const j=Math.floor((p+A)/2);D.value[j].sum>=w?(x=j,A=j-1):p=j+1}return Math.max(0,x)}function Y(w){let p=0,A=0;for(let x=w;x<D.value.length&&(p++,A+=D.value[x].height,!(A>=a.height.value));x++);return p}function $(w){if(typeof l=="number")return w*l;let p=D.value[w];return p?p.sum-p.height:0}function k(w){return D.value[w]||{sum:0,height:0}}function R(w){if(i.value){const p=k(w);i.value.scrollTop=p.sum-p.height,I()}}const W=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:r.value?void 0:"none"}})),H=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:C,visiableList:S,getItemHeightData:k,getoffsetTopIndex:v,totalHeight:E,clientHeight:a.height,scrollTo:R,scrollTop:f,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{L()},style:P},wrapperProps:W,innerProps:H}}const q=Symbol(),ee=Symbol(),te=Symbol(),oe=Symbol(),ne=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol();function Xe(){const{voidFn:o,boolFn:t,boolRef:n,arrayRef:l}={voidFn:d=>{},boolFn:d=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},s=e.inject(oe,l),i=e.inject(te,t),a=e.inject(ae,n),r=e.inject(ee,o),M=e.inject(q,o),c=e.inject(ne,o),u=e.inject(le,o),f=e.inject(se,o),g=e.inject(ie,o);return{selected:s,isSelected:i,isAllSelected:a,toggle:r,toggleAll:M,select:c,selectAll:u,unselect:f,unselectAll:g}}function Je(o,t){const n=e.ref({}),l=e.computed(()=>o.value.filter(g=>n.value[g[t]])),s=e.computed(()=>l.value.length!=0&&Object.keys(n.value).length==o.value.length);function i(){o.value.forEach(g=>{n.value[g[t]]=!0})}function a(){n.value={}}function r(g){g.forEach(d=>{n.value[d[t]]||(n.value[d[t]]=!0)})}function M(g){g.forEach(d=>{n.value[d[t]]&&delete n.value[d[t]]})}function c(g){return!!n.value[g[t]]}function u(g){g.forEach(d=>{c(d)?delete n.value[d[t]]:n.value[d[t]]=!0})}function f(){s.value?a():i()}return e.provide(q,f),e.provide(ee,u),e.provide(te,c),e.provide(oe,l),e.provide(ne,r),e.provide(le,i),e.provide(se,M),e.provide(ae,s),e.provide(ie,a),{selected:l,select:r,selectAll:i,unselect:M,unselectAll:a,toggle:u,toggleAll:f,isSelected:c,isAllSelected:s}}function re(o){return()=>{console.debug(`\u9ED8\u8BA4${o}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ce({attribute:o,selectWay:t="colum",scrollOptions:n={},getSelectMap:l=()=>({})}){const{select:s=re("\u9009\u62E9"),unselect:i=re("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=re("\u53D6\u6D88\u5168\u9009")}=l();let r={};const M=e.computed(()=>he(t==="colum"?Zt:Kt,50)),c=new Set,u=e.ref(!0),f=e.ref(),g=e.ref(!1),d=e.ref({x:0,y:0}),N=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(m=>D.value=m[0].target.getBoundingClientRect()),D=e.ref({}),h=e.ref({top:0,height:0,sync(m=!1){h.value.top=f.value?.scrollTop||0,m&&(h.value.height=f.value?.scrollHeight||0)}}),E=e.computed(()=>g.value?{left:Math.min(d.value.x,N.value.x)-D.value.left,top:Math.min(d.value.y,N.value.y)-D.value.top,width:Math.abs(d.value.x-N.value.x),height:Math.abs(d.value.y-N.value.y)}:{left:0,top:0,width:0,height:0}),{margin:S=50,startSpeed:B=30,maxSpeed:U=30}=n;let L;const I=S,v=B,Y=U,$=m=>m**1;let k=0;function R(m){if(cancelAnimationFrame(L),k=W(m),k=Math.max(Math.min(k,Y),-Y),k!==0){const T=f.value;if(!T||!g.value)return;const _=h.value.height-D.value.height;let z=h.value.top+Number(k);z=Math.min(Math.max(0,z),_),T.scrollTop=z,P(),L=requestAnimationFrame(()=>R(m))}}function W(m){if(f.value){const _=D.value,z=_.bottom-m;if(z<I)return v*$(1-z/I);const b=m-_.top;if(b<I)return-v*$(1-b/I)}return 0}function H(m){const T={...E.value,right:0,bottom:0};return T.left+=D.value.left,T.top+=D.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<m.right&&T.right>m.left&&T.top<m.bottom&&T.bottom>m.top}function P(){h.value.sync();const{top:m,height:T}=h.value;N.value.y=Math.min(T+D.value.top,N.value.y+m-N.value.scrollTop),N.value.scrollTop=m}function w(m,T,_="dynamic-styles"){let z=document.getElementById(_);z||(z=document.createElement("style"),z.id=_,document.head.appendChild(z));const b=z.sheet.cssRules,V=b.length,Xt=`${m} { ${T} }`;for(let de=0;de<V;de++){const Ae=b[de];if(Ae.selectorText===m&&Ae.style.cssText===T)return}z.sheet.insertRule(Xt,V)}function p(m,T){u.value=!0,g.value=!0,h.value.height?h.value.sync():h.value.sync(!0),d.value.x=m,d.value.y=T+h.value.top,N.value.x=d.value.x,N.value.y=d.value.y,f.value?.classList.add("disable-scroll-behavior"),c.clear()}function A(m,T,_){!g.value||(u.value&&t==="colum"&&!O()&&(a(),u.value=!1),_?.(),R(T),N.value.x=Math.max(m,D.value.left),N.value.y=Math.min(T+h.value.top,h.value.height+D.value.top),N.value.scrollTop=h.value.top,M.value())}function x(){g.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function j(){!g.value||(k||P(),M.value())}function O(){if(!g.value)return!1;const{width:m,height:T}=E.value;return!(Math.max(m,T)>5)}function Me(){O()&&a()}function Zt(){O()||f.value?.querySelectorAll(`[${o}]`).forEach(m=>{r[`${o}`]=m.getAttribute(`${o}`),H(m.getBoundingClientRect())?s([r]):i([r])})}function Kt(){const m=[];let T=null,_=0;f.value?.querySelectorAll(`[${o}]`).forEach((z,b)=>{const V=z.getAttribute(`${o}`);m.push(V),H(z.getBoundingClientRect())?(T===null&&(T=b),T=Math.min(T,b),_=Math.max(_,b)):(r[`${o}`]=V,c.has(V)&&i([r]))});for(let z=T;z<_+1;z++)r[`${o}`]=m[z],s([r]),c.add(m[z])}function Gt(m){return!m?.value||(f.value=m.value,!f?.value)?!1:(C.observe(f.value),w(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Gt,dragStart:p,dragMove:A,dragEnd:x,onScroll:j,isSingleClick:O,cancelSelectAllBySingleClick:Me,selectFn:M,selectRange:E,isPressing:g,containerEl:f,observer:C}}function qe(o){const t=ce(o),{observer:n,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:M}=t,c=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:u}=J(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
5
5
  opacity: 0.5;
6
- }`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:c.value})}});function g(h){h.button===0&&i(h.x,h.y)}function d(h){a(h.x,h.y)}function N(h){h.composedPath().some(S=>S?.getAttribute?.(o.attribute))||u(),r()}function C(h){try{if(!t.init(h))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(f),t.containerEl.value),M(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",g),window.addEventListener("mousemove",d),window.addEventListener("mouseup",N)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function D(){n.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",g),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",N)}return{init:C,unMount:D}}function et(o,t,n=600){const l=ce({...o,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:r,dragEnd:u}=l;let c;function M(){clearTimeout(c)}function f(D){M(),D.composedPath().some(E=>!!E?.getAttribute?.(o.attribute))&&(c=setTimeout(()=>{const{clientX:E,clientY:S}=D.targetTouches[0];a(E,S),t?.(),r(E,S,()=>D.preventDefault()),D.preventDefault()},n))}function g(D){M();const{clientX:h,clientY:E}=D.targetTouches[0];r(h,E,()=>D.preventDefault())}function d(){M(),u()}function N(D){try{if(!l.init(D))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",g),window.addEventListener("touchcancel",d),window.addEventListener("touchend",d)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function C(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",g),window.removeEventListener("touchcancel",d),window.removeEventListener("touchEnd",d)}return{init:N,unMount:C}}const Ce=Symbol(),tt={key:0,class:"lzc-modal"},ot=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(o,{emit:t}){const n=o,l=()=>{n.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(Ce,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",o.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),qt="",Q=(o,t)=>{const n=o.__vccOpts||o;for(const[l,s]of t)n[l]=s;return n},nt=Q(ot,[["__scopeId","data-v-4ff684af"]]);function lt(o){function t(n,l){const s=document.createElement("div"),i={setup(){return()=>e.h(nt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...o},{default:()=>e.h(n,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Le({component:o,componentProps:t,delay:n=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${n}ms`;return J(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:c.value})}});function g(h){h.button===0&&i(h.x,h.y)}function d(h){a(h.x,h.y)}function N(h){h.composedPath().some(S=>S?.getAttribute?.(o.attribute))||M(),r()}function C(h){try{if(!t.init(h))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(f),t.containerEl.value),u(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",g),window.addEventListener("mousemove",d),window.addEventListener("mouseup",N)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function D(){n.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",g),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",N)}return{init:C,unMount:D}}function et(o,t,n=600){const l=ce({...o,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:r,dragEnd:M}=l;let c;function u(){clearTimeout(c)}function f(D){u(),D.composedPath().some(E=>!!E?.getAttribute?.(o.attribute))&&(c=setTimeout(()=>{const{clientX:E,clientY:S}=D.targetTouches[0];a(E,S),t?.(),r(E,S,()=>D.preventDefault()),D.preventDefault()},n))}function g(D){u();const{clientX:h,clientY:E}=D.targetTouches[0];r(h,E,()=>D.preventDefault())}function d(){u(),M()}function N(D){try{if(!l.init(D))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",g),window.addEventListener("touchcancel",d),window.addEventListener("touchend",d)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function C(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",g),window.removeEventListener("touchcancel",d),window.removeEventListener("touchEnd",d)}return{init:N,unMount:C}}const Ce=Symbol(),tt={key:0,class:"lzc-modal"},ot=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(o,{emit:t}){const n=o,l=()=>{n.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(Ce,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[o.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",tt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",o.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),qt="",Q=(o,t)=>{const n=o.__vccOpts||o;for(const[l,s]of t)n[l]=s;return n},nt=Q(ot,[["__scopeId","data-v-4ff684af"]]);function lt(o){function t(n,l){const s=document.createElement("div"),i={setup(){return()=>e.h(nt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...o},{default:()=>e.h(n,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Le({component:o,componentProps:t,delay:n=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${n}ms`;return J(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${i} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const r=Ye();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(o,t)}})}}function st({component:o,componentProps:t,delay:n=300}){const{LoadingComp:l}=Le({component:o,componentProps:t,delay:n}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const at=[(o=>(e.pushScopeId("data-v-d0ad7597"),o=o(),e.popScopeId(),o))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],it=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(o){return e.useCssVars(t=>({d8dfa9f0:o.width+"px","2941c2e5":o.height+"px"})),(t,n)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),at,16))}}),oo="",rt=Q(it,[["__scopeId","data-v-d0ad7597"]]);async function ct(o){return new Promise(t=>setTimeout(()=>t(),o))}const ut="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0c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default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:t}){const n=o,l="lzc-loading-toast",s=e.computed(()=>{let u={};return n.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return n.width&&(u.width=n.width),n.maxWidth&&(u.maxWidth=n.maxWidth),n.overlayContentStyle&&(u={...u,...n.overlayContentStyle}),u});function a(){n.closeOnClickOverlay&&t("close")}function r(){n.closeOnClick&&t("close")}return(u,c)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${o.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[o.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:c[0]||(c[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(ut),class:e.normalizeClass(`${l}-close`)},null,10,gt)):e.createCommentVNode("",!0),o.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.icon||e.unref(Mt),class:e.normalizeClass(`${l}-icon`)},null,10,Nt)):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(o.message),3)):e.createCommentVNode("",!0)],6)],10,ft)],10,dt),[[e.vShow,o.visible]])],4)]),_:1}))}}),no="",lo="",mt=Q(Dt,[["__scopeId","data-v-cb2e1a90"]]);class K{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=mt}async show(){const t=this.options,l={...t,onClose:function(){K.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await ct(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function yt(o,t){const n=t?.loading!==!1,l=t?.autoClose!==!1,s=t?.delay!=null?t.delay:200,i=e.ref(!1);let a=null;const r=new K({message:t?.message,duration:t?.duration,width:t?.width,maxWidth:t?.maxWidth,showIcon:t?.showIcon,icon:t?.icon,showClose:t?.showClose,closeOnClick:t?.closeOnClick,closeOnClickOverlay:t?.closeOnClickOverlay,className:t?.className,overlayContentStyle:t?.overlayContentStyle,captureEvent:t?.captureEvent,onClose:t?.onClose});async function u(){if(!i.value){i.value=!0,a=setTimeout(()=>{!n||!i.value||r.show()},s);try{await o(),await c(l)}catch(M){await c(l),await t?.onError?.(M)}}}async function c(M=!0){i.value=!1,a&&clearTimeout(a),a=null,M&&await r.destory()}return e.onBeforeUnmount(c),{processing:i,handler:u,close:c}}const ht=["onClick"],Tt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(o){const t=o,n=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=n.value.offsetWidth/2,s.value=n.value.offsetHeight/2}),(c,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:n,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(r))},[e.createElementVNode("span",null,e.toDisplayString(o.message),1)],4)],12,ht))}}),so="",pt=Q(Tt,[["__scopeId","data-v-533e986b"]]),ve={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class wt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(pt),{...ve,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const n=this.options.duration||ve.duration;setTimeout(()=>{this.dismiss()},n)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Et=["xlink:href","fill","color"],It=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(o){const t=o,n=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(n),fill:o.color,color:o.color},null,8,Et)],4))}});function zt(o){const{containerEl:t,sliderEl:n,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=o,r=e.ref(!0),u=ye($,100);let c,M="";const f=e.ref(0),g=e.ref(0),d=e.ref(0),N=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),C=e.ref({clientHeight:0}),D=e.computed(()=>!!g.value),h=e.computed(()=>N.value.scrollHeight>N.value.clientHeight),E=e.computed(()=>l?N.value.clientHeight-U.value:N.value.clientHeight-C.value.clientHeight),S=e.computed(()=>N.value.scrollHeight-N.value.clientHeight),B=e.computed(()=>Math.max(N.value.clientHeight/N.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*N.value.clientHeight),L=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${d.value}px,0)`,height:l?`${U.value}px`:void 0}));function I(j){Y(),g.value=j.clientY-n.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=M,g.value=0,u()}function Y(){r.value=!1}function $(){D.value||(r.value=!0)}function k(j){if(!D.value)return;let O=j.clientY-N.value.top-g.value;O<0?d.value=0:O>=E.value?d.value=E.value:d.value=O,t.value.scrollTo({top:d.value/E.value*S.value})}function R(){D.value||W()}function W(){cancelAnimationFrame(c),c=requestAnimationFrame(H)}function H(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,d.value=f.value/S.value*E.value)}function P(j){let O="addEventListener";j==="add"?O="addEventListener":O="removeEventListener",n.value?.[O]("pointerdown",I,{passive:!0}),window[O]("pointermove",k,{passive:!0}),window[O]("pointerup",v,{passive:!0})}const w=new MutationObserver(j=>{(a=="classList"||j.map(Me=>Me.oldValue).join().includes("height"))&&p()});function p(){N.value.top=t.value?.getBoundingClientRect().top??0,N.value.scrollHeight=t.value?.scrollHeight??0,N.value.clientHeight=t.value?.clientHeight??0}function A(){Y(),setTimeout(()=>{C.value.clientHeight=n.value?.clientHeight??0,$()},150)}function x(){if(t.value&&n.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const j={};a==="classList"?Object.assign(j,{subtree:!0,childList:!0}):Object.assign(j,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),w.observe(t.value,j),setTimeout(()=>{p()},100),A()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:n})}return e.watch(f,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:D,offsetTop:d,scrollTop:f,scrollable:h,sliderPos:L,init:x,modifySliderEventListener:P}}const jt=(o=>(e.pushScopeId("data-v-efefe52c"),o=o(),e.popScopeId(),o))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ct=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(o,{expose:t}){const n=o,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>n.containerEl),a=zt({containerEl:i,sliderEl:s,autoHeight:l?n.autoHeight:!0,performance:n.performance,observeMethod:n.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:c}=a,M=e.ref(!1),f=n.autoHide?e.computed(()=>M.value||!u.value):e.computed(()=>r.value),{load:g}=J(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const r=Ye();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(o,t)}})}}function st({component:o,componentProps:t,delay:n=300}){const{LoadingComp:l}=Le({component:o,componentProps:t,delay:n}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const at=[(o=>(e.pushScopeId("data-v-d0ad7597"),o=o(),e.popScopeId(),o))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],it=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(o){return e.useCssVars(t=>({d8dfa9f0:o.width+"px","2941c2e5":o.height+"px"})),(t,n)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),at,16))}}),oo="",rt=Q(it,[["__scopeId","data-v-d0ad7597"]]);async function ct(o){return new Promise(t=>setTimeout(()=>t(),o))}const ut="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMDkgMTIuMDMyMTQyOS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TMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",dt=["onClick"],ft=["onClick"],gt=["src"],Nt=["src"],Dt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(o,{emit:t}){const n=o,l="lzc-loading-toast",s=e.computed(()=>{let M={};return n.captureEvent&&(M.pointerEvents="none"),M}),i=e.computed(()=>{let M={};return n.width&&(M.width=n.width),n.maxWidth&&(M.maxWidth=n.maxWidth),n.overlayContentStyle&&(M={...M,...n.overlayContentStyle}),M});function a(){n.closeOnClickOverlay&&t("close")}function r(){n.closeOnClick&&t("close")}return(M,c)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${o.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[o.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:c[0]||(c[0]=e.withModifiers(u=>t("close"),["stop"])),src:e.unref(ut),class:e.normalizeClass(`${l}-close`)},null,10,gt)):e.createCommentVNode("",!0),o.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:o.icon||e.unref(Mt),class:e.normalizeClass(`${l}-icon`)},null,10,Nt)):e.createCommentVNode("",!0),o.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(o.message),3)):e.createCommentVNode("",!0)],6)],10,ft)],10,dt),[[e.vShow,o.visible]])],4)]),_:1}))}}),no="",lo="",mt=Q(Dt,[["__scopeId","data-v-cb2e1a90"]]);class K{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=mt}async show(){const t=this.options,l={...t,onClose:function(){K.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await ct(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function yt(o,t){const n=t?.loading!==!1,l=t?.autoClose!==!1,s=t?.delay!=null?t.delay:200,i=e.ref(!1);let a=null;const r=new K({message:t?.message,duration:t?.duration,width:t?.width,maxWidth:t?.maxWidth,showIcon:t?.showIcon,icon:t?.icon,showClose:t?.showClose,closeOnClick:t?.closeOnClick,closeOnClickOverlay:t?.closeOnClickOverlay,className:t?.className,overlayContentStyle:t?.overlayContentStyle,captureEvent:t?.captureEvent,onClose:t?.onClose});async function M(){if(!i.value){i.value=!0,a=setTimeout(()=>{!n||!i.value||r.show()},s);try{await o(),await c(l)}catch(u){console.error(u),await c(l),await t?.onError?.(u)}}}async function c(u=!0){i.value=!1,a&&clearTimeout(a),a=null,u&&await r.destory()}return e.onBeforeUnmount(c),{processing:i,handler:M,close:c}}const ht=["onClick"],Tt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(o){const t=o,n=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function M(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=n.value.offsetWidth/2,s.value=n.value.offsetHeight/2}),(c,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(M,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:n,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(r))},[e.createElementVNode("span",null,e.toDisplayString(o.message),1)],4)],12,ht))}}),so="",pt=Q(Tt,[["__scopeId","data-v-533e986b"]]),ve={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class wt{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(pt),{...ve,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const n=this.options.duration||ve.duration;setTimeout(()=>{this.dismiss()},n)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Et=["xlink:href","fill","color"],It=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(o){const t=o,n=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(n),fill:o.color,color:o.color},null,8,Et)],4))}});function zt(o){const{containerEl:t,sliderEl:n,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=o,r=e.ref(!0),M=ye($,100);let c,u="";const f=e.ref(0),g=e.ref(0),d=e.ref(0),N=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),C=e.ref({clientHeight:0}),D=e.computed(()=>!!g.value),h=e.computed(()=>N.value.scrollHeight>N.value.clientHeight),E=e.computed(()=>l?N.value.clientHeight-U.value:N.value.clientHeight-C.value.clientHeight),S=e.computed(()=>N.value.scrollHeight-N.value.clientHeight),B=e.computed(()=>Math.max(N.value.clientHeight/N.value.scrollHeight,.05)),U=e.computed(()=>B.value>i?0:B.value*N.value.clientHeight),L=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${d.value}px,0)`,height:l?`${U.value}px`:void 0}));function I(j){Y(),g.value=j.clientY-n.value.getBoundingClientRect().top||1,u=getComputedStyle(t.value).scrollBehavior,u==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=u,g.value=0,M()}function Y(){r.value=!1}function $(){D.value||(r.value=!0)}function k(j){if(!D.value)return;let O=j.clientY-N.value.top-g.value;O<0?d.value=0:O>=E.value?d.value=E.value:d.value=O,t.value.scrollTo({top:d.value/E.value*S.value})}function R(){D.value||W()}function W(){cancelAnimationFrame(c),c=requestAnimationFrame(H)}function H(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,d.value=f.value/S.value*E.value)}function P(j){let O="addEventListener";j==="add"?O="addEventListener":O="removeEventListener",n.value?.[O]("pointerdown",I,{passive:!0}),window[O]("pointermove",k,{passive:!0}),window[O]("pointerup",v,{passive:!0})}const w=new MutationObserver(j=>{(a=="classList"||j.map(Me=>Me.oldValue).join().includes("height"))&&p()});function p(){N.value.top=t.value?.getBoundingClientRect().top??0,N.value.scrollHeight=t.value?.scrollHeight??0,N.value.clientHeight=t.value?.clientHeight??0}function A(){Y(),setTimeout(()=>{C.value.clientHeight=n.value?.clientHeight??0,$()},150)}function x(){if(t.value&&n.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const j={};a==="classList"?Object.assign(j,{subtree:!0,childList:!0}):Object.assign(j,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),w.observe(t.value,j),setTimeout(()=>{p()},100),A()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:n})}return e.watch(f,()=>{Y(),M()}),{isScrollEnd:r,isDragSlider:D,offsetTop:d,scrollTop:f,scrollable:h,sliderPos:L,init:x,modifySliderEventListener:P}}const jt=(o=>(e.pushScopeId("data-v-efefe52c"),o=o(),e.popScopeId(),o))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ct=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(o,{expose:t}){const n=o,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>n.containerEl),a=zt({containerEl:i,sliderEl:s,autoHeight:l?n.autoHeight:!0,performance:n.performance,observeMethod:n.observeMethod}),{scrollable:r,isScrollEnd:M,sliderPos:c}=a,u=e.ref(!1),f=n.autoHide?e.computed(()=>u.value||!M.value):e.computed(()=>r.value),{load:g}=J(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{g(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function d(){M.value=!0}function N(){M.value=!1}return t({uScrollBarReturn:a}),(C,D)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:d,onMouseleave:N,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(C.$slots,"default",{},()=>[jt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),io="",Lt=Q(Ct,[["__scopeId","data-v-efefe52c"]]),vt=o=>(e.pushScopeId("data-v-18377f18"),o=o(),e.popScopeId(),o),Ot={class:"pull-refresh"},At={key:0,class:"pull-arrow-circle"},xt={key:0,class:"box-load"},St={class:"left-load"},_t={class:"right-load"},kt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),bt={class:"pull-arrow"},Qt={key:1},Bt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(o){const t=o,n=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),u=e.ref(!1),c=e.ref(0),M=e.ref(0),f=e.ref(0),g=e.ref(0),d=e.ref(0),N=e.ref(),C=e.computed(()=>t.scrollTop),D=e.computed(()=>({transition:`${g.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:g.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(d,I=>{I===0&&(s.value=-50,r.value=.3)}),e.watch(M,I=>{if(d.value===2)return;const v=Math.pow(I,n);v===0&&(s.value=-50),v<=50&&v>0&&(s.value=v-45,a.value=Math.pow(v,1.5),v>15?u.value=!0:u.value=!1),v>50&&(s.value=5,r.value=1,d.value)});const E=e.ref(0),S=I=>{E.value=I.touches[0].pageY},B=I=>{const v=I.touches[0].pageY-E.value;E.value=I.touches[0].pageY,!t.refreshOff&&(!t?.refresh||d.value!==2&&C.value===0&&(c.value===0&&(c.value=I.touches[0].pageY),f.value=0,L.value.style.transition=`${f.value}ms`,g.value=0,M.value=I.touches[0].pageY-c.value,L.value.style.transform=`translate3d(0, ${Math.pow(M.value,n)}px, 0)`,v>0&&I.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||d.value===2)return;c.value=0,f.value=300;const I=Math.pow(M.value,n);L.value.style.transition=`${f.value}ms`,I>50?(d.value=2,M.value=Math.pow(50,1/n),L.value.style.transform=`translate3d(0, ${Math.pow(M.value,n)}px, 0)`,g.value=300,t?.refresh&&t?.refresh().then(()=>{N.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{N.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{d.value=0,M.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(M.value,n)}px, 0)`,setTimeout(()=>{N.value=void 0},g.value)},600)})):(M.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(M.value,n)}px, 0)`)},L=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(L.value=document.querySelector(t.pullRefreshContainer),L.value?.addEventListener("touchstart",S),L.value?.addEventListener("touchmove",B),L.value?.addEventListener("touchend",U))}),(I,v)=>(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(D))},[N.value?(e.openBlock(),e.createElementBlock("div",Qt,e.toDisplayString(N.value),1)):(e.openBlock(),e.createElementBlock("div",At,[d.value==2?(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",_t,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),kt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),ro="",Oe=Q(Bt,[["__scopeId","data-v-18377f18"]]),Ut={inheritAttrs:!1},Yt=e.defineComponent({...Ut,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(o,{expose:t,emit:n}){const l=o,s=je(e.toRef(l,"data"),{itemHeight:g=>l.itemHeight(l.data[g]),overscan:l.overscan,scrollEndHook:()=>{n("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:u,getItemHeightData:c,scrollTop:M}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();return(g,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:o.refresh,refreshOff:o.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:d[0]||(d[0]=(...N)=>e.unref(a).onScroll&&e.unref(a).onScroll(...N)),ref:e.unref(a).ref,class:"virtualList"},g.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:N,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:N,style:e.normalizeStyle({height:`${e.unref(c)(N).height}px`,display:"flex"})},[e.renderSlot(g.$slots,"default",{data:C,index:N},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),co="",$t=Q(Yt,[["__scopeId","data-v-e0fb787f"]]),ue=o=>(e.pushScopeId("data-v-c986249d"),o=o(),e.popScopeId(),o),Pt={style:{position:"absolute"}},Rt=ue(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Ht=["width","height"],Vt=[ue(()=>e.createElementVNode("title",null,"logo",-1)),ue(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Ft=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(o){const t=o;e.useCssVars(l=>({"5e400569":n}));const n=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Pt,[Rt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:o.width,height:o.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Vt,8,Ht))]))}}),fo="",Wt=Q(Ft,[["__scopeId","data-v-c986249d"]]);y.DefaultLoading=rt,y.Loading=Wt,y.LoadingToast=K,y.PullRefresh=Oe,y.ScrollBar=Lt,y.SvgIcon=It,y.ToastCreator=wt,y.VirtualList=$t,y.allSelectedKey=oe,y.closeDialogKey=Ce,y.dialogController=lt,y.isAllSelectedKey=ae,y.isSelectedKey=te,y.selectAllKey=le,y.selectKey=ne,y.toggleAllKey=q,y.toggleKey=ee,y.unselectAllKey=ie,y.unselectKey=se,y.useDelayAsync=yt,y.useDelayLoad=st,y.useDelayLoadComp=Le,y.useDragSelect=ce,y.useDragSelectByMobile=et,y.useDragSelectByPc=qe,y.useSelectable=Je,y.useSelectableInjectors=Xe,y.useVirtualList=je,y.vDebounceClick=xe,y.vSingleClick=fe,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{g(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function d(){u.value=!0}function N(){u.value=!1}return t({uScrollBarReturn:a}),(C,D)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:d,onMouseleave:N,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(C.$slots,"default",{},()=>[jt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),io="",Lt=Q(Ct,[["__scopeId","data-v-efefe52c"]]),vt=o=>(e.pushScopeId("data-v-18377f18"),o=o(),e.popScopeId(),o),Ot={class:"pull-refresh"},At={key:0,class:"pull-arrow-circle"},xt={key:0,class:"box-load"},St={class:"left-load"},_t={class:"right-load"},kt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),bt={class:"pull-arrow"},Qt={key:1},Bt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(o){const t=o,n=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),M=e.ref(!1),c=e.ref(0),u=e.ref(0),f=e.ref(0),g=e.ref(0),d=e.ref(0),N=e.ref(),C=e.computed(()=>t.scrollTop),D=e.computed(()=>({transition:`${g.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:g.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(d,I=>{I===0&&(s.value=-50,r.value=.3)}),e.watch(u,I=>{if(d.value===2)return;const v=Math.pow(I,n);v===0&&(s.value=-50),v<=50&&v>0&&(s.value=v-45,a.value=Math.pow(v,1.5),v>15?M.value=!0:M.value=!1),v>50&&(s.value=5,r.value=1,d.value)});const E=e.ref(0),S=I=>{E.value=I.touches[0].pageY},B=I=>{const v=I.touches[0].pageY-E.value;E.value=I.touches[0].pageY,!t.refreshOff&&(!t?.refresh||d.value!==2&&C.value===0&&(c.value===0&&(c.value=I.touches[0].pageY),f.value=0,L.value.style.transition=`${f.value}ms`,g.value=0,u.value=I.touches[0].pageY-c.value,L.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,v>0&&I.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||d.value===2)return;c.value=0,f.value=300;const I=Math.pow(u.value,n);L.value.style.transition=`${f.value}ms`,I>50?(d.value=2,u.value=Math.pow(50,1/n),L.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,g.value=300,t?.refresh&&t?.refresh().then(()=>{N.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{N.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{d.value=0,u.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,setTimeout(()=>{N.value=void 0},g.value)},600)})):(u.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`)},L=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(L.value=document.querySelector(t.pullRefreshContainer),L.value?.addEventListener("touchstart",S),L.value?.addEventListener("touchmove",B),L.value?.addEventListener("touchend",U))}),(I,v)=>(e.openBlock(),e.createElementBlock("div",Ot,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(D))},[N.value?(e.openBlock(),e.createElementBlock("div",Qt,e.toDisplayString(N.value),1)):(e.openBlock(),e.createElementBlock("div",At,[d.value==2?(e.openBlock(),e.createElementBlock("div",xt,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",_t,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),kt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:M.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),ro="",Oe=Q(Bt,[["__scopeId","data-v-18377f18"]]),Ut={inheritAttrs:!1},Yt=e.defineComponent({...Ut,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(o,{expose:t,emit:n}){const l=o,s=je(e.toRef(l,"data"),{itemHeight:g=>l.itemHeight(l.data[g]),overscan:l.overscan,scrollEndHook:()=>{n("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:M,getItemHeightData:c,scrollTop:u}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();return(g,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:o.refresh,refreshOff:o.refreshOff,scrollTop:e.unref(u),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:d[0]||(d[0]=(...N)=>e.unref(a).onScroll&&e.unref(a).onScroll(...N)),ref:e.unref(a).ref,class:"virtualList"},g.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(M))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:N,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:N,style:e.normalizeStyle({height:`${e.unref(c)(N).height}px`,display:"flex"})},[e.renderSlot(g.$slots,"default",{data:C,index:N},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),co="",$t=Q(Yt,[["__scopeId","data-v-e0fb787f"]]),ue=o=>(e.pushScopeId("data-v-c986249d"),o=o(),e.popScopeId(),o),Pt={style:{position:"absolute"}},Rt=ue(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Ht=["width","height"],Vt=[ue(()=>e.createElementVNode("title",null,"logo",-1)),ue(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Ft=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(o){const t=o;e.useCssVars(l=>({"5e400569":n}));const n=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Pt,[Rt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:o.width,height:o.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Vt,8,Ht))]))}}),fo="",Wt=Q(Ft,[["__scopeId","data-v-c986249d"]]);y.DefaultLoading=rt,y.Loading=Wt,y.LoadingToast=K,y.PullRefresh=Oe,y.ScrollBar=Lt,y.SvgIcon=It,y.ToastCreator=wt,y.VirtualList=$t,y.allSelectedKey=oe,y.closeDialogKey=Ce,y.dialogController=lt,y.isAllSelectedKey=ae,y.isSelectedKey=te,y.selectAllKey=le,y.selectKey=ne,y.toggleAllKey=q,y.toggleKey=ee,y.unselectAllKey=ie,y.unselectKey=se,y.useDelayAsync=yt,y.useDelayLoad=st,y.useDelayLoadComp=Le,y.useDragSelect=ce,y.useDragSelectByMobile=et,y.useDragSelectByPc=qe,y.useSelectable=Je,y.useSelectableInjectors=Xe,y.useVirtualList=je,y.vDebounceClick=xe,y.vSingleClick=fe,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.97",
3
+ "version": "0.0.99",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",