@lazycatcloud/lzc-toolkit 0.0.77 → 0.0.79

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,55 +1,55 @@
1
- import { ref as h, watch as Y, customRef as lt, getCurrentScope as ot, onScopeDispose as st, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as B, onUpdated as at, readonly as rt, shallowRef as ut, computed as w, onUnmounted as Ie, inject as j, provide as z, defineComponent as K, h as Q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, createElementBlock as A, createElementVNode as T, withModifiers as Ae, normalizeClass as Fe, renderSlot as ye, createCommentVNode as it, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as W, toDisplayString as ke, useSlots as ct, withDirectives as dt, vShow as vt, toRef as ft, Fragment as Ee, createVNode as ht, mergeProps as pt, renderList as mt, useCssVars as gt } from "vue";
1
+ import { ref as h, watch as K, customRef as ot, getCurrentScope as st, onScopeDispose as at, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as B, onUpdated as rt, readonly as ut, shallowRef as it, computed as b, onUnmounted as Ie, inject as Y, provide as z, defineComponent as N, h as Q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, createElementBlock as A, createElementVNode as T, withModifiers as Ae, normalizeClass as Fe, renderSlot as ye, createCommentVNode as ct, useCssVars as ke, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as W, toDisplayString as ze, useSlots as dt, withDirectives as vt, vShow as ft, toRef as ht, Fragment as Ee, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
2
2
  var Se;
3
- const be = typeof window < "u", xe = (t) => typeof t == "function";
4
- be && ((Se = window?.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
3
+ const we = typeof window < "u", xe = (t) => typeof t == "function";
4
+ we && ((Se = window?.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
5
5
  function ie(t) {
6
6
  return typeof t == "function" ? t() : B(t);
7
7
  }
8
- function ze(t, e) {
9
- function n(...l) {
10
- t(() => e.apply(this, l), { fn: e, thisArg: this, args: l });
8
+ function We(t, e) {
9
+ function l(...n) {
10
+ t(() => e.apply(this, n), { fn: e, thisArg: this, args: n });
11
11
  }
12
- return n;
12
+ return l;
13
13
  }
14
14
  function _t(t, e = {}) {
15
- let n, l;
15
+ let l, n;
16
16
  return (a) => {
17
17
  const s = ie(t), i = ie(e.maxWait);
18
- if (n && clearTimeout(n), s <= 0 || i !== void 0 && i <= 0)
19
- return l && (clearTimeout(l), l = null), a();
20
- i && !l && (l = setTimeout(() => {
21
- n && clearTimeout(n), l = null, a();
22
- }, i)), n = setTimeout(() => {
23
- l && clearTimeout(l), l = null, a();
18
+ if (l && clearTimeout(l), s <= 0 || i !== void 0 && i <= 0)
19
+ return n && (clearTimeout(n), n = null), a();
20
+ i && !n && (n = setTimeout(() => {
21
+ l && clearTimeout(l), n = null, a();
22
+ }, i)), l = setTimeout(() => {
23
+ n && clearTimeout(n), n = null, a();
24
24
  }, s);
25
25
  };
26
26
  }
27
- function yt(t, e = !0, n = !0) {
28
- let l = 0, o, a = !0;
27
+ function yt(t, e = !0, l = !0) {
28
+ let n = 0, o, a = !0;
29
29
  const s = () => {
30
30
  o && (clearTimeout(o), o = void 0);
31
31
  };
32
32
  return (f) => {
33
- const v = ie(t), c = Date.now() - l;
33
+ const v = ie(t), c = Date.now() - n;
34
34
  if (s(), v <= 0)
35
- return l = Date.now(), f();
36
- c > v && (n || !a) ? (l = Date.now(), f()) : e && (o = setTimeout(() => {
37
- l = Date.now(), a = !0, s(), f();
38
- }, v)), !n && !o && (o = setTimeout(() => a = !0, v)), a = !1;
35
+ return n = Date.now(), f();
36
+ c > v && (l || !a) ? (n = Date.now(), f()) : e && (o = setTimeout(() => {
37
+ n = Date.now(), a = !0, s(), f();
38
+ }, v)), !l && !o && (o = setTimeout(() => a = !0, v)), a = !1;
39
39
  };
40
40
  }
41
- function bt(t) {
41
+ function wt(t) {
42
42
  return t;
43
43
  }
44
- function wt(t, e) {
45
- let n, l, o;
44
+ function bt(t, e) {
45
+ let l, n, o;
46
46
  const a = h(!0), s = () => {
47
47
  a.value = !0, o();
48
48
  };
49
- Y(t, s, { flush: "sync" });
50
- const i = xe(e) ? e : e.get, f = xe(e) ? void 0 : e.set, v = lt((c, d) => (l = c, o = d, {
49
+ K(t, s, { flush: "sync" });
50
+ const i = xe(e) ? e : e.get, f = xe(e) ? void 0 : e.set, v = ot((c, d) => (n = c, o = d, {
51
51
  get() {
52
- return a.value && (n = i(), a.value = !1), l(), n;
52
+ return a.value && (l = i(), a.value = !1), n(), l;
53
53
  },
54
54
  set(u) {
55
55
  f?.(u);
@@ -57,65 +57,65 @@ function wt(t, e) {
57
57
  }));
58
58
  return Object.isExtensible(v) && (v.trigger = s), v;
59
59
  }
60
- function We(t) {
61
- return ot() ? (st(t), !0) : !1;
60
+ function Ne(t) {
61
+ return st() ? (at(t), !0) : !1;
62
62
  }
63
- function Ne(t, e = 200, n = {}) {
64
- return ze(_t(e, n), t);
63
+ function Ve(t, e = 200, l = {}) {
64
+ return We(_t(e, l), t);
65
65
  }
66
- function Te(t, e = 200, n = !1, l = !0) {
67
- return ze(yt(e, n, l), t);
66
+ function Te(t, e = 200, l = !1, n = !0) {
67
+ return We(yt(e, l, n), t);
68
68
  }
69
- function Ve(t, e = !0) {
69
+ function je(t, e = !0) {
70
70
  Be() ? oe(t) : e ? t() : _e(t);
71
71
  }
72
- function je(t) {
72
+ function Ye(t) {
73
73
  var e;
74
- const n = ie(t);
75
- return (e = n?.$el) != null ? e : n;
74
+ const l = ie(t);
75
+ return (e = l?.$el) != null ? e : l;
76
76
  }
77
- const Ct = be ? window : void 0, Et = be ? window.document : void 0;
77
+ const Ct = we ? window : void 0, Et = we ? window.document : void 0;
78
78
  function St(t, e = !1) {
79
- const n = h(), l = () => n.value = Boolean(t());
80
- return l(), Ve(l, e), n;
79
+ const l = h(), n = () => l.value = Boolean(t());
80
+ return n(), je(n, e), l;
81
81
  }
82
82
  const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
83
83
  me[ge] = me[ge] || {};
84
84
  me[ge];
85
85
  function xt() {
86
- const t = Be(), e = wt(() => null, () => t.proxy.$el);
87
- return at(e.trigger), oe(e.trigger), e;
86
+ const t = Be(), e = bt(() => null, () => t.proxy.$el);
87
+ return rt(e.trigger), oe(e.trigger), e;
88
88
  }
89
89
  var Le = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable, Ot = (t, e) => {
90
- var n = {};
91
- for (var l in t)
92
- Tt.call(t, l) && e.indexOf(l) < 0 && (n[l] = t[l]);
90
+ var l = {};
91
+ for (var n in t)
92
+ Tt.call(t, n) && e.indexOf(n) < 0 && (l[n] = t[n]);
93
93
  if (t != null && Le)
94
- for (var l of Le(t))
95
- e.indexOf(l) < 0 && Lt.call(t, l) && (n[l] = t[l]);
96
- return n;
94
+ for (var n of Le(t))
95
+ e.indexOf(n) < 0 && Lt.call(t, n) && (l[n] = t[n]);
96
+ return l;
97
97
  };
98
- function $t(t, e, n = {}) {
99
- const l = n, { window: o = Ct } = l, a = Ot(l, ["window"]);
98
+ function $t(t, e, l = {}) {
99
+ const n = l, { window: o = Ct } = n, a = Ot(n, ["window"]);
100
100
  let s;
101
101
  const i = St(() => o && "ResizeObserver" in o), f = () => {
102
102
  s && (s.disconnect(), s = void 0);
103
- }, v = Y(() => je(t), (d) => {
103
+ }, v = K(() => Ye(t), (d) => {
104
104
  f(), i.value && o && d && (s = new ResizeObserver(e), s.observe(d, a));
105
105
  }, { immediate: !0, flush: "post" }), c = () => {
106
106
  f(), v();
107
107
  };
108
- return We(c), {
108
+ return Ne(c), {
109
109
  isSupported: i,
110
110
  stop: c
111
111
  };
112
112
  }
113
- function Dt(t, e = { width: 0, height: 0 }, n = {}) {
114
- const { box: l = "content-box" } = n, o = h(e.width), a = h(e.height);
113
+ function Dt(t, e = { width: 0, height: 0 }, l = {}) {
114
+ const { box: n = "content-box" } = l, o = h(e.width), a = h(e.height);
115
115
  return $t(t, ([s]) => {
116
- const i = l === "border-box" ? s.borderBoxSize : l === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
116
+ const i = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
117
117
  i ? (o.value = i.reduce((f, { inlineSize: v }) => f + v, 0), a.value = i.reduce((f, { blockSize: v }) => f + v, 0)) : (o.value = s.contentRect.width, a.value = s.contentRect.height);
118
- }, n), Y(() => je(t), (s) => {
118
+ }, l), K(() => Ye(t), (s) => {
119
119
  o.value = s ? e.width : 0, a.value = s ? e.height : 0;
120
120
  }), {
121
121
  width: o,
@@ -127,9 +127,9 @@ var Oe;
127
127
  t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
128
128
  })(Oe || (Oe = {}));
129
129
  let Rt = 0;
130
- function Ye(t, e = {}) {
131
- const n = h(!1), {
132
- document: l = Et,
130
+ function Ke(t, e = {}) {
131
+ const l = h(!1), {
132
+ document: n = Et,
133
133
  immediate: o = !0,
134
134
  manual: a = !1,
135
135
  id: s = `vueuse_styletag_${++Rt}`
@@ -137,29 +137,29 @@ function Ye(t, e = {}) {
137
137
  let f = () => {
138
138
  };
139
139
  const v = () => {
140
- if (!l)
140
+ if (!n)
141
141
  return;
142
- const d = l.getElementById(s) || l.createElement("style");
143
- d.type = "text/css", d.id = s, e.media && (d.media = e.media), l.head.appendChild(d), !n.value && (f = Y(i, (u) => {
142
+ const d = n.getElementById(s) || n.createElement("style");
143
+ d.type = "text/css", d.id = s, e.media && (d.media = e.media), n.head.appendChild(d), !l.value && (f = K(i, (u) => {
144
144
  d.innerText = u;
145
- }, { immediate: !0 }), n.value = !0);
145
+ }, { immediate: !0 }), l.value = !0);
146
146
  }, c = () => {
147
- !l || !n.value || (f(), l.head.removeChild(l.getElementById(s)), n.value = !1);
147
+ !n || !l.value || (f(), n.head.removeChild(n.getElementById(s)), l.value = !1);
148
148
  };
149
- return o && !a && Ve(v), a || We(c), {
149
+ return o && !a && je(v), a || Ne(c), {
150
150
  id: s,
151
151
  css: i,
152
152
  unload: c,
153
153
  load: v,
154
- isLoaded: rt(n)
154
+ isLoaded: ut(l)
155
155
  };
156
156
  }
157
- var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (t, e, n) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pt = (t, e) => {
158
- for (var n in e || (e = {}))
159
- It.call(e, n) && De(t, n, e[n]);
157
+ var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (t, e, l) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l, Pt = (t, e) => {
158
+ for (var l in e || (e = {}))
159
+ It.call(e, l) && De(t, l, e[l]);
160
160
  if ($e)
161
- for (var n of $e(e))
162
- Mt.call(e, n) && De(t, n, e[n]);
161
+ for (var l of $e(e))
162
+ Mt.call(e, l) && De(t, l, e[l]);
163
163
  return t;
164
164
  };
165
165
  const Ht = {
@@ -189,35 +189,35 @@ const Ht = {
189
189
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
190
190
  };
191
191
  Pt({
192
- linear: bt
192
+ linear: wt
193
193
  }, Ht);
194
194
  function At(t, e) {
195
- const { scrollEndHook: n, itemHeight: l, overscan: o = 5 } = e, a = h(null), s = Dt(a), i = h(!0), f = Ne(N, 100);
195
+ const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = e, a = h(null), s = Dt(a), i = h(!0), f = Ve(V, 100);
196
196
  let v;
197
- const c = ut(t), d = h(0), u = h({ start: 0, end: 10 });
197
+ const c = it(t), d = h(0), u = h({ start: 0, end: 10 });
198
198
  let r = 0;
199
- const p = h([]), S = w(() => {
199
+ const p = h([]), S = b(() => {
200
200
  let { sum: g, height: y } = { sum: 0, height: 0 };
201
- return c.value.map((F, H) => (typeof l == "number" ? y = l : y = l(H), g += y, { height: y, sum: g }));
202
- }), E = w(() => G(u.value.start)), b = w(() => typeof l == "number" ? S.value.length * l : S.value[S.value.length - 1]?.sum || 0), C = w(() => {
201
+ return c.value.map((F, H) => (typeof n == "number" ? y = n : y = n(H), g += y, { height: y, sum: g }));
202
+ }), E = b(() => G(u.value.start)), w = b(() => typeof n == "number" ? S.value.length * n : S.value[S.value.length - 1]?.sum || 0), C = b(() => {
203
203
  let g = p.value.length - o, y = Math.max(g - r, 0);
204
204
  return p.value.slice(y, g);
205
205
  });
206
206
  oe(() => {
207
- }), Ie(() => cancelAnimationFrame(v)), Y(
207
+ }), Ie(() => cancelAnimationFrame(v)), K(
208
208
  [s.width, s.height, c],
209
209
  ([g, y]) => {
210
210
  (g || y) && U();
211
211
  },
212
212
  { deep: !0 }
213
- ), Y(d, () => {
213
+ ), K(d, () => {
214
214
  P(), f();
215
215
  });
216
216
  function P() {
217
217
  i.value = !1;
218
218
  }
219
- function N() {
220
- i.value = !0, n?.();
219
+ function V() {
220
+ i.value = !0, l?.();
221
221
  }
222
222
  function U() {
223
223
  cancelAnimationFrame(v), v = requestAnimationFrame($);
@@ -247,8 +247,8 @@ function At(t, e) {
247
247
  return g;
248
248
  }
249
249
  function G(g) {
250
- if (typeof l == "number")
251
- return g * l;
250
+ if (typeof n == "number")
251
+ return g * n;
252
252
  let y = S.value[g];
253
253
  return y ? y.sum - y.height : 0;
254
254
  }
@@ -265,13 +265,13 @@ function At(t, e) {
265
265
  a.value.scrollTop = y.sum - y.height, $();
266
266
  }
267
267
  }
268
- const se = w(() => ({
268
+ const se = b(() => ({
269
269
  style: {
270
270
  width: "100%",
271
- height: `${b.value}px`,
271
+ height: `${w.value}px`,
272
272
  pointerEvents: i.value ? void 0 : "none"
273
273
  }
274
- })), Z = w(() => ({
274
+ })), Z = b(() => ({
275
275
  style: {
276
276
  transform: `translate3d(0, ${E.value}px, 0)`,
277
277
  "will-change": "transform"
@@ -284,7 +284,7 @@ function At(t, e) {
284
284
  visiableList: C,
285
285
  getItemHeightData: X,
286
286
  getoffsetTopIndex: x,
287
- totalHeight: b,
287
+ totalHeight: w,
288
288
  clientHeight: s.height,
289
289
  scrollTo: ee,
290
290
  scrollTop: d,
@@ -300,15 +300,15 @@ function At(t, e) {
300
300
  innerProps: Z
301
301
  };
302
302
  }
303
- const Ke = Symbol(), Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Ge = Symbol(), Xe = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol();
304
- function En() {
305
- const { voidFn: t, boolFn: e, boolRef: n, arrayRef: l } = {
303
+ const Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Ge = Symbol(), Xe = Symbol(), Ze = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol();
304
+ function bl() {
305
+ const { voidFn: t, boolFn: e, boolRef: l, arrayRef: n } = {
306
306
  voidFn: (r) => {
307
307
  },
308
308
  boolFn: (r) => !1,
309
- boolRef: w(() => !1),
310
- arrayRef: w(() => [])
311
- }, o = j(Qe, l), a = j(qe, e), s = j(Je, n), i = j(Ue, t), f = j(Ke, t), v = j(Ge, t), c = j(Xe, t), d = j(Ze, t), u = j(et, t);
309
+ boolRef: b(() => !1),
310
+ arrayRef: b(() => [])
311
+ }, o = Y(Ge, n), a = Y(Qe, e), s = Y(et, l), i = Y(qe, t), f = Y(Ue, t), v = Y(Xe, t), c = Y(Ze, t), d = Y(Je, t), u = Y(tt, t);
312
312
  return {
313
313
  selected: o,
314
314
  isSelected: a,
@@ -321,39 +321,39 @@ function En() {
321
321
  unselectAll: u
322
322
  };
323
323
  }
324
- function Sn(t, e) {
325
- const n = h({}), l = w(() => t.value.filter((u) => n.value[u[e]])), o = w(() => l.value.length != 0 && Object.keys(n.value).length == t.value.length);
324
+ function Cl(t, e) {
325
+ const l = h({}), n = b(() => t.value.filter((u) => l.value[u[e]])), o = b(() => n.value.length != 0 && Object.keys(l.value).length == t.value.length);
326
326
  function a() {
327
327
  t.value.forEach((u) => {
328
- n.value[u[e]] = !0;
328
+ l.value[u[e]] = !0;
329
329
  });
330
330
  }
331
331
  function s() {
332
- n.value = {};
332
+ l.value = {};
333
333
  }
334
334
  function i(u) {
335
335
  u.forEach((r) => {
336
- n.value[r[e]] || (n.value[r[e]] = !0);
336
+ l.value[r[e]] || (l.value[r[e]] = !0);
337
337
  });
338
338
  }
339
339
  function f(u) {
340
340
  u.forEach((r) => {
341
- n.value[r[e]] && delete n.value[r[e]];
341
+ l.value[r[e]] && delete l.value[r[e]];
342
342
  });
343
343
  }
344
344
  function v(u) {
345
- return !!n.value[u[e]];
345
+ return !!l.value[u[e]];
346
346
  }
347
347
  function c(u) {
348
348
  u.forEach((r) => {
349
- v(r) ? delete n.value[r[e]] : n.value[r[e]] = !0;
349
+ v(r) ? delete l.value[r[e]] : l.value[r[e]] = !0;
350
350
  });
351
351
  }
352
352
  function d() {
353
353
  o.value ? s() : a();
354
354
  }
355
- return z(Ke, d), z(Ue, c), z(qe, v), z(Qe, l), z(Ge, i), z(Xe, a), z(Ze, f), z(Je, o), z(et, s), {
356
- selected: l,
355
+ return z(Ue, d), z(qe, c), z(Qe, v), z(Ge, n), z(Xe, i), z(Ze, a), z(Je, f), z(et, o), z(tt, s), {
356
+ selected: n,
357
357
  select: i,
358
358
  selectAll: a,
359
359
  unselect: f,
@@ -369,36 +369,36 @@ function fe(t) {
369
369
  console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
370
370
  };
371
371
  }
372
- function tt({
372
+ function lt({
373
373
  attribute: t,
374
374
  selectWay: e = "colum",
375
- scrollOptions: n = {},
376
- getSelectMap: l = () => ({})
375
+ scrollOptions: l = {},
376
+ getSelectMap: n = () => ({})
377
377
  }) {
378
378
  const {
379
379
  select: o = fe("\u9009\u62E9"),
380
380
  unselect: a = fe("\u53D6\u6D88\u9009\u62E9"),
381
381
  unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
382
- } = l();
382
+ } = n();
383
383
  let i = {};
384
- const f = w(
384
+ const f = b(
385
385
  () => Te(e === "colum" ? q : ae, 50)
386
386
  ), v = /* @__PURE__ */ new Set(), c = h(!0), d = h(), u = h(!1), r = h({ x: 0, y: 0 }), p = h({ x: 0, y: 0, scrollTop: 0 }), S = new ResizeObserver(
387
387
  (m) => E.value = m[0].target.getBoundingClientRect()
388
- ), E = h({}), b = h({
388
+ ), E = h({}), w = h({
389
389
  top: 0,
390
390
  height: 0,
391
391
  sync(m = !1) {
392
- b.value.top = d.value?.scrollTop || 0, m && (b.value.height = d.value?.scrollHeight || 0);
392
+ w.value.top = d.value?.scrollTop || 0, m && (w.value.height = d.value?.scrollHeight || 0);
393
393
  }
394
- }), C = w(() => u.value ? {
394
+ }), C = b(() => u.value ? {
395
395
  left: Math.min(r.value.x, p.value.x) - E.value.left,
396
396
  top: Math.min(r.value.y, p.value.y) - E.value.top,
397
397
  width: Math.abs(r.value.x - p.value.x),
398
398
  height: Math.abs(r.value.y - p.value.y)
399
- } : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: N = 30, maxSpeed: U = 30 } = n;
399
+ } : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: V = 30, maxSpeed: U = 30 } = l;
400
400
  let $;
401
- const x = P, O = N, G = U, X = (m) => m ** 1;
401
+ const x = P, O = V, G = U, X = (m) => m ** 1;
402
402
  let k = 0;
403
403
  function ee(m) {
404
404
  if (cancelAnimationFrame($), k = se(m), k = Math.max(
@@ -408,8 +408,8 @@ function tt({
408
408
  const _ = d.value;
409
409
  if (!_ || !u.value)
410
410
  return;
411
- const I = b.value.height - E.value.height;
412
- let L = b.value.top + Number(k);
411
+ const I = w.value.height - E.value.height;
412
+ let L = w.value.top + Number(k);
413
413
  L = Math.min(Math.max(0, L), I), _.scrollTop = L, te(), $ = requestAnimationFrame(() => ee(m));
414
414
  }
415
415
  }
@@ -418,19 +418,19 @@ function tt({
418
418
  const I = E.value, L = I.bottom - m;
419
419
  if (L < x)
420
420
  return O * X(1 - L / x);
421
- const V = m - I.top;
422
- if (V < x)
423
- return -O * X(1 - V / x);
421
+ const j = m - I.top;
422
+ if (j < x)
423
+ return -O * X(1 - j / x);
424
424
  }
425
425
  return 0;
426
426
  }
427
427
  function Z(m) {
428
428
  const _ = { ...C.value, right: 0, bottom: 0 };
429
- return _.left += E.value.left, _.top += E.value.top - b.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < m.right && _.right > m.left && _.top < m.bottom && _.bottom > m.top;
429
+ return _.left += E.value.left, _.top += E.value.top - w.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < m.right && _.right > m.left && _.top < m.bottom && _.bottom > m.top;
430
430
  }
431
431
  function te() {
432
- b.value.sync();
433
- const { top: m, height: _ } = b.value;
432
+ w.value.sync();
433
+ const { top: m, height: _ } = w.value;
434
434
  p.value.y = Math.min(
435
435
  _ + E.value.top,
436
436
  p.value.y + m - p.value.scrollTop
@@ -439,22 +439,22 @@ function tt({
439
439
  function g(m, _, I = "dynamic-styles") {
440
440
  let L = document.getElementById(I);
441
441
  L || (L = document.createElement("style"), L.id = I, document.head.appendChild(L));
442
- const V = L.sheet.cssRules, le = V.length, nt = `${m} { ${_} }`;
443
- for (let ve = 0; ve < le; ve++) {
444
- const Ce = V[ve];
442
+ const j = L.sheet.cssRules, ne = j.length, nt = `${m} { ${_} }`;
443
+ for (let ve = 0; ve < ne; ve++) {
444
+ const Ce = j[ve];
445
445
  if (Ce.selectorText === m && Ce.style.cssText === _)
446
446
  return;
447
447
  }
448
- L.sheet.insertRule(nt, le);
448
+ L.sheet.insertRule(nt, ne);
449
449
  }
450
450
  function y(m, _) {
451
- c.value = !0, u.value = !0, b.value.height ? b.value.sync() : b.value.sync(!0), r.value.x = m, r.value.y = _ + b.value.top, p.value.x = r.value.x, p.value.y = r.value.y, d.value?.classList.add("disable-scroll-behavior"), v.clear();
451
+ c.value = !0, u.value = !0, w.value.height ? w.value.sync() : w.value.sync(!0), r.value.x = m, r.value.y = _ + w.value.top, p.value.x = r.value.x, p.value.y = r.value.y, d.value?.classList.add("disable-scroll-behavior"), v.clear();
452
452
  }
453
453
  function F(m, _, I) {
454
454
  !u.value || (c.value && e === "colum" && !D() && (s(), c.value = !1), I?.(), ee(_), p.value.x = Math.max(m, E.value.left), p.value.y = Math.min(
455
- _ + b.value.top,
456
- b.value.height + E.value.top
457
- ), p.value.scrollTop = b.value.top, f.value());
455
+ _ + w.value.top,
456
+ w.value.height + E.value.top
457
+ ), p.value.scrollTop = w.value.top, f.value());
458
458
  }
459
459
  function H() {
460
460
  u.value = !1, d.value?.classList.remove("disable-scroll-behavior");
@@ -468,7 +468,7 @@ function tt({
468
468
  const { width: m, height: _ } = C.value;
469
469
  return !(Math.max(m, _) > 5);
470
470
  }
471
- function ne() {
471
+ function le() {
472
472
  D() && s();
473
473
  }
474
474
  function q() {
@@ -479,9 +479,9 @@ function tt({
479
479
  function ae() {
480
480
  const m = [];
481
481
  let _ = null, I = 0;
482
- d.value?.querySelectorAll(`[${t}]`).forEach((L, V) => {
483
- const le = L.getAttribute(`${t}`);
484
- m.push(le), Z(L.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), I = Math.max(I, V)) : (i[`${t}`] = le, v.has(le) && a([i]));
482
+ d.value?.querySelectorAll(`[${t}]`).forEach((L, j) => {
483
+ const ne = L.getAttribute(`${t}`);
484
+ m.push(ne), Z(L.getBoundingClientRect()) ? (_ === null && (_ = j), _ = Math.min(_, j), I = Math.max(I, j)) : (i[`${t}`] = ne, v.has(ne) && a([i]));
485
485
  });
486
486
  for (let L = _; L < I + 1; L++)
487
487
  i[`${t}`] = m[L], o([i]), v.add(m[L]);
@@ -499,7 +499,7 @@ function tt({
499
499
  dragEnd: H,
500
500
  onScroll: R,
501
501
  isSingleClick: D,
502
- cancelSelectAllBySingleClick: ne,
502
+ cancelSelectAllBySingleClick: le,
503
503
  selectFn: f,
504
504
  selectRange: C,
505
505
  isPressing: u,
@@ -507,26 +507,26 @@ function tt({
507
507
  observer: S
508
508
  };
509
509
  }
510
- function xn(t) {
511
- const e = tt(t), { observer: n, selectRange: l } = e, {
510
+ function El(t) {
511
+ const e = lt(t), { observer: l, selectRange: n } = e, {
512
512
  onScroll: o,
513
513
  dragStart: a,
514
514
  dragMove: s,
515
515
  dragEnd: i,
516
516
  cancelSelectAllBySingleClick: f
517
- } = e, v = w(() => ({
518
- left: `${l.value.left}px`,
519
- top: `${l.value.top}px`,
520
- width: `${l.value.width}px`,
521
- height: `${l.value.height}px`
522
- })), { load: c, unload: d } = Ye(
517
+ } = e, v = b(() => ({
518
+ left: `${n.value.left}px`,
519
+ top: `${n.value.top}px`,
520
+ width: `${n.value.width}px`,
521
+ height: `${n.value.height}px`
522
+ })), { load: c, unload: d } = Ke(
523
523
  `.drag-select-box {
524
524
  position: absolute;
525
525
  z-index: 99999;
526
526
  background-color: rgb(191 219 254);
527
527
  opacity: 0.5;
528
528
  }`
529
- ), u = K({
529
+ ), u = N({
530
530
  render() {
531
531
  return Q("div", {
532
532
  id: "selectBoxEl",
@@ -542,7 +542,7 @@ function xn(t) {
542
542
  s(C.x, C.y);
543
543
  }
544
544
  function S(C) {
545
- C.composedPath().some((N) => N?.getAttribute?.(t.attribute)) || f(), i();
545
+ C.composedPath().some((V) => V?.getAttribute?.(t.attribute)) || f(), i();
546
546
  }
547
547
  function E(C) {
548
548
  try {
@@ -555,20 +555,20 @@ function xn(t) {
555
555
  console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", P);
556
556
  }
557
557
  }
558
- function b() {
559
- d(), n.disconnect(), e.containerEl.value?.removeEventListener("scroll", o), e.containerEl.value?.removeEventListener("mousedown", r), window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", S);
558
+ function w() {
559
+ d(), l.disconnect(), e.containerEl.value?.removeEventListener("scroll", o), e.containerEl.value?.removeEventListener("mousedown", r), window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", S);
560
560
  }
561
- return { init: E, unMount: b };
561
+ return { init: E, unMount: w };
562
562
  }
563
- function Tn(t, e, n = 600) {
564
- const l = tt({
563
+ function Sl(t, e, l = 600) {
564
+ const n = lt({
565
565
  ...t,
566
566
  selectWay: "row",
567
567
  scrollOptions: {
568
568
  startSpeed: 5,
569
569
  maxSpeed: 5
570
570
  }
571
- }), { observer: o } = l, { onScroll: a, dragStart: s, dragMove: i, dragEnd: f } = l;
571
+ }), { observer: o } = n, { onScroll: a, dragStart: s, dragMove: i, dragEnd: f } = n;
572
572
  let v;
573
573
  function c() {
574
574
  clearTimeout(v);
@@ -577,33 +577,33 @@ function Tn(t, e, n = 600) {
577
577
  c(), E.composedPath().some((C) => !!C?.getAttribute?.(t.attribute)) && (v = setTimeout(() => {
578
578
  const { clientX: C, clientY: P } = E.targetTouches[0];
579
579
  s(C, P), e?.(), i(C, P, () => E.preventDefault()), E.preventDefault();
580
- }, n));
580
+ }, l));
581
581
  }
582
582
  function u(E) {
583
583
  c();
584
- const { clientX: b, clientY: C } = E.targetTouches[0];
585
- i(b, C, () => E.preventDefault());
584
+ const { clientX: w, clientY: C } = E.targetTouches[0];
585
+ i(w, C, () => E.preventDefault());
586
586
  }
587
587
  function r() {
588
588
  c(), f();
589
589
  }
590
590
  function p(E) {
591
591
  try {
592
- if (!l.init(E))
592
+ if (!n.init(E))
593
593
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
594
- if (!l.containerEl?.value)
594
+ if (!n.containerEl?.value)
595
595
  return !1;
596
- l.containerEl.value?.addEventListener("scroll", a), l.containerEl.value?.addEventListener("touchstart", d), l.containerEl.value?.addEventListener("touchmove", u), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
597
- } catch (b) {
598
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", b);
596
+ n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart", d), n.containerEl.value?.addEventListener("touchmove", u), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
597
+ } catch (w) {
598
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", w);
599
599
  }
600
600
  }
601
601
  function S() {
602
- o.disconnect(), l.containerEl.value?.removeEventListener("scroll", a), l.containerEl.value?.removeEventListener("touchstart", d), l.containerEl.value?.removeEventListener("touchmove", u), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
602
+ o.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart", d), n.containerEl.value?.removeEventListener("touchmove", u), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
603
603
  }
604
604
  return { init: p, unMount: S };
605
605
  }
606
- const Ft = Symbol(), kt = /* @__PURE__ */ K({
606
+ const Ft = Symbol(), kt = /* @__PURE__ */ N({
607
607
  __name: "Dialog",
608
608
  props: {
609
609
  visiable: { type: Boolean, default: !1 },
@@ -612,14 +612,14 @@ const Ft = Symbol(), kt = /* @__PURE__ */ K({
612
612
  },
613
613
  emits: ["update:visiable"],
614
614
  setup(t, { emit: e }) {
615
- const n = t, l = () => {
616
- n.closeOnClickOverlay && e("update:visiable", !1);
615
+ const l = t, n = () => {
616
+ l.closeOnClickOverlay && e("update:visiable", !1);
617
617
  };
618
618
  return z(Ft, () => e("update:visiable", !1)), (o, a) => (M(), Me(Pe, { name: "modal" }, {
619
619
  default: He(() => [
620
620
  t.visiable ? (M(), A("div", {
621
621
  key: 0,
622
- onClick: l,
622
+ onClick: n,
623
623
  class: "lzc-modal"
624
624
  }, [
625
625
  T("div", {
@@ -629,20 +629,20 @@ const Ft = Symbol(), kt = /* @__PURE__ */ K({
629
629
  }, [
630
630
  ye(o.$slots, "default", {}, void 0, !0)
631
631
  ], 2)
632
- ])) : it("", !0)
632
+ ])) : ct("", !0)
633
633
  ]),
634
634
  _: 3
635
635
  }));
636
636
  }
637
637
  });
638
638
  const J = (t, e) => {
639
- const n = t.__vccOpts || t;
640
- for (const [l, o] of e)
641
- n[l] = o;
642
- return n;
639
+ const l = t.__vccOpts || t;
640
+ for (const [n, o] of e)
641
+ l[n] = o;
642
+ return l;
643
643
  }, zt = /* @__PURE__ */ J(kt, [["__scopeId", "data-v-e171c24d"]]);
644
- function Ln(t) {
645
- function e(n, l) {
644
+ function xl(t) {
645
+ function e(l, n) {
646
646
  const o = document.createElement("div"), a = {
647
647
  setup() {
648
648
  return () => Q(
@@ -655,7 +655,7 @@ function Ln(t) {
655
655
  ...t
656
656
  },
657
657
  {
658
- default: () => Q(n, l)
658
+ default: () => Q(l, n)
659
659
  }
660
660
  );
661
661
  }
@@ -671,9 +671,9 @@ function Ln(t) {
671
671
  function Wt({
672
672
  component: t,
673
673
  componentProps: e,
674
- delay: n = 300
674
+ delay: l = 300
675
675
  }) {
676
- const l = `${n}ms`, { load: o } = Ye(
676
+ const n = `${l}ms`, { load: o } = Ke(
677
677
  `@keyframes lzcDelayLoad {
678
678
  to {
679
679
  opacity: 1;
@@ -681,10 +681,10 @@ function Wt({
681
681
  }
682
682
  .lzc-delay-loading {
683
683
  opacity: 0;
684
- animation: lzcDelayLoad 0s ${l} forwards;
684
+ animation: lzcDelayLoad 0s ${n} forwards;
685
685
  }`
686
686
  );
687
- return { LoadingComp: K({
687
+ return { LoadingComp: N({
688
688
  setup() {
689
689
  const s = xt();
690
690
  return oe(() => {
@@ -693,15 +693,15 @@ function Wt({
693
693
  }
694
694
  }) };
695
695
  }
696
- function On({
696
+ function Tl({
697
697
  component: t,
698
698
  componentProps: e,
699
- delay: n = 300
699
+ delay: l = 300
700
700
  }) {
701
- const { LoadingComp: l } = Wt({
701
+ const { LoadingComp: n } = Wt({
702
702
  component: t,
703
703
  componentProps: e,
704
- delay: n
704
+ delay: l
705
705
  }), o = h(!1);
706
706
  function a() {
707
707
  o.value = !0;
@@ -709,17 +709,26 @@ function On({
709
709
  function s() {
710
710
  o.value = !1;
711
711
  }
712
- return { LoadingComp: l, loading: o, load: a, unload: s };
712
+ return { LoadingComp: n, loading: o, load: a, unload: s };
713
713
  }
714
- const Nt = {}, Vt = (t) => (ce("data-v-144e7b01"), t = t(), de(), t), jt = /* @__PURE__ */ Vt(() => /* @__PURE__ */ T("div", { class: "ldio-mm5gwljcryb" }, [
714
+ const Nt = (t) => (ce("data-v-d0ad7597"), t = t(), de(), t), Vt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ T("div", { class: "ldio-mm5gwljcryb" }, [
715
715
  /* @__PURE__ */ T("div")
716
- ], -1)), Yt = [
717
- jt
718
- ];
719
- function Kt(t, e) {
720
- return M(), A("div", he(pe(t.$attrs)), Yt, 16);
721
- }
722
- const $n = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-144e7b01"]]), Ut = ["onClick"], qt = /* @__PURE__ */ K({
716
+ ], -1)), jt = [
717
+ Vt
718
+ ], Yt = /* @__PURE__ */ N({
719
+ __name: "DefaultLoading",
720
+ props: {
721
+ width: { default: 24 },
722
+ height: { default: 24 }
723
+ },
724
+ setup(t) {
725
+ return ke((e) => ({
726
+ d8dfa9f0: t.width + "px",
727
+ "2941c2e5": t.height + "px"
728
+ })), (e, l) => (M(), A("div", he(pe(e.$attrs)), jt, 16));
729
+ }
730
+ });
731
+ const Ll = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-d0ad7597"]]), Kt = ["onClick"], Ut = /* @__PURE__ */ N({
723
732
  __name: "Toast",
724
733
  props: {
725
734
  message: null,
@@ -727,7 +736,7 @@ const $n = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-144e7b01
727
736
  buttonClickEvent: null
728
737
  },
729
738
  setup(t) {
730
- const e = t, n = h(), l = h(), o = h(), a = w(() => {
739
+ const e = t, l = h(), n = h(), o = h(), a = b(() => {
731
740
  switch (e.position) {
732
741
  case "top":
733
742
  return 10;
@@ -736,14 +745,14 @@ const $n = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-144e7b01
736
745
  case "bottom":
737
746
  return 85;
738
747
  }
739
- }), s = w(() => ({
748
+ }), s = b(() => ({
740
749
  position: "absolute",
741
750
  borderRadius: "10px",
742
751
  backgroundColor: "rgba(0, 0, 0, 0.8)",
743
752
  padding: "14px 19px",
744
753
  top: `calc(${a.value}% - ${o.value}px)`,
745
- left: `calc(50% - ${l.value}px)`
746
- })), i = w(() => ({
754
+ left: `calc(50% - ${n.value}px)`
755
+ })), i = b(() => ({
747
756
  width: "fit-content",
748
757
  display: "flex",
749
758
  justifyContent: "center",
@@ -755,43 +764,43 @@ const $n = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-144e7b01
755
764
  !e.buttonClickEvent || e.buttonClickEvent();
756
765
  }
757
766
  return _e(() => {
758
- l.value = n.value.offsetWidth / 2, o.value = n.value.offsetHeight / 2;
767
+ n.value = l.value.offsetWidth / 2, o.value = l.value.offsetHeight / 2;
759
768
  }), (v, c) => (M(), A("div", {
760
769
  onClick: Ae(f, ["stop"]),
761
770
  id: "toastWrapper",
762
771
  ref_key: "toastWrapper",
763
- ref: n,
772
+ ref: l,
764
773
  class: "toastWrapper",
765
774
  style: W([B(s), { zIndex: 9999999 }])
766
775
  }, [
767
776
  T("div", {
768
777
  style: W(B(i))
769
778
  }, [
770
- T("span", null, ke(t.message), 1)
779
+ T("span", null, ze(t.message), 1)
771
780
  ], 4)
772
- ], 12, Ut));
781
+ ], 12, Kt));
773
782
  }
774
783
  });
775
- const Qt = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-533e986b"]]), Re = {
784
+ const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-533e986b"]]), Re = {
776
785
  message: "\u61D2\u732B\u4E91 Yes!!!",
777
786
  position: "middle",
778
787
  duration: 1500,
779
788
  buttonClickEvent: () => {
780
789
  }
781
790
  };
782
- class Dn {
791
+ class Ol {
783
792
  options;
784
793
  container;
785
794
  constructor(e) {
786
795
  this.options = e, this.container = document.createElement("div");
787
796
  }
788
797
  present() {
789
- const e = Q(Q(Qt), { ...Re, ...this.options });
798
+ const e = Q(Q(qt), { ...Re, ...this.options });
790
799
  ue(e, this.container), document.body.insertBefore(this.container, document.body.firstChild);
791
- const n = this.options.duration || Re.duration;
800
+ const l = this.options.duration || Re.duration;
792
801
  setTimeout(() => {
793
802
  this.dismiss();
794
- }, n);
803
+ }, l);
795
804
  }
796
805
  dismiss() {
797
806
  if (this.container) {
@@ -804,7 +813,7 @@ class Dn {
804
813
  }
805
814
  }
806
815
  }
807
- const Gt = ["xlink:href", "fill", "color"], Rn = /* @__PURE__ */ K({
816
+ const Qt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ N({
808
817
  __name: "SvgIcon",
809
818
  props: {
810
819
  name: null,
@@ -814,31 +823,31 @@ const Gt = ["xlink:href", "fill", "color"], Rn = /* @__PURE__ */ K({
814
823
  height: null
815
824
  },
816
825
  setup(t) {
817
- const e = t, n = w(() => `#${e.prefix}-${e.name}`), l = w(() => ({
826
+ const e = t, l = b(() => `#${e.prefix}-${e.name}`), n = b(() => ({
818
827
  width: `${e.width ?? e.height}px`,
819
828
  height: `${e.height ?? e.width}px`,
820
829
  aspectRatio: e.width && e.height ? void 0 : "1/1"
821
830
  }));
822
831
  return (o, a) => (M(), A("svg", {
823
832
  "aria-hidden": "",
824
- style: W(B(l))
833
+ style: W(B(n))
825
834
  }, [
826
835
  T("use", {
827
- "xlink:href": B(n),
836
+ "xlink:href": B(l),
828
837
  fill: t.color,
829
838
  color: t.color
830
- }, null, 8, Gt)
839
+ }, null, 8, Qt)
831
840
  ], 4));
832
841
  }
833
842
  });
834
- function Xt(t) {
843
+ function Gt(t) {
835
844
  const {
836
845
  containerEl: e,
837
- sliderEl: n,
838
- autoHeight: l,
846
+ sliderEl: l,
847
+ autoHeight: n,
839
848
  performance: o = {},
840
849
  maxHeightRatio: a = 0.9
841
- } = t, s = h(!0), i = Ne(G, 100);
850
+ } = t, s = h(!0), i = Ve(G, 100);
842
851
  let f, v = "";
843
852
  const c = h(0), d = h(0), u = h(0), r = h({
844
853
  top: 0,
@@ -847,16 +856,16 @@ function Xt(t) {
847
856
  clientHeight: 0
848
857
  }), p = h({
849
858
  clientHeight: 0
850
- }), S = w(() => !!d.value), E = w(() => r.value.scrollHeight > r.value.clientHeight), b = w(() => r.value.clientHeight - p.value.clientHeight), C = w(() => r.value.scrollHeight - r.value.clientHeight), P = w(() => Math.max(
859
+ }), S = b(() => !!d.value), E = b(() => r.value.scrollHeight > r.value.clientHeight), w = b(() => r.value.clientHeight - p.value.clientHeight), C = b(() => r.value.scrollHeight - r.value.clientHeight), P = b(() => Math.max(
851
860
  r.value.clientHeight / r.value.scrollHeight,
852
861
  0.05
853
- )), N = w(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = w(() => ({
862
+ )), V = b(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = b(() => ({
854
863
  willChange: "transform",
855
864
  transform: `translate3d(0,${u.value}px,0)`,
856
- height: l ? `${N.value}px` : void 0
865
+ height: n ? `${V.value}px` : void 0
857
866
  }));
858
867
  function $(R) {
859
- O(), d.value = R.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(e.value).scrollBehavior, v === "smooth" && (e.value.style.scrollBehavior = "unset");
868
+ O(), d.value = R.clientY - l.value.getBoundingClientRect().top || 1, v = getComputedStyle(e.value).scrollBehavior, v === "smooth" && (e.value.style.scrollBehavior = "unset");
860
869
  }
861
870
  function x() {
862
871
  e.value.style.scrollBehavior = v, d.value = 0, i();
@@ -871,8 +880,8 @@ function Xt(t) {
871
880
  if (!S.value)
872
881
  return;
873
882
  let D = R.clientY - r.value.top - d.value;
874
- D < 0 ? u.value = 0 : D >= b.value ? u.value = b.value : u.value = D, e.value.scrollTo({
875
- top: u.value / b.value * C.value
883
+ D < 0 ? u.value = 0 : D >= w.value ? u.value = w.value : u.value = D, e.value.scrollTo({
884
+ top: u.value / w.value * C.value
876
885
  });
877
886
  }
878
887
  function k() {
@@ -882,28 +891,28 @@ function Xt(t) {
882
891
  cancelAnimationFrame(f), f = requestAnimationFrame(se);
883
892
  }
884
893
  function se() {
885
- e.value && (c.value = o.scrollTop?.value ?? e.value.scrollTop, u.value = c.value / C.value * b.value);
894
+ e.value && (c.value = o.scrollTop?.value ?? e.value.scrollTop, u.value = c.value / C.value * w.value);
886
895
  }
887
896
  function Z(R) {
888
897
  let D = "addEventListener";
889
- R === "add" ? D = "addEventListener" : D = "removeEventListener", n.value?.[D]("pointerdown", $, {
898
+ R === "add" ? D = "addEventListener" : D = "removeEventListener", l.value?.[D]("pointerdown", $, {
890
899
  passive: !0
891
900
  }), window[D]("pointermove", X, { passive: !0 }), window[D]("pointerup", x, { passive: !0 });
892
901
  }
893
902
  const te = new MutationObserver((R) => {
894
- R.map((ne) => ne.oldValue).join().includes("height") && g();
903
+ R.map((le) => le.oldValue).join().includes("height") && g();
895
904
  });
896
905
  function g() {
897
906
  r.value.top = e.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = e.value?.scrollHeight ?? 0, r.value.clientHeight = e.value?.clientHeight ?? 0;
898
907
  }
899
908
  function y() {
900
909
  O(), setTimeout(() => {
901
- p.value.clientHeight = n.value?.clientHeight ?? 0, G();
910
+ p.value.clientHeight = l.value?.clientHeight ?? 0, G();
902
911
  }, 150);
903
912
  }
904
- function F(R, D, ne = "dynamic-styles") {
905
- let q = document.getElementById(ne);
906
- q || (q = document.createElement("style"), q.id = ne, document.head.appendChild(q));
913
+ function F(R, D, le = "dynamic-styles") {
914
+ let q = document.getElementById(le);
915
+ q || (q = document.createElement("style"), q.id = le, document.head.appendChild(q));
907
916
  const ae = q.sheet.cssRules, re = ae.length, m = `${R} { ${D} }`;
908
917
  for (let _ = 0; _ < re; _++) {
909
918
  const I = ae[_];
@@ -913,7 +922,7 @@ function Xt(t) {
913
922
  q.sheet.insertRule(m, re);
914
923
  }
915
924
  function H() {
916
- e.value && n.value ? (F(
925
+ e.value && l.value ? (F(
917
926
  ".hide-scrollbar",
918
927
  "scrollbar-width: none; -ms-overflow-style: none;"
919
928
  ), F(".hide-scrollbar::-webkit-scrollbar", "display: none"), e.value.classList.add("hide-scrollbar"), e.value.addEventListener("scroll", k, {
@@ -924,9 +933,9 @@ function Xt(t) {
924
933
  attributeFilter: ["style"]
925
934
  }), setTimeout(() => {
926
935
  g();
927
- }, 100), y()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: n });
936
+ }, 100), y()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: l });
928
937
  }
929
- return Y(c, () => {
938
+ return K(c, () => {
930
939
  O(), i();
931
940
  }), {
932
941
  isScrollEnd: s,
@@ -939,7 +948,7 @@ function Xt(t) {
939
948
  modifySliderEventListener: Z
940
949
  };
941
950
  }
942
- const Zt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Jt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ T("div", { class: "default-slider" }, null, -1)), en = /* @__PURE__ */ K({
951
+ const Xt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Zt = /* @__PURE__ */ Xt(() => /* @__PURE__ */ T("div", { class: "default-slider" }, null, -1)), Jt = /* @__PURE__ */ N({
943
952
  __name: "ScrollBar",
944
953
  props: {
945
954
  containerEl: null,
@@ -948,12 +957,12 @@ const Zt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Jt = /* @__PURE__ *
948
957
  performance: null
949
958
  },
950
959
  setup(t, { expose: e }) {
951
- const n = t, l = !!ct().default, o = h(null), a = w(() => n.containerEl), s = Xt({
960
+ const l = t, n = !!dt().default, o = h(null), a = b(() => l.containerEl), s = Gt({
952
961
  containerEl: a,
953
962
  sliderEl: o,
954
- autoHeight: l ? n.autoHeight : !0,
955
- performance: n.performance
956
- }), { scrollable: i, isScrollEnd: f, sliderPos: v } = s, c = h(!1), d = n.autoHide ? w(() => c.value || !f.value) : w(() => i.value);
963
+ autoHeight: n ? l.autoHeight : !0,
964
+ performance: l.performance
965
+ }), { scrollable: i, isScrollEnd: f, sliderPos: v } = s, c = h(!1), d = l.autoHide ? b(() => c.value || !f.value) : b(() => i.value);
957
966
  oe(() => {
958
967
  _e(() => {
959
968
  s.init();
@@ -969,7 +978,7 @@ const Zt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Jt = /* @__PURE__ *
969
978
  }
970
979
  return e({ uScrollBarReturn: s }), (p, S) => (M(), Me(Pe, null, {
971
980
  default: He(() => [
972
- dt(T("div", {
981
+ vt(T("div", {
973
982
  ref_key: "sliderRef",
974
983
  ref: o,
975
984
  class: "slider-wrapper",
@@ -978,23 +987,23 @@ const Zt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Jt = /* @__PURE__ *
978
987
  style: W(B(v))
979
988
  }, [
980
989
  ye(p.$slots, "default", {}, () => [
981
- Jt
990
+ Zt
982
991
  ], !0)
983
992
  ], 36), [
984
- [vt, B(d)]
993
+ [ft, B(d)]
985
994
  ])
986
995
  ]),
987
996
  _: 3
988
997
  }));
989
998
  }
990
999
  });
991
- const Bn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-edec7292"]]), tn = (t) => (ce("data-v-18377f18"), t = t(), de(), t), nn = { class: "pull-refresh" }, ln = {
1000
+ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (t) => (ce("data-v-18377f18"), t = t(), de(), t), tl = { class: "pull-refresh" }, ll = {
992
1001
  key: 0,
993
1002
  class: "pull-arrow-circle"
994
- }, on = {
1003
+ }, nl = {
995
1004
  key: 0,
996
1005
  class: "box-load"
997
- }, sn = { class: "left-load" }, an = { class: "right-load" }, rn = /* @__PURE__ */ tn(() => /* @__PURE__ */ T("div", { class: "among-load" }, null, -1)), un = { class: "pull-arrow" }, cn = { key: 1 }, dn = /* @__PURE__ */ K({
1006
+ }, ol = { class: "left-load" }, sl = { class: "right-load" }, al = /* @__PURE__ */ el(() => /* @__PURE__ */ T("div", { class: "among-load" }, null, -1)), rl = { class: "pull-arrow" }, ul = { key: 1 }, il = /* @__PURE__ */ N({
998
1007
  __name: "PullRefresh",
999
1008
  props: {
1000
1009
  refresh: null,
@@ -1003,34 +1012,34 @@ const Bn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-edec7292"]]), tn = (t) =
1003
1012
  pullRefreshContainer: null
1004
1013
  },
1005
1014
  setup(t) {
1006
- const e = t, n = 0.7, l = "#2EC1CC", o = h(-999), a = h(1), s = h(0), i = h(0.3), f = h(!1), v = h(0), c = h(0), d = h(0), u = h(0), r = h(0), p = h(), S = w(() => e.scrollTop), E = w(() => ({
1015
+ const e = t, l = 0.7, n = "#2EC1CC", o = h(-999), a = h(1), s = h(0), i = h(0.3), f = h(!1), v = h(0), c = h(0), d = h(0), u = h(0), r = h(0), p = h(), S = b(() => e.scrollTop), E = b(() => ({
1007
1016
  transition: `${u.value}ms`,
1008
1017
  transform: `translate3d(0,${o.value}px, 0) scale(${a.value})`
1009
- })), b = w(() => ({
1010
- borderColor: l,
1018
+ })), w = b(() => ({
1019
+ borderColor: n,
1011
1020
  transition: u.value,
1012
1021
  transform: `rotate(${100 + s.value}deg)`,
1013
1022
  opacity: i.value
1014
1023
  }));
1015
- Y(r, (x) => {
1024
+ K(r, (x) => {
1016
1025
  x === 0 && (o.value = -50, i.value = 0.3);
1017
- }), Y(c, (x) => {
1026
+ }), K(c, (x) => {
1018
1027
  if (r.value === 2)
1019
1028
  return;
1020
- const O = Math.pow(x, n);
1029
+ const O = Math.pow(x, l);
1021
1030
  O === 0 && (o.value = -50), O <= 50 && O > 0 && (o.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ? f.value = !0 : f.value = !1), O > 50 && (o.value = 5, i.value = 1, r.value);
1022
1031
  });
1023
1032
  const C = h(0), P = (x) => {
1024
1033
  C.value = x.touches[0].pageY;
1025
- }, N = (x) => {
1034
+ }, V = (x) => {
1026
1035
  const O = x.touches[0].pageY - C.value;
1027
- C.value = x.touches[0].pageY, !e.refreshOff && (!e?.refresh || r.value !== 2 && S.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), d.value = 0, $.value.style.transition = `${d.value}ms`, u.value = 0, c.value = x.touches[0].pageY - v.value, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, O > 0 && x.preventDefault()));
1036
+ C.value = x.touches[0].pageY, !e.refreshOff && (!e?.refresh || r.value !== 2 && S.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), d.value = 0, $.value.style.transition = `${d.value}ms`, u.value = 0, c.value = x.touches[0].pageY - v.value, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, l)}px, 0)`, O > 0 && x.preventDefault()));
1028
1037
  }, U = () => {
1029
1038
  if (e.refreshOff || !e?.refresh || r.value === 2)
1030
1039
  return;
1031
1040
  v.value = 0, d.value = 300;
1032
- const x = Math.pow(c.value, n);
1033
- $.value.style.transition = `${d.value}ms`, x > 50 ? (r.value = 2, c.value = Math.pow(50, 1 / n), $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, u.value = 300, e?.refresh && e?.refresh().then(() => {
1041
+ const x = Math.pow(c.value, l);
1042
+ $.value.style.transition = `${d.value}ms`, x > 50 ? (r.value = 2, c.value = Math.pow(50, 1 / l), $.value.style.transform = `translate3d(0, ${Math.pow(c.value, l)}px, 0)`, u.value = 300, e?.refresh && e?.refresh().then(() => {
1034
1043
  p.value = "\u5237\u65B0\u6210\u529F";
1035
1044
  }).catch(() => {
1036
1045
  p.value = "\u5237\u65B0\u5931\u8D25";
@@ -1038,46 +1047,46 @@ const Bn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-edec7292"]]), tn = (t) =
1038
1047
  setTimeout(() => {
1039
1048
  r.value = 0, c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
1040
1049
  c.value,
1041
- n
1050
+ l
1042
1051
  )}px, 0)`, setTimeout(() => {
1043
1052
  p.value = void 0;
1044
1053
  }, u.value);
1045
1054
  }, 600);
1046
- })) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
1055
+ })) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, l)}px, 0)`);
1047
1056
  }, $ = h(null);
1048
1057
  return oe(() => {
1049
1058
  e?.refreshOff || ($.value = document.querySelector(
1050
1059
  e.pullRefreshContainer
1051
- ), $.value?.addEventListener("touchstart", P), $.value?.addEventListener("touchmove", N), $.value?.addEventListener("touchend", U));
1052
- }), (x, O) => (M(), A("div", nn, [
1060
+ ), $.value?.addEventListener("touchstart", P), $.value?.addEventListener("touchmove", V), $.value?.addEventListener("touchend", U));
1061
+ }), (x, O) => (M(), A("div", tl, [
1053
1062
  T("div", {
1054
1063
  class: "pull-refresh-box",
1055
1064
  style: W(B(E))
1056
1065
  }, [
1057
- p.value ? (M(), A("div", cn, ke(p.value), 1)) : (M(), A("div", ln, [
1058
- r.value == 2 ? (M(), A("div", on, [
1059
- T("div", sn, [
1066
+ p.value ? (M(), A("div", ul, ze(p.value), 1)) : (M(), A("div", ll, [
1067
+ r.value == 2 ? (M(), A("div", nl, [
1068
+ T("div", ol, [
1060
1069
  T("div", {
1061
1070
  class: "left-circle",
1062
- style: W({ backgroundColor: l })
1071
+ style: W({ backgroundColor: n })
1063
1072
  }, null, 4)
1064
1073
  ]),
1065
- T("div", an, [
1074
+ T("div", sl, [
1066
1075
  T("div", {
1067
1076
  class: "right-circle",
1068
- style: W({ backgroundColor: l })
1077
+ style: W({ backgroundColor: n })
1069
1078
  }, null, 4)
1070
1079
  ]),
1071
- rn
1080
+ al
1072
1081
  ])) : (M(), A("div", {
1073
1082
  key: 1,
1074
1083
  class: "pull-circle-line",
1075
- style: W(B(b))
1084
+ style: W(B(w))
1076
1085
  }, [
1077
- T("div", un, [
1086
+ T("div", rl, [
1078
1087
  T("div", {
1079
1088
  class: Fe(["arrows", { opacity: f.value }]),
1080
- style: W({ borderBottomColor: l })
1089
+ style: W({ borderBottomColor: n })
1081
1090
  }, null, 6)
1082
1091
  ])
1083
1092
  ], 4))
@@ -1086,10 +1095,10 @@ const Bn = /* @__PURE__ */ J(en, [["__scopeId", "data-v-edec7292"]]), tn = (t) =
1086
1095
  ]));
1087
1096
  }
1088
1097
  });
1089
- const vn = /* @__PURE__ */ J(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1098
+ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-18377f18"]]), dl = {
1090
1099
  inheritAttrs: !1
1091
- }, hn = /* @__PURE__ */ K({
1092
- ...fn,
1100
+ }, vl = /* @__PURE__ */ N({
1101
+ ...dl,
1093
1102
  __name: "VirtualList",
1094
1103
  props: {
1095
1104
  data: null,
@@ -1099,12 +1108,12 @@ const vn = /* @__PURE__ */ J(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1099
1108
  refreshOff: { type: Boolean, default: !1 }
1100
1109
  },
1101
1110
  emits: ["scrollEnd"],
1102
- setup(t, { expose: e, emit: n }) {
1103
- const l = t, o = At(ft(l, "data"), {
1104
- itemHeight: (u) => l.itemHeight(l.data[u]),
1105
- overscan: l.overscan,
1111
+ setup(t, { expose: e, emit: l }) {
1112
+ const n = t, o = At(ht(n, "data"), {
1113
+ itemHeight: (u) => n.itemHeight(n.data[u]),
1114
+ overscan: n.overscan,
1106
1115
  scrollEndHook: () => {
1107
- n("scrollEnd");
1116
+ l("scrollEnd");
1108
1117
  }
1109
1118
  }), {
1110
1119
  list: a,
@@ -1119,7 +1128,7 @@ const vn = /* @__PURE__ */ J(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1119
1128
  });
1120
1129
  const d = "virtualListWrapper" + new Date().getTime();
1121
1130
  return (u, r) => (M(), A(Ee, null, [
1122
- ht(vn, {
1131
+ pt(cl, {
1123
1132
  refresh: t.refresh,
1124
1133
  refreshOff: t.refreshOff,
1125
1134
  scrollTop: B(c),
@@ -1129,14 +1138,14 @@ const vn = /* @__PURE__ */ J(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1129
1138
  class: "virtualListWrapper",
1130
1139
  id: d
1131
1140
  }, [
1132
- T("div", pt({
1141
+ T("div", mt({
1133
1142
  onScrollPassive: r[0] || (r[0] = (...p) => B(s).onScroll && B(s).onScroll(...p)),
1134
1143
  ref: B(s).ref,
1135
1144
  class: "virtualList"
1136
1145
  }, u.$attrs), [
1137
1146
  T("div", he(pe(B(i))), [
1138
1147
  T("div", he(pe(B(f))), [
1139
- (M(!0), A(Ee, null, mt(B(a), ({ index: p, data: S }) => (M(), A("div", {
1148
+ (M(!0), A(Ee, null, gt(B(a), ({ index: p, data: S }) => (M(), A("div", {
1140
1149
  key: p,
1141
1150
  style: W({
1142
1151
  height: `${B(v)(p).height}px`,
@@ -1155,7 +1164,7 @@ const vn = /* @__PURE__ */ J(dn, [["__scopeId", "data-v-18377f18"]]), fn = {
1155
1164
  ], 64));
1156
1165
  }
1157
1166
  });
1158
- const In = /* @__PURE__ */ J(hn, [["__scopeId", "data-v-e0fb787f"]]), we = (t) => (ce("data-v-40e00f20"), t = t(), de(), t), pn = { style: { position: "absolute" } }, mn = /* @__PURE__ */ we(() => /* @__PURE__ */ T("div", { class: "wrapper" }, null, -1)), gn = ["width", "height"], _n = /* @__PURE__ */ we(() => /* @__PURE__ */ T("title", null, "logo", -1)), yn = /* @__PURE__ */ we(() => /* @__PURE__ */ T("g", {
1167
+ const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]), be = (t) => (ce("data-v-40e00f20"), t = t(), de(), t), fl = { style: { position: "absolute" } }, hl = /* @__PURE__ */ be(() => /* @__PURE__ */ T("div", { class: "wrapper" }, null, -1)), pl = ["width", "height"], ml = /* @__PURE__ */ be(() => /* @__PURE__ */ T("title", null, "logo", -1)), gl = /* @__PURE__ */ be(() => /* @__PURE__ */ T("g", {
1159
1168
  id: "group-1",
1160
1169
  stroke: "none",
1161
1170
  "stroke-width": "1",
@@ -1167,10 +1176,10 @@ const In = /* @__PURE__ */ J(hn, [["__scopeId", "data-v-e0fb787f"]]), we = (t) =
1167
1176
  id: "path-1",
1168
1177
  fill: "#FFF"
1169
1178
  })
1170
- ], -1)), bn = [
1171
- _n,
1172
- yn
1173
- ], wn = /* @__PURE__ */ K({
1179
+ ], -1)), _l = [
1180
+ ml,
1181
+ gl
1182
+ ], yl = /* @__PURE__ */ N({
1174
1183
  __name: "Loading",
1175
1184
  props: {
1176
1185
  width: { default: "90" },
@@ -1179,12 +1188,12 @@ const In = /* @__PURE__ */ J(hn, [["__scopeId", "data-v-e0fb787f"]]), we = (t) =
1179
1188
  },
1180
1189
  setup(t) {
1181
1190
  const e = t;
1182
- gt((l) => ({
1183
- "703ef503": n
1191
+ ke((n) => ({
1192
+ "703ef503": l
1184
1193
  }));
1185
- const n = `${e.duration}ms`;
1186
- return (l, o) => (M(), A("div", pn, [
1187
- mn,
1194
+ const l = `${e.duration}ms`;
1195
+ return (n, o) => (M(), A("div", fl, [
1196
+ hl,
1188
1197
  (M(), A("svg", {
1189
1198
  style: { position: "relative" },
1190
1199
  width: t.width,
@@ -1192,36 +1201,36 @@ const In = /* @__PURE__ */ J(hn, [["__scopeId", "data-v-e0fb787f"]]), we = (t) =
1192
1201
  viewBox: "0 0 260 260",
1193
1202
  version: "1.1",
1194
1203
  xmlns: "http://www.w3.org/2000/svg"
1195
- }, bn, 8, gn))
1204
+ }, _l, 8, pl))
1196
1205
  ]));
1197
1206
  }
1198
1207
  });
1199
- const Mn = /* @__PURE__ */ J(wn, [["__scopeId", "data-v-40e00f20"]]);
1208
+ const Bl = /* @__PURE__ */ J(yl, [["__scopeId", "data-v-40e00f20"]]);
1200
1209
  export {
1201
- $n as DefaultLoading,
1202
- Mn as Loading,
1203
- vn as PullRefresh,
1204
- Bn as ScrollBar,
1205
- Rn as SvgIcon,
1206
- Dn as ToastCreator,
1207
- In as VirtualList,
1208
- Qe as allSelectedKey,
1210
+ Ll as DefaultLoading,
1211
+ Bl as Loading,
1212
+ cl as PullRefresh,
1213
+ Dl as ScrollBar,
1214
+ $l as SvgIcon,
1215
+ Ol as ToastCreator,
1216
+ Rl as VirtualList,
1217
+ Ge as allSelectedKey,
1209
1218
  Ft as closeDialogKey,
1210
- Ln as dialogController,
1211
- Je as isAllSelectedKey,
1212
- qe as isSelectedKey,
1213
- Xe as selectAllKey,
1214
- Ge as selectKey,
1215
- Ke as toggleAllKey,
1216
- Ue as toggleKey,
1217
- et as unselectAllKey,
1218
- Ze as unselectKey,
1219
- On as useDelayLoad,
1219
+ xl as dialogController,
1220
+ et as isAllSelectedKey,
1221
+ Qe as isSelectedKey,
1222
+ Ze as selectAllKey,
1223
+ Xe as selectKey,
1224
+ Ue as toggleAllKey,
1225
+ qe as toggleKey,
1226
+ tt as unselectAllKey,
1227
+ Je as unselectKey,
1228
+ Tl as useDelayLoad,
1220
1229
  Wt as useDelayLoadComp,
1221
- tt as useDragSelect,
1222
- Tn as useDragSelectByMobile,
1223
- xn as useDragSelectByPc,
1224
- Sn as useSelectable,
1225
- En as useSelectableInjectors,
1230
+ lt as useDragSelect,
1231
+ Sl as useDragSelectByMobile,
1232
+ El as useDragSelectByPc,
1233
+ Cl as useSelectable,
1234
+ bl as useSelectableInjectors,
1226
1235
  At as useVirtualList
1227
1236
  };