@lazycatcloud/lzc-toolkit 0.0.151 → 0.0.153
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 +363 -356
- package/dist/index.umd.js +4 -4
- package/dist/types/useBackPress/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { shallowRef as ut, watchEffect as It, readonly as rt, getCurrentScope as At, onScopeDispose as zt, onMounted as ie, nextTick as fe, ref as m, watch as G, customRef as Lt, unref as I, isRef as jt, getCurrentInstance as Qe, onUpdated as xt, computed as N, reactive as Te, onUnmounted as ct, inject as te, provide as F, defineComponent as q, h as ae, render as me, openBlock as b, createBlock as Ee, Transition as Ye, withCtx as Be, withDirectives as ve, createElementBlock as U, createElementVNode as O, withModifiers as he, normalizeClass as se, renderSlot as Ie, createCommentVNode as ue, useCssVars as Ue, normalizeProps as _e, guardReactiveProps as Oe, pushScopeId as pe, popScopeId as De, normalizeStyle as K, toDisplayString as Re, vShow as Ae, createVNode as Me, onBeforeUnmount as dt, onActivated as ft, onBeforeMount as Ct, onDeactivated as St, useSlots as _t, toRef as Ot, Fragment as be, mergeProps as ge, renderList as bt, toRefs as vt } from "vue";
|
|
2
2
|
const kt = {
|
|
3
3
|
created(e, t) {
|
|
4
|
-
let
|
|
4
|
+
let n, o;
|
|
5
5
|
function l(a) {
|
|
6
|
-
a.button == 0 && (
|
|
6
|
+
a.button == 0 && (n = a.clientX, o = a.clientY);
|
|
7
7
|
}
|
|
8
8
|
function s(a) {
|
|
9
|
-
if (a.button != 0 ||
|
|
9
|
+
if (a.button != 0 || n === void 0)
|
|
10
10
|
return;
|
|
11
|
-
const d = a.clientX, i = a.clientY, f = Math.abs(d -
|
|
11
|
+
const d = a.clientX, i = a.clientY, f = Math.abs(d - n), v = Math.abs(i - o);
|
|
12
12
|
f > 5 || v > 5 || t.value && t.value(a);
|
|
13
13
|
}
|
|
14
14
|
e.__mouse_down__ = l, e.__mouse_up__ = s, e.addEventListener("mousedown", l), e.addEventListener("mouseup", s);
|
|
@@ -16,37 +16,37 @@ const kt = {
|
|
|
16
16
|
unmounted(e) {
|
|
17
17
|
e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, wo = {
|
|
20
20
|
created(e, t) {
|
|
21
|
-
const { fn:
|
|
21
|
+
const { fn: n, ms: o = 1500 } = t.value;
|
|
22
22
|
let l = null;
|
|
23
23
|
function s(a) {
|
|
24
|
-
l || (
|
|
24
|
+
l || (n(a), l = setTimeout(() => {
|
|
25
25
|
l = null;
|
|
26
|
-
},
|
|
26
|
+
}, o));
|
|
27
27
|
}
|
|
28
28
|
e.addEventListener("click", s);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
function Qt(e, t) {
|
|
32
|
-
var
|
|
33
|
-
const
|
|
32
|
+
var n;
|
|
33
|
+
const o = ut();
|
|
34
34
|
return It(() => {
|
|
35
|
-
|
|
35
|
+
o.value = e();
|
|
36
36
|
}, {
|
|
37
37
|
...t,
|
|
38
|
-
flush: (
|
|
39
|
-
}), rt(
|
|
38
|
+
flush: (n = t?.flush) != null ? n : "sync"
|
|
39
|
+
}), rt(o);
|
|
40
40
|
}
|
|
41
41
|
function Yt(e, t) {
|
|
42
|
-
let
|
|
42
|
+
let n, o, l;
|
|
43
43
|
const s = m(!0), a = () => {
|
|
44
44
|
s.value = !0, l();
|
|
45
45
|
};
|
|
46
46
|
G(e, a, { flush: "sync" });
|
|
47
|
-
const d = typeof t == "function" ? t : t.get, i = typeof t == "function" ? void 0 : t.set, f = Lt((v, u) => (
|
|
47
|
+
const d = typeof t == "function" ? t : t.get, i = typeof t == "function" ? void 0 : t.set, f = Lt((v, u) => (o = v, l = u, {
|
|
48
48
|
get() {
|
|
49
|
-
return s.value && (
|
|
49
|
+
return s.value && (n = d(), s.value = !1), o(), n;
|
|
50
50
|
},
|
|
51
51
|
set(M) {
|
|
52
52
|
i?.(M);
|
|
@@ -65,73 +65,73 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
65
65
|
const Bt = Object.prototype.toString, Ut = (e) => Bt.call(e) === "[object Object]", re = () => {
|
|
66
66
|
};
|
|
67
67
|
function gt(e, t) {
|
|
68
|
-
function
|
|
68
|
+
function n(...o) {
|
|
69
69
|
return new Promise((l, s) => {
|
|
70
|
-
Promise.resolve(e(() => t.apply(this,
|
|
70
|
+
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(l).catch(s);
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
return
|
|
73
|
+
return n;
|
|
74
74
|
}
|
|
75
75
|
function Rt(e, t = {}) {
|
|
76
|
-
let
|
|
76
|
+
let n, o, l = re;
|
|
77
77
|
const s = (d) => {
|
|
78
78
|
clearTimeout(d), l(), l = re;
|
|
79
79
|
};
|
|
80
80
|
return (d) => {
|
|
81
81
|
const i = J(e), f = J(t.maxWait);
|
|
82
|
-
return
|
|
83
|
-
l = t.rejectOnCancel ? u : v, f && !
|
|
84
|
-
|
|
85
|
-
}, f)),
|
|
86
|
-
|
|
82
|
+
return n && s(n), i <= 0 || f !== void 0 && f <= 0 ? (o && (s(o), o = null), Promise.resolve(d())) : new Promise((v, u) => {
|
|
83
|
+
l = t.rejectOnCancel ? u : v, f && !o && (o = setTimeout(() => {
|
|
84
|
+
n && s(n), o = null, v(d());
|
|
85
|
+
}, f)), n = setTimeout(() => {
|
|
86
|
+
o && s(o), o = null, v(d());
|
|
87
87
|
}, i);
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
function $t(...e) {
|
|
92
|
-
let t = 0,
|
|
92
|
+
let t = 0, n, o = !0, l = re, s, a, d, i, f;
|
|
93
93
|
!jt(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: d = !0, leading: i = !0, rejectOnCancel: f = !1 } = e[0] : [a, d = !0, i = !0, f = !1] = e;
|
|
94
94
|
const v = () => {
|
|
95
|
-
|
|
95
|
+
n && (clearTimeout(n), n = void 0, l(), l = re);
|
|
96
96
|
};
|
|
97
97
|
return (M) => {
|
|
98
98
|
const g = J(a), r = Date.now() - t, T = () => s = M();
|
|
99
|
-
return v(), g <= 0 ? (t = Date.now(), T()) : (r > g && (i || !
|
|
100
|
-
l = f ? c : h,
|
|
101
|
-
t = Date.now(),
|
|
99
|
+
return v(), g <= 0 ? (t = Date.now(), T()) : (r > g && (i || !o) ? (t = Date.now(), T()) : d && (s = new Promise((h, c) => {
|
|
100
|
+
l = f ? c : h, n = setTimeout(() => {
|
|
101
|
+
t = Date.now(), o = !0, h(T()), v();
|
|
102
102
|
}, Math.max(0, g - r));
|
|
103
|
-
})), !i && !
|
|
103
|
+
})), !i && !n && (n = setTimeout(() => o = !0, g)), o = !1, s);
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
function Pt(e) {
|
|
107
107
|
return e || Qe();
|
|
108
108
|
}
|
|
109
|
-
function ze(e, t = 200,
|
|
109
|
+
function ze(e, t = 200, n = {}) {
|
|
110
110
|
return gt(
|
|
111
|
-
Rt(t,
|
|
111
|
+
Rt(t, n),
|
|
112
112
|
e
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
|
-
function ke(e, t = 200,
|
|
115
|
+
function ke(e, t = 200, n = !1, o = !0, l = !1) {
|
|
116
116
|
return gt(
|
|
117
|
-
$t(t,
|
|
117
|
+
$t(t, n, o, l),
|
|
118
118
|
e
|
|
119
119
|
);
|
|
120
120
|
}
|
|
121
|
-
function Pe(e, t = !0,
|
|
122
|
-
Pt() ? ie(e,
|
|
121
|
+
function Pe(e, t = !0, n) {
|
|
122
|
+
Pt() ? ie(e, n) : t ? e() : fe(e);
|
|
123
123
|
}
|
|
124
124
|
function le(e) {
|
|
125
125
|
var t;
|
|
126
|
-
const
|
|
127
|
-
return (t =
|
|
126
|
+
const n = J(e);
|
|
127
|
+
return (t = n?.$el) != null ? t : n;
|
|
128
128
|
}
|
|
129
129
|
const Le = Mt ? window : void 0, Ft = Mt ? window.document : void 0;
|
|
130
130
|
function we(...e) {
|
|
131
|
-
let t,
|
|
132
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([
|
|
131
|
+
let t, n, o, l;
|
|
132
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Le) : [t, n, o, l] = e, !t)
|
|
133
133
|
return re;
|
|
134
|
-
Array.isArray(
|
|
134
|
+
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
135
135
|
const s = [], a = () => {
|
|
136
136
|
s.forEach((v) => v()), s.length = 0;
|
|
137
137
|
}, d = (v, u, M, g) => (v.addEventListener(u, M, g), () => v.removeEventListener(u, M, g)), i = G(
|
|
@@ -141,7 +141,7 @@ function we(...e) {
|
|
|
141
141
|
return;
|
|
142
142
|
const M = Ut(u) ? { ...u } : u;
|
|
143
143
|
s.push(
|
|
144
|
-
...
|
|
144
|
+
...n.flatMap((g) => o.map((r) => d(v, g, r, M)))
|
|
145
145
|
);
|
|
146
146
|
},
|
|
147
147
|
{ immediate: !0, flush: "post" }
|
|
@@ -161,21 +161,21 @@ function Wt(e) {
|
|
|
161
161
|
return N(() => (t.value, Boolean(e())));
|
|
162
162
|
}
|
|
163
163
|
function Xt(e) {
|
|
164
|
-
const t = Qe(),
|
|
164
|
+
const t = Qe(), n = Yt(
|
|
165
165
|
() => null,
|
|
166
166
|
() => e ? le(e) : t.proxy.$el
|
|
167
167
|
);
|
|
168
|
-
return xt(
|
|
168
|
+
return xt(n.trigger), ie(n.trigger), n;
|
|
169
169
|
}
|
|
170
|
-
function ht(e, t,
|
|
171
|
-
const { window:
|
|
170
|
+
function ht(e, t, n = {}) {
|
|
171
|
+
const { window: o = Le, ...l } = n;
|
|
172
172
|
let s;
|
|
173
|
-
const a = Wt(() =>
|
|
173
|
+
const a = Wt(() => o && "ResizeObserver" in o), d = () => {
|
|
174
174
|
s && (s.disconnect(), s = void 0);
|
|
175
175
|
}, i = N(() => Array.isArray(e) ? e.map((u) => le(u)) : [le(e)]), f = G(
|
|
176
176
|
i,
|
|
177
177
|
(u) => {
|
|
178
|
-
if (d(), a.value &&
|
|
178
|
+
if (d(), a.value && o) {
|
|
179
179
|
s = new ResizeObserver(t);
|
|
180
180
|
for (const M of u)
|
|
181
181
|
M && s.observe(M, l);
|
|
@@ -190,18 +190,18 @@ function ht(e, t, o = {}) {
|
|
|
190
190
|
stop: v
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
function Zt(e, t = { width: 0, height: 0 },
|
|
194
|
-
const { window:
|
|
193
|
+
function Zt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
194
|
+
const { window: o = Le, box: l = "content-box" } = n, s = N(() => {
|
|
195
195
|
var u, M;
|
|
196
196
|
return (M = (u = le(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : M.includes("svg");
|
|
197
197
|
}), a = m(t.width), d = m(t.height), { stop: i } = ht(
|
|
198
198
|
e,
|
|
199
199
|
([u]) => {
|
|
200
200
|
const M = l === "border-box" ? u.borderBoxSize : l === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
|
|
201
|
-
if (
|
|
201
|
+
if (o && s.value) {
|
|
202
202
|
const g = le(e);
|
|
203
203
|
if (g) {
|
|
204
|
-
const r =
|
|
204
|
+
const r = o.getComputedStyle(g);
|
|
205
205
|
a.value = Number.parseFloat(r.width), d.value = Number.parseFloat(r.height);
|
|
206
206
|
}
|
|
207
207
|
} else if (M) {
|
|
@@ -210,7 +210,7 @@ function Zt(e, t = { width: 0, height: 0 }, o = {}) {
|
|
|
210
210
|
} else
|
|
211
211
|
a.value = u.contentRect.width, d.value = u.contentRect.height;
|
|
212
212
|
},
|
|
213
|
-
|
|
213
|
+
n
|
|
214
214
|
);
|
|
215
215
|
Pe(() => {
|
|
216
216
|
const u = le(e);
|
|
@@ -234,8 +234,8 @@ function Zt(e, t = { width: 0, height: 0 }, o = {}) {
|
|
|
234
234
|
const ot = 1;
|
|
235
235
|
function Vt(e, t = {}) {
|
|
236
236
|
const {
|
|
237
|
-
throttle:
|
|
238
|
-
idle:
|
|
237
|
+
throttle: n = 0,
|
|
238
|
+
idle: o = 200,
|
|
239
239
|
onStop: l = re,
|
|
240
240
|
onScroll: s = re,
|
|
241
241
|
offset: a = {
|
|
@@ -291,7 +291,7 @@ function Vt(e, t = {}) {
|
|
|
291
291
|
bottom: !1
|
|
292
292
|
}), x = (p) => {
|
|
293
293
|
!h.value || (h.value = !1, y.left = !1, y.right = !1, y.top = !1, y.bottom = !1, l(p));
|
|
294
|
-
}, W = ze(x,
|
|
294
|
+
}, W = ze(x, n + o), H = (p) => {
|
|
295
295
|
var z;
|
|
296
296
|
if (!f)
|
|
297
297
|
return;
|
|
@@ -313,7 +313,7 @@ function Vt(e, t = {}) {
|
|
|
313
313
|
return we(
|
|
314
314
|
e,
|
|
315
315
|
"scroll",
|
|
316
|
-
|
|
316
|
+
n ? ke(_, n, !0, !1) : _,
|
|
317
317
|
d
|
|
318
318
|
), Pe(() => {
|
|
319
319
|
try {
|
|
@@ -343,8 +343,8 @@ function Vt(e, t = {}) {
|
|
|
343
343
|
}
|
|
344
344
|
let Kt = 0;
|
|
345
345
|
function Fe(e, t = {}) {
|
|
346
|
-
const
|
|
347
|
-
document:
|
|
346
|
+
const n = m(!1), {
|
|
347
|
+
document: o = Ft,
|
|
348
348
|
immediate: l = !0,
|
|
349
349
|
manual: s = !1,
|
|
350
350
|
id: a = `vueuse_styletag_${++Kt}`
|
|
@@ -352,36 +352,36 @@ function Fe(e, t = {}) {
|
|
|
352
352
|
let i = () => {
|
|
353
353
|
};
|
|
354
354
|
const f = () => {
|
|
355
|
-
if (!
|
|
355
|
+
if (!o)
|
|
356
356
|
return;
|
|
357
|
-
const u =
|
|
358
|
-
u.isConnected || (u.id = a, t.media && (u.media = t.media),
|
|
357
|
+
const u = o.getElementById(a) || o.createElement("style");
|
|
358
|
+
u.isConnected || (u.id = a, t.media && (u.media = t.media), o.head.appendChild(u)), !n.value && (i = G(
|
|
359
359
|
d,
|
|
360
360
|
(M) => {
|
|
361
361
|
u.textContent = M;
|
|
362
362
|
},
|
|
363
363
|
{ immediate: !0 }
|
|
364
|
-
),
|
|
364
|
+
), n.value = !0);
|
|
365
365
|
}, v = () => {
|
|
366
|
-
!
|
|
366
|
+
!o || !n.value || (i(), o.head.removeChild(o.getElementById(a)), n.value = !1);
|
|
367
367
|
};
|
|
368
368
|
return l && !s && Pe(f), s || $e(v), {
|
|
369
369
|
id: a,
|
|
370
370
|
css: d,
|
|
371
371
|
unload: v,
|
|
372
372
|
load: f,
|
|
373
|
-
isLoaded: rt(
|
|
373
|
+
isLoaded: rt(n)
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function Gt(e, t) {
|
|
377
|
-
const { scrollEndHook:
|
|
377
|
+
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = Zt(s), d = m(!0), i = ze(H, 100);
|
|
378
378
|
let f;
|
|
379
379
|
const v = ut(e), u = m(0), M = m({ start: 0, end: 10 }), g = m({ start: 0, end: l });
|
|
380
380
|
let r = 0;
|
|
381
381
|
const T = m([]), h = N(() => {
|
|
382
382
|
let { sum: L, height: E } = { sum: 0, height: 0 };
|
|
383
|
-
return v.value.map((R, $) => (typeof
|
|
384
|
-
}), c = N(() => D(M.value.start)), y = N(() => typeof
|
|
383
|
+
return v.value.map((R, $) => (typeof o == "number" ? E = o : E = o($), L += E, { height: E, sum: L }));
|
|
384
|
+
}), c = N(() => D(M.value.start)), y = N(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
|
|
385
385
|
const { start: L, end: E } = g.value;
|
|
386
386
|
return T.value.slice(L, E);
|
|
387
387
|
});
|
|
@@ -405,7 +405,7 @@ function Gt(e, t) {
|
|
|
405
405
|
d.value = !1;
|
|
406
406
|
}
|
|
407
407
|
function H() {
|
|
408
|
-
d.value = !0,
|
|
408
|
+
d.value = !0, n?.();
|
|
409
409
|
}
|
|
410
410
|
function _() {
|
|
411
411
|
cancelAnimationFrame(f), f = requestAnimationFrame(p);
|
|
@@ -440,8 +440,8 @@ function Gt(e, t) {
|
|
|
440
440
|
return E;
|
|
441
441
|
}
|
|
442
442
|
function D(L) {
|
|
443
|
-
if (typeof
|
|
444
|
-
return L *
|
|
443
|
+
if (typeof o == "number")
|
|
444
|
+
return L * o;
|
|
445
445
|
let E = h.value[L];
|
|
446
446
|
return E ? E.sum - E.height : 0;
|
|
447
447
|
}
|
|
@@ -490,15 +490,15 @@ function Gt(e, t) {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
const He = Symbol(), We = Symbol(), Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), ye = Symbol(), Je = Symbol();
|
|
493
|
-
function
|
|
494
|
-
const { voidFn: e, boolFn: t, boolRef:
|
|
493
|
+
function No() {
|
|
494
|
+
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
495
495
|
voidFn: (T) => {
|
|
496
496
|
},
|
|
497
497
|
boolFn: (T) => !1,
|
|
498
498
|
boolRef: N(() => !1),
|
|
499
499
|
numberRef: N(() => 0),
|
|
500
500
|
arrayRef: N(() => [])
|
|
501
|
-
}, s = te(Ze, l), a = te(Xe, t), d = te(qe,
|
|
501
|
+
}, s = te(Ze, l), a = te(Xe, t), d = te(qe, n), i = te(We, e), f = te(He, e), v = te(Ve, e), u = te(Ke, e), M = te(Ge, e), g = te(ye, e), r = te(Je, o);
|
|
502
502
|
return {
|
|
503
503
|
selected: s,
|
|
504
504
|
isSelected: a,
|
|
@@ -512,22 +512,22 @@ function wo() {
|
|
|
512
512
|
selectedCount: r
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
const
|
|
515
|
+
function Eo(e, t, n = { deep: !0 }) {
|
|
516
|
+
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
|
|
517
517
|
G(
|
|
518
518
|
e,
|
|
519
519
|
(c) => {
|
|
520
520
|
s.value = c.reduce((y, x) => (y.set(x[t], x), y), /* @__PURE__ */ new Map());
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
|
-
deep:
|
|
523
|
+
deep: n.deep,
|
|
524
524
|
immediate: !0
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
527
|
const a = N(() => {
|
|
528
528
|
let c = [];
|
|
529
|
-
if (
|
|
530
|
-
|
|
529
|
+
if (o.value != null)
|
|
530
|
+
o.value && (c = Array.from(s.value.values()));
|
|
531
531
|
else if (l.value.size) {
|
|
532
532
|
let y;
|
|
533
533
|
l.value.forEach((x) => {
|
|
@@ -537,11 +537,11 @@ function No(e, t, o = { deep: !0 }) {
|
|
|
537
537
|
return c;
|
|
538
538
|
}), d = N(() => {
|
|
539
539
|
let c = 0;
|
|
540
|
-
return
|
|
540
|
+
return o.value != null ? o.value && (c = s.value.size) : c = l.value.size, c;
|
|
541
541
|
}), i = N(() => {
|
|
542
542
|
let c;
|
|
543
|
-
if (
|
|
544
|
-
c =
|
|
543
|
+
if (o.value != null)
|
|
544
|
+
c = o.value;
|
|
545
545
|
else {
|
|
546
546
|
const y = l.value.size, x = s.value.size;
|
|
547
547
|
c = y == x;
|
|
@@ -549,10 +549,10 @@ function No(e, t, o = { deep: !0 }) {
|
|
|
549
549
|
return c;
|
|
550
550
|
});
|
|
551
551
|
function f() {
|
|
552
|
-
|
|
552
|
+
o.value = !0;
|
|
553
553
|
}
|
|
554
554
|
function v() {
|
|
555
|
-
|
|
555
|
+
o.value = !1;
|
|
556
556
|
}
|
|
557
557
|
function u(c) {
|
|
558
558
|
r(() => {
|
|
@@ -569,10 +569,10 @@ function No(e, t, o = { deep: !0 }) {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
function g(c) {
|
|
572
|
-
return
|
|
572
|
+
return o.value != null ? o.value : l.value.has(c[t]);
|
|
573
573
|
}
|
|
574
574
|
function r(c) {
|
|
575
|
-
|
|
575
|
+
o.value != null && (o.value ? l.value = new Set(Array.from(s.value.keys())) : l.value = /* @__PURE__ */ new Set()), c(), l.value.size == 0 ? o.value = !1 : l.value.size == s.value.size ? o.value = !0 : o.value = null;
|
|
576
576
|
}
|
|
577
577
|
function T(c) {
|
|
578
578
|
r(() => {
|
|
@@ -598,19 +598,19 @@ function No(e, t, o = { deep: !0 }) {
|
|
|
598
598
|
selectedCount: d
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
const t = m(!1),
|
|
601
|
+
function Io(e) {
|
|
602
|
+
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = N(() => {
|
|
603
603
|
let r = [];
|
|
604
|
-
return t.value != null ? t.value && (r = e.value) :
|
|
604
|
+
return t.value != null ? t.value && (r = e.value) : n.value.size && (r = Array.from(n.value.values())), r;
|
|
605
605
|
}), l = N(() => {
|
|
606
606
|
let r = 0;
|
|
607
|
-
return t.value != null ? t.value && (r = e.value.length) : r =
|
|
607
|
+
return t.value != null ? t.value && (r = e.value.length) : r = n.value.size, r;
|
|
608
608
|
}), s = N(() => {
|
|
609
609
|
let r;
|
|
610
610
|
if (t.value != null)
|
|
611
611
|
r = t.value;
|
|
612
612
|
else {
|
|
613
|
-
const T =
|
|
613
|
+
const T = n.value.size, h = e.value.length;
|
|
614
614
|
r = T == h;
|
|
615
615
|
}
|
|
616
616
|
return r;
|
|
@@ -624,27 +624,27 @@ function Eo(e) {
|
|
|
624
624
|
function i(r) {
|
|
625
625
|
u(() => {
|
|
626
626
|
r.forEach((T) => {
|
|
627
|
-
|
|
627
|
+
n.value.add(T);
|
|
628
628
|
});
|
|
629
629
|
});
|
|
630
630
|
}
|
|
631
631
|
function f(r) {
|
|
632
632
|
u(() => {
|
|
633
633
|
r.forEach((T) => {
|
|
634
|
-
|
|
634
|
+
n.value.delete(T);
|
|
635
635
|
});
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
638
|
function v(r) {
|
|
639
|
-
return t.value != null ? t.value :
|
|
639
|
+
return t.value != null ? t.value : n.value.has(r);
|
|
640
640
|
}
|
|
641
641
|
function u(r) {
|
|
642
|
-
t.value != null && (t.value ?
|
|
642
|
+
t.value != null && (t.value ? n.value = new Set(Array.from(e.value)) : n.value = /* @__PURE__ */ new Set()), r(), n.value.size == 0 ? t.value = !1 : n.value.size == e.value.length ? t.value = !0 : t.value = null;
|
|
643
643
|
}
|
|
644
644
|
function M(r) {
|
|
645
645
|
u(() => {
|
|
646
646
|
r.forEach((T) => {
|
|
647
|
-
v(T) ?
|
|
647
|
+
v(T) ? n.value.delete(T) : n.value.add(T);
|
|
648
648
|
});
|
|
649
649
|
});
|
|
650
650
|
}
|
|
@@ -652,8 +652,8 @@ function Eo(e) {
|
|
|
652
652
|
const { value: r } = s;
|
|
653
653
|
r ? d() : a();
|
|
654
654
|
}
|
|
655
|
-
return F(He, g), F(We, M), F(Xe, v), F(Ze,
|
|
656
|
-
selected:
|
|
655
|
+
return F(He, g), F(We, M), F(Xe, v), F(Ze, o), F(Ve, i), F(Ke, a), F(Ge, f), F(qe, s), F(ye, d), F(ye, d), F(Je, l), {
|
|
656
|
+
selected: o,
|
|
657
657
|
select: i,
|
|
658
658
|
selectAll: a,
|
|
659
659
|
unselect: f,
|
|
@@ -673,14 +673,14 @@ function xe(e) {
|
|
|
673
673
|
function mt({
|
|
674
674
|
attribute: e,
|
|
675
675
|
selectWay: t = "colum",
|
|
676
|
-
scrollOptions:
|
|
677
|
-
getSelectMap:
|
|
676
|
+
scrollOptions: n = {},
|
|
677
|
+
getSelectMap: o = () => ({})
|
|
678
678
|
}) {
|
|
679
679
|
const {
|
|
680
680
|
select: l = xe("\u9009\u62E9"),
|
|
681
681
|
unselect: s = xe("\u53D6\u6D88\u9009\u62E9"),
|
|
682
682
|
unselectAll: a = xe("\u53D6\u6D88\u5168\u9009")
|
|
683
|
-
} =
|
|
683
|
+
} = o();
|
|
684
684
|
let d = {};
|
|
685
685
|
const i = N(
|
|
686
686
|
() => ke(t === "colum" ? ce : wt, 50)
|
|
@@ -697,7 +697,7 @@ function mt({
|
|
|
697
697
|
top: Math.min(g.value.y, r.value.y) - h.value.top,
|
|
698
698
|
width: Math.abs(g.value.x - r.value.x),
|
|
699
699
|
height: Math.abs(g.value.y - r.value.y)
|
|
700
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } =
|
|
700
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } = n;
|
|
701
701
|
let _;
|
|
702
702
|
const p = x, z = W, Q = H, D = (j) => j ** 1;
|
|
703
703
|
let w = 0;
|
|
@@ -807,18 +807,18 @@ function mt({
|
|
|
807
807
|
observer: T
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
const t = mt(e), { observer:
|
|
810
|
+
function Ao(e) {
|
|
811
|
+
const t = mt(e), { observer: n, selectRange: o } = t, {
|
|
812
812
|
onScroll: l,
|
|
813
813
|
dragStart: s,
|
|
814
814
|
dragMove: a,
|
|
815
815
|
dragEnd: d,
|
|
816
816
|
cancelSelectAllBySingleClick: i
|
|
817
817
|
} = t, f = N(() => ({
|
|
818
|
-
left: `${
|
|
819
|
-
top: `${
|
|
820
|
-
width: `${
|
|
821
|
-
height: `${
|
|
818
|
+
left: `${o.value.left}px`,
|
|
819
|
+
top: `${o.value.top}px`,
|
|
820
|
+
width: `${o.value.width}px`,
|
|
821
|
+
height: `${o.value.height}px`
|
|
822
822
|
})), { load: v } = Fe(
|
|
823
823
|
`.drag-select-box {
|
|
824
824
|
position: absolute;
|
|
@@ -857,19 +857,19 @@ function Io(e) {
|
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
function h() {
|
|
860
|
-
|
|
860
|
+
n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", M), window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", r);
|
|
861
861
|
}
|
|
862
862
|
return { init: T, unMount: h };
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const
|
|
864
|
+
function zo(e, t, n = 600) {
|
|
865
|
+
const o = mt({
|
|
866
866
|
...e,
|
|
867
867
|
selectWay: "row",
|
|
868
868
|
scrollOptions: {
|
|
869
869
|
startSpeed: 5,
|
|
870
870
|
maxSpeed: 5
|
|
871
871
|
}
|
|
872
|
-
}), { observer: l } =
|
|
872
|
+
}), { observer: l } = o, { onScroll: s, dragStart: a, dragMove: d, dragEnd: i } = o;
|
|
873
873
|
let f;
|
|
874
874
|
function v() {
|
|
875
875
|
clearTimeout(f);
|
|
@@ -878,7 +878,7 @@ function Ao(e, t, o = 600) {
|
|
|
878
878
|
v(), h.composedPath().some((y) => !!y?.getAttribute?.(e.attribute)) && (f = setTimeout(() => {
|
|
879
879
|
const { clientX: y, clientY: x } = h.targetTouches[0];
|
|
880
880
|
a(y, x), t?.(), d(y, x, () => h.preventDefault()), h.preventDefault();
|
|
881
|
-
},
|
|
881
|
+
}, n));
|
|
882
882
|
}
|
|
883
883
|
function M(h) {
|
|
884
884
|
v();
|
|
@@ -890,17 +890,17 @@ function Ao(e, t, o = 600) {
|
|
|
890
890
|
}
|
|
891
891
|
function r(h) {
|
|
892
892
|
try {
|
|
893
|
-
if (!
|
|
893
|
+
if (!o.init(h))
|
|
894
894
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
895
|
-
if (!
|
|
895
|
+
if (!o.containerEl?.value)
|
|
896
896
|
return !1;
|
|
897
|
-
|
|
897
|
+
o.containerEl.value?.addEventListener("scroll", s), o.containerEl.value?.addEventListener("touchstart", u), o.containerEl.value?.addEventListener("touchmove", M), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
|
|
898
898
|
} catch (c) {
|
|
899
899
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", c);
|
|
900
900
|
}
|
|
901
901
|
}
|
|
902
902
|
function T() {
|
|
903
|
-
l.disconnect(),
|
|
903
|
+
l.disconnect(), o.containerEl.value?.removeEventListener("scroll", s), o.containerEl.value?.removeEventListener("touchstart", u), o.containerEl.value?.removeEventListener("touchmove", M), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
|
|
904
904
|
}
|
|
905
905
|
return { init: r, unMount: T };
|
|
906
906
|
}
|
|
@@ -916,8 +916,8 @@ const qt = Symbol(), Jt = {
|
|
|
916
916
|
},
|
|
917
917
|
emits: ["update:visiable"],
|
|
918
918
|
setup(e, { emit: t }) {
|
|
919
|
-
const
|
|
920
|
-
|
|
919
|
+
const n = e, o = () => {
|
|
920
|
+
n.closeOnClickOverlay && t("update:visiable", !1);
|
|
921
921
|
};
|
|
922
922
|
return F(qt, () => t("update:visiable", !1)), (l, s) => (b(), Ee(Ye, { name: "modal" }, {
|
|
923
923
|
default: Be(() => [
|
|
@@ -930,7 +930,7 @@ const qt = Symbol(), Jt = {
|
|
|
930
930
|
Ie(l.$slots, "default", {}, void 0, !0)
|
|
931
931
|
], 34)
|
|
932
932
|
])), [
|
|
933
|
-
[I(kt), () =>
|
|
933
|
+
[I(kt), () => o()]
|
|
934
934
|
]) : ue("", !0)
|
|
935
935
|
]),
|
|
936
936
|
_: 3
|
|
@@ -938,13 +938,13 @@ const qt = Symbol(), Jt = {
|
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
940
|
const ee = (e, t) => {
|
|
941
|
-
const
|
|
942
|
-
for (const [
|
|
943
|
-
o
|
|
944
|
-
return
|
|
941
|
+
const n = e.__vccOpts || e;
|
|
942
|
+
for (const [o, l] of t)
|
|
943
|
+
n[o] = l;
|
|
944
|
+
return n;
|
|
945
945
|
}, tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-14584295"]]);
|
|
946
|
-
function
|
|
947
|
-
function t(
|
|
946
|
+
function Lo(e) {
|
|
947
|
+
function t(n, o) {
|
|
948
948
|
const l = document.createElement("div"), s = {
|
|
949
949
|
setup() {
|
|
950
950
|
return () => ae(
|
|
@@ -957,7 +957,7 @@ function zo(e) {
|
|
|
957
957
|
...e
|
|
958
958
|
},
|
|
959
959
|
{
|
|
960
|
-
default: () => ae(
|
|
960
|
+
default: () => ae(n, o)
|
|
961
961
|
}
|
|
962
962
|
);
|
|
963
963
|
}
|
|
@@ -973,9 +973,9 @@ function zo(e) {
|
|
|
973
973
|
function yt({
|
|
974
974
|
component: e,
|
|
975
975
|
componentProps: t,
|
|
976
|
-
delay:
|
|
976
|
+
delay: n = 300
|
|
977
977
|
}) {
|
|
978
|
-
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${
|
|
978
|
+
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
|
|
979
979
|
return Fe(
|
|
980
980
|
`@keyframes lzcDelayLoad {
|
|
981
981
|
to {
|
|
@@ -995,15 +995,15 @@ function yt({
|
|
|
995
995
|
}
|
|
996
996
|
}) };
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function jo({
|
|
999
999
|
component: e,
|
|
1000
1000
|
componentProps: t,
|
|
1001
|
-
delay:
|
|
1001
|
+
delay: n = 300
|
|
1002
1002
|
}) {
|
|
1003
|
-
const { LoadingComp:
|
|
1003
|
+
const { LoadingComp: o } = yt({
|
|
1004
1004
|
component: e,
|
|
1005
1005
|
componentProps: t,
|
|
1006
|
-
delay:
|
|
1006
|
+
delay: n
|
|
1007
1007
|
}), l = m(!1);
|
|
1008
1008
|
function s() {
|
|
1009
1009
|
l.value = !0;
|
|
@@ -1011,7 +1011,7 @@ function Lo({
|
|
|
1011
1011
|
function a() {
|
|
1012
1012
|
l.value = !1;
|
|
1013
1013
|
}
|
|
1014
|
-
return { LoadingComp:
|
|
1014
|
+
return { LoadingComp: o, loading: l, load: s, unload: a };
|
|
1015
1015
|
}
|
|
1016
1016
|
const nn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), on = /* @__PURE__ */ nn(() => /* @__PURE__ */ O("div", { class: "ldio-mm5gwljcryb" }, [
|
|
1017
1017
|
/* @__PURE__ */ O("div")
|
|
@@ -1027,7 +1027,7 @@ const nn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), on = /* @__PURE__ *
|
|
|
1027
1027
|
return Ue((t) => ({
|
|
1028
1028
|
"4e4a9ce4": e.width + "px",
|
|
1029
1029
|
e56fe5c2: e.height + "px"
|
|
1030
|
-
})), (t,
|
|
1030
|
+
})), (t, n) => (b(), U("div", _e(Oe(t.$attrs)), ln, 16));
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
const an = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-92a1804d"]]), un = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", rn = { class: "loading-wrap" }, cn = ["src"], dn = /* @__PURE__ */ q({
|
|
@@ -1038,23 +1038,23 @@ const an = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-92a1804d"]]), un = "dat
|
|
|
1038
1038
|
},
|
|
1039
1039
|
setup(e) {
|
|
1040
1040
|
const t = e;
|
|
1041
|
-
Ue((
|
|
1041
|
+
Ue((o) => ({
|
|
1042
1042
|
b1cf73a8: e.delay
|
|
1043
1043
|
}));
|
|
1044
|
-
const
|
|
1045
|
-
const
|
|
1046
|
-
return t.size === "mini" ? (
|
|
1044
|
+
const n = N(() => {
|
|
1045
|
+
const o = {};
|
|
1046
|
+
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1047
1047
|
});
|
|
1048
|
-
return (
|
|
1048
|
+
return (o, l) => (b(), U("div", rn, [
|
|
1049
1049
|
O("img", {
|
|
1050
1050
|
class: "loading-circle",
|
|
1051
1051
|
src: I(un),
|
|
1052
|
-
style: K(I(
|
|
1052
|
+
style: K(I(n))
|
|
1053
1053
|
}, null, 12, cn)
|
|
1054
1054
|
]));
|
|
1055
1055
|
}
|
|
1056
1056
|
});
|
|
1057
|
-
const
|
|
1057
|
+
const xo = /* @__PURE__ */ ee(dn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1058
1058
|
async function et(e) {
|
|
1059
1059
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1060
1060
|
}
|
|
@@ -1077,26 +1077,26 @@ const fn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1077
1077
|
},
|
|
1078
1078
|
emits: ["close"],
|
|
1079
1079
|
setup(e, { emit: t }) {
|
|
1080
|
-
const
|
|
1080
|
+
const n = e, o = "lzc-loading-toast", l = N(() => {
|
|
1081
1081
|
let f = {};
|
|
1082
|
-
return
|
|
1082
|
+
return n.captureEventP && (f.pointerEvents = "none"), f;
|
|
1083
1083
|
}), s = N(() => {
|
|
1084
1084
|
let f = {
|
|
1085
1085
|
padding: "12px"
|
|
1086
1086
|
};
|
|
1087
|
-
return (
|
|
1087
|
+
return (n.icon || n.showIcon) && (f.padding = "20px"), n.width && (f.width = n.width), n.maxWidth && (f.maxWidth = n.maxWidth), n.overlayContentStyle && (f = {
|
|
1088
1088
|
...f,
|
|
1089
|
-
...
|
|
1089
|
+
...n.overlayContentStyle
|
|
1090
1090
|
}), f;
|
|
1091
1091
|
}), a = N(() => {
|
|
1092
1092
|
let f = {};
|
|
1093
|
-
return
|
|
1093
|
+
return n.showClose && !n.icon && (f.paddingRight = "16px"), f;
|
|
1094
1094
|
});
|
|
1095
1095
|
function d() {
|
|
1096
|
-
|
|
1096
|
+
n.closeOnClickOverlay && t("close");
|
|
1097
1097
|
}
|
|
1098
1098
|
function i() {
|
|
1099
|
-
|
|
1099
|
+
n.closeOnClick && t("close");
|
|
1100
1100
|
}
|
|
1101
1101
|
return (f, v) => (b(), Ee(Ye, {
|
|
1102
1102
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
@@ -1104,35 +1104,35 @@ const fn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1104
1104
|
}, {
|
|
1105
1105
|
default: Be(() => [
|
|
1106
1106
|
O("div", {
|
|
1107
|
-
id:
|
|
1107
|
+
id: o,
|
|
1108
1108
|
style: K(I(l))
|
|
1109
1109
|
}, [
|
|
1110
1110
|
ve(O("div", {
|
|
1111
|
-
class: se(`${
|
|
1111
|
+
class: se(`${o} ${e.className}`),
|
|
1112
1112
|
onClick: he(d, ["stop"])
|
|
1113
1113
|
}, [
|
|
1114
1114
|
O("div", {
|
|
1115
|
-
class: se(`${
|
|
1115
|
+
class: se(`${o}-wrap`),
|
|
1116
1116
|
onClick: he(i, ["stop"])
|
|
1117
1117
|
}, [
|
|
1118
1118
|
O("div", {
|
|
1119
|
-
class: se(`${
|
|
1119
|
+
class: se(`${o}-content`),
|
|
1120
1120
|
style: K(I(s))
|
|
1121
1121
|
}, [
|
|
1122
1122
|
e.showClose ? (b(), U("img", {
|
|
1123
1123
|
key: 0,
|
|
1124
1124
|
onClick: v[0] || (v[0] = he((u) => t("close"), ["stop"])),
|
|
1125
1125
|
src: I(fn),
|
|
1126
|
-
class: se(`${
|
|
1126
|
+
class: se(`${o}-close`)
|
|
1127
1127
|
}, null, 10, hn)) : ue("", !0),
|
|
1128
1128
|
e.showIcon ? (b(), U("img", {
|
|
1129
1129
|
key: 1,
|
|
1130
1130
|
src: e.icon || I(vn),
|
|
1131
|
-
class: se(`${
|
|
1131
|
+
class: se(`${o}-icon`)
|
|
1132
1132
|
}, null, 10, mn)) : ue("", !0),
|
|
1133
1133
|
e.message ? (b(), U("div", {
|
|
1134
1134
|
key: 2,
|
|
1135
|
-
class: se(`${
|
|
1135
|
+
class: se(`${o}-message`),
|
|
1136
1136
|
style: K(I(a))
|
|
1137
1137
|
}, Re(e.message), 7)) : ue("", !0)
|
|
1138
1138
|
], 6)
|
|
@@ -1157,9 +1157,9 @@ class Dn {
|
|
|
1157
1157
|
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = pn;
|
|
1158
1158
|
}
|
|
1159
1159
|
async show() {
|
|
1160
|
-
const t = this.options,
|
|
1160
|
+
const t = this.options, o = { ...t, onClose: () => {
|
|
1161
1161
|
this.close(), t?.onClose?.();
|
|
1162
|
-
} }, l = Me(this.loadingToast,
|
|
1162
|
+
} }, l = Me(this.loadingToast, o);
|
|
1163
1163
|
me(l, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, t.duration !== 0 && setTimeout(() => {
|
|
1164
1164
|
this.destory();
|
|
1165
1165
|
}, t.duration), await et(t.duration + this.animateDuration);
|
|
@@ -1179,13 +1179,13 @@ class Dn {
|
|
|
1179
1179
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1183
|
-
const
|
|
1182
|
+
function Co(e, t) {
|
|
1183
|
+
const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay != null ? t.delay : 300, d = {
|
|
1184
1184
|
...t,
|
|
1185
1185
|
showIcon: t?.showIcon !== !1,
|
|
1186
1186
|
captureEventP: t?.captureEventP === !0
|
|
1187
1187
|
};
|
|
1188
|
-
|
|
1188
|
+
n && console.log(
|
|
1189
1189
|
"useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",
|
|
1190
1190
|
l,
|
|
1191
1191
|
s,
|
|
@@ -1196,28 +1196,28 @@ function xo(e, t) {
|
|
|
1196
1196
|
let f = null;
|
|
1197
1197
|
const v = new Dn(d);
|
|
1198
1198
|
async function u(...g) {
|
|
1199
|
-
if (
|
|
1199
|
+
if (n && console.log(`useDelayAsync - handler - processing: ${i.value}`), !i.value) {
|
|
1200
1200
|
i.value = !0, f = setTimeout(() => {
|
|
1201
|
-
|
|
1201
|
+
n && console.log(
|
|
1202
1202
|
"useDelayAsync - handler - setTimeout - loading: %s processing: %s",
|
|
1203
1203
|
l,
|
|
1204
1204
|
i.value
|
|
1205
1205
|
), l && (!i.value || v.show());
|
|
1206
1206
|
}, a);
|
|
1207
1207
|
try {
|
|
1208
|
-
|
|
1208
|
+
n && console.time("useDelayAsync - handler-execute-time");
|
|
1209
1209
|
const r = await e(...g);
|
|
1210
|
-
|
|
1210
|
+
n && console.log("useDelayAsync - execute res: ", r), n && console.timeEnd("useDelayAsync - handler-execute-time"), await M(s), await t?.onSuccess?.(r);
|
|
1211
1211
|
} catch (r) {
|
|
1212
|
-
|
|
1212
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(r), await M(s), await t?.onError?.(r);
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
async function M(g = !0) {
|
|
1217
|
-
|
|
1217
|
+
n && console.log("useDelayAsync - close - closeLoading: ", g), i.value = !1, f && clearTimeout(f), f = null, g && await v.destory();
|
|
1218
1218
|
}
|
|
1219
1219
|
return dt(() => {
|
|
1220
|
-
|
|
1220
|
+
n && console.log("useDelayAsync - onBeforeUnmount - close"), M();
|
|
1221
1221
|
}), {
|
|
1222
1222
|
processing: i,
|
|
1223
1223
|
handler: u,
|
|
@@ -1228,14 +1228,14 @@ function Tn(e, t) {
|
|
|
1228
1228
|
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
1229
1229
|
}
|
|
1230
1230
|
function wn() {
|
|
1231
|
-
const e = m(0), t = m(0),
|
|
1232
|
-
|
|
1231
|
+
const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), d = () => a.value === "vertical", i = () => a.value === "horizontal", f = () => {
|
|
1232
|
+
n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
|
|
1233
1233
|
};
|
|
1234
1234
|
function v(M, g) {
|
|
1235
1235
|
f(), e.value = M, t.value = g;
|
|
1236
1236
|
}
|
|
1237
1237
|
function u(M, g) {
|
|
1238
|
-
|
|
1238
|
+
n.value = (M < 0 ? 0 : M) - e.value, o.value = g - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
|
|
1239
1239
|
const r = 10;
|
|
1240
1240
|
(!a.value || l.value < r && s.value < r) && (a.value = Tn(l.value, s.value));
|
|
1241
1241
|
}
|
|
@@ -1245,8 +1245,8 @@ function wn() {
|
|
|
1245
1245
|
reset: f,
|
|
1246
1246
|
startX: e,
|
|
1247
1247
|
startY: t,
|
|
1248
|
-
deltaX:
|
|
1249
|
-
deltaY:
|
|
1248
|
+
deltaX: n,
|
|
1249
|
+
deltaY: o,
|
|
1250
1250
|
offsetX: l,
|
|
1251
1251
|
offsetY: s,
|
|
1252
1252
|
direction: a,
|
|
@@ -1257,32 +1257,32 @@ function wn() {
|
|
|
1257
1257
|
const lt = 250, st = 5, Nn = 500;
|
|
1258
1258
|
function En(e) {
|
|
1259
1259
|
const { isDouble: t = !0 } = e;
|
|
1260
|
-
let
|
|
1260
|
+
let n, o;
|
|
1261
1261
|
function l() {
|
|
1262
|
-
|
|
1262
|
+
n = Date.now();
|
|
1263
1263
|
}
|
|
1264
1264
|
async function s(a, d) {
|
|
1265
|
-
const i = Date.now() -
|
|
1266
|
-
a < st && d < st && (i < lt ? t ?
|
|
1267
|
-
e.onTap?.(),
|
|
1265
|
+
const i = Date.now() - n;
|
|
1266
|
+
a < st && d < st && (i < lt ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
|
|
1267
|
+
e.onTap?.(), o = null;
|
|
1268
1268
|
}, lt) : e.onTap?.() : i > Nn && e.onLongPress?.());
|
|
1269
1269
|
}
|
|
1270
1270
|
return { startTap: l, checkTap: s };
|
|
1271
1271
|
}
|
|
1272
1272
|
function In(e, t) {
|
|
1273
|
-
const
|
|
1274
|
-
function
|
|
1275
|
-
|
|
1273
|
+
const n = m(!1);
|
|
1274
|
+
function o() {
|
|
1275
|
+
n.value || (n.value = !0, I(e)?.addEventListener("transitionend", l));
|
|
1276
1276
|
}
|
|
1277
1277
|
function l() {
|
|
1278
|
-
I(e)?.removeEventListener("transitionend", l),
|
|
1278
|
+
I(e)?.removeEventListener("transitionend", l), n.value = !1, t.onComplate?.();
|
|
1279
1279
|
}
|
|
1280
|
-
return { transitioning:
|
|
1280
|
+
return { transitioning: n, startTransition: o };
|
|
1281
1281
|
}
|
|
1282
|
-
function An(e, t,
|
|
1282
|
+
function An(e, t, n, o) {
|
|
1283
1283
|
var l = Math.min(
|
|
1284
|
-
|
|
1285
|
-
|
|
1284
|
+
n / e,
|
|
1285
|
+
o / t
|
|
1286
1286
|
), s = e * l, a = t * l;
|
|
1287
1287
|
return {
|
|
1288
1288
|
width: oe(s),
|
|
@@ -1292,14 +1292,14 @@ function An(e, t, o, n) {
|
|
|
1292
1292
|
function zn(e) {
|
|
1293
1293
|
return e < 3 ? "444ms" : e < 6 ? "555ms" : "666ms";
|
|
1294
1294
|
}
|
|
1295
|
-
function Ce(e, t,
|
|
1296
|
-
return Math.min(Math.max(e, t),
|
|
1295
|
+
function Ce(e, t, n) {
|
|
1296
|
+
return Math.min(Math.max(e, t), n);
|
|
1297
1297
|
}
|
|
1298
1298
|
function oe(e, t = 2) {
|
|
1299
1299
|
return parseFloat(e.toFixed(t));
|
|
1300
1300
|
}
|
|
1301
|
-
function Se(e, t,
|
|
1302
|
-
return e = oe(e), t = oe(t), `translate3d(${e}px, ${t}px, 0) scale3d(${
|
|
1301
|
+
function Se(e, t, n) {
|
|
1302
|
+
return e = oe(e), t = oe(t), `translate3d(${e}px, ${t}px, 0) scale3d(${n},${n},${n})`;
|
|
1303
1303
|
}
|
|
1304
1304
|
function at(e) {
|
|
1305
1305
|
return Math.sqrt(
|
|
@@ -1313,7 +1313,7 @@ function Ln(e) {
|
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
1315
|
function pt(e) {
|
|
1316
|
-
const { disableZoom: t } = e,
|
|
1316
|
+
const { disableZoom: t } = e, n = m(1), o = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }), d = m({ width: 0, height: 0 }), i = Te({
|
|
1317
1317
|
level: 1,
|
|
1318
1318
|
offsetX: 0,
|
|
1319
1319
|
offsetY: 0,
|
|
@@ -1376,8 +1376,8 @@ function pt(e) {
|
|
|
1376
1376
|
async function c(D, w, A) {
|
|
1377
1377
|
if (t || (D = oe(D), D = Ce(
|
|
1378
1378
|
D,
|
|
1379
|
-
|
|
1380
|
-
|
|
1379
|
+
n.value - n.value * 0.5,
|
|
1380
|
+
o.value + o.value * 0.5
|
|
1381
1381
|
), D == i.level))
|
|
1382
1382
|
return;
|
|
1383
1383
|
i.preview && await T(), w || (w = { x: v.startX.value, y: v.startY.value });
|
|
@@ -1404,7 +1404,7 @@ function pt(e) {
|
|
|
1404
1404
|
});
|
|
1405
1405
|
}
|
|
1406
1406
|
async function W() {
|
|
1407
|
-
i.level >=
|
|
1407
|
+
i.level >= n.value && i.level <= o.value ? i.zooming && await h() : i.level < n.value ? await c(n.value, void 0, !0) : i.level > o.value && await c(o.value, i.lastCenter, !0), i.zooming = !1;
|
|
1408
1408
|
}
|
|
1409
1409
|
function H() {
|
|
1410
1410
|
const { width: D, height: w } = a.value, { width: A, height: k } = d.value, Y = 2.5;
|
|
@@ -1443,7 +1443,7 @@ function pt(e) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
function Q() {
|
|
1445
1445
|
const D = H();
|
|
1446
|
-
|
|
1446
|
+
o.value = Math.max(o.value, D * 2);
|
|
1447
1447
|
}
|
|
1448
1448
|
return {
|
|
1449
1449
|
touch: v,
|
|
@@ -1461,13 +1461,13 @@ function pt(e) {
|
|
|
1461
1461
|
toggleZoom: y
|
|
1462
1462
|
};
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function So(e) {
|
|
1465
1465
|
const t = pt({
|
|
1466
1466
|
onDoubleTap() {
|
|
1467
1467
|
t.toggleZoom();
|
|
1468
1468
|
},
|
|
1469
1469
|
...e
|
|
1470
|
-
}), { state:
|
|
1470
|
+
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1471
1471
|
let a = !1, d = null;
|
|
1472
1472
|
const i = { top: 0, left: 0 }, f = ze(r, 150);
|
|
1473
1473
|
we("keyup", h), we("keydown", T);
|
|
@@ -1476,25 +1476,25 @@ function Co(e) {
|
|
|
1476
1476
|
if (!y)
|
|
1477
1477
|
return;
|
|
1478
1478
|
const { left: x, top: W } = y.getBoundingClientRect();
|
|
1479
|
-
l.startTap(),
|
|
1479
|
+
l.startTap(), o.start(c.clientX - x, c.clientY - W), s.transitioning.value || (a = !0, i.left = x, i.top = W, n.offsetX = y.scrollLeft, n.offsetY = y.scrollTop), window.addEventListener("pointermove", u), window.addEventListener("pointerup", M);
|
|
1480
1480
|
}
|
|
1481
1481
|
function u(c) {
|
|
1482
|
-
!a || (
|
|
1483
|
-
|
|
1484
|
-
|
|
1482
|
+
!a || (o.move(c.clientX, c.clientY), n.level !== 1 && t.panTo(
|
|
1483
|
+
o.deltaX.value - i.left,
|
|
1484
|
+
o.deltaY.value - i.top
|
|
1485
1485
|
));
|
|
1486
1486
|
}
|
|
1487
1487
|
function M(c) {
|
|
1488
|
-
l.checkTap(
|
|
1488
|
+
l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", u), window.removeEventListener("pointerup", M);
|
|
1489
1489
|
}
|
|
1490
1490
|
function g(c) {
|
|
1491
1491
|
if (!c.ctrlKey)
|
|
1492
1492
|
return;
|
|
1493
|
-
|
|
1493
|
+
n.zooming || (n.zooming = !0, d == "Control" && window.addEventListener("keyup", r)), c.preventDefault();
|
|
1494
1494
|
let y = -c.deltaY;
|
|
1495
1495
|
c.deltaMode === 1 ? y *= 0.05 : y *= c.deltaMode ? 1 : 2e-3, d != "Control" && (y *= 10), y = 2 ** y;
|
|
1496
|
-
const x =
|
|
1497
|
-
|
|
1496
|
+
const x = n.level * y;
|
|
1497
|
+
n.lastCenter = { x: c.offsetX, y: c.offsetY }, t.zoomTo(x, n.lastCenter), d != "Control" && f();
|
|
1498
1498
|
}
|
|
1499
1499
|
function r() {
|
|
1500
1500
|
t.zoomFinished(), window.removeEventListener("keyup", r);
|
|
@@ -1507,28 +1507,28 @@ function Co(e) {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
return { core: t, onPointerDown: v, onWheel: g };
|
|
1509
1509
|
}
|
|
1510
|
-
function
|
|
1510
|
+
function _o(e) {
|
|
1511
1511
|
const t = pt({
|
|
1512
1512
|
onDoubleTap() {
|
|
1513
1513
|
t.toggleZoom();
|
|
1514
1514
|
},
|
|
1515
1515
|
...e
|
|
1516
|
-
}), { state:
|
|
1516
|
+
}), { state: n, touch: o, gesture: l, transition: s, containerRef: a } = t, d = Vt(a);
|
|
1517
1517
|
let i, f, v, u;
|
|
1518
1518
|
async function M(h) {
|
|
1519
1519
|
const { touches: c } = h;
|
|
1520
|
-
i = c.length,
|
|
1520
|
+
i = c.length, n.zooming = i === 2, l.startTap(), o.start(c[0].clientX, c[0].clientY), T("start", h), n.zooming && (h.preventDefault(), f = n.level, v = at(c), await t.switchToZoom(), n.lastCenter = Ln(c));
|
|
1521
1521
|
}
|
|
1522
1522
|
async function g(h) {
|
|
1523
1523
|
const { touches: c } = h;
|
|
1524
|
-
if (i = c.length,
|
|
1524
|
+
if (i = c.length, o.move(c[0].clientX, c[0].clientY), T("move", h), n.zooming && i == 2) {
|
|
1525
1525
|
h.preventDefault();
|
|
1526
1526
|
const y = at(c), x = f * y / v;
|
|
1527
|
-
t.zoomTo(x,
|
|
1527
|
+
t.zoomTo(x, n.lastCenter);
|
|
1528
1528
|
}
|
|
1529
1529
|
}
|
|
1530
1530
|
async function r(h) {
|
|
1531
|
-
h.touches.length || (T("end", h), l.checkTap(
|
|
1531
|
+
h.touches.length || (T("end", h), l.checkTap(o.offsetX.value, o.offsetY.value), t.zoomFinished(), o.reset());
|
|
1532
1532
|
}
|
|
1533
1533
|
function T(h, c) {
|
|
1534
1534
|
d.measure();
|
|
@@ -1539,23 +1539,23 @@ function So(e) {
|
|
|
1539
1539
|
else if (i == 2)
|
|
1540
1540
|
u = !1;
|
|
1541
1541
|
else if (u) {
|
|
1542
|
-
if (
|
|
1543
|
-
if (
|
|
1542
|
+
if (o.direction.value == "vertical")
|
|
1543
|
+
if (n.level != 1)
|
|
1544
1544
|
u = !1;
|
|
1545
1545
|
else {
|
|
1546
|
-
const z =
|
|
1546
|
+
const z = o.startY.value < x;
|
|
1547
1547
|
u = W && z || p && !z;
|
|
1548
1548
|
}
|
|
1549
|
-
else if (
|
|
1550
|
-
const z =
|
|
1549
|
+
else if (o.direction.value == "horizontal") {
|
|
1550
|
+
const z = o.startX.value < y;
|
|
1551
1551
|
u = H && z || _ && !z;
|
|
1552
1552
|
}
|
|
1553
1553
|
}
|
|
1554
|
-
u && s.transitioning.value && (u = !1, c.preventDefault()), h == "end" && !u && (y =
|
|
1554
|
+
u && s.transitioning.value && (u = !1, c.preventDefault()), h == "end" && !u && (y = o.startX.value, x = o.startY.value, u = !0), (h != "move" || u) && e.onSwipeEdge?.(h, o.direction.value, y, x);
|
|
1555
1555
|
}
|
|
1556
1556
|
return { core: t, onTouchStart: M, onTouchMove: g, onTouchEnd: r };
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Oo() {
|
|
1559
1559
|
const e = Te({
|
|
1560
1560
|
scale: 1,
|
|
1561
1561
|
startX: 0,
|
|
@@ -1568,13 +1568,13 @@ function _o() {
|
|
|
1568
1568
|
function t(l, s) {
|
|
1569
1569
|
e.startX = l, e.startY = s, e.scale = 1;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function n(l, s) {
|
|
1572
1572
|
e.started = !0, e.dragging = !0, e.offsetX = l - e.startX, e.offsetY = s - e.startY, e.scale = 1 - Math.abs(e.offsetY / s * 0.4);
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function o() {
|
|
1575
1575
|
!e.dragging || (Math.abs(e.offsetY) > window.innerHeight * 0.14 ? e.scale = 0.3 : e.scale = 1, e.dragging = !1, e.offsetX = 0, e.offsetY = 0);
|
|
1576
1576
|
}
|
|
1577
|
-
return { state: e, dragStart: t, dragMove:
|
|
1577
|
+
return { state: e, dragStart: t, dragMove: n, dragEnd: o };
|
|
1578
1578
|
}
|
|
1579
1579
|
function jn() {
|
|
1580
1580
|
const e = m(!1), t = m(!1);
|
|
@@ -1588,26 +1588,32 @@ function jn() {
|
|
|
1588
1588
|
isActivated: e
|
|
1589
1589
|
};
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1592
|
-
let t =
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1591
|
+
function xn(e) {
|
|
1592
|
+
let t = !1;
|
|
1593
|
+
return () => {
|
|
1594
|
+
t || (e(), t = !0);
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
function bo(e) {
|
|
1598
|
+
let t = null;
|
|
1599
|
+
const { isActivated: n } = jn(), o = xn(() => t = window.onBackPress);
|
|
1597
1600
|
function l() {
|
|
1601
|
+
o(), window.onBackPress = () => e();
|
|
1602
|
+
}
|
|
1603
|
+
function s() {
|
|
1598
1604
|
window.onBackPress = t;
|
|
1599
1605
|
}
|
|
1600
1606
|
return ft(() => {
|
|
1601
|
-
!
|
|
1607
|
+
!n.value || l();
|
|
1602
1608
|
}), Ct(() => {
|
|
1603
|
-
n();
|
|
1604
|
-
}), dt(() => {
|
|
1605
1609
|
l();
|
|
1610
|
+
}), dt(() => {
|
|
1611
|
+
s();
|
|
1606
1612
|
}), St(() => {
|
|
1607
|
-
|
|
1608
|
-
}), { register:
|
|
1613
|
+
s();
|
|
1614
|
+
}), { register: l, unregister: s };
|
|
1609
1615
|
}
|
|
1610
|
-
const
|
|
1616
|
+
const Cn = ["onClick"], Sn = /* @__PURE__ */ q({
|
|
1611
1617
|
__name: "Toast",
|
|
1612
1618
|
props: {
|
|
1613
1619
|
message: null,
|
|
@@ -1615,7 +1621,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1615
1621
|
buttonClickEvent: null
|
|
1616
1622
|
},
|
|
1617
1623
|
setup(e) {
|
|
1618
|
-
const t = e,
|
|
1624
|
+
const t = e, n = m(), o = m(), l = m(), s = N(() => {
|
|
1619
1625
|
switch (t.position) {
|
|
1620
1626
|
case "top":
|
|
1621
1627
|
return 10;
|
|
@@ -1630,7 +1636,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1630
1636
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
1631
1637
|
padding: "14px 19px",
|
|
1632
1638
|
top: `calc(${s.value}% - ${l.value}px)`,
|
|
1633
|
-
left: `calc(50% - ${
|
|
1639
|
+
left: `calc(50% - ${o.value}px)`
|
|
1634
1640
|
})), d = N(() => ({
|
|
1635
1641
|
width: "fit-content",
|
|
1636
1642
|
display: "flex",
|
|
@@ -1643,12 +1649,12 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1643
1649
|
!t.buttonClickEvent || t.buttonClickEvent();
|
|
1644
1650
|
}
|
|
1645
1651
|
return fe(() => {
|
|
1646
|
-
|
|
1652
|
+
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1647
1653
|
}), (f, v) => (b(), U("div", {
|
|
1648
1654
|
onClick: he(i, ["stop"]),
|
|
1649
1655
|
id: "toastWrapper",
|
|
1650
1656
|
ref_key: "toastWrapper",
|
|
1651
|
-
ref:
|
|
1657
|
+
ref: n,
|
|
1652
1658
|
class: "toastWrapper",
|
|
1653
1659
|
style: K([I(a), { zIndex: 9999999 }])
|
|
1654
1660
|
}, [
|
|
@@ -1657,29 +1663,29 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1657
1663
|
}, [
|
|
1658
1664
|
O("span", null, Re(e.message), 1)
|
|
1659
1665
|
], 4)
|
|
1660
|
-
], 12,
|
|
1666
|
+
], 12, Cn));
|
|
1661
1667
|
}
|
|
1662
1668
|
});
|
|
1663
|
-
const
|
|
1669
|
+
const _n = /* @__PURE__ */ ee(Sn, [["__scopeId", "data-v-25d39b90"]]), it = {
|
|
1664
1670
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1665
1671
|
position: "middle",
|
|
1666
1672
|
duration: 1500,
|
|
1667
1673
|
buttonClickEvent: () => {
|
|
1668
1674
|
}
|
|
1669
1675
|
};
|
|
1670
|
-
class
|
|
1676
|
+
class ko {
|
|
1671
1677
|
options;
|
|
1672
1678
|
container;
|
|
1673
1679
|
constructor(t) {
|
|
1674
1680
|
this.options = t, this.container = document.createElement("div");
|
|
1675
1681
|
}
|
|
1676
1682
|
present() {
|
|
1677
|
-
const t = ae(ae(
|
|
1683
|
+
const t = ae(ae(_n), { ...it, ...this.options });
|
|
1678
1684
|
me(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
1679
|
-
const
|
|
1685
|
+
const n = this.options.duration || it.duration;
|
|
1680
1686
|
setTimeout(() => {
|
|
1681
1687
|
this.dismiss();
|
|
1682
|
-
},
|
|
1688
|
+
}, n);
|
|
1683
1689
|
}
|
|
1684
1690
|
dismiss() {
|
|
1685
1691
|
if (this.container) {
|
|
@@ -1692,7 +1698,7 @@ class bo {
|
|
|
1692
1698
|
}
|
|
1693
1699
|
}
|
|
1694
1700
|
}
|
|
1695
|
-
const
|
|
1701
|
+
const On = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
1696
1702
|
__name: "SvgIcon",
|
|
1697
1703
|
props: {
|
|
1698
1704
|
name: null,
|
|
@@ -1702,7 +1708,7 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
|
1702
1708
|
height: null
|
|
1703
1709
|
},
|
|
1704
1710
|
setup(e) {
|
|
1705
|
-
const t = e,
|
|
1711
|
+
const t = e, n = N(() => `#${t.prefix}-${t.name}`), o = N(() => ({
|
|
1706
1712
|
width: `${t.width ?? t.height}px`,
|
|
1707
1713
|
height: `${t.height ?? t.width}px`,
|
|
1708
1714
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
@@ -1713,21 +1719,21 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
|
1713
1719
|
}
|
|
1714
1720
|
return (s, a) => (b(), U("svg", {
|
|
1715
1721
|
"aria-hidden": "",
|
|
1716
|
-
style: K({ ...I(
|
|
1722
|
+
style: K({ ...I(o), ...l(s.$attrs) })
|
|
1717
1723
|
}, [
|
|
1718
1724
|
O("use", {
|
|
1719
|
-
"xlink:href": I(
|
|
1725
|
+
"xlink:href": I(n),
|
|
1720
1726
|
fill: e.color,
|
|
1721
1727
|
color: e.color
|
|
1722
|
-
}, null, 8,
|
|
1728
|
+
}, null, 8, On)
|
|
1723
1729
|
], 4));
|
|
1724
1730
|
}
|
|
1725
1731
|
});
|
|
1726
|
-
function
|
|
1732
|
+
function bn(e) {
|
|
1727
1733
|
const {
|
|
1728
1734
|
containerEl: t,
|
|
1729
|
-
sliderEl:
|
|
1730
|
-
autoHeight:
|
|
1735
|
+
sliderEl: n,
|
|
1736
|
+
autoHeight: o,
|
|
1731
1737
|
performance: l = {},
|
|
1732
1738
|
maxHeightRatio: s = 0.9,
|
|
1733
1739
|
observeMethod: a = "classList"
|
|
@@ -1740,16 +1746,16 @@ function On(e) {
|
|
|
1740
1746
|
clientHeight: 0
|
|
1741
1747
|
}), T = m({
|
|
1742
1748
|
clientHeight: 0
|
|
1743
|
-
}), h = N(() => !!M.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() =>
|
|
1749
|
+
}), h = N(() => !!M.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => o ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
|
|
1744
1750
|
r.value.clientHeight / r.value.scrollHeight,
|
|
1745
1751
|
0.05
|
|
1746
1752
|
)), H = N(() => W.value > s ? 0 : W.value * r.value.clientHeight), _ = N(() => ({
|
|
1747
1753
|
willChange: "transform",
|
|
1748
1754
|
transform: `translate3d(0,${g.value}px,0)`,
|
|
1749
|
-
height:
|
|
1755
|
+
height: o ? `${H.value}px` : void 0
|
|
1750
1756
|
}));
|
|
1751
1757
|
function p(B) {
|
|
1752
|
-
Q(), M.value = B.clientY -
|
|
1758
|
+
Q(), M.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
1753
1759
|
}
|
|
1754
1760
|
function z() {
|
|
1755
1761
|
t.value.style.scrollBehavior = v, M.value = 0, i();
|
|
@@ -1779,7 +1785,7 @@ function On(e) {
|
|
|
1779
1785
|
}
|
|
1780
1786
|
function C(B) {
|
|
1781
1787
|
let P = "addEventListener";
|
|
1782
|
-
B === "add" ? P = "addEventListener" : P = "removeEventListener",
|
|
1788
|
+
B === "add" ? P = "addEventListener" : P = "removeEventListener", n.value?.[P]("pointerdown", p, {
|
|
1783
1789
|
passive: !0
|
|
1784
1790
|
}), window[P]("pointermove", w, { passive: !0 }), window[P]("pointerup", z, { passive: !0 });
|
|
1785
1791
|
}
|
|
@@ -1791,11 +1797,11 @@ function On(e) {
|
|
|
1791
1797
|
}
|
|
1792
1798
|
function R() {
|
|
1793
1799
|
Q(), setTimeout(() => {
|
|
1794
|
-
T.value.clientHeight =
|
|
1800
|
+
T.value.clientHeight = n.value?.clientHeight ?? 0, D();
|
|
1795
1801
|
}, 150);
|
|
1796
1802
|
}
|
|
1797
1803
|
function $() {
|
|
1798
|
-
if (t.value &&
|
|
1804
|
+
if (t.value && n.value) {
|
|
1799
1805
|
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", A, {
|
|
1800
1806
|
passive: !0
|
|
1801
1807
|
}), C("add");
|
|
@@ -1808,7 +1814,7 @@ function On(e) {
|
|
|
1808
1814
|
E();
|
|
1809
1815
|
}, 100), R();
|
|
1810
1816
|
} else
|
|
1811
|
-
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl:
|
|
1817
|
+
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
1812
1818
|
}
|
|
1813
1819
|
return G(u, () => {
|
|
1814
1820
|
Q(), i();
|
|
@@ -1823,7 +1829,7 @@ function On(e) {
|
|
|
1823
1829
|
modifySliderEventListener: C
|
|
1824
1830
|
};
|
|
1825
1831
|
}
|
|
1826
|
-
const
|
|
1832
|
+
const kn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), Qn = /* @__PURE__ */ kn(() => /* @__PURE__ */ O("div", { class: "default-slider" }, null, -1)), Yn = /* @__PURE__ */ q({
|
|
1827
1833
|
__name: "ScrollBar",
|
|
1828
1834
|
props: {
|
|
1829
1835
|
containerEl: null,
|
|
@@ -1833,13 +1839,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1833
1839
|
performance: null
|
|
1834
1840
|
},
|
|
1835
1841
|
setup(e, { expose: t }) {
|
|
1836
|
-
const
|
|
1842
|
+
const n = e, o = !!_t().default, l = m(null), s = N(() => n.containerEl), a = bn({
|
|
1837
1843
|
containerEl: s,
|
|
1838
1844
|
sliderEl: l,
|
|
1839
|
-
autoHeight:
|
|
1840
|
-
performance:
|
|
1841
|
-
observeMethod:
|
|
1842
|
-
}), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u =
|
|
1845
|
+
autoHeight: o ? n.autoHeight : !0,
|
|
1846
|
+
performance: n.performance,
|
|
1847
|
+
observeMethod: n.observeMethod
|
|
1848
|
+
}), { scrollable: d, isScrollEnd: i, sliderPos: f } = a, v = m(!1), u = n.autoHide ? N(() => v.value || !i.value) : N(() => d.value), { load: M } = Fe(
|
|
1843
1849
|
`.hide-scrollbar {
|
|
1844
1850
|
scrollbar-width: none;
|
|
1845
1851
|
-ms-overflow-style: none;
|
|
@@ -1873,7 +1879,7 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1873
1879
|
style: K(I(f))
|
|
1874
1880
|
}, [
|
|
1875
1881
|
Ie(T.$slots, "default", {}, () => [
|
|
1876
|
-
|
|
1882
|
+
Qn
|
|
1877
1883
|
], !0)
|
|
1878
1884
|
], 36), [
|
|
1879
1885
|
[Ae, I(u)]
|
|
@@ -1883,13 +1889,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1883
1889
|
}));
|
|
1884
1890
|
}
|
|
1885
1891
|
});
|
|
1886
|
-
const
|
|
1892
|
+
const Qo = /* @__PURE__ */ ee(Yn, [["__scopeId", "data-v-405c22cf"]]), Bn = (e) => (pe("data-v-df5da876"), e = e(), De(), e), Un = { class: "pull-refresh" }, Rn = {
|
|
1887
1893
|
key: 0,
|
|
1888
1894
|
class: "pull-arrow-circle"
|
|
1889
|
-
},
|
|
1895
|
+
}, $n = {
|
|
1890
1896
|
key: 0,
|
|
1891
1897
|
class: "box-load"
|
|
1892
|
-
},
|
|
1898
|
+
}, Pn = { class: "left-load" }, Fn = { class: "right-load" }, Hn = /* @__PURE__ */ Bn(() => /* @__PURE__ */ O("div", { class: "among-load" }, null, -1)), Wn = { class: "pull-arrow" }, Xn = { key: 1 }, Zn = /* @__PURE__ */ q({
|
|
1893
1899
|
__name: "PullRefresh",
|
|
1894
1900
|
props: {
|
|
1895
1901
|
refresh: null,
|
|
@@ -1898,11 +1904,11 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1898
1904
|
pullRefreshContainer: null
|
|
1899
1905
|
},
|
|
1900
1906
|
setup(e) {
|
|
1901
|
-
const t = e,
|
|
1907
|
+
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), f = m(0), v = m(0), u = m(0), M = m(0), g = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
|
|
1902
1908
|
transition: `${M.value}ms`,
|
|
1903
1909
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
1904
1910
|
})), c = N(() => ({
|
|
1905
|
-
borderColor:
|
|
1911
|
+
borderColor: o,
|
|
1906
1912
|
transition: M.value,
|
|
1907
1913
|
transform: `rotate(${100 + a.value}deg)`,
|
|
1908
1914
|
opacity: d.value
|
|
@@ -1912,20 +1918,20 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1912
1918
|
}), G(v, (p) => {
|
|
1913
1919
|
if (g.value === 2)
|
|
1914
1920
|
return;
|
|
1915
|
-
const z = Math.pow(p,
|
|
1921
|
+
const z = Math.pow(p, n);
|
|
1916
1922
|
z === 0 && (l.value = -50), z <= 50 && z > 0 && (l.value = z - 45, a.value = Math.pow(z, 1.5), z > 15 ? i.value = !0 : i.value = !1), z > 50 && (l.value = 5, d.value = 1, g.value);
|
|
1917
1923
|
});
|
|
1918
1924
|
const y = m(0), x = (p) => {
|
|
1919
1925
|
y.value = p.touches[0].pageY;
|
|
1920
1926
|
}, W = (p) => {
|
|
1921
1927
|
const z = p.touches[0].pageY - y.value;
|
|
1922
|
-
y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || g.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, M.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value,
|
|
1928
|
+
y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || g.value !== 2 && T.value === 0 && (f.value === 0 && (f.value = p.touches[0].pageY), u.value = 0, _.value.style.transition = `${u.value}ms`, M.value = 0, v.value = p.touches[0].pageY - f.value, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, z > 0 && p.preventDefault()));
|
|
1923
1929
|
}, H = () => {
|
|
1924
1930
|
if (t.refreshOff || !t?.refresh || g.value === 2)
|
|
1925
1931
|
return;
|
|
1926
1932
|
f.value = 0, u.value = 300;
|
|
1927
|
-
const p = Math.pow(v.value,
|
|
1928
|
-
_.value.style.transition = `${u.value}ms`, p > 50 ? (g.value = 2, v.value = Math.pow(50, 1 /
|
|
1933
|
+
const p = Math.pow(v.value, n);
|
|
1934
|
+
_.value.style.transition = `${u.value}ms`, p > 50 ? (g.value = 2, v.value = Math.pow(50, 1 / n), _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, M.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
1929
1935
|
r.value = "\u5237\u65B0\u6210\u529F";
|
|
1930
1936
|
}).catch(() => {
|
|
1931
1937
|
r.value = "\u5237\u65B0\u5931\u8D25";
|
|
@@ -1933,46 +1939,46 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1933
1939
|
setTimeout(() => {
|
|
1934
1940
|
g.value = 0, v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1935
1941
|
v.value,
|
|
1936
|
-
|
|
1942
|
+
n
|
|
1937
1943
|
)}px, 0)`, setTimeout(() => {
|
|
1938
1944
|
r.value = void 0;
|
|
1939
1945
|
}, M.value);
|
|
1940
1946
|
}, 600);
|
|
1941
|
-
})) : (v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(v.value,
|
|
1947
|
+
})) : (v.value = 0, _.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
1942
1948
|
}, _ = m(null);
|
|
1943
1949
|
return ie(() => {
|
|
1944
1950
|
t?.refreshOff || (_.value = document.querySelector(
|
|
1945
1951
|
t.pullRefreshContainer
|
|
1946
1952
|
), _.value?.addEventListener("touchstart", x), _.value?.addEventListener("touchmove", W), _.value?.addEventListener("touchend", H));
|
|
1947
|
-
}), (p, z) => (b(), U("div",
|
|
1953
|
+
}), (p, z) => (b(), U("div", Un, [
|
|
1948
1954
|
O("div", {
|
|
1949
1955
|
class: "pull-refresh-box",
|
|
1950
1956
|
style: K(I(h))
|
|
1951
1957
|
}, [
|
|
1952
|
-
r.value ? (b(), U("div",
|
|
1953
|
-
g.value == 2 ? (b(), U("div",
|
|
1954
|
-
O("div",
|
|
1958
|
+
r.value ? (b(), U("div", Xn, Re(r.value), 1)) : (b(), U("div", Rn, [
|
|
1959
|
+
g.value == 2 ? (b(), U("div", $n, [
|
|
1960
|
+
O("div", Pn, [
|
|
1955
1961
|
O("div", {
|
|
1956
1962
|
class: "left-circle",
|
|
1957
|
-
style: K({ backgroundColor:
|
|
1963
|
+
style: K({ backgroundColor: o })
|
|
1958
1964
|
}, null, 4)
|
|
1959
1965
|
]),
|
|
1960
|
-
O("div",
|
|
1966
|
+
O("div", Fn, [
|
|
1961
1967
|
O("div", {
|
|
1962
1968
|
class: "right-circle",
|
|
1963
|
-
style: K({ backgroundColor:
|
|
1969
|
+
style: K({ backgroundColor: o })
|
|
1964
1970
|
}, null, 4)
|
|
1965
1971
|
]),
|
|
1966
|
-
|
|
1972
|
+
Hn
|
|
1967
1973
|
])) : (b(), U("div", {
|
|
1968
1974
|
key: 1,
|
|
1969
1975
|
class: "pull-circle-line",
|
|
1970
1976
|
style: K(I(c))
|
|
1971
1977
|
}, [
|
|
1972
|
-
O("div",
|
|
1978
|
+
O("div", Wn, [
|
|
1973
1979
|
O("div", {
|
|
1974
1980
|
class: se(["arrows", { opacity: i.value }]),
|
|
1975
|
-
style: K({ borderBottomColor:
|
|
1981
|
+
style: K({ borderBottomColor: o })
|
|
1976
1982
|
}, null, 6)
|
|
1977
1983
|
])
|
|
1978
1984
|
], 4))
|
|
@@ -1981,10 +1987,10 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1981
1987
|
]));
|
|
1982
1988
|
}
|
|
1983
1989
|
});
|
|
1984
|
-
const
|
|
1990
|
+
const Vn = /* @__PURE__ */ ee(Zn, [["__scopeId", "data-v-df5da876"]]), Kn = ["data-key"], Gn = {
|
|
1985
1991
|
inheritAttrs: !1
|
|
1986
|
-
},
|
|
1987
|
-
...
|
|
1992
|
+
}, qn = /* @__PURE__ */ q({
|
|
1993
|
+
...Gn,
|
|
1988
1994
|
__name: "VirtualList",
|
|
1989
1995
|
props: {
|
|
1990
1996
|
data: null,
|
|
@@ -1995,12 +2001,12 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
1995
2001
|
refreshOff: { type: Boolean, default: !1 }
|
|
1996
2002
|
},
|
|
1997
2003
|
emits: ["scrollEnd"],
|
|
1998
|
-
setup(e, { expose: t, emit:
|
|
1999
|
-
const
|
|
2000
|
-
itemHeight: (g) =>
|
|
2001
|
-
overscan:
|
|
2004
|
+
setup(e, { expose: t, emit: n }) {
|
|
2005
|
+
const o = e, l = Gt(Ot(o, "data"), {
|
|
2006
|
+
itemHeight: (g) => o.itemHeight(o.data[g]),
|
|
2007
|
+
overscan: o.overscan,
|
|
2002
2008
|
scrollEndHook: () => {
|
|
2003
|
-
|
|
2009
|
+
n("scrollEnd");
|
|
2004
2010
|
}
|
|
2005
2011
|
}), {
|
|
2006
2012
|
list: s,
|
|
@@ -2015,10 +2021,10 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2015
2021
|
});
|
|
2016
2022
|
const u = "virtualListWrapper" + new Date().getTime();
|
|
2017
2023
|
function M(g, r) {
|
|
2018
|
-
return
|
|
2024
|
+
return o.getItemKey ? o.getItemKey(g, r) : `${r}`;
|
|
2019
2025
|
}
|
|
2020
2026
|
return (g, r) => (b(), U(be, null, [
|
|
2021
|
-
Me(
|
|
2027
|
+
Me(Vn, {
|
|
2022
2028
|
refresh: e.refresh,
|
|
2023
2029
|
refreshOff: e.refreshOff,
|
|
2024
2030
|
scrollTop: I(v),
|
|
@@ -2047,7 +2053,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2047
2053
|
data: T,
|
|
2048
2054
|
index: h
|
|
2049
2055
|
}, void 0, !0)
|
|
2050
|
-
], 12,
|
|
2056
|
+
], 12, Kn))), 128))
|
|
2051
2057
|
], 16)
|
|
2052
2058
|
], 16)
|
|
2053
2059
|
], 16)
|
|
@@ -2055,7 +2061,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2055
2061
|
], 64));
|
|
2056
2062
|
}
|
|
2057
2063
|
});
|
|
2058
|
-
const
|
|
2064
|
+
const Yo = /* @__PURE__ */ ee(qn, [["__scopeId", "data-v-dfe60586"]]), tt = (e) => (pe("data-v-33519afd"), e = e(), De(), e), Jn = { style: { position: "absolute" } }, eo = /* @__PURE__ */ tt(() => /* @__PURE__ */ O("div", { class: "wrapper" }, null, -1)), to = ["width", "height"], no = /* @__PURE__ */ tt(() => /* @__PURE__ */ O("title", null, "logo", -1)), oo = /* @__PURE__ */ tt(() => /* @__PURE__ */ O("g", {
|
|
2059
2065
|
id: "group-1",
|
|
2060
2066
|
stroke: "none",
|
|
2061
2067
|
"stroke-width": "1",
|
|
@@ -2067,10 +2073,10 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2067
2073
|
id: "path-1",
|
|
2068
2074
|
fill: "#FFF"
|
|
2069
2075
|
})
|
|
2070
|
-
], -1)),
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
],
|
|
2076
|
+
], -1)), lo = [
|
|
2077
|
+
no,
|
|
2078
|
+
oo
|
|
2079
|
+
], so = /* @__PURE__ */ q({
|
|
2074
2080
|
__name: "Loading",
|
|
2075
2081
|
props: {
|
|
2076
2082
|
width: { default: "90" },
|
|
@@ -2079,12 +2085,12 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2079
2085
|
},
|
|
2080
2086
|
setup(e) {
|
|
2081
2087
|
const t = e;
|
|
2082
|
-
Ue((
|
|
2083
|
-
"312487ac":
|
|
2088
|
+
Ue((o) => ({
|
|
2089
|
+
"312487ac": n
|
|
2084
2090
|
}));
|
|
2085
|
-
const
|
|
2086
|
-
return (
|
|
2087
|
-
|
|
2091
|
+
const n = `${t.duration}ms`;
|
|
2092
|
+
return (o, l) => (b(), U("div", Jn, [
|
|
2093
|
+
eo,
|
|
2088
2094
|
(b(), U("svg", {
|
|
2089
2095
|
style: { position: "relative" },
|
|
2090
2096
|
width: e.width,
|
|
@@ -2092,11 +2098,11 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2092
2098
|
viewBox: "0 0 260 260",
|
|
2093
2099
|
version: "1.1",
|
|
2094
2100
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2095
|
-
},
|
|
2101
|
+
}, lo, 8, to))
|
|
2096
2102
|
]));
|
|
2097
2103
|
}
|
|
2098
2104
|
});
|
|
2099
|
-
const
|
|
2105
|
+
const Bo = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-33519afd"]]), ao = [
|
|
2100
2106
|
"image/avif",
|
|
2101
2107
|
"image/bmp",
|
|
2102
2108
|
"image/jpg",
|
|
@@ -2109,7 +2115,7 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
|
2109
2115
|
"image/webp",
|
|
2110
2116
|
"image/wbmp",
|
|
2111
2117
|
"image/svg+xml"
|
|
2112
|
-
],
|
|
2118
|
+
], io = [
|
|
2113
2119
|
"image/bmp",
|
|
2114
2120
|
"image/jpg",
|
|
2115
2121
|
"image/jpeg",
|
|
@@ -2121,18 +2127,18 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
|
2121
2127
|
"image/svg+xml"
|
|
2122
2128
|
];
|
|
2123
2129
|
function Dt(e, t) {
|
|
2124
|
-
const
|
|
2130
|
+
const n = m(e?.value), o = N(() => n.value?.startsWith("/_lzc")), l = m(!1), s = N(() => l.value), a = N(() => {
|
|
2125
2131
|
const i = t?.value;
|
|
2126
|
-
return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ?
|
|
2132
|
+
return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ? o.value ? ao.includes(i) : io.includes(i) : !1;
|
|
2127
2133
|
});
|
|
2128
2134
|
e && G(e, (i) => {
|
|
2129
|
-
|
|
2135
|
+
n.value = i, l.value = !1;
|
|
2130
2136
|
});
|
|
2131
2137
|
function d() {
|
|
2132
2138
|
l.value = !0;
|
|
2133
2139
|
}
|
|
2134
2140
|
return {
|
|
2135
|
-
imgSrc:
|
|
2141
|
+
imgSrc: n,
|
|
2136
2142
|
isError: l,
|
|
2137
2143
|
hasError: s,
|
|
2138
2144
|
isSupport: a,
|
|
@@ -2146,8 +2152,8 @@ function Tt() {
|
|
|
2146
2152
|
}
|
|
2147
2153
|
} };
|
|
2148
2154
|
}
|
|
2149
|
-
const
|
|
2150
|
-
...
|
|
2155
|
+
const uo = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), ro = ["title"], co = /* @__PURE__ */ uo(() => /* @__PURE__ */ O("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), fo = ["src"], vo = ["src"], Mo = ["title"], go = { inheritAttrs: !1 }, ho = /* @__PURE__ */ q({
|
|
2156
|
+
...go,
|
|
2151
2157
|
__name: "Image",
|
|
2152
2158
|
props: {
|
|
2153
2159
|
src: null,
|
|
@@ -2158,10 +2164,10 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2158
2164
|
},
|
|
2159
2165
|
emits: ["load"],
|
|
2160
2166
|
setup(e, { emit: t }) {
|
|
2161
|
-
const
|
|
2167
|
+
const n = e, o = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: f } = vt(n), { imgSrc: v, isSupport: u, hasError: M, handleError: g } = Dt(i, f), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
|
|
2162
2168
|
component: an,
|
|
2163
2169
|
delay: 300
|
|
2164
|
-
}), h = Qt(() => d.value &&
|
|
2170
|
+
}), h = Qt(() => d.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !d.value);
|
|
2165
2171
|
function c() {
|
|
2166
2172
|
a.value = !0;
|
|
2167
2173
|
}
|
|
@@ -2169,10 +2175,10 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2169
2175
|
a.value && (d.value = !0);
|
|
2170
2176
|
}
|
|
2171
2177
|
async function x() {
|
|
2172
|
-
c(), h.value ? (
|
|
2178
|
+
c(), h.value ? (o.value?.addEventListener("animationend", W), o.value?.classList.add("showing"), await et(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
|
|
2173
2179
|
}
|
|
2174
2180
|
function W() {
|
|
2175
|
-
|
|
2181
|
+
o.value?.removeEventListener("animationend", W), o.value?.classList.remove("showing"), o.value && t("load", o.value), y();
|
|
2176
2182
|
}
|
|
2177
2183
|
async function H(p) {
|
|
2178
2184
|
p ? x() : l.value && t("load", l.value), s.value = !0;
|
|
@@ -2190,7 +2196,7 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2190
2196
|
class: "bad-image",
|
|
2191
2197
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2192
2198
|
})
|
|
2193
|
-
], 16,
|
|
2199
|
+
], 16, Mo)) : Ie(p.$slots, "default", {
|
|
2194
2200
|
key: 2,
|
|
2195
2201
|
src: I(v),
|
|
2196
2202
|
onLoad: H,
|
|
@@ -2202,17 +2208,17 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2202
2208
|
onLoad: z[0] || (z[0] = (Q) => H()),
|
|
2203
2209
|
onError: z[1] || (z[1] = (Q) => _()),
|
|
2204
2210
|
src: e.thumbnail
|
|
2205
|
-
}), null, 16,
|
|
2211
|
+
}), null, 16, fo)), [
|
|
2206
2212
|
[I(r)]
|
|
2207
2213
|
]) : ue("", !0),
|
|
2208
2214
|
e.isShowSrc || a.value ? ve((b(), U("img", ge({ key: 1 }, p.$attrs, {
|
|
2209
2215
|
ref_key: "srcRef",
|
|
2210
|
-
ref:
|
|
2216
|
+
ref: o,
|
|
2211
2217
|
class: "src-class",
|
|
2212
2218
|
onLoad: z[2] || (z[2] = (Q) => H(!0)),
|
|
2213
2219
|
onError: z[3] || (z[3] = (Q) => _(!0)),
|
|
2214
2220
|
src: I(v)
|
|
2215
|
-
}), null, 16,
|
|
2221
|
+
}), null, 16, vo)), [
|
|
2216
2222
|
[I(r)],
|
|
2217
2223
|
[Ae, a.value]
|
|
2218
2224
|
]) : ue("", !0)
|
|
@@ -2224,19 +2230,19 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2224
2230
|
class: "no-support-icon",
|
|
2225
2231
|
name: "\u4E0D\u652F\u6301\u663E\u793A"
|
|
2226
2232
|
}),
|
|
2227
|
-
|
|
2228
|
-
], 16,
|
|
2233
|
+
co
|
|
2234
|
+
], 16, ro))
|
|
2229
2235
|
], 64));
|
|
2230
2236
|
}
|
|
2231
2237
|
});
|
|
2232
|
-
const
|
|
2238
|
+
const Uo = /* @__PURE__ */ ee(ho, [["__scopeId", "data-v-774cb54a"]]), mo = ["title"], yo = ["src"], po = ["title"], Do = /* @__PURE__ */ q({
|
|
2233
2239
|
__name: "Thumbnail",
|
|
2234
2240
|
props: {
|
|
2235
2241
|
src: null,
|
|
2236
2242
|
mime: null
|
|
2237
2243
|
},
|
|
2238
2244
|
setup(e) {
|
|
2239
|
-
const t = e,
|
|
2245
|
+
const t = e, n = m(!1), { src: o, mime: l } = vt(t), { imgSrc: s, hasError: a, isSupport: d, handleError: i } = Dt(o, l), { vImageCancel: f } = Tt();
|
|
2240
2246
|
return (v, u) => I(d) ? I(a) ? (b(), U("div", {
|
|
2241
2247
|
key: 2,
|
|
2242
2248
|
title: I(s),
|
|
@@ -2246,15 +2252,15 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
|
|
|
2246
2252
|
class: "icon",
|
|
2247
2253
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2248
2254
|
})
|
|
2249
|
-
], 8,
|
|
2255
|
+
], 8, po)) : ve((b(), U("img", {
|
|
2250
2256
|
key: 1,
|
|
2251
2257
|
fetchpriority: "high",
|
|
2252
|
-
onLoad: u[0] || (u[0] = (M) =>
|
|
2258
|
+
onLoad: u[0] || (u[0] = (M) => n.value = !0),
|
|
2253
2259
|
onError: u[1] || (u[1] = (...M) => I(i) && I(i)(...M)),
|
|
2254
2260
|
src: I(s)
|
|
2255
|
-
}, null, 40,
|
|
2261
|
+
}, null, 40, yo)), [
|
|
2256
2262
|
[I(f)],
|
|
2257
|
-
[Ae,
|
|
2263
|
+
[Ae, n.value]
|
|
2258
2264
|
]) : (b(), U("div", {
|
|
2259
2265
|
key: 0,
|
|
2260
2266
|
title: I(s),
|
|
@@ -2264,28 +2270,29 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
|
|
|
2264
2270
|
class: "icon",
|
|
2265
2271
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2266
2272
|
})
|
|
2267
|
-
], 8,
|
|
2273
|
+
], 8, mo));
|
|
2268
2274
|
}
|
|
2269
2275
|
});
|
|
2270
|
-
const
|
|
2276
|
+
const Ro = /* @__PURE__ */ ee(Do, [["__scopeId", "data-v-5a7af152"]]);
|
|
2271
2277
|
export {
|
|
2272
2278
|
an as DefaultLoading,
|
|
2273
|
-
|
|
2274
|
-
|
|
2279
|
+
Uo as Image,
|
|
2280
|
+
Bo as Loading,
|
|
2275
2281
|
Dn as LoadingToast,
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2282
|
+
xo as PageLoading,
|
|
2283
|
+
Vn as PullRefresh,
|
|
2284
|
+
Qo as ScrollBar,
|
|
2279
2285
|
Ne as SvgIcon,
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2286
|
+
Ro as Thumbnail,
|
|
2287
|
+
ko as ToastCreator,
|
|
2288
|
+
Yo as VirtualList,
|
|
2283
2289
|
Ze as allSelectedKey,
|
|
2284
2290
|
qt as closeDialogKey,
|
|
2285
|
-
|
|
2291
|
+
Lo as dialogController,
|
|
2286
2292
|
Se as getTransform,
|
|
2287
2293
|
qe as isAllSelectedKey,
|
|
2288
2294
|
Xe as isSelectedKey,
|
|
2295
|
+
xn as once,
|
|
2289
2296
|
Ke as selectAllKey,
|
|
2290
2297
|
Ve as selectKey,
|
|
2291
2298
|
Je as selectedCountKey,
|
|
@@ -2293,21 +2300,21 @@ export {
|
|
|
2293
2300
|
We as toggleKey,
|
|
2294
2301
|
ye as unselectAllKey,
|
|
2295
2302
|
Ge as unselectKey,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2303
|
+
bo as useBackPress,
|
|
2304
|
+
Co as useDelayAsync,
|
|
2305
|
+
jo as useDelayLoad,
|
|
2299
2306
|
yt as useDelayLoadComp,
|
|
2300
|
-
|
|
2307
|
+
Oo as useDownDrag,
|
|
2301
2308
|
mt as useDragSelect,
|
|
2302
|
-
|
|
2303
|
-
|
|
2309
|
+
zo as useDragSelectByMobile,
|
|
2310
|
+
Ao as useDragSelectByPc,
|
|
2304
2311
|
jn as useRouterActivated,
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2312
|
+
_o as useScaleImageByMobile,
|
|
2313
|
+
So as useScaleImageByPc,
|
|
2314
|
+
Eo as useSelectable,
|
|
2315
|
+
Io as useSelectableByBase,
|
|
2316
|
+
No as useSelectableInjectors,
|
|
2310
2317
|
Gt as useVirtualList,
|
|
2311
|
-
|
|
2318
|
+
wo as vDebounceClick,
|
|
2312
2319
|
kt as vSingleClick
|
|
2313
2320
|
};
|