@lazycatcloud/lzc-toolkit 0.0.167 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as ut, watchEffect as Et, 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 E, isRef as jt, getCurrentInstance as Qe, onUpdated as xt, computed as
|
|
1
|
+
import { shallowRef as ut, watchEffect as Et, 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 E, isRef as jt, getCurrentInstance as Qe, onUpdated as xt, computed as N, reactive as Te, onUnmounted as ct, inject as te, provide as H, defineComponent as q, h as ae, render as me, openBlock as b, createBlock as Ie, Transition as Ye, withCtx as Be, withDirectives as ve, createElementBlock as $, normalizeClass as oe, createElementVNode as _, withModifiers as he, renderSlot as Ee, createCommentVNode as ue, useCssVars as Ue, normalizeProps as Oe, guardReactiveProps as _e, 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 Ot, toRef as _t, Fragment as be, mergeProps as ge, renderList as bt, toRefs as vt } from "vue";
|
|
2
2
|
const kt = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
@@ -16,7 +16,7 @@ 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
21
|
const { fn: n, ms: o = 1500 } = t.value;
|
|
22
22
|
let l = null;
|
|
@@ -126,8 +126,8 @@ function se(e) {
|
|
|
126
126
|
const n = J(e);
|
|
127
127
|
return (t = n?.$el) != null ? t : n;
|
|
128
128
|
}
|
|
129
|
-
const Le = Mt ? window : void 0,
|
|
130
|
-
function
|
|
129
|
+
const Le = Mt ? window : void 0, Ht = Mt ? window.document : void 0;
|
|
130
|
+
function we(...e) {
|
|
131
131
|
let t, n, o, l;
|
|
132
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;
|
|
@@ -150,15 +150,15 @@ function Ne(...e) {
|
|
|
150
150
|
};
|
|
151
151
|
return $e(d), d;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ft() {
|
|
154
154
|
const e = m(!1), t = Qe();
|
|
155
155
|
return t && ie(() => {
|
|
156
156
|
e.value = !0;
|
|
157
157
|
}, t), e;
|
|
158
158
|
}
|
|
159
159
|
function Wt(e) {
|
|
160
|
-
const t =
|
|
161
|
-
return
|
|
160
|
+
const t = Ft();
|
|
161
|
+
return N(() => (t.value, Boolean(e())));
|
|
162
162
|
}
|
|
163
163
|
function Xt(e) {
|
|
164
164
|
const t = Qe(), n = Yt(
|
|
@@ -172,7 +172,7 @@ function ht(e, t, n = {}) {
|
|
|
172
172
|
let s;
|
|
173
173
|
const a = Wt(() => o && "ResizeObserver" in o), f = () => {
|
|
174
174
|
s && (s.disconnect(), s = void 0);
|
|
175
|
-
}, u =
|
|
175
|
+
}, u = N(() => Array.isArray(e) ? e.map((i) => se(i)) : [se(e)]), d = G(
|
|
176
176
|
u,
|
|
177
177
|
(i) => {
|
|
178
178
|
if (f(), a.value && o) {
|
|
@@ -191,7 +191,7 @@ function ht(e, t, n = {}) {
|
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
193
|
function Zt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
194
|
-
const { window: o = Le, box: l = "content-box" } = n, s =
|
|
194
|
+
const { window: o = Le, box: l = "content-box" } = n, s = N(() => {
|
|
195
195
|
var i, g;
|
|
196
196
|
return (g = (i = se(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
197
197
|
}), a = m(t.width), f = m(t.height), { stop: u } = ht(
|
|
@@ -253,14 +253,14 @@ function Vt(e, t = {}) {
|
|
|
253
253
|
onError: v = (p) => {
|
|
254
254
|
console.error(p);
|
|
255
255
|
}
|
|
256
|
-
} = t, i = m(0), g = m(0), M =
|
|
256
|
+
} = t, i = m(0), g = m(0), M = N({
|
|
257
257
|
get() {
|
|
258
258
|
return i.value;
|
|
259
259
|
},
|
|
260
260
|
set(p) {
|
|
261
261
|
T(p, void 0);
|
|
262
262
|
}
|
|
263
|
-
}), r =
|
|
263
|
+
}), r = N({
|
|
264
264
|
get() {
|
|
265
265
|
return g.value;
|
|
266
266
|
},
|
|
@@ -269,12 +269,12 @@ function Vt(e, t = {}) {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
function T(p, z) {
|
|
272
|
-
var
|
|
272
|
+
var Y, D, w;
|
|
273
273
|
if (!d)
|
|
274
274
|
return;
|
|
275
275
|
const A = J(e);
|
|
276
|
-
!A || (
|
|
277
|
-
top: (
|
|
276
|
+
!A || (w = A instanceof Document ? d.document.body : A) == null || w.scrollTo({
|
|
277
|
+
top: (Y = J(z)) != null ? Y : r.value,
|
|
278
278
|
left: (D = J(p)) != null ? D : M.value,
|
|
279
279
|
behavior: J(u)
|
|
280
280
|
});
|
|
@@ -291,26 +291,26 @@ 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, n + o),
|
|
294
|
+
}, W = ze(x, n + o), F = (p) => {
|
|
295
295
|
var z;
|
|
296
296
|
if (!d)
|
|
297
297
|
return;
|
|
298
|
-
const
|
|
298
|
+
const Y = ((z = p?.document) == null ? void 0 : z.documentElement) || p?.documentElement || se(p), { display: D, flexDirection: w } = getComputedStyle(Y), A = Y.scrollLeft;
|
|
299
299
|
y.left = A < i.value, y.right = A > i.value;
|
|
300
|
-
const k = Math.abs(A) <= (a.left || 0),
|
|
301
|
-
D === "flex" &&
|
|
302
|
-
let C =
|
|
300
|
+
const k = Math.abs(A) <= (a.left || 0), B = Math.abs(A) + Y.clientWidth >= Y.scrollWidth - (a.right || 0) - ot;
|
|
301
|
+
D === "flex" && w === "row-reverse" ? (c.left = B, c.right = k) : (c.left = k, c.right = B), i.value = A;
|
|
302
|
+
let C = Y.scrollTop;
|
|
303
303
|
p === d.document && !C && (C = d.document.body.scrollTop), y.top = C < g.value, y.bottom = C > g.value;
|
|
304
|
-
const L = Math.abs(C) <= (a.top || 0), I = Math.abs(C) +
|
|
305
|
-
D === "flex" &&
|
|
304
|
+
const L = Math.abs(C) <= (a.top || 0), I = Math.abs(C) + Y.clientHeight >= Y.scrollHeight - (a.bottom || 0) - ot;
|
|
305
|
+
D === "flex" && w === "column-reverse" ? (c.top = I, c.bottom = L) : (c.top = L, c.bottom = I), g.value = C;
|
|
306
306
|
}, O = (p) => {
|
|
307
307
|
var z;
|
|
308
308
|
if (!d)
|
|
309
309
|
return;
|
|
310
|
-
const
|
|
311
|
-
|
|
310
|
+
const Y = (z = p.target.documentElement) != null ? z : p.target;
|
|
311
|
+
F(Y), h.value = !0, W(p), s(p);
|
|
312
312
|
};
|
|
313
|
-
return
|
|
313
|
+
return we(
|
|
314
314
|
e,
|
|
315
315
|
"scroll",
|
|
316
316
|
n ? ke(O, n, !0, !1) : O,
|
|
@@ -320,11 +320,11 @@ function Vt(e, t = {}) {
|
|
|
320
320
|
const p = J(e);
|
|
321
321
|
if (!p)
|
|
322
322
|
return;
|
|
323
|
-
|
|
323
|
+
F(p);
|
|
324
324
|
} catch (p) {
|
|
325
325
|
v(p);
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), we(
|
|
328
328
|
e,
|
|
329
329
|
"scrollend",
|
|
330
330
|
x,
|
|
@@ -337,14 +337,14 @@ function Vt(e, t = {}) {
|
|
|
337
337
|
directions: y,
|
|
338
338
|
measure() {
|
|
339
339
|
const p = J(e);
|
|
340
|
-
d && p &&
|
|
340
|
+
d && p && F(p);
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
let Kt = 0;
|
|
345
|
-
function
|
|
345
|
+
function He(e, t = {}) {
|
|
346
346
|
const n = m(!1), {
|
|
347
|
-
document: o =
|
|
347
|
+
document: o = Ht,
|
|
348
348
|
immediate: l = !0,
|
|
349
349
|
manual: s = !1,
|
|
350
350
|
id: a = `vueuse_styletag_${++Kt}`
|
|
@@ -373,15 +373,23 @@ function Fe(e, t = {}) {
|
|
|
373
373
|
isLoaded: rt(n)
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function Gt(e, t) {
|
|
377
|
-
const
|
|
376
|
+
function Gt(e, t, n) {
|
|
377
|
+
const o = e.style[t];
|
|
378
|
+
return o != n && (e.style[t] = n), {
|
|
379
|
+
reset() {
|
|
380
|
+
o != n && (e.style[t] = o);
|
|
381
|
+
}
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
function qt(e, t) {
|
|
385
|
+
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = Zt(s), f = m(!0), u = ze(F, 100);
|
|
378
386
|
let d;
|
|
379
387
|
const v = ut(e), i = m(0), g = m({ start: 0, end: 10 }), M = m({ start: 0, end: l });
|
|
380
388
|
let r = 0;
|
|
381
|
-
const T = m([]), h =
|
|
389
|
+
const T = m([]), h = N(() => {
|
|
382
390
|
let { sum: L, height: I } = { sum: 0, height: 0 };
|
|
383
|
-
return v.value.map((
|
|
384
|
-
}), c =
|
|
391
|
+
return v.value.map((Q, U) => (typeof o == "number" ? I = o : I = o(U), L += I, { height: I, sum: L }));
|
|
392
|
+
}), c = N(() => D(g.value.start)), y = N(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = N(() => {
|
|
385
393
|
const { start: L, end: I } = M.value;
|
|
386
394
|
return T.value.slice(L, I);
|
|
387
395
|
});
|
|
@@ -404,7 +412,7 @@ function Gt(e, t) {
|
|
|
404
412
|
function W() {
|
|
405
413
|
f.value = !1;
|
|
406
414
|
}
|
|
407
|
-
function
|
|
415
|
+
function F() {
|
|
408
416
|
f.value = !0, n?.();
|
|
409
417
|
}
|
|
410
418
|
function O() {
|
|
@@ -414,28 +422,28 @@ function Gt(e, t) {
|
|
|
414
422
|
if (s.value) {
|
|
415
423
|
i.value = s.value.scrollTop;
|
|
416
424
|
let L = z(i.value);
|
|
417
|
-
r =
|
|
418
|
-
let I = Math.max(0, L - l),
|
|
425
|
+
r = Y(L);
|
|
426
|
+
let I = Math.max(0, L - l), Q = Math.min(
|
|
419
427
|
L + r + l,
|
|
420
428
|
v.value.length
|
|
421
429
|
);
|
|
422
|
-
g.value = { start: I, end:
|
|
423
|
-
data:
|
|
424
|
-
index:
|
|
430
|
+
g.value = { start: I, end: Q }, T.value = v.value.slice(I, Q).map((U, R) => ({
|
|
431
|
+
data: U,
|
|
432
|
+
index: R + I
|
|
425
433
|
})), M.value.start = L - I, M.value.end = M.value.start + r;
|
|
426
434
|
}
|
|
427
435
|
}
|
|
428
436
|
function z(L) {
|
|
429
|
-
let I = 0,
|
|
430
|
-
for (; I <=
|
|
431
|
-
const
|
|
432
|
-
h.value[
|
|
437
|
+
let I = 0, Q = h.value.length - 1, U = -1;
|
|
438
|
+
for (; I <= Q; ) {
|
|
439
|
+
const R = Math.floor((I + Q) / 2);
|
|
440
|
+
h.value[R].sum >= L ? (U = R, Q = R - 1) : I = R + 1;
|
|
433
441
|
}
|
|
434
|
-
return Math.max(0,
|
|
442
|
+
return Math.max(0, U);
|
|
435
443
|
}
|
|
436
|
-
function
|
|
437
|
-
let I = 0,
|
|
438
|
-
for (let
|
|
444
|
+
function Y(L) {
|
|
445
|
+
let I = 0, Q = 0;
|
|
446
|
+
for (let U = L; U < h.value.length && (I++, Q += h.value[U].height, !(Q >= a.height.value)); U++)
|
|
439
447
|
;
|
|
440
448
|
return I;
|
|
441
449
|
}
|
|
@@ -445,22 +453,30 @@ function Gt(e, t) {
|
|
|
445
453
|
let I = h.value[L];
|
|
446
454
|
return I ? I.sum - I.height : 0;
|
|
447
455
|
}
|
|
448
|
-
function
|
|
456
|
+
function w(L) {
|
|
449
457
|
return h.value[L] || { sum: 0, height: 0 };
|
|
450
458
|
}
|
|
451
|
-
function A(L) {
|
|
459
|
+
function A(L, I = "smooth") {
|
|
460
|
+
if (s.value) {
|
|
461
|
+
const { reset: Q } = Gt(
|
|
462
|
+
s.value,
|
|
463
|
+
"scrollBehavior",
|
|
464
|
+
I
|
|
465
|
+
), U = w(L);
|
|
466
|
+
s.value.scrollTop = U.sum - U.height, p(), Q();
|
|
467
|
+
}
|
|
452
468
|
if (s.value) {
|
|
453
|
-
const
|
|
454
|
-
s.value.scrollTop =
|
|
469
|
+
const Q = w(L);
|
|
470
|
+
s.value.scrollTop = Q.sum - Q.height, p();
|
|
455
471
|
}
|
|
456
472
|
}
|
|
457
|
-
const k =
|
|
473
|
+
const k = N(() => ({
|
|
458
474
|
style: {
|
|
459
475
|
width: "100%",
|
|
460
476
|
height: `${y.value}px`,
|
|
461
477
|
pointerEvents: f.value ? void 0 : "none"
|
|
462
478
|
}
|
|
463
|
-
})),
|
|
479
|
+
})), B = N(() => ({
|
|
464
480
|
style: {
|
|
465
481
|
transform: `translate3d(0, ${c.value}px, 0)`,
|
|
466
482
|
"will-change": "transform"
|
|
@@ -471,7 +487,7 @@ function Gt(e, t) {
|
|
|
471
487
|
return {
|
|
472
488
|
list: T,
|
|
473
489
|
visiableList: x,
|
|
474
|
-
getItemHeightData:
|
|
490
|
+
getItemHeightData: w,
|
|
475
491
|
getoffsetTopIndex: z,
|
|
476
492
|
totalHeight: y,
|
|
477
493
|
clientHeight: a.height,
|
|
@@ -486,19 +502,19 @@ function Gt(e, t) {
|
|
|
486
502
|
style: C
|
|
487
503
|
},
|
|
488
504
|
wrapperProps: k,
|
|
489
|
-
innerProps:
|
|
505
|
+
innerProps: B
|
|
490
506
|
};
|
|
491
507
|
}
|
|
492
|
-
const
|
|
508
|
+
const Fe = Symbol(), We = Symbol(), Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), ye = Symbol(), Je = Symbol();
|
|
493
509
|
function No() {
|
|
494
510
|
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
495
511
|
voidFn: (T) => {
|
|
496
512
|
},
|
|
497
513
|
boolFn: (T) => !1,
|
|
498
|
-
boolRef:
|
|
499
|
-
numberRef:
|
|
500
|
-
arrayRef:
|
|
501
|
-
}, s = te(Ze, l), a = te(Xe, t), f = te(qe, n), u = te(We, e), d = te(
|
|
514
|
+
boolRef: N(() => !1),
|
|
515
|
+
numberRef: N(() => 0),
|
|
516
|
+
arrayRef: N(() => [])
|
|
517
|
+
}, s = te(Ze, l), a = te(Xe, t), f = te(qe, n), u = te(We, e), d = te(Fe, e), v = te(Ve, e), i = te(Ke, e), g = te(Ge, e), M = te(ye, e), r = te(Je, o);
|
|
502
518
|
return {
|
|
503
519
|
selected: s,
|
|
504
520
|
isSelected: a,
|
|
@@ -512,7 +528,7 @@ function No() {
|
|
|
512
528
|
selectedCount: r
|
|
513
529
|
};
|
|
514
530
|
}
|
|
515
|
-
function
|
|
531
|
+
function Io(e, t, n = { deep: !0 }) {
|
|
516
532
|
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
|
|
517
533
|
G(
|
|
518
534
|
e,
|
|
@@ -524,7 +540,7 @@ function wo(e, t, n = { deep: !0 }) {
|
|
|
524
540
|
immediate: !0
|
|
525
541
|
}
|
|
526
542
|
);
|
|
527
|
-
const a =
|
|
543
|
+
const a = N(() => {
|
|
528
544
|
let c = [];
|
|
529
545
|
if (o.value != null)
|
|
530
546
|
o.value && (c = Array.from(s.value.values()));
|
|
@@ -535,10 +551,10 @@ function wo(e, t, n = { deep: !0 }) {
|
|
|
535
551
|
});
|
|
536
552
|
}
|
|
537
553
|
return c;
|
|
538
|
-
}), f =
|
|
554
|
+
}), f = N(() => {
|
|
539
555
|
let c = 0;
|
|
540
556
|
return o.value != null ? o.value && (c = s.value.size) : c = l.value.size, c;
|
|
541
|
-
}), u =
|
|
557
|
+
}), u = N(() => {
|
|
542
558
|
let c;
|
|
543
559
|
if (o.value != null)
|
|
544
560
|
c = o.value;
|
|
@@ -585,7 +601,7 @@ function wo(e, t, n = { deep: !0 }) {
|
|
|
585
601
|
const { value: c } = u;
|
|
586
602
|
c ? v() : d();
|
|
587
603
|
}
|
|
588
|
-
return
|
|
604
|
+
return H(Fe, h), H(We, T), H(Xe, M), H(Ze, a), H(Ve, i), H(Ke, d), H(Ge, g), H(qe, u), H(ye, v), H(ye, v), H(Je, f), {
|
|
589
605
|
selected: a,
|
|
590
606
|
select: i,
|
|
591
607
|
selectAll: d,
|
|
@@ -598,14 +614,14 @@ function wo(e, t, n = { deep: !0 }) {
|
|
|
598
614
|
selectedCount: f
|
|
599
615
|
};
|
|
600
616
|
}
|
|
601
|
-
function
|
|
602
|
-
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o =
|
|
617
|
+
function Eo(e) {
|
|
618
|
+
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = N(() => {
|
|
603
619
|
let r = [];
|
|
604
620
|
return t.value != null ? t.value && (r = e.value) : n.value.size && (r = Array.from(n.value.values())), r;
|
|
605
|
-
}), l =
|
|
621
|
+
}), l = N(() => {
|
|
606
622
|
let r = 0;
|
|
607
623
|
return t.value != null ? t.value && (r = e.value.length) : r = n.value.size, r;
|
|
608
|
-
}), s =
|
|
624
|
+
}), s = N(() => {
|
|
609
625
|
let r;
|
|
610
626
|
if (t.value != null)
|
|
611
627
|
r = t.value;
|
|
@@ -652,7 +668,7 @@ function Io(e) {
|
|
|
652
668
|
const { value: r } = s;
|
|
653
669
|
r ? f() : a();
|
|
654
670
|
}
|
|
655
|
-
return
|
|
671
|
+
return H(Fe, M), H(We, g), H(Xe, v), H(Ze, o), H(Ve, u), H(Ke, a), H(Ge, d), H(qe, s), H(ye, f), H(ye, f), H(Je, l), {
|
|
656
672
|
selected: o,
|
|
657
673
|
select: u,
|
|
658
674
|
selectAll: a,
|
|
@@ -682,8 +698,8 @@ function mt({
|
|
|
682
698
|
unselectAll: a = xe("\u53D6\u6D88\u5168\u9009")
|
|
683
699
|
} = o();
|
|
684
700
|
let f = {};
|
|
685
|
-
const u =
|
|
686
|
-
() => ke(t === "colum" ? ce :
|
|
701
|
+
const u = N(
|
|
702
|
+
() => ke(t === "colum" ? ce : wt, 50)
|
|
687
703
|
), d = /* @__PURE__ */ new Set(), v = m(!0), i = m(), g = m(!1), M = m({ x: 0, y: 0 }), r = m({ x: 0, y: 0, scrollTop: 0 }), T = new ResizeObserver(
|
|
688
704
|
(j) => h.value = j[0].target.getBoundingClientRect()
|
|
689
705
|
), h = m({}), c = m({
|
|
@@ -692,25 +708,25 @@ function mt({
|
|
|
692
708
|
sync(j = !1) {
|
|
693
709
|
c.value.top = i.value?.scrollTop || 0, j && (c.value.height = i.value?.scrollHeight || 0);
|
|
694
710
|
}
|
|
695
|
-
}), y =
|
|
711
|
+
}), y = N(() => g.value ? {
|
|
696
712
|
left: Math.min(M.value.x, r.value.x) - h.value.left,
|
|
697
713
|
top: Math.min(M.value.y, r.value.y) - h.value.top,
|
|
698
714
|
width: Math.abs(M.value.x - r.value.x),
|
|
699
715
|
height: Math.abs(M.value.y - r.value.y)
|
|
700
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed:
|
|
716
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: F = 30 } = n;
|
|
701
717
|
let O;
|
|
702
|
-
const p = x, z = W,
|
|
703
|
-
let
|
|
718
|
+
const p = x, z = W, Y = F, D = (j) => j ** 1;
|
|
719
|
+
let w = 0;
|
|
704
720
|
function A(j) {
|
|
705
|
-
if (cancelAnimationFrame(O),
|
|
706
|
-
Math.min(
|
|
707
|
-
-
|
|
708
|
-
),
|
|
721
|
+
if (cancelAnimationFrame(O), w = k(j), w = Math.max(
|
|
722
|
+
Math.min(w, Y),
|
|
723
|
+
-Y
|
|
724
|
+
), w !== 0) {
|
|
709
725
|
const S = i.value;
|
|
710
726
|
if (!S || !g.value)
|
|
711
727
|
return;
|
|
712
728
|
const Z = c.value.height - h.value.height;
|
|
713
|
-
let X = c.value.top + Number(
|
|
729
|
+
let X = c.value.top + Number(w);
|
|
714
730
|
X = Math.min(Math.max(0, X), Z), S.scrollTop = X, C(), O = requestAnimationFrame(() => A(j));
|
|
715
731
|
}
|
|
716
732
|
}
|
|
@@ -725,7 +741,7 @@ function mt({
|
|
|
725
741
|
}
|
|
726
742
|
return 0;
|
|
727
743
|
}
|
|
728
|
-
function
|
|
744
|
+
function B(j) {
|
|
729
745
|
const S = { ...y.value, right: 0, bottom: 0 };
|
|
730
746
|
return S.left += h.value.left, S.top += h.value.top - c.value.top, S.right = S.width + S.left, S.bottom = S.height + S.top, S.left < j.right && S.right > j.left && S.top < j.bottom && S.bottom > j.top;
|
|
731
747
|
}
|
|
@@ -753,17 +769,17 @@ function mt({
|
|
|
753
769
|
const Z = S + c.value.top;
|
|
754
770
|
M.value.x = j, M.value.y = Z, r.value.x = j, r.value.y = Z, i.value?.classList.add("disable-scroll-behavior"), d.clear();
|
|
755
771
|
}
|
|
756
|
-
function
|
|
772
|
+
function Q(j, S, Z) {
|
|
757
773
|
!g.value || (v.value && t === "colum" && !P() && (a(), v.value = !1), Z?.(), A(S), r.value.x = Math.max(j, h.value.left), r.value.y = Math.min(
|
|
758
774
|
S + c.value.top,
|
|
759
775
|
c.value.height + h.value.top
|
|
760
776
|
), r.value.scrollTop = c.value.top, u.value());
|
|
761
777
|
}
|
|
762
|
-
function
|
|
778
|
+
function U() {
|
|
763
779
|
g.value = !1, i.value?.classList.remove("disable-scroll-behavior");
|
|
764
780
|
}
|
|
765
|
-
function
|
|
766
|
-
!g.value || (
|
|
781
|
+
function R() {
|
|
782
|
+
!g.value || (w || C(), u.value());
|
|
767
783
|
}
|
|
768
784
|
function P() {
|
|
769
785
|
if (!g.value)
|
|
@@ -776,28 +792,28 @@ function mt({
|
|
|
776
792
|
}
|
|
777
793
|
function ce() {
|
|
778
794
|
P() || i.value?.querySelectorAll(`[${e}]`).forEach((j) => {
|
|
779
|
-
f[`${e}`] = j.getAttribute(`${e}`),
|
|
795
|
+
f[`${e}`] = j.getAttribute(`${e}`), B(j.getBoundingClientRect()) ? l([f]) : s([f]);
|
|
780
796
|
});
|
|
781
797
|
}
|
|
782
|
-
function
|
|
798
|
+
function wt() {
|
|
783
799
|
const j = [];
|
|
784
800
|
let S = null, Z = 0;
|
|
785
801
|
i.value?.querySelectorAll(`[${e}]`).forEach((X, ne) => {
|
|
786
802
|
const de = X.getAttribute(`${e}`);
|
|
787
|
-
j.push(de),
|
|
803
|
+
j.push(de), B(X.getBoundingClientRect()) ? (S === null && (S = ne), S = Math.min(S, ne), Z = Math.max(Z, ne)) : (f[`${e}`] = de, d.has(de) && s([f]));
|
|
788
804
|
});
|
|
789
805
|
for (let X = S; X < Z + 1; X++)
|
|
790
806
|
f[`${e}`] = j[X], l([f]), d.add(j[X]);
|
|
791
807
|
}
|
|
792
|
-
function
|
|
808
|
+
function Nt(j) {
|
|
793
809
|
return !j?.value || (i.value = j.value, !i?.value) ? !1 : (T.observe(i.value), L(".disable-scroll-behavior", "scroll-behavior: unset !important;"), !0);
|
|
794
810
|
}
|
|
795
811
|
return {
|
|
796
|
-
init:
|
|
812
|
+
init: Nt,
|
|
797
813
|
dragStart: I,
|
|
798
|
-
dragMove:
|
|
799
|
-
dragEnd:
|
|
800
|
-
onScroll:
|
|
814
|
+
dragMove: Q,
|
|
815
|
+
dragEnd: U,
|
|
816
|
+
onScroll: R,
|
|
801
817
|
isSingleClick: P,
|
|
802
818
|
cancelSelectAllBySingleClick: V,
|
|
803
819
|
selectFn: u,
|
|
@@ -807,19 +823,19 @@ function mt({
|
|
|
807
823
|
observer: T
|
|
808
824
|
};
|
|
809
825
|
}
|
|
810
|
-
function
|
|
826
|
+
function Ao(e) {
|
|
811
827
|
const t = mt(e), { observer: n, selectRange: o } = t, {
|
|
812
828
|
onScroll: l,
|
|
813
829
|
dragStart: s,
|
|
814
830
|
dragMove: a,
|
|
815
831
|
dragEnd: f,
|
|
816
832
|
cancelSelectAllBySingleClick: u
|
|
817
|
-
} = t, d =
|
|
833
|
+
} = t, d = N(() => ({
|
|
818
834
|
left: `${o.value.left}px`,
|
|
819
835
|
top: `${o.value.top}px`,
|
|
820
836
|
width: `${o.value.width}px`,
|
|
821
837
|
height: `${o.value.height}px`
|
|
822
|
-
})), { load: v } =
|
|
838
|
+
})), { load: v } = He(
|
|
823
839
|
`.drag-select-box {
|
|
824
840
|
position: absolute;
|
|
825
841
|
z-index: 99999;
|
|
@@ -861,7 +877,7 @@ function Eo(e) {
|
|
|
861
877
|
}
|
|
862
878
|
return { init: T, unMount: h };
|
|
863
879
|
}
|
|
864
|
-
function
|
|
880
|
+
function zo(e, t, n = 600) {
|
|
865
881
|
const o = mt({
|
|
866
882
|
...e,
|
|
867
883
|
selectWay: "row",
|
|
@@ -904,7 +920,7 @@ function Ao(e, t, n = 600) {
|
|
|
904
920
|
}
|
|
905
921
|
return { init: r, unMount: T };
|
|
906
922
|
}
|
|
907
|
-
const
|
|
923
|
+
const Jt = Symbol(), en = /* @__PURE__ */ q({
|
|
908
924
|
__name: "Dialog",
|
|
909
925
|
props: {
|
|
910
926
|
visiable: { type: Boolean, default: !1 },
|
|
@@ -918,9 +934,9 @@ const qt = Symbol(), Jt = /* @__PURE__ */ q({
|
|
|
918
934
|
const n = e, o = () => {
|
|
919
935
|
n.closeOnClickOverlay && t("update:visiable", !1);
|
|
920
936
|
};
|
|
921
|
-
return
|
|
937
|
+
return H(Jt, () => t("update:visiable", !1)), (l, s) => (b(), Ie(Ye, { name: "modal" }, {
|
|
922
938
|
default: Be(() => [
|
|
923
|
-
e.visiable ? ve((b(),
|
|
939
|
+
e.visiable ? ve((b(), $("div", {
|
|
924
940
|
key: 0,
|
|
925
941
|
class: oe([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
926
942
|
}, [
|
|
@@ -944,13 +960,13 @@ const ee = (e, t) => {
|
|
|
944
960
|
for (const [o, l] of t)
|
|
945
961
|
n[o] = l;
|
|
946
962
|
return n;
|
|
947
|
-
},
|
|
948
|
-
function
|
|
963
|
+
}, tn = /* @__PURE__ */ ee(en, [["__scopeId", "data-v-783a5618"]]);
|
|
964
|
+
function Lo(e) {
|
|
949
965
|
function t(n, o) {
|
|
950
966
|
const l = document.createElement("div"), s = {
|
|
951
967
|
setup() {
|
|
952
968
|
return () => ae(
|
|
953
|
-
|
|
969
|
+
tn,
|
|
954
970
|
{
|
|
955
971
|
visiable: !0,
|
|
956
972
|
"onUpdate:visiable": () => {
|
|
@@ -978,7 +994,7 @@ function yt({
|
|
|
978
994
|
delay: n = 300
|
|
979
995
|
}) {
|
|
980
996
|
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
|
|
981
|
-
return
|
|
997
|
+
return He(
|
|
982
998
|
`@keyframes lzcDelayLoad {
|
|
983
999
|
to {
|
|
984
1000
|
opacity: 1;
|
|
@@ -997,7 +1013,7 @@ function yt({
|
|
|
997
1013
|
}
|
|
998
1014
|
}) };
|
|
999
1015
|
}
|
|
1000
|
-
function
|
|
1016
|
+
function jo({
|
|
1001
1017
|
component: e,
|
|
1002
1018
|
componentProps: t,
|
|
1003
1019
|
delay: n = 300
|
|
@@ -1015,11 +1031,11 @@ function Lo({
|
|
|
1015
1031
|
}
|
|
1016
1032
|
return { LoadingComp: o, loading: l, load: s, unload: a };
|
|
1017
1033
|
}
|
|
1018
|
-
const
|
|
1034
|
+
const nn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), on = /* @__PURE__ */ nn(() => /* @__PURE__ */ _("div", { class: "ldio-mm5gwljcryb" }, [
|
|
1019
1035
|
/* @__PURE__ */ _("div")
|
|
1020
|
-
], -1)),
|
|
1021
|
-
|
|
1022
|
-
],
|
|
1036
|
+
], -1)), ln = [
|
|
1037
|
+
on
|
|
1038
|
+
], sn = /* @__PURE__ */ q({
|
|
1023
1039
|
__name: "DefaultLoading",
|
|
1024
1040
|
props: {
|
|
1025
1041
|
width: { default: 24 },
|
|
@@ -1029,10 +1045,10 @@ const tn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), nn = /* @__PURE__ *
|
|
|
1029
1045
|
return Ue((t) => ({
|
|
1030
1046
|
"4e4a9ce4": e.width + "px",
|
|
1031
1047
|
e56fe5c2: e.height + "px"
|
|
1032
|
-
})), (t, n) => (b(),
|
|
1048
|
+
})), (t, n) => (b(), $("div", Oe(_e(t.$attrs)), ln, 16));
|
|
1033
1049
|
}
|
|
1034
1050
|
});
|
|
1035
|
-
const
|
|
1051
|
+
const an = /* @__PURE__ */ ee(sn, [["__scopeId", "data-v-92a1804d"]]), un = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsS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V7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", rn = { class: "loading-wrap" }, cn = ["src"], dn = /* @__PURE__ */ q({
|
|
1036
1052
|
__name: "PageLoading",
|
|
1037
1053
|
props: {
|
|
1038
1054
|
delay: { default: "0.15s" },
|
|
@@ -1043,24 +1059,24 @@ const sn = /* @__PURE__ */ ee(ln, [["__scopeId", "data-v-92a1804d"]]), an = "dat
|
|
|
1043
1059
|
Ue((o) => ({
|
|
1044
1060
|
b1cf73a8: e.delay
|
|
1045
1061
|
}));
|
|
1046
|
-
const n =
|
|
1062
|
+
const n = N(() => {
|
|
1047
1063
|
const o = {};
|
|
1048
1064
|
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1049
1065
|
});
|
|
1050
|
-
return (o, l) => (b(),
|
|
1066
|
+
return (o, l) => (b(), $("div", rn, [
|
|
1051
1067
|
_("img", {
|
|
1052
1068
|
class: "loading-circle",
|
|
1053
|
-
src: E(
|
|
1069
|
+
src: E(un),
|
|
1054
1070
|
style: K(E(n))
|
|
1055
|
-
}, null, 12,
|
|
1071
|
+
}, null, 12, cn)
|
|
1056
1072
|
]));
|
|
1057
1073
|
}
|
|
1058
1074
|
});
|
|
1059
|
-
const
|
|
1075
|
+
const xo = /* @__PURE__ */ ee(dn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1060
1076
|
async function et(e) {
|
|
1061
1077
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1062
1078
|
}
|
|
1063
|
-
const
|
|
1079
|
+
const fn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBma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@@ -1079,10 +1095,10 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1079
1095
|
},
|
|
1080
1096
|
emits: ["close"],
|
|
1081
1097
|
setup(e, { emit: t }) {
|
|
1082
|
-
const n = e, o = "lzc-loading-toast", l =
|
|
1098
|
+
const n = e, o = "lzc-loading-toast", l = N(() => {
|
|
1083
1099
|
let d = {};
|
|
1084
1100
|
return n.captureEventP && (d.pointerEvents = "none"), d;
|
|
1085
|
-
}), s =
|
|
1101
|
+
}), s = N(() => {
|
|
1086
1102
|
let d = {
|
|
1087
1103
|
padding: "12px"
|
|
1088
1104
|
};
|
|
@@ -1090,7 +1106,7 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1090
1106
|
...d,
|
|
1091
1107
|
...n.overlayContentStyle
|
|
1092
1108
|
}), d;
|
|
1093
|
-
}), a =
|
|
1109
|
+
}), a = N(() => {
|
|
1094
1110
|
let d = {};
|
|
1095
1111
|
return n.showClose && !n.icon && (d.paddingRight = "16px"), d;
|
|
1096
1112
|
});
|
|
@@ -1121,25 +1137,25 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1121
1137
|
class: oe(`${o}-content`),
|
|
1122
1138
|
style: K(E(s))
|
|
1123
1139
|
}, [
|
|
1124
|
-
e.showClose ? (b(),
|
|
1140
|
+
e.showClose ? (b(), $("img", {
|
|
1125
1141
|
key: 0,
|
|
1126
1142
|
onClick: v[0] || (v[0] = he((i) => t("close"), ["stop"])),
|
|
1127
|
-
src: E(
|
|
1143
|
+
src: E(fn),
|
|
1128
1144
|
class: oe(`${o}-close`)
|
|
1129
|
-
}, null, 10,
|
|
1130
|
-
e.showIcon ? (b(),
|
|
1145
|
+
}, null, 10, hn)) : ue("", !0),
|
|
1146
|
+
e.showIcon ? (b(), $("img", {
|
|
1131
1147
|
key: 1,
|
|
1132
|
-
src: e.icon || E(
|
|
1148
|
+
src: e.icon || E(vn),
|
|
1133
1149
|
class: oe(`${o}-icon`)
|
|
1134
|
-
}, null, 10,
|
|
1135
|
-
e.message ? (b(),
|
|
1150
|
+
}, null, 10, mn)) : ue("", !0),
|
|
1151
|
+
e.message ? (b(), $("div", {
|
|
1136
1152
|
key: 2,
|
|
1137
1153
|
class: oe(`${o}-message`),
|
|
1138
1154
|
style: K(E(a))
|
|
1139
1155
|
}, Re(e.message), 7)) : ue("", !0)
|
|
1140
1156
|
], 6)
|
|
1141
|
-
], 10,
|
|
1142
|
-
], 10,
|
|
1157
|
+
], 10, gn)
|
|
1158
|
+
], 10, Mn), [
|
|
1143
1159
|
[Ae, e.visible]
|
|
1144
1160
|
])
|
|
1145
1161
|
], 4)
|
|
@@ -1148,15 +1164,15 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1148
1164
|
}));
|
|
1149
1165
|
}
|
|
1150
1166
|
});
|
|
1151
|
-
const
|
|
1152
|
-
class
|
|
1167
|
+
const pn = /* @__PURE__ */ ee(yn, [["__scopeId", "data-v-0947d1e3"]]);
|
|
1168
|
+
class Dn {
|
|
1153
1169
|
loadingToast;
|
|
1154
1170
|
el;
|
|
1155
1171
|
options;
|
|
1156
1172
|
visible = m(!1);
|
|
1157
1173
|
animateDuration = 300;
|
|
1158
1174
|
constructor(t) {
|
|
1159
|
-
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast =
|
|
1175
|
+
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = pn;
|
|
1160
1176
|
}
|
|
1161
1177
|
async show() {
|
|
1162
1178
|
const t = this.options, o = { ...t, onClose: () => {
|
|
@@ -1181,7 +1197,7 @@ class pn {
|
|
|
1181
1197
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1182
1198
|
}
|
|
1183
1199
|
}
|
|
1184
|
-
function
|
|
1200
|
+
function Co(e, t) {
|
|
1185
1201
|
const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay !== void 0 ? t.delay : 300, f = t?.hook !== void 0 ? t.hook : !0, u = {
|
|
1186
1202
|
...t,
|
|
1187
1203
|
showIcon: t?.showIcon !== !1,
|
|
@@ -1196,7 +1212,7 @@ function xo(e, t) {
|
|
|
1196
1212
|
);
|
|
1197
1213
|
const d = m(!1);
|
|
1198
1214
|
let v = null;
|
|
1199
|
-
const i = new
|
|
1215
|
+
const i = new Dn(u);
|
|
1200
1216
|
async function g(...r) {
|
|
1201
1217
|
if (n && console.log(`useDelayAsync - handler - processing: ${d.value}`), !d.value) {
|
|
1202
1218
|
d.value = !0, v = setTimeout(() => {
|
|
@@ -1226,10 +1242,10 @@ function xo(e, t) {
|
|
|
1226
1242
|
close: M
|
|
1227
1243
|
};
|
|
1228
1244
|
}
|
|
1229
|
-
function
|
|
1245
|
+
function Tn(e, t) {
|
|
1230
1246
|
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
1231
1247
|
}
|
|
1232
|
-
function
|
|
1248
|
+
function wn() {
|
|
1233
1249
|
const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), f = () => a.value === "vertical", u = () => a.value === "horizontal", d = () => {
|
|
1234
1250
|
n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
|
|
1235
1251
|
};
|
|
@@ -1239,7 +1255,7 @@ function Tn() {
|
|
|
1239
1255
|
function i(g, M) {
|
|
1240
1256
|
n.value = (g < 0 ? 0 : g) - e.value, o.value = M - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
|
|
1241
1257
|
const r = 10;
|
|
1242
|
-
(!a.value || l.value < r && s.value < r) && (a.value =
|
|
1258
|
+
(!a.value || l.value < r && s.value < r) && (a.value = Tn(l.value, s.value));
|
|
1243
1259
|
}
|
|
1244
1260
|
return {
|
|
1245
1261
|
move: i,
|
|
@@ -1257,7 +1273,7 @@ function Tn() {
|
|
|
1257
1273
|
};
|
|
1258
1274
|
}
|
|
1259
1275
|
const lt = 250, st = 5, Nn = 500;
|
|
1260
|
-
function
|
|
1276
|
+
function In(e) {
|
|
1261
1277
|
const { isDouble: t = !0 } = e;
|
|
1262
1278
|
let n, o;
|
|
1263
1279
|
function l() {
|
|
@@ -1271,7 +1287,7 @@ function wn(e) {
|
|
|
1271
1287
|
}
|
|
1272
1288
|
return { startTap: l, checkTap: s };
|
|
1273
1289
|
}
|
|
1274
|
-
function
|
|
1290
|
+
function En(e, t) {
|
|
1275
1291
|
const n = m(!1);
|
|
1276
1292
|
function o() {
|
|
1277
1293
|
n.value || (n.value = !0, E(e)?.addEventListener("transitionend", l));
|
|
@@ -1281,7 +1297,7 @@ function In(e, t) {
|
|
|
1281
1297
|
}
|
|
1282
1298
|
return { transitioning: n, startTransition: o };
|
|
1283
1299
|
}
|
|
1284
|
-
function
|
|
1300
|
+
function An(e, t, n, o) {
|
|
1285
1301
|
var l = Math.min(
|
|
1286
1302
|
n / e,
|
|
1287
1303
|
o / t
|
|
@@ -1291,7 +1307,7 @@ function En(e, t, n, o) {
|
|
|
1291
1307
|
height: le(a)
|
|
1292
1308
|
};
|
|
1293
1309
|
}
|
|
1294
|
-
function
|
|
1310
|
+
function zn(e) {
|
|
1295
1311
|
return e < 3 ? "444ms" : e < 6 ? "555ms" : "666ms";
|
|
1296
1312
|
}
|
|
1297
1313
|
function Ce(e, t, n) {
|
|
@@ -1308,7 +1324,7 @@ function at(e) {
|
|
|
1308
1324
|
(e[0].clientX - e[1].clientX) ** 2 + (e[0].clientY - e[1].clientY) ** 2
|
|
1309
1325
|
);
|
|
1310
1326
|
}
|
|
1311
|
-
function
|
|
1327
|
+
function Ln(e) {
|
|
1312
1328
|
return {
|
|
1313
1329
|
x: (e[0].clientX + e[1].clientX) / 2,
|
|
1314
1330
|
y: (e[0].clientY + e[1].clientY) / 2
|
|
@@ -1322,11 +1338,11 @@ function pt(e) {
|
|
|
1322
1338
|
zooming: !1,
|
|
1323
1339
|
preview: !0,
|
|
1324
1340
|
lastCenter: { x: 0, y: 0 }
|
|
1325
|
-
}), d = m({}), v =
|
|
1341
|
+
}), d = m({}), v = wn(), i = En(s, {
|
|
1326
1342
|
onComplate() {
|
|
1327
1343
|
u.preview || h();
|
|
1328
1344
|
}
|
|
1329
|
-
}), g =
|
|
1345
|
+
}), g = In({
|
|
1330
1346
|
onTap() {
|
|
1331
1347
|
e.onTap?.();
|
|
1332
1348
|
},
|
|
@@ -1339,112 +1355,112 @@ function pt(e) {
|
|
|
1339
1355
|
});
|
|
1340
1356
|
ht(s, (D) => M(D)), G(
|
|
1341
1357
|
[l, s],
|
|
1342
|
-
([D,
|
|
1343
|
-
r(D,
|
|
1358
|
+
([D, w]) => {
|
|
1359
|
+
r(D, w);
|
|
1344
1360
|
},
|
|
1345
1361
|
{ immediate: !0 }
|
|
1346
1362
|
);
|
|
1347
1363
|
async function M(D) {
|
|
1348
|
-
const [
|
|
1349
|
-
|
|
1364
|
+
const [w] = D;
|
|
1365
|
+
w.contentRect.width == f.value.width && w.contentRect.height == f.value.height || (await r(l.value), await h(u.level, !0));
|
|
1350
1366
|
}
|
|
1351
|
-
async function r(D,
|
|
1352
|
-
await z(D,
|
|
1367
|
+
async function r(D, w) {
|
|
1368
|
+
await z(D, w), D && Y();
|
|
1353
1369
|
}
|
|
1354
1370
|
async function T(D) {
|
|
1355
1371
|
if (!u.preview)
|
|
1356
1372
|
return;
|
|
1357
1373
|
u.preview = !1, D = D ?? u.level;
|
|
1358
|
-
const
|
|
1359
|
-
if (!
|
|
1374
|
+
const w = s.value;
|
|
1375
|
+
if (!w)
|
|
1360
1376
|
return;
|
|
1361
|
-
const { scrollTop: A, scrollLeft: k } =
|
|
1362
|
-
|
|
1377
|
+
const { scrollTop: A, scrollLeft: k } = w, { width: B, height: C } = a.value, { scaleW: L, scaleH: I } = O(D), { top: Q, left: U } = p(L, I), R = U != 0 ? U : k * -1, P = Q != 0 ? Q : A * -1;
|
|
1378
|
+
w.scrollTop = 0, w.scrollLeft = 0;
|
|
1363
1379
|
const { value: V } = d;
|
|
1364
|
-
V.width = `${
|
|
1380
|
+
V.width = `${B}px`, V.height = `${C}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = Se(R, P, D), d.value = V, await fe(), u.offsetX = R, u.offsetY = P, await et(20);
|
|
1365
1381
|
}
|
|
1366
|
-
async function h(D,
|
|
1367
|
-
if (!
|
|
1382
|
+
async function h(D, w) {
|
|
1383
|
+
if (!w && u.preview)
|
|
1368
1384
|
return;
|
|
1369
1385
|
u.preview = !0, D = D ?? u.level;
|
|
1370
|
-
const { value: A } = d, { scaleW: k, scaleH:
|
|
1371
|
-
D === 1 && (A.maxHeight = "100%"), A.width = `${k}px`, A.height = `${
|
|
1386
|
+
const { value: A } = d, { scaleW: k, scaleH: B } = O(D), { left: C, top: L } = p(k, B);
|
|
1387
|
+
D === 1 && (A.maxHeight = "100%"), A.width = `${k}px`, A.height = `${B}px`, A.transitionDuration = "0s", A.transform = Se(C, L, 1), d.value = A, await fe();
|
|
1372
1388
|
const I = s.value;
|
|
1373
1389
|
if (!I)
|
|
1374
1390
|
return;
|
|
1375
|
-
const { offsetX:
|
|
1376
|
-
|
|
1391
|
+
const { offsetX: Q, offsetY: U } = u;
|
|
1392
|
+
Q < 0 && (I.scrollLeft = Math.abs(Q)), U < 0 && (I.scrollTop = Math.abs(U));
|
|
1377
1393
|
}
|
|
1378
|
-
async function c(D,
|
|
1394
|
+
async function c(D, w, A) {
|
|
1379
1395
|
if (t || (D = le(D), D = Ce(
|
|
1380
1396
|
D,
|
|
1381
1397
|
n.value - n.value * 0.5,
|
|
1382
1398
|
o.value + o.value * 0.5
|
|
1383
1399
|
), D == u.level))
|
|
1384
1400
|
return;
|
|
1385
|
-
u.preview && await T(),
|
|
1386
|
-
const { value: k } = d, { width:
|
|
1387
|
-
left: Math.abs(
|
|
1401
|
+
u.preview && await T(), w || (w = { x: v.startX.value, y: v.startY.value });
|
|
1402
|
+
const { value: k } = d, { width: B, height: C } = a.value, { scaleW: L, scaleH: I } = O(D), { top: Q, left: U } = p(L, I), R = D / u.level, P = {
|
|
1403
|
+
left: Math.abs(B * D - f.value.width) * -1,
|
|
1388
1404
|
top: Math.abs(C * D - f.value.height) * -1,
|
|
1389
|
-
right:
|
|
1390
|
-
bottom:
|
|
1405
|
+
right: U,
|
|
1406
|
+
bottom: Q
|
|
1391
1407
|
};
|
|
1392
|
-
let V =
|
|
1393
|
-
V = le(Ce(V, P.left, P.right)), ce = le(Ce(ce, P.top, P.bottom)), k.width = `${
|
|
1408
|
+
let V = U != 0 ? U : (u.offsetX - w.x) * R + w.x, ce = Q != 0 ? Q : (u.offsetY - w.y) * R + w.y;
|
|
1409
|
+
V = le(Ce(V, P.left, P.right)), ce = le(Ce(ce, P.top, P.bottom)), k.width = `${B}px`, k.height = `${C}px`, k.transitionDuration = A ? zn(D) : "0s", k.transform = Se(V, ce, D), u.offsetX = V, u.offsetY = ce, u.level = D, d.value = k, await fe(), A && i.startTransition(), e.onScale?.(D);
|
|
1394
1410
|
}
|
|
1395
1411
|
function y() {
|
|
1396
|
-
const D = u.level > 1 ? 1 :
|
|
1412
|
+
const D = u.level > 1 ? 1 : F();
|
|
1397
1413
|
c(D, void 0, !0);
|
|
1398
1414
|
}
|
|
1399
|
-
function x(D,
|
|
1415
|
+
function x(D, w) {
|
|
1400
1416
|
if (!u.preview)
|
|
1401
1417
|
return;
|
|
1402
1418
|
const A = s.value;
|
|
1403
1419
|
!A || A.scrollTo({
|
|
1404
1420
|
left: u.offsetX - D,
|
|
1405
|
-
top: u.offsetY -
|
|
1421
|
+
top: u.offsetY - w
|
|
1406
1422
|
});
|
|
1407
1423
|
}
|
|
1408
1424
|
async function W() {
|
|
1409
1425
|
u.level >= n.value && u.level <= o.value ? u.zooming && await h() : u.level < n.value ? await c(n.value, void 0, !0) : u.level > o.value && await c(o.value, u.lastCenter, !0), u.zooming = !1;
|
|
1410
1426
|
}
|
|
1411
|
-
function
|
|
1412
|
-
const { width: D, height:
|
|
1427
|
+
function F() {
|
|
1428
|
+
const { width: D, height: w } = a.value, { width: A, height: k } = f.value, B = 2.5;
|
|
1413
1429
|
let C;
|
|
1414
|
-
return
|
|
1430
|
+
return w == k ? (C = A / D, C - 1 < 0.1 && (C = B)) : C = Math.max(B, A / D, k / w), C;
|
|
1415
1431
|
}
|
|
1416
1432
|
function O(D) {
|
|
1417
|
-
const { width:
|
|
1433
|
+
const { width: w, height: A } = a.value;
|
|
1418
1434
|
return {
|
|
1419
|
-
scaleW: le(D *
|
|
1435
|
+
scaleW: le(D * w),
|
|
1420
1436
|
scaleH: le(D * A)
|
|
1421
1437
|
};
|
|
1422
1438
|
}
|
|
1423
|
-
function p(D,
|
|
1424
|
-
const { width: A, height: k } = f.value,
|
|
1425
|
-
return { top:
|
|
1439
|
+
function p(D, w) {
|
|
1440
|
+
const { width: A, height: k } = f.value, B = Math.max(0, (k - w) * 0.5), C = Math.max(0, (A - D) * 0.5);
|
|
1441
|
+
return { top: B, left: C };
|
|
1426
1442
|
}
|
|
1427
|
-
async function z(D,
|
|
1428
|
-
if (D = D ?? l.value,
|
|
1443
|
+
async function z(D, w) {
|
|
1444
|
+
if (D = D ?? l.value, w = w ?? s.value, !w)
|
|
1429
1445
|
return;
|
|
1430
|
-
let A, { clientWidth: k = 0, clientHeight:
|
|
1431
|
-
const { clientWidth: C, clientHeight: L } =
|
|
1446
|
+
let A, { clientWidth: k = 0, clientHeight: B = 0 } = D || {};
|
|
1447
|
+
const { clientWidth: C, clientHeight: L } = w;
|
|
1432
1448
|
if (D instanceof HTMLImageElement ? A = { width: D.naturalWidth, height: D.naturalHeight } : D instanceof HTMLVideoElement && (A = { width: D.videoWidth, height: D.videoHeight }), A) {
|
|
1433
|
-
const I =
|
|
1449
|
+
const I = An(
|
|
1434
1450
|
A.width,
|
|
1435
1451
|
A.height,
|
|
1436
1452
|
C,
|
|
1437
1453
|
L
|
|
1438
1454
|
);
|
|
1439
|
-
k = I.width,
|
|
1455
|
+
k = I.width, B = I.height;
|
|
1440
1456
|
}
|
|
1441
|
-
(k === 0 ||
|
|
1457
|
+
(k === 0 || B === 0) && (k = a.value.width || C, B = a.value.height || L), a.value = {
|
|
1442
1458
|
width: Math.min(k, C),
|
|
1443
|
-
height: Math.min(
|
|
1459
|
+
height: Math.min(B, L)
|
|
1444
1460
|
}, f.value = { width: C, height: L };
|
|
1445
1461
|
}
|
|
1446
|
-
function
|
|
1447
|
-
const D =
|
|
1462
|
+
function Y() {
|
|
1463
|
+
const D = F();
|
|
1448
1464
|
o.value = Math.max(o.value, D * 2);
|
|
1449
1465
|
}
|
|
1450
1466
|
return {
|
|
@@ -1463,7 +1479,7 @@ function pt(e) {
|
|
|
1463
1479
|
toggleZoom: y
|
|
1464
1480
|
};
|
|
1465
1481
|
}
|
|
1466
|
-
function
|
|
1482
|
+
function So(e) {
|
|
1467
1483
|
const t = pt({
|
|
1468
1484
|
onDoubleTap() {
|
|
1469
1485
|
t.toggleZoom();
|
|
@@ -1472,7 +1488,7 @@ function Co(e) {
|
|
|
1472
1488
|
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1473
1489
|
let a = !1, f = null;
|
|
1474
1490
|
const u = { top: 0, left: 0 }, d = ze(r, 150);
|
|
1475
|
-
|
|
1491
|
+
we("keyup", h), we("keydown", T);
|
|
1476
1492
|
function v(c) {
|
|
1477
1493
|
const y = t.containerRef.value;
|
|
1478
1494
|
if (!y)
|
|
@@ -1509,7 +1525,7 @@ function Co(e) {
|
|
|
1509
1525
|
}
|
|
1510
1526
|
return { core: t, onPointerDown: v, onWheel: M };
|
|
1511
1527
|
}
|
|
1512
|
-
function
|
|
1528
|
+
function Oo(e) {
|
|
1513
1529
|
const t = pt({
|
|
1514
1530
|
onDoubleTap() {
|
|
1515
1531
|
t.toggleZoom();
|
|
@@ -1519,7 +1535,7 @@ function So(e) {
|
|
|
1519
1535
|
let u, d, v, i;
|
|
1520
1536
|
async function g(h) {
|
|
1521
1537
|
const { touches: c } = h;
|
|
1522
|
-
u = c.length, n.zooming = u === 2, l.startTap(), o.start(c[0].clientX, c[0].clientY), T("start", h), n.zooming && (h.preventDefault(), d = n.level, v = at(c), await t.switchToZoom(), n.lastCenter =
|
|
1538
|
+
u = c.length, n.zooming = u === 2, l.startTap(), o.start(c[0].clientX, c[0].clientY), T("start", h), n.zooming && (h.preventDefault(), d = n.level, v = at(c), await t.switchToZoom(), n.lastCenter = Ln(c));
|
|
1523
1539
|
}
|
|
1524
1540
|
async function M(h) {
|
|
1525
1541
|
const { touches: c } = h;
|
|
@@ -1535,9 +1551,9 @@ function So(e) {
|
|
|
1535
1551
|
function T(h, c) {
|
|
1536
1552
|
f.measure();
|
|
1537
1553
|
let { clientX: y, clientY: x } = c.touches.length != 0 ? c.touches[0] : c.changedTouches[0];
|
|
1538
|
-
const { top: W, left:
|
|
1554
|
+
const { top: W, left: F, right: O, bottom: p } = f.arrivedState;
|
|
1539
1555
|
if (h == "start")
|
|
1540
|
-
i = W ||
|
|
1556
|
+
i = W || F || O || p;
|
|
1541
1557
|
else if (u == 2)
|
|
1542
1558
|
i = !1;
|
|
1543
1559
|
else if (i) {
|
|
@@ -1550,14 +1566,14 @@ function So(e) {
|
|
|
1550
1566
|
}
|
|
1551
1567
|
else if (o.direction.value == "horizontal") {
|
|
1552
1568
|
const z = o.startX.value < y;
|
|
1553
|
-
i =
|
|
1569
|
+
i = F && z || O && !z;
|
|
1554
1570
|
}
|
|
1555
1571
|
}
|
|
1556
1572
|
i && s.transitioning.value && (i = !1, c.preventDefault()), h == "end" && !i && (y = o.startX.value, x = o.startY.value, i = !0), (h != "move" || i) && e.onSwipeEdge?.(h, o.direction.value, y, x);
|
|
1557
1573
|
}
|
|
1558
1574
|
return { core: t, onTouchStart: g, onTouchMove: M, onTouchEnd: r };
|
|
1559
1575
|
}
|
|
1560
|
-
function
|
|
1576
|
+
function _o() {
|
|
1561
1577
|
const e = Te({
|
|
1562
1578
|
scale: 1,
|
|
1563
1579
|
startX: 0,
|
|
@@ -1578,7 +1594,7 @@ function Oo() {
|
|
|
1578
1594
|
}
|
|
1579
1595
|
return { state: e, dragStart: t, dragMove: n, dragEnd: o };
|
|
1580
1596
|
}
|
|
1581
|
-
function
|
|
1597
|
+
function jn() {
|
|
1582
1598
|
const e = m(!1), t = m(!1);
|
|
1583
1599
|
return ft(() => {
|
|
1584
1600
|
!t.value || (e.value = !0);
|
|
@@ -1590,15 +1606,15 @@ function Ln() {
|
|
|
1590
1606
|
isActivated: e
|
|
1591
1607
|
};
|
|
1592
1608
|
}
|
|
1593
|
-
function
|
|
1609
|
+
function xn(e) {
|
|
1594
1610
|
let t = !1;
|
|
1595
1611
|
return () => {
|
|
1596
1612
|
t || (e(), t = !0);
|
|
1597
1613
|
};
|
|
1598
1614
|
}
|
|
1599
|
-
function
|
|
1615
|
+
function bo(e) {
|
|
1600
1616
|
let t = null;
|
|
1601
|
-
const { isActivated: n } =
|
|
1617
|
+
const { isActivated: n } = jn(), o = xn(() => t = window.onBackPress);
|
|
1602
1618
|
function l() {
|
|
1603
1619
|
o(), window.onBackPress = () => e();
|
|
1604
1620
|
}
|
|
@@ -1615,7 +1631,7 @@ function _o(e) {
|
|
|
1615
1631
|
s();
|
|
1616
1632
|
}), { register: l, unregister: s };
|
|
1617
1633
|
}
|
|
1618
|
-
const
|
|
1634
|
+
const Cn = ["onClick"], Sn = /* @__PURE__ */ q({
|
|
1619
1635
|
__name: "Toast",
|
|
1620
1636
|
props: {
|
|
1621
1637
|
message: null,
|
|
@@ -1623,7 +1639,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1623
1639
|
buttonClickEvent: null
|
|
1624
1640
|
},
|
|
1625
1641
|
setup(e) {
|
|
1626
|
-
const t = e, n = m(), o = m(), l = m(), s =
|
|
1642
|
+
const t = e, n = m(), o = m(), l = m(), s = N(() => {
|
|
1627
1643
|
switch (t.position) {
|
|
1628
1644
|
case "top":
|
|
1629
1645
|
return 10;
|
|
@@ -1632,14 +1648,14 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1632
1648
|
case "bottom":
|
|
1633
1649
|
return 85;
|
|
1634
1650
|
}
|
|
1635
|
-
}), a =
|
|
1651
|
+
}), a = N(() => ({
|
|
1636
1652
|
position: "absolute",
|
|
1637
1653
|
borderRadius: "10px",
|
|
1638
1654
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
1639
1655
|
padding: "14px 19px",
|
|
1640
1656
|
top: `calc(${s.value}% - ${l.value}px)`,
|
|
1641
1657
|
left: `calc(50% - ${o.value}px)`
|
|
1642
|
-
})), f =
|
|
1658
|
+
})), f = N(() => ({
|
|
1643
1659
|
width: "fit-content",
|
|
1644
1660
|
display: "flex",
|
|
1645
1661
|
justifyContent: "center",
|
|
@@ -1652,7 +1668,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1652
1668
|
}
|
|
1653
1669
|
return fe(() => {
|
|
1654
1670
|
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1655
|
-
}), (d, v) => (b(),
|
|
1671
|
+
}), (d, v) => (b(), $("div", {
|
|
1656
1672
|
onClick: he(u, ["stop"]),
|
|
1657
1673
|
id: "toastWrapper",
|
|
1658
1674
|
ref_key: "toastWrapper",
|
|
@@ -1665,24 +1681,24 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1665
1681
|
}, [
|
|
1666
1682
|
_("span", null, Re(e.message), 1)
|
|
1667
1683
|
], 4)
|
|
1668
|
-
], 12,
|
|
1684
|
+
], 12, Cn));
|
|
1669
1685
|
}
|
|
1670
1686
|
});
|
|
1671
|
-
const
|
|
1687
|
+
const On = /* @__PURE__ */ ee(Sn, [["__scopeId", "data-v-25d39b90"]]), it = {
|
|
1672
1688
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1673
1689
|
position: "middle",
|
|
1674
1690
|
duration: 1500,
|
|
1675
1691
|
buttonClickEvent: () => {
|
|
1676
1692
|
}
|
|
1677
1693
|
};
|
|
1678
|
-
class
|
|
1694
|
+
class ko {
|
|
1679
1695
|
options;
|
|
1680
1696
|
container;
|
|
1681
1697
|
constructor(t) {
|
|
1682
1698
|
this.options = t, this.container = document.createElement("div");
|
|
1683
1699
|
}
|
|
1684
1700
|
present() {
|
|
1685
|
-
const t = ae(ae(
|
|
1701
|
+
const t = ae(ae(On), { ...it, ...this.options });
|
|
1686
1702
|
me(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
1687
1703
|
const n = this.options.duration || it.duration;
|
|
1688
1704
|
setTimeout(() => {
|
|
@@ -1700,7 +1716,7 @@ class bo {
|
|
|
1700
1716
|
}
|
|
1701
1717
|
}
|
|
1702
1718
|
}
|
|
1703
|
-
const
|
|
1719
|
+
const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
1704
1720
|
__name: "SvgIcon",
|
|
1705
1721
|
props: {
|
|
1706
1722
|
name: null,
|
|
@@ -1710,7 +1726,7 @@ const On = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1710
1726
|
height: null
|
|
1711
1727
|
},
|
|
1712
1728
|
setup(e) {
|
|
1713
|
-
const t = e, n =
|
|
1729
|
+
const t = e, n = N(() => `#${t.prefix}-${t.name}`), o = N(() => ({
|
|
1714
1730
|
width: `${t.width ?? t.height}px`,
|
|
1715
1731
|
height: `${t.height ?? t.width}px`,
|
|
1716
1732
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
@@ -1719,7 +1735,7 @@ const On = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1719
1735
|
const { style: a } = s;
|
|
1720
1736
|
return typeof a == "object" ? a : {};
|
|
1721
1737
|
}
|
|
1722
|
-
return (s, a) => (b(),
|
|
1738
|
+
return (s, a) => (b(), $("svg", {
|
|
1723
1739
|
"aria-hidden": "",
|
|
1724
1740
|
style: K({ ...E(o), ...l(s.$attrs) })
|
|
1725
1741
|
}, [
|
|
@@ -1727,11 +1743,11 @@ const On = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1727
1743
|
"xlink:href": E(n),
|
|
1728
1744
|
fill: e.color,
|
|
1729
1745
|
color: e.color
|
|
1730
|
-
}, null, 8,
|
|
1746
|
+
}, null, 8, _n)
|
|
1731
1747
|
], 4));
|
|
1732
1748
|
}
|
|
1733
1749
|
});
|
|
1734
|
-
function
|
|
1750
|
+
function bn(e) {
|
|
1735
1751
|
const {
|
|
1736
1752
|
containerEl: t,
|
|
1737
1753
|
sliderEl: n,
|
|
@@ -1748,30 +1764,30 @@ function _n(e) {
|
|
|
1748
1764
|
clientHeight: 0
|
|
1749
1765
|
}), T = m({
|
|
1750
1766
|
clientHeight: 0
|
|
1751
|
-
}), h =
|
|
1767
|
+
}), h = N(() => !!g.value), c = N(() => r.value.scrollHeight > r.value.clientHeight), y = N(() => o ? r.value.clientHeight - F.value : r.value.clientHeight - T.value.clientHeight), x = N(() => r.value.scrollHeight - r.value.clientHeight), W = N(() => Math.max(
|
|
1752
1768
|
r.value.clientHeight / r.value.scrollHeight,
|
|
1753
1769
|
0.05
|
|
1754
|
-
)),
|
|
1770
|
+
)), F = N(() => W.value > s ? 0 : W.value * r.value.clientHeight), O = N(() => ({
|
|
1755
1771
|
willChange: "transform",
|
|
1756
1772
|
transform: `translate3d(0,${M.value}px,0)`,
|
|
1757
|
-
height: o ? `${
|
|
1773
|
+
height: o ? `${F.value}px` : void 0
|
|
1758
1774
|
}));
|
|
1759
|
-
function p(
|
|
1760
|
-
|
|
1775
|
+
function p(R) {
|
|
1776
|
+
Y(), g.value = R.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
1761
1777
|
}
|
|
1762
1778
|
function z() {
|
|
1763
1779
|
t.value.style.scrollBehavior = v, g.value = 0, u();
|
|
1764
1780
|
}
|
|
1765
|
-
function
|
|
1781
|
+
function Y() {
|
|
1766
1782
|
f.value = !1;
|
|
1767
1783
|
}
|
|
1768
1784
|
function D() {
|
|
1769
1785
|
h.value || (f.value = !0);
|
|
1770
1786
|
}
|
|
1771
|
-
function
|
|
1787
|
+
function w(R) {
|
|
1772
1788
|
if (!h.value)
|
|
1773
1789
|
return;
|
|
1774
|
-
let P =
|
|
1790
|
+
let P = R.clientY - r.value.top - g.value;
|
|
1775
1791
|
P < 0 ? M.value = 0 : P >= y.value ? M.value = y.value : M.value = P, t.value.scrollTo({
|
|
1776
1792
|
top: M.value / y.value * x.value
|
|
1777
1793
|
});
|
|
@@ -1780,46 +1796,46 @@ function _n(e) {
|
|
|
1780
1796
|
h.value || k();
|
|
1781
1797
|
}
|
|
1782
1798
|
function k() {
|
|
1783
|
-
cancelAnimationFrame(d), d = requestAnimationFrame(
|
|
1799
|
+
cancelAnimationFrame(d), d = requestAnimationFrame(B);
|
|
1784
1800
|
}
|
|
1785
|
-
function
|
|
1801
|
+
function B() {
|
|
1786
1802
|
t.value && (i.value = l.scrollTop?.value ?? t.value.scrollTop, M.value = i.value / x.value * y.value);
|
|
1787
1803
|
}
|
|
1788
|
-
function C(
|
|
1804
|
+
function C(R) {
|
|
1789
1805
|
let P = "addEventListener";
|
|
1790
|
-
|
|
1806
|
+
R === "add" ? P = "addEventListener" : P = "removeEventListener", n.value?.[P]("pointerdown", p, {
|
|
1791
1807
|
passive: !0
|
|
1792
|
-
}), window[P]("pointermove",
|
|
1808
|
+
}), window[P]("pointermove", w, { passive: !0 }), window[P]("pointerup", z, { passive: !0 });
|
|
1793
1809
|
}
|
|
1794
|
-
const L = new MutationObserver((
|
|
1795
|
-
(a == "classList" ||
|
|
1810
|
+
const L = new MutationObserver((R) => {
|
|
1811
|
+
(a == "classList" || R.map((V) => V.oldValue).join().includes("height")) && I();
|
|
1796
1812
|
});
|
|
1797
1813
|
function I() {
|
|
1798
1814
|
r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
|
|
1799
1815
|
}
|
|
1800
|
-
function
|
|
1801
|
-
|
|
1816
|
+
function Q() {
|
|
1817
|
+
Y(), setTimeout(() => {
|
|
1802
1818
|
T.value.clientHeight = n.value?.clientHeight ?? 0, D();
|
|
1803
1819
|
}, 150);
|
|
1804
1820
|
}
|
|
1805
|
-
function
|
|
1821
|
+
function U() {
|
|
1806
1822
|
if (t.value && n.value) {
|
|
1807
1823
|
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", A, {
|
|
1808
1824
|
passive: !0
|
|
1809
1825
|
}), C("add");
|
|
1810
|
-
const
|
|
1811
|
-
a === "classList" ? Object.assign(
|
|
1826
|
+
const R = {};
|
|
1827
|
+
a === "classList" ? Object.assign(R, { subtree: !0, childList: !0 }) : Object.assign(R, {
|
|
1812
1828
|
subtree: !0,
|
|
1813
1829
|
attributeOldValue: !0,
|
|
1814
1830
|
attributeFilter: ["style"]
|
|
1815
|
-
}), L.observe(t.value,
|
|
1831
|
+
}), L.observe(t.value, R), setTimeout(() => {
|
|
1816
1832
|
I();
|
|
1817
|
-
}, 100),
|
|
1833
|
+
}, 100), Q();
|
|
1818
1834
|
} else
|
|
1819
1835
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
1820
1836
|
}
|
|
1821
1837
|
return G(i, () => {
|
|
1822
|
-
|
|
1838
|
+
Y(), u();
|
|
1823
1839
|
}), {
|
|
1824
1840
|
isScrollEnd: f,
|
|
1825
1841
|
isDragSlider: h,
|
|
@@ -1827,11 +1843,11 @@ function _n(e) {
|
|
|
1827
1843
|
scrollTop: i,
|
|
1828
1844
|
scrollable: c,
|
|
1829
1845
|
sliderPos: O,
|
|
1830
|
-
init:
|
|
1846
|
+
init: U,
|
|
1831
1847
|
modifySliderEventListener: C
|
|
1832
1848
|
};
|
|
1833
1849
|
}
|
|
1834
|
-
const
|
|
1850
|
+
const kn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), Qn = /* @__PURE__ */ kn(() => /* @__PURE__ */ _("div", { class: "default-slider" }, null, -1)), Yn = /* @__PURE__ */ q({
|
|
1835
1851
|
__name: "ScrollBar",
|
|
1836
1852
|
props: {
|
|
1837
1853
|
containerEl: null,
|
|
@@ -1841,13 +1857,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1841
1857
|
performance: null
|
|
1842
1858
|
},
|
|
1843
1859
|
setup(e, { expose: t }) {
|
|
1844
|
-
const n = e, o = !!Ot().default, l = m(null), s =
|
|
1860
|
+
const n = e, o = !!Ot().default, l = m(null), s = N(() => n.containerEl), a = bn({
|
|
1845
1861
|
containerEl: s,
|
|
1846
1862
|
sliderEl: l,
|
|
1847
1863
|
autoHeight: o ? n.autoHeight : !0,
|
|
1848
1864
|
performance: n.performance,
|
|
1849
1865
|
observeMethod: n.observeMethod
|
|
1850
|
-
}), { scrollable: f, isScrollEnd: u, sliderPos: d } = a, v = m(!1), i = n.autoHide ?
|
|
1866
|
+
}), { scrollable: f, isScrollEnd: u, sliderPos: d } = a, v = m(!1), i = n.autoHide ? N(() => v.value || !u.value) : N(() => f.value), { load: g } = He(
|
|
1851
1867
|
`.hide-scrollbar {
|
|
1852
1868
|
scrollbar-width: none;
|
|
1853
1869
|
-ms-overflow-style: none;
|
|
@@ -1881,7 +1897,7 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1881
1897
|
style: K(E(d))
|
|
1882
1898
|
}, [
|
|
1883
1899
|
Ee(T.$slots, "default", {}, () => [
|
|
1884
|
-
|
|
1900
|
+
Qn
|
|
1885
1901
|
], !0)
|
|
1886
1902
|
], 36), [
|
|
1887
1903
|
[Ae, E(i)]
|
|
@@ -1891,13 +1907,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1891
1907
|
}));
|
|
1892
1908
|
}
|
|
1893
1909
|
});
|
|
1894
|
-
const
|
|
1910
|
+
const Qo = /* @__PURE__ */ ee(Yn, [["__scopeId", "data-v-405c22cf"]]), Bn = (e) => (pe("data-v-df5da876"), e = e(), De(), e), Un = { class: "pull-refresh" }, Rn = {
|
|
1895
1911
|
key: 0,
|
|
1896
1912
|
class: "pull-arrow-circle"
|
|
1897
|
-
},
|
|
1913
|
+
}, $n = {
|
|
1898
1914
|
key: 0,
|
|
1899
1915
|
class: "box-load"
|
|
1900
|
-
},
|
|
1916
|
+
}, Pn = { class: "left-load" }, Hn = { class: "right-load" }, Fn = /* @__PURE__ */ Bn(() => /* @__PURE__ */ _("div", { class: "among-load" }, null, -1)), Wn = { class: "pull-arrow" }, Xn = { key: 1 }, Zn = /* @__PURE__ */ q({
|
|
1901
1917
|
__name: "PullRefresh",
|
|
1902
1918
|
props: {
|
|
1903
1919
|
refresh: null,
|
|
@@ -1906,10 +1922,10 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1906
1922
|
pullRefreshContainer: null
|
|
1907
1923
|
},
|
|
1908
1924
|
setup(e) {
|
|
1909
|
-
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), f = m(0.3), u = m(!1), d = m(0), v = m(0), i = m(0), g = m(0), M = m(0), r = m(), T =
|
|
1925
|
+
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), f = m(0.3), u = m(!1), d = m(0), v = m(0), i = m(0), g = m(0), M = m(0), r = m(), T = N(() => t.scrollTop), h = N(() => ({
|
|
1910
1926
|
transition: `${g.value}ms`,
|
|
1911
1927
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
1912
|
-
})), c =
|
|
1928
|
+
})), c = N(() => ({
|
|
1913
1929
|
borderColor: o,
|
|
1914
1930
|
transition: g.value,
|
|
1915
1931
|
transform: `rotate(${100 + a.value}deg)`,
|
|
@@ -1928,7 +1944,7 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1928
1944
|
}, W = (p) => {
|
|
1929
1945
|
const z = p.touches[0].pageY - y.value;
|
|
1930
1946
|
y.value = p.touches[0].pageY, !t.refreshOff && (!t?.refresh || M.value !== 2 && T.value === 0 && (d.value === 0 && (d.value = p.touches[0].pageY), i.value = 0, O.value.style.transition = `${i.value}ms`, g.value = 0, v.value = p.touches[0].pageY - d.value, O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, z > 0 && p.preventDefault()));
|
|
1931
|
-
},
|
|
1947
|
+
}, F = () => {
|
|
1932
1948
|
if (t.refreshOff || !t?.refresh || M.value === 2)
|
|
1933
1949
|
return;
|
|
1934
1950
|
d.value = 0, i.value = 300;
|
|
@@ -1951,33 +1967,33 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1951
1967
|
return ie(() => {
|
|
1952
1968
|
t?.refreshOff || (O.value = document.querySelector(
|
|
1953
1969
|
t.pullRefreshContainer
|
|
1954
|
-
), O.value?.addEventListener("touchstart", x), O.value?.addEventListener("touchmove", W), O.value?.addEventListener("touchend",
|
|
1955
|
-
}), (p, z) => (b(),
|
|
1970
|
+
), O.value?.addEventListener("touchstart", x), O.value?.addEventListener("touchmove", W), O.value?.addEventListener("touchend", F));
|
|
1971
|
+
}), (p, z) => (b(), $("div", Un, [
|
|
1956
1972
|
_("div", {
|
|
1957
1973
|
class: "pull-refresh-box",
|
|
1958
1974
|
style: K(E(h))
|
|
1959
1975
|
}, [
|
|
1960
|
-
r.value ? (b(),
|
|
1961
|
-
M.value == 2 ? (b(),
|
|
1962
|
-
_("div",
|
|
1976
|
+
r.value ? (b(), $("div", Xn, Re(r.value), 1)) : (b(), $("div", Rn, [
|
|
1977
|
+
M.value == 2 ? (b(), $("div", $n, [
|
|
1978
|
+
_("div", Pn, [
|
|
1963
1979
|
_("div", {
|
|
1964
1980
|
class: "left-circle",
|
|
1965
1981
|
style: K({ backgroundColor: o })
|
|
1966
1982
|
}, null, 4)
|
|
1967
1983
|
]),
|
|
1968
|
-
_("div",
|
|
1984
|
+
_("div", Hn, [
|
|
1969
1985
|
_("div", {
|
|
1970
1986
|
class: "right-circle",
|
|
1971
1987
|
style: K({ backgroundColor: o })
|
|
1972
1988
|
}, null, 4)
|
|
1973
1989
|
]),
|
|
1974
1990
|
Fn
|
|
1975
|
-
])) : (b(),
|
|
1991
|
+
])) : (b(), $("div", {
|
|
1976
1992
|
key: 1,
|
|
1977
1993
|
class: "pull-circle-line",
|
|
1978
1994
|
style: K(E(c))
|
|
1979
1995
|
}, [
|
|
1980
|
-
_("div",
|
|
1996
|
+
_("div", Wn, [
|
|
1981
1997
|
_("div", {
|
|
1982
1998
|
class: oe(["arrows", { opacity: u.value }]),
|
|
1983
1999
|
style: K({ borderBottomColor: o })
|
|
@@ -1989,10 +2005,10 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1989
2005
|
]));
|
|
1990
2006
|
}
|
|
1991
2007
|
});
|
|
1992
|
-
const
|
|
2008
|
+
const Vn = /* @__PURE__ */ ee(Zn, [["__scopeId", "data-v-df5da876"]]), Kn = ["data-key"], Gn = {
|
|
1993
2009
|
inheritAttrs: !1
|
|
1994
|
-
},
|
|
1995
|
-
...
|
|
2010
|
+
}, qn = /* @__PURE__ */ q({
|
|
2011
|
+
...Gn,
|
|
1996
2012
|
__name: "VirtualList",
|
|
1997
2013
|
props: {
|
|
1998
2014
|
data: null,
|
|
@@ -2004,7 +2020,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2004
2020
|
},
|
|
2005
2021
|
emits: ["scrollEnd"],
|
|
2006
2022
|
setup(e, { expose: t, emit: n }) {
|
|
2007
|
-
const o = e, l =
|
|
2023
|
+
const o = e, l = qt(_t(o, "data"), {
|
|
2008
2024
|
itemHeight: (M) => o.itemHeight(o.data[M]),
|
|
2009
2025
|
overscan: o.overscan,
|
|
2010
2026
|
scrollEndHook: () => {
|
|
@@ -2025,8 +2041,8 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2025
2041
|
function g(M, r) {
|
|
2026
2042
|
return o.getItemKey ? o.getItemKey(M, r) : `${r}`;
|
|
2027
2043
|
}
|
|
2028
|
-
return (M, r) => (b(),
|
|
2029
|
-
Me(
|
|
2044
|
+
return (M, r) => (b(), $(be, null, [
|
|
2045
|
+
Me(Vn, {
|
|
2030
2046
|
refresh: e.refresh,
|
|
2031
2047
|
refreshOff: e.refreshOff,
|
|
2032
2048
|
scrollTop: E(v),
|
|
@@ -2043,7 +2059,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2043
2059
|
}, M.$attrs), [
|
|
2044
2060
|
_("div", Oe(_e(E(f))), [
|
|
2045
2061
|
_("div", Oe(_e(E(u))), [
|
|
2046
|
-
(b(!0),
|
|
2062
|
+
(b(!0), $(be, null, bt(E(s), ({ data: T, index: h }) => (b(), $("div", {
|
|
2047
2063
|
key: g(T, h),
|
|
2048
2064
|
"data-key": g(T, h),
|
|
2049
2065
|
style: K({
|
|
@@ -2055,7 +2071,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2055
2071
|
data: T,
|
|
2056
2072
|
index: h
|
|
2057
2073
|
}, void 0, !0)
|
|
2058
|
-
], 12,
|
|
2074
|
+
], 12, Kn))), 128))
|
|
2059
2075
|
], 16)
|
|
2060
2076
|
], 16)
|
|
2061
2077
|
], 16)
|
|
@@ -2063,7 +2079,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2063
2079
|
], 64));
|
|
2064
2080
|
}
|
|
2065
2081
|
});
|
|
2066
|
-
const
|
|
2082
|
+
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__ */ _("div", { class: "wrapper" }, null, -1)), to = ["width", "height"], no = /* @__PURE__ */ tt(() => /* @__PURE__ */ _("title", null, "logo", -1)), oo = /* @__PURE__ */ tt(() => /* @__PURE__ */ _("g", {
|
|
2067
2083
|
id: "group-1",
|
|
2068
2084
|
stroke: "none",
|
|
2069
2085
|
"stroke-width": "1",
|
|
@@ -2075,10 +2091,10 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2075
2091
|
id: "path-1",
|
|
2076
2092
|
fill: "#FFF"
|
|
2077
2093
|
})
|
|
2078
|
-
], -1)),
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
],
|
|
2094
|
+
], -1)), lo = [
|
|
2095
|
+
no,
|
|
2096
|
+
oo
|
|
2097
|
+
], so = /* @__PURE__ */ q({
|
|
2082
2098
|
__name: "Loading",
|
|
2083
2099
|
props: {
|
|
2084
2100
|
width: { default: "90" },
|
|
@@ -2091,21 +2107,22 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2091
2107
|
"312487ac": n
|
|
2092
2108
|
}));
|
|
2093
2109
|
const n = `${t.duration}ms`;
|
|
2094
|
-
return (o, l) => (b(),
|
|
2095
|
-
|
|
2096
|
-
(b(),
|
|
2110
|
+
return (o, l) => (b(), $("div", Jn, [
|
|
2111
|
+
eo,
|
|
2112
|
+
(b(), $("svg", {
|
|
2097
2113
|
style: { position: "relative" },
|
|
2098
2114
|
width: e.width,
|
|
2099
2115
|
height: e.height,
|
|
2100
2116
|
viewBox: "0 0 260 260",
|
|
2101
2117
|
version: "1.1",
|
|
2102
2118
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2103
|
-
},
|
|
2119
|
+
}, lo, 8, to))
|
|
2104
2120
|
]));
|
|
2105
2121
|
}
|
|
2106
2122
|
});
|
|
2107
|
-
const
|
|
2123
|
+
const Bo = /* @__PURE__ */ ee(so, [["__scopeId", "data-v-33519afd"]]), ao = [
|
|
2108
2124
|
"image/avif",
|
|
2125
|
+
"image/bmp",
|
|
2109
2126
|
"image/jpg",
|
|
2110
2127
|
"image/jpeg",
|
|
2111
2128
|
"image/gif",
|
|
@@ -2116,7 +2133,7 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
|
2116
2133
|
"image/webp",
|
|
2117
2134
|
"image/wbmp",
|
|
2118
2135
|
"image/svg+xml"
|
|
2119
|
-
],
|
|
2136
|
+
], io = [
|
|
2120
2137
|
"image/bmp",
|
|
2121
2138
|
"image/jpg",
|
|
2122
2139
|
"image/jpeg",
|
|
@@ -2128,9 +2145,9 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
|
2128
2145
|
"image/svg+xml"
|
|
2129
2146
|
];
|
|
2130
2147
|
function Dt(e, t) {
|
|
2131
|
-
const n = m(e?.value), o =
|
|
2148
|
+
const n = m(e?.value), o = N(() => n.value?.startsWith("/_lzc")), l = m(!1), s = N(() => l.value), a = N(() => {
|
|
2132
2149
|
const u = t?.value;
|
|
2133
|
-
return !u || u.startsWith("video/") ? !0 : u.startsWith("image/") ? o.value ?
|
|
2150
|
+
return !u || u.startsWith("video/") ? !0 : u.startsWith("image/") ? o.value ? ao.includes(u) : io.includes(u) : !1;
|
|
2134
2151
|
});
|
|
2135
2152
|
e && G(e, (u) => {
|
|
2136
2153
|
n.value = u, l.value = !1;
|
|
@@ -2153,8 +2170,8 @@ function Tt() {
|
|
|
2153
2170
|
}
|
|
2154
2171
|
} };
|
|
2155
2172
|
}
|
|
2156
|
-
const
|
|
2157
|
-
...
|
|
2173
|
+
const uo = (e) => (pe("data-v-91e59dea"), e = e(), De(), e), ro = ["title"], co = /* @__PURE__ */ uo(() => /* @__PURE__ */ _("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), fo = ["src"], vo = ["src"], Mo = ["title"], go = { inheritAttrs: !1 }, ho = /* @__PURE__ */ q({
|
|
2174
|
+
...go,
|
|
2158
2175
|
__name: "Image",
|
|
2159
2176
|
props: {
|
|
2160
2177
|
src: null,
|
|
@@ -2168,7 +2185,7 @@ const io = (e) => (pe("data-v-91e59dea"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2168
2185
|
emits: ["load"],
|
|
2169
2186
|
setup(e, { emit: t }) {
|
|
2170
2187
|
const n = e, o = m(), l = m(), s = m(!1), a = m(!1), f = m(!1), { src: u, mime: d } = vt(n), { imgSrc: v, isSupport: i, hasError: g, handleError: M } = Dt(u, d), { vImageCancel: r } = Tt(), { LoadingComp: T } = yt({
|
|
2171
|
-
component:
|
|
2188
|
+
component: an,
|
|
2172
2189
|
delay: 300
|
|
2173
2190
|
}), h = Qt(() => f.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !f.value);
|
|
2174
2191
|
function c() {
|
|
@@ -2183,62 +2200,62 @@ const io = (e) => (pe("data-v-91e59dea"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2183
2200
|
function W() {
|
|
2184
2201
|
o.value?.removeEventListener("animationend", W), o.value?.classList.remove("showing"), o.value && t("load", o.value), y();
|
|
2185
2202
|
}
|
|
2186
|
-
async function
|
|
2203
|
+
async function F(p) {
|
|
2187
2204
|
p ? x() : l.value && t("load", l.value), s.value = !0;
|
|
2188
2205
|
}
|
|
2189
2206
|
function O(p) {
|
|
2190
2207
|
p ? M() : c(), s.value = !0;
|
|
2191
2208
|
}
|
|
2192
|
-
return (p, z) => (b(),
|
|
2209
|
+
return (p, z) => (b(), $(be, null, [
|
|
2193
2210
|
E(i) && !s.value ? (b(), Ie(E(T), { key: 0 })) : ue("", !0),
|
|
2194
|
-
E(i) ? E(g) ? (b(),
|
|
2211
|
+
E(i) ? E(g) ? (b(), $("div", ge({ key: 3 }, p.$attrs, {
|
|
2195
2212
|
title: E(v),
|
|
2196
2213
|
class: "tip-wrap"
|
|
2197
2214
|
}), [
|
|
2198
|
-
Me(
|
|
2215
|
+
Me(Ne, {
|
|
2199
2216
|
class: "bad-image",
|
|
2200
2217
|
name: e.badImageIconName
|
|
2201
2218
|
}, null, 8, ["name"])
|
|
2202
|
-
], 16,
|
|
2219
|
+
], 16, Mo)) : Ee(p.$slots, "default", {
|
|
2203
2220
|
key: 2,
|
|
2204
2221
|
src: E(v),
|
|
2205
|
-
onLoad:
|
|
2222
|
+
onLoad: F,
|
|
2206
2223
|
onError: O
|
|
2207
2224
|
}, () => [
|
|
2208
|
-
E(h) ? ve((b(),
|
|
2225
|
+
E(h) ? ve((b(), $("img", ge({ key: 0 }, p.$attrs, {
|
|
2209
2226
|
ref_key: "thumbnailRef",
|
|
2210
2227
|
ref: l,
|
|
2211
|
-
onLoad: z[0] || (z[0] = (
|
|
2212
|
-
onError: z[1] || (z[1] = (
|
|
2228
|
+
onLoad: z[0] || (z[0] = (Y) => F()),
|
|
2229
|
+
onError: z[1] || (z[1] = (Y) => O()),
|
|
2213
2230
|
src: e.thumbnail
|
|
2214
|
-
}), null, 16,
|
|
2231
|
+
}), null, 16, fo)), [
|
|
2215
2232
|
[E(r)]
|
|
2216
2233
|
]) : ue("", !0),
|
|
2217
|
-
e.isShowSrc || a.value ? ve((b(),
|
|
2234
|
+
e.isShowSrc || a.value ? ve((b(), $("img", ge({ key: 1 }, p.$attrs, {
|
|
2218
2235
|
ref_key: "srcRef",
|
|
2219
2236
|
ref: o,
|
|
2220
2237
|
class: "src-class",
|
|
2221
|
-
onLoad: z[2] || (z[2] = (
|
|
2222
|
-
onError: z[3] || (z[3] = (
|
|
2238
|
+
onLoad: z[2] || (z[2] = (Y) => F(!0)),
|
|
2239
|
+
onError: z[3] || (z[3] = (Y) => O(!0)),
|
|
2223
2240
|
src: E(v)
|
|
2224
|
-
}), null, 16,
|
|
2241
|
+
}), null, 16, vo)), [
|
|
2225
2242
|
[E(r)],
|
|
2226
2243
|
[Ae, a.value]
|
|
2227
2244
|
]) : ue("", !0)
|
|
2228
|
-
], !0) : (b(),
|
|
2245
|
+
], !0) : (b(), $("div", ge({ key: 1 }, p.$attrs, {
|
|
2229
2246
|
title: E(v),
|
|
2230
2247
|
class: "tip-wrap"
|
|
2231
2248
|
}), [
|
|
2232
|
-
Me(
|
|
2249
|
+
Me(Ne, {
|
|
2233
2250
|
class: "no-support-icon",
|
|
2234
2251
|
name: e.noSupportIconName
|
|
2235
2252
|
}, null, 8, ["name"]),
|
|
2236
|
-
|
|
2237
|
-
], 16,
|
|
2253
|
+
co
|
|
2254
|
+
], 16, ro))
|
|
2238
2255
|
], 64));
|
|
2239
2256
|
}
|
|
2240
2257
|
});
|
|
2241
|
-
const
|
|
2258
|
+
const Uo = /* @__PURE__ */ ee(ho, [["__scopeId", "data-v-91e59dea"]]), mo = ["title"], yo = ["src"], po = ["title"], Do = /* @__PURE__ */ q({
|
|
2242
2259
|
__name: "Thumbnail",
|
|
2243
2260
|
props: {
|
|
2244
2261
|
src: null,
|
|
@@ -2246,78 +2263,78 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-91e59dea"]]), ho = ["ti
|
|
|
2246
2263
|
},
|
|
2247
2264
|
setup(e) {
|
|
2248
2265
|
const t = e, n = m(!1), { src: o, mime: l } = vt(t), { imgSrc: s, hasError: a, isSupport: f, handleError: u } = Dt(o, l), { vImageCancel: d } = Tt();
|
|
2249
|
-
return (v, i) => E(f) ? E(a) ? (b(),
|
|
2266
|
+
return (v, i) => E(f) ? E(a) ? (b(), $("div", {
|
|
2250
2267
|
key: 2,
|
|
2251
2268
|
title: E(s),
|
|
2252
2269
|
class: "icon-wrap"
|
|
2253
2270
|
}, [
|
|
2254
|
-
Me(
|
|
2271
|
+
Me(Ne, {
|
|
2255
2272
|
class: "icon",
|
|
2256
2273
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2257
2274
|
})
|
|
2258
|
-
], 8,
|
|
2275
|
+
], 8, po)) : ve((b(), $("img", {
|
|
2259
2276
|
key: 1,
|
|
2260
2277
|
fetchpriority: "high",
|
|
2261
2278
|
onLoad: i[0] || (i[0] = (g) => n.value = !0),
|
|
2262
2279
|
onError: i[1] || (i[1] = (...g) => E(u) && E(u)(...g)),
|
|
2263
2280
|
src: E(s)
|
|
2264
|
-
}, null, 40,
|
|
2281
|
+
}, null, 40, yo)), [
|
|
2265
2282
|
[E(d)],
|
|
2266
2283
|
[Ae, n.value]
|
|
2267
|
-
]) : (b(),
|
|
2284
|
+
]) : (b(), $("div", {
|
|
2268
2285
|
key: 0,
|
|
2269
2286
|
title: E(s),
|
|
2270
2287
|
class: "icon-wrap"
|
|
2271
2288
|
}, [
|
|
2272
|
-
Me(
|
|
2289
|
+
Me(Ne, {
|
|
2273
2290
|
class: "icon",
|
|
2274
2291
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2275
2292
|
})
|
|
2276
|
-
], 8,
|
|
2293
|
+
], 8, mo));
|
|
2277
2294
|
}
|
|
2278
2295
|
});
|
|
2279
|
-
const
|
|
2296
|
+
const Ro = /* @__PURE__ */ ee(Do, [["__scopeId", "data-v-5a7af152"]]);
|
|
2280
2297
|
export {
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2298
|
+
an as DefaultLoading,
|
|
2299
|
+
Uo as Image,
|
|
2300
|
+
Bo as Loading,
|
|
2301
|
+
Dn as LoadingToast,
|
|
2302
|
+
xo as PageLoading,
|
|
2303
|
+
Vn as PullRefresh,
|
|
2304
|
+
Qo as ScrollBar,
|
|
2305
|
+
Ne as SvgIcon,
|
|
2306
|
+
Ro as Thumbnail,
|
|
2307
|
+
ko as ToastCreator,
|
|
2308
|
+
Yo as VirtualList,
|
|
2292
2309
|
Ze as allSelectedKey,
|
|
2293
|
-
|
|
2294
|
-
|
|
2310
|
+
Jt as closeDialogKey,
|
|
2311
|
+
Lo as dialogController,
|
|
2295
2312
|
Se as getTransform,
|
|
2296
2313
|
qe as isAllSelectedKey,
|
|
2297
2314
|
Xe as isSelectedKey,
|
|
2298
|
-
|
|
2315
|
+
xn as once,
|
|
2299
2316
|
Ke as selectAllKey,
|
|
2300
2317
|
Ve as selectKey,
|
|
2301
2318
|
Je as selectedCountKey,
|
|
2302
|
-
|
|
2319
|
+
Fe as toggleAllKey,
|
|
2303
2320
|
We as toggleKey,
|
|
2304
2321
|
ye as unselectAllKey,
|
|
2305
2322
|
Ge as unselectKey,
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2323
|
+
bo as useBackPress,
|
|
2324
|
+
Co as useDelayAsync,
|
|
2325
|
+
jo as useDelayLoad,
|
|
2309
2326
|
yt as useDelayLoadComp,
|
|
2310
|
-
|
|
2327
|
+
_o as useDownDrag,
|
|
2311
2328
|
mt as useDragSelect,
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2329
|
+
zo as useDragSelectByMobile,
|
|
2330
|
+
Ao as useDragSelectByPc,
|
|
2331
|
+
jn as useRouterActivated,
|
|
2332
|
+
Oo as useScaleImageByMobile,
|
|
2333
|
+
So as useScaleImageByPc,
|
|
2334
|
+
Io as useSelectable,
|
|
2335
|
+
Eo as useSelectableByBase,
|
|
2319
2336
|
No as useSelectableInjectors,
|
|
2320
|
-
|
|
2321
|
-
|
|
2337
|
+
qt as useVirtualList,
|
|
2338
|
+
wo as vDebounceClick,
|
|
2322
2339
|
kt as vSingleClick
|
|
2323
2340
|
};
|