@lazycatcloud/lzc-toolkit 0.0.178 → 0.0.180
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 +235 -248
- package/dist/index.umd.js +4 -4
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as ct, watchEffect as At, readonly as dt, getCurrentScope as zt, onScopeDispose as Lt, onMounted as re, nextTick as ve, ref as
|
|
1
|
+
import { shallowRef as ct, watchEffect as At, readonly as dt, getCurrentScope as zt, onScopeDispose as Lt, onMounted as re, nextTick as ve, ref as m, watch as K, customRef as jt, unref as z, isRef as xt, getCurrentInstance as Ye, onUpdated as Ct, computed as I, reactive as Ne, onUnmounted as ft, inject as ne, provide as F, defineComponent as q, h as ue, render as ye, openBlock as B, createBlock as Ie, Transition as Be, withCtx as Ue, withDirectives as Me, createElementBlock as H, normalizeClass as se, createElementVNode as Y, withModifiers as me, renderSlot as Ae, createCommentVNode as ce, useCssVars as Re, normalizeProps as _e, guardReactiveProps as be, pushScopeId as De, popScopeId as Te, normalizeStyle as G, toDisplayString as $e, vShow as ze, createVNode as ge, onBeforeUnmount as vt, onActivated as Mt, onBeforeMount as St, onDeactivated as Ot, useSlots as _t, toRef as bt, Fragment as ke, mergeProps as he, renderList as kt, toRefs as gt } from "vue";
|
|
2
2
|
const Qt = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
@@ -40,7 +40,7 @@ function Yt(e, t) {
|
|
|
40
40
|
}
|
|
41
41
|
function Bt(e, t) {
|
|
42
42
|
let n, o, l;
|
|
43
|
-
const s =
|
|
43
|
+
const s = m(!0), a = () => {
|
|
44
44
|
s.value = !0, l();
|
|
45
45
|
};
|
|
46
46
|
K(e, a, { flush: "sync" });
|
|
@@ -96,9 +96,9 @@ function Ht(...e) {
|
|
|
96
96
|
};
|
|
97
97
|
return (M) => {
|
|
98
98
|
const f = ee(a), i = Date.now() - t, p = () => s = M();
|
|
99
|
-
return v(), f <= 0 ? (t = Date.now(), p()) : (i > f && (u || !o) ? (t = Date.now(), p()) : c && (s = new Promise((
|
|
100
|
-
l = d ? g :
|
|
101
|
-
t = Date.now(), o = !0,
|
|
99
|
+
return v(), f <= 0 ? (t = Date.now(), p()) : (i > f && (u || !o) ? (t = Date.now(), p()) : c && (s = new Promise((h, g) => {
|
|
100
|
+
l = d ? g : h, n = setTimeout(() => {
|
|
101
|
+
t = Date.now(), o = !0, h(p()), v();
|
|
102
102
|
}, Math.max(0, f - i));
|
|
103
103
|
})), !u && !n && (n = setTimeout(() => o = !0, f)), o = !1, s);
|
|
104
104
|
};
|
|
@@ -127,7 +127,7 @@ function ie(e) {
|
|
|
127
127
|
return (t = n?.$el) != null ? t : n;
|
|
128
128
|
}
|
|
129
129
|
const je = ht ? window : void 0, Ft = ht ? window.document : void 0;
|
|
130
|
-
function
|
|
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 = je) : [t, n, o, l] = e, !t)
|
|
133
133
|
return de;
|
|
@@ -151,7 +151,7 @@ function Ne(...e) {
|
|
|
151
151
|
return He(d), d;
|
|
152
152
|
}
|
|
153
153
|
function Wt() {
|
|
154
|
-
const e =
|
|
154
|
+
const e = m(!1), t = Ye();
|
|
155
155
|
return t && re(() => {
|
|
156
156
|
e.value = !0;
|
|
157
157
|
}, t), e;
|
|
@@ -194,7 +194,7 @@ function Vt(e, t = { width: 0, height: 0 }, n = {}) {
|
|
|
194
194
|
const { window: o = je, box: l = "content-box" } = n, s = I(() => {
|
|
195
195
|
var r, M;
|
|
196
196
|
return (M = (r = ie(e)) == null ? void 0 : r.namespaceURI) == null ? void 0 : M.includes("svg");
|
|
197
|
-
}), a =
|
|
197
|
+
}), a = m(t.width), c = m(t.height), { stop: u } = Fe(
|
|
198
198
|
e,
|
|
199
199
|
([r]) => {
|
|
200
200
|
const M = l === "border-box" ? r.borderBoxSize : l === "content-box" ? r.contentBoxSize : r.devicePixelContentBoxSize;
|
|
@@ -253,7 +253,7 @@ function Kt(e, t = {}) {
|
|
|
253
253
|
onError: v = (D) => {
|
|
254
254
|
console.error(D);
|
|
255
255
|
}
|
|
256
|
-
} = t, r =
|
|
256
|
+
} = t, r = m(0), M = m(0), f = I({
|
|
257
257
|
get() {
|
|
258
258
|
return r.value;
|
|
259
259
|
},
|
|
@@ -272,33 +272,33 @@ function Kt(e, t = {}) {
|
|
|
272
272
|
var R, Z, y;
|
|
273
273
|
if (!d)
|
|
274
274
|
return;
|
|
275
|
-
const
|
|
276
|
-
!
|
|
275
|
+
const w = ee(e);
|
|
276
|
+
!w || (y = w instanceof Document ? d.document.body : w) == null || y.scrollTo({
|
|
277
277
|
top: (R = ee(L)) != null ? R : i.value,
|
|
278
278
|
left: (Z = ee(D)) != null ? Z : f.value,
|
|
279
279
|
behavior: ee(u)
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
|
-
const
|
|
282
|
+
const h = m(!1), g = Ne({
|
|
283
283
|
left: !0,
|
|
284
284
|
right: !1,
|
|
285
285
|
top: !0,
|
|
286
286
|
bottom: !1
|
|
287
|
-
}), T =
|
|
287
|
+
}), T = Ne({
|
|
288
288
|
left: !1,
|
|
289
289
|
right: !1,
|
|
290
290
|
top: !1,
|
|
291
291
|
bottom: !1
|
|
292
|
-
}),
|
|
293
|
-
!
|
|
294
|
-
}, x = Le(
|
|
292
|
+
}), N = (D) => {
|
|
293
|
+
!h.value || (h.value = !1, T.left = !1, T.right = !1, T.top = !1, T.bottom = !1, l(D));
|
|
294
|
+
}, x = Le(N, n + o), U = (D) => {
|
|
295
295
|
var L;
|
|
296
296
|
if (!d)
|
|
297
297
|
return;
|
|
298
|
-
const R = ((L = D?.document) == null ? void 0 : L.documentElement) || D?.documentElement || ie(D), { display: Z, flexDirection: y } = getComputedStyle(R),
|
|
299
|
-
T.left =
|
|
300
|
-
const C = Math.abs(
|
|
301
|
-
Z === "flex" && y === "row-reverse" ? (g.left = k, g.right = C) : (g.left = C, g.right = k), r.value =
|
|
298
|
+
const R = ((L = D?.document) == null ? void 0 : L.documentElement) || D?.documentElement || ie(D), { display: Z, flexDirection: y } = getComputedStyle(R), w = R.scrollLeft;
|
|
299
|
+
T.left = w < r.value, T.right = w > r.value;
|
|
300
|
+
const C = Math.abs(w) <= (a.left || 0), k = Math.abs(w) + R.clientWidth >= R.scrollWidth - (a.right || 0) - st;
|
|
301
|
+
Z === "flex" && y === "row-reverse" ? (g.left = k, g.right = C) : (g.left = C, g.right = k), r.value = w;
|
|
302
302
|
let _ = R.scrollTop;
|
|
303
303
|
D === d.document && !_ && (_ = d.document.body.scrollTop), T.top = _ < M.value, T.bottom = _ > M.value;
|
|
304
304
|
const E = Math.abs(_) <= (a.top || 0), A = Math.abs(_) + R.clientHeight >= R.scrollHeight - (a.bottom || 0) - st;
|
|
@@ -308,9 +308,9 @@ function Kt(e, t = {}) {
|
|
|
308
308
|
if (!d)
|
|
309
309
|
return;
|
|
310
310
|
const R = (L = D.target.documentElement) != null ? L : D.target;
|
|
311
|
-
U(R),
|
|
311
|
+
U(R), h.value = !0, x(D), s(D);
|
|
312
312
|
};
|
|
313
|
-
return
|
|
313
|
+
return we(
|
|
314
314
|
e,
|
|
315
315
|
"scroll",
|
|
316
316
|
n ? Qe(S, n, !0, !1) : S,
|
|
@@ -324,15 +324,15 @@ function Kt(e, t = {}) {
|
|
|
324
324
|
} catch (D) {
|
|
325
325
|
v(D);
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), we(
|
|
328
328
|
e,
|
|
329
329
|
"scrollend",
|
|
330
|
-
|
|
330
|
+
N,
|
|
331
331
|
c
|
|
332
332
|
), {
|
|
333
333
|
x: f,
|
|
334
334
|
y: i,
|
|
335
|
-
isScrolling:
|
|
335
|
+
isScrolling: h,
|
|
336
336
|
arrivedState: g,
|
|
337
337
|
directions: T,
|
|
338
338
|
measure() {
|
|
@@ -343,12 +343,12 @@ function Kt(e, t = {}) {
|
|
|
343
343
|
}
|
|
344
344
|
let Gt = 0;
|
|
345
345
|
function We(e, t = {}) {
|
|
346
|
-
const n =
|
|
346
|
+
const n = m(!1), {
|
|
347
347
|
document: o = Ft,
|
|
348
348
|
immediate: l = !0,
|
|
349
349
|
manual: s = !1,
|
|
350
350
|
id: a = `vueuse_styletag_${++Gt}`
|
|
351
|
-
} = t, c =
|
|
351
|
+
} = t, c = m(e);
|
|
352
352
|
let u = () => {
|
|
353
353
|
};
|
|
354
354
|
const d = () => {
|
|
@@ -382,14 +382,14 @@ function qt(e, t, n) {
|
|
|
382
382
|
};
|
|
383
383
|
}
|
|
384
384
|
function Jt(e, t) {
|
|
385
|
-
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s =
|
|
385
|
+
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = Vt(s), c = m(!0), u = Le(U, 100);
|
|
386
386
|
let d;
|
|
387
|
-
const v = ct(e), r =
|
|
387
|
+
const v = ct(e), r = m(0), M = m({ start: 0, end: 10 }), f = m({ start: 0, end: l });
|
|
388
388
|
let i = 0;
|
|
389
|
-
const p =
|
|
389
|
+
const p = m([]), h = I(() => {
|
|
390
390
|
let { sum: E, height: A } = { sum: 0, height: 0 };
|
|
391
391
|
return v.value.map((Q, $) => (typeof o == "number" ? A = o : A = o($), E += A, { height: A, sum: E }));
|
|
392
|
-
}), g = I(() => Z(M.value.start)), T = I(() => typeof o == "number" ?
|
|
392
|
+
}), g = I(() => Z(M.value.start)), T = I(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), N = I(() => {
|
|
393
393
|
const { start: E, end: A } = f.value;
|
|
394
394
|
return p.value.slice(E, A);
|
|
395
395
|
});
|
|
@@ -434,29 +434,29 @@ function Jt(e, t) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
function L(E) {
|
|
437
|
-
let A = 0, Q =
|
|
437
|
+
let A = 0, Q = h.value.length - 1, $ = -1;
|
|
438
438
|
for (; A <= Q; ) {
|
|
439
439
|
const b = Math.floor((A + Q) / 2);
|
|
440
|
-
|
|
440
|
+
h.value[b].sum >= E ? ($ = b, Q = b - 1) : A = b + 1;
|
|
441
441
|
}
|
|
442
442
|
return Math.max(0, $);
|
|
443
443
|
}
|
|
444
444
|
function R(E) {
|
|
445
445
|
let A = 0, Q = 0;
|
|
446
|
-
for (let $ = E; $ <
|
|
446
|
+
for (let $ = E; $ < h.value.length && (A++, Q += h.value[$].height, !(Q >= a.height.value)); $++)
|
|
447
447
|
;
|
|
448
448
|
return A;
|
|
449
449
|
}
|
|
450
450
|
function Z(E) {
|
|
451
451
|
if (typeof o == "number")
|
|
452
452
|
return E * o;
|
|
453
|
-
let A =
|
|
453
|
+
let A = h.value[E];
|
|
454
454
|
return A ? A.sum - A.height : 0;
|
|
455
455
|
}
|
|
456
456
|
function y(E) {
|
|
457
|
-
return
|
|
457
|
+
return h.value[E] || { sum: 0, height: 0 };
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function w(E, A = "smooth") {
|
|
460
460
|
if (s.value) {
|
|
461
461
|
const { reset: Q } = qt(
|
|
462
462
|
s.value,
|
|
@@ -486,12 +486,12 @@ function Jt(e, t) {
|
|
|
486
486
|
};
|
|
487
487
|
return {
|
|
488
488
|
list: p,
|
|
489
|
-
visiableList:
|
|
489
|
+
visiableList: N,
|
|
490
490
|
getItemHeightData: y,
|
|
491
491
|
getoffsetTopIndex: L,
|
|
492
492
|
totalHeight: T,
|
|
493
493
|
clientHeight: a.height,
|
|
494
|
-
scrollTo:
|
|
494
|
+
scrollTo: w,
|
|
495
495
|
scrollTop: r,
|
|
496
496
|
isScrollEnd: c,
|
|
497
497
|
containerProps: {
|
|
@@ -506,7 +506,7 @@ function Jt(e, t) {
|
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
const Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), Je = Symbol(), et = Symbol(), pe = Symbol(), tt = Symbol();
|
|
509
|
-
function
|
|
509
|
+
function wo() {
|
|
510
510
|
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
511
511
|
voidFn: (p) => {
|
|
512
512
|
},
|
|
@@ -528,12 +528,12 @@ function Eo() {
|
|
|
528
528
|
selectedCount: i
|
|
529
529
|
};
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
const o =
|
|
531
|
+
function Eo(e, t, n = { deep: !0 }) {
|
|
532
|
+
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
|
|
533
533
|
K(
|
|
534
534
|
e,
|
|
535
535
|
(g) => {
|
|
536
|
-
s.value = g.reduce((T,
|
|
536
|
+
s.value = g.reduce((T, N) => (T.set(N[t], N), T), /* @__PURE__ */ new Map());
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
deep: n.deep,
|
|
@@ -546,8 +546,8 @@ function Io(e, t, n = { deep: !0 }) {
|
|
|
546
546
|
o.value && (g = Array.from(s.value.values()));
|
|
547
547
|
else if (l.value.size) {
|
|
548
548
|
let T;
|
|
549
|
-
l.value.forEach((
|
|
550
|
-
T = s.value.get(
|
|
549
|
+
l.value.forEach((N) => {
|
|
550
|
+
T = s.value.get(N), T && g.push(T);
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
553
|
return g;
|
|
@@ -559,8 +559,8 @@ function Io(e, t, n = { deep: !0 }) {
|
|
|
559
559
|
if (o.value != null)
|
|
560
560
|
g = o.value;
|
|
561
561
|
else {
|
|
562
|
-
const T = l.value.size,
|
|
563
|
-
g = T ==
|
|
562
|
+
const T = l.value.size, N = s.value.size;
|
|
563
|
+
g = T == N;
|
|
564
564
|
}
|
|
565
565
|
return g;
|
|
566
566
|
});
|
|
@@ -597,25 +597,25 @@ function Io(e, t, n = { deep: !0 }) {
|
|
|
597
597
|
});
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function h() {
|
|
601
601
|
const { value: g } = u;
|
|
602
602
|
g ? v() : d();
|
|
603
603
|
}
|
|
604
|
-
return F(Xe,
|
|
604
|
+
return F(Xe, h), F(Ze, p), F(Ve, f), F(Ke, a), F(Ge, r), F(qe, d), F(Je, M), F(et, u), F(pe, v), F(pe, v), F(tt, c), {
|
|
605
605
|
selected: a,
|
|
606
606
|
select: r,
|
|
607
607
|
selectAll: d,
|
|
608
608
|
unselect: M,
|
|
609
609
|
unselectAll: v,
|
|
610
610
|
toggle: p,
|
|
611
|
-
toggleAll:
|
|
611
|
+
toggleAll: h,
|
|
612
612
|
isSelected: f,
|
|
613
613
|
isAllSelected: u,
|
|
614
614
|
selectedCount: c
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
function
|
|
618
|
-
const t =
|
|
617
|
+
function Io(e) {
|
|
618
|
+
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = I(() => {
|
|
619
619
|
let i = [];
|
|
620
620
|
return t.value != null ? t.value && (i = e.value) : n.value.size && (i = Array.from(n.value.values())), i;
|
|
621
621
|
}), l = I(() => {
|
|
@@ -626,8 +626,8 @@ function Ao(e) {
|
|
|
626
626
|
if (t.value != null)
|
|
627
627
|
i = t.value;
|
|
628
628
|
else {
|
|
629
|
-
const p = n.value.size,
|
|
630
|
-
i = p ==
|
|
629
|
+
const p = n.value.size, h = e.value.length;
|
|
630
|
+
i = p == h;
|
|
631
631
|
}
|
|
632
632
|
return i;
|
|
633
633
|
});
|
|
@@ -700,24 +700,24 @@ function yt({
|
|
|
700
700
|
let c = {};
|
|
701
701
|
const u = I(
|
|
702
702
|
() => Qe(t === "colum" ? V : oe, 50)
|
|
703
|
-
), d = /* @__PURE__ */ new Set(), v =
|
|
704
|
-
(j) =>
|
|
705
|
-
),
|
|
703
|
+
), d = /* @__PURE__ */ new Set(), v = m(!0), r = m(), M = m(!1), f = m({ x: 0, y: 0 }), i = m({ x: 0, y: 0, scrollTop: 0 }), p = new ResizeObserver(
|
|
704
|
+
(j) => h.value = j[0].target.getBoundingClientRect()
|
|
705
|
+
), h = m({}), g = m({
|
|
706
706
|
top: 0,
|
|
707
707
|
height: 0,
|
|
708
708
|
sync(j = !1) {
|
|
709
709
|
g.value.top = r.value?.scrollTop || 0, j && (g.value.height = r.value?.scrollHeight || 0);
|
|
710
710
|
}
|
|
711
711
|
}), T = I(() => M.value ? {
|
|
712
|
-
left: Math.min(f.value.x, i.value.x) -
|
|
713
|
-
top: Math.min(f.value.y, i.value.y) -
|
|
712
|
+
left: Math.min(f.value.x, i.value.x) - h.value.left,
|
|
713
|
+
top: Math.min(f.value.y, i.value.y) - h.value.top,
|
|
714
714
|
width: Math.abs(f.value.x - i.value.x),
|
|
715
715
|
height: Math.abs(f.value.y - i.value.y)
|
|
716
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin:
|
|
716
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: N = 50, startSpeed: x = 30, maxSpeed: U = 30 } = n;
|
|
717
717
|
let S;
|
|
718
|
-
const D =
|
|
718
|
+
const D = N, L = x, R = U, Z = (j) => j ** 1;
|
|
719
719
|
let y = 0;
|
|
720
|
-
function
|
|
720
|
+
function w(j) {
|
|
721
721
|
if (cancelAnimationFrame(S), y = C(j), y = Math.max(
|
|
722
722
|
Math.min(y, R),
|
|
723
723
|
-R
|
|
@@ -725,14 +725,14 @@ function yt({
|
|
|
725
725
|
const O = r.value;
|
|
726
726
|
if (!O || !M.value)
|
|
727
727
|
return;
|
|
728
|
-
const X = g.value.height -
|
|
728
|
+
const X = g.value.height - h.value.height;
|
|
729
729
|
let W = g.value.top + Number(y);
|
|
730
|
-
W = Math.min(Math.max(0, W), X), O.scrollTop = W, _(), S = requestAnimationFrame(() =>
|
|
730
|
+
W = Math.min(Math.max(0, W), X), O.scrollTop = W, _(), S = requestAnimationFrame(() => w(j));
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
function C(j) {
|
|
734
734
|
if (r.value) {
|
|
735
|
-
const X =
|
|
735
|
+
const X = h.value, W = X.bottom - j;
|
|
736
736
|
if (W < D)
|
|
737
737
|
return L * Z(1 - W / D);
|
|
738
738
|
const le = j - X.top;
|
|
@@ -743,13 +743,13 @@ function yt({
|
|
|
743
743
|
}
|
|
744
744
|
function k(j) {
|
|
745
745
|
const O = { ...T.value, right: 0, bottom: 0 };
|
|
746
|
-
return O.left +=
|
|
746
|
+
return O.left += h.value.left, O.top += h.value.top - g.value.top, O.right = O.width + O.left, O.bottom = O.height + O.top, O.left < j.right && O.right > j.left && O.top < j.bottom && O.bottom > j.top;
|
|
747
747
|
}
|
|
748
748
|
function _() {
|
|
749
749
|
g.value.sync();
|
|
750
750
|
const { top: j, height: O } = g.value;
|
|
751
751
|
i.value.y = Math.min(
|
|
752
|
-
O +
|
|
752
|
+
O + h.value.top,
|
|
753
753
|
i.value.y + j - i.value.scrollTop
|
|
754
754
|
), i.value.scrollTop = j;
|
|
755
755
|
}
|
|
@@ -770,9 +770,9 @@ function yt({
|
|
|
770
770
|
f.value.x = j, f.value.y = X, i.value.x = j, i.value.y = X, r.value?.classList.add("disable-scroll-behavior"), d.clear();
|
|
771
771
|
}
|
|
772
772
|
function Q(j, O, X) {
|
|
773
|
-
!M.value || (v.value && t === "colum" && !P() && (a(), v.value = !1), X?.(),
|
|
773
|
+
!M.value || (v.value && t === "colum" && !P() && (a(), v.value = !1), X?.(), w(O), i.value.x = Math.max(j, h.value.left), i.value.y = Math.min(
|
|
774
774
|
O + g.value.top,
|
|
775
|
-
g.value.height +
|
|
775
|
+
g.value.height + h.value.top
|
|
776
776
|
), i.value.scrollTop = g.value.top, u.value());
|
|
777
777
|
}
|
|
778
778
|
function $() {
|
|
@@ -823,7 +823,7 @@ function yt({
|
|
|
823
823
|
observer: p
|
|
824
824
|
};
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ao(e) {
|
|
827
827
|
const t = yt(e), { observer: n, selectRange: o } = t, {
|
|
828
828
|
onScroll: l,
|
|
829
829
|
dragStart: s,
|
|
@@ -859,7 +859,7 @@ function zo(e) {
|
|
|
859
859
|
a(g.x, g.y);
|
|
860
860
|
}
|
|
861
861
|
function i(g) {
|
|
862
|
-
window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", i), g.composedPath().some((
|
|
862
|
+
window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", i), g.composedPath().some((N) => N?.getAttribute?.(e.attribute)) || u(), c();
|
|
863
863
|
}
|
|
864
864
|
function p(g) {
|
|
865
865
|
try {
|
|
@@ -872,12 +872,12 @@ function zo(e) {
|
|
|
872
872
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", T);
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function h() {
|
|
876
876
|
n.disconnect(), t.containerEl.value?.removeEventListener("scroll", l), t.containerEl.value?.removeEventListener("mousedown", M);
|
|
877
877
|
}
|
|
878
|
-
return { init: p, unMount:
|
|
878
|
+
return { init: p, unMount: h };
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function zo(e, t, n = 600) {
|
|
881
881
|
const o = yt({
|
|
882
882
|
...e,
|
|
883
883
|
selectWay: "row",
|
|
@@ -890,23 +890,23 @@ function Lo(e, t, n = 600) {
|
|
|
890
890
|
function v() {
|
|
891
891
|
clearTimeout(d);
|
|
892
892
|
}
|
|
893
|
-
function r(
|
|
894
|
-
v(),
|
|
895
|
-
const { clientX: T, clientY:
|
|
896
|
-
a(T,
|
|
893
|
+
function r(h) {
|
|
894
|
+
v(), h.composedPath().some((T) => !!T?.getAttribute?.(e.attribute)) && (d = setTimeout(() => {
|
|
895
|
+
const { clientX: T, clientY: N } = h.targetTouches[0];
|
|
896
|
+
a(T, N), t?.(), c(T, N, () => h.preventDefault()), h.preventDefault();
|
|
897
897
|
}, n));
|
|
898
898
|
}
|
|
899
|
-
function M(
|
|
899
|
+
function M(h) {
|
|
900
900
|
v();
|
|
901
|
-
const { clientX: g, clientY: T } =
|
|
902
|
-
c(g, T, () =>
|
|
901
|
+
const { clientX: g, clientY: T } = h.targetTouches[0];
|
|
902
|
+
c(g, T, () => h.preventDefault());
|
|
903
903
|
}
|
|
904
904
|
function f() {
|
|
905
905
|
v(), u();
|
|
906
906
|
}
|
|
907
|
-
function i(
|
|
907
|
+
function i(h) {
|
|
908
908
|
try {
|
|
909
|
-
if (!o.init(
|
|
909
|
+
if (!o.init(h))
|
|
910
910
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
911
911
|
if (!o.containerEl?.value)
|
|
912
912
|
return !1;
|
|
@@ -962,7 +962,7 @@ const te = (e, t) => {
|
|
|
962
962
|
n[o] = l;
|
|
963
963
|
return n;
|
|
964
964
|
}, nn = /* @__PURE__ */ te(tn, [["__scopeId", "data-v-3d61e60a"]]);
|
|
965
|
-
function
|
|
965
|
+
function Lo(e) {
|
|
966
966
|
function t(n, o) {
|
|
967
967
|
const l = document.createElement("div"), s = {
|
|
968
968
|
setup() {
|
|
@@ -1014,7 +1014,7 @@ function pt({
|
|
|
1014
1014
|
}
|
|
1015
1015
|
}) };
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function jo({
|
|
1018
1018
|
component: e,
|
|
1019
1019
|
componentProps: t,
|
|
1020
1020
|
delay: n = 300
|
|
@@ -1023,7 +1023,7 @@ function xo({
|
|
|
1023
1023
|
component: e,
|
|
1024
1024
|
componentProps: t,
|
|
1025
1025
|
delay: n
|
|
1026
|
-
}), l =
|
|
1026
|
+
}), l = m(!1);
|
|
1027
1027
|
function s() {
|
|
1028
1028
|
l.value = !0;
|
|
1029
1029
|
}
|
|
@@ -1073,7 +1073,7 @@ const un = /* @__PURE__ */ te(an, [["__scopeId", "data-v-92a1804d"]]), rn = "dat
|
|
|
1073
1073
|
]));
|
|
1074
1074
|
}
|
|
1075
1075
|
});
|
|
1076
|
-
const
|
|
1076
|
+
const xo = /* @__PURE__ */ te(fn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1077
1077
|
async function nt(e) {
|
|
1078
1078
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1079
1079
|
}
|
|
@@ -1170,7 +1170,7 @@ class Tn {
|
|
|
1170
1170
|
loadingToast;
|
|
1171
1171
|
el;
|
|
1172
1172
|
options;
|
|
1173
|
-
visible =
|
|
1173
|
+
visible = m(!1);
|
|
1174
1174
|
animateDuration = 300;
|
|
1175
1175
|
constructor(t) {
|
|
1176
1176
|
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = Dn;
|
|
@@ -1198,7 +1198,7 @@ class Tn {
|
|
|
1198
1198
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Co(e, t) {
|
|
1202
1202
|
const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay !== void 0 ? t.delay : 300, c = t?.hook !== void 0 ? t.hook : !0, u = {
|
|
1203
1203
|
...t,
|
|
1204
1204
|
showIcon: t?.showIcon !== !1,
|
|
@@ -1211,7 +1211,7 @@ function So(e, t) {
|
|
|
1211
1211
|
a,
|
|
1212
1212
|
u
|
|
1213
1213
|
);
|
|
1214
|
-
const d =
|
|
1214
|
+
const d = m(!1);
|
|
1215
1215
|
let v = null;
|
|
1216
1216
|
const r = new Tn(u);
|
|
1217
1217
|
async function M(...i) {
|
|
@@ -1243,11 +1243,11 @@ function So(e, t) {
|
|
|
1243
1243
|
close: f
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Nn(e, t) {
|
|
1247
1247
|
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1250
|
-
const e =
|
|
1249
|
+
function wn() {
|
|
1250
|
+
const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), c = () => a.value === "vertical", u = () => a.value === "horizontal", d = () => {
|
|
1251
1251
|
n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
|
|
1252
1252
|
};
|
|
1253
1253
|
function v(M, f) {
|
|
@@ -1256,7 +1256,7 @@ function Nn() {
|
|
|
1256
1256
|
function r(M, f) {
|
|
1257
1257
|
n.value = (M < 0 ? 0 : M) - e.value, o.value = f - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
|
|
1258
1258
|
const i = 10;
|
|
1259
|
-
(!a.value || l.value < i && s.value < i) && (a.value =
|
|
1259
|
+
(!a.value || l.value < i && s.value < i) && (a.value = Nn(l.value, s.value));
|
|
1260
1260
|
}
|
|
1261
1261
|
return {
|
|
1262
1262
|
move: r,
|
|
@@ -1289,7 +1289,7 @@ function In(e) {
|
|
|
1289
1289
|
return { startTap: l, checkTap: s };
|
|
1290
1290
|
}
|
|
1291
1291
|
function An(e, t) {
|
|
1292
|
-
const n =
|
|
1292
|
+
const n = m(!1);
|
|
1293
1293
|
function o() {
|
|
1294
1294
|
n.value || (n.value = !0, z(e)?.addEventListener("transitionend", l));
|
|
1295
1295
|
}
|
|
@@ -1332,16 +1332,16 @@ function jn(e) {
|
|
|
1332
1332
|
};
|
|
1333
1333
|
}
|
|
1334
1334
|
function Dt(e) {
|
|
1335
|
-
const t =
|
|
1335
|
+
const t = m(!1), n = m(1), o = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }), c = m({ width: 0, height: 0 }), u = Ne({
|
|
1336
1336
|
level: 1,
|
|
1337
1337
|
offsetX: 0,
|
|
1338
1338
|
offsetY: 0,
|
|
1339
1339
|
zooming: !1,
|
|
1340
1340
|
preview: !0,
|
|
1341
1341
|
lastCenter: { x: 0, y: 0 }
|
|
1342
|
-
}), d =
|
|
1342
|
+
}), d = m({}), v = wn(), r = An(s, {
|
|
1343
1343
|
onComplate() {
|
|
1344
|
-
u.preview ||
|
|
1344
|
+
u.preview || h();
|
|
1345
1345
|
}
|
|
1346
1346
|
}), M = In({
|
|
1347
1347
|
onTap() {
|
|
@@ -1356,32 +1356,32 @@ function Dt(e) {
|
|
|
1356
1356
|
});
|
|
1357
1357
|
Fe(s, (y) => f(y)), K(
|
|
1358
1358
|
[l, s],
|
|
1359
|
-
([y,
|
|
1360
|
-
i(y,
|
|
1359
|
+
([y, w]) => {
|
|
1360
|
+
i(y, w);
|
|
1361
1361
|
},
|
|
1362
1362
|
{ immediate: !0 }
|
|
1363
1363
|
);
|
|
1364
1364
|
async function f(y) {
|
|
1365
|
-
const [
|
|
1366
|
-
|
|
1365
|
+
const [w] = y;
|
|
1366
|
+
w.contentRect.width == c.value.width && w.contentRect.height == c.value.height || (await i(l.value), await h(u.level, !0));
|
|
1367
1367
|
}
|
|
1368
|
-
async function i(y,
|
|
1369
|
-
await L(y,
|
|
1368
|
+
async function i(y, w) {
|
|
1369
|
+
await L(y, w), y && R();
|
|
1370
1370
|
}
|
|
1371
1371
|
async function p(y) {
|
|
1372
1372
|
if (!u.preview)
|
|
1373
1373
|
return;
|
|
1374
1374
|
u.preview = !1, y = y ?? u.level;
|
|
1375
|
-
const
|
|
1376
|
-
if (!
|
|
1375
|
+
const w = s.value;
|
|
1376
|
+
if (!w)
|
|
1377
1377
|
return;
|
|
1378
|
-
const { scrollTop: C, scrollLeft: k } =
|
|
1379
|
-
|
|
1378
|
+
const { scrollTop: C, scrollLeft: k } = w, { width: _, height: E } = a.value, { scaleW: A, scaleH: Q } = S(y), { top: $, left: b } = D(A, Q), P = b != 0 ? b : k * -1, J = $ != 0 ? $ : C * -1;
|
|
1379
|
+
w.scrollTop = 0, w.scrollLeft = 0;
|
|
1380
1380
|
const { value: V } = d;
|
|
1381
1381
|
V.width = `${_}px`, V.height = `${E}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = Oe(P, J, y), d.value = V, await ve(), u.offsetX = P, u.offsetY = J, await nt(20);
|
|
1382
1382
|
}
|
|
1383
|
-
async function
|
|
1384
|
-
if (!
|
|
1383
|
+
async function h(y, w) {
|
|
1384
|
+
if (!w && u.preview)
|
|
1385
1385
|
return;
|
|
1386
1386
|
u.preview = !0, y = y ?? u.level;
|
|
1387
1387
|
const { value: C } = d, { scaleW: k, scaleH: _ } = S(y), { left: E, top: A } = D(k, _);
|
|
@@ -1392,60 +1392,60 @@ function Dt(e) {
|
|
|
1392
1392
|
const { offsetX: $, offsetY: b } = u;
|
|
1393
1393
|
$ < 0 && (Q.scrollLeft = Math.abs($)), b < 0 && (Q.scrollTop = Math.abs(b));
|
|
1394
1394
|
}
|
|
1395
|
-
async function g(y,
|
|
1395
|
+
async function g(y, w, C) {
|
|
1396
1396
|
if (t.value || (y = ae(y), y = Se(
|
|
1397
1397
|
y,
|
|
1398
1398
|
n.value - n.value * 0.5,
|
|
1399
1399
|
o.value + o.value * 0.5
|
|
1400
1400
|
), y == u.level))
|
|
1401
1401
|
return;
|
|
1402
|
-
u.preview && await p(),
|
|
1402
|
+
u.preview && await p(), w || (w = { x: v.startX.value, y: v.startY.value });
|
|
1403
1403
|
const { value: k } = d, { width: _, height: E } = a.value, { scaleW: A, scaleH: Q } = S(y), { top: $, left: b } = D(A, Q), P = y / u.level, J = {
|
|
1404
1404
|
left: Math.abs(_ * y - c.value.width) * -1,
|
|
1405
1405
|
top: Math.abs(E * y - c.value.height) * -1,
|
|
1406
1406
|
right: b,
|
|
1407
1407
|
bottom: $
|
|
1408
1408
|
};
|
|
1409
|
-
let V = b != 0 ? b : (u.offsetX -
|
|
1409
|
+
let V = b != 0 ? b : (u.offsetX - w.x) * P + w.x, oe = $ != 0 ? $ : (u.offsetY - w.y) * P + w.y;
|
|
1410
1410
|
V = ae(Se(V, J.left, J.right)), oe = ae(Se(oe, J.top, J.bottom)), k.width = `${_}px`, k.height = `${E}px`, k.transitionDuration = C ? Ln(y) : "0s", k.transform = Oe(V, oe, y), u.offsetX = V, u.offsetY = oe, u.level = y, d.value = k, await ve(), C && r.startTransition(), e.onScale?.(y);
|
|
1411
1411
|
}
|
|
1412
1412
|
function T() {
|
|
1413
1413
|
const y = u.level > 1 ? 1 : U();
|
|
1414
1414
|
g(y, void 0, !0);
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1416
|
+
function N(y, w) {
|
|
1417
1417
|
if (!u.preview)
|
|
1418
1418
|
return;
|
|
1419
1419
|
const C = s.value;
|
|
1420
1420
|
!C || C.scrollTo({
|
|
1421
1421
|
left: u.offsetX - y,
|
|
1422
|
-
top: u.offsetY -
|
|
1422
|
+
top: u.offsetY - w
|
|
1423
1423
|
});
|
|
1424
1424
|
}
|
|
1425
1425
|
async function x() {
|
|
1426
|
-
u.level >= n.value && u.level <= o.value ? u.zooming && await
|
|
1426
|
+
u.level >= n.value && u.level <= o.value ? u.zooming && await h() : u.level < n.value ? await g(n.value, void 0, !0) : u.level > o.value && await g(o.value, u.lastCenter, !0), u.zooming = !1;
|
|
1427
1427
|
}
|
|
1428
1428
|
function U() {
|
|
1429
|
-
const { width: y, height:
|
|
1429
|
+
const { width: y, height: w } = a.value, { width: C, height: k } = c.value, _ = 2.5;
|
|
1430
1430
|
let E;
|
|
1431
|
-
return
|
|
1431
|
+
return w == k ? (E = C / y, E - 1 < 0.1 && (E = _)) : E = Math.max(_, C / y, k / w), E;
|
|
1432
1432
|
}
|
|
1433
1433
|
function S(y) {
|
|
1434
|
-
const { width:
|
|
1434
|
+
const { width: w, height: C } = a.value;
|
|
1435
1435
|
return {
|
|
1436
|
-
scaleW: ae(y *
|
|
1436
|
+
scaleW: ae(y * w),
|
|
1437
1437
|
scaleH: ae(y * C)
|
|
1438
1438
|
};
|
|
1439
1439
|
}
|
|
1440
|
-
function D(y,
|
|
1441
|
-
const { width: C, height: k } = c.value, _ = Math.max(0, (k -
|
|
1440
|
+
function D(y, w) {
|
|
1441
|
+
const { width: C, height: k } = c.value, _ = Math.max(0, (k - w) * 0.5), E = Math.max(0, (C - y) * 0.5);
|
|
1442
1442
|
return { top: _, left: E };
|
|
1443
1443
|
}
|
|
1444
|
-
async function L(y,
|
|
1445
|
-
if (y = y ?? l.value,
|
|
1444
|
+
async function L(y, w) {
|
|
1445
|
+
if (y = y ?? l.value, w = w ?? s.value, !w)
|
|
1446
1446
|
return;
|
|
1447
1447
|
let C, { clientWidth: k = 0, clientHeight: _ = 0 } = y || {};
|
|
1448
|
-
const { clientWidth: E, clientHeight: A } =
|
|
1448
|
+
const { clientWidth: E, clientHeight: A } = w;
|
|
1449
1449
|
if (y instanceof HTMLImageElement ? C = { width: y.naturalWidth, height: y.naturalHeight } : y instanceof HTMLVideoElement && (C = { width: y.videoWidth, height: y.videoHeight }), C) {
|
|
1450
1450
|
const Q = zn(
|
|
1451
1451
|
C.width,
|
|
@@ -1458,7 +1458,7 @@ function Dt(e) {
|
|
|
1458
1458
|
(k === 0 || _ === 0) && (k = a.value.width || E, _ = a.value.height || A), a.value = {
|
|
1459
1459
|
width: Math.min(k, E),
|
|
1460
1460
|
height: Math.min(_, A)
|
|
1461
|
-
}, c.value = { width: E, height: A };
|
|
1461
|
+
}, c.value = { width: E, height: A }, h(void 0, !0);
|
|
1462
1462
|
}
|
|
1463
1463
|
function R() {
|
|
1464
1464
|
const y = U();
|
|
@@ -1476,8 +1476,8 @@ function Dt(e) {
|
|
|
1476
1476
|
imageRef: l,
|
|
1477
1477
|
containerRef: s,
|
|
1478
1478
|
switchToZoom: p,
|
|
1479
|
-
switchToPreview:
|
|
1480
|
-
panTo:
|
|
1479
|
+
switchToPreview: h,
|
|
1480
|
+
panTo: N,
|
|
1481
1481
|
zoomTo: g,
|
|
1482
1482
|
zoomFinished: x,
|
|
1483
1483
|
toggleZoom: T,
|
|
@@ -1495,9 +1495,9 @@ function Tt(e, t) {
|
|
|
1495
1495
|
}
|
|
1496
1496
|
function r(M, f, i, p) {
|
|
1497
1497
|
a.measure();
|
|
1498
|
-
const { top:
|
|
1498
|
+
const { top: h, left: g, right: T, bottom: N } = a.arrivedState;
|
|
1499
1499
|
if (M == "start")
|
|
1500
|
-
u =
|
|
1500
|
+
u = h || g || T || N;
|
|
1501
1501
|
else if (c == 2)
|
|
1502
1502
|
u = !1;
|
|
1503
1503
|
else if (u) {
|
|
@@ -1506,7 +1506,7 @@ function Tt(e, t) {
|
|
|
1506
1506
|
u = !1;
|
|
1507
1507
|
else {
|
|
1508
1508
|
const x = o.startY.value < i;
|
|
1509
|
-
u =
|
|
1509
|
+
u = h && x || N && !x;
|
|
1510
1510
|
}
|
|
1511
1511
|
else if (o.direction.value == "horizontal") {
|
|
1512
1512
|
const x = o.startX.value < f;
|
|
@@ -1517,7 +1517,7 @@ function Tt(e, t) {
|
|
|
1517
1517
|
}
|
|
1518
1518
|
return { onSwipeEdge: r, setFingerNum: d, isEqualFingerNum: v };
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function So(e) {
|
|
1521
1521
|
const t = Dt({
|
|
1522
1522
|
onDoubleTap() {
|
|
1523
1523
|
t.toggleZoom();
|
|
@@ -1525,47 +1525,47 @@ function Oo(e) {
|
|
|
1525
1525
|
...e
|
|
1526
1526
|
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1527
1527
|
let a = !1, c = null;
|
|
1528
|
-
const u = { top: 0, left: 0 }, d = Le(
|
|
1529
|
-
|
|
1530
|
-
function M(
|
|
1531
|
-
const x =
|
|
1528
|
+
const u = { top: 0, left: 0 }, d = Le(h, 150), { onSwipeEdge: v } = Tt(t, e.onSwipeEdge), r = m({ top: 0, left: 0 });
|
|
1529
|
+
we("keyup", T), we("keydown", g);
|
|
1530
|
+
function M(N) {
|
|
1531
|
+
const x = N.target, { left: U, top: S } = x.getBoundingClientRect();
|
|
1532
1532
|
r.value.left = U, r.value.top = S, l.startTap();
|
|
1533
|
-
let D =
|
|
1534
|
-
o.start(D, L), v("start", D, L,
|
|
1533
|
+
let D = N.clientX - U, L = N.clientY - S;
|
|
1534
|
+
o.start(D, L), v("start", D, L, N), s.transitioning.value || (a = !0, u.left = U, u.top = S, n.offsetX = x.scrollLeft, n.offsetY = x.scrollTop), window.addEventListener("pointermove", f), window.addEventListener("pointerup", i);
|
|
1535
1535
|
}
|
|
1536
|
-
function f(
|
|
1536
|
+
function f(N) {
|
|
1537
1537
|
if (!a)
|
|
1538
1538
|
return;
|
|
1539
|
-
let x =
|
|
1540
|
-
o.move(x, U), v("move", x - r.value.left, U - r.value.top,
|
|
1539
|
+
let x = N.clientX, U = N.clientY;
|
|
1540
|
+
o.move(x, U), v("move", x - r.value.left, U - r.value.top, N), n.level !== 1 && t.panTo(
|
|
1541
1541
|
o.deltaX.value - u.left,
|
|
1542
1542
|
o.deltaY.value - u.top
|
|
1543
1543
|
);
|
|
1544
1544
|
}
|
|
1545
|
-
function i(
|
|
1546
|
-
v("end", o.offsetX.value, o.offsetY.value,
|
|
1545
|
+
function i(N) {
|
|
1546
|
+
v("end", o.offsetX.value, o.offsetY.value, N), l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", f), window.removeEventListener("pointerup", i);
|
|
1547
1547
|
}
|
|
1548
|
-
function p(
|
|
1549
|
-
if (!
|
|
1548
|
+
function p(N) {
|
|
1549
|
+
if (!N.ctrlKey)
|
|
1550
1550
|
return;
|
|
1551
|
-
n.zooming || (n.zooming = !0, c == "Control" && window.addEventListener("keyup",
|
|
1552
|
-
let x = -
|
|
1553
|
-
|
|
1551
|
+
n.zooming || (n.zooming = !0, c == "Control" && window.addEventListener("keyup", h)), N.preventDefault();
|
|
1552
|
+
let x = -N.deltaY;
|
|
1553
|
+
N.deltaMode === 1 ? x *= 0.05 : x *= N.deltaMode ? 1 : 2e-3, c != "Control" && (x *= 10), x = 2 ** x;
|
|
1554
1554
|
const U = n.level * x;
|
|
1555
|
-
n.lastCenter = { x:
|
|
1555
|
+
n.lastCenter = { x: N.offsetX, y: N.offsetY }, t.zoomTo(U, n.lastCenter), c != "Control" && d();
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1558
|
-
t.zoomFinished(), window.removeEventListener("keyup",
|
|
1557
|
+
function h() {
|
|
1558
|
+
t.zoomFinished(), window.removeEventListener("keyup", h);
|
|
1559
1559
|
}
|
|
1560
|
-
function g(
|
|
1561
|
-
c =
|
|
1560
|
+
function g(N) {
|
|
1561
|
+
c = N.key;
|
|
1562
1562
|
}
|
|
1563
1563
|
function T() {
|
|
1564
1564
|
c = null;
|
|
1565
1565
|
}
|
|
1566
1566
|
return { core: t, onPointerDown: M, onWheel: p };
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function Oo(e) {
|
|
1569
1569
|
const t = Dt({
|
|
1570
1570
|
onDoubleTap() {
|
|
1571
1571
|
t.toggleZoom();
|
|
@@ -1579,14 +1579,14 @@ function _o(e) {
|
|
|
1579
1579
|
async function v(f) {
|
|
1580
1580
|
const { touches: i } = f;
|
|
1581
1581
|
s(i.length), n.zooming = c(2), l.startTap();
|
|
1582
|
-
const { clientX: p, clientY:
|
|
1583
|
-
o.start(p,
|
|
1582
|
+
const { clientX: p, clientY: h } = i[0];
|
|
1583
|
+
o.start(p, h), a("start", p, h, f), n.zooming && (f.preventDefault(), u = n.level, d = ut(i), await t.switchToZoom(), n.lastCenter = jn(i));
|
|
1584
1584
|
}
|
|
1585
1585
|
async function r(f) {
|
|
1586
1586
|
const { touches: i } = f;
|
|
1587
1587
|
s(i.length);
|
|
1588
|
-
const { clientX: p, clientY:
|
|
1589
|
-
if (o.move(p,
|
|
1588
|
+
const { clientX: p, clientY: h } = i[0];
|
|
1589
|
+
if (o.move(p, h), a("move", p, h, f), n.zooming && c(2)) {
|
|
1590
1590
|
f.preventDefault();
|
|
1591
1591
|
const g = ut(i), T = u * g / d;
|
|
1592
1592
|
t.zoomTo(T, n.lastCenter);
|
|
@@ -1600,8 +1600,8 @@ function _o(e) {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
return { core: t, onTouchStart: v, onTouchMove: r, onTouchEnd: M };
|
|
1602
1602
|
}
|
|
1603
|
-
function
|
|
1604
|
-
const e =
|
|
1603
|
+
function _o() {
|
|
1604
|
+
const e = Ne({
|
|
1605
1605
|
scale: 1,
|
|
1606
1606
|
startX: 0,
|
|
1607
1607
|
startY: 0,
|
|
@@ -1622,7 +1622,7 @@ function bo() {
|
|
|
1622
1622
|
return { state: e, dragStart: t, dragMove: n, dragEnd: o };
|
|
1623
1623
|
}
|
|
1624
1624
|
function xn() {
|
|
1625
|
-
const e =
|
|
1625
|
+
const e = m(!1), t = m(!1);
|
|
1626
1626
|
return Mt(() => {
|
|
1627
1627
|
!t.value || (e.value = !0);
|
|
1628
1628
|
}), re(() => {
|
|
@@ -1639,7 +1639,7 @@ function Cn(e) {
|
|
|
1639
1639
|
t || (e(), t = !0);
|
|
1640
1640
|
};
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function bo(e) {
|
|
1643
1643
|
let t = null;
|
|
1644
1644
|
const { isActivated: n } = xn(), o = Cn(() => t = window.onBackPress);
|
|
1645
1645
|
function l() {
|
|
@@ -1666,7 +1666,7 @@ const Sn = ["onClick"], On = /* @__PURE__ */ q({
|
|
|
1666
1666
|
buttonClickEvent: null
|
|
1667
1667
|
},
|
|
1668
1668
|
setup(e) {
|
|
1669
|
-
const t = e, n =
|
|
1669
|
+
const t = e, n = m(), o = m(), l = m(), s = I(() => {
|
|
1670
1670
|
switch (t.position) {
|
|
1671
1671
|
case "top":
|
|
1672
1672
|
return 10;
|
|
@@ -1718,7 +1718,7 @@ const _n = /* @__PURE__ */ te(On, [["__scopeId", "data-v-25d39b90"]]), rt = {
|
|
|
1718
1718
|
buttonClickEvent: () => {
|
|
1719
1719
|
}
|
|
1720
1720
|
};
|
|
1721
|
-
class
|
|
1721
|
+
class ko {
|
|
1722
1722
|
options;
|
|
1723
1723
|
container;
|
|
1724
1724
|
constructor(t) {
|
|
@@ -1782,16 +1782,16 @@ function kn(e) {
|
|
|
1782
1782
|
performance: l = {},
|
|
1783
1783
|
maxHeightRatio: s = 0.9,
|
|
1784
1784
|
observeMethod: a = "classList"
|
|
1785
|
-
} = e, c =
|
|
1785
|
+
} = e, c = m(!0), u = Le(Z, 100);
|
|
1786
1786
|
let d, v = "";
|
|
1787
|
-
const r =
|
|
1787
|
+
const r = m(0), M = m(0), f = m(0), i = m({
|
|
1788
1788
|
top: 0,
|
|
1789
1789
|
scrollTop: 0,
|
|
1790
1790
|
scrollHeight: 0,
|
|
1791
1791
|
clientHeight: 0
|
|
1792
|
-
}), p =
|
|
1792
|
+
}), p = m({
|
|
1793
1793
|
clientHeight: 0
|
|
1794
|
-
}),
|
|
1794
|
+
}), h = I(() => !!M.value), g = I(() => i.value.scrollHeight > i.value.clientHeight), T = I(() => o ? i.value.clientHeight - U.value : i.value.clientHeight - p.value.clientHeight), N = I(() => i.value.scrollHeight - i.value.clientHeight), x = I(() => !i.value.clientHeight && !i.value.scrollHeight ? 1 : Math.max(
|
|
1795
1795
|
i.value.clientHeight / i.value.scrollHeight,
|
|
1796
1796
|
0.05
|
|
1797
1797
|
)), U = I(() => x.value > s ? 0 : x.value * i.value.clientHeight), S = I(() => ({
|
|
@@ -1810,24 +1810,24 @@ function kn(e) {
|
|
|
1810
1810
|
c.value = !1;
|
|
1811
1811
|
}
|
|
1812
1812
|
function Z() {
|
|
1813
|
-
|
|
1813
|
+
h.value || (c.value = !0);
|
|
1814
1814
|
}
|
|
1815
1815
|
function y(b) {
|
|
1816
|
-
if (!
|
|
1816
|
+
if (!h.value)
|
|
1817
1817
|
return;
|
|
1818
1818
|
let P = b.clientY - i.value.top - M.value;
|
|
1819
1819
|
P < 0 ? f.value = 0 : P >= T.value ? f.value = T.value : f.value = P, t.value.scrollTo({
|
|
1820
|
-
top: f.value / T.value *
|
|
1820
|
+
top: f.value / T.value * N.value
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1824
|
-
|
|
1823
|
+
function w() {
|
|
1824
|
+
h.value || C();
|
|
1825
1825
|
}
|
|
1826
1826
|
function C() {
|
|
1827
1827
|
cancelAnimationFrame(d), d = requestAnimationFrame(k);
|
|
1828
1828
|
}
|
|
1829
1829
|
function k() {
|
|
1830
|
-
t.value && (r.value = l.scrollTop?.value ?? t.value.scrollTop, f.value = r.value /
|
|
1830
|
+
t.value && (r.value = l.scrollTop?.value ?? t.value.scrollTop, f.value = r.value / N.value * T.value);
|
|
1831
1831
|
}
|
|
1832
1832
|
function _(b) {
|
|
1833
1833
|
let P = "addEventListener";
|
|
@@ -1852,7 +1852,7 @@ function kn(e) {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
function $() {
|
|
1854
1854
|
if (t.value && n.value) {
|
|
1855
|
-
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll",
|
|
1855
|
+
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", w, {
|
|
1856
1856
|
passive: !0
|
|
1857
1857
|
}), _("add");
|
|
1858
1858
|
const b = {};
|
|
@@ -1870,7 +1870,7 @@ function kn(e) {
|
|
|
1870
1870
|
R(), u();
|
|
1871
1871
|
}), {
|
|
1872
1872
|
isScrollEnd: c,
|
|
1873
|
-
isDragSlider:
|
|
1873
|
+
isDragSlider: h,
|
|
1874
1874
|
offsetTop: f,
|
|
1875
1875
|
scrollTop: r,
|
|
1876
1876
|
scrollable: g,
|
|
@@ -1891,13 +1891,13 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1891
1891
|
maxHeightRatio: { default: 0.9 }
|
|
1892
1892
|
},
|
|
1893
1893
|
setup(e, { expose: t }) {
|
|
1894
|
-
const n = e, o = !!_t().default, l =
|
|
1894
|
+
const n = e, o = !!_t().default, l = m(null), s = I(() => n.containerEl), a = kn({
|
|
1895
1895
|
containerEl: s,
|
|
1896
1896
|
sliderEl: l,
|
|
1897
1897
|
autoHeight: o ? n.autoHeight : !0,
|
|
1898
1898
|
performance: n.performance,
|
|
1899
1899
|
observeMethod: n.observeMethod
|
|
1900
|
-
}), { scrollable: c, isScrollEnd: u, sliderPos: d, heightRatio: v } = a, r =
|
|
1900
|
+
}), { scrollable: c, isScrollEnd: u, sliderPos: d, heightRatio: v } = a, r = m(!1), M = n.autoHide ? I(() => n.maxHeightRatio < v.value ? !1 : r.value || !u.value) : I(() => n.maxHeightRatio < v.value ? !1 : c.value), { load: f } = We(
|
|
1901
1901
|
`.hide-scrollbar {
|
|
1902
1902
|
scrollbar-width: none;
|
|
1903
1903
|
-ms-overflow-style: none;
|
|
@@ -1920,7 +1920,7 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1920
1920
|
function p() {
|
|
1921
1921
|
r.value = !1;
|
|
1922
1922
|
}
|
|
1923
|
-
return t({ uScrollBarReturn: a }), (
|
|
1923
|
+
return t({ uScrollBarReturn: a }), (h, g) => (B(), Ie(Be, null, {
|
|
1924
1924
|
default: Ue(() => [
|
|
1925
1925
|
Me(Y("div", {
|
|
1926
1926
|
ref_key: "sliderRef",
|
|
@@ -1930,7 +1930,7 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1930
1930
|
onMouseleave: p,
|
|
1931
1931
|
style: G(z(d))
|
|
1932
1932
|
}, [
|
|
1933
|
-
Ae(
|
|
1933
|
+
Ae(h.$slots, "default", {}, () => [
|
|
1934
1934
|
Yn
|
|
1935
1935
|
], !0)
|
|
1936
1936
|
], 36), [
|
|
@@ -1941,7 +1941,7 @@ const Qn = (e) => (De("data-v-7fd39e51"), e = e(), Te(), e), Yn = /* @__PURE__ *
|
|
|
1941
1941
|
}));
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
|
-
const
|
|
1944
|
+
const Qo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e) => (De("data-v-df5da876"), e = e(), Te(), e), Rn = { class: "pull-refresh" }, $n = {
|
|
1945
1945
|
key: 0,
|
|
1946
1946
|
class: "pull-arrow-circle"
|
|
1947
1947
|
}, Hn = {
|
|
@@ -1956,7 +1956,7 @@ const Yo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e)
|
|
|
1956
1956
|
pullRefreshContainer: null
|
|
1957
1957
|
},
|
|
1958
1958
|
setup(e) {
|
|
1959
|
-
const t = e, n = 0.7, o = "#2EC1CC", l =
|
|
1959
|
+
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), c = m(0.3), u = m(!1), d = m(0), v = m(0), r = m(0), M = m(0), f = m(0), i = m(), p = I(() => t.scrollTop), h = I(() => ({
|
|
1960
1960
|
transition: `${M.value}ms`,
|
|
1961
1961
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
1962
1962
|
})), g = I(() => ({
|
|
@@ -1973,7 +1973,7 @@ const Yo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e)
|
|
|
1973
1973
|
const L = Math.pow(D, n);
|
|
1974
1974
|
L === 0 && (l.value = -50), L <= 50 && L > 0 && (l.value = L - 45, a.value = Math.pow(L, 1.5), L > 15 ? u.value = !0 : u.value = !1), L > 50 && (l.value = 5, c.value = 1, f.value);
|
|
1975
1975
|
});
|
|
1976
|
-
const T =
|
|
1976
|
+
const T = m(0), N = (D) => {
|
|
1977
1977
|
T.value = D.touches[0].pageY;
|
|
1978
1978
|
}, x = (D) => {
|
|
1979
1979
|
const L = D.touches[0].pageY - T.value;
|
|
@@ -1997,15 +1997,15 @@ const Yo = /* @__PURE__ */ te(Bn, [["__scopeId", "data-v-7fd39e51"]]), Un = (e)
|
|
|
1997
1997
|
}, M.value);
|
|
1998
1998
|
}, 600);
|
|
1999
1999
|
})) : (v.value = 0, S.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
2000
|
-
}, S =
|
|
2000
|
+
}, S = m(null);
|
|
2001
2001
|
return re(() => {
|
|
2002
2002
|
t?.refreshOff || (S.value = document.querySelector(
|
|
2003
2003
|
t.pullRefreshContainer
|
|
2004
|
-
), S.value?.addEventListener("touchstart",
|
|
2004
|
+
), S.value?.addEventListener("touchstart", N), S.value?.addEventListener("touchmove", x), S.value?.addEventListener("touchend", U));
|
|
2005
2005
|
}), (D, L) => (B(), H("div", Rn, [
|
|
2006
2006
|
Y("div", {
|
|
2007
2007
|
class: "pull-refresh-box",
|
|
2008
|
-
style: G(z(
|
|
2008
|
+
style: G(z(h))
|
|
2009
2009
|
}, [
|
|
2010
2010
|
i.value ? (B(), H("div", Zn, $e(i.value), 1)) : (B(), H("div", $n, [
|
|
2011
2011
|
f.value == 2 ? (B(), H("div", Hn, [
|
|
@@ -2093,17 +2093,17 @@ const Kn = /* @__PURE__ */ te(Vn, [["__scopeId", "data-v-df5da876"]]), Gn = ["da
|
|
|
2093
2093
|
}, f.$attrs), [
|
|
2094
2094
|
Y("div", _e(be(z(c))), [
|
|
2095
2095
|
Y("div", _e(be(z(u))), [
|
|
2096
|
-
(B(!0), H(ke, null, kt(z(s), ({ data: p, index:
|
|
2097
|
-
key: M(p,
|
|
2098
|
-
"data-key": M(p,
|
|
2096
|
+
(B(!0), H(ke, null, kt(z(s), ({ data: p, index: h }) => (B(), H("div", {
|
|
2097
|
+
key: M(p, h),
|
|
2098
|
+
"data-key": M(p, h),
|
|
2099
2099
|
style: G({
|
|
2100
|
-
height: `${z(d)(
|
|
2100
|
+
height: `${z(d)(h).height}px`,
|
|
2101
2101
|
display: "flex"
|
|
2102
2102
|
})
|
|
2103
2103
|
}, [
|
|
2104
2104
|
Ae(f.$slots, "default", {
|
|
2105
2105
|
data: p,
|
|
2106
|
-
index:
|
|
2106
|
+
index: h
|
|
2107
2107
|
}, void 0, !0)
|
|
2108
2108
|
], 12, Gn))), 128))
|
|
2109
2109
|
], 16)
|
|
@@ -2113,7 +2113,7 @@ const Kn = /* @__PURE__ */ te(Vn, [["__scopeId", "data-v-df5da876"]]), Gn = ["da
|
|
|
2113
2113
|
], 64));
|
|
2114
2114
|
}
|
|
2115
2115
|
});
|
|
2116
|
-
const
|
|
2116
|
+
const Yo = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-dfe60586"]]), ot = (e) => (De("data-v-33519afd"), e = e(), Te(), e), eo = { style: { position: "absolute" } }, to = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("div", { class: "wrapper" }, null, -1)), no = ["width", "height"], oo = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("title", null, "logo", -1)), lo = /* @__PURE__ */ ot(() => /* @__PURE__ */ Y("g", {
|
|
2117
2117
|
id: "group-1",
|
|
2118
2118
|
stroke: "none",
|
|
2119
2119
|
"stroke-width": "1",
|
|
@@ -2154,20 +2154,7 @@ const Bo = /* @__PURE__ */ te(Jn, [["__scopeId", "data-v-dfe60586"]]), ot = (e)
|
|
|
2154
2154
|
]));
|
|
2155
2155
|
}
|
|
2156
2156
|
});
|
|
2157
|
-
const
|
|
2158
|
-
"image/avif",
|
|
2159
|
-
"image/bmp",
|
|
2160
|
-
"image/jpg",
|
|
2161
|
-
"image/jpeg",
|
|
2162
|
-
"image/gif",
|
|
2163
|
-
"image/heic",
|
|
2164
|
-
"image/heif",
|
|
2165
|
-
"image/png",
|
|
2166
|
-
"image/tga",
|
|
2167
|
-
"image/webp",
|
|
2168
|
-
"image/wbmp",
|
|
2169
|
-
"image/svg+xml"
|
|
2170
|
-
], uo = [
|
|
2157
|
+
const Bo = /* @__PURE__ */ te(ao, [["__scopeId", "data-v-33519afd"]]), io = [
|
|
2171
2158
|
"image/bmp",
|
|
2172
2159
|
"image/jpg",
|
|
2173
2160
|
"image/jpeg",
|
|
@@ -2178,10 +2165,10 @@ const Uo = /* @__PURE__ */ te(ao, [["__scopeId", "data-v-33519afd"]]), io = [
|
|
|
2178
2165
|
"image/webp",
|
|
2179
2166
|
"image/svg+xml"
|
|
2180
2167
|
];
|
|
2181
|
-
function
|
|
2182
|
-
const n =
|
|
2168
|
+
function Nt(e, t) {
|
|
2169
|
+
const n = m(e?.value), o = I(() => n.value?.startsWith("/_lzc")), l = m(!1), s = I(() => l.value), a = I(() => {
|
|
2183
2170
|
const u = t?.value;
|
|
2184
|
-
return !u || u.startsWith("video/") ? !0 : u.startsWith("image/") ? o.value ?
|
|
2171
|
+
return !u || u.startsWith("video/") ? !0 : u.startsWith("image/") ? o.value ? !0 : io.includes(u) : !1;
|
|
2185
2172
|
});
|
|
2186
2173
|
e && K(e, (u) => {
|
|
2187
2174
|
n.value = u, l.value = !1;
|
|
@@ -2197,15 +2184,15 @@ function wt(e, t) {
|
|
|
2197
2184
|
handleError: c
|
|
2198
2185
|
};
|
|
2199
2186
|
}
|
|
2200
|
-
function
|
|
2187
|
+
function wt() {
|
|
2201
2188
|
return { vImageCancel: {
|
|
2202
2189
|
beforeUnmount(t) {
|
|
2203
2190
|
!t || (t.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
|
2204
2191
|
}
|
|
2205
2192
|
} };
|
|
2206
2193
|
}
|
|
2207
|
-
const
|
|
2208
|
-
...
|
|
2194
|
+
const uo = (e) => (De("data-v-044030a1"), e = e(), Te(), e), ro = ["title"], co = /* @__PURE__ */ uo(() => /* @__PURE__ */ Y("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), fo = ["src"], vo = ["src"], Mo = ["title"], go = { inheritAttrs: !1 }, ho = /* @__PURE__ */ q({
|
|
2195
|
+
...go,
|
|
2209
2196
|
__name: "Image",
|
|
2210
2197
|
props: {
|
|
2211
2198
|
src: null,
|
|
@@ -2218,10 +2205,10 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2218
2205
|
},
|
|
2219
2206
|
emits: ["load", "noSupport", "loadError"],
|
|
2220
2207
|
setup(e, { emit: t }) {
|
|
2221
|
-
const n = e, o =
|
|
2208
|
+
const n = e, o = m(), l = m(), s = m(!1), a = m(!1), c = m(!1), { src: u, mime: d } = gt(n), { imgSrc: v, isSupport: r, hasError: M, handleError: f } = Nt(u, d), { vImageCancel: i } = wt(), { LoadingComp: p } = pt({
|
|
2222
2209
|
component: un,
|
|
2223
2210
|
delay: 300
|
|
2224
|
-
}),
|
|
2211
|
+
}), h = Yt(() => c.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !c.value);
|
|
2225
2212
|
K(
|
|
2226
2213
|
r,
|
|
2227
2214
|
(D) => {
|
|
@@ -2235,14 +2222,14 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2235
2222
|
function T() {
|
|
2236
2223
|
a.value && (c.value = !0);
|
|
2237
2224
|
}
|
|
2238
|
-
async function
|
|
2239
|
-
g(),
|
|
2225
|
+
async function N() {
|
|
2226
|
+
g(), h.value ? (o.value?.addEventListener("animationend", x), o.value?.classList.add("showing"), await nt(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
|
|
2240
2227
|
}
|
|
2241
2228
|
function x() {
|
|
2242
2229
|
o.value?.removeEventListener("animationend", x), o.value?.classList.remove("showing"), o.value && t("load", o.value), T();
|
|
2243
2230
|
}
|
|
2244
2231
|
async function U(D) {
|
|
2245
|
-
D ?
|
|
2232
|
+
D ? N() : l.value && t("load", l.value), s.value = !0;
|
|
2246
2233
|
}
|
|
2247
2234
|
function S(D) {
|
|
2248
2235
|
D ? (f(), t("loadError")) : g(), s.value = !0;
|
|
@@ -2257,19 +2244,19 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2257
2244
|
class: "bad-image",
|
|
2258
2245
|
name: e.badImageIconName
|
|
2259
2246
|
}, null, 8, ["name"])
|
|
2260
|
-
], 16,
|
|
2247
|
+
], 16, Mo)) : Ae(D.$slots, "default", {
|
|
2261
2248
|
key: 2,
|
|
2262
2249
|
src: z(v),
|
|
2263
2250
|
onLoad: U,
|
|
2264
2251
|
onError: S
|
|
2265
2252
|
}, () => [
|
|
2266
|
-
z(
|
|
2253
|
+
z(h) ? Me((B(), H("img", he({ key: 0 }, D.$attrs, {
|
|
2267
2254
|
ref_key: "thumbnailRef",
|
|
2268
2255
|
ref: l,
|
|
2269
2256
|
onLoad: L[0] || (L[0] = (R) => U()),
|
|
2270
2257
|
onError: L[1] || (L[1] = (R) => S()),
|
|
2271
2258
|
src: e.thumbnail
|
|
2272
|
-
}), null, 16,
|
|
2259
|
+
}), null, 16, fo)), [
|
|
2273
2260
|
[z(i)]
|
|
2274
2261
|
]) : ce("", !0),
|
|
2275
2262
|
e.isShowSrc || a.value ? Me((B(), H("img", he({ key: 1 }, D.$attrs, {
|
|
@@ -2279,7 +2266,7 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2279
2266
|
onLoad: L[2] || (L[2] = (R) => U(!0)),
|
|
2280
2267
|
onError: L[3] || (L[3] = (R) => S(!0)),
|
|
2281
2268
|
src: z(v)
|
|
2282
|
-
}), null, 16,
|
|
2269
|
+
}), null, 16, vo)), [
|
|
2283
2270
|
[z(i)],
|
|
2284
2271
|
[ze, a.value]
|
|
2285
2272
|
]) : ce("", !0)
|
|
@@ -2291,19 +2278,19 @@ const ro = (e) => (De("data-v-044030a1"), e = e(), Te(), e), co = ["title"], fo
|
|
|
2291
2278
|
class: "no-support-icon",
|
|
2292
2279
|
name: e.noSupportIconName
|
|
2293
2280
|
}, null, 8, ["name"]),
|
|
2294
|
-
|
|
2295
|
-
], 16,
|
|
2281
|
+
co
|
|
2282
|
+
], 16, ro))
|
|
2296
2283
|
], 64));
|
|
2297
2284
|
}
|
|
2298
2285
|
});
|
|
2299
|
-
const
|
|
2286
|
+
const Uo = /* @__PURE__ */ te(ho, [["__scopeId", "data-v-044030a1"]]), mo = ["title"], yo = ["src"], po = ["title"], Do = /* @__PURE__ */ q({
|
|
2300
2287
|
__name: "Thumbnail",
|
|
2301
2288
|
props: {
|
|
2302
2289
|
src: null,
|
|
2303
2290
|
mime: null
|
|
2304
2291
|
},
|
|
2305
2292
|
setup(e) {
|
|
2306
|
-
const t = e, n =
|
|
2293
|
+
const t = e, n = m(!1), { src: o, mime: l } = gt(t), { imgSrc: s, hasError: a, isSupport: c, handleError: u } = Nt(o, l), { vImageCancel: d } = wt();
|
|
2307
2294
|
return (v, r) => z(c) ? z(a) ? (B(), H("div", {
|
|
2308
2295
|
key: 2,
|
|
2309
2296
|
title: z(s),
|
|
@@ -2313,13 +2300,13 @@ const Ro = /* @__PURE__ */ te(mo, [["__scopeId", "data-v-044030a1"]]), yo = ["ti
|
|
|
2313
2300
|
class: "icon",
|
|
2314
2301
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2315
2302
|
})
|
|
2316
|
-
], 8,
|
|
2303
|
+
], 8, po)) : Me((B(), H("img", {
|
|
2317
2304
|
key: 1,
|
|
2318
2305
|
fetchpriority: "high",
|
|
2319
2306
|
onLoad: r[0] || (r[0] = (M) => n.value = !0),
|
|
2320
2307
|
onError: r[1] || (r[1] = (...M) => z(u) && z(u)(...M)),
|
|
2321
2308
|
src: z(s)
|
|
2322
|
-
}, null, 40,
|
|
2309
|
+
}, null, 40, yo)), [
|
|
2323
2310
|
[z(d)],
|
|
2324
2311
|
[ze, n.value]
|
|
2325
2312
|
]) : (B(), H("div", {
|
|
@@ -2331,25 +2318,25 @@ const Ro = /* @__PURE__ */ te(mo, [["__scopeId", "data-v-044030a1"]]), yo = ["ti
|
|
|
2331
2318
|
class: "icon",
|
|
2332
2319
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2333
2320
|
})
|
|
2334
|
-
], 8,
|
|
2321
|
+
], 8, mo));
|
|
2335
2322
|
}
|
|
2336
2323
|
});
|
|
2337
|
-
const
|
|
2324
|
+
const Ro = /* @__PURE__ */ te(Do, [["__scopeId", "data-v-5a7af152"]]);
|
|
2338
2325
|
export {
|
|
2339
2326
|
un as DefaultLoading,
|
|
2340
|
-
|
|
2341
|
-
|
|
2327
|
+
Uo as Image,
|
|
2328
|
+
Bo as Loading,
|
|
2342
2329
|
Tn as LoadingToast,
|
|
2343
|
-
|
|
2330
|
+
xo as PageLoading,
|
|
2344
2331
|
Kn as PullRefresh,
|
|
2345
|
-
|
|
2332
|
+
Qo as ScrollBar,
|
|
2346
2333
|
Ee as SvgIcon,
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2334
|
+
Ro as Thumbnail,
|
|
2335
|
+
ko as ToastCreator,
|
|
2336
|
+
Yo as VirtualList,
|
|
2350
2337
|
Ke as allSelectedKey,
|
|
2351
2338
|
en as closeDialogKey,
|
|
2352
|
-
|
|
2339
|
+
Lo as dialogController,
|
|
2353
2340
|
Oe as getTransform,
|
|
2354
2341
|
et as isAllSelectedKey,
|
|
2355
2342
|
Ve as isSelectedKey,
|
|
@@ -2361,20 +2348,20 @@ export {
|
|
|
2361
2348
|
Ze as toggleKey,
|
|
2362
2349
|
pe as unselectAllKey,
|
|
2363
2350
|
Je as unselectKey,
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2351
|
+
bo as useBackPress,
|
|
2352
|
+
Co as useDelayAsync,
|
|
2353
|
+
jo as useDelayLoad,
|
|
2367
2354
|
pt as useDelayLoadComp,
|
|
2368
|
-
|
|
2355
|
+
_o as useDownDrag,
|
|
2369
2356
|
yt as useDragSelect,
|
|
2370
|
-
|
|
2371
|
-
|
|
2357
|
+
zo as useDragSelectByMobile,
|
|
2358
|
+
Ao as useDragSelectByPc,
|
|
2372
2359
|
xn as useRouterActivated,
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2360
|
+
Oo as useScaleImageByMobile,
|
|
2361
|
+
So as useScaleImageByPc,
|
|
2362
|
+
Eo as useSelectable,
|
|
2363
|
+
Io as useSelectableByBase,
|
|
2364
|
+
wo as useSelectableInjectors,
|
|
2378
2365
|
Jt as useVirtualList,
|
|
2379
2366
|
No as vDebounceClick,
|
|
2380
2367
|
Qt as vSingleClick
|