@lazycatcloud/lzc-toolkit 0.0.69 → 0.0.70
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 +67 -67
- package/dist/index.umd.js +4 -4
- package/dist/types/useDelayLoad/index.d.ts +1 -1
- 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 tt, getCurrentScope as lt, onScopeDispose as nt, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as $, onUpdated as ot, readonly as st, shallowRef as at, computed as S, onUnmounted as Ie, inject as j, provide as
|
|
1
|
+
import { ref as h, watch as K, customRef as tt, getCurrentScope as lt, onScopeDispose as nt, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as $, onUpdated as ot, readonly as st, shallowRef as at, computed as S, onUnmounted as Ie, inject as j, provide as z, defineComponent as U, h as Y, render as ue, openBlock as I, createBlock as Me, Transition as He, withCtx as Pe, createElementBlock as P, createElementVNode as C, withModifiers as rt, normalizeClass as Ae, renderSlot as ye, createCommentVNode as ut, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as W, toDisplayString as Fe, useSlots as it, withDirectives as ct, vShow as dt, toRef as vt, Fragment as Ee, createVNode as ft, mergeProps as ht, renderList as pt, useCssVars as mt } from "vue";
|
|
2
2
|
var Ce;
|
|
3
3
|
const we = typeof window < "u", xe = (e) => typeof e == "function";
|
|
4
4
|
we && ((Ce = window?.navigator) == null ? void 0 : Ce.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
@@ -57,10 +57,10 @@ function wt(e, t) {
|
|
|
57
57
|
}));
|
|
58
58
|
return Object.isExtensible(d) && (d.trigger = s), d;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function ze(e) {
|
|
61
61
|
return lt() ? (nt(e), !0) : !1;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function We(e, t = 200, l = {}) {
|
|
64
64
|
return ke(gt(t, l), e);
|
|
65
65
|
}
|
|
66
66
|
function Te(e, t = 200, l = !1, n = !0) {
|
|
@@ -105,7 +105,7 @@ function Ot(e, t, l = {}) {
|
|
|
105
105
|
}, { immediate: !0, flush: "post" }), v = () => {
|
|
106
106
|
f(), d();
|
|
107
107
|
};
|
|
108
|
-
return
|
|
108
|
+
return ze(v), {
|
|
109
109
|
isSupported: i,
|
|
110
110
|
stop: v
|
|
111
111
|
};
|
|
@@ -126,13 +126,13 @@ var Oe;
|
|
|
126
126
|
(function(e) {
|
|
127
127
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
128
128
|
})(Oe || (Oe = {}));
|
|
129
|
-
let
|
|
130
|
-
function
|
|
129
|
+
let Dt = 0;
|
|
130
|
+
function Rt(e, t = {}) {
|
|
131
131
|
const l = h(!1), {
|
|
132
132
|
document: n = St,
|
|
133
133
|
immediate: o = !0,
|
|
134
134
|
manual: a = !1,
|
|
135
|
-
id: s = `vueuse_styletag_${++
|
|
135
|
+
id: s = `vueuse_styletag_${++Dt}`
|
|
136
136
|
} = t, i = h(e);
|
|
137
137
|
let f = () => {
|
|
138
138
|
};
|
|
@@ -146,7 +146,7 @@ function Dt(e, t = {}) {
|
|
|
146
146
|
}, v = () => {
|
|
147
147
|
!n || !l.value || (f(), n.head.removeChild(n.getElementById(s)), l.value = !1);
|
|
148
148
|
};
|
|
149
|
-
return o && !a && Ne(d), a ||
|
|
149
|
+
return o && !a && Ne(d), a || ze(v), {
|
|
150
150
|
id: s,
|
|
151
151
|
css: i,
|
|
152
152
|
unload: v,
|
|
@@ -154,12 +154,12 @@ function Dt(e, t = {}) {
|
|
|
154
154
|
isLoaded: st(l)
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable,
|
|
157
|
+
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ht = (e, t) => {
|
|
158
158
|
for (var l in t || (t = {}))
|
|
159
|
-
It.call(t, l) &&
|
|
159
|
+
It.call(t, l) && De(e, l, t[l]);
|
|
160
160
|
if ($e)
|
|
161
161
|
for (var l of $e(t))
|
|
162
|
-
Mt.call(t, l) &&
|
|
162
|
+
Mt.call(t, l) && De(e, l, t[l]);
|
|
163
163
|
return e;
|
|
164
164
|
};
|
|
165
165
|
const Pt = {
|
|
@@ -192,7 +192,7 @@ Ht({
|
|
|
192
192
|
linear: yt
|
|
193
193
|
}, Pt);
|
|
194
194
|
function At(e, t) {
|
|
195
|
-
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = $t(a), i = h(!0), f =
|
|
195
|
+
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = h(null), s = $t(a), i = h(!0), f = We(M, 100);
|
|
196
196
|
let d;
|
|
197
197
|
const v = at(e), c = h(0), u = h({ start: 0, end: 10 });
|
|
198
198
|
let r = 0;
|
|
@@ -207,7 +207,7 @@ function At(e, t) {
|
|
|
207
207
|
}), Ie(() => cancelAnimationFrame(d)), K(
|
|
208
208
|
[s.width, s.height, v],
|
|
209
209
|
([g, b]) => {
|
|
210
|
-
(g || b) &&
|
|
210
|
+
(g || b) && D();
|
|
211
211
|
},
|
|
212
212
|
{ deep: !0 }
|
|
213
213
|
), K(c, () => {
|
|
@@ -219,10 +219,10 @@ function At(e, t) {
|
|
|
219
219
|
function M() {
|
|
220
220
|
i.value = !0, l?.();
|
|
221
221
|
}
|
|
222
|
-
function R() {
|
|
223
|
-
cancelAnimationFrame(d), d = requestAnimationFrame(D);
|
|
224
|
-
}
|
|
225
222
|
function D() {
|
|
223
|
+
cancelAnimationFrame(d), d = requestAnimationFrame(R);
|
|
224
|
+
}
|
|
225
|
+
function R() {
|
|
226
226
|
if (a.value) {
|
|
227
227
|
c.value = a.value.scrollTop, r = q();
|
|
228
228
|
let g = N(c.value), b = g + r + o;
|
|
@@ -262,7 +262,7 @@ function At(e, t) {
|
|
|
262
262
|
function ee(g) {
|
|
263
263
|
if (a.value) {
|
|
264
264
|
const b = X(g);
|
|
265
|
-
a.value.scrollTop = b.sum - b.height,
|
|
265
|
+
a.value.scrollTop = b.sum - b.height, R();
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
const se = S(() => ({
|
|
@@ -292,7 +292,7 @@ function At(e, t) {
|
|
|
292
292
|
containerProps: {
|
|
293
293
|
ref: a,
|
|
294
294
|
onScroll: () => {
|
|
295
|
-
|
|
295
|
+
D();
|
|
296
296
|
},
|
|
297
297
|
style: te
|
|
298
298
|
},
|
|
@@ -352,7 +352,7 @@ function bl(e, t) {
|
|
|
352
352
|
function c() {
|
|
353
353
|
o.value ? s() : a();
|
|
354
354
|
}
|
|
355
|
-
return
|
|
355
|
+
return z(je, c), z(Ke, v), z(Ue, d), z(qe, n), z(Qe, i), z(Ye, a), z(Ge, f), z(Xe, o), z(Ze, s), {
|
|
356
356
|
selected: n,
|
|
357
357
|
select: i,
|
|
358
358
|
selectAll: a,
|
|
@@ -396,12 +396,12 @@ function Je({
|
|
|
396
396
|
top: Math.min(r.value.y, m.value.y) - y.value.top,
|
|
397
397
|
width: Math.abs(r.value.x - m.value.x),
|
|
398
398
|
height: Math.abs(r.value.y - m.value.y)
|
|
399
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: F = 50, startSpeed: M = 30, maxSpeed:
|
|
400
|
-
let
|
|
401
|
-
const N = F, q = M, G =
|
|
399
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: F = 50, startSpeed: M = 30, maxSpeed: D = 30 } = l;
|
|
400
|
+
let R;
|
|
401
|
+
const N = F, q = M, G = D, X = (p) => p ** 1;
|
|
402
402
|
let k = 0;
|
|
403
403
|
function ee(p) {
|
|
404
|
-
if (cancelAnimationFrame(
|
|
404
|
+
if (cancelAnimationFrame(R), k = se(p), k = Math.max(
|
|
405
405
|
Math.min(k, G),
|
|
406
406
|
-G
|
|
407
407
|
), k !== 0) {
|
|
@@ -410,7 +410,7 @@ function Je({
|
|
|
410
410
|
return;
|
|
411
411
|
const B = w.value.height - y.value.height;
|
|
412
412
|
let x = w.value.top + Number(k);
|
|
413
|
-
x = Math.min(Math.max(0, x), B), _.scrollTop = x, te(),
|
|
413
|
+
x = Math.min(Math.max(0, x), B), _.scrollTop = x, te(), R = requestAnimationFrame(() => ee(p));
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
function se(p) {
|
|
@@ -608,7 +608,7 @@ const Ft = Symbol(), kt = /* @__PURE__ */ U({
|
|
|
608
608
|
const l = e, n = () => {
|
|
609
609
|
l.closeOnClickOverlay && t("update:visiable", !1);
|
|
610
610
|
};
|
|
611
|
-
return
|
|
611
|
+
return z(Ft, () => t("update:visiable", !1)), (o, a) => (I(), Me(He, { name: "modal" }, {
|
|
612
612
|
default: Pe(() => [
|
|
613
613
|
e.visiable ? (I(), P("div", {
|
|
614
614
|
key: 0,
|
|
@@ -633,13 +633,13 @@ const J = (e, t) => {
|
|
|
633
633
|
for (const [n, o] of t)
|
|
634
634
|
l[n] = o;
|
|
635
635
|
return l;
|
|
636
|
-
},
|
|
636
|
+
}, zt = /* @__PURE__ */ J(kt, [["__scopeId", "data-v-e171c24d"]]);
|
|
637
637
|
function Cl(e) {
|
|
638
638
|
function t(l, n) {
|
|
639
639
|
const o = document.createElement("div"), a = {
|
|
640
640
|
setup() {
|
|
641
641
|
return () => Y(
|
|
642
|
-
|
|
642
|
+
zt,
|
|
643
643
|
{
|
|
644
644
|
visiable: !0,
|
|
645
645
|
"onUpdate:visiable": () => {
|
|
@@ -666,22 +666,22 @@ function xl({
|
|
|
666
666
|
componentProps: t,
|
|
667
667
|
delay: l = 300
|
|
668
668
|
}) {
|
|
669
|
-
const n = `${l}ms`, o = h(!1), { load: a } =
|
|
670
|
-
`@keyframes
|
|
669
|
+
const n = `${l}ms`, o = h(!1), { load: a } = Rt(
|
|
670
|
+
`@keyframes lzcDelayLoad {
|
|
671
671
|
to {
|
|
672
672
|
opacity: 1;
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
|
-
.delay-
|
|
675
|
+
.lzc-delay-loading {
|
|
676
676
|
opacity: 0;
|
|
677
|
-
animation:
|
|
677
|
+
animation: lzcDelayLoad 0s ${n} forwards;
|
|
678
678
|
}`
|
|
679
679
|
), s = U({
|
|
680
680
|
setup() {
|
|
681
681
|
const d = Ct();
|
|
682
682
|
return oe(() => {
|
|
683
|
-
a(), d.value.classList.add("delay-
|
|
684
|
-
}), () =>
|
|
683
|
+
a(), d.value.classList.add("lzc-delay-loading");
|
|
684
|
+
}), () => Y(e, t);
|
|
685
685
|
}
|
|
686
686
|
});
|
|
687
687
|
function i() {
|
|
@@ -692,7 +692,7 @@ function xl({
|
|
|
692
692
|
}
|
|
693
693
|
return { LoadingComp: s, loading: o, load: i, unload: f };
|
|
694
694
|
}
|
|
695
|
-
const
|
|
695
|
+
const Wt = {}, Nt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), Vt = /* @__PURE__ */ Nt(() => /* @__PURE__ */ C("div", { class: "ldio-mm5gwljcryb" }, [
|
|
696
696
|
/* @__PURE__ */ C("div")
|
|
697
697
|
], -1)), jt = [
|
|
698
698
|
Vt
|
|
@@ -700,7 +700,7 @@ const zt = {}, Nt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), Vt = /* @_
|
|
|
700
700
|
function Kt(e, t) {
|
|
701
701
|
return I(), P("div", he(pe(e.$attrs)), jt, 16);
|
|
702
702
|
}
|
|
703
|
-
const Tl = /* @__PURE__ */ J(
|
|
703
|
+
const Tl = /* @__PURE__ */ J(Wt, [["render", Kt], ["__scopeId", "data-v-76a2728a"]]), Ut = /* @__PURE__ */ U({
|
|
704
704
|
__name: "Toast",
|
|
705
705
|
props: {
|
|
706
706
|
message: null,
|
|
@@ -738,17 +738,17 @@ const Tl = /* @__PURE__ */ J(zt, [["render", Kt], ["__scopeId", "data-v-76a2728a
|
|
|
738
738
|
ref_key: "toastWrapper",
|
|
739
739
|
ref: l,
|
|
740
740
|
class: "toastWrapper",
|
|
741
|
-
style:
|
|
741
|
+
style: W([$(s), { zIndex: 9999 }])
|
|
742
742
|
}, [
|
|
743
743
|
C("div", {
|
|
744
|
-
style:
|
|
744
|
+
style: W($(i))
|
|
745
745
|
}, [
|
|
746
746
|
C("span", null, Fe(e.message), 1)
|
|
747
747
|
], 4)
|
|
748
748
|
], 4));
|
|
749
749
|
}
|
|
750
750
|
});
|
|
751
|
-
const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-15ab4094"]]),
|
|
751
|
+
const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-15ab4094"]]), Re = {
|
|
752
752
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
753
753
|
position: "middle",
|
|
754
754
|
duration: 1500
|
|
@@ -760,9 +760,9 @@ class Ll {
|
|
|
760
760
|
this.options = t, this.container = document.createElement("div");
|
|
761
761
|
}
|
|
762
762
|
present() {
|
|
763
|
-
const t = Y(Y(qt), { ...
|
|
763
|
+
const t = Y(Y(qt), { ...Re, ...this.options });
|
|
764
764
|
ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
765
|
-
const l = this.options.duration ||
|
|
765
|
+
const l = this.options.duration || Re.duration;
|
|
766
766
|
setTimeout(() => {
|
|
767
767
|
this.dismiss();
|
|
768
768
|
}, l);
|
|
@@ -795,7 +795,7 @@ const Qt = ["xlink:href", "fill", "color"], Ol = /* @__PURE__ */ U({
|
|
|
795
795
|
}));
|
|
796
796
|
return (o, a) => (I(), P("svg", {
|
|
797
797
|
"aria-hidden": "",
|
|
798
|
-
style:
|
|
798
|
+
style: W($(n))
|
|
799
799
|
}, [
|
|
800
800
|
C("use", {
|
|
801
801
|
"xlink:href": $(l),
|
|
@@ -812,7 +812,7 @@ function Yt(e) {
|
|
|
812
812
|
autoHeight: n,
|
|
813
813
|
performance: o = {},
|
|
814
814
|
maxHeightRatio: a = 0.9
|
|
815
|
-
} = e, s = h(!0), i =
|
|
815
|
+
} = e, s = h(!0), i = We(G, 100);
|
|
816
816
|
let f, d = "";
|
|
817
817
|
const v = h(0), c = h(0), u = h(0), r = h({
|
|
818
818
|
top: 0,
|
|
@@ -824,12 +824,12 @@ function Yt(e) {
|
|
|
824
824
|
}), E = S(() => !!c.value), y = S(() => r.value.scrollHeight > r.value.clientHeight), w = S(() => r.value.clientHeight - m.value.clientHeight), T = S(() => r.value.scrollHeight - r.value.clientHeight), F = S(() => Math.max(
|
|
825
825
|
r.value.clientHeight / r.value.scrollHeight,
|
|
826
826
|
0.05
|
|
827
|
-
)), M = S(() => F.value > a ? 0 : F.value * r.value.clientHeight),
|
|
827
|
+
)), M = S(() => F.value > a ? 0 : F.value * r.value.clientHeight), D = S(() => ({
|
|
828
828
|
willChange: "transform",
|
|
829
829
|
transform: `translate3d(0,${u.value}px,0)`,
|
|
830
830
|
height: n ? `${M.value}px` : void 0
|
|
831
831
|
}));
|
|
832
|
-
function
|
|
832
|
+
function R(O) {
|
|
833
833
|
q(), c.value = O.clientY - l.value.getBoundingClientRect().top || 1, d = getComputedStyle(t.value).scrollBehavior, d === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
834
834
|
}
|
|
835
835
|
function N() {
|
|
@@ -860,7 +860,7 @@ function Yt(e) {
|
|
|
860
860
|
}
|
|
861
861
|
function Z(O) {
|
|
862
862
|
let L = "addEventListener";
|
|
863
|
-
O === "add" ? L = "addEventListener" : L = "removeEventListener", l.value?.[L]("pointerdown",
|
|
863
|
+
O === "add" ? L = "addEventListener" : L = "removeEventListener", l.value?.[L]("pointerdown", R, {
|
|
864
864
|
passive: !0
|
|
865
865
|
}), window[L]("pointermove", X, { passive: !0 }), window[L]("pointerup", N, { passive: !0 });
|
|
866
866
|
}
|
|
@@ -908,7 +908,7 @@ function Yt(e) {
|
|
|
908
908
|
offsetTop: u,
|
|
909
909
|
scrollTop: v,
|
|
910
910
|
scrollable: y,
|
|
911
|
-
sliderPos:
|
|
911
|
+
sliderPos: D,
|
|
912
912
|
init: H,
|
|
913
913
|
modifySliderEventListener: Z
|
|
914
914
|
};
|
|
@@ -949,7 +949,7 @@ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ *
|
|
|
949
949
|
class: "slider-wrapper",
|
|
950
950
|
onMouseenter: u,
|
|
951
951
|
onMouseleave: r,
|
|
952
|
-
style:
|
|
952
|
+
style: W($(d))
|
|
953
953
|
}, [
|
|
954
954
|
ye(m.$slots, "default", {}, () => [
|
|
955
955
|
Xt
|
|
@@ -986,22 +986,22 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
986
986
|
transform: `rotate(${100 + s.value}deg)`,
|
|
987
987
|
opacity: i.value
|
|
988
988
|
}));
|
|
989
|
-
K(r, (
|
|
990
|
-
|
|
991
|
-
}), K(v, (
|
|
989
|
+
K(r, (D) => {
|
|
990
|
+
D === 0 && (o.value = -50, i.value = 0.3);
|
|
991
|
+
}), K(v, (D) => {
|
|
992
992
|
if (r.value === 2)
|
|
993
993
|
return;
|
|
994
|
-
const
|
|
995
|
-
|
|
994
|
+
const R = Math.pow(D, l);
|
|
995
|
+
R === 0 && (o.value = -50), R <= 50 && R > 0 && (o.value = R - 45, s.value = Math.pow(R, 1.5), R > 15 ? f.value = !0 : f.value = !1), R > 50 && (o.value = 5, i.value = 1, r.value);
|
|
996
996
|
});
|
|
997
|
-
const T = (
|
|
998
|
-
t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (d.value === 0 && (d.value =
|
|
997
|
+
const T = (D) => {
|
|
998
|
+
t.refreshOff || !t?.refresh || r.value !== 2 && E.value === 0 && (d.value === 0 && (d.value = D.touches[0].pageY), c.value = 0, M.value.style.transition = `${c.value}ms`, u.value = 0, v.value = D.touches[0].pageY - d.value, M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`);
|
|
999
999
|
}, F = () => {
|
|
1000
1000
|
if (t.refreshOff || !t?.refresh || r.value === 2)
|
|
1001
1001
|
return;
|
|
1002
1002
|
d.value = 0, c.value = 300;
|
|
1003
|
-
const
|
|
1004
|
-
M.value.style.transition = `${c.value}ms`,
|
|
1003
|
+
const D = Math.pow(v.value, l);
|
|
1004
|
+
M.value.style.transition = `${c.value}ms`, D > 50 ? (r.value = 2, v.value = Math.pow(50, 1 / l), M.value.style.transform = `translate3d(0, ${Math.pow(v.value, l)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
1005
1005
|
m.value = "\u5237\u65B0\u6210\u529F";
|
|
1006
1006
|
}).catch(() => {
|
|
1007
1007
|
m.value = "\u5237\u65B0\u5931\u8D25";
|
|
@@ -1020,35 +1020,35 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
1020
1020
|
M.value = document.querySelector(
|
|
1021
1021
|
t.pullRefreshContainer
|
|
1022
1022
|
), M.value.addEventListener("touchmove", T), M.value.addEventListener("touchend", F);
|
|
1023
|
-
}), (
|
|
1023
|
+
}), (D, R) => (I(), P("div", el, [
|
|
1024
1024
|
C("div", {
|
|
1025
1025
|
class: "pull-refresh-box",
|
|
1026
|
-
style:
|
|
1026
|
+
style: W($(y))
|
|
1027
1027
|
}, [
|
|
1028
1028
|
m.value ? (I(), P("div", rl, Fe(m.value), 1)) : (I(), P("div", tl, [
|
|
1029
1029
|
r.value == 2 ? (I(), P("div", ll, [
|
|
1030
1030
|
C("div", nl, [
|
|
1031
1031
|
C("div", {
|
|
1032
1032
|
class: "left-circle",
|
|
1033
|
-
style:
|
|
1033
|
+
style: W({ backgroundColor: n })
|
|
1034
1034
|
}, null, 4)
|
|
1035
1035
|
]),
|
|
1036
1036
|
C("div", ol, [
|
|
1037
1037
|
C("div", {
|
|
1038
1038
|
class: "right-circle",
|
|
1039
|
-
style:
|
|
1039
|
+
style: W({ backgroundColor: n })
|
|
1040
1040
|
}, null, 4)
|
|
1041
1041
|
]),
|
|
1042
1042
|
sl
|
|
1043
1043
|
])) : (I(), P("div", {
|
|
1044
1044
|
key: 1,
|
|
1045
1045
|
class: "pull-circle-line",
|
|
1046
|
-
style:
|
|
1046
|
+
style: W($(w))
|
|
1047
1047
|
}, [
|
|
1048
1048
|
C("div", al, [
|
|
1049
1049
|
C("div", {
|
|
1050
1050
|
class: Ae(["arrows", { opacity: f.value }]),
|
|
1051
|
-
style:
|
|
1051
|
+
style: W({ borderBottomColor: n })
|
|
1052
1052
|
}, null, 6)
|
|
1053
1053
|
])
|
|
1054
1054
|
], 4))
|
|
@@ -1109,7 +1109,7 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-9bfa9cae"]]), cl = {
|
|
|
1109
1109
|
C("div", he(pe($(f))), [
|
|
1110
1110
|
(I(!0), P(Ee, null, pt($(a), ({ index: m, data: E }) => (I(), P("div", {
|
|
1111
1111
|
key: m,
|
|
1112
|
-
style:
|
|
1112
|
+
style: W({
|
|
1113
1113
|
height: `${$(d)(m).height}px`,
|
|
1114
1114
|
display: "flex"
|
|
1115
1115
|
})
|
|
@@ -1126,7 +1126,7 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-9bfa9cae"]]), cl = {
|
|
|
1126
1126
|
], 64));
|
|
1127
1127
|
}
|
|
1128
1128
|
});
|
|
1129
|
-
const
|
|
1129
|
+
const Dl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), vl = { style: { position: "absolute" } }, fl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("div", { class: "wrapper" }, null, -1)), hl = ["width", "height"], pl = /* @__PURE__ */ be(() => /* @__PURE__ */ C("title", null, "logo", -1)), ml = /* @__PURE__ */ be(() => /* @__PURE__ */ C("g", {
|
|
1130
1130
|
id: "group-1",
|
|
1131
1131
|
stroke: "none",
|
|
1132
1132
|
"stroke-width": "1",
|
|
@@ -1167,15 +1167,15 @@ const Rl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1167
1167
|
]));
|
|
1168
1168
|
}
|
|
1169
1169
|
});
|
|
1170
|
-
const
|
|
1170
|
+
const Rl = /* @__PURE__ */ J(_l, [["__scopeId", "data-v-40e00f20"]]);
|
|
1171
1171
|
export {
|
|
1172
1172
|
Tl as DefaultLoading,
|
|
1173
|
-
|
|
1173
|
+
Rl as Loading,
|
|
1174
1174
|
il as PullRefresh,
|
|
1175
1175
|
$l as ScrollBar,
|
|
1176
1176
|
Ol as SvgIcon,
|
|
1177
1177
|
Ll as ToastCreator,
|
|
1178
|
-
|
|
1178
|
+
Dl as VirtualList,
|
|
1179
1179
|
qe as allSelectedKey,
|
|
1180
1180
|
Ft as closeDialogKey,
|
|
1181
1181
|
Cl as dialogController,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.ui={},w.Vue))})(this,function(w,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function De(t,n={}){let o,l;return s=>{const a=Y(t),u=Y(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 Re(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const f=Y(t),p=Date.now()-l;if(a(),f<=0)return l=Date.now(),h();p>f&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},f)),!o&&!r&&(r=setTimeout(()=>s=!0,f)),s=!1}}function Ie(t){return t}function Me(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,f=e.customRef((p,d)=>(l=p,r=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge(De(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Re(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const ke=Z?window:void 0,Pe=Z?window.document:void 0;function Ae(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(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 He(){const t=e.getCurrentInstance(),n=Me(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ne=(t,n)=>{var o={};for(var l in t)Fe.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ve.call(t,l)&&(o[l]=t[l]);return o};function ze(t,n,o={}){const l=o,{window:r=ke}=l,s=Ne(l,["window"]);let a;const u=Ae(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},f=e.watch(()=>Se(t),d=>{h(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return ve(p),{isSupported:u,stop:p}}function je(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return ze(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:f})=>h+f,0),s.value=u.reduce((h,{blockSize:f})=>h+f,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 be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ke=0;function We(t,n={}){const o=e.ref(!1),{document:l=Pe,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ke}`}=n,u=e.ref(t);let h=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),l.head.appendChild(d),!o.value&&(h=e.watch(u,c=>{d.innerText=c},{immediate:!0}),o.value=!0)},p=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(f),s||ve(p),{id:a,css:u,unload:p,load:f,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ye=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Qe.call(n,o)&&Te(t,o,n[o]);return t};Ye({linear:Ie},{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 Le(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=je(s),u=e.ref(!0),h=ye(D,100);let f;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:S}={sum:0,height:0};return p.value.map((I,R)=>(typeof l=="number"?S=l:S=l(R),v+=S,{height:S,sum:v}))}),_=e.computed(()=>N(c.value.start)),E=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,S=Math.max(v-i,0);return g.value.slice(S,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch([a.width,a.height,p],([v,S])=>{(v||S)&&x()},{deep:!0}),e.watch(d,()=>{M(),h()});function M(){u.value=!1}function D(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(O)}function O(){if(s.value){d.value=s.value.scrollTop,i=H();let v=P(d.value),S=v+i+r;v=v-r,v=v<0?0:v,S=S>p.value.length?p.value.length:S,c.value={start:v,end:S},g.value=p.value.slice(v,S).map((I,R)=>({data:I,index:R+v}))}}function P(v){let S=0,I=b.value.length-1,R=-1;for(;S<=I;){const B=Math.floor((S+I)/2);b.value[B].sum>=v?(R=B,I=B-1):S=B+1}return Math.max(0,R)}function H(){let v=0,S=0,I=k();for(let R=I;R<b.value.length&&(v++,S+=b.value[R].height,!(S>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let S=b.value[v];return S?S.sum-S.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function k(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const S=z(v);s.value.scrollTop=S.sum-S.height,O()}}const Q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:P,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{x()},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 Ge(){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),f=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:f,selectAll:p,unselect:d,unselectAll:c}}function Xe(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 f(c){return!!o.value[c[n]]}function p(c){c.forEach(i=>{f(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function d(){r.value?a():s()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,f),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:p,toggleAll:d,isSelected:f,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(()=>_e(n==="colum"?F:G,50)),f=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),E=e.ref({top:0,height:0,sync(m=!1){E.value.top=d.value?.scrollTop||0,m&&(E.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:D=30,maxSpeed:x=30}=o;let O;const P=M,H=D,N=x,z=m=>m**1;let k=0;function K(m){if(cancelAnimationFrame(O),k=Q(m),k=Math.max(Math.min(k,N),-N),k!==0){const y=d.value;if(!y||!c.value)return;const $=E.value.height-_.value.height;let C=E.value.top+Number(k);C=Math.min(Math.max(0,C),$),y.scrollTop=C,W(),O=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const $=_.value,C=$.bottom-m;if(C<P)return H*z(1-C/P);const A=m-$.top;if(A<P)return-H*z(1-A/P)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-E.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<m.right&&y.right>m.left&&y.top<m.bottom&&y.bottom>m.top}function W(){E.value.sync();const{top:m,height:y}=E.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,$="dynamic-styles"){let C=document.getElementById($);C||(C=document.createElement("style"),C.id=$,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,Pt=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const $e=A[pe];if($e.selectorText===m&&$e.style.cssText===y)return}C.sheet.insertRule(Pt,q)}function S(m,y){p.value=!0,c.value=!0,E.value.height?E.value.sync():E.value.sync(!0),i.value.x=m,i.value.y=y+E.value.top,g.value.x=i.value.x,g.value.y=i.value.y,d.value?.classList.add("disable-scroll-behavior"),f.clear()}function I(m,y,$){!c.value||(p.value&&n==="colum"&&!L()&&(a(),p.value=!1),$?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+E.value.top,E.value.height+_.value.top),g.value.scrollTop=E.value.top,h.value())}function R(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(k||W(),h.value())}function L(){if(!c.value)return!1;const{width:m,height:y}=T.value;return!(Math.max(m,y)>5)}function U(){L()&&a()}function F(){L()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{u[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([u]):s([u])})}function G(){const m=[];let y=null,$=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),$=Math.max($,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=y;C<$+1;C++)u[`${t}`]=m[C],r([u]),f.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:S,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:d,observer:b}}function Ze(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:f.value})}});function d(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),u()}function g(_){try{if(!n.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(p),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function Je(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 f;function p(){clearTimeout(f)}function d(_){p(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),u(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){p();const{clientX:E,clientY:T}=_.targetTouches[0];u(E,T,()=>_.preventDefault())}function i(){p(),h()}function g(_){try{if(!l.init(_))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",d),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),et=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(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ht="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},tt=V(et,[["__scopeId","data-v-e171c24d"]]);function nt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(tt,{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 ot({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,r=e.ref(!1),{load:s}=We(`@keyframes delayLoad {
|
|
1
|
+
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.ui={},w.Vue))})(this,function(w,e){"use strict";var he;const Z=typeof window<"u",me=t=>typeof t=="function";Z&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Y(t){return typeof t=="function"?t():e.unref(t)}function ge(t,n){function o(...l){t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})}return o}function $e(t,n={}){let o,l;return s=>{const a=Y(t),u=Y(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 Re(t,n=!0,o=!0){let l=0,r,s=!0;const a=()=>{r&&(clearTimeout(r),r=void 0)};return h=>{const f=Y(t),p=Date.now()-l;if(a(),f<=0)return l=Date.now(),h();p>f&&(o||!s)?(l=Date.now(),h()):n&&(r=setTimeout(()=>{l=Date.now(),s=!0,a(),h()},f)),!o&&!r&&(r=setTimeout(()=>s=!0,f)),s=!1}}function Ie(t){return t}function Me(t,n){let o,l,r;const s=e.ref(!0),a=()=>{s.value=!0,r()};e.watch(t,a,{flush:"sync"});const u=me(n)?n:n.get,h=me(n)?void 0:n.set,f=e.customRef((p,d)=>(l=p,r=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(c){h?.(c)}}));return Object.isExtensible(f)&&(f.trigger=a),f}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function ye(t,n=200,o={}){return ge($e(n,o),t)}function _e(t,n=200,o=!1,l=!0){return ge(Re(n,o,l),t)}function Ee(t,n=!0){e.getCurrentInstance()?e.onMounted(t):n?t():e.nextTick(t)}function Se(t){var n;const o=Y(t);return(n=o?.$el)!=null?n:o}const ke=Z?window:void 0,Pe=Z?window.document:void 0;function Ae(t,n=!1){const o=e.ref(),l=()=>o.value=Boolean(t());return l(),Ee(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 He(){const t=e.getCurrentInstance(),n=Me(()=>null,()=>t.proxy.$el);return e.onUpdated(n.trigger),e.onMounted(n.trigger),n}var we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ne=(t,n)=>{var o={};for(var l in t)Fe.call(t,l)&&n.indexOf(l)<0&&(o[l]=t[l]);if(t!=null&&we)for(var l of we(t))n.indexOf(l)<0&&Ve.call(t,l)&&(o[l]=t[l]);return o};function ze(t,n,o={}){const l=o,{window:r=ke}=l,s=Ne(l,["window"]);let a;const u=Ae(()=>r&&"ResizeObserver"in r),h=()=>{a&&(a.disconnect(),a=void 0)},f=e.watch(()=>Se(t),d=>{h(),u.value&&r&&d&&(a=new ResizeObserver(n),a.observe(d,s))},{immediate:!0,flush:"post"}),p=()=>{h(),f()};return ve(p),{isSupported:u,stop:p}}function je(t,n={width:0,height:0},o={}){const{box:l="content-box"}=o,r=e.ref(n.width),s=e.ref(n.height);return ze(t,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(r.value=u.reduce((h,{inlineSize:f})=>h+f,0),s.value=u.reduce((h,{blockSize:f})=>h+f,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 be;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(be||(be={}));let Ke=0;function We(t,n={}){const o=e.ref(!1),{document:l=Pe,immediate:r=!0,manual:s=!1,id:a=`vueuse_styletag_${++Ke}`}=n,u=e.ref(t);let h=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(a)||l.createElement("style");d.type="text/css",d.id=a,n.media&&(d.media=n.media),l.head.appendChild(d),!o.value&&(h=e.watch(u,c=>{d.innerText=c},{immediate:!0}),o.value=!0)},p=()=>{!l||!o.value||(h(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return r&&!s&&Ee(f),s||ve(p),{id:a,css:u,unload:p,load:f,isLoaded:e.readonly(o)}}var Ue=Object.defineProperty,Ce=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Te=(t,n,o)=>n in t?Ue(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o,Ye=(t,n)=>{for(var o in n||(n={}))qe.call(n,o)&&Te(t,o,n[o]);if(Ce)for(var o of Ce(n))Qe.call(n,o)&&Te(t,o,n[o]);return t};Ye({linear:Ie},{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 Le(t,n){const{scrollEndHook:o,itemHeight:l,overscan:r=5}=n,s=e.ref(null),a=je(s),u=e.ref(!0),h=ye($,100);let f;const p=e.shallowRef(t),d=e.ref(0),c=e.ref({start:0,end:10});let i=0;const g=e.ref([]),b=e.computed(()=>{let{sum:v,height:S}={sum:0,height:0};return p.value.map((I,R)=>(typeof l=="number"?S=l:S=l(R),v+=S,{height:S,sum:v}))}),_=e.computed(()=>N(c.value.start)),E=e.computed(()=>typeof l=="number"?b.value.length*l:b.value[b.value.length-1]?.sum||0),T=e.computed(()=>{let v=g.value.length-r,S=Math.max(v-i,0);return g.value.slice(S,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch([a.width,a.height,p],([v,S])=>{(v||S)&&x()},{deep:!0}),e.watch(d,()=>{M(),h()});function M(){u.value=!1}function $(){u.value=!0,o?.()}function x(){cancelAnimationFrame(f),f=requestAnimationFrame(D)}function D(){if(s.value){d.value=s.value.scrollTop,i=H();let v=P(d.value),S=v+i+r;v=v-r,v=v<0?0:v,S=S>p.value.length?p.value.length:S,c.value={start:v,end:S},g.value=p.value.slice(v,S).map((I,R)=>({data:I,index:R+v}))}}function P(v){let S=0,I=b.value.length-1,R=-1;for(;S<=I;){const B=Math.floor((S+I)/2);b.value[B].sum>=v?(R=B,I=B-1):S=B+1}return Math.max(0,R)}function H(){let v=0,S=0,I=k();for(let R=I;R<b.value.length&&(v++,S+=b.value[R].height,!(S>=a.height.value));R++);return v}function N(v){if(typeof l=="number")return v*l;let S=b.value[v];return S?S.sum-S.height:0}function z(v){return b.value[v]||{sum:0,height:0}}function k(){let v=c.value.start;return v>=r&&(v+=r),v}function K(v){if(s.value){const S=z(v);s.value.scrollTop=S.sum-S.height,D()}}const Q=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:u.value?void 0:"none"}})),j=e.computed(()=>({style:{transform:`translate3d(0, ${_.value}px, 0)`,"will-change":"transform"}})),W={overflowY:"auto"};return{list:g,visiableList:T,getItemHeightData:z,getoffsetTopIndex:P,totalHeight:E,clientHeight:a.height,scrollTo:K,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{x()},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 Ge(){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),f=e.inject(re,t),p=e.inject(ae,t),d=e.inject(se,t),c=e.inject(ce,t);return{selected:r,isSelected:s,isAllSelected:a,toggle:u,toggleAll:h,select:f,selectAll:p,unselect:d,unselectAll:c}}function Xe(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 f(c){return!!o.value[c[n]]}function p(c){c.forEach(i=>{f(i)?delete o.value[i[n]]:o.value[i[n]]=!0})}function d(){r.value?a():s()}return e.provide(te,d),e.provide(ne,p),e.provide(oe,f),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:p,toggleAll:d,isSelected:f,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(()=>_e(n==="colum"?F:G,50)),f=new Set,p=e.ref(!0),d=e.ref(),c=e.ref(!1),i=e.ref({x:0,y:0}),g=e.ref({x:0,y:0,scrollTop:0}),b=new ResizeObserver(m=>_.value=m[0].target.getBoundingClientRect()),_=e.ref({}),E=e.ref({top:0,height:0,sync(m=!1){E.value.top=d.value?.scrollTop||0,m&&(E.value.height=d.value?.scrollHeight||0)}}),T=e.computed(()=>c.value?{left:Math.min(i.value.x,g.value.x)-_.value.left,top:Math.min(i.value.y,g.value.y)-_.value.top,width:Math.abs(i.value.x-g.value.x),height:Math.abs(i.value.y-g.value.y)}:{left:0,top:0,width:0,height:0}),{margin:M=50,startSpeed:$=30,maxSpeed:x=30}=o;let D;const P=M,H=$,N=x,z=m=>m**1;let k=0;function K(m){if(cancelAnimationFrame(D),k=Q(m),k=Math.max(Math.min(k,N),-N),k!==0){const y=d.value;if(!y||!c.value)return;const O=E.value.height-_.value.height;let C=E.value.top+Number(k);C=Math.min(Math.max(0,C),O),y.scrollTop=C,W(),D=requestAnimationFrame(()=>K(m))}}function Q(m){if(d.value){const O=_.value,C=O.bottom-m;if(C<P)return H*z(1-C/P);const A=m-O.top;if(A<P)return-H*z(1-A/P)}return 0}function j(m){const y={...T.value,right:0,bottom:0};return y.left+=_.value.left,y.top+=_.value.top-E.value.top,y.right=y.width+y.left,y.bottom=y.height+y.top,y.left<m.right&&y.right>m.left&&y.top<m.bottom&&y.bottom>m.top}function W(){E.value.sync();const{top:m,height:y}=E.value;g.value.y=Math.min(y+_.value.top,g.value.y+m-g.value.scrollTop),g.value.scrollTop=m}function v(m,y,O="dynamic-styles"){let C=document.getElementById(O);C||(C=document.createElement("style"),C.id=O,document.head.appendChild(C));const A=C.sheet.cssRules,q=A.length,Pt=`${m} { ${y} }`;for(let pe=0;pe<q;pe++){const Oe=A[pe];if(Oe.selectorText===m&&Oe.style.cssText===y)return}C.sheet.insertRule(Pt,q)}function S(m,y){p.value=!0,c.value=!0,E.value.height?E.value.sync():E.value.sync(!0),i.value.x=m,i.value.y=y+E.value.top,g.value.x=i.value.x,g.value.y=i.value.y,d.value?.classList.add("disable-scroll-behavior"),f.clear()}function I(m,y,O){!c.value||(p.value&&n==="colum"&&!L()&&(a(),p.value=!1),O?.(),K(y),g.value.x=Math.max(m,_.value.left),g.value.y=Math.min(y+E.value.top,E.value.height+_.value.top),g.value.scrollTop=E.value.top,h.value())}function R(){c.value=!1,d.value?.classList.remove("disable-scroll-behavior")}function B(){!c.value||(k||W(),h.value())}function L(){if(!c.value)return!1;const{width:m,height:y}=T.value;return!(Math.max(m,y)>5)}function U(){L()&&a()}function F(){L()||d.value?.querySelectorAll(`[${t}]`).forEach(m=>{u[`${t}`]=m.getAttribute(`${t}`),j(m.getBoundingClientRect())?r([u]):s([u])})}function G(){const m=[];let y=null,O=0;d.value?.querySelectorAll(`[${t}]`).forEach((C,A)=>{const q=C.getAttribute(`${t}`);m.push(q),j(C.getBoundingClientRect())?(y===null&&(y=A),y=Math.min(y,A),O=Math.max(O,A)):(u[`${t}`]=q,f.has(q)&&s([u]))});for(let C=y;C<O+1;C++)u[`${t}`]=m[C],r([u]),f.add(m[C])}function X(m){return!m?.value||(d.value=m.value,!d?.value)?!1:(b.observe(d.value),v(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:X,dragStart:S,dragMove:I,dragEnd:R,onScroll:B,isSingleClick:L,cancelSelectAllBySingleClick:U,selectFn:h,selectRange:T,isPressing:c,containerEl:d,observer:b}}function Ze(t){const n=de(t),{observer:o,selectRange:l}=n,{onScroll:r,dragStart:s,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:h}=n,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),p=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"absolute z-50 bg-blue-200 opacity-50",style:f.value})}});function d(_){_.button===0&&s(_.x,_.y)}function c(_){a(_.x,_.y)}function i(_){_.composedPath().some(T=>T?.getAttribute?.(t.attribute))||h(),u()}function g(_){try{if(!n.init(_))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(p),n.containerEl.value),n.containerEl.value?.addEventListener("scroll",r),n.containerEl.value?.addEventListener("mousedown",d),window.addEventListener("mousemove",c),window.addEventListener("mouseup",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",r),n.containerEl.value?.removeEventListener("mousedown",d),window.removeEventListener("mousemove",c),window.removeEventListener("mouseup",i)}return{init:g,unMount:b}}function Je(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 f;function p(){clearTimeout(f)}function d(_){p(),_.composedPath().some(T=>!!T?.getAttribute?.(t.attribute))&&(f=setTimeout(()=>{const{clientX:T,clientY:M}=_.targetTouches[0];a(T,M),n?.(),u(T,M,()=>_.preventDefault()),_.preventDefault()},o))}function c(_){p();const{clientX:E,clientY:T}=_.targetTouches[0];u(E,T,()=>_.preventDefault())}function i(){p(),h()}function g(_){try{if(!l.init(_))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",d),l.containerEl.value?.addEventListener("touchmove",c),window.addEventListener("touchcancel",i),window.addEventListener("touchend",i)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function b(){r.disconnect(),l.containerEl.value?.removeEventListener("scroll",s),l.containerEl.value?.removeEventListener("touchstart",d),l.containerEl.value?.removeEventListener("touchmove",c),window.removeEventListener("touchcancel",i),window.removeEventListener("touchEnd",i)}return{init:g,unMount:b}}const Be=Symbol(),et=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(Be,()=>n("update:visiable",!1)),(r,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:l,class:"lzc-modal"},[e.createElementVNode("div",{onClick:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2)])):e.createCommentVNode("",!0)]),_:3}))}}),Ht="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,r]of n)o[l]=r;return o},tt=V(et,[["__scopeId","data-v-e171c24d"]]);function nt(t){function n(o,l){const r=document.createElement("div"),s={setup(){return()=>e.h(tt,{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 ot({component:t,componentProps:n,delay:o=300}){const l=`${o}ms`,r=e.ref(!1),{load:s}=We(`@keyframes lzcDelayLoad {
|
|
2
2
|
to {
|
|
3
3
|
opacity: 1;
|
|
4
4
|
}
|
|
5
5
|
}
|
|
6
|
-
.delay-
|
|
6
|
+
.lzc-delay-loading {
|
|
7
7
|
opacity: 0;
|
|
8
|
-
animation:
|
|
9
|
-
}`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("delay-load")}),()=>r.value&&e.h(t,n)}});function u(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:u,unload:h}}const Ft="",lt={},rt=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function at(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16)}const st=V(lt,[["render",at],["__scopeId","data-v-76a2728a"]]),it=e.defineComponent({__name:"Toast",props:{message:null,position: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"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),zt="",ct=V(it,[["__scopeId","data-v-15ab4094"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class ut{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ct),{...xe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.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 dt=["xlink:href","fill","color"],ft=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,dt)],4))}});function pt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,f="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),E=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),D=e.computed(()=>M.value>s?0:M.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${D.value}px`:void 0}));function O(B){H(),d.value=B.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function P(){n.value.style.scrollBehavior=f,d.value=0,u()}function H(){a.value=!1}function N(){b.value||(a.value=!0)}function z(B){if(!b.value)return;let L=B.clientY-i.value.top-d.value;L<0?c.value=0:L>=E.value?c.value=E.value:c.value=L,n.value.scrollTo({top:c.value/E.value*T.value})}function k(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/T.value*E.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",O,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",P,{passive:!0})}const W=new MutationObserver(B=>{B.map(U=>U.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 S(){H(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(B,L,U="dynamic-styles"){let F=document.getElementById(U);F||(F=document.createElement("style"),F.id=U,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,m=`${B} { ${L} }`;for(let y=0;y<X;y++){const $=G[y];if($.selectorText===B&&$.style.cssText===L)return}F.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",k,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),S()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(p,()=>{H(),u()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const ht=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),mt=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=pt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:f}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function i(){p.value=!1}return n({uScrollBarReturn:a}),(g,b)=>(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(f))},[e.renderSlot(g.$slots,"default",{},()=>[ht],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Kt="",gt=V(mt,[["__scopeId","data-v-edec7292"]]),vt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},Et={key:0,class:"box-load"},St={class:"left-load"},wt={class:"right-load"},bt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ct={class:"pull-arrow"},Tt={key:1},Lt=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),f=e.ref(0),p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),E=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,x=>{x===0&&(r.value=-50,u.value=.3)}),e.watch(p,x=>{if(i.value===2)return;const O=Math.pow(x,o);O===0&&(r.value=-50),O<=50&&O>0&&(r.value=O-45,a.value=Math.pow(O,1.5),O>15?h.value=!0:h.value=!1),O>50&&(r.value=5,u.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(f.value===0&&(f.value=x.touches[0].pageY),d.value=0,D.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;f.value=0,d.value=300;const x=Math.pow(p.value,o);D.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,D.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},D=e.ref(null);return e.onMounted(()=>{D.value=document.querySelector(n.pullRefreshContainer),D.value.addEventListener("touchmove",T),D.value.addEventListener("touchend",M)}),(x,O)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[i.value==2?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",wt,[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(E))},[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Wt="",Oe=V(Lt,[["__scopeId","data-v-9bfa9cae"]]),Bt={inheritAttrs:!1},xt=e.defineComponent({...Bt,__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=Le(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:f,scrollTop:p}=r;n({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),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:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(f)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Ut="",Ot=V(xt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),$t={style:{position:"absolute"}},Dt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Rt=["width","height"],It=[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))],Mt=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",$t,[Dt,(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"},It,8,Rt))]))}}),Yt="",kt=V(Mt,[["__scopeId","data-v-40e00f20"]]);w.DefaultLoading=st,w.Loading=kt,w.PullRefresh=Oe,w.ScrollBar=gt,w.SvgIcon=ft,w.ToastCreator=ut,w.VirtualList=Ot,w.allSelectedKey=le,w.closeDialogKey=Be,w.dialogController=nt,w.isAllSelectedKey=ie,w.isSelectedKey=oe,w.selectAllKey=ae,w.selectKey=re,w.toggleAllKey=te,w.toggleKey=ne,w.unselectAllKey=ce,w.unselectKey=se,w.useDelayLoad=ot,w.useDragSelect=de,w.useDragSelectByMobile=Je,w.useDragSelectByPc=Ze,w.useSelectable=Xe,w.useSelectableInjectors=Ge,w.useVirtualList=Le,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
8
|
+
animation: lzcDelayLoad 0s ${l} forwards;
|
|
9
|
+
}`),a=e.defineComponent({setup(){const f=He();return e.onMounted(()=>{s(),f.value.classList.add("lzc-delay-loading")}),()=>e.h(t,n)}});function u(){r.value=!0}function h(){r.value=!1}return{LoadingComp:a,loading:r,load:u,unload:h}}const Ft="",lt={},rt=[(t=>(e.pushScopeId("data-v-76a2728a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))];function at(t,n){return e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),rt,16)}const st=V(lt,[["render",at],["__scopeId","data-v-76a2728a"]]),it=e.defineComponent({__name:"Toast",props:{message:null,position: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"}));return e.nextTick(()=>{l.value=o.value.offsetWidth/2,r.value=o.value.offsetHeight/2}),(h,f)=>(e.openBlock(),e.createElementBlock("div",{id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],4))}}),zt="",ct=V(it,[["__scopeId","data-v-15ab4094"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500};class ut{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ct),{...xe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.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 dt=["xlink:href","fill","color"],ft=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,dt)],4))}});function pt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:r={},maxHeightRatio:s=.9}=t,a=e.ref(!0),u=ye(N,100);let h,f="";const p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),g=e.ref({clientHeight:0}),b=e.computed(()=>!!d.value),_=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),E=e.computed(()=>i.value.clientHeight-g.value.clientHeight),T=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),M=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),$=e.computed(()=>M.value>s?0:M.value*i.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${c.value}px,0)`,height:l?`${$.value}px`:void 0}));function D(B){H(),d.value=B.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function P(){n.value.style.scrollBehavior=f,d.value=0,u()}function H(){a.value=!1}function N(){b.value||(a.value=!0)}function z(B){if(!b.value)return;let L=B.clientY-i.value.top-d.value;L<0?c.value=0:L>=E.value?c.value=E.value:c.value=L,n.value.scrollTo({top:c.value/E.value*T.value})}function k(){b.value||K()}function K(){cancelAnimationFrame(h),h=requestAnimationFrame(Q)}function Q(){n.value&&(p.value=r.scrollTop?.value??n.value.scrollTop,c.value=p.value/T.value*E.value)}function j(B){let L="addEventListener";B==="add"?L="addEventListener":L="removeEventListener",o.value?.[L]("pointerdown",D,{passive:!0}),window[L]("pointermove",z,{passive:!0}),window[L]("pointerup",P,{passive:!0})}const W=new MutationObserver(B=>{B.map(U=>U.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 S(){H(),setTimeout(()=>{g.value.clientHeight=o.value?.clientHeight??0,N()},150)}function I(B,L,U="dynamic-styles"){let F=document.getElementById(U);F||(F=document.createElement("style"),F.id=U,document.head.appendChild(F));const G=F.sheet.cssRules,X=G.length,m=`${B} { ${L} }`;for(let y=0;y<X;y++){const O=G[y];if(O.selectorText===B&&O.style.cssText===L)return}F.sheet.insertRule(m,X)}function R(){n.value&&o.value?(I(".hide-scrollbar","scrollbar-width: none; -ms-overflow-style: none;"),I(".hide-scrollbar::-webkit-scrollbar","display: none"),n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",k,{passive:!0}),j("add"),W.observe(n.value,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),setTimeout(()=>{v()},100),S()):console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(p,()=>{H(),u()}),{isScrollEnd:a,isDragSlider:b,offsetTop:c,scrollTop:p,scrollable:_,sliderPos:x,init:R,modifySliderEventListener:j}}const ht=(t=>(e.pushScopeId("data-v-edec7292"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),mt=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=pt({containerEl:s,sliderEl:r,autoHeight:l?o.autoHeight:!0,performance:o.performance}),{scrollable:u,isScrollEnd:h,sliderPos:f}=a,p=e.ref(!1),d=o.autoHide?e.computed(()=>p.value||!h.value):e.computed(()=>u.value);e.onMounted(()=>{e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function c(){p.value=!0}function i(){p.value=!1}return n({uScrollBarReturn:a}),(g,b)=>(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(f))},[e.renderSlot(g.$slots,"default",{},()=>[ht],!0)],36),[[e.vShow,e.unref(d)]])]),_:3}))}}),Kt="",gt=V(mt,[["__scopeId","data-v-edec7292"]]),vt=t=>(e.pushScopeId("data-v-9bfa9cae"),t=t(),e.popScopeId(),t),yt={class:"pull-refresh"},_t={key:0,class:"pull-arrow-circle"},Et={key:0,class:"box-load"},St={class:"left-load"},wt={class:"right-load"},bt=vt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ct={class:"pull-arrow"},Tt={key:1},Lt=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),f=e.ref(0),p=e.ref(0),d=e.ref(0),c=e.ref(0),i=e.ref(0),g=e.ref(),b=e.computed(()=>n.scrollTop),_=e.computed(()=>({transition:`${c.value}ms`,transform:`translate3d(0,${r.value}px, 0) scale(${s.value})`})),E=e.computed(()=>({borderColor:l,transition:c.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(i,x=>{x===0&&(r.value=-50,u.value=.3)}),e.watch(p,x=>{if(i.value===2)return;const D=Math.pow(x,o);D===0&&(r.value=-50),D<=50&&D>0&&(r.value=D-45,a.value=Math.pow(D,1.5),D>15?h.value=!0:h.value=!1),D>50&&(r.value=5,u.value=1,i.value)});const T=x=>{n.refreshOff||!n?.refresh||i.value!==2&&b.value===0&&(f.value===0&&(f.value=x.touches[0].pageY),d.value=0,$.value.style.transition=`${d.value}ms`,c.value=0,p.value=x.touches[0].pageY-f.value,$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},M=()=>{if(n.refreshOff||!n?.refresh||i.value===2)return;f.value=0,d.value=300;const x=Math.pow(p.value,o);$.value.style.transition=`${d.value}ms`,x>50?(i.value=2,p.value=Math.pow(50,1/o),$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,c.value=300,n?.refresh&&n?.refresh().then(()=>{g.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{g.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{i.value=0,p.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`,setTimeout(()=>{g.value=void 0},c.value)},600)})):(p.value=0,$.value.style.transform=`translate3d(0, ${Math.pow(p.value,o)}px, 0)`)},$=e.ref(null);return e.onMounted(()=>{$.value=document.querySelector(n.pullRefreshContainer),$.value.addEventListener("touchmove",T),$.value.addEventListener("touchend",M)}),(x,D)=>(e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(_))},[g.value?(e.openBlock(),e.createElementBlock("div",Tt,e.toDisplayString(g.value),1)):(e.openBlock(),e.createElementBlock("div",_t,[i.value==2?(e.openBlock(),e.createElementBlock("div",Et,[e.createElementVNode("div",St,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",wt,[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(E))},[e.createElementVNode("div",Ct,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:h.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Wt="",De=V(Lt,[["__scopeId","data-v-9bfa9cae"]]),Bt={inheritAttrs:!1},xt=e.defineComponent({...Bt,__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=Le(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:f,scrollTop:p}=r;n({vListReturn:r});const d="virtualListWrapper"+new Date().getTime();return(c,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(De,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(p),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...g)=>e.unref(a).onScroll&&e.unref(a).onScroll(...g)),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:g,data:b})=>(e.openBlock(),e.createElementBlock("div",{key:g,style:e.normalizeStyle({height:`${e.unref(f)(g).height}px`,display:"flex"})},[e.renderSlot(c.$slots,"default",{data:b,index:g},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Ut="",Dt=V(xt,[["__scopeId","data-v-e0fb787f"]]),fe=t=>(e.pushScopeId("data-v-40e00f20"),t=t(),e.popScopeId(),t),Ot={style:{position:"absolute"}},$t=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Rt=["width","height"],It=[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))],Mt=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",Ot,[$t,(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"},It,8,Rt))]))}}),Yt="",kt=V(Mt,[["__scopeId","data-v-40e00f20"]]);w.DefaultLoading=st,w.Loading=kt,w.PullRefresh=De,w.ScrollBar=gt,w.SvgIcon=ft,w.ToastCreator=ut,w.VirtualList=Dt,w.allSelectedKey=le,w.closeDialogKey=Be,w.dialogController=nt,w.isAllSelectedKey=ie,w.isSelectedKey=oe,w.selectAllKey=ae,w.selectKey=re,w.toggleAllKey=te,w.toggleKey=ne,w.unselectAllKey=ce,w.unselectKey=se,w.useDelayLoad=ot,w.useDragSelect=de,w.useDragSelectByMobile=Je,w.useDragSelectByPc=Ze,w.useSelectable=Xe,w.useSelectableInjectors=Ge,w.useVirtualList=Le,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -12,7 +12,7 @@ export declare function useDelayLoad<P>({ component, componentProps: props, dela
|
|
|
12
12
|
componentProps?: VNodeProps & P;
|
|
13
13
|
delay?: number;
|
|
14
14
|
}): {
|
|
15
|
-
LoadingComp: import("vue").DefineComponent<{}, () =>
|
|
15
|
+
LoadingComp: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
16
16
|
[key: string]: any;
|
|
17
17
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
18
18
|
loading: import("vue").Ref<boolean>;
|