@lazycatcloud/lzc-toolkit 0.0.80 → 0.0.82

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
@@ -1,4 +1,33 @@
1
1
  import { ref as h, watch as K, customRef as st, getCurrentScope as at, onScopeDispose as rt, getCurrentInstance as Be, onMounted as le, nextTick as _e, unref as R, onUpdated as ut, readonly as it, shallowRef as ct, computed as b, onUnmounted as Ie, inject as j, provide as z, defineComponent as Y, h as Q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, withDirectives as Ae, createElementBlock as A, createElementVNode as L, withModifiers as Fe, normalizeClass as ke, renderSlot as ye, createCommentVNode as dt, useCssVars as ze, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as W, toDisplayString as We, useSlots as vt, vShow as ft, toRef as ht, Fragment as Ce, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
2
+ const _t = {
3
+ created(e, t) {
4
+ let n, o;
5
+ function l(s) {
6
+ n = s.clientX, o = s.clientY;
7
+ }
8
+ function a(s) {
9
+ if (n === void 0)
10
+ return;
11
+ const i = s.clientX, f = s.clientY, v = Math.abs(i - n), c = Math.abs(f - o);
12
+ v > 5 || c > 5 || t.value && t.value(s);
13
+ }
14
+ e.__mouse_down__ = l, e.__mouse_up__ = a, e.addEventListener("mousedown", l), e.addEventListener("mouseup", a);
15
+ },
16
+ unmounted(e) {
17
+ e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
18
+ }
19
+ }, Sn = {
20
+ created(e, t) {
21
+ const { fn: n, ms: o = 1500 } = t.value;
22
+ let l = null;
23
+ function a(s) {
24
+ l || (n(s), l = setTimeout(() => {
25
+ l = null;
26
+ }, o));
27
+ }
28
+ e.addEventListener("click", a);
29
+ }
30
+ };
2
31
  var Se;
3
32
  const we = typeof window < "u", xe = (e) => typeof e == "function";
4
33
  we && ((Se = window?.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
@@ -11,7 +40,7 @@ function Ye(e, t) {
11
40
  }
12
41
  return n;
13
42
  }
14
- function _t(e, t = {}) {
43
+ function yt(e, t = {}) {
15
44
  let n, o;
16
45
  return (a) => {
17
46
  const s = ie(e), i = ie(t.maxWait);
@@ -24,7 +53,7 @@ function _t(e, t = {}) {
24
53
  }, s);
25
54
  };
26
55
  }
27
- function yt(e, t = !0, n = !0) {
56
+ function wt(e, t = !0, n = !0) {
28
57
  let o = 0, l, a = !0;
29
58
  const s = () => {
30
59
  l && (clearTimeout(l), l = void 0);
@@ -38,10 +67,10 @@ function yt(e, t = !0, n = !0) {
38
67
  }, v)), !n && !l && (l = setTimeout(() => a = !0, v)), a = !1;
39
68
  };
40
69
  }
41
- function wt(e) {
70
+ function bt(e) {
42
71
  return e;
43
72
  }
44
- function bt(e, t) {
73
+ function Et(e, t) {
45
74
  let n, o, l;
46
75
  const a = h(!0), s = () => {
47
76
  a.value = !0, l();
@@ -61,10 +90,10 @@ function Ne(e) {
61
90
  return at() ? (rt(e), !0) : !1;
62
91
  }
63
92
  function Ve(e, t = 200, n = {}) {
64
- return Ye(_t(t, n), e);
93
+ return Ye(yt(t, n), e);
65
94
  }
66
95
  function Le(e, t = 200, n = !1, o = !0) {
67
- return Ye(yt(t, n, o), e);
96
+ return Ye(wt(t, n, o), e);
68
97
  }
69
98
  function je(e, t = !0) {
70
99
  Be() ? le(e) : t ? e() : _e(e);
@@ -74,31 +103,31 @@ function Ke(e) {
74
103
  const n = ie(e);
75
104
  return (t = n?.$el) != null ? t : n;
76
105
  }
77
- const Et = we ? window : void 0, Ct = we ? window.document : void 0;
78
- function St(e, t = !1) {
106
+ const Ct = we ? window : void 0, St = we ? window.document : void 0;
107
+ function xt(e, t = !1) {
79
108
  const n = h(), o = () => n.value = Boolean(e());
80
109
  return o(), je(o, t), n;
81
110
  }
82
111
  const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
83
112
  me[ge] = me[ge] || {};
84
113
  me[ge];
85
- function xt() {
86
- const e = Be(), t = bt(() => null, () => e.proxy.$el);
114
+ function Lt() {
115
+ const e = Be(), t = Et(() => null, () => e.proxy.$el);
87
116
  return ut(t.trigger), le(t.trigger), t;
88
117
  }
89
- var Te = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, Ot = (e, t) => {
118
+ var Te = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Dt = (e, t) => {
90
119
  var n = {};
91
120
  for (var o in e)
92
- Lt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
121
+ Tt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
93
122
  if (e != null && Te)
94
123
  for (var o of Te(e))
95
- t.indexOf(o) < 0 && Tt.call(e, o) && (n[o] = e[o]);
124
+ t.indexOf(o) < 0 && Ot.call(e, o) && (n[o] = e[o]);
96
125
  return n;
97
126
  };
98
127
  function $t(e, t, n = {}) {
99
- const o = n, { window: l = Et } = o, a = Ot(o, ["window"]);
128
+ const o = n, { window: l = Ct } = o, a = Dt(o, ["window"]);
100
129
  let s;
101
- const i = St(() => l && "ResizeObserver" in l), f = () => {
130
+ const i = xt(() => l && "ResizeObserver" in l), f = () => {
102
131
  s && (s.disconnect(), s = void 0);
103
132
  }, v = K(() => Ke(e), (d) => {
104
133
  f(), i.value && l && d && (s = new ResizeObserver(t), s.observe(d, a));
@@ -110,7 +139,7 @@ function $t(e, t, n = {}) {
110
139
  stop: c
111
140
  };
112
141
  }
113
- function Dt(e, t = { width: 0, height: 0 }, n = {}) {
142
+ function Rt(e, t = { width: 0, height: 0 }, n = {}) {
114
143
  const { box: o = "content-box" } = n, l = h(t.width), a = h(t.height);
115
144
  return $t(e, ([s]) => {
116
145
  const i = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
@@ -126,13 +155,13 @@ var Oe;
126
155
  (function(e) {
127
156
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
128
157
  })(Oe || (Oe = {}));
129
- let Rt = 0;
158
+ let Bt = 0;
130
159
  function Ue(e, t = {}) {
131
160
  const n = h(!1), {
132
- document: o = Ct,
161
+ document: o = St,
133
162
  immediate: l = !0,
134
163
  manual: a = !1,
135
- id: s = `vueuse_styletag_${++Rt}`
164
+ id: s = `vueuse_styletag_${++Bt}`
136
165
  } = t, i = h(e);
137
166
  let f = () => {
138
167
  };
@@ -154,15 +183,15 @@ function Ue(e, t = {}) {
154
183
  isLoaded: it(n)
155
184
  };
156
185
  }
157
- var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, n) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t) => {
186
+ var It = Object.defineProperty, De = Object.getOwnPropertySymbols, Mt = Object.prototype.hasOwnProperty, Pt = Object.prototype.propertyIsEnumerable, $e = (e, t, n) => t in e ? It(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t) => {
158
187
  for (var n in t || (t = {}))
159
- It.call(t, n) && De(e, n, t[n]);
160
- if ($e)
161
- for (var n of $e(t))
162
- Mt.call(t, n) && De(e, n, t[n]);
188
+ Mt.call(t, n) && $e(e, n, t[n]);
189
+ if (De)
190
+ for (var n of De(t))
191
+ Pt.call(t, n) && $e(e, n, t[n]);
163
192
  return e;
164
193
  };
165
- const Ht = {
194
+ const At = {
166
195
  easeInSine: [0.12, 0, 0.39, 0],
167
196
  easeOutSine: [0.61, 1, 0.88, 1],
168
197
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -188,11 +217,11 @@ const Ht = {
188
217
  easeOutBack: [0.34, 1.56, 0.64, 1],
189
218
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
190
219
  };
191
- Pt({
192
- linear: wt
193
- }, Ht);
194
- function At(e, t) {
195
- const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = Dt(a), i = h(!0), f = Ve(N, 100);
220
+ Ht({
221
+ linear: bt
222
+ }, At);
223
+ function Ft(e, t) {
224
+ const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = Rt(a), i = h(!0), f = Ve(N, 100);
196
225
  let v;
197
226
  const c = ct(e), d = h(0), u = h({ start: 0, end: 10 });
198
227
  let r = 0;
@@ -220,9 +249,9 @@ function At(e, t) {
220
249
  i.value = !0, n?.();
221
250
  }
222
251
  function U() {
223
- cancelAnimationFrame(v), v = requestAnimationFrame($);
252
+ cancelAnimationFrame(v), v = requestAnimationFrame(D);
224
253
  }
225
- function $() {
254
+ function D() {
226
255
  if (a.value) {
227
256
  d.value = a.value.scrollTop, r = O();
228
257
  let g = x(d.value), y = g + r + l;
@@ -262,7 +291,7 @@ function At(e, t) {
262
291
  function ee(g) {
263
292
  if (a.value) {
264
293
  const y = G(g);
265
- a.value.scrollTop = y.sum - y.height, $();
294
+ a.value.scrollTop = y.sum - y.height, D();
266
295
  }
267
296
  }
268
297
  const se = b(() => ({
@@ -301,7 +330,7 @@ function At(e, t) {
301
330
  };
302
331
  }
303
332
  const qe = Symbol(), Qe = Symbol(), Xe = Symbol(), Ge = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol();
304
- function Sn() {
333
+ function xn() {
305
334
  const { voidFn: e, boolFn: t, boolRef: n, arrayRef: o } = {
306
335
  voidFn: (r) => {
307
336
  },
@@ -321,7 +350,7 @@ function Sn() {
321
350
  unselectAll: u
322
351
  };
323
352
  }
324
- function xn(e, t) {
353
+ function Ln(e, t) {
325
354
  const n = h({}), o = b(() => e.value.filter((u) => n.value[u[t]])), l = b(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
326
355
  function a() {
327
356
  e.value.forEach((u) => {
@@ -397,11 +426,11 @@ function ot({
397
426
  width: Math.abs(r.value.x - p.value.x),
398
427
  height: Math.abs(r.value.y - p.value.y)
399
428
  } : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: N = 30, maxSpeed: U = 30 } = n;
400
- let $;
429
+ let D;
401
430
  const x = P, O = N, X = U, G = (m) => m ** 1;
402
431
  let k = 0;
403
432
  function ee(m) {
404
- if (cancelAnimationFrame($), k = se(m), k = Math.max(
433
+ if (cancelAnimationFrame(D), k = se(m), k = Math.max(
405
434
  Math.min(k, X),
406
435
  -X
407
436
  ), k !== 0) {
@@ -410,7 +439,7 @@ function ot({
410
439
  return;
411
440
  const I = w.value.height - C.value.height;
412
441
  let T = w.value.top + Number(k);
413
- T = Math.min(Math.max(0, T), I), _.scrollTop = T, te(), $ = requestAnimationFrame(() => ee(m));
442
+ T = Math.min(Math.max(0, T), I), _.scrollTop = T, te(), D = requestAnimationFrame(() => ee(m));
414
443
  }
415
444
  }
416
445
  function se(m) {
@@ -451,7 +480,7 @@ function ot({
451
480
  c.value = !0, u.value = !0, w.value.height ? w.value.sync() : w.value.sync(!0), r.value.x = m, r.value.y = _ + w.value.top, p.value.x = r.value.x, p.value.y = r.value.y, d.value?.classList.add("disable-scroll-behavior"), v.clear();
452
481
  }
453
482
  function F(m, _, I) {
454
- !u.value || (c.value && t === "colum" && !D() && (s(), c.value = !1), I?.(), ee(_), p.value.x = Math.max(m, C.value.left), p.value.y = Math.min(
483
+ !u.value || (c.value && t === "colum" && !$() && (s(), c.value = !1), I?.(), ee(_), p.value.x = Math.max(m, C.value.left), p.value.y = Math.min(
455
484
  _ + w.value.top,
456
485
  w.value.height + C.value.top
457
486
  ), p.value.scrollTop = w.value.top, f.value());
@@ -462,17 +491,17 @@ function ot({
462
491
  function B() {
463
492
  !u.value || (k || te(), f.value());
464
493
  }
465
- function D() {
494
+ function $() {
466
495
  if (!u.value)
467
496
  return !1;
468
497
  const { width: m, height: _ } = E.value;
469
498
  return !(Math.max(m, _) > 5);
470
499
  }
471
500
  function ne() {
472
- D() && s();
501
+ $() && s();
473
502
  }
474
503
  function q() {
475
- D() || d.value?.querySelectorAll(`[${e}]`).forEach((m) => {
504
+ $() || d.value?.querySelectorAll(`[${e}]`).forEach((m) => {
476
505
  i[`${e}`] = m.getAttribute(`${e}`), Z(m.getBoundingClientRect()) ? l([i]) : a([i]);
477
506
  });
478
507
  }
@@ -498,7 +527,7 @@ function ot({
498
527
  dragMove: F,
499
528
  dragEnd: H,
500
529
  onScroll: B,
501
- isSingleClick: D,
530
+ isSingleClick: $,
502
531
  cancelSelectAllBySingleClick: ne,
503
532
  selectFn: f,
504
533
  selectRange: E,
@@ -507,7 +536,7 @@ function ot({
507
536
  observer: S
508
537
  };
509
538
  }
510
- function Ln(e) {
539
+ function Tn(e) {
511
540
  const t = ot(e), { observer: n, selectRange: o } = t, {
512
541
  onScroll: l,
513
542
  dragStart: a,
@@ -560,7 +589,7 @@ function Ln(e) {
560
589
  }
561
590
  return { init: C, unMount: w };
562
591
  }
563
- function Tn(e, t, n = 600) {
592
+ function On(e, t, n = 600) {
564
593
  const o = ot({
565
594
  ...e,
566
595
  selectWay: "row",
@@ -603,24 +632,7 @@ function Tn(e, t, n = 600) {
603
632
  }
604
633
  return { init: p, unMount: S };
605
634
  }
606
- const Ft = Symbol(), kt = {
607
- created(e, t) {
608
- let n, o;
609
- function l(s) {
610
- n = s.clientX, o = s.clientY;
611
- }
612
- function a(s) {
613
- if (n === void 0)
614
- return;
615
- const i = s.clientX, f = s.clientY, v = Math.abs(i - n), c = Math.abs(f - o);
616
- v > 5 || c > 5 || t.value && t.value(s);
617
- }
618
- e.__mouse_down__ = l, e.__mouse_up__ = a, e.addEventListener("mousedown", l), e.addEventListener("mouseup", a);
619
- },
620
- unmounted(e) {
621
- e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
622
- }
623
- }, zt = {
635
+ const kt = Symbol(), zt = {
624
636
  key: 0,
625
637
  class: "lzc-modal"
626
638
  }, Wt = /* @__PURE__ */ Y({
@@ -635,7 +647,7 @@ const Ft = Symbol(), kt = {
635
647
  const n = e, o = () => {
636
648
  n.closeOnClickOverlay && t("update:visiable", !1);
637
649
  };
638
- return z(Ft, () => t("update:visiable", !1)), (l, a) => (M(), Me(Pe, { name: "modal" }, {
650
+ return z(kt, () => t("update:visiable", !1)), (l, a) => (M(), Me(Pe, { name: "modal" }, {
639
651
  default: He(() => [
640
652
  e.visiable ? Ae((M(), A("div", zt, [
641
653
  L("div", {
@@ -646,7 +658,7 @@ const Ft = Symbol(), kt = {
646
658
  ye(l.$slots, "default", {}, void 0, !0)
647
659
  ], 34)
648
660
  ])), [
649
- [R(kt), () => o()]
661
+ [R(_t), () => o()]
650
662
  ]) : dt("", !0)
651
663
  ]),
652
664
  _: 3
@@ -658,8 +670,8 @@ const J = (e, t) => {
658
670
  for (const [o, l] of t)
659
671
  n[o] = l;
660
672
  return n;
661
- }, Yt = /* @__PURE__ */ J(Wt, [["__scopeId", "data-v-d2c3dac0"]]);
662
- function On(e) {
673
+ }, Yt = /* @__PURE__ */ J(Wt, [["__scopeId", "data-v-4ff684af"]]);
674
+ function Dn(e) {
663
675
  function t(n, o) {
664
676
  const l = document.createElement("div"), a = {
665
677
  setup() {
@@ -704,7 +716,7 @@ function Nt({
704
716
  );
705
717
  return { LoadingComp: Y({
706
718
  setup() {
707
- const s = xt();
719
+ const s = Lt();
708
720
  return le(() => {
709
721
  l(), s.value.classList.add("lzc-delay-loading");
710
722
  }), () => Q(e, t);
@@ -746,7 +758,7 @@ const Vt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), jt = /* @__PURE__ *
746
758
  })), (t, n) => (M(), A("div", he(pe(t.$attrs)), Kt, 16));
747
759
  }
748
760
  });
749
- const Dn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ Y({
761
+ const Rn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ Y({
750
762
  __name: "Toast",
751
763
  props: {
752
764
  message: null,
@@ -806,7 +818,7 @@ const Xt = /* @__PURE__ */ J(Qt, [["__scopeId", "data-v-533e986b"]]), Re = {
806
818
  buttonClickEvent: () => {
807
819
  }
808
820
  };
809
- class Rn {
821
+ class Bn {
810
822
  options;
811
823
  container;
812
824
  constructor(t) {
@@ -831,7 +843,7 @@ class Rn {
831
843
  }
832
844
  }
833
845
  }
834
- const Gt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ Y({
846
+ const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ Y({
835
847
  __name: "SvgIcon",
836
848
  props: {
837
849
  name: null,
@@ -882,7 +894,7 @@ function Zt(e) {
882
894
  transform: `translate3d(0,${u.value}px,0)`,
883
895
  height: o ? `${N.value}px` : void 0
884
896
  }));
885
- function $(B) {
897
+ function D(B) {
886
898
  O(), d.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
887
899
  }
888
900
  function x() {
@@ -897,8 +909,8 @@ function Zt(e) {
897
909
  function G(B) {
898
910
  if (!S.value)
899
911
  return;
900
- let D = B.clientY - r.value.top - d.value;
901
- D < 0 ? u.value = 0 : D >= w.value ? u.value = w.value : u.value = D, t.value.scrollTo({
912
+ let $ = B.clientY - r.value.top - d.value;
913
+ $ < 0 ? u.value = 0 : $ >= w.value ? u.value = w.value : u.value = $, t.value.scrollTo({
902
914
  top: u.value / w.value * E.value
903
915
  });
904
916
  }
@@ -912,10 +924,10 @@ function Zt(e) {
912
924
  t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, u.value = c.value / E.value * w.value);
913
925
  }
914
926
  function Z(B) {
915
- let D = "addEventListener";
916
- B === "add" ? D = "addEventListener" : D = "removeEventListener", n.value?.[D]("pointerdown", $, {
927
+ let $ = "addEventListener";
928
+ B === "add" ? $ = "addEventListener" : $ = "removeEventListener", n.value?.[$]("pointerdown", D, {
917
929
  passive: !0
918
- }), window[D]("pointermove", G, { passive: !0 }), window[D]("pointerup", x, { passive: !0 });
930
+ }), window[$]("pointermove", G, { passive: !0 }), window[$]("pointerup", x, { passive: !0 });
919
931
  }
920
932
  const te = new MutationObserver((B) => {
921
933
  B.map((ne) => ne.oldValue).join().includes("height") && g();
@@ -928,13 +940,13 @@ function Zt(e) {
928
940
  p.value.clientHeight = n.value?.clientHeight ?? 0, X();
929
941
  }, 150);
930
942
  }
931
- function F(B, D, ne = "dynamic-styles") {
943
+ function F(B, $, ne = "dynamic-styles") {
932
944
  let q = document.getElementById(ne);
933
945
  q || (q = document.createElement("style"), q.id = ne, document.head.appendChild(q));
934
- const ae = q.sheet.cssRules, re = ae.length, m = `${B} { ${D} }`;
946
+ const ae = q.sheet.cssRules, re = ae.length, m = `${B} { ${$} }`;
935
947
  for (let _ = 0; _ < re; _++) {
936
948
  const I = ae[_];
937
- if (I.selectorText === B && I.style.cssText === D)
949
+ if (I.selectorText === B && I.style.cssText === $)
938
950
  return;
939
951
  }
940
952
  q.sheet.insertRule(m, re);
@@ -1015,7 +1027,7 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
1015
1027
  }));
1016
1028
  }
1017
1029
  });
1018
- const In = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) => (ce("data-v-18377f18"), e = e(), de(), e), on = { class: "pull-refresh" }, ln = {
1030
+ const Mn = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) => (ce("data-v-18377f18"), e = e(), de(), e), on = { class: "pull-refresh" }, ln = {
1019
1031
  key: 0,
1020
1032
  class: "pull-arrow-circle"
1021
1033
  }, sn = {
@@ -1051,31 +1063,31 @@ const In = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
1051
1063
  E.value = x.touches[0].pageY;
1052
1064
  }, N = (x) => {
1053
1065
  const O = x.touches[0].pageY - E.value;
1054
- E.value = x.touches[0].pageY, !t.refreshOff && (!t?.refresh || r.value !== 2 && S.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), d.value = 0, $.value.style.transition = `${d.value}ms`, u.value = 0, c.value = x.touches[0].pageY - v.value, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, O > 0 && x.preventDefault()));
1066
+ E.value = x.touches[0].pageY, !t.refreshOff && (!t?.refresh || r.value !== 2 && S.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), d.value = 0, D.value.style.transition = `${d.value}ms`, u.value = 0, c.value = x.touches[0].pageY - v.value, D.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, O > 0 && x.preventDefault()));
1055
1067
  }, U = () => {
1056
1068
  if (t.refreshOff || !t?.refresh || r.value === 2)
1057
1069
  return;
1058
1070
  v.value = 0, d.value = 300;
1059
1071
  const x = Math.pow(c.value, n);
1060
- $.value.style.transition = `${d.value}ms`, x > 50 ? (r.value = 2, c.value = Math.pow(50, 1 / n), $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
1072
+ D.value.style.transition = `${d.value}ms`, x > 50 ? (r.value = 2, c.value = Math.pow(50, 1 / n), D.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
1061
1073
  p.value = "\u5237\u65B0\u6210\u529F";
1062
1074
  }).catch(() => {
1063
1075
  p.value = "\u5237\u65B0\u5931\u8D25";
1064
1076
  }).finally(() => {
1065
1077
  setTimeout(() => {
1066
- r.value = 0, c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
1078
+ r.value = 0, c.value = 0, D.value.style.transform = `translate3d(0, ${Math.pow(
1067
1079
  c.value,
1068
1080
  n
1069
1081
  )}px, 0)`, setTimeout(() => {
1070
1082
  p.value = void 0;
1071
1083
  }, u.value);
1072
1084
  }, 600);
1073
- })) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
1074
- }, $ = h(null);
1085
+ })) : (c.value = 0, D.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
1086
+ }, D = h(null);
1075
1087
  return le(() => {
1076
- t?.refreshOff || ($.value = document.querySelector(
1088
+ t?.refreshOff || (D.value = document.querySelector(
1077
1089
  t.pullRefreshContainer
1078
- ), $.value?.addEventListener("touchstart", P), $.value?.addEventListener("touchmove", N), $.value?.addEventListener("touchend", U));
1090
+ ), D.value?.addEventListener("touchstart", P), D.value?.addEventListener("touchmove", N), D.value?.addEventListener("touchend", U));
1079
1091
  }), (x, O) => (M(), A("div", on, [
1080
1092
  L("div", {
1081
1093
  class: "pull-refresh-box",
@@ -1127,7 +1139,7 @@ const fn = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1127
1139
  },
1128
1140
  emits: ["scrollEnd"],
1129
1141
  setup(e, { expose: t, emit: n }) {
1130
- const o = e, l = At(ht(o, "data"), {
1142
+ const o = e, l = Ft(ht(o, "data"), {
1131
1143
  itemHeight: (u) => o.itemHeight(o.data[u]),
1132
1144
  overscan: o.overscan,
1133
1145
  scrollEndHook: () => {
@@ -1182,7 +1194,7 @@ const fn = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1182
1194
  ], 64));
1183
1195
  }
1184
1196
  });
1185
- const Mn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("title", null, "logo", -1)), wn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("g", {
1197
+ const Pn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("title", null, "logo", -1)), wn = /* @__PURE__ */ be(() => /* @__PURE__ */ L("g", {
1186
1198
  id: "group-1",
1187
1199
  stroke: "none",
1188
1200
  "stroke-width": "1",
@@ -1223,18 +1235,18 @@ const Mn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
1223
1235
  ]));
1224
1236
  }
1225
1237
  });
1226
- const Pn = /* @__PURE__ */ J(En, [["__scopeId", "data-v-40e00f20"]]);
1238
+ const Hn = /* @__PURE__ */ J(En, [["__scopeId", "data-v-40e00f20"]]);
1227
1239
  export {
1228
- Dn as DefaultLoading,
1229
- Pn as Loading,
1240
+ Rn as DefaultLoading,
1241
+ Hn as Loading,
1230
1242
  fn as PullRefresh,
1231
- In as ScrollBar,
1232
- Bn as SvgIcon,
1233
- Rn as ToastCreator,
1234
- Mn as VirtualList,
1243
+ Mn as ScrollBar,
1244
+ In as SvgIcon,
1245
+ Bn as ToastCreator,
1246
+ Pn as VirtualList,
1235
1247
  Ge as allSelectedKey,
1236
- Ft as closeDialogKey,
1237
- On as dialogController,
1248
+ kt as closeDialogKey,
1249
+ Dn as dialogController,
1238
1250
  tt as isAllSelectedKey,
1239
1251
  Xe as isSelectedKey,
1240
1252
  Je as selectAllKey,
@@ -1246,9 +1258,11 @@ export {
1246
1258
  $n as useDelayLoad,
1247
1259
  Nt as useDelayLoadComp,
1248
1260
  ot as useDragSelect,
1249
- Tn as useDragSelectByMobile,
1250
- Ln as useDragSelectByPc,
1251
- xn as useSelectable,
1252
- Sn as useSelectableInjectors,
1253
- At as useVirtualList
1261
+ On as useDragSelectByMobile,
1262
+ Tn as useDragSelectByPc,
1263
+ Ln as useSelectable,
1264
+ xn as useSelectableInjectors,
1265
+ Ft as useVirtualList,
1266
+ Sn as vDebounceClick,
1267
+ _t as vSingleClick
1254
1268
  };
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";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function Ie(t,n={}){let o,l;return s=>{const a=Q(t),u=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Me(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(t),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function ke(t){return t}function Pe(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function _e(t,n=200,o={}){return ge(Ie(n,o),t)}function ye(t,n=200,o=!1,l=!0){return ge(Me(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function we(t){var n;const o=Q(t);return(n=o?.$el)!=null?n:o}const Ae=Z?window:void 0,He=Z?window.document:void 0;function Fe(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function Ve(){const t=e.getCurrentInstance(),n=Pe(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,je=(t,n)=>{var o={};for(var l in t)Ne.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&Se)for(var l of Se(t))n.indexOf(l)<0&&ze.call(t,l)&&(o[l]=t[l]);return o};function Ke(t,n,o={}){const l=o,{window:r=Ae}=l,s=je(l,["window"]);let a;const u=Fe(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>we(t),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return ve(d),{isSupported:u,stop:d}}function We(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return Ke(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>we(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ye=0;function Ce(t,n={}){const o=e.ref(!1),{document:l=He,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ye}`}=n,u=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,n.media&&(f.media=n.media),l.head.appendChild(f),!o.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(p),s||ve(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Te=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Le=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Xe=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Le(t,o,n[o]);if(Te)for(var o of Te(n))Qe.call(n,o)&&Le(t,o,n[o]);return t};Xe({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 xe(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=We(s),u=e.ref(!0),h=_e(P,100);let p;const d=e.shallowRef(t),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((M,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),w=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),S=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function P(){u.value=!0,o?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(B)}function B(){if(s.value){f.value=s.value.scrollTop,i=x();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((M,I)=>({data:M,index:I+v}))}}function T(v){let E=0,M=C.value.length-1,I=-1;for(;E<=M;){const $=Math.floor((E+M)/2);C.value[$].sum>=v?(I=$,M=$-1):E=$+1}return Math.max(0,I)}function x(){let v=0,E=0,M=k();for(let I=M;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.value[v]||{sum:0,height:0}}function k(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const E=z(v);s.value.scrollTop=E.sum-E.height,B()}}const q=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:S,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:w,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},style:W},wrapperProps:q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Ge(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:c}}function Ze(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(c){return!!o.value[c[n]]}function d(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(ne,d),e.provide(oe,p),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:d,toggleAll:f,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>ye(n==="colum"?F:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),w=e.ref({top:0,height:0,sync(g=!1){w.value.top=f.value?.scrollTop||0,g&&(w.value.height=f.value?.scrollHeight||0)}}),S=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:P=30,maxSpeed:H=30}=o;let B;const T=R,x=P,N=H,z=g=>g**1;let k=0;function K(g){if(cancelAnimationFrame(B),k=q(g),k=Math.max(Math.min(k,N),-N),k!==0){const _=f.value;if(!_||!c.value)return;const O=w.value.height-b.value.height;let L=w.value.top+Number(k);L=Math.min(Math.max(0,L),O),_.scrollTop=L,W(),B=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const O=b.value,L=O.bottom-g;if(L<T)return x*z(1-L/T);const A=g-O.top;if(A<T)return-x*z(1-A/T)}return 0}function j(g){const _={...S.value,right:0,bottom:0};return _.left+=b.value.left,_.top+=b.value.top-w.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<g.right&&_.right>g.left&&_.top<g.bottom&&_.bottom>g.top}function W(){w.value.sync();const{top:g,height:_}=w.value;m.value.y=Math.min(_+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,_,O="dynamic-styles"){let L=document.getElementById(O);L||(L=document.createElement("style"),L.id=O,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Ft=`${g} { ${_} }`;for(let pe=0;pe<U;pe++){const Re=A[pe];if(Re.selectorText===g&&Re.style.cssText===_)return}L.sheet.insertRule(Ft,U)}function E(g,_){d.value=!0,c.value=!0,w.value.height?w.value.sync():w.value.sync(!0),i.value.x=g,i.value.y=_+w.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function M(g,_,O){!c.value||(d.value&&n==="colum"&&!D()&&(a(),d.value=!1),O?.(),K(_),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(_+w.value.top,w.value.height+b.value.top),m.value.scrollTop=w.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function $(){!c.value||(k||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:_}=S.value;return!(Math.max(g,_)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${t}]`).forEach(g=>{u[`${t}`]=g.getAttribute(`${t}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function X(){const g=[];let _=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);g.push(U),j(L.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=U,p.has(U)&&s([u]))});for(let L=_;L<O+1;L++)u[`${t}`]=g[L],r([u]),p.add(g[L])}function G(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:E,dragMove:M,dragEnd:I,onScroll:$,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:S,isPressing:c,containerEl:f,observer:C}}function Je(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d,unload:f}=Ce(`.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 he={created(t,n){let o,l;function r(a){o=a.clientX,l=a.clientY}function s(a){if(o===void 0)return;const u=a.clientX,h=a.clientY,p=Math.abs(u-o),d=Math.abs(h-l);p>5||d>5||n.value&&n.value(a)}t.__mouse_down__=r,t.__mouse_up__=s,t.addEventListener("mousedown",r),t.addEventListener("mouseup",s)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},ke={created(t,n){const{fn:o,ms:l=1500}=n.value;let r=null;function s(a){r||(o(a),r=setTimeout(()=>{r=null},l))}t.addEventListener("click",s)}};var me;const Z=typeof window<"u",ge=t=>typeof t=="function";Z&&((me=window?.navigator)==null?void 0:me.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(t){return typeof t=="function"?t():e.unref(t)}function ve(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function Me(t,n={}){let o,l;return s=>{const a=Q(t),u=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Pe(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(t),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Ae(t){return t}function He(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=ge(n)?n:n.get,h=ge(n)?void 0:n.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function _e(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ve(Me(n,o),t)}function Ee(t,n=200,o=!1,l=!0){return ve(Pe(n,o,l),t)}function we(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Q(t);return(n=o?.$el)!=null?n:o}const Fe=Z?window:void 0,Ve=Z?window.document:void 0;function Ne(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),we(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function ze(){const t=e.getCurrentInstance(),n=He(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var be=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,We=(t,n)=>{var o={};for(var l in t)je.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&be)for(var l of be(t))n.indexOf(l)<0&&Ke.call(t,l)&&(o[l]=t[l]);return o};function Ye(t,n,o={}){const l=o,{window:r=Fe}=l,s=We(l,["window"]);let a;const u=Ne(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return _e(d),{isSupported:u,stop:d}}function Ue(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return Ye(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var Ce;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Ce||(Ce={}));let qe=0;function Te(t,n={}){const o=e.ref(!1),{document:l=Ve,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++qe}`}=n,u=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,n.media&&(f.media=n.media),l.head.appendChild(f),!o.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&we(p),s||_e(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(o)}}var Qe=Object.defineProperty,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Be=(t,n,o)=>n in t?Qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ze=(t,n)=>{for(var o in n||(n={}))Xe.call(n,o)&&Be(t,o,n[o]);if(Le)for(var o of Le(n))Ge.call(n,o)&&Be(t,o,n[o]);return t};Ze({linear:Ae},{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 xe(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=Ue(s),u=e.ref(!0),h=ye(P,100);let p;const d=e.shallowRef(t),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((k,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),w=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),S=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function P(){u.value=!0,o?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(x)}function x(){if(s.value){f.value=s.value.scrollTop,i=B();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((k,I)=>({data:k,index:I+v}))}}function T(v){let E=0,k=C.value.length-1,I=-1;for(;E<=k;){const $=Math.floor((E+k)/2);C.value[$].sum>=v?(I=$,k=$-1):E=$+1}return Math.max(0,I)}function B(){let v=0,E=0,k=M();for(let I=k;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.value[v]||{sum:0,height:0}}function M(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const E=z(v);s.value.scrollTop=E.sum-E.height,x()}}const q=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:S,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:w,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},style:W},wrapperProps:q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Je(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:c}}function et(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(c){return!!o.value[c[n]]}function d(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(ne,d),e.provide(oe,p),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:d,toggleAll:f,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>Ee(n==="colum"?F:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),w=e.ref({top:0,height:0,sync(g=!1){w.value.top=f.value?.scrollTop||0,g&&(w.value.height=f.value?.scrollHeight||0)}}),S=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:P=30,maxSpeed:H=30}=o;let x;const T=R,B=P,N=H,z=g=>g**1;let M=0;function K(g){if(cancelAnimationFrame(x),M=q(g),M=Math.max(Math.min(M,N),-N),M!==0){const _=f.value;if(!_||!c.value)return;const O=w.value.height-b.value.height;let L=w.value.top+Number(M);L=Math.min(Math.max(0,L),O),_.scrollTop=L,W(),x=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const O=b.value,L=O.bottom-g;if(L<T)return B*z(1-L/T);const A=g-O.top;if(A<T)return-B*z(1-A/T)}return 0}function j(g){const _={...S.value,right:0,bottom:0};return _.left+=b.value.left,_.top+=b.value.top-w.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<g.right&&_.right>g.left&&_.top<g.bottom&&_.bottom>g.top}function W(){w.value.sync();const{top:g,height:_}=w.value;m.value.y=Math.min(_+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,_,O="dynamic-styles"){let L=document.getElementById(O);L||(L=document.createElement("style"),L.id=O,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Vt=`${g} { ${_} }`;for(let pe=0;pe<U;pe++){const Ie=A[pe];if(Ie.selectorText===g&&Ie.style.cssText===_)return}L.sheet.insertRule(Vt,U)}function E(g,_){d.value=!0,c.value=!0,w.value.height?w.value.sync():w.value.sync(!0),i.value.x=g,i.value.y=_+w.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function k(g,_,O){!c.value||(d.value&&n==="colum"&&!D()&&(a(),d.value=!1),O?.(),K(_),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(_+w.value.top,w.value.height+b.value.top),m.value.scrollTop=w.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function $(){!c.value||(M||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:_}=S.value;return!(Math.max(g,_)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${t}]`).forEach(g=>{u[`${t}`]=g.getAttribute(`${t}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function X(){const g=[];let _=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);g.push(U),j(L.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=U,p.has(U)&&s([u]))});for(let L=_;L<O+1;L++)u[`${t}`]=g[L],r([u]),p.add(g[L])}function G(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:E,dragMove:k,dragEnd:I,onScroll:$,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:S,isPressing:c,containerEl:f,observer:C}}function tt(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d,unload:f}=Te(`.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
- }`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(S){S.button===0&&s(S.x,S.y)}function m(S){a(S.x,S.y)}function C(S){S.composedPath().some(P=>P?.getAttribute?.(t.attribute))||h(),u()}function b(S){try{if(!n.init(S))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",m),window.addEventListener("mouseup",C)}catch(R){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",R)}}function w(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",C)}return{init:b,unMount:w}}function et(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(b){d(),b.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:R}=b.targetTouches[0];a(S,R),n?.(),u(S,R,()=>b.preventDefault()),b.preventDefault()},o))}function c(b){d();const{clientX:w,clientY:S}=b.targetTouches[0];u(w,S,()=>b.preventDefault())}function i(){d(),h()}function m(b){try{if(!l.init(b))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function C(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:m,unMount:C}}const Be=Symbol(),tt={created(t,n){let o,l;function r(a){o=a.clientX,l=a.clientY}function s(a){if(o===void 0)return;const u=a.clientX,h=a.clientY,p=Math.abs(u-o),d=Math.abs(h-l);p>5||d>5||n.value&&n.value(a)}t.__mouse_down__=r,t.__mouse_up__=s,t.addEventListener("mousedown",r),t.addEventListener("mouseup",s)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},nt={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(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(tt),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Nt="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},lt=V(ot,[["__scopeId","data-v-d2c3dac0"]]);function rt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(lt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function De({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Ce(`@keyframes lzcDelayLoad {
6
+ }`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(S){S.button===0&&s(S.x,S.y)}function m(S){a(S.x,S.y)}function C(S){S.composedPath().some(P=>P?.getAttribute?.(t.attribute))||h(),u()}function b(S){try{if(!n.init(S))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",m),window.addEventListener("mouseup",C)}catch(R){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",R)}}function w(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",C)}return{init:b,unMount:w}}function nt(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(b){d(),b.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:R}=b.targetTouches[0];a(S,R),n?.(),u(S,R,()=>b.preventDefault()),b.preventDefault()},o))}function c(b){d();const{clientX:w,clientY:S}=b.targetTouches[0];u(w,S,()=>b.preventDefault())}function i(){d(),h()}function m(b){try{if(!l.init(b))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function C(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:m,unMount:C}}const De=Symbol(),ot={key:0,class:"lzc-modal"},lt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(De,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(he),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},rt=V(lt,[["__scopeId","data-v-4ff684af"]]);function at(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(rt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function $e({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Te(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,4 +11,4 @@
11
11
  .lzc-delay-loading {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${l} forwards;
14
- }`);return{LoadingComp:e.defineComponent({setup(){const a=Ve();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function at({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=De({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const st=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],it=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),st,16))}}),Kt="",ct=V(it,[["__scopeId","data-v-d0ad7597"]]),ut=["onClick"],dt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.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(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function h(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,ut))}}),Wt="",ft=V(dt,[["__scopeId","data-v-533e986b"]]),$e={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class pt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ft),{...$e,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||$e.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const ht=["xlink:href","fill","color"],mt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,ht)],4))}});function gt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=_e(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),w=e.computed(()=>i.value.clientHeight-m.value.clientHeight),S=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${P.value}px`:void 0}));function B($){x(),f.value=$.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function T(){n.value.style.scrollBehavior=p,f.value=0,u()}function x(){a.value=!1}function N(){C.value||(a.value=!0)}function z($){if(!C.value)return;let D=$.clientY-i.value.top-f.value;D<0?c.value=0:D>=w.value?c.value=w.value:c.value=D,n.value.scrollTo({top:c.value/w.value*S.value})}function k(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,c.value=d.value/S.value*w.value)}function j($){let D="addEventListener";$==="add"?D="addEventListener":D="removeEventListener",o.value?.[D]("pointerdown",B,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver($=>{$.map(Y=>Y.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function E(){x(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,N()},150)}function M($,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const X=F.sheet.cssRules,G=X.length,g=`${$} { ${D} }`;for(let _=0;_<G;_++){const O=X[_];if(O.selectorText===$&&O.style.cssText===D)return}F.sheet.insertRule(g,G)}function I(){n.value&&o.value?(M(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),M(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",k,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{x(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const vt=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),_t=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=gt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(m,C)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(m.$slots,"default",{},()=>[vt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),Ut="",yt=V(_t,[["__scopeId","data-v-edec7292"]]),Et=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),wt={class:"pull-refresh"},St={key:0,class:"pull-arrow-circle"},bt={key:0,class:"box-load"},Ct={class:"left-load"},Tt={class:"right-load"},Lt=Et(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),xt={class:"pull-arrow"},Bt={key:1},Dt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const x=Math.pow(T,o);x===0&&(r.value=-50),x<=50&&x>0&&(r.value=x-45,a.value=Math.pow(x,1.5),x>15?h.value=!0:h.value=!1),x>50&&(r.value=5,u.value=1,i.value)});const S=e.ref(0),R=T=>{S.value=T.touches[0].pageY},P=T=>{const x=T.touches[0].pageY-S.value;S.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,B.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,x>0&&T.preventDefault()))},H=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,o);B.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/o),B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,B.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},B=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(B.value=document.querySelector(n.pullRefreshContainer),B.value?.addEventListener("touchstart",R),B.value?.addEventListener("touchmove",P),B.value?.addEventListener("touchend",H))}),(T,x)=>(e.openBlock(),e.createElementBlock("div",wt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Bt,e.toDisplayString(m.value),1)):(e.openBlock(),e.createElementBlock("div",St,[i.value==2?(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Lt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",xt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),qt="",Oe=V(Dt,[["__scopeId","data-v-18377f18"]]),$t={inheritAttrs:!1},Ot=e.defineComponent({...$t,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=xe(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Qt="",Rt=V(Ot,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),It={style:{position:"absolute"}},Mt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),kt=["width","height"],Pt=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>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))],At=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",It,[Mt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Pt,8,kt))]))}}),Zt="",Ht=V(At,[["__scopeId","data-v-40e00f20"]]);y.DefaultLoading=ct,y.Loading=Ht,y.PullRefresh=Oe,y.ScrollBar=yt,y.SvgIcon=mt,y.ToastCreator=pt,y.VirtualList=Rt,y.allSelectedKey=le,y.closeDialogKey=Be,y.dialogController=rt,y.isAllSelectedKey=ie,y.isSelectedKey=oe,y.selectAllKey=ae,y.selectKey=re,y.toggleAllKey=te,y.toggleKey=ne,y.unselectAllKey=ce,y.unselectKey=se,y.useDelayLoad=at,y.useDelayLoadComp=De,y.useDragSelect=de,y.useDragSelectByMobile=et,y.useDragSelectByPc=Je,y.useSelectable=Ze,y.useSelectableInjectors=Ge,y.useVirtualList=xe,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
14
+ }`);return{LoadingComp:e.defineComponent({setup(){const a=ze();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function st({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=$e({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const it=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ct=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),it,16))}}),Wt="",ut=V(ct,[["__scopeId","data-v-d0ad7597"]]),dt=["onClick"],ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.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(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function h(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,dt))}}),Yt="",pt=V(ft,[["__scopeId","data-v-533e986b"]]),Oe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class ht{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(pt),{...Oe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Oe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const mt=["xlink:href","fill","color"],gt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,mt)],4))}});function vt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),w=e.computed(()=>i.value.clientHeight-m.value.clientHeight),S=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${P.value}px`:void 0}));function x($){B(),f.value=$.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function T(){n.value.style.scrollBehavior=p,f.value=0,u()}function B(){a.value=!1}function N(){C.value||(a.value=!0)}function z($){if(!C.value)return;let D=$.clientY-i.value.top-f.value;D<0?c.value=0:D>=w.value?c.value=w.value:c.value=D,n.value.scrollTo({top:c.value/w.value*S.value})}function M(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,c.value=d.value/S.value*w.value)}function j($){let D="addEventListener";$==="add"?D="addEventListener":D="removeEventListener",o.value?.[D]("pointerdown",x,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver($=>{$.map(Y=>Y.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function E(){B(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,N()},150)}function k($,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const X=F.sheet.cssRules,G=X.length,g=`${$} { ${D} }`;for(let _=0;_<G;_++){const O=X[_];if(O.selectorText===$&&O.style.cssText===D)return}F.sheet.insertRule(g,G)}function I(){n.value&&o.value?(k(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),k(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",M,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const _t=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),yt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=vt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(m,C)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(m.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),qt="",Et=V(yt,[["__scopeId","data-v-edec7292"]]),wt=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),St={class:"pull-refresh"},bt={key:0,class:"pull-arrow-circle"},Ct={key:0,class:"box-load"},Tt={class:"left-load"},Lt={class:"right-load"},Bt=wt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),xt={class:"pull-arrow"},Dt={key:1},$t=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const B=Math.pow(T,o);B===0&&(r.value=-50),B<=50&&B>0&&(r.value=B-45,a.value=Math.pow(B,1.5),B>15?h.value=!0:h.value=!1),B>50&&(r.value=5,u.value=1,i.value)});const S=e.ref(0),R=T=>{S.value=T.touches[0].pageY},P=T=>{const B=T.touches[0].pageY-S.value;S.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,x.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,B>0&&T.preventDefault()))},H=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,o);x.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",R),x.value?.addEventListener("touchmove",P),x.value?.addEventListener("touchend",H))}),(T,B)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(m.value),1)):(e.openBlock(),e.createElementBlock("div",bt,[i.value==2?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",xt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Qt="",Re=V($t,[["__scopeId","data-v-18377f18"]]),Ot={inheritAttrs:!1},Rt=e.defineComponent({...Ot,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=xe(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",It=V(Rt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),kt={style:{position:"absolute"}},Mt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Pt=["width","height"],At=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>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))],Ht=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",kt,[Mt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},At,8,Pt))]))}}),Jt="",Ft=V(Ht,[["__scopeId","data-v-40e00f20"]]);y.DefaultLoading=ut,y.Loading=Ft,y.PullRefresh=Re,y.ScrollBar=Et,y.SvgIcon=gt,y.ToastCreator=ht,y.VirtualList=It,y.allSelectedKey=le,y.closeDialogKey=De,y.dialogController=at,y.isAllSelectedKey=ie,y.isSelectedKey=oe,y.selectAllKey=ae,y.selectKey=re,y.toggleAllKey=te,y.toggleKey=ne,y.unselectAllKey=ce,y.unselectKey=se,y.useDelayLoad=st,y.useDelayLoadComp=$e,y.useDragSelect=de,y.useDragSelectByMobile=nt,y.useDragSelectByPc=tt,y.useSelectable=et,y.useSelectableInjectors=Je,y.useVirtualList=xe,y.vDebounceClick=ke,y.vSingleClick=he,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-d2c3dac0]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-d2c3dac0]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-40e00f20 var(--703ef503) linear infinite}
1
+ .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-d0ad7597]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-d0ad7597]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--d8dfa9f0);height:var(--2941c2e5);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-d0ad7597 .7s linear infinite}@keyframes ldio-mm5gwljcryb-d0ad7597{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-d0ad7597]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-40e00f20 var(--703ef503) linear infinite}
@@ -0,0 +1,6 @@
1
+ import type { Directive } from "vue";
2
+ export declare const vSingleClick: Directive<HTMLElement, (event: MouseEvent) => any>;
3
+ export declare const vDebounceClick: Directive<HTMLElement, {
4
+ fn: Function;
5
+ ms?: number;
6
+ }>;
@@ -1,3 +1,4 @@
1
+ export * from "./directive";
1
2
  export * from "./useVirtualList";
2
3
  export * from "./useSelectable";
3
4
  export * from "./useDragSelect";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,4 +0,0 @@
1
- export declare const vSingleClick: {
2
- created(el: HTMLElement, binding: any): void;
3
- unmounted(el: HTMLElement): void;
4
- };