@lazycatcloud/lzc-toolkit 0.0.128 → 0.0.129
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 +56 -55
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ const zt = {
|
|
|
16
16
|
unmounted(t) {
|
|
17
17
|
t.removeEventListener("mousedown", t.__mouse_down__), t.removeEventListener("mouseup", t.__mouse_up__);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, Dl = {
|
|
20
20
|
created(t, e) {
|
|
21
21
|
const { fn: n, ms: l = 1500 } = e.value;
|
|
22
22
|
let o = null;
|
|
@@ -354,7 +354,7 @@ function nn(t, e) {
|
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
const Se = Symbol(), be = Symbol(), Qe = Symbol(), ke = Symbol(), Be = Symbol(), Ue = Symbol(), Ye = Symbol(), $e = Symbol(), ve = Symbol(), Pe = Symbol();
|
|
357
|
-
function
|
|
357
|
+
function hl() {
|
|
358
358
|
const { voidFn: t, boolFn: e, boolRef: n, numberRef: l, arrayRef: o } = {
|
|
359
359
|
voidFn: (N) => {
|
|
360
360
|
},
|
|
@@ -376,7 +376,7 @@ function Dl() {
|
|
|
376
376
|
selectedCount: u
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function pl(t, e) {
|
|
380
380
|
const n = y(!1), l = y(/* @__PURE__ */ new Set()), o = y(/* @__PURE__ */ new Map());
|
|
381
381
|
R(
|
|
382
382
|
t,
|
|
@@ -462,7 +462,7 @@ function hl(t, e) {
|
|
|
462
462
|
selectedCount: s
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function ml(t) {
|
|
466
466
|
const e = y(!1), n = y(/* @__PURE__ */ new Set()), l = m(() => {
|
|
467
467
|
let u = [];
|
|
468
468
|
return e.value != null ? e.value && (u = t.value) : n.value.size && (u = Array.from(n.value.values())), u;
|
|
@@ -672,7 +672,7 @@ function Mt({
|
|
|
672
672
|
observer: N
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
function
|
|
675
|
+
function Nl(t) {
|
|
676
676
|
const e = Mt(t), { observer: n, selectRange: l } = e, {
|
|
677
677
|
onScroll: o,
|
|
678
678
|
dragStart: a,
|
|
@@ -726,7 +726,7 @@ function ml(t) {
|
|
|
726
726
|
}
|
|
727
727
|
return { init: N, unMount: c };
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Tl(t, e, n = 600) {
|
|
730
730
|
const l = Mt({
|
|
731
731
|
...t,
|
|
732
732
|
selectWay: "row",
|
|
@@ -808,7 +808,7 @@ const H = (t, e) => {
|
|
|
808
808
|
n[l] = o;
|
|
809
809
|
return n;
|
|
810
810
|
}, an = /* @__PURE__ */ H(sn, [["__scopeId", "data-v-4ff684af"]]);
|
|
811
|
-
function
|
|
811
|
+
function wl(t) {
|
|
812
812
|
function e(n, l) {
|
|
813
813
|
const o = document.createElement("div"), a = {
|
|
814
814
|
setup() {
|
|
@@ -860,7 +860,7 @@ function dt({
|
|
|
860
860
|
}
|
|
861
861
|
}) };
|
|
862
862
|
}
|
|
863
|
-
function
|
|
863
|
+
function Il({
|
|
864
864
|
component: t,
|
|
865
865
|
componentProps: e,
|
|
866
866
|
delay: n = 300
|
|
@@ -911,7 +911,7 @@ const dn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-9a328d05"]]), vn = "data
|
|
|
911
911
|
]));
|
|
912
912
|
}
|
|
913
913
|
});
|
|
914
|
-
const
|
|
914
|
+
const El = /* @__PURE__ */ H(yn, [["__scopeId", "data-v-9526fa37"]]);
|
|
915
915
|
async function Dn(t) {
|
|
916
916
|
return new Promise((e) => setTimeout(() => e(), t));
|
|
917
917
|
}
|
|
@@ -1036,7 +1036,7 @@ class An {
|
|
|
1036
1036
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Al(t, e) {
|
|
1040
1040
|
const n = !!e?.debug, l = e?.printErrorLog !== !1, o = e?.loading !== !1, a = e?.autoClose !== !1, s = e?.delay != null ? e.delay : 300, i = {
|
|
1041
1041
|
...e,
|
|
1042
1042
|
showIcon: e?.showIcon !== !1,
|
|
@@ -1141,7 +1141,7 @@ const Ln = /* @__PURE__ */ H(zn, [["__scopeId", "data-v-533e986b"]]), et = {
|
|
|
1141
1141
|
buttonClickEvent: () => {
|
|
1142
1142
|
}
|
|
1143
1143
|
};
|
|
1144
|
-
class
|
|
1144
|
+
class jl {
|
|
1145
1145
|
options;
|
|
1146
1146
|
container;
|
|
1147
1147
|
constructor(e) {
|
|
@@ -1357,7 +1357,7 @@ const On = (t) => (ge("data-v-efefe52c"), t = t(), fe(), t), _n = /* @__PURE__ *
|
|
|
1357
1357
|
}));
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
const
|
|
1360
|
+
const zl = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-efefe52c"]]), bn = (t) => (ge("data-v-18377f18"), t = t(), fe(), t), Qn = { class: "pull-refresh" }, kn = {
|
|
1361
1361
|
key: 0,
|
|
1362
1362
|
class: "pull-arrow-circle"
|
|
1363
1363
|
}, Bn = {
|
|
@@ -1455,10 +1455,10 @@ const jl = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-efefe52c"]]), bn = (t) =
|
|
|
1455
1455
|
]));
|
|
1456
1456
|
}
|
|
1457
1457
|
});
|
|
1458
|
-
const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = {
|
|
1458
|
+
const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = ["data-key"], Zn = {
|
|
1459
1459
|
inheritAttrs: !1
|
|
1460
|
-
},
|
|
1461
|
-
...
|
|
1460
|
+
}, Vn = /* @__PURE__ */ U({
|
|
1461
|
+
...Zn,
|
|
1462
1462
|
__name: "VirtualList",
|
|
1463
1463
|
props: {
|
|
1464
1464
|
data: null,
|
|
@@ -1511,6 +1511,7 @@ const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = {
|
|
|
1511
1511
|
E("div", Ie(Ee(p(M))), [
|
|
1512
1512
|
(A(!0), z(Ae, null, jt(p(a), ({ data: N, index: c }) => (A(), z("div", {
|
|
1513
1513
|
key: D(N, c),
|
|
1514
|
+
"data-key": D(N, c),
|
|
1514
1515
|
style: P({
|
|
1515
1516
|
height: `${p(r)(c).height}px`,
|
|
1516
1517
|
display: "flex"
|
|
@@ -1520,7 +1521,7 @@ const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = {
|
|
|
1520
1521
|
data: N,
|
|
1521
1522
|
index: c
|
|
1522
1523
|
}, void 0, !0)
|
|
1523
|
-
],
|
|
1524
|
+
], 12, Wn))), 128))
|
|
1524
1525
|
], 16)
|
|
1525
1526
|
], 16)
|
|
1526
1527
|
], 16)
|
|
@@ -1528,7 +1529,7 @@ const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = {
|
|
|
1528
1529
|
], 64));
|
|
1529
1530
|
}
|
|
1530
1531
|
});
|
|
1531
|
-
const
|
|
1532
|
+
const Ll = /* @__PURE__ */ H(Vn, [["__scopeId", "data-v-76b1f71d"]]), Re = (t) => (ge("data-v-c986249d"), t = t(), fe(), t), Gn = { style: { position: "absolute" } }, Kn = /* @__PURE__ */ Re(() => /* @__PURE__ */ E("div", { class: "wrapper" }, null, -1)), Xn = ["width", "height"], Jn = /* @__PURE__ */ Re(() => /* @__PURE__ */ E("title", null, "logo", -1)), qn = /* @__PURE__ */ Re(() => /* @__PURE__ */ E("g", {
|
|
1532
1533
|
id: "group-1",
|
|
1533
1534
|
stroke: "none",
|
|
1534
1535
|
"stroke-width": "1",
|
|
@@ -1540,10 +1541,10 @@ const zl = /* @__PURE__ */ H(Zn, [["__scopeId", "data-v-724bc012"]]), Re = (t) =
|
|
|
1540
1541
|
id: "path-1",
|
|
1541
1542
|
fill: "#FFF"
|
|
1542
1543
|
})
|
|
1543
|
-
], -1)),
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
],
|
|
1544
|
+
], -1)), el = [
|
|
1545
|
+
Jn,
|
|
1546
|
+
qn
|
|
1547
|
+
], tl = /* @__PURE__ */ U({
|
|
1547
1548
|
__name: "Loading",
|
|
1548
1549
|
props: {
|
|
1549
1550
|
width: { default: "90" },
|
|
@@ -1556,8 +1557,8 @@ const zl = /* @__PURE__ */ H(Zn, [["__scopeId", "data-v-724bc012"]]), Re = (t) =
|
|
|
1556
1557
|
"5e400569": n
|
|
1557
1558
|
}));
|
|
1558
1559
|
const n = `${e.duration}ms`;
|
|
1559
|
-
return (l, o) => (A(), z("div",
|
|
1560
|
-
|
|
1560
|
+
return (l, o) => (A(), z("div", Gn, [
|
|
1561
|
+
Kn,
|
|
1561
1562
|
(A(), z("svg", {
|
|
1562
1563
|
style: { position: "relative" },
|
|
1563
1564
|
width: t.width,
|
|
@@ -1565,11 +1566,11 @@ const zl = /* @__PURE__ */ H(Zn, [["__scopeId", "data-v-724bc012"]]), Re = (t) =
|
|
|
1565
1566
|
viewBox: "0 0 260 260",
|
|
1566
1567
|
version: "1.1",
|
|
1567
1568
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1568
|
-
},
|
|
1569
|
+
}, el, 8, Xn))
|
|
1569
1570
|
]));
|
|
1570
1571
|
}
|
|
1571
1572
|
});
|
|
1572
|
-
const
|
|
1573
|
+
const xl = /* @__PURE__ */ H(tl, [["__scopeId", "data-v-c986249d"]]), nl = [
|
|
1573
1574
|
"image/avif",
|
|
1574
1575
|
"image/bmp",
|
|
1575
1576
|
"image/jpeg",
|
|
@@ -1581,7 +1582,7 @@ const Ll = /* @__PURE__ */ H(el, [["__scopeId", "data-v-c986249d"]]), tl = [
|
|
|
1581
1582
|
"image/webp",
|
|
1582
1583
|
"image/wbmp",
|
|
1583
1584
|
"image/svg+xml"
|
|
1584
|
-
],
|
|
1585
|
+
], ll = [
|
|
1585
1586
|
"image/bmp",
|
|
1586
1587
|
"image/jpeg",
|
|
1587
1588
|
"image/gif",
|
|
@@ -1594,7 +1595,7 @@ const Ll = /* @__PURE__ */ H(el, [["__scopeId", "data-v-c986249d"]]), tl = [
|
|
|
1594
1595
|
function vt(t, e) {
|
|
1595
1596
|
const n = y(t?.value), l = m(() => n.value?.startsWith("/_lzc")), o = y(!1), a = m(() => o.value), s = m(() => {
|
|
1596
1597
|
const M = e?.value;
|
|
1597
|
-
return !M || M.startsWith("video/") ? !0 : M.startsWith("image/") ? l.value ?
|
|
1598
|
+
return !M || M.startsWith("video/") ? !0 : M.startsWith("image/") ? l.value ? nl.includes(M) : ll.includes(M) : !1;
|
|
1598
1599
|
});
|
|
1599
1600
|
t && R(t, (M) => {
|
|
1600
1601
|
n.value = M, o.value = !1;
|
|
@@ -1617,8 +1618,8 @@ function gt() {
|
|
|
1617
1618
|
}
|
|
1618
1619
|
} };
|
|
1619
1620
|
}
|
|
1620
|
-
const
|
|
1621
|
-
...
|
|
1621
|
+
const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al = /* @__PURE__ */ ol(() => /* @__PURE__ */ E("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), ul = ["src"], il = ["src"], rl = ["title"], cl = { inheritAttrs: !1 }, Ml = /* @__PURE__ */ U({
|
|
1622
|
+
...cl,
|
|
1622
1623
|
__name: "Image",
|
|
1623
1624
|
props: {
|
|
1624
1625
|
src: null,
|
|
@@ -1654,7 +1655,7 @@ const ll = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), ol = ["title"], sl
|
|
|
1654
1655
|
class: "bad-image",
|
|
1655
1656
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1656
1657
|
})
|
|
1657
|
-
], 16,
|
|
1658
|
+
], 16, rl)) : pe(h.$slots, "default", {
|
|
1658
1659
|
key: 2,
|
|
1659
1660
|
src: p(i),
|
|
1660
1661
|
onLoad: c,
|
|
@@ -1667,7 +1668,7 @@ const ll = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), ol = ["title"], sl
|
|
|
1667
1668
|
onLoad: L[0] || (L[0] = (Y) => c()),
|
|
1668
1669
|
onError: L[1] || (L[1] = (Y) => f()),
|
|
1669
1670
|
src: t.thumbnail
|
|
1670
|
-
}), null, 16,
|
|
1671
|
+
}), null, 16, ul)), [
|
|
1671
1672
|
[p(d)]
|
|
1672
1673
|
]) : te("", !0)
|
|
1673
1674
|
]),
|
|
@@ -1682,7 +1683,7 @@ const ll = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), ol = ["title"], sl
|
|
|
1682
1683
|
onLoad: L[2] || (L[2] = (Y) => c(!0)),
|
|
1683
1684
|
onError: L[3] || (L[3] = (Y) => f(!0)),
|
|
1684
1685
|
src: p(i)
|
|
1685
|
-
}), null, 16,
|
|
1686
|
+
}), null, 16, il)), [
|
|
1686
1687
|
[p(d)],
|
|
1687
1688
|
[me, l.value]
|
|
1688
1689
|
]) : te("", !0)
|
|
@@ -1697,12 +1698,12 @@ const ll = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), ol = ["title"], sl
|
|
|
1697
1698
|
class: "no-support-icon",
|
|
1698
1699
|
name: "\u4E0D\u652F\u6301\u663E\u793A"
|
|
1699
1700
|
}),
|
|
1700
|
-
|
|
1701
|
-
], 16,
|
|
1701
|
+
al
|
|
1702
|
+
], 16, sl))
|
|
1702
1703
|
], 64));
|
|
1703
1704
|
}
|
|
1704
1705
|
});
|
|
1705
|
-
const
|
|
1706
|
+
const Cl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-d85c1bee"]]), dl = ["title"], vl = ["src"], gl = ["title"], fl = /* @__PURE__ */ U({
|
|
1706
1707
|
__name: "Thumbnail",
|
|
1707
1708
|
props: {
|
|
1708
1709
|
src: null,
|
|
@@ -1719,13 +1720,13 @@ const xl = /* @__PURE__ */ H(cl, [["__scopeId", "data-v-d85c1bee"]]), Ml = ["tit
|
|
|
1719
1720
|
class: "icon",
|
|
1720
1721
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1721
1722
|
})
|
|
1722
|
-
], 8,
|
|
1723
|
+
], 8, gl)) : se((A(), z("img", {
|
|
1723
1724
|
key: 1,
|
|
1724
1725
|
fetchpriority: "high",
|
|
1725
1726
|
onLoad: d[0] || (d[0] = (D) => n.value = !0),
|
|
1726
1727
|
onError: d[1] || (d[1] = (...D) => p(M) && p(M)(...D)),
|
|
1727
1728
|
src: p(a)
|
|
1728
|
-
}, null, 40,
|
|
1729
|
+
}, null, 40, vl)), [
|
|
1729
1730
|
[p(r)],
|
|
1730
1731
|
[me, n.value]
|
|
1731
1732
|
]) : (A(), z("div", {
|
|
@@ -1737,25 +1738,25 @@ const xl = /* @__PURE__ */ H(cl, [["__scopeId", "data-v-d85c1bee"]]), Ml = ["tit
|
|
|
1737
1738
|
class: "icon",
|
|
1738
1739
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
1739
1740
|
})
|
|
1740
|
-
], 8,
|
|
1741
|
+
], 8, dl));
|
|
1741
1742
|
}
|
|
1742
1743
|
});
|
|
1743
|
-
const
|
|
1744
|
+
const Ol = /* @__PURE__ */ H(fl, [["__scopeId", "data-v-9fad8239"]]);
|
|
1744
1745
|
export {
|
|
1745
1746
|
dn as DefaultLoading,
|
|
1746
|
-
|
|
1747
|
-
|
|
1747
|
+
Cl as Image,
|
|
1748
|
+
xl as Loading,
|
|
1748
1749
|
An as LoadingToast,
|
|
1749
|
-
|
|
1750
|
+
El as PageLoading,
|
|
1750
1751
|
Hn as PullRefresh,
|
|
1751
|
-
|
|
1752
|
+
zl as ScrollBar,
|
|
1752
1753
|
De as SvgIcon,
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1754
|
+
Ol as Thumbnail,
|
|
1755
|
+
jl as ToastCreator,
|
|
1756
|
+
Ll as VirtualList,
|
|
1756
1757
|
ke as allSelectedKey,
|
|
1757
1758
|
ln as closeDialogKey,
|
|
1758
|
-
|
|
1759
|
+
wl as dialogController,
|
|
1759
1760
|
$e as isAllSelectedKey,
|
|
1760
1761
|
Qe as isSelectedKey,
|
|
1761
1762
|
Ue as selectAllKey,
|
|
@@ -1765,16 +1766,16 @@ export {
|
|
|
1765
1766
|
be as toggleKey,
|
|
1766
1767
|
ve as unselectAllKey,
|
|
1767
1768
|
Ye as unselectKey,
|
|
1768
|
-
|
|
1769
|
-
|
|
1769
|
+
Al as useDelayAsync,
|
|
1770
|
+
Il as useDelayLoad,
|
|
1770
1771
|
dt as useDelayLoadComp,
|
|
1771
1772
|
Mt as useDragSelect,
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1773
|
+
Tl as useDragSelectByMobile,
|
|
1774
|
+
Nl as useDragSelectByPc,
|
|
1775
|
+
pl as useSelectable,
|
|
1776
|
+
ml as useSelectableByBase,
|
|
1777
|
+
hl as useSelectableInjectors,
|
|
1777
1778
|
nn as useVirtualList,
|
|
1778
|
-
|
|
1779
|
+
Dl as vDebounceClick,
|
|
1779
1780
|
zt as vSingleClick
|
|
1780
1781
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.ui={},N.Vue))})(this,function(N,e){"use strict";const me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function r(a){if(o===void 0)return;const c=a.clientX,M=a.clientY,u=Math.abs(c-o),g=Math.abs(M-l);u>5||g>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=r,n.addEventListener("mousedown",s),n.addEventListener("mouseup",r)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Ue={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function r(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",r)}};var Pe=Object.defineProperty,Ye=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ye=(n,t,o)=>t in n?Pe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Ve=(n,t)=>{for(var o in t||(t={}))Re.call(t,o)&&ye(n,o,t[o]);if(pe)for(var o of pe(t))Fe.call(t,o)&&ye(n,o,t[o]);return n},He=(n,t)=>Ye(n,$e(t));function We(n,t){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=n()},He(Ve({},t),{flush:(o=t?.flush)!=null?o:"sync"})),e.readonly(l)}var he;const se=typeof window<"u",Ne=n=>typeof n=="function";se&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function De(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Ze(n,t={}){let o,l;return r=>{const a=K(n),c=K(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),r();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,r()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,r()},a)}}function Ke(n,t=!0,o=!0){let l=0,s,r=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return M=>{const u=K(n),g=Date.now()-l;if(a(),u<=0)return l=Date.now(),M();g>u&&(o||!r)?(l=Date.now(),M()):t&&(s=setTimeout(()=>{l=Date.now(),r=!0,a(),M()},u)),!o&&!s&&(s=setTimeout(()=>r=!0,u)),r=!1}}function Ge(n){return n}function Xe(n,t){let o,l,s;const r=e.ref(!0),a=()=>{r.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=Ne(t)?t:t.get,M=Ne(t)?void 0:t.set,u=e.customRef((g,f)=>(l=g,s=f,{get(){return r.value&&(o=c(),r.value=!1),l(),o},set(y){M?.(y)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Te(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function we(n,t=200,o={}){return De(Ze(t,o),n)}function Ee(n,t=200,o=!1,l=!0){return De(Ke(t,o,l),n)}function Ie(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ze(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const qe=se?window:void 0,Je=se?window.document:void 0;function et(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ie(l,t),o}const ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},re="__vueuse_ssr_handlers__";ae[re]=ae[re]||{},ae[re];function tt(){const n=e.getCurrentInstance(),t=Xe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var je=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(n,t)=>{var o={};for(var l in n)nt.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&je)for(var l of je(n))t.indexOf(l)<0&&ot.call(n,l)&&(o[l]=n[l]);return o};function st(n,t,o={}){const l=o,{window:s=qe}=l,r=lt(l,["window"]);let a;const c=et(()=>s&&"ResizeObserver"in s),M=()=>{a&&(a.disconnect(),a=void 0)},u=e.watch(()=>ze(n),f=>{M(),c.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,r))},{immediate:!0,flush:"post"}),g=()=>{M(),u()};return Te(g),{isSupported:c,stop:g}}function at(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),r=e.ref(t.height);return st(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((M,{inlineSize:u})=>M+u,0),r.value=c.reduce((M,{blockSize:u})=>M+u,0)):(s.value=a.contentRect.width,r.value=a.contentRect.height)},o),e.watch(()=>ze(n),a=>{s.value=a?t.width:0,r.value=a?t.height:0}),{width:s,height:r}}var Ae;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ae||(Ae={}));let rt=0;function ie(n,t={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:r=!1,id:a=`vueuse_styletag_${++rt}`}=t,c=e.ref(n);let M=()=>{};const u=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!o.value&&(M=e.watch(c,y=>{f.innerText=y},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(M(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!r&&Ie(u),r||Te(g),{id:a,css:c,unload:g,load:u,isLoaded:e.readonly(o)}}var it=Object.defineProperty,Le=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?it(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,dt=(n,t)=>{for(var o in t||(t={}))ct.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))ut.call(t,o)&&Ce(n,o,t[o]);return n};dt({linear:Ge},{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 ve(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,r=e.ref(null),a=at(r),c=e.ref(!0),M=we(U,100);let u;const g=e.shallowRef(n),f=e.ref(0),y=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let i=0;const D=e.ref([]),d=e.computed(()=>{let{sum:I,height:E}={sum:0,height:0};return g.value.map((_,O)=>(typeof l=="number"?E=l:E=l(O),I+=E,{height:E,sum:I}))}),p=e.computed(()=>Y(y.value.start)),h=e.computed(()=>typeof l=="number"?d.value.length*l:d.value[d.value.length-1]?.sum||0),z=e.computed(()=>{const{start:I,end:E}=m.value;return D.value.slice(I,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(g,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([I,E])=>{(I||E)&&C()},{deep:!0}),e.watch(f,()=>{x(),M()});function x(){c.value=!1}function U(){c.value=!0,o?.()}function C(){cancelAnimationFrame(u),u=requestAnimationFrame(j)}function j(){if(r.value){f.value=r.value.scrollTop;let I=v(f.value);i=P(I);let E=Math.max(0,I-s),_=Math.min(I+i+s,g.value.length);y.value={start:E,end:_},D.value=g.value.slice(E,_).map((O,L)=>({data:O,index:L+E})),m.value.start=I-E,m.value.end=m.value.start+i}}function v(I){let E=0,_=d.value.length-1,O=-1;for(;E<=_;){const L=Math.floor((E+_)/2);d.value[L].sum>=I?(O=L,_=L-1):E=L+1}return Math.max(0,O)}function P(I){let E=0,_=0;for(let O=I;O<d.value.length&&(E++,_+=d.value[O].height,!(_>=a.height.value));O++);return E}function Y(I){if(typeof l=="number")return I*l;let E=d.value[I];return E?E.sum-E.height:0}function B(I){return d.value[I]||{sum:0,height:0}}function F(I){if(r.value){const E=B(I);r.value.scrollTop=E.sum-E.height,j()}}const Z=e.computed(()=>({style:{width:"100%",height:`${h.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${p.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:D,visiableList:z,getItemHeightData:B,getoffsetTopIndex:v,totalHeight:h,clientHeight:a.height,scrollTo:F,scrollTop:f,isScrollEnd:c,containerProps:{ref:r,onScroll:()=>{C()},style:$},wrapperProps:Z,innerProps:V}}const G=Symbol(),X=Symbol(),q=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),R=Symbol(),le=Symbol();function Mt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},r=e.inject(J,s),a=e.inject(q,t),c=e.inject(oe,o),M=e.inject(X,n),u=e.inject(G,n),g=e.inject(ee,n),f=e.inject(te,n),y=e.inject(ne,n),m=e.inject(R,n),i=e.inject(le,l);return{selected:r,isSelected:a,isAllSelected:c,toggle:M,toggleAll:u,select:g,selectAll:f,unselect:y,unselectAll:m,selectedCount:i}}function ft(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,d=>{s.value=d.reduce((p,h)=>(p.set(h[t],h),p),new Map)},{deep:!0,immediate:!0});const r=e.computed(()=>{let d=[];if(o.value!=null)o.value&&(d=Array.from(s.value.values()));else if(l.value.size){let p;l.value.forEach(h=>{p=s.value.get(h),p&&d.push(p)})}return d}),a=e.computed(()=>{let d=0;return o.value!=null?o.value&&(d=s.value.size):d=l.value.size,d}),c=e.computed(()=>{let d;if(o.value!=null)d=o.value;else{const p=l.value.size,h=s.value.size;d=p==h}return d});function M(){o.value=!0}function u(){o.value=!1}function g(d){m(()=>{d.forEach(p=>{l.value.add(p[t])})})}function f(d){m(()=>{d.forEach(p=>{l.value.delete(p[t])})})}function y(d){return o.value!=null?o.value:l.value.has(d[t])}function m(d){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),d(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function i(d){m(()=>{d.forEach(p=>{y(p)?l.value.delete(p[t]):l.value.add(p[t])})})}function D(){const{value:d}=c;d?u():M()}return e.provide(G,D),e.provide(X,i),e.provide(q,y),e.provide(J,r),e.provide(ee,g),e.provide(te,M),e.provide(ne,f),e.provide(oe,c),e.provide(R,u),e.provide(R,u),e.provide(le,a),{selected:r,select:g,selectAll:M,unselect:f,unselectAll:u,toggle:i,toggleAll:D,isSelected:y,isAllSelected:c,selectedCount:a}}function gt(n){const t=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let i=[];return t.value!=null?t.value&&(i=n.value):o.value.size&&(i=Array.from(o.value.values())),i}),s=e.computed(()=>{let i=0;return t.value!=null?t.value&&(i=n.value.length):i=o.value.size,i}),r=e.computed(()=>{let i;if(t.value!=null)i=t.value;else{const D=o.value.size,d=n.value.length;i=D==d}return i});function a(){t.value=!0}function c(){t.value=!1}function M(i){f(()=>{i.forEach(D=>{o.value.add(D)})})}function u(i){f(()=>{i.forEach(D=>{o.value.delete(D)})})}function g(i){return t.value!=null?t.value:o.value.has(i)}function f(i){t.value!=null&&(t.value?o.value=new Set(Array.from(n.value)):o.value=new Set),i(),o.value.size==0?t.value=!1:o.value.size==n.value.length?t.value=!0:t.value=null}function y(i){f(()=>{i.forEach(D=>{g(D)?o.value.delete(D):o.value.add(D)})})}function m(){const{value:i}=r;i?c():a()}return e.provide(G,m),e.provide(X,y),e.provide(q,g),e.provide(J,l),e.provide(ee,M),e.provide(te,a),e.provide(ne,u),e.provide(oe,r),e.provide(R,c),e.provide(R,c),e.provide(le,s),{selected:l,select:M,selectAll:a,unselect:u,unselectAll:c,toggle:y,toggleAll:m,isSelected:g,isAllSelected:r,selectedCount:s}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:r=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const M=e.computed(()=>Ee(t==="colum"?vn:Sn,50)),u=new Set,g=e.ref(!0),f=e.ref(),y=e.ref(!1),m=e.ref({x:0,y:0}),i=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(T=>d.value=T[0].target.getBoundingClientRect()),d=e.ref({}),p=e.ref({top:0,height:0,sync(T=!1){p.value.top=f.value?.scrollTop||0,T&&(p.value.height=f.value?.scrollHeight||0)}}),h=e.computed(()=>y.value?{left:Math.min(m.value.x,i.value.x)-d.value.left,top:Math.min(m.value.y,i.value.y)-d.value.top,width:Math.abs(m.value.x-i.value.x),height:Math.abs(m.value.y-i.value.y)}:{left:0,top:0,width:0,height:0}),{margin:z=50,startSpeed:x=30,maxSpeed:U=30}=o;let C;const j=z,v=x,P=U,Y=T=>T**1;let B=0;function F(T){if(cancelAnimationFrame(C),B=Z(T),B=Math.max(Math.min(B,P),-P),B!==0){const w=f.value;if(!w||!y.value)return;const b=p.value.height-d.value.height;let A=p.value.top+Number(B);A=Math.min(Math.max(0,A),b),w.scrollTop=A,$(),C=requestAnimationFrame(()=>F(T))}}function Z(T){if(f.value){const b=d.value,A=b.bottom-T;if(A<j)return v*Y(1-A/j);const Q=T-b.top;if(Q<j)return-v*Y(1-Q/j)}return 0}function V(T){const w={...h.value,right:0,bottom:0};return w.left+=d.value.left,w.top+=d.value.top-p.value.top,w.right=w.width+w.left,w.bottom=w.height+w.top,w.left<T.right&&w.right>T.left&&w.top<T.bottom&&w.bottom>T.top}function $(){p.value.sync();const{top:T,height:w}=p.value;i.value.y=Math.min(w+d.value.top,i.value.y+T-i.value.scrollTop),i.value.scrollTop=T}function I(T,w,b="dynamic-styles"){let A=document.getElementById(b);A||(A=document.createElement("style"),A.id=b,document.head.appendChild(A));const Q=A.sheet.cssRules,H=Q.length,On=`${T} { ${w} }`;for(let ge=0;ge<H;ge++){const Qe=Q[ge];if(Qe.selectorText===T&&Qe.style.cssText===w)return}A.sheet.insertRule(On,H)}function E(T,w){g.value=!0,y.value=!0,p.value.height?p.value.sync():p.value.sync(!0),m.value.x=T,m.value.y=w+p.value.top,i.value.x=m.value.x,i.value.y=m.value.y,f.value?.classList.add("disable-scroll-behavior"),u.clear()}function _(T,w,b){!y.value||(g.value&&t==="colum"&&!S()&&(a(),g.value=!1),b?.(),F(w),i.value.x=Math.max(T,d.value.left),i.value.y=Math.min(w+p.value.top,p.value.height+d.value.top),i.value.scrollTop=p.value.top,M.value())}function O(){y.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(B||$(),M.value())}function S(){if(!y.value)return!1;const{width:T,height:w}=h.value;return!(Math.max(T,w)>5)}function fe(){S()&&a()}function vn(){S()||f.value?.querySelectorAll(`[${n}]`).forEach(T=>{c[`${n}`]=T.getAttribute(`${n}`),V(T.getBoundingClientRect())?s([c]):r([c])})}function Sn(){const T=[];let w=null,b=0;f.value?.querySelectorAll(`[${n}]`).forEach((A,Q)=>{const H=A.getAttribute(`${n}`);T.push(H),V(A.getBoundingClientRect())?(w===null&&(w=Q),w=Math.min(w,Q),b=Math.max(b,Q)):(c[`${n}`]=H,u.has(H)&&r([c]))});for(let A=w;A<b+1;A++)c[`${n}`]=T[A],s([c]),u.add(T[A])}function _n(T){return!T?.value||(f.value=T.value,!f?.value)?!1:(D.observe(f.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:_n,dragStart:E,dragMove:_,dragEnd:O,onScroll:L,isSingleClick:S,cancelSelectAllBySingleClick:fe,selectFn:M,selectRange:h,isPressing:y,containerEl:f,observer:D}}function mt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:r,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:M}=t,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=ie(`.drag-select-box {
|
|
1
|
+
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.ui={},N.Vue))})(this,function(N,e){"use strict";const me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function r(a){if(o===void 0)return;const c=a.clientX,M=a.clientY,u=Math.abs(c-o),g=Math.abs(M-l);u>5||g>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=r,n.addEventListener("mousedown",s),n.addEventListener("mouseup",r)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Ue={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function r(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",r)}};var Pe=Object.defineProperty,Ye=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ye=(n,t,o)=>t in n?Pe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Ve=(n,t)=>{for(var o in t||(t={}))Re.call(t,o)&&ye(n,o,t[o]);if(pe)for(var o of pe(t))Fe.call(t,o)&&ye(n,o,t[o]);return n},He=(n,t)=>Ye(n,$e(t));function We(n,t){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=n()},He(Ve({},t),{flush:(o=t?.flush)!=null?o:"sync"})),e.readonly(l)}var he;const se=typeof window<"u",Ne=n=>typeof n=="function";se&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function De(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Ze(n,t={}){let o,l;return r=>{const a=K(n),c=K(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),r();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,r()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,r()},a)}}function Ke(n,t=!0,o=!0){let l=0,s,r=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return M=>{const u=K(n),g=Date.now()-l;if(a(),u<=0)return l=Date.now(),M();g>u&&(o||!r)?(l=Date.now(),M()):t&&(s=setTimeout(()=>{l=Date.now(),r=!0,a(),M()},u)),!o&&!s&&(s=setTimeout(()=>r=!0,u)),r=!1}}function Ge(n){return n}function Xe(n,t){let o,l,s;const r=e.ref(!0),a=()=>{r.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=Ne(t)?t:t.get,M=Ne(t)?void 0:t.set,u=e.customRef((g,f)=>(l=g,s=f,{get(){return r.value&&(o=c(),r.value=!1),l(),o},set(y){M?.(y)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Te(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function we(n,t=200,o={}){return De(Ze(t,o),n)}function Ee(n,t=200,o=!1,l=!0){return De(Ke(t,o,l),n)}function Ie(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ze(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const qe=se?window:void 0,Je=se?window.document:void 0;function et(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ie(l,t),o}const ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},re="__vueuse_ssr_handlers__";ae[re]=ae[re]||{},ae[re];function tt(){const n=e.getCurrentInstance(),t=Xe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var je=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(n,t)=>{var o={};for(var l in n)nt.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&je)for(var l of je(n))t.indexOf(l)<0&&ot.call(n,l)&&(o[l]=n[l]);return o};function st(n,t,o={}){const l=o,{window:s=qe}=l,r=lt(l,["window"]);let a;const c=et(()=>s&&"ResizeObserver"in s),M=()=>{a&&(a.disconnect(),a=void 0)},u=e.watch(()=>ze(n),f=>{M(),c.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,r))},{immediate:!0,flush:"post"}),g=()=>{M(),u()};return Te(g),{isSupported:c,stop:g}}function at(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),r=e.ref(t.height);return st(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((M,{inlineSize:u})=>M+u,0),r.value=c.reduce((M,{blockSize:u})=>M+u,0)):(s.value=a.contentRect.width,r.value=a.contentRect.height)},o),e.watch(()=>ze(n),a=>{s.value=a?t.width:0,r.value=a?t.height:0}),{width:s,height:r}}var Ae;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ae||(Ae={}));let rt=0;function ie(n,t={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:r=!1,id:a=`vueuse_styletag_${++rt}`}=t,c=e.ref(n);let M=()=>{};const u=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!o.value&&(M=e.watch(c,y=>{f.innerText=y},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(M(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!r&&Ie(u),r||Te(g),{id:a,css:c,unload:g,load:u,isLoaded:e.readonly(o)}}var it=Object.defineProperty,Le=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?it(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,dt=(n,t)=>{for(var o in t||(t={}))ct.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))ut.call(t,o)&&Ce(n,o,t[o]);return n};dt({linear:Ge},{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 ve(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,r=e.ref(null),a=at(r),c=e.ref(!0),M=we(U,100);let u;const g=e.shallowRef(n),f=e.ref(0),y=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let i=0;const D=e.ref([]),d=e.computed(()=>{let{sum:I,height:E}={sum:0,height:0};return g.value.map((S,O)=>(typeof l=="number"?E=l:E=l(O),I+=E,{height:E,sum:I}))}),p=e.computed(()=>Y(y.value.start)),h=e.computed(()=>typeof l=="number"?d.value.length*l:d.value[d.value.length-1]?.sum||0),z=e.computed(()=>{const{start:I,end:E}=m.value;return D.value.slice(I,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(g,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([I,E])=>{(I||E)&&C()},{deep:!0}),e.watch(f,()=>{x(),M()});function x(){c.value=!1}function U(){c.value=!0,o?.()}function C(){cancelAnimationFrame(u),u=requestAnimationFrame(j)}function j(){if(r.value){f.value=r.value.scrollTop;let I=v(f.value);i=P(I);let E=Math.max(0,I-s),S=Math.min(I+i+s,g.value.length);y.value={start:E,end:S},D.value=g.value.slice(E,S).map((O,L)=>({data:O,index:L+E})),m.value.start=I-E,m.value.end=m.value.start+i}}function v(I){let E=0,S=d.value.length-1,O=-1;for(;E<=S;){const L=Math.floor((E+S)/2);d.value[L].sum>=I?(O=L,S=L-1):E=L+1}return Math.max(0,O)}function P(I){let E=0,S=0;for(let O=I;O<d.value.length&&(E++,S+=d.value[O].height,!(S>=a.height.value));O++);return E}function Y(I){if(typeof l=="number")return I*l;let E=d.value[I];return E?E.sum-E.height:0}function B(I){return d.value[I]||{sum:0,height:0}}function F(I){if(r.value){const E=B(I);r.value.scrollTop=E.sum-E.height,j()}}const Z=e.computed(()=>({style:{width:"100%",height:`${h.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${p.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:D,visiableList:z,getItemHeightData:B,getoffsetTopIndex:v,totalHeight:h,clientHeight:a.height,scrollTo:F,scrollTop:f,isScrollEnd:c,containerProps:{ref:r,onScroll:()=>{C()},style:$},wrapperProps:Z,innerProps:V}}const G=Symbol(),X=Symbol(),q=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),R=Symbol(),le=Symbol();function Mt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},r=e.inject(J,s),a=e.inject(q,t),c=e.inject(oe,o),M=e.inject(X,n),u=e.inject(G,n),g=e.inject(ee,n),f=e.inject(te,n),y=e.inject(ne,n),m=e.inject(R,n),i=e.inject(le,l);return{selected:r,isSelected:a,isAllSelected:c,toggle:M,toggleAll:u,select:g,selectAll:f,unselect:y,unselectAll:m,selectedCount:i}}function ft(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,d=>{s.value=d.reduce((p,h)=>(p.set(h[t],h),p),new Map)},{deep:!0,immediate:!0});const r=e.computed(()=>{let d=[];if(o.value!=null)o.value&&(d=Array.from(s.value.values()));else if(l.value.size){let p;l.value.forEach(h=>{p=s.value.get(h),p&&d.push(p)})}return d}),a=e.computed(()=>{let d=0;return o.value!=null?o.value&&(d=s.value.size):d=l.value.size,d}),c=e.computed(()=>{let d;if(o.value!=null)d=o.value;else{const p=l.value.size,h=s.value.size;d=p==h}return d});function M(){o.value=!0}function u(){o.value=!1}function g(d){m(()=>{d.forEach(p=>{l.value.add(p[t])})})}function f(d){m(()=>{d.forEach(p=>{l.value.delete(p[t])})})}function y(d){return o.value!=null?o.value:l.value.has(d[t])}function m(d){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),d(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function i(d){m(()=>{d.forEach(p=>{y(p)?l.value.delete(p[t]):l.value.add(p[t])})})}function D(){const{value:d}=c;d?u():M()}return e.provide(G,D),e.provide(X,i),e.provide(q,y),e.provide(J,r),e.provide(ee,g),e.provide(te,M),e.provide(ne,f),e.provide(oe,c),e.provide(R,u),e.provide(R,u),e.provide(le,a),{selected:r,select:g,selectAll:M,unselect:f,unselectAll:u,toggle:i,toggleAll:D,isSelected:y,isAllSelected:c,selectedCount:a}}function gt(n){const t=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let i=[];return t.value!=null?t.value&&(i=n.value):o.value.size&&(i=Array.from(o.value.values())),i}),s=e.computed(()=>{let i=0;return t.value!=null?t.value&&(i=n.value.length):i=o.value.size,i}),r=e.computed(()=>{let i;if(t.value!=null)i=t.value;else{const D=o.value.size,d=n.value.length;i=D==d}return i});function a(){t.value=!0}function c(){t.value=!1}function M(i){f(()=>{i.forEach(D=>{o.value.add(D)})})}function u(i){f(()=>{i.forEach(D=>{o.value.delete(D)})})}function g(i){return t.value!=null?t.value:o.value.has(i)}function f(i){t.value!=null&&(t.value?o.value=new Set(Array.from(n.value)):o.value=new Set),i(),o.value.size==0?t.value=!1:o.value.size==n.value.length?t.value=!0:t.value=null}function y(i){f(()=>{i.forEach(D=>{g(D)?o.value.delete(D):o.value.add(D)})})}function m(){const{value:i}=r;i?c():a()}return e.provide(G,m),e.provide(X,y),e.provide(q,g),e.provide(J,l),e.provide(ee,M),e.provide(te,a),e.provide(ne,u),e.provide(oe,r),e.provide(R,c),e.provide(R,c),e.provide(le,s),{selected:l,select:M,selectAll:a,unselect:u,unselectAll:c,toggle:y,toggleAll:m,isSelected:g,isAllSelected:r,selectedCount:s}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:r=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const M=e.computed(()=>Ee(t==="colum"?_n:Sn,50)),u=new Set,g=e.ref(!0),f=e.ref(),y=e.ref(!1),m=e.ref({x:0,y:0}),i=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(T=>d.value=T[0].target.getBoundingClientRect()),d=e.ref({}),p=e.ref({top:0,height:0,sync(T=!1){p.value.top=f.value?.scrollTop||0,T&&(p.value.height=f.value?.scrollHeight||0)}}),h=e.computed(()=>y.value?{left:Math.min(m.value.x,i.value.x)-d.value.left,top:Math.min(m.value.y,i.value.y)-d.value.top,width:Math.abs(m.value.x-i.value.x),height:Math.abs(m.value.y-i.value.y)}:{left:0,top:0,width:0,height:0}),{margin:z=50,startSpeed:x=30,maxSpeed:U=30}=o;let C;const j=z,v=x,P=U,Y=T=>T**1;let B=0;function F(T){if(cancelAnimationFrame(C),B=Z(T),B=Math.max(Math.min(B,P),-P),B!==0){const w=f.value;if(!w||!y.value)return;const b=p.value.height-d.value.height;let A=p.value.top+Number(B);A=Math.min(Math.max(0,A),b),w.scrollTop=A,$(),C=requestAnimationFrame(()=>F(T))}}function Z(T){if(f.value){const b=d.value,A=b.bottom-T;if(A<j)return v*Y(1-A/j);const Q=T-b.top;if(Q<j)return-v*Y(1-Q/j)}return 0}function V(T){const w={...h.value,right:0,bottom:0};return w.left+=d.value.left,w.top+=d.value.top-p.value.top,w.right=w.width+w.left,w.bottom=w.height+w.top,w.left<T.right&&w.right>T.left&&w.top<T.bottom&&w.bottom>T.top}function $(){p.value.sync();const{top:T,height:w}=p.value;i.value.y=Math.min(w+d.value.top,i.value.y+T-i.value.scrollTop),i.value.scrollTop=T}function I(T,w,b="dynamic-styles"){let A=document.getElementById(b);A||(A=document.createElement("style"),A.id=b,document.head.appendChild(A));const Q=A.sheet.cssRules,H=Q.length,xn=`${T} { ${w} }`;for(let ge=0;ge<H;ge++){const Qe=Q[ge];if(Qe.selectorText===T&&Qe.style.cssText===w)return}A.sheet.insertRule(xn,H)}function E(T,w){g.value=!0,y.value=!0,p.value.height?p.value.sync():p.value.sync(!0),m.value.x=T,m.value.y=w+p.value.top,i.value.x=m.value.x,i.value.y=m.value.y,f.value?.classList.add("disable-scroll-behavior"),u.clear()}function S(T,w,b){!y.value||(g.value&&t==="colum"&&!_()&&(a(),g.value=!1),b?.(),F(w),i.value.x=Math.max(T,d.value.left),i.value.y=Math.min(w+p.value.top,p.value.height+d.value.top),i.value.scrollTop=p.value.top,M.value())}function O(){y.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function L(){!y.value||(B||$(),M.value())}function _(){if(!y.value)return!1;const{width:T,height:w}=h.value;return!(Math.max(T,w)>5)}function fe(){_()&&a()}function _n(){_()||f.value?.querySelectorAll(`[${n}]`).forEach(T=>{c[`${n}`]=T.getAttribute(`${n}`),V(T.getBoundingClientRect())?s([c]):r([c])})}function Sn(){const T=[];let w=null,b=0;f.value?.querySelectorAll(`[${n}]`).forEach((A,Q)=>{const H=A.getAttribute(`${n}`);T.push(H),V(A.getBoundingClientRect())?(w===null&&(w=Q),w=Math.min(w,Q),b=Math.max(b,Q)):(c[`${n}`]=H,u.has(H)&&r([c]))});for(let A=w;A<b+1;A++)c[`${n}`]=T[A],s([c]),u.add(T[A])}function On(T){return!T?.value||(f.value=T.value,!f?.value)?!1:(D.observe(f.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:On,dragStart:E,dragMove:S,dragEnd:O,onScroll:L,isSingleClick:_,cancelSelectAllBySingleClick:fe,selectFn:M,selectRange:h,isPressing:y,containerEl:f,observer:D}}function mt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:r,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:M}=t,u=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=ie(`.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}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:u.value})}});function y(p){p.button===0&&r(p.x,p.y)}function m(p){a(p.x,p.y)}function i(p){p.composedPath().some(z=>z?.getAttribute?.(n.attribute))||M(),c()}function D(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(f),t.containerEl.value),g(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",m),window.addEventListener("mouseup",i)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function d(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",i)}return{init:D,unMount:d}}function pt(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:r,dragStart:a,dragMove:c,dragEnd:M}=l;let u;function g(){clearTimeout(u)}function f(d){g(),d.composedPath().some(h=>!!h?.getAttribute?.(n.attribute))&&(u=setTimeout(()=>{const{clientX:h,clientY:z}=d.targetTouches[0];a(h,z),t?.(),c(h,z,()=>d.preventDefault()),d.preventDefault()},o))}function y(d){g();const{clientX:p,clientY:h}=d.targetTouches[0];c(p,h,()=>d.preventDefault())}function m(){g(),M()}function i(d){try{if(!l.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",r),l.containerEl.value?.addEventListener("touchstart",f),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 D(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",r),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:i,unMount:D}}const
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:u.value})}});function y(p){p.button===0&&r(p.x,p.y)}function m(p){a(p.x,p.y)}function i(p){p.composedPath().some(z=>z?.getAttribute?.(n.attribute))||M(),c()}function D(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(f),t.containerEl.value),g(),t.containerEl.value?.addEventListener("scroll",s),t.containerEl.value?.addEventListener("mousedown",y),window.addEventListener("mousemove",m),window.addEventListener("mouseup",i)}catch(h){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",h)}}function d(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",i)}return{init:D,unMount:d}}function pt(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:r,dragStart:a,dragMove:c,dragEnd:M}=l;let u;function g(){clearTimeout(u)}function f(d){g(),d.composedPath().some(h=>!!h?.getAttribute?.(n.attribute))&&(u=setTimeout(()=>{const{clientX:h,clientY:z}=d.targetTouches[0];a(h,z),t?.(),c(h,z,()=>d.preventDefault()),d.preventDefault()},o))}function y(d){g();const{clientX:p,clientY:h}=d.targetTouches[0];c(p,h,()=>d.preventDefault())}function m(){g(),M()}function i(d){try{if(!l.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",r),l.containerEl.value?.addEventListener("touchstart",f),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 D(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",r),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:i,unMount:D}}const _e=Symbol(),yt={key:0,class:"lzc-modal"},ht=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(_e,()=>t("update:visiable",!1)),(s,r)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",yt,[e.createElementVNode("div",{onMousedown:r[0]||(r[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(me),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),kn="",k=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},Nt=k(ht,[["__scopeId","data-v-4ff684af"]]);function Dt(n){function t(o,l){const s=document.createElement("div"),r={setup(){return()=>e.h(Nt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(r),s),{close:()=>s?.remove()}}return{create:t}}function de({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,r=`${o}ms`;return ie(`@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 ${r} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const c=tt();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function Tt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function r(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:r,unload:a}}const wt=[(n=>(e.pushScopeId("data-v-9a328d05"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({eebbc516:n.width+"px","5323c3d0":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),wt,16))}}),Qn="",_e=k(Et,[["__scopeId","data-v-9a328d05"]]),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NP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:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"05ced5ee":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(It)},null,8,jt)]))}}),Un="",Lt=k(At,[["__scopeId","data-v-9526fa37"]]);async function Ct(n){return new Promise(t=>setTimeout(()=>t(),n))}const vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTc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M3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],Ot=["onClick"],xt=["src"],bt=["src"],kt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),r=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),a=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function c(){o.closeOnClickOverlay&&t("close")}function M(){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(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(M,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(r))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(f=>t("close"),["stop"])),src:e.unref(vt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(St),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(a))},e.toDisplayString(n.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,_t),[[e.vShow,n.visible]])],4)]),_:1}))}}),Pn="",Yn="",Bt=k(kt,[["__scopeId","data-v-ef098d79"]]);class Oe{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=Bt}async show(){const t=this.options,l={...t,onClose:()=>{this.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 Ct(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)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Qt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,r=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,c={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,r,a,c);const M=e.ref(!1);let u=null;const g=new Oe(c);async function f(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${M.value}`),!M.value){M.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,M.value),s&&(!M.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const i=await n(...m);o&&console.log("useDelayAsync - execute res: ",i),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await y(r),await t?.onSuccess?.(i)}catch(i){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(i),await y(r),await t?.onError?.(i)}}}async function y(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),M.value=!1,u&&clearTimeout(u),u=null,m&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),y()}),{processing:M,handler:f,close:y}}const Ut=["onClick"],Pt=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(),r=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(${r.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function M(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(M,["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(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Ut))}}),$n="",Yt=k(Pt,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class $t{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Yt),{...xe,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const 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 Rt=["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(r){const{style:a}=r;return typeof a=="object"?a:{}}return(r,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(r.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Rt)],4))}});function Ft(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:r=.9,observeMethod:a="classList"}=n,c=e.ref(!0),M=we(Y,100);let u,g="";const f=e.ref(0),y=e.ref(0),m=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),d=e.computed(()=>!!y.value),p=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),h=e.computed(()=>l?i.value.clientHeight-U.value:i.value.clientHeight-D.value.clientHeight),z=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),x=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),U=e.computed(()=>x.value>r?0:x.value*i.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function j(L){P(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=g,y.value=0,M()}function P(){c.value=!1}function Y(){d.value||(c.value=!0)}function B(L){if(!d.value)return;let S=L.clientY-i.value.top-y.value;S<0?m.value=0:S>=h.value?m.value=h.value:m.value=S,t.value.scrollTo({top:m.value/h.value*z.value})}function F(){d.value||Z()}function Z(){cancelAnimationFrame(u),u=requestAnimationFrame(V)}function V(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,m.value=f.value/z.value*h.value)}function $(L){let S="addEventListener";L==="add"?S="addEventListener":S="removeEventListener",o.value?.[S]("pointerdown",j,{passive:!0}),window[S]("pointermove",B,{passive:!0}),window[S]("pointerup",v,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(fe=>fe.oldValue).join().includes("height"))&&E()});function E(){i.value.top=t.value?.getBoundingClientRect().top??0,i.value.scrollHeight=t.value?.scrollHeight??0,i.value.clientHeight=t.value?.clientHeight??0}function _(){P(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function O(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",F,{passive:!0}),$("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(()=>{E()},100),_()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(f,()=>{P(),M()}),{isScrollEnd:c,isDragSlider:d,offsetTop:m,scrollTop:f,scrollable:p,sliderPos:C,init:O,modifySliderEventListener:$}}const Vt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ht=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),r=e.computed(()=>o.containerEl),a=Ft({containerEl:r,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:M,sliderPos:u}=a,g=e.ref(!1),f=o.autoHide?e.computed(()=>g.value||!M.value):e.computed(()=>c.value),{load:y}=ie(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const c=tt();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function Tt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function r(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:r,unload:a}}const wt=[(n=>(e.pushScopeId("data-v-9a328d05"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({eebbc516:n.width+"px","5323c3d0":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),wt,16))}}),Un="",Se=k(Et,[["__scopeId","data-v-9a328d05"]]),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Bi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rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",zt={class:"loading-wrap"},jt=["src"],At=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"05ced5ee":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(It)},null,8,jt)]))}}),Pn="",Lt=k(At,[["__scopeId","data-v-9526fa37"]]);async function Ct(n){return new Promise(t=>setTimeout(()=>t(),n))}const vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDY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AyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",St=["onClick"],Ot=["onClick"],xt=["src"],bt=["src"],kt=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),r=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),a=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function c(){o.closeOnClickOverlay&&t("close")}function M(){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(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(M,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(r))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(f=>t("close"),["stop"])),src:e.unref(vt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(_t),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(a))},e.toDisplayString(n.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,St),[[e.vShow,n.visible]])],4)]),_:1}))}}),Yn="",$n="",Bt=k(kt,[["__scopeId","data-v-ef098d79"]]);class Oe{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=Bt}async show(){const t=this.options,l={...t,onClose:()=>{this.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 Ct(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)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Qt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,r=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,c={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,r,a,c);const M=e.ref(!1);let u=null;const g=new Oe(c);async function f(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${M.value}`),!M.value){M.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,M.value),s&&(!M.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const i=await n(...m);o&&console.log("useDelayAsync - execute res: ",i),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await y(r),await t?.onSuccess?.(i)}catch(i){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(i),await y(r),await t?.onError?.(i)}}}async function y(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),M.value=!1,u&&clearTimeout(u),u=null,m&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),y()}),{processing:M,handler:f,close:y}}const Ut=["onClick"],Pt=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(),r=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(${r.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function M(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(M,["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(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Ut))}}),Rn="",Yt=k(Pt,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class $t{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Yt),{...xe,...this.options});e.render(t,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||xe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const 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 Rt=["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(r){const{style:a}=r;return typeof a=="object"?a:{}}return(r,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(r.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Rt)],4))}});function Ft(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:r=.9,observeMethod:a="classList"}=n,c=e.ref(!0),M=we(Y,100);let u,g="";const f=e.ref(0),y=e.ref(0),m=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),d=e.computed(()=>!!y.value),p=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),h=e.computed(()=>l?i.value.clientHeight-U.value:i.value.clientHeight-D.value.clientHeight),z=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),x=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),U=e.computed(()=>x.value>r?0:x.value*i.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function j(L){P(),y.value=L.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=g,y.value=0,M()}function P(){c.value=!1}function Y(){d.value||(c.value=!0)}function B(L){if(!d.value)return;let _=L.clientY-i.value.top-y.value;_<0?m.value=0:_>=h.value?m.value=h.value:m.value=_,t.value.scrollTo({top:m.value/h.value*z.value})}function F(){d.value||Z()}function Z(){cancelAnimationFrame(u),u=requestAnimationFrame(V)}function V(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,m.value=f.value/z.value*h.value)}function $(L){let _="addEventListener";L==="add"?_="addEventListener":_="removeEventListener",o.value?.[_]("pointerdown",j,{passive:!0}),window[_]("pointermove",B,{passive:!0}),window[_]("pointerup",v,{passive:!0})}const I=new MutationObserver(L=>{(a=="classList"||L.map(fe=>fe.oldValue).join().includes("height"))&&E()});function E(){i.value.top=t.value?.getBoundingClientRect().top??0,i.value.scrollHeight=t.value?.scrollHeight??0,i.value.clientHeight=t.value?.clientHeight??0}function S(){P(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function O(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",F,{passive:!0}),$("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(()=>{E()},100),S()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(f,()=>{P(),M()}),{isScrollEnd:c,isDragSlider:d,offsetTop:m,scrollTop:f,scrollable:p,sliderPos:C,init:O,modifySliderEventListener:$}}const Vt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ht=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),r=e.computed(()=>o.containerEl),a=Ft({containerEl:r,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:M,sliderPos:u}=a,g=e.ref(!1),f=o.autoHide?e.computed(()=>g.value||!M.value):e.computed(()=>c.value),{load:y}=ie(`.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(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function m(){g.value=!0}function i(){g.value=!1}return t({uScrollBarReturn:a}),(D,d)=>(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:i,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(D.$slots,"default",{},()=>[Vt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),Fn="",Wt=k(Ht,[["__scopeId","data-v-efefe52c"]]),Zt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Kt={class:"pull-refresh"},Gt={key:0,class:"pull-arrow-circle"},Xt={key:0,class:"box-load"},qt={class:"left-load"},Jt={class:"right-load"},en=Zt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),tn={class:"pull-arrow"},nn={key:1},on=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),r=e.ref(1),a=e.ref(0),c=e.ref(.3),M=e.ref(!1),u=e.ref(0),g=e.ref(0),f=e.ref(0),y=e.ref(0),m=e.ref(0),i=e.ref(),D=e.computed(()=>t.scrollTop),d=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${r.value})`})),p=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(m,j=>{j===0&&(s.value=-50,c.value=.3)}),e.watch(g,j=>{if(m.value===2)return;const v=Math.pow(j,o);v===0&&(s.value=-50),v<=50&&v>0&&(s.value=v-45,a.value=Math.pow(v,1.5),v>15?M.value=!0:M.value=!1),v>50&&(s.value=5,c.value=1,m.value)});const h=e.ref(0),z=j=>{h.value=j.touches[0].pageY},x=j=>{const v=j.touches[0].pageY-h.value;h.value=j.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&D.value===0&&(u.value===0&&(u.value=j.touches[0].pageY),f.value=0,C.value.style.transition=`${f.value}ms`,y.value=0,g.value=j.touches[0].pageY-u.value,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,v>0&&j.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;u.value=0,f.value=300;const j=Math.pow(g.value,o);C.value.style.transition=`${f.value}ms`,j>50?(m.value=2,g.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{i.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{i.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{i.value=void 0},y.value)},600)})):(g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",z),C.value?.addEventListener("touchmove",x),C.value?.addEventListener("touchend",U))}),(j,v)=>(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(d))},[i.value?(e.openBlock(),e.createElementBlock("div",nn,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("div",Gt,[m.value==2?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",qt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),en])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(p))},[e.createElementVNode("div",tn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:M.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Vn="",be=k(on,[["__scopeId","data-v-18377f18"]]),ln={inheritAttrs:!1},sn=e.defineComponent({...ln,__name:"VirtualList",props:{data:null,getItemKey: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=ve(e.toRef(l,"data"),{itemHeight:m=>l.itemHeight(l.data[m]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:r,containerProps:a,wrapperProps:c,innerProps:M,getItemHeightData:u,scrollTop:g}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();function y(m,i){return l.getItemKey?l.getItemKey(m,i):`${i}`}return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(be,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...D)=>e.unref(a).onScroll&&e.unref(a).onScroll(...D)),ref:e.unref(a).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(M))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),({data:D,index:d})=>(e.openBlock(),e.createElementBlock("div",{key:y(D,d),style:e.normalizeStyle({height:`${e.unref(u)(d).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:D,index:d},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Hn="",an=k(sn,[["__scopeId","data-v-724bc012"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),rn={style:{position:"absolute"}},cn=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),un=["width","height"],dn=[Me(()=>e.createElementVNode("title",null,"logo",-1)),Me(()=>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))],Mn=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",rn,[cn,(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"},dn,8,un))]))}}),Kn="",fn=k(Mn,[["__scopeId","data-v-c986249d"]]),gn=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],mn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function ke(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),r=e.computed(()=>s.value),a=e.computed(()=>{const M=t?.value;return!M||M.startsWith("video/")?!0:M.startsWith("image/")?l.value?gn.includes(M):mn.includes(M):!1});n&&e.watch(n,M=>{o.value=M,s.value=!1});function c(){s.value=!0}return{imgSrc:o,isError:s,hasError:r,isSupport:a,handleError:c}}function Be(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const pn=n=>(e.pushScopeId("data-v-d85c1bee"),n=n(),e.popScopeId(),n),yn=["title"],hn=pn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),Nn=["src"],Dn=["src"],Tn=["title"],wn={inheritAttrs:!1},En=e.defineComponent({...wn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:r,mime:a}=e.toRefs(t),{imgSrc:c,isSupport:M,hasError:u,handleError:g}=ke(r,a),{vImageCancel:f}=Be(),{LoadingComp:y}=de({component:_e,delay:300}),m=We(()=>s.value&&t.autoRemoveThumbnail?!1:t.thumbnail&&!s.value);function i(){l.value=!0}function D(){l.value&&(s.value=!0)}function d(h){h&&i(),o.value=!0}function p(h){h?g():i(),o.value=!0}return(h,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(M)?e.unref(u)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(W,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,Tn)):e.renderSlot(h.$slots,"default",{key:2,src:e.unref(c),onLoad:d,onError:p},()=>[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(m)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{class:"preview-class",onLoad:z[0]||(z[0]=x=>d()),onError:z[1]||(z[1]=x=>p()),src:n.thumbnail}),null,16,Nn)),[[e.unref(f)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{onAfterEnter:z[4]||(z[4]=x=>D())},{default:e.withCtx(()=>[n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{class:"src-class",onLoad:z[2]||(z[2]=x=>d(!0)),onError:z[3]||(z[3]=x=>p(!0)),src:e.unref(c)}),null,16,Dn)),[[e.unref(f)],[e.vShow,l.value]]):e.createCommentVNode("",!0)]),_:1})],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(W,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),hn],16,yn))],64))}}),Gn="",In=k(En,[["__scopeId","data-v-d85c1bee"]]),zn=["title"],jn=["src"],An=["title"],Ln=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),{imgSrc:r,hasError:a,isSupport:c,handleError:M}=ke(l,s),{vImageCancel:u}=Be();return(g,f)=>e.unref(c)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(r),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,An)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:f[0]||(f[0]=y=>o.value=!0),onError:f[1]||(f[1]=(...y)=>e.unref(M)&&e.unref(M)(...y)),src:e.unref(r)},null,40,jn)),[[e.unref(u)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(r),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,zn))}}),Xn="",Cn=k(Ln,[["__scopeId","data-v-9fad8239"]]);N.DefaultLoading=_e,N.Image=In,N.Loading=fn,N.LoadingToast=Oe,N.PageLoading=Lt,N.PullRefresh=be,N.ScrollBar=Wt,N.SvgIcon=W,N.Thumbnail=Cn,N.ToastCreator=$t,N.VirtualList=an,N.allSelectedKey=J,N.closeDialogKey=Se,N.dialogController=Dt,N.isAllSelectedKey=oe,N.isSelectedKey=q,N.selectAllKey=te,N.selectKey=ee,N.selectedCountKey=le,N.toggleAllKey=G,N.toggleKey=X,N.unselectAllKey=R,N.unselectKey=ne,N.useDelayAsync=Qt,N.useDelayLoad=Tt,N.useDelayLoadComp=de,N.useDragSelect=ue,N.useDragSelectByMobile=pt,N.useDragSelectByPc=mt,N.useSelectable=ft,N.useSelectableByBase=gt,N.useSelectableInjectors=Mt,N.useVirtualList=ve,N.vDebounceClick=Ue,N.vSingleClick=me,Object.defineProperties(N,{__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(){g.value=!0}function i(){g.value=!1}return t({uScrollBarReturn:a}),(D,d)=>(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:i,style:e.normalizeStyle(e.unref(u))},[e.renderSlot(D.$slots,"default",{},()=>[Vt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),Vn="",Wt=k(Ht,[["__scopeId","data-v-efefe52c"]]),Zt=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Kt={class:"pull-refresh"},Gt={key:0,class:"pull-arrow-circle"},Xt={key:0,class:"box-load"},qt={class:"left-load"},Jt={class:"right-load"},en=Zt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),tn={class:"pull-arrow"},nn={key:1},on=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),r=e.ref(1),a=e.ref(0),c=e.ref(.3),M=e.ref(!1),u=e.ref(0),g=e.ref(0),f=e.ref(0),y=e.ref(0),m=e.ref(0),i=e.ref(),D=e.computed(()=>t.scrollTop),d=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${r.value})`})),p=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:c.value}));e.watch(m,j=>{j===0&&(s.value=-50,c.value=.3)}),e.watch(g,j=>{if(m.value===2)return;const v=Math.pow(j,o);v===0&&(s.value=-50),v<=50&&v>0&&(s.value=v-45,a.value=Math.pow(v,1.5),v>15?M.value=!0:M.value=!1),v>50&&(s.value=5,c.value=1,m.value)});const h=e.ref(0),z=j=>{h.value=j.touches[0].pageY},x=j=>{const v=j.touches[0].pageY-h.value;h.value=j.touches[0].pageY,!t.refreshOff&&(!t?.refresh||m.value!==2&&D.value===0&&(u.value===0&&(u.value=j.touches[0].pageY),f.value=0,C.value.style.transition=`${f.value}ms`,y.value=0,g.value=j.touches[0].pageY-u.value,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,v>0&&j.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||m.value===2)return;u.value=0,f.value=300;const j=Math.pow(g.value,o);C.value.style.transition=`${f.value}ms`,j>50?(m.value=2,g.value=Math.pow(50,1/o),C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{i.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{i.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{m.value=0,g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{i.value=void 0},y.value)},600)})):(g.value=0,C.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},C=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(C.value=document.querySelector(t.pullRefreshContainer),C.value?.addEventListener("touchstart",z),C.value?.addEventListener("touchmove",x),C.value?.addEventListener("touchend",U))}),(j,v)=>(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(d))},[i.value?(e.openBlock(),e.createElementBlock("div",nn,e.toDisplayString(i.value),1)):(e.openBlock(),e.createElementBlock("div",Gt,[m.value==2?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",qt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),en])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(p))},[e.createElementVNode("div",tn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:M.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",be=k(on,[["__scopeId","data-v-18377f18"]]),ln=["data-key"],sn={inheritAttrs:!1},an=e.defineComponent({...sn,__name:"VirtualList",props:{data:null,getItemKey: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=ve(e.toRef(l,"data"),{itemHeight:m=>l.itemHeight(l.data[m]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:r,containerProps:a,wrapperProps:c,innerProps:M,getItemHeightData:u,scrollTop:g}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();function y(m,i){return l.getItemKey?l.getItemKey(m,i):`${i}`}return(m,i)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(be,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:i[0]||(i[0]=(...D)=>e.unref(a).onScroll&&e.unref(a).onScroll(...D)),ref:e.unref(a).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(M))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),({data:D,index:d})=>(e.openBlock(),e.createElementBlock("div",{key:y(D,d),"data-key":y(D,d),style:e.normalizeStyle({height:`${e.unref(u)(d).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:D,index:d},void 0,!0)],12,ln))),128))],16)],16)],16)])],64))}}),Wn="",rn=k(an,[["__scopeId","data-v-76b1f71d"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),cn={style:{position:"absolute"}},un=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),dn=["width","height"],Mn=[Me(()=>e.createElementVNode("title",null,"logo",-1)),Me(()=>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))],fn=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",cn,[un,(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"},Mn,8,dn))]))}}),Gn="",gn=k(fn,[["__scopeId","data-v-c986249d"]]),mn=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],pn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function ke(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),r=e.computed(()=>s.value),a=e.computed(()=>{const M=t?.value;return!M||M.startsWith("video/")?!0:M.startsWith("image/")?l.value?mn.includes(M):pn.includes(M):!1});n&&e.watch(n,M=>{o.value=M,s.value=!1});function c(){s.value=!0}return{imgSrc:o,isError:s,hasError:r,isSupport:a,handleError:c}}function Be(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const yn=n=>(e.pushScopeId("data-v-d85c1bee"),n=n(),e.popScopeId(),n),hn=["title"],Nn=yn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),Dn=["src"],Tn=["src"],wn=["title"],En={inheritAttrs:!1},In=e.defineComponent({...En,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:r,mime:a}=e.toRefs(t),{imgSrc:c,isSupport:M,hasError:u,handleError:g}=ke(r,a),{vImageCancel:f}=Be(),{LoadingComp:y}=de({component:Se,delay:300}),m=We(()=>s.value&&t.autoRemoveThumbnail?!1:t.thumbnail&&!s.value);function i(){l.value=!0}function D(){l.value&&(s.value=!0)}function d(h){h&&i(),o.value=!0}function p(h){h?g():i(),o.value=!0}return(h,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(M)?e.unref(u)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(W,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,wn)):e.renderSlot(h.$slots,"default",{key:2,src:e.unref(c),onLoad:d,onError:p},()=>[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.unref(m)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{class:"preview-class",onLoad:z[0]||(z[0]=x=>d()),onError:z[1]||(z[1]=x=>p()),src:n.thumbnail}),null,16,Dn)),[[e.unref(f)]]):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{onAfterEnter:z[4]||(z[4]=x=>D())},{default:e.withCtx(()=>[n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},h.$attrs,{class:"src-class",onLoad:z[2]||(z[2]=x=>d(!0)),onError:z[3]||(z[3]=x=>p(!0)),src:e.unref(c)}),null,16,Tn)),[[e.unref(f)],[e.vShow,l.value]]):e.createCommentVNode("",!0)]),_:1})],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},h.$attrs,{title:e.unref(c),class:"tip-wrap"}),[e.createVNode(W,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),Nn],16,hn))],64))}}),Xn="",zn=k(In,[["__scopeId","data-v-d85c1bee"]]),jn=["title"],An=["src"],Ln=["title"],Cn=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),{imgSrc:r,hasError:a,isSupport:c,handleError:M}=ke(l,s),{vImageCancel:u}=Be();return(g,f)=>e.unref(c)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(r),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Ln)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:f[0]||(f[0]=y=>o.value=!0),onError:f[1]||(f[1]=(...y)=>e.unref(M)&&e.unref(M)(...y)),src:e.unref(r)},null,40,An)),[[e.unref(u)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(r),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,jn))}}),qn="",vn=k(Cn,[["__scopeId","data-v-9fad8239"]]);N.DefaultLoading=Se,N.Image=zn,N.Loading=gn,N.LoadingToast=Oe,N.PageLoading=Lt,N.PullRefresh=be,N.ScrollBar=Wt,N.SvgIcon=W,N.Thumbnail=vn,N.ToastCreator=$t,N.VirtualList=rn,N.allSelectedKey=J,N.closeDialogKey=_e,N.dialogController=Dt,N.isAllSelectedKey=oe,N.isSelectedKey=q,N.selectAllKey=te,N.selectKey=ee,N.selectedCountKey=le,N.toggleAllKey=G,N.toggleKey=X,N.unselectAllKey=R,N.unselectKey=ne,N.useDelayAsync=Qt,N.useDelayLoad=Tt,N.useDelayLoadComp=de,N.useDragSelect=ue,N.useDragSelectByMobile=pt,N.useDragSelectByPc=mt,N.useSelectable=ft,N.useSelectableByBase=gt,N.useSelectableInjectors=Mt,N.useVirtualList=ve,N.vDebounceClick=Ue,N.vSingleClick=me,Object.defineProperties(N,{__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-9a328d05]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9a328d05]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--eebbc516);height:var(--5323c3d0);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9a328d05 .7s linear infinite}@keyframes ldio-mm5gwljcryb-9a328d05{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9a328d05]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-9526fa37]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-9526fa37]{width:22px;height:22px;opacity:0;animation:loading-spin-9526fa37 .8s var(--05ced5ee) linear infinite}@keyframes loading-spin-9526fa37{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-ef098d79]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-ef098d79]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-ef098d79]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-ef098d79]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-ef098d79 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-ef098d79]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-ef098d79{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-
|
|
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-9a328d05]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9a328d05]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--eebbc516);height:var(--5323c3d0);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9a328d05 .7s linear infinite}@keyframes ldio-mm5gwljcryb-9a328d05{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9a328d05]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-9526fa37]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-9526fa37]{width:22px;height:22px;opacity:0;animation:loading-spin-9526fa37 .8s var(--05ced5ee) linear infinite}@keyframes loading-spin-9526fa37{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-ef098d79]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-ef098d79]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-ef098d79]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-ef098d79]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-ef098d79 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-ef098d79]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-ef098d79{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-76b1f71d]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-76b1f71d]{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}.v-enter-active[data-v-d85c1bee],.v-leave-active[data-v-d85c1bee]{transition:opacity .6s ease}.v-enter-from[data-v-d85c1bee],.v-leave-to[data-v-d85c1bee]{opacity:0}img[data-v-d85c1bee]{pointer-events:none}.tip[data-v-d85c1bee]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-d85c1bee]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-d85c1bee]{width:162px;height:134px}.bad-image[data-v-d85c1bee]{width:92px;height:92px}.preview-class[data-v-d85c1bee]{filter:blur(1px)}.src-class[data-v-d85c1bee]{filter:blur(0px)}img[data-v-9fad8239]{pointer-events:none}.icon-wrap[data-v-9fad8239]{display:flex;align-items:center;justify-content:center}.icon[data-v-9fad8239]{width:100%;height:100%}
|