@lazycatcloud/lzc-toolkit 0.0.63 → 0.0.65

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