@lazycatcloud/lzc-toolkit 0.0.70 → 0.0.71
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 +239 -226
- package/dist/index.umd.js +2 -2
- package/dist/types/useDelayLoad/index.d.ts +8 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 z, defineComponent as U, h as Y, render as ue, openBlock as I, createBlock as Me, Transition as
|
|
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 z, defineComponent as U, h as Y, render as ue, openBlock as I, createBlock as Me, Transition as Pe, withCtx as He, 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 W, 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);
|
|
@@ -14,12 +14,12 @@ function ke(e, t) {
|
|
|
14
14
|
function gt(e, t = {}) {
|
|
15
15
|
let l, n;
|
|
16
16
|
return (a) => {
|
|
17
|
-
const s = ie(e),
|
|
18
|
-
if (l && clearTimeout(l), s <= 0 ||
|
|
17
|
+
const s = ie(e), c = ie(t.maxWait);
|
|
18
|
+
if (l && clearTimeout(l), s <= 0 || c !== void 0 && c <= 0)
|
|
19
19
|
return n && (clearTimeout(n), n = null), a();
|
|
20
|
-
|
|
20
|
+
c && !n && (n = setTimeout(() => {
|
|
21
21
|
l && clearTimeout(l), n = null, a();
|
|
22
|
-
},
|
|
22
|
+
}, c)), l = setTimeout(() => {
|
|
23
23
|
n && clearTimeout(n), n = null, a();
|
|
24
24
|
}, s);
|
|
25
25
|
};
|
|
@@ -30,12 +30,12 @@ function _t(e, t = !0, l = !0) {
|
|
|
30
30
|
o && (clearTimeout(o), o = void 0);
|
|
31
31
|
};
|
|
32
32
|
return (f) => {
|
|
33
|
-
const
|
|
34
|
-
if (s(),
|
|
33
|
+
const v = ie(e), d = Date.now() - n;
|
|
34
|
+
if (s(), v <= 0)
|
|
35
35
|
return n = Date.now(), f();
|
|
36
|
-
|
|
36
|
+
d > v && (l || !a) ? (n = Date.now(), f()) : t && (o = setTimeout(() => {
|
|
37
37
|
n = Date.now(), a = !0, s(), f();
|
|
38
|
-
},
|
|
38
|
+
}, v)), !l && !o && (o = setTimeout(() => a = !0, v)), a = !1;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
function yt(e) {
|
|
@@ -47,15 +47,15 @@ function wt(e, t) {
|
|
|
47
47
|
a.value = !0, o();
|
|
48
48
|
};
|
|
49
49
|
K(e, s, { flush: "sync" });
|
|
50
|
-
const
|
|
50
|
+
const c = xe(t) ? t : t.get, f = xe(t) ? void 0 : t.set, v = tt((d, i) => (n = d, o = i, {
|
|
51
51
|
get() {
|
|
52
|
-
return a.value && (l =
|
|
52
|
+
return a.value && (l = c(), a.value = !1), n(), l;
|
|
53
53
|
},
|
|
54
54
|
set(u) {
|
|
55
55
|
f?.(u);
|
|
56
56
|
}
|
|
57
57
|
}));
|
|
58
|
-
return Object.isExtensible(
|
|
58
|
+
return Object.isExtensible(v) && (v.trigger = s), v;
|
|
59
59
|
}
|
|
60
60
|
function ze(e) {
|
|
61
61
|
return lt() ? (nt(e), !0) : !1;
|
|
@@ -98,23 +98,23 @@ var Le = Object.getOwnPropertySymbols, xt = Object.prototype.hasOwnProperty, Tt
|
|
|
98
98
|
function Ot(e, t, l = {}) {
|
|
99
99
|
const n = l, { window: o = bt } = n, a = Lt(n, ["window"]);
|
|
100
100
|
let s;
|
|
101
|
-
const
|
|
101
|
+
const c = Et(() => o && "ResizeObserver" in o), f = () => {
|
|
102
102
|
s && (s.disconnect(), s = void 0);
|
|
103
|
-
},
|
|
104
|
-
f(),
|
|
105
|
-
}, { immediate: !0, flush: "post" }),
|
|
106
|
-
f(),
|
|
103
|
+
}, v = K(() => Ve(e), (i) => {
|
|
104
|
+
f(), c.value && o && i && (s = new ResizeObserver(t), s.observe(i, a));
|
|
105
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
106
|
+
f(), v();
|
|
107
107
|
};
|
|
108
|
-
return ze(
|
|
109
|
-
isSupported:
|
|
110
|
-
stop:
|
|
108
|
+
return ze(d), {
|
|
109
|
+
isSupported: c,
|
|
110
|
+
stop: d
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
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
115
|
return Ot(e, ([s]) => {
|
|
116
|
-
const
|
|
117
|
-
|
|
116
|
+
const c = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
117
|
+
c ? (o.value = c.reduce((f, { inlineSize: v }) => f + v, 0), a.value = c.reduce((f, { blockSize: v }) => f + v, 0)) : (o.value = s.contentRect.width, a.value = s.contentRect.height);
|
|
118
118
|
}, l), K(() => Ve(e), (s) => {
|
|
119
119
|
o.value = s ? t.width : 0, a.value = s ? t.height : 0;
|
|
120
120
|
}), {
|
|
@@ -133,28 +133,28 @@ function Rt(e, t = {}) {
|
|
|
133
133
|
immediate: o = !0,
|
|
134
134
|
manual: a = !1,
|
|
135
135
|
id: s = `vueuse_styletag_${++Dt}`
|
|
136
|
-
} = t,
|
|
136
|
+
} = t, c = h(e);
|
|
137
137
|
let f = () => {
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const v = () => {
|
|
140
140
|
if (!n)
|
|
141
141
|
return;
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
const i = n.getElementById(s) || n.createElement("style");
|
|
143
|
+
i.type = "text/css", i.id = s, t.media && (i.media = t.media), n.head.appendChild(i), !l.value && (f = K(c, (u) => {
|
|
144
|
+
i.innerText = u;
|
|
145
145
|
}, { immediate: !0 }), l.value = !0);
|
|
146
|
-
},
|
|
146
|
+
}, d = () => {
|
|
147
147
|
!n || !l.value || (f(), n.head.removeChild(n.getElementById(s)), l.value = !1);
|
|
148
148
|
};
|
|
149
|
-
return o && !a && Ne(
|
|
149
|
+
return o && !a && Ne(v), a || ze(d), {
|
|
150
150
|
id: s,
|
|
151
|
-
css:
|
|
152
|
-
unload:
|
|
153
|
-
load:
|
|
151
|
+
css: c,
|
|
152
|
+
unload: d,
|
|
153
|
+
load: v,
|
|
154
154
|
isLoaded: st(l)
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l,
|
|
157
|
+
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Pt = (e, t) => {
|
|
158
158
|
for (var l in t || (t = {}))
|
|
159
159
|
It.call(t, l) && De(e, l, t[l]);
|
|
160
160
|
if ($e)
|
|
@@ -162,7 +162,7 @@ var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.p
|
|
|
162
162
|
Mt.call(t, l) && De(e, l, t[l]);
|
|
163
163
|
return e;
|
|
164
164
|
};
|
|
165
|
-
const
|
|
165
|
+
const Ht = {
|
|
166
166
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
167
167
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
168
168
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -188,61 +188,61 @@ const Pt = {
|
|
|
188
188
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
189
189
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
190
190
|
};
|
|
191
|
-
|
|
191
|
+
Pt({
|
|
192
192
|
linear: yt
|
|
193
|
-
},
|
|
193
|
+
}, Ht);
|
|
194
194
|
function At(e, t) {
|
|
195
|
-
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = $t(a),
|
|
196
|
-
let
|
|
197
|
-
const
|
|
195
|
+
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = $t(a), c = h(!0), f = We(M, 100);
|
|
196
|
+
let v;
|
|
197
|
+
const d = at(e), i = 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
|
|
201
|
+
return d.value.map((A, P) => (typeof n == "number" ? b = n : b = n(P), g += b, { height: b, sum: g }));
|
|
202
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
|
});
|
|
206
206
|
oe(() => {
|
|
207
|
-
}), Ie(() => cancelAnimationFrame(
|
|
208
|
-
[s.width, s.height,
|
|
207
|
+
}), Ie(() => cancelAnimationFrame(v)), K(
|
|
208
|
+
[s.width, s.height, d],
|
|
209
209
|
([g, b]) => {
|
|
210
210
|
(g || b) && D();
|
|
211
211
|
},
|
|
212
212
|
{ deep: !0 }
|
|
213
|
-
), K(
|
|
213
|
+
), K(i, () => {
|
|
214
214
|
F(), f();
|
|
215
215
|
});
|
|
216
216
|
function F() {
|
|
217
|
-
|
|
217
|
+
c.value = !1;
|
|
218
218
|
}
|
|
219
219
|
function M() {
|
|
220
|
-
|
|
220
|
+
c.value = !0, l?.();
|
|
221
221
|
}
|
|
222
222
|
function D() {
|
|
223
|
-
cancelAnimationFrame(
|
|
223
|
+
cancelAnimationFrame(v), v = requestAnimationFrame(R);
|
|
224
224
|
}
|
|
225
225
|
function R() {
|
|
226
226
|
if (a.value) {
|
|
227
|
-
|
|
228
|
-
let g = N(
|
|
229
|
-
g = g - o, g = g < 0 ? 0 : g, b = b >
|
|
227
|
+
i.value = a.value.scrollTop, r = q();
|
|
228
|
+
let g = N(i.value), b = g + r + o;
|
|
229
|
+
g = g - o, g = g < 0 ? 0 : g, b = b > d.value.length ? d.value.length : b, u.value = { start: g, end: b }, m.value = d.value.slice(g, b).map((A, P) => ({
|
|
230
230
|
data: A,
|
|
231
|
-
index:
|
|
231
|
+
index: P + g
|
|
232
232
|
}));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
function N(g) {
|
|
236
|
-
let b = 0, A = E.value.length - 1,
|
|
236
|
+
let b = 0, A = E.value.length - 1, P = -1;
|
|
237
237
|
for (; b <= A; ) {
|
|
238
238
|
const O = Math.floor((b + A) / 2);
|
|
239
|
-
E.value[O].sum >= g ? (
|
|
239
|
+
E.value[O].sum >= g ? (P = O, A = O - 1) : b = O + 1;
|
|
240
240
|
}
|
|
241
|
-
return Math.max(0,
|
|
241
|
+
return Math.max(0, P);
|
|
242
242
|
}
|
|
243
243
|
function q() {
|
|
244
244
|
let g = 0, b = 0, A = k();
|
|
245
|
-
for (let
|
|
245
|
+
for (let P = A; P < E.value.length && (g++, b += E.value[P].height, !(b >= s.height.value)); P++)
|
|
246
246
|
;
|
|
247
247
|
return g;
|
|
248
248
|
}
|
|
@@ -269,7 +269,7 @@ function At(e, t) {
|
|
|
269
269
|
style: {
|
|
270
270
|
width: "100%",
|
|
271
271
|
height: `${w.value}px`,
|
|
272
|
-
pointerEvents:
|
|
272
|
+
pointerEvents: c.value ? void 0 : "none"
|
|
273
273
|
}
|
|
274
274
|
})), Z = S(() => ({
|
|
275
275
|
style: {
|
|
@@ -287,8 +287,8 @@ function At(e, t) {
|
|
|
287
287
|
totalHeight: w,
|
|
288
288
|
clientHeight: s.height,
|
|
289
289
|
scrollTo: ee,
|
|
290
|
-
scrollTop:
|
|
291
|
-
isScrollEnd:
|
|
290
|
+
scrollTop: i,
|
|
291
|
+
isScrollEnd: c,
|
|
292
292
|
containerProps: {
|
|
293
293
|
ref: a,
|
|
294
294
|
onScroll: () => {
|
|
@@ -301,27 +301,27 @@ function At(e, t) {
|
|
|
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
|
|
304
|
+
function bl() {
|
|
305
305
|
const { voidFn: e, boolFn: t, boolRef: l, arrayRef: n } = {
|
|
306
306
|
voidFn: (r) => {
|
|
307
307
|
},
|
|
308
308
|
boolFn: (r) => !1,
|
|
309
309
|
boolRef: S(() => !1),
|
|
310
310
|
arrayRef: S(() => [])
|
|
311
|
-
}, o = j(qe, n), a = j(Ue, t), s = j(Xe, l),
|
|
311
|
+
}, o = j(qe, n), a = j(Ue, t), s = j(Xe, l), c = j(Ke, e), f = j(je, e), v = j(Qe, e), d = j(Ye, e), i = j(Ge, e), u = j(Ze, e);
|
|
312
312
|
return {
|
|
313
313
|
selected: o,
|
|
314
314
|
isSelected: a,
|
|
315
315
|
isAllSelected: s,
|
|
316
|
-
toggle:
|
|
316
|
+
toggle: c,
|
|
317
317
|
toggleAll: f,
|
|
318
|
-
select:
|
|
319
|
-
selectAll:
|
|
320
|
-
unselect:
|
|
318
|
+
select: v,
|
|
319
|
+
selectAll: d,
|
|
320
|
+
unselect: i,
|
|
321
321
|
unselectAll: u
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function Sl(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) => {
|
|
@@ -331,7 +331,7 @@ function bl(e, t) {
|
|
|
331
331
|
function s() {
|
|
332
332
|
l.value = {};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function c(u) {
|
|
335
335
|
u.forEach((r) => {
|
|
336
336
|
l.value[r[t]] || (l.value[r[t]] = !0);
|
|
337
337
|
});
|
|
@@ -341,26 +341,26 @@ function bl(e, t) {
|
|
|
341
341
|
l.value[r[t]] && delete l.value[r[t]];
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function v(u) {
|
|
345
345
|
return !!l.value[u[t]];
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function d(u) {
|
|
348
348
|
u.forEach((r) => {
|
|
349
|
-
|
|
349
|
+
v(r) ? delete l.value[r[t]] : l.value[r[t]] = !0;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function i() {
|
|
353
353
|
o.value ? s() : a();
|
|
354
354
|
}
|
|
355
|
-
return z(je,
|
|
355
|
+
return z(je, i), z(Ke, d), z(Ue, v), z(qe, n), z(Qe, c), z(Ye, a), z(Ge, f), z(Xe, o), z(Ze, s), {
|
|
356
356
|
selected: n,
|
|
357
|
-
select:
|
|
357
|
+
select: c,
|
|
358
358
|
selectAll: a,
|
|
359
359
|
unselect: f,
|
|
360
360
|
unselectAll: s,
|
|
361
|
-
toggle:
|
|
362
|
-
toggleAll:
|
|
363
|
-
isSelected:
|
|
361
|
+
toggle: d,
|
|
362
|
+
toggleAll: i,
|
|
363
|
+
isSelected: v,
|
|
364
364
|
isAllSelected: o
|
|
365
365
|
};
|
|
366
366
|
}
|
|
@@ -380,16 +380,16 @@ function Je({
|
|
|
380
380
|
unselect: a = fe("\u53D6\u6D88\u9009\u62E9"),
|
|
381
381
|
unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
|
|
382
382
|
} = n();
|
|
383
|
-
let
|
|
383
|
+
let c = {};
|
|
384
384
|
const f = S(
|
|
385
385
|
() => Te(t === "colum" ? Q : ae, 50)
|
|
386
|
-
),
|
|
386
|
+
), v = /* @__PURE__ */ new Set(), d = h(!0), i = h(), u = h(!1), r = h({ x: 0, y: 0 }), m = h({ x: 0, y: 0, scrollTop: 0 }), E = new ResizeObserver(
|
|
387
387
|
(p) => y.value = p[0].target.getBoundingClientRect()
|
|
388
388
|
), y = h({}), w = h({
|
|
389
389
|
top: 0,
|
|
390
390
|
height: 0,
|
|
391
391
|
sync(p = !1) {
|
|
392
|
-
w.value.top =
|
|
392
|
+
w.value.top = i.value?.scrollTop || 0, p && (w.value.height = i.value?.scrollHeight || 0);
|
|
393
393
|
}
|
|
394
394
|
}), T = S(() => u.value ? {
|
|
395
395
|
left: Math.min(r.value.x, m.value.x) - y.value.left,
|
|
@@ -405,7 +405,7 @@ function Je({
|
|
|
405
405
|
Math.min(k, G),
|
|
406
406
|
-G
|
|
407
407
|
), k !== 0) {
|
|
408
|
-
const _ =
|
|
408
|
+
const _ = i.value;
|
|
409
409
|
if (!_ || !u.value)
|
|
410
410
|
return;
|
|
411
411
|
const B = w.value.height - y.value.height;
|
|
@@ -414,7 +414,7 @@ function Je({
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
function se(p) {
|
|
417
|
-
if (
|
|
417
|
+
if (i.value) {
|
|
418
418
|
const B = y.value, x = B.bottom - p;
|
|
419
419
|
if (x < N)
|
|
420
420
|
return q * X(1 - x / N);
|
|
@@ -448,16 +448,16 @@ function Je({
|
|
|
448
448
|
x.sheet.insertRule(et, ne);
|
|
449
449
|
}
|
|
450
450
|
function b(p, _) {
|
|
451
|
-
|
|
451
|
+
d.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, i.value?.classList.add("disable-scroll-behavior"), v.clear();
|
|
452
452
|
}
|
|
453
453
|
function A(p, _, B) {
|
|
454
|
-
!u.value || (
|
|
454
|
+
!u.value || (d.value && t === "colum" && !L() && (s(), d.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
|
|
460
|
-
u.value = !1,
|
|
459
|
+
function P() {
|
|
460
|
+
u.value = !1, i.value?.classList.remove("disable-scroll-behavior");
|
|
461
461
|
}
|
|
462
462
|
function O() {
|
|
463
463
|
!u.value || (k || te(), f.value());
|
|
@@ -472,22 +472,22 @@ function Je({
|
|
|
472
472
|
L() && s();
|
|
473
473
|
}
|
|
474
474
|
function Q() {
|
|
475
|
-
L() ||
|
|
476
|
-
|
|
475
|
+
L() || i.value?.querySelectorAll(`[${e}]`).forEach((p) => {
|
|
476
|
+
c[`${e}`] = p.getAttribute(`${e}`), Z(p.getBoundingClientRect()) ? o([c]) : a([c]);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
function ae() {
|
|
480
480
|
const p = [];
|
|
481
481
|
let _ = null, B = 0;
|
|
482
|
-
|
|
482
|
+
i.value?.querySelectorAll(`[${e}]`).forEach((x, V) => {
|
|
483
483
|
const ne = x.getAttribute(`${e}`);
|
|
484
|
-
p.push(ne), Z(x.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), B = Math.max(B, V)) : (
|
|
484
|
+
p.push(ne), Z(x.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), B = Math.max(B, V)) : (c[`${e}`] = ne, v.has(ne) && a([c]));
|
|
485
485
|
});
|
|
486
486
|
for (let x = _; x < B + 1; x++)
|
|
487
|
-
|
|
487
|
+
c[`${e}`] = p[x], o([c]), v.add(p[x]);
|
|
488
488
|
}
|
|
489
489
|
function re(p) {
|
|
490
|
-
return !p?.value || (
|
|
490
|
+
return !p?.value || (i.value = p.value, !i?.value) ? !1 : (E.observe(i.value), g(
|
|
491
491
|
".disable-scroll-behavior",
|
|
492
492
|
"scroll-behavior: unset !important;"
|
|
493
493
|
), !0);
|
|
@@ -496,46 +496,46 @@ function Je({
|
|
|
496
496
|
init: re,
|
|
497
497
|
dragStart: b,
|
|
498
498
|
dragMove: A,
|
|
499
|
-
dragEnd:
|
|
499
|
+
dragEnd: P,
|
|
500
500
|
onScroll: O,
|
|
501
501
|
isSingleClick: L,
|
|
502
502
|
cancelSelectAllBySingleClick: le,
|
|
503
503
|
selectFn: f,
|
|
504
504
|
selectRange: T,
|
|
505
505
|
isPressing: u,
|
|
506
|
-
containerEl:
|
|
506
|
+
containerEl: i,
|
|
507
507
|
observer: E
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function El(e) {
|
|
511
511
|
const t = Je(e), { observer: l, selectRange: n } = t, {
|
|
512
512
|
onScroll: o,
|
|
513
513
|
dragStart: a,
|
|
514
514
|
dragMove: s,
|
|
515
|
-
dragEnd:
|
|
515
|
+
dragEnd: c,
|
|
516
516
|
cancelSelectAllBySingleClick: f
|
|
517
|
-
} = t,
|
|
517
|
+
} = t, v = S(() => ({
|
|
518
518
|
left: `${n.value.left}px`,
|
|
519
519
|
top: `${n.value.top}px`,
|
|
520
520
|
width: `${n.value.width}px`,
|
|
521
521
|
height: `${n.value.height}px`
|
|
522
|
-
})),
|
|
522
|
+
})), d = U({
|
|
523
523
|
render() {
|
|
524
524
|
return Y("div", {
|
|
525
525
|
id: "selectBoxEl",
|
|
526
526
|
class: "absolute z-50 bg-blue-200 opacity-50",
|
|
527
|
-
style:
|
|
527
|
+
style: v.value
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
530
|
});
|
|
531
|
-
function
|
|
531
|
+
function i(y) {
|
|
532
532
|
y.button === 0 && a(y.x, y.y);
|
|
533
533
|
}
|
|
534
534
|
function u(y) {
|
|
535
535
|
s(y.x, y.y);
|
|
536
536
|
}
|
|
537
537
|
function r(y) {
|
|
538
|
-
y.composedPath().some((T) => T?.getAttribute?.(e.attribute)) || f(),
|
|
538
|
+
y.composedPath().some((T) => T?.getAttribute?.(e.attribute)) || f(), c();
|
|
539
539
|
}
|
|
540
540
|
function m(y) {
|
|
541
541
|
try {
|
|
@@ -543,17 +543,17 @@ function Sl(e) {
|
|
|
543
543
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
544
544
|
if (!t.containerEl?.value)
|
|
545
545
|
return !1;
|
|
546
|
-
ue(Y(
|
|
546
|
+
ue(Y(d), t.containerEl.value), t.containerEl.value?.addEventListener("scroll", o), t.containerEl.value?.addEventListener("mousedown", i), window.addEventListener("mousemove", u), window.addEventListener("mouseup", r);
|
|
547
547
|
} catch (w) {
|
|
548
548
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", w);
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
function E() {
|
|
552
|
-
l.disconnect(), t.containerEl.value?.removeEventListener("scroll", o), t.containerEl.value?.removeEventListener("mousedown",
|
|
552
|
+
l.disconnect(), t.containerEl.value?.removeEventListener("scroll", o), t.containerEl.value?.removeEventListener("mousedown", i), window.removeEventListener("mousemove", u), window.removeEventListener("mouseup", r);
|
|
553
553
|
}
|
|
554
554
|
return { init: m, unMount: E };
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Cl(e, t, l = 600) {
|
|
557
557
|
const n = Je({
|
|
558
558
|
...e,
|
|
559
559
|
selectWay: "row",
|
|
@@ -561,24 +561,24 @@ function El(e, t, l = 600) {
|
|
|
561
561
|
startSpeed: 5,
|
|
562
562
|
maxSpeed: 5
|
|
563
563
|
}
|
|
564
|
-
}), { observer: o } = n, { onScroll: a, dragStart: s, dragMove:
|
|
565
|
-
let
|
|
566
|
-
function
|
|
567
|
-
clearTimeout(
|
|
564
|
+
}), { observer: o } = n, { onScroll: a, dragStart: s, dragMove: c, dragEnd: f } = n;
|
|
565
|
+
let v;
|
|
566
|
+
function d() {
|
|
567
|
+
clearTimeout(v);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
|
|
569
|
+
function i(y) {
|
|
570
|
+
d(), y.composedPath().some((T) => !!T?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
|
|
571
571
|
const { clientX: T, clientY: F } = y.targetTouches[0];
|
|
572
|
-
s(T, F), t?.(),
|
|
572
|
+
s(T, F), t?.(), c(T, F, () => y.preventDefault()), y.preventDefault();
|
|
573
573
|
}, l));
|
|
574
574
|
}
|
|
575
575
|
function u(y) {
|
|
576
|
-
|
|
576
|
+
d();
|
|
577
577
|
const { clientX: w, clientY: T } = y.targetTouches[0];
|
|
578
|
-
|
|
578
|
+
c(w, T, () => y.preventDefault());
|
|
579
579
|
}
|
|
580
580
|
function r() {
|
|
581
|
-
|
|
581
|
+
d(), f();
|
|
582
582
|
}
|
|
583
583
|
function m(y) {
|
|
584
584
|
try {
|
|
@@ -586,13 +586,13 @@ function El(e, t, l = 600) {
|
|
|
586
586
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
587
587
|
if (!n.containerEl?.value)
|
|
588
588
|
return !1;
|
|
589
|
-
n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart",
|
|
589
|
+
n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart", i), n.containerEl.value?.addEventListener("touchmove", u), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
|
|
590
590
|
} catch (w) {
|
|
591
591
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", w);
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
function E() {
|
|
595
|
-
o.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart",
|
|
595
|
+
o.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart", i), n.containerEl.value?.removeEventListener("touchmove", u), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
|
|
596
596
|
}
|
|
597
597
|
return { init: m, unMount: E };
|
|
598
598
|
}
|
|
@@ -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 z(Ft, () => t("update:visiable", !1)), (o, a) => (I(), Me(
|
|
612
|
-
default:
|
|
613
|
-
e.visiable ? (I(),
|
|
611
|
+
return z(Ft, () => t("update:visiable", !1)), (o, a) => (I(), Me(Pe, { name: "modal" }, {
|
|
612
|
+
default: He(() => [
|
|
613
|
+
e.visiable ? (I(), H("div", {
|
|
614
614
|
key: 0,
|
|
615
615
|
onClick: n,
|
|
616
616
|
class: "lzc-modal"
|
|
@@ -634,7 +634,7 @@ const J = (e, t) => {
|
|
|
634
634
|
l[n] = o;
|
|
635
635
|
return l;
|
|
636
636
|
}, zt = /* @__PURE__ */ J(kt, [["__scopeId", "data-v-e171c24d"]]);
|
|
637
|
-
function
|
|
637
|
+
function xl(e) {
|
|
638
638
|
function t(l, n) {
|
|
639
639
|
const o = document.createElement("div"), a = {
|
|
640
640
|
setup() {
|
|
@@ -661,12 +661,12 @@ function Cl(e) {
|
|
|
661
661
|
create: t
|
|
662
662
|
};
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function Wt({
|
|
665
665
|
component: e,
|
|
666
666
|
componentProps: t,
|
|
667
667
|
delay: l = 300
|
|
668
668
|
}) {
|
|
669
|
-
const n = `${l}ms`,
|
|
669
|
+
const n = `${l}ms`, { load: o } = Rt(
|
|
670
670
|
`@keyframes lzcDelayLoad {
|
|
671
671
|
to {
|
|
672
672
|
opacity: 1;
|
|
@@ -676,31 +676,43 @@ function xl({
|
|
|
676
676
|
opacity: 0;
|
|
677
677
|
animation: lzcDelayLoad 0s ${n} forwards;
|
|
678
678
|
}`
|
|
679
|
-
)
|
|
679
|
+
);
|
|
680
|
+
return { LoadingComp: U({
|
|
680
681
|
setup() {
|
|
681
|
-
const
|
|
682
|
+
const s = Ct();
|
|
682
683
|
return oe(() => {
|
|
683
|
-
|
|
684
|
+
o(), s.value.classList.add("lzc-delay-loading");
|
|
684
685
|
}), () => Y(e, t);
|
|
685
686
|
}
|
|
686
|
-
});
|
|
687
|
-
|
|
687
|
+
}) };
|
|
688
|
+
}
|
|
689
|
+
function Tl({
|
|
690
|
+
component: e,
|
|
691
|
+
componentProps: t,
|
|
692
|
+
delay: l = 300
|
|
693
|
+
}) {
|
|
694
|
+
const { LoadingComp: n } = Wt({
|
|
695
|
+
component: e,
|
|
696
|
+
componentProps: t,
|
|
697
|
+
delay: l
|
|
698
|
+
}), o = h(!1);
|
|
699
|
+
function a() {
|
|
688
700
|
o.value = !0;
|
|
689
701
|
}
|
|
690
|
-
function
|
|
702
|
+
function s() {
|
|
691
703
|
o.value = !1;
|
|
692
704
|
}
|
|
693
|
-
return { LoadingComp:
|
|
705
|
+
return { LoadingComp: n, loading: o, load: a, unload: s };
|
|
694
706
|
}
|
|
695
|
-
const
|
|
707
|
+
const Nt = {}, Vt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), jt = /* @__PURE__ */ Vt(() => /* @__PURE__ */ C("div", { class: "ldio-mm5gwljcryb" }, [
|
|
696
708
|
/* @__PURE__ */ C("div")
|
|
697
|
-
], -1)),
|
|
698
|
-
|
|
709
|
+
], -1)), Kt = [
|
|
710
|
+
jt
|
|
699
711
|
];
|
|
700
|
-
function
|
|
701
|
-
return I(),
|
|
712
|
+
function Ut(e, t) {
|
|
713
|
+
return I(), H("div", he(pe(e.$attrs)), Kt, 16);
|
|
702
714
|
}
|
|
703
|
-
const
|
|
715
|
+
const Ll = /* @__PURE__ */ J(Nt, [["render", Ut], ["__scopeId", "data-v-76a2728a"]]), qt = /* @__PURE__ */ U({
|
|
704
716
|
__name: "Toast",
|
|
705
717
|
props: {
|
|
706
718
|
message: null,
|
|
@@ -723,7 +735,7 @@ const Tl = /* @__PURE__ */ J(Wt, [["render", Kt], ["__scopeId", "data-v-76a2728a
|
|
|
723
735
|
padding: "14px 19px",
|
|
724
736
|
top: `calc(${a.value}% - ${o.value}px)`,
|
|
725
737
|
left: `calc(50% - ${n.value}px)`
|
|
726
|
-
})),
|
|
738
|
+
})), c = S(() => ({
|
|
727
739
|
width: "fit-content",
|
|
728
740
|
display: "flex",
|
|
729
741
|
justifyContent: "center",
|
|
@@ -733,7 +745,7 @@ const Tl = /* @__PURE__ */ J(Wt, [["render", Kt], ["__scopeId", "data-v-76a2728a
|
|
|
733
745
|
}));
|
|
734
746
|
return _e(() => {
|
|
735
747
|
n.value = l.value.offsetWidth / 2, o.value = l.value.offsetHeight / 2;
|
|
736
|
-
}), (f,
|
|
748
|
+
}), (f, v) => (I(), H("div", {
|
|
737
749
|
id: "toastWrapper",
|
|
738
750
|
ref_key: "toastWrapper",
|
|
739
751
|
ref: l,
|
|
@@ -741,26 +753,26 @@ const Tl = /* @__PURE__ */ J(Wt, [["render", Kt], ["__scopeId", "data-v-76a2728a
|
|
|
741
753
|
style: W([$(s), { zIndex: 9999 }])
|
|
742
754
|
}, [
|
|
743
755
|
C("div", {
|
|
744
|
-
style: W($(
|
|
756
|
+
style: W($(c))
|
|
745
757
|
}, [
|
|
746
758
|
C("span", null, Fe(e.message), 1)
|
|
747
759
|
], 4)
|
|
748
760
|
], 4));
|
|
749
761
|
}
|
|
750
762
|
});
|
|
751
|
-
const
|
|
763
|
+
const Qt = /* @__PURE__ */ J(qt, [["__scopeId", "data-v-15ab4094"]]), Re = {
|
|
752
764
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
753
765
|
position: "middle",
|
|
754
766
|
duration: 1500
|
|
755
767
|
};
|
|
756
|
-
class
|
|
768
|
+
class Ol {
|
|
757
769
|
options;
|
|
758
770
|
container;
|
|
759
771
|
constructor(t) {
|
|
760
772
|
this.options = t, this.container = document.createElement("div");
|
|
761
773
|
}
|
|
762
774
|
present() {
|
|
763
|
-
const t = Y(Y(
|
|
775
|
+
const t = Y(Y(Qt), { ...Re, ...this.options });
|
|
764
776
|
ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
765
777
|
const l = this.options.duration || Re.duration;
|
|
766
778
|
setTimeout(() => {
|
|
@@ -778,7 +790,7 @@ class Ll {
|
|
|
778
790
|
}
|
|
779
791
|
}
|
|
780
792
|
}
|
|
781
|
-
const
|
|
793
|
+
const Yt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ U({
|
|
782
794
|
__name: "SvgIcon",
|
|
783
795
|
props: {
|
|
784
796
|
name: null,
|
|
@@ -793,7 +805,7 @@ const Qt = ["xlink:href", "fill", "color"], Ol = /* @__PURE__ */ U({
|
|
|
793
805
|
height: `${t.height ?? t.width}px`,
|
|
794
806
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
795
807
|
}));
|
|
796
|
-
return (o, a) => (I(),
|
|
808
|
+
return (o, a) => (I(), H("svg", {
|
|
797
809
|
"aria-hidden": "",
|
|
798
810
|
style: W($(n))
|
|
799
811
|
}, [
|
|
@@ -801,27 +813,27 @@ const Qt = ["xlink:href", "fill", "color"], Ol = /* @__PURE__ */ U({
|
|
|
801
813
|
"xlink:href": $(l),
|
|
802
814
|
fill: e.color,
|
|
803
815
|
color: e.color
|
|
804
|
-
}, null, 8,
|
|
816
|
+
}, null, 8, Yt)
|
|
805
817
|
], 4));
|
|
806
818
|
}
|
|
807
819
|
});
|
|
808
|
-
function
|
|
820
|
+
function Gt(e) {
|
|
809
821
|
const {
|
|
810
822
|
containerEl: t,
|
|
811
823
|
sliderEl: l,
|
|
812
824
|
autoHeight: n,
|
|
813
825
|
performance: o = {},
|
|
814
826
|
maxHeightRatio: a = 0.9
|
|
815
|
-
} = e, s = h(!0),
|
|
816
|
-
let f,
|
|
817
|
-
const
|
|
827
|
+
} = e, s = h(!0), c = We(G, 100);
|
|
828
|
+
let f, v = "";
|
|
829
|
+
const d = h(0), i = h(0), u = h(0), r = h({
|
|
818
830
|
top: 0,
|
|
819
831
|
scrollTop: 0,
|
|
820
832
|
scrollHeight: 0,
|
|
821
833
|
clientHeight: 0
|
|
822
834
|
}), m = h({
|
|
823
835
|
clientHeight: 0
|
|
824
|
-
}), E = S(() => !!
|
|
836
|
+
}), E = S(() => !!i.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(
|
|
825
837
|
r.value.clientHeight / r.value.scrollHeight,
|
|
826
838
|
0.05
|
|
827
839
|
)), M = S(() => F.value > a ? 0 : F.value * r.value.clientHeight), D = S(() => ({
|
|
@@ -830,10 +842,10 @@ function Yt(e) {
|
|
|
830
842
|
height: n ? `${M.value}px` : void 0
|
|
831
843
|
}));
|
|
832
844
|
function R(O) {
|
|
833
|
-
q(),
|
|
845
|
+
q(), i.value = O.clientY - l.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
834
846
|
}
|
|
835
847
|
function N() {
|
|
836
|
-
t.value.style.scrollBehavior =
|
|
848
|
+
t.value.style.scrollBehavior = v, i.value = 0, c();
|
|
837
849
|
}
|
|
838
850
|
function q() {
|
|
839
851
|
s.value = !1;
|
|
@@ -844,7 +856,7 @@ function Yt(e) {
|
|
|
844
856
|
function X(O) {
|
|
845
857
|
if (!E.value)
|
|
846
858
|
return;
|
|
847
|
-
let L = O.clientY - r.value.top -
|
|
859
|
+
let L = O.clientY - r.value.top - i.value;
|
|
848
860
|
L < 0 ? u.value = 0 : L >= w.value ? u.value = w.value : u.value = L, t.value.scrollTo({
|
|
849
861
|
top: u.value / w.value * T.value
|
|
850
862
|
});
|
|
@@ -856,7 +868,7 @@ function Yt(e) {
|
|
|
856
868
|
cancelAnimationFrame(f), f = requestAnimationFrame(se);
|
|
857
869
|
}
|
|
858
870
|
function se() {
|
|
859
|
-
t.value && (
|
|
871
|
+
t.value && (d.value = o.scrollTop?.value ?? t.value.scrollTop, u.value = d.value / T.value * w.value);
|
|
860
872
|
}
|
|
861
873
|
function Z(O) {
|
|
862
874
|
let L = "addEventListener";
|
|
@@ -886,7 +898,7 @@ function Yt(e) {
|
|
|
886
898
|
}
|
|
887
899
|
Q.sheet.insertRule(p, re);
|
|
888
900
|
}
|
|
889
|
-
function
|
|
901
|
+
function P() {
|
|
890
902
|
t.value && l.value ? (A(
|
|
891
903
|
".hide-scrollbar",
|
|
892
904
|
"scrollbar-width: none; -ms-overflow-style: none;"
|
|
@@ -900,20 +912,20 @@ function Yt(e) {
|
|
|
900
912
|
g();
|
|
901
913
|
}, 100), b()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: l });
|
|
902
914
|
}
|
|
903
|
-
return K(
|
|
904
|
-
q(),
|
|
915
|
+
return K(d, () => {
|
|
916
|
+
q(), c();
|
|
905
917
|
}), {
|
|
906
918
|
isScrollEnd: s,
|
|
907
919
|
isDragSlider: E,
|
|
908
920
|
offsetTop: u,
|
|
909
|
-
scrollTop:
|
|
921
|
+
scrollTop: d,
|
|
910
922
|
scrollable: y,
|
|
911
923
|
sliderPos: D,
|
|
912
|
-
init:
|
|
924
|
+
init: P,
|
|
913
925
|
modifySliderEventListener: Z
|
|
914
926
|
};
|
|
915
927
|
}
|
|
916
|
-
const
|
|
928
|
+
const Xt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Zt = /* @__PURE__ */ Xt(() => /* @__PURE__ */ C("div", { class: "default-slider" }, null, -1)), Jt = /* @__PURE__ */ U({
|
|
917
929
|
__name: "ScrollBar",
|
|
918
930
|
props: {
|
|
919
931
|
containerEl: null,
|
|
@@ -922,12 +934,12 @@ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ *
|
|
|
922
934
|
performance: null
|
|
923
935
|
},
|
|
924
936
|
setup(e, { expose: t }) {
|
|
925
|
-
const l = e, n = !!it().default, o = h(null), a = S(() => l.containerEl), s =
|
|
937
|
+
const l = e, n = !!it().default, o = h(null), a = S(() => l.containerEl), s = Gt({
|
|
926
938
|
containerEl: a,
|
|
927
939
|
sliderEl: o,
|
|
928
940
|
autoHeight: n ? l.autoHeight : !0,
|
|
929
941
|
performance: l.performance
|
|
930
|
-
}), { scrollable:
|
|
942
|
+
}), { scrollable: c, isScrollEnd: f, sliderPos: v } = s, d = h(!1), i = l.autoHide ? S(() => d.value || !f.value) : S(() => c.value);
|
|
931
943
|
oe(() => {
|
|
932
944
|
_e(() => {
|
|
933
945
|
s.init();
|
|
@@ -936,39 +948,39 @@ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ *
|
|
|
936
948
|
s.modifySliderEventListener("remove");
|
|
937
949
|
});
|
|
938
950
|
function u() {
|
|
939
|
-
|
|
951
|
+
d.value = !0;
|
|
940
952
|
}
|
|
941
953
|
function r() {
|
|
942
|
-
|
|
954
|
+
d.value = !1;
|
|
943
955
|
}
|
|
944
|
-
return t({ uScrollBarReturn: s }), (m, E) => (I(), Me(
|
|
945
|
-
default:
|
|
956
|
+
return t({ uScrollBarReturn: s }), (m, E) => (I(), Me(Pe, null, {
|
|
957
|
+
default: He(() => [
|
|
946
958
|
ct(C("div", {
|
|
947
959
|
ref_key: "sliderRef",
|
|
948
960
|
ref: o,
|
|
949
961
|
class: "slider-wrapper",
|
|
950
962
|
onMouseenter: u,
|
|
951
963
|
onMouseleave: r,
|
|
952
|
-
style: W($(
|
|
964
|
+
style: W($(v))
|
|
953
965
|
}, [
|
|
954
966
|
ye(m.$slots, "default", {}, () => [
|
|
955
|
-
|
|
967
|
+
Zt
|
|
956
968
|
], !0)
|
|
957
969
|
], 36), [
|
|
958
|
-
[dt, $(
|
|
970
|
+
[dt, $(i)]
|
|
959
971
|
])
|
|
960
972
|
]),
|
|
961
973
|
_: 3
|
|
962
974
|
}));
|
|
963
975
|
}
|
|
964
976
|
});
|
|
965
|
-
const
|
|
977
|
+
const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (e) => (ce("data-v-9bfa9cae"), e = e(), de(), e), tl = { class: "pull-refresh" }, ll = {
|
|
966
978
|
key: 0,
|
|
967
979
|
class: "pull-arrow-circle"
|
|
968
|
-
},
|
|
980
|
+
}, nl = {
|
|
969
981
|
key: 0,
|
|
970
982
|
class: "box-load"
|
|
971
|
-
},
|
|
983
|
+
}, ol = { class: "left-load" }, sl = { class: "right-load" }, al = /* @__PURE__ */ el(() => /* @__PURE__ */ C("div", { class: "among-load" }, null, -1)), rl = { class: "pull-arrow" }, ul = { key: 1 }, il = /* @__PURE__ */ U({
|
|
972
984
|
__name: "PullRefresh",
|
|
973
985
|
props: {
|
|
974
986
|
refresh: null,
|
|
@@ -977,75 +989,75 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
977
989
|
pullRefreshContainer: null
|
|
978
990
|
},
|
|
979
991
|
setup(e) {
|
|
980
|
-
const t = e, l = 0.7, n = "#2EC1CC", o = h(-999), a = h(1), s = h(0),
|
|
992
|
+
const t = e, l = 0.7, n = "#2EC1CC", o = h(-999), a = h(1), s = h(0), c = h(0.3), f = h(!1), v = h(0), d = h(0), i = h(0), u = h(0), r = h(0), m = h(), E = S(() => t.scrollTop), y = S(() => ({
|
|
981
993
|
transition: `${u.value}ms`,
|
|
982
994
|
transform: `translate3d(0,${o.value}px, 0) scale(${a.value})`
|
|
983
995
|
})), w = S(() => ({
|
|
984
996
|
borderColor: n,
|
|
985
997
|
transition: u.value,
|
|
986
998
|
transform: `rotate(${100 + s.value}deg)`,
|
|
987
|
-
opacity:
|
|
999
|
+
opacity: c.value
|
|
988
1000
|
}));
|
|
989
1001
|
K(r, (D) => {
|
|
990
|
-
D === 0 && (o.value = -50,
|
|
991
|
-
}), K(
|
|
1002
|
+
D === 0 && (o.value = -50, c.value = 0.3);
|
|
1003
|
+
}), K(d, (D) => {
|
|
992
1004
|
if (r.value === 2)
|
|
993
1005
|
return;
|
|
994
1006
|
const R = Math.pow(D, l);
|
|
995
|
-
R === 0 && (o.value = -50), R <= 50 && R > 0 && (o.value = R - 45, s.value = Math.pow(R, 1.5), R > 15 ? f.value = !0 : f.value = !1), R > 50 && (o.value = 5,
|
|
1007
|
+
R === 0 && (o.value = -50), R <= 50 && R > 0 && (o.value = R - 45, s.value = Math.pow(R, 1.5), R > 15 ? f.value = !0 : f.value = !1), R > 50 && (o.value = 5, c.value = 1, r.value);
|
|
996
1008
|
});
|
|
997
1009
|
const T = (D) => {
|
|
998
|
-
t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (
|
|
1010
|
+
t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (v.value === 0 && (v.value = D.touches[0].pageY), i.value = 0, M.value.style.transition = `${i.value}ms`, u.value = 0, d.value = D.touches[0].pageY - v.value, M.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`);
|
|
999
1011
|
}, F = () => {
|
|
1000
1012
|
if (t.refreshOff || !t?.refresh || r.value === 2)
|
|
1001
1013
|
return;
|
|
1002
|
-
|
|
1003
|
-
const D = Math.pow(
|
|
1004
|
-
M.value.style.transition = `${
|
|
1014
|
+
v.value = 0, i.value = 300;
|
|
1015
|
+
const D = Math.pow(d.value, l);
|
|
1016
|
+
M.value.style.transition = `${i.value}ms`, D > 50 ? (r.value = 2, d.value = Math.pow(50, 1 / l), M.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
1005
1017
|
m.value = "\u5237\u65B0\u6210\u529F";
|
|
1006
1018
|
}).catch(() => {
|
|
1007
1019
|
m.value = "\u5237\u65B0\u5931\u8D25";
|
|
1008
1020
|
}).finally(() => {
|
|
1009
1021
|
setTimeout(() => {
|
|
1010
|
-
r.value = 0,
|
|
1011
|
-
|
|
1022
|
+
r.value = 0, d.value = 0, M.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1023
|
+
d.value,
|
|
1012
1024
|
l
|
|
1013
1025
|
)}px, 0)`, setTimeout(() => {
|
|
1014
1026
|
m.value = void 0;
|
|
1015
1027
|
}, u.value);
|
|
1016
1028
|
}, 600);
|
|
1017
|
-
})) : (
|
|
1029
|
+
})) : (d.value = 0, M.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`);
|
|
1018
1030
|
}, M = h(null);
|
|
1019
1031
|
return oe(() => {
|
|
1020
1032
|
M.value = document.querySelector(
|
|
1021
1033
|
t.pullRefreshContainer
|
|
1022
1034
|
), M.value.addEventListener("touchmove", T), M.value.addEventListener("touchend", F);
|
|
1023
|
-
}), (D, R) => (I(),
|
|
1035
|
+
}), (D, R) => (I(), H("div", tl, [
|
|
1024
1036
|
C("div", {
|
|
1025
1037
|
class: "pull-refresh-box",
|
|
1026
1038
|
style: W($(y))
|
|
1027
1039
|
}, [
|
|
1028
|
-
m.value ? (I(),
|
|
1029
|
-
r.value == 2 ? (I(),
|
|
1030
|
-
C("div",
|
|
1040
|
+
m.value ? (I(), H("div", ul, Fe(m.value), 1)) : (I(), H("div", ll, [
|
|
1041
|
+
r.value == 2 ? (I(), H("div", nl, [
|
|
1042
|
+
C("div", ol, [
|
|
1031
1043
|
C("div", {
|
|
1032
1044
|
class: "left-circle",
|
|
1033
1045
|
style: W({ backgroundColor: n })
|
|
1034
1046
|
}, null, 4)
|
|
1035
1047
|
]),
|
|
1036
|
-
C("div",
|
|
1048
|
+
C("div", sl, [
|
|
1037
1049
|
C("div", {
|
|
1038
1050
|
class: "right-circle",
|
|
1039
1051
|
style: W({ backgroundColor: n })
|
|
1040
1052
|
}, null, 4)
|
|
1041
1053
|
]),
|
|
1042
|
-
|
|
1043
|
-
])) : (I(),
|
|
1054
|
+
al
|
|
1055
|
+
])) : (I(), H("div", {
|
|
1044
1056
|
key: 1,
|
|
1045
1057
|
class: "pull-circle-line",
|
|
1046
1058
|
style: W($(w))
|
|
1047
1059
|
}, [
|
|
1048
|
-
C("div",
|
|
1060
|
+
C("div", rl, [
|
|
1049
1061
|
C("div", {
|
|
1050
1062
|
class: Ae(["arrows", { opacity: f.value }]),
|
|
1051
1063
|
style: W({ borderBottomColor: n })
|
|
@@ -1057,10 +1069,10 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
1057
1069
|
]));
|
|
1058
1070
|
}
|
|
1059
1071
|
});
|
|
1060
|
-
const
|
|
1072
|
+
const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-9bfa9cae"]]), dl = {
|
|
1061
1073
|
inheritAttrs: !1
|
|
1062
|
-
},
|
|
1063
|
-
...
|
|
1074
|
+
}, vl = /* @__PURE__ */ U({
|
|
1075
|
+
...dl,
|
|
1064
1076
|
__name: "VirtualList",
|
|
1065
1077
|
props: {
|
|
1066
1078
|
data: null,
|
|
@@ -1080,37 +1092,37 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-9bfa9cae"]]), cl = {
|
|
|
1080
1092
|
}), {
|
|
1081
1093
|
list: a,
|
|
1082
1094
|
containerProps: s,
|
|
1083
|
-
wrapperProps:
|
|
1095
|
+
wrapperProps: c,
|
|
1084
1096
|
innerProps: f,
|
|
1085
|
-
getItemHeightData:
|
|
1086
|
-
scrollTop:
|
|
1097
|
+
getItemHeightData: v,
|
|
1098
|
+
scrollTop: d
|
|
1087
1099
|
} = o;
|
|
1088
1100
|
t({
|
|
1089
1101
|
vListReturn: o
|
|
1090
1102
|
});
|
|
1091
|
-
const
|
|
1092
|
-
return (u, r) => (I(),
|
|
1093
|
-
ft(
|
|
1103
|
+
const i = "virtualListWrapper" + new Date().getTime();
|
|
1104
|
+
return (u, r) => (I(), H(Ee, null, [
|
|
1105
|
+
ft(cl, {
|
|
1094
1106
|
refresh: e.refresh,
|
|
1095
1107
|
refreshOff: e.refreshOff,
|
|
1096
|
-
scrollTop: $(
|
|
1097
|
-
pullRefreshContainer: "#" +
|
|
1108
|
+
scrollTop: $(d),
|
|
1109
|
+
pullRefreshContainer: "#" + i
|
|
1098
1110
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1099
1111
|
C("div", {
|
|
1100
1112
|
class: "virtualListWrapper",
|
|
1101
|
-
id:
|
|
1113
|
+
id: i
|
|
1102
1114
|
}, [
|
|
1103
1115
|
C("div", ht({
|
|
1104
1116
|
onScrollPassive: r[0] || (r[0] = (...m) => $(s).onScroll && $(s).onScroll(...m)),
|
|
1105
1117
|
ref: $(s).ref,
|
|
1106
1118
|
class: "virtualList"
|
|
1107
1119
|
}, u.$attrs), [
|
|
1108
|
-
C("div", he(pe($(
|
|
1120
|
+
C("div", he(pe($(c))), [
|
|
1109
1121
|
C("div", he(pe($(f))), [
|
|
1110
|
-
(I(!0),
|
|
1122
|
+
(I(!0), H(Ee, null, pt($(a), ({ index: m, data: E }) => (I(), H("div", {
|
|
1111
1123
|
key: m,
|
|
1112
1124
|
style: W({
|
|
1113
|
-
height: `${$(
|
|
1125
|
+
height: `${$(v)(m).height}px`,
|
|
1114
1126
|
display: "flex"
|
|
1115
1127
|
})
|
|
1116
1128
|
}, [
|
|
@@ -1126,7 +1138,7 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-9bfa9cae"]]), cl = {
|
|
|
1126
1138
|
], 64));
|
|
1127
1139
|
}
|
|
1128
1140
|
});
|
|
1129
|
-
const
|
|
1141
|
+
const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), fl = { style: { position: "absolute" } }, hl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("div", { class: "wrapper" }, null, -1)), pl = ["width", "height"], ml = /* @__PURE__ */ be(() => /* @__PURE__ */ C("title", null, "logo", -1)), gl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("g", {
|
|
1130
1142
|
id: "group-1",
|
|
1131
1143
|
stroke: "none",
|
|
1132
1144
|
"stroke-width": "1",
|
|
@@ -1138,10 +1150,10 @@ const Dl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1138
1150
|
id: "path-1",
|
|
1139
1151
|
fill: "#FFF"
|
|
1140
1152
|
})
|
|
1141
|
-
], -1)),
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
],
|
|
1153
|
+
], -1)), _l = [
|
|
1154
|
+
ml,
|
|
1155
|
+
gl
|
|
1156
|
+
], yl = /* @__PURE__ */ U({
|
|
1145
1157
|
__name: "Loading",
|
|
1146
1158
|
props: {
|
|
1147
1159
|
width: { default: "90" },
|
|
@@ -1154,31 +1166,31 @@ const Dl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1154
1166
|
"703ef503": l
|
|
1155
1167
|
}));
|
|
1156
1168
|
const l = `${t.duration}ms`;
|
|
1157
|
-
return (n, o) => (I(),
|
|
1158
|
-
|
|
1159
|
-
(I(),
|
|
1169
|
+
return (n, o) => (I(), H("div", fl, [
|
|
1170
|
+
hl,
|
|
1171
|
+
(I(), H("svg", {
|
|
1160
1172
|
style: { position: "relative" },
|
|
1161
1173
|
width: e.width,
|
|
1162
1174
|
height: e.height,
|
|
1163
1175
|
viewBox: "0 0 260 260",
|
|
1164
1176
|
version: "1.1",
|
|
1165
1177
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1166
|
-
},
|
|
1178
|
+
}, _l, 8, pl))
|
|
1167
1179
|
]));
|
|
1168
1180
|
}
|
|
1169
1181
|
});
|
|
1170
|
-
const
|
|
1182
|
+
const Bl = /* @__PURE__ */ J(yl, [["__scopeId", "data-v-40e00f20"]]);
|
|
1171
1183
|
export {
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1184
|
+
Ll as DefaultLoading,
|
|
1185
|
+
Bl as Loading,
|
|
1186
|
+
cl as PullRefresh,
|
|
1187
|
+
Dl as ScrollBar,
|
|
1188
|
+
$l as SvgIcon,
|
|
1189
|
+
Ol as ToastCreator,
|
|
1190
|
+
Rl as VirtualList,
|
|
1179
1191
|
qe as allSelectedKey,
|
|
1180
1192
|
Ft as closeDialogKey,
|
|
1181
|
-
|
|
1193
|
+
xl as dialogController,
|
|
1182
1194
|
Xe as isAllSelectedKey,
|
|
1183
1195
|
Ue as isSelectedKey,
|
|
1184
1196
|
Ye as selectAllKey,
|
|
@@ -1187,11 +1199,12 @@ export {
|
|
|
1187
1199
|
Ke as toggleKey,
|
|
1188
1200
|
Ze as unselectAllKey,
|
|
1189
1201
|
Ge as unselectKey,
|
|
1190
|
-
|
|
1202
|
+
Tl as useDelayLoad,
|
|
1203
|
+
Wt as useDelayLoadComp,
|
|
1191
1204
|
Je as useDragSelect,
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1205
|
+
Cl as useDragSelectByMobile,
|
|
1206
|
+
El as useDragSelectByPc,
|
|
1207
|
+
Sl as useSelectable,
|
|
1208
|
+
bl as useSelectableInjectors,
|
|
1196
1209
|
At as useVirtualList
|
|
1197
1210
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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 $e(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($e(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($,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 $(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(D)}function D(){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,D()}}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:$=30,maxSpeed:x=30}=o;let D;const P=M,H=$,N=x,z=m=>m**1;let k=0;function K(m){if(cancelAnimationFrame(D),k=Q(m),k=Math.max(Math.min(k,N),-N),k!==0){const y=d.value;if(!y||!c.value)return;const O=E.value.height-_.value.height;let C=E.value.top+Number(k);C=Math.min(Math.max(0,C),O),y.scrollTop=C,W(),D=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const O=_.value,C=O.bottom-m;if(C<P)return H*z(1-C/P);const A=m-O.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,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,Pt=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const Oe=A[pe];if(Oe.selectorText===m&&Oe.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,O){!c.value||(p.value&&n==="colum"&&!L()&&(a(),p.value=!1),O?.(),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,O=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),O=Math.max(O,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=y;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: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 lzcDelayLoad {
|
|
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 Re(t,n={}){let o,l;return s=>{const a=Y(t),d=Y(n.maxWait);if(o&&clearTimeout(o),a<=0||d!==void 0&&d<=0)return l&&(clearTimeout(l),l=null),s();d&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},d)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Ie(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Y(t),f=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();f>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Me(t){return t}function Pe(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const d=me(n)?n:n.get,h=me(n)?void 0:n.set,p=e.customRef((f,u)=>(l=f,r=u,{get(){return s.value&&(o=d(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge(Re(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Ie(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,Ae=Z?window.document:void 0;function He(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 Fe(){const t=e.getCurrentInstance(),n=Pe(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ze=(t,n)=>{var o={};for(var l in t)Ve.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&&Ne.call(t,l)&&(o[l]=t[l]);return o};function je(t,n,o={}){const l=o,{window:r=ke}=l,s=ze(l,["window"]);let a;const d=He(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),u=>{h(),d.value&&r&&u&&(a=new ResizeObserver(n),a.observe(u,s))},{immediate:!0,flush:"post"}),f=()=>{h(),p()};return ve(f),{isSupported:d,stop:f}}function Ke(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return je(t,([a])=>{const d=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;d?(r.value=d.reduce((h,{inlineSize:p})=>h+p,0),s.value=d.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let We=0;function Ue(t,n={}){const o=e.ref(!1),{document:l=Ae,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++We}`}=n,d=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const u=l.getElementById(a)||l.createElement("style");u.type="text/css",u.id=a,n.media&&(u.media=n.media),l.head.appendChild(u),!o.value&&(h=e.watch(d,c=>{u.innerText=c},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(p),s||ve(f),{id:a,css:d,unload:f,load:p,isLoaded:e.readonly(o)}}var qe=Object.defineProperty,Ce=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ge=(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))Ye.call(n,o)&&Te(t,o,n[o]);return t};Ge({linear:Me},{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=Ke(s),d=e.ref(!0),h=ye($,100);let p;const f=e.shallowRef(t),u=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 f.value.map((I,R)=>(typeof l=="number"?w=l:w=l(R),v+=w,{height:w,sum:v}))}),_=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(p)),e.watch([a.width,a.height,f],([v,w])=>{(v||w)&&x()},{deep:!0}),e.watch(u,()=>{M(),h()});function M(){d.value=!1}function $(){d.value=!0,o?.()}function x(){cancelAnimationFrame(p),p=requestAnimationFrame(D)}function D(){if(s.value){u.value=s.value.scrollTop,i=H();let v=k(u.value),w=v+i+r;v=v-r,v=v<0?0:v,w=w>f.value.length?f.value.length:w,c.value={start:v,end:w},g.value=f.value.slice(v,w).map((I,R)=>({data:I,index:R+v}))}}function k(v){let w=0,I=b.value.length-1,R=-1;for(;w<=I;){const B=Math.floor((w+I)/2);b.value[B].sum>=v?(R=B,I=B-1):w=B+1}return Math.max(0,R)}function H(){let v=0,w=0,I=P();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 P(){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,D()}}const Q=e.computed(()=>({style:{width:"100%",height:`${S.value}px`,pointerEvents:d.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:k,totalHeight:S,clientHeight:a.height,scrollTo:K,scrollTop:u,isScrollEnd:d,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 Xe(){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),d=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),f=e.inject(ae,t),u=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:d,toggleAll:h,select:p,selectAll:f,unselect:u,unselectAll:c}}function Ze(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 d(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 p(c){return!!o.value[c[n]]}function f(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function u(){r.value?a():s()}return e.provide(te,u),e.provide(ne,f),e.provide(oe,p),e.provide(le,l),e.provide(re,d),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:d,selectAll:s,unselect:h,unselectAll:a,toggle:f,toggleAll:u,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let d={};const h=e.computed(()=>_e(n==="colum"?F:G,50)),p=new Set,f=e.ref(!0),u=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({}),S=e.ref({top:0,height:0,sync(m=!1){S.value.top=u.value?.scrollTop||0,m&&(S.value.height=u.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:$=30,maxSpeed:x=30}=o;let D;const k=M,H=$,N=x,z=m=>m**1;let P=0;function K(m){if(cancelAnimationFrame(D),P=Q(m),P=Math.max(Math.min(P,N),-N),P!==0){const y=u.value;if(!y||!c.value)return;const O=S.value.height-_.value.height;let C=S.value.top+Number(P);C=Math.min(Math.max(0,C),O),y.scrollTop=C,W(),D=requestAnimationFrame(()=>K(m))}}function Q(m){if(u.value){const O=_.value,C=O.bottom-m;if(C<k)return H*z(1-C/k);const A=m-O.top;if(A<k)return-H*z(1-A/k)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-S.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(){S.value.sync();const{top:m,height:y}=S.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,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,At=`${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(At,q)}function w(m,y){f.value=!0,c.value=!0,S.value.height?S.value.sync():S.value.sync(!0),i.value.x=m,i.value.y=y+S.value.top,g.value.x=i.value.x,g.value.y=i.value.y,u.value?.classList.add("disable-scroll-behavior"),p.clear()}function I(m,y,O){!c.value||(f.value&&n==="colum"&&!L()&&(a(),f.value=!1),O?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+S.value.top,S.value.height+_.value.top),g.value.scrollTop=S.value.top,h.value())}function R(){c.value=!1,u.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(P||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()||u.value?.querySelectorAll(`[${t}]`).forEach(m=>{d[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([d]):s([d])})}function G(){const m=[];let y=null,O=0;u.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),O=Math.max(O,A)):(d[`${t}`]=q,p.has(q)&&s([d]))});for(let C=y;C<O+1;C++)d[`${t}`]=m[C],r([d]),p.add(m[C])}function X(m){return!m?.value||(u.value=m.value,!u?.value)?!1:(b.observe(u.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:w,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:u,observer:b}}function Je(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:d,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:p.value})}});function u(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),d()}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(f),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",u),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",u),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function et(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:d,dragEnd:h}=l;let p;function f(){clearTimeout(p)}function u(_){f(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),d(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){f();const{clientX:S,clientY:T}=_.targetTouches[0];d(S,T,()=>_.preventDefault())}function i(){f(),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",u),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",u),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),tt=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}))}}),Ft="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},nt=V(tt,[["__scopeId","data-v-e171c24d"]]);function ot(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(nt,{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 xe({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Ue(`@keyframes lzcDelayLoad {
|
|
2
2
|
to {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
.lzc-delay-loading {
|
|
7
7
|
opacity: 0;
|
|
8
8
|
animation: lzcDelayLoad 0s ${l} forwards;
|
|
9
|
-
}`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("lzc-delay-loading")}),()=>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)),$=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?`${$.value}px`:void 0}));function D(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",D,{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 O=G[y];if(O.selectorText===B&&O.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 D=Math.pow(x,o);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?h.value=!0:h.value=!1),D>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,$.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,$.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);$.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),$.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,$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},$=e.ref(null);return e.onMounted(()=>{$.value=document.querySelector(n.pullRefreshContainer),$.value.addEventListener("touchmove",T),$.value.addEventListener("touchend",M)}),(x,D)=>(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="",De=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(De,{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="",Dt=V(xt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),Ot={style:{position:"absolute"}},$t=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",Ot,[$t,(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=De,w.ScrollBar=gt,w.SvgIcon=ft,w.ToastCreator=ut,w.VirtualList=Dt,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"}})});
|
|
9
|
+
}`);return{LoadingComp:e.defineComponent({setup(){const a=Fe();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function lt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=xe({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const Vt="",rt={},at=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function st(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),at,16)}const it=V(rt,[["render",st],["__scopeId","data-v-76a2728a"]]),ct=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)`})),d=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,p)=>(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(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),jt="",ut=V(ct,[["__scopeId","data-v-15ab4094"]]),De={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class dt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ut),{...De,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||De.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 ft=["xlink:href","fill","color"],pt=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const 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,ft)],4))}});function ht(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),d=ye(N,100);let h,p="";const f=e.ref(0),u=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(()=>!!u.value),_=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),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),$=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?`${$.value}px`:void 0}));function D(B){H(),u.value=B.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function k(){n.value.style.scrollBehavior=p,u.value=0,d()}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-u.value;L<0?c.value=0:L>=S.value?c.value=S.value:c.value=L,n.value.scrollTo({top:c.value/S.value*T.value})}function P(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(f.value=r.scrollTop?.value??n.value.scrollTop,c.value=f.value/T.value*S.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",D,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",k,{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 w(){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 O=G[y];if(O.selectorText===B&&O.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",P,{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(f,()=>{H(),d()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:f,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const mt=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),gt=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=ht({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:d,isScrollEnd:h,sliderPos:p}=a,f=e.ref(!1),u=o.autoHide?e.computed(()=>f.value||!h.value):e.computed(()=>d.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){f.value=!0}function i(){f.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(p))},[e.renderSlot(g.$slots,"default",{},()=>[mt],!0)],36),[[e.vShow,e.unref(u)]])]),_:3}))}}),Wt="",vt=V(gt,[["__scopeId","data-v-edec7292"]]),yt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),_t={class:"pull-refresh"},Et={key:0,class:"pull-arrow-circle"},St={key:0,class:"box-load"},wt={class:"left-load"},bt={class:"right-load"},Ct=yt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Tt={class:"pull-arrow"},Lt={key:1},Bt=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),d=e.ref(.3),h=e.ref(!1),p=e.ref(0),f=e.ref(0),u=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})`})),S=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:d.value}));e.watch(i,x=>{x===0&&(r.value=-50,d.value=.3)}),e.watch(f,x=>{if(i.value===2)return;const D=Math.pow(x,o);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?h.value=!0:h.value=!1),D>50&&(r.value=5,d.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(p.value===0&&(p.value=x.touches[0].pageY),u.value=0,$.value.style.transition=`${u.value}ms`,c.value=0,f.value=x.touches[0].pageY-p.value,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,u.value=300;const x=Math.pow(f.value,o);$.value.style.transition=`${u.value}ms`,x>50?(i.value=2,f.value=Math.pow(50,1/o),$.value.style.transform=`translate3d(0, ${Math.pow(f.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,f.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(f.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},$=e.ref(null);return e.onMounted(()=>{$.value=document.querySelector(n.pullRefreshContainer),$.value.addEventListener("touchmove",T),$.value.addEventListener("touchend",M)}),(x,D)=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Lt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",Et,[i.value==2?(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",wt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",bt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ct])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(S))},[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Ut="",Oe=V(Bt,[["__scopeId","data-v-9bfa9cae"]]),xt={inheritAttrs:!1},Dt=e.defineComponent({...xt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose: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:d,innerProps:h,getItemHeightData:p,scrollTop:f}=r;n({vListReturn:r});const u="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(f),pullRefreshContainer:"#"+u},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:u},[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(d))),[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(p)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),qt="",Ot=V(Dt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},Rt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),It=["width","height"],Mt=[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))],Pt=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,[Rt,(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"},Mt,8,It))]))}}),Gt="",kt=V(Pt,[["__scopeId","data-v-40e00f20"]]);E.DefaultLoading=it,E.Loading=kt,E.PullRefresh=Oe,E.ScrollBar=vt,E.SvgIcon=pt,E.ToastCreator=dt,E.VirtualList=Ot,E.allSelectedKey=le,E.closeDialogKey=Be,E.dialogController=ot,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=lt,E.useDelayLoadComp=xe,E.useDragSelect=de,E.useDragSelectByMobile=et,E.useDragSelectByPc=Je,E.useSelectable=Ze,E.useSelectableInjectors=Xe,E.useVirtualList=Le,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -7,11 +7,17 @@ interface Constructor<P = any> {
|
|
|
7
7
|
$props: P;
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
interface DelayLoadOptions<P> {
|
|
11
11
|
component: Constructor<P>;
|
|
12
12
|
componentProps?: VNodeProps & P;
|
|
13
13
|
delay?: number;
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
|
+
export declare function useDelayLoadComp<P>({ component, componentProps: props, delay, }: DelayLoadOptions<P>): {
|
|
16
|
+
LoadingComp: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
19
|
+
};
|
|
20
|
+
export declare function useDelayLoad<P>({ component, componentProps: props, delay, }: DelayLoadOptions<P>): {
|
|
15
21
|
LoadingComp: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
22
|
[key: string]: any;
|
|
17
23
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|