@lazycatcloud/lzc-toolkit 0.0.119 → 0.0.121
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 +104 -104
- package/dist/index.umd.js +4 -4
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -76,7 +76,7 @@ function Lt(t, e) {
|
|
|
76
76
|
a.value = !0, s();
|
|
77
77
|
};
|
|
78
78
|
R(t, l, { flush: "sync" });
|
|
79
|
-
const r = Qe(e) ? e : e.get, c = Qe(e) ? void 0 : e.set, u = Dt((v,
|
|
79
|
+
const r = Qe(e) ? e : e.get, c = Qe(e) ? void 0 : e.set, u = Dt((v, d) => (o = v, s = d, {
|
|
80
80
|
get() {
|
|
81
81
|
return a.value && (n = r(), a.value = !1), o(), n;
|
|
82
82
|
},
|
|
@@ -131,8 +131,8 @@ function Qt(t, e, n = {}) {
|
|
|
131
131
|
let l;
|
|
132
132
|
const r = Ot(() => s && "ResizeObserver" in s), c = () => {
|
|
133
133
|
l && (l.disconnect(), l = void 0);
|
|
134
|
-
}, u = R(() => Xe(t), (
|
|
135
|
-
c(), r.value && s &&
|
|
134
|
+
}, u = R(() => Xe(t), (d) => {
|
|
135
|
+
c(), r.value && s && d && (l = new ResizeObserver(e), l.observe(d, a));
|
|
136
136
|
}, { immediate: !0, flush: "post" }), v = () => {
|
|
137
137
|
c(), u();
|
|
138
138
|
};
|
|
@@ -170,9 +170,9 @@ function _e(t, e = {}) {
|
|
|
170
170
|
const u = () => {
|
|
171
171
|
if (!o)
|
|
172
172
|
return;
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
const d = o.getElementById(l) || o.createElement("style");
|
|
174
|
+
d.type = "text/css", d.id = l, e.media && (d.media = e.media), o.head.appendChild(d), !n.value && (c = R(r, (y) => {
|
|
175
|
+
d.innerText = y;
|
|
176
176
|
}, { immediate: !0 }), n.value = !0);
|
|
177
177
|
}, v = () => {
|
|
178
178
|
!o || !n.value || (c(), o.head.removeChild(o.getElementById(l)), n.value = !1);
|
|
@@ -225,8 +225,8 @@ Pt({
|
|
|
225
225
|
function Ht(t, e) {
|
|
226
226
|
const { scrollEndHook: n, itemHeight: o, overscan: s = 5 } = e, a = D(null), l = Bt(a), r = D(!0), c = Ge(V, 100);
|
|
227
227
|
let u;
|
|
228
|
-
const v = mt(t),
|
|
229
|
-
let
|
|
228
|
+
const v = mt(t), d = D(0), y = D({ start: 0, end: 10 }), f = D({ start: 0, end: s });
|
|
229
|
+
let M = 0;
|
|
230
230
|
const I = D([]), i = N(() => {
|
|
231
231
|
let { sum: j, height: w } = { sum: 0, height: 0 };
|
|
232
232
|
return v.value.map((b, k) => (typeof o == "number" ? w = o : w = o(k), j += w, { height: w, sum: j }));
|
|
@@ -247,7 +247,7 @@ function Ht(t, e) {
|
|
|
247
247
|
(j || w) && O();
|
|
248
248
|
},
|
|
249
249
|
{ deep: !0 }
|
|
250
|
-
), R(
|
|
250
|
+
), R(d, () => {
|
|
251
251
|
Z(), c();
|
|
252
252
|
});
|
|
253
253
|
function Z() {
|
|
@@ -261,17 +261,17 @@ function Ht(t, e) {
|
|
|
261
261
|
}
|
|
262
262
|
function L() {
|
|
263
263
|
if (a.value) {
|
|
264
|
-
|
|
265
|
-
let j = _(
|
|
266
|
-
|
|
264
|
+
d.value = a.value.scrollTop;
|
|
265
|
+
let j = _(d.value);
|
|
266
|
+
M = G(j);
|
|
267
267
|
let w = Math.max(0, j - s), b = Math.min(
|
|
268
|
-
j +
|
|
268
|
+
j + M + s,
|
|
269
269
|
v.value.length
|
|
270
270
|
);
|
|
271
271
|
y.value = { start: w, end: b }, I.value = v.value.slice(w, b).map((k, C) => ({
|
|
272
272
|
data: k,
|
|
273
273
|
index: C + w
|
|
274
|
-
})), f.value.start = j - w, f.value.end = f.value.start +
|
|
274
|
+
})), f.value.start = j - w, f.value.end = f.value.start + M;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
function _(j) {
|
|
@@ -325,7 +325,7 @@ function Ht(t, e) {
|
|
|
325
325
|
totalHeight: T,
|
|
326
326
|
clientHeight: l.height,
|
|
327
327
|
scrollTo: te,
|
|
328
|
-
scrollTop:
|
|
328
|
+
scrollTop: d,
|
|
329
329
|
isScrollEnd: r,
|
|
330
330
|
containerProps: {
|
|
331
331
|
ref: a,
|
|
@@ -356,16 +356,16 @@ function Wt(t, e) {
|
|
|
356
356
|
return !0;
|
|
357
357
|
}
|
|
358
358
|
function io(t, e, n) {
|
|
359
|
-
const o = t.reduce((v,
|
|
359
|
+
const o = t.reduce((v, d) => (v.set(d[n], d), v), /* @__PURE__ */ new Map()), s = [], a = [], l = [], r = /* @__PURE__ */ new Set(), c = 2500, u = Math.ceil(e.length / c);
|
|
360
360
|
for (let v = 0; v < u; v++) {
|
|
361
|
-
const
|
|
362
|
-
for (const
|
|
363
|
-
const I =
|
|
364
|
-
!i &&
|
|
361
|
+
const d = v * c, y = d + c, f = e.slice(d, y);
|
|
362
|
+
for (const M of f) {
|
|
363
|
+
const I = M[n], i = o.get(I);
|
|
364
|
+
!i && M ? s.push(M) : i && !M ? a.push(i) : i && M && (Wt(i, M) || l.push(M)), r.add(I), o.delete(I);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
for (const [v,
|
|
368
|
-
r.has(v) || a.push(
|
|
367
|
+
for (const [v, d] of o)
|
|
368
|
+
r.has(v) || a.push(d);
|
|
369
369
|
return { added: s, removed: a, modified: l };
|
|
370
370
|
}
|
|
371
371
|
function uo() {
|
|
@@ -376,7 +376,7 @@ function uo() {
|
|
|
376
376
|
boolRef: N(() => !1),
|
|
377
377
|
numberRef: N(() => 0),
|
|
378
378
|
arrayRef: N(() => [])
|
|
379
|
-
}, a = H(tt, s), l = H(et, e), r = H(lt, n), c = H(Je, t), u = H(qe, t), v = H(nt, t),
|
|
379
|
+
}, a = H(tt, s), l = H(et, e), r = H(lt, n), c = H(Je, t), u = H(qe, t), v = H(nt, t), d = H(ot, t), y = H(st, t), f = H(je, t), M = H(at, o);
|
|
380
380
|
return {
|
|
381
381
|
selected: a,
|
|
382
382
|
isSelected: l,
|
|
@@ -384,10 +384,10 @@ function uo() {
|
|
|
384
384
|
toggle: c,
|
|
385
385
|
toggleAll: u,
|
|
386
386
|
select: v,
|
|
387
|
-
selectAll:
|
|
387
|
+
selectAll: d,
|
|
388
388
|
unselect: y,
|
|
389
389
|
unselectAll: f,
|
|
390
|
-
selectedCount:
|
|
390
|
+
selectedCount: M
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
function ro(t, e) {
|
|
@@ -439,7 +439,7 @@ function ro(t, e) {
|
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function d(i) {
|
|
443
443
|
f(() => {
|
|
444
444
|
i.forEach((g) => {
|
|
445
445
|
o.value.delete(g[e]);
|
|
@@ -452,7 +452,7 @@ function ro(t, e) {
|
|
|
452
452
|
function f(i) {
|
|
453
453
|
n.value != null && (n.value ? o.value = new Set(Array.from(s.value.keys())) : o.value = /* @__PURE__ */ new Set()), i(), o.value.size == 0 ? n.value = !1 : o.value.size == s.value.size ? n.value = !0 : n.value = null;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function M(i) {
|
|
456
456
|
f(() => {
|
|
457
457
|
i.forEach((g) => {
|
|
458
458
|
y(g) ? o.value.delete(g[e]) : o.value.add(g[e]);
|
|
@@ -463,13 +463,13 @@ function ro(t, e) {
|
|
|
463
463
|
const { value: i } = r;
|
|
464
464
|
i ? u() : c();
|
|
465
465
|
}
|
|
466
|
-
return $(qe, I), $(Je,
|
|
466
|
+
return $(qe, I), $(Je, M), $(et, y), $(tt, a), $(nt, v), $(ot, c), $(st, d), $(lt, r), $(je, u), $(je, u), $(at, l), {
|
|
467
467
|
selected: a,
|
|
468
468
|
select: v,
|
|
469
469
|
selectAll: c,
|
|
470
|
-
unselect:
|
|
470
|
+
unselect: d,
|
|
471
471
|
unselectAll: u,
|
|
472
|
-
toggle:
|
|
472
|
+
toggle: M,
|
|
473
473
|
toggleAll: I,
|
|
474
474
|
isSelected: y,
|
|
475
475
|
isAllSelected: r,
|
|
@@ -495,19 +495,19 @@ function it({
|
|
|
495
495
|
let r = {};
|
|
496
496
|
const c = N(
|
|
497
497
|
() => Be(e === "colum" ? Mt : dt, 50)
|
|
498
|
-
), u = /* @__PURE__ */ new Set(), v = D(!0),
|
|
498
|
+
), u = /* @__PURE__ */ new Set(), v = D(!0), d = D(), y = D(!1), f = D({ x: 0, y: 0 }), M = D({ x: 0, y: 0, scrollTop: 0 }), I = new ResizeObserver(
|
|
499
499
|
(m) => i.value = m[0].target.getBoundingClientRect()
|
|
500
500
|
), i = D({}), g = D({
|
|
501
501
|
top: 0,
|
|
502
502
|
height: 0,
|
|
503
503
|
sync(m = !1) {
|
|
504
|
-
g.value.top =
|
|
504
|
+
g.value.top = d.value?.scrollTop || 0, m && (g.value.height = d.value?.scrollHeight || 0);
|
|
505
505
|
}
|
|
506
506
|
}), T = N(() => y.value ? {
|
|
507
|
-
left: Math.min(f.value.x,
|
|
508
|
-
top: Math.min(f.value.y,
|
|
509
|
-
width: Math.abs(f.value.x -
|
|
510
|
-
height: Math.abs(f.value.y -
|
|
507
|
+
left: Math.min(f.value.x, M.value.x) - i.value.left,
|
|
508
|
+
top: Math.min(f.value.y, M.value.y) - i.value.top,
|
|
509
|
+
width: Math.abs(f.value.x - M.value.x),
|
|
510
|
+
height: Math.abs(f.value.y - M.value.y)
|
|
511
511
|
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: B = 50, startSpeed: Z = 30, maxSpeed: V = 30 } = n;
|
|
512
512
|
let O;
|
|
513
513
|
const L = B, _ = Z, G = V, q = (m) => m ** 1;
|
|
@@ -517,7 +517,7 @@ function it({
|
|
|
517
517
|
Math.min(P, G),
|
|
518
518
|
-G
|
|
519
519
|
), P !== 0) {
|
|
520
|
-
const p =
|
|
520
|
+
const p = d.value;
|
|
521
521
|
if (!p || !y.value)
|
|
522
522
|
return;
|
|
523
523
|
const U = g.value.height - i.value.height;
|
|
@@ -526,7 +526,7 @@ function it({
|
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
528
|
function ie(m) {
|
|
529
|
-
if (
|
|
529
|
+
if (d.value) {
|
|
530
530
|
const U = i.value, x = U.bottom - m;
|
|
531
531
|
if (x < L)
|
|
532
532
|
return _ * q(1 - x / L);
|
|
@@ -543,10 +543,10 @@ function it({
|
|
|
543
543
|
function J() {
|
|
544
544
|
g.value.sync();
|
|
545
545
|
const { top: m, height: p } = g.value;
|
|
546
|
-
|
|
546
|
+
M.value.y = Math.min(
|
|
547
547
|
p + i.value.top,
|
|
548
|
-
|
|
549
|
-
),
|
|
548
|
+
M.value.y + m - M.value.scrollTop
|
|
549
|
+
), M.value.scrollTop = m;
|
|
550
550
|
}
|
|
551
551
|
function j(m, p, U = "dynamic-styles") {
|
|
552
552
|
let x = document.getElementById(U);
|
|
@@ -560,16 +560,16 @@ function it({
|
|
|
560
560
|
x.sheet.insertRule(gt, oe);
|
|
561
561
|
}
|
|
562
562
|
function w(m, p) {
|
|
563
|
-
v.value = !0, y.value = !0, g.value.height ? g.value.sync() : g.value.sync(!0), f.value.x = m, f.value.y = p + g.value.top,
|
|
563
|
+
v.value = !0, y.value = !0, g.value.height ? g.value.sync() : g.value.sync(!0), f.value.x = m, f.value.y = p + g.value.top, M.value.x = f.value.x, M.value.y = f.value.y, d.value?.classList.add("disable-scroll-behavior"), u.clear();
|
|
564
564
|
}
|
|
565
565
|
function b(m, p, U) {
|
|
566
|
-
!y.value || (v.value && e === "colum" && !S() && (l(), v.value = !1), U?.(), te(p),
|
|
566
|
+
!y.value || (v.value && e === "colum" && !S() && (l(), v.value = !1), U?.(), te(p), M.value.x = Math.max(m, i.value.left), M.value.y = Math.min(
|
|
567
567
|
p + g.value.top,
|
|
568
568
|
g.value.height + i.value.top
|
|
569
|
-
),
|
|
569
|
+
), M.value.scrollTop = g.value.top, c.value());
|
|
570
570
|
}
|
|
571
571
|
function k() {
|
|
572
|
-
y.value = !1,
|
|
572
|
+
y.value = !1, d.value?.classList.remove("disable-scroll-behavior");
|
|
573
573
|
}
|
|
574
574
|
function C() {
|
|
575
575
|
!y.value || (P || J(), c.value());
|
|
@@ -584,14 +584,14 @@ function it({
|
|
|
584
584
|
S() && l();
|
|
585
585
|
}
|
|
586
586
|
function Mt() {
|
|
587
|
-
S() ||
|
|
587
|
+
S() || d.value?.querySelectorAll(`[${t}]`).forEach((m) => {
|
|
588
588
|
r[`${t}`] = m.getAttribute(`${t}`), ne(m.getBoundingClientRect()) ? s([r]) : a([r]);
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
591
|
function dt() {
|
|
592
592
|
const m = [];
|
|
593
593
|
let p = null, U = 0;
|
|
594
|
-
|
|
594
|
+
d.value?.querySelectorAll(`[${t}]`).forEach((x, W) => {
|
|
595
595
|
const oe = x.getAttribute(`${t}`);
|
|
596
596
|
m.push(oe), ne(x.getBoundingClientRect()) ? (p === null && (p = W), p = Math.min(p, W), U = Math.max(U, W)) : (r[`${t}`] = oe, u.has(oe) && a([r]));
|
|
597
597
|
});
|
|
@@ -599,7 +599,7 @@ function it({
|
|
|
599
599
|
r[`${t}`] = m[x], s([r]), u.add(m[x]);
|
|
600
600
|
}
|
|
601
601
|
function vt(m) {
|
|
602
|
-
return !m?.value || (
|
|
602
|
+
return !m?.value || (d.value = m.value, !d?.value) ? !1 : (I.observe(d.value), j(
|
|
603
603
|
".disable-scroll-behavior",
|
|
604
604
|
"scroll-behavior: unset !important;"
|
|
605
605
|
), !0);
|
|
@@ -615,7 +615,7 @@ function it({
|
|
|
615
615
|
selectFn: c,
|
|
616
616
|
selectRange: T,
|
|
617
617
|
isPressing: y,
|
|
618
|
-
containerEl:
|
|
618
|
+
containerEl: d,
|
|
619
619
|
observer: I
|
|
620
620
|
};
|
|
621
621
|
}
|
|
@@ -639,7 +639,7 @@ function co(t) {
|
|
|
639
639
|
opacity: 0.5;
|
|
640
640
|
}`,
|
|
641
641
|
{ id: "styletag_lzc_dragselect", manual: !0 }
|
|
642
|
-
),
|
|
642
|
+
), d = Q({
|
|
643
643
|
render() {
|
|
644
644
|
return X("div", {
|
|
645
645
|
id: "selectBoxEl",
|
|
@@ -654,7 +654,7 @@ function co(t) {
|
|
|
654
654
|
function f(g) {
|
|
655
655
|
l(g.x, g.y);
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function M(g) {
|
|
658
658
|
g.composedPath().some((B) => B?.getAttribute?.(t.attribute)) || c(), r();
|
|
659
659
|
}
|
|
660
660
|
function I(g) {
|
|
@@ -663,13 +663,13 @@ function co(t) {
|
|
|
663
663
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
664
664
|
if (!e.containerEl?.value)
|
|
665
665
|
return !1;
|
|
666
|
-
ce(X(
|
|
666
|
+
ce(X(d), e.containerEl.value), v(), e.containerEl.value?.addEventListener("scroll", s), e.containerEl.value?.addEventListener("mousedown", y), window.addEventListener("mousemove", f), window.addEventListener("mouseup", M);
|
|
667
667
|
} catch (T) {
|
|
668
668
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", T);
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
function i() {
|
|
672
|
-
n.disconnect(), e.containerEl.value?.removeEventListener("scroll", s), e.containerEl.value?.removeEventListener("mousedown", y), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup",
|
|
672
|
+
n.disconnect(), e.containerEl.value?.removeEventListener("scroll", s), e.containerEl.value?.removeEventListener("mousedown", y), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", M);
|
|
673
673
|
}
|
|
674
674
|
return { init: I, unMount: i };
|
|
675
675
|
}
|
|
@@ -686,7 +686,7 @@ function Mo(t, e, n = 600) {
|
|
|
686
686
|
function v() {
|
|
687
687
|
clearTimeout(u);
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function d(i) {
|
|
690
690
|
v(), i.composedPath().some((T) => !!T?.getAttribute?.(t.attribute)) && (u = setTimeout(() => {
|
|
691
691
|
const { clientX: T, clientY: B } = i.targetTouches[0];
|
|
692
692
|
l(T, B), e?.(), r(T, B, () => i.preventDefault()), i.preventDefault();
|
|
@@ -700,21 +700,21 @@ function Mo(t, e, n = 600) {
|
|
|
700
700
|
function f() {
|
|
701
701
|
v(), c();
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function M(i) {
|
|
704
704
|
try {
|
|
705
705
|
if (!o.init(i))
|
|
706
706
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
707
707
|
if (!o.containerEl?.value)
|
|
708
708
|
return !1;
|
|
709
|
-
o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart",
|
|
709
|
+
o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart", d), o.containerEl.value?.addEventListener("touchmove", y), window.addEventListener("touchcancel", f), window.addEventListener("touchend", f);
|
|
710
710
|
} catch (g) {
|
|
711
711
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", g);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
714
|
function I() {
|
|
715
|
-
s.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart",
|
|
715
|
+
s.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart", d), o.containerEl.value?.removeEventListener("touchmove", y), window.removeEventListener("touchcancel", f), window.removeEventListener("touchEnd", f);
|
|
716
716
|
}
|
|
717
|
-
return { init:
|
|
717
|
+
return { init: M, unMount: I };
|
|
718
718
|
}
|
|
719
719
|
const Zt = Symbol(), Vt = {
|
|
720
720
|
key: 0,
|
|
@@ -925,7 +925,7 @@ const un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
925
925
|
}, [
|
|
926
926
|
t.showClose ? (A(), z("img", {
|
|
927
927
|
key: 0,
|
|
928
|
-
onClick: v[0] || (v[0] = re((
|
|
928
|
+
onClick: v[0] || (v[0] = re((d) => e("close"), ["stop"])),
|
|
929
929
|
src: h(un),
|
|
930
930
|
class: K(`${o}-close`)
|
|
931
931
|
}, null, 10, dn)) : ee("", !0),
|
|
@@ -999,7 +999,7 @@ function yo(t, e) {
|
|
|
999
999
|
const c = D(!1);
|
|
1000
1000
|
let u = null;
|
|
1001
1001
|
const v = new yn(r);
|
|
1002
|
-
async function
|
|
1002
|
+
async function d(...f) {
|
|
1003
1003
|
if (n && console.log(`useDelayAsync - handler - processing: ${c.value}`), !c.value) {
|
|
1004
1004
|
c.value = !0, u = setTimeout(() => {
|
|
1005
1005
|
n && console.log(
|
|
@@ -1010,10 +1010,10 @@ function yo(t, e) {
|
|
|
1010
1010
|
}, l);
|
|
1011
1011
|
try {
|
|
1012
1012
|
n && console.time("useDelayAsync - handler-execute-time");
|
|
1013
|
-
const
|
|
1014
|
-
n && console.timeEnd("useDelayAsync - handler-execute-time"), await y(a), await e?.onSuccess?.(
|
|
1015
|
-
} catch (
|
|
1016
|
-
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(
|
|
1013
|
+
const M = await t(...f);
|
|
1014
|
+
n && console.log("useDelayAsync - execute res: ", M), n && console.timeEnd("useDelayAsync - handler-execute-time"), await y(a), await e?.onSuccess?.(M);
|
|
1015
|
+
} catch (M) {
|
|
1016
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(M), await y(a), await e?.onError?.(M);
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
}
|
|
@@ -1024,7 +1024,7 @@ function yo(t, e) {
|
|
|
1024
1024
|
n && console.log("useDelayAsync - onBeforeUnmount - close"), y();
|
|
1025
1025
|
}), {
|
|
1026
1026
|
processing: c,
|
|
1027
|
-
handler:
|
|
1027
|
+
handler: d,
|
|
1028
1028
|
close: y
|
|
1029
1029
|
};
|
|
1030
1030
|
}
|
|
@@ -1154,17 +1154,17 @@ function Tn(t) {
|
|
|
1154
1154
|
observeMethod: l = "classList"
|
|
1155
1155
|
} = t, r = D(!0), c = Ge(q, 100);
|
|
1156
1156
|
let u, v = "";
|
|
1157
|
-
const
|
|
1157
|
+
const d = D(0), y = D(0), f = D(0), M = D({
|
|
1158
1158
|
top: 0,
|
|
1159
1159
|
scrollTop: 0,
|
|
1160
1160
|
scrollHeight: 0,
|
|
1161
1161
|
clientHeight: 0
|
|
1162
1162
|
}), I = D({
|
|
1163
1163
|
clientHeight: 0
|
|
1164
|
-
}), i = N(() => !!y.value), g = N(() =>
|
|
1165
|
-
|
|
1164
|
+
}), i = N(() => !!y.value), g = N(() => M.value.scrollHeight > M.value.clientHeight), T = N(() => o ? M.value.clientHeight - V.value : M.value.clientHeight - I.value.clientHeight), B = N(() => M.value.scrollHeight - M.value.clientHeight), Z = N(() => Math.max(
|
|
1165
|
+
M.value.clientHeight / M.value.scrollHeight,
|
|
1166
1166
|
0.05
|
|
1167
|
-
)), V = N(() => Z.value > a ? 0 : Z.value *
|
|
1167
|
+
)), V = N(() => Z.value > a ? 0 : Z.value * M.value.clientHeight), O = N(() => ({
|
|
1168
1168
|
willChange: "transform",
|
|
1169
1169
|
transform: `translate3d(0,${f.value}px,0)`,
|
|
1170
1170
|
height: o ? `${V.value}px` : void 0
|
|
@@ -1184,7 +1184,7 @@ function Tn(t) {
|
|
|
1184
1184
|
function P(C) {
|
|
1185
1185
|
if (!i.value)
|
|
1186
1186
|
return;
|
|
1187
|
-
let S = C.clientY -
|
|
1187
|
+
let S = C.clientY - M.value.top - y.value;
|
|
1188
1188
|
S < 0 ? f.value = 0 : S >= T.value ? f.value = T.value : f.value = S, e.value.scrollTo({
|
|
1189
1189
|
top: f.value / T.value * B.value
|
|
1190
1190
|
});
|
|
@@ -1196,7 +1196,7 @@ function Tn(t) {
|
|
|
1196
1196
|
cancelAnimationFrame(u), u = requestAnimationFrame(ne);
|
|
1197
1197
|
}
|
|
1198
1198
|
function ne() {
|
|
1199
|
-
e.value && (
|
|
1199
|
+
e.value && (d.value = s.scrollTop?.value ?? e.value.scrollTop, f.value = d.value / B.value * T.value);
|
|
1200
1200
|
}
|
|
1201
1201
|
function J(C) {
|
|
1202
1202
|
let S = "addEventListener";
|
|
@@ -1208,7 +1208,7 @@ function Tn(t) {
|
|
|
1208
1208
|
(l == "classList" || C.map((Ne) => Ne.oldValue).join().includes("height")) && w();
|
|
1209
1209
|
});
|
|
1210
1210
|
function w() {
|
|
1211
|
-
|
|
1211
|
+
M.value.top = e.value?.getBoundingClientRect().top ?? 0, M.value.scrollHeight = e.value?.scrollHeight ?? 0, M.value.clientHeight = e.value?.clientHeight ?? 0;
|
|
1212
1212
|
}
|
|
1213
1213
|
function b() {
|
|
1214
1214
|
G(), setTimeout(() => {
|
|
@@ -1231,13 +1231,13 @@ function Tn(t) {
|
|
|
1231
1231
|
} else
|
|
1232
1232
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: n });
|
|
1233
1233
|
}
|
|
1234
|
-
return R(
|
|
1234
|
+
return R(d, () => {
|
|
1235
1235
|
G(), c();
|
|
1236
1236
|
}), {
|
|
1237
1237
|
isScrollEnd: r,
|
|
1238
1238
|
isDragSlider: i,
|
|
1239
1239
|
offsetTop: f,
|
|
1240
|
-
scrollTop:
|
|
1240
|
+
scrollTop: d,
|
|
1241
1241
|
scrollable: g,
|
|
1242
1242
|
sliderPos: O,
|
|
1243
1243
|
init: k,
|
|
@@ -1260,7 +1260,7 @@ const pn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), wn = /* @__PURE__ *
|
|
|
1260
1260
|
autoHeight: o ? n.autoHeight : !0,
|
|
1261
1261
|
performance: n.performance,
|
|
1262
1262
|
observeMethod: n.observeMethod
|
|
1263
|
-
}), { scrollable: r, isScrollEnd: c, sliderPos: u } = l, v = D(!1),
|
|
1263
|
+
}), { scrollable: r, isScrollEnd: c, sliderPos: u } = l, v = D(!1), d = n.autoHide ? N(() => v.value || !c.value) : N(() => r.value), { load: y } = _e(
|
|
1264
1264
|
`.hide-scrollbar {
|
|
1265
1265
|
scrollbar-width: none;
|
|
1266
1266
|
-ms-overflow-style: none;
|
|
@@ -1280,7 +1280,7 @@ const pn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), wn = /* @__PURE__ *
|
|
|
1280
1280
|
function f() {
|
|
1281
1281
|
v.value = !0;
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function M() {
|
|
1284
1284
|
v.value = !1;
|
|
1285
1285
|
}
|
|
1286
1286
|
return e({ uScrollBarReturn: l }), (I, i) => (A(), ye(Le, null, {
|
|
@@ -1290,14 +1290,14 @@ const pn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), wn = /* @__PURE__ *
|
|
|
1290
1290
|
ref: s,
|
|
1291
1291
|
class: "slider-wrapper",
|
|
1292
1292
|
onMouseenter: f,
|
|
1293
|
-
onMouseleave:
|
|
1293
|
+
onMouseleave: M,
|
|
1294
1294
|
style: Y(h(u))
|
|
1295
1295
|
}, [
|
|
1296
1296
|
De(I.$slots, "default", {}, () => [
|
|
1297
1297
|
wn
|
|
1298
1298
|
], !0)
|
|
1299
1299
|
], 36), [
|
|
1300
|
-
[he, h(
|
|
1300
|
+
[he, h(d)]
|
|
1301
1301
|
])
|
|
1302
1302
|
]),
|
|
1303
1303
|
_: 3
|
|
@@ -1319,7 +1319,7 @@ const ho = /* @__PURE__ */ F(In, [["__scopeId", "data-v-efefe52c"]]), En = (t) =
|
|
|
1319
1319
|
pullRefreshContainer: null
|
|
1320
1320
|
},
|
|
1321
1321
|
setup(t) {
|
|
1322
|
-
const e = t, n = 0.7, o = "#2EC1CC", s = D(-999), a = D(1), l = D(0), r = D(0.3), c = D(!1), u = D(0), v = D(0),
|
|
1322
|
+
const e = t, n = 0.7, o = "#2EC1CC", s = D(-999), a = D(1), l = D(0), r = D(0.3), c = D(!1), u = D(0), v = D(0), d = D(0), y = D(0), f = D(0), M = D(), I = N(() => e.scrollTop), i = N(() => ({
|
|
1323
1323
|
transition: `${y.value}ms`,
|
|
1324
1324
|
transform: `translate3d(0,${s.value}px, 0) scale(${a.value})`
|
|
1325
1325
|
})), g = N(() => ({
|
|
@@ -1340,23 +1340,23 @@ const ho = /* @__PURE__ */ F(In, [["__scopeId", "data-v-efefe52c"]]), En = (t) =
|
|
|
1340
1340
|
T.value = L.touches[0].pageY;
|
|
1341
1341
|
}, Z = (L) => {
|
|
1342
1342
|
const _ = L.touches[0].pageY - T.value;
|
|
1343
|
-
T.value = L.touches[0].pageY, !e.refreshOff && (!e?.refresh || f.value !== 2 && I.value === 0 && (u.value === 0 && (u.value = L.touches[0].pageY),
|
|
1343
|
+
T.value = L.touches[0].pageY, !e.refreshOff && (!e?.refresh || f.value !== 2 && I.value === 0 && (u.value === 0 && (u.value = L.touches[0].pageY), d.value = 0, O.value.style.transition = `${d.value}ms`, y.value = 0, v.value = L.touches[0].pageY - u.value, O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, _ > 0 && L.preventDefault()));
|
|
1344
1344
|
}, V = () => {
|
|
1345
1345
|
if (e.refreshOff || !e?.refresh || f.value === 2)
|
|
1346
1346
|
return;
|
|
1347
|
-
u.value = 0,
|
|
1347
|
+
u.value = 0, d.value = 300;
|
|
1348
1348
|
const L = Math.pow(v.value, n);
|
|
1349
|
-
O.value.style.transition = `${
|
|
1350
|
-
|
|
1349
|
+
O.value.style.transition = `${d.value}ms`, L > 50 ? (f.value = 2, v.value = Math.pow(50, 1 / n), O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`, y.value = 300, e?.refresh && e?.refresh().then(() => {
|
|
1350
|
+
M.value = "\u5237\u65B0\u6210\u529F";
|
|
1351
1351
|
}).catch(() => {
|
|
1352
|
-
|
|
1352
|
+
M.value = "\u5237\u65B0\u5931\u8D25";
|
|
1353
1353
|
}).finally(() => {
|
|
1354
1354
|
setTimeout(() => {
|
|
1355
1355
|
f.value = 0, v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1356
1356
|
v.value,
|
|
1357
1357
|
n
|
|
1358
1358
|
)}px, 0)`, setTimeout(() => {
|
|
1359
|
-
|
|
1359
|
+
M.value = void 0;
|
|
1360
1360
|
}, y.value);
|
|
1361
1361
|
}, 600);
|
|
1362
1362
|
})) : (v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
@@ -1370,7 +1370,7 @@ const ho = /* @__PURE__ */ F(In, [["__scopeId", "data-v-efefe52c"]]), En = (t) =
|
|
|
1370
1370
|
class: "pull-refresh-box",
|
|
1371
1371
|
style: Y(h(i))
|
|
1372
1372
|
}, [
|
|
1373
|
-
|
|
1373
|
+
M.value ? (A(), z("div", _n, Oe(M.value), 1)) : (A(), z("div", jn, [
|
|
1374
1374
|
f.value == 2 ? (A(), z("div", zn, [
|
|
1375
1375
|
E("div", Ln, [
|
|
1376
1376
|
E("div", {
|
|
@@ -1433,35 +1433,35 @@ const bn = /* @__PURE__ */ F(Sn, [["__scopeId", "data-v-18377f18"]]), kn = {
|
|
|
1433
1433
|
e({
|
|
1434
1434
|
vListReturn: s
|
|
1435
1435
|
});
|
|
1436
|
-
const
|
|
1436
|
+
const d = "virtualListWrapper" + new Date().getTime();
|
|
1437
1437
|
return (y, f) => (A(), z(Ie, null, [
|
|
1438
1438
|
le(bn, {
|
|
1439
1439
|
refresh: t.refresh,
|
|
1440
1440
|
refreshOff: t.refreshOff,
|
|
1441
1441
|
scrollTop: h(v),
|
|
1442
|
-
pullRefreshContainer: "#" +
|
|
1442
|
+
pullRefreshContainer: "#" + d
|
|
1443
1443
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1444
1444
|
E("div", {
|
|
1445
1445
|
class: "virtualListWrapper",
|
|
1446
|
-
id:
|
|
1446
|
+
id: d
|
|
1447
1447
|
}, [
|
|
1448
1448
|
E("div", ue({
|
|
1449
|
-
onScrollPassive: f[0] || (f[0] = (...
|
|
1449
|
+
onScrollPassive: f[0] || (f[0] = (...M) => h(l).onScroll && h(l).onScroll(...M)),
|
|
1450
1450
|
ref: h(l).ref,
|
|
1451
1451
|
class: "virtualList"
|
|
1452
1452
|
}, y.$attrs), [
|
|
1453
1453
|
E("div", pe(we(h(r))), [
|
|
1454
1454
|
E("div", pe(we(h(c))), [
|
|
1455
|
-
(A(!0), z(Ie, null, It(h(a), ({ index:
|
|
1456
|
-
key:
|
|
1455
|
+
(A(!0), z(Ie, null, It(h(a), ({ index: M, data: I }) => (A(), z("div", {
|
|
1456
|
+
key: M,
|
|
1457
1457
|
style: Y({
|
|
1458
|
-
height: `${h(u)(
|
|
1458
|
+
height: `${h(u)(M).height}px`,
|
|
1459
1459
|
display: "flex"
|
|
1460
1460
|
})
|
|
1461
1461
|
}, [
|
|
1462
1462
|
De(y.$slots, "default", {
|
|
1463
1463
|
data: I,
|
|
1464
|
-
index:
|
|
1464
|
+
index: M
|
|
1465
1465
|
}, void 0, !0)
|
|
1466
1466
|
], 4))), 128))
|
|
1467
1467
|
], 16)
|
|
@@ -1572,7 +1572,7 @@ const Zn = (t) => (Me("data-v-d36ca4da"), t = t(), de(), t), Vn = ["title"], Gn
|
|
|
1572
1572
|
isFullyLoadedVisible: { type: Boolean }
|
|
1573
1573
|
},
|
|
1574
1574
|
setup(t) {
|
|
1575
|
-
const e = t, n = D(!1), o = D(!1), s = D(!1), { src: a, mime: l } = We(e), { imgSrc: r, isSupport: c, hasError: u, handleError: v } = rt(a, l), { vImageCancel:
|
|
1575
|
+
const e = t, n = D(!1), o = D(!1), s = D(!1), { src: a, mime: l } = We(e), { imgSrc: r, isSupport: c, hasError: u, handleError: v } = rt(a, l), { vImageCancel: d } = ct(), { LoadingComp: y } = ut({
|
|
1576
1576
|
component: tn,
|
|
1577
1577
|
delay: 500
|
|
1578
1578
|
});
|
|
@@ -1581,7 +1581,7 @@ const Zn = (t) => (Me("data-v-d36ca4da"), t = t(), de(), t), Vn = ["title"], Gn
|
|
|
1581
1581
|
s.value = !0;
|
|
1582
1582
|
}, 50);
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function M(i) {
|
|
1585
1585
|
i && f(), n.value = !0;
|
|
1586
1586
|
}
|
|
1587
1587
|
function I(i) {
|
|
@@ -1600,24 +1600,24 @@ const Zn = (t) => (Me("data-v-d36ca4da"), t = t(), de(), t), Vn = ["title"], Gn
|
|
|
1600
1600
|
], 16, qn)) : De(i.$slots, "default", {
|
|
1601
1601
|
key: 2,
|
|
1602
1602
|
src: h(r),
|
|
1603
|
-
onLoad:
|
|
1603
|
+
onLoad: M,
|
|
1604
1604
|
onError: I
|
|
1605
1605
|
}, () => [
|
|
1606
1606
|
t.thumbnail && !s.value ? se((A(), z("img", ue({ key: 0 }, i.$attrs, {
|
|
1607
1607
|
class: "preview-blur",
|
|
1608
|
-
onLoad: g[0] || (g[0] = (T) =>
|
|
1608
|
+
onLoad: g[0] || (g[0] = (T) => M()),
|
|
1609
1609
|
onError: g[1] || (g[1] = (T) => I()),
|
|
1610
1610
|
src: t.thumbnail
|
|
1611
1611
|
}), null, 16, Kn)), [
|
|
1612
|
-
[h(
|
|
1612
|
+
[h(d)]
|
|
1613
1613
|
]) : ee("", !0),
|
|
1614
1614
|
t.isShowSrc || o.value ? se((A(), z("img", ue({ key: 1 }, i.$attrs, {
|
|
1615
1615
|
class: "origin-animation",
|
|
1616
|
-
onLoad: g[2] || (g[2] = (T) =>
|
|
1616
|
+
onLoad: g[2] || (g[2] = (T) => M(!0)),
|
|
1617
1617
|
onError: g[3] || (g[3] = (T) => I(!0)),
|
|
1618
1618
|
src: h(r)
|
|
1619
1619
|
}), null, 16, Xn)), [
|
|
1620
|
-
[h(
|
|
1620
|
+
[h(d)],
|
|
1621
1621
|
[he, o.value]
|
|
1622
1622
|
]) : ee("", !0)
|
|
1623
1623
|
], !0) : (A(), z("div", ue({ key: 1 }, i.$attrs, {
|
|
@@ -1641,7 +1641,7 @@ const To = /* @__PURE__ */ F(eo, [["__scopeId", "data-v-d36ca4da"]]), to = ["tit
|
|
|
1641
1641
|
},
|
|
1642
1642
|
setup(t) {
|
|
1643
1643
|
const e = t, n = D(!1), { src: o, mime: s } = We(e), { imgSrc: a, hasError: l, isSupport: r, handleError: c } = rt(o, s), { vImageCancel: u } = ct();
|
|
1644
|
-
return (v,
|
|
1644
|
+
return (v, d) => h(r) ? h(l) ? (A(), z("div", {
|
|
1645
1645
|
key: 2,
|
|
1646
1646
|
title: h(a),
|
|
1647
1647
|
class: "icon-wrap"
|
|
@@ -1653,8 +1653,8 @@ const To = /* @__PURE__ */ F(eo, [["__scopeId", "data-v-d36ca4da"]]), to = ["tit
|
|
|
1653
1653
|
], 8, oo)) : se((A(), z("img", {
|
|
1654
1654
|
key: 1,
|
|
1655
1655
|
fetchpriority: "high",
|
|
1656
|
-
onLoad:
|
|
1657
|
-
onError:
|
|
1656
|
+
onLoad: d[0] || (d[0] = (y) => n.value = !0),
|
|
1657
|
+
onError: d[1] || (d[1] = (...y) => h(c) && h(c)(...y)),
|
|
1658
1658
|
src: h(a)
|
|
1659
1659
|
}, null, 40, no)), [
|
|
1660
1660
|
[h(u)],
|
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const u=a.clientX,d=a.clientY,c=Math.abs(u-o),g=Math.abs(d-l);c>5||g>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Be={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var pe;const H=typeof window<"u",ye=n=>typeof n=="function";H&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function he(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Qe(n,t={}){let o,l;return i=>{const a=K(n),u=K(t.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),i();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Ue(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const c=K(n),g=Date.now()-l;if(a(),c<=0)return l=Date.now(),d();g>c&&(o||!i)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),d()},c)),!o&&!s&&(s=setTimeout(()=>i=!0,c)),i=!1}}function Ye(n){return n}function Pe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const u=ye(t)?t:t.get,d=ye(t)?void 0:t.set,c=e.customRef((g,M)=>(l=g,s=M,{get(){return i.value&&(o=u(),i.value=!1),l(),o},set(y){d?.(y)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Ne(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function De(n,t=200,o={}){return he(Qe(t,o),n)}function Te(n,t=200,o=!1,l=!0){return he(Ue(t,o,l),n)}function we(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ee(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Re=H?window.document:void 0;H&&window.navigator,H&&window.location;function Fe(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),we(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__";X[q]=X[q]||{},X[q];function Ve(){const n=e.getCurrentInstance(),t=Pe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ze=(n,t)=>{var o={};for(var l in n)He.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ie)for(var l of Ie(n))t.indexOf(l)<0&&We.call(n,l)&&(o[l]=n[l]);return o};function Ke(n,t,o={}){const l=o,{window:s=$e}=l,i=Ze(l,["window"]);let a;const u=Fe(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>Ee(n),M=>{d(),u.value&&s&&M&&(a=new ResizeObserver(t),a.observe(M,i))},{immediate:!0,flush:"post"}),g=()=>{d(),c()};return Ne(g),{isSupported:u,stop:g}}function Ge(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ke(n,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(s.value=u.reduce((d,{inlineSize:c})=>d+c,0),i.value=u.reduce((d,{blockSize:c})=>d+c,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>Ee(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var ze;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(ze||(ze={}));let Xe=0;function J(n,t={}){const o=e.ref(!1),{document:l=Re,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Xe}`}=t,u=e.ref(n);let d=()=>{};const c=()=>{if(!l)return;const M=l.getElementById(a)||l.createElement("style");M.type="text/css",M.id=a,t.media&&(M.media=t.media),l.head.appendChild(M),!o.value&&(d=e.watch(u,y=>{M.innerText=y},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&we(c),i||Ne(g),{id:a,css:u,unload:g,load:c,isLoaded:e.readonly(o)}}var qe=Object.defineProperty,je=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ae=(n,t,o)=>t in n?qe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,tt=(n,t)=>{for(var o in t||(t={}))Je.call(t,o)&&Ae(n,o,t[o]);if(je)for(var o of je(t))et.call(t,o)&&Ae(n,o,t[o]);return n};tt({linear:Ye},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ge(i),u=e.ref(!0),d=De(U,100);let c;const g=e.shallowRef(n),M=e.ref(0),y=e.ref({start:0,end:10}),p=e.ref({start:0,end:s});let f=0;const E=e.ref([]),r=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return g.value.map((S,x)=>(typeof l=="number"?w=l:w=l(x),I+=w,{height:w,sum:I}))}),m=e.computed(()=>P(y.value.start)),D=e.computed(()=>typeof l=="number"?r.value.length*l:r.value[r.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=p.value;return E.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch(g,()=>{(a.width.value||a.height.value)&&L()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&L()},{deep:!0}),e.watch(M,()=>{Q(),d()});function Q(){u.value=!1}function U(){u.value=!0,o?.()}function L(){cancelAnimationFrame(c),c=requestAnimationFrame(z)}function z(){if(i.value){M.value=i.value.scrollTop;let I=C(M.value);f=Y(I);let w=Math.max(0,I-s),S=Math.min(I+f+s,g.value.length);y.value={start:w,end:S},E.value=g.value.slice(w,S).map((x,A)=>({data:x,index:A+w})),p.value.start=I-w,p.value.end=p.value.start+f}}function C(I){let w=0,S=r.value.length-1,x=-1;for(;w<=S;){const A=Math.floor((w+S)/2);r.value[A].sum>=I?(x=A,S=A-1):w=A+1}return Math.max(0,x)}function Y(I){let w=0,S=0;for(let x=I;x<r.value.length&&(w++,S+=r.value[x].height,!(S>=a.height.value));x++);return w}function P(I){if(typeof l=="number")return I*l;let w=r.value[I];return w?w.sum-w.height:0}function b(I){return r.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${D.value}px`,pointerEvents:u.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:E,visiableList:O,getItemHeightData:b,getoffsetTopIndex:C,totalHeight:D,clientHeight:a.height,scrollTo:R,scrollTop:M,isScrollEnd:u,containerProps:{ref:i,onScroll:()=>{L()},style:$},wrapperProps:Z,innerProps:F}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),G=Symbol(),re=Symbol();function nt(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function ot(n,t,o){const l=n.reduce((g,M)=>(g.set(M[o],M),g),new Map),s=[],i=[],a=[],u=new Set,d=2500,c=Math.ceil(t.length/d);for(let g=0;g<c;g++){const M=g*d,y=M+d,p=t.slice(M,y);for(const f of p){const E=f[o],r=l.get(E);!r&&f?s.push(f):r&&!f?i.push(r):r&&f&&(nt(r,f)||a.push(f)),u.add(E),l.delete(E)}}for(const[g,M]of l)u.has(g)||i.push(M);return{added:s,removed:i,modified:a}}function lt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),u=e.inject(ie,o),d=e.inject(te,n),c=e.inject(ee,n),g=e.inject(le,n),M=e.inject(se,n),y=e.inject(ae,n),p=e.inject(G,n),f=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:u,toggle:d,toggleAll:c,select:g,selectAll:M,unselect:y,unselectAll:p,selectedCount:f}}function st(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,r=>{s.value=r.reduce((m,D)=>(m.set(D[t],D),m),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let r=[];if(o.value!=null)o.value&&(r=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(D=>{m=s.value.get(D),m&&r.push(m)})}return r}),a=e.computed(()=>{let r=0;return o.value!=null?o.value&&(r=s.value.size):r=l.value.size,r}),u=e.computed(()=>{let r;if(o.value!=null)r=o.value;else{const m=l.value.size,D=s.value.size;r=m==D}return r});function d(){o.value=!0}function c(){o.value=!1}function g(r){p(()=>{r.forEach(m=>{l.value.add(m[t])})})}function M(r){p(()=>{r.forEach(m=>{l.value.delete(m[t])})})}function y(r){return o.value!=null?o.value:l.value.has(r[t])}function p(r){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),r(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function f(r){p(()=>{r.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function E(){const{value:r}=u;r?c():d()}return e.provide(ee,E),e.provide(te,f),e.provide(ne,y),e.provide(oe,i),e.provide(le,g),e.provide(se,d),e.provide(ae,M),e.provide(ie,u),e.provide(G,c),e.provide(G,c),e.provide(re,a),{selected:i,select:g,selectAll:d,unselect:M,unselectAll:c,toggle:f,toggleAll:E,isSelected:y,isAllSelected:u,selectedCount:a}}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:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let u={};const d=e.computed(()=>Te(t==="colum"?Tn:wn,50)),c=new Set,g=e.ref(!0),M=e.ref(),y=e.ref(!1),p=e.ref({x:0,y:0}),f=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(N=>r.value=N[0].target.getBoundingClientRect()),r=e.ref({}),m=e.ref({top:0,height:0,sync(N=!1){m.value.top=M.value?.scrollTop||0,N&&(m.value.height=M.value?.scrollHeight||0)}}),D=e.computed(()=>y.value?{left:Math.min(p.value.x,f.value.x)-r.value.left,top:Math.min(p.value.y,f.value.y)-r.value.top,width:Math.abs(p.value.x-f.value.x),height:Math.abs(p.value.y-f.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let L;const z=O,C=Q,Y=U,P=N=>N**1;let b=0;function R(N){if(cancelAnimationFrame(L),b=Z(N),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=M.value;if(!T||!y.value)return;const _=m.value.height-r.value.height;let j=m.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,$(),L=requestAnimationFrame(()=>R(N))}}function Z(N){if(M.value){const _=r.value,j=_.bottom-N;if(j<z)return C*P(1-j/z);const B=N-_.top;if(B<z)return-C*P(1-B/z)}return 0}function F(N){const T={...D.value,right:0,bottom:0};return T.left+=r.value.left,T.top+=r.value.top-m.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<N.right&&T.right>N.left&&T.top<N.bottom&&T.bottom>N.top}function $(){m.value.sync();const{top:N,height:T}=m.value;f.value.y=Math.min(T+r.value.top,f.value.y+N-f.value.scrollTop),f.value.scrollTop=N}function I(N,T,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const B=j.sheet.cssRules,V=B.length,In=`${N} { ${T} }`;for(let ge=0;ge<V;ge++){const be=B[ge];if(be.selectorText===N&&be.style.cssText===T)return}j.sheet.insertRule(In,V)}function w(N,T){g.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),p.value.x=N,p.value.y=T+m.value.top,f.value.x=p.value.x,f.value.y=p.value.y,M.value?.classList.add("disable-scroll-behavior"),c.clear()}function S(N,T,_){!y.value||(g.value&&t==="colum"&&!v()&&(a(),g.value=!1),_?.(),R(T),f.value.x=Math.max(N,r.value.left),f.value.y=Math.min(T+m.value.top,m.value.height+r.value.top),f.value.scrollTop=m.value.top,d.value())}function x(){y.value=!1,M.value?.classList.remove("disable-scroll-behavior")}function A(){!y.value||(b||$(),d.value())}function v(){if(!y.value)return!1;const{width:N,height:T}=D.value;return!(Math.max(N,T)>5)}function fe(){v()&&a()}function Tn(){v()||M.value?.querySelectorAll(`[${n}]`).forEach(N=>{u[`${n}`]=N.getAttribute(`${n}`),F(N.getBoundingClientRect())?s([u]):i([u])})}function wn(){const N=[];let T=null,_=0;M.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);N.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(u[`${n}`]=V,c.has(V)&&i([u]))});for(let j=T;j<_+1;j++)u[`${n}`]=N[j],s([u]),c.add(N[j])}function En(N){return!N?.value||(M.value=N.value,!M?.value)?!1:(E.observe(M.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:En,dragStart:w,dragMove:S,dragEnd:x,onScroll:A,isSingleClick:v,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:D,isPressing:y,containerEl:M,observer:E}}function at(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:d}=t,c=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=J(`.drag-select-box {
|
|
1
|
+
(function(h,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(h=typeof globalThis<"u"?globalThis:h||self,e(h.ui={},h.Vue))})(this,function(h,e){"use strict";const me={created(n,t){let o,l;function s(a){o=a.clientX,l=a.clientY}function i(a){if(o===void 0)return;const u=a.clientX,d=a.clientY,c=Math.abs(u-o),g=Math.abs(d-l);c>5||g>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=i,n.addEventListener("mousedown",s),n.addEventListener("mouseup",i)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Be={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function i(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",i)}};var pe;const H=typeof window<"u",ye=n=>typeof n=="function";H&&((pe=window?.navigator)==null?void 0:pe.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function he(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Qe(n,t={}){let o,l;return i=>{const a=K(n),u=K(t.maxWait);if(o&&clearTimeout(o),a<=0||u!==void 0&&u<=0)return l&&(clearTimeout(l),l=null),i();u&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,i()},u)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,i()},a)}}function Ue(n,t=!0,o=!0){let l=0,s,i=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const c=K(n),g=Date.now()-l;if(a(),c<=0)return l=Date.now(),d();g>c&&(o||!i)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),i=!0,a(),d()},c)),!o&&!s&&(s=setTimeout(()=>i=!0,c)),i=!1}}function Ye(n){return n}function Pe(n,t){let o,l,s;const i=e.ref(!0),a=()=>{i.value=!0,s()};e.watch(n,a,{flush:"sync"});const u=ye(t)?t:t.get,d=ye(t)?void 0:t.set,c=e.customRef((g,f)=>(l=g,s=f,{get(){return i.value&&(o=u(),i.value=!1),l(),o},set(y){d?.(y)}}));return Object.isExtensible(c)&&(c.trigger=a),c}function Ne(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function De(n,t=200,o={}){return he(Qe(t,o),n)}function Te(n,t=200,o=!1,l=!0){return he(Ue(t,o,l),n)}function we(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function Ee(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const $e=H?window:void 0,Re=H?window.document:void 0;H&&window.navigator,H&&window.location;function Fe(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),we(l,t),o}const X=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q="__vueuse_ssr_handlers__";X[q]=X[q]||{},X[q];function Ve(){const n=e.getCurrentInstance(),t=Pe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var Ie=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ze=(n,t)=>{var o={};for(var l in n)He.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&Ie)for(var l of Ie(n))t.indexOf(l)<0&&We.call(n,l)&&(o[l]=n[l]);return o};function Ke(n,t,o={}){const l=o,{window:s=$e}=l,i=Ze(l,["window"]);let a;const u=Fe(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},c=e.watch(()=>Ee(n),f=>{d(),u.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),g=()=>{d(),c()};return Ne(g),{isSupported:u,stop:g}}function Ge(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),i=e.ref(t.height);return Ke(n,([a])=>{const u=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;u?(s.value=u.reduce((d,{inlineSize:c})=>d+c,0),i.value=u.reduce((d,{blockSize:c})=>d+c,0)):(s.value=a.contentRect.width,i.value=a.contentRect.height)},o),e.watch(()=>Ee(n),a=>{s.value=a?t.width:0,i.value=a?t.height:0}),{width:s,height:i}}var ze;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(ze||(ze={}));let Xe=0;function J(n,t={}){const o=e.ref(!1),{document:l=Re,immediate:s=!0,manual:i=!1,id:a=`vueuse_styletag_${++Xe}`}=t,u=e.ref(n);let d=()=>{};const c=()=>{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&&(d=e.watch(u,y=>{f.innerText=y},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!i&&we(c),i||Ne(g),{id:a,css:u,unload:g,load:c,isLoaded:e.readonly(o)}}var qe=Object.defineProperty,je=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Ae=(n,t,o)=>t in n?qe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,tt=(n,t)=>{for(var o in t||(t={}))Je.call(t,o)&&Ae(n,o,t[o]);if(je)for(var o of je(t))et.call(t,o)&&Ae(n,o,t[o]);return n};tt({linear:Ye},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function Le(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,i=e.ref(null),a=Ge(i),u=e.ref(!0),d=De(U,100);let c;const g=e.shallowRef(n),f=e.ref(0),y=e.ref({start:0,end:10}),p=e.ref({start:0,end:s});let M=0;const E=e.ref([]),r=e.computed(()=>{let{sum:I,height:w}={sum:0,height:0};return g.value.map((S,x)=>(typeof l=="number"?w=l:w=l(x),I+=w,{height:w,sum:I}))}),m=e.computed(()=>P(y.value.start)),D=e.computed(()=>typeof l=="number"?r.value.length*l:r.value[r.value.length-1]?.sum||0),O=e.computed(()=>{const{start:I,end:w}=p.value;return E.value.slice(I,w)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(c)),e.watch(g,()=>{(a.width.value||a.height.value)&&L()},{deep:!0}),e.watch([a.width,a.height],([I,w])=>{(I||w)&&L()},{deep:!0}),e.watch(f,()=>{Q(),d()});function Q(){u.value=!1}function U(){u.value=!0,o?.()}function L(){cancelAnimationFrame(c),c=requestAnimationFrame(z)}function z(){if(i.value){f.value=i.value.scrollTop;let I=C(f.value);M=Y(I);let w=Math.max(0,I-s),S=Math.min(I+M+s,g.value.length);y.value={start:w,end:S},E.value=g.value.slice(w,S).map((x,A)=>({data:x,index:A+w})),p.value.start=I-w,p.value.end=p.value.start+M}}function C(I){let w=0,S=r.value.length-1,x=-1;for(;w<=S;){const A=Math.floor((w+S)/2);r.value[A].sum>=I?(x=A,S=A-1):w=A+1}return Math.max(0,x)}function Y(I){let w=0,S=0;for(let x=I;x<r.value.length&&(w++,S+=r.value[x].height,!(S>=a.height.value));x++);return w}function P(I){if(typeof l=="number")return I*l;let w=r.value[I];return w?w.sum-w.height:0}function b(I){return r.value[I]||{sum:0,height:0}}function R(I){if(i.value){const w=b(I);i.value.scrollTop=w.sum-w.height,z()}}const Z=e.computed(()=>({style:{width:"100%",height:`${D.value}px`,pointerEvents:u.value?void 0:"none"}})),F=e.computed(()=>({style:{transform:`translate3d(0, ${m.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:E,visiableList:O,getItemHeightData:b,getoffsetTopIndex:C,totalHeight:D,clientHeight:a.height,scrollTo:R,scrollTop:f,isScrollEnd:u,containerProps:{ref:i,onScroll:()=>{L()},style:$},wrapperProps:Z,innerProps:F}}const ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),G=Symbol(),re=Symbol();function nt(n,t){const o=Object.keys(n),l=Object.keys(t);if(o.length!==l.length)return!1;for(let s of o){const i=n[s],a=t[s];if(i instanceof Date){if(i.getTime()!==a.getTime())return!1;continue}if(n[s]!==t[s])return!1}return!0}function ot(n,t,o){const l=n.reduce((g,f)=>(g.set(f[o],f),g),new Map),s=[],i=[],a=[],u=new Set,d=2500,c=Math.ceil(t.length/d);for(let g=0;g<c;g++){const f=g*d,y=f+d,p=t.slice(f,y);for(const M of p){const E=M[o],r=l.get(E);!r&&M?s.push(M):r&&!M?i.push(r):r&&M&&(nt(r,M)||a.push(M)),u.add(E),l.delete(E)}}for(const[g,f]of l)u.has(g)||i.push(f);return{added:s,removed:i,modified:a}}function lt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(oe,s),a=e.inject(ne,t),u=e.inject(ie,o),d=e.inject(te,n),c=e.inject(ee,n),g=e.inject(le,n),f=e.inject(se,n),y=e.inject(ae,n),p=e.inject(G,n),M=e.inject(re,l);return{selected:i,isSelected:a,isAllSelected:u,toggle:d,toggleAll:c,select:g,selectAll:f,unselect:y,unselectAll:p,selectedCount:M}}function st(n,t){const o=e.ref(!1),l=e.ref(new Set),s=e.ref(new Map);e.watch(n,r=>{s.value=r.reduce((m,D)=>(m.set(D[t],D),m),new Map)},{deep:!0,immediate:!0});const i=e.computed(()=>{let r=[];if(o.value!=null)o.value&&(r=Array.from(s.value.values()));else if(l.value.size){let m;l.value.forEach(D=>{m=s.value.get(D),m&&r.push(m)})}return r}),a=e.computed(()=>{let r=0;return o.value!=null?o.value&&(r=s.value.size):r=l.value.size,r}),u=e.computed(()=>{let r;if(o.value!=null)r=o.value;else{const m=l.value.size,D=s.value.size;r=m==D}return r});function d(){o.value=!0}function c(){o.value=!1}function g(r){p(()=>{r.forEach(m=>{l.value.add(m[t])})})}function f(r){p(()=>{r.forEach(m=>{l.value.delete(m[t])})})}function y(r){return o.value!=null?o.value:l.value.has(r[t])}function p(r){o.value!=null&&(o.value?l.value=new Set(Array.from(s.value.keys())):l.value=new Set),r(),l.value.size==0?o.value=!1:l.value.size==s.value.size?o.value=!0:o.value=null}function M(r){p(()=>{r.forEach(m=>{y(m)?l.value.delete(m[t]):l.value.add(m[t])})})}function E(){const{value:r}=u;r?c():d()}return e.provide(ee,E),e.provide(te,M),e.provide(ne,y),e.provide(oe,i),e.provide(le,g),e.provide(se,d),e.provide(ae,f),e.provide(ie,u),e.provide(G,c),e.provide(G,c),e.provide(re,a),{selected:i,select:g,selectAll:d,unselect:f,unselectAll:c,toggle:M,toggleAll:E,isSelected:y,isAllSelected:u,selectedCount:a}}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:i=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let u={};const d=e.computed(()=>Te(t==="colum"?Tn:wn,50)),c=new Set,g=e.ref(!0),f=e.ref(),y=e.ref(!1),p=e.ref({x:0,y:0}),M=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(N=>r.value=N[0].target.getBoundingClientRect()),r=e.ref({}),m=e.ref({top:0,height:0,sync(N=!1){m.value.top=f.value?.scrollTop||0,N&&(m.value.height=f.value?.scrollHeight||0)}}),D=e.computed(()=>y.value?{left:Math.min(p.value.x,M.value.x)-r.value.left,top:Math.min(p.value.y,M.value.y)-r.value.top,width:Math.abs(p.value.x-M.value.x),height:Math.abs(p.value.y-M.value.y)}:{left:0,top:0,width:0,height:0}),{margin:O=50,startSpeed:Q=30,maxSpeed:U=30}=o;let L;const z=O,C=Q,Y=U,P=N=>N**1;let b=0;function R(N){if(cancelAnimationFrame(L),b=Z(N),b=Math.max(Math.min(b,Y),-Y),b!==0){const T=f.value;if(!T||!y.value)return;const _=m.value.height-r.value.height;let j=m.value.top+Number(b);j=Math.min(Math.max(0,j),_),T.scrollTop=j,$(),L=requestAnimationFrame(()=>R(N))}}function Z(N){if(f.value){const _=r.value,j=_.bottom-N;if(j<z)return C*P(1-j/z);const B=N-_.top;if(B<z)return-C*P(1-B/z)}return 0}function F(N){const T={...D.value,right:0,bottom:0};return T.left+=r.value.left,T.top+=r.value.top-m.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<N.right&&T.right>N.left&&T.top<N.bottom&&T.bottom>N.top}function $(){m.value.sync();const{top:N,height:T}=m.value;M.value.y=Math.min(T+r.value.top,M.value.y+N-M.value.scrollTop),M.value.scrollTop=N}function I(N,T,_="dynamic-styles"){let j=document.getElementById(_);j||(j=document.createElement("style"),j.id=_,document.head.appendChild(j));const B=j.sheet.cssRules,V=B.length,In=`${N} { ${T} }`;for(let ge=0;ge<V;ge++){const be=B[ge];if(be.selectorText===N&&be.style.cssText===T)return}j.sheet.insertRule(In,V)}function w(N,T){g.value=!0,y.value=!0,m.value.height?m.value.sync():m.value.sync(!0),p.value.x=N,p.value.y=T+m.value.top,M.value.x=p.value.x,M.value.y=p.value.y,f.value?.classList.add("disable-scroll-behavior"),c.clear()}function S(N,T,_){!y.value||(g.value&&t==="colum"&&!v()&&(a(),g.value=!1),_?.(),R(T),M.value.x=Math.max(N,r.value.left),M.value.y=Math.min(T+m.value.top,m.value.height+r.value.top),M.value.scrollTop=m.value.top,d.value())}function x(){y.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function A(){!y.value||(b||$(),d.value())}function v(){if(!y.value)return!1;const{width:N,height:T}=D.value;return!(Math.max(N,T)>5)}function fe(){v()&&a()}function Tn(){v()||f.value?.querySelectorAll(`[${n}]`).forEach(N=>{u[`${n}`]=N.getAttribute(`${n}`),F(N.getBoundingClientRect())?s([u]):i([u])})}function wn(){const N=[];let T=null,_=0;f.value?.querySelectorAll(`[${n}]`).forEach((j,B)=>{const V=j.getAttribute(`${n}`);N.push(V),F(j.getBoundingClientRect())?(T===null&&(T=B),T=Math.min(T,B),_=Math.max(_,B)):(u[`${n}`]=V,c.has(V)&&i([u]))});for(let j=T;j<_+1;j++)u[`${n}`]=N[j],s([u]),c.add(N[j])}function En(N){return!N?.value||(f.value=N.value,!f?.value)?!1:(E.observe(f.value),I(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:En,dragStart:w,dragMove:S,dragEnd:x,onScroll:A,isSingleClick:v,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:D,isPressing:y,containerEl:f,observer:E}}function at(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:i,dragMove:a,dragEnd:u,cancelSelectAllBySingleClick:d}=t,c=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=J(`.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}),
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:c.value})}});function y(m){m.button===0&&i(m.x,m.y)}function p(m){a(m.x,m.y)}function M(m){m.composedPath().some(O=>O?.getAttribute?.(n.attribute))||d(),u()}function E(m){try{if(!t.init(m))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",p),window.addEventListener("mouseup",M)}catch(D){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",D)}}function r(){o.disconnect(),t.containerEl.value?.removeEventListener("scroll",s),t.containerEl.value?.removeEventListener("mousedown",y),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",M)}return{init:E,unMount:r}}function it(n,t,o=600){const l=ue({...n,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:a,dragMove:u,dragEnd:d}=l;let c;function g(){clearTimeout(c)}function f(r){g(),r.composedPath().some(D=>!!D?.getAttribute?.(n.attribute))&&(c=setTimeout(()=>{const{clientX:D,clientY:O}=r.targetTouches[0];a(D,O),t?.(),u(D,O,()=>r.preventDefault()),r.preventDefault()},o))}function y(r){g();const{clientX:m,clientY:D}=r.targetTouches[0];u(m,D,()=>r.preventDefault())}function p(){g(),d()}function M(r){try{if(!l.init(r))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",i),l.containerEl.value?.addEventListener("touchstart",f),l.containerEl.value?.addEventListener("touchmove",y),window.addEventListener("touchcancel",p),window.addEventListener("touchend",p)}catch(m){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",m)}}function E(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",f),l.containerEl.value?.removeEventListener("touchmove",y),window.removeEventListener("touchcancel",p),window.removeEventListener("touchEnd",p)}return{init:M,unMount:E}}const Ce=Symbol(),rt={key:0,class:"lzc-modal"},ct=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(Ce,()=>t("update:visiable",!1)),(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[n.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",rt,[e.createElementVNode("div",{onMousedown:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",n.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(me),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),jn="",k=(n,t)=>{const o=n.__vccOpts||n;for(const[l,s]of t)o[l]=s;return o},ut=k(ct,[["__scopeId","data-v-4ff684af"]]);function dt(n){function t(o,l){const s=document.createElement("div"),i={setup(){return()=>e.h(ut,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...n},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(i),s),{close:()=>s?.remove()}}return{create:t}}function de({component:n,componentProps:t,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return J(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${i} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const u=Ve();return e.onMounted(()=>{u.value.classList.add(s)}),()=>e.h(n,t)}})}}function Mt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const ft=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],gt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({"226a081e":n.width+"px","35610f1c":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ft,16))}}),Cn="",ve=k(gt,[["__scopeId","data-v-f86c8393"]]),mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",pt={class:"loading-wrap"},yt=["src"],ht=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"8b276c48":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(mt)},null,8,yt)]))}}),vn="",Nt=k(ht,[["__scopeId","data-v-2affe82a"]]);async function Dt(n){return new Promise(t=>setTimeout(()=>t(),n))}const Tt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzI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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 c={};return o.captureEventP&&(c.pointerEvents="none"),c}),i=e.computed(()=>{let c={padding:"12px"};return o.icon&&(c.padding="20px"),o.width&&(c.width=o.width),o.maxWidth&&(c.maxWidth=o.maxWidth),o.overlayContentStyle&&(c={...c,...o.overlayContentStyle}),c}),a=e.computed(()=>{let c={};return o.showClose&&!o.icon&&(c.paddingRight="16px"),c});function u(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(c,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(u,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(M=>t("close"),["stop"])),src:e.unref(Tt),class:e.normalizeClass(`${l}-close`)},null,10,zt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(wt),class:e.normalizeClass(`${l}-icon`)},null,10,jt)):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,It)],10,Et),[[e.vShow,n.visible]])],4)]),_:1}))}}),Sn="",xn="",Lt=k(At,[["__scopeId","data-v-456fc2d8"]]);class Se{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Lt}async show(){const t=this.options,l={...t,onClose:()=>{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 Dt(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 Ct(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,u={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,a,u);const d=e.ref(!1);let c=null;const g=new Se(u);async function M(...p){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,c=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,d.value),s&&(!d.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const f=await n(...p);o&&console.timeEnd("useDelayAsync - handler-execute-time"),await y(i),await t?.onSuccess?.(f)}catch(f){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(f),await y(i),await t?.onError?.(f)}}}async function y(p=!0){o&&console.log("useDelayAsync - close - closeLoading: ",p),d.value=!1,c&&clearTimeout(c),c=null,p&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),y()}),{processing:d,handler:M,close:y}}const vt=["onClick"],St=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(c,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,vt))}}),On="",xt=k(St,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Ot{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xt),{...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 _t=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,_t)],4))}});function kt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,u=e.ref(!0),d=De(P,100);let c,g="";const M=e.ref(0),y=e.ref(0),p=e.ref(0),f=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),r=e.computed(()=>!!y.value),m=e.computed(()=>f.value.scrollHeight>f.value.clientHeight),D=e.computed(()=>l?f.value.clientHeight-U.value:f.value.clientHeight-E.value.clientHeight),O=e.computed(()=>f.value.scrollHeight-f.value.clientHeight),Q=e.computed(()=>Math.max(f.value.clientHeight/f.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*f.value.clientHeight),L=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${p.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(A){Y(),y.value=A.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=g,y.value=0,d()}function Y(){u.value=!1}function P(){r.value||(u.value=!0)}function b(A){if(!r.value)return;let v=A.clientY-f.value.top-y.value;v<0?p.value=0:v>=D.value?p.value=D.value:p.value=v,t.value.scrollTo({top:p.value/D.value*O.value})}function R(){r.value||Z()}function Z(){cancelAnimationFrame(c),c=requestAnimationFrame(F)}function F(){t.value&&(M.value=s.scrollTop?.value??t.value.scrollTop,p.value=M.value/O.value*D.value)}function $(A){let v="addEventListener";A==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",C,{passive:!0})}const I=new MutationObserver(A=>{(a=="classList"||A.map(fe=>fe.oldValue).join().includes("height"))&&w()});function w(){f.value.top=t.value?.getBoundingClientRect().top??0,f.value.scrollHeight=t.value?.scrollHeight??0,f.value.clientHeight=t.value?.clientHeight??0}function S(){Y(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,P()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),$("add");const A={};a==="classList"?Object.assign(A,{subtree:!0,childList:!0}):Object.assign(A,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,A),setTimeout(()=>{w()},100),S()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(M,()=>{Y(),d()}),{isScrollEnd:u,isDragSlider:r,offsetTop:p,scrollTop:M,scrollable:m,sliderPos:L,init:x,modifySliderEventListener:$}}const bt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Bt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=kt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:u,isScrollEnd:d,sliderPos:c}=a,g=e.ref(!1),M=o.autoHide?e.computed(()=>g.value||!d.value):e.computed(()=>u.value),{load:y}=J(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const u=Ve();return e.onMounted(()=>{u.value.classList.add(s)}),()=>e.h(n,t)}})}}function Mt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function i(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:a}}const ft=[(n=>(e.pushScopeId("data-v-f86c8393"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],gt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({"226a081e":n.width+"px","35610f1c":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),ft,16))}}),Cn="",ve=k(gt,[["__scopeId","data-v-f86c8393"]]),mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",pt={class:"loading-wrap"},yt=["src"],ht=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"}},setup(n){return e.useCssVars(t=>({"8b276c48":n.delay})),(t,o)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(mt)},null,8,y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44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Et=["onClick"],It=["onClick"],zt=["src"],jt=["src"],At=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 c={};return o.captureEventP&&(c.pointerEvents="none"),c}),i=e.computed(()=>{let c={padding:"12px"};return o.icon&&(c.padding="20px"),o.width&&(c.width=o.width),o.maxWidth&&(c.maxWidth=o.maxWidth),o.overlayContentStyle&&(c={...c,...o.overlayContentStyle}),c}),a=e.computed(()=>{let c={};return o.showClose&&!o.icon&&(c.paddingRight="16px"),c});function u(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(c,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(u,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(f=>t("close"),["stop"])),src:e.unref(Tt),class:e.normalizeClass(`${l}-close`)},null,10,zt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(wt),class:e.normalizeClass(`${l}-icon`)},null,10,jt)):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,It)],10,Et),[[e.vShow,n.visible]])],4)]),_:1}))}}),Sn="",xn="",Lt=k(At,[["__scopeId","data-v-456fc2d8"]]);class Se{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Lt}async show(){const t=this.options,l={...t,onClose:()=>{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 Dt(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 Ct(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,i=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,u={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,a,u);const d=e.ref(!1);let c=null;const g=new Se(u);async function f(...p){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,c=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,d.value),s&&(!d.value||g.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const M=await n(...p);o&&console.log("useDelayAsync - execute res: ",M),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await y(i),await t?.onSuccess?.(M)}catch(M){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(M),await y(i),await t?.onError?.(M)}}}async function y(p=!0){o&&console.log("useDelayAsync - close - closeLoading: ",p),d.value=!1,c&&clearTimeout(c),c=null,p&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),y()}),{processing:d,handler:f,close:y}}const vt=["onClick"],St=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(c,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,vt))}}),On="",xt=k(St,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Ot{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(xt),{...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 _t=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(i){const{style:a}=i;return typeof a=="object"?a:{}}return(i,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,_t)],4))}});function kt(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:a="classList"}=n,u=e.ref(!0),d=De(P,100);let c,g="";const f=e.ref(0),y=e.ref(0),p=e.ref(0),M=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),r=e.computed(()=>!!y.value),m=e.computed(()=>M.value.scrollHeight>M.value.clientHeight),D=e.computed(()=>l?M.value.clientHeight-U.value:M.value.clientHeight-E.value.clientHeight),O=e.computed(()=>M.value.scrollHeight-M.value.clientHeight),Q=e.computed(()=>Math.max(M.value.clientHeight/M.value.scrollHeight,.05)),U=e.computed(()=>Q.value>i?0:Q.value*M.value.clientHeight),L=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${p.value}px,0)`,height:l?`${U.value}px`:void 0}));function z(A){Y(),y.value=A.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(t.value).scrollBehavior,g==="smooth"&&(t.value.style.scrollBehavior="unset")}function C(){t.value.style.scrollBehavior=g,y.value=0,d()}function Y(){u.value=!1}function P(){r.value||(u.value=!0)}function b(A){if(!r.value)return;let v=A.clientY-M.value.top-y.value;v<0?p.value=0:v>=D.value?p.value=D.value:p.value=v,t.value.scrollTo({top:p.value/D.value*O.value})}function R(){r.value||Z()}function Z(){cancelAnimationFrame(c),c=requestAnimationFrame(F)}function F(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,p.value=f.value/O.value*D.value)}function $(A){let v="addEventListener";A==="add"?v="addEventListener":v="removeEventListener",o.value?.[v]("pointerdown",z,{passive:!0}),window[v]("pointermove",b,{passive:!0}),window[v]("pointerup",C,{passive:!0})}const I=new MutationObserver(A=>{(a=="classList"||A.map(fe=>fe.oldValue).join().includes("height"))&&w()});function w(){M.value.top=t.value?.getBoundingClientRect().top??0,M.value.scrollHeight=t.value?.scrollHeight??0,M.value.clientHeight=t.value?.clientHeight??0}function S(){Y(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,P()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",R,{passive:!0}),$("add");const A={};a==="classList"?Object.assign(A,{subtree:!0,childList:!0}):Object.assign(A,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),I.observe(t.value,A),setTimeout(()=>{w()},100),S()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(f,()=>{Y(),d()}),{isScrollEnd:u,isDragSlider:r,offsetTop:p,scrollTop:f,scrollable:m,sliderPos:L,init:x,modifySliderEventListener:$}}const bt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Bt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),a=kt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:u,isScrollEnd:d,sliderPos:c}=a,g=e.ref(!1),f=o.autoHide?e.computed(()=>g.value||!d.value):e.computed(()=>u.value),{load:y}=J(`.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 p(){g.value=!0}function f(){g.value=!1}return t({uScrollBarReturn:a}),(E,r)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:p,onMouseleave:f,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(E.$slots,"default",{},()=>[bt],!0)],36),[[e.vShow,e.unref(M)]])]),_:3}))}}),kn="",Qt=k(Bt,[["__scopeId","data-v-efefe52c"]]),Ut=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Yt={class:"pull-refresh"},Pt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Rt={class:"left-load"},Ft={class:"right-load"},Vt=Ut(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ht={class:"pull-arrow"},Wt={key:1},Zt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),u=e.ref(.3),d=e.ref(!1),c=e.ref(0),g=e.ref(0),M=e.ref(0),y=e.ref(0),p=e.ref(0),f=e.ref(),E=e.computed(()=>t.scrollTop),r=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(p,z=>{z===0&&(s.value=-50,u.value=.3)}),e.watch(g,z=>{if(p.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?d.value=!0:d.value=!1),C>50&&(s.value=5,u.value=1,p.value)});const D=e.ref(0),O=z=>{D.value=z.touches[0].pageY},Q=z=>{const C=z.touches[0].pageY-D.value;D.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||p.value!==2&&E.value===0&&(c.value===0&&(c.value=z.touches[0].pageY),M.value=0,L.value.style.transition=`${M.value}ms`,y.value=0,g.value=z.touches[0].pageY-c.value,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||p.value===2)return;c.value=0,M.value=300;const z=Math.pow(g.value,o);L.value.style.transition=`${M.value}ms`,z>50?(p.value=2,g.value=Math.pow(50,1/o),L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{f.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{f.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{p.value=0,g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{f.value=void 0},y.value)},600)})):(g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},L=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(L.value=document.querySelector(t.pullRefreshContainer),L.value?.addEventListener("touchstart",O),L.value?.addEventListener("touchmove",Q),L.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(r))},[f.value?(e.openBlock(),e.createElementBlock("div",Wt,e.toDisplayString(f.value),1)):(e.openBlock(),e.createElementBlock("div",Pt,[p.value==2?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Ft,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Vt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ht,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),bn="",Oe=k(Zt,[["__scopeId","data-v-18377f18"]]),Kt={inheritAttrs:!1},Gt=e.defineComponent({...Kt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:u,innerProps:d,getItemHeightData:c,scrollTop:g}=s;t({vListReturn:s});const M="virtualListWrapper"+new Date().getTime();return(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{refresh:n.refresh,refreshOff:n.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+M},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:M},[e.createElementVNode("div",e.mergeProps({onScrollPassive:p[0]||(p[0]=(...f)=>e.unref(a).onScroll&&e.unref(a).onScroll(...f)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:f,data:E})=>(e.openBlock(),e.createElementBlock("div",{key:f,style:e.normalizeStyle({height:`${e.unref(c)(f).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:E,index:f},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Bn="",Xt=k(Gt,[["__scopeId","data-v-e0fb787f"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),qt={style:{position:"absolute"}},Jt=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),en=["width","height"],tn=[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))],nn=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",qt,[Jt,(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"},tn,8,en))]))}}),Yn="",on=k(nn,[["__scopeId","data-v-c986249d"]]),ln=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp","image/svg+xml"],sn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function _e(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),a=e.computed(()=>{const d=t?.value;return!d||d.startsWith("video/")?!0:d.startsWith("image/")?l.value?ln.includes(d):sn.includes(d):!1});n&&e.watch(n,d=>{o.value=d,s.value=!1});function u(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:a,handleError:u}}function ke(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const an=n=>(e.pushScopeId("data-v-d36ca4da"),n=n(),e.popScopeId(),n),rn=["title"],cn=an(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),un=["src"],dn=["src"],Mn=["title"],fn={inheritAttrs:!1},gn=e.defineComponent({...fn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},isFullyLoadedVisible:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:i,mime:a}=e.toRefs(t),{imgSrc:u,isSupport:d,hasError:c,handleError:g}=_e(i,a),{vImageCancel:M}=ke(),{LoadingComp:y}=de({component:ve,delay:500});function p(){l.value=!0,setTimeout(()=>{s.value=!0},50)}function f(r){r&&p(),o.value=!0}function E(r){r?g():p(),o.value=!0}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(d)?e.unref(c)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"bad-icon",name:"\u56FE\u7247\u635F\u574F"})],16,Mn)):e.renderSlot(r.$slots,"default",{key:2,src:e.unref(u),onLoad:f,onError:E},()=>[n.thumbnail&&!s.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},r.$attrs,{class:"preview-blur",onLoad:m[0]||(m[0]=D=>f()),onError:m[1]||(m[1]=D=>E()),src:n.thumbnail}),null,16,un)),[[e.unref(M)]]):e.createCommentVNode("",!0),n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},r.$attrs,{class:"origin-animation",onLoad:m[2]||(m[2]=D=>f(!0)),onError:m[3]||(m[3]=D=>E(!0)),src:e.unref(u)}),null,16,dn)),[[e.unref(M)],[e.vShow,l.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),cn],16,rn))],64))}}),Pn="",mn=k(gn,[["__scopeId","data-v-d36ca4da"]]),pn=["title"],yn=["src"],hn=["title"],Nn=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:i,hasError:a,isSupport:u,handleError:d}=_e(l,s),{vImageCancel:c}=ke();return(g,M)=>e.unref(u)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,hn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:M[0]||(M[0]=y=>o.value=!0),onError:M[1]||(M[1]=(...y)=>e.unref(d)&&e.unref(d)(...y)),src:e.unref(i)},null,40,yn)),[[e.unref(c)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,pn))}}),$n="",Dn=k(Nn,[["__scopeId","data-v-9fad8239"]]);h.DefaultLoading=ve,h.Image=mn,h.Loading=on,h.LoadingToast=Se,h.PageLoading=Nt,h.PullRefresh=Oe,h.ScrollBar=Qt,h.SvgIcon=W,h.Thumbnail=Dn,h.ToastCreator=Ot,h.VirtualList=Xt,h.allSelectedKey=oe,h.closeDialogKey=Ce,h.dialogController=dt,h.diff=ot,h.isAllSelectedKey=ie,h.isSelectedKey=ne,h.selectAllKey=se,h.selectKey=le,h.selectedCountKey=re,h.toggleAllKey=ee,h.toggleKey=te,h.unselectAllKey=G,h.unselectKey=ae,h.useDelayAsync=Ct,h.useDelayLoad=Mt,h.useDelayLoadComp=de,h.useDragSelect=ue,h.useDragSelectByMobile=it,h.useDragSelectByPc=at,h.useSelectable=st,h.useSelectableInjectors=lt,h.useVirtualList=Le,h.vDebounceClick=Be,h.vSingleClick=me,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{y(),e.nextTick(()=>{a.init()})}),e.onUnmounted(()=>{a.modifySliderEventListener("remove")});function p(){g.value=!0}function M(){g.value=!1}return t({uScrollBarReturn:a}),(E,r)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:p,onMouseleave:M,style:e.normalizeStyle(e.unref(c))},[e.renderSlot(E.$slots,"default",{},()=>[bt],!0)],36),[[e.vShow,e.unref(f)]])]),_:3}))}}),kn="",Qt=k(Bt,[["__scopeId","data-v-efefe52c"]]),Ut=n=>(e.pushScopeId("data-v-18377f18"),n=n(),e.popScopeId(),n),Yt={class:"pull-refresh"},Pt={key:0,class:"pull-arrow-circle"},$t={key:0,class:"box-load"},Rt={class:"left-load"},Ft={class:"right-load"},Vt=Ut(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Ht={class:"pull-arrow"},Wt={key:1},Zt=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(n){const t=n,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),a=e.ref(0),u=e.ref(.3),d=e.ref(!1),c=e.ref(0),g=e.ref(0),f=e.ref(0),y=e.ref(0),p=e.ref(0),M=e.ref(),E=e.computed(()=>t.scrollTop),r=e.computed(()=>({transition:`${y.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),m=e.computed(()=>({borderColor:l,transition:y.value,transform:`rotate(${100+a.value}deg)`,opacity:u.value}));e.watch(p,z=>{z===0&&(s.value=-50,u.value=.3)}),e.watch(g,z=>{if(p.value===2)return;const C=Math.pow(z,o);C===0&&(s.value=-50),C<=50&&C>0&&(s.value=C-45,a.value=Math.pow(C,1.5),C>15?d.value=!0:d.value=!1),C>50&&(s.value=5,u.value=1,p.value)});const D=e.ref(0),O=z=>{D.value=z.touches[0].pageY},Q=z=>{const C=z.touches[0].pageY-D.value;D.value=z.touches[0].pageY,!t.refreshOff&&(!t?.refresh||p.value!==2&&E.value===0&&(c.value===0&&(c.value=z.touches[0].pageY),f.value=0,L.value.style.transition=`${f.value}ms`,y.value=0,g.value=z.touches[0].pageY-c.value,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,C>0&&z.preventDefault()))},U=()=>{if(t.refreshOff||!t?.refresh||p.value===2)return;c.value=0,f.value=300;const z=Math.pow(g.value,o);L.value.style.transition=`${f.value}ms`,z>50?(p.value=2,g.value=Math.pow(50,1/o),L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,y.value=300,t?.refresh&&t?.refresh().then(()=>{M.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{M.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{p.value=0,g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{M.value=void 0},y.value)},600)})):(g.value=0,L.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},L=e.ref(null);return e.onMounted(()=>{t?.refreshOff||(L.value=document.querySelector(t.pullRefreshContainer),L.value?.addEventListener("touchstart",O),L.value?.addEventListener("touchmove",Q),L.value?.addEventListener("touchend",U))}),(z,C)=>(e.openBlock(),e.createElementBlock("div",Yt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(r))},[M.value?(e.openBlock(),e.createElementBlock("div",Wt,e.toDisplayString(M.value),1)):(e.openBlock(),e.createElementBlock("div",Pt,[p.value==2?(e.openBlock(),e.createElementBlock("div",$t,[e.createElementVNode("div",Rt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",Ft,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),Vt])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(m))},[e.createElementVNode("div",Ht,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:d.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),bn="",Oe=k(Zt,[["__scopeId","data-v-18377f18"]]),Kt={inheritAttrs:!1},Gt=e.defineComponent({...Kt,__name:"VirtualList",props:{data:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(n,{expose:t,emit:o}){const l=n,s=Le(e.toRef(l,"data"),{itemHeight:y=>l.itemHeight(l.data[y]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:a,wrapperProps:u,innerProps:d,getItemHeightData:c,scrollTop:g}=s;t({vListReturn:s});const f="virtualListWrapper"+new Date().getTime();return(y,p)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Oe,{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:p[0]||(p[0]=(...M)=>e.unref(a).onScroll&&e.unref(a).onScroll(...M)),ref:e.unref(a).ref,class:"virtualList"},y.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({index:M,data:E})=>(e.openBlock(),e.createElementBlock("div",{key:M,style:e.normalizeStyle({height:`${e.unref(c)(M).height}px`,display:"flex"})},[e.renderSlot(y.$slots,"default",{data:E,index:M},void 0,!0)],4))),128))],16)],16)],16)])],64))}}),Bn="",Xt=k(Gt,[["__scopeId","data-v-e0fb787f"]]),Me=n=>(e.pushScopeId("data-v-c986249d"),n=n(),e.popScopeId(),n),qt={style:{position:"absolute"}},Jt=Me(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),en=["width","height"],tn=[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))],nn=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",qt,[Jt,(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"},tn,8,en))]))}}),Yn="",on=k(nn,[["__scopeId","data-v-c986249d"]]),ln=["image/avif","image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/tiff","image/webp","image/wbmp","image/svg+xml"],sn=["image/bmp","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function _e(n,t){const o=e.ref(n?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),a=e.computed(()=>{const d=t?.value;return!d||d.startsWith("video/")?!0:d.startsWith("image/")?l.value?ln.includes(d):sn.includes(d):!1});n&&e.watch(n,d=>{o.value=d,s.value=!1});function u(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:a,handleError:u}}function ke(){return{vImageCancel:{beforeUnmount(t){!t||(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const an=n=>(e.pushScopeId("data-v-d36ca4da"),n=n(),e.popScopeId(),n),rn=["title"],cn=an(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),un=["src"],dn=["src"],Mn=["title"],fn={inheritAttrs:!1},gn=e.defineComponent({...fn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},isFullyLoadedVisible:{type:Boolean}},setup(n){const t=n,o=e.ref(!1),l=e.ref(!1),s=e.ref(!1),{src:i,mime:a}=e.toRefs(t),{imgSrc:u,isSupport:d,hasError:c,handleError:g}=_e(i,a),{vImageCancel:f}=ke(),{LoadingComp:y}=de({component:ve,delay:500});function p(){l.value=!0,setTimeout(()=>{s.value=!0},50)}function M(r){r&&p(),o.value=!0}function E(r){r?g():p(),o.value=!0}return(r,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(y),{key:0})),e.unref(d)?e.unref(c)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"bad-icon",name:"\u56FE\u7247\u635F\u574F"})],16,Mn)):e.renderSlot(r.$slots,"default",{key:2,src:e.unref(u),onLoad:M,onError:E},()=>[n.thumbnail&&!s.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},r.$attrs,{class:"preview-blur",onLoad:m[0]||(m[0]=D=>M()),onError:m[1]||(m[1]=D=>E()),src:n.thumbnail}),null,16,un)),[[e.unref(f)]]):e.createCommentVNode("",!0),n.isShowSrc||l.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},r.$attrs,{class:"origin-animation",onLoad:m[2]||(m[2]=D=>M(!0)),onError:m[3]||(m[3]=D=>E(!0)),src:e.unref(u)}),null,16,dn)),[[e.unref(f)],[e.vShow,l.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},r.$attrs,{title:e.unref(u),class:"tip-wrap"}),[e.createVNode(W,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),cn],16,rn))],64))}}),Pn="",mn=k(gn,[["__scopeId","data-v-d36ca4da"]]),pn=["title"],yn=["src"],hn=["title"],Nn=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:i,hasError:a,isSupport:u,handleError:d}=_e(l,s),{vImageCancel:c}=ke();return(g,f)=>e.unref(u)?e.unref(a)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,hn)):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(d)&&e.unref(d)(...y)),src:e.unref(i)},null,40,yn)),[[e.unref(c)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(W,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,pn))}}),$n="",Dn=k(Nn,[["__scopeId","data-v-9fad8239"]]);h.DefaultLoading=ve,h.Image=mn,h.Loading=on,h.LoadingToast=Se,h.PageLoading=Nt,h.PullRefresh=Oe,h.ScrollBar=Qt,h.SvgIcon=W,h.Thumbnail=Dn,h.ToastCreator=Ot,h.VirtualList=Xt,h.allSelectedKey=oe,h.closeDialogKey=Ce,h.dialogController=dt,h.diff=ot,h.isAllSelectedKey=ie,h.isSelectedKey=ne,h.selectAllKey=se,h.selectKey=le,h.selectedCountKey=re,h.toggleAllKey=ee,h.toggleKey=te,h.unselectAllKey=G,h.unselectKey=ae,h.useDelayAsync=Ct,h.useDelayLoad=Mt,h.useDelayLoadComp=de,h.useDragSelect=ue,h.useDragSelectByMobile=it,h.useDragSelectByPc=at,h.useSelectable=st,h.useSelectableInjectors=lt,h.useVirtualList=Le,h.vDebounceClick=Be,h.vSingleClick=me,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazycatcloud/lzc-toolkit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"description": "lazycat ui toolkits",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.es.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"access": "public",
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"dev": "vite",
|
|
16
|
+
"dev": "vite --host",
|
|
17
17
|
"build": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
|
|
18
18
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
19
19
|
"typecheck": "vue-tsc --noEmit",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@vueuse/core": "^9.2.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"npm-run-all": "^4.1.5",
|
|
31
|
-
"npm-mirror-sync": "^1.0.0",
|
|
32
30
|
"@types/node": "^18.11.9",
|
|
33
31
|
"@vitejs/plugin-vue": "^3.1.0",
|
|
32
|
+
"npm-mirror-sync": "^1.0.0",
|
|
33
|
+
"npm-run-all": "^4.1.5",
|
|
34
34
|
"typescript": "^4.8.3",
|
|
35
35
|
"vite": "^3.1.1",
|
|
36
36
|
"vue": "^3.2.39",
|