@lazycatcloud/lzc-toolkit 0.0.202 → 0.0.205
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as dt, watchEffect as _t, readonly as vt, getCurrentScope as bt, onScopeDispose as Mt, onMounted as ce, nextTick as Me, ref as m, watch as G, customRef as kt, unref as L, isRef as Qt, getCurrentInstance as Be, onUpdated as Yt, computed as j, reactive as ye, onUnmounted as gt, inject as ee, provide as F, defineComponent as q, h as ue, render as pe, openBlock as
|
|
1
|
+
import { shallowRef as dt, watchEffect as _t, readonly as vt, getCurrentScope as bt, onScopeDispose as Mt, onMounted as ce, nextTick as Me, ref as m, watch as G, customRef as kt, unref as L, isRef as Qt, getCurrentInstance as Be, onUpdated as Yt, computed as j, reactive as ye, onUnmounted as gt, inject as ee, provide as F, defineComponent as q, h as ue, render as pe, openBlock as R, createBlock as Ee, Transition as Ue, withCtx as Re, withDirectives as re, createElementBlock as P, normalizeClass as se, createElementVNode as H, withModifiers as me, renderSlot as Ie, createCommentVNode as fe, useCssVars as He, normalizeProps as be, guardReactiveProps as ke, pushScopeId as Ae, popScopeId as ze, normalizeStyle as K, toDisplayString as $e, vShow as Le, createVNode as ge, onBeforeUnmount as ht, onActivated as mt, onBeforeMount as Bt, onDeactivated as Ut, useSlots as Rt, toRef as Ht, Fragment as Qe, mergeProps as he, renderList as $t, toRefs as yt, createTextVNode as Pt } from "vue";
|
|
2
2
|
const Ft = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
@@ -273,13 +273,13 @@ function ln(e, t = {}) {
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
function g(N, T) {
|
|
276
|
-
var I,
|
|
276
|
+
var I, Y, y;
|
|
277
277
|
if (!r)
|
|
278
278
|
return;
|
|
279
279
|
const A = te(e);
|
|
280
280
|
!A || (y = A instanceof Document ? r.document.body : A) == null || y.scrollTo({
|
|
281
281
|
top: (I = te(T)) != null ? I : i.value,
|
|
282
|
-
left: (
|
|
282
|
+
left: (Y = te(N)) != null ? Y : d.value,
|
|
283
283
|
behavior: te(u)
|
|
284
284
|
});
|
|
285
285
|
}
|
|
@@ -299,14 +299,14 @@ function ln(e, t = {}) {
|
|
|
299
299
|
var T;
|
|
300
300
|
if (!r)
|
|
301
301
|
return;
|
|
302
|
-
const I = ((T = N?.document) == null ? void 0 : T.documentElement) || N?.documentElement || ie(N), { display:
|
|
302
|
+
const I = ((T = N?.document) == null ? void 0 : T.documentElement) || N?.documentElement || ie(N), { display: Y, flexDirection: y } = getComputedStyle(I), A = I.scrollLeft;
|
|
303
303
|
E.left = A < c.value, E.right = A > c.value;
|
|
304
|
-
const _ = Math.abs(A) <= (a.left || 0),
|
|
305
|
-
|
|
304
|
+
const _ = Math.abs(A) <= (a.left || 0), B = Math.abs(A) + I.clientWidth >= I.scrollWidth - (a.right || 0) - it;
|
|
305
|
+
Y === "flex" && y === "row-reverse" ? (w.left = B, w.right = _) : (w.left = _, w.right = B), c.value = A;
|
|
306
306
|
let b = I.scrollTop;
|
|
307
307
|
N === r.document && !b && (b = r.document.body.scrollTop), E.top = b < M.value, E.bottom = b > M.value;
|
|
308
308
|
const z = Math.abs(b) <= (a.top || 0), x = Math.abs(b) + I.clientHeight >= I.scrollHeight - (a.bottom || 0) - it;
|
|
309
|
-
|
|
309
|
+
Y === "flex" && y === "column-reverse" ? (w.top = x, w.bottom = z) : (w.top = z, w.bottom = x), M.value = b;
|
|
310
310
|
}, O = (N) => {
|
|
311
311
|
var T;
|
|
312
312
|
if (!r)
|
|
@@ -392,8 +392,8 @@ function un(e, t) {
|
|
|
392
392
|
let i = 0;
|
|
393
393
|
const g = m([]), D = j(() => {
|
|
394
394
|
let { sum: z, height: x } = { sum: 0, height: 0 };
|
|
395
|
-
return v.value.map((
|
|
396
|
-
}), w = j(() =>
|
|
395
|
+
return v.value.map((U, $) => (typeof o == "number" ? x = o : x = o($), z += x, { height: x, sum: z }));
|
|
396
|
+
}), w = j(() => Y(M.value.start)), E = j(() => typeof o == "number" ? D.value.length * o : D.value[D.value.length - 1]?.sum || 0), h = j(() => {
|
|
397
397
|
const { start: z, end: x } = d.value;
|
|
398
398
|
return g.value.slice(z, x);
|
|
399
399
|
});
|
|
@@ -427,31 +427,31 @@ function un(e, t) {
|
|
|
427
427
|
c.value = s.value.scrollTop;
|
|
428
428
|
let z = T(c.value);
|
|
429
429
|
i = I(z);
|
|
430
|
-
let x = Math.max(0, z - l),
|
|
430
|
+
let x = Math.max(0, z - l), U = Math.min(
|
|
431
431
|
z + i + l,
|
|
432
432
|
v.value.length
|
|
433
433
|
);
|
|
434
|
-
M.value = { start: x, end:
|
|
434
|
+
M.value = { start: x, end: U }, g.value = v.value.slice(x, U).map(($, Q) => ({
|
|
435
435
|
data: $,
|
|
436
436
|
index: Q + x
|
|
437
437
|
})), d.value.start = z - x, d.value.end = d.value.start + i;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
function T(z) {
|
|
441
|
-
let x = 0,
|
|
442
|
-
for (; x <=
|
|
443
|
-
const Q = Math.floor((x +
|
|
444
|
-
D.value[Q].sum >= z ? ($ = Q,
|
|
441
|
+
let x = 0, U = D.value.length - 1, $ = -1;
|
|
442
|
+
for (; x <= U; ) {
|
|
443
|
+
const Q = Math.floor((x + U) / 2);
|
|
444
|
+
D.value[Q].sum >= z ? ($ = Q, U = Q - 1) : x = Q + 1;
|
|
445
445
|
}
|
|
446
446
|
return Math.max(0, $);
|
|
447
447
|
}
|
|
448
448
|
function I(z) {
|
|
449
|
-
let x = 0,
|
|
450
|
-
for (let $ = z; $ < D.value.length && (x++,
|
|
449
|
+
let x = 0, U = 0;
|
|
450
|
+
for (let $ = z; $ < D.value.length && (x++, U += D.value[$].height, !(U >= a.height.value)); $++)
|
|
451
451
|
;
|
|
452
452
|
return x;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Y(z) {
|
|
455
455
|
if (typeof o == "number")
|
|
456
456
|
return z * o;
|
|
457
457
|
let x = D.value[z];
|
|
@@ -462,16 +462,16 @@ function un(e, t) {
|
|
|
462
462
|
}
|
|
463
463
|
function A(z, x = "smooth") {
|
|
464
464
|
if (s.value) {
|
|
465
|
-
const { reset:
|
|
465
|
+
const { reset: U } = an(
|
|
466
466
|
s.value,
|
|
467
467
|
"scrollBehavior",
|
|
468
468
|
x
|
|
469
469
|
), $ = y(z);
|
|
470
|
-
s.value.scrollTop = $.sum - $.height, N(),
|
|
470
|
+
s.value.scrollTop = $.sum - $.height, N(), U();
|
|
471
471
|
}
|
|
472
472
|
if (s.value) {
|
|
473
|
-
const
|
|
474
|
-
s.value.scrollTop =
|
|
473
|
+
const U = y(z);
|
|
474
|
+
s.value.scrollTop = U.sum - U.height, N();
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
const _ = j(() => ({
|
|
@@ -480,7 +480,7 @@ function un(e, t) {
|
|
|
480
480
|
height: `${E.value}px`,
|
|
481
481
|
pointerEvents: f.value ? void 0 : "none"
|
|
482
482
|
}
|
|
483
|
-
})),
|
|
483
|
+
})), B = j(() => ({
|
|
484
484
|
style: {
|
|
485
485
|
transform: `translate3d(0, ${w.value}px, 0)`,
|
|
486
486
|
"will-change": "transform"
|
|
@@ -506,7 +506,7 @@ function un(e, t) {
|
|
|
506
506
|
style: b
|
|
507
507
|
},
|
|
508
508
|
wrapperProps: _,
|
|
509
|
-
innerProps:
|
|
509
|
+
innerProps: B
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
512
|
const Nt = Symbol(), Ze = Symbol(), Ve = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), De = Symbol(), nt = Symbol();
|
|
@@ -732,11 +732,11 @@ function wt({
|
|
|
732
732
|
width: Math.abs(w.value.x - E.value.x),
|
|
733
733
|
height: Math.abs(w.value.y - E.value.y)
|
|
734
734
|
} : { left: 0, top: 0, width: 0, height: 0 }), O = m(!1), { margin: N = 50, startSpeed: T = 30, maxSpeed: I = 30 } = l;
|
|
735
|
-
let
|
|
736
|
-
const y = N, A = T, _ = I,
|
|
735
|
+
let Y;
|
|
736
|
+
const y = N, A = T, _ = I, B = (C) => C ** 1;
|
|
737
737
|
let b = 0;
|
|
738
738
|
function z(C) {
|
|
739
|
-
if (cancelAnimationFrame(
|
|
739
|
+
if (cancelAnimationFrame(Y), b = x(C), b = Math.max(
|
|
740
740
|
Math.min(b, _),
|
|
741
741
|
-_
|
|
742
742
|
), b !== 0) {
|
|
@@ -745,21 +745,21 @@ function wt({
|
|
|
745
745
|
return;
|
|
746
746
|
const Z = p.value.height - h.value.height;
|
|
747
747
|
let X = p.value.top + Number(b);
|
|
748
|
-
X = Math.min(Math.max(0, X), Z), k.scrollTop = X, $(),
|
|
748
|
+
X = Math.min(Math.max(0, X), Z), k.scrollTop = X, $(), Y = requestAnimationFrame(() => z(C));
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
751
|
function x(C) {
|
|
752
752
|
if (g.value) {
|
|
753
753
|
const Z = h.value, X = Z.bottom - C;
|
|
754
754
|
if (X < y)
|
|
755
|
-
return A *
|
|
755
|
+
return A * B(1 - X / y);
|
|
756
756
|
const le = C - Z.top;
|
|
757
757
|
if (le < y)
|
|
758
|
-
return -A *
|
|
758
|
+
return -A * B(1 - le / y);
|
|
759
759
|
}
|
|
760
760
|
return 0;
|
|
761
761
|
}
|
|
762
|
-
function
|
|
762
|
+
function U(C) {
|
|
763
763
|
const k = { ...S.value, right: 0, bottom: 0 };
|
|
764
764
|
return k.left += h.value.left, k.top += h.value.top - p.value.top, k.right = k.width + k.left, k.bottom = k.height + k.top, k.left < C.right && k.right > C.left && k.top < C.bottom && k.bottom > C.top;
|
|
765
765
|
}
|
|
@@ -812,7 +812,7 @@ function wt({
|
|
|
812
812
|
Te() || g.value?.querySelectorAll(`[${n}]`).forEach((C) => {
|
|
813
813
|
r[c.value] = M(
|
|
814
814
|
C.getAttribute(`${n}`)
|
|
815
|
-
),
|
|
815
|
+
), U(C.getBoundingClientRect()) ? a([r]) : O.value || f([r]);
|
|
816
816
|
});
|
|
817
817
|
}
|
|
818
818
|
function Ct() {
|
|
@@ -820,7 +820,7 @@ function wt({
|
|
|
820
820
|
let k = null, Z = 0;
|
|
821
821
|
g.value?.querySelectorAll(`[${n}]`).forEach((X, le) => {
|
|
822
822
|
const ve = M(X.getAttribute(`${n}`));
|
|
823
|
-
C.push(ve),
|
|
823
|
+
C.push(ve), U(X.getBoundingClientRect()) ? (k === null && (k = le), k = Math.min(k, le), Z = Math.max(Z, le)) : (r[c.value] = ve, d.has(ve) && f([r]));
|
|
824
824
|
});
|
|
825
825
|
for (let X = k; X < Z + 1; X++)
|
|
826
826
|
r[c.value] = C[X], a([r]), d.add(C[X]);
|
|
@@ -911,7 +911,7 @@ function ko(e, t = {}) {
|
|
|
911
911
|
joinSelectMode: n,
|
|
912
912
|
pressTime: o = 600,
|
|
913
913
|
selectModeRef: l,
|
|
914
|
-
horizontalDragThreshold: s =
|
|
914
|
+
horizontalDragThreshold: s = 20
|
|
915
915
|
} = t, a = wt({
|
|
916
916
|
...e,
|
|
917
917
|
selectWay: "row",
|
|
@@ -928,32 +928,31 @@ function ko(e, t = {}) {
|
|
|
928
928
|
return T.composedPath().some((I) => !!I?.getAttribute?.(e.attribute));
|
|
929
929
|
}
|
|
930
930
|
function D(T, I) {
|
|
931
|
-
const
|
|
932
|
-
return !M &&
|
|
931
|
+
const Y = Math.abs(T - d.x), y = Math.abs(I - d.y);
|
|
932
|
+
return !M && Y > s && Y > y;
|
|
933
933
|
}
|
|
934
934
|
function w(T, I) {
|
|
935
935
|
return l?.value && !a.isPressing.value && D(T, I);
|
|
936
936
|
}
|
|
937
|
-
function E(T) {
|
|
938
|
-
|
|
939
|
-
a.updateContainerRect(), u(I, R), n?.(), r(I, R, () => T.preventDefault());
|
|
937
|
+
function E(T, I, Y) {
|
|
938
|
+
(I == null || Y == null) && (I = T.targetTouches[0].clientX, Y = T.targetTouches[0].clientY), a.updateContainerRect(), u(I, Y), n?.(), r(I, Y, () => T.preventDefault());
|
|
940
939
|
}
|
|
941
940
|
function h(T) {
|
|
942
941
|
if (i(), !g(T))
|
|
943
942
|
return;
|
|
944
|
-
const { clientX: I, clientY:
|
|
945
|
-
d = { x: I, y:
|
|
943
|
+
const { clientX: I, clientY: Y } = T.targetTouches[0];
|
|
944
|
+
d = { x: I, y: Y }, M = !1, c = setTimeout(() => {
|
|
946
945
|
E(T), T.preventDefault();
|
|
947
946
|
}, o);
|
|
948
947
|
}
|
|
949
948
|
function p(T) {
|
|
950
949
|
i();
|
|
951
|
-
const { clientX: I, clientY:
|
|
952
|
-
if (w(I,
|
|
953
|
-
M = !0, E(T);
|
|
950
|
+
const { clientX: I, clientY: Y } = T.targetTouches[0];
|
|
951
|
+
if (w(I, Y)) {
|
|
952
|
+
M = !0, E(T, d.x, d.y);
|
|
954
953
|
return;
|
|
955
954
|
}
|
|
956
|
-
r(I,
|
|
955
|
+
r(I, Y, () => T.preventDefault());
|
|
957
956
|
}
|
|
958
957
|
function S() {
|
|
959
958
|
i(), M = !1, v();
|
|
@@ -993,9 +992,9 @@ const rn = Symbol(), cn = /* @__PURE__ */ q({
|
|
|
993
992
|
const n = e, o = () => {
|
|
994
993
|
n.onClickOverlay?.(), n.closeOnClickOverlay && t("update:visiable", !1);
|
|
995
994
|
};
|
|
996
|
-
return F(rn, () => t("update:visiable", !1)), (l, s) => (
|
|
995
|
+
return F(rn, () => t("update:visiable", !1)), (l, s) => (R(), Ee(Ue, { name: "modal" }, {
|
|
997
996
|
default: Re(() => [
|
|
998
|
-
e.visiable ? re((
|
|
997
|
+
e.visiable ? re((R(), P("div", {
|
|
999
998
|
key: 0,
|
|
1000
999
|
class: se([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
1001
1000
|
}, [
|
|
@@ -1104,7 +1103,7 @@ const dn = (e) => (Ae("data-v-92a1804d"), e = e(), ze(), e), vn = /* @__PURE__ *
|
|
|
1104
1103
|
return He((t) => ({
|
|
1105
1104
|
"4e4a9ce4": e.width + "px",
|
|
1106
1105
|
e56fe5c2: e.height + "px"
|
|
1107
|
-
})), (t, n) => (
|
|
1106
|
+
})), (t, n) => (R(), P("div", be(ke(t.$attrs)), Mn, 16));
|
|
1108
1107
|
}
|
|
1109
1108
|
});
|
|
1110
1109
|
const hn = /* @__PURE__ */ ne(gn, [["__scopeId", "data-v-92a1804d"]]), mn = "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", yn = { class: "loading-wrap" }, pn = ["src"], Dn = /* @__PURE__ */ q({
|
|
@@ -1122,7 +1121,7 @@ const hn = /* @__PURE__ */ ne(gn, [["__scopeId", "data-v-92a1804d"]]), mn = "dat
|
|
|
1122
1121
|
const o = {};
|
|
1123
1122
|
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1124
1123
|
});
|
|
1125
|
-
return (o, l) => (
|
|
1124
|
+
return (o, l) => (R(), P("div", yn, [
|
|
1126
1125
|
H("img", {
|
|
1127
1126
|
class: "loading-circle",
|
|
1128
1127
|
src: L(mn),
|
|
@@ -1175,7 +1174,7 @@ const Tn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1175
1174
|
function u() {
|
|
1176
1175
|
n.closeOnClick && t("close");
|
|
1177
1176
|
}
|
|
1178
|
-
return (r, v) => (
|
|
1177
|
+
return (r, v) => (R(), Ee(Ue, {
|
|
1179
1178
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
1180
1179
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
1181
1180
|
}, {
|
|
@@ -1196,18 +1195,18 @@ const Tn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1196
1195
|
class: se(`${o}-content`),
|
|
1197
1196
|
style: K(L(s))
|
|
1198
1197
|
}, [
|
|
1199
|
-
e.showClose ? (
|
|
1198
|
+
e.showClose ? (R(), P("img", {
|
|
1200
1199
|
key: 0,
|
|
1201
1200
|
onClick: v[0] || (v[0] = me((c) => t("close"), ["stop"])),
|
|
1202
1201
|
src: L(Tn),
|
|
1203
1202
|
class: se(`${o}-close`)
|
|
1204
1203
|
}, null, 10, In)) : fe("", !0),
|
|
1205
|
-
e.showIcon ? (
|
|
1204
|
+
e.showIcon ? (R(), P("img", {
|
|
1206
1205
|
key: 1,
|
|
1207
1206
|
src: e.icon || L(Nn),
|
|
1208
1207
|
class: se(`${o}-icon`)
|
|
1209
1208
|
}, null, 10, An)) : fe("", !0),
|
|
1210
|
-
e.message ? (
|
|
1209
|
+
e.message ? (R(), P("div", {
|
|
1211
1210
|
key: 2,
|
|
1212
1211
|
class: se(`${o}-message`),
|
|
1213
1212
|
style: K(L(a))
|
|
@@ -1433,7 +1432,7 @@ function It(e) {
|
|
|
1433
1432
|
const A = s.value;
|
|
1434
1433
|
if (!A)
|
|
1435
1434
|
return;
|
|
1436
|
-
const { scrollTop: _, scrollLeft:
|
|
1435
|
+
const { scrollTop: _, scrollLeft: B } = A, { width: b, height: z } = a.value, { scaleW: x, scaleH: U } = O(y), { top: $, left: Q } = N(x, U), W = Q != 0 ? Q : B * -1, J = $ != 0 ? $ : _ * -1;
|
|
1437
1436
|
A.scrollTop = 0, A.scrollLeft = 0;
|
|
1438
1437
|
const { value: V } = r;
|
|
1439
1438
|
V.width = `${b}px`, V.height = `${z}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = _e(W, J, y), r.value = V, await Me(), u.offsetX = W, u.offsetY = J, await ot(20);
|
|
@@ -1442,13 +1441,13 @@ function It(e) {
|
|
|
1442
1441
|
if (!A && u.preview)
|
|
1443
1442
|
return;
|
|
1444
1443
|
u.preview = !0, y = y ?? u.level;
|
|
1445
|
-
const { value: _ } = r, { scaleW:
|
|
1446
|
-
y === 1 && (_.maxHeight = "100%"), _.width = `${
|
|
1447
|
-
const
|
|
1448
|
-
if (!
|
|
1444
|
+
const { value: _ } = r, { scaleW: B, scaleH: b } = O(y), { left: z, top: x } = N(B, b);
|
|
1445
|
+
y === 1 && (_.maxHeight = "100%"), _.width = `${B}px`, _.height = `${b}px`, _.transitionDuration = "0s", _.transform = _e(z, x, 1), r.value = _, await Me();
|
|
1446
|
+
const U = s.value;
|
|
1447
|
+
if (!U)
|
|
1449
1448
|
return;
|
|
1450
1449
|
const { offsetX: $, offsetY: Q } = u;
|
|
1451
|
-
$ < 0 && (
|
|
1450
|
+
$ < 0 && (U.scrollLeft = Math.abs($)), Q < 0 && (U.scrollTop = Math.abs(Q));
|
|
1452
1451
|
}
|
|
1453
1452
|
async function w(y, A, _) {
|
|
1454
1453
|
if (t.value || (y = ae(y), y = Oe(
|
|
@@ -1458,14 +1457,14 @@ function It(e) {
|
|
|
1458
1457
|
), y == u.level))
|
|
1459
1458
|
return;
|
|
1460
1459
|
u.preview && await g(), A || (A = { x: v.startX.value, y: v.startY.value });
|
|
1461
|
-
const { value:
|
|
1460
|
+
const { value: B } = r, { width: b, height: z } = a.value, { scaleW: x, scaleH: U } = O(y), { top: $, left: Q } = N(x, U), W = y / u.level, J = {
|
|
1462
1461
|
left: Math.abs(b * y - f.value.width) * -1,
|
|
1463
1462
|
top: Math.abs(z * y - f.value.height) * -1,
|
|
1464
1463
|
right: Q,
|
|
1465
1464
|
bottom: $
|
|
1466
1465
|
};
|
|
1467
1466
|
let V = Q != 0 ? Q : (u.offsetX - A.x) * W + A.x, oe = $ != 0 ? $ : (u.offsetY - A.y) * W + A.y;
|
|
1468
|
-
V = ae(Oe(V, J.left, J.right)), oe = ae(Oe(oe, J.top, J.bottom)),
|
|
1467
|
+
V = ae(Oe(V, J.left, J.right)), oe = ae(Oe(oe, J.top, J.bottom)), B.width = `${b}px`, B.height = `${z}px`, B.transitionDuration = _ ? kn(y) : "0s", B.transform = _e(V, oe, y), u.offsetX = V, u.offsetY = oe, u.level = y, r.value = B, await Me(), _ && c.startTransition(), e.onScale?.(y);
|
|
1469
1468
|
}
|
|
1470
1469
|
function E() {
|
|
1471
1470
|
const y = u.level > 1 ? 1 : S();
|
|
@@ -1484,9 +1483,9 @@ function It(e) {
|
|
|
1484
1483
|
u.level >= n.value && u.level <= o.value ? u.zooming && await D() : u.level < n.value ? await w(n.value, void 0, !0) : u.level > o.value && await w(o.value, u.lastCenter, !0), u.zooming = !1;
|
|
1485
1484
|
}
|
|
1486
1485
|
function S() {
|
|
1487
|
-
const { width: y, height: A } = a.value, { width: _, height:
|
|
1486
|
+
const { width: y, height: A } = a.value, { width: _, height: B } = f.value, b = 2.5;
|
|
1488
1487
|
let z;
|
|
1489
|
-
return A ==
|
|
1488
|
+
return A == B ? (z = _ / y, z - 1 < 0.1 && (z = b)) : z = Math.max(b, _ / y, B / A), z;
|
|
1490
1489
|
}
|
|
1491
1490
|
function O(y) {
|
|
1492
1491
|
const { width: A, height: _ } = a.value;
|
|
@@ -1496,25 +1495,25 @@ function It(e) {
|
|
|
1496
1495
|
};
|
|
1497
1496
|
}
|
|
1498
1497
|
function N(y, A) {
|
|
1499
|
-
const { width: _, height:
|
|
1498
|
+
const { width: _, height: B } = f.value, b = Math.max(0, (B - A) * 0.5), z = Math.max(0, (_ - y) * 0.5);
|
|
1500
1499
|
return { top: b, left: z };
|
|
1501
1500
|
}
|
|
1502
1501
|
async function T(y, A) {
|
|
1503
1502
|
if (y = y ?? l.value, A = A ?? s.value, !A)
|
|
1504
1503
|
return;
|
|
1505
|
-
let _, { clientWidth:
|
|
1504
|
+
let _, { clientWidth: B = 0, clientHeight: b = 0 } = y || {};
|
|
1506
1505
|
const { clientWidth: z, clientHeight: x } = A;
|
|
1507
1506
|
if (y instanceof HTMLImageElement ? _ = { width: y.naturalWidth, height: y.naturalHeight } : y instanceof HTMLVideoElement && (_ = { width: y.videoWidth, height: y.videoHeight }), _) {
|
|
1508
|
-
const
|
|
1507
|
+
const U = bn(
|
|
1509
1508
|
_.width,
|
|
1510
1509
|
_.height,
|
|
1511
1510
|
z,
|
|
1512
1511
|
x
|
|
1513
1512
|
);
|
|
1514
|
-
|
|
1513
|
+
B = U.width, b = U.height;
|
|
1515
1514
|
}
|
|
1516
|
-
(
|
|
1517
|
-
width: Math.min(
|
|
1515
|
+
(B === 0 || b === 0) && (B = a.value.width || z, b = a.value.height || x), a.value = {
|
|
1516
|
+
width: Math.min(B, z),
|
|
1518
1517
|
height: Math.min(b, x)
|
|
1519
1518
|
}, f.value = { width: z, height: x }, D(void 0, !0);
|
|
1520
1519
|
}
|
|
@@ -1522,7 +1521,7 @@ function It(e) {
|
|
|
1522
1521
|
const y = S();
|
|
1523
1522
|
o.value = Math.max(o.value, y * 2);
|
|
1524
1523
|
}
|
|
1525
|
-
function
|
|
1524
|
+
function Y(y) {
|
|
1526
1525
|
t.value = y;
|
|
1527
1526
|
}
|
|
1528
1527
|
return {
|
|
@@ -1539,7 +1538,7 @@ function It(e) {
|
|
|
1539
1538
|
zoomTo: w,
|
|
1540
1539
|
zoomFinished: p,
|
|
1541
1540
|
toggleZoom: E,
|
|
1542
|
-
setDisableZoom:
|
|
1541
|
+
setDisableZoom: Y
|
|
1543
1542
|
};
|
|
1544
1543
|
}
|
|
1545
1544
|
function At(e, t) {
|
|
@@ -1764,7 +1763,7 @@ const Un = ["onClick"], Rn = /* @__PURE__ */ q({
|
|
|
1764
1763
|
}
|
|
1765
1764
|
return Me(() => {
|
|
1766
1765
|
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1767
|
-
}), (r, v) => (
|
|
1766
|
+
}), (r, v) => (R(), P("div", {
|
|
1768
1767
|
onClick: me(u, ["stop"]),
|
|
1769
1768
|
id: "toastWrapper",
|
|
1770
1769
|
ref_key: "toastWrapper",
|
|
@@ -1831,7 +1830,7 @@ const $n = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1831
1830
|
const { style: a } = s;
|
|
1832
1831
|
return typeof a == "object" ? a : {};
|
|
1833
1832
|
}
|
|
1834
|
-
return (s, a) => (
|
|
1833
|
+
return (s, a) => (R(), P("svg", {
|
|
1835
1834
|
"aria-hidden": "",
|
|
1836
1835
|
style: K({ ...L(o), ...l(s.$attrs) })
|
|
1837
1836
|
}, [
|
|
@@ -1851,7 +1850,7 @@ function Pn(e) {
|
|
|
1851
1850
|
performance: l = {},
|
|
1852
1851
|
maxHeightRatio: s = 0.9,
|
|
1853
1852
|
observeMethod: a = "classList"
|
|
1854
|
-
} = e, f = m(!0), u = je(
|
|
1853
|
+
} = e, f = m(!0), u = je(Y, 100);
|
|
1855
1854
|
let r, v = "";
|
|
1856
1855
|
const c = m(0), M = m(0), d = m(0), i = m({
|
|
1857
1856
|
top: 0,
|
|
@@ -1878,7 +1877,7 @@ function Pn(e) {
|
|
|
1878
1877
|
function I() {
|
|
1879
1878
|
f.value = !1;
|
|
1880
1879
|
}
|
|
1881
|
-
function
|
|
1880
|
+
function Y() {
|
|
1882
1881
|
D.value || (f.value = !0);
|
|
1883
1882
|
}
|
|
1884
1883
|
function y(Q) {
|
|
@@ -1893,9 +1892,9 @@ function Pn(e) {
|
|
|
1893
1892
|
D.value || _();
|
|
1894
1893
|
}
|
|
1895
1894
|
function _() {
|
|
1896
|
-
cancelAnimationFrame(r), r = requestAnimationFrame(
|
|
1895
|
+
cancelAnimationFrame(r), r = requestAnimationFrame(B);
|
|
1897
1896
|
}
|
|
1898
|
-
function
|
|
1897
|
+
function B() {
|
|
1899
1898
|
t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, d.value = c.value / h.value * E.value);
|
|
1900
1899
|
}
|
|
1901
1900
|
function b(Q) {
|
|
@@ -1910,13 +1909,13 @@ function Pn(e) {
|
|
|
1910
1909
|
function x() {
|
|
1911
1910
|
i.value.top = t.value?.getBoundingClientRect().top ?? 0;
|
|
1912
1911
|
const { scrollHeight: Q = 0, clientHeight: W = 0 } = t.value || {}, { scrollHeight: J, clientHeight: V } = i.value;
|
|
1913
|
-
Q != J && (i.value.scrollHeight = Q,
|
|
1912
|
+
Q != J && (i.value.scrollHeight = Q, B()), W != V && (i.value.clientHeight = W, B());
|
|
1914
1913
|
const { clientHeight: oe = 0 } = n.value || {};
|
|
1915
1914
|
oe != g.value.clientHeight && (g.value.clientHeight = oe);
|
|
1916
1915
|
}
|
|
1917
|
-
function
|
|
1916
|
+
function U() {
|
|
1918
1917
|
I(), setTimeout(() => {
|
|
1919
|
-
g.value.clientHeight = n.value?.clientHeight ?? 0,
|
|
1918
|
+
g.value.clientHeight = n.value?.clientHeight ?? 0, Y();
|
|
1920
1919
|
}, 150);
|
|
1921
1920
|
}
|
|
1922
1921
|
function $() {
|
|
@@ -1931,7 +1930,7 @@ function Pn(e) {
|
|
|
1931
1930
|
attributeFilter: ["style"]
|
|
1932
1931
|
}), z.observe(t.value, Q), setTimeout(() => {
|
|
1933
1932
|
x();
|
|
1934
|
-
}, 100),
|
|
1933
|
+
}, 100), U();
|
|
1935
1934
|
} else
|
|
1936
1935
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
1937
1936
|
}
|
|
@@ -1944,6 +1943,7 @@ function Pn(e) {
|
|
|
1944
1943
|
scrollTop: c,
|
|
1945
1944
|
scrollable: w,
|
|
1946
1945
|
sliderPos: O,
|
|
1946
|
+
sliderRollableHeight: E,
|
|
1947
1947
|
init: $,
|
|
1948
1948
|
modifySliderEventListener: b,
|
|
1949
1949
|
heightRatio: p
|
|
@@ -1989,7 +1989,7 @@ const Fn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Wn = /* @__PURE__ *
|
|
|
1989
1989
|
function g() {
|
|
1990
1990
|
c.value = !1;
|
|
1991
1991
|
}
|
|
1992
|
-
return t({ uScrollBarReturn: a }), (D, w) => (
|
|
1992
|
+
return t({ uScrollBarReturn: a }), (D, w) => (R(), Ee(Ue, null, {
|
|
1993
1993
|
default: Re(() => [
|
|
1994
1994
|
re(H("div", {
|
|
1995
1995
|
ref_key: "sliderRef",
|
|
@@ -2071,13 +2071,13 @@ const Wo = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-7fd39e51"]]), Zn = (e)
|
|
|
2071
2071
|
t?.refreshOff || (O.value = document.querySelector(
|
|
2072
2072
|
t.pullRefreshContainer
|
|
2073
2073
|
), O.value?.addEventListener("touchstart", h), O.value?.addEventListener("touchmove", p), O.value?.addEventListener("touchend", S));
|
|
2074
|
-
}), (N, T) => (
|
|
2074
|
+
}), (N, T) => (R(), P("div", Vn, [
|
|
2075
2075
|
H("div", {
|
|
2076
2076
|
class: "pull-refresh-box",
|
|
2077
2077
|
style: K(L(D))
|
|
2078
2078
|
}, [
|
|
2079
|
-
i.value ? (
|
|
2080
|
-
d.value == 2 ? (
|
|
2079
|
+
i.value ? (R(), P("div", no, $e(i.value), 1)) : (R(), P("div", Kn, [
|
|
2080
|
+
d.value == 2 ? (R(), P("div", Gn, [
|
|
2081
2081
|
H("div", qn, [
|
|
2082
2082
|
H("div", {
|
|
2083
2083
|
class: "left-circle",
|
|
@@ -2091,7 +2091,7 @@ const Wo = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-7fd39e51"]]), Zn = (e)
|
|
|
2091
2091
|
}, null, 4)
|
|
2092
2092
|
]),
|
|
2093
2093
|
eo
|
|
2094
|
-
])) : (
|
|
2094
|
+
])) : (R(), P("div", {
|
|
2095
2095
|
key: 1,
|
|
2096
2096
|
class: "pull-circle-line",
|
|
2097
2097
|
style: K(L(w))
|
|
@@ -2144,7 +2144,7 @@ const lo = /* @__PURE__ */ ne(oo, [["__scopeId", "data-v-df5da876"]]), so = ["da
|
|
|
2144
2144
|
function M(d, i) {
|
|
2145
2145
|
return o.getItemKey ? o.getItemKey(d, i) : `${i}`;
|
|
2146
2146
|
}
|
|
2147
|
-
return (d, i) => (
|
|
2147
|
+
return (d, i) => (R(), P(Qe, null, [
|
|
2148
2148
|
ge(lo, {
|
|
2149
2149
|
refresh: e.refresh,
|
|
2150
2150
|
refreshOff: e.refreshOff,
|
|
@@ -2162,7 +2162,7 @@ const lo = /* @__PURE__ */ ne(oo, [["__scopeId", "data-v-df5da876"]]), so = ["da
|
|
|
2162
2162
|
}, d.$attrs), [
|
|
2163
2163
|
H("div", be(ke(L(f))), [
|
|
2164
2164
|
H("div", be(ke(L(u))), [
|
|
2165
|
-
(
|
|
2165
|
+
(R(!0), P(Qe, null, $t(L(s), ({ data: g, index: D }) => (R(), P("div", {
|
|
2166
2166
|
key: M(g, D),
|
|
2167
2167
|
"data-key": M(g, D),
|
|
2168
2168
|
style: K({
|
|
@@ -2210,9 +2210,9 @@ const Xo = /* @__PURE__ */ ne(io, [["__scopeId", "data-v-dfe60586"]]), lt = (e)
|
|
|
2210
2210
|
"312487ac": n
|
|
2211
2211
|
}));
|
|
2212
2212
|
const n = `${t.duration}ms`;
|
|
2213
|
-
return (o, l) => (
|
|
2213
|
+
return (o, l) => (R(), P("div", uo, [
|
|
2214
2214
|
ro,
|
|
2215
|
-
(
|
|
2215
|
+
(R(), P("svg", {
|
|
2216
2216
|
style: { position: "relative" },
|
|
2217
2217
|
width: e.width,
|
|
2218
2218
|
height: e.height,
|
|
@@ -2296,9 +2296,9 @@ const mo = ["title"], yo = { class: "tip" }, po = /* @__PURE__ */ Pt("\u5F53\u52
|
|
|
2296
2296
|
function N() {
|
|
2297
2297
|
t("noSupport");
|
|
2298
2298
|
}
|
|
2299
|
-
return (T, I) => (
|
|
2300
|
-
L(c) && !s.value ? (
|
|
2301
|
-
L(c) ? L(M) ? (
|
|
2299
|
+
return (T, I) => (R(), P(Qe, null, [
|
|
2300
|
+
L(c) && !s.value ? (R(), Ee(L(g), { key: 0 })) : fe("", !0),
|
|
2301
|
+
L(c) ? L(M) ? (R(), P("div", he({ key: 3 }, T.$attrs, {
|
|
2302
2302
|
title: L(v),
|
|
2303
2303
|
class: "tip-wrap"
|
|
2304
2304
|
}), [
|
|
@@ -2313,27 +2313,27 @@ const mo = ["title"], yo = { class: "tip" }, po = /* @__PURE__ */ Pt("\u5F53\u52
|
|
|
2313
2313
|
onError: O,
|
|
2314
2314
|
vImageCancel: L(i)
|
|
2315
2315
|
}, () => [
|
|
2316
|
-
L(D) ? re((
|
|
2316
|
+
L(D) ? re((R(), P("img", he({ key: 0 }, T.$attrs, {
|
|
2317
2317
|
ref_key: "thumbnailRef",
|
|
2318
2318
|
ref: l,
|
|
2319
|
-
onLoad: I[0] || (I[0] = (
|
|
2320
|
-
onError: I[1] || (I[1] = (
|
|
2319
|
+
onLoad: I[0] || (I[0] = (Y) => S()),
|
|
2320
|
+
onError: I[1] || (I[1] = (Y) => O()),
|
|
2321
2321
|
src: e.thumbnail
|
|
2322
2322
|
}), null, 16, To)), [
|
|
2323
2323
|
[L(i)]
|
|
2324
2324
|
]) : fe("", !0),
|
|
2325
|
-
e.isShowSrc || a.value ? re((
|
|
2325
|
+
e.isShowSrc || a.value ? re((R(), P("img", he({ key: 1 }, T.$attrs, {
|
|
2326
2326
|
ref_key: "srcRef",
|
|
2327
2327
|
ref: o,
|
|
2328
2328
|
class: "src-class",
|
|
2329
|
-
onLoad: I[2] || (I[2] = (
|
|
2330
|
-
onError: I[3] || (I[3] = (
|
|
2329
|
+
onLoad: I[2] || (I[2] = (Y) => S(!0)),
|
|
2330
|
+
onError: I[3] || (I[3] = (Y) => O(!0)),
|
|
2331
2331
|
src: L(v)
|
|
2332
2332
|
}), null, 16, No)), [
|
|
2333
2333
|
[L(i)],
|
|
2334
2334
|
[Le, a.value]
|
|
2335
2335
|
]) : fe("", !0)
|
|
2336
|
-
], !0) : (
|
|
2336
|
+
], !0) : (R(), P("div", he({ key: 1 }, T.$attrs, {
|
|
2337
2337
|
title: L(v),
|
|
2338
2338
|
class: "tip-wrap"
|
|
2339
2339
|
}), [
|
|
@@ -2341,7 +2341,7 @@ const mo = ["title"], yo = { class: "tip" }, po = /* @__PURE__ */ Pt("\u5F53\u52
|
|
|
2341
2341
|
class: "no-support-icon",
|
|
2342
2342
|
name: e.noSupportIconName
|
|
2343
2343
|
}, null, 8, ["name"]),
|
|
2344
|
-
re((
|
|
2344
|
+
re((R(), P("span", yo, Do)), [
|
|
2345
2345
|
[L(pt), N]
|
|
2346
2346
|
])
|
|
2347
2347
|
], 16, mo))
|
|
@@ -2360,7 +2360,7 @@ const Vo = /* @__PURE__ */ ne(Io, [["__scopeId", "data-v-bfec1a6b"]]), Ao = ["ti
|
|
|
2360
2360
|
function c() {
|
|
2361
2361
|
t("noSupport");
|
|
2362
2362
|
}
|
|
2363
|
-
return (M, d) => L(u) ? L(f) ? (
|
|
2363
|
+
return (M, d) => L(u) ? L(f) ? (R(), P("div", {
|
|
2364
2364
|
key: 2,
|
|
2365
2365
|
title: L(a),
|
|
2366
2366
|
class: "icon-wrap"
|
|
@@ -2369,7 +2369,7 @@ const Vo = /* @__PURE__ */ ne(Io, [["__scopeId", "data-v-bfec1a6b"]]), Ao = ["ti
|
|
|
2369
2369
|
class: "icon",
|
|
2370
2370
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2371
2371
|
})
|
|
2372
|
-
], 8, Lo)) : re((
|
|
2372
|
+
], 8, Lo)) : re((R(), P("img", {
|
|
2373
2373
|
key: 1,
|
|
2374
2374
|
fetchpriority: "high",
|
|
2375
2375
|
onLoad: d[0] || (d[0] = (i) => o.value = !0),
|
|
@@ -2378,7 +2378,7 @@ const Vo = /* @__PURE__ */ ne(Io, [["__scopeId", "data-v-bfec1a6b"]]), Ao = ["ti
|
|
|
2378
2378
|
}, null, 40, zo)), [
|
|
2379
2379
|
[L(v)],
|
|
2380
2380
|
[Le, o.value]
|
|
2381
|
-
]) : (
|
|
2381
|
+
]) : (R(), P("div", {
|
|
2382
2382
|
key: 0,
|
|
2383
2383
|
title: L(a),
|
|
2384
2384
|
class: "icon-wrap"
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.ui={},L.Vue))})(this,function(L,e){"use strict";const je={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,c=i.clientY,u=Math.abs(f-o),g=Math.abs(c-l);u>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ge={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}},he={beforeMount(t,n){n.value()}};function qe(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Je(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,u=e.customRef((g,d)=>(l=g,s=d,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(m){c?.(m)}}));return Object.isExtensible(u)&&(u.trigger=i),u}function pe(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const Se=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const et=Object.prototype.toString,tt=t=>et.call(t)==="[object Object]",q=()=>{};function xe(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function nt(t,n={}){let o,l,s=q;const a=f=>{clearTimeout(f),s(),s=q};return f=>{const c=V(t),u=V(n.maxWait);return o&&a(o),c<=0||u!==void 0&&u<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((g,d)=>{s=n.rejectOnCancel?d:g,u&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(f())},u)),o=setTimeout(()=>{l&&a(l),l=null,g(f())},c)})}}function ot(...t){let n=0,o,l=!0,s=q,a,i,f,c,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:c=!0,rejectOnCancel:u=!1}=t[0]:[i,f=!0,c=!0,u=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=q)};return m=>{const M=V(i),r=Date.now()-n,h=()=>a=m();return g(),M<=0?(n=Date.now(),h()):(r>M&&(c||!l)?(n=Date.now(),h()):f&&(a=new Promise((T,E)=>{s=u?E:T,o=setTimeout(()=>{n=Date.now(),l=!0,T(h()),g()},Math.max(0,M-r))})),!c&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,a)}}function lt(t){return t||e.getCurrentInstance()}function ne(t,n=200,o={}){return xe(nt(n,o),t)}function ye(t,n=200,o=!1,l=!0,s=!1){return xe(ot(n,o,l,s),t)}function De(t,n=!0,o){lt()?e.onMounted(t,o):n?t():e.nextTick(t)}function X(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const oe=Se?window:void 0,st=Se?window.document:void 0;function le(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=oe):[n,o,l,s]=t,!n)return q;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},f=(g,d,m,M)=>(g.addEventListener(d,m,M),()=>g.removeEventListener(d,m,M)),c=e.watch(()=>[X(n),V(s)],([g,d])=>{if(i(),!g)return;const m=tt(d)?{...d}:d;a.push(...o.flatMap(M=>l.map(r=>f(g,M,r,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return pe(u),u}function at(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function it(t){const n=at();return e.computed(()=>(n.value,Boolean(t())))}function rt(t){const n=e.getCurrentInstance(),o=Je(()=>null,()=>t?X(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Te(t,n,o={}){const{window:l=oe,...s}=o;let a;const i=it(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(d=>X(d)):[X(t)]),u=e.watch(c,d=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const m of d)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),u()};return pe(g),{isSupported:i,stop:g}}function ct(t,n={width:0,height:0},o={}){const{window:l=oe,box:s="content-box"}=o,a=e.computed(()=>{var d,m;return(m=(d=X(t))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:c}=Te(t,([d])=>{const m=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&a.value){const M=X(t);if(M){const r=l.getComputedStyle(M);i.value=Number.parseFloat(r.width),f.value=Number.parseFloat(r.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((r,{inlineSize:h})=>r+h,0),f.value=M.reduce((r,{blockSize:h})=>r+h,0)}else i.value=d.contentRect.width,f.value=d.contentRect.height},o);De(()=>{const d=X(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,f.value="offsetHeight"in d?d.offsetHeight:n.height)});const u=e.watch(()=>X(t),d=>{i.value=d?n.width:0,f.value=d?n.height:0});function g(){c(),u()}return{width:i,height:f,stop:g}}const _e=1;function ut(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=q,onScroll:a=q,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:c="auto",window:u=oe,onError:g=w=>{console.error(w)}}=n,d=e.ref(0),m=e.ref(0),M=e.computed({get(){return d.value},set(w){h(w,void 0)}}),r=e.computed({get(){return m.value},set(w){h(void 0,w)}});function h(w,N){var I,Y,y;if(!u)return;const z=V(t);!z||(y=z instanceof Document?u.document.body:z)==null||y.scrollTo({top:(I=V(N))!=null?I:r.value,left:(Y=V(w))!=null?Y:M.value,behavior:V(c)})}const T=e.ref(!1),E=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=w=>{!T.value||(T.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,s(w))},D=ne(p,o+l),S=w=>{var N;if(!u)return;const I=((N=w?.document)==null?void 0:N.documentElement)||w?.documentElement||X(w),{display:Y,flexDirection:y}=getComputedStyle(I),z=I.scrollLeft;v.left=z<d.value,v.right=z>d.value;const _=Math.abs(z)<=(i.left||0),B=Math.abs(z)+I.clientWidth>=I.scrollWidth-(i.right||0)-_e;Y==="flex"&&y==="row-reverse"?(E.left=B,E.right=_):(E.left=_,E.right=B),d.value=z;let b=I.scrollTop;w===u.document&&!b&&(b=u.document.body.scrollTop),v.top=b<m.value,v.bottom=b>m.value;const A=Math.abs(b)<=(i.top||0),C=Math.abs(b)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-_e;Y==="flex"&&y==="column-reverse"?(E.top=C,E.bottom=A):(E.top=A,E.bottom=C),m.value=b},x=w=>{var N;if(!u)return;const I=(N=w.target.documentElement)!=null?N:w.target;S(I),T.value=!0,D(w),a(w)};return le(t,"scroll",o?ye(x,o,!0,!1):x,f),De(()=>{try{const w=V(t);if(!w)return;S(w)}catch(w){g(w)}}),le(t,"scrollend",p,f),{x:M,y:r,isScrolling:T,arrivedState:E,directions:v,measure(){const w=V(t);u&&w&&S(w)}}}let dt=0;function Ne(t,n={}){const o=e.ref(!1),{document:l=st,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++dt}`}=n,f=e.ref(t);let c=()=>{};const u=()=>{if(!l)return;const d=l.getElementById(i)||l.createElement("style");d.isConnected||(d.id=i,n.media&&(d.media=n.media),l.head.appendChild(d)),!o.value&&(c=e.watch(f,m=>{d.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&De(u),a||pe(g),{id:i,css:f,unload:g,load:u,isLoaded:e.readonly(o)}}function ft(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=ct(a),f=e.ref(!0),c=ne(S,100);let u;const g=e.shallowRef(t),d=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let r=0;const h=e.ref([]),T=e.computed(()=>{let{sum:A,height:C}={sum:0,height:0};return g.value.map((Q,U)=>(typeof l=="number"?C=l:C=l(U),A+=C,{height:C,sum:A}))}),E=e.computed(()=>Y(m.value.start)),v=e.computed(()=>typeof l=="number"?T.value.length*l:T.value[T.value.length-1]?.sum||0),p=e.computed(()=>{const{start:A,end:C}=M.value;return h.value.slice(A,C)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,C])=>{(A||C)&&x()},{deep:!0}),e.watch(d,()=>{D(),c()});function D(){f.value=!1}function S(){f.value=!0,o?.()}function x(){cancelAnimationFrame(u),u=requestAnimationFrame(w)}function w(){if(a.value){d.value=a.value.scrollTop;let A=N(d.value);r=I(A);let C=Math.max(0,A-s),Q=Math.min(A+r+s,g.value.length);m.value={start:C,end:Q},h.value=g.value.slice(C,Q).map((U,k)=>({data:U,index:k+C})),M.value.start=A-C,M.value.end=M.value.start+r}}function N(A){let C=0,Q=T.value.length-1,U=-1;for(;C<=Q;){const k=Math.floor((C+Q)/2);T.value[k].sum>=A?(U=k,Q=k-1):C=k+1}return Math.max(0,U)}function I(A){let C=0,Q=0;for(let U=A;U<T.value.length&&(C++,Q+=T.value[U].height,!(Q>=i.height.value));U++);return C}function Y(A){if(typeof l=="number")return A*l;let C=T.value[A];return C?C.sum-C.height:0}function y(A){return T.value[A]||{sum:0,height:0}}function z(A,C="smooth"){if(a.value){const{reset:Q}=ft(a.value,"scrollBehavior",C),U=y(A);a.value.scrollTop=U.sum-U.height,w(),Q()}if(a.value){const Q=y(A);a.value.scrollTop=Q.sum-Q.height,w()}}const _=e.computed(()=>({style:{width:"100%",height:`${v.value}px`,pointerEvents:f.value?void 0:"none"}})),B=e.computed(()=>({style:{transform:`translate3d(0, ${E.value}px, 0)`,"will-change":"transform"}})),b={overflowY:"auto"};return{list:h,visiableList:p,getItemHeightData:y,getoffsetTopIndex:N,totalHeight:v,clientHeight:i.height,scrollTo:z,scrollTop:d,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{x()},style:b},wrapperProps:_,innerProps:B}}const we=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),J=Symbol(),Me=Symbol();function Mt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:T=>{},boolFn:T=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(we,"id"),i=e.inject(re,s),f=e.inject(ie,n),c=e.inject(fe,o),u=e.inject(ae,t),g=e.inject(se,t),d=e.inject(ce,t),m=e.inject(ue,t),M=e.inject(de,t),r=e.inject(J,t),h=e.inject(Me,l);return{itemKey:a,selected:i,isSelected:f,isAllSelected:c,toggle:u,toggleAll:g,select:d,selectAll:m,unselect:M,unselectAll:r,selectedCount:h}}function gt(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.reactive(new Map);e.watch(t,p=>{a.clear(),p.forEach(D=>{a.has(D[n])||a.set(D[n],D)}),v()},{deep:o.deep,immediate:!0}),e.onScopeDispose(()=>{l.value=!1,s.value.clear(),a.clear()});const i=e.computed(()=>{let p=[];if(l.value!=null)l.value&&(p=Array.from(a.values()));else if(s.value.size){let D;s.value.forEach(S=>{D=a.get(S),D&&p.push(D)})}return p}),f=e.computed(()=>{let p=0;return l.value!=null?l.value&&(p=a.size):p=s.value.size,p}),c=e.computed(()=>{let p;if(l.value!=null)p=l.value;else{const D=s.value.size,S=a.size;p=D==S}return p});function u(){l.value=!0}function g(){l.value=!1}function d(p){a.has(p)&&s.value.add(p)}function m(p){h(()=>{p.forEach(D=>{d(D[n])})})}function M(p){h(()=>{p.forEach(D=>{s.value.delete(D[n])})})}function r(p){return l.value!=null?l.value:s.value.has(p[n])}function h(p){l.value!=null&&(l.value?s.value=new Set(Array.from(a.keys())):s.value=new Set),p(),o.useAllFlagOptimizatiofn?s.value.size==0?l.value=!1:s.value.size==a.size?l.value=!0:l.value=null:l.value=null}function T(p){h(()=>{p.forEach(D=>{r(D)?s.value.delete(D[n]):d(D[n])})})}function E(){const{value:p}=c;p?g():u()}function v(){const p=[];s.value.forEach(D=>{a.get(D)||p.push(D)}),p.forEach(D=>s.value.delete(D))}return e.provide(we,n),e.provide(se,E),e.provide(ae,T),e.provide(ie,r),e.provide(re,i),e.provide(ce,m),e.provide(ue,u),e.provide(de,M),e.provide(fe,c),e.provide(J,g),e.provide(J,g),e.provide(Me,f),{selected:i,select:m,selectAll:u,unselect:M,unselectAll:g,toggle:T,toggleAll:E,isSelected:r,isAllSelected:c,selectedCount:f}}function mt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let r=[];return n.value!=null?n.value&&(r=t.value):o.value.size&&(r=Array.from(o.value.values())),r}),s=e.computed(()=>{let r=0;return n.value!=null?n.value&&(r=t.value.length):r=o.value.size,r}),a=e.computed(()=>{let r;if(n.value!=null)r=n.value;else{const h=o.value.size,T=t.value.length;r=h==T}return r});function i(){n.value=!0}function f(){n.value=!1}function c(r){d(()=>{r.forEach(h=>{o.value.add(h)})})}function u(r){d(()=>{r.forEach(h=>{o.value.delete(h)})})}function g(r){return n.value!=null?n.value:o.value.has(r)}function d(r){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),r(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(r){d(()=>{r.forEach(h=>{g(h)?o.value.delete(h):o.value.add(h)})})}function M(){const{value:r}=a;r?f():i()}return e.provide(se,M),e.provide(ae,m),e.provide(ie,g),e.provide(re,l),e.provide(ce,c),e.provide(ue,i),e.provide(de,u),e.provide(fe,a),e.provide(J,f),e.provide(J,f),e.provide(Me,s),{selected:l,select:c,selectAll:i,unselect:u,unselectAll:f,toggle:m,toggleAll:M,isSelected:g,isAllSelected:a,selectedCount:s}}function Ee(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ve({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:s={},getSelectMap:a=()=>({})}){const{select:i=Ee("\u9009\u62E9"),unselect:f=Ee("\u53D6\u6D88\u9009\u62E9"),unselectAll:c=Ee("\u53D6\u6D88\u5168\u9009")}=a();let u={};const g=e.computed(()=>ye(l==="colum"?Pn:$n,50)),d=e.computed(()=>t??o),m=(()=>n?j=>n(j):j=>j)(),M=new Set,r=e.ref(!0),h=e.ref(),T=e.ref(!1),E=e.ref({x:0,y:0}),v=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),D=e.ref({top:0,height:0,sync(j=!1){D.value.top=h.value?.scrollTop||0,j&&(D.value.height=h.value?.scrollHeight||0)}}),S=e.computed(()=>T.value?{left:Math.min(E.value.x,v.value.x)-p.value.left,top:Math.min(E.value.y,v.value.y)-p.value.top,width:Math.abs(E.value.x-v.value.x),height:Math.abs(E.value.y-v.value.y)}:{left:0,top:0,width:0,height:0}),x=e.ref(!1),{margin:w=50,startSpeed:N=30,maxSpeed:I=30}=s;let Y;const y=w,z=N,_=I,B=j=>j**1;let b=0;function A(j){if(cancelAnimationFrame(Y),b=C(j),b=Math.max(Math.min(b,_),-_),b!==0){const O=h.value;if(!O||!T.value)return;const $=D.value.height-p.value.height;let P=D.value.top+Number(b);P=Math.min(Math.max(0,P),$),O.scrollTop=P,U(),Y=requestAnimationFrame(()=>A(j))}}function C(j){if(h.value){const $=p.value,P=$.bottom-j;if(P<y)return z*B(1-P/y);const G=j-$.top;if(G<y)return-z*B(1-G/y)}return 0}function Q(j){const O={...S.value,right:0,bottom:0};return O.left+=p.value.left,O.top+=p.value.top-D.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}function U(){D.value.sync();const{top:j,height:O}=D.value;v.value.y=Math.min(O+p.value.top,v.value.y+j-v.value.scrollTop),v.value.scrollTop=j}function k(j,O,$="dynamic-styles"){let P=document.getElementById($);P||(P=document.createElement("style"),P.id=$,document.head.appendChild(P));const G=P.sheet.cssRules,ee=G.length,Fn=`${j} { ${O} }`;for(let Ce=0;Ce<ee;Ce++){const Ze=G[Ce];if(Ze.selectorText===j&&Ze.style.cssText===O)return}P.sheet.insertRule(Fn,ee)}function R(j,O){r.value=!0,T.value=!0,D.value.sync(!0);const $=O+D.value.top;E.value.x=j,E.value.y=$,v.value.x=j,v.value.y=$,h.value?.classList.add("disable-scroll-behavior"),M.clear()}function F(j,O,$){!T.value||(r.value&&l==="colum"&&!me()&&(x.value||c(),r.value=!1),$?.(),A(O),v.value.x=Math.max(j,p.value.left),v.value.y=Math.min(O+D.value.top,D.value.height+p.value.top),v.value.scrollTop=D.value.top,g.value())}function H(){T.value=!1,h.value?.classList.remove("disable-scroll-behavior")}function Z(){!T.value||(b||U(),g.value())}function me(){if(!T.value)return!1;const{width:j,height:O}=S.value;return!(Math.max(j,O)>5)}function Rn(){me()&&c()}function Pn(){me()||h.value?.querySelectorAll(`[${o}]`).forEach(j=>{u[d.value]=m(j.getAttribute(`${o}`)),Q(j.getBoundingClientRect())?i([u]):x.value||f([u])})}function $n(){const j=[];let O=null,$=0;h.value?.querySelectorAll(`[${o}]`).forEach((P,G)=>{const ee=m(P.getAttribute(`${o}`));j.push(ee),Q(P.getBoundingClientRect())?(O===null&&(O=G),O=Math.min(O,G),$=Math.max($,G)):(u[d.value]=ee,M.has(ee)&&f([u]))});for(let P=O;P<$+1;P++)u[d.value]=j[P],i([u]),M.add(j[P])}function Ke(){!h.value||(p.value=h.value.getBoundingClientRect())}function Hn(j){return!j?.value||(h.value=j.value,!h?.value)?!1:(Ke(),k(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Hn,dragStart:R,dragMove:F,dragEnd:H,onScroll:Z,isSingleClick:me,cancelSelectAllBySingleClick:Rn,selectFn:g,getAttributeValue:m,updateContainerRect:Ke,incrementalSelect:x,selectRange:S,isPressing:T,containerEl:h}}function ht(t,n=!1){const o=ve(t),{selectRange:l}=o,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:c}=o,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=Ne(`.drag-select-box {
|
|
1
|
+
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.ui={},L.Vue))})(this,function(L,e){"use strict";const je={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,c=i.clientY,u=Math.abs(f-o),g=Math.abs(c-l);u>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ge={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}},he={beforeMount(t,n){n.value()}};function qe(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Je(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,u=e.customRef((g,d)=>(l=g,s=d,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(m){c?.(m)}}));return Object.isExtensible(u)&&(u.trigger=i),u}function pe(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const Se=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const et=Object.prototype.toString,tt=t=>et.call(t)==="[object Object]",q=()=>{};function xe(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function nt(t,n={}){let o,l,s=q;const a=f=>{clearTimeout(f),s(),s=q};return f=>{const c=V(t),u=V(n.maxWait);return o&&a(o),c<=0||u!==void 0&&u<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((g,d)=>{s=n.rejectOnCancel?d:g,u&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(f())},u)),o=setTimeout(()=>{l&&a(l),l=null,g(f())},c)})}}function ot(...t){let n=0,o,l=!0,s=q,a,i,f,c,u;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:c=!0,rejectOnCancel:u=!1}=t[0]:[i,f=!0,c=!0,u=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=q)};return m=>{const M=V(i),r=Date.now()-n,h=()=>a=m();return g(),M<=0?(n=Date.now(),h()):(r>M&&(c||!l)?(n=Date.now(),h()):f&&(a=new Promise((T,E)=>{s=u?E:T,o=setTimeout(()=>{n=Date.now(),l=!0,T(h()),g()},Math.max(0,M-r))})),!c&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,a)}}function lt(t){return t||e.getCurrentInstance()}function ne(t,n=200,o={}){return xe(nt(n,o),t)}function ye(t,n=200,o=!1,l=!0,s=!1){return xe(ot(n,o,l,s),t)}function De(t,n=!0,o){lt()?e.onMounted(t,o):n?t():e.nextTick(t)}function X(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const oe=Se?window:void 0,st=Se?window.document:void 0;function le(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=oe):[n,o,l,s]=t,!n)return q;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},f=(g,d,m,M)=>(g.addEventListener(d,m,M),()=>g.removeEventListener(d,m,M)),c=e.watch(()=>[X(n),V(s)],([g,d])=>{if(i(),!g)return;const m=tt(d)?{...d}:d;a.push(...o.flatMap(M=>l.map(r=>f(g,M,r,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return pe(u),u}function at(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function it(t){const n=at();return e.computed(()=>(n.value,Boolean(t())))}function rt(t){const n=e.getCurrentInstance(),o=Je(()=>null,()=>t?X(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Te(t,n,o={}){const{window:l=oe,...s}=o;let a;const i=it(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(d=>X(d)):[X(t)]),u=e.watch(c,d=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const m of d)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),u()};return pe(g),{isSupported:i,stop:g}}function ct(t,n={width:0,height:0},o={}){const{window:l=oe,box:s="content-box"}=o,a=e.computed(()=>{var d,m;return(m=(d=X(t))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:c}=Te(t,([d])=>{const m=s==="border-box"?d.borderBoxSize:s==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&a.value){const M=X(t);if(M){const r=l.getComputedStyle(M);i.value=Number.parseFloat(r.width),f.value=Number.parseFloat(r.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((r,{inlineSize:h})=>r+h,0),f.value=M.reduce((r,{blockSize:h})=>r+h,0)}else i.value=d.contentRect.width,f.value=d.contentRect.height},o);De(()=>{const d=X(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,f.value="offsetHeight"in d?d.offsetHeight:n.height)});const u=e.watch(()=>X(t),d=>{i.value=d?n.width:0,f.value=d?n.height:0});function g(){c(),u()}return{width:i,height:f,stop:g}}const _e=1;function ut(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=q,onScroll:a=q,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:c="auto",window:u=oe,onError:g=w=>{console.error(w)}}=n,d=e.ref(0),m=e.ref(0),M=e.computed({get(){return d.value},set(w){h(w,void 0)}}),r=e.computed({get(){return m.value},set(w){h(void 0,w)}});function h(w,N){var I,B,y;if(!u)return;const z=V(t);!z||(y=z instanceof Document?u.document.body:z)==null||y.scrollTo({top:(I=V(N))!=null?I:r.value,left:(B=V(w))!=null?B:M.value,behavior:V(c)})}const T=e.ref(!1),E=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),v=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),p=w=>{!T.value||(T.value=!1,v.left=!1,v.right=!1,v.top=!1,v.bottom=!1,s(w))},D=ne(p,o+l),S=w=>{var N;if(!u)return;const I=((N=w?.document)==null?void 0:N.documentElement)||w?.documentElement||X(w),{display:B,flexDirection:y}=getComputedStyle(I),z=I.scrollLeft;v.left=z<d.value,v.right=z>d.value;const _=Math.abs(z)<=(i.left||0),Q=Math.abs(z)+I.clientWidth>=I.scrollWidth-(i.right||0)-_e;B==="flex"&&y==="row-reverse"?(E.left=Q,E.right=_):(E.left=_,E.right=Q),d.value=z;let b=I.scrollTop;w===u.document&&!b&&(b=u.document.body.scrollTop),v.top=b<m.value,v.bottom=b>m.value;const A=Math.abs(b)<=(i.top||0),C=Math.abs(b)+I.clientHeight>=I.scrollHeight-(i.bottom||0)-_e;B==="flex"&&y==="column-reverse"?(E.top=C,E.bottom=A):(E.top=A,E.bottom=C),m.value=b},x=w=>{var N;if(!u)return;const I=(N=w.target.documentElement)!=null?N:w.target;S(I),T.value=!0,D(w),a(w)};return le(t,"scroll",o?ye(x,o,!0,!1):x,f),De(()=>{try{const w=V(t);if(!w)return;S(w)}catch(w){g(w)}}),le(t,"scrollend",p,f),{x:M,y:r,isScrolling:T,arrivedState:E,directions:v,measure(){const w=V(t);u&&w&&S(w)}}}let dt=0;function Ne(t,n={}){const o=e.ref(!1),{document:l=st,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++dt}`}=n,f=e.ref(t);let c=()=>{};const u=()=>{if(!l)return;const d=l.getElementById(i)||l.createElement("style");d.isConnected||(d.id=i,n.media&&(d.media=n.media),l.head.appendChild(d)),!o.value&&(c=e.watch(f,m=>{d.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&De(u),a||pe(g),{id:i,css:f,unload:g,load:u,isLoaded:e.readonly(o)}}function ft(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=ct(a),f=e.ref(!0),c=ne(S,100);let u;const g=e.shallowRef(t),d=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let r=0;const h=e.ref([]),T=e.computed(()=>{let{sum:A,height:C}={sum:0,height:0};return g.value.map((Y,U)=>(typeof l=="number"?C=l:C=l(U),A+=C,{height:C,sum:A}))}),E=e.computed(()=>B(m.value.start)),v=e.computed(()=>typeof l=="number"?T.value.length*l:T.value[T.value.length-1]?.sum||0),p=e.computed(()=>{const{start:A,end:C}=M.value;return h.value.slice(A,C)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,C])=>{(A||C)&&x()},{deep:!0}),e.watch(d,()=>{D(),c()});function D(){f.value=!1}function S(){f.value=!0,o?.()}function x(){cancelAnimationFrame(u),u=requestAnimationFrame(w)}function w(){if(a.value){d.value=a.value.scrollTop;let A=N(d.value);r=I(A);let C=Math.max(0,A-s),Y=Math.min(A+r+s,g.value.length);m.value={start:C,end:Y},h.value=g.value.slice(C,Y).map((U,k)=>({data:U,index:k+C})),M.value.start=A-C,M.value.end=M.value.start+r}}function N(A){let C=0,Y=T.value.length-1,U=-1;for(;C<=Y;){const k=Math.floor((C+Y)/2);T.value[k].sum>=A?(U=k,Y=k-1):C=k+1}return Math.max(0,U)}function I(A){let C=0,Y=0;for(let U=A;U<T.value.length&&(C++,Y+=T.value[U].height,!(Y>=i.height.value));U++);return C}function B(A){if(typeof l=="number")return A*l;let C=T.value[A];return C?C.sum-C.height:0}function y(A){return T.value[A]||{sum:0,height:0}}function z(A,C="smooth"){if(a.value){const{reset:Y}=ft(a.value,"scrollBehavior",C),U=y(A);a.value.scrollTop=U.sum-U.height,w(),Y()}if(a.value){const Y=y(A);a.value.scrollTop=Y.sum-Y.height,w()}}const _=e.computed(()=>({style:{width:"100%",height:`${v.value}px`,pointerEvents:f.value?void 0:"none"}})),Q=e.computed(()=>({style:{transform:`translate3d(0, ${E.value}px, 0)`,"will-change":"transform"}})),b={overflowY:"auto"};return{list:h,visiableList:p,getItemHeightData:y,getoffsetTopIndex:N,totalHeight:v,clientHeight:i.height,scrollTo:z,scrollTop:d,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{x()},style:b},wrapperProps:_,innerProps:Q}}const we=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),J=Symbol(),Me=Symbol();function Mt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:T=>{},boolFn:T=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(we,"id"),i=e.inject(re,s),f=e.inject(ie,n),c=e.inject(fe,o),u=e.inject(ae,t),g=e.inject(se,t),d=e.inject(ce,t),m=e.inject(ue,t),M=e.inject(de,t),r=e.inject(J,t),h=e.inject(Me,l);return{itemKey:a,selected:i,isSelected:f,isAllSelected:c,toggle:u,toggleAll:g,select:d,selectAll:m,unselect:M,unselectAll:r,selectedCount:h}}function gt(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.reactive(new Map);e.watch(t,p=>{a.clear(),p.forEach(D=>{a.has(D[n])||a.set(D[n],D)}),v()},{deep:o.deep,immediate:!0}),e.onScopeDispose(()=>{l.value=!1,s.value.clear(),a.clear()});const i=e.computed(()=>{let p=[];if(l.value!=null)l.value&&(p=Array.from(a.values()));else if(s.value.size){let D;s.value.forEach(S=>{D=a.get(S),D&&p.push(D)})}return p}),f=e.computed(()=>{let p=0;return l.value!=null?l.value&&(p=a.size):p=s.value.size,p}),c=e.computed(()=>{let p;if(l.value!=null)p=l.value;else{const D=s.value.size,S=a.size;p=D==S}return p});function u(){l.value=!0}function g(){l.value=!1}function d(p){a.has(p)&&s.value.add(p)}function m(p){h(()=>{p.forEach(D=>{d(D[n])})})}function M(p){h(()=>{p.forEach(D=>{s.value.delete(D[n])})})}function r(p){return l.value!=null?l.value:s.value.has(p[n])}function h(p){l.value!=null&&(l.value?s.value=new Set(Array.from(a.keys())):s.value=new Set),p(),o.useAllFlagOptimizatiofn?s.value.size==0?l.value=!1:s.value.size==a.size?l.value=!0:l.value=null:l.value=null}function T(p){h(()=>{p.forEach(D=>{r(D)?s.value.delete(D[n]):d(D[n])})})}function E(){const{value:p}=c;p?g():u()}function v(){const p=[];s.value.forEach(D=>{a.get(D)||p.push(D)}),p.forEach(D=>s.value.delete(D))}return e.provide(we,n),e.provide(se,E),e.provide(ae,T),e.provide(ie,r),e.provide(re,i),e.provide(ce,m),e.provide(ue,u),e.provide(de,M),e.provide(fe,c),e.provide(J,g),e.provide(J,g),e.provide(Me,f),{selected:i,select:m,selectAll:u,unselect:M,unselectAll:g,toggle:T,toggleAll:E,isSelected:r,isAllSelected:c,selectedCount:f}}function mt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let r=[];return n.value!=null?n.value&&(r=t.value):o.value.size&&(r=Array.from(o.value.values())),r}),s=e.computed(()=>{let r=0;return n.value!=null?n.value&&(r=t.value.length):r=o.value.size,r}),a=e.computed(()=>{let r;if(n.value!=null)r=n.value;else{const h=o.value.size,T=t.value.length;r=h==T}return r});function i(){n.value=!0}function f(){n.value=!1}function c(r){d(()=>{r.forEach(h=>{o.value.add(h)})})}function u(r){d(()=>{r.forEach(h=>{o.value.delete(h)})})}function g(r){return n.value!=null?n.value:o.value.has(r)}function d(r){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),r(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(r){d(()=>{r.forEach(h=>{g(h)?o.value.delete(h):o.value.add(h)})})}function M(){const{value:r}=a;r?f():i()}return e.provide(se,M),e.provide(ae,m),e.provide(ie,g),e.provide(re,l),e.provide(ce,c),e.provide(ue,i),e.provide(de,u),e.provide(fe,a),e.provide(J,f),e.provide(J,f),e.provide(Me,s),{selected:l,select:c,selectAll:i,unselect:u,unselectAll:f,toggle:m,toggleAll:M,isSelected:g,isAllSelected:a,selectedCount:s}}function Ee(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ve({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:s={},getSelectMap:a=()=>({})}){const{select:i=Ee("\u9009\u62E9"),unselect:f=Ee("\u53D6\u6D88\u9009\u62E9"),unselectAll:c=Ee("\u53D6\u6D88\u5168\u9009")}=a();let u={};const g=e.computed(()=>ye(l==="colum"?Pn:$n,50)),d=e.computed(()=>t??o),m=(()=>n?j=>n(j):j=>j)(),M=new Set,r=e.ref(!0),h=e.ref(),T=e.ref(!1),E=e.ref({x:0,y:0}),v=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),D=e.ref({top:0,height:0,sync(j=!1){D.value.top=h.value?.scrollTop||0,j&&(D.value.height=h.value?.scrollHeight||0)}}),S=e.computed(()=>T.value?{left:Math.min(E.value.x,v.value.x)-p.value.left,top:Math.min(E.value.y,v.value.y)-p.value.top,width:Math.abs(E.value.x-v.value.x),height:Math.abs(E.value.y-v.value.y)}:{left:0,top:0,width:0,height:0}),x=e.ref(!1),{margin:w=50,startSpeed:N=30,maxSpeed:I=30}=s;let B;const y=w,z=N,_=I,Q=j=>j**1;let b=0;function A(j){if(cancelAnimationFrame(B),b=C(j),b=Math.max(Math.min(b,_),-_),b!==0){const O=h.value;if(!O||!T.value)return;const $=D.value.height-p.value.height;let P=D.value.top+Number(b);P=Math.min(Math.max(0,P),$),O.scrollTop=P,U(),B=requestAnimationFrame(()=>A(j))}}function C(j){if(h.value){const $=p.value,P=$.bottom-j;if(P<y)return z*Q(1-P/y);const G=j-$.top;if(G<y)return-z*Q(1-G/y)}return 0}function Y(j){const O={...S.value,right:0,bottom:0};return O.left+=p.value.left,O.top+=p.value.top-D.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}function U(){D.value.sync();const{top:j,height:O}=D.value;v.value.y=Math.min(O+p.value.top,v.value.y+j-v.value.scrollTop),v.value.scrollTop=j}function k(j,O,$="dynamic-styles"){let P=document.getElementById($);P||(P=document.createElement("style"),P.id=$,document.head.appendChild(P));const G=P.sheet.cssRules,ee=G.length,Fn=`${j} { ${O} }`;for(let Ce=0;Ce<ee;Ce++){const Ze=G[Ce];if(Ze.selectorText===j&&Ze.style.cssText===O)return}P.sheet.insertRule(Fn,ee)}function R(j,O){r.value=!0,T.value=!0,D.value.sync(!0);const $=O+D.value.top;E.value.x=j,E.value.y=$,v.value.x=j,v.value.y=$,h.value?.classList.add("disable-scroll-behavior"),M.clear()}function F(j,O,$){!T.value||(r.value&&l==="colum"&&!me()&&(x.value||c(),r.value=!1),$?.(),A(O),v.value.x=Math.max(j,p.value.left),v.value.y=Math.min(O+D.value.top,D.value.height+p.value.top),v.value.scrollTop=D.value.top,g.value())}function H(){T.value=!1,h.value?.classList.remove("disable-scroll-behavior")}function Z(){!T.value||(b||U(),g.value())}function me(){if(!T.value)return!1;const{width:j,height:O}=S.value;return!(Math.max(j,O)>5)}function Rn(){me()&&c()}function Pn(){me()||h.value?.querySelectorAll(`[${o}]`).forEach(j=>{u[d.value]=m(j.getAttribute(`${o}`)),Y(j.getBoundingClientRect())?i([u]):x.value||f([u])})}function $n(){const j=[];let O=null,$=0;h.value?.querySelectorAll(`[${o}]`).forEach((P,G)=>{const ee=m(P.getAttribute(`${o}`));j.push(ee),Y(P.getBoundingClientRect())?(O===null&&(O=G),O=Math.min(O,G),$=Math.max($,G)):(u[d.value]=ee,M.has(ee)&&f([u]))});for(let P=O;P<$+1;P++)u[d.value]=j[P],i([u]),M.add(j[P])}function Ke(){!h.value||(p.value=h.value.getBoundingClientRect())}function Hn(j){return!j?.value||(h.value=j.value,!h?.value)?!1:(Ke(),k(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Hn,dragStart:R,dragMove:F,dragEnd:H,onScroll:Z,isSingleClick:me,cancelSelectAllBySingleClick:Rn,selectFn:g,getAttributeValue:m,updateContainerRect:Ke,incrementalSelect:x,selectRange:S,isPressing:T,containerEl:h}}function ht(t,n=!1){const o=ve(t),{selectRange:l}=o,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:c}=o,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=Ne(`.drag-select-box {
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:u.value})}});function m(E){E.button===0&&(n&&(E.ctrlKey||E.metaKey)&&(o.incrementalSelect.value=!0),a(E.x,E.y),window.addEventListener("mousemove",M),window.addEventListener("mouseup",r))}function M(E){i(E.x,E.y)}function r(E){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",r),E.composedPath().some(p=>o.getAttributeValue(p?.getAttribute?.(t.attribute)))||c(),f(),o.incrementalSelect.value=!1}function h(E){try{if(!o.init(E))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),g(),o.containerEl.value?.addEventListener("scroll",s),o.containerEl.value?.addEventListener("mousedown",m)}catch(v){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",v)}}function T(){o.containerEl.value?.removeEventListener("scroll",s),o.containerEl.value?.removeEventListener("mousedown",m)}return{init:h,unMount:T}}function pt(t,n={}){const{joinSelectMode:o,pressTime:l=600,selectModeRef:s,horizontalDragThreshold:a=
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:u.value})}});function m(E){E.button===0&&(n&&(E.ctrlKey||E.metaKey)&&(o.incrementalSelect.value=!0),a(E.x,E.y),window.addEventListener("mousemove",M),window.addEventListener("mouseup",r))}function M(E){i(E.x,E.y)}function r(E){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",r),E.composedPath().some(p=>o.getAttributeValue(p?.getAttribute?.(t.attribute)))||c(),f(),o.incrementalSelect.value=!1}function h(E){try{if(!o.init(E))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),g(),o.containerEl.value?.addEventListener("scroll",s),o.containerEl.value?.addEventListener("mousedown",m)}catch(v){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",v)}}function T(){o.containerEl.value?.removeEventListener("scroll",s),o.containerEl.value?.removeEventListener("mousedown",m)}return{init:h,unMount:T}}function pt(t,n={}){const{joinSelectMode:o,pressTime:l=600,selectModeRef:s,horizontalDragThreshold:a=20}=n,i=ve({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{onScroll:f,dragStart:c,dragMove:u,dragEnd:g}=i;let d,m=!1,M={x:0,y:0};function r(){clearTimeout(d)}function h(N){return N.composedPath().some(I=>!!I?.getAttribute?.(t.attribute))}function T(N,I){const B=Math.abs(N-M.x),y=Math.abs(I-M.y);return!m&&B>a&&B>y}function E(N,I){return s?.value&&!i.isPressing.value&&T(N,I)}function v(N,I,B){(I==null||B==null)&&(I=N.targetTouches[0].clientX,B=N.targetTouches[0].clientY),i.updateContainerRect(),c(I,B),o?.(),u(I,B,()=>N.preventDefault())}function p(N){if(r(),!h(N))return;const{clientX:I,clientY:B}=N.targetTouches[0];M={x:I,y:B},m=!1,d=setTimeout(()=>{v(N),N.preventDefault()},l)}function D(N){r();const{clientX:I,clientY:B}=N.targetTouches[0];if(E(I,B)){m=!0,v(N,M.x,M.y);return}u(I,B,()=>N.preventDefault())}function S(){r(),m=!1,g()}function x(N){try{if(!i.init(N))throw new Error("\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E");if(!i.containerEl?.value)return!1;const I=i.containerEl.value;I.addEventListener("scroll",f),I.addEventListener("touchstart",p),I.addEventListener("touchmove",D),window.addEventListener("touchcancel",S),window.addEventListener("touchend",S)}catch(I){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",I)}}function w(){if(!i.containerEl?.value)return;const N=i.containerEl.value;N.removeEventListener("scroll",f),N.removeEventListener("touchstart",p),N.removeEventListener("touchmove",D),window.removeEventListener("touchcancel",S),window.removeEventListener("touchend",S)}return{init:x,unMount:w}}const Oe=Symbol(),yt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""},onClickOverlay:null},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.onClickOverlay?.(),o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Oe,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(je),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Vn="",W=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},Dt=W(yt,[["__scopeId","data-v-3d61e60a"]]);function Tt(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(Dt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Ie({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return Ne(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${a} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const f=rt();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Nt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ie({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const wt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),wt,16))}}),Kn="",ke=W(Et,[["__scopeId","data-v-92a1804d"]]),vt="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",It={class:"loading-wrap"},zt=["src"],At=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(vt),style:e.normalizeStyle(e.unref(o))},null,12,zt)]))}}),Zn="",Lt=W(At,[["__scopeId","data-v-3c54972f"]]);async function ze(t){return new Promise(n=>setTimeout(()=>n(),t))}const Ct="data:image/svg+xml;base64,PHN2ZyB3aWR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AgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",St=["onClick"],xt=["onClick"],_t=["src"],bt=["src"],Ot=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),a=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),i=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function f(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(f,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(d=>n("close"),["stop"])),src:e.unref(Ct),class:e.normalizeClass(`${l}-close`)},null,10,_t)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(jt),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,xt)],10,St),[[e.vShow,t.visible]])],4)]),_:1}))}}),Gn="",qn="",kt=W(Ot,[["__scopeId","data-v-0947d1e3"]]);class Be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=kt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await ze(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Bt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,f=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,c);const u=e.ref(!1);let g=null;const d=new Be(c);async function m(...r){if(o&&console.log(`useDelayAsync - handler - processing: ${u.value}`),!u.value){u.value=!0,g=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,u.value),s&&(!u.value||d.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const h=await t(...r);return o&&console.log("useDelayAsync - execute res: ",h),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(a),await n?.onSuccess?.(h,[...r]),h}catch(h){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(h),await M(a),await n?.onError?.(h,[...r])}}}async function M(r=!0){o&&console.log("useDelayAsync - close - closeLoading: ",r),u.value=!1,g&&clearTimeout(g),g=null,r&&await d.destory()}return f&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:u,handler:m,close:M}}function Qt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Yt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",c=()=>i.value==="horizontal",u=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,M){u(),t.value=m,n.value=M}function d(m,M){o.value=(m<0?0:m)-t.value,l.value=M-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const r=10;(!i.value||s.value<r&&a.value<r)&&(i.value=Qt(s.value,a.value))}return{move:d,start:g,reset:u,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:c}}const Qe=250,Ye=5,Ut=500;function Rt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const c=Date.now()-o;i<Ye&&f<Ye&&(c<Qe?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Qe):t.onTap?.():c>Ut&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Pt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function $t(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:K(a),height:K(i)}}function Ht(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ae(t,n,o){return Math.min(Math.max(t,n),o)}function K(t,n=2){return parseFloat(t.toFixed(n))}function ge(t,n,o){return t=K(t),n=K(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Ue(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Ft(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Re(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),u=e.ref({}),g=Yt(),d=Pt(a,{onComplate(){c.preview||T()}}),m=Rt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Te(a,y=>M(y)),e.watch([s,a],([y,z])=>{r(y,z)},{immediate:!0});async function M(y){const[z]=y;z.contentRect.width==f.value.width&&z.contentRect.height==f.value.height||(await r(s.value),await T(c.level,!0))}async function r(y,z){await N(y,z),y&&I()}async function h(y){if(!c.preview)return;c.preview=!1,y=y??c.level;const z=a.value;if(!z)return;const{scrollTop:_,scrollLeft:B}=z,{width:b,height:A}=i.value,{scaleW:C,scaleH:Q}=x(y),{top:U,left:k}=w(C,Q),R=k!=0?k:B*-1,F=U!=0?U:_*-1;z.scrollTop=0,z.scrollLeft=0;const{value:H}=u;H.width=`${b}px`,H.height=`${A}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=ge(R,F,y),u.value=H,await e.nextTick(),c.offsetX=R,c.offsetY=F,await ze(20)}async function T(y,z){if(!z&&c.preview)return;c.preview=!0,y=y??c.level;const{value:_}=u,{scaleW:B,scaleH:b}=x(y),{left:A,top:C}=w(B,b);y===1&&(_.maxHeight="100%"),_.width=`${B}px`,_.height=`${b}px`,_.transitionDuration="0s",_.transform=ge(A,C,1),u.value=_,await e.nextTick();const Q=a.value;if(!Q)return;const{offsetX:U,offsetY:k}=c;U<0&&(Q.scrollLeft=Math.abs(U)),k<0&&(Q.scrollTop=Math.abs(k))}async function E(y,z,_){if(n.value||(y=K(y),y=Ae(y,o.value-o.value*.5,l.value+l.value*.5),y==c.level))return;c.preview&&await h(),z||(z={x:g.startX.value,y:g.startY.value});const{value:B}=u,{width:b,height:A}=i.value,{scaleW:C,scaleH:Q}=x(y),{top:U,left:k}=w(C,Q),R=y/c.level,F={left:Math.abs(b*y-f.value.width)*-1,top:Math.abs(A*y-f.value.height)*-1,right:k,bottom:U};let H=k!=0?k:(c.offsetX-z.x)*R+z.x,Z=U!=0?U:(c.offsetY-z.y)*R+z.y;H=K(Ae(H,F.left,F.right)),Z=K(Ae(Z,F.top,F.bottom)),B.width=`${b}px`,B.height=`${A}px`,B.transitionDuration=_?Ht(y):"0s",B.transform=ge(H,Z,y),c.offsetX=H,c.offsetY=Z,c.level=y,u.value=B,await e.nextTick(),_&&d.startTransition(),t.onScale?.(y)}function v(){const y=c.level>1?1:S();E(y,void 0,!0)}function p(y,z){if(!c.preview)return;const _=a.value;!_||_.scrollTo({left:c.offsetX-y,top:c.offsetY-z})}async function D(){c.level>=o.value&&c.level<=l.value?c.zooming&&await T():c.level<o.value?await E(o.value,void 0,!0):c.level>l.value&&await E(l.value,c.lastCenter,!0),c.zooming=!1}function S(){const{width:y,height:z}=i.value,{width:_,height:B}=f.value,b=2.5;let A;return z==B?(A=_/y,A-1<.1&&(A=b)):A=Math.max(b,_/y,B/z),A}function x(y){const{width:z,height:_}=i.value;return{scaleW:K(y*z),scaleH:K(y*_)}}function w(y,z){const{width:_,height:B}=f.value,b=Math.max(0,(B-z)*.5),A=Math.max(0,(_-y)*.5);return{top:b,left:A}}async function N(y,z){if(y=y??s.value,z=z??a.value,!z)return;let _,{clientWidth:B=0,clientHeight:b=0}=y||{};const{clientWidth:A,clientHeight:C}=z;if(y instanceof HTMLImageElement?_={width:y.naturalWidth,height:y.naturalHeight}:y instanceof HTMLVideoElement&&(_={width:y.videoWidth,height:y.videoHeight}),_){const Q=$t(_.width,_.height,A,C);B=Q.width,b=Q.height}(B===0||b===0)&&(B=i.value.width||A,b=i.value.height||C),i.value={width:Math.min(B,A),height:Math.min(b,C)},f.value={width:A,height:C},T(void 0,!0)}function I(){const y=S();l.value=Math.max(l.value,y*2)}function Y(y){n.value=y}return{touch:g,state:c,style:u,gesture:m,transition:d,imageRef:s,containerRef:a,switchToZoom:h,switchToPreview:T,panTo:p,zoomTo:E,zoomFinished:D,toggleZoom:v,setDisableZoom:Y}}function Pe(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=ut(a);let f,c;function u(m){f=m}function g(m){return f==m}function d(m,M,r,h){i.measure();const{top:T,left:E,right:v,bottom:p}=i.arrivedState;if(m=="start")c=T||E||v||p;else if(f==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const D=l.startY.value<r;c=T&&D||p&&!D}else if(l.direction.value=="horizontal"){const D=l.startX.value<M;c=E&&D||v&&!D}}c&&s.transitioning.value&&(c=!1,h?.preventDefault()),m=="end"&&!c&&(M=l.startX.value,r=l.startY.value,c=!0),(m!="move"||c)&&n?.(m,l.direction.value,M,r,h)}return{onSwipeEdge:d,setFingerNum:u,isEqualFingerNum:g}}function Vt(t){const n=Re({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const c={top:0,left:0},u=ne(T,150),{onSwipeEdge:g}=Pe(n,t.onSwipeEdge),d=e.ref({top:0,left:0});le("keyup",v),le("keydown",E);function m(p){const D=n.containerRef.value;if(!D)return;const{left:S,top:x}=D.getBoundingClientRect();d.value.left=S,d.value.top=x,s.startTap();let w=p.clientX-S,N=p.clientY-x;l.start(w,N),g("start",w,N,p),a.transitioning.value||(i=!0,c.left=S,c.top=x,o.offsetX=D.scrollLeft,o.offsetY=D.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",r)}function M(p){if(!i)return;let D=p.clientX,S=p.clientY;l.move(D,S),g("move",D-d.value.left,S-d.value.top,p),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(p){g("end",l.offsetX.value,l.offsetY.value,p),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",r)}function h(p){if(!p.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",T)),p.preventDefault();let D=-p.deltaY;p.deltaMode===1?D*=.05:D*=p.deltaMode?1:.002,f!="Control"&&(D*=10),D=2**D;const S=o.level*D;o.lastCenter={x:p.clientX-d.value.left,y:p.clientY-d.value.top},n.zoomTo(S,o.lastCenter),f!="Control"&&u()}function T(){n.zoomFinished(),window.removeEventListener("keyup",T)}function E(p){f=p.key}function v(){f=null}return{core:n,onPointerDown:m,onWheel:h}}function Wt(t){const n=Re({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:f}=Pe(n,t.onSwipeEdge);let c,u;async function g(M){const{touches:r}=M;a(r.length),o.zooming=f(2),s.startTap();const{clientX:h,clientY:T}=r[0];l.start(h,T),i("start",h,T,M),o.zooming&&(M.preventDefault(),c=o.level,u=Ue(r),await n.switchToZoom(),o.lastCenter=Ft(r))}async function d(M){const{touches:r}=M;a(r.length);const{clientX:h,clientY:T}=r[0];if(l.move(h,T),i("move",h,T,M),o.zooming&&f(2)){M.preventDefault();const E=Ue(r),v=c*E/u;n.zoomTo(v,o.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:r,clientY:h}=M.changedTouches[0];i("end",r,h,M),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:g,onTouchMove:d,onTouchEnd:m}}function Xt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function $e(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function He(t){let n=!1;return()=>{n||(t(),n=!0)}}function Kt(t){let n=null;const{isActivated:o}=$e(),l=He(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Zt=["onClick"],Gt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Zt))}}),Jn="",qt=W(Gt,[["__scopeId","data-v-25d39b90"]]),Fe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Jt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(qt),{...Fe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Fe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const en=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,en)],4))}});function tn(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),c=ne(Y,100);let u,g="";const d=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),h=e.ref({clientHeight:0}),T=e.computed(()=>!!m.value),E=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),v=e.computed(()=>l?r.value.clientHeight-S.value:r.value.clientHeight-h.value.clientHeight),p=e.computed(()=>r.value.scrollHeight-r.value.clientHeight),D=e.computed(()=>!r.value.clientHeight&&!r.value.scrollHeight?1:Math.max(r.value.clientHeight/r.value.scrollHeight,.05)),S=e.computed(()=>D.value>a?0:D.value*r.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${S.value}px`:void 0}));Te(n,()=>C());function w(k){I(),m.value=k.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function N(){n.value.style.scrollBehavior=g,m.value=0,c()}function I(){f.value=!1}function Y(){T.value||(f.value=!0)}function y(k){if(!T.value)return;let R=k.clientY-r.value.top-m.value;R<0?M.value=0:R>=v.value?M.value=v.value:M.value=R,n.value.scrollTo({top:M.value/v.value*p.value})}function z(){T.value||_()}function _(){cancelAnimationFrame(u),u=requestAnimationFrame(B)}function B(){n.value&&(d.value=s.scrollTop?.value??n.value.scrollTop,M.value=d.value/p.value*v.value)}function b(k){let R="addEventListener";k==="add"?R="addEventListener":R="removeEventListener",o.value?.[R]("pointerdown",w,{passive:!0}),window[R]("pointermove",y,{passive:!0}),window[R]("pointerup",N,{passive:!0})}const A=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&C()});function C(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:k=0,clientHeight:R=0}=n.value||{},{scrollHeight:F,clientHeight:H}=r.value;k!=F&&(r.value.scrollHeight=k,B()),R!=H&&(r.value.clientHeight=R,B());const{clientHeight:Z=0}=o.value||{};Z!=h.value.clientHeight&&(h.value.clientHeight=Z)}function Q(){I(),setTimeout(()=>{h.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function U(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",z,{passive:!0}),b("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,k),setTimeout(()=>{C()},100),Q()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{I(),c()}),{isScrollEnd:f,isDragSlider:T,offsetTop:M,scrollTop:d,scrollable:E,sliderPos:x,init:U,modifySliderEventListener:b,heightRatio:D}}const nn=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),on=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=tn({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:c,sliderPos:u,heightRatio:g}=i,d=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<g.value?!1:d.value||!c.value):e.computed(()=>o.maxHeightRatio<g.value?!1:f.value),{load:M}=Ne(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const f=rt();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Nt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ie({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const wt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),w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O938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",It={class:"loading-wrap"},zt=["src"],At=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(vt),style:e.normalizeStyle(e.unref(o))},null,12,zt)]))}}),Zn="",Lt=W(At,[["__scopeId","data-v-3c54972f"]]);async function ze(t){return new Promise(n=>setTimeout(()=>n(),t))}const Ct="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZH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MDM0NSwyNS40MTMwMzQ1IEwyNS40MTMwMzQ1LDI1LjQxMzAzNDUgWiBNNy4yNzIxMzc5Myw3LjI3MjEzNzkzIEM3LjU0MzcxMTI3LDcuMDAwNTE0MTQgNy45MTIwNzQwNCw2Ljg0NzkxMzI0IDguMjk2MTcyNDEsNi44NDc5MTMyNCBDOC42ODAyNzA3OSw2Ljg0NzkxMzI0IDkuMDQ4NjMzNTYsNy4wMDA1MTQxNCA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",St=["onClick"],xt=["onClick"],_t=["src"],bt=["src"],Ot=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),a=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),i=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function f(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(f,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(d=>n("close"),["stop"])),src:e.unref(Ct),class:e.normalizeClass(`${l}-close`)},null,10,_t)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(jt),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,xt)],10,St),[[e.vShow,t.visible]])],4)]),_:1}))}}),Gn="",qn="",kt=W(Ot,[["__scopeId","data-v-0947d1e3"]]);class Be{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=kt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await ze(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Bt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,f=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,c);const u=e.ref(!1);let g=null;const d=new Be(c);async function m(...r){if(o&&console.log(`useDelayAsync - handler - processing: ${u.value}`),!u.value){u.value=!0,g=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,u.value),s&&(!u.value||d.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const h=await t(...r);return o&&console.log("useDelayAsync - execute res: ",h),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(a),await n?.onSuccess?.(h,[...r]),h}catch(h){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(h),await M(a),await n?.onError?.(h,[...r])}}}async function M(r=!0){o&&console.log("useDelayAsync - close - closeLoading: ",r),u.value=!1,g&&clearTimeout(g),g=null,r&&await d.destory()}return f&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:u,handler:m,close:M}}function Qt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Yt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",c=()=>i.value==="horizontal",u=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,M){u(),t.value=m,n.value=M}function d(m,M){o.value=(m<0?0:m)-t.value,l.value=M-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const r=10;(!i.value||s.value<r&&a.value<r)&&(i.value=Qt(s.value,a.value))}return{move:d,start:g,reset:u,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:c}}const Qe=250,Ye=5,Ut=500;function Rt(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const c=Date.now()-o;i<Ye&&f<Ye&&(c<Qe?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Qe):t.onTap?.():c>Ut&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function Pt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function $t(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:K(a),height:K(i)}}function Ht(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ae(t,n,o){return Math.min(Math.max(t,n),o)}function K(t,n=2){return parseFloat(t.toFixed(n))}function ge(t,n,o){return t=K(t),n=K(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Ue(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Ft(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Re(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),u=e.ref({}),g=Yt(),d=Pt(a,{onComplate(){c.preview||T()}}),m=Rt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Te(a,y=>M(y)),e.watch([s,a],([y,z])=>{r(y,z)},{immediate:!0});async function M(y){const[z]=y;z.contentRect.width==f.value.width&&z.contentRect.height==f.value.height||(await r(s.value),await T(c.level,!0))}async function r(y,z){await N(y,z),y&&I()}async function h(y){if(!c.preview)return;c.preview=!1,y=y??c.level;const z=a.value;if(!z)return;const{scrollTop:_,scrollLeft:Q}=z,{width:b,height:A}=i.value,{scaleW:C,scaleH:Y}=x(y),{top:U,left:k}=w(C,Y),R=k!=0?k:Q*-1,F=U!=0?U:_*-1;z.scrollTop=0,z.scrollLeft=0;const{value:H}=u;H.width=`${b}px`,H.height=`${A}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=ge(R,F,y),u.value=H,await e.nextTick(),c.offsetX=R,c.offsetY=F,await ze(20)}async function T(y,z){if(!z&&c.preview)return;c.preview=!0,y=y??c.level;const{value:_}=u,{scaleW:Q,scaleH:b}=x(y),{left:A,top:C}=w(Q,b);y===1&&(_.maxHeight="100%"),_.width=`${Q}px`,_.height=`${b}px`,_.transitionDuration="0s",_.transform=ge(A,C,1),u.value=_,await e.nextTick();const Y=a.value;if(!Y)return;const{offsetX:U,offsetY:k}=c;U<0&&(Y.scrollLeft=Math.abs(U)),k<0&&(Y.scrollTop=Math.abs(k))}async function E(y,z,_){if(n.value||(y=K(y),y=Ae(y,o.value-o.value*.5,l.value+l.value*.5),y==c.level))return;c.preview&&await h(),z||(z={x:g.startX.value,y:g.startY.value});const{value:Q}=u,{width:b,height:A}=i.value,{scaleW:C,scaleH:Y}=x(y),{top:U,left:k}=w(C,Y),R=y/c.level,F={left:Math.abs(b*y-f.value.width)*-1,top:Math.abs(A*y-f.value.height)*-1,right:k,bottom:U};let H=k!=0?k:(c.offsetX-z.x)*R+z.x,Z=U!=0?U:(c.offsetY-z.y)*R+z.y;H=K(Ae(H,F.left,F.right)),Z=K(Ae(Z,F.top,F.bottom)),Q.width=`${b}px`,Q.height=`${A}px`,Q.transitionDuration=_?Ht(y):"0s",Q.transform=ge(H,Z,y),c.offsetX=H,c.offsetY=Z,c.level=y,u.value=Q,await e.nextTick(),_&&d.startTransition(),t.onScale?.(y)}function v(){const y=c.level>1?1:S();E(y,void 0,!0)}function p(y,z){if(!c.preview)return;const _=a.value;!_||_.scrollTo({left:c.offsetX-y,top:c.offsetY-z})}async function D(){c.level>=o.value&&c.level<=l.value?c.zooming&&await T():c.level<o.value?await E(o.value,void 0,!0):c.level>l.value&&await E(l.value,c.lastCenter,!0),c.zooming=!1}function S(){const{width:y,height:z}=i.value,{width:_,height:Q}=f.value,b=2.5;let A;return z==Q?(A=_/y,A-1<.1&&(A=b)):A=Math.max(b,_/y,Q/z),A}function x(y){const{width:z,height:_}=i.value;return{scaleW:K(y*z),scaleH:K(y*_)}}function w(y,z){const{width:_,height:Q}=f.value,b=Math.max(0,(Q-z)*.5),A=Math.max(0,(_-y)*.5);return{top:b,left:A}}async function N(y,z){if(y=y??s.value,z=z??a.value,!z)return;let _,{clientWidth:Q=0,clientHeight:b=0}=y||{};const{clientWidth:A,clientHeight:C}=z;if(y instanceof HTMLImageElement?_={width:y.naturalWidth,height:y.naturalHeight}:y instanceof HTMLVideoElement&&(_={width:y.videoWidth,height:y.videoHeight}),_){const Y=$t(_.width,_.height,A,C);Q=Y.width,b=Y.height}(Q===0||b===0)&&(Q=i.value.width||A,b=i.value.height||C),i.value={width:Math.min(Q,A),height:Math.min(b,C)},f.value={width:A,height:C},T(void 0,!0)}function I(){const y=S();l.value=Math.max(l.value,y*2)}function B(y){n.value=y}return{touch:g,state:c,style:u,gesture:m,transition:d,imageRef:s,containerRef:a,switchToZoom:h,switchToPreview:T,panTo:p,zoomTo:E,zoomFinished:D,toggleZoom:v,setDisableZoom:B}}function Pe(t,n){const{state:o,touch:l,transition:s,containerRef:a}=t,i=ut(a);let f,c;function u(m){f=m}function g(m){return f==m}function d(m,M,r,h){i.measure();const{top:T,left:E,right:v,bottom:p}=i.arrivedState;if(m=="start")c=T||E||v||p;else if(f==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const D=l.startY.value<r;c=T&&D||p&&!D}else if(l.direction.value=="horizontal"){const D=l.startX.value<M;c=E&&D||v&&!D}}c&&s.transitioning.value&&(c=!1,h?.preventDefault()),m=="end"&&!c&&(M=l.startX.value,r=l.startY.value,c=!0),(m!="move"||c)&&n?.(m,l.direction.value,M,r,h)}return{onSwipeEdge:d,setFingerNum:u,isEqualFingerNum:g}}function Vt(t){const n=Re({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const c={top:0,left:0},u=ne(T,150),{onSwipeEdge:g}=Pe(n,t.onSwipeEdge),d=e.ref({top:0,left:0});le("keyup",v),le("keydown",E);function m(p){const D=n.containerRef.value;if(!D)return;const{left:S,top:x}=D.getBoundingClientRect();d.value.left=S,d.value.top=x,s.startTap();let w=p.clientX-S,N=p.clientY-x;l.start(w,N),g("start",w,N,p),a.transitioning.value||(i=!0,c.left=S,c.top=x,o.offsetX=D.scrollLeft,o.offsetY=D.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",r)}function M(p){if(!i)return;let D=p.clientX,S=p.clientY;l.move(D,S),g("move",D-d.value.left,S-d.value.top,p),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(p){g("end",l.offsetX.value,l.offsetY.value,p),s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",r)}function h(p){if(!p.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",T)),p.preventDefault();let D=-p.deltaY;p.deltaMode===1?D*=.05:D*=p.deltaMode?1:.002,f!="Control"&&(D*=10),D=2**D;const S=o.level*D;o.lastCenter={x:p.clientX-d.value.left,y:p.clientY-d.value.top},n.zoomTo(S,o.lastCenter),f!="Control"&&u()}function T(){n.zoomFinished(),window.removeEventListener("keyup",T)}function E(p){f=p.key}function v(){f=null}return{core:n,onPointerDown:m,onWheel:h}}function Wt(t){const n=Re({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s}=n,{setFingerNum:a,onSwipeEdge:i,isEqualFingerNum:f}=Pe(n,t.onSwipeEdge);let c,u;async function g(M){const{touches:r}=M;a(r.length),o.zooming=f(2),s.startTap();const{clientX:h,clientY:T}=r[0];l.start(h,T),i("start",h,T,M),o.zooming&&(M.preventDefault(),c=o.level,u=Ue(r),await n.switchToZoom(),o.lastCenter=Ft(r))}async function d(M){const{touches:r}=M;a(r.length);const{clientX:h,clientY:T}=r[0];if(l.move(h,T),i("move",h,T,M),o.zooming&&f(2)){M.preventDefault();const E=Ue(r),v=c*E/u;n.zoomTo(v,o.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:r,clientY:h}=M.changedTouches[0];i("end",r,h,M),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:g,onTouchMove:d,onTouchEnd:m}}function Xt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}function $e(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function He(t){let n=!1;return()=>{n||(t(),n=!0)}}function Kt(t){let n=null;const{isActivated:o}=$e(),l=He(()=>n=window.onBackPress);function s(){l(),window.onBackPress=()=>t()}function a(){window.onBackPress=n}return e.onActivated(()=>{!o.value||s()}),e.onBeforeMount(()=>{s()}),e.onBeforeUnmount(()=>{a()}),e.onDeactivated(()=>{a()}),{register:s,unregister:a}}const Zt=["onClick"],Gt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Zt))}}),Jn="",qt=W(Gt,[["__scopeId","data-v-25d39b90"]]),Fe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Jt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(qt),{...Fe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Fe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const en=["xlink:href","fill","color"],te=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,en)],4))}});function tn(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),c=ne(B,100);let u,g="";const d=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),h=e.ref({clientHeight:0}),T=e.computed(()=>!!m.value),E=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),v=e.computed(()=>l?r.value.clientHeight-S.value:r.value.clientHeight-h.value.clientHeight),p=e.computed(()=>r.value.scrollHeight-r.value.clientHeight),D=e.computed(()=>!r.value.clientHeight&&!r.value.scrollHeight?1:Math.max(r.value.clientHeight/r.value.scrollHeight,.05)),S=e.computed(()=>D.value>a?0:D.value*r.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${S.value}px`:void 0}));Te(n,()=>C());function w(k){I(),m.value=k.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function N(){n.value.style.scrollBehavior=g,m.value=0,c()}function I(){f.value=!1}function B(){T.value||(f.value=!0)}function y(k){if(!T.value)return;let R=k.clientY-r.value.top-m.value;R<0?M.value=0:R>=v.value?M.value=v.value:M.value=R,n.value.scrollTo({top:M.value/v.value*p.value})}function z(){T.value||_()}function _(){cancelAnimationFrame(u),u=requestAnimationFrame(Q)}function Q(){n.value&&(d.value=s.scrollTop?.value??n.value.scrollTop,M.value=d.value/p.value*v.value)}function b(k){let R="addEventListener";k==="add"?R="addEventListener":R="removeEventListener",o.value?.[R]("pointerdown",w,{passive:!0}),window[R]("pointermove",y,{passive:!0}),window[R]("pointerup",N,{passive:!0})}const A=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&C()});function C(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:k=0,clientHeight:R=0}=n.value||{},{scrollHeight:F,clientHeight:H}=r.value;k!=F&&(r.value.scrollHeight=k,Q()),R!=H&&(r.value.clientHeight=R,Q());const{clientHeight:Z=0}=o.value||{};Z!=h.value.clientHeight&&(h.value.clientHeight=Z)}function Y(){I(),setTimeout(()=>{h.value.clientHeight=o.value?.clientHeight??0,B()},150)}function U(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",z,{passive:!0}),b("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,k),setTimeout(()=>{C()},100),Y()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{I(),c()}),{isScrollEnd:f,isDragSlider:T,offsetTop:M,scrollTop:d,scrollable:E,sliderPos:x,sliderRollableHeight:v,init:U,modifySliderEventListener:b,heightRatio:D}}const nn=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),on=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=tn({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:c,sliderPos:u,heightRatio:g}=i,d=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<g.value?!1:d.value||!c.value):e.computed(()=>o.maxHeightRatio<g.value?!1:f.value),{load:M}=Ne(`.hide-scrollbar {
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
17
|
}
|
|
18
18
|
.hide-scrollbar::-webkit-scrollbar {
|
|
19
19
|
display: none;
|
|
20
|
-
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{M(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function r(){d.value=!0}function h(){d.value=!1}return n({uScrollBarReturn:i}),(T,E)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:r,onMouseleave:h,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(T.$slots,"default",{},()=>[nn],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),to="",ln=W(on,[["__scopeId","data-v-7fd39e51"]]),sn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),an={class:"pull-refresh"},rn={key:0,class:"pull-arrow-circle"},cn={key:0,class:"box-load"},un={class:"left-load"},dn={class:"right-load"},fn=sn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Mn={class:"pull-arrow"},gn={key:1},mn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),c=e.ref(!1),u=e.ref(0),g=e.ref(0),d=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref(),h=e.computed(()=>n.scrollTop),T=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),E=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(M,w=>{w===0&&(s.value=-50,f.value=.3)}),e.watch(g,w=>{if(M.value===2)return;const N=Math.pow(w,o);N===0&&(s.value=-50),N<=50&&N>0&&(s.value=N-45,i.value=Math.pow(N,1.5),N>15?c.value=!0:c.value=!1),N>50&&(s.value=5,f.value=1,M.value)});const v=e.ref(0),p=w=>{v.value=w.touches[0].pageY},D=w=>{const N=w.touches[0].pageY-v.value;v.value=w.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&h.value===0&&(u.value===0&&(u.value=w.touches[0].pageY),d.value=0,x.value.style.transition=`${d.value}ms`,m.value=0,g.value=w.touches[0].pageY-u.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,N>0&&w.preventDefault()))},S=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;u.value=0,d.value=300;const w=Math.pow(g.value,o);x.value.style.transition=`${d.value}ms`,w>50?(M.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{r.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{r.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",p),x.value?.addEventListener("touchmove",D),x.value?.addEventListener("touchend",S))}),(w,N)=>(e.openBlock(),e.createElementBlock("div",an,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(T))},[r.value?(e.openBlock(),e.createElementBlock("div",gn,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",rn,[M.value==2?(e.openBlock(),e.createElementBlock("div",cn,[e.createElementVNode("div",un,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",dn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),fn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",Mn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),no="",Ve=W(mn,[["__scopeId","data-v-df5da876"]]),hn=["data-key"],pn={inheritAttrs:!1},yn=e.defineComponent({...pn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:c,getItemHeightData:u,scrollTop:g}=s;n({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();function m(M,r){return l.getItemKey?l.getItemKey(M,r):`${r}`}return(M,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:r[0]||(r[0]=(...h)=>e.unref(i).onScroll&&e.unref(i).onScroll(...h)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:h,index:T})=>(e.openBlock(),e.createElementBlock("div",{key:m(h,T),"data-key":m(h,T),style:e.normalizeStyle({height:`${e.unref(u)(T).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:h,index:T},void 0,!0)],12,hn))),128))],16)],16)],16)])],64))}}),oo="",Dn=W(yn,[["__scopeId","data-v-dfe60586"]]),Le=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Tn={style:{position:"absolute"}},Nn=Le(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),wn=["width","height"],En=[Le(()=>e.createElementVNode("title",null,"logo",-1)),Le(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],vn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Tn,[Nn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},En,8,wn))]))}}),ao="",In=W(vn,[["__scopeId","data-v-33519afd"]]),zn=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?!0:!zn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const An=["title"],Ln={class:"tip"},Cn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],jn=["src"],Sn=["src"],xn=["title"],_n={inheritAttrs:!1},bn=e.defineComponent({..._n,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:c,mime:u}=e.toRefs(o),{imgSrc:g,isSupport:d,hasError:m,handleError:M}=We(c,u),{vImageCancel:r}=Xe(),{LoadingComp:h}=Ie({component:ke,delay:300}),T=qe(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function E(){i.value=!0}function v(){i.value&&(f.value=!0)}async function p(){E(),T.value?(l.value?.addEventListener("animationend",D),l.value?.classList.add("showing"),await ze(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function D(){l.value?.removeEventListener("animationend",D),l.value?.classList.remove("showing"),l.value&&n("load",l.value),v()}async function S(N){N?p():s.value&&n("load",s.value),a.value=!0}function x(N){N?(M(),n("loadError")):E(),a.value=!0}function w(){n("noSupport")}return(N,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(d)&&!a.value?(e.openBlock(),e.createBlock(e.unref(h),{key:0})):e.createCommentVNode("",!0),e.unref(d)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},N.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,xn)):e.renderSlot(N.$slots,"default",{key:2,src:e.unref(g),onLoad:S,onError:x,vImageCancel:e.unref(r)},()=>[e.unref(T)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},N.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:I[0]||(I[0]=Y=>S()),onError:I[1]||(I[1]=Y=>x()),src:t.thumbnail}),null,16,jn)),[[e.unref(r)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},N.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:I[2]||(I[2]=Y=>S(!0)),onError:I[3]||(I[3]=Y=>x(!0)),src:e.unref(g)}),null,16,Sn)),[[e.unref(r)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},N.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",Ln,Cn)),[[e.unref(he),w]])],16,An))],64))}}),ro="",On=W(bn,[["__scopeId","data-v-bfec1a6b"]]),kn=["title"],Bn=["src"],Qn=["title"],Yn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:s,mime:a}=e.toRefs(o),{imgSrc:i,hasError:f,isSupport:c,handleError:u}=We(s,a),{vImageCancel:g}=Xe();function d(){n("noSupport")}return(m,M)=>e.unref(c)?e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Qn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:M[0]||(M[0]=r=>l.value=!0),onError:M[1]||(M[1]=(...r)=>e.unref(u)&&e.unref(u)(...r)),src:e.unref(i)},null,40,Bn)),[[e.unref(g)],[e.vShow,l.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(he),d]])],8,kn))}}),co="",Un=W(Yn,[["__scopeId","data-v-2f606efa"]]);L.DefaultLoading=ke,L.Image=On,L.Loading=In,L.LoadingToast=Be,L.PageLoading=Lt,L.PullRefresh=Ve,L.ScrollBar=ln,L.SvgIcon=te,L.Thumbnail=Un,L.ToastCreator=Jt,L.VirtualList=Dn,L.allSelectedKey=re,L.closeDialogKey=Oe,L.dialogController=Tt,L.getTransform=ge,L.isAllSelectedKey=fe,L.isSelectedKey=ie,L.itemKeyKey=we,L.once=He,L.selectAllKey=ue,L.selectKey=ce,L.selectedCountKey=Me,L.toggleAllKey=se,L.toggleKey=ae,L.unselectAllKey=J,L.unselectKey=de,L.useBackPress=Kt,L.useDelayAsync=Bt,L.useDelayLoad=Nt,L.useDelayLoadComp=Ie,L.useDownDrag=Xt,L.useDragSelect=ve,L.useDragSelectByMobile=pt,L.useDragSelectByPc=ht,L.useRouterActivated=$e,L.useScaleImageByMobile=Wt,L.useScaleImageByPc=Vt,L.useSelectable=gt,L.useSelectableByBase=mt,L.useSelectableInjectors=Mt,L.useVirtualList=be,L.vDebounceClick=Ge,L.vEnter=he,L.vSingleClick=je,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{M(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function r(){d.value=!0}function h(){d.value=!1}return n({uScrollBarReturn:i}),(T,E)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:r,onMouseleave:h,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(T.$slots,"default",{},()=>[nn],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),to="",ln=W(on,[["__scopeId","data-v-7fd39e51"]]),sn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),an={class:"pull-refresh"},rn={key:0,class:"pull-arrow-circle"},cn={key:0,class:"box-load"},un={class:"left-load"},dn={class:"right-load"},fn=sn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Mn={class:"pull-arrow"},gn={key:1},mn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),c=e.ref(!1),u=e.ref(0),g=e.ref(0),d=e.ref(0),m=e.ref(0),M=e.ref(0),r=e.ref(),h=e.computed(()=>n.scrollTop),T=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),E=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(M,w=>{w===0&&(s.value=-50,f.value=.3)}),e.watch(g,w=>{if(M.value===2)return;const N=Math.pow(w,o);N===0&&(s.value=-50),N<=50&&N>0&&(s.value=N-45,i.value=Math.pow(N,1.5),N>15?c.value=!0:c.value=!1),N>50&&(s.value=5,f.value=1,M.value)});const v=e.ref(0),p=w=>{v.value=w.touches[0].pageY},D=w=>{const N=w.touches[0].pageY-v.value;v.value=w.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&h.value===0&&(u.value===0&&(u.value=w.touches[0].pageY),d.value=0,x.value.style.transition=`${d.value}ms`,m.value=0,g.value=w.touches[0].pageY-u.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,N>0&&w.preventDefault()))},S=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;u.value=0,d.value=300;const w=Math.pow(g.value,o);x.value.style.transition=`${d.value}ms`,w>50?(M.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{r.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{r.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",p),x.value?.addEventListener("touchmove",D),x.value?.addEventListener("touchend",S))}),(w,N)=>(e.openBlock(),e.createElementBlock("div",an,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(T))},[r.value?(e.openBlock(),e.createElementBlock("div",gn,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",rn,[M.value==2?(e.openBlock(),e.createElementBlock("div",cn,[e.createElementVNode("div",un,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",dn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),fn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(E))},[e.createElementVNode("div",Mn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),no="",Ve=W(mn,[["__scopeId","data-v-df5da876"]]),hn=["data-key"],pn={inheritAttrs:!1},yn=e.defineComponent({...pn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:c,getItemHeightData:u,scrollTop:g}=s;n({vListReturn:s});const d="virtualListWrapper"+new Date().getTime();function m(M,r){return l.getItemKey?l.getItemKey(M,r):`${r}`}return(M,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:r[0]||(r[0]=(...h)=>e.unref(i).onScroll&&e.unref(i).onScroll(...h)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:h,index:T})=>(e.openBlock(),e.createElementBlock("div",{key:m(h,T),"data-key":m(h,T),style:e.normalizeStyle({height:`${e.unref(u)(T).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:h,index:T},void 0,!0)],12,hn))),128))],16)],16)],16)])],64))}}),oo="",Dn=W(yn,[["__scopeId","data-v-dfe60586"]]),Le=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Tn={style:{position:"absolute"}},Nn=Le(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),wn=["width","height"],En=[Le(()=>e.createElementVNode("title",null,"logo",-1)),Le(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],vn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Tn,[Nn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},En,8,wn))]))}}),ao="",In=W(vn,[["__scopeId","data-v-33519afd"]]),zn=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?!0:!zn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const An=["title"],Ln={class:"tip"},Cn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],jn=["src"],Sn=["src"],xn=["title"],_n={inheritAttrs:!1},bn=e.defineComponent({..._n,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:c,mime:u}=e.toRefs(o),{imgSrc:g,isSupport:d,hasError:m,handleError:M}=We(c,u),{vImageCancel:r}=Xe(),{LoadingComp:h}=Ie({component:ke,delay:300}),T=qe(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function E(){i.value=!0}function v(){i.value&&(f.value=!0)}async function p(){E(),T.value?(l.value?.addEventListener("animationend",D),l.value?.classList.add("showing"),await ze(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function D(){l.value?.removeEventListener("animationend",D),l.value?.classList.remove("showing"),l.value&&n("load",l.value),v()}async function S(N){N?p():s.value&&n("load",s.value),a.value=!0}function x(N){N?(M(),n("loadError")):E(),a.value=!0}function w(){n("noSupport")}return(N,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(d)&&!a.value?(e.openBlock(),e.createBlock(e.unref(h),{key:0})):e.createCommentVNode("",!0),e.unref(d)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},N.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,xn)):e.renderSlot(N.$slots,"default",{key:2,src:e.unref(g),onLoad:S,onError:x,vImageCancel:e.unref(r)},()=>[e.unref(T)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},N.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:I[0]||(I[0]=B=>S()),onError:I[1]||(I[1]=B=>x()),src:t.thumbnail}),null,16,jn)),[[e.unref(r)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},N.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:I[2]||(I[2]=B=>S(!0)),onError:I[3]||(I[3]=B=>x(!0)),src:e.unref(g)}),null,16,Sn)),[[e.unref(r)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},N.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(te,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",Ln,Cn)),[[e.unref(he),w]])],16,An))],64))}}),ro="",On=W(bn,[["__scopeId","data-v-bfec1a6b"]]),kn=["title"],Bn=["src"],Qn=["title"],Yn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:s,mime:a}=e.toRefs(o),{imgSrc:i,hasError:f,isSupport:c,handleError:u}=We(s,a),{vImageCancel:g}=Xe();function d(){n("noSupport")}return(m,M)=>e.unref(c)?e.unref(f)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(te,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Qn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:M[0]||(M[0]=r=>l.value=!0),onError:M[1]||(M[1]=(...r)=>e.unref(u)&&e.unref(u)(...r)),src:e.unref(i)},null,40,Bn)),[[e.unref(g)],[e.vShow,l.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(te,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(he),d]])],8,kn))}}),co="",Un=W(Yn,[["__scopeId","data-v-2f606efa"]]);L.DefaultLoading=ke,L.Image=On,L.Loading=In,L.LoadingToast=Be,L.PageLoading=Lt,L.PullRefresh=Ve,L.ScrollBar=ln,L.SvgIcon=te,L.Thumbnail=Un,L.ToastCreator=Jt,L.VirtualList=Dn,L.allSelectedKey=re,L.closeDialogKey=Oe,L.dialogController=Tt,L.getTransform=ge,L.isAllSelectedKey=fe,L.isSelectedKey=ie,L.itemKeyKey=we,L.once=He,L.selectAllKey=ue,L.selectKey=ce,L.selectedCountKey=Me,L.toggleAllKey=se,L.toggleKey=ae,L.unselectAllKey=J,L.unselectKey=de,L.useBackPress=Kt,L.useDelayAsync=Bt,L.useDelayLoad=Nt,L.useDelayLoadComp=Ie,L.useDownDrag=Xt,L.useDragSelect=ve,L.useDragSelectByMobile=pt,L.useDragSelectByPc=ht,L.useRouterActivated=$e,L.useScaleImageByMobile=Wt,L.useScaleImageByPc=Vt,L.useSelectable=gt,L.useSelectableByBase=mt,L.useSelectableInjectors=Mt,L.useVirtualList=be,L.vDebounceClick=Ge,L.vEnter=he,L.vSingleClick=je,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -41,6 +41,7 @@ declare const _default: {
|
|
|
41
41
|
scrollTop: Ref<number>;
|
|
42
42
|
scrollable: import("vue").ComputedRef<boolean>;
|
|
43
43
|
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
44
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
44
45
|
init: () => void;
|
|
45
46
|
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
46
47
|
heightRatio: import("vue").ComputedRef<number>;
|
|
@@ -77,6 +78,7 @@ declare const _default: {
|
|
|
77
78
|
scrollTop: Ref<number>;
|
|
78
79
|
scrollable: import("vue").ComputedRef<boolean>;
|
|
79
80
|
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
81
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
80
82
|
init: () => void;
|
|
81
83
|
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
82
84
|
heightRatio: import("vue").ComputedRef<number>;
|
|
@@ -95,6 +97,7 @@ declare const _default: {
|
|
|
95
97
|
scrollTop: Ref<number>;
|
|
96
98
|
scrollable: import("vue").ComputedRef<boolean>;
|
|
97
99
|
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
100
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
98
101
|
init: () => void;
|
|
99
102
|
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
100
103
|
heightRatio: import("vue").ComputedRef<number>;
|
|
@@ -7,6 +7,7 @@ export declare function useScrollBar(options: ScrollBarOptions): {
|
|
|
7
7
|
scrollTop: import("vue").Ref<number>;
|
|
8
8
|
scrollable: import("vue").ComputedRef<boolean>;
|
|
9
9
|
sliderPos: import("vue").ComputedRef<CSSProperties>;
|
|
10
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
10
11
|
init: () => void;
|
|
11
12
|
modifySliderEventListener: (action: "add" | "remove") => void;
|
|
12
13
|
heightRatio: import("vue").ComputedRef<number>;
|