@lazycatcloud/lzc-toolkit 0.0.82 → 0.0.83
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 +43 -43
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as h, watch as K, customRef as st, getCurrentScope as at, onScopeDispose as rt, getCurrentInstance as Be, onMounted as le, nextTick as _e, unref as R, onUpdated as ut, readonly as it, shallowRef as ct, computed as b, onUnmounted as Ie, inject as j, provide as
|
|
1
|
+
import { ref as h, watch as K, customRef as st, getCurrentScope as at, onScopeDispose as rt, getCurrentInstance as Be, onMounted as le, nextTick as _e, unref as R, onUpdated as ut, readonly as it, shallowRef as ct, computed as b, onUnmounted as Ie, inject as j, provide as W, defineComponent as N, h as Q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, withDirectives as Ae, createElementBlock as A, createElementVNode as L, withModifiers as Fe, normalizeClass as ke, renderSlot as ye, createCommentVNode as dt, useCssVars as ze, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as Y, toDisplayString as We, useSlots as vt, vShow as ft, toRef as ht, Fragment as Ce, createVNode as pt, mergeProps as mt, renderList as gt } from "vue";
|
|
2
2
|
const _t = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
@@ -221,7 +221,7 @@ Ht({
|
|
|
221
221
|
linear: bt
|
|
222
222
|
}, At);
|
|
223
223
|
function Ft(e, t) {
|
|
224
|
-
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = Rt(a), i = h(!0), f = Ve(
|
|
224
|
+
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, a = h(null), s = Rt(a), i = h(!0), f = Ve(k, 100);
|
|
225
225
|
let v;
|
|
226
226
|
const c = ct(e), d = h(0), u = h({ start: 0, end: 10 });
|
|
227
227
|
let r = 0;
|
|
@@ -245,7 +245,7 @@ function Ft(e, t) {
|
|
|
245
245
|
function P() {
|
|
246
246
|
i.value = !1;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function k() {
|
|
249
249
|
i.value = !0, n?.();
|
|
250
250
|
}
|
|
251
251
|
function U() {
|
|
@@ -270,7 +270,7 @@ function Ft(e, t) {
|
|
|
270
270
|
return Math.max(0, H);
|
|
271
271
|
}
|
|
272
272
|
function O() {
|
|
273
|
-
let g = 0, y = 0, F =
|
|
273
|
+
let g = 0, y = 0, F = z();
|
|
274
274
|
for (let H = F; H < S.value.length && (g++, y += S.value[H].height, !(y >= s.height.value)); H++)
|
|
275
275
|
;
|
|
276
276
|
return g;
|
|
@@ -284,7 +284,7 @@ function Ft(e, t) {
|
|
|
284
284
|
function G(g) {
|
|
285
285
|
return S.value[g] || { sum: 0, height: 0 };
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function z() {
|
|
288
288
|
let g = u.value.start;
|
|
289
289
|
return g >= l && (g += l), g;
|
|
290
290
|
}
|
|
@@ -381,7 +381,7 @@ function Ln(e, t) {
|
|
|
381
381
|
function d() {
|
|
382
382
|
l.value ? s() : a();
|
|
383
383
|
}
|
|
384
|
-
return
|
|
384
|
+
return W(qe, d), W(Qe, c), W(Xe, v), W(Ge, o), W(Ze, i), W(Je, a), W(et, f), W(tt, l), W(nt, s), {
|
|
385
385
|
selected: o,
|
|
386
386
|
select: i,
|
|
387
387
|
selectAll: a,
|
|
@@ -425,20 +425,20 @@ function ot({
|
|
|
425
425
|
top: Math.min(r.value.y, p.value.y) - C.value.top,
|
|
426
426
|
width: Math.abs(r.value.x - p.value.x),
|
|
427
427
|
height: Math.abs(r.value.y - p.value.y)
|
|
428
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed:
|
|
428
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: k = 30, maxSpeed: U = 30 } = n;
|
|
429
429
|
let D;
|
|
430
|
-
const x = P, O =
|
|
431
|
-
let
|
|
430
|
+
const x = P, O = k, X = U, G = (m) => m ** 1;
|
|
431
|
+
let z = 0;
|
|
432
432
|
function ee(m) {
|
|
433
|
-
if (cancelAnimationFrame(D),
|
|
434
|
-
Math.min(
|
|
433
|
+
if (cancelAnimationFrame(D), z = se(m), z = Math.max(
|
|
434
|
+
Math.min(z, X),
|
|
435
435
|
-X
|
|
436
|
-
),
|
|
436
|
+
), z !== 0) {
|
|
437
437
|
const _ = d.value;
|
|
438
438
|
if (!_ || !u.value)
|
|
439
439
|
return;
|
|
440
440
|
const I = w.value.height - C.value.height;
|
|
441
|
-
let T = w.value.top + Number(
|
|
441
|
+
let T = w.value.top + Number(z);
|
|
442
442
|
T = Math.min(Math.max(0, T), I), _.scrollTop = T, te(), D = requestAnimationFrame(() => ee(m));
|
|
443
443
|
}
|
|
444
444
|
}
|
|
@@ -489,7 +489,7 @@ function ot({
|
|
|
489
489
|
u.value = !1, d.value?.classList.remove("disable-scroll-behavior");
|
|
490
490
|
}
|
|
491
491
|
function B() {
|
|
492
|
-
!u.value || (
|
|
492
|
+
!u.value || (z || te(), f.value());
|
|
493
493
|
}
|
|
494
494
|
function $() {
|
|
495
495
|
if (!u.value)
|
|
@@ -555,7 +555,7 @@ function Tn(e) {
|
|
|
555
555
|
background-color: rgb(191 219 254);
|
|
556
556
|
opacity: 0.5;
|
|
557
557
|
}`
|
|
558
|
-
), u =
|
|
558
|
+
), u = N({
|
|
559
559
|
render() {
|
|
560
560
|
return Q("div", {
|
|
561
561
|
id: "selectBoxEl",
|
|
@@ -571,7 +571,7 @@ function Tn(e) {
|
|
|
571
571
|
s(E.x, E.y);
|
|
572
572
|
}
|
|
573
573
|
function S(E) {
|
|
574
|
-
E.composedPath().some((
|
|
574
|
+
E.composedPath().some((k) => k?.getAttribute?.(e.attribute)) || f(), i();
|
|
575
575
|
}
|
|
576
576
|
function C(E) {
|
|
577
577
|
try {
|
|
@@ -635,7 +635,7 @@ function On(e, t, n = 600) {
|
|
|
635
635
|
const kt = Symbol(), zt = {
|
|
636
636
|
key: 0,
|
|
637
637
|
class: "lzc-modal"
|
|
638
|
-
}, Wt = /* @__PURE__ */
|
|
638
|
+
}, Wt = /* @__PURE__ */ N({
|
|
639
639
|
__name: "Dialog",
|
|
640
640
|
props: {
|
|
641
641
|
visiable: { type: Boolean, default: !1 },
|
|
@@ -647,7 +647,7 @@ const kt = Symbol(), zt = {
|
|
|
647
647
|
const n = e, o = () => {
|
|
648
648
|
n.closeOnClickOverlay && t("update:visiable", !1);
|
|
649
649
|
};
|
|
650
|
-
return
|
|
650
|
+
return W(kt, () => t("update:visiable", !1)), (l, a) => (M(), Me(Pe, { name: "modal" }, {
|
|
651
651
|
default: He(() => [
|
|
652
652
|
e.visiable ? Ae((M(), A("div", zt, [
|
|
653
653
|
L("div", {
|
|
@@ -714,7 +714,7 @@ function Nt({
|
|
|
714
714
|
animation: lzcDelayLoad 0s ${o} forwards;
|
|
715
715
|
}`
|
|
716
716
|
);
|
|
717
|
-
return { LoadingComp:
|
|
717
|
+
return { LoadingComp: N({
|
|
718
718
|
setup() {
|
|
719
719
|
const s = Lt();
|
|
720
720
|
return le(() => {
|
|
@@ -745,7 +745,7 @@ const Vt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), jt = /* @__PURE__ *
|
|
|
745
745
|
/* @__PURE__ */ L("div")
|
|
746
746
|
], -1)), Kt = [
|
|
747
747
|
jt
|
|
748
|
-
], Ut = /* @__PURE__ */
|
|
748
|
+
], Ut = /* @__PURE__ */ N({
|
|
749
749
|
__name: "DefaultLoading",
|
|
750
750
|
props: {
|
|
751
751
|
width: { default: 24 },
|
|
@@ -758,7 +758,7 @@ const Vt = (e) => (ce("data-v-d0ad7597"), e = e(), de(), e), jt = /* @__PURE__ *
|
|
|
758
758
|
})), (t, n) => (M(), A("div", he(pe(t.$attrs)), Kt, 16));
|
|
759
759
|
}
|
|
760
760
|
});
|
|
761
|
-
const Rn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */
|
|
761
|
+
const Rn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ N({
|
|
762
762
|
__name: "Toast",
|
|
763
763
|
props: {
|
|
764
764
|
message: null,
|
|
@@ -801,10 +801,10 @@ const Rn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onC
|
|
|
801
801
|
ref_key: "toastWrapper",
|
|
802
802
|
ref: n,
|
|
803
803
|
class: "toastWrapper",
|
|
804
|
-
style:
|
|
804
|
+
style: Y([R(s), { zIndex: 9999999 }])
|
|
805
805
|
}, [
|
|
806
806
|
L("div", {
|
|
807
|
-
style:
|
|
807
|
+
style: Y(R(i))
|
|
808
808
|
}, [
|
|
809
809
|
L("span", null, We(e.message), 1)
|
|
810
810
|
], 4)
|
|
@@ -843,7 +843,7 @@ class Bn {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */
|
|
846
|
+
const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ N({
|
|
847
847
|
__name: "SvgIcon",
|
|
848
848
|
props: {
|
|
849
849
|
name: null,
|
|
@@ -860,7 +860,7 @@ const Gt = ["xlink:href", "fill", "color"], In = /* @__PURE__ */ Y({
|
|
|
860
860
|
}));
|
|
861
861
|
return (l, a) => (M(), A("svg", {
|
|
862
862
|
"aria-hidden": "",
|
|
863
|
-
style:
|
|
863
|
+
style: Y(R(o))
|
|
864
864
|
}, [
|
|
865
865
|
L("use", {
|
|
866
866
|
"xlink:href": R(n),
|
|
@@ -886,13 +886,13 @@ function Zt(e) {
|
|
|
886
886
|
clientHeight: 0
|
|
887
887
|
}), p = h({
|
|
888
888
|
clientHeight: 0
|
|
889
|
-
}), S = b(() => !!d.value), C = b(() => r.value.scrollHeight > r.value.clientHeight), w = b(() => r.value.clientHeight - p.value.clientHeight), E = b(() => r.value.scrollHeight - r.value.clientHeight), P = b(() => Math.max(
|
|
889
|
+
}), S = b(() => !!d.value), C = b(() => r.value.scrollHeight > r.value.clientHeight), w = b(() => o ? r.value.clientHeight - k.value : r.value.clientHeight - p.value.clientHeight), E = b(() => r.value.scrollHeight - r.value.clientHeight), P = b(() => Math.max(
|
|
890
890
|
r.value.clientHeight / r.value.scrollHeight,
|
|
891
891
|
0.05
|
|
892
|
-
)),
|
|
892
|
+
)), k = b(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = b(() => ({
|
|
893
893
|
willChange: "transform",
|
|
894
894
|
transform: `translate3d(0,${u.value}px,0)`,
|
|
895
|
-
height: o ? `${
|
|
895
|
+
height: o ? `${k.value}px` : void 0
|
|
896
896
|
}));
|
|
897
897
|
function D(B) {
|
|
898
898
|
O(), d.value = B.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
@@ -914,7 +914,7 @@ function Zt(e) {
|
|
|
914
914
|
top: u.value / w.value * E.value
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function z() {
|
|
918
918
|
S.value || ee();
|
|
919
919
|
}
|
|
920
920
|
function ee() {
|
|
@@ -955,7 +955,7 @@ function Zt(e) {
|
|
|
955
955
|
t.value && n.value ? (F(
|
|
956
956
|
".hide-scrollbar",
|
|
957
957
|
"scrollbar-width: none; -ms-overflow-style: none;"
|
|
958
|
-
), F(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll",
|
|
958
|
+
), F(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", z, {
|
|
959
959
|
passive: !0
|
|
960
960
|
}), Z("add"), te.observe(t.value, {
|
|
961
961
|
subtree: !0,
|
|
@@ -978,7 +978,7 @@ function Zt(e) {
|
|
|
978
978
|
modifySliderEventListener: Z
|
|
979
979
|
};
|
|
980
980
|
}
|
|
981
|
-
const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ L("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */
|
|
981
|
+
const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ */ Jt(() => /* @__PURE__ */ L("div", { class: "default-slider" }, null, -1)), tn = /* @__PURE__ */ N({
|
|
982
982
|
__name: "ScrollBar",
|
|
983
983
|
props: {
|
|
984
984
|
containerEl: null,
|
|
@@ -1014,7 +1014,7 @@ const Jt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), en = /* @__PURE__ *
|
|
|
1014
1014
|
class: "slider-wrapper",
|
|
1015
1015
|
onMouseenter: u,
|
|
1016
1016
|
onMouseleave: r,
|
|
1017
|
-
style:
|
|
1017
|
+
style: Y(R(v))
|
|
1018
1018
|
}, [
|
|
1019
1019
|
ye(p.$slots, "default", {}, () => [
|
|
1020
1020
|
en
|
|
@@ -1033,7 +1033,7 @@ const Mn = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
|
|
|
1033
1033
|
}, sn = {
|
|
1034
1034
|
key: 0,
|
|
1035
1035
|
class: "box-load"
|
|
1036
|
-
}, an = { class: "left-load" }, rn = { class: "right-load" }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ L("div", { class: "among-load" }, null, -1)), cn = { class: "pull-arrow" }, dn = { key: 1 }, vn = /* @__PURE__ */
|
|
1036
|
+
}, an = { class: "left-load" }, rn = { class: "right-load" }, un = /* @__PURE__ */ nn(() => /* @__PURE__ */ L("div", { class: "among-load" }, null, -1)), cn = { class: "pull-arrow" }, dn = { key: 1 }, vn = /* @__PURE__ */ N({
|
|
1037
1037
|
__name: "PullRefresh",
|
|
1038
1038
|
props: {
|
|
1039
1039
|
refresh: null,
|
|
@@ -1061,7 +1061,7 @@ const Mn = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
|
|
|
1061
1061
|
});
|
|
1062
1062
|
const E = h(0), P = (x) => {
|
|
1063
1063
|
E.value = x.touches[0].pageY;
|
|
1064
|
-
},
|
|
1064
|
+
}, k = (x) => {
|
|
1065
1065
|
const O = x.touches[0].pageY - E.value;
|
|
1066
1066
|
E.value = x.touches[0].pageY, !t.refreshOff && (!t?.refresh || r.value !== 2 && S.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), d.value = 0, D.value.style.transition = `${d.value}ms`, u.value = 0, c.value = x.touches[0].pageY - v.value, D.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`, O > 0 && x.preventDefault()));
|
|
1067
1067
|
}, U = () => {
|
|
@@ -1087,36 +1087,36 @@ const Mn = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
|
|
|
1087
1087
|
return le(() => {
|
|
1088
1088
|
t?.refreshOff || (D.value = document.querySelector(
|
|
1089
1089
|
t.pullRefreshContainer
|
|
1090
|
-
), D.value?.addEventListener("touchstart", P), D.value?.addEventListener("touchmove",
|
|
1090
|
+
), D.value?.addEventListener("touchstart", P), D.value?.addEventListener("touchmove", k), D.value?.addEventListener("touchend", U));
|
|
1091
1091
|
}), (x, O) => (M(), A("div", on, [
|
|
1092
1092
|
L("div", {
|
|
1093
1093
|
class: "pull-refresh-box",
|
|
1094
|
-
style:
|
|
1094
|
+
style: Y(R(C))
|
|
1095
1095
|
}, [
|
|
1096
1096
|
p.value ? (M(), A("div", dn, We(p.value), 1)) : (M(), A("div", ln, [
|
|
1097
1097
|
r.value == 2 ? (M(), A("div", sn, [
|
|
1098
1098
|
L("div", an, [
|
|
1099
1099
|
L("div", {
|
|
1100
1100
|
class: "left-circle",
|
|
1101
|
-
style:
|
|
1101
|
+
style: Y({ backgroundColor: o })
|
|
1102
1102
|
}, null, 4)
|
|
1103
1103
|
]),
|
|
1104
1104
|
L("div", rn, [
|
|
1105
1105
|
L("div", {
|
|
1106
1106
|
class: "right-circle",
|
|
1107
|
-
style:
|
|
1107
|
+
style: Y({ backgroundColor: o })
|
|
1108
1108
|
}, null, 4)
|
|
1109
1109
|
]),
|
|
1110
1110
|
un
|
|
1111
1111
|
])) : (M(), A("div", {
|
|
1112
1112
|
key: 1,
|
|
1113
1113
|
class: "pull-circle-line",
|
|
1114
|
-
style:
|
|
1114
|
+
style: Y(R(w))
|
|
1115
1115
|
}, [
|
|
1116
1116
|
L("div", cn, [
|
|
1117
1117
|
L("div", {
|
|
1118
1118
|
class: ke(["arrows", { opacity: f.value }]),
|
|
1119
|
-
style:
|
|
1119
|
+
style: Y({ borderBottomColor: o })
|
|
1120
1120
|
}, null, 6)
|
|
1121
1121
|
])
|
|
1122
1122
|
], 4))
|
|
@@ -1127,7 +1127,7 @@ const Mn = /* @__PURE__ */ J(tn, [["__scopeId", "data-v-edec7292"]]), nn = (e) =
|
|
|
1127
1127
|
});
|
|
1128
1128
|
const fn = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
|
|
1129
1129
|
inheritAttrs: !1
|
|
1130
|
-
}, pn = /* @__PURE__ */
|
|
1130
|
+
}, pn = /* @__PURE__ */ N({
|
|
1131
1131
|
...hn,
|
|
1132
1132
|
__name: "VirtualList",
|
|
1133
1133
|
props: {
|
|
@@ -1177,7 +1177,7 @@ const fn = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
|
|
|
1177
1177
|
L("div", he(pe(R(f))), [
|
|
1178
1178
|
(M(!0), A(Ce, null, gt(R(a), ({ index: p, data: S }) => (M(), A("div", {
|
|
1179
1179
|
key: p,
|
|
1180
|
-
style:
|
|
1180
|
+
style: Y({
|
|
1181
1181
|
height: `${R(v)(p).height}px`,
|
|
1182
1182
|
display: "flex"
|
|
1183
1183
|
})
|
|
@@ -1209,7 +1209,7 @@ const Pn = /* @__PURE__ */ J(pn, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1209
1209
|
], -1)), bn = [
|
|
1210
1210
|
yn,
|
|
1211
1211
|
wn
|
|
1212
|
-
], En = /* @__PURE__ */
|
|
1212
|
+
], En = /* @__PURE__ */ N({
|
|
1213
1213
|
__name: "Loading",
|
|
1214
1214
|
props: {
|
|
1215
1215
|
width: { default: "90" },
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const he={created(t,n){let o,l;function r(a){o=a.clientX,l=a.clientY}function s(a){if(o===void 0)return;const u=a.clientX,h=a.clientY,p=Math.abs(u-o),d=Math.abs(h-l);p>5||d>5||n.value&&n.value(a)}t.__mouse_down__=r,t.__mouse_up__=s,t.addEventListener("mousedown",r),t.addEventListener("mouseup",s)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},ke={created(t,n){const{fn:o,ms:l=1500}=n.value;let r=null;function s(a){r||(o(a),r=setTimeout(()=>{r=null},l))}t.addEventListener("click",s)}};var me;const Z=typeof window<"u",ge=t=>typeof t=="function";Z&&((me=window?.navigator)==null?void 0:me.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(t){return typeof t=="function"?t():e.unref(t)}function ve(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function Me(t,n={}){let o,l;return s=>{const a=Q(t),u=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Pe(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(t),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Ae(t){return t}function He(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=ge(n)?n:n.get,h=ge(n)?void 0:n.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function _e(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ve(Me(n,o),t)}function Ee(t,n=200,o=!1,l=!0){return ve(Pe(n,o,l),t)}function we(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Q(t);return(n=o?.$el)!=null?n:o}const Fe=Z?window:void 0,Ve=Z?window.document:void 0;function Ne(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),we(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function ze(){const t=e.getCurrentInstance(),n=He(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var be=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,We=(t,n)=>{var o={};for(var l in t)je.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&be)for(var l of be(t))n.indexOf(l)<0&&Ke.call(t,l)&&(o[l]=t[l]);return o};function Ye(t,n,o={}){const l=o,{window:r=Fe}=l,s=We(l,["window"]);let a;const u=Ne(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return _e(d),{isSupported:u,stop:d}}function Ue(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return Ye(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var Ce;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Ce||(Ce={}));let qe=0;function Te(t,n={}){const o=e.ref(!1),{document:l=Ve,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++qe}`}=n,u=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,n.media&&(f.media=n.media),l.head.appendChild(f),!o.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&we(p),s||_e(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(o)}}var Qe=Object.defineProperty,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Be=(t,n,o)=>n in t?Qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ze=(t,n)=>{for(var o in n||(n={}))Xe.call(n,o)&&Be(t,o,n[o]);if(Le)for(var o of Le(n))Ge.call(n,o)&&Be(t,o,n[o]);return t};Ze({linear:Ae},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function xe(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=Ue(s),u=e.ref(!0),h=ye(P,100);let p;const d=e.shallowRef(t),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((k,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),w=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),S=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function P(){u.value=!0,o?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(x)}function x(){if(s.value){f.value=s.value.scrollTop,i=B();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((k,I)=>({data:k,index:I+v}))}}function T(v){let E=0,k=C.value.length-1,I=-1;for(;E<=k;){const $=Math.floor((E+k)/2);C.value[$].sum>=v?(I=$,k=$-1):E=$+1}return Math.max(0,I)}function B(){let v=0,E=0,k=M();for(let I=k;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.value[v]||{sum:0,height:0}}function M(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const E=z(v);s.value.scrollTop=E.sum-E.height,x()}}const q=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:S,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:w,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},style:W},wrapperProps:q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Je(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:c}}function et(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(c){return!!o.value[c[n]]}function d(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(ne,d),e.provide(oe,p),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:d,toggleAll:f,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>Ee(n==="colum"?F:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),w=e.ref({top:0,height:0,sync(g=!1){w.value.top=f.value?.scrollTop||0,g&&(w.value.height=f.value?.scrollHeight||0)}}),S=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:P=30,maxSpeed:H=30}=o;let x;const T=R,B=P,N=H,z=g=>g**1;let M=0;function K(g){if(cancelAnimationFrame(x),M=q(g),M=Math.max(Math.min(M,N),-N),M!==0){const _=f.value;if(!_||!c.value)return;const O=w.value.height-b.value.height;let L=w.value.top+Number(M);L=Math.min(Math.max(0,L),O),_.scrollTop=L,W(),x=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const O=b.value,L=O.bottom-g;if(L<T)return B*z(1-L/T);const A=g-O.top;if(A<T)return-B*z(1-A/T)}return 0}function j(g){const _={...S.value,right:0,bottom:0};return _.left+=b.value.left,_.top+=b.value.top-w.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<g.right&&_.right>g.left&&_.top<g.bottom&&_.bottom>g.top}function W(){w.value.sync();const{top:g,height:_}=w.value;m.value.y=Math.min(_+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,_,O="dynamic-styles"){let L=document.getElementById(O);L||(L=document.createElement("style"),L.id=O,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Vt=`${g} { ${_} }`;for(let pe=0;pe<U;pe++){const Ie=A[pe];if(Ie.selectorText===g&&Ie.style.cssText===_)return}L.sheet.insertRule(Vt,U)}function E(g,_){d.value=!0,c.value=!0,w.value.height?w.value.sync():w.value.sync(!0),i.value.x=g,i.value.y=_+w.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function k(g,_,O){!c.value||(d.value&&n==="colum"&&!D()&&(a(),d.value=!1),O?.(),K(_),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(_+w.value.top,w.value.height+b.value.top),m.value.scrollTop=w.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function $(){!c.value||(M||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:_}=S.value;return!(Math.max(g,_)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${t}]`).forEach(g=>{u[`${t}`]=g.getAttribute(`${t}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function X(){const g=[];let _=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);g.push(U),j(L.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=U,p.has(U)&&s([u]))});for(let L=_;L<O+1;L++)u[`${t}`]=g[L],r([u]),p.add(g[L])}function G(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:E,dragMove:k,dragEnd:I,onScroll:$,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:S,isPressing:c,containerEl:f,observer:C}}function tt(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d,unload:f}=Te(`.drag-select-box {
|
|
1
|
+
(function(y,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(y=typeof globalThis<"u"?globalThis:y||self,e(y.ui={},y.Vue))})(this,function(y,e){"use strict";const he={created(t,n){let o,l;function r(a){o=a.clientX,l=a.clientY}function s(a){if(o===void 0)return;const u=a.clientX,h=a.clientY,p=Math.abs(u-o),d=Math.abs(h-l);p>5||d>5||n.value&&n.value(a)}t.__mouse_down__=r,t.__mouse_up__=s,t.addEventListener("mousedown",r),t.addEventListener("mouseup",s)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},ke={created(t,n){const{fn:o,ms:l=1500}=n.value;let r=null;function s(a){r||(o(a),r=setTimeout(()=>{r=null},l))}t.addEventListener("click",s)}};var me;const Z=typeof window<"u",ge=t=>typeof t=="function";Z&&((me=window?.navigator)==null?void 0:me.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Q(t){return typeof t=="function"?t():e.unref(t)}function ve(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function Me(t,n={}){let o,l;return s=>{const a=Q(t),u=Q(n.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),s();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,s()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,s()},a)}}function Pe(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const p=Q(t),d=Date.now()-l;if(a(),p<=0)return l=Date.now(),h();d>p&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},p)),!o&&!r&&(r=setTimeout(()=>s=!0,p)),s=!1}}function Ae(t){return t}function He(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=ge(n)?n:n.get,h=ge(n)?void 0:n.set,p=e.customRef((d,f)=>(l=d,r=f,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(p)&&(p.trigger=a),p}function _e(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ve(Me(n,o),t)}function Ee(t,n=200,o=!1,l=!0){return ve(Pe(n,o,l),t)}function we(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Q(t);return(n=o?.$el)!=null?n:o}const Fe=Z?window:void 0,Ve=Z?window.document:void 0;function Ne(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),we(l,n),o}const J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ee="__vueuse_ssr_handlers__";J[ee]=J[ee]||{},J[ee];function ze(){const t=e.getCurrentInstance(),n=He(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var be=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,We=(t,n)=>{var o={};for(var l in t)je.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&be)for(var l of be(t))n.indexOf(l)<0&&Ke.call(t,l)&&(o[l]=t[l]);return o};function Ye(t,n,o={}){const l=o,{window:r=Fe}=l,s=We(l,["window"]);let a;const u=Ne(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},p=e.watch(()=>Se(t),f=>{h(),u.value&&r&&f&&(a=new ResizeObserver(n),a.observe(f,s))},{immediate:!0,flush:"post"}),d=()=>{h(),p()};return _e(d),{isSupported:u,stop:d}}function Ue(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return Ye(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:p})=>h+p,0),s.value=u.reduce((h,{blockSize:p})=>h+p,0)):(r.value=a.contentRect.width,s.value=a.contentRect.height)},o),e.watch(()=>Se(t),a=>{r.value=a?n.width:0,s.value=a?n.height:0}),{width:r,height:s}}var Ce;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Ce||(Ce={}));let qe=0;function Te(t,n={}){const o=e.ref(!1),{document:l=Ve,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++qe}`}=n,u=e.ref(t);let h=()=>{};const p=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,n.media&&(f.media=n.media),l.head.appendChild(f),!o.value&&(h=e.watch(u,c=>{f.innerText=c},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&we(p),s||_e(d),{id:a,css:u,unload:d,load:p,isLoaded:e.readonly(o)}}var Qe=Object.defineProperty,Le=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,Be=(t,n,o)=>n in t?Qe(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ze=(t,n)=>{for(var o in n||(n={}))Xe.call(n,o)&&Be(t,o,n[o]);if(Le)for(var o of Le(n))Ge.call(n,o)&&Be(t,o,n[o]);return t};Ze({linear:Ae},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function xe(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=Ue(s),u=e.ref(!0),h=ye(M,100);let p;const d=e.shallowRef(t),f=e.ref(0),c=e.ref({start:0,end:10});let i=0;const m=e.ref([]),C=e.computed(()=>{let{sum:v,height:E}={sum:0,height:0};return d.value.map((k,I)=>(typeof l=="number"?E=l:E=l(I),v+=E,{height:E,sum:v}))}),b=e.computed(()=>N(c.value.start)),w=e.computed(()=>typeof l=="number"?C.value.length*l:C.value[C.value.length-1]?.sum||0),S=e.computed(()=>{let v=m.value.length-r,E=Math.max(v-i,0);return m.value.slice(E,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(p)),e.watch([a.width,a.height,d],([v,E])=>{(v||E)&&H()},{deep:!0}),e.watch(f,()=>{R(),h()});function R(){u.value=!1}function M(){u.value=!0,o?.()}function H(){cancelAnimationFrame(p),p=requestAnimationFrame(x)}function x(){if(s.value){f.value=s.value.scrollTop,i=B();let v=T(f.value),E=v+i+r;v=v-r,v=v<0?0:v,E=E>d.value.length?d.value.length:E,c.value={start:v,end:E},m.value=d.value.slice(v,E).map((k,I)=>({data:k,index:I+v}))}}function T(v){let E=0,k=C.value.length-1,I=-1;for(;E<=k;){const $=Math.floor((E+k)/2);C.value[$].sum>=v?(I=$,k=$-1):E=$+1}return Math.max(0,I)}function B(){let v=0,E=0,k=P();for(let I=k;I<C.value.length&&(v++,E+=C.value[I].height,!(E>=a.height.value));I++);return v}function N(v){if(typeof l=="number")return v*l;let E=C.value[v];return E?E.sum-E.height:0}function z(v){return C.value[v]||{sum:0,height:0}}function P(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const E=z(v);s.value.scrollTop=E.sum-E.height,x()}}const q=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${b.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:m,visiableList:S,getItemHeightData:z,getoffsetTopIndex:T,totalHeight:w,clientHeight:a.height,scrollTo:K,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{H()},style:W},wrapperProps:q,innerProps:j}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),re=Symbol(),ae=Symbol(),se=Symbol(),ie=Symbol(),ce=Symbol();function Je(){const{voidFn:t,boolFn:n,boolRef:o,arrayRef:l}={voidFn:i=>{},boolFn:i=>!1,boolRef:e.computed(()=>!1),arrayRef:e.computed(()=>[])},r=e.inject(le,l),s=e.inject(oe,n),a=e.inject(ie,o),u=e.inject(ne,t),h=e.inject(te,t),p=e.inject(re,t),d=e.inject(ae,t),f=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:p,selectAll:d,unselect:f,unselectAll:c}}function et(t,n){const o=e.ref({}),l=e.computed(()=>t.value.filter(c=>o.value[c[n]])),r=e.computed(()=>l.value.length!=0&&Object.keys(o.value).length==t.value.length);function s(){t.value.forEach(c=>{o.value[c[n]]=!0})}function a(){o.value={}}function u(c){c.forEach(i=>{o.value[i[n]]||(o.value[i[n]]=!0)})}function h(c){c.forEach(i=>{o.value[i[n]]&&delete o.value[i[n]]})}function p(c){return!!o.value[c[n]]}function d(c){c.forEach(i=>{p(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function f(){r.value?a():s()}return e.provide(te,f),e.provide(ne,d),e.provide(oe,p),e.provide(le,l),e.provide(re,u),e.provide(ae,s),e.provide(se,h),e.provide(ie,r),e.provide(ce,a),{selected:l,select:u,selectAll:s,unselect:h,unselectAll:a,toggle:d,toggleAll:f,isSelected:p,isAllSelected:r}}function ue(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:r=ue("\u9009\u62E9"),unselect:s=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let u={};const h=e.computed(()=>Ee(n==="colum"?F:X,50)),p=new Set,d=e.ref(!0),f=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),m=e.ref({x:0,y:0,scrollTop:0}),C=new ResizeObserver(g=>b.value=g[0].target.getBoundingClientRect()),b=e.ref({}),w=e.ref({top:0,height:0,sync(g=!1){w.value.top=f.value?.scrollTop||0,g&&(w.value.height=f.value?.scrollHeight||0)}}),S=e.computed(()=>c.value?{left:Math.min(i.value.x,m.value.x)-b.value.left,top:Math.min(i.value.y,m.value.y)-b.value.top,width:Math.abs(i.value.x-m.value.x),height:Math.abs(i.value.y-m.value.y)}:{left:0,top:0,width:0,height:0}),{margin:R=50,startSpeed:M=30,maxSpeed:H=30}=o;let x;const T=R,B=M,N=H,z=g=>g**1;let P=0;function K(g){if(cancelAnimationFrame(x),P=q(g),P=Math.max(Math.min(P,N),-N),P!==0){const _=f.value;if(!_||!c.value)return;const O=w.value.height-b.value.height;let L=w.value.top+Number(P);L=Math.min(Math.max(0,L),O),_.scrollTop=L,W(),x=requestAnimationFrame(()=>K(g))}}function q(g){if(f.value){const O=b.value,L=O.bottom-g;if(L<T)return B*z(1-L/T);const A=g-O.top;if(A<T)return-B*z(1-A/T)}return 0}function j(g){const _={...S.value,right:0,bottom:0};return _.left+=b.value.left,_.top+=b.value.top-w.value.top,_.right=_.width+_.left,_.bottom=_.height+_.top,_.left<g.right&&_.right>g.left&&_.top<g.bottom&&_.bottom>g.top}function W(){w.value.sync();const{top:g,height:_}=w.value;m.value.y=Math.min(_+b.value.top,m.value.y+g-m.value.scrollTop),m.value.scrollTop=g}function v(g,_,O="dynamic-styles"){let L=document.getElementById(O);L||(L=document.createElement("style"),L.id=O,document.head.appendChild(L));const A=L.sheet.cssRules,U=A.length,Vt=`${g} { ${_} }`;for(let pe=0;pe<U;pe++){const Ie=A[pe];if(Ie.selectorText===g&&Ie.style.cssText===_)return}L.sheet.insertRule(Vt,U)}function E(g,_){d.value=!0,c.value=!0,w.value.height?w.value.sync():w.value.sync(!0),i.value.x=g,i.value.y=_+w.value.top,m.value.x=i.value.x,m.value.y=i.value.y,f.value?.classList.add("disable-scroll-behavior"),p.clear()}function k(g,_,O){!c.value||(d.value&&n==="colum"&&!D()&&(a(),d.value=!1),O?.(),K(_),m.value.x=Math.max(g,b.value.left),m.value.y=Math.min(_+w.value.top,w.value.height+b.value.top),m.value.scrollTop=w.value.top,h.value())}function I(){c.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function $(){!c.value||(P||W(),h.value())}function D(){if(!c.value)return!1;const{width:g,height:_}=S.value;return!(Math.max(g,_)>5)}function Y(){D()&&a()}function F(){D()||f.value?.querySelectorAll(`[${t}]`).forEach(g=>{u[`${t}`]=g.getAttribute(`${t}`),j(g.getBoundingClientRect())?r([u]):s([u])})}function X(){const g=[];let _=null,O=0;f.value?.querySelectorAll(`[${t}]`).forEach((L,A)=>{const U=L.getAttribute(`${t}`);g.push(U),j(L.getBoundingClientRect())?(_===null&&(_=A),_=Math.min(_,A),O=Math.max(O,A)):(u[`${t}`]=U,p.has(U)&&s([u]))});for(let L=_;L<O+1;L++)u[`${t}`]=g[L],r([u]),p.add(g[L])}function G(g){return!g?.value||(f.value=g.value,!f?.value)?!1:(C.observe(f.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:G,dragStart:E,dragMove:k,dragEnd:I,onScroll:$,isSingleClick:D,cancelSelectAllBySingleClick:Y,selectFn:h,selectRange:S,isPressing:c,containerEl:f,observer:C}}function tt(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,p=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d,unload:f}=Te(`.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
|
-
}`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(S){S.button===0&&s(S.x,S.y)}function m(S){a(S.x,S.y)}function C(S){S.composedPath().some(
|
|
6
|
+
}`),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:p.value})}});function i(S){S.button===0&&s(S.x,S.y)}function m(S){a(S.x,S.y)}function C(S){S.composedPath().some(M=>M?.getAttribute?.(t.attribute))||h(),u()}function b(S){try{if(!n.init(S))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),d(),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",i),window.addEventListener("mousemove",m),window.addEventListener("mouseup",C)}catch(R){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",R)}}function w(){f(),o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",i),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",C)}return{init:b,unMount:w}}function nt(t,n,o=600){const l=de({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:r}=l,{onScroll:s,dragStart:a,dragMove:u,dragEnd:h}=l;let p;function d(){clearTimeout(p)}function f(b){d(),b.composedPath().some(S=>!!S?.getAttribute?.(t.attribute))&&(p=setTimeout(()=>{const{clientX:S,clientY:R}=b.targetTouches[0];a(S,R),n?.(),u(S,R,()=>b.preventDefault()),b.preventDefault()},o))}function c(b){d();const{clientX:w,clientY:S}=b.targetTouches[0];u(w,S,()=>b.preventDefault())}function i(){d(),h()}function m(b){try{if(!l.init(b))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",s),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function C(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:m,unMount:C}}const De=Symbol(),ot={key:0,class:"lzc-modal"},lt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(De,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ot,[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],34)])),[[e.unref(he),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zt="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},rt=V(lt,[["__scopeId","data-v-4ff684af"]]);function at(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(rt,{visiable:!0,"onUpdate:visiable":()=>{r?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(r),e.render(e.h(s),r),{close:()=>r?.remove()}}return{create:n}}function $e({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,{load:r}=Te(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
.lzc-delay-loading {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${l} forwards;
|
|
14
|
-
}`);return{LoadingComp:e.defineComponent({setup(){const a=ze();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function st({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=$e({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const it=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ct=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),it,16))}}),Wt="",ut=V(ct,[["__scopeId","data-v-d0ad7597"]]),dt=["onClick"],ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function h(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,dt))}}),Yt="",pt=V(ft,[["__scopeId","data-v-533e986b"]]),Oe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class ht{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(pt),{...Oe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Oe.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 mt=["xlink:href","fill","color"],gt=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"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,mt)],4))}});function vt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),w=e.computed(()=>i.value.clientHeight-m.value.clientHeight),S=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),P=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${P.value}px`:void 0}));function x($){B(),f.value=$.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function T(){n.value.style.scrollBehavior=p,f.value=0,u()}function B(){a.value=!1}function N(){C.value||(a.value=!0)}function z($){if(!C.value)return;let D=$.clientY-i.value.top-f.value;D<0?c.value=0:D>=w.value?c.value=w.value:c.value=D,n.value.scrollTo({top:c.value/w.value*S.value})}function M(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,c.value=d.value/S.value*w.value)}function j($){let D="addEventListener";$==="add"?D="addEventListener":D="removeEventListener",o.value?.[D]("pointerdown",x,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver($=>{$.map(Y=>Y.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function E(){B(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,N()},150)}function k($,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const X=F.sheet.cssRules,G=X.length,g=`${$} { ${D} }`;for(let _=0;_<G;_++){const O=X[_];if(O.selectorText===$&&O.style.cssText===D)return}F.sheet.insertRule(g,G)}function I(){n.value&&o.value?(k(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),k(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",M,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const _t=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),yt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=vt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(m,C)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(m.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),qt="",Et=V(yt,[["__scopeId","data-v-edec7292"]]),wt=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),St={class:"pull-refresh"},bt={key:0,class:"pull-arrow-circle"},Ct={key:0,class:"box-load"},Tt={class:"left-load"},Lt={class:"right-load"},Bt=wt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),xt={class:"pull-arrow"},Dt={key:1},$t=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",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const B=Math.pow(T,o);B===0&&(r.value=-50),B<=50&&B>0&&(r.value=B-45,a.value=Math.pow(B,1.5),B>15?h.value=!0:h.value=!1),B>50&&(r.value=5,u.value=1,i.value)});const S=e.ref(0),R=T=>{S.value=T.touches[0].pageY},P=T=>{const B=T.touches[0].pageY-S.value;S.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,x.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,B>0&&T.preventDefault()))},H=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,o);x.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",R),x.value?.addEventListener("touchmove",P),x.value?.addEventListener("touchend",H))}),(T,B)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(m.value),1)):(e.openBlock(),e.createElementBlock("div",bt,[i.value==2?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",xt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Qt="",Re=V($t,[["__scopeId","data-v-18377f18"]]),Ot={inheritAttrs:!1},Rt=e.defineComponent({...Ot,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=xe(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",It=V(Rt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),kt={style:{position:"absolute"}},Mt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Pt=["width","height"],At=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>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))],Ht=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",kt,[Mt,(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"},At,8,Pt))]))}}),Jt="",Ft=V(Ht,[["__scopeId","data-v-40e00f20"]]);y.DefaultLoading=ut,y.Loading=Ft,y.PullRefresh=Re,y.ScrollBar=Et,y.SvgIcon=gt,y.ToastCreator=ht,y.VirtualList=It,y.allSelectedKey=le,y.closeDialogKey=De,y.dialogController=at,y.isAllSelectedKey=ie,y.isSelectedKey=oe,y.selectAllKey=ae,y.selectKey=re,y.toggleAllKey=te,y.toggleKey=ne,y.unselectAllKey=ce,y.unselectKey=se,y.useDelayLoad=st,y.useDelayLoadComp=$e,y.useDragSelect=de,y.useDragSelectByMobile=nt,y.useDragSelectByPc=tt,y.useSelectable=et,y.useSelectableInjectors=Je,y.useVirtualList=xe,y.vDebounceClick=ke,y.vSingleClick=he,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
14
|
+
}`);return{LoadingComp:e.defineComponent({setup(){const a=ze();return e.onMounted(()=>{r(),a.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}})}}function st({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=$e({component:t,componentProps:n,delay:o}),r=e.ref(!1);function s(){r.value=!0}function a(){r.value=!1}return{LoadingComp:l,loading:r,load:s,unload:a}}const it=[(t=>(e.pushScopeId("data-v-d0ad7597"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ct=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({d8dfa9f0:t.width+"px","2941c2e5":t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),it,16))}}),Wt="",ut=V(ct,[["__scopeId","data-v-d0ad7597"]]),dt=["onClick"],ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),r=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${r.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function h(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(p,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(h,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,dt))}}),Yt="",pt=V(ft,[["__scopeId","data-v-533e986b"]]),Oe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class ht{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(pt),{...Oe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Oe.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 mt=["xlink:href","fill","color"],gt=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"}));return(r,s)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle(e.unref(l))},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,mt)],4))}});function vt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,p="";const d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),m=e.ref({clientHeight:0}),C=e.computed(()=>!!f.value),b=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),w=e.computed(()=>l?i.value.clientHeight-M.value:i.value.clientHeight-m.value.clientHeight),S=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),R=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),M=e.computed(()=>R.value>s?0:R.value*i.value.clientHeight),H=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${M.value}px`:void 0}));function x($){B(),f.value=$.clientY-o.value.getBoundingClientRect().top||1,p=getComputedStyle(n.value).scrollBehavior,p==="smooth"&&(n.value.style.scrollBehavior="unset")}function T(){n.value.style.scrollBehavior=p,f.value=0,u()}function B(){a.value=!1}function N(){C.value||(a.value=!0)}function z($){if(!C.value)return;let D=$.clientY-i.value.top-f.value;D<0?c.value=0:D>=w.value?c.value=w.value:c.value=D,n.value.scrollTo({top:c.value/w.value*S.value})}function P(){C.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(q)}function q(){n.value&&(d.value=r.scrollTop?.value??n.value.scrollTop,c.value=d.value/S.value*w.value)}function j($){let D="addEventListener";$==="add"?D="addEventListener":D="removeEventListener",o.value?.[D]("pointerdown",x,{passive:!0}),window[D]("pointermove",z,{passive:!0}),window[D]("pointerup",T,{passive:!0})}const W=new MutationObserver($=>{$.map(Y=>Y.oldValue).join().includes("height")&&v()});function v(){i.value.top=n.value?.getBoundingClientRect().top??0,i.value.scrollHeight=n.value?.scrollHeight??0,i.value.clientHeight=n.value?.clientHeight??0}function E(){B(),setTimeout(()=>{m.value.clientHeight=o.value?.clientHeight??0,N()},150)}function k($,D,Y="dynamic-styles"){let F=document.getElementById(Y);F||(F=document.createElement("style"),F.id=Y,document.head.appendChild(F));const X=F.sheet.cssRules,G=X.length,g=`${$} { ${D} }`;for(let _=0;_<G;_++){const O=X[_];if(O.selectorText===$&&O.style.cssText===D)return}F.sheet.insertRule(g,G)}function I(){n.value&&o.value?(k(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),k(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",P,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),E()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),u()}),{isScrollEnd:a,isDragSlider:C,offsetTop:c,scrollTop:d,scrollable:b,sliderPos:H,init:I,modifySliderEventListener:j}}const _t=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),yt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,r=e.ref(null),s=e.computed(()=>o.containerEl),a=vt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:p}=a,d=e.ref(!1),f=o.autoHide?e.computed(()=>d.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){d.value=!0}function i(){d.value=!1}return n({uScrollBarReturn:a}),(m,C)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:r,class:"slider-wrapper",onMouseenter:c,onMouseleave:i,style:e.normalizeStyle(e.unref(p))},[e.renderSlot(m.$slots,"default",{},()=>[_t],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),qt="",Et=V(yt,[["__scopeId","data-v-edec7292"]]),wt=t=>(e.pushScopeId("data-v-18377f18"),t=t(),e.popScopeId(),t),St={class:"pull-refresh"},bt={key:0,class:"pull-arrow-circle"},Ct={key:0,class:"box-load"},Tt={class:"left-load"},Lt={class:"right-load"},Bt=wt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),xt={class:"pull-arrow"},Dt={key:1},$t=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",r=e.ref(-999),s=e.ref(1),a=e.ref(0),u=e.ref(.3),h=e.ref(!1),p=e.ref(0),d=e.ref(0),f=e.ref(0),c=e.ref(0),i=e.ref(0),m=e.ref(),C=e.computed(()=>n.scrollTop),b=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,T=>{T===0&&(r.value=-50,u.value=.3)}),e.watch(d,T=>{if(i.value===2)return;const B=Math.pow(T,o);B===0&&(r.value=-50),B<=50&&B>0&&(r.value=B-45,a.value=Math.pow(B,1.5),B>15?h.value=!0:h.value=!1),B>50&&(r.value=5,u.value=1,i.value)});const S=e.ref(0),R=T=>{S.value=T.touches[0].pageY},M=T=>{const B=T.touches[0].pageY-S.value;S.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||i.value!==2&&C.value===0&&(p.value===0&&(p.value=T.touches[0].pageY),f.value=0,x.value.style.transition=`${f.value}ms`,c.value=0,d.value=T.touches[0].pageY-p.value,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,B>0&&T.preventDefault()))},H=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;p.value=0,f.value=300;const T=Math.pow(d.value,o);x.value.style.transition=`${f.value}ms`,T>50?(i.value=2,d.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{m.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{m.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{m.value=void 0},c.value)},600)})):(d.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",R),x.value?.addEventListener("touchmove",M),x.value?.addEventListener("touchend",H))}),(T,B)=>(e.openBlock(),e.createElementBlock("div",St,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(b))},[m.value?(e.openBlock(),e.createElementBlock("div",Dt,e.toDisplayString(m.value),1)):(e.openBlock(),e.createElementBlock("div",bt,[i.value==2?(e.openBlock(),e.createElementBlock("div",Ct,[e.createElementVNode("div",Tt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Lt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Bt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",xt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Qt="",Re=V($t,[["__scopeId","data-v-18377f18"]]),Ot={inheritAttrs:!1},Rt=e.defineComponent({...Ot,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,r=xe(e.toRef(l,"data"),{itemHeight:c=>l.itemHeight(l.data[c]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:a,wrapperProps:u,innerProps:h,getItemHeightData:p,scrollTop:d}=r;n({vListReturn:r});const f="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Re,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...m)=>e.unref(a).onScroll&&e.unref(a).onScroll(...m)),ref:e.unref(a).ref,class:"virtualList"},c.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(h))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({index:m,data:C})=>(e.openBlock(),e.createElementBlock("div",{key:m,style:e.normalizeStyle({height:`${e.unref(p)(m).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:C,index:m},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Xt="",It=V(Rt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),kt={style:{position:"absolute"}},Mt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Pt=["width","height"],At=[fe(()=>e.createElementVNode("title",null,"logo",-1)),fe(()=>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))],Ht=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"703ef503":o}));const o=`${n.duration}ms`;return(l,r)=>(e.openBlock(),e.createElementBlock("div",kt,[Mt,(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"},At,8,Pt))]))}}),Jt="",Ft=V(Ht,[["__scopeId","data-v-40e00f20"]]);y.DefaultLoading=ut,y.Loading=Ft,y.PullRefresh=Re,y.ScrollBar=Et,y.SvgIcon=gt,y.ToastCreator=ht,y.VirtualList=It,y.allSelectedKey=le,y.closeDialogKey=De,y.dialogController=at,y.isAllSelectedKey=ie,y.isSelectedKey=oe,y.selectAllKey=ae,y.selectKey=re,y.toggleAllKey=te,y.toggleKey=ne,y.unselectAllKey=ce,y.unselectKey=se,y.useDelayLoad=st,y.useDelayLoadComp=$e,y.useDragSelect=de,y.useDragSelectByMobile=nt,y.useDragSelectByPc=tt,y.useSelectable=et,y.useSelectableInjectors=Je,y.useVirtualList=xe,y.vDebounceClick=ke,y.vSingleClick=he,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|