@lazycatcloud/lzc-toolkit 0.0.67 → 0.0.69

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,9 +1,9 @@
1
- import { ref as h, watch as K, customRef as tt, getCurrentScope as lt, onScopeDispose as nt, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as O, onUpdated as ot, readonly as st, shallowRef as at, computed as S, onUnmounted as Ie, inject as j, provide as W, defineComponent as U, h as Y, render as ue, openBlock as R, createBlock as Me, Transition as He, withCtx as Pe, createElementBlock as H, createElementVNode as C, withModifiers as rt, normalizeClass as Ae, renderSlot as ye, createCommentVNode as ut, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as z, toDisplayString as Fe, useSlots as it, withDirectives as ct, vShow as dt, toRef as vt, Fragment as Ee, createVNode as ft, mergeProps as ht, renderList as pt, useCssVars as mt } from "vue";
1
+ import { ref as h, watch as K, customRef as tt, getCurrentScope as lt, onScopeDispose as nt, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as $, onUpdated as ot, readonly as st, shallowRef as at, computed as S, onUnmounted as Ie, inject as j, provide as W, defineComponent as U, h as Y, render as ue, openBlock as I, createBlock as Me, Transition as He, withCtx as Pe, createElementBlock as P, createElementVNode as C, withModifiers as rt, normalizeClass as Ae, renderSlot as ye, createCommentVNode as ut, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as z, toDisplayString as Fe, useSlots as it, withDirectives as ct, vShow as dt, toRef as vt, Fragment as Ee, createVNode as ft, mergeProps as ht, renderList as pt, useCssVars as mt } from "vue";
2
2
  var Ce;
3
3
  const we = typeof window < "u", xe = (e) => typeof e == "function";
4
4
  we && ((Ce = window?.navigator) == null ? void 0 : Ce.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
5
5
  function ie(e) {
6
- return typeof e == "function" ? e() : O(e);
6
+ return typeof e == "function" ? e() : $(e);
7
7
  }
8
8
  function ke(e, t) {
9
9
  function l(...n) {
@@ -95,7 +95,7 @@ var Le = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, Tt
95
95
  t.indexOf(n) < 0 && Tt.call(e, n) && (l[n] = e[n]);
96
96
  return l;
97
97
  };
98
- function $t(e, t, l = {}) {
98
+ function Ot(e, t, l = {}) {
99
99
  const n = l, { window: o = bt } = n, a = Lt(n, ["window"]);
100
100
  let s;
101
101
  const i = Et(() => o && "ResizeObserver" in o), f = () => {
@@ -110,9 +110,9 @@ function $t(e, t, l = {}) {
110
110
  stop: v
111
111
  };
112
112
  }
113
- function Ot(e, t = { width: 0, height: 0 }, l = {}) {
113
+ function $t(e, t = { width: 0, height: 0 }, l = {}) {
114
114
  const { box: n = "content-box" } = l, o = h(t.width), a = h(t.height);
115
- return $t(e, ([s]) => {
115
+ return Ot(e, ([s]) => {
116
116
  const i = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
117
117
  i ? (o.value = i.reduce((f, { inlineSize: d }) => f + d, 0), a.value = i.reduce((f, { blockSize: d }) => f + d, 0)) : (o.value = s.contentRect.width, a.value = s.contentRect.height);
118
118
  }, l), K(() => Ve(e), (s) => {
@@ -122,10 +122,10 @@ function Ot(e, t = { width: 0, height: 0 }, l = {}) {
122
122
  height: a
123
123
  };
124
124
  }
125
- var $e;
125
+ var Oe;
126
126
  (function(e) {
127
127
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
128
- })($e || ($e = {}));
128
+ })(Oe || (Oe = {}));
129
129
  let Rt = 0;
130
130
  function Dt(e, t = {}) {
131
131
  const l = h(!1), {
@@ -154,11 +154,11 @@ function Dt(e, t = {}) {
154
154
  isLoaded: st(l)
155
155
  };
156
156
  }
157
- var Bt = Object.defineProperty, Oe = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Re = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ht = (e, t) => {
157
+ var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, Re = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ht = (e, t) => {
158
158
  for (var l in t || (t = {}))
159
159
  It.call(t, l) && Re(e, l, t[l]);
160
- if (Oe)
161
- for (var l of Oe(t))
160
+ if ($e)
161
+ for (var l of $e(t))
162
162
  Mt.call(t, l) && Re(e, l, t[l]);
163
163
  return e;
164
164
  };
@@ -192,14 +192,14 @@ Ht({
192
192
  linear: yt
193
193
  }, Pt);
194
194
  function At(e, t) {
195
- const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = Ot(a), i = h(!0), f = ze(M, 100);
195
+ const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = $t(a), i = h(!0), f = ze(M, 100);
196
196
  let d;
197
197
  const v = at(e), c = h(0), u = h({ start: 0, end: 10 });
198
198
  let r = 0;
199
199
  const m = h([]), E = S(() => {
200
200
  let { sum: g, height: b } = { sum: 0, height: 0 };
201
- return v.value.map((A, P) => (typeof n == "number" ? b = n : b = n(P), g += b, { height: b, sum: g }));
202
- }), y = S(() => X(u.value.start)), w = S(() => typeof n == "number" ? E.value.length * n : E.value[E.value.length - 1]?.sum || 0), T = S(() => {
201
+ return v.value.map((A, H) => (typeof n == "number" ? b = n : b = n(H), g += b, { height: b, sum: g }));
202
+ }), y = S(() => G(u.value.start)), w = S(() => typeof n == "number" ? E.value.length * n : E.value[E.value.length - 1]?.sum || 0), T = S(() => {
203
203
  let g = m.value.length - o, b = Math.max(g - r, 0);
204
204
  return m.value.slice(b, g);
205
205
  });
@@ -207,7 +207,7 @@ function At(e, t) {
207
207
  }), Ie(() => cancelAnimationFrame(d)), K(
208
208
  [s.width, s.height, v],
209
209
  ([g, b]) => {
210
- (g || b) && D();
210
+ (g || b) && R();
211
211
  },
212
212
  { deep: !0 }
213
213
  ), K(c, () => {
@@ -219,40 +219,40 @@ function At(e, t) {
219
219
  function M() {
220
220
  i.value = !0, l?.();
221
221
  }
222
- function D() {
223
- cancelAnimationFrame(d), d = requestAnimationFrame(B);
222
+ function R() {
223
+ cancelAnimationFrame(d), d = requestAnimationFrame(D);
224
224
  }
225
- function B() {
225
+ function D() {
226
226
  if (a.value) {
227
227
  c.value = a.value.scrollTop, r = q();
228
228
  let g = N(c.value), b = g + r + o;
229
- g = g - o, g = g < 0 ? 0 : g, b = b > v.value.length ? v.value.length : b, u.value = { start: g, end: b }, m.value = v.value.slice(g, b).map((A, P) => ({
229
+ g = g - o, g = g < 0 ? 0 : g, b = b > v.value.length ? v.value.length : b, u.value = { start: g, end: b }, m.value = v.value.slice(g, b).map((A, H) => ({
230
230
  data: A,
231
- index: P + g
231
+ index: H + g
232
232
  }));
233
233
  }
234
234
  }
235
235
  function N(g) {
236
- let b = 0, A = E.value.length - 1, P = -1;
236
+ let b = 0, A = E.value.length - 1, H = -1;
237
237
  for (; b <= A; ) {
238
- const $ = Math.floor((b + A) / 2);
239
- E.value[$].sum >= g ? (P = $, A = $ - 1) : b = $ + 1;
238
+ const O = Math.floor((b + A) / 2);
239
+ E.value[O].sum >= g ? (H = O, A = O - 1) : b = O + 1;
240
240
  }
241
- return Math.max(0, P);
241
+ return Math.max(0, H);
242
242
  }
243
243
  function q() {
244
244
  let g = 0, b = 0, A = k();
245
- for (let P = A; P < E.value.length && (g++, b += E.value[P].height, !(b >= s.height.value)); P++)
245
+ for (let H = A; H < E.value.length && (g++, b += E.value[H].height, !(b >= s.height.value)); H++)
246
246
  ;
247
247
  return g;
248
248
  }
249
- function X(g) {
249
+ function G(g) {
250
250
  if (typeof n == "number")
251
251
  return g * n;
252
252
  let b = E.value[g];
253
253
  return b ? b.sum - b.height : 0;
254
254
  }
255
- function Z(g) {
255
+ function X(g) {
256
256
  return E.value[g] || { sum: 0, height: 0 };
257
257
  }
258
258
  function k() {
@@ -261,8 +261,8 @@ function At(e, t) {
261
261
  }
262
262
  function ee(g) {
263
263
  if (a.value) {
264
- const b = Z(g);
265
- a.value.scrollTop = b.sum - b.height, B();
264
+ const b = X(g);
265
+ a.value.scrollTop = b.sum - b.height, D();
266
266
  }
267
267
  }
268
268
  const se = S(() => ({
@@ -271,7 +271,7 @@ function At(e, t) {
271
271
  height: `${w.value}px`,
272
272
  pointerEvents: i.value ? void 0 : "none"
273
273
  }
274
- })), J = S(() => ({
274
+ })), Z = S(() => ({
275
275
  style: {
276
276
  transform: `translate3d(0, ${y.value}px, 0)`,
277
277
  "will-change": "transform"
@@ -282,7 +282,7 @@ function At(e, t) {
282
282
  return {
283
283
  list: m,
284
284
  visiableList: T,
285
- getItemHeightData: Z,
285
+ getItemHeightData: X,
286
286
  getoffsetTopIndex: N,
287
287
  totalHeight: w,
288
288
  clientHeight: s.height,
@@ -292,16 +292,16 @@ function At(e, t) {
292
292
  containerProps: {
293
293
  ref: a,
294
294
  onScroll: () => {
295
- D();
295
+ R();
296
296
  },
297
297
  style: te
298
298
  },
299
299
  wrapperProps: se,
300
- innerProps: J
300
+ innerProps: Z
301
301
  };
302
302
  }
303
303
  const je = Symbol(), Ke = Symbol(), Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Ye = Symbol(), Ge = Symbol(), Xe = Symbol(), Ze = Symbol();
304
- function xl() {
304
+ function wl() {
305
305
  const { voidFn: e, boolFn: t, boolRef: l, arrayRef: n } = {
306
306
  voidFn: (r) => {
307
307
  },
@@ -321,7 +321,7 @@ function xl() {
321
321
  unselectAll: u
322
322
  };
323
323
  }
324
- function Tl(e, t) {
324
+ function bl(e, t) {
325
325
  const l = h({}), n = S(() => e.value.filter((u) => l.value[u[t]])), o = S(() => n.value.length != 0 && Object.keys(l.value).length == e.value.length);
326
326
  function a() {
327
327
  e.value.forEach((u) => {
@@ -396,35 +396,35 @@ function Je({
396
396
  top: Math.min(r.value.y, m.value.y) - y.value.top,
397
397
  width: Math.abs(r.value.x - m.value.x),
398
398
  height: Math.abs(r.value.y - m.value.y)
399
- } : { left: 0, top: 0, width: 0, height: 0 }), { margin: F = 50, startSpeed: M = 30, maxSpeed: D = 30 } = l;
400
- let B;
401
- const N = F, q = M, X = D, Z = (p) => p ** 1;
399
+ } : { left: 0, top: 0, width: 0, height: 0 }), { margin: F = 50, startSpeed: M = 30, maxSpeed: R = 30 } = l;
400
+ let D;
401
+ const N = F, q = M, G = R, X = (p) => p ** 1;
402
402
  let k = 0;
403
403
  function ee(p) {
404
- if (cancelAnimationFrame(B), k = se(p), k = Math.max(
405
- Math.min(k, X),
406
- -X
404
+ if (cancelAnimationFrame(D), k = se(p), k = Math.max(
405
+ Math.min(k, G),
406
+ -G
407
407
  ), k !== 0) {
408
408
  const _ = c.value;
409
409
  if (!_ || !u.value)
410
410
  return;
411
- const I = w.value.height - y.value.height;
411
+ const B = w.value.height - y.value.height;
412
412
  let x = w.value.top + Number(k);
413
- x = Math.min(Math.max(0, x), I), _.scrollTop = x, te(), B = requestAnimationFrame(() => ee(p));
413
+ x = Math.min(Math.max(0, x), B), _.scrollTop = x, te(), D = requestAnimationFrame(() => ee(p));
414
414
  }
415
415
  }
416
416
  function se(p) {
417
417
  if (c.value) {
418
- const I = y.value, x = I.bottom - p;
418
+ const B = y.value, x = B.bottom - p;
419
419
  if (x < N)
420
- return q * Z(1 - x / N);
421
- const V = p - I.top;
420
+ return q * X(1 - x / N);
421
+ const V = p - B.top;
422
422
  if (V < N)
423
- return -q * Z(1 - V / N);
423
+ return -q * X(1 - V / N);
424
424
  }
425
425
  return 0;
426
426
  }
427
- function J(p) {
427
+ function Z(p) {
428
428
  const _ = { ...T.value, right: 0, bottom: 0 };
429
429
  return _.left += y.value.left, _.top += y.value.top - w.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < p.right && _.right > p.left && _.top < p.bottom && _.bottom > p.top;
430
430
  }
@@ -436,9 +436,9 @@ function Je({
436
436
  m.value.y + p - m.value.scrollTop
437
437
  ), m.value.scrollTop = p;
438
438
  }
439
- function g(p, _, I = "dynamic-styles") {
440
- let x = document.getElementById(I);
441
- x || (x = document.createElement("style"), x.id = I, document.head.appendChild(x));
439
+ function g(p, _, B = "dynamic-styles") {
440
+ let x = document.getElementById(B);
441
+ x || (x = document.createElement("style"), x.id = B, document.head.appendChild(x));
442
442
  const V = x.sheet.cssRules, ne = V.length, et = `${p} { ${_} }`;
443
443
  for (let ve = 0; ve < ne; ve++) {
444
444
  const Se = V[ve];
@@ -450,16 +450,16 @@ function Je({
450
450
  function b(p, _) {
451
451
  v.value = !0, u.value = !0, w.value.height ? w.value.sync() : w.value.sync(!0), r.value.x = p, r.value.y = _ + w.value.top, m.value.x = r.value.x, m.value.y = r.value.y, c.value?.classList.add("disable-scroll-behavior"), d.clear();
452
452
  }
453
- function A(p, _, I) {
454
- !u.value || (v.value && t === "colum" && !L() && (s(), v.value = !1), I?.(), ee(_), m.value.x = Math.max(p, y.value.left), m.value.y = Math.min(
453
+ function A(p, _, B) {
454
+ !u.value || (v.value && t === "colum" && !L() && (s(), v.value = !1), B?.(), ee(_), m.value.x = Math.max(p, y.value.left), m.value.y = Math.min(
455
455
  _ + w.value.top,
456
456
  w.value.height + y.value.top
457
457
  ), m.value.scrollTop = w.value.top, f.value());
458
458
  }
459
- function P() {
459
+ function H() {
460
460
  u.value = !1, c.value?.classList.remove("disable-scroll-behavior");
461
461
  }
462
- function $() {
462
+ function O() {
463
463
  !u.value || (k || te(), f.value());
464
464
  }
465
465
  function L() {
@@ -473,17 +473,17 @@ function Je({
473
473
  }
474
474
  function Q() {
475
475
  L() || c.value?.querySelectorAll(`[${e}]`).forEach((p) => {
476
- i[`${e}`] = p.getAttribute(`${e}`), J(p.getBoundingClientRect()) ? o([i]) : a([i]);
476
+ i[`${e}`] = p.getAttribute(`${e}`), Z(p.getBoundingClientRect()) ? o([i]) : a([i]);
477
477
  });
478
478
  }
479
479
  function ae() {
480
480
  const p = [];
481
- let _ = null, I = 0;
481
+ let _ = null, B = 0;
482
482
  c.value?.querySelectorAll(`[${e}]`).forEach((x, V) => {
483
483
  const ne = x.getAttribute(`${e}`);
484
- p.push(ne), J(x.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), I = Math.max(I, V)) : (i[`${e}`] = ne, d.has(ne) && a([i]));
484
+ p.push(ne), Z(x.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), B = Math.max(B, V)) : (i[`${e}`] = ne, d.has(ne) && a([i]));
485
485
  });
486
- for (let x = _; x < I + 1; x++)
486
+ for (let x = _; x < B + 1; x++)
487
487
  i[`${e}`] = p[x], o([i]), d.add(p[x]);
488
488
  }
489
489
  function re(p) {
@@ -496,8 +496,8 @@ function Je({
496
496
  init: re,
497
497
  dragStart: b,
498
498
  dragMove: A,
499
- dragEnd: P,
500
- onScroll: $,
499
+ dragEnd: H,
500
+ onScroll: O,
501
501
  isSingleClick: L,
502
502
  cancelSelectAllBySingleClick: le,
503
503
  selectFn: f,
@@ -507,7 +507,7 @@ function Je({
507
507
  observer: E
508
508
  };
509
509
  }
510
- function Ll(e) {
510
+ function Sl(e) {
511
511
  const t = Je(e), { observer: l, selectRange: n } = t, {
512
512
  onScroll: o,
513
513
  dragStart: a,
@@ -553,7 +553,7 @@ function Ll(e) {
553
553
  }
554
554
  return { init: m, unMount: E };
555
555
  }
556
- function $l(e, t, l = 600) {
556
+ function El(e, t, l = 600) {
557
557
  const n = Je({
558
558
  ...e,
559
559
  selectWay: "row",
@@ -608,9 +608,9 @@ const Ft = Symbol(), kt = /* @__PURE__ */ U({
608
608
  const l = e, n = () => {
609
609
  l.closeOnClickOverlay && t("update:visiable", !1);
610
610
  };
611
- return W(Ft, () => t("update:visiable", !1)), (o, a) => (R(), Me(He, { name: "modal" }, {
611
+ return W(Ft, () => t("update:visiable", !1)), (o, a) => (I(), Me(He, { name: "modal" }, {
612
612
  default: Pe(() => [
613
- e.visiable ? (R(), H("div", {
613
+ e.visiable ? (I(), P("div", {
614
614
  key: 0,
615
615
  onClick: n,
616
616
  class: "lzc-modal"
@@ -628,13 +628,13 @@ const Ft = Symbol(), kt = /* @__PURE__ */ U({
628
628
  }));
629
629
  }
630
630
  });
631
- const G = (e, t) => {
631
+ const J = (e, t) => {
632
632
  const l = e.__vccOpts || e;
633
633
  for (const [n, o] of t)
634
634
  l[n] = o;
635
635
  return l;
636
- }, Wt = /* @__PURE__ */ G(kt, [["__scopeId", "data-v-e171c24d"]]);
637
- function Ol(e) {
636
+ }, Wt = /* @__PURE__ */ J(kt, [["__scopeId", "data-v-e171c24d"]]);
637
+ function Cl(e) {
638
638
  function t(l, n) {
639
639
  const o = document.createElement("div"), a = {
640
640
  setup() {
@@ -661,7 +661,7 @@ function Ol(e) {
661
661
  create: t
662
662
  };
663
663
  }
664
- function Rl({
664
+ function xl({
665
665
  component: e,
666
666
  componentProps: t,
667
667
  delay: l = 300
@@ -692,22 +692,15 @@ function Rl({
692
692
  }
693
693
  return { LoadingComp: s, loading: o, load: i, unload: f };
694
694
  }
695
- const zt = {}, Nt = { class: "wrapper" }, Vt = /* @__PURE__ */ C("div", { class: "loading" }, null, -1), jt = [
695
+ const zt = {}, Nt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), Vt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ C("div", { class: "ldio-mm5gwljcryb" }, [
696
+ /* @__PURE__ */ C("div")
697
+ ], -1)), jt = [
696
698
  Vt
697
699
  ];
698
700
  function Kt(e, t) {
699
- return R(), H("div", Nt, jt);
700
- }
701
- const Dl = /* @__PURE__ */ G(zt, [["render", Kt]]);
702
- const Ut = {}, qt = (e) => (ce("data-v-9d3ce674"), e = e(), de(), e), Qt = /* @__PURE__ */ qt(() => /* @__PURE__ */ C("div", { class: "ldio-mm5gwljcryb" }, [
703
- /* @__PURE__ */ C("div")
704
- ], -1)), Yt = [
705
- Qt
706
- ];
707
- function Gt(e, t) {
708
- return R(), H("div", he(pe(e.$attrs)), Yt, 16);
701
+ return I(), P("div", he(pe(e.$attrs)), jt, 16);
709
702
  }
710
- const Bl = /* @__PURE__ */ G(Ut, [["render", Gt], ["__scopeId", "data-v-9d3ce674"]]), Xt = /* @__PURE__ */ U({
703
+ const Tl = /* @__PURE__ */ J(zt, [["render", Kt], ["__scopeId", "data-v-76a2728a"]]), Ut = /* @__PURE__ */ U({
711
704
  __name: "Toast",
712
705
  props: {
713
706
  message: null,
@@ -740,34 +733,34 @@ const Bl = /* @__PURE__ */ G(Ut, [["render", Gt], ["__scopeId", "data-v-9d3ce674
740
733
  }));
741
734
  return _e(() => {
742
735
  n.value = l.value.offsetWidth / 2, o.value = l.value.offsetHeight / 2;
743
- }), (f, d) => (R(), H("div", {
736
+ }), (f, d) => (I(), P("div", {
744
737
  id: "toastWrapper",
745
738
  ref_key: "toastWrapper",
746
739
  ref: l,
747
740
  class: "toastWrapper",
748
- style: z([O(s), { zIndex: 9999 }])
741
+ style: z([$(s), { zIndex: 9999 }])
749
742
  }, [
750
743
  C("div", {
751
- style: z(O(i))
744
+ style: z($(i))
752
745
  }, [
753
746
  C("span", null, Fe(e.message), 1)
754
747
  ], 4)
755
748
  ], 4));
756
749
  }
757
750
  });
758
- const Zt = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-15ab4094"]]), De = {
751
+ const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-15ab4094"]]), De = {
759
752
  message: "\u61D2\u732B\u4E91 Yes!!!",
760
753
  position: "middle",
761
754
  duration: 1500
762
755
  };
763
- class Il {
756
+ class Ll {
764
757
  options;
765
758
  container;
766
759
  constructor(t) {
767
760
  this.options = t, this.container = document.createElement("div");
768
761
  }
769
762
  present() {
770
- const t = Y(Y(Zt), { ...De, ...this.options });
763
+ const t = Y(Y(qt), { ...De, ...this.options });
771
764
  ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
772
765
  const l = this.options.duration || De.duration;
773
766
  setTimeout(() => {
@@ -785,7 +778,7 @@ class Il {
785
778
  }
786
779
  }
787
780
  }
788
- const Jt = ["xlink:href", "fill", "color"], Ml = /* @__PURE__ */ U({
781
+ const Qt = ["xlink:href", "fill", "color"], Ol = /* @__PURE__ */ U({
789
782
  __name: "SvgIcon",
790
783
  props: {
791
784
  name: null,
@@ -800,26 +793,26 @@ const Jt = ["xlink:href", "fill", "color"], Ml = /* @__PURE__ */ U({
800
793
  height: `${t.height ?? t.width}px`,
801
794
  aspectRatio: t.width && t.height ? void 0 : "1/1"
802
795
  }));
803
- return (o, a) => (R(), H("svg", {
796
+ return (o, a) => (I(), P("svg", {
804
797
  "aria-hidden": "",
805
- style: z(O(n))
798
+ style: z($(n))
806
799
  }, [
807
800
  C("use", {
808
- "xlink:href": O(l),
801
+ "xlink:href": $(l),
809
802
  fill: e.color,
810
803
  color: e.color
811
- }, null, 8, Jt)
804
+ }, null, 8, Qt)
812
805
  ], 4));
813
806
  }
814
807
  });
815
- function el(e) {
808
+ function Yt(e) {
816
809
  const {
817
810
  containerEl: t,
818
811
  sliderEl: l,
819
812
  autoHeight: n,
820
813
  performance: o = {},
821
814
  maxHeightRatio: a = 0.9
822
- } = e, s = h(!0), i = ze(X, 100);
815
+ } = e, s = h(!0), i = ze(G, 100);
823
816
  let f, d = "";
824
817
  const v = h(0), c = h(0), u = h(0), r = h({
825
818
  top: 0,
@@ -831,13 +824,13 @@ function el(e) {
831
824
  }), E = S(() => !!c.value), y = S(() => r.value.scrollHeight > r.value.clientHeight), w = S(() => r.value.clientHeight - m.value.clientHeight), T = S(() => r.value.scrollHeight - r.value.clientHeight), F = S(() => Math.max(
832
825
  r.value.clientHeight / r.value.scrollHeight,
833
826
  0.05
834
- )), M = S(() => F.value > a ? 0 : F.value * r.value.clientHeight), D = S(() => ({
827
+ )), M = S(() => F.value > a ? 0 : F.value * r.value.clientHeight), R = S(() => ({
835
828
  willChange: "transform",
836
829
  transform: `translate3d(0,${u.value}px,0)`,
837
830
  height: n ? `${M.value}px` : void 0
838
831
  }));
839
- function B($) {
840
- q(), c.value = $.clientY - l.value.getBoundingClientRect().top || 1, d = getComputedStyle(t.value).scrollBehavior, d === "smooth" && (t.value.style.scrollBehavior = "unset");
832
+ function D(O) {
833
+ q(), c.value = O.clientY - l.value.getBoundingClientRect().top || 1, d = getComputedStyle(t.value).scrollBehavior, d === "smooth" && (t.value.style.scrollBehavior = "unset");
841
834
  }
842
835
  function N() {
843
836
  t.value.style.scrollBehavior = d, c.value = 0, i();
@@ -845,13 +838,13 @@ function el(e) {
845
838
  function q() {
846
839
  s.value = !1;
847
840
  }
848
- function X() {
841
+ function G() {
849
842
  E.value || (s.value = !0);
850
843
  }
851
- function Z($) {
844
+ function X(O) {
852
845
  if (!E.value)
853
846
  return;
854
- let L = $.clientY - r.value.top - c.value;
847
+ let L = O.clientY - r.value.top - c.value;
855
848
  L < 0 ? u.value = 0 : L >= w.value ? u.value = w.value : u.value = L, t.value.scrollTo({
856
849
  top: u.value / w.value * T.value
857
850
  });
@@ -865,41 +858,41 @@ function el(e) {
865
858
  function se() {
866
859
  t.value && (v.value = o.scrollTop?.value ?? t.value.scrollTop, u.value = v.value / T.value * w.value);
867
860
  }
868
- function J($) {
861
+ function Z(O) {
869
862
  let L = "addEventListener";
870
- $ === "add" ? L = "addEventListener" : L = "removeEventListener", l.value?.[L]("pointerdown", B, {
863
+ O === "add" ? L = "addEventListener" : L = "removeEventListener", l.value?.[L]("pointerdown", D, {
871
864
  passive: !0
872
- }), window[L]("pointermove", Z, { passive: !0 }), window[L]("pointerup", N, { passive: !0 });
865
+ }), window[L]("pointermove", X, { passive: !0 }), window[L]("pointerup", N, { passive: !0 });
873
866
  }
874
- const te = new MutationObserver(($) => {
875
- $.map((le) => le.oldValue).join().includes("height") && g();
867
+ const te = new MutationObserver((O) => {
868
+ O.map((le) => le.oldValue).join().includes("height") && g();
876
869
  });
877
870
  function g() {
878
871
  r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
879
872
  }
880
873
  function b() {
881
874
  q(), setTimeout(() => {
882
- m.value.clientHeight = l.value?.clientHeight ?? 0, X();
875
+ m.value.clientHeight = l.value?.clientHeight ?? 0, G();
883
876
  }, 150);
884
877
  }
885
- function A($, L, le = "dynamic-styles") {
878
+ function A(O, L, le = "dynamic-styles") {
886
879
  let Q = document.getElementById(le);
887
880
  Q || (Q = document.createElement("style"), Q.id = le, document.head.appendChild(Q));
888
- const ae = Q.sheet.cssRules, re = ae.length, p = `${$} { ${L} }`;
881
+ const ae = Q.sheet.cssRules, re = ae.length, p = `${O} { ${L} }`;
889
882
  for (let _ = 0; _ < re; _++) {
890
- const I = ae[_];
891
- if (I.selectorText === $ && I.style.cssText === L)
883
+ const B = ae[_];
884
+ if (B.selectorText === O && B.style.cssText === L)
892
885
  return;
893
886
  }
894
887
  Q.sheet.insertRule(p, re);
895
888
  }
896
- function P() {
889
+ function H() {
897
890
  t.value && l.value ? (A(
898
891
  ".hide-scrollbar",
899
892
  "scrollbar-width: none; -ms-overflow-style: none;"
900
893
  ), A(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", k, {
901
894
  passive: !0
902
- }), J("add"), te.observe(t.value, {
895
+ }), Z("add"), te.observe(t.value, {
903
896
  subtree: !0,
904
897
  attributeOldValue: !0,
905
898
  attributeFilter: ["style"]
@@ -915,12 +908,12 @@ function el(e) {
915
908
  offsetTop: u,
916
909
  scrollTop: v,
917
910
  scrollable: y,
918
- sliderPos: D,
919
- init: P,
920
- modifySliderEventListener: J
911
+ sliderPos: R,
912
+ init: H,
913
+ modifySliderEventListener: Z
921
914
  };
922
915
  }
923
- const tl = (e) => (ce("data-v-edec7292"), e = e(), de(), e), ll = /* @__PURE__ */ tl(() => /* @__PURE__ */ C("div", { class: "default-slider" }, null, -1)), nl = /* @__PURE__ */ U({
916
+ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ */ Gt(() => /* @__PURE__ */ C("div", { class: "default-slider" }, null, -1)), Zt = /* @__PURE__ */ U({
924
917
  __name: "ScrollBar",
925
918
  props: {
926
919
  containerEl: null,
@@ -929,7 +922,7 @@ const tl = (e) => (ce("data-v-edec7292"), e = e(), de(), e), ll = /* @__PURE__ *
929
922
  performance: null
930
923
  },
931
924
  setup(e, { expose: t }) {
932
- const l = e, n = !!it().default, o = h(null), a = S(() => l.containerEl), s = el({
925
+ const l = e, n = !!it().default, o = h(null), a = S(() => l.containerEl), s = Yt({
933
926
  containerEl: a,
934
927
  sliderEl: o,
935
928
  autoHeight: n ? l.autoHeight : !0,
@@ -948,7 +941,7 @@ const tl = (e) => (ce("data-v-edec7292"), e = e(), de(), e), ll = /* @__PURE__ *
948
941
  function r() {
949
942
  v.value = !1;
950
943
  }
951
- return t({ uScrollBarReturn: s }), (m, E) => (R(), Me(He, null, {
944
+ return t({ uScrollBarReturn: s }), (m, E) => (I(), Me(He, null, {
952
945
  default: Pe(() => [
953
946
  ct(C("div", {
954
947
  ref_key: "sliderRef",
@@ -956,26 +949,26 @@ const tl = (e) => (ce("data-v-edec7292"), e = e(), de(), e), ll = /* @__PURE__ *
956
949
  class: "slider-wrapper",
957
950
  onMouseenter: u,
958
951
  onMouseleave: r,
959
- style: z(O(d))
952
+ style: z($(d))
960
953
  }, [
961
954
  ye(m.$slots, "default", {}, () => [
962
- ll
955
+ Xt
963
956
  ], !0)
964
957
  ], 36), [
965
- [dt, O(c)]
958
+ [dt, $(c)]
966
959
  ])
967
960
  ]),
968
961
  _: 3
969
962
  }));
970
963
  }
971
964
  });
972
- const Hl = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-edec7292"]]), ol = (e) => (ce("data-v-9bfa9cae"), e = e(), de(), e), sl = { class: "pull-refresh" }, al = {
965
+ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) => (ce("data-v-9bfa9cae"), e = e(), de(), e), el = { class: "pull-refresh" }, tl = {
973
966
  key: 0,
974
967
  class: "pull-arrow-circle"
975
- }, rl = {
968
+ }, ll = {
976
969
  key: 0,
977
970
  class: "box-load"
978
- }, ul = { class: "left-load" }, il = { class: "right-load" }, cl = /* @__PURE__ */ ol(() => /* @__PURE__ */ C("div", { class: "among-load" }, null, -1)), dl = { class: "pull-arrow" }, vl = { key: 1 }, fl = /* @__PURE__ */ U({
971
+ }, nl = { class: "left-load" }, ol = { class: "right-load" }, sl = /* @__PURE__ */ Jt(() => /* @__PURE__ */ C("div", { class: "among-load" }, null, -1)), al = { class: "pull-arrow" }, rl = { key: 1 }, ul = /* @__PURE__ */ U({
979
972
  __name: "PullRefresh",
980
973
  props: {
981
974
  refresh: null,
@@ -993,22 +986,22 @@ const Hl = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-edec7292"]]), ol = (e) =
993
986
  transform: `rotate(${100 + s.value}deg)`,
994
987
  opacity: i.value
995
988
  }));
996
- K(r, (D) => {
997
- D === 0 && (o.value = -50, i.value = 0.3);
998
- }), K(v, (D) => {
989
+ K(r, (R) => {
990
+ R === 0 && (o.value = -50, i.value = 0.3);
991
+ }), K(v, (R) => {
999
992
  if (r.value === 2)
1000
993
  return;
1001
- const B = Math.pow(D, l);
1002
- B === 0 && (o.value = -50), B <= 50 && B > 0 && (o.value = B - 45, s.value = Math.pow(B, 1.5), B > 15 ? f.value = !0 : f.value = !1), B > 50 && (o.value = 5, i.value = 1, r.value);
994
+ const D = Math.pow(R, l);
995
+ D === 0 && (o.value = -50), D <= 50 && D > 0 && (o.value = D - 45, s.value = Math.pow(D, 1.5), D > 15 ? f.value = !0 : f.value = !1), D > 50 && (o.value = 5, i.value = 1, r.value);
1003
996
  });
1004
- const T = (D) => {
1005
- t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (d.value === 0 && (d.value = D.touches[0].pageY), c.value = 0, M.value.style.transition = `${c.value}ms`, u.value = 0, v.value = D.touches[0].pageY - d.value, M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`);
997
+ const T = (R) => {
998
+ t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (d.value === 0 && (d.value = R.touches[0].pageY), c.value = 0, M.value.style.transition = `${c.value}ms`, u.value = 0, v.value = R.touches[0].pageY - d.value, M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`);
1006
999
  }, F = () => {
1007
1000
  if (t.refreshOff || !t?.refresh || r.value === 2)
1008
1001
  return;
1009
1002
  d.value = 0, c.value = 300;
1010
- const D = Math.pow(v.value, l);
1011
- M.value.style.transition = `${c.value}ms`, D > 50 ? (r.value = 2, v.value = Math.pow(50, 1 / l), M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
1003
+ const R = Math.pow(v.value, l);
1004
+ M.value.style.transition = `${c.value}ms`, R > 50 ? (r.value = 2, v.value = Math.pow(50, 1 / l), M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
1012
1005
  m.value = "\u5237\u65B0\u6210\u529F";
1013
1006
  }).catch(() => {
1014
1007
  m.value = "\u5237\u65B0\u5931\u8D25";
@@ -1027,32 +1020,32 @@ const Hl = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-edec7292"]]), ol = (e) =
1027
1020
  M.value = document.querySelector(
1028
1021
  t.pullRefreshContainer
1029
1022
  ), M.value.addEventListener("touchmove", T), M.value.addEventListener("touchend", F);
1030
- }), (D, B) => (R(), H("div", sl, [
1023
+ }), (R, D) => (I(), P("div", el, [
1031
1024
  C("div", {
1032
1025
  class: "pull-refresh-box",
1033
- style: z(O(y))
1026
+ style: z($(y))
1034
1027
  }, [
1035
- m.value ? (R(), H("div", vl, Fe(m.value), 1)) : (R(), H("div", al, [
1036
- r.value == 2 ? (R(), H("div", rl, [
1037
- C("div", ul, [
1028
+ m.value ? (I(), P("div", rl, Fe(m.value), 1)) : (I(), P("div", tl, [
1029
+ r.value == 2 ? (I(), P("div", ll, [
1030
+ C("div", nl, [
1038
1031
  C("div", {
1039
1032
  class: "left-circle",
1040
1033
  style: z({ backgroundColor: n })
1041
1034
  }, null, 4)
1042
1035
  ]),
1043
- C("div", il, [
1036
+ C("div", ol, [
1044
1037
  C("div", {
1045
1038
  class: "right-circle",
1046
1039
  style: z({ backgroundColor: n })
1047
1040
  }, null, 4)
1048
1041
  ]),
1049
- cl
1050
- ])) : (R(), H("div", {
1042
+ sl
1043
+ ])) : (I(), P("div", {
1051
1044
  key: 1,
1052
1045
  class: "pull-circle-line",
1053
- style: z(O(w))
1046
+ style: z($(w))
1054
1047
  }, [
1055
- C("div", dl, [
1048
+ C("div", al, [
1056
1049
  C("div", {
1057
1050
  class: Ae(["arrows", { opacity: f.value }]),
1058
1051
  style: z({ borderBottomColor: n })
@@ -1064,10 +1057,10 @@ const Hl = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-edec7292"]]), ol = (e) =
1064
1057
  ]));
1065
1058
  }
1066
1059
  });
1067
- const hl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-9bfa9cae"]]), pl = {
1060
+ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-9bfa9cae"]]), cl = {
1068
1061
  inheritAttrs: !1
1069
- }, ml = /* @__PURE__ */ U({
1070
- ...pl,
1062
+ }, dl = /* @__PURE__ */ U({
1063
+ ...cl,
1071
1064
  __name: "VirtualList",
1072
1065
  props: {
1073
1066
  data: null,
@@ -1096,11 +1089,11 @@ const hl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-9bfa9cae"]]), pl = {
1096
1089
  vListReturn: o
1097
1090
  });
1098
1091
  const c = "virtualListWrapper" + new Date().getTime();
1099
- return (u, r) => (R(), H(Ee, null, [
1100
- ft(hl, {
1092
+ return (u, r) => (I(), P(Ee, null, [
1093
+ ft(il, {
1101
1094
  refresh: e.refresh,
1102
1095
  refreshOff: e.refreshOff,
1103
- scrollTop: O(v),
1096
+ scrollTop: $(v),
1104
1097
  pullRefreshContainer: "#" + c
1105
1098
  }, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
1106
1099
  C("div", {
@@ -1108,16 +1101,16 @@ const hl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-9bfa9cae"]]), pl = {
1108
1101
  id: c
1109
1102
  }, [
1110
1103
  C("div", ht({
1111
- onScrollPassive: r[0] || (r[0] = (...m) => O(s).onScroll && O(s).onScroll(...m)),
1112
- ref: O(s).ref,
1104
+ onScrollPassive: r[0] || (r[0] = (...m) => $(s).onScroll && $(s).onScroll(...m)),
1105
+ ref: $(s).ref,
1113
1106
  class: "virtualList"
1114
1107
  }, u.$attrs), [
1115
- C("div", he(pe(O(i))), [
1116
- C("div", he(pe(O(f))), [
1117
- (R(!0), H(Ee, null, pt(O(a), ({ index: m, data: E }) => (R(), H("div", {
1108
+ C("div", he(pe($(i))), [
1109
+ C("div", he(pe($(f))), [
1110
+ (I(!0), P(Ee, null, pt($(a), ({ index: m, data: E }) => (I(), P("div", {
1118
1111
  key: m,
1119
1112
  style: z({
1120
- height: `${O(d)(m).height}px`,
1113
+ height: `${$(d)(m).height}px`,
1121
1114
  display: "flex"
1122
1115
  })
1123
1116
  }, [
@@ -1133,7 +1126,7 @@ const hl = /* @__PURE__ */ G(fl, [["__scopeId", "data-v-9bfa9cae"]]), pl = {
1133
1126
  ], 64));
1134
1127
  }
1135
1128
  });
1136
- const Pl = /* @__PURE__ */ G(ml, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), gl = { style: { position: "absolute" } }, _l = /* @__PURE__ */ be(() => /* @__PURE__ */ C("div", { class: "wrapper" }, null, -1)), yl = ["width", "height"], wl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("title", null, "logo", -1)), bl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("g", {
1129
+ const Rl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), vl = { style: { position: "absolute" } }, fl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("div", { class: "wrapper" }, null, -1)), hl = ["width", "height"], pl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("title", null, "logo", -1)), ml = /* @__PURE__ */ be(() => /* @__PURE__ */ C("g", {
1137
1130
  id: "group-1",
1138
1131
  stroke: "none",
1139
1132
  "stroke-width": "1",
@@ -1145,10 +1138,10 @@ const Pl = /* @__PURE__ */ G(ml, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
1145
1138
  id: "path-1",
1146
1139
  fill: "#FFF"
1147
1140
  })
1148
- ], -1)), Sl = [
1149
- wl,
1150
- bl
1151
- ], El = /* @__PURE__ */ U({
1141
+ ], -1)), gl = [
1142
+ pl,
1143
+ ml
1144
+ ], _l = /* @__PURE__ */ U({
1152
1145
  __name: "Loading",
1153
1146
  props: {
1154
1147
  width: { default: "90" },
@@ -1161,32 +1154,31 @@ const Pl = /* @__PURE__ */ G(ml, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
1161
1154
  "703ef503": l
1162
1155
  }));
1163
1156
  const l = `${t.duration}ms`;
1164
- return (n, o) => (R(), H("div", gl, [
1165
- _l,
1166
- (R(), H("svg", {
1157
+ return (n, o) => (I(), P("div", vl, [
1158
+ fl,
1159
+ (I(), P("svg", {
1167
1160
  style: { position: "relative" },
1168
1161
  width: e.width,
1169
1162
  height: e.height,
1170
1163
  viewBox: "0 0 260 260",
1171
1164
  version: "1.1",
1172
1165
  xmlns: "http://www.w3.org/2000/svg"
1173
- }, Sl, 8, yl))
1166
+ }, gl, 8, hl))
1174
1167
  ]));
1175
1168
  }
1176
1169
  });
1177
- const Al = /* @__PURE__ */ G(El, [["__scopeId", "data-v-40e00f20"]]);
1170
+ const Dl = /* @__PURE__ */ J(_l, [["__scopeId", "data-v-40e00f20"]]);
1178
1171
  export {
1179
- Dl as BackgroundLoading,
1180
- Bl as DefaultLoading,
1181
- Al as Loading,
1182
- hl as PullRefresh,
1183
- Hl as ScrollBar,
1184
- Ml as SvgIcon,
1185
- Il as ToastCreator,
1186
- Pl as VirtualList,
1172
+ Tl as DefaultLoading,
1173
+ Dl as Loading,
1174
+ il as PullRefresh,
1175
+ $l as ScrollBar,
1176
+ Ol as SvgIcon,
1177
+ Ll as ToastCreator,
1178
+ Rl as VirtualList,
1187
1179
  qe as allSelectedKey,
1188
1180
  Ft as closeDialogKey,
1189
- Ol as dialogController,
1181
+ Cl as dialogController,
1190
1182
  Xe as isAllSelectedKey,
1191
1183
  Ue as isSelectedKey,
1192
1184
  Ye as selectAllKey,
@@ -1195,11 +1187,11 @@ export {
1195
1187
  Ke as toggleKey,
1196
1188
  Ze as unselectAllKey,
1197
1189
  Ge as unselectKey,
1198
- Rl as useDelayLoad,
1190
+ xl as useDelayLoad,
1199
1191
  Je as useDragSelect,
1200
- $l as useDragSelectByMobile,
1201
- Ll as useDragSelectByPc,
1202
- Tl as useSelectable,
1203
- xl as useSelectableInjectors,
1192
+ El as useDragSelectByMobile,
1193
+ Sl as useDragSelectByPc,
1194
+ bl as useSelectable,
1195
+ wl as useSelectableInjectors,
1204
1196
  At as useVirtualList
1205
1197
  };
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function De(t,n={}){let o,l;return s=>{const a=Y(t),u=Y(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Re(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const f=Y(t),p=Date.now()-l;if(a(),f<=0)return l=Date.now(),h();p>f&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},f)),!o&&!r&&(r=setTimeout(()=>s=!0,f)),s=!1}}function Ie(t){return t}function ke(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,f=e.customRef((p,d)=>(l=p,r=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function _e(t,n=200,o={}){return ge(De(n,o),t)}function ye(t,n=200,o=!1,l=!0){return ge(Re(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const Me=Z?window:void 0,Pe=Z?window.document:void 0;function Ae(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function He(){const t=e.getCurrentInstance(),n=ke(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ne=(t,n)=>{var o={};for(var l in t)Fe.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ve.call(t,l)&&(o[l]=t[l]);return o};function ze(t,n,o={}){const l=o,{window:r=Me}=l,s=Ne(l,["window"]);let a;const u=Ae(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},f=e.watch(()=>Se(t),d=>{h(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return ve(p),{isSupported:u,stop:p}}function je(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return ze(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:f})=>h+f,0),s.value=u.reduce((h,{blockSize:f})=>h+f,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ke=0;function We(t,n={}){const o=e.ref(!1),{document:l=Pe,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ke}`}=n,u=e.ref(t);let h=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),l.head.appendChild(d),!o.value&&(h=e.watch(u,c=>{d.innerText=c},{immediate:!0}),o.value=!0)},p=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(f),s||ve(p),{id:a,css:u,unload:p,load:f,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ye=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Qe.call(n,o)&&Te(t,o,n[o]);return t};Ye({linear:Ie},{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 Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=je(s),u=e.ref(!0),h=_e(D,100);let f;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:w}={sum:0,height:0};return p.value.map((I,R)=>(typeof l=="number"?w=l:w=l(R),v+=w,{height:w,sum:v}))}),y=e.computed(()=>N(c.value.start)),S=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,w=Math.max(v-i,0);return g.value.slice(w,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch([a.width,a.height,p],([v,w])=>{(v||w)&&x()},{deep:!0}),e.watch(d,()=>{k(),h()});function k(){u.value=!1}function D(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame($)}function $(){if(s.value){d.value=s.value.scrollTop,i=F();let v=P(d.value),w=v+i+r;v=v-r,v=v<0?0:v,w=w>p.value.length?p.value.length:w,c.value={start:v,end:w},g.value=p.value.slice(v,w).map((I,R)=>({data:I,index:R+v}))}}function P(v){let w=0,I=b.value.length-1,R=-1;for(;w<=I;){const L=Math.floor((w+I)/2);b.value[L].sum>=v?(R=L,I=L-1):w=L+1}return Math.max(0,R)}function F(){let v=0,w=0,I=M();for(let R=I;R<b.value.length&&(v++,w+=b.value[R].height,!(w>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let w=b.value[v];return w?w.sum-w.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function M(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const w=z(v);s.value.scrollTop=w.sum-w.height,$()}}const Q=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${y.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:P,totalHeight:S,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{x()},style:W},wrapperProps:Q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Ge(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),f=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:f,selectAll:p,unselect:d,unselectAll:c}}function Xe(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function f(c){return!!o.value[c[n]]}function p(c){c.forEach(i=>{f(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function d(){r.value?a():s()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,f),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:p,toggleAll:d,isSelected:f,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>ye(n==="colum"?V:G,50)),f=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>y.value=m[0].target.getBoundingClientRect()),y=e.ref({}),S=e.ref({top:0,height:0,sync(m=!1){S.value.top=d.value?.scrollTop||0,m&&(S.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-y.value.left,top:Math.min(i.value.y,g.value.y)-y.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:k=50,startSpeed:D=30,maxSpeed:x=30}=o;let $;const P=k,F=D,N=x,z=m=>m**1;let M=0;function K(m){if(cancelAnimationFrame($),M=Q(m),M=Math.max(Math.min(M,N),-N),M!==0){const _=d.value;if(!_||!c.value)return;const O=S.value.height-y.value.height;let C=S.value.top+Number(M);C=Math.min(Math.max(0,C),O),_.scrollTop=C,W(),$=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const O=y.value,C=O.bottom-m;if(C<P)return F*z(1-C/P);const A=m-O.top;if(A<P)return-F*z(1-A/P)}return 0}function j(m){const _={...T.value,right:0,bottom:0};return _.left+=y.value.left,_.top+=y.value.top-S.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<m.right&&_.right>m.left&&_.top<m.bottom&&_.bottom>m.top}function W(){S.value.sync();const{top:m,height:_}=S.value;g.value.y=Math.min(_+y.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,_,O="dynamic-styles"){let C=document.getElementById(O);C||(C=document.createElement("style"),C.id=O,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,Nt=`${m} { ${_} }`;for(let pe=0;pe<q;pe++){const Oe=A[pe];if(Oe.selectorText===m&&Oe.style.cssText===_)return}C.sheet.insertRule(Nt,q)}function w(m,_){p.value=!0,c.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=m,i.value.y=_+S.value.top,g.value.x=i.value.x,g.value.y=i.value.y,d.value?.classList.add("disable-scroll-behavior"),f.clear()}function I(m,_,O){!c.value||(p.value&&n==="colum"&&!B()&&(a(),p.value=!1),O?.(),K(_),g.value.x=Math.max(m,y.value.left),g.value.y=Math.min(_+S.value.top,S.value.height+y.value.top),g.value.scrollTop=S.value.top,h.value())}function R(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function L(){!c.value||(M||W(),h.value())}function B(){if(!c.value)return!1;const{width:m,height:_}=T.value;return!(Math.max(m,_)>5)}function U(){B()&&a()}function V(){B()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{u[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([u]):s([u])})}function G(){const m=[];let _=null,O=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=_;C<O+1;C++)u[`${t}`]=m[C],r([u]),f.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:w,dragMove:I,dragEnd:R,onScroll:L,isSingleClick:B,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:d,observer:b}}function Ze(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:f.value})}});function d(y){y.button===0&&s(y.x,y.y)}function c(y){a(y.x,y.y)}function i(y){y.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),u()}function g(y){try{if(!n.init(y))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(p),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function Je(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let f;function p(){clearTimeout(f)}function d(y){p(),y.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:T,clientY:k}=y.targetTouches[0];a(T,k),n?.(),u(T,k,()=>y.preventDefault()),y.preventDefault()},o))}function c(y){p();const{clientX:S,clientY:T}=y.targetTouches[0];u(S,T,()=>y.preventDefault())}function i(){p(),h()}function g(y){try{if(!l.init(y))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",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(S){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",S)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Le=Symbol(),et=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Le,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),jt="",H=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},tt=H(et,[["__scopeId","data-v-e171c24d"]]);function nt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(tt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function ot({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,r=e.ref(!1),{load:s}=We(`@keyframes delayLoad {
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.ui={},w.Vue))})(this,function(w,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function De(t,n={}){let o,l;return s=>{const a=Y(t),u=Y(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Re(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const f=Y(t),p=Date.now()-l;if(a(),f<=0)return l=Date.now(),h();p>f&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},f)),!o&&!r&&(r=setTimeout(()=>s=!0,f)),s=!1}}function Ie(t){return t}function Me(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,f=e.customRef((p,d)=>(l=p,r=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge(De(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Re(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const ke=Z?window:void 0,Pe=Z?window.document:void 0;function Ae(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function He(){const t=e.getCurrentInstance(),n=Me(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ne=(t,n)=>{var o={};for(var l in t)Fe.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ve.call(t,l)&&(o[l]=t[l]);return o};function ze(t,n,o={}){const l=o,{window:r=ke}=l,s=Ne(l,["window"]);let a;const u=Ae(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},f=e.watch(()=>Se(t),d=>{h(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return ve(p),{isSupported:u,stop:p}}function je(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return ze(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:f})=>h+f,0),s.value=u.reduce((h,{blockSize:f})=>h+f,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ke=0;function We(t,n={}){const o=e.ref(!1),{document:l=Pe,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ke}`}=n,u=e.ref(t);let h=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),l.head.appendChild(d),!o.value&&(h=e.watch(u,c=>{d.innerText=c},{immediate:!0}),o.value=!0)},p=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(f),s||ve(p),{id:a,css:u,unload:p,load:f,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ye=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Qe.call(n,o)&&Te(t,o,n[o]);return t};Ye({linear:Ie},{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,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=je(s),u=e.ref(!0),h=ye(D,100);let f;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:S}={sum:0,height:0};return p.value.map((I,R)=>(typeof l=="number"?S=l:S=l(R),v+=S,{height:S,sum:v}))}),_=e.computed(()=>N(c.value.start)),E=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,S=Math.max(v-i,0);return g.value.slice(S,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch([a.width,a.height,p],([v,S])=>{(v||S)&&x()},{deep:!0}),e.watch(d,()=>{M(),h()});function M(){u.value=!1}function D(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(O)}function O(){if(s.value){d.value=s.value.scrollTop,i=H();let v=P(d.value),S=v+i+r;v=v-r,v=v<0?0:v,S=S>p.value.length?p.value.length:S,c.value={start:v,end:S},g.value=p.value.slice(v,S).map((I,R)=>({data:I,index:R+v}))}}function P(v){let S=0,I=b.value.length-1,R=-1;for(;S<=I;){const B=Math.floor((S+I)/2);b.value[B].sum>=v?(R=B,I=B-1):S=B+1}return Math.max(0,R)}function H(){let v=0,S=0,I=k();for(let R=I;R<b.value.length&&(v++,S+=b.value[R].height,!(S>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let S=b.value[v];return S?S.sum-S.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function k(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const S=z(v);s.value.scrollTop=S.sum-S.height,O()}}const Q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:P,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{x()},style:W},wrapperProps:Q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Ge(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),f=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:f,selectAll:p,unselect:d,unselectAll:c}}function Xe(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function f(c){return!!o.value[c[n]]}function p(c){c.forEach(i=>{f(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function d(){r.value?a():s()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,f),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:p,toggleAll:d,isSelected:f,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>_e(n==="colum"?F:G,50)),f=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),E=e.ref({top:0,height:0,sync(m=!1){E.value.top=d.value?.scrollTop||0,m&&(E.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:D=30,maxSpeed:x=30}=o;let O;const P=M,H=D,N=x,z=m=>m**1;let k=0;function K(m){if(cancelAnimationFrame(O),k=Q(m),k=Math.max(Math.min(k,N),-N),k!==0){const y=d.value;if(!y||!c.value)return;const $=E.value.height-_.value.height;let C=E.value.top+Number(k);C=Math.min(Math.max(0,C),$),y.scrollTop=C,W(),O=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const $=_.value,C=$.bottom-m;if(C<P)return H*z(1-C/P);const A=m-$.top;if(A<P)return-H*z(1-A/P)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-E.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<m.right&&y.right>m.left&&y.top<m.bottom&&y.bottom>m.top}function W(){E.value.sync();const{top:m,height:y}=E.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,$="dynamic-styles"){let C=document.getElementById($);C||(C=document.createElement("style"),C.id=$,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,Pt=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const $e=A[pe];if($e.selectorText===m&&$e.style.cssText===y)return}C.sheet.insertRule(Pt,q)}function S(m,y){p.value=!0,c.value=!0,E.value.height?E.value.sync():E.value.sync(!0),i.value.x=m,i.value.y=y+E.value.top,g.value.x=i.value.x,g.value.y=i.value.y,d.value?.classList.add("disable-scroll-behavior"),f.clear()}function I(m,y,$){!c.value||(p.value&&n==="colum"&&!L()&&(a(),p.value=!1),$?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+E.value.top,E.value.height+_.value.top),g.value.scrollTop=E.value.top,h.value())}function R(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(k||W(),h.value())}function L(){if(!c.value)return!1;const{width:m,height:y}=T.value;return!(Math.max(m,y)>5)}function U(){L()&&a()}function F(){L()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{u[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([u]):s([u])})}function G(){const m=[];let y=null,$=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),$=Math.max($,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=y;C<$+1;C++)u[`${t}`]=m[C],r([u]),f.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:S,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:d,observer:b}}function Ze(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:f.value})}});function d(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),u()}function g(_){try{if(!n.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(p),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function Je(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let f;function p(){clearTimeout(f)}function d(_){p(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),u(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){p();const{clientX:E,clientY:T}=_.targetTouches[0];u(E,T,()=>_.preventDefault())}function i(){p(),h()}function g(_){try{if(!l.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",d),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),et=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ht="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},tt=V(et,[["__scopeId","data-v-e171c24d"]]);function nt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(tt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function ot({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,r=e.ref(!1),{load:s}=We(`@keyframes delayLoad {
2
2
  to {
3
3
  opacity: 1;
4
4
  }
@@ -6,4 +6,4 @@
6
6
  .delay-load {
7
7
  opacity: 0;
8
8
  animation: delayLoad 0s ${l} forwards;
9
- }`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("delay-load")}),()=>r.value&&e.h(t,n)}});function u(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:u,unload:h}}const Kt="",lt={},rt={class:"wrapper"},at=[e.createElementVNode("div",{class:"loading"},null,-1)];function st(t,n){return e.openBlock(),e.createElementBlock("div",rt,at)}const it=H(lt,[["render",st]]),Ut="",ct={},ut=[(t=>(e.pushScopeId("data-v-9d3ce674"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function dt(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ut,16)}const ft=H(ct,[["render",dt],["__scopeId","data-v-9d3ce674"]]),pt=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),Yt="",ht=H(pt,[["__scopeId","data-v-15ab4094"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class mt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ht),{...xe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const gt=["xlink:href","fill","color"],vt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,gt)],4))}});function _t(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=_e(N,100);let h,f="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),y=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),S=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),k=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),D=e.computed(()=>k.value>s?0:k.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${D.value}px`:void 0}));function $(L){F(),d.value=L.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function P(){n.value.style.scrollBehavior=f,d.value=0,u()}function F(){a.value=!1}function N(){b.value||(a.value=!0)}function z(L){if(!b.value)return;let B=L.clientY-i.value.top-d.value;B<0?c.value=0:B>=S.value?c.value=S.value:c.value=B,n.value.scrollTo({top:c.value/S.value*T.value})}function M(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/T.value*S.value)}function j(L){let B="addEventListener";L==="add"?B="addEventListener":B="removeEventListener",o.value?.[B]("pointerdown",$,{passive:!0}),window[B]("pointermove",z,{passive:!0}),window[B]("pointerup",P,{passive:!0})}const W=new MutationObserver(L=>{L.map(U=>U.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function w(){F(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(L,B,U="dynamic-styles"){let V=document.getElementById(U);V||(V=document.createElement("style"),V.id=U,document.head.appendChild(V));const G=V.sheet.cssRules,X=G.length,m=`${L} { ${B} }`;for(let _=0;_<X;_++){const O=G[_];if(O.selectorText===L&&O.style.cssText===B)return}V.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",M,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),w()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(p,()=>{F(),u()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:y,sliderPos:x,init:R,modifySliderEventListener:j}}const yt=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Et=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=_t({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:f}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function i(){p.value=!1}return n({uScrollBarReturn:a}),(g,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:c,onMouseleave:i,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(g.$slots,"default",{},()=>[yt],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Xt="",St=H(Et,[["__scopeId","data-v-edec7292"]]),wt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),bt={class:"pull-refresh"},Ct={key:0,class:"pull-arrow-circle"},Tt={key:0,class:"box-load"},Bt={class:"left-load"},Lt={class:"right-load"},xt=wt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),$t={class:"pull-arrow"},Ot={key:1},Dt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),f=e.ref(0),p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),y=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),S=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,x=>{x===0&&(r.value=-50,u.value=.3)}),e.watch(p,x=>{if(i.value===2)return;const $=Math.pow(x,o);$===0&&(r.value=-50),$<=50&&$>0&&(r.value=$-45,a.value=Math.pow($,1.5),$>15?h.value=!0:h.value=!1),$>50&&(r.value=5,u.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(f.value===0&&(f.value=x.touches[0].pageY),d.value=0,D.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},k=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;f.value=0,d.value=300;const x=Math.pow(p.value,o);D.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{D.value=document.querySelector(n.pullRefreshContainer),D.value.addEventListener("touchmove",T),D.value.addEventListener("touchend",k)}),(x,$)=>(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(y))},[g.value?(e.openBlock(),e.createElementBlock("div",Ot,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",Ct,[i.value==2?(e.openBlock(),e.createElementBlock("div",Tt,[e.createElementVNode("div",Bt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),xt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",$t,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Zt="",$e=H(Dt,[["__scopeId","data-v-9bfa9cae"]]),Rt={inheritAttrs:!1},It=e.defineComponent({...Rt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=Be(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:f,scrollTop:p}=r;n({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode($e,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(f)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Jt="",kt=H(It,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),Mt={style:{position:"absolute"}},Pt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),At=["width","height"],Ht=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Ft=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",Mt,[Pt,(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"},Ht,8,At))]))}}),nn="",Vt=H(Ft,[["__scopeId","data-v-40e00f20"]]);E.BackgroundLoading=it,E.DefaultLoading=ft,E.Loading=Vt,E.PullRefresh=$e,E.ScrollBar=St,E.SvgIcon=vt,E.ToastCreator=mt,E.VirtualList=kt,E.allSelectedKey=le,E.closeDialogKey=Le,E.dialogController=nt,E.isAllSelectedKey=ie,E.isSelectedKey=oe,E.selectAllKey=ae,E.selectKey=re,E.toggleAllKey=te,E.toggleKey=ne,E.unselectAllKey=ce,E.unselectKey=se,E.useDelayLoad=ot,E.useDragSelect=de,E.useDragSelectByMobile=Je,E.useDragSelectByPc=Ze,E.useSelectable=Xe,E.useSelectableInjectors=Ge,E.useVirtualList=Be,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
9
+ }`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("delay-load")}),()=>r.value&&e.h(t,n)}});function u(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:u,unload:h}}const Ft="",lt={},rt=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function at(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16)}const st=V(lt,[["render",at],["__scopeId","data-v-76a2728a"]]),it=e.defineComponent({__name:"Toast",props:{message:null,position:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),zt="",ct=V(it,[["__scopeId","data-v-15ab4094"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class ut{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ct),{...xe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const dt=["xlink:href","fill","color"],ft=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,dt)],4))}});function pt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,f="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),E=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),D=e.computed(()=>M.value>s?0:M.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${D.value}px`:void 0}));function O(B){H(),d.value=B.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function P(){n.value.style.scrollBehavior=f,d.value=0,u()}function H(){a.value=!1}function N(){b.value||(a.value=!0)}function z(B){if(!b.value)return;let L=B.clientY-i.value.top-d.value;L<0?c.value=0:L>=E.value?c.value=E.value:c.value=L,n.value.scrollTo({top:c.value/E.value*T.value})}function k(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/T.value*E.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",O,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",P,{passive:!0})}const W=new MutationObserver(B=>{B.map(U=>U.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function S(){H(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(B,L,U="dynamic-styles"){let F=document.getElementById(U);F||(F=document.createElement("style"),F.id=U,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,m=`${B} { ${L} }`;for(let y=0;y<X;y++){const $=G[y];if($.selectorText===B&&$.style.cssText===L)return}F.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",k,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),S()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(p,()=>{H(),u()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const ht=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),mt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=pt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:f}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function i(){p.value=!1}return n({uScrollBarReturn:a}),(g,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:c,onMouseleave:i,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(g.$slots,"default",{},()=>[ht],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Kt="",gt=V(mt,[["__scopeId","data-v-edec7292"]]),vt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},Et={key:0,class:"box-load"},St={class:"left-load"},wt={class:"right-load"},bt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ct={class:"pull-arrow"},Tt={key:1},Lt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),f=e.ref(0),p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),E=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,x=>{x===0&&(r.value=-50,u.value=.3)}),e.watch(p,x=>{if(i.value===2)return;const O=Math.pow(x,o);O===0&&(r.value=-50),O<=50&&O>0&&(r.value=O-45,a.value=Math.pow(O,1.5),O>15?h.value=!0:h.value=!1),O>50&&(r.value=5,u.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(f.value===0&&(f.value=x.touches[0].pageY),d.value=0,D.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;f.value=0,d.value=300;const x=Math.pow(p.value,o);D.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{D.value=document.querySelector(n.pullRefreshContainer),D.value.addEventListener("touchmove",T),D.value.addEventListener("touchend",M)}),(x,O)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[i.value==2?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Wt="",Oe=V(Lt,[["__scopeId","data-v-9bfa9cae"]]),Bt={inheritAttrs:!1},xt=e.defineComponent({...Bt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=Le(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:f,scrollTop:p}=r;n({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(f)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Ut="",Ot=V(xt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},Dt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Rt=["width","height"],It=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],Mt=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",$t,[Dt,(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"},It,8,Rt))]))}}),Yt="",kt=V(Mt,[["__scopeId","data-v-40e00f20"]]);w.DefaultLoading=st,w.Loading=kt,w.PullRefresh=Oe,w.ScrollBar=gt,w.SvgIcon=ft,w.ToastCreator=ut,w.VirtualList=Ot,w.allSelectedKey=le,w.closeDialogKey=Be,w.dialogController=nt,w.isAllSelectedKey=ie,w.isSelectedKey=oe,w.selectAllKey=ae,w.selectKey=re,w.toggleAllKey=te,w.toggleKey=ne,w.unselectAllKey=ce,w.unselectKey=se,w.useDelayLoad=ot,w.useDragSelect=de,w.useDragSelectByMobile=Je,w.useDragSelectByPc=Ze,w.useSelectable=Xe,w.useSelectableInjectors=Ge,w.useVirtualList=Le,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-e171c24d]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-e171c24d]{margin:auto;display:flex;flex-direction:column}.wrapper{width:84px;height:72px;position:absolute;top:calc(50% - 36px);left:calc(50% - 42px);z-index:999999999;background-color:rgba(0,0,0,0,8);border-radius:8px;display:flex;justify-content:center;align-items:center}.loading{width:32px;height:32px;border-radius:50%;display:inline-block;border-top:3px solid #909090;border-right:3px solid transparent;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ldio-mm5gwljcryb[data-v-9d3ce674]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9d3ce674]{box-sizing:content-box;position:absolute;top:calc(50% - 12px);left:calc(50% - 12px);width:24px;height:24px;border:4px solid #ddd;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9d3ce674 1s linear infinite}@keyframes ldio-mm5gwljcryb-9d3ce674{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9d3ce674]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-15ab4094{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-15ab4094]{animation:slide-15ab4094 .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-9bfa9cae]{position:relative}.pull-refresh-box[data-v-9bfa9cae]{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-9bfa9cae]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-9bfa9cae]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-9bfa9cae 3s infinite linear forwards}@keyframes boxs-9bfa9cae{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-9bfa9cae]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-9bfa9cae]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-9bfa9cae 3s infinite linear forwards}@keyframes pr1A-9bfa9cae{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-9bfa9cae]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-9bfa9cae]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-9bfa9cae 3s infinite linear forwards}@keyframes pr2A-9bfa9cae{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-9bfa9cae]{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-9bfa9cae]{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-9bfa9cae]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-9bfa9cae]{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-9bfa9cae]{opacity:1}.left-item[data-v-9bfa9cae]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-9bfa9cae]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-40e00f20 var(--703ef503) linear infinite}
1
+ .lzc-modal[data-v-e171c24d]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-e171c24d]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-76a2728a]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-76a2728a]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:24px;height:24px;border:4px solid #ddd;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-76a2728a 1s linear infinite}@keyframes ldio-mm5gwljcryb-76a2728a{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-76a2728a]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}@keyframes slide-15ab4094{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-15ab4094]{animation:slide-15ab4094 .3s linear}.v-leave-active[data-v-edec7292]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-edec7292]{opacity:0}.slider-wrapper[data-v-edec7292]{z-index:100;position:absolute;right:0;touch-action:none}.default-slider[data-v-edec7292]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-9bfa9cae]{position:relative}.pull-refresh-box[data-v-9bfa9cae]{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-9bfa9cae]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-9bfa9cae]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-9bfa9cae 3s infinite linear forwards}@keyframes boxs-9bfa9cae{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-9bfa9cae]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-9bfa9cae]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-9bfa9cae 3s infinite linear forwards}@keyframes pr1A-9bfa9cae{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-9bfa9cae]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-9bfa9cae]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-9bfa9cae 3s infinite linear forwards}@keyframes pr2A-9bfa9cae{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-9bfa9cae]{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-9bfa9cae]{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-9bfa9cae]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-9bfa9cae]{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-9bfa9cae]{opacity:1}.left-item[data-v-9bfa9cae]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-9bfa9cae]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-40e00f20{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-40e00f20]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-40e00f20 var(--703ef503) linear infinite}
@@ -1,2 +1 @@
1
- export { default as BackgroundLoading } from "./BackgroundLoading.vue";
2
1
  export { default as DefaultLoading } from "./DefaultLoading.vue";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
- export default _default;