@lazycatcloud/lzc-toolkit 0.0.129 → 0.0.130
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 +345 -343
- package/dist/index.umd.js +4 -4
- package/dist/types/useSelectable/index.d.ts +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shallowRef as tt, watchEffect as pt, readonly as nt, getCurrentScope as mt, onScopeDispose as Nt, getCurrentInstance as lt, onMounted as ae, nextTick as Le, ref as
|
|
1
|
+
import { shallowRef as tt, watchEffect as pt, readonly as nt, getCurrentScope as mt, onScopeDispose as Nt, getCurrentInstance as lt, onMounted as ae, nextTick as Le, ref as f, watch as R, customRef as Tt, unref as p, onUpdated as wt, computed as m, onUnmounted as ot, inject as W, provide as C, defineComponent as U, h as J, render as ce, openBlock as j, createBlock as he, Transition as Me, withCtx as de, withDirectives as se, createElementBlock as L, createElementVNode as A, withModifiers as re, normalizeClass as K, renderSlot as pe, createCommentVNode as te, useCssVars as xe, normalizeProps as Ie, guardReactiveProps as Ee, pushScopeId as ge, popScopeId as fe, normalizeStyle as P, toDisplayString as Ce, vShow as me, createVNode as X, onBeforeUnmount as It, useSlots as Et, toRef as At, Fragment as Ae, mergeProps as ie, renderList as jt, toRefs as st } from "vue";
|
|
2
2
|
const zt = {
|
|
3
3
|
created(t, e) {
|
|
4
4
|
let n, l;
|
|
@@ -8,8 +8,8 @@ const zt = {
|
|
|
8
8
|
function a(s) {
|
|
9
9
|
if (n === void 0)
|
|
10
10
|
return;
|
|
11
|
-
const i = s.clientX,
|
|
12
|
-
r > 5 ||
|
|
11
|
+
const i = s.clientX, c = s.clientY, r = Math.abs(i - n), M = Math.abs(c - l);
|
|
12
|
+
r > 5 || M > 5 || e.value && e.value(s);
|
|
13
13
|
}
|
|
14
14
|
t.__mouse_down__ = o, t.__mouse_up__ = a, t.addEventListener("mousedown", o), t.addEventListener("mouseup", a);
|
|
15
15
|
},
|
|
@@ -75,12 +75,12 @@ function Bt(t, e = !0, n = !0) {
|
|
|
75
75
|
const s = () => {
|
|
76
76
|
o && (clearTimeout(o), o = void 0);
|
|
77
77
|
};
|
|
78
|
-
return (
|
|
79
|
-
const r = ye(t),
|
|
78
|
+
return (c) => {
|
|
79
|
+
const r = ye(t), M = Date.now() - l;
|
|
80
80
|
if (s(), r <= 0)
|
|
81
|
-
return l = Date.now(),
|
|
82
|
-
|
|
83
|
-
l = Date.now(), a = !0, s(),
|
|
81
|
+
return l = Date.now(), c();
|
|
82
|
+
M > r && (n || !a) ? (l = Date.now(), c()) : e && (o = setTimeout(() => {
|
|
83
|
+
l = Date.now(), a = !0, s(), c();
|
|
84
84
|
}, r)), !n && !o && (o = setTimeout(() => a = !0, r)), a = !1;
|
|
85
85
|
};
|
|
86
86
|
}
|
|
@@ -89,16 +89,16 @@ function Ut(t) {
|
|
|
89
89
|
}
|
|
90
90
|
function Yt(t, e) {
|
|
91
91
|
let n, l, o;
|
|
92
|
-
const a =
|
|
92
|
+
const a = f(!0), s = () => {
|
|
93
93
|
a.value = !0, o();
|
|
94
94
|
};
|
|
95
95
|
R(t, s, { flush: "sync" });
|
|
96
|
-
const i = Ve(e) ? e : e.get,
|
|
96
|
+
const i = Ve(e) ? e : e.get, c = Ve(e) ? void 0 : e.set, r = Tt((M, d) => (l = M, o = d, {
|
|
97
97
|
get() {
|
|
98
98
|
return a.value && (n = i(), a.value = !1), l(), n;
|
|
99
99
|
},
|
|
100
|
-
set(
|
|
101
|
-
|
|
100
|
+
set(y) {
|
|
101
|
+
c?.(y);
|
|
102
102
|
}
|
|
103
103
|
}));
|
|
104
104
|
return Object.isExtensible(r) && (r.trigger = s), r;
|
|
@@ -122,7 +122,7 @@ function ct(t) {
|
|
|
122
122
|
}
|
|
123
123
|
const $t = Oe ? window : void 0, Pt = Oe ? window.document : void 0;
|
|
124
124
|
function Rt(t, e = !1) {
|
|
125
|
-
const n =
|
|
125
|
+
const n = f(), l = () => n.value = Boolean(t());
|
|
126
126
|
return l(), rt(l, e), n;
|
|
127
127
|
}
|
|
128
128
|
const je = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ze = "__vueuse_ssr_handlers__";
|
|
@@ -144,23 +144,23 @@ var Ke = Object.getOwnPropertySymbols, Ht = Object.prototype.hasOwnProperty, Wt
|
|
|
144
144
|
function Vt(t, e, n = {}) {
|
|
145
145
|
const l = n, { window: o = $t } = l, a = Zt(l, ["window"]);
|
|
146
146
|
let s;
|
|
147
|
-
const i = Rt(() => o && "ResizeObserver" in o),
|
|
147
|
+
const i = Rt(() => o && "ResizeObserver" in o), c = () => {
|
|
148
148
|
s && (s.disconnect(), s = void 0);
|
|
149
149
|
}, r = R(() => ct(t), (d) => {
|
|
150
|
-
|
|
151
|
-
}, { immediate: !0, flush: "post" }),
|
|
152
|
-
|
|
150
|
+
c(), i.value && o && d && (s = new ResizeObserver(e), s.observe(d, a));
|
|
151
|
+
}, { immediate: !0, flush: "post" }), M = () => {
|
|
152
|
+
c(), r();
|
|
153
153
|
};
|
|
154
|
-
return ut(
|
|
154
|
+
return ut(M), {
|
|
155
155
|
isSupported: i,
|
|
156
|
-
stop:
|
|
156
|
+
stop: M
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
function Gt(t, e = { width: 0, height: 0 }, n = {}) {
|
|
160
|
-
const { box: l = "content-box" } = n, o =
|
|
160
|
+
const { box: l = "content-box" } = n, o = f(e.width), a = f(e.height);
|
|
161
161
|
return Vt(t, ([s]) => {
|
|
162
162
|
const i = l === "border-box" ? s.borderBoxSize : l === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
163
|
-
i ? (o.value = i.reduce((
|
|
163
|
+
i ? (o.value = i.reduce((c, { inlineSize: r }) => c + r, 0), a.value = i.reduce((c, { blockSize: r }) => c + r, 0)) : (o.value = s.contentRect.width, a.value = s.contentRect.height);
|
|
164
164
|
}, n), R(() => ct(t), (s) => {
|
|
165
165
|
o.value = s ? e.width : 0, a.value = s ? e.height : 0;
|
|
166
166
|
}), {
|
|
@@ -174,28 +174,28 @@ var Xe;
|
|
|
174
174
|
})(Xe || (Xe = {}));
|
|
175
175
|
let Kt = 0;
|
|
176
176
|
function _e(t, e = {}) {
|
|
177
|
-
const n =
|
|
177
|
+
const n = f(!1), {
|
|
178
178
|
document: l = Pt,
|
|
179
179
|
immediate: o = !0,
|
|
180
180
|
manual: a = !1,
|
|
181
181
|
id: s = `vueuse_styletag_${++Kt}`
|
|
182
|
-
} = e, i =
|
|
183
|
-
let
|
|
182
|
+
} = e, i = f(t);
|
|
183
|
+
let c = () => {
|
|
184
184
|
};
|
|
185
185
|
const r = () => {
|
|
186
186
|
if (!l)
|
|
187
187
|
return;
|
|
188
188
|
const d = l.getElementById(s) || l.createElement("style");
|
|
189
|
-
d.type = "text/css", d.id = s, e.media && (d.media = e.media), l.head.appendChild(d), !n.value && (
|
|
190
|
-
d.innerText =
|
|
189
|
+
d.type = "text/css", d.id = s, e.media && (d.media = e.media), l.head.appendChild(d), !n.value && (c = R(i, (y) => {
|
|
190
|
+
d.innerText = y;
|
|
191
191
|
}, { immediate: !0 }), n.value = !0);
|
|
192
|
-
},
|
|
193
|
-
!l || !n.value || (
|
|
192
|
+
}, M = () => {
|
|
193
|
+
!l || !n.value || (c(), l.head.removeChild(l.getElementById(s)), n.value = !1);
|
|
194
194
|
};
|
|
195
|
-
return o && !a && rt(r), a || ut(
|
|
195
|
+
return o && !a && rt(r), a || ut(M), {
|
|
196
196
|
id: s,
|
|
197
197
|
css: i,
|
|
198
|
-
unload:
|
|
198
|
+
unload: M,
|
|
199
199
|
load: r,
|
|
200
200
|
isLoaded: nt(n)
|
|
201
201
|
};
|
|
@@ -238,32 +238,32 @@ en({
|
|
|
238
238
|
linear: Ut
|
|
239
239
|
}, tn);
|
|
240
240
|
function nn(t, e) {
|
|
241
|
-
const { scrollEndHook: n, itemHeight: l, overscan: o = 5 } = e, a =
|
|
241
|
+
const { scrollEndHook: n, itemHeight: l, overscan: o = 5 } = e, a = f(null), s = Gt(a), i = f(!0), c = it(V, 100);
|
|
242
242
|
let r;
|
|
243
|
-
const
|
|
243
|
+
const M = tt(t), d = f(0), y = f({ start: 0, end: 10 }), g = f({ start: 0, end: o });
|
|
244
244
|
let u = 0;
|
|
245
|
-
const N =
|
|
246
|
-
let { sum:
|
|
247
|
-
return
|
|
248
|
-
}),
|
|
249
|
-
const { start:
|
|
250
|
-
return N.value.slice(
|
|
245
|
+
const N = f([]), D = m(() => {
|
|
246
|
+
let { sum: z, height: I } = { sum: 0, height: 0 };
|
|
247
|
+
return M.value.map((k, B) => (typeof l == "number" ? I = l : I = l(B), z += I, { height: I, sum: z }));
|
|
248
|
+
}), v = m(() => q(y.value.start)), h = m(() => typeof l == "number" ? D.value.length * l : D.value[D.value.length - 1]?.sum || 0), E = m(() => {
|
|
249
|
+
const { start: z, end: I } = g.value;
|
|
250
|
+
return N.value.slice(z, I);
|
|
251
251
|
});
|
|
252
252
|
ae(() => {
|
|
253
253
|
}), ot(() => cancelAnimationFrame(r)), R(
|
|
254
|
-
|
|
254
|
+
M,
|
|
255
255
|
() => {
|
|
256
256
|
(s.width.value || s.height.value) && S();
|
|
257
257
|
},
|
|
258
258
|
{ deep: !0 }
|
|
259
259
|
), R(
|
|
260
260
|
[s.width, s.height],
|
|
261
|
-
([
|
|
262
|
-
(
|
|
261
|
+
([z, I]) => {
|
|
262
|
+
(z || I) && S();
|
|
263
263
|
},
|
|
264
264
|
{ deep: !0 }
|
|
265
265
|
), R(d, () => {
|
|
266
|
-
Y(),
|
|
266
|
+
Y(), c();
|
|
267
267
|
});
|
|
268
268
|
function Y() {
|
|
269
269
|
i.value = !1;
|
|
@@ -277,44 +277,44 @@ function nn(t, e) {
|
|
|
277
277
|
function x() {
|
|
278
278
|
if (a.value) {
|
|
279
279
|
d.value = a.value.scrollTop;
|
|
280
|
-
let
|
|
281
|
-
u = G(
|
|
282
|
-
let I = Math.max(0,
|
|
283
|
-
|
|
284
|
-
|
|
280
|
+
let z = b(d.value);
|
|
281
|
+
u = G(z);
|
|
282
|
+
let I = Math.max(0, z - o), k = Math.min(
|
|
283
|
+
z + u + o,
|
|
284
|
+
M.value.length
|
|
285
285
|
);
|
|
286
|
-
|
|
286
|
+
y.value = { start: I, end: k }, N.value = M.value.slice(I, k).map((B, _) => ({
|
|
287
287
|
data: B,
|
|
288
288
|
index: _ + I
|
|
289
|
-
})), g.value.start =
|
|
289
|
+
})), g.value.start = z - I, g.value.end = g.value.start + u;
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
function b(
|
|
293
|
-
let I = 0, k =
|
|
292
|
+
function b(z) {
|
|
293
|
+
let I = 0, k = D.value.length - 1, B = -1;
|
|
294
294
|
for (; I <= k; ) {
|
|
295
295
|
const _ = Math.floor((I + k) / 2);
|
|
296
|
-
|
|
296
|
+
D.value[_].sum >= z ? (B = _, k = _ - 1) : I = _ + 1;
|
|
297
297
|
}
|
|
298
298
|
return Math.max(0, B);
|
|
299
299
|
}
|
|
300
|
-
function G(
|
|
300
|
+
function G(z) {
|
|
301
301
|
let I = 0, k = 0;
|
|
302
|
-
for (let B =
|
|
302
|
+
for (let B = z; B < D.value.length && (I++, k += D.value[B].height, !(k >= s.height.value)); B++)
|
|
303
303
|
;
|
|
304
304
|
return I;
|
|
305
305
|
}
|
|
306
|
-
function q(
|
|
306
|
+
function q(z) {
|
|
307
307
|
if (typeof l == "number")
|
|
308
|
-
return
|
|
309
|
-
let I =
|
|
308
|
+
return z * l;
|
|
309
|
+
let I = D.value[z];
|
|
310
310
|
return I ? I.sum - I.height : 0;
|
|
311
311
|
}
|
|
312
|
-
function F(
|
|
313
|
-
return
|
|
312
|
+
function F(z) {
|
|
313
|
+
return D.value[z] || { sum: 0, height: 0 };
|
|
314
314
|
}
|
|
315
|
-
function ne(
|
|
315
|
+
function ne(z) {
|
|
316
316
|
if (a.value) {
|
|
317
|
-
const I = F(
|
|
317
|
+
const I = F(z);
|
|
318
318
|
a.value.scrollTop = I.sum - I.height, x();
|
|
319
319
|
}
|
|
320
320
|
}
|
|
@@ -326,7 +326,7 @@ function nn(t, e) {
|
|
|
326
326
|
}
|
|
327
327
|
})), le = m(() => ({
|
|
328
328
|
style: {
|
|
329
|
-
transform: `translate3d(0, ${
|
|
329
|
+
transform: `translate3d(0, ${v.value}px, 0)`,
|
|
330
330
|
"will-change": "transform"
|
|
331
331
|
}
|
|
332
332
|
})), ee = {
|
|
@@ -334,7 +334,7 @@ function nn(t, e) {
|
|
|
334
334
|
};
|
|
335
335
|
return {
|
|
336
336
|
list: N,
|
|
337
|
-
visiableList:
|
|
337
|
+
visiableList: E,
|
|
338
338
|
getItemHeightData: F,
|
|
339
339
|
getoffsetTopIndex: b,
|
|
340
340
|
totalHeight: h,
|
|
@@ -362,108 +362,108 @@ function hl() {
|
|
|
362
362
|
boolRef: m(() => !1),
|
|
363
363
|
numberRef: m(() => 0),
|
|
364
364
|
arrayRef: m(() => [])
|
|
365
|
-
}, a = W(ke, o), s = W(Qe, e), i = W($e, n),
|
|
365
|
+
}, a = W(ke, o), s = W(Qe, e), i = W($e, n), c = W(be, t), r = W(Se, t), M = W(Be, t), d = W(Ue, t), y = W(Ye, t), g = W(ve, t), u = W(Pe, l);
|
|
366
366
|
return {
|
|
367
367
|
selected: a,
|
|
368
368
|
isSelected: s,
|
|
369
369
|
isAllSelected: i,
|
|
370
|
-
toggle:
|
|
370
|
+
toggle: c,
|
|
371
371
|
toggleAll: r,
|
|
372
|
-
select:
|
|
372
|
+
select: M,
|
|
373
373
|
selectAll: d,
|
|
374
|
-
unselect:
|
|
374
|
+
unselect: y,
|
|
375
375
|
unselectAll: g,
|
|
376
376
|
selectedCount: u
|
|
377
377
|
};
|
|
378
378
|
}
|
|
379
|
-
function pl(t, e) {
|
|
380
|
-
const
|
|
379
|
+
function pl(t, e, n = { deep: !0 }) {
|
|
380
|
+
const l = f(!1), o = f(/* @__PURE__ */ new Set()), a = f(/* @__PURE__ */ new Map());
|
|
381
381
|
R(
|
|
382
382
|
t,
|
|
383
|
-
(
|
|
384
|
-
|
|
383
|
+
(v) => {
|
|
384
|
+
a.value = v.reduce((h, E) => (h.set(E[e], E), h), /* @__PURE__ */ new Map());
|
|
385
385
|
},
|
|
386
386
|
{
|
|
387
|
-
deep:
|
|
387
|
+
deep: n.deep,
|
|
388
388
|
immediate: !0
|
|
389
389
|
}
|
|
390
390
|
);
|
|
391
|
-
const
|
|
392
|
-
let
|
|
393
|
-
if (
|
|
394
|
-
|
|
395
|
-
else if (
|
|
396
|
-
let
|
|
397
|
-
|
|
398
|
-
|
|
391
|
+
const s = m(() => {
|
|
392
|
+
let v = [];
|
|
393
|
+
if (l.value != null)
|
|
394
|
+
l.value && (v = Array.from(a.value.values()));
|
|
395
|
+
else if (o.value.size) {
|
|
396
|
+
let h;
|
|
397
|
+
o.value.forEach((E) => {
|
|
398
|
+
h = a.value.get(E), h && v.push(h);
|
|
399
399
|
});
|
|
400
400
|
}
|
|
401
|
-
return
|
|
402
|
-
}), s = m(() => {
|
|
403
|
-
let c = 0;
|
|
404
|
-
return n.value != null ? n.value && (c = o.value.size) : c = l.value.size, c;
|
|
401
|
+
return v;
|
|
405
402
|
}), i = m(() => {
|
|
406
|
-
let
|
|
407
|
-
|
|
408
|
-
|
|
403
|
+
let v = 0;
|
|
404
|
+
return l.value != null ? l.value && (v = a.value.size) : v = o.value.size, v;
|
|
405
|
+
}), c = m(() => {
|
|
406
|
+
let v;
|
|
407
|
+
if (l.value != null)
|
|
408
|
+
v = l.value;
|
|
409
409
|
else {
|
|
410
|
-
const
|
|
411
|
-
|
|
410
|
+
const h = o.value.size, E = a.value.size;
|
|
411
|
+
v = h == E;
|
|
412
412
|
}
|
|
413
|
-
return
|
|
413
|
+
return v;
|
|
414
414
|
});
|
|
415
|
-
function M() {
|
|
416
|
-
n.value = !0;
|
|
417
|
-
}
|
|
418
415
|
function r() {
|
|
419
|
-
|
|
416
|
+
l.value = !0;
|
|
417
|
+
}
|
|
418
|
+
function M() {
|
|
419
|
+
l.value = !1;
|
|
420
420
|
}
|
|
421
|
-
function v
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
function d(v) {
|
|
422
|
+
u(() => {
|
|
423
|
+
v.forEach((h) => {
|
|
424
|
+
o.value.add(h[e]);
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
427
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
428
|
+
function y(v) {
|
|
429
|
+
u(() => {
|
|
430
|
+
v.forEach((h) => {
|
|
431
|
+
o.value.delete(h[e]);
|
|
432
432
|
});
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
return
|
|
435
|
+
function g(v) {
|
|
436
|
+
return l.value != null ? l.value : o.value.has(v[e]);
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
438
|
+
function u(v) {
|
|
439
|
+
l.value != null && (l.value ? o.value = new Set(Array.from(a.value.keys())) : o.value = /* @__PURE__ */ new Set()), v(), o.value.size == 0 ? l.value = !1 : o.value.size == a.value.size ? l.value = !0 : l.value = null;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
441
|
+
function N(v) {
|
|
442
|
+
u(() => {
|
|
443
|
+
v.forEach((h) => {
|
|
444
|
+
g(h) ? o.value.delete(h[e]) : o.value.add(h[e]);
|
|
445
445
|
});
|
|
446
446
|
});
|
|
447
447
|
}
|
|
448
|
-
function
|
|
449
|
-
const { value:
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
return C(Se,
|
|
453
|
-
selected:
|
|
454
|
-
select:
|
|
455
|
-
selectAll:
|
|
456
|
-
unselect:
|
|
457
|
-
unselectAll:
|
|
458
|
-
toggle:
|
|
459
|
-
toggleAll:
|
|
460
|
-
isSelected:
|
|
461
|
-
isAllSelected:
|
|
462
|
-
selectedCount:
|
|
448
|
+
function D() {
|
|
449
|
+
const { value: v } = c;
|
|
450
|
+
v ? M() : r();
|
|
451
|
+
}
|
|
452
|
+
return C(Se, D), C(be, N), C(Qe, g), C(ke, s), C(Be, d), C(Ue, r), C(Ye, y), C($e, c), C(ve, M), C(ve, M), C(Pe, i), {
|
|
453
|
+
selected: s,
|
|
454
|
+
select: d,
|
|
455
|
+
selectAll: r,
|
|
456
|
+
unselect: y,
|
|
457
|
+
unselectAll: M,
|
|
458
|
+
toggle: N,
|
|
459
|
+
toggleAll: D,
|
|
460
|
+
isSelected: g,
|
|
461
|
+
isAllSelected: c,
|
|
462
|
+
selectedCount: i
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
465
|
function ml(t) {
|
|
466
|
-
const e =
|
|
466
|
+
const e = f(!1), n = f(/* @__PURE__ */ new Set()), l = m(() => {
|
|
467
467
|
let u = [];
|
|
468
468
|
return e.value != null ? e.value && (u = t.value) : n.value.size && (u = Array.from(n.value.values())), u;
|
|
469
469
|
}), o = m(() => {
|
|
@@ -474,8 +474,8 @@ function ml(t) {
|
|
|
474
474
|
if (e.value != null)
|
|
475
475
|
u = e.value;
|
|
476
476
|
else {
|
|
477
|
-
const N = n.value.size,
|
|
478
|
-
u = N ==
|
|
477
|
+
const N = n.value.size, D = t.value.length;
|
|
478
|
+
u = N == D;
|
|
479
479
|
}
|
|
480
480
|
return u;
|
|
481
481
|
});
|
|
@@ -485,7 +485,7 @@ function ml(t) {
|
|
|
485
485
|
function i() {
|
|
486
486
|
e.value = !1;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function c(u) {
|
|
489
489
|
d(() => {
|
|
490
490
|
u.forEach((N) => {
|
|
491
491
|
n.value.add(N);
|
|
@@ -499,16 +499,16 @@ function ml(t) {
|
|
|
499
499
|
});
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function M(u) {
|
|
503
503
|
return e.value != null ? e.value : n.value.has(u);
|
|
504
504
|
}
|
|
505
505
|
function d(u) {
|
|
506
506
|
e.value != null && (e.value ? n.value = new Set(Array.from(t.value)) : n.value = /* @__PURE__ */ new Set()), u(), n.value.size == 0 ? e.value = !1 : n.value.size == t.value.length ? e.value = !0 : e.value = null;
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function y(u) {
|
|
509
509
|
d(() => {
|
|
510
510
|
u.forEach((N) => {
|
|
511
|
-
|
|
511
|
+
M(N) ? n.value.delete(N) : n.value.add(N);
|
|
512
512
|
});
|
|
513
513
|
});
|
|
514
514
|
}
|
|
@@ -516,15 +516,15 @@ function ml(t) {
|
|
|
516
516
|
const { value: u } = a;
|
|
517
517
|
u ? i() : s();
|
|
518
518
|
}
|
|
519
|
-
return C(Se, g), C(be,
|
|
519
|
+
return C(Se, g), C(be, y), C(Qe, M), C(ke, l), C(Be, c), C(Ue, s), C(Ye, r), C($e, a), C(ve, i), C(ve, i), C(Pe, o), {
|
|
520
520
|
selected: l,
|
|
521
|
-
select:
|
|
521
|
+
select: c,
|
|
522
522
|
selectAll: s,
|
|
523
523
|
unselect: r,
|
|
524
524
|
unselectAll: i,
|
|
525
|
-
toggle:
|
|
525
|
+
toggle: y,
|
|
526
526
|
toggleAll: g,
|
|
527
|
-
isSelected:
|
|
527
|
+
isSelected: M,
|
|
528
528
|
isAllSelected: a,
|
|
529
529
|
selectedCount: o
|
|
530
530
|
};
|
|
@@ -546,24 +546,24 @@ function Mt({
|
|
|
546
546
|
unselectAll: s = we("\u53D6\u6D88\u5168\u9009")
|
|
547
547
|
} = l();
|
|
548
548
|
let i = {};
|
|
549
|
-
const
|
|
549
|
+
const c = m(
|
|
550
550
|
() => Ge(e === "colum" ? ft : yt, 50)
|
|
551
|
-
), r = /* @__PURE__ */ new Set(),
|
|
552
|
-
(T) =>
|
|
553
|
-
),
|
|
551
|
+
), r = /* @__PURE__ */ new Set(), M = f(!0), d = f(), y = f(!1), g = f({ x: 0, y: 0 }), u = f({ x: 0, y: 0, scrollTop: 0 }), N = new ResizeObserver(
|
|
552
|
+
(T) => D.value = T[0].target.getBoundingClientRect()
|
|
553
|
+
), D = f({}), v = f({
|
|
554
554
|
top: 0,
|
|
555
555
|
height: 0,
|
|
556
556
|
sync(T = !1) {
|
|
557
|
-
|
|
557
|
+
v.value.top = d.value?.scrollTop || 0, T && (v.value.height = d.value?.scrollHeight || 0);
|
|
558
558
|
}
|
|
559
|
-
}), h = m(() =>
|
|
560
|
-
left: Math.min(g.value.x, u.value.x) -
|
|
561
|
-
top: Math.min(g.value.y, u.value.y) -
|
|
559
|
+
}), h = m(() => y.value ? {
|
|
560
|
+
left: Math.min(g.value.x, u.value.x) - D.value.left,
|
|
561
|
+
top: Math.min(g.value.y, u.value.y) - D.value.top,
|
|
562
562
|
width: Math.abs(g.value.x - u.value.x),
|
|
563
563
|
height: Math.abs(g.value.y - u.value.y)
|
|
564
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin:
|
|
564
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: E = 50, startSpeed: Y = 30, maxSpeed: V = 30 } = n;
|
|
565
565
|
let S;
|
|
566
|
-
const x =
|
|
566
|
+
const x = E, b = Y, G = V, q = (T) => T ** 1;
|
|
567
567
|
let F = 0;
|
|
568
568
|
function ne(T) {
|
|
569
569
|
if (cancelAnimationFrame(S), F = ue(T), F = Math.max(
|
|
@@ -571,16 +571,16 @@ function Mt({
|
|
|
571
571
|
-G
|
|
572
572
|
), F !== 0) {
|
|
573
573
|
const w = d.value;
|
|
574
|
-
if (!w || !
|
|
574
|
+
if (!w || !y.value)
|
|
575
575
|
return;
|
|
576
|
-
const $ =
|
|
577
|
-
let O =
|
|
576
|
+
const $ = v.value.height - D.value.height;
|
|
577
|
+
let O = v.value.top + Number(F);
|
|
578
578
|
O = Math.min(Math.max(0, O), $), w.scrollTop = O, ee(), S = requestAnimationFrame(() => ne(T));
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
function ue(T) {
|
|
582
582
|
if (d.value) {
|
|
583
|
-
const $ =
|
|
583
|
+
const $ = D.value, O = $.bottom - T;
|
|
584
584
|
if (O < x)
|
|
585
585
|
return b * q(1 - O / x);
|
|
586
586
|
const Z = T - $.top;
|
|
@@ -591,17 +591,17 @@ function Mt({
|
|
|
591
591
|
}
|
|
592
592
|
function le(T) {
|
|
593
593
|
const w = { ...h.value, right: 0, bottom: 0 };
|
|
594
|
-
return w.left +=
|
|
594
|
+
return w.left += D.value.left, w.top += D.value.top - v.value.top, w.right = w.width + w.left, w.bottom = w.height + w.top, w.left < T.right && w.right > T.left && w.top < T.bottom && w.bottom > T.top;
|
|
595
595
|
}
|
|
596
596
|
function ee() {
|
|
597
|
-
|
|
598
|
-
const { top: T, height: w } =
|
|
597
|
+
v.value.sync();
|
|
598
|
+
const { top: T, height: w } = v.value;
|
|
599
599
|
u.value.y = Math.min(
|
|
600
|
-
w +
|
|
600
|
+
w + D.value.top,
|
|
601
601
|
u.value.y + T - u.value.scrollTop
|
|
602
602
|
), u.value.scrollTop = T;
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function z(T, w, $ = "dynamic-styles") {
|
|
605
605
|
let O = document.getElementById($);
|
|
606
606
|
O || (O = document.createElement("style"), O.id = $, document.head.appendChild(O));
|
|
607
607
|
const Z = O.sheet.cssRules, oe = Z.length, ht = `${T} { ${w} }`;
|
|
@@ -613,22 +613,22 @@ function Mt({
|
|
|
613
613
|
O.sheet.insertRule(ht, oe);
|
|
614
614
|
}
|
|
615
615
|
function I(T, w) {
|
|
616
|
-
|
|
616
|
+
M.value = !0, y.value = !0, v.value.height ? v.value.sync() : v.value.sync(!0), g.value.x = T, g.value.y = w + v.value.top, u.value.x = g.value.x, u.value.y = g.value.y, d.value?.classList.add("disable-scroll-behavior"), r.clear();
|
|
617
617
|
}
|
|
618
618
|
function k(T, w, $) {
|
|
619
|
-
!
|
|
620
|
-
w +
|
|
621
|
-
|
|
622
|
-
), u.value.scrollTop =
|
|
619
|
+
!y.value || (M.value && e === "colum" && !Q() && (s(), M.value = !1), $?.(), ne(w), u.value.x = Math.max(T, D.value.left), u.value.y = Math.min(
|
|
620
|
+
w + v.value.top,
|
|
621
|
+
v.value.height + D.value.top
|
|
622
|
+
), u.value.scrollTop = v.value.top, c.value());
|
|
623
623
|
}
|
|
624
624
|
function B() {
|
|
625
|
-
|
|
625
|
+
y.value = !1, d.value?.classList.remove("disable-scroll-behavior");
|
|
626
626
|
}
|
|
627
627
|
function _() {
|
|
628
|
-
!
|
|
628
|
+
!y.value || (F || ee(), c.value());
|
|
629
629
|
}
|
|
630
630
|
function Q() {
|
|
631
|
-
if (!
|
|
631
|
+
if (!y.value)
|
|
632
632
|
return !1;
|
|
633
633
|
const { width: T, height: w } = h.value;
|
|
634
634
|
return !(Math.max(T, w) > 5);
|
|
@@ -652,7 +652,7 @@ function Mt({
|
|
|
652
652
|
i[`${t}`] = T[O], o([i]), r.add(T[O]);
|
|
653
653
|
}
|
|
654
654
|
function Dt(T) {
|
|
655
|
-
return !T?.value || (d.value = T.value, !d?.value) ? !1 : (N.observe(d.value),
|
|
655
|
+
return !T?.value || (d.value = T.value, !d?.value) ? !1 : (N.observe(d.value), z(
|
|
656
656
|
".disable-scroll-behavior",
|
|
657
657
|
"scroll-behavior: unset !important;"
|
|
658
658
|
), !0);
|
|
@@ -665,9 +665,9 @@ function Mt({
|
|
|
665
665
|
onScroll: _,
|
|
666
666
|
isSingleClick: Q,
|
|
667
667
|
cancelSelectAllBySingleClick: Ne,
|
|
668
|
-
selectFn:
|
|
668
|
+
selectFn: c,
|
|
669
669
|
selectRange: h,
|
|
670
|
-
isPressing:
|
|
670
|
+
isPressing: y,
|
|
671
671
|
containerEl: d,
|
|
672
672
|
observer: N
|
|
673
673
|
};
|
|
@@ -678,13 +678,13 @@ function Nl(t) {
|
|
|
678
678
|
dragStart: a,
|
|
679
679
|
dragMove: s,
|
|
680
680
|
dragEnd: i,
|
|
681
|
-
cancelSelectAllBySingleClick:
|
|
681
|
+
cancelSelectAllBySingleClick: c
|
|
682
682
|
} = e, r = m(() => ({
|
|
683
683
|
left: `${l.value.left}px`,
|
|
684
684
|
top: `${l.value.top}px`,
|
|
685
685
|
width: `${l.value.width}px`,
|
|
686
686
|
height: `${l.value.height}px`
|
|
687
|
-
})), { load:
|
|
687
|
+
})), { load: M } = _e(
|
|
688
688
|
`.drag-select-box {
|
|
689
689
|
position: absolute;
|
|
690
690
|
z-index: 99999;
|
|
@@ -701,30 +701,30 @@ function Nl(t) {
|
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
});
|
|
704
|
-
function
|
|
705
|
-
|
|
704
|
+
function y(v) {
|
|
705
|
+
v.button === 0 && a(v.x, v.y);
|
|
706
706
|
}
|
|
707
|
-
function g(
|
|
708
|
-
s(
|
|
707
|
+
function g(v) {
|
|
708
|
+
s(v.x, v.y);
|
|
709
709
|
}
|
|
710
|
-
function u(
|
|
711
|
-
|
|
710
|
+
function u(v) {
|
|
711
|
+
v.composedPath().some((E) => E?.getAttribute?.(t.attribute)) || c(), i();
|
|
712
712
|
}
|
|
713
|
-
function N(
|
|
713
|
+
function N(v) {
|
|
714
714
|
try {
|
|
715
|
-
if (!e.init(
|
|
715
|
+
if (!e.init(v))
|
|
716
716
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
717
717
|
if (!e.containerEl?.value)
|
|
718
718
|
return !1;
|
|
719
|
-
ce(J(d), e.containerEl.value),
|
|
719
|
+
ce(J(d), e.containerEl.value), M(), e.containerEl.value?.addEventListener("scroll", o), e.containerEl.value?.addEventListener("mousedown", y), window.addEventListener("mousemove", g), window.addEventListener("mouseup", u);
|
|
720
720
|
} catch (h) {
|
|
721
721
|
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", h);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
n.disconnect(), e.containerEl.value?.removeEventListener("scroll", o), e.containerEl.value?.removeEventListener("mousedown",
|
|
724
|
+
function D() {
|
|
725
|
+
n.disconnect(), e.containerEl.value?.removeEventListener("scroll", o), e.containerEl.value?.removeEventListener("mousedown", y), window.removeEventListener("mousemove", g), window.removeEventListener("mouseup", u);
|
|
726
726
|
}
|
|
727
|
-
return { init: N, unMount:
|
|
727
|
+
return { init: N, unMount: D };
|
|
728
728
|
}
|
|
729
729
|
function Tl(t, e, n = 600) {
|
|
730
730
|
const l = Mt({
|
|
@@ -734,38 +734,38 @@ function Tl(t, e, n = 600) {
|
|
|
734
734
|
startSpeed: 5,
|
|
735
735
|
maxSpeed: 5
|
|
736
736
|
}
|
|
737
|
-
}), { observer: o } = l, { onScroll: a, dragStart: s, dragMove: i, dragEnd:
|
|
737
|
+
}), { observer: o } = l, { onScroll: a, dragStart: s, dragMove: i, dragEnd: c } = l;
|
|
738
738
|
let r;
|
|
739
|
-
function
|
|
739
|
+
function M() {
|
|
740
740
|
clearTimeout(r);
|
|
741
741
|
}
|
|
742
|
-
function d(
|
|
743
|
-
|
|
744
|
-
const { clientX: h, clientY:
|
|
745
|
-
s(h,
|
|
742
|
+
function d(D) {
|
|
743
|
+
M(), D.composedPath().some((h) => !!h?.getAttribute?.(t.attribute)) && (r = setTimeout(() => {
|
|
744
|
+
const { clientX: h, clientY: E } = D.targetTouches[0];
|
|
745
|
+
s(h, E), e?.(), i(h, E, () => D.preventDefault()), D.preventDefault();
|
|
746
746
|
}, n));
|
|
747
747
|
}
|
|
748
|
-
function D
|
|
749
|
-
|
|
750
|
-
const { clientX:
|
|
751
|
-
i(
|
|
748
|
+
function y(D) {
|
|
749
|
+
M();
|
|
750
|
+
const { clientX: v, clientY: h } = D.targetTouches[0];
|
|
751
|
+
i(v, h, () => D.preventDefault());
|
|
752
752
|
}
|
|
753
753
|
function g() {
|
|
754
|
-
|
|
754
|
+
M(), c();
|
|
755
755
|
}
|
|
756
|
-
function u(
|
|
756
|
+
function u(D) {
|
|
757
757
|
try {
|
|
758
|
-
if (!l.init(
|
|
758
|
+
if (!l.init(D))
|
|
759
759
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
760
760
|
if (!l.containerEl?.value)
|
|
761
761
|
return !1;
|
|
762
|
-
l.containerEl.value?.addEventListener("scroll", a), l.containerEl.value?.addEventListener("touchstart", d), l.containerEl.value?.addEventListener("touchmove",
|
|
763
|
-
} catch (
|
|
764
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
762
|
+
l.containerEl.value?.addEventListener("scroll", a), l.containerEl.value?.addEventListener("touchstart", d), l.containerEl.value?.addEventListener("touchmove", y), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
|
|
763
|
+
} catch (v) {
|
|
764
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", v);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
function N() {
|
|
768
|
-
o.disconnect(), l.containerEl.value?.removeEventListener("scroll", a), l.containerEl.value?.removeEventListener("touchstart", d), l.containerEl.value?.removeEventListener("touchmove",
|
|
768
|
+
o.disconnect(), l.containerEl.value?.removeEventListener("scroll", a), l.containerEl.value?.removeEventListener("touchstart", d), l.containerEl.value?.removeEventListener("touchmove", y), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
|
|
769
769
|
}
|
|
770
770
|
return { init: u, unMount: N };
|
|
771
771
|
}
|
|
@@ -784,10 +784,10 @@ const ln = Symbol(), on = {
|
|
|
784
784
|
const n = t, l = () => {
|
|
785
785
|
n.closeOnClickOverlay && e("update:visiable", !1);
|
|
786
786
|
};
|
|
787
|
-
return C(ln, () => e("update:visiable", !1)), (o, a) => (
|
|
787
|
+
return C(ln, () => e("update:visiable", !1)), (o, a) => (j(), he(Me, { name: "modal" }, {
|
|
788
788
|
default: de(() => [
|
|
789
|
-
t.visiable ? se((
|
|
790
|
-
|
|
789
|
+
t.visiable ? se((j(), L("div", on, [
|
|
790
|
+
A("div", {
|
|
791
791
|
onMousedown: a[0] || (a[0] = re(() => {
|
|
792
792
|
}, ["stop"])),
|
|
793
793
|
class: K(["lzc-dialog", t.dialogClass])
|
|
@@ -869,7 +869,7 @@ function Il({
|
|
|
869
869
|
component: t,
|
|
870
870
|
componentProps: e,
|
|
871
871
|
delay: n
|
|
872
|
-
}), o =
|
|
872
|
+
}), o = f(!1);
|
|
873
873
|
function a() {
|
|
874
874
|
o.value = !0;
|
|
875
875
|
}
|
|
@@ -878,8 +878,8 @@ function Il({
|
|
|
878
878
|
}
|
|
879
879
|
return { LoadingComp: l, loading: o, load: a, unload: s };
|
|
880
880
|
}
|
|
881
|
-
const un = (t) => (ge("data-v-9a328d05"), t = t(), fe(), t), rn = /* @__PURE__ */ un(() => /* @__PURE__ */
|
|
882
|
-
/* @__PURE__ */
|
|
881
|
+
const un = (t) => (ge("data-v-9a328d05"), t = t(), fe(), t), rn = /* @__PURE__ */ un(() => /* @__PURE__ */ A("div", { class: "ldio-mm5gwljcryb" }, [
|
|
882
|
+
/* @__PURE__ */ A("div")
|
|
883
883
|
], -1)), cn = [
|
|
884
884
|
rn
|
|
885
885
|
], Mn = /* @__PURE__ */ U({
|
|
@@ -892,7 +892,7 @@ const un = (t) => (ge("data-v-9a328d05"), t = t(), fe(), t), rn = /* @__PURE__ *
|
|
|
892
892
|
return xe((e) => ({
|
|
893
893
|
eebbc516: t.width + "px",
|
|
894
894
|
"5323c3d0": t.height + "px"
|
|
895
|
-
})), (e, n) => (
|
|
895
|
+
})), (e, n) => (j(), L("div", Ie(Ee(e.$attrs)), cn, 16));
|
|
896
896
|
}
|
|
897
897
|
});
|
|
898
898
|
const dn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-9a328d05"]]), vn = "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", gn = { class: "loading-wrap" }, fn = ["src"], yn = /* @__PURE__ */ U({
|
|
@@ -903,8 +903,8 @@ const dn = /* @__PURE__ */ H(Mn, [["__scopeId", "data-v-9a328d05"]]), vn = "data
|
|
|
903
903
|
setup(t) {
|
|
904
904
|
return xe((e) => ({
|
|
905
905
|
"05ced5ee": t.delay
|
|
906
|
-
})), (e, n) => (
|
|
907
|
-
|
|
906
|
+
})), (e, n) => (j(), L("div", gn, [
|
|
907
|
+
A("img", {
|
|
908
908
|
class: "loading-circle",
|
|
909
909
|
src: p(vn)
|
|
910
910
|
}, null, 8, fn)
|
|
@@ -952,42 +952,42 @@ const hn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
952
952
|
function i() {
|
|
953
953
|
n.closeOnClickOverlay && e("close");
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function c() {
|
|
956
956
|
n.closeOnClick && e("close");
|
|
957
957
|
}
|
|
958
|
-
return (r,
|
|
958
|
+
return (r, M) => (j(), he(Me, {
|
|
959
959
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
960
960
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
961
961
|
}, {
|
|
962
962
|
default: de(() => [
|
|
963
|
-
|
|
963
|
+
A("div", {
|
|
964
964
|
id: l,
|
|
965
965
|
style: P(p(o))
|
|
966
966
|
}, [
|
|
967
|
-
se(
|
|
967
|
+
se(A("div", {
|
|
968
968
|
class: K(`${l} ${t.className}`),
|
|
969
969
|
onClick: re(i, ["stop"])
|
|
970
970
|
}, [
|
|
971
|
-
|
|
971
|
+
A("div", {
|
|
972
972
|
class: K(`${l}-wrap`),
|
|
973
|
-
onClick: re(
|
|
973
|
+
onClick: re(c, ["stop"])
|
|
974
974
|
}, [
|
|
975
|
-
|
|
975
|
+
A("div", {
|
|
976
976
|
class: K(`${l}-content`),
|
|
977
977
|
style: P(p(a))
|
|
978
978
|
}, [
|
|
979
|
-
t.showClose ? (
|
|
979
|
+
t.showClose ? (j(), L("img", {
|
|
980
980
|
key: 0,
|
|
981
|
-
onClick:
|
|
981
|
+
onClick: M[0] || (M[0] = re((d) => e("close"), ["stop"])),
|
|
982
982
|
src: p(hn),
|
|
983
983
|
class: K(`${l}-close`)
|
|
984
984
|
}, null, 10, Tn)) : te("", !0),
|
|
985
|
-
t.showIcon ? (
|
|
985
|
+
t.showIcon ? (j(), L("img", {
|
|
986
986
|
key: 1,
|
|
987
987
|
src: t.icon || p(pn),
|
|
988
988
|
class: K(`${l}-icon`)
|
|
989
989
|
}, null, 10, wn)) : te("", !0),
|
|
990
|
-
t.message ? (
|
|
990
|
+
t.message ? (j(), L("div", {
|
|
991
991
|
key: 2,
|
|
992
992
|
class: K(`${l}-message`),
|
|
993
993
|
style: P(p(s))
|
|
@@ -1008,7 +1008,7 @@ class An {
|
|
|
1008
1008
|
loadingToast;
|
|
1009
1009
|
el;
|
|
1010
1010
|
options;
|
|
1011
|
-
visible =
|
|
1011
|
+
visible = f(!1);
|
|
1012
1012
|
animateDuration = 300;
|
|
1013
1013
|
constructor(e) {
|
|
1014
1014
|
this.options = { ...e, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = En;
|
|
@@ -1049,36 +1049,36 @@ function Al(t, e) {
|
|
|
1049
1049
|
s,
|
|
1050
1050
|
i
|
|
1051
1051
|
);
|
|
1052
|
-
const
|
|
1052
|
+
const c = f(!1);
|
|
1053
1053
|
let r = null;
|
|
1054
|
-
const
|
|
1054
|
+
const M = new An(i);
|
|
1055
1055
|
async function d(...g) {
|
|
1056
|
-
if (n && console.log(`useDelayAsync - handler - processing: ${
|
|
1057
|
-
|
|
1056
|
+
if (n && console.log(`useDelayAsync - handler - processing: ${c.value}`), !c.value) {
|
|
1057
|
+
c.value = !0, r = setTimeout(() => {
|
|
1058
1058
|
n && console.log(
|
|
1059
1059
|
"useDelayAsync - handler - setTimeout - loading: %s processing: %s",
|
|
1060
1060
|
o,
|
|
1061
|
-
|
|
1062
|
-
), o && (!
|
|
1061
|
+
c.value
|
|
1062
|
+
), o && (!c.value || M.show());
|
|
1063
1063
|
}, s);
|
|
1064
1064
|
try {
|
|
1065
1065
|
n && console.time("useDelayAsync - handler-execute-time");
|
|
1066
1066
|
const u = await t(...g);
|
|
1067
|
-
n && console.log("useDelayAsync - execute res: ", u), n && console.timeEnd("useDelayAsync - handler-execute-time"), await
|
|
1067
|
+
n && console.log("useDelayAsync - execute res: ", u), n && console.timeEnd("useDelayAsync - handler-execute-time"), await y(a), await e?.onSuccess?.(u);
|
|
1068
1068
|
} catch (u) {
|
|
1069
|
-
n && console.timeEnd("useDelayAsync - handler-execute-time"), l && console.error(u), await
|
|
1069
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), l && console.error(u), await y(a), await e?.onError?.(u);
|
|
1070
1070
|
}
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
async function
|
|
1074
|
-
n && console.log("useDelayAsync - close - closeLoading: ", g),
|
|
1073
|
+
async function y(g = !0) {
|
|
1074
|
+
n && console.log("useDelayAsync - close - closeLoading: ", g), c.value = !1, r && clearTimeout(r), r = null, g && await M.destory();
|
|
1075
1075
|
}
|
|
1076
1076
|
return It(() => {
|
|
1077
|
-
n && console.log("useDelayAsync - onBeforeUnmount - close"),
|
|
1077
|
+
n && console.log("useDelayAsync - onBeforeUnmount - close"), y();
|
|
1078
1078
|
}), {
|
|
1079
|
-
processing:
|
|
1079
|
+
processing: c,
|
|
1080
1080
|
handler: d,
|
|
1081
|
-
close:
|
|
1081
|
+
close: y
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
1084
|
const jn = ["onClick"], zn = /* @__PURE__ */ U({
|
|
@@ -1089,7 +1089,7 @@ const jn = ["onClick"], zn = /* @__PURE__ */ U({
|
|
|
1089
1089
|
buttonClickEvent: null
|
|
1090
1090
|
},
|
|
1091
1091
|
setup(t) {
|
|
1092
|
-
const e = t, n =
|
|
1092
|
+
const e = t, n = f(), l = f(), o = f(), a = m(() => {
|
|
1093
1093
|
switch (e.position) {
|
|
1094
1094
|
case "top":
|
|
1095
1095
|
return 10;
|
|
@@ -1113,23 +1113,23 @@ const jn = ["onClick"], zn = /* @__PURE__ */ U({
|
|
|
1113
1113
|
color: "white",
|
|
1114
1114
|
fontSize: "14px"
|
|
1115
1115
|
}));
|
|
1116
|
-
function
|
|
1116
|
+
function c() {
|
|
1117
1117
|
!e.buttonClickEvent || e.buttonClickEvent();
|
|
1118
1118
|
}
|
|
1119
1119
|
return Le(() => {
|
|
1120
1120
|
l.value = n.value.offsetWidth / 2, o.value = n.value.offsetHeight / 2;
|
|
1121
|
-
}), (r,
|
|
1122
|
-
onClick: re(
|
|
1121
|
+
}), (r, M) => (j(), L("div", {
|
|
1122
|
+
onClick: re(c, ["stop"]),
|
|
1123
1123
|
id: "toastWrapper",
|
|
1124
1124
|
ref_key: "toastWrapper",
|
|
1125
1125
|
ref: n,
|
|
1126
1126
|
class: "toastWrapper",
|
|
1127
1127
|
style: P([p(s), { zIndex: 9999999 }])
|
|
1128
1128
|
}, [
|
|
1129
|
-
|
|
1129
|
+
A("div", {
|
|
1130
1130
|
style: P(p(i))
|
|
1131
1131
|
}, [
|
|
1132
|
-
|
|
1132
|
+
A("span", null, Ce(t.message), 1)
|
|
1133
1133
|
], 4)
|
|
1134
1134
|
], 12, jn));
|
|
1135
1135
|
}
|
|
@@ -1185,11 +1185,11 @@ const xn = ["xlink:href", "fill", "color"], De = /* @__PURE__ */ U({
|
|
|
1185
1185
|
const { style: s } = a;
|
|
1186
1186
|
return typeof s == "object" ? s : {};
|
|
1187
1187
|
}
|
|
1188
|
-
return (a, s) => (
|
|
1188
|
+
return (a, s) => (j(), L("svg", {
|
|
1189
1189
|
"aria-hidden": "",
|
|
1190
1190
|
style: P({ ...p(l), ...o(a.$attrs) })
|
|
1191
1191
|
}, [
|
|
1192
|
-
|
|
1192
|
+
A("use", {
|
|
1193
1193
|
"xlink:href": p(n),
|
|
1194
1194
|
fill: t.color,
|
|
1195
1195
|
color: t.color
|
|
@@ -1205,16 +1205,16 @@ function Cn(t) {
|
|
|
1205
1205
|
performance: o = {},
|
|
1206
1206
|
maxHeightRatio: a = 0.9,
|
|
1207
1207
|
observeMethod: s = "classList"
|
|
1208
|
-
} = t, i =
|
|
1209
|
-
let r,
|
|
1210
|
-
const d =
|
|
1208
|
+
} = t, i = f(!0), c = it(q, 100);
|
|
1209
|
+
let r, M = "";
|
|
1210
|
+
const d = f(0), y = f(0), g = f(0), u = f({
|
|
1211
1211
|
top: 0,
|
|
1212
1212
|
scrollTop: 0,
|
|
1213
1213
|
scrollHeight: 0,
|
|
1214
1214
|
clientHeight: 0
|
|
1215
|
-
}), N =
|
|
1215
|
+
}), N = f({
|
|
1216
1216
|
clientHeight: 0
|
|
1217
|
-
}),
|
|
1217
|
+
}), D = m(() => !!y.value), v = m(() => u.value.scrollHeight > u.value.clientHeight), h = m(() => l ? u.value.clientHeight - V.value : u.value.clientHeight - N.value.clientHeight), E = m(() => u.value.scrollHeight - u.value.clientHeight), Y = m(() => Math.max(
|
|
1218
1218
|
u.value.clientHeight / u.value.scrollHeight,
|
|
1219
1219
|
0.05
|
|
1220
1220
|
)), V = m(() => Y.value > a ? 0 : Y.value * u.value.clientHeight), S = m(() => ({
|
|
@@ -1223,33 +1223,33 @@ function Cn(t) {
|
|
|
1223
1223
|
height: l ? `${V.value}px` : void 0
|
|
1224
1224
|
}));
|
|
1225
1225
|
function x(_) {
|
|
1226
|
-
G(),
|
|
1226
|
+
G(), y.value = _.clientY - n.value.getBoundingClientRect().top || 1, M = getComputedStyle(e.value).scrollBehavior, M === "smooth" && (e.value.style.scrollBehavior = "unset");
|
|
1227
1227
|
}
|
|
1228
1228
|
function b() {
|
|
1229
|
-
e.value.style.scrollBehavior =
|
|
1229
|
+
e.value.style.scrollBehavior = M, y.value = 0, c();
|
|
1230
1230
|
}
|
|
1231
1231
|
function G() {
|
|
1232
1232
|
i.value = !1;
|
|
1233
1233
|
}
|
|
1234
1234
|
function q() {
|
|
1235
|
-
|
|
1235
|
+
D.value || (i.value = !0);
|
|
1236
1236
|
}
|
|
1237
1237
|
function F(_) {
|
|
1238
|
-
if (!
|
|
1238
|
+
if (!D.value)
|
|
1239
1239
|
return;
|
|
1240
|
-
let Q = _.clientY - u.value.top -
|
|
1240
|
+
let Q = _.clientY - u.value.top - y.value;
|
|
1241
1241
|
Q < 0 ? g.value = 0 : Q >= h.value ? g.value = h.value : g.value = Q, e.value.scrollTo({
|
|
1242
|
-
top: g.value / h.value *
|
|
1242
|
+
top: g.value / h.value * E.value
|
|
1243
1243
|
});
|
|
1244
1244
|
}
|
|
1245
1245
|
function ne() {
|
|
1246
|
-
|
|
1246
|
+
D.value || ue();
|
|
1247
1247
|
}
|
|
1248
1248
|
function ue() {
|
|
1249
1249
|
cancelAnimationFrame(r), r = requestAnimationFrame(le);
|
|
1250
1250
|
}
|
|
1251
1251
|
function le() {
|
|
1252
|
-
e.value && (d.value = o.scrollTop?.value ?? e.value.scrollTop, g.value = d.value /
|
|
1252
|
+
e.value && (d.value = o.scrollTop?.value ?? e.value.scrollTop, g.value = d.value / E.value * h.value);
|
|
1253
1253
|
}
|
|
1254
1254
|
function ee(_) {
|
|
1255
1255
|
let Q = "addEventListener";
|
|
@@ -1257,7 +1257,7 @@ function Cn(t) {
|
|
|
1257
1257
|
passive: !0
|
|
1258
1258
|
}), window[Q]("pointermove", F, { passive: !0 }), window[Q]("pointerup", b, { passive: !0 });
|
|
1259
1259
|
}
|
|
1260
|
-
const
|
|
1260
|
+
const z = new MutationObserver((_) => {
|
|
1261
1261
|
(s == "classList" || _.map((Ne) => Ne.oldValue).join().includes("height")) && I();
|
|
1262
1262
|
});
|
|
1263
1263
|
function I() {
|
|
@@ -1278,26 +1278,26 @@ function Cn(t) {
|
|
|
1278
1278
|
subtree: !0,
|
|
1279
1279
|
attributeOldValue: !0,
|
|
1280
1280
|
attributeFilter: ["style"]
|
|
1281
|
-
}),
|
|
1281
|
+
}), z.observe(e.value, _), setTimeout(() => {
|
|
1282
1282
|
I();
|
|
1283
1283
|
}, 100), k();
|
|
1284
1284
|
} else
|
|
1285
1285
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: n });
|
|
1286
1286
|
}
|
|
1287
1287
|
return R(d, () => {
|
|
1288
|
-
G(),
|
|
1288
|
+
G(), c();
|
|
1289
1289
|
}), {
|
|
1290
1290
|
isScrollEnd: i,
|
|
1291
|
-
isDragSlider:
|
|
1291
|
+
isDragSlider: D,
|
|
1292
1292
|
offsetTop: g,
|
|
1293
1293
|
scrollTop: d,
|
|
1294
|
-
scrollable:
|
|
1294
|
+
scrollable: v,
|
|
1295
1295
|
sliderPos: S,
|
|
1296
1296
|
init: B,
|
|
1297
1297
|
modifySliderEventListener: ee
|
|
1298
1298
|
};
|
|
1299
1299
|
}
|
|
1300
|
-
const On = (t) => (ge("data-v-efefe52c"), t = t(), fe(), t), _n = /* @__PURE__ */ On(() => /* @__PURE__ */
|
|
1300
|
+
const On = (t) => (ge("data-v-efefe52c"), t = t(), fe(), t), _n = /* @__PURE__ */ On(() => /* @__PURE__ */ A("div", { class: "default-slider" }, null, -1)), Sn = /* @__PURE__ */ U({
|
|
1301
1301
|
__name: "ScrollBar",
|
|
1302
1302
|
props: {
|
|
1303
1303
|
containerEl: null,
|
|
@@ -1307,13 +1307,13 @@ const On = (t) => (ge("data-v-efefe52c"), t = t(), fe(), t), _n = /* @__PURE__ *
|
|
|
1307
1307
|
performance: null
|
|
1308
1308
|
},
|
|
1309
1309
|
setup(t, { expose: e }) {
|
|
1310
|
-
const n = t, l = !!Et().default, o =
|
|
1310
|
+
const n = t, l = !!Et().default, o = f(null), a = m(() => n.containerEl), s = Cn({
|
|
1311
1311
|
containerEl: a,
|
|
1312
1312
|
sliderEl: o,
|
|
1313
1313
|
autoHeight: l ? n.autoHeight : !0,
|
|
1314
1314
|
performance: n.performance,
|
|
1315
1315
|
observeMethod: n.observeMethod
|
|
1316
|
-
}), { scrollable: i, isScrollEnd:
|
|
1316
|
+
}), { scrollable: i, isScrollEnd: c, sliderPos: r } = s, M = f(!1), d = n.autoHide ? m(() => M.value || !c.value) : m(() => i.value), { load: y } = _e(
|
|
1317
1317
|
`.hide-scrollbar {
|
|
1318
1318
|
scrollbar-width: none;
|
|
1319
1319
|
-ms-overflow-style: none;
|
|
@@ -1324,21 +1324,21 @@ const On = (t) => (ge("data-v-efefe52c"), t = t(), fe(), t), _n = /* @__PURE__ *
|
|
|
1324
1324
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1325
1325
|
);
|
|
1326
1326
|
ae(() => {
|
|
1327
|
-
|
|
1327
|
+
y(), Le(() => {
|
|
1328
1328
|
s.init();
|
|
1329
1329
|
});
|
|
1330
1330
|
}), ot(() => {
|
|
1331
1331
|
s.modifySliderEventListener("remove");
|
|
1332
1332
|
});
|
|
1333
1333
|
function g() {
|
|
1334
|
-
|
|
1334
|
+
M.value = !0;
|
|
1335
1335
|
}
|
|
1336
1336
|
function u() {
|
|
1337
|
-
|
|
1337
|
+
M.value = !1;
|
|
1338
1338
|
}
|
|
1339
|
-
return e({ uScrollBarReturn: s }), (N,
|
|
1339
|
+
return e({ uScrollBarReturn: s }), (N, D) => (j(), he(Me, null, {
|
|
1340
1340
|
default: de(() => [
|
|
1341
|
-
se(
|
|
1341
|
+
se(A("div", {
|
|
1342
1342
|
ref_key: "sliderRef",
|
|
1343
1343
|
ref: o,
|
|
1344
1344
|
class: "slider-wrapper",
|
|
@@ -1363,7 +1363,7 @@ const zl = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-efefe52c"]]), bn = (t) =
|
|
|
1363
1363
|
}, Bn = {
|
|
1364
1364
|
key: 0,
|
|
1365
1365
|
class: "box-load"
|
|
1366
|
-
}, Un = { class: "left-load" }, Yn = { class: "right-load" }, $n = /* @__PURE__ */ bn(() => /* @__PURE__ */
|
|
1366
|
+
}, Un = { class: "left-load" }, Yn = { class: "right-load" }, $n = /* @__PURE__ */ bn(() => /* @__PURE__ */ A("div", { class: "among-load" }, null, -1)), Pn = { class: "pull-arrow" }, Rn = { key: 1 }, Fn = /* @__PURE__ */ U({
|
|
1367
1367
|
__name: "PullRefresh",
|
|
1368
1368
|
props: {
|
|
1369
1369
|
refresh: null,
|
|
@@ -1372,80 +1372,80 @@ const zl = /* @__PURE__ */ H(Sn, [["__scopeId", "data-v-efefe52c"]]), bn = (t) =
|
|
|
1372
1372
|
pullRefreshContainer: null
|
|
1373
1373
|
},
|
|
1374
1374
|
setup(t) {
|
|
1375
|
-
const e = t, n = 0.7, l = "#2EC1CC", o =
|
|
1376
|
-
transition: `${
|
|
1375
|
+
const e = t, n = 0.7, l = "#2EC1CC", o = f(-999), a = f(1), s = f(0), i = f(0.3), c = f(!1), r = f(0), M = f(0), d = f(0), y = f(0), g = f(0), u = f(), N = m(() => e.scrollTop), D = m(() => ({
|
|
1376
|
+
transition: `${y.value}ms`,
|
|
1377
1377
|
transform: `translate3d(0,${o.value}px, 0) scale(${a.value})`
|
|
1378
|
-
})),
|
|
1378
|
+
})), v = m(() => ({
|
|
1379
1379
|
borderColor: l,
|
|
1380
|
-
transition:
|
|
1380
|
+
transition: y.value,
|
|
1381
1381
|
transform: `rotate(${100 + s.value}deg)`,
|
|
1382
1382
|
opacity: i.value
|
|
1383
1383
|
}));
|
|
1384
1384
|
R(g, (x) => {
|
|
1385
1385
|
x === 0 && (o.value = -50, i.value = 0.3);
|
|
1386
|
-
}), R(
|
|
1386
|
+
}), R(M, (x) => {
|
|
1387
1387
|
if (g.value === 2)
|
|
1388
1388
|
return;
|
|
1389
1389
|
const b = Math.pow(x, n);
|
|
1390
|
-
b === 0 && (o.value = -50), b <= 50 && b > 0 && (o.value = b - 45, s.value = Math.pow(b, 1.5), b > 15 ?
|
|
1390
|
+
b === 0 && (o.value = -50), b <= 50 && b > 0 && (o.value = b - 45, s.value = Math.pow(b, 1.5), b > 15 ? c.value = !0 : c.value = !1), b > 50 && (o.value = 5, i.value = 1, g.value);
|
|
1391
1391
|
});
|
|
1392
|
-
const h =
|
|
1392
|
+
const h = f(0), E = (x) => {
|
|
1393
1393
|
h.value = x.touches[0].pageY;
|
|
1394
1394
|
}, Y = (x) => {
|
|
1395
1395
|
const b = x.touches[0].pageY - h.value;
|
|
1396
|
-
h.value = x.touches[0].pageY, !e.refreshOff && (!e?.refresh || g.value !== 2 && N.value === 0 && (r.value === 0 && (r.value = x.touches[0].pageY), d.value = 0, S.value.style.transition = `${d.value}ms`,
|
|
1396
|
+
h.value = x.touches[0].pageY, !e.refreshOff && (!e?.refresh || g.value !== 2 && N.value === 0 && (r.value === 0 && (r.value = x.touches[0].pageY), d.value = 0, S.value.style.transition = `${d.value}ms`, y.value = 0, M.value = x.touches[0].pageY - r.value, S.value.style.transform = `translate3d(0, ${Math.pow(M.value, n)}px, 0)`, b > 0 && x.preventDefault()));
|
|
1397
1397
|
}, V = () => {
|
|
1398
1398
|
if (e.refreshOff || !e?.refresh || g.value === 2)
|
|
1399
1399
|
return;
|
|
1400
1400
|
r.value = 0, d.value = 300;
|
|
1401
|
-
const x = Math.pow(
|
|
1402
|
-
S.value.style.transition = `${d.value}ms`, x > 50 ? (g.value = 2,
|
|
1401
|
+
const x = Math.pow(M.value, n);
|
|
1402
|
+
S.value.style.transition = `${d.value}ms`, x > 50 ? (g.value = 2, M.value = Math.pow(50, 1 / n), S.value.style.transform = `translate3d(0, ${Math.pow(M.value, n)}px, 0)`, y.value = 300, e?.refresh && e?.refresh().then(() => {
|
|
1403
1403
|
u.value = "\u5237\u65B0\u6210\u529F";
|
|
1404
1404
|
}).catch(() => {
|
|
1405
1405
|
u.value = "\u5237\u65B0\u5931\u8D25";
|
|
1406
1406
|
}).finally(() => {
|
|
1407
1407
|
setTimeout(() => {
|
|
1408
|
-
g.value = 0,
|
|
1409
|
-
|
|
1408
|
+
g.value = 0, M.value = 0, S.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1409
|
+
M.value,
|
|
1410
1410
|
n
|
|
1411
1411
|
)}px, 0)`, setTimeout(() => {
|
|
1412
1412
|
u.value = void 0;
|
|
1413
|
-
},
|
|
1413
|
+
}, y.value);
|
|
1414
1414
|
}, 600);
|
|
1415
|
-
})) : (
|
|
1416
|
-
}, S =
|
|
1415
|
+
})) : (M.value = 0, S.value.style.transform = `translate3d(0, ${Math.pow(M.value, n)}px, 0)`);
|
|
1416
|
+
}, S = f(null);
|
|
1417
1417
|
return ae(() => {
|
|
1418
1418
|
e?.refreshOff || (S.value = document.querySelector(
|
|
1419
1419
|
e.pullRefreshContainer
|
|
1420
|
-
), S.value?.addEventListener("touchstart",
|
|
1421
|
-
}), (x, b) => (
|
|
1422
|
-
|
|
1420
|
+
), S.value?.addEventListener("touchstart", E), S.value?.addEventListener("touchmove", Y), S.value?.addEventListener("touchend", V));
|
|
1421
|
+
}), (x, b) => (j(), L("div", Qn, [
|
|
1422
|
+
A("div", {
|
|
1423
1423
|
class: "pull-refresh-box",
|
|
1424
|
-
style: P(p(
|
|
1424
|
+
style: P(p(D))
|
|
1425
1425
|
}, [
|
|
1426
|
-
u.value ? (
|
|
1427
|
-
g.value == 2 ? (
|
|
1428
|
-
|
|
1429
|
-
|
|
1426
|
+
u.value ? (j(), L("div", Rn, Ce(u.value), 1)) : (j(), L("div", kn, [
|
|
1427
|
+
g.value == 2 ? (j(), L("div", Bn, [
|
|
1428
|
+
A("div", Un, [
|
|
1429
|
+
A("div", {
|
|
1430
1430
|
class: "left-circle",
|
|
1431
1431
|
style: P({ backgroundColor: l })
|
|
1432
1432
|
}, null, 4)
|
|
1433
1433
|
]),
|
|
1434
|
-
|
|
1435
|
-
|
|
1434
|
+
A("div", Yn, [
|
|
1435
|
+
A("div", {
|
|
1436
1436
|
class: "right-circle",
|
|
1437
1437
|
style: P({ backgroundColor: l })
|
|
1438
1438
|
}, null, 4)
|
|
1439
1439
|
]),
|
|
1440
1440
|
$n
|
|
1441
|
-
])) : (
|
|
1441
|
+
])) : (j(), L("div", {
|
|
1442
1442
|
key: 1,
|
|
1443
1443
|
class: "pull-circle-line",
|
|
1444
|
-
style: P(p(
|
|
1444
|
+
style: P(p(v))
|
|
1445
1445
|
}, [
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
class: K(["arrows", { opacity:
|
|
1446
|
+
A("div", Pn, [
|
|
1447
|
+
A("div", {
|
|
1448
|
+
class: K(["arrows", { opacity: c.value }]),
|
|
1449
1449
|
style: P({ borderBottomColor: l })
|
|
1450
1450
|
}, null, 6)
|
|
1451
1451
|
])
|
|
@@ -1480,46 +1480,46 @@ const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = ["dat
|
|
|
1480
1480
|
list: a,
|
|
1481
1481
|
containerProps: s,
|
|
1482
1482
|
wrapperProps: i,
|
|
1483
|
-
innerProps:
|
|
1483
|
+
innerProps: c,
|
|
1484
1484
|
getItemHeightData: r,
|
|
1485
|
-
scrollTop:
|
|
1485
|
+
scrollTop: M
|
|
1486
1486
|
} = o;
|
|
1487
1487
|
e({
|
|
1488
1488
|
vListReturn: o
|
|
1489
1489
|
});
|
|
1490
1490
|
const d = "virtualListWrapper" + new Date().getTime();
|
|
1491
|
-
function
|
|
1491
|
+
function y(g, u) {
|
|
1492
1492
|
return l.getItemKey ? l.getItemKey(g, u) : `${u}`;
|
|
1493
1493
|
}
|
|
1494
|
-
return (g, u) => (
|
|
1494
|
+
return (g, u) => (j(), L(Ae, null, [
|
|
1495
1495
|
X(Hn, {
|
|
1496
1496
|
refresh: t.refresh,
|
|
1497
1497
|
refreshOff: t.refreshOff,
|
|
1498
|
-
scrollTop: p(
|
|
1498
|
+
scrollTop: p(M),
|
|
1499
1499
|
pullRefreshContainer: "#" + d
|
|
1500
1500
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1501
|
-
|
|
1501
|
+
A("div", {
|
|
1502
1502
|
class: "virtualListWrapper",
|
|
1503
1503
|
id: d
|
|
1504
1504
|
}, [
|
|
1505
|
-
|
|
1505
|
+
A("div", ie({
|
|
1506
1506
|
onScrollPassive: u[0] || (u[0] = (...N) => p(s).onScroll && p(s).onScroll(...N)),
|
|
1507
1507
|
ref: p(s).ref,
|
|
1508
1508
|
class: "virtualList"
|
|
1509
1509
|
}, g.$attrs), [
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
(
|
|
1513
|
-
key:
|
|
1514
|
-
"data-key":
|
|
1510
|
+
A("div", Ie(Ee(p(i))), [
|
|
1511
|
+
A("div", Ie(Ee(p(c))), [
|
|
1512
|
+
(j(!0), L(Ae, null, jt(p(a), ({ data: N, index: D }) => (j(), L("div", {
|
|
1513
|
+
key: y(N, D),
|
|
1514
|
+
"data-key": y(N, D),
|
|
1515
1515
|
style: P({
|
|
1516
|
-
height: `${p(r)(
|
|
1516
|
+
height: `${p(r)(D).height}px`,
|
|
1517
1517
|
display: "flex"
|
|
1518
1518
|
})
|
|
1519
1519
|
}, [
|
|
1520
1520
|
pe(g.$slots, "default", {
|
|
1521
1521
|
data: N,
|
|
1522
|
-
index:
|
|
1522
|
+
index: D
|
|
1523
1523
|
}, void 0, !0)
|
|
1524
1524
|
], 12, Wn))), 128))
|
|
1525
1525
|
], 16)
|
|
@@ -1529,14 +1529,14 @@ const Hn = /* @__PURE__ */ H(Fn, [["__scopeId", "data-v-18377f18"]]), Wn = ["dat
|
|
|
1529
1529
|
], 64));
|
|
1530
1530
|
}
|
|
1531
1531
|
});
|
|
1532
|
-
const Ll = /* @__PURE__ */ H(Vn, [["__scopeId", "data-v-76b1f71d"]]), Re = (t) => (ge("data-v-c986249d"), t = t(), fe(), t), Gn = { style: { position: "absolute" } }, Kn = /* @__PURE__ */ Re(() => /* @__PURE__ */
|
|
1532
|
+
const Ll = /* @__PURE__ */ H(Vn, [["__scopeId", "data-v-76b1f71d"]]), Re = (t) => (ge("data-v-c986249d"), t = t(), fe(), t), Gn = { style: { position: "absolute" } }, Kn = /* @__PURE__ */ Re(() => /* @__PURE__ */ A("div", { class: "wrapper" }, null, -1)), Xn = ["width", "height"], Jn = /* @__PURE__ */ Re(() => /* @__PURE__ */ A("title", null, "logo", -1)), qn = /* @__PURE__ */ Re(() => /* @__PURE__ */ A("g", {
|
|
1533
1533
|
id: "group-1",
|
|
1534
1534
|
stroke: "none",
|
|
1535
1535
|
"stroke-width": "1",
|
|
1536
1536
|
fill: "none",
|
|
1537
1537
|
"fill-rule": "evenodd"
|
|
1538
1538
|
}, [
|
|
1539
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ A("path", {
|
|
1540
1540
|
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",
|
|
1541
1541
|
id: "path-1",
|
|
1542
1542
|
fill: "#FFF"
|
|
@@ -1557,9 +1557,9 @@ const Ll = /* @__PURE__ */ H(Vn, [["__scopeId", "data-v-76b1f71d"]]), Re = (t) =
|
|
|
1557
1557
|
"5e400569": n
|
|
1558
1558
|
}));
|
|
1559
1559
|
const n = `${e.duration}ms`;
|
|
1560
|
-
return (l, o) => (
|
|
1560
|
+
return (l, o) => (j(), L("div", Gn, [
|
|
1561
1561
|
Kn,
|
|
1562
|
-
(
|
|
1562
|
+
(j(), L("svg", {
|
|
1563
1563
|
style: { position: "relative" },
|
|
1564
1564
|
width: t.width,
|
|
1565
1565
|
height: t.height,
|
|
@@ -1573,6 +1573,7 @@ const Ll = /* @__PURE__ */ H(Vn, [["__scopeId", "data-v-76b1f71d"]]), Re = (t) =
|
|
|
1573
1573
|
const xl = /* @__PURE__ */ H(tl, [["__scopeId", "data-v-c986249d"]]), nl = [
|
|
1574
1574
|
"image/avif",
|
|
1575
1575
|
"image/bmp",
|
|
1576
|
+
"image/jpg",
|
|
1576
1577
|
"image/jpeg",
|
|
1577
1578
|
"image/gif",
|
|
1578
1579
|
"image/heic",
|
|
@@ -1584,6 +1585,7 @@ const xl = /* @__PURE__ */ H(tl, [["__scopeId", "data-v-c986249d"]]), nl = [
|
|
|
1584
1585
|
"image/svg+xml"
|
|
1585
1586
|
], ll = [
|
|
1586
1587
|
"image/bmp",
|
|
1588
|
+
"image/jpg",
|
|
1587
1589
|
"image/jpeg",
|
|
1588
1590
|
"image/gif",
|
|
1589
1591
|
"image/heic",
|
|
@@ -1593,12 +1595,12 @@ const xl = /* @__PURE__ */ H(tl, [["__scopeId", "data-v-c986249d"]]), nl = [
|
|
|
1593
1595
|
"image/svg+xml"
|
|
1594
1596
|
];
|
|
1595
1597
|
function vt(t, e) {
|
|
1596
|
-
const n =
|
|
1597
|
-
const
|
|
1598
|
-
return !
|
|
1598
|
+
const n = f(t?.value), l = m(() => n.value?.startsWith("/_lzc")), o = f(!1), a = m(() => o.value), s = m(() => {
|
|
1599
|
+
const c = e?.value;
|
|
1600
|
+
return !c || c.startsWith("video/") ? !0 : c.startsWith("image/") ? l.value ? nl.includes(c) : ll.includes(c) : !1;
|
|
1599
1601
|
});
|
|
1600
|
-
t && R(t, (
|
|
1601
|
-
n.value =
|
|
1602
|
+
t && R(t, (c) => {
|
|
1603
|
+
n.value = c, o.value = !1;
|
|
1602
1604
|
});
|
|
1603
1605
|
function i() {
|
|
1604
1606
|
o.value = !0;
|
|
@@ -1618,7 +1620,7 @@ function gt() {
|
|
|
1618
1620
|
}
|
|
1619
1621
|
} };
|
|
1620
1622
|
}
|
|
1621
|
-
const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al = /* @__PURE__ */ ol(() => /* @__PURE__ */
|
|
1623
|
+
const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al = /* @__PURE__ */ ol(() => /* @__PURE__ */ A("span", { class: "tip" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), ul = ["src"], il = ["src"], rl = ["title"], cl = { inheritAttrs: !1 }, Ml = /* @__PURE__ */ U({
|
|
1622
1624
|
...cl,
|
|
1623
1625
|
__name: "Image",
|
|
1624
1626
|
props: {
|
|
@@ -1629,7 +1631,7 @@ const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al
|
|
|
1629
1631
|
autoRemoveThumbnail: { type: Boolean }
|
|
1630
1632
|
},
|
|
1631
1633
|
setup(t) {
|
|
1632
|
-
const e = t, n =
|
|
1634
|
+
const e = t, n = f(!1), l = f(!1), o = f(!1), { src: a, mime: s } = st(e), { imgSrc: i, isSupport: c, hasError: r, handleError: M } = vt(a, s), { vImageCancel: d } = gt(), { LoadingComp: y } = dt({
|
|
1633
1635
|
component: dn,
|
|
1634
1636
|
delay: 300
|
|
1635
1637
|
}), g = Qt(() => o.value && e.autoRemoveThumbnail ? !1 : e.thumbnail && !o.value);
|
|
@@ -1639,15 +1641,15 @@ const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al
|
|
|
1639
1641
|
function N() {
|
|
1640
1642
|
l.value && (o.value = !0);
|
|
1641
1643
|
}
|
|
1642
|
-
function
|
|
1644
|
+
function D(h) {
|
|
1643
1645
|
h && u(), n.value = !0;
|
|
1644
1646
|
}
|
|
1645
|
-
function
|
|
1646
|
-
h ?
|
|
1647
|
+
function v(h) {
|
|
1648
|
+
h ? M() : u(), n.value = !0;
|
|
1647
1649
|
}
|
|
1648
|
-
return (h,
|
|
1649
|
-
n.value ? te("", !0) : (
|
|
1650
|
-
p(
|
|
1650
|
+
return (h, E) => (j(), L(Ae, null, [
|
|
1651
|
+
n.value ? te("", !0) : (j(), he(p(y), { key: 0 })),
|
|
1652
|
+
p(c) ? p(r) ? (j(), L("div", ie({ key: 3 }, h.$attrs, {
|
|
1651
1653
|
title: p(i),
|
|
1652
1654
|
class: "tip-wrap"
|
|
1653
1655
|
}), [
|
|
@@ -1658,15 +1660,15 @@ const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al
|
|
|
1658
1660
|
], 16, rl)) : pe(h.$slots, "default", {
|
|
1659
1661
|
key: 2,
|
|
1660
1662
|
src: p(i),
|
|
1661
|
-
onLoad:
|
|
1662
|
-
onError:
|
|
1663
|
+
onLoad: D,
|
|
1664
|
+
onError: v
|
|
1663
1665
|
}, () => [
|
|
1664
1666
|
X(Me, null, {
|
|
1665
1667
|
default: de(() => [
|
|
1666
|
-
p(g) ? se((
|
|
1668
|
+
p(g) ? se((j(), L("img", ie({ key: 0 }, h.$attrs, {
|
|
1667
1669
|
class: "preview-class",
|
|
1668
|
-
onLoad:
|
|
1669
|
-
onError:
|
|
1670
|
+
onLoad: E[0] || (E[0] = (Y) => D()),
|
|
1671
|
+
onError: E[1] || (E[1] = (Y) => v()),
|
|
1670
1672
|
src: t.thumbnail
|
|
1671
1673
|
}), null, 16, ul)), [
|
|
1672
1674
|
[p(d)]
|
|
@@ -1675,13 +1677,13 @@ const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al
|
|
|
1675
1677
|
_: 1
|
|
1676
1678
|
}),
|
|
1677
1679
|
X(Me, {
|
|
1678
|
-
onAfterEnter:
|
|
1680
|
+
onAfterEnter: E[4] || (E[4] = (Y) => N())
|
|
1679
1681
|
}, {
|
|
1680
1682
|
default: de(() => [
|
|
1681
|
-
t.isShowSrc || l.value ? se((
|
|
1683
|
+
t.isShowSrc || l.value ? se((j(), L("img", ie({ key: 0 }, h.$attrs, {
|
|
1682
1684
|
class: "src-class",
|
|
1683
|
-
onLoad:
|
|
1684
|
-
onError:
|
|
1685
|
+
onLoad: E[2] || (E[2] = (Y) => D(!0)),
|
|
1686
|
+
onError: E[3] || (E[3] = (Y) => v(!0)),
|
|
1685
1687
|
src: p(i)
|
|
1686
1688
|
}), null, 16, il)), [
|
|
1687
1689
|
[p(d)],
|
|
@@ -1690,7 +1692,7 @@ const ol = (t) => (ge("data-v-d85c1bee"), t = t(), fe(), t), sl = ["title"], al
|
|
|
1690
1692
|
]),
|
|
1691
1693
|
_: 1
|
|
1692
1694
|
})
|
|
1693
|
-
], !0) : (
|
|
1695
|
+
], !0) : (j(), L("div", ie({ key: 1 }, h.$attrs, {
|
|
1694
1696
|
title: p(i),
|
|
1695
1697
|
class: "tip-wrap"
|
|
1696
1698
|
}), [
|
|
@@ -1710,8 +1712,8 @@ const Cl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-d85c1bee"]]), dl = ["tit
|
|
|
1710
1712
|
mime: null
|
|
1711
1713
|
},
|
|
1712
1714
|
setup(t) {
|
|
1713
|
-
const e = t, n =
|
|
1714
|
-
return (
|
|
1715
|
+
const e = t, n = f(!1), { src: l, mime: o } = st(e), { imgSrc: a, hasError: s, isSupport: i, handleError: c } = vt(l, o), { vImageCancel: r } = gt();
|
|
1716
|
+
return (M, d) => p(i) ? p(s) ? (j(), L("div", {
|
|
1715
1717
|
key: 2,
|
|
1716
1718
|
title: p(a),
|
|
1717
1719
|
class: "icon-wrap"
|
|
@@ -1720,16 +1722,16 @@ const Cl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-d85c1bee"]]), dl = ["tit
|
|
|
1720
1722
|
class: "icon",
|
|
1721
1723
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1722
1724
|
})
|
|
1723
|
-
], 8, gl)) : se((
|
|
1725
|
+
], 8, gl)) : se((j(), L("img", {
|
|
1724
1726
|
key: 1,
|
|
1725
1727
|
fetchpriority: "high",
|
|
1726
|
-
onLoad: d[0] || (d[0] = (
|
|
1727
|
-
onError: d[1] || (d[1] = (...
|
|
1728
|
+
onLoad: d[0] || (d[0] = (y) => n.value = !0),
|
|
1729
|
+
onError: d[1] || (d[1] = (...y) => p(c) && p(c)(...y)),
|
|
1728
1730
|
src: p(a)
|
|
1729
1731
|
}, null, 40, vl)), [
|
|
1730
1732
|
[p(r)],
|
|
1731
1733
|
[me, n.value]
|
|
1732
|
-
]) : (
|
|
1734
|
+
]) : (j(), L("div", {
|
|
1733
1735
|
key: 0,
|
|
1734
1736
|
title: p(a),
|
|
1735
1737
|
class: "icon-wrap"
|