@lazycatcloud/lzc-toolkit 0.0.84 → 0.0.87

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,5 +1,5 @@
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 B, onUpdated as ut, readonly as it, shallowRef as ct, computed as b, onUnmounted as Ie, inject as V, provide as W, defineComponent as N, h as q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, withDirectives as Ae, createElementBlock as F, createElementVNode as x, 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 Y, 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 = {
1
+ import { ref as h, watch as K, customRef as at, getCurrentScope as rt, onScopeDispose as ut, getCurrentInstance as Ie, onMounted as le, nextTick as _e, unref as B, onUpdated as it, readonly as ct, shallowRef as dt, computed as b, onUnmounted as Me, inject as V, provide as W, defineComponent as N, h as q, render as ue, openBlock as I, createBlock as ye, Transition as Pe, withCtx as He, withDirectives as Ae, createElementBlock as F, createElementVNode as x, withModifiers as Fe, normalizeClass as ke, renderSlot as we, createCommentVNode as ze, useCssVars as We, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as Y, toDisplayString as Ye, useSlots as vt, vShow as ft, toRef as ht, Fragment as Se, mergeProps as pt, renderList as mt } from "vue";
2
+ const gt = {
3
3
  created(e, t) {
4
4
  let n, o;
5
5
  function l(s) {
@@ -16,7 +16,7 @@ const _t = {
16
16
  unmounted(e) {
17
17
  e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
18
18
  }
19
- }, Sn = {
19
+ }, Cn = {
20
20
  created(e, t) {
21
21
  const { fn: n, ms: o = 1500 } = t.value;
22
22
  let l = null;
@@ -28,19 +28,19 @@ const _t = {
28
28
  e.addEventListener("click", a);
29
29
  }
30
30
  };
31
- var Se;
32
- const we = typeof window < "u", xe = (e) => typeof e == "function";
33
- we && ((Se = window?.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
31
+ var xe;
32
+ const be = typeof window < "u", Le = (e) => typeof e == "function";
33
+ be && ((xe = window?.navigator) == null ? void 0 : xe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
34
34
  function ie(e) {
35
35
  return typeof e == "function" ? e() : B(e);
36
36
  }
37
- function Ye(e, t) {
37
+ function Ne(e, t) {
38
38
  function n(...o) {
39
39
  e(() => t.apply(this, o), { fn: t, thisArg: this, args: o });
40
40
  }
41
41
  return n;
42
42
  }
43
- function yt(e, t = {}) {
43
+ function _t(e, t = {}) {
44
44
  let n, o;
45
45
  return (a) => {
46
46
  const s = ie(e), u = ie(t.maxWait);
@@ -53,7 +53,7 @@ function yt(e, t = {}) {
53
53
  }, s);
54
54
  };
55
55
  }
56
- function wt(e, t = !0, n = !0) {
56
+ function yt(e, t = !0, n = !0) {
57
57
  let o = 0, l, a = !0;
58
58
  const s = () => {
59
59
  l && (clearTimeout(l), l = void 0);
@@ -67,16 +67,16 @@ function wt(e, t = !0, n = !0) {
67
67
  }, v)), !n && !l && (l = setTimeout(() => a = !0, v)), a = !1;
68
68
  };
69
69
  }
70
- function bt(e) {
70
+ function wt(e) {
71
71
  return e;
72
72
  }
73
- function Et(e, t) {
73
+ function bt(e, t) {
74
74
  let n, o, l;
75
75
  const a = h(!0), s = () => {
76
76
  a.value = !0, l();
77
77
  };
78
78
  K(e, s, { flush: "sync" });
79
- const u = xe(t) ? t : t.get, f = xe(t) ? void 0 : t.set, v = st((c, d) => (o = c, l = d, {
79
+ const u = Le(t) ? t : t.get, f = Le(t) ? void 0 : t.set, v = at((c, d) => (o = c, l = d, {
80
80
  get() {
81
81
  return a.value && (n = u(), a.value = !1), o(), n;
82
82
  },
@@ -86,82 +86,82 @@ function Et(e, t) {
86
86
  }));
87
87
  return Object.isExtensible(v) && (v.trigger = s), v;
88
88
  }
89
- function Ne(e) {
90
- return at() ? (rt(e), !0) : !1;
89
+ function je(e) {
90
+ return rt() ? (ut(e), !0) : !1;
91
91
  }
92
- function je(e, t = 200, n = {}) {
93
- return Ye(yt(t, n), e);
92
+ function Ve(e, t = 200, n = {}) {
93
+ return Ne(_t(t, n), e);
94
94
  }
95
- function Le(e, t = 200, n = !1, o = !0) {
96
- return Ye(wt(t, n, o), e);
95
+ function Te(e, t = 200, n = !1, o = !0) {
96
+ return Ne(yt(t, n, o), e);
97
97
  }
98
- function Ve(e, t = !0) {
99
- Be() ? le(e) : t ? e() : _e(e);
98
+ function Ke(e, t = !0) {
99
+ Ie() ? le(e) : t ? e() : _e(e);
100
100
  }
101
- function Ke(e) {
101
+ function Ue(e) {
102
102
  var t;
103
103
  const n = ie(e);
104
104
  return (t = n?.$el) != null ? t : n;
105
105
  }
106
- const Ct = we ? window : void 0, St = we ? window.document : void 0;
107
- function xt(e, t = !1) {
106
+ const Et = be ? window : void 0, Ct = be ? window.document : void 0;
107
+ function St(e, t = !1) {
108
108
  const n = h(), o = () => n.value = Boolean(e());
109
- return o(), Ve(o, t), n;
109
+ return o(), Ke(o, t), n;
110
110
  }
111
111
  const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
112
112
  me[ge] = me[ge] || {};
113
113
  me[ge];
114
- function Lt() {
115
- const e = Be(), t = Et(() => null, () => e.proxy.$el);
116
- return ut(t.trigger), le(t.trigger), t;
114
+ function xt() {
115
+ const e = Ie(), t = bt(() => null, () => e.proxy.$el);
116
+ return it(t.trigger), le(t.trigger), t;
117
117
  }
118
- var Te = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Dt = (e, t) => {
118
+ var Oe = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, Ot = (e, t) => {
119
119
  var n = {};
120
120
  for (var o in e)
121
- Tt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
122
- if (e != null && Te)
123
- for (var o of Te(e))
124
- t.indexOf(o) < 0 && Ot.call(e, o) && (n[o] = e[o]);
121
+ Lt.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
122
+ if (e != null && Oe)
123
+ for (var o of Oe(e))
124
+ t.indexOf(o) < 0 && Tt.call(e, o) && (n[o] = e[o]);
125
125
  return n;
126
126
  };
127
- function $t(e, t, n = {}) {
128
- const o = n, { window: l = Ct } = o, a = Dt(o, ["window"]);
127
+ function Dt(e, t, n = {}) {
128
+ const o = n, { window: l = Et } = o, a = Ot(o, ["window"]);
129
129
  let s;
130
- const u = xt(() => l && "ResizeObserver" in l), f = () => {
130
+ const u = St(() => l && "ResizeObserver" in l), f = () => {
131
131
  s && (s.disconnect(), s = void 0);
132
- }, v = K(() => Ke(e), (d) => {
132
+ }, v = K(() => Ue(e), (d) => {
133
133
  f(), u.value && l && d && (s = new ResizeObserver(t), s.observe(d, a));
134
134
  }, { immediate: !0, flush: "post" }), c = () => {
135
135
  f(), v();
136
136
  };
137
- return Ne(c), {
137
+ return je(c), {
138
138
  isSupported: u,
139
139
  stop: c
140
140
  };
141
141
  }
142
- function Rt(e, t = { width: 0, height: 0 }, n = {}) {
142
+ function $t(e, t = { width: 0, height: 0 }, n = {}) {
143
143
  const { box: o = "content-box" } = n, l = h(t.width), a = h(t.height);
144
- return $t(e, ([s]) => {
144
+ return Dt(e, ([s]) => {
145
145
  const u = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
146
146
  u ? (l.value = u.reduce((f, { inlineSize: v }) => f + v, 0), a.value = u.reduce((f, { blockSize: v }) => f + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
147
- }, n), K(() => Ke(e), (s) => {
147
+ }, n), K(() => Ue(e), (s) => {
148
148
  l.value = s ? t.width : 0, a.value = s ? t.height : 0;
149
149
  }), {
150
150
  width: l,
151
151
  height: a
152
152
  };
153
153
  }
154
- var Oe;
154
+ var De;
155
155
  (function(e) {
156
156
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
157
- })(Oe || (Oe = {}));
158
- let Bt = 0;
159
- function Ue(e, t = {}) {
157
+ })(De || (De = {}));
158
+ let Rt = 0;
159
+ function qe(e, t = {}) {
160
160
  const n = h(!1), {
161
- document: o = St,
161
+ document: o = Ct,
162
162
  immediate: l = !0,
163
163
  manual: a = !1,
164
- id: s = `vueuse_styletag_${++Bt}`
164
+ id: s = `vueuse_styletag_${++Rt}`
165
165
  } = t, u = h(e);
166
166
  let f = () => {
167
167
  };
@@ -175,23 +175,23 @@ function Ue(e, t = {}) {
175
175
  }, c = () => {
176
176
  !o || !n.value || (f(), o.head.removeChild(o.getElementById(s)), n.value = !1);
177
177
  };
178
- return l && !a && Ve(v), a || Ne(c), {
178
+ return l && !a && Ke(v), a || je(c), {
179
179
  id: s,
180
180
  css: u,
181
181
  unload: c,
182
182
  load: v,
183
- isLoaded: it(n)
183
+ isLoaded: ct(n)
184
184
  };
185
185
  }
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) => {
186
+ var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Re = (e, t, n) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pt = (e, t) => {
187
187
  for (var n in t || (t = {}))
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]);
188
+ It.call(t, n) && Re(e, n, t[n]);
189
+ if ($e)
190
+ for (var n of $e(t))
191
+ Mt.call(t, n) && Re(e, n, t[n]);
192
192
  return e;
193
193
  };
194
- const At = {
194
+ const Ht = {
195
195
  easeInSine: [0.12, 0, 0.39, 0],
196
196
  easeOutSine: [0.61, 1, 0.88, 1],
197
197
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -217,13 +217,13 @@ const At = {
217
217
  easeOutBack: [0.34, 1.56, 0.64, 1],
218
218
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
219
219
  };
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), u = h(!0), f = je(Q, 100);
220
+ Pt({
221
+ linear: wt
222
+ }, Ht);
223
+ function At(e, t) {
224
+ const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = $t(a), u = h(!0), f = Ve(Q, 100);
225
225
  let v;
226
- const c = ct(e), d = h(0), i = h({ start: 0, end: 10 }), r = h({ start: 0, end: l });
226
+ const c = dt(e), d = h(0), i = h({ start: 0, end: 10 }), r = h({ start: 0, end: l });
227
227
  let m = 0;
228
228
  const L = h([]), _ = b(() => {
229
229
  let { sum: C, height: w } = { sum: 0, height: 0 };
@@ -233,7 +233,7 @@ function Ft(e, t) {
233
233
  return L.value.slice(C, w);
234
234
  });
235
235
  le(() => {
236
- }), Ie(() => cancelAnimationFrame(v)), K(
236
+ }), Me(() => cancelAnimationFrame(v)), K(
237
237
  [s.width, s.height, c],
238
238
  ([C, w]) => {
239
239
  (C || w) && $();
@@ -330,15 +330,15 @@ function Ft(e, t) {
330
330
  innerProps: G
331
331
  };
332
332
  }
333
- const qe = Symbol(), Qe = Symbol(), Xe = Symbol(), Ge = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol();
334
- function xn() {
333
+ const Qe = Symbol(), Xe = Symbol(), Ge = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol();
334
+ function Sn() {
335
335
  const { voidFn: e, boolFn: t, boolRef: n, arrayRef: o } = {
336
336
  voidFn: (r) => {
337
337
  },
338
338
  boolFn: (r) => !1,
339
339
  boolRef: b(() => !1),
340
340
  arrayRef: b(() => [])
341
- }, l = V(Ge, o), a = V(Xe, t), s = V(tt, n), u = V(Qe, e), f = V(qe, e), v = V(Ze, e), c = V(Je, e), d = V(et, e), i = V(nt, e);
341
+ }, l = V(Ze, o), a = V(Ge, t), s = V(nt, n), u = V(Xe, e), f = V(Qe, e), v = V(Je, e), c = V(et, e), d = V(tt, e), i = V(ot, e);
342
342
  return {
343
343
  selected: l,
344
344
  isSelected: a,
@@ -351,7 +351,7 @@ function xn() {
351
351
  unselectAll: i
352
352
  };
353
353
  }
354
- function Ln(e, t) {
354
+ function xn(e, t) {
355
355
  const n = h({}), o = b(() => e.value.filter((i) => n.value[i[t]])), l = b(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
356
356
  function a() {
357
357
  e.value.forEach((i) => {
@@ -382,7 +382,7 @@ function Ln(e, t) {
382
382
  function d() {
383
383
  l.value ? s() : a();
384
384
  }
385
- return W(qe, d), W(Qe, c), W(Xe, v), W(Ge, o), W(Ze, u), W(Je, a), W(et, f), W(tt, l), W(nt, s), {
385
+ return W(Qe, d), W(Xe, c), W(Ge, v), W(Ze, o), W(Je, u), W(et, a), W(tt, f), W(nt, l), W(ot, s), {
386
386
  selected: o,
387
387
  select: u,
388
388
  selectAll: a,
@@ -399,7 +399,7 @@ function fe(e) {
399
399
  console.debug(`\u9ED8\u8BA4${e}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
400
400
  };
401
401
  }
402
- function ot({
402
+ function lt({
403
403
  attribute: e,
404
404
  selectWay: t = "colum",
405
405
  scrollOptions: n = {},
@@ -412,7 +412,7 @@ function ot({
412
412
  } = o();
413
413
  let u = {};
414
414
  const f = b(
415
- () => Le(t === "colum" ? U : ae, 50)
415
+ () => Te(t === "colum" ? U : ae, 50)
416
416
  ), v = /* @__PURE__ */ new Set(), c = h(!0), d = h(), i = h(!1), r = h({ x: 0, y: 0 }), m = h({ x: 0, y: 0, scrollTop: 0 }), L = new ResizeObserver(
417
417
  (p) => _.value = p[0].target.getBoundingClientRect()
418
418
  ), _ = h({}), E = h({
@@ -438,17 +438,17 @@ function ot({
438
438
  const g = d.value;
439
439
  if (!g || !i.value)
440
440
  return;
441
- const I = E.value.height - _.value.height;
441
+ const M = E.value.height - _.value.height;
442
442
  let T = E.value.top + Number(k);
443
- T = Math.min(Math.max(0, T), I), g.scrollTop = T, te(), $ = requestAnimationFrame(() => ee(p));
443
+ T = Math.min(Math.max(0, T), M), g.scrollTop = T, te(), $ = requestAnimationFrame(() => ee(p));
444
444
  }
445
445
  }
446
446
  function se(p) {
447
447
  if (d.value) {
448
- const I = _.value, T = I.bottom - p;
448
+ const M = _.value, T = M.bottom - p;
449
449
  if (T < S)
450
450
  return O * J(1 - T / S);
451
- const j = p - I.top;
451
+ const j = p - M.top;
452
452
  if (j < S)
453
453
  return -O * J(1 - j / S);
454
454
  }
@@ -466,22 +466,22 @@ function ot({
466
466
  m.value.y + p - m.value.scrollTop
467
467
  ), m.value.scrollTop = p;
468
468
  }
469
- function C(p, g, I = "dynamic-styles") {
470
- let T = document.getElementById(I);
471
- T || (T = document.createElement("style"), T.id = I, document.head.appendChild(T));
472
- const j = T.sheet.cssRules, oe = j.length, lt = `${p} { ${g} }`;
469
+ function C(p, g, M = "dynamic-styles") {
470
+ let T = document.getElementById(M);
471
+ T || (T = document.createElement("style"), T.id = M, document.head.appendChild(T));
472
+ const j = T.sheet.cssRules, oe = j.length, st = `${p} { ${g} }`;
473
473
  for (let ve = 0; ve < oe; ve++) {
474
- const Ee = j[ve];
475
- if (Ee.selectorText === p && Ee.style.cssText === g)
474
+ const Ce = j[ve];
475
+ if (Ce.selectorText === p && Ce.style.cssText === g)
476
476
  return;
477
477
  }
478
- T.sheet.insertRule(lt, oe);
478
+ T.sheet.insertRule(st, oe);
479
479
  }
480
480
  function w(p, g) {
481
481
  c.value = !0, i.value = !0, E.value.height ? E.value.sync() : E.value.sync(!0), r.value.x = p, r.value.y = g + E.value.top, m.value.x = r.value.x, m.value.y = r.value.y, d.value?.classList.add("disable-scroll-behavior"), v.clear();
482
482
  }
483
- function P(p, g, I) {
484
- !i.value || (c.value && t === "colum" && !R() && (s(), c.value = !1), I?.(), ee(g), m.value.x = Math.max(p, _.value.left), m.value.y = Math.min(
483
+ function P(p, g, M) {
484
+ !i.value || (c.value && t === "colum" && !R() && (s(), c.value = !1), M?.(), ee(g), m.value.x = Math.max(p, _.value.left), m.value.y = Math.min(
485
485
  g + E.value.top,
486
486
  E.value.height + _.value.top
487
487
  ), m.value.scrollTop = E.value.top, f.value());
@@ -508,12 +508,12 @@ function ot({
508
508
  }
509
509
  function ae() {
510
510
  const p = [];
511
- let g = null, I = 0;
511
+ let g = null, M = 0;
512
512
  d.value?.querySelectorAll(`[${e}]`).forEach((T, j) => {
513
513
  const oe = T.getAttribute(`${e}`);
514
- p.push(oe), G(T.getBoundingClientRect()) ? (g === null && (g = j), g = Math.min(g, j), I = Math.max(I, j)) : (u[`${e}`] = oe, v.has(oe) && a([u]));
514
+ p.push(oe), G(T.getBoundingClientRect()) ? (g === null && (g = j), g = Math.min(g, j), M = Math.max(M, j)) : (u[`${e}`] = oe, v.has(oe) && a([u]));
515
515
  });
516
- for (let T = g; T < I + 1; T++)
516
+ for (let T = g; T < M + 1; T++)
517
517
  u[`${e}`] = p[T], l([u]), v.add(p[T]);
518
518
  }
519
519
  function re(p) {
@@ -537,8 +537,8 @@ function ot({
537
537
  observer: L
538
538
  };
539
539
  }
540
- function Tn(e) {
541
- const t = ot(e), { observer: n, selectRange: o } = t, {
540
+ function Ln(e) {
541
+ const t = lt(e), { observer: n, selectRange: o } = t, {
542
542
  onScroll: l,
543
543
  dragStart: a,
544
544
  dragMove: s,
@@ -549,7 +549,7 @@ function Tn(e) {
549
549
  top: `${o.value.top}px`,
550
550
  width: `${o.value.width}px`,
551
551
  height: `${o.value.height}px`
552
- })), { load: c, unload: d } = Ue(
552
+ })), { load: c, unload: d } = qe(
553
553
  `.drag-select-box {
554
554
  position: absolute;
555
555
  z-index: 99999;
@@ -590,8 +590,8 @@ function Tn(e) {
590
590
  }
591
591
  return { init: _, unMount: E };
592
592
  }
593
- function On(e, t, n = 600) {
594
- const o = ot({
593
+ function Tn(e, t, n = 600) {
594
+ const o = lt({
595
595
  ...e,
596
596
  selectWay: "row",
597
597
  scrollOptions: {
@@ -633,10 +633,10 @@ function On(e, t, n = 600) {
633
633
  }
634
634
  return { init: m, unMount: L };
635
635
  }
636
- const kt = Symbol(), zt = {
636
+ const Ft = Symbol(), kt = {
637
637
  key: 0,
638
638
  class: "lzc-modal"
639
- }, Wt = /* @__PURE__ */ N({
639
+ }, zt = /* @__PURE__ */ N({
640
640
  __name: "Dialog",
641
641
  props: {
642
642
  visiable: { type: Boolean, default: !1 },
@@ -648,19 +648,19 @@ const kt = Symbol(), zt = {
648
648
  const n = e, o = () => {
649
649
  n.closeOnClickOverlay && t("update:visiable", !1);
650
650
  };
651
- return W(kt, () => t("update:visiable", !1)), (l, a) => (M(), Me(Pe, { name: "modal" }, {
651
+ return W(Ft, () => t("update:visiable", !1)), (l, a) => (I(), ye(Pe, { name: "modal" }, {
652
652
  default: He(() => [
653
- e.visiable ? Ae((M(), F("div", zt, [
653
+ e.visiable ? Ae((I(), F("div", kt, [
654
654
  x("div", {
655
655
  onMousedown: a[0] || (a[0] = Fe(() => {
656
656
  }, ["stop"])),
657
657
  class: ke(["lzc-dialog", e.dialogClass])
658
658
  }, [
659
- ye(l.$slots, "default", {}, void 0, !0)
659
+ we(l.$slots, "default", {}, void 0, !0)
660
660
  ], 34)
661
661
  ])), [
662
- [B(_t), () => o()]
663
- ]) : dt("", !0)
662
+ [B(gt), () => o()]
663
+ ]) : ze("", !0)
664
664
  ]),
665
665
  _: 3
666
666
  }));
@@ -671,13 +671,13 @@ const Z = (e, t) => {
671
671
  for (const [o, l] of t)
672
672
  n[o] = l;
673
673
  return n;
674
- }, Yt = /* @__PURE__ */ Z(Wt, [["__scopeId", "data-v-4ff684af"]]);
675
- function Dn(e) {
674
+ }, Wt = /* @__PURE__ */ Z(zt, [["__scopeId", "data-v-4ff684af"]]);
675
+ function On(e) {
676
676
  function t(n, o) {
677
677
  const l = document.createElement("div"), a = {
678
678
  setup() {
679
679
  return () => q(
680
- Yt,
680
+ Wt,
681
681
  {
682
682
  visiable: !0,
683
683
  "onUpdate:visiable": () => {
@@ -699,12 +699,12 @@ function Dn(e) {
699
699
  create: t
700
700
  };
701
701
  }
702
- function Nt({
702
+ function Yt({
703
703
  component: e,
704
704
  componentProps: t,
705
705
  delay: n = 300
706
706
  }) {
707
- const o = `${n}ms`, { load: l } = Ue(
707
+ const o = `${n}ms`, { load: l } = qe(
708
708
  `@keyframes lzcDelayLoad {
709
709
  to {
710
710
  opacity: 1;
@@ -717,19 +717,19 @@ function Nt({
717
717
  );
718
718
  return { LoadingComp: N({
719
719
  setup() {
720
- const s = Lt();
720
+ const s = xt();
721
721
  return le(() => {
722
722
  l(), s.value.classList.add("lzc-delay-loading");
723
723
  }), () => q(e, t);
724
724
  }
725
725
  }) };
726
726
  }
727
- function $n({
727
+ function Dn({
728
728
  component: e,
729
729
  componentProps: t,
730
730
  delay: n = 300
731
731
  }) {
732
- const { LoadingComp: o } = Nt({
732
+ const { LoadingComp: o } = Yt({
733
733
  component: e,
734
734
  componentProps: t,
735
735
  delay: n
@@ -742,24 +742,24 @@ function $n({
742
742
  }
743
743
  return { LoadingComp: o, loading: l, load: a, unload: s };
744
744
  }
745
- const jt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), Vt = /* @__PURE__ */ jt(() => /* @__PURE__ */ x("div", { class: "ldio-mm5gwljcryb" }, [
745
+ const Nt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), jt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ x("div", { class: "ldio-mm5gwljcryb" }, [
746
746
  /* @__PURE__ */ x("div")
747
- ], -1)), Kt = [
748
- Vt
749
- ], Ut = /* @__PURE__ */ N({
747
+ ], -1)), Vt = [
748
+ jt
749
+ ], Kt = /* @__PURE__ */ N({
750
750
  __name: "DefaultLoading",
751
751
  props: {
752
752
  width: { default: 24 },
753
753
  height: { default: 24 }
754
754
  },
755
755
  setup(e) {
756
- return ze((t) => ({
756
+ return We((t) => ({
757
757
  d8dfa9f0: e.width + "px",
758
758
  "2941c2e5": e.height + "px"
759
- })), (t, n) => (M(), F("div", he(pe(t.$attrs)), Kt, 16));
759
+ })), (t, n) => (I(), F("div", he(pe(t.$attrs)), Vt, 16));
760
760
  }
761
761
  });
762
- const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ N({
762
+ const $n = /* @__PURE__ */ Z(Kt, [["__scopeId", "data-v-d0ad7597"]]), Ut = ["onClick"], qt = /* @__PURE__ */ N({
763
763
  __name: "Toast",
764
764
  props: {
765
765
  message: null,
@@ -796,7 +796,7 @@ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
796
796
  }
797
797
  return _e(() => {
798
798
  o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
799
- }), (v, c) => (M(), F("div", {
799
+ }), (v, c) => (I(), F("div", {
800
800
  onClick: Fe(f, ["stop"]),
801
801
  id: "toastWrapper",
802
802
  ref_key: "toastWrapper",
@@ -807,28 +807,28 @@ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
807
807
  x("div", {
808
808
  style: Y(B(u))
809
809
  }, [
810
- x("span", null, We(e.message), 1)
810
+ x("span", null, Ye(e.message), 1)
811
811
  ], 4)
812
- ], 12, qt));
812
+ ], 12, Ut));
813
813
  }
814
814
  });
815
- const Xt = /* @__PURE__ */ Z(Qt, [["__scopeId", "data-v-533e986b"]]), Re = {
815
+ const Qt = /* @__PURE__ */ Z(qt, [["__scopeId", "data-v-533e986b"]]), Be = {
816
816
  message: "\u61D2\u732B\u4E91 Yes!!!",
817
817
  position: "middle",
818
818
  duration: 1500,
819
819
  buttonClickEvent: () => {
820
820
  }
821
821
  };
822
- class Bn {
822
+ class Rn {
823
823
  options;
824
824
  container;
825
825
  constructor(t) {
826
826
  this.options = t, this.container = document.createElement("div");
827
827
  }
828
828
  present() {
829
- const t = q(q(Xt), { ...Re, ...this.options });
829
+ const t = q(q(Qt), { ...Be, ...this.options });
830
830
  ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
831
- const n = this.options.duration || Re.duration;
831
+ const n = this.options.duration || Be.duration;
832
832
  setTimeout(() => {
833
833
  this.dismiss();
834
834
  }, n);
@@ -844,7 +844,7 @@ class Bn {
844
844
  }
845
845
  }
846
846
  }
847
- const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ N({
847
+ const Xt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ N({
848
848
  __name: "SvgIcon",
849
849
  props: {
850
850
  name: null,
@@ -859,7 +859,7 @@ const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ N({
859
859
  height: `${t.height ?? t.width}px`,
860
860
  aspectRatio: t.width && t.height ? void 0 : "1/1"
861
861
  }));
862
- return (l, a) => (M(), F("svg", {
862
+ return (l, a) => (I(), F("svg", {
863
863
  "aria-hidden": "",
864
864
  style: Y(B(o))
865
865
  }, [
@@ -867,18 +867,18 @@ const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ N({
867
867
  "xlink:href": B(n),
868
868
  fill: e.color,
869
869
  color: e.color
870
- }, null, 8, Gt)
870
+ }, null, 8, Xt)
871
871
  ], 4));
872
872
  }
873
873
  });
874
- function Zt(e) {
874
+ function Gt(e) {
875
875
  const {
876
876
  containerEl: t,
877
877
  sliderEl: n,
878
878
  autoHeight: o,
879
879
  performance: l = {},
880
880
  maxHeightRatio: a = 0.9
881
- } = e, s = h(!0), u = je(X, 100);
881
+ } = e, s = h(!0), u = Ve(X, 100);
882
882
  let f, v = "";
883
883
  const c = h(0), d = h(0), i = h(0), r = h({
884
884
  top: 0,
@@ -946,8 +946,8 @@ function Zt(e) {
946
946
  U || (U = document.createElement("style"), U.id = ne, document.head.appendChild(U));
947
947
  const ae = U.sheet.cssRules, re = ae.length, p = `${D} { ${R} }`;
948
948
  for (let g = 0; g < re; g++) {
949
- const I = ae[g];
950
- if (I.selectorText === D && I.style.cssText === R)
949
+ const M = ae[g];
950
+ if (M.selectorText === D && M.style.cssText === R)
951
951
  return;
952
952
  }
953
953
  U.sheet.insertRule(p, re);
@@ -979,7 +979,7 @@ function Zt(e) {
979
979
  modifySliderEventListener: G
980
980
  };
981
981
  }
982
- const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */ N({
982
+ const Zt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Jt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), en = /* @__PURE__ */ N({
983
983
  __name: "ScrollBar",
984
984
  props: {
985
985
  containerEl: null,
@@ -988,7 +988,7 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
988
988
  performance: null
989
989
  },
990
990
  setup(e, { expose: t }) {
991
- const n = e, o = !!vt().default, l = h(null), a = b(() => n.containerEl), s = Zt({
991
+ const n = e, o = !!vt().default, l = h(null), a = b(() => n.containerEl), s = Gt({
992
992
  containerEl: a,
993
993
  sliderEl: l,
994
994
  autoHeight: o ? n.autoHeight : !0,
@@ -998,7 +998,7 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
998
998
  _e(() => {
999
999
  s.init();
1000
1000
  });
1001
- }), Ie(() => {
1001
+ }), Me(() => {
1002
1002
  s.modifySliderEventListener("remove");
1003
1003
  });
1004
1004
  function i() {
@@ -1007,7 +1007,7 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
1007
1007
  function r() {
1008
1008
  c.value = !1;
1009
1009
  }
1010
- return t({ uScrollBarReturn: s }), (m, L) => (M(), Me(Pe, null, {
1010
+ return t({ uScrollBarReturn: s }), (m, L) => (I(), ye(Pe, null, {
1011
1011
  default: He(() => [
1012
1012
  Ae(x("div", {
1013
1013
  ref_key: "sliderRef",
@@ -1017,8 +1017,8 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
1017
1017
  onMouseleave: r,
1018
1018
  style: Y(B(v))
1019
1019
  }, [
1020
- ye(m.$slots, "default", {}, () => [
1021
- en
1020
+ we(m.$slots, "default", {}, () => [
1021
+ Jt
1022
1022
  ], !0)
1023
1023
  ], 36), [
1024
1024
  [ft, B(d)]
@@ -1028,13 +1028,13 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
1028
1028
  }));
1029
1029
  }
1030
1030
  });
1031
- const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) => (ce("data-v-18377f18"), e = e(), de(), e), on = { class: "pull-refresh" }, ln = {
1031
+ const In = /* @__PURE__ */ Z(en, [["__scopeId", "data-v-edec7292"]]), tn = (e) => (ce("data-v-18377f18"), e = e(), de(), e), nn = { class: "pull-refresh" }, on = {
1032
1032
  key: 0,
1033
1033
  class: "pull-arrow-circle"
1034
- }, sn = {
1034
+ }, ln = {
1035
1035
  key: 0,
1036
1036
  class: "box-load"
1037
- }, an = { class: "left-load" }, rn = { class: "right-load" }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ x("div", { class: "among-load" }, null, -1)), cn = { class: "pull-arrow" }, dn = { key: 1 }, vn = /* @__PURE__ */ N({
1037
+ }, sn = { class: "left-load" }, an = { class: "right-load" }, rn = /* @__PURE__ */ tn(() => /* @__PURE__ */ x("div", { class: "among-load" }, null, -1)), un = { class: "pull-arrow" }, cn = { key: 1 }, dn = /* @__PURE__ */ N({
1038
1038
  __name: "PullRefresh",
1039
1039
  props: {
1040
1040
  refresh: null,
@@ -1089,32 +1089,32 @@ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
1089
1089
  t?.refreshOff || ($.value = document.querySelector(
1090
1090
  t.pullRefreshContainer
1091
1091
  ), $.value?.addEventListener("touchstart", H), $.value?.addEventListener("touchmove", z), $.value?.addEventListener("touchend", Q));
1092
- }), (S, O) => (M(), F("div", on, [
1092
+ }), (S, O) => (I(), F("div", nn, [
1093
1093
  x("div", {
1094
1094
  class: "pull-refresh-box",
1095
1095
  style: Y(B(_))
1096
1096
  }, [
1097
- m.value ? (M(), F("div", dn, We(m.value), 1)) : (M(), F("div", ln, [
1098
- r.value == 2 ? (M(), F("div", sn, [
1099
- x("div", an, [
1097
+ m.value ? (I(), F("div", cn, Ye(m.value), 1)) : (I(), F("div", on, [
1098
+ r.value == 2 ? (I(), F("div", ln, [
1099
+ x("div", sn, [
1100
1100
  x("div", {
1101
1101
  class: "left-circle",
1102
1102
  style: Y({ backgroundColor: o })
1103
1103
  }, null, 4)
1104
1104
  ]),
1105
- x("div", rn, [
1105
+ x("div", an, [
1106
1106
  x("div", {
1107
1107
  class: "right-circle",
1108
1108
  style: Y({ backgroundColor: o })
1109
1109
  }, null, 4)
1110
1110
  ]),
1111
- un
1112
- ])) : (M(), F("div", {
1111
+ rn
1112
+ ])) : (I(), F("div", {
1113
1113
  key: 1,
1114
1114
  class: "pull-circle-line",
1115
1115
  style: Y(B(E))
1116
1116
  }, [
1117
- x("div", cn, [
1117
+ x("div", un, [
1118
1118
  x("div", {
1119
1119
  class: ke(["arrows", { opacity: f.value }]),
1120
1120
  style: Y({ borderBottomColor: o })
@@ -1126,10 +1126,10 @@ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
1126
1126
  ]));
1127
1127
  }
1128
1128
  });
1129
- const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1129
+ const vn = /* @__PURE__ */ Z(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1130
1130
  inheritAttrs: !1
1131
- }, pn = /* @__PURE__ */ N({
1132
- ...hn,
1131
+ }, hn = /* @__PURE__ */ N({
1132
+ ...fn,
1133
1133
  __name: "VirtualList",
1134
1134
  props: {
1135
1135
  data: null,
@@ -1140,7 +1140,7 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1140
1140
  },
1141
1141
  emits: ["scrollEnd"],
1142
1142
  setup(e, { expose: t, emit: n }) {
1143
- const o = e, l = Ft(ht(o, "data"), {
1143
+ const o = e, l = At(ht(o, "data"), {
1144
1144
  itemHeight: (i) => o.itemHeight(o.data[i]),
1145
1145
  overscan: o.overscan,
1146
1146
  scrollEndHook: () => {
@@ -1158,32 +1158,33 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1158
1158
  vListReturn: l
1159
1159
  });
1160
1160
  const d = "virtualListWrapper" + new Date().getTime();
1161
- return (i, r) => (M(), F(Ce, null, [
1162
- pt(fn, {
1161
+ return (i, r) => (I(), F(Se, null, [
1162
+ e.refreshOff ? ze("", !0) : (I(), ye(vn, {
1163
+ key: 0,
1163
1164
  refresh: e.refresh,
1164
1165
  refreshOff: e.refreshOff,
1165
1166
  scrollTop: B(c),
1166
1167
  pullRefreshContainer: "#" + d
1167
- }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
1168
+ }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"])),
1168
1169
  x("div", {
1169
1170
  class: "virtualListWrapper",
1170
1171
  id: d
1171
1172
  }, [
1172
- x("div", mt({
1173
+ x("div", pt({
1173
1174
  onScrollPassive: r[0] || (r[0] = (...m) => B(s).onScroll && B(s).onScroll(...m)),
1174
1175
  ref: B(s).ref,
1175
1176
  class: "virtualList"
1176
1177
  }, i.$attrs), [
1177
1178
  x("div", he(pe(B(u))), [
1178
1179
  x("div", he(pe(B(f))), [
1179
- (M(!0), F(Ce, null, gt(B(a), ({ index: m, data: L }) => (M(), F("div", {
1180
+ (I(!0), F(Se, null, mt(B(a), ({ index: m, data: L }) => (I(), F("div", {
1180
1181
  key: m,
1181
1182
  style: Y({
1182
1183
  height: `${B(v)(m).height}px`,
1183
1184
  display: "flex"
1184
1185
  })
1185
1186
  }, [
1186
- ye(i.$slots, "default", {
1187
+ we(i.$slots, "default", {
1187
1188
  data: L,
1188
1189
  index: m
1189
1190
  }, void 0, !0)
@@ -1195,7 +1196,7 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1195
1196
  ], 64));
1196
1197
  }
1197
1198
  });
1198
- const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ be(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ be(() => /* @__PURE__ */ x("title", null, "logo", -1)), wn = /* @__PURE__ */ be(() => /* @__PURE__ */ x("g", {
1199
+ const Mn = /* @__PURE__ */ Z(hn, [["__scopeId", "data-v-408120cd"]]), Ee = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), pn = { style: { position: "absolute" } }, mn = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), gn = ["width", "height"], _n = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("title", null, "logo", -1)), yn = /* @__PURE__ */ Ee(() => /* @__PURE__ */ x("g", {
1199
1200
  id: "group-1",
1200
1201
  stroke: "none",
1201
1202
  "stroke-width": "1",
@@ -1207,10 +1208,10 @@ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
1207
1208
  id: "path-1",
1208
1209
  fill: "#FFF"
1209
1210
  })
1210
- ], -1)), bn = [
1211
- yn,
1212
- wn
1213
- ], En = /* @__PURE__ */ N({
1211
+ ], -1)), wn = [
1212
+ _n,
1213
+ yn
1214
+ ], bn = /* @__PURE__ */ N({
1214
1215
  __name: "Loading",
1215
1216
  props: {
1216
1217
  width: { default: "90" },
@@ -1219,51 +1220,51 @@ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
1219
1220
  },
1220
1221
  setup(e) {
1221
1222
  const t = e;
1222
- ze((o) => ({
1223
+ We((o) => ({
1223
1224
  "703ef503": n
1224
1225
  }));
1225
1226
  const n = `${t.duration}ms`;
1226
- return (o, l) => (M(), F("div", mn, [
1227
- gn,
1228
- (M(), F("svg", {
1227
+ return (o, l) => (I(), F("div", pn, [
1228
+ mn,
1229
+ (I(), F("svg", {
1229
1230
  style: { position: "relative" },
1230
1231
  width: e.width,
1231
1232
  height: e.height,
1232
1233
  viewBox: "0 0 260 260",
1233
1234
  version: "1.1",
1234
1235
  xmlns: "http://www.w3.org/2000/svg"
1235
- }, bn, 8, _n))
1236
+ }, wn, 8, gn))
1236
1237
  ]));
1237
1238
  }
1238
1239
  });
1239
- const Hn = /* @__PURE__ */ Z(En, [["__scopeId", "data-v-40e00f20"]]);
1240
+ const Pn = /* @__PURE__ */ Z(bn, [["__scopeId", "data-v-40e00f20"]]);
1240
1241
  export {
1241
- Rn as DefaultLoading,
1242
- Hn as Loading,
1243
- fn as PullRefresh,
1244
- Mn as ScrollBar,
1245
- In as SvgIcon,
1246
- Bn as ToastCreator,
1247
- Pn as VirtualList,
1248
- Ge as allSelectedKey,
1249
- kt as closeDialogKey,
1250
- Dn as dialogController,
1251
- tt as isAllSelectedKey,
1252
- Xe as isSelectedKey,
1253
- Je as selectAllKey,
1254
- Ze as selectKey,
1255
- qe as toggleAllKey,
1256
- Qe as toggleKey,
1257
- nt as unselectAllKey,
1258
- et as unselectKey,
1259
- $n as useDelayLoad,
1260
- Nt as useDelayLoadComp,
1261
- ot as useDragSelect,
1262
- On as useDragSelectByMobile,
1263
- Tn as useDragSelectByPc,
1264
- Ln as useSelectable,
1265
- xn as useSelectableInjectors,
1266
- Ft as useVirtualList,
1267
- Sn as vDebounceClick,
1268
- _t as vSingleClick
1242
+ $n as DefaultLoading,
1243
+ Pn as Loading,
1244
+ vn as PullRefresh,
1245
+ In as ScrollBar,
1246
+ Bn as SvgIcon,
1247
+ Rn as ToastCreator,
1248
+ Mn as VirtualList,
1249
+ Ze as allSelectedKey,
1250
+ Ft as closeDialogKey,
1251
+ On as dialogController,
1252
+ nt as isAllSelectedKey,
1253
+ Ge as isSelectedKey,
1254
+ et as selectAllKey,
1255
+ Je as selectKey,
1256
+ Qe as toggleAllKey,
1257
+ Xe as toggleKey,
1258
+ ot as unselectAllKey,
1259
+ tt as unselectKey,
1260
+ Dn as useDelayLoad,
1261
+ Yt as useDelayLoadComp,
1262
+ lt as useDragSelect,
1263
+ Tn as useDragSelectByMobile,
1264
+ Ln as useDragSelectByPc,
1265
+ xn as useSelectable,
1266
+ Sn as useSelectableInjectors,
1267
+ At as useVirtualList,
1268
+ Cn as vDebounceClick,
1269
+ gt as vSingleClick
1269
1270
  };
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const 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 c=a.clientX,h=a.clientY,p=Math.abs(c-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),c=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),s();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},c)),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 c=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=c(),s.value=!1),l(),o},set(u){h?.(u)}}));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 c=Ne(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),f=>{h(),c.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return _e(d),{isSupported:c,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 c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(r.value=c.reduce((h,{inlineSize:p})=>h+p,0),s.value=c.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,c=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(c,u=>{f.innerText=u},{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:c,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),c=e.ref(!0),h=ye(V,100);let p;const d=e.shallowRef(t),f=e.ref(0),u=e.ref({start:0,end:10}),i=e.ref({start:0,end:r});let g=0;const T=e.ref([]),_=e.computed(()=>{let{sum:b,height:w}={sum:0,height:0};return d.value.map((R,k)=>(typeof l=="number"?w=l:w=l(k),b+=w,{height:w,sum:b}))}),S=e.computed(()=>j(u.value.start)),E=e.computed(()=>typeof l=="number"?_.value.length*l:_.value[_.value.length-1]?.sum||0),I=e.computed(()=>{const{start:b,end:w}=i.value;return T.value.slice(b,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([b,w])=>{(b||w)&&D()},{deep:!0}),e.watch(f,()=>{P(),h()});function P(){c.value=!1}function V(){c.value=!0,o?.()}function D(){cancelAnimationFrame(p),p=requestAnimationFrame(C)}function C(){if(s.value){f.value=s.value.scrollTop;let b=B(f.value);g=N(b);let w=Math.max(0,b-r),R=Math.min(b+g+r,d.value.length);u.value={start:w,end:R},T.value=d.value.slice(w,R).map((k,x)=>({data:k,index:x+w})),i.value.start=b-w,i.value.end=i.value.start+g}}function B(b){let w=0,R=_.value.length-1,k=-1;for(;w<=R;){const x=Math.floor((w+R)/2);_.value[x].sum>=b?(k=x,R=x-1):w=x+1}return Math.max(0,k)}function N(b){let w=0,R=0;for(let k=b;k<_.value.length&&(w++,R+=_.value[k].height,!(R>=a.height.value));k++);return w}function j(b){if(typeof l=="number")return b*l;let w=_.value[b];return w?w.sum-w.height:0}function M(b){return _.value[b]||{sum:0,height:0}}function K(b){if(s.value){const w=M(b);s.value.scrollTop=w.sum-w.height,C()}}const q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:c.value?void 0:"none"}})),z=e.computed(()=>({style:{transform:`translate3d(0, ${S.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:T,visiableList:I,getItemHeightData:M,getoffsetTopIndex:B,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:c,containerProps:{ref:s,onScroll:()=>{D()},style:W},wrapperProps:q,innerProps:z}}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),c=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),u=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:c,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:u}}function et(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(u=>o.value[u[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(u=>{o.value[u[n]]=!0})}function a(){o.value={}}function c(u){u.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(u){u.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(u){return!!o.value[u[n]]}function d(u){u.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,c),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:c,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 c={};const h=e.computed(()=>Ee(n==="colum"?H:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),u=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),T=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),S=e.ref({top:0,height:0,sync(m=!1){S.value.top=f.value?.scrollTop||0,m&&(S.value.height=f.value?.scrollHeight||0)}}),E=e.computed(()=>u.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:P=30,maxSpeed:V=30}=o;let D;const C=I,B=P,N=V,j=m=>m**1;let M=0;function K(m){if(cancelAnimationFrame(D),M=q(m),M=Math.max(Math.min(M,N),-N),M!==0){const v=f.value;if(!v||!u.value)return;const O=S.value.height-_.value.height;let L=S.value.top+Number(M);L=Math.min(Math.max(0,L),O),v.scrollTop=L,W(),D=requestAnimationFrame(()=>K(m))}}function q(m){if(f.value){const O=_.value,L=O.bottom-m;if(L<C)return B*j(1-L/C);const A=m-O.top;if(A<C)return-B*j(1-A/C)}return 0}function z(m){const v={...E.value,right:0,bottom:0};return v.left+=_.value.left,v.top+=_.value.top-S.value.top,v.right=v.width+v.left,v.bottom=v.height+v.top,v.left<m.right&&v.right>m.left&&v.top<m.bottom&&v.bottom>m.top}function W(){S.value.sync();const{top:m,height:v}=S.value;g.value.y=Math.min(v+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function b(m,v,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=`${m} { ${v} }`;for(let pe=0;pe<U;pe++){const Ie=A[pe];if(Ie.selectorText===m&&Ie.style.cssText===v)return}L.sheet.insertRule(Vt,U)}function w(m,v){d.value=!0,u.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=m,i.value.y=v+S.value.top,g.value.x=i.value.x,g.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function R(m,v,O){!u.value||(d.value&&n==="colum"&&!$()&&(a(),d.value=!1),O?.(),K(v),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(v+S.value.top,S.value.height+_.value.top),g.value.scrollTop=S.value.top,h.value())}function k(){u.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function x(){!u.value||(M||W(),h.value())}function $(){if(!u.value)return!1;const{width:m,height:v}=E.value;return!(Math.max(m,v)>5)}function Y(){$()&&a()}function H(){$()||f.value?.querySelectorAll(`[${t}]`).forEach(m=>{c[`${t}`]=m.getAttribute(`${t}`),z(m.getBoundingClientRect())?r([c]):s([c])})}function X(){const m=[];let v=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);m.push(U),z(L.getBoundingClientRect())?(v===null&&(v=A),v=Math.min(v,A),O=Math.max(O,A)):(c[`${t}`]=U,p.has(U)&&s([c]))});for(let L=v;L<O+1;L++)c[`${t}`]=m[L],r([c]),p.add(m[L])}function G(m){return!m?.value||(f.value=m.value,!f?.value)?!1:(T.observe(f.value),b(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:w,dragMove:R,dragEnd:k,onScroll:x,isSingleClick:$,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:E,isPressing:u,containerEl:f,observer:T}}function tt(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:c,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 {
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 c=a.clientX,h=a.clientY,p=Math.abs(c-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),c=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),s();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},c)),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 c=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=c(),s.value=!1),l(),o},set(u){h?.(u)}}));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 Ce=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&&Ce)for(var l of Ce(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 c=Ne(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),f=>{h(),c.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return _e(d),{isSupported:c,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 c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(r.value=c.reduce((h,{inlineSize:p})=>h+p,0),s.value=c.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 be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));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,c=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(c,u=>{f.innerText=u},{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:c,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),c=e.ref(!0),h=ye(V,100);let p;const d=e.shallowRef(t),f=e.ref(0),u=e.ref({start:0,end:10}),i=e.ref({start:0,end:r});let g=0;const T=e.ref([]),_=e.computed(()=>{let{sum:C,height:w}={sum:0,height:0};return d.value.map((R,k)=>(typeof l=="number"?w=l:w=l(k),C+=w,{height:w,sum:C}))}),S=e.computed(()=>j(u.value.start)),E=e.computed(()=>typeof l=="number"?_.value.length*l:_.value[_.value.length-1]?.sum||0),I=e.computed(()=>{const{start:C,end:w}=i.value;return T.value.slice(C,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([C,w])=>{(C||w)&&D()},{deep:!0}),e.watch(f,()=>{P(),h()});function P(){c.value=!1}function V(){c.value=!0,o?.()}function D(){cancelAnimationFrame(p),p=requestAnimationFrame(b)}function b(){if(s.value){f.value=s.value.scrollTop;let C=B(f.value);g=N(C);let w=Math.max(0,C-r),R=Math.min(C+g+r,d.value.length);u.value={start:w,end:R},T.value=d.value.slice(w,R).map((k,x)=>({data:k,index:x+w})),i.value.start=C-w,i.value.end=i.value.start+g}}function B(C){let w=0,R=_.value.length-1,k=-1;for(;w<=R;){const x=Math.floor((w+R)/2);_.value[x].sum>=C?(k=x,R=x-1):w=x+1}return Math.max(0,k)}function N(C){let w=0,R=0;for(let k=C;k<_.value.length&&(w++,R+=_.value[k].height,!(R>=a.height.value));k++);return w}function j(C){if(typeof l=="number")return C*l;let w=_.value[C];return w?w.sum-w.height:0}function M(C){return _.value[C]||{sum:0,height:0}}function K(C){if(s.value){const w=M(C);s.value.scrollTop=w.sum-w.height,b()}}const q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:c.value?void 0:"none"}})),z=e.computed(()=>({style:{transform:`translate3d(0, ${S.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:T,visiableList:I,getItemHeightData:M,getoffsetTopIndex:B,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:c,containerProps:{ref:s,onScroll:()=>{D()},style:W},wrapperProps:q,innerProps:z}}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),c=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),u=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:c,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:u}}function et(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(u=>o.value[u[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(u=>{o.value[u[n]]=!0})}function a(){o.value={}}function c(u){u.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(u){u.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(u){return!!o.value[u[n]]}function d(u){u.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,c),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:c,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 c={};const h=e.computed(()=>Ee(n==="colum"?H:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),u=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),T=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),S=e.ref({top:0,height:0,sync(m=!1){S.value.top=f.value?.scrollTop||0,m&&(S.value.height=f.value?.scrollHeight||0)}}),E=e.computed(()=>u.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:P=30,maxSpeed:V=30}=o;let D;const b=I,B=P,N=V,j=m=>m**1;let M=0;function K(m){if(cancelAnimationFrame(D),M=q(m),M=Math.max(Math.min(M,N),-N),M!==0){const v=f.value;if(!v||!u.value)return;const $=S.value.height-_.value.height;let L=S.value.top+Number(M);L=Math.min(Math.max(0,L),$),v.scrollTop=L,W(),D=requestAnimationFrame(()=>K(m))}}function q(m){if(f.value){const $=_.value,L=$.bottom-m;if(L<b)return B*j(1-L/b);const A=m-$.top;if(A<b)return-B*j(1-A/b)}return 0}function z(m){const v={...E.value,right:0,bottom:0};return v.left+=_.value.left,v.top+=_.value.top-S.value.top,v.right=v.width+v.left,v.bottom=v.height+v.top,v.left<m.right&&v.right>m.left&&v.top<m.bottom&&v.bottom>m.top}function W(){S.value.sync();const{top:m,height:v}=S.value;g.value.y=Math.min(v+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function C(m,v,$="dynamic-styles"){let L=document.getElementById($);L||(L=document.createElement("style"),L.id=$,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Vt=`${m} { ${v} }`;for(let pe=0;pe<U;pe++){const Ie=A[pe];if(Ie.selectorText===m&&Ie.style.cssText===v)return}L.sheet.insertRule(Vt,U)}function w(m,v){d.value=!0,u.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=m,i.value.y=v+S.value.top,g.value.x=i.value.x,g.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function R(m,v,$){!u.value||(d.value&&n==="colum"&&!O()&&(a(),d.value=!1),$?.(),K(v),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(v+S.value.top,S.value.height+_.value.top),g.value.scrollTop=S.value.top,h.value())}function k(){u.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function x(){!u.value||(M||W(),h.value())}function O(){if(!u.value)return!1;const{width:m,height:v}=E.value;return!(Math.max(m,v)>5)}function Y(){O()&&a()}function H(){O()||f.value?.querySelectorAll(`[${t}]`).forEach(m=>{c[`${t}`]=m.getAttribute(`${t}`),z(m.getBoundingClientRect())?r([c]):s([c])})}function X(){const m=[];let v=null,$=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);m.push(U),z(L.getBoundingClientRect())?(v===null&&(v=A),v=Math.min(v,A),$=Math.max($,A)):(c[`${t}`]=U,p.has(U)&&s([c]))});for(let L=v;L<$+1;L++)c[`${t}`]=m[L],r([c]),p.add(m[L])}function G(m){return!m?.value||(f.value=m.value,!f?.value)?!1:(T.observe(f.value),C(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:w,dragMove:R,dragEnd:k,onScroll:x,isSingleClick:O,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:E,isPressing:u,containerEl:f,observer:T}}function tt(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:c,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
- }`),u=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(E){E.button===0&&s(E.x,E.y)}function g(E){a(E.x,E.y)}function T(E){E.composedPath().some(P=>P?.getAttribute?.(t.attribute))||h(),c()}function _(E){try{if(!n.init(E))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(u),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",g),window.addEventListener("mouseup",T)}catch(I){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",I)}}function S(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",T)}return{init:_,unMount:S}}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:c,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(_){d(),_.composedPath().some(E=>!!E?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:E,clientY:I}=_.targetTouches[0];a(E,I),n?.(),c(E,I,()=>_.preventDefault()),_.preventDefault()},o))}function u(_){d();const{clientX:S,clientY:E}=_.targetTouches[0];c(S,E,()=>_.preventDefault())}function i(){d(),h()}function g(_){try{if(!l.init(_))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",u),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function T(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",u),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:T}}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="",F=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},rt=F(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 {
6
+ }`),u=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(E){E.button===0&&s(E.x,E.y)}function g(E){a(E.x,E.y)}function T(E){E.composedPath().some(P=>P?.getAttribute?.(t.attribute))||h(),c()}function _(E){try{if(!n.init(E))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(u),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",g),window.addEventListener("mouseup",T)}catch(I){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",I)}}function S(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",T)}return{init:_,unMount:S}}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:c,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(_){d(),_.composedPath().some(E=>!!E?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:E,clientY:I}=_.targetTouches[0];a(E,I),n?.(),c(E,I,()=>_.preventDefault()),_.preventDefault()},o))}function u(_){d();const{clientX:S,clientY:E}=_.targetTouches[0];c(S,E,()=>_.preventDefault())}function i(){d(),h()}function g(_){try{if(!l.init(_))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",u),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function T(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",u),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:T}}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="",F=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},rt=F(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 Oe({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=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=F(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)`})),c=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(c))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,dt))}}),Yt="",pt=F(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),c=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),u=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),T=e.computed(()=>!!f.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),S=e.computed(()=>l?i.value.clientHeight-P.value:i.value.clientHeight-g.value.clientHeight),E=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),I=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>I.value>s?0:I.value*i.value.clientHeight),V=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${u.value}px,0)`,height:l?`${P.value}px`:void 0}));function D(x){B(),f.value=x.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function C(){n.value.style.scrollBehavior=p,f.value=0,c()}function B(){a.value=!1}function N(){T.value||(a.value=!0)}function j(x){if(!T.value)return;let $=x.clientY-i.value.top-f.value;$<0?u.value=0:$>=S.value?u.value=S.value:u.value=$,n.value.scrollTo({top:u.value/S.value*E.value})}function M(){T.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,u.value=d.value/E.value*S.value)}function z(x){let $="addEventListener";x==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",D,{passive:!0}),window[$]("pointermove",j,{passive:!0}),window[$]("pointerup",C,{passive:!0})}const W=new MutationObserver(x=>{x.map(Y=>Y.oldValue).join().includes("height")&&b()});function b(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function w(){B(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function R(x,$,Y="dynamic-styles"){let H=document.getElementById(Y);H||(H=document.createElement("style"),H.id=Y,document.head.appendChild(H));const X=H.sheet.cssRules,G=X.length,m=`${x} { ${$} }`;for(let v=0;v<G;v++){const O=X[v];if(O.selectorText===x&&O.style.cssText===$)return}H.sheet.insertRule(m,G)}function k(){n.value&&o.value?(R(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),R(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",M,{passive:!0}),z("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{b()},100),w()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),c()}),{isScrollEnd:a,isDragSlider:T,offsetTop:u,scrollTop:d,scrollable:_,sliderPos:V,init:k,modifySliderEventListener:z}}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:c,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>c.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function u(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(g,T)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:u,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(g.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),qt="",Et=F(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),c=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),u=e.ref(0),i=e.ref(0),g=e.ref(),T=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${u.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),S=e.computed(()=>({borderColor:l,transition:u.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(i,C=>{C===0&&(r.value=-50,c.value=.3)}),e.watch(d,C=>{if(i.value===2)return;const B=Math.pow(C,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,c.value=1,i.value)});const E=e.ref(0),I=C=>{E.value=C.touches[0].pageY},P=C=>{const B=C.touches[0].pageY-E.value;E.value=C.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&T.value===0&&(p.value===0&&(p.value=C.touches[0].pageY),f.value=0,D.value.style.transition=`${f.value}ms`,u.value=0,d.value=C.touches[0].pageY-p.value,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,B>0&&C.preventDefault()))},V=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const C=Math.pow(d.value,o);D.value.style.transition=`${f.value}ms`,C>50?(i.value=2,d.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,u.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},u.value)},600)})):(d.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(D.value=document.querySelector(n.pullRefreshContainer),D.value?.addEventListener("touchstart",I),D.value?.addEventListener("touchmove",P),D.value?.addEventListener("touchend",V))}),(C,B)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(g.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(S))},[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=F($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:u=>l.itemHeight(l.data[u]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:c,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(u,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]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},u.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:T})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(p)(g).height}px`,display:"flex"})},[e.renderSlot(u.$slots,"default",{data:T,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",It=F(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=F(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"}})});
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}=Oe({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=F(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)`})),c=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(c))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,dt))}}),Yt="",pt=F(ft,[["__scopeId","data-v-533e986b"]]),$e={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),{...$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 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),c=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),u=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),T=e.computed(()=>!!f.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),S=e.computed(()=>l?i.value.clientHeight-P.value:i.value.clientHeight-g.value.clientHeight),E=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),I=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>I.value>s?0:I.value*i.value.clientHeight),V=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${u.value}px,0)`,height:l?`${P.value}px`:void 0}));function D(x){B(),f.value=x.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function b(){n.value.style.scrollBehavior=p,f.value=0,c()}function B(){a.value=!1}function N(){T.value||(a.value=!0)}function j(x){if(!T.value)return;let O=x.clientY-i.value.top-f.value;O<0?u.value=0:O>=S.value?u.value=S.value:u.value=O,n.value.scrollTo({top:u.value/S.value*E.value})}function M(){T.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,u.value=d.value/E.value*S.value)}function z(x){let O="addEventListener";x==="add"?O="addEventListener":O="removeEventListener",o.value?.[O]("pointerdown",D,{passive:!0}),window[O]("pointermove",j,{passive:!0}),window[O]("pointerup",b,{passive:!0})}const W=new MutationObserver(x=>{x.map(Y=>Y.oldValue).join().includes("height")&&C()});function C(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function w(){B(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function R(x,O,Y="dynamic-styles"){let H=document.getElementById(Y);H||(H=document.createElement("style"),H.id=Y,document.head.appendChild(H));const X=H.sheet.cssRules,G=X.length,m=`${x} { ${O} }`;for(let v=0;v<G;v++){const $=X[v];if($.selectorText===x&&$.style.cssText===O)return}H.sheet.insertRule(m,G)}function k(){n.value&&o.value?(R(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),R(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",M,{passive:!0}),z("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{C()},100),w()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),c()}),{isScrollEnd:a,isDragSlider:T,offsetTop:u,scrollTop:d,scrollable:_,sliderPos:V,init:k,modifySliderEventListener:z}}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:c,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>c.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function u(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(g,T)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:u,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(g.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),qt="",Et=F(yt,[["__scopeId","data-v-edec7292"]]),wt=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),St={class:"pull-refresh"},Ct={key:0,class:"pull-arrow-circle"},bt={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},Ot=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),c=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),u=e.ref(0),i=e.ref(0),g=e.ref(),T=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${u.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),S=e.computed(()=>({borderColor:l,transition:u.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(i,b=>{b===0&&(r.value=-50,c.value=.3)}),e.watch(d,b=>{if(i.value===2)return;const B=Math.pow(b,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,c.value=1,i.value)});const E=e.ref(0),I=b=>{E.value=b.touches[0].pageY},P=b=>{const B=b.touches[0].pageY-E.value;E.value=b.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&T.value===0&&(p.value===0&&(p.value=b.touches[0].pageY),f.value=0,D.value.style.transition=`${f.value}ms`,u.value=0,d.value=b.touches[0].pageY-p.value,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,B>0&&b.preventDefault()))},V=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const b=Math.pow(d.value,o);D.value.style.transition=`${f.value}ms`,b>50?(i.value=2,d.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,u.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},u.value)},600)})):(d.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(D.value=document.querySelector(n.pullRefreshContainer),D.value?.addEventListener("touchstart",I),D.value?.addEventListener("touchmove",P),D.value?.addEventListener("touchend",V))}),(b,B)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",Ct,[i.value==2?(e.openBlock(),e.createElementBlock("div",bt,[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(S))},[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=F(Ot,[["__scopeId","data-v-18377f18"]]),$t={inheritAttrs:!1},Rt=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:u=>l.itemHeight(l.data[u]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:c,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(u,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[t.refreshOff?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(Re,{key:0,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]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},u.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:T})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(p)(g).height}px`,display:"flex"})},[e.renderSlot(u.$slots,"default",{data:T,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",It=F(Rt,[["__scopeId","data-v-408120cd"]]),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=F(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=Oe,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-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}
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-408120cd]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-408120cd]{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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.84",
3
+ "version": "0.0.87",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",