@lazycatcloud/lzc-toolkit 0.0.114 → 0.0.115
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 +73 -70
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/image/Image.vue.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentScope as yt, onScopeDispose as Dt, getCurrentInstance as We, onMounted as se, nextTick as
|
|
1
|
+
import { getCurrentScope as yt, onScopeDispose as Dt, getCurrentInstance as We, onMounted as se, nextTick as Le, ref as D, watch as R, customRef as Nt, unref as m, readonly as ht, onUpdated as Tt, shallowRef as mt, computed as T, onUnmounted as Ze, inject as H, provide as Y, defineComponent as Q, h as X, render as re, openBlock as j, createBlock as ye, Transition as Ae, withCtx as xe, withDirectives as ce, createElementBlock as L, createElementVNode as E, withModifiers as ie, normalizeClass as K, renderSlot as De, createCommentVNode as ee, useCssVars as Ce, normalizeProps as pe, guardReactiveProps as we, pushScopeId as Me, popScopeId as de, normalizeStyle as $, toDisplayString as Oe, vShow as Ne, createVNode as le, onBeforeUnmount as _e, useSlots as pt, toRef as wt, Fragment as Ie, mergeProps as ue, renderList as It, toRefs as Ve } from "vue";
|
|
2
2
|
const Et = {
|
|
3
3
|
created(t, e) {
|
|
4
4
|
let n, o;
|
|
@@ -29,9 +29,9 @@ const Et = {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
var Be;
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
function
|
|
32
|
+
const ve = typeof window < "u", Ue = (t) => typeof t == "function";
|
|
33
|
+
ve && ((Be = window?.navigator) == null ? void 0 : Be.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
34
|
+
function ge(t) {
|
|
35
35
|
return typeof t == "function" ? t() : m(t);
|
|
36
36
|
}
|
|
37
37
|
function Ge(t, e) {
|
|
@@ -43,7 +43,7 @@ function Ge(t, e) {
|
|
|
43
43
|
function jt(t, e = {}) {
|
|
44
44
|
let n, o;
|
|
45
45
|
return (a) => {
|
|
46
|
-
const s =
|
|
46
|
+
const s = ge(t), u = ge(e.maxWait);
|
|
47
47
|
if (n && clearTimeout(n), s <= 0 || u !== void 0 && u <= 0)
|
|
48
48
|
return o && (clearTimeout(o), o = null), a();
|
|
49
49
|
u && !o && (o = setTimeout(() => {
|
|
@@ -59,7 +59,7 @@ function zt(t, e = !0, n = !0) {
|
|
|
59
59
|
l && (clearTimeout(l), l = void 0);
|
|
60
60
|
};
|
|
61
61
|
return (r) => {
|
|
62
|
-
const v =
|
|
62
|
+
const v = ge(t), c = Date.now() - o;
|
|
63
63
|
if (s(), v <= 0)
|
|
64
64
|
return o = Date.now(), r();
|
|
65
65
|
c > v && (n || !a) ? (o = Date.now(), r()) : e && (l = setTimeout(() => {
|
|
@@ -96,23 +96,23 @@ function Ye(t, e = 200, n = !1, o = !0) {
|
|
|
96
96
|
return Ge(zt(e, n, o), t);
|
|
97
97
|
}
|
|
98
98
|
function qe(t, e = !0) {
|
|
99
|
-
We() ? se(t) : e ? t() :
|
|
99
|
+
We() ? se(t) : e ? t() : Le(t);
|
|
100
100
|
}
|
|
101
101
|
function Je(t) {
|
|
102
102
|
var e;
|
|
103
|
-
const n =
|
|
103
|
+
const n = ge(t);
|
|
104
104
|
return (e = n?.$el) != null ? e : n;
|
|
105
105
|
}
|
|
106
|
-
const xt =
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
const xt = ve ? window : void 0, Ct = ve ? window.document : void 0;
|
|
107
|
+
ve && window.navigator;
|
|
108
|
+
ve && window.location;
|
|
109
109
|
function Ot(t, e = !1) {
|
|
110
110
|
const n = D(), o = () => n.value = Boolean(t());
|
|
111
111
|
return o(), qe(o, e), n;
|
|
112
112
|
}
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, je = "__vueuse_ssr_handlers__";
|
|
114
|
+
Ee[je] = Ee[je] || {};
|
|
115
|
+
Ee[je];
|
|
116
116
|
function _t() {
|
|
117
117
|
const t = We(), e = At(() => null, () => t.proxy.$el);
|
|
118
118
|
return Tt(e.trigger), se(e.trigger), e;
|
|
@@ -338,7 +338,7 @@ function Ht(t, e) {
|
|
|
338
338
|
innerProps: ne
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol(), lt = Symbol(), st = Symbol(), at = Symbol(), ut = Symbol(),
|
|
341
|
+
const et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol(), lt = Symbol(), st = Symbol(), at = Symbol(), ut = Symbol(), ze = Symbol(), it = Symbol();
|
|
342
342
|
function Wt(t, e) {
|
|
343
343
|
const n = Object.keys(t), o = Object.keys(e);
|
|
344
344
|
if (n.length !== o.length)
|
|
@@ -376,7 +376,7 @@ function uo() {
|
|
|
376
376
|
boolRef: T(() => !1),
|
|
377
377
|
numberRef: T(() => 0),
|
|
378
378
|
arrayRef: T(() => [])
|
|
379
|
-
}, a = H(ot, l), s = H(nt, e), u = H(ut, n), r = H(tt, t), v = H(et, t), c = H(lt, t), M = H(st, t), f = H(at, t), g = H(
|
|
379
|
+
}, a = H(ot, l), s = H(nt, e), u = H(ut, n), r = H(tt, t), v = H(et, t), c = H(lt, t), M = H(st, t), f = H(at, t), g = H(ze, t), d = H(it, o);
|
|
380
380
|
return {
|
|
381
381
|
selected: a,
|
|
382
382
|
isSelected: s,
|
|
@@ -463,7 +463,7 @@ function io(t, e) {
|
|
|
463
463
|
const { value: i } = u;
|
|
464
464
|
i ? v() : r();
|
|
465
465
|
}
|
|
466
|
-
return Y(et, N), Y(tt, d), Y(nt, f), Y(ot, a), Y(lt, c), Y(st, r), Y(at, M), Y(ut, u), Y(
|
|
466
|
+
return Y(et, N), Y(tt, d), Y(nt, f), Y(ot, a), Y(lt, c), Y(st, r), Y(at, M), Y(ut, u), Y(ze, v), Y(ze, v), Y(it, s), {
|
|
467
467
|
selected: a,
|
|
468
468
|
select: c,
|
|
469
469
|
selectAll: r,
|
|
@@ -476,7 +476,7 @@ function io(t, e) {
|
|
|
476
476
|
selectedCount: s
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function me(t) {
|
|
480
480
|
return () => {
|
|
481
481
|
console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
|
|
482
482
|
};
|
|
@@ -488,9 +488,9 @@ function rt({
|
|
|
488
488
|
getSelectMap: o = () => ({})
|
|
489
489
|
}) {
|
|
490
490
|
const {
|
|
491
|
-
select: l =
|
|
492
|
-
unselect: a =
|
|
493
|
-
unselectAll: s =
|
|
491
|
+
select: l = me("\u9009\u62E9"),
|
|
492
|
+
unselect: a = me("\u53D6\u6D88\u9009\u62E9"),
|
|
493
|
+
unselectAll: s = me("\u53D6\u6D88\u5168\u9009")
|
|
494
494
|
} = o();
|
|
495
495
|
let u = {};
|
|
496
496
|
const r = T(
|
|
@@ -552,8 +552,8 @@ function rt({
|
|
|
552
552
|
let x = document.getElementById(U);
|
|
553
553
|
x || (x = document.createElement("style"), x.id = U, document.head.appendChild(x));
|
|
554
554
|
const W = x.sheet.cssRules, oe = W.length, ft = `${h} { ${p} }`;
|
|
555
|
-
for (let
|
|
556
|
-
const Qe = W[
|
|
555
|
+
for (let Te = 0; Te < oe; Te++) {
|
|
556
|
+
const Qe = W[Te];
|
|
557
557
|
if (Qe.selectorText === h && Qe.style.cssText === p)
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
@@ -580,7 +580,7 @@ function rt({
|
|
|
580
580
|
const { width: h, height: p } = I.value;
|
|
581
581
|
return !(Math.max(h, p) > 5);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function he() {
|
|
584
584
|
S() && s();
|
|
585
585
|
}
|
|
586
586
|
function dt() {
|
|
@@ -611,7 +611,7 @@ function rt({
|
|
|
611
611
|
dragEnd: k,
|
|
612
612
|
onScroll: C,
|
|
613
613
|
isSingleClick: S,
|
|
614
|
-
cancelSelectAllBySingleClick:
|
|
614
|
+
cancelSelectAllBySingleClick: he,
|
|
615
615
|
selectFn: r,
|
|
616
616
|
selectRange: I,
|
|
617
617
|
isPressing: f,
|
|
@@ -731,9 +731,9 @@ const Zt = Symbol(), Vt = {
|
|
|
731
731
|
const n = t, o = () => {
|
|
732
732
|
n.closeOnClickOverlay && e("update:visiable", !1);
|
|
733
733
|
};
|
|
734
|
-
return Y(Zt, () => e("update:visiable", !1)), (l, a) => (j(),
|
|
735
|
-
default:
|
|
736
|
-
t.visiable ?
|
|
734
|
+
return Y(Zt, () => e("update:visiable", !1)), (l, a) => (j(), ye(Ae, { name: "modal" }, {
|
|
735
|
+
default: xe(() => [
|
|
736
|
+
t.visiable ? ce((j(), L("div", Vt, [
|
|
737
737
|
E("div", {
|
|
738
738
|
onMousedown: a[0] || (a[0] = ie(() => {
|
|
739
739
|
}, ["stop"])),
|
|
@@ -825,7 +825,7 @@ function vo({
|
|
|
825
825
|
}
|
|
826
826
|
return { LoadingComp: o, loading: l, load: a, unload: s };
|
|
827
827
|
}
|
|
828
|
-
const Xt = (t) => (
|
|
828
|
+
const Xt = (t) => (Me("data-v-f86c8393"), t = t(), de(), t), qt = /* @__PURE__ */ Xt(() => /* @__PURE__ */ E("div", { class: "ldio-mm5gwljcryb" }, [
|
|
829
829
|
/* @__PURE__ */ E("div")
|
|
830
830
|
], -1)), Jt = [
|
|
831
831
|
qt
|
|
@@ -836,10 +836,10 @@ const Xt = (t) => (ce("data-v-f86c8393"), t = t(), Me(), t), qt = /* @__PURE__ *
|
|
|
836
836
|
height: { default: 24 }
|
|
837
837
|
},
|
|
838
838
|
setup(t) {
|
|
839
|
-
return
|
|
839
|
+
return Ce((e) => ({
|
|
840
840
|
"226a081e": t.width + "px",
|
|
841
841
|
"35610f1c": t.height + "px"
|
|
842
|
-
})), (e, n) => (j(), L("div",
|
|
842
|
+
})), (e, n) => (j(), L("div", pe(we(e.$attrs)), Jt, 16));
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
845
|
const tn = /* @__PURE__ */ F(en, [["__scopeId", "data-v-f86c8393"]]), nn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", on = { class: "loading-wrap" }, ln = ["src"], sn = /* @__PURE__ */ Q({
|
|
@@ -848,7 +848,7 @@ const tn = /* @__PURE__ */ F(en, [["__scopeId", "data-v-f86c8393"]]), nn = "data
|
|
|
848
848
|
delay: { default: "0.15s" }
|
|
849
849
|
},
|
|
850
850
|
setup(t) {
|
|
851
|
-
return
|
|
851
|
+
return Ce((e) => ({
|
|
852
852
|
"8b276c48": t.delay
|
|
853
853
|
})), (e, n) => (j(), L("div", on, [
|
|
854
854
|
E("img", {
|
|
@@ -897,16 +897,16 @@ const un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
897
897
|
function u() {
|
|
898
898
|
n.closeOnClick && e("close");
|
|
899
899
|
}
|
|
900
|
-
return (r, v) => (j(),
|
|
900
|
+
return (r, v) => (j(), ye(Ae, {
|
|
901
901
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
902
902
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
903
903
|
}, {
|
|
904
|
-
default:
|
|
904
|
+
default: xe(() => [
|
|
905
905
|
E("div", {
|
|
906
906
|
id: o,
|
|
907
907
|
style: $(m(l))
|
|
908
908
|
}, [
|
|
909
|
-
|
|
909
|
+
ce(E("div", {
|
|
910
910
|
class: K(`${o} ${t.className}`),
|
|
911
911
|
onClick: ie(s, ["stop"])
|
|
912
912
|
}, [
|
|
@@ -932,11 +932,11 @@ const un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
932
932
|
t.message ? (j(), L("div", {
|
|
933
933
|
key: 2,
|
|
934
934
|
class: K(`${o}-message`)
|
|
935
|
-
},
|
|
935
|
+
}, Oe(t.message), 3)) : ee("", !0)
|
|
936
936
|
], 6)
|
|
937
937
|
], 10, Mn)
|
|
938
938
|
], 10, cn), [
|
|
939
|
-
[
|
|
939
|
+
[Ne, t.visible]
|
|
940
940
|
])
|
|
941
941
|
], 4)
|
|
942
942
|
]),
|
|
@@ -1051,7 +1051,7 @@ const yn = ["onClick"], Dn = /* @__PURE__ */ Q({
|
|
|
1051
1051
|
function r() {
|
|
1052
1052
|
!e.buttonClickEvent || e.buttonClickEvent();
|
|
1053
1053
|
}
|
|
1054
|
-
return
|
|
1054
|
+
return Le(() => {
|
|
1055
1055
|
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1056
1056
|
}), (v, c) => (j(), L("div", {
|
|
1057
1057
|
onClick: ie(r, ["stop"]),
|
|
@@ -1064,7 +1064,7 @@ const yn = ["onClick"], Dn = /* @__PURE__ */ Q({
|
|
|
1064
1064
|
E("div", {
|
|
1065
1065
|
style: $(m(u))
|
|
1066
1066
|
}, [
|
|
1067
|
-
E("span", null,
|
|
1067
|
+
E("span", null, Oe(t.message), 1)
|
|
1068
1068
|
], 4)
|
|
1069
1069
|
], 12, yn));
|
|
1070
1070
|
}
|
|
@@ -1101,7 +1101,7 @@ class yo {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
const hn = ["xlink:href", "fill", "color"],
|
|
1104
|
+
const hn = ["xlink:href", "fill", "color"], fe = /* @__PURE__ */ Q({
|
|
1105
1105
|
__name: "SvgIcon",
|
|
1106
1106
|
props: {
|
|
1107
1107
|
name: null,
|
|
@@ -1193,7 +1193,7 @@ function Tn(t) {
|
|
|
1193
1193
|
}), window[S]("pointermove", P, { passive: !0 }), window[S]("pointerup", _, { passive: !0 });
|
|
1194
1194
|
}
|
|
1195
1195
|
const z = new MutationObserver((C) => {
|
|
1196
|
-
(s == "classList" || C.map((
|
|
1196
|
+
(s == "classList" || C.map((he) => he.oldValue).join().includes("height")) && w();
|
|
1197
1197
|
});
|
|
1198
1198
|
function w() {
|
|
1199
1199
|
d.value.top = e.value?.getBoundingClientRect().top ?? 0, d.value.scrollHeight = e.value?.scrollHeight ?? 0, d.value.clientHeight = e.value?.clientHeight ?? 0;
|
|
@@ -1232,7 +1232,7 @@ function Tn(t) {
|
|
|
1232
1232
|
modifySliderEventListener: J
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
|
-
const mn = (t) => (
|
|
1235
|
+
const mn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), pn = /* @__PURE__ */ mn(() => /* @__PURE__ */ E("div", { class: "default-slider" }, null, -1)), wn = /* @__PURE__ */ Q({
|
|
1236
1236
|
__name: "ScrollBar",
|
|
1237
1237
|
props: {
|
|
1238
1238
|
containerEl: null,
|
|
@@ -1259,7 +1259,7 @@ const mn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), pn = /* @__PURE__ *
|
|
|
1259
1259
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1260
1260
|
);
|
|
1261
1261
|
se(() => {
|
|
1262
|
-
f(),
|
|
1262
|
+
f(), Le(() => {
|
|
1263
1263
|
s.init();
|
|
1264
1264
|
});
|
|
1265
1265
|
}), Ze(() => {
|
|
@@ -1271,9 +1271,9 @@ const mn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), pn = /* @__PURE__ *
|
|
|
1271
1271
|
function d() {
|
|
1272
1272
|
c.value = !1;
|
|
1273
1273
|
}
|
|
1274
|
-
return e({ uScrollBarReturn: s }), (N, i) => (j(),
|
|
1275
|
-
default:
|
|
1276
|
-
|
|
1274
|
+
return e({ uScrollBarReturn: s }), (N, i) => (j(), ye(Ae, null, {
|
|
1275
|
+
default: xe(() => [
|
|
1276
|
+
ce(E("div", {
|
|
1277
1277
|
ref_key: "sliderRef",
|
|
1278
1278
|
ref: l,
|
|
1279
1279
|
class: "slider-wrapper",
|
|
@@ -1285,14 +1285,14 @@ const mn = (t) => (ce("data-v-efefe52c"), t = t(), Me(), t), pn = /* @__PURE__ *
|
|
|
1285
1285
|
pn
|
|
1286
1286
|
], !0)
|
|
1287
1287
|
], 36), [
|
|
1288
|
-
[
|
|
1288
|
+
[Ne, m(M)]
|
|
1289
1289
|
])
|
|
1290
1290
|
]),
|
|
1291
1291
|
_: 3
|
|
1292
1292
|
}));
|
|
1293
1293
|
}
|
|
1294
1294
|
});
|
|
1295
|
-
const Do = /* @__PURE__ */ F(wn, [["__scopeId", "data-v-efefe52c"]]), In = (t) => (
|
|
1295
|
+
const Do = /* @__PURE__ */ F(wn, [["__scopeId", "data-v-efefe52c"]]), In = (t) => (Me("data-v-18377f18"), t = t(), de(), t), En = { class: "pull-refresh" }, jn = {
|
|
1296
1296
|
key: 0,
|
|
1297
1297
|
class: "pull-arrow-circle"
|
|
1298
1298
|
}, zn = {
|
|
@@ -1358,7 +1358,7 @@ const Do = /* @__PURE__ */ F(wn, [["__scopeId", "data-v-efefe52c"]]), In = (t) =
|
|
|
1358
1358
|
class: "pull-refresh-box",
|
|
1359
1359
|
style: $(m(i))
|
|
1360
1360
|
}, [
|
|
1361
|
-
d.value ? (j(), L("div", On,
|
|
1361
|
+
d.value ? (j(), L("div", On, Oe(d.value), 1)) : (j(), L("div", jn, [
|
|
1362
1362
|
g.value == 2 ? (j(), L("div", zn, [
|
|
1363
1363
|
E("div", Ln, [
|
|
1364
1364
|
E("div", {
|
|
@@ -1422,7 +1422,7 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1422
1422
|
vListReturn: l
|
|
1423
1423
|
});
|
|
1424
1424
|
const M = "virtualListWrapper" + new Date().getTime();
|
|
1425
|
-
return (f, g) => (j(), L(
|
|
1425
|
+
return (f, g) => (j(), L(Ie, null, [
|
|
1426
1426
|
le(Sn, {
|
|
1427
1427
|
refresh: t.refresh,
|
|
1428
1428
|
refreshOff: t.refreshOff,
|
|
@@ -1438,9 +1438,9 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1438
1438
|
ref: m(s).ref,
|
|
1439
1439
|
class: "virtualList"
|
|
1440
1440
|
}, f.$attrs), [
|
|
1441
|
-
E("div",
|
|
1442
|
-
E("div",
|
|
1443
|
-
(j(!0), L(
|
|
1441
|
+
E("div", pe(we(m(u))), [
|
|
1442
|
+
E("div", pe(we(m(r))), [
|
|
1443
|
+
(j(!0), L(Ie, null, It(m(a), ({ index: d, data: N }) => (j(), L("div", {
|
|
1444
1444
|
key: d,
|
|
1445
1445
|
style: $({
|
|
1446
1446
|
height: `${m(v)(d).height}px`,
|
|
@@ -1459,7 +1459,7 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1459
1459
|
], 64));
|
|
1460
1460
|
}
|
|
1461
1461
|
});
|
|
1462
|
-
const No = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-e0fb787f"]]), ke = (t) => (
|
|
1462
|
+
const No = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-e0fb787f"]]), ke = (t) => (Me("data-v-c986249d"), t = t(), de(), t), Qn = { style: { position: "absolute" } }, Bn = /* @__PURE__ */ ke(() => /* @__PURE__ */ E("div", { class: "wrapper" }, null, -1)), Un = ["width", "height"], Yn = /* @__PURE__ */ ke(() => /* @__PURE__ */ E("title", null, "logo", -1)), $n = /* @__PURE__ */ ke(() => /* @__PURE__ */ E("g", {
|
|
1463
1463
|
id: "group-1",
|
|
1464
1464
|
stroke: "none",
|
|
1465
1465
|
"stroke-width": "1",
|
|
@@ -1483,7 +1483,7 @@ const No = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-e0fb787f"]]), ke = (t) =
|
|
|
1483
1483
|
},
|
|
1484
1484
|
setup(t) {
|
|
1485
1485
|
const e = t;
|
|
1486
|
-
|
|
1486
|
+
Ce((o) => ({
|
|
1487
1487
|
"5e400569": n
|
|
1488
1488
|
}));
|
|
1489
1489
|
const n = `${e.duration}ms`;
|
|
@@ -1534,14 +1534,15 @@ function Mt(t, e) {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
return { el: n, imgSrc: o, isError: a, hasError: s, isSupport: u, cancel: v, handleError: r };
|
|
1536
1536
|
}
|
|
1537
|
-
const Wn = (t) => (
|
|
1537
|
+
const Wn = (t) => (Me("data-v-9ecf66ee"), t = t(), de(), t), Zn = ["title"], Vn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ E("span", { class: "text-[14px] text-[#ACACAC]" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), Gn = ["src"], Kn = ["src"], Xn = ["title"], qn = { inheritAttrs: !1 }, Jn = /* @__PURE__ */ Q({
|
|
1538
1538
|
...qn,
|
|
1539
1539
|
__name: "Image",
|
|
1540
1540
|
props: {
|
|
1541
1541
|
src: null,
|
|
1542
1542
|
mime: null,
|
|
1543
1543
|
thumbnail: null,
|
|
1544
|
-
isShowSrc: { type: Boolean }
|
|
1544
|
+
isShowSrc: { type: Boolean },
|
|
1545
|
+
isFullyLoadedVisible: { type: Boolean }
|
|
1545
1546
|
},
|
|
1546
1547
|
setup(t) {
|
|
1547
1548
|
const e = t, n = D(!1), o = D(!1), { src: l, mime: a } = Ve(e), { el: s, imgSrc: u, isSupport: r, hasError: v, cancel: c, handleError: M } = Mt(
|
|
@@ -1558,13 +1559,13 @@ const Wn = (t) => (ce("data-v-a79bc25a"), t = t(), Me(), t), Zn = ["title"], Vn
|
|
|
1558
1559
|
function d(N) {
|
|
1559
1560
|
N ? M() : o.value = !0, n.value = !0;
|
|
1560
1561
|
}
|
|
1561
|
-
return (N, i) => (j(), L(
|
|
1562
|
-
n.value ? ee("", !0) : (j(),
|
|
1562
|
+
return (N, i) => (j(), L(Ie, null, [
|
|
1563
|
+
n.value ? ee("", !0) : (j(), ye(m(f), { key: 0 })),
|
|
1563
1564
|
m(r) ? m(v) ? (j(), L("div", ue({ key: 3 }, N.$attrs, {
|
|
1564
1565
|
title: m(u),
|
|
1565
1566
|
class: "tip-wrap"
|
|
1566
1567
|
}), [
|
|
1567
|
-
le(
|
|
1568
|
+
le(fe, {
|
|
1568
1569
|
class: "w-[92px] h-[92px]",
|
|
1569
1570
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1570
1571
|
})
|
|
@@ -1579,18 +1580,20 @@ const Wn = (t) => (ce("data-v-a79bc25a"), t = t(), Me(), t), Zn = ["title"], Vn
|
|
|
1579
1580
|
onError: i[1] || (i[1] = (y) => d()),
|
|
1580
1581
|
src: t.thumbnail
|
|
1581
1582
|
}), null, 16, Gn)) : ee("", !0),
|
|
1582
|
-
t.isShowSrc || o.value ? (j(), L("img", ue({ key: 1 }, N.$attrs, {
|
|
1583
|
+
t.isShowSrc || o.value ? ce((j(), L("img", ue({ key: 1 }, N.$attrs, {
|
|
1583
1584
|
ref_key: "el",
|
|
1584
1585
|
ref: s,
|
|
1585
1586
|
onLoad: i[2] || (i[2] = (y) => g(!0)),
|
|
1586
1587
|
onError: i[3] || (i[3] = (y) => d(!0)),
|
|
1587
1588
|
src: m(u)
|
|
1588
|
-
}), null, 16, Kn))
|
|
1589
|
+
}), null, 16, Kn)), [
|
|
1590
|
+
[Ne, o.value || !t.isFullyLoadedVisible]
|
|
1591
|
+
]) : ee("", !0)
|
|
1589
1592
|
], !0) : (j(), L("div", ue({ key: 1 }, N.$attrs, {
|
|
1590
1593
|
title: m(u),
|
|
1591
1594
|
class: "tip-wrap"
|
|
1592
1595
|
}), [
|
|
1593
|
-
le(
|
|
1596
|
+
le(fe, {
|
|
1594
1597
|
class: "icon",
|
|
1595
1598
|
name: "\u4E0D\u652F\u6301\u663E\u793A"
|
|
1596
1599
|
}),
|
|
@@ -1599,7 +1602,7 @@ const Wn = (t) => (ce("data-v-a79bc25a"), t = t(), Me(), t), Zn = ["title"], Vn
|
|
|
1599
1602
|
], 64));
|
|
1600
1603
|
}
|
|
1601
1604
|
});
|
|
1602
|
-
const To = /* @__PURE__ */ F(Jn, [["__scopeId", "data-v-
|
|
1605
|
+
const To = /* @__PURE__ */ F(Jn, [["__scopeId", "data-v-9ecf66ee"]]), eo = ["title"], to = ["src"], no = ["title"], oo = /* @__PURE__ */ Q({
|
|
1603
1606
|
__name: "Thumbnail",
|
|
1604
1607
|
props: {
|
|
1605
1608
|
src: null,
|
|
@@ -1615,11 +1618,11 @@ const To = /* @__PURE__ */ F(Jn, [["__scopeId", "data-v-a79bc25a"]]), eo = ["tit
|
|
|
1615
1618
|
title: m(s),
|
|
1616
1619
|
class: "flex items-center justify-center"
|
|
1617
1620
|
}, [
|
|
1618
|
-
le(
|
|
1621
|
+
le(fe, {
|
|
1619
1622
|
class: "w-[30%] h-[30%]",
|
|
1620
1623
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1621
1624
|
})
|
|
1622
|
-
], 8, no)) :
|
|
1625
|
+
], 8, no)) : ce((j(), L("img", {
|
|
1623
1626
|
key: 1,
|
|
1624
1627
|
ref_key: "el",
|
|
1625
1628
|
ref: a,
|
|
@@ -1628,13 +1631,13 @@ const To = /* @__PURE__ */ F(Jn, [["__scopeId", "data-v-a79bc25a"]]), eo = ["tit
|
|
|
1628
1631
|
onError: f[1] || (f[1] = (...g) => m(c) && m(c)(...g)),
|
|
1629
1632
|
src: m(s)
|
|
1630
1633
|
}, null, 40, to)), [
|
|
1631
|
-
[
|
|
1634
|
+
[Ne, n.value]
|
|
1632
1635
|
]) : (j(), L("div", {
|
|
1633
1636
|
key: 0,
|
|
1634
1637
|
title: m(s),
|
|
1635
1638
|
class: "flex items-center justify-center"
|
|
1636
1639
|
}, [
|
|
1637
|
-
le(
|
|
1640
|
+
le(fe, {
|
|
1638
1641
|
class: "w-[30%] h-[30%]",
|
|
1639
1642
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
1640
1643
|
})
|
|
@@ -1650,7 +1653,7 @@ export {
|
|
|
1650
1653
|
go as PageLoading,
|
|
1651
1654
|
Sn as PullRefresh,
|
|
1652
1655
|
Do as ScrollBar,
|
|
1653
|
-
|
|
1656
|
+
fe as SvgIcon,
|
|
1654
1657
|
mo as Thumbnail,
|
|
1655
1658
|
yo as ToastCreator,
|
|
1656
1659
|
No as VirtualList,
|
|
@@ -1665,7 +1668,7 @@ export {
|
|
|
1665
1668
|
it as selectedCountKey,
|
|
1666
1669
|
et as toggleAllKey,
|
|
1667
1670
|
tt as toggleKey,
|
|
1668
|
-
|
|
1671
|
+
ze as unselectAllKey,
|
|
1669
1672
|
at as unselectKey,
|
|
1670
1673
|
fo as useDelayAsync,
|
|
1671
1674
|
vo as useDelayLoad,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const pe={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const r=a.clientX,u=a.clientY,g=Math.abs(r-o),d=Math.abs(u-l);g>5||d>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},be={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var ye;const H=typeof window<"u",he=n=>typeof n=="function";H&&((ye=window?.navigator)==null?void 0:ye.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Be(n,t={}){let o,l;return i=>{const a=K(n),r=K(t.maxWait);if(o&&clearTimeout(o),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},r)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Qe(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=K(n),d=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();d>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function Ue(n){return n}function Ye(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=he(t)?t:t.get,u=he(t)?void 0:t.set,g=e.customRef((d,M)=>(l=d,s=M,{get(){return i.value&&(o=r(),i.value=!1),l(),o},set(p){u?.(p)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function Te(n,t=200,o={}){return Ne(Be(t,o),n)}function we(n,t=200,o=!1,l=!0){return Ne(Qe(t,o,l),n)}function Ee(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ie(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Pe=H?window.document:void 0;H&&window.navigator,H&&window.location;function Re(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ee(l,t),o}const q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";q[J]=q[J]||{},q[J];function Fe(){const n=e.getCurrentInstance(),t=Ye(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(n,t)=>{var o={};for(var l in n)Ve.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&ze)for(var l of ze(n))t.indexOf(l)<0&&He.call(n,l)&&(o[l]=n[l]);return o};function Ze(n,t,o={}){const l=o,{window:s=$e}=l,i=We(l,["window"]);let a;const r=Re(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>Ie(n),M=>{u(),r.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,i))},{immediate:!0,flush:"post"}),d=()=>{u(),g()};return De(d),{isSupported:r,stop:d}}function Ke(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ze(n,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((u,{inlineSize:g})=>u+g,0),i.value=r.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>Ie(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var je;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(je||(je={}));let Ge=0;function ee(n,t={}){const o=e.ref(!1),{document:l=Pe,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ge}`}=t,r=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const M=l.getElementById(a)||l.createElement("style");M.type="text/css",M.id=a,t.media&&(M.media=t.media),l.head.appendChild(M),!o.value&&(u=e.watch(r,p=>{M.innerText=p},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Ee(g),i||De(d),{id:a,css:r,unload:d,load:g,isLoaded:e.readonly(o)}}var Xe=Object.defineProperty,Le=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?Xe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,et=(n,t)=>{for(var o in t||(t={}))qe.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))Je.call(t,o)&&Ce(n,o,t[o]);return n};et({linear:Ue},{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 Ae(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ke(i),r=e.ref(!0),u=Te(U,100);let g;const d=e.shallowRef(n),M=e.ref(0),p=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let f=0;const N=e.ref([]),c=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return d.value.map((x,S)=>(typeof l=="number"?w=l:w=l(S),I+=w,{height:w,sum:I}))}),y=e.computed(()=>$(p.value.start)),E=e.computed(()=>typeof l=="number"?c.value.length*l:c.value[c.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=m.value;return N.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(d,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&C()},{deep:!0}),e.watch(M,()=>{Q(),u()});function Q(){r.value=!1}function U(){r.value=!0,o?.()}function C(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){M.value=i.value.scrollTop;let I=A(M.value);f=Y(I);let w=Math.max(0,I-s),x=Math.min(I+f+s,d.value.length);p.value={start:w,end:x},N.value=d.value.slice(w,x).map((S,L)=>({data:S,index:L+w})),m.value.start=I-w,m.value.end=m.value.start+f}}function A(I){let w=0,x=c.value.length-1,S=-1;for(;w<=x;){const L=Math.floor((w+x)/2);c.value[L].sum>=I?(S=L,x=L-1):w=L+1}return Math.max(0,S)}function Y(I){let w=0,x=0;for(let S=I;S<c.value.length&&(w++,x+=c.value[S].height,!(x>=a.height.value));S++);return w}function $(I){if(typeof l=="number")return I*l;let w=c.value[I];return w?w.sum-w.height:0}function b(I){return c.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:r.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${y.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:N,visiableList:O,getItemHeightData:b,getoffsetTopIndex:A,totalHeight:E,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{C()},style:P},wrapperProps:Z,innerProps:F}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),G=Symbol(),ce=Symbol();function tt(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function nt(n,t,o){const l=n.reduce((d,M)=>(d.set(M[o],M),d),new Map),s=[],i=[],a=[],r=new Set,u=2500,g=Math.ceil(t.length/u);for(let d=0;d<g;d++){const M=d*u,p=M+u,m=t.slice(M,p);for(const f of m){const N=f[o],c=l.get(N);!c&&f?s.push(f):c&&!f?i.push(c):c&&f&&(tt(c,f)||a.push(f)),r.add(N),l.delete(N)}}for(const[d,M]of l)r.has(d)||i.push(M);return{added:s,removed:i,modified:a}}function ot(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(le,s),a=e.inject(oe,t),r=e.inject(re,o),u=e.inject(ne,n),g=e.inject(te,n),d=e.inject(se,n),M=e.inject(ae,n),p=e.inject(ie,n),m=e.inject(G,n),f=e.inject(ce,l);return{selected:i,isSelected:a,isAllSelected:r,toggle:u,toggleAll:g,select:d,selectAll:M,unselect:p,unselectAll:m,selectedCount:f}}function lt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,c=>{s.value=c.reduce((y,E)=>(y.set(E[t],E),y),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let c=[];if(o.value!=null)o.value&&(c=Array.from(s.value.values()));else if(l.value.size){let y;l.value.forEach(E=>{y=s.value.get(E),y&&c.push(y)})}return c}),a=e.computed(()=>{let c=0;return o.value!=null?o.value&&(c=s.value.size):c=l.value.size,c}),r=e.computed(()=>{let c;if(o.value!=null)c=o.value;else{const y=l.value.size,E=s.value.size;c=y==E}return c});function u(){o.value=!0}function g(){o.value=!1}function d(c){m(()=>{c.forEach(y=>{l.value.add(y[t])})})}function M(c){m(()=>{c.forEach(y=>{l.value.delete(y[t])})})}function p(c){return o.value!=null?o.value:l.value.has(c[t])}function m(c){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),c(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(c){m(()=>{c.forEach(y=>{p(y)?l.value.delete(y[t]):l.value.add(y[t])})})}function N(){const{value:c}=r;c?g():u()}return e.provide(te,N),e.provide(ne,f),e.provide(oe,p),e.provide(le,i),e.provide(se,d),e.provide(ae,u),e.provide(ie,M),e.provide(re,r),e.provide(G,g),e.provide(G,g),e.provide(ce,a),{selected:i,select:d,selectAll:u,unselect:M,unselectAll:g,toggle:f,toggleAll:N,isSelected:p,isAllSelected:r,selectedCount:a}}function ue(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ue("\u9009\u62E9"),unselect:i=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>we(t==="colum"?Dn:Tn,50)),g=new Set,d=e.ref(!0),M=e.ref(),p=e.ref(!1),m=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(D=>c.value=D[0].target.getBoundingClientRect()),c=e.ref({}),y=e.ref({top:0,height:0,sync(D=!1){y.value.top=M.value?.scrollTop||0,D&&(y.value.height=M.value?.scrollHeight||0)}}),E=e.computed(()=>p.value?{left:Math.min(m.value.x,f.value.x)-c.value.left,top:Math.min(m.value.y,f.value.y)-c.value.top,width:Math.abs(m.value.x-f.value.x),height:Math.abs(m.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let C;const z=O,A=Q,Y=U,$=D=>D**1;let b=0;function R(D){if(cancelAnimationFrame(C),b=Z(D),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=M.value;if(!T||!p.value)return;const _=y.value.height-c.value.height;let j=y.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,P(),C=requestAnimationFrame(()=>R(D))}}function Z(D){if(M.value){const _=c.value,j=_.bottom-D;if(j<z)return A*$(1-j/z);const B=D-_.top;if(B<z)return-A*$(1-B/z)}return 0}function F(D){const T={...E.value,right:0,bottom:0};return T.left+=c.value.left,T.top+=c.value.top-y.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<D.right&&T.right>D.left&&T.top<D.bottom&&T.bottom>D.top}function P(){y.value.sync();const{top:D,height:T}=y.value;f.value.y=Math.min(T+c.value.top,f.value.y+D-f.value.scrollTop),f.value.scrollTop=D}function I(D,T,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const B=j.sheet.cssRules,V=B.length,En=`${D} { ${T} }`;for(let me=0;me<V;me++){const ke=B[me];if(ke.selectorText===D&&ke.style.cssText===T)return}j.sheet.insertRule(En,V)}function w(D,T){d.value=!0,p.value=!0,y.value.height?y.value.sync():y.value.sync(!0),m.value.x=D,m.value.y=T+y.value.top,f.value.x=m.value.x,f.value.y=m.value.y,M.value?.classList.add("disable-scroll-behavior"),g.clear()}function x(D,T,_){!p.value||(d.value&&t==="colum"&&!v()&&(a(),d.value=!1),_?.(),R(T),f.value.x=Math.max(D,c.value.left),f.value.y=Math.min(T+y.value.top,y.value.height+c.value.top),f.value.scrollTop=y.value.top,u.value())}function S(){p.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function L(){!p.value||(b||P(),u.value())}function v(){if(!p.value)return!1;const{width:D,height:T}=E.value;return!(Math.max(D,T)>5)}function ge(){v()&&a()}function Dn(){v()||M.value?.querySelectorAll(`[${n}]`).forEach(D=>{r[`${n}`]=D.getAttribute(`${n}`),F(D.getBoundingClientRect())?s([r]):i([r])})}function Tn(){const D=[];let T=null,_=0;M.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);D.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(r[`${n}`]=V,g.has(V)&&i([r]))});for(let j=T;j<_+1;j++)r[`${n}`]=D[j],s([r]),g.add(D[j])}function wn(D){return!D?.value||(M.value=D.value,!M?.value)?!1:(N.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:wn,dragStart:w,dragMove:x,dragEnd:S,onScroll:L,isSingleClick:v,cancelSelectAllBySingleClick:ge,selectFn:u,selectRange:E,isPressing:p,containerEl:M,observer:N}}function st(n){const t=de(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d}=ee(`.drag-select-box {
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const ye={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const r=a.clientX,u=a.clientY,g=Math.abs(r-o),d=Math.abs(u-l);g>5||d>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},be={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var pe;const H=typeof window<"u",he=n=>typeof n=="function";H&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function Ne(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Be(n,t={}){let o,l;return i=>{const a=K(n),r=K(t.maxWait);if(o&&clearTimeout(o),a<=0||r!==void 0&&r<=0)return l&&(clearTimeout(l),l=null),i();r&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},r)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Qe(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return u=>{const g=K(n),d=Date.now()-l;if(a(),g<=0)return l=Date.now(),u();d>g&&(o||!i)?(l=Date.now(),u()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),u()},g)),!o&&!s&&(s=setTimeout(()=>i=!0,g)),i=!1}}function Ue(n){return n}function Ye(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const r=he(t)?t:t.get,u=he(t)?void 0:t.set,g=e.customRef((d,M)=>(l=d,s=M,{get(){return i.value&&(o=r(),i.value=!1),l(),o},set(y){u?.(y)}}));return Object.isExtensible(g)&&(g.trigger=a),g}function De(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function Te(n,t=200,o={}){return Ne(Be(t,o),n)}function we(n,t=200,o=!1,l=!0){return Ne(Qe(t,o,l),n)}function Ee(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ie(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Pe=H?window.document:void 0;H&&window.navigator,H&&window.location;function Re(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ee(l,t),o}const q=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},J="__vueuse_ssr_handlers__";q[J]=q[J]||{},q[J];function Fe(){const n=e.getCurrentInstance(),t=Ye(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,We=(n,t)=>{var o={};for(var l in n)Ve.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&ze)for(var l of ze(n))t.indexOf(l)<0&&He.call(n,l)&&(o[l]=n[l]);return o};function Ze(n,t,o={}){const l=o,{window:s=$e}=l,i=We(l,["window"]);let a;const r=Re(()=>s&&"ResizeObserver"in s),u=()=>{a&&(a.disconnect(),a=void 0)},g=e.watch(()=>Ie(n),M=>{u(),r.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,i))},{immediate:!0,flush:"post"}),d=()=>{u(),g()};return De(d),{isSupported:r,stop:d}}function Ke(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ze(n,([a])=>{const r=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;r?(s.value=r.reduce((u,{inlineSize:g})=>u+g,0),i.value=r.reduce((u,{blockSize:g})=>u+g,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>Ie(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var je;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(je||(je={}));let Ge=0;function ee(n,t={}){const o=e.ref(!1),{document:l=Pe,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Ge}`}=t,r=e.ref(n);let u=()=>{};const g=()=>{if(!l)return;const M=l.getElementById(a)||l.createElement("style");M.type="text/css",M.id=a,t.media&&(M.media=t.media),l.head.appendChild(M),!o.value&&(u=e.watch(r,y=>{M.innerText=y},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(u(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&Ee(g),i||De(d),{id:a,css:r,unload:d,load:g,isLoaded:e.readonly(o)}}var Xe=Object.defineProperty,Le=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?Xe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,et=(n,t)=>{for(var o in t||(t={}))qe.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))Je.call(t,o)&&Ce(n,o,t[o]);return n};et({linear:Ue},{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 Ae(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ke(i),r=e.ref(!0),u=Te(U,100);let g;const d=e.shallowRef(n),M=e.ref(0),y=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let f=0;const N=e.ref([]),c=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return d.value.map((x,S)=>(typeof l=="number"?w=l:w=l(S),I+=w,{height:w,sum:I}))}),p=e.computed(()=>$(y.value.start)),E=e.computed(()=>typeof l=="number"?c.value.length*l:c.value[c.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=m.value;return N.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(g)),e.watch(d,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&C()},{deep:!0}),e.watch(M,()=>{Q(),u()});function Q(){r.value=!1}function U(){r.value=!0,o?.()}function C(){cancelAnimationFrame(g),g=requestAnimationFrame(z)}function z(){if(i.value){M.value=i.value.scrollTop;let I=A(M.value);f=Y(I);let w=Math.max(0,I-s),x=Math.min(I+f+s,d.value.length);y.value={start:w,end:x},N.value=d.value.slice(w,x).map((S,L)=>({data:S,index:L+w})),m.value.start=I-w,m.value.end=m.value.start+f}}function A(I){let w=0,x=c.value.length-1,S=-1;for(;w<=x;){const L=Math.floor((w+x)/2);c.value[L].sum>=I?(S=L,x=L-1):w=L+1}return Math.max(0,S)}function Y(I){let w=0,x=0;for(let S=I;S<c.value.length&&(w++,x+=c.value[S].height,!(x>=a.height.value));S++);return w}function $(I){if(typeof l=="number")return I*l;let w=c.value[I];return w?w.sum-w.height:0}function b(I){return c.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${E.value}px`,pointerEvents:r.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${p.value}px, 0)`,"will-change":"transform"}})),P={overflowY:"auto"};return{list:N,visiableList:O,getItemHeightData:b,getoffsetTopIndex:A,totalHeight:E,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:r,containerProps:{ref:i,onScroll:()=>{C()},style:P},wrapperProps:Z,innerProps:F}}const te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),G=Symbol(),ce=Symbol();function tt(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function nt(n,t,o){const l=n.reduce((d,M)=>(d.set(M[o],M),d),new Map),s=[],i=[],a=[],r=new Set,u=2500,g=Math.ceil(t.length/u);for(let d=0;d<g;d++){const M=d*u,y=M+u,m=t.slice(M,y);for(const f of m){const N=f[o],c=l.get(N);!c&&f?s.push(f):c&&!f?i.push(c):c&&f&&(tt(c,f)||a.push(f)),r.add(N),l.delete(N)}}for(const[d,M]of l)r.has(d)||i.push(M);return{added:s,removed:i,modified:a}}function ot(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(le,s),a=e.inject(oe,t),r=e.inject(re,o),u=e.inject(ne,n),g=e.inject(te,n),d=e.inject(se,n),M=e.inject(ae,n),y=e.inject(ie,n),m=e.inject(G,n),f=e.inject(ce,l);return{selected:i,isSelected:a,isAllSelected:r,toggle:u,toggleAll:g,select:d,selectAll:M,unselect:y,unselectAll:m,selectedCount:f}}function lt(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,c=>{s.value=c.reduce((p,E)=>(p.set(E[t],E),p),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let c=[];if(o.value!=null)o.value&&(c=Array.from(s.value.values()));else if(l.value.size){let p;l.value.forEach(E=>{p=s.value.get(E),p&&c.push(p)})}return c}),a=e.computed(()=>{let c=0;return o.value!=null?o.value&&(c=s.value.size):c=l.value.size,c}),r=e.computed(()=>{let c;if(o.value!=null)c=o.value;else{const p=l.value.size,E=s.value.size;c=p==E}return c});function u(){o.value=!0}function g(){o.value=!1}function d(c){m(()=>{c.forEach(p=>{l.value.add(p[t])})})}function M(c){m(()=>{c.forEach(p=>{l.value.delete(p[t])})})}function y(c){return o.value!=null?o.value:l.value.has(c[t])}function m(c){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),c(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(c){m(()=>{c.forEach(p=>{y(p)?l.value.delete(p[t]):l.value.add(p[t])})})}function N(){const{value:c}=r;c?g():u()}return e.provide(te,N),e.provide(ne,f),e.provide(oe,y),e.provide(le,i),e.provide(se,d),e.provide(ae,u),e.provide(ie,M),e.provide(re,r),e.provide(G,g),e.provide(G,g),e.provide(ce,a),{selected:i,select:d,selectAll:u,unselect:M,unselectAll:g,toggle:f,toggleAll:N,isSelected:y,isAllSelected:r,selectedCount:a}}function ue(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function de({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ue("\u9009\u62E9"),unselect:i=ue("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ue("\u53D6\u6D88\u5168\u9009")}=l();let r={};const u=e.computed(()=>we(t==="colum"?Dn:Tn,50)),g=new Set,d=e.ref(!0),M=e.ref(),y=e.ref(!1),m=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(D=>c.value=D[0].target.getBoundingClientRect()),c=e.ref({}),p=e.ref({top:0,height:0,sync(D=!1){p.value.top=M.value?.scrollTop||0,D&&(p.value.height=M.value?.scrollHeight||0)}}),E=e.computed(()=>y.value?{left:Math.min(m.value.x,f.value.x)-c.value.left,top:Math.min(m.value.y,f.value.y)-c.value.top,width:Math.abs(m.value.x-f.value.x),height:Math.abs(m.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let C;const z=O,A=Q,Y=U,$=D=>D**1;let b=0;function R(D){if(cancelAnimationFrame(C),b=Z(D),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=M.value;if(!T||!y.value)return;const _=p.value.height-c.value.height;let j=p.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,P(),C=requestAnimationFrame(()=>R(D))}}function Z(D){if(M.value){const _=c.value,j=_.bottom-D;if(j<z)return A*$(1-j/z);const B=D-_.top;if(B<z)return-A*$(1-B/z)}return 0}function F(D){const T={...E.value,right:0,bottom:0};return T.left+=c.value.left,T.top+=c.value.top-p.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<D.right&&T.right>D.left&&T.top<D.bottom&&T.bottom>D.top}function P(){p.value.sync();const{top:D,height:T}=p.value;f.value.y=Math.min(T+c.value.top,f.value.y+D-f.value.scrollTop),f.value.scrollTop=D}function I(D,T,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const B=j.sheet.cssRules,V=B.length,En=`${D} { ${T} }`;for(let me=0;me<V;me++){const ke=B[me];if(ke.selectorText===D&&ke.style.cssText===T)return}j.sheet.insertRule(En,V)}function w(D,T){d.value=!0,y.value=!0,p.value.height?p.value.sync():p.value.sync(!0),m.value.x=D,m.value.y=T+p.value.top,f.value.x=m.value.x,f.value.y=m.value.y,M.value?.classList.add("disable-scroll-behavior"),g.clear()}function x(D,T,_){!y.value||(d.value&&t==="colum"&&!v()&&(a(),d.value=!1),_?.(),R(T),f.value.x=Math.max(D,c.value.left),f.value.y=Math.min(T+p.value.top,p.value.height+c.value.top),f.value.scrollTop=p.value.top,u.value())}function S(){y.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(b||P(),u.value())}function v(){if(!y.value)return!1;const{width:D,height:T}=E.value;return!(Math.max(D,T)>5)}function ge(){v()&&a()}function Dn(){v()||M.value?.querySelectorAll(`[${n}]`).forEach(D=>{r[`${n}`]=D.getAttribute(`${n}`),F(D.getBoundingClientRect())?s([r]):i([r])})}function Tn(){const D=[];let T=null,_=0;M.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);D.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(r[`${n}`]=V,g.has(V)&&i([r]))});for(let j=T;j<_+1;j++)r[`${n}`]=D[j],s([r]),g.add(D[j])}function wn(D){return!D?.value||(M.value=D.value,!M?.value)?!1:(N.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:wn,dragStart:w,dragMove:x,dragEnd:S,onScroll:L,isSingleClick:v,cancelSelectAllBySingleClick:ge,selectFn:u,selectRange:E,isPressing:y,containerEl:M,observer:N}}function st(n){const t=de(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:r,cancelSelectAllBySingleClick:u}=t,g=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d}=ee(`.drag-select-box {
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),M=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function p
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),M=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:g.value})}});function y(p){p.button===0&&i(p.x,p.y)}function m(p){a(p.x,p.y)}function f(p){p.composedPath().some(O=>O?.getAttribute?.(n.attribute))||u(),r()}function N(p){try{if(!t.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!t.containerEl?.value)return!1;e.render(e.h(M),t.containerEl.value),d(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",m),window.addEventListener("mouseup",f)}catch(E){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",E)}}function c(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",f)}return{init:N,unMount:c}}function at(n,t,o=600){const l=de({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:r,dragEnd:u}=l;let g;function d(){clearTimeout(g)}function M(c){d(),c.composedPath().some(E=>!!E?.getAttribute?.(n.attribute))&&(g=setTimeout(()=>{const{clientX:E,clientY:O}=c.targetTouches[0];a(E,O),t?.(),r(E,O,()=>c.preventDefault()),c.preventDefault()},o))}function y(c){d();const{clientX:p,clientY:E}=c.targetTouches[0];r(p,E,()=>c.preventDefault())}function m(){d(),u()}function f(c){try{if(!l.init(c))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",M),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(p){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",p)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",M),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:f,unMount:N}}const ve=Symbol(),it={key:0,class:"lzc-modal"},rt=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(n,{emit:t}){const o=n,l=()=>{o.closeOnClickOverlay&&t("update:visiable",!1)};return e.provide(ve,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ye),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),zn="",k=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},ct=k(rt,[["__scopeId","data-v-4ff684af"]]);function ut(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(ct,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function Me({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return ee(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${i} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const r=Fe();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function dt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Me({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const Mt=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ft=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({"226a081e":n.width+"px","35610f1c":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),Mt,16))}}),Cn="",xe=k(ft,[["__scopeId","data-v-f86c8393"]]),gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",mt={class:"loading-wrap"},pt=["src"],yt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"8b276c48":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(gt)},null,8,pt)]))}}),An="",ht=k(yt,[["__scopeId","data-v-2affe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TE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",wt=["onClick"],Et=["onClick"],It=["src"],zt=["src"],jt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function r(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(d=>t("close"),["stop"])),src:e.unref(Dt),class:e.normalizeClass(`${l}-close`)},null,10,It)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(Tt),class:e.normalizeClass(`${l}-icon`)},null,10,zt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,Et)],10,wt),[[e.vShow,n.visible]])],4)]),_:1}))}}),vn="",xn="",Lt=k(jt,[["__scopeId","data-v-cb2e1a90"]]);class X{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Lt}async show(){const t=this.options,l={...t,onClose:function(){X.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Nt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Ct(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const r=e.ref(!1);let u=null;const g=new X(t);async function d(...p){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(...p),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(i),await t?.onSuccess?.()}catch(m){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(m),await M(i),await t?.onError?.(m)}}}async function M(p=!0){o&&console.log("useDelayAsync - close - closeLoading: ",p),r.value=!1,u&&clearTimeout(u),u=null,p&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:r,handler:d,close:M}}const At=["onClick"],vt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.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(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["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(r))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,At))}}),Sn="",xt=k(vt,[["__scopeId","data-v-533e986b"]]),Se={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class St{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xt),{...Se,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Se.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Ot=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Ot)],4))}});function _t(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),u=Te($,100);let g,d="";const M=e.ref(0),p=e.ref(0),m=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),c=e.computed(()=>!!p.value),y=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),E=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-N.value.clientHeight),O=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),Q=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*f.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),p.value=L.clientY-o.value.getBoundingClientRect().top||1,d=getComputedStyle(t.value).scrollBehavior,d==="smooth"&&(t.value.style.scrollBehavior="unset")}function A(){t.value.style.scrollBehavior=d,p.value=0,u()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function b(L){if(!c.value)return;let v=L.clientY-f.value.top-p.value;v<0?m.value=0:v>=E.value?m.value=E.value:m.value=v,t.value.scrollTo({top:m.value/E.value*O.value})}function R(){c.value||Z()}function Z(){cancelAnimationFrame(g),g=requestAnimationFrame(F)}function F(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,m.value=M.value/O.value*E.value)}function P(L){let v="addEventListener";L==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",A,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(ge=>ge.oldValue).join().includes("height"))&&w()});function w(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function x(){Y(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,$()},150)}function S(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,L),setTimeout(()=>{w()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:c,offsetTop:m,scrollTop:M,scrollable:y,sliderPos:C,init:S,modifySliderEventListener:P}}const kt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),bt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=_t({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:g}=a,d=e.ref(!1),M=o.autoHide?e.computed(()=>d.value||!u.value):e.computed(()=>r.value),{load:p}=ee(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const r=Fe();return e.onMounted(()=>{r.value.classList.add(s)}),()=>e.h(n,t)}})}}function dt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=Me({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const Mt=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],ft=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({"226a081e":n.width+"px","35610f1c":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),Mt,16))}}),Cn="",xe=k(ft,[["__scopeId","data-v-f86c8393"]]),gt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",mt={class:"loading-wrap"},yt=["src"],pt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"8b276c48":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",mt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(gt)},null,8,yt)]))}}),An="",ht=k(pt,[["__scopeId","data-v-2affe82a"]]);async function Nt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Dt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMDkgMTIuMDMyMTQyOSwxMS43NjQ0O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MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",wt=["onClick"],Et=["onClick"],It=["src"],zt=["src"],jt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!0},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEvent:{type:Boolean,default:!1}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEvent&&(u.pointerEvents="none"),u}),i=e.computed(()=>{let u={};return o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u});function a(){o.closeOnClickOverlay&&t("close")}function r(){o.closeOnClick&&t("close")}return(u,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(d=>t("close"),["stop"])),src:e.unref(Dt),class:e.normalizeClass(`${l}-close`)},null,10,It)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(Tt),class:e.normalizeClass(`${l}-icon`)},null,10,zt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`)},e.toDisplayString(n.message),3)):e.createCommentVNode("",!0)],6)],10,Et)],10,wt),[[e.vShow,n.visible]])],4)]),_:1}))}}),vn="",xn="",Lt=k(jt,[["__scopeId","data-v-cb2e1a90"]]);class X{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Lt}async show(){const t=this.options,l={...t,onClose:function(){X.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Nt(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}static close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Ct(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300;o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s options: %o",s,i,a,t);const r=e.ref(!1);let u=null;const g=new X(t);async function d(...y){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time"),await n(...y),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(i),await t?.onSuccess?.()}catch(m){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(m),await M(i),await t?.onError?.(m)}}}async function M(y=!0){o&&console.log("useDelayAsync - close - closeLoading: ",y),r.value=!1,u&&clearTimeout(u),u=null,y&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:r,handler:d,close:M}}const At=["onClick"],vt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.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(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),r=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function u(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(g,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(u,["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(r))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,At))}}),Sn="",xt=k(vt,[["__scopeId","data-v-533e986b"]]),Se={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class St{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xt),{...Se,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Se.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Ot=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Ot)],4))}});function _t(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,r=e.ref(!0),u=Te($,100);let g,d="";const M=e.ref(0),y=e.ref(0),m=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),c=e.computed(()=>!!y.value),p=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),E=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-N.value.clientHeight),O=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),Q=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*f.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(L){Y(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,d=getComputedStyle(t.value).scrollBehavior,d==="smooth"&&(t.value.style.scrollBehavior="unset")}function A(){t.value.style.scrollBehavior=d,y.value=0,u()}function Y(){r.value=!1}function $(){c.value||(r.value=!0)}function b(L){if(!c.value)return;let v=L.clientY-f.value.top-y.value;v<0?m.value=0:v>=E.value?m.value=E.value:m.value=v,t.value.scrollTo({top:m.value/E.value*O.value})}function R(){c.value||Z()}function Z(){cancelAnimationFrame(g),g=requestAnimationFrame(F)}function F(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,m.value=M.value/O.value*E.value)}function P(L){let v="addEventListener";L==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",A,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(ge=>ge.oldValue).join().includes("height"))&&w()});function w(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function x(){Y(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,$()},150)}function S(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),P("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,L),setTimeout(()=>{w()},100),x()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{Y(),u()}),{isScrollEnd:r,isDragSlider:c,offsetTop:m,scrollTop:M,scrollable:p,sliderPos:C,init:S,modifySliderEventListener:P}}const kt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),bt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=_t({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:r,isScrollEnd:u,sliderPos:g}=a,d=e.ref(!1),M=o.autoHide?e.computed(()=>d.value||!u.value):e.computed(()=>r.value),{load:y}=ee(`.hide-scrollbar {
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
17
|
}
|
|
18
18
|
.hide-scrollbar::-webkit-scrollbar {
|
|
19
19
|
display: none;
|
|
20
|
-
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{p(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function m(){d.value=!0}function f(){d.value=!1}return t({uScrollBarReturn:a}),(N,c)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:m,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(N.$slots,"default",{},()=>[kt],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),_n="",Bt=k(bt,[["__scopeId","data-v-efefe52c"]]),Qt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Ut={class:"pull-refresh"},Yt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Pt={class:"left-load"},Rt={class:"right-load"},Ft=Qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Vt={class:"pull-arrow"},Ht={key:1},Wt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),u=e.ref(!1),g=e.ref(0),d=e.ref(0),M=e.ref(0),p=e.ref(0),m=e.ref(0),f=e.ref(),N=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${p.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),y=e.computed(()=>({borderColor:l,transition:p.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(m,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(d,z=>{if(m.value===2)return;const A=Math.pow(z,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,a.value=Math.pow(A,1.5),A>15?u.value=!0:u.value=!1),A>50&&(s.value=5,r.value=1,m.value)});const E=e.ref(0),O=z=>{E.value=z.touches[0].pageY},Q=z=>{const A=z.touches[0].pageY-E.value;E.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&N.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),M.value=0,C.value.style.transition=`${M.value}ms`,p.value=0,d.value=z.touches[0].pageY-g.value,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,A>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;g.value=0,M.value=300;const z=Math.pow(d.value,o);C.value.style.transition=`${M.value}ms`,z>50?(m.value=2,d.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,p.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},p.value)},600)})):(d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",O),C.value?.addEventListener("touchmove",Q),C.value?.addEventListener("touchend",U))}),(z,A)=>(e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[f.value?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Yt,[m.value==2?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Pt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ft])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(y))},[e.createElementVNode("div",Vt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),kn="",Oe=k(Wt,[["__scopeId","data-v-18377f18"]]),Zt={inheritAttrs:!1},Kt=e.defineComponent({...Zt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Ae(e.toRef(l,"data"),{itemHeight:p=>l.itemHeight(l.data[p]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:u,getItemHeightData:g,scrollTop:d}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(p,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+M},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:M},[e.createElementVNode("div",e.mergeProps({onScrollPassive:m[0]||(m[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},p.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:N})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(p.$slots,"default",{data:N,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),bn="",Gt=k(Kt,[["__scopeId","data-v-e0fb787f"]]),fe=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Xt={style:{position:"absolute"}},qt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Jt=["width","height"],en=[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))],tn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Xt,[qt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},en,8,Jt))]))}}),Un="",nn=k(tn,[["__scopeId","data-v-c986249d"]]),on=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp"],ln=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp"];function _e(n,t){const o=e.ref(),l=e.ref(n?.value),s=e.computed(()=>l.value?.startsWith("/_lzc")),i=e.ref(!1),a=e.computed(()=>i.value),r=e.computed(()=>!t?.value||t?.value.startsWith("video/")?!0:s.value?on.includes(t.value):ln.includes(t.value));n&&e.watch(n,d=>{l.value=d,i.value=!1});function u(){i.value=!0}function g(){o.value&&(o.value.src="")}return{el:o,imgSrc:l,isError:i,hasError:a,isSupport:r,cancel:g,handleError:u}}const sn=n=>(e.pushScopeId("data-v-a79bc25a"),n=n(),e.popScopeId(),n),an=["title"],rn=sn(()=>e.createElementVNode("span",{class:"text-[14px] text-[#ACACAC]"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),cn=["src"],un=["src"],dn=["title"],Mn={inheritAttrs:!1},fn=e.defineComponent({...Mn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),{src:s,mime:i}=e.toRefs(t),{el:a,imgSrc:r,isSupport:u,hasError:g,cancel:d,handleError:M}=_e(s,i),{LoadingComp:p}=Me({component:xe,delay:500});e.onBeforeUnmount(d);function m(N){N&&(l.value=!0),o.value=!0}function f(N){N?M():l.value=!0,o.value=!0}return(N,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(p),{key:0})),e.unref(u)?e.unref(g)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"w-[92px] h-[92px]",name:"\u56FE\u7247\u635F\u574F"})],16,dn)):e.renderSlot(N.$slots,"default",{key:2,src:e.unref(r),onLoad:m,onError:f},()=>[n.thumbnail&&!l.value?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},N.$attrs,{onLoad:c[0]||(c[0]=y=>m()),onError:c[1]||(c[1]=y=>f()),src:n.thumbnail}),null,16,cn)):e.createCommentVNode("",!0),n.isShowSrc||l.value?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},N.$attrs,{ref_key:"el",ref:a,onLoad:c[2]||(c[2]=y=>m(!0)),onError:c[3]||(c[3]=y=>f(!0)),src:e.unref(r)}),null,16,un)):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),rn],16,an))],64))}}),Yn="",gn=k(fn,[["__scopeId","data-v-a79bc25a"]]),mn=["title"],pn=["src"],yn=["title"],hn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(n){const t=n,o=e.ref(!1),{src:l,mime:s}=e.toRefs(t),{el:i,imgSrc:a,hasError:r,isSupport:u,cancel:g,handleError:d}=_e(l,s);return e.onBeforeUnmount(g),(M,p)=>e.unref(u)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u56FE\u7247\u635F\u574F"})],8,yn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,ref_key:"el",ref:i,fetchpriority:"high",onLoad:p[0]||(p[0]=m=>o.value=!0),onError:p[1]||(p[1]=(...m)=>e.unref(d)&&e.unref(d)(...m)),src:e.unref(a)},null,40,pn)),[[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u672A\u77E5\u7C7B\u578B"})],8,mn))}}),$n="",Nn=k(hn,[["__scopeId","data-v-5d21e3bf"]]);h.DefaultLoading=xe,h.Image=gn,h.Loading=nn,h.LoadingToast=X,h.PageLoading=ht,h.PullRefresh=Oe,h.ScrollBar=Bt,h.SvgIcon=W,h.Thumbnail=Nn,h.ToastCreator=St,h.VirtualList=Gt,h.allSelectedKey=le,h.closeDialogKey=ve,h.dialogController=ut,h.diff=nt,h.isAllSelectedKey=re,h.isSelectedKey=oe,h.selectAllKey=ae,h.selectKey=se,h.selectedCountKey=ce,h.toggleAllKey=te,h.toggleKey=ne,h.unselectAllKey=G,h.unselectKey=ie,h.useDelayAsync=Ct,h.useDelayLoad=dt,h.useDelayLoadComp=Me,h.useDragSelect=de,h.useDragSelectByMobile=at,h.useDragSelectByPc=st,h.useSelectable=lt,h.useSelectableInjectors=ot,h.useVirtualList=Ae,h.vDebounceClick=be,h.vSingleClick=pe,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function m(){d.value=!0}function f(){d.value=!1}return t({uScrollBarReturn:a}),(N,c)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:m,onMouseleave:f,style:e.normalizeStyle(e.unref(g))},[e.renderSlot(N.$slots,"default",{},()=>[kt],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),_n="",Bt=k(bt,[["__scopeId","data-v-efefe52c"]]),Qt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Ut={class:"pull-refresh"},Yt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Pt={class:"left-load"},Rt={class:"right-load"},Ft=Qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Vt={class:"pull-arrow"},Ht={key:1},Wt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),r=e.ref(.3),u=e.ref(!1),g=e.ref(0),d=e.ref(0),M=e.ref(0),y=e.ref(0),m=e.ref(0),f=e.ref(),N=e.computed(()=>t.scrollTop),c=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),p=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:r.value}));e.watch(m,z=>{z===0&&(s.value=-50,r.value=.3)}),e.watch(d,z=>{if(m.value===2)return;const A=Math.pow(z,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,a.value=Math.pow(A,1.5),A>15?u.value=!0:u.value=!1),A>50&&(s.value=5,r.value=1,m.value)});const E=e.ref(0),O=z=>{E.value=z.touches[0].pageY},Q=z=>{const A=z.touches[0].pageY-E.value;E.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&N.value===0&&(g.value===0&&(g.value=z.touches[0].pageY),M.value=0,C.value.style.transition=`${M.value}ms`,y.value=0,d.value=z.touches[0].pageY-g.value,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,A>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;g.value=0,M.value=300;const z=Math.pow(d.value,o);C.value.style.transition=`${M.value}ms`,z>50?(m.value=2,d.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(d.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",O),C.value?.addEventListener("touchmove",Q),C.value?.addEventListener("touchend",U))}),(z,A)=>(e.openBlock(),e.createElementBlock("div",Ut,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(c))},[f.value?(e.openBlock(),e.createElementBlock("div",Ht,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Yt,[m.value==2?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Pt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Ft])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(p))},[e.createElementVNode("div",Vt,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:u.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),kn="",Oe=k(Wt,[["__scopeId","data-v-18377f18"]]),Zt={inheritAttrs:!1},Kt=e.defineComponent({...Zt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Ae(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:r,innerProps:u,getItemHeightData:g,scrollTop:d}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(y,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+M},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:M},[e.createElementVNode("div",e.mergeProps({onScrollPassive:m[0]||(m[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:N})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(g)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:N,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),bn="",Gt=k(Kt,[["__scopeId","data-v-e0fb787f"]]),fe=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),Xt={style:{position:"absolute"}},qt=fe(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Jt=["width","height"],en=[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))],tn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(n){const t=n;e.useCssVars(l=>({"5e400569":o}));const o=`${t.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Xt,[qt,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:n.width,height:n.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},en,8,Jt))]))}}),Un="",nn=k(tn,[["__scopeId","data-v-c986249d"]]),on=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp"],ln=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp"];function _e(n,t){const o=e.ref(),l=e.ref(n?.value),s=e.computed(()=>l.value?.startsWith("/_lzc")),i=e.ref(!1),a=e.computed(()=>i.value),r=e.computed(()=>!t?.value||t?.value.startsWith("video/")?!0:s.value?on.includes(t.value):ln.includes(t.value));n&&e.watch(n,d=>{l.value=d,i.value=!1});function u(){i.value=!0}function g(){o.value&&(o.value.src="")}return{el:o,imgSrc:l,isError:i,hasError:a,isSupport:r,cancel:g,handleError:u}}const sn=n=>(e.pushScopeId("data-v-9ecf66ee"),n=n(),e.popScopeId(),n),an=["title"],rn=sn(()=>e.createElementVNode("span",{class:"text-[14px] text-[#ACACAC]"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),cn=["src"],un=["src"],dn=["title"],Mn={inheritAttrs:!1},fn=e.defineComponent({...Mn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},isFullyLoadedVisible:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),{src:s,mime:i}=e.toRefs(t),{el:a,imgSrc:r,isSupport:u,hasError:g,cancel:d,handleError:M}=_e(s,i),{LoadingComp:y}=Me({component:xe,delay:500});e.onBeforeUnmount(d);function m(N){N&&(l.value=!0),o.value=!0}function f(N){N?M():l.value=!0,o.value=!0}return(N,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(u)?e.unref(g)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"w-[92px] h-[92px]",name:"\u56FE\u7247\u635F\u574F"})],16,dn)):e.renderSlot(N.$slots,"default",{key:2,src:e.unref(r),onLoad:m,onError:f},()=>[n.thumbnail&&!l.value?(e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},N.$attrs,{onLoad:c[0]||(c[0]=p=>m()),onError:c[1]||(c[1]=p=>f()),src:n.thumbnail}),null,16,cn)):e.createCommentVNode("",!0),n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},N.$attrs,{ref_key:"el",ref:a,onLoad:c[2]||(c[2]=p=>m(!0)),onError:c[3]||(c[3]=p=>f(!0)),src:e.unref(r)}),null,16,un)),[[e.vShow,l.value||!n.isFullyLoadedVisible]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},N.$attrs,{title:e.unref(r),class:"tip-wrap"}),[e.createVNode(W,{class:"icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),rn],16,an))],64))}}),Yn="",gn=k(fn,[["__scopeId","data-v-9ecf66ee"]]),mn=["title"],yn=["src"],pn=["title"],hn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(n){const t=n,o=e.ref(!1),{src:l,mime:s}=e.toRefs(t),{el:i,imgSrc:a,hasError:r,isSupport:u,cancel:g,handleError:d}=_e(l,s);return e.onBeforeUnmount(g),(M,y)=>e.unref(u)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u56FE\u7247\u635F\u574F"})],8,pn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,ref_key:"el",ref:i,fetchpriority:"high",onLoad:y[0]||(y[0]=m=>o.value=!0),onError:y[1]||(y[1]=(...m)=>e.unref(d)&&e.unref(d)(...m)),src:e.unref(a)},null,40,yn)),[[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"flex items-center justify-center"},[e.createVNode(W,{class:"w-[30%] h-[30%]",name:"\u672A\u77E5\u7C7B\u578B"})],8,mn))}}),$n="",Nn=k(hn,[["__scopeId","data-v-5d21e3bf"]]);h.DefaultLoading=xe,h.Image=gn,h.Loading=nn,h.LoadingToast=X,h.PageLoading=ht,h.PullRefresh=Oe,h.ScrollBar=Bt,h.SvgIcon=W,h.Thumbnail=Nn,h.ToastCreator=St,h.VirtualList=Gt,h.allSelectedKey=le,h.closeDialogKey=ve,h.dialogController=ut,h.diff=nt,h.isAllSelectedKey=re,h.isSelectedKey=oe,h.selectAllKey=ae,h.selectKey=se,h.selectedCountKey=ce,h.toggleAllKey=te,h.toggleKey=ne,h.unselectAllKey=G,h.unselectKey=ie,h.useDelayAsync=Ct,h.useDelayLoad=dt,h.useDelayLoadComp=Me,h.useDragSelect=de,h.useDragSelectByMobile=at,h.useDragSelectByPc=st,h.useSelectable=lt,h.useSelectableInjectors=ot,h.useVirtualList=Ae,h.vDebounceClick=be,h.vSingleClick=ye,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-f86c8393]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-f86c8393]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--226a081e);height:var(--35610f1c);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-f86c8393 .7s linear infinite}@keyframes ldio-mm5gwljcryb-f86c8393{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-f86c8393]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-2affe82a]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-2affe82a]{width:22px;height:22px;opacity:0;animation:loading-spin-2affe82a .8s var(--8b276c48) linear infinite}@keyframes loading-spin-2affe82a{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-cb2e1a90]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-cb2e1a90]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-cb2e1a90]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;padding:20px;box-sizing:border-box}.lzc-loading-toast-close[data-v-cb2e1a90]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-cb2e1a90]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-cb2e1a90 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-cb2e1a90]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;margin-top:4px;box-sizing:border-box;white-space:pre-wrap}@keyframes lzc-spin-cb2e1a90{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-c986249d var(--5e400569) linear infinite}.tip-wrap[data-v-
|
|
1
|
+
.lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-f86c8393]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-f86c8393]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--226a081e);height:var(--35610f1c);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-f86c8393 .7s linear infinite}@keyframes ldio-mm5gwljcryb-f86c8393{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-f86c8393]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-2affe82a]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-2affe82a]{width:22px;height:22px;opacity:0;animation:loading-spin-2affe82a .8s var(--8b276c48) linear infinite}@keyframes loading-spin-2affe82a{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-cb2e1a90]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-cb2e1a90]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-cb2e1a90]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;padding:20px;box-sizing:border-box}.lzc-loading-toast-close[data-v-cb2e1a90]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-cb2e1a90]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-cb2e1a90 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-cb2e1a90]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;margin-top:4px;box-sizing:border-box;white-space:pre-wrap}@keyframes lzc-spin-cb2e1a90{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-e0fb787f]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-e0fb787f]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-c986249d var(--5e400569) linear infinite}.tip-wrap[data-v-9ecf66ee]{display:flex;flex-direction:column;align-items:center;justify-content:center}.icon[data-v-9ecf66ee]{width:162px;height:134px}img[data-v-9ecf66ee],img[data-v-5d21e3bf]{pointer-events:none}
|
|
@@ -7,6 +7,7 @@ declare const _default: {
|
|
|
7
7
|
mime?: string | undefined;
|
|
8
8
|
thumbnail?: string | undefined;
|
|
9
9
|
isShowSrc?: boolean | undefined;
|
|
10
|
+
isFullyLoadedVisible?: boolean | undefined;
|
|
10
11
|
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
|
11
12
|
$attrs: {
|
|
12
13
|
[x: string]: unknown;
|
|
@@ -26,6 +27,7 @@ declare const _default: {
|
|
|
26
27
|
mime?: string | undefined;
|
|
27
28
|
thumbnail?: string | undefined;
|
|
28
29
|
isShowSrc?: boolean | undefined;
|
|
30
|
+
isFullyLoadedVisible?: boolean | undefined;
|
|
29
31
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & {
|
|
30
32
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
31
33
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -51,6 +53,7 @@ declare const _default: {
|
|
|
51
53
|
mime?: string | undefined;
|
|
52
54
|
thumbnail?: string | undefined;
|
|
53
55
|
isShowSrc?: boolean | undefined;
|
|
56
|
+
isFullyLoadedVisible?: boolean | undefined;
|
|
54
57
|
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
55
58
|
__isFragment?: undefined;
|
|
56
59
|
__isTeleport?: undefined;
|
|
@@ -60,6 +63,7 @@ declare const _default: {
|
|
|
60
63
|
mime?: string | undefined;
|
|
61
64
|
thumbnail?: string | undefined;
|
|
62
65
|
isShowSrc?: boolean | undefined;
|
|
66
|
+
isFullyLoadedVisible?: boolean | undefined;
|
|
63
67
|
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
64
68
|
$slots: {
|
|
65
69
|
default: (_: {
|