@lazycatcloud/lzc-toolkit 0.0.90 → 0.0.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getCurrentScope as st, onScopeDispose as at, getCurrentInstance as $e, onMounted as ne, nextTick as me, ref as p, watch as K, customRef as rt, unref as R, readonly as ut, onUpdated as it, shallowRef as ct, computed as w, onUnmounted as Re, inject as V, provide as W, defineComponent as N, h as Q, render as se, openBlock as I, createBlock as Ie, Transition as Be, withCtx as Me, withDirectives as Pe, createElementBlock as A, createElementVNode as x, withModifiers as He, normalizeClass as Ae, renderSlot as ge, createCommentVNode as dt, useCssVars as Fe, normalizeProps as ve, guardReactiveProps as fe, pushScopeId as re, popScopeId as ue, normalizeStyle as Y, toDisplayString as ke, useSlots as vt, vShow as ft, toRef as ht, Fragment as we, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
1
+ import { getCurrentScope as st, onScopeDispose as at, getCurrentInstance as $e, onMounted as ne, nextTick as me, ref as p, watch as Y, customRef as rt, unref as R, readonly as ut, onUpdated as it, shallowRef as ct, computed as b, onUnmounted as Re, inject as V, provide as z, defineComponent as N, h as Q, render as se, openBlock as I, createBlock as Ie, Transition as Be, withCtx as Me, withDirectives as Pe, createElementBlock as H, createElementVNode as x, withModifiers as He, normalizeClass as Ae, renderSlot as ge, createCommentVNode as dt, useCssVars as Fe, normalizeProps as ve, guardReactiveProps as fe, pushScopeId as re, popScopeId as ue, normalizeStyle as W, toDisplayString as ke, useSlots as vt, vShow as ft, toRef as ht, Fragment as be, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
2
2
  const _t = {
3
3
  created(e, t) {
4
4
  let n, o;
@@ -28,9 +28,9 @@ const _t = {
28
28
  e.addEventListener("click", a);
29
29
  }
30
30
  };
31
- var Ce;
32
- const le = typeof window < "u", Ee = (e) => typeof e == "function";
33
- le && ((Ce = window?.navigator) == null ? void 0 : Ce.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
31
+ var Ee;
32
+ const le = typeof window < "u", Ce = (e) => typeof e == "function";
33
+ le && ((Ee = window?.navigator) == null ? void 0 : Ee.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
34
34
  function ae(e) {
35
35
  return typeof e == "function" ? e() : R(e);
36
36
  }
@@ -53,7 +53,7 @@ function yt(e, t = {}) {
53
53
  }, s);
54
54
  };
55
55
  }
56
- function bt(e, t = !0, n = !0) {
56
+ function wt(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 bt(e, t = !0, n = !0) {
67
67
  }, v)), !n && !l && (l = setTimeout(() => a = !0, v)), a = !1;
68
68
  };
69
69
  }
70
- function wt(e) {
70
+ function bt(e) {
71
71
  return e;
72
72
  }
73
- function Ct(e, t) {
73
+ function Et(e, t) {
74
74
  let n, o, l;
75
75
  const a = p(!0), s = () => {
76
76
  a.value = !0, l();
77
77
  };
78
- K(e, s, { flush: "sync" });
79
- const r = Ee(t) ? t : t.get, h = Ee(t) ? void 0 : t.set, v = rt((i, c) => (o = i, l = c, {
78
+ Y(e, s, { flush: "sync" });
79
+ const r = Ce(t) ? t : t.get, h = Ce(t) ? void 0 : t.set, v = rt((i, c) => (o = i, l = c, {
80
80
  get() {
81
81
  return a.value && (n = r(), a.value = !1), o(), n;
82
82
  },
@@ -93,7 +93,7 @@ function Ye(e, t = 200, n = {}) {
93
93
  return ze(yt(t, n), e);
94
94
  }
95
95
  function Se(e, t = 200, n = !1, o = !0) {
96
- return ze(bt(t, n, o), e);
96
+ return ze(wt(t, n, o), e);
97
97
  }
98
98
  function Ne(e, t = !0) {
99
99
  $e() ? ne(e) : t ? e() : me(e);
@@ -103,7 +103,7 @@ function je(e) {
103
103
  const n = ae(e);
104
104
  return (t = n?.$el) != null ? t : n;
105
105
  }
106
- const Et = le ? window : void 0, St = le ? window.document : void 0;
106
+ const Ct = le ? window : void 0, St = le ? window.document : void 0;
107
107
  le && window.navigator;
108
108
  le && window.location;
109
109
  function xt(e, t = !1) {
@@ -114,7 +114,7 @@ const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window :
114
114
  he[pe] = he[pe] || {};
115
115
  he[pe];
116
116
  function Lt() {
117
- const e = $e(), t = Ct(() => null, () => e.proxy.$el);
117
+ const e = $e(), t = Et(() => null, () => e.proxy.$el);
118
118
  return it(t.trigger), ne(t.trigger), t;
119
119
  }
120
120
  var xe = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Ot = Object.prototype.propertyIsEnumerable, Dt = (e, t) => {
@@ -127,11 +127,11 @@ var xe = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Ot
127
127
  return n;
128
128
  };
129
129
  function $t(e, t, n = {}) {
130
- const o = n, { window: l = Et } = o, a = Dt(o, ["window"]);
130
+ const o = n, { window: l = Ct } = o, a = Dt(o, ["window"]);
131
131
  let s;
132
132
  const r = xt(() => l && "ResizeObserver" in l), h = () => {
133
133
  s && (s.disconnect(), s = void 0);
134
- }, v = K(() => je(e), (c) => {
134
+ }, v = Y(() => je(e), (c) => {
135
135
  h(), r.value && l && c && (s = new ResizeObserver(t), s.observe(c, a));
136
136
  }, { immediate: !0, flush: "post" }), i = () => {
137
137
  h(), v();
@@ -146,7 +146,7 @@ function Rt(e, t = { width: 0, height: 0 }, n = {}) {
146
146
  return $t(e, ([s]) => {
147
147
  const r = o === "border-box" ? s.borderBoxSize : o === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
148
148
  r ? (l.value = r.reduce((h, { inlineSize: v }) => h + v, 0), a.value = r.reduce((h, { blockSize: v }) => h + v, 0)) : (l.value = s.contentRect.width, a.value = s.contentRect.height);
149
- }, n), K(() => je(e), (s) => {
149
+ }, n), Y(() => je(e), (s) => {
150
150
  l.value = s ? t.width : 0, a.value = s ? t.height : 0;
151
151
  }), {
152
152
  width: l,
@@ -171,7 +171,7 @@ function _e(e, t = {}) {
171
171
  if (!o)
172
172
  return;
173
173
  const c = o.getElementById(s) || o.createElement("style");
174
- c.type = "text/css", c.id = s, t.media && (c.media = t.media), o.head.appendChild(c), !n.value && (h = K(r, (d) => {
174
+ c.type = "text/css", c.id = s, t.media && (c.media = t.media), o.head.appendChild(c), !n.value && (h = Y(r, (d) => {
175
175
  c.innerText = d;
176
176
  }, { immediate: !0 }), n.value = !0);
177
177
  }, i = () => {
@@ -220,31 +220,37 @@ const At = {
220
220
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
221
221
  };
222
222
  Ht({
223
- linear: wt
223
+ linear: bt
224
224
  }, At);
225
225
  function Ft(e, t) {
226
226
  const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = p(null), s = Rt(a), r = p(!0), h = Ye(U, 100);
227
227
  let v;
228
228
  const i = ct(e), c = p(0), d = p({ start: 0, end: 10 }), u = p({ start: 0, end: l });
229
229
  let f = 0;
230
- const T = p([]), m = w(() => {
231
- let { sum: E, height: b } = { sum: 0, height: 0 };
232
- return i.value.map((P, H) => (typeof o == "number" ? b = o : b = o(H), E += b, { height: b, sum: E }));
233
- }), C = w(() => X(d.value.start)), y = w(() => typeof o == "number" ? m.value.length * o : m.value[m.value.length - 1]?.sum || 0), M = w(() => {
234
- const { start: E, end: b } = u.value;
235
- return T.value.slice(E, b);
230
+ const O = p([]), m = b(() => {
231
+ let { sum: E, height: w } = { sum: 0, height: 0 };
232
+ return i.value.map((M, P) => (typeof o == "number" ? w = o : w = o(P), E += w, { height: w, sum: E }));
233
+ }), _ = b(() => X(d.value.start)), C = b(() => typeof o == "number" ? m.value.length * o : m.value[m.value.length - 1]?.sum || 0), A = b(() => {
234
+ const { start: E, end: w } = u.value;
235
+ return O.value.slice(E, w);
236
236
  });
237
237
  ne(() => {
238
- }), Re(() => cancelAnimationFrame(v)), K(
239
- [s.width, s.height, i],
240
- ([E, b]) => {
241
- (E || b) && D();
238
+ }), Re(() => cancelAnimationFrame(v)), Y(
239
+ i,
240
+ () => {
241
+ (s.width.value || s.height.value) && D();
242
242
  },
243
243
  { deep: !0 }
244
- ), K(c, () => {
245
- z(), h();
244
+ ), Y(
245
+ [s.width, s.height],
246
+ ([E, w]) => {
247
+ (E || w) && D();
248
+ },
249
+ { deep: !0 }
250
+ ), Y(c, () => {
251
+ K(), h();
246
252
  });
247
- function z() {
253
+ function K() {
248
254
  r.value = !1;
249
255
  }
250
256
  function U() {
@@ -258,65 +264,65 @@ function Ft(e, t) {
258
264
  c.value = a.value.scrollTop;
259
265
  let E = $(c.value);
260
266
  f = q(E);
261
- let b = Math.max(0, E - l), P = Math.min(
267
+ let w = Math.max(0, E - l), M = Math.min(
262
268
  E + f + l,
263
269
  i.value.length
264
270
  );
265
- d.value = { start: b, end: P }, T.value = i.value.slice(b, P).map((H, O) => ({
266
- data: H,
267
- index: O + b
268
- })), u.value.start = E - b, u.value.end = u.value.start + f;
271
+ d.value = { start: w, end: M }, O.value = i.value.slice(w, M).map((P, T) => ({
272
+ data: P,
273
+ index: T + w
274
+ })), u.value.start = E - w, u.value.end = u.value.start + f;
269
275
  }
270
276
  }
271
277
  function $(E) {
272
- let b = 0, P = m.value.length - 1, H = -1;
273
- for (; b <= P; ) {
274
- const O = Math.floor((b + P) / 2);
275
- m.value[O].sum >= E ? (H = O, P = O - 1) : b = O + 1;
278
+ let w = 0, M = m.value.length - 1, P = -1;
279
+ for (; w <= M; ) {
280
+ const T = Math.floor((w + M) / 2);
281
+ m.value[T].sum >= E ? (P = T, M = T - 1) : w = T + 1;
276
282
  }
277
- return Math.max(0, H);
283
+ return Math.max(0, P);
278
284
  }
279
285
  function q(E) {
280
- let b = 0, P = 0;
281
- for (let H = E; H < m.value.length && (b++, P += m.value[H].height, !(P >= s.height.value)); H++)
286
+ let w = 0, M = 0;
287
+ for (let P = E; P < m.value.length && (w++, M += m.value[P].height, !(M >= s.height.value)); P++)
282
288
  ;
283
- return b;
289
+ return w;
284
290
  }
285
291
  function X(E) {
286
292
  if (typeof o == "number")
287
293
  return E * o;
288
- let b = m.value[E];
289
- return b ? b.sum - b.height : 0;
294
+ let w = m.value[E];
295
+ return w ? w.sum - w.height : 0;
290
296
  }
291
297
  function k(E) {
292
298
  return m.value[E] || { sum: 0, height: 0 };
293
299
  }
294
300
  function J(E) {
295
301
  if (a.value) {
296
- const b = k(E);
297
- a.value.scrollTop = b.sum - b.height, S();
302
+ const w = k(E);
303
+ a.value.scrollTop = w.sum - w.height, S();
298
304
  }
299
305
  }
300
- const oe = w(() => ({
306
+ const oe = b(() => ({
301
307
  style: {
302
308
  width: "100%",
303
- height: `${y.value}px`,
309
+ height: `${C.value}px`,
304
310
  pointerEvents: r.value ? void 0 : "none"
305
311
  }
306
- })), ee = w(() => ({
312
+ })), ee = b(() => ({
307
313
  style: {
308
- transform: `translate3d(0, ${C.value}px, 0)`,
314
+ transform: `translate3d(0, ${_.value}px, 0)`,
309
315
  "will-change": "transform"
310
316
  }
311
317
  })), G = {
312
318
  overflowY: "auto"
313
319
  };
314
320
  return {
315
- list: T,
316
- visiableList: M,
321
+ list: O,
322
+ visiableList: A,
317
323
  getItemHeightData: k,
318
324
  getoffsetTopIndex: $,
319
- totalHeight: y,
325
+ totalHeight: C,
320
326
  clientHeight: s.height,
321
327
  scrollTo: J,
322
328
  scrollTop: c,
@@ -338,8 +344,8 @@ function xn() {
338
344
  voidFn: (u) => {
339
345
  },
340
346
  boolFn: (u) => !1,
341
- boolRef: w(() => !1),
342
- arrayRef: w(() => [])
347
+ boolRef: b(() => !1),
348
+ arrayRef: b(() => [])
343
349
  }, l = V(qe, o), a = V(Ue, t), s = V(Ze, n), r = V(Ke, e), h = V(Ve, e), v = V(Qe, e), i = V(Xe, e), c = V(Ge, e), d = V(Je, e);
344
350
  return {
345
351
  selected: l,
@@ -354,7 +360,7 @@ function xn() {
354
360
  };
355
361
  }
356
362
  function Ln(e, t) {
357
- const n = p({}), o = w(() => e.value.filter((d) => n.value[d[t]])), l = w(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
363
+ const n = p({}), o = b(() => e.value.filter((d) => n.value[d[t]])), l = b(() => o.value.length != 0 && Object.keys(n.value).length == e.value.length);
358
364
  function a() {
359
365
  e.value.forEach((d) => {
360
366
  n.value[d[t]] = !0;
@@ -384,7 +390,7 @@ function Ln(e, t) {
384
390
  function c() {
385
391
  l.value ? s() : a();
386
392
  }
387
- return W(Ve, c), W(Ke, i), W(Ue, v), W(qe, o), W(Qe, r), W(Xe, a), W(Ge, h), W(Ze, l), W(Je, s), {
393
+ return z(Ve, c), z(Ke, i), z(Ue, v), z(qe, o), z(Qe, r), z(Xe, a), z(Ge, h), z(Ze, l), z(Je, s), {
388
394
  selected: o,
389
395
  select: r,
390
396
  selectAll: a,
@@ -413,36 +419,36 @@ function et({
413
419
  unselectAll: s = de("\u53D6\u6D88\u5168\u9009")
414
420
  } = o();
415
421
  let r = {};
416
- const h = w(
422
+ const h = b(
417
423
  () => Se(t === "colum" ? tt : nt, 50)
418
- ), v = /* @__PURE__ */ new Set(), i = p(!0), c = p(), d = p(!1), u = p({ x: 0, y: 0 }), f = p({ x: 0, y: 0, scrollTop: 0 }), T = new ResizeObserver(
424
+ ), v = /* @__PURE__ */ new Set(), i = p(!0), c = p(), d = p(!1), u = p({ x: 0, y: 0 }), f = p({ x: 0, y: 0, scrollTop: 0 }), O = new ResizeObserver(
419
425
  (g) => m.value = g[0].target.getBoundingClientRect()
420
- ), m = p({}), C = p({
426
+ ), m = p({}), _ = p({
421
427
  top: 0,
422
428
  height: 0,
423
429
  sync(g = !1) {
424
- C.value.top = c.value?.scrollTop || 0, g && (C.value.height = c.value?.scrollHeight || 0);
430
+ _.value.top = c.value?.scrollTop || 0, g && (_.value.height = c.value?.scrollHeight || 0);
425
431
  }
426
- }), y = w(() => d.value ? {
432
+ }), C = b(() => d.value ? {
427
433
  left: Math.min(u.value.x, f.value.x) - m.value.left,
428
434
  top: Math.min(u.value.y, f.value.y) - m.value.top,
429
435
  width: Math.abs(u.value.x - f.value.x),
430
436
  height: Math.abs(u.value.y - f.value.y)
431
- } : { left: 0, top: 0, width: 0, height: 0 }), { margin: M = 50, startSpeed: z = 30, maxSpeed: U = 30 } = n;
437
+ } : { left: 0, top: 0, width: 0, height: 0 }), { margin: A = 50, startSpeed: K = 30, maxSpeed: U = 30 } = n;
432
438
  let D;
433
- const S = M, $ = z, q = U, X = (g) => g ** 1;
439
+ const S = A, $ = K, q = U, X = (g) => g ** 1;
434
440
  let k = 0;
435
441
  function J(g) {
436
442
  if (cancelAnimationFrame(D), k = oe(g), k = Math.max(
437
443
  Math.min(k, q),
438
444
  -q
439
445
  ), k !== 0) {
440
- const _ = c.value;
441
- if (!_ || !d.value)
446
+ const y = c.value;
447
+ if (!y || !d.value)
442
448
  return;
443
- const F = C.value.height - m.value.height;
444
- let L = C.value.top + Number(k);
445
- L = Math.min(Math.max(0, L), F), _.scrollTop = L, G(), D = requestAnimationFrame(() => J(g));
449
+ const F = _.value.height - m.value.height;
450
+ let L = _.value.top + Number(k);
451
+ L = Math.min(Math.max(0, L), F), y.scrollTop = L, G(), D = requestAnimationFrame(() => J(g));
446
452
  }
447
453
  }
448
454
  function oe(g) {
@@ -457,48 +463,48 @@ function et({
457
463
  return 0;
458
464
  }
459
465
  function ee(g) {
460
- const _ = { ...y.value, right: 0, bottom: 0 };
461
- return _.left += m.value.left, _.top += m.value.top - C.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < g.right && _.right > g.left && _.top < g.bottom && _.bottom > g.top;
466
+ const y = { ...C.value, right: 0, bottom: 0 };
467
+ return y.left += m.value.left, y.top += m.value.top - _.value.top, y.right = y.width + y.left, y.bottom = y.height + y.top, y.left < g.right && y.right > g.left && y.top < g.bottom && y.bottom > g.top;
462
468
  }
463
469
  function G() {
464
- C.value.sync();
465
- const { top: g, height: _ } = C.value;
470
+ _.value.sync();
471
+ const { top: g, height: y } = _.value;
466
472
  f.value.y = Math.min(
467
- _ + m.value.top,
473
+ y + m.value.top,
468
474
  f.value.y + g - f.value.scrollTop
469
475
  ), f.value.scrollTop = g;
470
476
  }
471
- function E(g, _, F = "dynamic-styles") {
477
+ function E(g, y, F = "dynamic-styles") {
472
478
  let L = document.getElementById(F);
473
479
  L || (L = document.createElement("style"), L.id = F, document.head.appendChild(L));
474
- const j = L.sheet.cssRules, te = j.length, lt = `${g} { ${_} }`;
480
+ const j = L.sheet.cssRules, te = j.length, lt = `${g} { ${y} }`;
475
481
  for (let ce = 0; ce < te; ce++) {
476
- const be = j[ce];
477
- if (be.selectorText === g && be.style.cssText === _)
482
+ const we = j[ce];
483
+ if (we.selectorText === g && we.style.cssText === y)
478
484
  return;
479
485
  }
480
486
  L.sheet.insertRule(lt, te);
481
487
  }
482
- function b(g, _) {
483
- i.value = !0, d.value = !0, C.value.height ? C.value.sync() : C.value.sync(!0), u.value.x = g, u.value.y = _ + C.value.top, f.value.x = u.value.x, f.value.y = u.value.y, c.value?.classList.add("disable-scroll-behavior"), v.clear();
488
+ function w(g, y) {
489
+ i.value = !0, d.value = !0, _.value.height ? _.value.sync() : _.value.sync(!0), u.value.x = g, u.value.y = y + _.value.top, f.value.x = u.value.x, f.value.y = u.value.y, c.value?.classList.add("disable-scroll-behavior"), v.clear();
484
490
  }
485
- function P(g, _, F) {
486
- !d.value || (i.value && t === "colum" && !B() && (s(), i.value = !1), F?.(), J(_), f.value.x = Math.max(g, m.value.left), f.value.y = Math.min(
487
- _ + C.value.top,
488
- C.value.height + m.value.top
489
- ), f.value.scrollTop = C.value.top, h.value());
491
+ function M(g, y, F) {
492
+ !d.value || (i.value && t === "colum" && !B() && (s(), i.value = !1), F?.(), J(y), f.value.x = Math.max(g, m.value.left), f.value.y = Math.min(
493
+ y + _.value.top,
494
+ _.value.height + m.value.top
495
+ ), f.value.scrollTop = _.value.top, h.value());
490
496
  }
491
- function H() {
497
+ function P() {
492
498
  d.value = !1, c.value?.classList.remove("disable-scroll-behavior");
493
499
  }
494
- function O() {
500
+ function T() {
495
501
  !d.value || (k || G(), h.value());
496
502
  }
497
503
  function B() {
498
504
  if (!d.value)
499
505
  return !1;
500
- const { width: g, height: _ } = y.value;
501
- return !(Math.max(g, _) > 5);
506
+ const { width: g, height: y } = C.value;
507
+ return !(Math.max(g, y) > 5);
502
508
  }
503
509
  function ie() {
504
510
  B() && s();
@@ -510,33 +516,33 @@ function et({
510
516
  }
511
517
  function nt() {
512
518
  const g = [];
513
- let _ = null, F = 0;
519
+ let y = null, F = 0;
514
520
  c.value?.querySelectorAll(`[${e}]`).forEach((L, j) => {
515
521
  const te = L.getAttribute(`${e}`);
516
- g.push(te), ee(L.getBoundingClientRect()) ? (_ === null && (_ = j), _ = Math.min(_, j), F = Math.max(F, j)) : (r[`${e}`] = te, v.has(te) && a([r]));
522
+ g.push(te), ee(L.getBoundingClientRect()) ? (y === null && (y = j), y = Math.min(y, j), F = Math.max(F, j)) : (r[`${e}`] = te, v.has(te) && a([r]));
517
523
  });
518
- for (let L = _; L < F + 1; L++)
524
+ for (let L = y; L < F + 1; L++)
519
525
  r[`${e}`] = g[L], l([r]), v.add(g[L]);
520
526
  }
521
527
  function ot(g) {
522
- return !g?.value || (c.value = g.value, !c?.value) ? !1 : (T.observe(c.value), E(
528
+ return !g?.value || (c.value = g.value, !c?.value) ? !1 : (O.observe(c.value), E(
523
529
  ".disable-scroll-behavior",
524
530
  "scroll-behavior: unset !important;"
525
531
  ), !0);
526
532
  }
527
533
  return {
528
534
  init: ot,
529
- dragStart: b,
530
- dragMove: P,
531
- dragEnd: H,
532
- onScroll: O,
535
+ dragStart: w,
536
+ dragMove: M,
537
+ dragEnd: P,
538
+ onScroll: T,
533
539
  isSingleClick: B,
534
540
  cancelSelectAllBySingleClick: ie,
535
541
  selectFn: h,
536
- selectRange: y,
542
+ selectRange: C,
537
543
  isPressing: d,
538
544
  containerEl: c,
539
- observer: T
545
+ observer: O
540
546
  };
541
547
  }
542
548
  function Tn(e) {
@@ -546,20 +552,20 @@ function Tn(e) {
546
552
  dragMove: s,
547
553
  dragEnd: r,
548
554
  cancelSelectAllBySingleClick: h
549
- } = t, v = w(() => ({
555
+ } = t, v = b(() => ({
550
556
  left: `${o.value.left}px`,
551
557
  top: `${o.value.top}px`,
552
558
  width: `${o.value.width}px`,
553
559
  height: `${o.value.height}px`
554
- })), { load: i, unload: c } = _e(
560
+ })), { load: i } = _e(
555
561
  `.drag-select-box {
556
562
  position: absolute;
557
563
  z-index: 99999;
558
564
  background-color: rgb(191 219 254);
559
565
  opacity: 0.5;
560
566
  }`,
561
- { id: "styletag_lzc_dragselect" }
562
- ), d = N({
567
+ { id: "styletag_lzc_dragselect", manual: !0 }
568
+ ), c = N({
563
569
  render() {
564
570
  return Q("div", {
565
571
  id: "selectBoxEl",
@@ -568,30 +574,30 @@ function Tn(e) {
568
574
  });
569
575
  }
570
576
  });
571
- function u(y) {
572
- y.button === 0 && a(y.x, y.y);
577
+ function d(_) {
578
+ _.button === 0 && a(_.x, _.y);
573
579
  }
574
- function f(y) {
575
- s(y.x, y.y);
580
+ function u(_) {
581
+ s(_.x, _.y);
576
582
  }
577
- function T(y) {
578
- y.composedPath().some((z) => z?.getAttribute?.(e.attribute)) || h(), r();
583
+ function f(_) {
584
+ _.composedPath().some((A) => A?.getAttribute?.(e.attribute)) || h(), r();
579
585
  }
580
- function m(y) {
586
+ function O(_) {
581
587
  try {
582
- if (!t.init(y))
588
+ if (!t.init(_))
583
589
  throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
584
590
  if (!t.containerEl?.value)
585
591
  return !1;
586
- se(Q(d), t.containerEl.value), i(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", u), window.addEventListener("mousemove", f), window.addEventListener("mouseup", T);
587
- } catch (M) {
588
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", M);
592
+ se(Q(c), t.containerEl.value), i(), t.containerEl.value?.addEventListener("scroll", l), t.containerEl.value?.addEventListener("mousedown", d), window.addEventListener("mousemove", u), window.addEventListener("mouseup", f);
593
+ } catch (C) {
594
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", C);
589
595
  }
590
596
  }
591
- function C() {
592
- c(), n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", u), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", T);
597
+ function m() {
598
+ n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", d), window.removeEventListener("mousemove", u), window.removeEventListener("mouseup", f);
593
599
  }
594
- return { init: m, unMount: C };
600
+ return { init: O, unMount: m };
595
601
  }
596
602
  function On(e, t, n = 600) {
597
603
  const o = et({
@@ -607,15 +613,15 @@ function On(e, t, n = 600) {
607
613
  clearTimeout(v);
608
614
  }
609
615
  function c(m) {
610
- i(), m.composedPath().some((y) => !!y?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
611
- const { clientX: y, clientY: M } = m.targetTouches[0];
612
- s(y, M), t?.(), r(y, M, () => m.preventDefault()), m.preventDefault();
616
+ i(), m.composedPath().some((C) => !!C?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
617
+ const { clientX: C, clientY: A } = m.targetTouches[0];
618
+ s(C, A), t?.(), r(C, A, () => m.preventDefault()), m.preventDefault();
613
619
  }, n));
614
620
  }
615
621
  function d(m) {
616
622
  i();
617
- const { clientX: C, clientY: y } = m.targetTouches[0];
618
- r(C, y, () => m.preventDefault());
623
+ const { clientX: _, clientY: C } = m.targetTouches[0];
624
+ r(_, C, () => m.preventDefault());
619
625
  }
620
626
  function u() {
621
627
  i(), h();
@@ -627,14 +633,14 @@ function On(e, t, n = 600) {
627
633
  if (!o.containerEl?.value)
628
634
  return !1;
629
635
  o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart", c), o.containerEl.value?.addEventListener("touchmove", d), window.addEventListener("touchcancel", u), window.addEventListener("touchend", u);
630
- } catch (C) {
631
- console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", C);
636
+ } catch (_) {
637
+ console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", _);
632
638
  }
633
639
  }
634
- function T() {
640
+ function O() {
635
641
  l.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart", c), o.containerEl.value?.removeEventListener("touchmove", d), window.removeEventListener("touchcancel", u), window.removeEventListener("touchEnd", u);
636
642
  }
637
- return { init: f, unMount: T };
643
+ return { init: f, unMount: O };
638
644
  }
639
645
  const kt = Symbol(), zt = {
640
646
  key: 0,
@@ -651,9 +657,9 @@ const kt = Symbol(), zt = {
651
657
  const n = e, o = () => {
652
658
  n.closeOnClickOverlay && t("update:visiable", !1);
653
659
  };
654
- return W(kt, () => t("update:visiable", !1)), (l, a) => (I(), Ie(Be, { name: "modal" }, {
660
+ return z(kt, () => t("update:visiable", !1)), (l, a) => (I(), Ie(Be, { name: "modal" }, {
655
661
  default: Me(() => [
656
- e.visiable ? Pe((I(), A("div", zt, [
662
+ e.visiable ? Pe((I(), H("div", zt, [
657
663
  x("div", {
658
664
  onMousedown: a[0] || (a[0] = He(() => {
659
665
  }, ["stop"])),
@@ -707,7 +713,8 @@ function Nt({
707
713
  componentProps: t,
708
714
  delay: n = 300
709
715
  }) {
710
- const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, a = `${n}ms`, { load: s } = _e(
716
+ const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, a = `${n}ms`;
717
+ return _e(
711
718
  `@keyframes lzcDelayLoad {
712
719
  to {
713
720
  opacity: 1;
@@ -717,12 +724,11 @@ function Nt({
717
724
  opacity: 0;
718
725
  animation: lzcDelayLoad 0s ${a} forwards;
719
726
  }`
720
- );
721
- return { LoadingComp: N({
727
+ ), { LoadingComp: N({
722
728
  setup() {
723
- const h = Lt();
729
+ const r = Lt();
724
730
  return ne(() => {
725
- s(), h.value.classList.add(l);
731
+ r.value.classList.add(l);
726
732
  }), () => Q(e, t);
727
733
  }
728
734
  }) };
@@ -759,7 +765,7 @@ const jt = (e) => (re("data-v-d0ad7597"), e = e(), ue(), e), Vt = /* @__PURE__ *
759
765
  return Fe((t) => ({
760
766
  d8dfa9f0: e.width + "px",
761
767
  "2941c2e5": e.height + "px"
762
- })), (t, n) => (I(), A("div", ve(fe(t.$attrs)), Kt, 16));
768
+ })), (t, n) => (I(), H("div", ve(fe(t.$attrs)), Kt, 16));
763
769
  }
764
770
  });
765
771
  const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ N({
@@ -770,7 +776,7 @@ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
770
776
  buttonClickEvent: null
771
777
  },
772
778
  setup(e) {
773
- const t = e, n = p(), o = p(), l = p(), a = w(() => {
779
+ const t = e, n = p(), o = p(), l = p(), a = b(() => {
774
780
  switch (t.position) {
775
781
  case "top":
776
782
  return 10;
@@ -779,14 +785,14 @@ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
779
785
  case "bottom":
780
786
  return 85;
781
787
  }
782
- }), s = w(() => ({
788
+ }), s = b(() => ({
783
789
  position: "absolute",
784
790
  borderRadius: "10px",
785
791
  backgroundColor: "rgba(0, 0, 0, 0.8)",
786
792
  padding: "14px 19px",
787
793
  top: `calc(${a.value}% - ${l.value}px)`,
788
794
  left: `calc(50% - ${o.value}px)`
789
- })), r = w(() => ({
795
+ })), r = b(() => ({
790
796
  width: "fit-content",
791
797
  display: "flex",
792
798
  justifyContent: "center",
@@ -799,16 +805,16 @@ const Rn = /* @__PURE__ */ Z(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
799
805
  }
800
806
  return me(() => {
801
807
  o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
802
- }), (v, i) => (I(), A("div", {
808
+ }), (v, i) => (I(), H("div", {
803
809
  onClick: He(h, ["stop"]),
804
810
  id: "toastWrapper",
805
811
  ref_key: "toastWrapper",
806
812
  ref: n,
807
813
  class: "toastWrapper",
808
- style: Y([R(s), { zIndex: 9999999 }])
814
+ style: W([R(s), { zIndex: 9999999 }])
809
815
  }, [
810
816
  x("div", {
811
- style: Y(R(r))
817
+ style: W(R(r))
812
818
  }, [
813
819
  x("span", null, ke(e.message), 1)
814
820
  ], 4)
@@ -857,14 +863,14 @@ const Gt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ N({
857
863
  height: null
858
864
  },
859
865
  setup(e) {
860
- const t = e, n = w(() => `#${t.prefix}-${t.name}`), o = w(() => ({
866
+ const t = e, n = b(() => `#${t.prefix}-${t.name}`), o = b(() => ({
861
867
  width: `${t.width ?? t.height}px`,
862
868
  height: `${t.height ?? t.width}px`,
863
869
  aspectRatio: t.width && t.height ? void 0 : "1/1"
864
870
  }));
865
- return (l, a) => (I(), A("svg", {
871
+ return (l, a) => (I(), H("svg", {
866
872
  "aria-hidden": "",
867
- style: Y(R(o))
873
+ style: W(R(o))
868
874
  }, [
869
875
  x("use", {
870
876
  "xlink:href": R(n),
@@ -889,18 +895,18 @@ function Zt(e) {
889
895
  scrollTop: 0,
890
896
  scrollHeight: 0,
891
897
  clientHeight: 0
892
- }), T = p({
898
+ }), O = p({
893
899
  clientHeight: 0
894
- }), m = w(() => !!d.value), C = w(() => f.value.scrollHeight > f.value.clientHeight), y = w(() => o ? f.value.clientHeight - U.value : f.value.clientHeight - T.value.clientHeight), M = w(() => f.value.scrollHeight - f.value.clientHeight), z = w(() => Math.max(
900
+ }), m = b(() => !!d.value), _ = b(() => f.value.scrollHeight > f.value.clientHeight), C = b(() => o ? f.value.clientHeight - U.value : f.value.clientHeight - O.value.clientHeight), A = b(() => f.value.scrollHeight - f.value.clientHeight), K = b(() => Math.max(
895
901
  f.value.clientHeight / f.value.scrollHeight,
896
902
  0.05
897
- )), U = w(() => z.value > a ? 0 : z.value * f.value.clientHeight), D = w(() => ({
903
+ )), U = b(() => K.value > a ? 0 : K.value * f.value.clientHeight), D = b(() => ({
898
904
  willChange: "transform",
899
905
  transform: `translate3d(0,${u.value}px,0)`,
900
906
  height: o ? `${U.value}px` : void 0
901
907
  }));
902
- function S(O) {
903
- q(), d.value = O.clientY - n.value.getBoundingClientRect().top || 1, i = getComputedStyle(t.value).scrollBehavior, i === "smooth" && (t.value.style.scrollBehavior = "unset");
908
+ function S(T) {
909
+ q(), d.value = T.clientY - n.value.getBoundingClientRect().top || 1, i = getComputedStyle(t.value).scrollBehavior, i === "smooth" && (t.value.style.scrollBehavior = "unset");
904
910
  }
905
911
  function $() {
906
912
  t.value.style.scrollBehavior = i, d.value = 0, h();
@@ -911,12 +917,12 @@ function Zt(e) {
911
917
  function X() {
912
918
  m.value || (r.value = !0);
913
919
  }
914
- function k(O) {
920
+ function k(T) {
915
921
  if (!m.value)
916
922
  return;
917
- let B = O.clientY - f.value.top - d.value;
918
- B < 0 ? u.value = 0 : B >= y.value ? u.value = y.value : u.value = B, t.value.scrollTo({
919
- top: u.value / y.value * M.value
923
+ let B = T.clientY - f.value.top - d.value;
924
+ B < 0 ? u.value = 0 : B >= C.value ? u.value = C.value : u.value = B, t.value.scrollTo({
925
+ top: u.value / C.value * A.value
920
926
  });
921
927
  }
922
928
  function J() {
@@ -926,55 +932,55 @@ function Zt(e) {
926
932
  cancelAnimationFrame(v), v = requestAnimationFrame(ee);
927
933
  }
928
934
  function ee() {
929
- t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, u.value = c.value / M.value * y.value);
935
+ t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, u.value = c.value / A.value * C.value);
930
936
  }
931
- function G(O) {
937
+ function G(T) {
932
938
  let B = "addEventListener";
933
- O === "add" ? B = "addEventListener" : B = "removeEventListener", n.value?.[B]("pointerdown", S, {
939
+ T === "add" ? B = "addEventListener" : B = "removeEventListener", n.value?.[B]("pointerdown", S, {
934
940
  passive: !0
935
941
  }), window[B]("pointermove", k, { passive: !0 }), window[B]("pointerup", $, { passive: !0 });
936
942
  }
937
- const E = new MutationObserver((O) => {
938
- (s == "classList" || O.map((ie) => ie.oldValue).join().includes("height")) && b();
943
+ const E = new MutationObserver((T) => {
944
+ (s == "classList" || T.map((ie) => ie.oldValue).join().includes("height")) && w();
939
945
  });
940
- function b() {
946
+ function w() {
941
947
  f.value.top = t.value?.getBoundingClientRect().top ?? 0, f.value.scrollHeight = t.value?.scrollHeight ?? 0, f.value.clientHeight = t.value?.clientHeight ?? 0;
942
948
  }
943
- function P() {
949
+ function M() {
944
950
  q(), setTimeout(() => {
945
- T.value.clientHeight = n.value?.clientHeight ?? 0, X();
951
+ O.value.clientHeight = n.value?.clientHeight ?? 0, X();
946
952
  }, 150);
947
953
  }
948
- function H() {
954
+ function P() {
949
955
  if (t.value && n.value) {
950
956
  t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", J, {
951
957
  passive: !0
952
958
  }), G("add");
953
- const O = {};
954
- s === "classList" ? Object.assign(O, { subtree: !0, childList: !0 }) : Object.assign(O, {
959
+ const T = {};
960
+ s === "classList" ? Object.assign(T, { subtree: !0, childList: !0 }) : Object.assign(T, {
955
961
  subtree: !0,
956
962
  attributeOldValue: !0,
957
963
  attributeFilter: ["style"]
958
- }), E.observe(t.value, O), setTimeout(() => {
959
- b();
960
- }, 100), P();
964
+ }), E.observe(t.value, T), setTimeout(() => {
965
+ w();
966
+ }, 100), M();
961
967
  } else
962
968
  console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
963
969
  }
964
- return K(c, () => {
970
+ return Y(c, () => {
965
971
  q(), h();
966
972
  }), {
967
973
  isScrollEnd: r,
968
974
  isDragSlider: m,
969
975
  offsetTop: u,
970
976
  scrollTop: c,
971
- scrollable: C,
977
+ scrollable: _,
972
978
  sliderPos: D,
973
- init: H,
979
+ init: P,
974
980
  modifySliderEventListener: G
975
981
  };
976
982
  }
977
- const Jt = (e) => (re("data-v-0abfb56c"), e = e(), ue(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */ N({
983
+ const Jt = (e) => (re("data-v-efefe52c"), e = e(), ue(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ x("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */ N({
978
984
  __name: "ScrollBar",
979
985
  props: {
980
986
  containerEl: null,
@@ -984,13 +990,13 @@ const Jt = (e) => (re("data-v-0abfb56c"), e = e(), ue(), e), en = /* @__PURE__ *
984
990
  performance: null
985
991
  },
986
992
  setup(e, { expose: t }) {
987
- const n = e, o = !!vt().default, l = p(null), a = w(() => n.containerEl), s = Zt({
993
+ const n = e, o = !!vt().default, l = p(null), a = b(() => n.containerEl), s = Zt({
988
994
  containerEl: a,
989
995
  sliderEl: l,
990
996
  autoHeight: o ? n.autoHeight : !0,
991
997
  performance: n.performance,
992
998
  observeMethod: n.observeMethod
993
- }), { scrollable: r, isScrollEnd: h, sliderPos: v } = s, i = p(!1), c = n.autoHide ? w(() => i.value || !h.value) : w(() => r.value), { load: d, unload: u } = _e(
999
+ }), { scrollable: r, isScrollEnd: h, sliderPos: v } = s, i = p(!1), c = n.autoHide ? b(() => i.value || !h.value) : b(() => r.value), { load: d } = _e(
994
1000
  `.hide-scrollbar {
995
1001
  scrollbar-width: none;
996
1002
  -ms-overflow-style: none;
@@ -998,32 +1004,32 @@ const Jt = (e) => (re("data-v-0abfb56c"), e = e(), ue(), e), en = /* @__PURE__ *
998
1004
  .hide-scrollbar::-webkit-scrollbar {
999
1005
  display: none;
1000
1006
  }`,
1001
- { id: "styletag_lzc_scrollbar" }
1007
+ { id: "styletag_lzc_scrollbar", manual: !0 }
1002
1008
  );
1003
1009
  ne(() => {
1004
1010
  d(), me(() => {
1005
1011
  s.init();
1006
1012
  });
1007
1013
  }), Re(() => {
1008
- u(), s.modifySliderEventListener("remove");
1014
+ s.modifySliderEventListener("remove");
1009
1015
  });
1010
- function f() {
1016
+ function u() {
1011
1017
  i.value = !0;
1012
1018
  }
1013
- function T() {
1019
+ function f() {
1014
1020
  i.value = !1;
1015
1021
  }
1016
- return t({ uScrollBarReturn: s }), (m, C) => (I(), Ie(Be, null, {
1022
+ return t({ uScrollBarReturn: s }), (O, m) => (I(), Ie(Be, null, {
1017
1023
  default: Me(() => [
1018
1024
  Pe(x("div", {
1019
1025
  ref_key: "sliderRef",
1020
1026
  ref: l,
1021
1027
  class: "slider-wrapper",
1022
- onMouseenter: f,
1023
- onMouseleave: T,
1024
- style: Y(R(v))
1028
+ onMouseenter: u,
1029
+ onMouseleave: f,
1030
+ style: W(R(v))
1025
1031
  }, [
1026
- ge(m.$slots, "default", {}, () => [
1032
+ ge(O.$slots, "default", {}, () => [
1027
1033
  en
1028
1034
  ], !0)
1029
1035
  ], 36), [
@@ -1034,7 +1040,7 @@ const Jt = (e) => (re("data-v-0abfb56c"), e = e(), ue(), e), en = /* @__PURE__ *
1034
1040
  }));
1035
1041
  }
1036
1042
  });
1037
- const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-0abfb56c"]]), nn = (e) => (re("data-v-18377f18"), e = e(), ue(), e), on = { class: "pull-refresh" }, ln = {
1043
+ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-efefe52c"]]), nn = (e) => (re("data-v-18377f18"), e = e(), ue(), e), on = { class: "pull-refresh" }, ln = {
1038
1044
  key: 0,
1039
1045
  class: "pull-arrow-circle"
1040
1046
  }, sn = {
@@ -1049,28 +1055,28 @@ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-0abfb56c"]]), nn = (e) =
1049
1055
  pullRefreshContainer: null
1050
1056
  },
1051
1057
  setup(e) {
1052
- const t = e, n = 0.7, o = "#2EC1CC", l = p(-999), a = p(1), s = p(0), r = p(0.3), h = p(!1), v = p(0), i = p(0), c = p(0), d = p(0), u = p(0), f = p(), T = w(() => t.scrollTop), m = w(() => ({
1058
+ const t = e, n = 0.7, o = "#2EC1CC", l = p(-999), a = p(1), s = p(0), r = p(0.3), h = p(!1), v = p(0), i = p(0), c = p(0), d = p(0), u = p(0), f = p(), O = b(() => t.scrollTop), m = b(() => ({
1053
1059
  transition: `${d.value}ms`,
1054
1060
  transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
1055
- })), C = w(() => ({
1061
+ })), _ = b(() => ({
1056
1062
  borderColor: o,
1057
1063
  transition: d.value,
1058
1064
  transform: `rotate(${100 + s.value}deg)`,
1059
1065
  opacity: r.value
1060
1066
  }));
1061
- K(u, (S) => {
1067
+ Y(u, (S) => {
1062
1068
  S === 0 && (l.value = -50, r.value = 0.3);
1063
- }), K(i, (S) => {
1069
+ }), Y(i, (S) => {
1064
1070
  if (u.value === 2)
1065
1071
  return;
1066
1072
  const $ = Math.pow(S, n);
1067
1073
  $ === 0 && (l.value = -50), $ <= 50 && $ > 0 && (l.value = $ - 45, s.value = Math.pow($, 1.5), $ > 15 ? h.value = !0 : h.value = !1), $ > 50 && (l.value = 5, r.value = 1, u.value);
1068
1074
  });
1069
- const y = p(0), M = (S) => {
1070
- y.value = S.touches[0].pageY;
1071
- }, z = (S) => {
1072
- const $ = S.touches[0].pageY - y.value;
1073
- y.value = S.touches[0].pageY, !t.refreshOff && (!t?.refresh || u.value !== 2 && T.value === 0 && (v.value === 0 && (v.value = S.touches[0].pageY), c.value = 0, D.value.style.transition = `${c.value}ms`, d.value = 0, i.value = S.touches[0].pageY - v.value, D.value.style.transform = `translate3d(0, ${Math.pow(i.value, n)}px, 0)`, $ > 0 && S.preventDefault()));
1075
+ const C = p(0), A = (S) => {
1076
+ C.value = S.touches[0].pageY;
1077
+ }, K = (S) => {
1078
+ const $ = S.touches[0].pageY - C.value;
1079
+ C.value = S.touches[0].pageY, !t.refreshOff && (!t?.refresh || u.value !== 2 && O.value === 0 && (v.value === 0 && (v.value = S.touches[0].pageY), c.value = 0, D.value.style.transition = `${c.value}ms`, d.value = 0, i.value = S.touches[0].pageY - v.value, D.value.style.transform = `translate3d(0, ${Math.pow(i.value, n)}px, 0)`, $ > 0 && S.preventDefault()));
1074
1080
  }, U = () => {
1075
1081
  if (t.refreshOff || !t?.refresh || u.value === 2)
1076
1082
  return;
@@ -1094,36 +1100,36 @@ const Mn = /* @__PURE__ */ Z(tn, [["__scopeId", "data-v-0abfb56c"]]), nn = (e) =
1094
1100
  return ne(() => {
1095
1101
  t?.refreshOff || (D.value = document.querySelector(
1096
1102
  t.pullRefreshContainer
1097
- ), D.value?.addEventListener("touchstart", M), D.value?.addEventListener("touchmove", z), D.value?.addEventListener("touchend", U));
1098
- }), (S, $) => (I(), A("div", on, [
1103
+ ), D.value?.addEventListener("touchstart", A), D.value?.addEventListener("touchmove", K), D.value?.addEventListener("touchend", U));
1104
+ }), (S, $) => (I(), H("div", on, [
1099
1105
  x("div", {
1100
1106
  class: "pull-refresh-box",
1101
- style: Y(R(m))
1107
+ style: W(R(m))
1102
1108
  }, [
1103
- f.value ? (I(), A("div", dn, ke(f.value), 1)) : (I(), A("div", ln, [
1104
- u.value == 2 ? (I(), A("div", sn, [
1109
+ f.value ? (I(), H("div", dn, ke(f.value), 1)) : (I(), H("div", ln, [
1110
+ u.value == 2 ? (I(), H("div", sn, [
1105
1111
  x("div", an, [
1106
1112
  x("div", {
1107
1113
  class: "left-circle",
1108
- style: Y({ backgroundColor: o })
1114
+ style: W({ backgroundColor: o })
1109
1115
  }, null, 4)
1110
1116
  ]),
1111
1117
  x("div", rn, [
1112
1118
  x("div", {
1113
1119
  class: "right-circle",
1114
- style: Y({ backgroundColor: o })
1120
+ style: W({ backgroundColor: o })
1115
1121
  }, null, 4)
1116
1122
  ]),
1117
1123
  un
1118
- ])) : (I(), A("div", {
1124
+ ])) : (I(), H("div", {
1119
1125
  key: 1,
1120
1126
  class: "pull-circle-line",
1121
- style: Y(R(C))
1127
+ style: W(R(_))
1122
1128
  }, [
1123
1129
  x("div", cn, [
1124
1130
  x("div", {
1125
1131
  class: Ae(["arrows", { opacity: h.value }]),
1126
- style: Y({ borderBottomColor: o })
1132
+ style: W({ borderBottomColor: o })
1127
1133
  }, null, 6)
1128
1134
  ])
1129
1135
  ], 4))
@@ -1164,7 +1170,7 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1164
1170
  vListReturn: l
1165
1171
  });
1166
1172
  const c = "virtualListWrapper" + new Date().getTime();
1167
- return (d, u) => (I(), A(we, null, [
1173
+ return (d, u) => (I(), H(be, null, [
1168
1174
  pt(fn, {
1169
1175
  refresh: e.refresh,
1170
1176
  refreshOff: e.refreshOff,
@@ -1182,15 +1188,15 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1182
1188
  }, d.$attrs), [
1183
1189
  x("div", ve(fe(R(r))), [
1184
1190
  x("div", ve(fe(R(h))), [
1185
- (I(!0), A(we, null, gt(R(a), ({ index: f, data: T }) => (I(), A("div", {
1191
+ (I(!0), H(be, null, gt(R(a), ({ index: f, data: O }) => (I(), H("div", {
1186
1192
  key: f,
1187
- style: Y({
1193
+ style: W({
1188
1194
  height: `${R(v)(f).height}px`,
1189
1195
  display: "flex"
1190
1196
  })
1191
1197
  }, [
1192
1198
  ge(d.$slots, "default", {
1193
- data: T,
1199
+ data: O,
1194
1200
  index: f
1195
1201
  }, void 0, !0)
1196
1202
  ], 4))), 128))
@@ -1201,7 +1207,7 @@ const fn = /* @__PURE__ */ Z(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
1201
1207
  ], 64));
1202
1208
  }
1203
1209
  });
1204
- const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), ye = (e) => (re("data-v-c986249d"), e = e(), ue(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("title", null, "logo", -1)), bn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("g", {
1210
+ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), ye = (e) => (re("data-v-c986249d"), e = e(), ue(), e), mn = { style: { position: "absolute" } }, gn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("div", { class: "wrapper" }, null, -1)), _n = ["width", "height"], yn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("title", null, "logo", -1)), wn = /* @__PURE__ */ ye(() => /* @__PURE__ */ x("g", {
1205
1211
  id: "group-1",
1206
1212
  stroke: "none",
1207
1213
  "stroke-width": "1",
@@ -1213,10 +1219,10 @@ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), ye = (e) =
1213
1219
  id: "path-1",
1214
1220
  fill: "#FFF"
1215
1221
  })
1216
- ], -1)), wn = [
1222
+ ], -1)), bn = [
1217
1223
  yn,
1218
- bn
1219
- ], Cn = /* @__PURE__ */ N({
1224
+ wn
1225
+ ], En = /* @__PURE__ */ N({
1220
1226
  __name: "Loading",
1221
1227
  props: {
1222
1228
  width: { default: "90" },
@@ -1229,20 +1235,20 @@ const Pn = /* @__PURE__ */ Z(pn, [["__scopeId", "data-v-e0fb787f"]]), ye = (e) =
1229
1235
  "5e400569": n
1230
1236
  }));
1231
1237
  const n = `${t.duration}ms`;
1232
- return (o, l) => (I(), A("div", mn, [
1238
+ return (o, l) => (I(), H("div", mn, [
1233
1239
  gn,
1234
- (I(), A("svg", {
1240
+ (I(), H("svg", {
1235
1241
  style: { position: "relative" },
1236
1242
  width: e.width,
1237
1243
  height: e.height,
1238
1244
  viewBox: "0 0 260 260",
1239
1245
  version: "1.1",
1240
1246
  xmlns: "http://www.w3.org/2000/svg"
1241
- }, wn, 8, _n))
1247
+ }, bn, 8, _n))
1242
1248
  ]));
1243
1249
  }
1244
1250
  });
1245
- const Hn = /* @__PURE__ */ Z(Cn, [["__scopeId", "data-v-c986249d"]]);
1251
+ const Hn = /* @__PURE__ */ Z(En, [["__scopeId", "data-v-c986249d"]]);
1246
1252
  export {
1247
1253
  Rn as DefaultLoading,
1248
1254
  Hn as Loading,
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(_,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(_=typeof globalThis<"u"?globalThis:_||self,e(_.ui={},_.Vue))})(this,function(_,e){"use strict";const fe={created(t,o){let n,l;function r(a){n=a.clientX,l=a.clientY}function s(a){if(n===void 0)return;const i=a.clientX,m=a.clientY,p=Math.abs(i-n),u=Math.abs(m-l);p>5||u>5||o.value&&o.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__)}},$e={created(t,o){const{fn:n,ms:l=1500}=o.value;let r=null;function s(a){r||(n(a),r=setTimeout(()=>{r=null},l))}t.addEventListener("click",s)}};var pe;const Y=typeof window<"u",he=t=>typeof t=="function";Y&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function q(t){return typeof t=="function"?t():e.unref(t)}function me(t,o){function n(...l){t(()=>o.apply(this,l),{fn:o,thisArg:this,args:l})}return n}function Ie(t,o={}){let n,l;return s=>{const a=q(t),i=q(o.maxWait);if(n&&clearTimeout(n),a<=0||i!==void 0&&i<=0)return l&&(clearTimeout(l),l=null),s();i&&!l&&(l=setTimeout(()=>{n&&clearTimeout(n),l=null,s()},i)),n=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Me(t,o=!0,n=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return m=>{const p=q(t),u=Date.now()-l;if(a(),p<=0)return l=Date.now(),m();u>p&&(n||!s)?(l=Date.now(),m()):o&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),m()},p)),!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function ke(t){return t}function Re(t,o){let n,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const i=he(o)?o:o.get,m=he(o)?void 0:o.set,p=e.customRef((u,d)=>(l=u,r=d,{get(){return s.value&&(n=i(),s.value=!1),l(),n},set(f){m?.(f)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ge(t,o=200,n={}){return me(Ie(o,n),t)}function _e(t,o=200,n=!1,l=!0){return me(Me(o,n,l),t)}function ye(t,o=!0){e.getCurrentInstance()?e.onMounted(t):o?t():e.nextTick(t)}function Ee(t){var o;const n=q(t);return(o=n?.$el)!=null?o:n}const Pe=Y?window:void 0,Ae=Y?window.document:void 0;Y&&window.navigator,Y&&window.location;function He(t,o=!1){const n=e.ref(),l=()=>n.value=Boolean(t());return l(),ye(l,o),n}const Q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X="__vueuse_ssr_handlers__";Q[X]=Q[X]||{},Q[X];function Fe(){const t=e.getCurrentInstance(),o=Re(()=>null,()=>t.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}var we=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ze=(t,o)=>{var n={};for(var l in t)Ve.call(t,l)&&o.indexOf(l)<0&&(n[l]=t[l]);if(t!=null&&we)for(var l of we(t))o.indexOf(l)<0&&Ne.call(t,l)&&(n[l]=t[l]);return n};function je(t,o,n={}){const l=n,{window:r=Pe}=l,s=ze(l,["window"]);let a;const i=He(()=>r&&"ResizeObserver"in r),m=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Ee(t),d=>{m(),i.value&&r&&d&&(a=new ResizeObserver(o),a.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{m(),p()};return ve(u),{isSupported:i,stop:u}}function Ke(t,o={width:0,height:0},n={}){const{box:l="content-box"}=n,r=e.ref(o.width),s=e.ref(o.height);return je(t,([a])=>{const i=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;i?(r.value=i.reduce((m,{inlineSize:p})=>m+p,0),s.value=i.reduce((m,{blockSize:p})=>m+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},n),e.watch(()=>Ee(t),a=>{r.value=a?o.width:0,s.value=a?o.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 We=0;function G(t,o={}){const n=e.ref(!1),{document:l=Ae,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++We}`}=o,i=e.ref(t);let m=()=>{};const p=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,o.media&&(d.media=o.media),l.head.appendChild(d),!n.value&&(m=e.watch(i,f=>{d.innerText=f},{immediate:!0}),n.value=!0)},u=()=>{!l||!n.value||(m(),l.head.removeChild(l.getElementById(a)),n.value=!1)};return r&&!s&&ye(p),s||ve(u),{id:a,css:i,unload:u,load:p,isLoaded:e.readonly(n)}}var Ye=Object.defineProperty,Se=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ce=(t,o,n)=>o in t?Ye(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,Qe=(t,o)=>{for(var n in o||(o={}))Ue.call(o,n)&&Ce(t,n,o[n]);if(Se)for(var n of Se(o))qe.call(o,n)&&Ce(t,n,o[n]);return t};Qe({linear:ke},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(t,o){const{scrollEndHook:n,itemHeight:l,overscan:r=5}=o,s=e.ref(null),a=Ke(s),i=e.ref(!0),m=ge(H,100);let p;const u=e.shallowRef(t),d=e.ref(0),f=e.ref({start:0,end:10}),c=e.ref({start:0,end:r});let h=0;const T=e.ref([]),v=e.computed(()=>{let{sum:S,height:w}={sum:0,height:0};return u.value.map((I,M)=>(typeof l=="number"?w=l:w=l(M),S+=w,{height:w,sum:S}))}),b=e.computed(()=>N(f.value.start)),E=e.computed(()=>typeof l=="number"?v.value.length*l:v.value[v.value.length-1]?.sum||0),$=e.computed(()=>{const{start:S,end:w}=c.value;return T.value.slice(S,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,u],([S,w])=>{(S||w)&&x()},{deep:!0}),e.watch(d,()=>{P(),m()});function P(){i.value=!1}function H(){i.value=!0,n?.()}function x(){cancelAnimationFrame(p),p=requestAnimationFrame(C)}function C(){if(s.value){d.value=s.value.scrollTop;let S=D(d.value);h=F(S);let w=Math.max(0,S-r),I=Math.min(S+h+r,u.value.length);f.value={start:w,end:I},T.value=u.value.slice(w,I).map((M,B)=>({data:M,index:B+w})),c.value.start=S-w,c.value.end=c.value.start+h}}function D(S){let w=0,I=v.value.length-1,M=-1;for(;w<=I;){const B=Math.floor((w+I)/2);v.value[B].sum>=S?(M=B,I=B-1):w=B+1}return Math.max(0,M)}function F(S){let w=0,I=0;for(let M=S;M<v.value.length&&(w++,I+=v.value[M].height,!(I>=a.height.value));M++);return w}function N(S){if(typeof l=="number")return S*l;let w=v.value[S];return w?w.sum-w.height:0}function R(S){return v.value[S]||{sum:0,height:0}}function j(S){if(s.value){const w=R(S);s.value.scrollTop=w.sum-w.height,C()}}const U=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:i.value?void 0:"none"}})),K=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),z={overflowY:"auto"};return{list:T,visiableList:$,getItemHeightData:R,getoffsetTopIndex:D,totalHeight:E,clientHeight:a.height,scrollTo:j,scrollTop:d,isScrollEnd:i,containerProps:{ref:s,onScroll:()=>{x()},style:z},wrapperProps:U,innerProps:K}}const Z=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),oe=Symbol(),ne=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol();function Xe(){const{voidFn:t,boolFn:o,boolRef:n,arrayRef:l}={voidFn:c=>{},boolFn:c=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(te,l),s=e.inject(ee,o),a=e.inject(re,n),i=e.inject(J,t),m=e.inject(Z,t),p=e.inject(oe,t),u=e.inject(ne,t),d=e.inject(le,t),f=e.inject(ae,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:i,toggleAll:m,select:p,selectAll:u,unselect:d,unselectAll:f}}function Ge(t,o){const n=e.ref({}),l=e.computed(()=>t.value.filter(f=>n.value[f[o]])),r=e.computed(()=>l.value.length!=0&&Object.keys(n.value).length==t.value.length);function s(){t.value.forEach(f=>{n.value[f[o]]=!0})}function a(){n.value={}}function i(f){f.forEach(c=>{n.value[c[o]]||(n.value[c[o]]=!0)})}function m(f){f.forEach(c=>{n.value[c[o]]&&delete n.value[c[o]]})}function p(f){return!!n.value[f[o]]}function u(f){f.forEach(c=>{p(c)?delete n.value[c[o]]:n.value[c[o]]=!0})}function d(){r.value?a():s()}return e.provide(Z,d),e.provide(J,u),e.provide(ee,p),e.provide(te,l),e.provide(oe,i),e.provide(ne,s),e.provide(le,m),e.provide(re,r),e.provide(ae,a),{selected:l,select:i,selectAll:s,unselect:m,unselectAll:a,toggle:u,toggleAll:d,isSelected:p,isAllSelected:r}}function se(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ie({attribute:t,selectWay:o="colum",scrollOptions:n={},getSelectMap:l=()=>({})}){const{select:r=se("\u9009\u62E9"),unselect:s=se("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=se("\u53D6\u6D88\u5168\u9009")}=l();let i={};const m=e.computed(()=>_e(o==="colum"?At:Ht,50)),p=new Set,u=e.ref(!0),d=e.ref(),f=e.ref(!1),c=e.ref({x:0,y:0}),h=e.ref({x:0,y:0,scrollTop:0}),T=new ResizeObserver(g=>v.value=g[0].target.getBoundingClientRect()),v=e.ref({}),b=e.ref({top:0,height:0,sync(g=!1){b.value.top=d.value?.scrollTop||0,g&&(b.value.height=d.value?.scrollHeight||0)}}),E=e.computed(()=>f.value?{left:Math.min(c.value.x,h.value.x)-v.value.left,top:Math.min(c.value.y,h.value.y)-v.value.top,width:Math.abs(c.value.x-h.value.x),height:Math.abs(c.value.y-h.value.y)}:{left:0,top:0,width:0,height:0}),{margin:$=50,startSpeed:P=30,maxSpeed:H=30}=n;let x;const C=$,D=P,F=H,N=g=>g**1;let R=0;function j(g){if(cancelAnimationFrame(x),R=U(g),R=Math.max(Math.min(R,F),-F),R!==0){const y=d.value;if(!y||!f.value)return;const k=b.value.height-v.value.height;let L=b.value.top+Number(R);L=Math.min(Math.max(0,L),k),y.scrollTop=L,z(),x=requestAnimationFrame(()=>j(g))}}function U(g){if(d.value){const k=v.value,L=k.bottom-g;if(L<C)return D*N(1-L/C);const A=g-k.top;if(A<C)return-D*N(1-A/C)}return 0}function K(g){const y={...E.value,right:0,bottom:0};return y.left+=v.value.left,y.top+=v.value.top-b.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<g.right&&y.right>g.left&&y.top<g.bottom&&y.bottom>g.top}function z(){b.value.sync();const{top:g,height:y}=b.value;h.value.y=Math.min(y+v.value.top,h.value.y+g-h.value.scrollTop),h.value.scrollTop=g}function S(g,y,k="dynamic-styles"){let L=document.getElementById(k);L||(L=document.createElement("style"),L.id=k,document.head.appendChild(L));const A=L.sheet.cssRules,W=A.length,Vt=`${g} { ${y} }`;for(let de=0;de<W;de++){const Oe=A[de];if(Oe.selectorText===g&&Oe.style.cssText===y)return}L.sheet.insertRule(Vt,W)}function w(g,y){u.value=!0,f.value=!0,b.value.height?b.value.sync():b.value.sync(!0),c.value.x=g,c.value.y=y+b.value.top,h.value.x=c.value.x,h.value.y=c.value.y,d.value?.classList.add("disable-scroll-behavior"),p.clear()}function I(g,y,k){!f.value||(u.value&&o==="colum"&&!O()&&(a(),u.value=!1),k?.(),j(y),h.value.x=Math.max(g,v.value.left),h.value.y=Math.min(y+b.value.top,b.value.height+v.value.top),h.value.scrollTop=b.value.top,m.value())}function M(){f.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!f.value||(R||z(),m.value())}function O(){if(!f.value)return!1;const{width:g,height:y}=E.value;return!(Math.max(g,y)>5)}function ue(){O()&&a()}function At(){O()||d.value?.querySelectorAll(`[${t}]`).forEach(g=>{i[`${t}`]=g.getAttribute(`${t}`),K(g.getBoundingClientRect())?r([i]):s([i])})}function Ht(){const g=[];let y=null,k=0;d.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const W=L.getAttribute(`${t}`);g.push(W),K(L.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),k=Math.max(k,A)):(i[`${t}`]=W,p.has(W)&&s([i]))});for(let L=y;L<k+1;L++)i[`${t}`]=g[L],r([i]),p.add(g[L])}function Ft(g){return!g?.value||(d.value=g.value,!d?.value)?!1:(T.observe(d.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Ft,dragStart:w,dragMove:I,dragEnd:M,onScroll:B,isSingleClick:O,cancelSelectAllBySingleClick:ue,selectFn:m,selectRange:E,isPressing:f,containerEl:d,observer:T}}function Ze(t){const o=ie(t),{observer:n,selectRange:l}=o,{onScroll:r,dragStart:s,dragMove:a,dragEnd:i,cancelSelectAllBySingleClick:m}=o,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:u,unload:d}=G(`.drag-select-box {
1
+ (function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const fe={created(t,o){let n,l;function r(a){n=a.clientX,l=a.clientY}function s(a){if(n===void 0)return;const i=a.clientX,m=a.clientY,p=Math.abs(i-n),u=Math.abs(m-l);p>5||u>5||o.value&&o.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__)}},$e={created(t,o){const{fn:n,ms:l=1500}=o.value;let r=null;function s(a){r||(n(a),r=setTimeout(()=>{r=null},l))}t.addEventListener("click",s)}};var pe;const Y=typeof window<"u",he=t=>typeof t=="function";Y&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function q(t){return typeof t=="function"?t():e.unref(t)}function me(t,o){function n(...l){t(()=>o.apply(this,l),{fn:o,thisArg:this,args:l})}return n}function Ie(t,o={}){let n,l;return s=>{const a=q(t),i=q(o.maxWait);if(n&&clearTimeout(n),a<=0||i!==void 0&&i<=0)return l&&(clearTimeout(l),l=null),s();i&&!l&&(l=setTimeout(()=>{n&&clearTimeout(n),l=null,s()},i)),n=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Me(t,o=!0,n=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return m=>{const p=q(t),u=Date.now()-l;if(a(),p<=0)return l=Date.now(),m();u>p&&(n||!s)?(l=Date.now(),m()):o&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),m()},p)),!n&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function ke(t){return t}function Re(t,o){let n,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const i=he(o)?o:o.get,m=he(o)?void 0:o.set,p=e.customRef((u,d)=>(l=u,r=d,{get(){return s.value&&(n=i(),s.value=!1),l(),n},set(f){m?.(f)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ge(t,o=200,n={}){return me(Ie(o,n),t)}function _e(t,o=200,n=!1,l=!0){return me(Me(o,n,l),t)}function ye(t,o=!0){e.getCurrentInstance()?e.onMounted(t):o?t():e.nextTick(t)}function we(t){var o;const n=q(t);return(o=n?.$el)!=null?o:n}const Pe=Y?window:void 0,Ae=Y?window.document:void 0;Y&&window.navigator,Y&&window.location;function He(t,o=!1){const n=e.ref(),l=()=>n.value=Boolean(t());return l(),ye(l,o),n}const Q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X="__vueuse_ssr_handlers__";Q[X]=Q[X]||{},Q[X];function Fe(){const t=e.getCurrentInstance(),o=Re(()=>null,()=>t.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}var Ee=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ze=(t,o)=>{var n={};for(var l in t)Ve.call(t,l)&&o.indexOf(l)<0&&(n[l]=t[l]);if(t!=null&&Ee)for(var l of Ee(t))o.indexOf(l)<0&&Ne.call(t,l)&&(n[l]=t[l]);return n};function je(t,o,n={}){const l=n,{window:r=Pe}=l,s=ze(l,["window"]);let a;const i=He(()=>r&&"ResizeObserver"in r),m=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>we(t),d=>{m(),i.value&&r&&d&&(a=new ResizeObserver(o),a.observe(d,s))},{immediate:!0,flush:"post"}),u=()=>{m(),p()};return ve(u),{isSupported:i,stop:u}}function Ke(t,o={width:0,height:0},n={}){const{box:l="content-box"}=n,r=e.ref(o.width),s=e.ref(o.height);return je(t,([a])=>{const i=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;i?(r.value=i.reduce((m,{inlineSize:p})=>m+p,0),s.value=i.reduce((m,{blockSize:p})=>m+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},n),e.watch(()=>we(t),a=>{r.value=a?o.width:0,s.value=a?o.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 We=0;function G(t,o={}){const n=e.ref(!1),{document:l=Ae,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++We}`}=o,i=e.ref(t);let m=()=>{};const p=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,o.media&&(d.media=o.media),l.head.appendChild(d),!n.value&&(m=e.watch(i,f=>{d.innerText=f},{immediate:!0}),n.value=!0)},u=()=>{!l||!n.value||(m(),l.head.removeChild(l.getElementById(a)),n.value=!1)};return r&&!s&&ye(p),s||ve(u),{id:a,css:i,unload:u,load:p,isLoaded:e.readonly(n)}}var Ye=Object.defineProperty,Se=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ce=(t,o,n)=>o in t?Ye(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,Qe=(t,o)=>{for(var n in o||(o={}))Ue.call(o,n)&&Ce(t,n,o[n]);if(Se)for(var n of Se(o))qe.call(o,n)&&Ce(t,n,o[n]);return t};Qe({linear:ke},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(t,o){const{scrollEndHook:n,itemHeight:l,overscan:r=5}=o,s=e.ref(null),a=Ke(s),i=e.ref(!0),m=ge(H,100);let p;const u=e.shallowRef(t),d=e.ref(0),f=e.ref({start:0,end:10}),c=e.ref({start:0,end:r});let h=0;const B=e.ref([]),v=e.computed(()=>{let{sum:b,height:E}={sum:0,height:0};return u.value.map(($,I)=>(typeof l=="number"?E=l:E=l(I),b+=E,{height:E,sum:b}))}),_=e.computed(()=>N(f.value.start)),S=e.computed(()=>typeof l=="number"?v.value.length*l:v.value[v.value.length-1]?.sum||0),M=e.computed(()=>{const{start:b,end:E}=c.value;return B.value.slice(b,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch(u,()=>{(a.width.value||a.height.value)&&x()},{deep:!0}),e.watch([a.width,a.height],([b,E])=>{(b||E)&&x()},{deep:!0}),e.watch(d,()=>{A(),m()});function A(){i.value=!1}function H(){i.value=!0,n?.()}function x(){cancelAnimationFrame(p),p=requestAnimationFrame(C)}function C(){if(s.value){d.value=s.value.scrollTop;let b=D(d.value);h=F(b);let E=Math.max(0,b-r),$=Math.min(b+h+r,u.value.length);f.value={start:E,end:$},B.value=u.value.slice(E,$).map((I,T)=>({data:I,index:T+E})),c.value.start=b-E,c.value.end=c.value.start+h}}function D(b){let E=0,$=v.value.length-1,I=-1;for(;E<=$;){const T=Math.floor((E+$)/2);v.value[T].sum>=b?(I=T,$=T-1):E=T+1}return Math.max(0,I)}function F(b){let E=0,$=0;for(let I=b;I<v.value.length&&(E++,$+=v.value[I].height,!($>=a.height.value));I++);return E}function N(b){if(typeof l=="number")return b*l;let E=v.value[b];return E?E.sum-E.height:0}function R(b){return v.value[b]||{sum:0,height:0}}function j(b){if(s.value){const E=R(b);s.value.scrollTop=E.sum-E.height,C()}}const U=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:i.value?void 0:"none"}})),K=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),z={overflowY:"auto"};return{list:B,visiableList:M,getItemHeightData:R,getoffsetTopIndex:D,totalHeight:S,clientHeight:a.height,scrollTo:j,scrollTop:d,isScrollEnd:i,containerProps:{ref:s,onScroll:()=>{x()},style:z},wrapperProps:U,innerProps:K}}const Z=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),oe=Symbol(),ne=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol();function Xe(){const{voidFn:t,boolFn:o,boolRef:n,arrayRef:l}={voidFn:c=>{},boolFn:c=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(te,l),s=e.inject(ee,o),a=e.inject(re,n),i=e.inject(J,t),m=e.inject(Z,t),p=e.inject(oe,t),u=e.inject(ne,t),d=e.inject(le,t),f=e.inject(ae,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:i,toggleAll:m,select:p,selectAll:u,unselect:d,unselectAll:f}}function Ge(t,o){const n=e.ref({}),l=e.computed(()=>t.value.filter(f=>n.value[f[o]])),r=e.computed(()=>l.value.length!=0&&Object.keys(n.value).length==t.value.length);function s(){t.value.forEach(f=>{n.value[f[o]]=!0})}function a(){n.value={}}function i(f){f.forEach(c=>{n.value[c[o]]||(n.value[c[o]]=!0)})}function m(f){f.forEach(c=>{n.value[c[o]]&&delete n.value[c[o]]})}function p(f){return!!n.value[f[o]]}function u(f){f.forEach(c=>{p(c)?delete n.value[c[o]]:n.value[c[o]]=!0})}function d(){r.value?a():s()}return e.provide(Z,d),e.provide(J,u),e.provide(ee,p),e.provide(te,l),e.provide(oe,i),e.provide(ne,s),e.provide(le,m),e.provide(re,r),e.provide(ae,a),{selected:l,select:i,selectAll:s,unselect:m,unselectAll:a,toggle:u,toggleAll:d,isSelected:p,isAllSelected:r}}function se(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ie({attribute:t,selectWay:o="colum",scrollOptions:n={},getSelectMap:l=()=>({})}){const{select:r=se("\u9009\u62E9"),unselect:s=se("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=se("\u53D6\u6D88\u5168\u9009")}=l();let i={};const m=e.computed(()=>_e(o==="colum"?At:Ht,50)),p=new Set,u=e.ref(!0),d=e.ref(),f=e.ref(!1),c=e.ref({x:0,y:0}),h=e.ref({x:0,y:0,scrollTop:0}),B=new ResizeObserver(g=>v.value=g[0].target.getBoundingClientRect()),v=e.ref({}),_=e.ref({top:0,height:0,sync(g=!1){_.value.top=d.value?.scrollTop||0,g&&(_.value.height=d.value?.scrollHeight||0)}}),S=e.computed(()=>f.value?{left:Math.min(c.value.x,h.value.x)-v.value.left,top:Math.min(c.value.y,h.value.y)-v.value.top,width:Math.abs(c.value.x-h.value.x),height:Math.abs(c.value.y-h.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:A=30,maxSpeed:H=30}=n;let x;const C=M,D=A,F=H,N=g=>g**1;let R=0;function j(g){if(cancelAnimationFrame(x),R=U(g),R=Math.max(Math.min(R,F),-F),R!==0){const w=d.value;if(!w||!f.value)return;const k=_.value.height-v.value.height;let L=_.value.top+Number(R);L=Math.min(Math.max(0,L),k),w.scrollTop=L,z(),x=requestAnimationFrame(()=>j(g))}}function U(g){if(d.value){const k=v.value,L=k.bottom-g;if(L<C)return D*N(1-L/C);const P=g-k.top;if(P<C)return-D*N(1-P/C)}return 0}function K(g){const w={...S.value,right:0,bottom:0};return w.left+=v.value.left,w.top+=v.value.top-_.value.top,w.right=w.width+w.left,w.bottom=w.height+w.top,w.left<g.right&&w.right>g.left&&w.top<g.bottom&&w.bottom>g.top}function z(){_.value.sync();const{top:g,height:w}=_.value;h.value.y=Math.min(w+v.value.top,h.value.y+g-h.value.scrollTop),h.value.scrollTop=g}function b(g,w,k="dynamic-styles"){let L=document.getElementById(k);L||(L=document.createElement("style"),L.id=k,document.head.appendChild(L));const P=L.sheet.cssRules,W=P.length,Vt=`${g} { ${w} }`;for(let de=0;de<W;de++){const Oe=P[de];if(Oe.selectorText===g&&Oe.style.cssText===w)return}L.sheet.insertRule(Vt,W)}function E(g,w){u.value=!0,f.value=!0,_.value.height?_.value.sync():_.value.sync(!0),c.value.x=g,c.value.y=w+_.value.top,h.value.x=c.value.x,h.value.y=c.value.y,d.value?.classList.add("disable-scroll-behavior"),p.clear()}function $(g,w,k){!f.value||(u.value&&o==="colum"&&!O()&&(a(),u.value=!1),k?.(),j(w),h.value.x=Math.max(g,v.value.left),h.value.y=Math.min(w+_.value.top,_.value.height+v.value.top),h.value.scrollTop=_.value.top,m.value())}function I(){f.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function T(){!f.value||(R||z(),m.value())}function O(){if(!f.value)return!1;const{width:g,height:w}=S.value;return!(Math.max(g,w)>5)}function ue(){O()&&a()}function At(){O()||d.value?.querySelectorAll(`[${t}]`).forEach(g=>{i[`${t}`]=g.getAttribute(`${t}`),K(g.getBoundingClientRect())?r([i]):s([i])})}function Ht(){const g=[];let w=null,k=0;d.value?.querySelectorAll(`[${t}]`).forEach((L,P)=>{const W=L.getAttribute(`${t}`);g.push(W),K(L.getBoundingClientRect())?(w===null&&(w=P),w=Math.min(w,P),k=Math.max(k,P)):(i[`${t}`]=W,p.has(W)&&s([i]))});for(let L=w;L<k+1;L++)i[`${t}`]=g[L],r([i]),p.add(g[L])}function Ft(g){return!g?.value||(d.value=g.value,!d?.value)?!1:(B.observe(d.value),b(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Ft,dragStart:E,dragMove:$,dragEnd:I,onScroll:T,isSingleClick:O,cancelSelectAllBySingleClick:ue,selectFn:m,selectRange:S,isPressing:f,containerEl:d,observer:B}}function Ze(t){const o=ie(t),{observer:n,selectRange:l}=o,{onScroll:r,dragStart:s,dragMove:a,dragEnd:i,cancelSelectAllBySingleClick:m}=o,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:u}=G(`.drag-select-box {
2
2
  position: absolute;
3
3
  z-index: 99999;
4
4
  background-color: rgb(191 219 254);
5
5
  opacity: 0.5;
6
- }`,{id:"styletag_lzc_dragselect"}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function c(E){E.button===0&&s(E.x,E.y)}function h(E){a(E.x,E.y)}function T(E){E.composedPath().some(P=>P?.getAttribute?.(t.attribute))||m(),i()}function v(E){try{if(!o.init(E))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(f),o.containerEl.value),u(),o.containerEl.value?.addEventListener("scroll",r),o.containerEl.value?.addEventListener("mousedown",c),window.addEventListener("mousemove",h),window.addEventListener("mouseup",T)}catch($){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",$)}}function b(){d(),n.disconnect(),o.containerEl.value?.removeEventListener("scroll",r),o.containerEl.value?.removeEventListener("mousedown",c),window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",T)}return{init:v,unMount:b}}function Je(t,o,n=600){const l=ie({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:i,dragEnd:m}=l;let p;function u(){clearTimeout(p)}function d(v){u(),v.composedPath().some(E=>!!E?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:E,clientY:$}=v.targetTouches[0];a(E,$),o?.(),i(E,$,()=>v.preventDefault()),v.preventDefault()},n))}function f(v){u();const{clientX:b,clientY:E}=v.targetTouches[0];i(b,E,()=>v.preventDefault())}function c(){u(),m()}function h(v){try{if(!l.init(v))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",d),l.containerEl.value?.addEventListener("touchmove",f),window.addEventListener("touchcancel",c),window.addEventListener("touchend",c)}catch(b){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",b)}}function T(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",f),window.removeEventListener("touchcancel",c),window.removeEventListener("touchEnd",c)}return{init:h,unMount:T}}const Te=Symbol(),et={key:0,class:"lzc-modal"},tt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:o}){const n=t,l=()=>{n.closeOnClickOverlay&&o("update:visiable",!1)};return e.provide(Te,()=>o("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",et,[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(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,o)=>{const n=t.__vccOpts||t;for(const[l,r]of o)n[l]=r;return n},ot=V(tt,[["__scopeId","data-v-4ff684af"]]);function nt(t){function o(n,l){const r=document.createElement("div"),s={setup(){return()=>e.h(ot,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(n,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:o}}function Be({component:t,componentProps:o,delay:n=300}){const r=`lzc-delay-loading-${`${new Date().getTime()}`}`,s=`${n}ms`,{load:a}=G(`@keyframes lzcDelayLoad {
6
+ }`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function f(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function h(_){_.composedPath().some(M=>M?.getAttribute?.(t.attribute))||m(),i()}function B(_){try{if(!o.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),u(),o.containerEl.value?.addEventListener("scroll",r),o.containerEl.value?.addEventListener("mousedown",f),window.addEventListener("mousemove",c),window.addEventListener("mouseup",h)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function v(){n.disconnect(),o.containerEl.value?.removeEventListener("scroll",r),o.containerEl.value?.removeEventListener("mousedown",f),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",h)}return{init:B,unMount:v}}function Je(t,o,n=600){const l=ie({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:i,dragEnd:m}=l;let p;function u(){clearTimeout(p)}function d(v){u(),v.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:M}=v.targetTouches[0];a(S,M),o?.(),i(S,M,()=>v.preventDefault()),v.preventDefault()},n))}function f(v){u();const{clientX:_,clientY:S}=v.targetTouches[0];i(_,S,()=>v.preventDefault())}function c(){u(),m()}function h(v){try{if(!l.init(v))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",d),l.containerEl.value?.addEventListener("touchmove",f),window.addEventListener("touchcancel",c),window.addEventListener("touchend",c)}catch(_){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",_)}}function B(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",f),window.removeEventListener("touchcancel",c),window.removeEventListener("touchEnd",c)}return{init:h,unMount:B}}const Te=Symbol(),et={key:0,class:"lzc-modal"},tt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:o}){const n=t,l=()=>{n.closeOnClickOverlay&&o("update:visiable",!1)};return e.provide(Te,()=>o("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",et,[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(fe),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,o)=>{const n=t.__vccOpts||t;for(const[l,r]of o)n[l]=r;return n},ot=V(tt,[["__scopeId","data-v-4ff684af"]]);function nt(t){function o(n,l){const r=document.createElement("div"),s={setup(){return()=>e.h(ot,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(n,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:o}}function Be({component:t,componentProps:o,delay:n=300}){const r=`lzc-delay-loading-${`${new Date().getTime()}`}`,s=`${n}ms`;return G(`@keyframes lzcDelayLoad {
7
7
  to {
8
8
  opacity: 1;
9
9
  }
@@ -11,10 +11,10 @@
11
11
  .${r} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${s} forwards;
14
- }`);return{LoadingComp:e.defineComponent({setup(){const m=Fe();return e.onMounted(()=>{a(),m.value.classList.add(r)}),()=>e.h(t,o)}})}}function lt({component:t,componentProps:o,delay:n=300}){const{LoadingComp:l}=Be({component:t,componentProps:o,delay:n}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const rt=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],at=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(o=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(o,n)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(o.$attrs)),rt,16))}}),Wt="",st=V(at,[["__scopeId","data-v-d0ad7597"]]),it=["onClick"],ct=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const o=t,n=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(o.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)`})),i=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function m(){!o.buttonClickEvent||o.buttonClickEvent()}return e.nextTick(()=>{l.value=n.value.offsetWidth/2,r.value=n.value.offsetHeight/2}),(p,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(m,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:n,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,it))}}),Yt="",ut=V(ct,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class dt{options;container;constructor(o){this.options=o,this.container=document.createElement("div")}present(){const o=e.h(e.h(ut),{...xe,...this.options});e.render(o,this.container),document.body.insertBefore(this.container,document.body.firstChild);const n=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},n)}dismiss(){if(this.container){const o=this.container.querySelector("#toastWrapper");o.style.opacity="0",o.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const ft=["xlink:href","fill","color"],pt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const o=t,n=e.computed(()=>`#${o.prefix}-${o.name}`),l=e.computed(()=>({width:`${o.width??o.height}px`,height:`${o.height??o.width}px`,aspectRatio:o.width&&o.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(n),fill:t.color,color:t.color},null,8,ft)],4))}});function ht(t){const{containerEl:o,sliderEl:n,autoHeight:l,performance:r={},maxHeightRatio:s=.9,observeMethod:a="classList"}=t,i=e.ref(!0),m=ge(N,100);let p,u="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),h=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),T=e.ref({clientHeight:0}),v=e.computed(()=>!!f.value),b=e.computed(()=>h.value.scrollHeight>h.value.clientHeight),E=e.computed(()=>l?h.value.clientHeight-H.value:h.value.clientHeight-T.value.clientHeight),$=e.computed(()=>h.value.scrollHeight-h.value.clientHeight),P=e.computed(()=>Math.max(h.value.clientHeight/h.value.scrollHeight,.05)),H=e.computed(()=>P.value>s?0:P.value*h.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${H.value}px`:void 0}));function C(B){F(),f.value=B.clientY-n.value.getBoundingClientRect().top||1,u=getComputedStyle(o.value).scrollBehavior,u==="smooth"&&(o.value.style.scrollBehavior="unset")}function D(){o.value.style.scrollBehavior=u,f.value=0,m()}function F(){i.value=!1}function N(){v.value||(i.value=!0)}function R(B){if(!v.value)return;let O=B.clientY-h.value.top-f.value;O<0?c.value=0:O>=E.value?c.value=E.value:c.value=O,o.value.scrollTo({top:c.value/E.value*$.value})}function j(){v.value||U()}function U(){cancelAnimationFrame(p),p=requestAnimationFrame(K)}function K(){o.value&&(d.value=r.scrollTop?.value??o.value.scrollTop,c.value=d.value/$.value*E.value)}function z(B){let O="addEventListener";B==="add"?O="addEventListener":O="removeEventListener",n.value?.[O]("pointerdown",C,{passive:!0}),window[O]("pointermove",R,{passive:!0}),window[O]("pointerup",D,{passive:!0})}const S=new MutationObserver(B=>{(a=="classList"||B.map(ue=>ue.oldValue).join().includes("height"))&&w()});function w(){h.value.top=o.value?.getBoundingClientRect().top??0,h.value.scrollHeight=o.value?.scrollHeight??0,h.value.clientHeight=o.value?.clientHeight??0}function I(){F(),setTimeout(()=>{T.value.clientHeight=n.value?.clientHeight??0,N()},150)}function M(){if(o.value&&n.value){o.value.classList.add("hide-scrollbar"),o.value.addEventListener("scroll",j,{passive:!0}),z("add");const B={};a==="classList"?Object.assign(B,{subtree:!0,childList:!0}):Object.assign(B,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(o.value,B),setTimeout(()=>{w()},100),I()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:o,sliderEl:n})}return e.watch(d,()=>{F(),m()}),{isScrollEnd:i,isDragSlider:v,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:x,init:M,modifySliderEventListener:z}}const mt=(t=>(e.pushScopeId("data-v-0abfb56c"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),vt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:o}){const n=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>n.containerEl),a=ht({containerEl:s,sliderEl:r,autoHeight:l?n.autoHeight:!0,performance:n.performance,observeMethod:n.observeMethod}),{scrollable:i,isScrollEnd:m,sliderPos:p}=a,u=e.ref(!1),d=n.autoHide?e.computed(()=>u.value||!m.value):e.computed(()=>i.value),{load:f,unload:c}=G(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const i=Fe();return e.onMounted(()=>{i.value.classList.add(r)}),()=>e.h(t,o)}})}}function lt({component:t,componentProps:o,delay:n=300}){const{LoadingComp:l}=Be({component:t,componentProps:o,delay:n}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const rt=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],at=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(o=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(o,n)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(o.$attrs)),rt,16))}}),Wt="",st=V(at,[["__scopeId","data-v-d0ad7597"]]),it=["onClick"],ct=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const o=t,n=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(o.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)`})),i=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function m(){!o.buttonClickEvent||o.buttonClickEvent()}return e.nextTick(()=>{l.value=n.value.offsetWidth/2,r.value=n.value.offsetHeight/2}),(p,u)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(m,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:n,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(i))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,it))}}),Yt="",ut=V(ct,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class dt{options;container;constructor(o){this.options=o,this.container=document.createElement("div")}present(){const o=e.h(e.h(ut),{...xe,...this.options});e.render(o,this.container),document.body.insertBefore(this.container,document.body.firstChild);const n=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},n)}dismiss(){if(this.container){const o=this.container.querySelector("#toastWrapper");o.style.opacity="0",o.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const ft=["xlink:href","fill","color"],pt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const o=t,n=e.computed(()=>`#${o.prefix}-${o.name}`),l=e.computed(()=>({width:`${o.width??o.height}px`,height:`${o.height??o.width}px`,aspectRatio:o.width&&o.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(n),fill:t.color,color:t.color},null,8,ft)],4))}});function ht(t){const{containerEl:o,sliderEl:n,autoHeight:l,performance:r={},maxHeightRatio:s=.9,observeMethod:a="classList"}=t,i=e.ref(!0),m=ge(N,100);let p,u="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),h=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),B=e.ref({clientHeight:0}),v=e.computed(()=>!!f.value),_=e.computed(()=>h.value.scrollHeight>h.value.clientHeight),S=e.computed(()=>l?h.value.clientHeight-H.value:h.value.clientHeight-B.value.clientHeight),M=e.computed(()=>h.value.scrollHeight-h.value.clientHeight),A=e.computed(()=>Math.max(h.value.clientHeight/h.value.scrollHeight,.05)),H=e.computed(()=>A.value>s?0:A.value*h.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${H.value}px`:void 0}));function C(T){F(),f.value=T.clientY-n.value.getBoundingClientRect().top||1,u=getComputedStyle(o.value).scrollBehavior,u==="smooth"&&(o.value.style.scrollBehavior="unset")}function D(){o.value.style.scrollBehavior=u,f.value=0,m()}function F(){i.value=!1}function N(){v.value||(i.value=!0)}function R(T){if(!v.value)return;let O=T.clientY-h.value.top-f.value;O<0?c.value=0:O>=S.value?c.value=S.value:c.value=O,o.value.scrollTo({top:c.value/S.value*M.value})}function j(){v.value||U()}function U(){cancelAnimationFrame(p),p=requestAnimationFrame(K)}function K(){o.value&&(d.value=r.scrollTop?.value??o.value.scrollTop,c.value=d.value/M.value*S.value)}function z(T){let O="addEventListener";T==="add"?O="addEventListener":O="removeEventListener",n.value?.[O]("pointerdown",C,{passive:!0}),window[O]("pointermove",R,{passive:!0}),window[O]("pointerup",D,{passive:!0})}const b=new MutationObserver(T=>{(a=="classList"||T.map(ue=>ue.oldValue).join().includes("height"))&&E()});function E(){h.value.top=o.value?.getBoundingClientRect().top??0,h.value.scrollHeight=o.value?.scrollHeight??0,h.value.clientHeight=o.value?.clientHeight??0}function $(){F(),setTimeout(()=>{B.value.clientHeight=n.value?.clientHeight??0,N()},150)}function I(){if(o.value&&n.value){o.value.classList.add("hide-scrollbar"),o.value.addEventListener("scroll",j,{passive:!0}),z("add");const T={};a==="classList"?Object.assign(T,{subtree:!0,childList:!0}):Object.assign(T,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),b.observe(o.value,T),setTimeout(()=>{E()},100),$()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:o,sliderEl:n})}return e.watch(d,()=>{F(),m()}),{isScrollEnd:i,isDragSlider:v,offsetTop:c,scrollTop:d,scrollable:_,sliderPos:x,init:I,modifySliderEventListener:z}}const mt=(t=>(e.pushScopeId("data-v-efefe52c"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),vt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:o}){const n=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>n.containerEl),a=ht({containerEl:s,sliderEl:r,autoHeight:l?n.autoHeight:!0,performance:n.performance,observeMethod:n.observeMethod}),{scrollable:i,isScrollEnd:m,sliderPos:p}=a,u=e.ref(!1),d=n.autoHide?e.computed(()=>u.value||!m.value):e.computed(()=>i.value),{load:f}=G(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
18
18
  .hide-scrollbar::-webkit-scrollbar {
19
19
  display: none;
20
- }`,{id:"styletag_lzc_scrollbar"});e.onMounted(()=>{f(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{c(),a.modifySliderEventListener("remove")});function h(){u.value=!0}function T(){u.value=!1}return o({uScrollBarReturn:a}),(v,b)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:h,onMouseleave:T,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(v.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),qt="",gt=V(vt,[["__scopeId","data-v-0abfb56c"]]),_t=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},Et={key:0,class:"pull-arrow-circle"},wt={key:0,class:"box-load"},bt={class:"left-load"},St={class:"right-load"},Ct=_t(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Lt={class:"pull-arrow"},Tt={key:1},Bt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const o=t,n=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),i=e.ref(.3),m=e.ref(!1),p=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),h=e.ref(),T=e.computed(()=>o.scrollTop),v=e.computed(()=>({transition:`${f.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),b=e.computed(()=>({borderColor:l,transition:f.value,transform:`rotate(${100+a.value}deg)`,opacity:i.value}));e.watch(c,C=>{C===0&&(r.value=-50,i.value=.3)}),e.watch(u,C=>{if(c.value===2)return;const D=Math.pow(C,n);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?m.value=!0:m.value=!1),D>50&&(r.value=5,i.value=1,c.value)});const E=e.ref(0),$=C=>{E.value=C.touches[0].pageY},P=C=>{const D=C.touches[0].pageY-E.value;E.value=C.touches[0].pageY,!o.refreshOff&&(!o?.refresh||c.value!==2&&T.value===0&&(p.value===0&&(p.value=C.touches[0].pageY),d.value=0,x.value.style.transition=`${d.value}ms`,f.value=0,u.value=C.touches[0].pageY-p.value,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,D>0&&C.preventDefault()))},H=()=>{if(o.refreshOff||!o?.refresh||c.value===2)return;p.value=0,d.value=300;const C=Math.pow(u.value,n);x.value.style.transition=`${d.value}ms`,C>50?(c.value=2,u.value=Math.pow(50,1/n),x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,f.value=300,o?.refresh&&o?.refresh().then(()=>{h.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{h.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{c.value=0,u.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,setTimeout(()=>{h.value=void 0},f.value)},600)})):(u.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{o?.refreshOff||(x.value=document.querySelector(o.pullRefreshContainer),x.value?.addEventListener("touchstart",$),x.value?.addEventListener("touchmove",P),x.value?.addEventListener("touchend",H))}),(C,D)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(v))},[h.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(h.value),1)):(e.openBlock(),e.createElementBlock("div",Et,[c.value==2?(e.openBlock(),e.createElementBlock("div",wt,[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",St,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ct])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(b))},[e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:m.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Qt="",De=V(Bt,[["__scopeId","data-v-18377f18"]]),xt={inheritAttrs:!1},Dt=e.defineComponent({...xt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:o,emit:n}){const l=t,r=Le(e.toRef(l,"data"),{itemHeight:f=>l.itemHeight(l.data[f]),overscan:l.overscan,scrollEndHook:()=>{n("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:i,innerProps:m,getItemHeightData:p,scrollTop:u}=r;o({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(f,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(De,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(u),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:c[0]||(c[0]=(...h)=>e.unref(a).onScroll&&e.unref(a).onScroll(...h)),ref:e.unref(a).ref,class:"virtualList"},f.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(i))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(m))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:h,data:T})=>(e.openBlock(),e.createElementBlock("div",{key:h,style:e.normalizeStyle({height:`${e.unref(p)(h).height}px`,display:"flex"})},[e.renderSlot(f.$slots,"default",{data:T,index:h},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",Ot=V(Dt,[["__scopeId","data-v-e0fb787f"]]),ce=t=>(e.pushScopeId("data-v-c986249d"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},It=ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Mt=["width","height"],kt=[ce(()=>e.createElementVNode("title",null,"logo",-1)),ce(()=>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))],Rt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const o=t;e.useCssVars(l=>({"5e400569":n}));const n=`${o.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[It,(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"},kt,8,Mt))]))}}),Jt="",Pt=V(Rt,[["__scopeId","data-v-c986249d"]]);_.DefaultLoading=st,_.Loading=Pt,_.PullRefresh=De,_.ScrollBar=gt,_.SvgIcon=pt,_.ToastCreator=dt,_.VirtualList=Ot,_.allSelectedKey=te,_.closeDialogKey=Te,_.dialogController=nt,_.isAllSelectedKey=re,_.isSelectedKey=ee,_.selectAllKey=ne,_.selectKey=oe,_.toggleAllKey=Z,_.toggleKey=J,_.unselectAllKey=ae,_.unselectKey=le,_.useDelayLoad=lt,_.useDelayLoadComp=Be,_.useDragSelect=ie,_.useDragSelectByMobile=Je,_.useDragSelectByPc=Ze,_.useSelectable=Ge,_.useSelectableInjectors=Xe,_.useVirtualList=Le,_.vDebounceClick=$e,_.vSingleClick=fe,Object.defineProperties(_,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
20
+ }`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{f(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){u.value=!0}function h(){u.value=!1}return o({uScrollBarReturn:a}),(B,v)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:h,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(B.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),qt="",gt=V(vt,[["__scopeId","data-v-efefe52c"]]),_t=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},wt={key:0,class:"pull-arrow-circle"},Et={key:0,class:"box-load"},bt={class:"left-load"},St={class:"right-load"},Ct=_t(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Lt={class:"pull-arrow"},Tt={key:1},Bt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const o=t,n=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),i=e.ref(.3),m=e.ref(!1),p=e.ref(0),u=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),h=e.ref(),B=e.computed(()=>o.scrollTop),v=e.computed(()=>({transition:`${f.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),_=e.computed(()=>({borderColor:l,transition:f.value,transform:`rotate(${100+a.value}deg)`,opacity:i.value}));e.watch(c,C=>{C===0&&(r.value=-50,i.value=.3)}),e.watch(u,C=>{if(c.value===2)return;const D=Math.pow(C,n);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?m.value=!0:m.value=!1),D>50&&(r.value=5,i.value=1,c.value)});const S=e.ref(0),M=C=>{S.value=C.touches[0].pageY},A=C=>{const D=C.touches[0].pageY-S.value;S.value=C.touches[0].pageY,!o.refreshOff&&(!o?.refresh||c.value!==2&&B.value===0&&(p.value===0&&(p.value=C.touches[0].pageY),d.value=0,x.value.style.transition=`${d.value}ms`,f.value=0,u.value=C.touches[0].pageY-p.value,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,D>0&&C.preventDefault()))},H=()=>{if(o.refreshOff||!o?.refresh||c.value===2)return;p.value=0,d.value=300;const C=Math.pow(u.value,n);x.value.style.transition=`${d.value}ms`,C>50?(c.value=2,u.value=Math.pow(50,1/n),x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,f.value=300,o?.refresh&&o?.refresh().then(()=>{h.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{h.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{c.value=0,u.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`,setTimeout(()=>{h.value=void 0},f.value)},600)})):(u.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(u.value,n)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{o?.refreshOff||(x.value=document.querySelector(o.pullRefreshContainer),x.value?.addEventListener("touchstart",M),x.value?.addEventListener("touchmove",A),x.value?.addEventListener("touchend",H))}),(C,D)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(v))},[h.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(h.value),1)):(e.openBlock(),e.createElementBlock("div",wt,[c.value==2?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",St,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ct])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(_))},[e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:m.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Qt="",De=V(Bt,[["__scopeId","data-v-18377f18"]]),xt={inheritAttrs:!1},Dt=e.defineComponent({...xt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:o,emit:n}){const l=t,r=Le(e.toRef(l,"data"),{itemHeight:f=>l.itemHeight(l.data[f]),overscan:l.overscan,scrollEndHook:()=>{n("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:i,innerProps:m,getItemHeightData:p,scrollTop:u}=r;o({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(f,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(De,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(u),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:c[0]||(c[0]=(...h)=>e.unref(a).onScroll&&e.unref(a).onScroll(...h)),ref:e.unref(a).ref,class:"virtualList"},f.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(i))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(m))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:h,data:B})=>(e.openBlock(),e.createElementBlock("div",{key:h,style:e.normalizeStyle({height:`${e.unref(p)(h).height}px`,display:"flex"})},[e.renderSlot(f.$slots,"default",{data:B,index:h},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",Ot=V(Dt,[["__scopeId","data-v-e0fb787f"]]),ce=t=>(e.pushScopeId("data-v-c986249d"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},It=ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Mt=["width","height"],kt=[ce(()=>e.createElementVNode("title",null,"logo",-1)),ce(()=>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))],Rt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const o=t;e.useCssVars(l=>({"5e400569":n}));const n=`${o.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[It,(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"},kt,8,Mt))]))}}),Jt="",Pt=V(Rt,[["__scopeId","data-v-c986249d"]]);y.DefaultLoading=st,y.Loading=Pt,y.PullRefresh=De,y.ScrollBar=gt,y.SvgIcon=pt,y.ToastCreator=dt,y.VirtualList=Ot,y.allSelectedKey=te,y.closeDialogKey=Te,y.dialogController=nt,y.isAllSelectedKey=re,y.isSelectedKey=ee,y.selectAllKey=ne,y.selectKey=oe,y.toggleAllKey=Z,y.toggleKey=J,y.unselectAllKey=ae,y.unselectKey=le,y.useDelayLoad=lt,y.useDelayLoadComp=Be,y.useDragSelect=ie,y.useDragSelectByMobile=Je,y.useDragSelectByPc=Ze,y.useSelectable=Ge,y.useSelectableInjectors=Xe,y.useVirtualList=Le,y.vDebounceClick=$e,y.vSingleClick=fe,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-0abfb56c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-0abfb56c]{opacity:0}.slider-wrapper[data-v-0abfb56c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-0abfb56c]{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-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{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-c986249d var(--5e400569) 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-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{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-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{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-c986249d var(--5e400569) linear infinite}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",