@lazycatcloud/lzc-toolkit 0.0.161 → 0.0.164
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 +257 -256
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/image/Image.vue.d.ts +41 -7
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as ut, watchEffect 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 w, reactive as Te, onUnmounted as ct, inject as te, provide as F, defineComponent as q, h as ae, render as me, openBlock as b, createBlock as Ie, Transition as Ye, withCtx as Be, withDirectives as ve, createElementBlock as U, 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;
|
|
@@ -31,7 +31,7 @@ const kt = {
|
|
|
31
31
|
function Qt(e, t) {
|
|
32
32
|
var n;
|
|
33
33
|
const o = ut();
|
|
34
|
-
return
|
|
34
|
+
return Et(() => {
|
|
35
35
|
o.value = e();
|
|
36
36
|
}, {
|
|
37
37
|
...t,
|
|
@@ -58,7 +58,7 @@ function $e(e) {
|
|
|
58
58
|
return At() ? (zt(e), !0) : !1;
|
|
59
59
|
}
|
|
60
60
|
function J(e) {
|
|
61
|
-
return typeof e == "function" ? e() :
|
|
61
|
+
return typeof e == "function" ? e() : E(e);
|
|
62
62
|
}
|
|
63
63
|
const Mt = typeof window < "u" && typeof document < "u";
|
|
64
64
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -127,7 +127,7 @@ function se(e) {
|
|
|
127
127
|
return (t = n?.$el) != null ? t : n;
|
|
128
128
|
}
|
|
129
129
|
const Le = Mt ? window : void 0, Ft = Mt ? window.document : void 0;
|
|
130
|
-
function
|
|
130
|
+
function Ne(...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;
|
|
@@ -158,7 +158,7 @@ function Ht() {
|
|
|
158
158
|
}
|
|
159
159
|
function Wt(e) {
|
|
160
160
|
const t = Ht();
|
|
161
|
-
return
|
|
161
|
+
return w(() => (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 = w(() => 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 = w(() => {
|
|
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 = w({
|
|
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 = w({
|
|
264
264
|
get() {
|
|
265
265
|
return g.value;
|
|
266
266
|
},
|
|
@@ -269,11 +269,11 @@ function Vt(e, t = {}) {
|
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
271
|
function T(p, z) {
|
|
272
|
-
var Q, D,
|
|
272
|
+
var Q, D, N;
|
|
273
273
|
if (!d)
|
|
274
274
|
return;
|
|
275
275
|
const A = J(e);
|
|
276
|
-
!A || (
|
|
276
|
+
!A || (N = A instanceof Document ? d.document.body : A) == null || N.scrollTo({
|
|
277
277
|
top: (Q = J(z)) != null ? Q : r.value,
|
|
278
278
|
left: (D = J(p)) != null ? D : M.value,
|
|
279
279
|
behavior: J(u)
|
|
@@ -295,25 +295,25 @@ function Vt(e, t = {}) {
|
|
|
295
295
|
var z;
|
|
296
296
|
if (!d)
|
|
297
297
|
return;
|
|
298
|
-
const Q = ((z = p?.document) == null ? void 0 : z.documentElement) || p?.documentElement || se(p), { display: D, flexDirection:
|
|
298
|
+
const Q = ((z = p?.document) == null ? void 0 : z.documentElement) || p?.documentElement || se(p), { display: D, flexDirection: N } = getComputedStyle(Q), A = Q.scrollLeft;
|
|
299
299
|
y.left = A < i.value, y.right = A > i.value;
|
|
300
300
|
const k = Math.abs(A) <= (a.left || 0), Y = Math.abs(A) + Q.clientWidth >= Q.scrollWidth - (a.right || 0) - ot;
|
|
301
|
-
D === "flex" &&
|
|
301
|
+
D === "flex" && N === "row-reverse" ? (c.left = Y, c.right = k) : (c.left = k, c.right = Y), i.value = A;
|
|
302
302
|
let C = Q.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),
|
|
305
|
-
D === "flex" &&
|
|
306
|
-
},
|
|
304
|
+
const L = Math.abs(C) <= (a.top || 0), I = Math.abs(C) + Q.clientHeight >= Q.scrollHeight - (a.bottom || 0) - ot;
|
|
305
|
+
D === "flex" && N === "column-reverse" ? (c.top = I, c.bottom = L) : (c.top = L, c.bottom = I), g.value = C;
|
|
306
|
+
}, O = (p) => {
|
|
307
307
|
var z;
|
|
308
308
|
if (!d)
|
|
309
309
|
return;
|
|
310
310
|
const Q = (z = p.target.documentElement) != null ? z : p.target;
|
|
311
311
|
H(Q), h.value = !0, W(p), s(p);
|
|
312
312
|
};
|
|
313
|
-
return
|
|
313
|
+
return Ne(
|
|
314
314
|
e,
|
|
315
315
|
"scroll",
|
|
316
|
-
n ? ke(
|
|
316
|
+
n ? ke(O, n, !0, !1) : O,
|
|
317
317
|
f
|
|
318
318
|
), Pe(() => {
|
|
319
319
|
try {
|
|
@@ -324,7 +324,7 @@ function Vt(e, t = {}) {
|
|
|
324
324
|
} catch (p) {
|
|
325
325
|
v(p);
|
|
326
326
|
}
|
|
327
|
-
}),
|
|
327
|
+
}), Ne(
|
|
328
328
|
e,
|
|
329
329
|
"scrollend",
|
|
330
330
|
x,
|
|
@@ -378,24 +378,24 @@ function Gt(e, t) {
|
|
|
378
378
|
let d;
|
|
379
379
|
const v = ut(e), i = m(0), g = m({ start: 0, end: 10 }), M = m({ start: 0, end: l });
|
|
380
380
|
let r = 0;
|
|
381
|
-
const T = m([]), h =
|
|
382
|
-
let { sum: L, height:
|
|
383
|
-
return v.value.map((R, $) => (typeof o == "number" ?
|
|
384
|
-
}), c =
|
|
385
|
-
const { start: L, end:
|
|
386
|
-
return T.value.slice(L,
|
|
381
|
+
const T = m([]), h = w(() => {
|
|
382
|
+
let { sum: L, height: I } = { sum: 0, height: 0 };
|
|
383
|
+
return v.value.map((R, $) => (typeof o == "number" ? I = o : I = o($), L += I, { height: I, sum: L }));
|
|
384
|
+
}), c = w(() => D(g.value.start)), y = w(() => typeof o == "number" ? h.value.length * o : h.value[h.value.length - 1]?.sum || 0), x = w(() => {
|
|
385
|
+
const { start: L, end: I } = M.value;
|
|
386
|
+
return T.value.slice(L, I);
|
|
387
387
|
});
|
|
388
388
|
ie(() => {
|
|
389
389
|
}), ct(() => cancelAnimationFrame(d)), G(
|
|
390
390
|
v,
|
|
391
391
|
() => {
|
|
392
|
-
(a.width.value || a.height.value) &&
|
|
392
|
+
(a.width.value || a.height.value) && O();
|
|
393
393
|
},
|
|
394
394
|
{ deep: !0 }
|
|
395
395
|
), G(
|
|
396
396
|
[a.width, a.height],
|
|
397
|
-
([L,
|
|
398
|
-
(L ||
|
|
397
|
+
([L, I]) => {
|
|
398
|
+
(L || I) && O();
|
|
399
399
|
},
|
|
400
400
|
{ deep: !0 }
|
|
401
401
|
), G(i, () => {
|
|
@@ -407,7 +407,7 @@ function Gt(e, t) {
|
|
|
407
407
|
function H() {
|
|
408
408
|
f.value = !0, n?.();
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function O() {
|
|
411
411
|
cancelAnimationFrame(d), d = requestAnimationFrame(p);
|
|
412
412
|
}
|
|
413
413
|
function p() {
|
|
@@ -415,52 +415,52 @@ function Gt(e, t) {
|
|
|
415
415
|
i.value = s.value.scrollTop;
|
|
416
416
|
let L = z(i.value);
|
|
417
417
|
r = Q(L);
|
|
418
|
-
let
|
|
418
|
+
let I = Math.max(0, L - l), R = Math.min(
|
|
419
419
|
L + r + l,
|
|
420
420
|
v.value.length
|
|
421
421
|
);
|
|
422
|
-
g.value = { start:
|
|
422
|
+
g.value = { start: I, end: R }, T.value = v.value.slice(I, R).map(($, B) => ({
|
|
423
423
|
data: $,
|
|
424
|
-
index: B +
|
|
425
|
-
})), M.value.start = L -
|
|
424
|
+
index: B + I
|
|
425
|
+
})), M.value.start = L - I, M.value.end = M.value.start + r;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
function z(L) {
|
|
429
|
-
let
|
|
430
|
-
for (;
|
|
431
|
-
const B = Math.floor((
|
|
432
|
-
h.value[B].sum >= L ? ($ = B, R = B - 1) :
|
|
429
|
+
let I = 0, R = h.value.length - 1, $ = -1;
|
|
430
|
+
for (; I <= R; ) {
|
|
431
|
+
const B = Math.floor((I + R) / 2);
|
|
432
|
+
h.value[B].sum >= L ? ($ = B, R = B - 1) : I = B + 1;
|
|
433
433
|
}
|
|
434
434
|
return Math.max(0, $);
|
|
435
435
|
}
|
|
436
436
|
function Q(L) {
|
|
437
|
-
let
|
|
438
|
-
for (let $ = L; $ < h.value.length && (
|
|
437
|
+
let I = 0, R = 0;
|
|
438
|
+
for (let $ = L; $ < h.value.length && (I++, R += h.value[$].height, !(R >= a.height.value)); $++)
|
|
439
439
|
;
|
|
440
|
-
return
|
|
440
|
+
return I;
|
|
441
441
|
}
|
|
442
442
|
function D(L) {
|
|
443
443
|
if (typeof o == "number")
|
|
444
444
|
return L * o;
|
|
445
|
-
let
|
|
446
|
-
return
|
|
445
|
+
let I = h.value[L];
|
|
446
|
+
return I ? I.sum - I.height : 0;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function N(L) {
|
|
449
449
|
return h.value[L] || { sum: 0, height: 0 };
|
|
450
450
|
}
|
|
451
451
|
function A(L) {
|
|
452
452
|
if (s.value) {
|
|
453
|
-
const
|
|
454
|
-
s.value.scrollTop =
|
|
453
|
+
const I = N(L);
|
|
454
|
+
s.value.scrollTop = I.sum - I.height, p();
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const k =
|
|
457
|
+
const k = w(() => ({
|
|
458
458
|
style: {
|
|
459
459
|
width: "100%",
|
|
460
460
|
height: `${y.value}px`,
|
|
461
461
|
pointerEvents: f.value ? void 0 : "none"
|
|
462
462
|
}
|
|
463
|
-
})), Y =
|
|
463
|
+
})), Y = w(() => ({
|
|
464
464
|
style: {
|
|
465
465
|
transform: `translate3d(0, ${c.value}px, 0)`,
|
|
466
466
|
"will-change": "transform"
|
|
@@ -471,7 +471,7 @@ function Gt(e, t) {
|
|
|
471
471
|
return {
|
|
472
472
|
list: T,
|
|
473
473
|
visiableList: x,
|
|
474
|
-
getItemHeightData:
|
|
474
|
+
getItemHeightData: N,
|
|
475
475
|
getoffsetTopIndex: z,
|
|
476
476
|
totalHeight: y,
|
|
477
477
|
clientHeight: a.height,
|
|
@@ -481,7 +481,7 @@ function Gt(e, t) {
|
|
|
481
481
|
containerProps: {
|
|
482
482
|
ref: s,
|
|
483
483
|
onScroll: () => {
|
|
484
|
-
|
|
484
|
+
O();
|
|
485
485
|
},
|
|
486
486
|
style: C
|
|
487
487
|
},
|
|
@@ -490,14 +490,14 @@ function Gt(e, t) {
|
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
492
|
const He = Symbol(), We = Symbol(), Xe = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), ye = Symbol(), Je = Symbol();
|
|
493
|
-
function
|
|
493
|
+
function No() {
|
|
494
494
|
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
495
495
|
voidFn: (T) => {
|
|
496
496
|
},
|
|
497
497
|
boolFn: (T) => !1,
|
|
498
|
-
boolRef:
|
|
499
|
-
numberRef:
|
|
500
|
-
arrayRef:
|
|
498
|
+
boolRef: w(() => !1),
|
|
499
|
+
numberRef: w(() => 0),
|
|
500
|
+
arrayRef: w(() => [])
|
|
501
501
|
}, s = te(Ze, l), a = te(Xe, t), f = te(qe, n), u = te(We, e), d = te(He, e), v = te(Ve, e), i = te(Ke, e), g = te(Ge, e), M = te(ye, e), r = te(Je, o);
|
|
502
502
|
return {
|
|
503
503
|
selected: s,
|
|
@@ -512,7 +512,7 @@ function wo() {
|
|
|
512
512
|
selectedCount: r
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function wo(e, t, n = { deep: !0 }) {
|
|
516
516
|
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = m(/* @__PURE__ */ new Map());
|
|
517
517
|
G(
|
|
518
518
|
e,
|
|
@@ -524,7 +524,7 @@ function No(e, t, n = { deep: !0 }) {
|
|
|
524
524
|
immediate: !0
|
|
525
525
|
}
|
|
526
526
|
);
|
|
527
|
-
const a =
|
|
527
|
+
const a = w(() => {
|
|
528
528
|
let c = [];
|
|
529
529
|
if (o.value != null)
|
|
530
530
|
o.value && (c = Array.from(s.value.values()));
|
|
@@ -535,10 +535,10 @@ function No(e, t, n = { deep: !0 }) {
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
return c;
|
|
538
|
-
}), f =
|
|
538
|
+
}), f = w(() => {
|
|
539
539
|
let c = 0;
|
|
540
540
|
return o.value != null ? o.value && (c = s.value.size) : c = l.value.size, c;
|
|
541
|
-
}), u =
|
|
541
|
+
}), u = w(() => {
|
|
542
542
|
let c;
|
|
543
543
|
if (o.value != null)
|
|
544
544
|
c = o.value;
|
|
@@ -598,14 +598,14 @@ function No(e, t, n = { deep: !0 }) {
|
|
|
598
598
|
selectedCount: f
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o =
|
|
601
|
+
function Io(e) {
|
|
602
|
+
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = w(() => {
|
|
603
603
|
let r = [];
|
|
604
604
|
return t.value != null ? t.value && (r = e.value) : n.value.size && (r = Array.from(n.value.values())), r;
|
|
605
|
-
}), l =
|
|
605
|
+
}), l = w(() => {
|
|
606
606
|
let r = 0;
|
|
607
607
|
return t.value != null ? t.value && (r = e.value.length) : r = n.value.size, r;
|
|
608
|
-
}), s =
|
|
608
|
+
}), s = w(() => {
|
|
609
609
|
let r;
|
|
610
610
|
if (t.value != null)
|
|
611
611
|
r = t.value;
|
|
@@ -682,8 +682,8 @@ function mt({
|
|
|
682
682
|
unselectAll: a = xe("\u53D6\u6D88\u5168\u9009")
|
|
683
683
|
} = o();
|
|
684
684
|
let f = {};
|
|
685
|
-
const u =
|
|
686
|
-
() => ke(t === "colum" ? ce :
|
|
685
|
+
const u = w(
|
|
686
|
+
() => ke(t === "colum" ? ce : Nt, 50)
|
|
687
687
|
), 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
688
|
(j) => h.value = j[0].target.getBoundingClientRect()
|
|
689
689
|
), h = m({}), c = m({
|
|
@@ -692,26 +692,26 @@ function mt({
|
|
|
692
692
|
sync(j = !1) {
|
|
693
693
|
c.value.top = i.value?.scrollTop || 0, j && (c.value.height = i.value?.scrollHeight || 0);
|
|
694
694
|
}
|
|
695
|
-
}), y =
|
|
695
|
+
}), y = w(() => g.value ? {
|
|
696
696
|
left: Math.min(M.value.x, r.value.x) - h.value.left,
|
|
697
697
|
top: Math.min(M.value.y, r.value.y) - h.value.top,
|
|
698
698
|
width: Math.abs(M.value.x - r.value.x),
|
|
699
699
|
height: Math.abs(M.value.y - r.value.y)
|
|
700
700
|
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: x = 50, startSpeed: W = 30, maxSpeed: H = 30 } = n;
|
|
701
|
-
let
|
|
701
|
+
let O;
|
|
702
702
|
const p = x, z = W, Q = H, D = (j) => j ** 1;
|
|
703
|
-
let
|
|
703
|
+
let N = 0;
|
|
704
704
|
function A(j) {
|
|
705
|
-
if (cancelAnimationFrame(
|
|
706
|
-
Math.min(
|
|
705
|
+
if (cancelAnimationFrame(O), N = k(j), N = Math.max(
|
|
706
|
+
Math.min(N, Q),
|
|
707
707
|
-Q
|
|
708
|
-
),
|
|
708
|
+
), N !== 0) {
|
|
709
709
|
const S = i.value;
|
|
710
710
|
if (!S || !g.value)
|
|
711
711
|
return;
|
|
712
712
|
const Z = c.value.height - h.value.height;
|
|
713
|
-
let X = c.value.top + Number(
|
|
714
|
-
X = Math.min(Math.max(0, X), Z), S.scrollTop = X, C(),
|
|
713
|
+
let X = c.value.top + Number(N);
|
|
714
|
+
X = Math.min(Math.max(0, X), Z), S.scrollTop = X, C(), O = requestAnimationFrame(() => A(j));
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
function k(j) {
|
|
@@ -740,15 +740,15 @@ function mt({
|
|
|
740
740
|
function L(j, S, Z = "dynamic-styles") {
|
|
741
741
|
let X = document.getElementById(Z);
|
|
742
742
|
X || (X = document.createElement("style"), X.id = Z, document.head.appendChild(X));
|
|
743
|
-
const ne = X.sheet.cssRules, de = ne.length,
|
|
743
|
+
const ne = X.sheet.cssRules, de = ne.length, It = `${j} { ${S} }`;
|
|
744
744
|
for (let je = 0; je < de; je++) {
|
|
745
745
|
const nt = ne[je];
|
|
746
746
|
if (nt.selectorText === j && nt.style.cssText === S)
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
|
-
X.sheet.insertRule(
|
|
749
|
+
X.sheet.insertRule(It, de);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function I(j, S) {
|
|
752
752
|
v.value = !0, g.value = !0, c.value.sync(!0);
|
|
753
753
|
const Z = S + c.value.top;
|
|
754
754
|
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();
|
|
@@ -763,7 +763,7 @@ function mt({
|
|
|
763
763
|
g.value = !1, i.value?.classList.remove("disable-scroll-behavior");
|
|
764
764
|
}
|
|
765
765
|
function B() {
|
|
766
|
-
!g.value || (
|
|
766
|
+
!g.value || (N || C(), u.value());
|
|
767
767
|
}
|
|
768
768
|
function P() {
|
|
769
769
|
if (!g.value)
|
|
@@ -779,7 +779,7 @@ function mt({
|
|
|
779
779
|
f[`${e}`] = j.getAttribute(`${e}`), Y(j.getBoundingClientRect()) ? l([f]) : s([f]);
|
|
780
780
|
});
|
|
781
781
|
}
|
|
782
|
-
function
|
|
782
|
+
function Nt() {
|
|
783
783
|
const j = [];
|
|
784
784
|
let S = null, Z = 0;
|
|
785
785
|
i.value?.querySelectorAll(`[${e}]`).forEach((X, ne) => {
|
|
@@ -789,12 +789,12 @@ function mt({
|
|
|
789
789
|
for (let X = S; X < Z + 1; X++)
|
|
790
790
|
f[`${e}`] = j[X], l([f]), d.add(j[X]);
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function wt(j) {
|
|
793
793
|
return !j?.value || (i.value = j.value, !i?.value) ? !1 : (T.observe(i.value), L(".disable-scroll-behavior", "scroll-behavior: unset !important;"), !0);
|
|
794
794
|
}
|
|
795
795
|
return {
|
|
796
|
-
init:
|
|
797
|
-
dragStart:
|
|
796
|
+
init: wt,
|
|
797
|
+
dragStart: I,
|
|
798
798
|
dragMove: R,
|
|
799
799
|
dragEnd: $,
|
|
800
800
|
onScroll: B,
|
|
@@ -807,14 +807,14 @@ function mt({
|
|
|
807
807
|
observer: T
|
|
808
808
|
};
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function Eo(e) {
|
|
811
811
|
const t = mt(e), { observer: n, selectRange: o } = t, {
|
|
812
812
|
onScroll: l,
|
|
813
813
|
dragStart: s,
|
|
814
814
|
dragMove: a,
|
|
815
815
|
dragEnd: f,
|
|
816
816
|
cancelSelectAllBySingleClick: u
|
|
817
|
-
} = t, d =
|
|
817
|
+
} = t, d = w(() => ({
|
|
818
818
|
left: `${o.value.left}px`,
|
|
819
819
|
top: `${o.value.top}px`,
|
|
820
820
|
width: `${o.value.width}px`,
|
|
@@ -918,21 +918,21 @@ const qt = Symbol(), Jt = /* @__PURE__ */ q({
|
|
|
918
918
|
const n = e, o = () => {
|
|
919
919
|
n.closeOnClickOverlay && t("update:visiable", !1);
|
|
920
920
|
};
|
|
921
|
-
return F(qt, () => t("update:visiable", !1)), (l, s) => (b(),
|
|
921
|
+
return F(qt, () => t("update:visiable", !1)), (l, s) => (b(), Ie(Ye, { name: "modal" }, {
|
|
922
922
|
default: Be(() => [
|
|
923
923
|
e.visiable ? ve((b(), U("div", {
|
|
924
924
|
key: 0,
|
|
925
925
|
class: oe([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
926
926
|
}, [
|
|
927
|
-
|
|
927
|
+
_("div", {
|
|
928
928
|
onMousedown: s[0] || (s[0] = he(() => {
|
|
929
929
|
}, ["stop"])),
|
|
930
930
|
class: oe(["lzc-dialog", e.dialogClass])
|
|
931
931
|
}, [
|
|
932
|
-
|
|
932
|
+
Ee(l.$slots, "default", {}, void 0, !0)
|
|
933
933
|
], 34)
|
|
934
934
|
], 2)), [
|
|
935
|
-
[
|
|
935
|
+
[E(kt), () => o()]
|
|
936
936
|
]) : ue("", !0)
|
|
937
937
|
]),
|
|
938
938
|
_: 3
|
|
@@ -1015,8 +1015,8 @@ function Lo({
|
|
|
1015
1015
|
}
|
|
1016
1016
|
return { LoadingComp: o, loading: l, load: s, unload: a };
|
|
1017
1017
|
}
|
|
1018
|
-
const tn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), nn = /* @__PURE__ */ tn(() => /* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1018
|
+
const tn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), nn = /* @__PURE__ */ tn(() => /* @__PURE__ */ _("div", { class: "ldio-mm5gwljcryb" }, [
|
|
1019
|
+
/* @__PURE__ */ _("div")
|
|
1020
1020
|
], -1)), on = [
|
|
1021
1021
|
nn
|
|
1022
1022
|
], ln = /* @__PURE__ */ q({
|
|
@@ -1029,7 +1029,7 @@ const tn = (e) => (pe("data-v-92a1804d"), e = e(), De(), e), nn = /* @__PURE__ *
|
|
|
1029
1029
|
return Ue((t) => ({
|
|
1030
1030
|
"4e4a9ce4": e.width + "px",
|
|
1031
1031
|
e56fe5c2: e.height + "px"
|
|
1032
|
-
})), (t, n) => (b(), U("div", _e(
|
|
1032
|
+
})), (t, n) => (b(), U("div", Oe(_e(t.$attrs)), on, 16));
|
|
1033
1033
|
}
|
|
1034
1034
|
});
|
|
1035
1035
|
const sn = /* @__PURE__ */ ee(ln, [["__scopeId", "data-v-92a1804d"]]), an = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", un = { class: "loading-wrap" }, rn = ["src"], cn = /* @__PURE__ */ q({
|
|
@@ -1043,15 +1043,15 @@ const sn = /* @__PURE__ */ ee(ln, [["__scopeId", "data-v-92a1804d"]]), an = "dat
|
|
|
1043
1043
|
Ue((o) => ({
|
|
1044
1044
|
b1cf73a8: e.delay
|
|
1045
1045
|
}));
|
|
1046
|
-
const n =
|
|
1046
|
+
const n = w(() => {
|
|
1047
1047
|
const o = {};
|
|
1048
1048
|
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1049
1049
|
});
|
|
1050
1050
|
return (o, l) => (b(), U("div", un, [
|
|
1051
|
-
|
|
1051
|
+
_("img", {
|
|
1052
1052
|
class: "loading-circle",
|
|
1053
|
-
src:
|
|
1054
|
-
style: K(
|
|
1053
|
+
src: E(an),
|
|
1054
|
+
style: K(E(n))
|
|
1055
1055
|
}, null, 12, rn)
|
|
1056
1056
|
]));
|
|
1057
1057
|
}
|
|
@@ -1079,10 +1079,10 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1079
1079
|
},
|
|
1080
1080
|
emits: ["close"],
|
|
1081
1081
|
setup(e, { emit: t }) {
|
|
1082
|
-
const n = e, o = "lzc-loading-toast", l =
|
|
1082
|
+
const n = e, o = "lzc-loading-toast", l = w(() => {
|
|
1083
1083
|
let d = {};
|
|
1084
1084
|
return n.captureEventP && (d.pointerEvents = "none"), d;
|
|
1085
|
-
}), s =
|
|
1085
|
+
}), s = w(() => {
|
|
1086
1086
|
let d = {
|
|
1087
1087
|
padding: "12px"
|
|
1088
1088
|
};
|
|
@@ -1090,7 +1090,7 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1090
1090
|
...d,
|
|
1091
1091
|
...n.overlayContentStyle
|
|
1092
1092
|
}), d;
|
|
1093
|
-
}), a =
|
|
1093
|
+
}), a = w(() => {
|
|
1094
1094
|
let d = {};
|
|
1095
1095
|
return n.showClose && !n.icon && (d.paddingRight = "16px"), d;
|
|
1096
1096
|
});
|
|
@@ -1100,42 +1100,42 @@ const dn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1100
1100
|
function u() {
|
|
1101
1101
|
n.closeOnClick && t("close");
|
|
1102
1102
|
}
|
|
1103
|
-
return (d, v) => (b(),
|
|
1103
|
+
return (d, v) => (b(), Ie(Ye, {
|
|
1104
1104
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
1105
1105
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
1106
1106
|
}, {
|
|
1107
1107
|
default: Be(() => [
|
|
1108
|
-
|
|
1108
|
+
_("div", {
|
|
1109
1109
|
id: o,
|
|
1110
|
-
style: K(
|
|
1110
|
+
style: K(E(l))
|
|
1111
1111
|
}, [
|
|
1112
|
-
ve(
|
|
1112
|
+
ve(_("div", {
|
|
1113
1113
|
class: oe(`${o} ${e.className}`),
|
|
1114
1114
|
onClick: he(f, ["stop"])
|
|
1115
1115
|
}, [
|
|
1116
|
-
|
|
1116
|
+
_("div", {
|
|
1117
1117
|
class: oe(`${o}-wrap`),
|
|
1118
1118
|
onClick: he(u, ["stop"])
|
|
1119
1119
|
}, [
|
|
1120
|
-
|
|
1120
|
+
_("div", {
|
|
1121
1121
|
class: oe(`${o}-content`),
|
|
1122
|
-
style: K(
|
|
1122
|
+
style: K(E(s))
|
|
1123
1123
|
}, [
|
|
1124
1124
|
e.showClose ? (b(), U("img", {
|
|
1125
1125
|
key: 0,
|
|
1126
1126
|
onClick: v[0] || (v[0] = he((i) => t("close"), ["stop"])),
|
|
1127
|
-
src:
|
|
1127
|
+
src: E(dn),
|
|
1128
1128
|
class: oe(`${o}-close`)
|
|
1129
1129
|
}, null, 10, gn)) : ue("", !0),
|
|
1130
1130
|
e.showIcon ? (b(), U("img", {
|
|
1131
1131
|
key: 1,
|
|
1132
|
-
src: e.icon ||
|
|
1132
|
+
src: e.icon || E(fn),
|
|
1133
1133
|
class: oe(`${o}-icon`)
|
|
1134
1134
|
}, null, 10, hn)) : ue("", !0),
|
|
1135
1135
|
e.message ? (b(), U("div", {
|
|
1136
1136
|
key: 2,
|
|
1137
1137
|
class: oe(`${o}-message`),
|
|
1138
|
-
style: K(
|
|
1138
|
+
style: K(E(a))
|
|
1139
1139
|
}, Re(e.message), 7)) : ue("", !0)
|
|
1140
1140
|
], 6)
|
|
1141
1141
|
], 10, Mn)
|
|
@@ -1256,8 +1256,8 @@ function Tn() {
|
|
|
1256
1256
|
isHorizontal: u
|
|
1257
1257
|
};
|
|
1258
1258
|
}
|
|
1259
|
-
const lt = 250, st = 5,
|
|
1260
|
-
function
|
|
1259
|
+
const lt = 250, st = 5, Nn = 500;
|
|
1260
|
+
function wn(e) {
|
|
1261
1261
|
const { isDouble: t = !0 } = e;
|
|
1262
1262
|
let n, o;
|
|
1263
1263
|
function l() {
|
|
@@ -1267,21 +1267,21 @@ function Nn(e) {
|
|
|
1267
1267
|
const u = Date.now() - n;
|
|
1268
1268
|
a < st && f < st && (u < lt ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
|
|
1269
1269
|
e.onTap?.(), o = null;
|
|
1270
|
-
}, lt) : e.onTap?.() : u >
|
|
1270
|
+
}, lt) : e.onTap?.() : u > Nn && e.onLongPress?.());
|
|
1271
1271
|
}
|
|
1272
1272
|
return { startTap: l, checkTap: s };
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function In(e, t) {
|
|
1275
1275
|
const n = m(!1);
|
|
1276
1276
|
function o() {
|
|
1277
|
-
n.value || (n.value = !0,
|
|
1277
|
+
n.value || (n.value = !0, E(e)?.addEventListener("transitionend", l));
|
|
1278
1278
|
}
|
|
1279
1279
|
function l() {
|
|
1280
|
-
|
|
1280
|
+
E(e)?.removeEventListener("transitionend", l), n.value = !1, t.onComplate?.();
|
|
1281
1281
|
}
|
|
1282
1282
|
return { transitioning: n, startTransition: o };
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function En(e, t, n, o) {
|
|
1285
1285
|
var l = Math.min(
|
|
1286
1286
|
n / e,
|
|
1287
1287
|
o / t
|
|
@@ -1322,11 +1322,11 @@ function pt(e) {
|
|
|
1322
1322
|
zooming: !1,
|
|
1323
1323
|
preview: !0,
|
|
1324
1324
|
lastCenter: { x: 0, y: 0 }
|
|
1325
|
-
}), d = m({}), v = Tn(), i =
|
|
1325
|
+
}), d = m({}), v = Tn(), i = In(s, {
|
|
1326
1326
|
onComplate() {
|
|
1327
1327
|
u.preview || h();
|
|
1328
1328
|
}
|
|
1329
|
-
}), g =
|
|
1329
|
+
}), g = wn({
|
|
1330
1330
|
onTap() {
|
|
1331
1331
|
e.onTap?.();
|
|
1332
1332
|
},
|
|
@@ -1339,104 +1339,104 @@ function pt(e) {
|
|
|
1339
1339
|
});
|
|
1340
1340
|
ht(s, (D) => M(D)), G(
|
|
1341
1341
|
[l, s],
|
|
1342
|
-
([D,
|
|
1343
|
-
r(D,
|
|
1342
|
+
([D, N]) => {
|
|
1343
|
+
r(D, N);
|
|
1344
1344
|
},
|
|
1345
1345
|
{ immediate: !0 }
|
|
1346
1346
|
);
|
|
1347
1347
|
async function M(D) {
|
|
1348
|
-
const [
|
|
1349
|
-
|
|
1348
|
+
const [N] = D;
|
|
1349
|
+
N.contentRect.width == f.value.width && N.contentRect.height == f.value.height || (await r(l.value), await h(u.level, !0));
|
|
1350
1350
|
}
|
|
1351
|
-
async function r(D,
|
|
1352
|
-
await z(D,
|
|
1351
|
+
async function r(D, N) {
|
|
1352
|
+
await z(D, N), D && Q();
|
|
1353
1353
|
}
|
|
1354
1354
|
async function T(D) {
|
|
1355
1355
|
if (!u.preview)
|
|
1356
1356
|
return;
|
|
1357
1357
|
u.preview = !1, D = D ?? u.level;
|
|
1358
|
-
const
|
|
1359
|
-
if (!
|
|
1358
|
+
const N = s.value;
|
|
1359
|
+
if (!N)
|
|
1360
1360
|
return;
|
|
1361
|
-
const { scrollTop: A, scrollLeft: k } =
|
|
1362
|
-
|
|
1361
|
+
const { scrollTop: A, scrollLeft: k } = N, { width: Y, height: C } = a.value, { scaleW: L, scaleH: I } = O(D), { top: R, left: $ } = p(L, I), B = $ != 0 ? $ : k * -1, P = R != 0 ? R : A * -1;
|
|
1362
|
+
N.scrollTop = 0, N.scrollLeft = 0;
|
|
1363
1363
|
const { value: V } = d;
|
|
1364
1364
|
V.width = `${Y}px`, V.height = `${C}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = Se(B, P, D), d.value = V, await fe(), u.offsetX = B, u.offsetY = P, await et(20);
|
|
1365
1365
|
}
|
|
1366
|
-
async function h(D,
|
|
1367
|
-
if (!
|
|
1366
|
+
async function h(D, N) {
|
|
1367
|
+
if (!N && u.preview)
|
|
1368
1368
|
return;
|
|
1369
1369
|
u.preview = !0, D = D ?? u.level;
|
|
1370
|
-
const { value: A } = d, { scaleW: k, scaleH: Y } =
|
|
1370
|
+
const { value: A } = d, { scaleW: k, scaleH: Y } = O(D), { left: C, top: L } = p(k, Y);
|
|
1371
1371
|
D === 1 && (A.maxHeight = "100%"), A.width = `${k}px`, A.height = `${Y}px`, A.transitionDuration = "0s", A.transform = Se(C, L, 1), d.value = A, await fe();
|
|
1372
|
-
const
|
|
1373
|
-
if (!
|
|
1372
|
+
const I = s.value;
|
|
1373
|
+
if (!I)
|
|
1374
1374
|
return;
|
|
1375
1375
|
const { offsetX: R, offsetY: $ } = u;
|
|
1376
|
-
R < 0 && (
|
|
1376
|
+
R < 0 && (I.scrollLeft = Math.abs(R)), $ < 0 && (I.scrollTop = Math.abs($));
|
|
1377
1377
|
}
|
|
1378
|
-
async function c(D,
|
|
1378
|
+
async function c(D, N, A) {
|
|
1379
1379
|
if (t || (D = le(D), D = Ce(
|
|
1380
1380
|
D,
|
|
1381
1381
|
n.value - n.value * 0.5,
|
|
1382
1382
|
o.value + o.value * 0.5
|
|
1383
1383
|
), D == u.level))
|
|
1384
1384
|
return;
|
|
1385
|
-
u.preview && await T(),
|
|
1386
|
-
const { value: k } = d, { width: Y, height: C } = a.value, { scaleW: L, scaleH:
|
|
1385
|
+
u.preview && await T(), N || (N = { x: v.startX.value, y: v.startY.value });
|
|
1386
|
+
const { value: k } = d, { width: Y, height: C } = a.value, { scaleW: L, scaleH: I } = O(D), { top: R, left: $ } = p(L, I), B = D / u.level, P = {
|
|
1387
1387
|
left: Math.abs(Y * D - f.value.width) * -1,
|
|
1388
1388
|
top: Math.abs(C * D - f.value.height) * -1,
|
|
1389
1389
|
right: $,
|
|
1390
1390
|
bottom: R
|
|
1391
1391
|
};
|
|
1392
|
-
let V = $ != 0 ? $ : (u.offsetX -
|
|
1392
|
+
let V = $ != 0 ? $ : (u.offsetX - N.x) * B + N.x, ce = R != 0 ? R : (u.offsetY - N.y) * B + N.y;
|
|
1393
1393
|
V = le(Ce(V, P.left, P.right)), ce = le(Ce(ce, P.top, P.bottom)), k.width = `${Y}px`, k.height = `${C}px`, k.transitionDuration = A ? An(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
1394
|
}
|
|
1395
1395
|
function y() {
|
|
1396
1396
|
const D = u.level > 1 ? 1 : H();
|
|
1397
1397
|
c(D, void 0, !0);
|
|
1398
1398
|
}
|
|
1399
|
-
function x(D,
|
|
1399
|
+
function x(D, N) {
|
|
1400
1400
|
if (!u.preview)
|
|
1401
1401
|
return;
|
|
1402
1402
|
const A = s.value;
|
|
1403
1403
|
!A || A.scrollTo({
|
|
1404
1404
|
left: u.offsetX - D,
|
|
1405
|
-
top: u.offsetY -
|
|
1405
|
+
top: u.offsetY - N
|
|
1406
1406
|
});
|
|
1407
1407
|
}
|
|
1408
1408
|
async function W() {
|
|
1409
1409
|
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
1410
|
}
|
|
1411
1411
|
function H() {
|
|
1412
|
-
const { width: D, height:
|
|
1412
|
+
const { width: D, height: N } = a.value, { width: A, height: k } = f.value, Y = 2.5;
|
|
1413
1413
|
let C;
|
|
1414
|
-
return
|
|
1414
|
+
return N == k ? (C = A / D, C - 1 < 0.1 && (C = Y)) : C = Math.max(Y, A / D, k / N), C;
|
|
1415
1415
|
}
|
|
1416
|
-
function
|
|
1417
|
-
const { width:
|
|
1416
|
+
function O(D) {
|
|
1417
|
+
const { width: N, height: A } = a.value;
|
|
1418
1418
|
return {
|
|
1419
|
-
scaleW: le(D *
|
|
1419
|
+
scaleW: le(D * N),
|
|
1420
1420
|
scaleH: le(D * A)
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
|
-
function p(D,
|
|
1424
|
-
const { width: A, height: k } = f.value, Y = Math.max(0, (k -
|
|
1423
|
+
function p(D, N) {
|
|
1424
|
+
const { width: A, height: k } = f.value, Y = Math.max(0, (k - N) * 0.5), C = Math.max(0, (A - D) * 0.5);
|
|
1425
1425
|
return { top: Y, left: C };
|
|
1426
1426
|
}
|
|
1427
|
-
async function z(D,
|
|
1428
|
-
if (D = D ?? l.value,
|
|
1427
|
+
async function z(D, N) {
|
|
1428
|
+
if (D = D ?? l.value, N = N ?? s.value, !N)
|
|
1429
1429
|
return;
|
|
1430
1430
|
let A, { clientWidth: k = 0, clientHeight: Y = 0 } = D || {};
|
|
1431
|
-
const { clientWidth: C, clientHeight: L } =
|
|
1431
|
+
const { clientWidth: C, clientHeight: L } = N;
|
|
1432
1432
|
if (D instanceof HTMLImageElement ? A = { width: D.naturalWidth, height: D.naturalHeight } : D instanceof HTMLVideoElement && (A = { width: D.videoWidth, height: D.videoHeight }), A) {
|
|
1433
|
-
const
|
|
1433
|
+
const I = En(
|
|
1434
1434
|
A.width,
|
|
1435
1435
|
A.height,
|
|
1436
1436
|
C,
|
|
1437
1437
|
L
|
|
1438
1438
|
);
|
|
1439
|
-
k =
|
|
1439
|
+
k = I.width, Y = I.height;
|
|
1440
1440
|
}
|
|
1441
1441
|
(k === 0 || Y === 0) && (k = a.value.width || C, Y = a.value.height || L), a.value = {
|
|
1442
1442
|
width: Math.min(k, C),
|
|
@@ -1472,7 +1472,7 @@ function Co(e) {
|
|
|
1472
1472
|
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1473
1473
|
let a = !1, f = null;
|
|
1474
1474
|
const u = { top: 0, left: 0 }, d = ze(r, 150);
|
|
1475
|
-
|
|
1475
|
+
Ne("keyup", h), Ne("keydown", T);
|
|
1476
1476
|
function v(c) {
|
|
1477
1477
|
const y = t.containerRef.value;
|
|
1478
1478
|
if (!y)
|
|
@@ -1535,9 +1535,9 @@ function So(e) {
|
|
|
1535
1535
|
function T(h, c) {
|
|
1536
1536
|
f.measure();
|
|
1537
1537
|
let { clientX: y, clientY: x } = c.touches.length != 0 ? c.touches[0] : c.changedTouches[0];
|
|
1538
|
-
const { top: W, left: H, right:
|
|
1538
|
+
const { top: W, left: H, right: O, bottom: p } = f.arrivedState;
|
|
1539
1539
|
if (h == "start")
|
|
1540
|
-
i = W || H ||
|
|
1540
|
+
i = W || H || O || p;
|
|
1541
1541
|
else if (u == 2)
|
|
1542
1542
|
i = !1;
|
|
1543
1543
|
else if (i) {
|
|
@@ -1550,14 +1550,14 @@ function So(e) {
|
|
|
1550
1550
|
}
|
|
1551
1551
|
else if (o.direction.value == "horizontal") {
|
|
1552
1552
|
const z = o.startX.value < y;
|
|
1553
|
-
i = H && z ||
|
|
1553
|
+
i = H && z || O && !z;
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
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
1557
|
}
|
|
1558
1558
|
return { core: t, onTouchStart: g, onTouchMove: M, onTouchEnd: r };
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Oo() {
|
|
1561
1561
|
const e = Te({
|
|
1562
1562
|
scale: 1,
|
|
1563
1563
|
startX: 0,
|
|
@@ -1596,7 +1596,7 @@ function jn(e) {
|
|
|
1596
1596
|
t || (e(), t = !0);
|
|
1597
1597
|
};
|
|
1598
1598
|
}
|
|
1599
|
-
function
|
|
1599
|
+
function _o(e) {
|
|
1600
1600
|
let t = null;
|
|
1601
1601
|
const { isActivated: n } = Ln(), o = jn(() => t = window.onBackPress);
|
|
1602
1602
|
function l() {
|
|
@@ -1623,7 +1623,7 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1623
1623
|
buttonClickEvent: null
|
|
1624
1624
|
},
|
|
1625
1625
|
setup(e) {
|
|
1626
|
-
const t = e, n = m(), o = m(), l = m(), s =
|
|
1626
|
+
const t = e, n = m(), o = m(), l = m(), s = w(() => {
|
|
1627
1627
|
switch (t.position) {
|
|
1628
1628
|
case "top":
|
|
1629
1629
|
return 10;
|
|
@@ -1632,14 +1632,14 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1632
1632
|
case "bottom":
|
|
1633
1633
|
return 85;
|
|
1634
1634
|
}
|
|
1635
|
-
}), a =
|
|
1635
|
+
}), a = w(() => ({
|
|
1636
1636
|
position: "absolute",
|
|
1637
1637
|
borderRadius: "10px",
|
|
1638
1638
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
1639
1639
|
padding: "14px 19px",
|
|
1640
1640
|
top: `calc(${s.value}% - ${l.value}px)`,
|
|
1641
1641
|
left: `calc(50% - ${o.value}px)`
|
|
1642
|
-
})), f =
|
|
1642
|
+
})), f = w(() => ({
|
|
1643
1643
|
width: "fit-content",
|
|
1644
1644
|
display: "flex",
|
|
1645
1645
|
justifyContent: "center",
|
|
@@ -1658,12 +1658,12 @@ const xn = ["onClick"], Cn = /* @__PURE__ */ q({
|
|
|
1658
1658
|
ref_key: "toastWrapper",
|
|
1659
1659
|
ref: n,
|
|
1660
1660
|
class: "toastWrapper",
|
|
1661
|
-
style: K([
|
|
1661
|
+
style: K([E(a), { zIndex: 9999999 }])
|
|
1662
1662
|
}, [
|
|
1663
|
-
|
|
1664
|
-
style: K(
|
|
1663
|
+
_("div", {
|
|
1664
|
+
style: K(E(f))
|
|
1665
1665
|
}, [
|
|
1666
|
-
|
|
1666
|
+
_("span", null, Re(e.message), 1)
|
|
1667
1667
|
], 4)
|
|
1668
1668
|
], 12, xn));
|
|
1669
1669
|
}
|
|
@@ -1700,7 +1700,7 @@ class bo {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
}
|
|
1703
|
-
const
|
|
1703
|
+
const On = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
1704
1704
|
__name: "SvgIcon",
|
|
1705
1705
|
props: {
|
|
1706
1706
|
name: null,
|
|
@@ -1710,7 +1710,7 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
|
1710
1710
|
height: null
|
|
1711
1711
|
},
|
|
1712
1712
|
setup(e) {
|
|
1713
|
-
const t = e, n =
|
|
1713
|
+
const t = e, n = w(() => `#${t.prefix}-${t.name}`), o = w(() => ({
|
|
1714
1714
|
width: `${t.width ?? t.height}px`,
|
|
1715
1715
|
height: `${t.height ?? t.width}px`,
|
|
1716
1716
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
@@ -1721,17 +1721,17 @@ const _n = ["xlink:href", "fill", "color"], Ne = /* @__PURE__ */ q({
|
|
|
1721
1721
|
}
|
|
1722
1722
|
return (s, a) => (b(), U("svg", {
|
|
1723
1723
|
"aria-hidden": "",
|
|
1724
|
-
style: K({ ...
|
|
1724
|
+
style: K({ ...E(o), ...l(s.$attrs) })
|
|
1725
1725
|
}, [
|
|
1726
|
-
|
|
1727
|
-
"xlink:href":
|
|
1726
|
+
_("use", {
|
|
1727
|
+
"xlink:href": E(n),
|
|
1728
1728
|
fill: e.color,
|
|
1729
1729
|
color: e.color
|
|
1730
|
-
}, null, 8,
|
|
1730
|
+
}, null, 8, On)
|
|
1731
1731
|
], 4));
|
|
1732
1732
|
}
|
|
1733
1733
|
});
|
|
1734
|
-
function
|
|
1734
|
+
function _n(e) {
|
|
1735
1735
|
const {
|
|
1736
1736
|
containerEl: t,
|
|
1737
1737
|
sliderEl: n,
|
|
@@ -1748,10 +1748,10 @@ function On(e) {
|
|
|
1748
1748
|
clientHeight: 0
|
|
1749
1749
|
}), T = m({
|
|
1750
1750
|
clientHeight: 0
|
|
1751
|
-
}), h =
|
|
1751
|
+
}), h = w(() => !!g.value), c = w(() => r.value.scrollHeight > r.value.clientHeight), y = w(() => o ? r.value.clientHeight - H.value : r.value.clientHeight - T.value.clientHeight), x = w(() => r.value.scrollHeight - r.value.clientHeight), W = w(() => Math.max(
|
|
1752
1752
|
r.value.clientHeight / r.value.scrollHeight,
|
|
1753
1753
|
0.05
|
|
1754
|
-
)), H =
|
|
1754
|
+
)), H = w(() => W.value > s ? 0 : W.value * r.value.clientHeight), O = w(() => ({
|
|
1755
1755
|
willChange: "transform",
|
|
1756
1756
|
transform: `translate3d(0,${M.value}px,0)`,
|
|
1757
1757
|
height: o ? `${H.value}px` : void 0
|
|
@@ -1768,7 +1768,7 @@ function On(e) {
|
|
|
1768
1768
|
function D() {
|
|
1769
1769
|
h.value || (f.value = !0);
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function N(B) {
|
|
1772
1772
|
if (!h.value)
|
|
1773
1773
|
return;
|
|
1774
1774
|
let P = B.clientY - r.value.top - g.value;
|
|
@@ -1789,12 +1789,12 @@ function On(e) {
|
|
|
1789
1789
|
let P = "addEventListener";
|
|
1790
1790
|
B === "add" ? P = "addEventListener" : P = "removeEventListener", n.value?.[P]("pointerdown", p, {
|
|
1791
1791
|
passive: !0
|
|
1792
|
-
}), window[P]("pointermove",
|
|
1792
|
+
}), window[P]("pointermove", N, { passive: !0 }), window[P]("pointerup", z, { passive: !0 });
|
|
1793
1793
|
}
|
|
1794
1794
|
const L = new MutationObserver((B) => {
|
|
1795
|
-
(a == "classList" || B.map((V) => V.oldValue).join().includes("height")) &&
|
|
1795
|
+
(a == "classList" || B.map((V) => V.oldValue).join().includes("height")) && I();
|
|
1796
1796
|
});
|
|
1797
|
-
function
|
|
1797
|
+
function I() {
|
|
1798
1798
|
r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
|
|
1799
1799
|
}
|
|
1800
1800
|
function R() {
|
|
@@ -1813,7 +1813,7 @@ function On(e) {
|
|
|
1813
1813
|
attributeOldValue: !0,
|
|
1814
1814
|
attributeFilter: ["style"]
|
|
1815
1815
|
}), L.observe(t.value, B), setTimeout(() => {
|
|
1816
|
-
|
|
1816
|
+
I();
|
|
1817
1817
|
}, 100), R();
|
|
1818
1818
|
} else
|
|
1819
1819
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
@@ -1826,12 +1826,12 @@ function On(e) {
|
|
|
1826
1826
|
offsetTop: M,
|
|
1827
1827
|
scrollTop: i,
|
|
1828
1828
|
scrollable: c,
|
|
1829
|
-
sliderPos:
|
|
1829
|
+
sliderPos: O,
|
|
1830
1830
|
init: $,
|
|
1831
1831
|
modifySliderEventListener: C
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
|
-
const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ */ bn(() => /* @__PURE__ */
|
|
1834
|
+
const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ */ bn(() => /* @__PURE__ */ _("div", { class: "default-slider" }, null, -1)), Qn = /* @__PURE__ */ q({
|
|
1835
1835
|
__name: "ScrollBar",
|
|
1836
1836
|
props: {
|
|
1837
1837
|
containerEl: null,
|
|
@@ -1841,13 +1841,13 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1841
1841
|
performance: null
|
|
1842
1842
|
},
|
|
1843
1843
|
setup(e, { expose: t }) {
|
|
1844
|
-
const n = e, o = !!
|
|
1844
|
+
const n = e, o = !!Ot().default, l = m(null), s = w(() => n.containerEl), a = _n({
|
|
1845
1845
|
containerEl: s,
|
|
1846
1846
|
sliderEl: l,
|
|
1847
1847
|
autoHeight: o ? n.autoHeight : !0,
|
|
1848
1848
|
performance: n.performance,
|
|
1849
1849
|
observeMethod: n.observeMethod
|
|
1850
|
-
}), { scrollable: f, isScrollEnd: u, sliderPos: d } = a, v = m(!1), i = n.autoHide ?
|
|
1850
|
+
}), { scrollable: f, isScrollEnd: u, sliderPos: d } = a, v = m(!1), i = n.autoHide ? w(() => v.value || !u.value) : w(() => f.value), { load: g } = Fe(
|
|
1851
1851
|
`.hide-scrollbar {
|
|
1852
1852
|
scrollbar-width: none;
|
|
1853
1853
|
-ms-overflow-style: none;
|
|
@@ -1870,21 +1870,21 @@ const bn = (e) => (pe("data-v-405c22cf"), e = e(), De(), e), kn = /* @__PURE__ *
|
|
|
1870
1870
|
function r() {
|
|
1871
1871
|
v.value = !1;
|
|
1872
1872
|
}
|
|
1873
|
-
return t({ uScrollBarReturn: a }), (T, h) => (b(),
|
|
1873
|
+
return t({ uScrollBarReturn: a }), (T, h) => (b(), Ie(Ye, null, {
|
|
1874
1874
|
default: Be(() => [
|
|
1875
|
-
ve(
|
|
1875
|
+
ve(_("div", {
|
|
1876
1876
|
ref_key: "sliderRef",
|
|
1877
1877
|
ref: l,
|
|
1878
1878
|
class: "slider-wrapper",
|
|
1879
1879
|
onMouseenter: M,
|
|
1880
1880
|
onMouseleave: r,
|
|
1881
|
-
style: K(
|
|
1881
|
+
style: K(E(d))
|
|
1882
1882
|
}, [
|
|
1883
|
-
|
|
1883
|
+
Ee(T.$slots, "default", {}, () => [
|
|
1884
1884
|
kn
|
|
1885
1885
|
], !0)
|
|
1886
1886
|
], 36), [
|
|
1887
|
-
[Ae,
|
|
1887
|
+
[Ae, E(i)]
|
|
1888
1888
|
])
|
|
1889
1889
|
]),
|
|
1890
1890
|
_: 3
|
|
@@ -1897,7 +1897,7 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1897
1897
|
}, Rn = {
|
|
1898
1898
|
key: 0,
|
|
1899
1899
|
class: "box-load"
|
|
1900
|
-
}, $n = { class: "left-load" }, Pn = { class: "right-load" }, Fn = /* @__PURE__ */ Yn(() => /* @__PURE__ */
|
|
1900
|
+
}, $n = { class: "left-load" }, Pn = { class: "right-load" }, Fn = /* @__PURE__ */ Yn(() => /* @__PURE__ */ _("div", { class: "among-load" }, null, -1)), Hn = { class: "pull-arrow" }, Wn = { key: 1 }, Xn = /* @__PURE__ */ q({
|
|
1901
1901
|
__name: "PullRefresh",
|
|
1902
1902
|
props: {
|
|
1903
1903
|
refresh: null,
|
|
@@ -1906,10 +1906,10 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1906
1906
|
pullRefreshContainer: null
|
|
1907
1907
|
},
|
|
1908
1908
|
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 =
|
|
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 = w(() => t.scrollTop), h = w(() => ({
|
|
1910
1910
|
transition: `${g.value}ms`,
|
|
1911
1911
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
1912
|
-
})), c =
|
|
1912
|
+
})), c = w(() => ({
|
|
1913
1913
|
borderColor: o,
|
|
1914
1914
|
transition: g.value,
|
|
1915
1915
|
transform: `rotate(${100 + a.value}deg)`,
|
|
@@ -1927,46 +1927,46 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1927
1927
|
y.value = p.touches[0].pageY;
|
|
1928
1928
|
}, W = (p) => {
|
|
1929
1929
|
const z = p.touches[0].pageY - y.value;
|
|
1930
|
-
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,
|
|
1930
|
+
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
1931
|
}, H = () => {
|
|
1932
1932
|
if (t.refreshOff || !t?.refresh || M.value === 2)
|
|
1933
1933
|
return;
|
|
1934
1934
|
d.value = 0, i.value = 300;
|
|
1935
1935
|
const p = Math.pow(v.value, n);
|
|
1936
|
-
|
|
1936
|
+
O.value.style.transition = `${i.value}ms`, p > 50 ? (M.value = 2, v.value = Math.pow(50, 1 / n), O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, g.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
1937
1937
|
r.value = "\u5237\u65B0\u6210\u529F";
|
|
1938
1938
|
}).catch(() => {
|
|
1939
1939
|
r.value = "\u5237\u65B0\u5931\u8D25";
|
|
1940
1940
|
}).finally(() => {
|
|
1941
1941
|
setTimeout(() => {
|
|
1942
|
-
M.value = 0, v.value = 0,
|
|
1942
|
+
M.value = 0, v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1943
1943
|
v.value,
|
|
1944
1944
|
n
|
|
1945
1945
|
)}px, 0)`, setTimeout(() => {
|
|
1946
1946
|
r.value = void 0;
|
|
1947
1947
|
}, g.value);
|
|
1948
1948
|
}, 600);
|
|
1949
|
-
})) : (v.value = 0,
|
|
1950
|
-
},
|
|
1949
|
+
})) : (v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
1950
|
+
}, O = m(null);
|
|
1951
1951
|
return ie(() => {
|
|
1952
|
-
t?.refreshOff || (
|
|
1952
|
+
t?.refreshOff || (O.value = document.querySelector(
|
|
1953
1953
|
t.pullRefreshContainer
|
|
1954
|
-
),
|
|
1954
|
+
), O.value?.addEventListener("touchstart", x), O.value?.addEventListener("touchmove", W), O.value?.addEventListener("touchend", H));
|
|
1955
1955
|
}), (p, z) => (b(), U("div", Bn, [
|
|
1956
|
-
|
|
1956
|
+
_("div", {
|
|
1957
1957
|
class: "pull-refresh-box",
|
|
1958
|
-
style: K(
|
|
1958
|
+
style: K(E(h))
|
|
1959
1959
|
}, [
|
|
1960
1960
|
r.value ? (b(), U("div", Wn, Re(r.value), 1)) : (b(), U("div", Un, [
|
|
1961
1961
|
M.value == 2 ? (b(), U("div", Rn, [
|
|
1962
|
-
|
|
1963
|
-
|
|
1962
|
+
_("div", $n, [
|
|
1963
|
+
_("div", {
|
|
1964
1964
|
class: "left-circle",
|
|
1965
1965
|
style: K({ backgroundColor: o })
|
|
1966
1966
|
}, null, 4)
|
|
1967
1967
|
]),
|
|
1968
|
-
|
|
1969
|
-
|
|
1968
|
+
_("div", Pn, [
|
|
1969
|
+
_("div", {
|
|
1970
1970
|
class: "right-circle",
|
|
1971
1971
|
style: K({ backgroundColor: o })
|
|
1972
1972
|
}, null, 4)
|
|
@@ -1975,10 +1975,10 @@ const ko = /* @__PURE__ */ ee(Qn, [["__scopeId", "data-v-405c22cf"]]), Yn = (e)
|
|
|
1975
1975
|
])) : (b(), U("div", {
|
|
1976
1976
|
key: 1,
|
|
1977
1977
|
class: "pull-circle-line",
|
|
1978
|
-
style: K(
|
|
1978
|
+
style: K(E(c))
|
|
1979
1979
|
}, [
|
|
1980
|
-
|
|
1981
|
-
|
|
1980
|
+
_("div", Hn, [
|
|
1981
|
+
_("div", {
|
|
1982
1982
|
class: oe(["arrows", { opacity: u.value }]),
|
|
1983
1983
|
style: K({ borderBottomColor: o })
|
|
1984
1984
|
}, null, 6)
|
|
@@ -2004,7 +2004,7 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2004
2004
|
},
|
|
2005
2005
|
emits: ["scrollEnd"],
|
|
2006
2006
|
setup(e, { expose: t, emit: n }) {
|
|
2007
|
-
const o = e, l = Gt(
|
|
2007
|
+
const o = e, l = Gt(_t(o, "data"), {
|
|
2008
2008
|
itemHeight: (M) => o.itemHeight(o.data[M]),
|
|
2009
2009
|
overscan: o.overscan,
|
|
2010
2010
|
scrollEndHook: () => {
|
|
@@ -2029,29 +2029,29 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2029
2029
|
Me(Zn, {
|
|
2030
2030
|
refresh: e.refresh,
|
|
2031
2031
|
refreshOff: e.refreshOff,
|
|
2032
|
-
scrollTop:
|
|
2032
|
+
scrollTop: E(v),
|
|
2033
2033
|
pullRefreshContainer: "#" + i
|
|
2034
2034
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
2035
|
-
|
|
2035
|
+
_("div", {
|
|
2036
2036
|
class: "virtualListWrapper",
|
|
2037
2037
|
id: i
|
|
2038
2038
|
}, [
|
|
2039
|
-
|
|
2040
|
-
onScrollPassive: r[0] || (r[0] = (...T) =>
|
|
2041
|
-
ref:
|
|
2039
|
+
_("div", ge({
|
|
2040
|
+
onScrollPassive: r[0] || (r[0] = (...T) => E(a).onScroll && E(a).onScroll(...T)),
|
|
2041
|
+
ref: E(a).ref,
|
|
2042
2042
|
class: "virtualList"
|
|
2043
2043
|
}, M.$attrs), [
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
(b(!0), U(be, null, bt(
|
|
2044
|
+
_("div", Oe(_e(E(f))), [
|
|
2045
|
+
_("div", Oe(_e(E(u))), [
|
|
2046
|
+
(b(!0), U(be, null, bt(E(s), ({ data: T, index: h }) => (b(), U("div", {
|
|
2047
2047
|
key: g(T, h),
|
|
2048
2048
|
"data-key": g(T, h),
|
|
2049
2049
|
style: K({
|
|
2050
|
-
height: `${
|
|
2050
|
+
height: `${E(d)(h).height}px`,
|
|
2051
2051
|
display: "flex"
|
|
2052
2052
|
})
|
|
2053
2053
|
}, [
|
|
2054
|
-
|
|
2054
|
+
Ee(M.$slots, "default", {
|
|
2055
2055
|
data: T,
|
|
2056
2056
|
index: h
|
|
2057
2057
|
}, void 0, !0)
|
|
@@ -2063,14 +2063,14 @@ const Zn = /* @__PURE__ */ ee(Xn, [["__scopeId", "data-v-df5da876"]]), Vn = ["da
|
|
|
2063
2063
|
], 64));
|
|
2064
2064
|
}
|
|
2065
2065
|
});
|
|
2066
|
-
const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e) => (pe("data-v-33519afd"), e = e(), De(), e), qn = { style: { position: "absolute" } }, Jn = /* @__PURE__ */ tt(() => /* @__PURE__ */
|
|
2066
|
+
const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e) => (pe("data-v-33519afd"), e = e(), De(), e), qn = { style: { position: "absolute" } }, Jn = /* @__PURE__ */ tt(() => /* @__PURE__ */ _("div", { class: "wrapper" }, null, -1)), eo = ["width", "height"], to = /* @__PURE__ */ tt(() => /* @__PURE__ */ _("title", null, "logo", -1)), no = /* @__PURE__ */ tt(() => /* @__PURE__ */ _("g", {
|
|
2067
2067
|
id: "group-1",
|
|
2068
2068
|
stroke: "none",
|
|
2069
2069
|
"stroke-width": "1",
|
|
2070
2070
|
fill: "none",
|
|
2071
2071
|
"fill-rule": "evenodd"
|
|
2072
2072
|
}, [
|
|
2073
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ _("path", {
|
|
2074
2074
|
d: "M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",
|
|
2075
2075
|
id: "path-1",
|
|
2076
2076
|
fill: "#FFF"
|
|
@@ -2106,7 +2106,6 @@ const Qo = /* @__PURE__ */ ee(Gn, [["__scopeId", "data-v-dfe60586"]]), tt = (e)
|
|
|
2106
2106
|
});
|
|
2107
2107
|
const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
2108
2108
|
"image/avif",
|
|
2109
|
-
"image/bmp",
|
|
2110
2109
|
"image/jpg",
|
|
2111
2110
|
"image/jpeg",
|
|
2112
2111
|
"image/gif",
|
|
@@ -2129,7 +2128,7 @@ const Yo = /* @__PURE__ */ ee(lo, [["__scopeId", "data-v-33519afd"]]), so = [
|
|
|
2129
2128
|
"image/svg+xml"
|
|
2130
2129
|
];
|
|
2131
2130
|
function Dt(e, t) {
|
|
2132
|
-
const n = m(e?.value), o =
|
|
2131
|
+
const n = m(e?.value), o = w(() => n.value?.startsWith("/_lzc")), l = m(!1), s = w(() => l.value), a = w(() => {
|
|
2133
2132
|
const u = t?.value;
|
|
2134
2133
|
return !u || u.startsWith("video/") ? !0 : u.startsWith("image/") ? o.value ? so.includes(u) : ao.includes(u) : !1;
|
|
2135
2134
|
});
|
|
@@ -2154,7 +2153,7 @@ function Tt() {
|
|
|
2154
2153
|
}
|
|
2155
2154
|
} };
|
|
2156
2155
|
}
|
|
2157
|
-
const io = (e) => (pe("data-v-
|
|
2156
|
+
const io = (e) => (pe("data-v-3526be93"), e = e(), De(), e), uo = ["title"], ro = /* @__PURE__ */ io(() => /* @__PURE__ */ _("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), co = ["src"], fo = ["src"], vo = ["title"], Mo = { inheritAttrs: !1 }, go = /* @__PURE__ */ q({
|
|
2158
2157
|
...Mo,
|
|
2159
2158
|
__name: "Image",
|
|
2160
2159
|
props: {
|
|
@@ -2162,7 +2161,9 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2162
2161
|
mime: null,
|
|
2163
2162
|
thumbnail: null,
|
|
2164
2163
|
isShowSrc: { type: Boolean },
|
|
2165
|
-
autoRemoveThumbnail: { type: Boolean }
|
|
2164
|
+
autoRemoveThumbnail: { type: Boolean },
|
|
2165
|
+
noSupportIconName: { default: "\u4E0D\u652F\u6301\u663E\u793A" },
|
|
2166
|
+
badImageIconName: { default: "\u56FE\u7247\u635F\u574F" }
|
|
2166
2167
|
},
|
|
2167
2168
|
emits: ["load"],
|
|
2168
2169
|
setup(e, { emit: t }) {
|
|
@@ -2185,59 +2186,59 @@ const io = (e) => (pe("data-v-774cb54a"), e = e(), De(), e), uo = ["title"], ro
|
|
|
2185
2186
|
async function H(p) {
|
|
2186
2187
|
p ? x() : l.value && t("load", l.value), s.value = !0;
|
|
2187
2188
|
}
|
|
2188
|
-
function
|
|
2189
|
+
function O(p) {
|
|
2189
2190
|
p ? M() : c(), s.value = !0;
|
|
2190
2191
|
}
|
|
2191
2192
|
return (p, z) => (b(), U(be, null, [
|
|
2192
|
-
s.value ? ue("", !0) : (b(),
|
|
2193
|
-
|
|
2194
|
-
title:
|
|
2193
|
+
s.value ? ue("", !0) : (b(), Ie(E(T), { key: 0 })),
|
|
2194
|
+
E(i) ? E(g) ? (b(), U("div", ge({ key: 3 }, p.$attrs, {
|
|
2195
|
+
title: E(v),
|
|
2195
2196
|
class: "tip-wrap"
|
|
2196
2197
|
}), [
|
|
2197
|
-
Me(
|
|
2198
|
+
Me(we, {
|
|
2198
2199
|
class: "bad-image",
|
|
2199
|
-
name:
|
|
2200
|
-
})
|
|
2201
|
-
], 16, vo)) :
|
|
2200
|
+
name: e.badImageIconName
|
|
2201
|
+
}, null, 8, ["name"])
|
|
2202
|
+
], 16, vo)) : Ee(p.$slots, "default", {
|
|
2202
2203
|
key: 2,
|
|
2203
|
-
src:
|
|
2204
|
+
src: E(v),
|
|
2204
2205
|
onLoad: H,
|
|
2205
|
-
onError:
|
|
2206
|
+
onError: O
|
|
2206
2207
|
}, () => [
|
|
2207
|
-
|
|
2208
|
+
E(h) ? ve((b(), U("img", ge({ key: 0 }, p.$attrs, {
|
|
2208
2209
|
ref_key: "thumbnailRef",
|
|
2209
2210
|
ref: l,
|
|
2210
2211
|
onLoad: z[0] || (z[0] = (Q) => H()),
|
|
2211
|
-
onError: z[1] || (z[1] = (Q) =>
|
|
2212
|
+
onError: z[1] || (z[1] = (Q) => O()),
|
|
2212
2213
|
src: e.thumbnail
|
|
2213
2214
|
}), null, 16, co)), [
|
|
2214
|
-
[
|
|
2215
|
+
[E(r)]
|
|
2215
2216
|
]) : ue("", !0),
|
|
2216
2217
|
e.isShowSrc || a.value ? ve((b(), U("img", ge({ key: 1 }, p.$attrs, {
|
|
2217
2218
|
ref_key: "srcRef",
|
|
2218
2219
|
ref: o,
|
|
2219
2220
|
class: "src-class",
|
|
2220
2221
|
onLoad: z[2] || (z[2] = (Q) => H(!0)),
|
|
2221
|
-
onError: z[3] || (z[3] = (Q) =>
|
|
2222
|
-
src:
|
|
2222
|
+
onError: z[3] || (z[3] = (Q) => O(!0)),
|
|
2223
|
+
src: E(v)
|
|
2223
2224
|
}), null, 16, fo)), [
|
|
2224
|
-
[
|
|
2225
|
+
[E(r)],
|
|
2225
2226
|
[Ae, a.value]
|
|
2226
2227
|
]) : ue("", !0)
|
|
2227
2228
|
], !0) : (b(), U("div", ge({ key: 1 }, p.$attrs, {
|
|
2228
|
-
title:
|
|
2229
|
+
title: E(v),
|
|
2229
2230
|
class: "tip-wrap"
|
|
2230
2231
|
}), [
|
|
2231
|
-
Me(
|
|
2232
|
+
Me(we, {
|
|
2232
2233
|
class: "no-support-icon",
|
|
2233
|
-
name:
|
|
2234
|
-
}),
|
|
2234
|
+
name: e.noSupportIconName
|
|
2235
|
+
}, null, 8, ["name"]),
|
|
2235
2236
|
ro
|
|
2236
2237
|
], 16, uo))
|
|
2237
2238
|
], 64));
|
|
2238
2239
|
}
|
|
2239
2240
|
});
|
|
2240
|
-
const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-
|
|
2241
|
+
const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-3526be93"]]), ho = ["title"], mo = ["src"], yo = ["title"], po = /* @__PURE__ */ q({
|
|
2241
2242
|
__name: "Thumbnail",
|
|
2242
2243
|
props: {
|
|
2243
2244
|
src: null,
|
|
@@ -2245,12 +2246,12 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
|
|
|
2245
2246
|
},
|
|
2246
2247
|
setup(e) {
|
|
2247
2248
|
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();
|
|
2248
|
-
return (v, i) =>
|
|
2249
|
+
return (v, i) => E(f) ? E(a) ? (b(), U("div", {
|
|
2249
2250
|
key: 2,
|
|
2250
|
-
title:
|
|
2251
|
+
title: E(s),
|
|
2251
2252
|
class: "icon-wrap"
|
|
2252
2253
|
}, [
|
|
2253
|
-
Me(
|
|
2254
|
+
Me(we, {
|
|
2254
2255
|
class: "icon",
|
|
2255
2256
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2256
2257
|
})
|
|
@@ -2258,17 +2259,17 @@ const Bo = /* @__PURE__ */ ee(go, [["__scopeId", "data-v-774cb54a"]]), ho = ["ti
|
|
|
2258
2259
|
key: 1,
|
|
2259
2260
|
fetchpriority: "high",
|
|
2260
2261
|
onLoad: i[0] || (i[0] = (g) => n.value = !0),
|
|
2261
|
-
onError: i[1] || (i[1] = (...g) =>
|
|
2262
|
-
src:
|
|
2262
|
+
onError: i[1] || (i[1] = (...g) => E(u) && E(u)(...g)),
|
|
2263
|
+
src: E(s)
|
|
2263
2264
|
}, null, 40, mo)), [
|
|
2264
|
-
[
|
|
2265
|
+
[E(d)],
|
|
2265
2266
|
[Ae, n.value]
|
|
2266
2267
|
]) : (b(), U("div", {
|
|
2267
2268
|
key: 0,
|
|
2268
|
-
title:
|
|
2269
|
+
title: E(s),
|
|
2269
2270
|
class: "icon-wrap"
|
|
2270
2271
|
}, [
|
|
2271
|
-
Me(
|
|
2272
|
+
Me(we, {
|
|
2272
2273
|
class: "icon",
|
|
2273
2274
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2274
2275
|
})
|
|
@@ -2284,7 +2285,7 @@ export {
|
|
|
2284
2285
|
jo as PageLoading,
|
|
2285
2286
|
Zn as PullRefresh,
|
|
2286
2287
|
ko as ScrollBar,
|
|
2287
|
-
|
|
2288
|
+
we as SvgIcon,
|
|
2288
2289
|
Uo as Thumbnail,
|
|
2289
2290
|
bo as ToastCreator,
|
|
2290
2291
|
Qo as VirtualList,
|
|
@@ -2302,20 +2303,20 @@ export {
|
|
|
2302
2303
|
We as toggleKey,
|
|
2303
2304
|
ye as unselectAllKey,
|
|
2304
2305
|
Ge as unselectKey,
|
|
2305
|
-
|
|
2306
|
+
_o as useBackPress,
|
|
2306
2307
|
xo as useDelayAsync,
|
|
2307
2308
|
Lo as useDelayLoad,
|
|
2308
2309
|
yt as useDelayLoadComp,
|
|
2309
|
-
|
|
2310
|
+
Oo as useDownDrag,
|
|
2310
2311
|
mt as useDragSelect,
|
|
2311
2312
|
Ao as useDragSelectByMobile,
|
|
2312
|
-
|
|
2313
|
+
Eo as useDragSelectByPc,
|
|
2313
2314
|
Ln as useRouterActivated,
|
|
2314
2315
|
So as useScaleImageByMobile,
|
|
2315
2316
|
Co as useScaleImageByPc,
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2317
|
+
wo as useSelectable,
|
|
2318
|
+
Io as useSelectableByBase,
|
|
2319
|
+
No as useSelectableInjectors,
|
|
2319
2320
|
Gt as useVirtualList,
|
|
2320
2321
|
To as vDebounceClick,
|
|
2321
2322
|
kt as vSingleClick
|