@lazycatcloud/lzc-toolkit 0.0.115 → 0.0.116
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 +703 -677
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/image/useImage.d.ts +4 -3
- package/dist/types/loading-toast/index.d.ts +8 -3
- package/dist/types/loading-toast/index.vue.d.ts +5 -5
- package/dist/types/useDelayAsync/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
import { getCurrentScope as
|
|
1
|
+
import { getCurrentScope as ft, onScopeDispose as yt, getCurrentInstance as Fe, onMounted as ae, nextTick as ze, ref as D, watch as R, customRef as Dt, unref as h, readonly as ht, onUpdated as Nt, shallowRef as mt, computed as N, onUnmounted as He, inject as H, provide as $, defineComponent as Q, h as X, render as ce, openBlock as A, createBlock as ye, Transition as Le, withCtx as xe, withDirectives as se, createElementBlock as z, createElementVNode as E, withModifiers as re, normalizeClass as K, renderSlot as De, createCommentVNode as ee, useCssVars as Ce, normalizeProps as pe, guardReactiveProps as we, pushScopeId as Me, popScopeId as de, normalizeStyle as Y, toDisplayString as Oe, vShow as he, createVNode as le, onBeforeUnmount as Tt, useSlots as pt, toRef as wt, Fragment as Ie, mergeProps as ue, renderList as It, toRefs as We } from "vue";
|
|
2
2
|
const Et = {
|
|
3
3
|
created(t, e) {
|
|
4
4
|
let n, o;
|
|
5
|
-
function l
|
|
6
|
-
n =
|
|
5
|
+
function s(l) {
|
|
6
|
+
n = l.clientX, o = l.clientY;
|
|
7
7
|
}
|
|
8
|
-
function a(
|
|
8
|
+
function a(l) {
|
|
9
9
|
if (n === void 0)
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
const r = l.clientX, c = l.clientY, u = Math.abs(r - n), v = Math.abs(c - o);
|
|
12
|
+
u > 5 || v > 5 || e.value && e.value(l);
|
|
13
13
|
}
|
|
14
|
-
t.__mouse_down__ =
|
|
14
|
+
t.__mouse_down__ = s, t.__mouse_up__ = a, t.addEventListener("mousedown", s), t.addEventListener("mouseup", a);
|
|
15
15
|
},
|
|
16
16
|
unmounted(t) {
|
|
17
17
|
t.removeEventListener("mousedown", t.__mouse_down__), t.removeEventListener("mouseup", t.__mouse_up__);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, ao = {
|
|
20
20
|
created(t, e) {
|
|
21
21
|
const { fn: n, ms: o = 1500 } = e.value;
|
|
22
|
-
let
|
|
23
|
-
function a(
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
let s = null;
|
|
23
|
+
function a(l) {
|
|
24
|
+
s || (n(l), s = setTimeout(() => {
|
|
25
|
+
s = null;
|
|
26
26
|
}, o));
|
|
27
27
|
}
|
|
28
28
|
t.addEventListener("click", a);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
-
var
|
|
32
|
-
const ve = typeof window < "u",
|
|
33
|
-
ve && ((
|
|
31
|
+
var ke;
|
|
32
|
+
const ve = typeof window < "u", Qe = (t) => typeof t == "function";
|
|
33
|
+
ve && ((ke = window?.navigator) == null ? void 0 : ke.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
34
34
|
function ge(t) {
|
|
35
|
-
return typeof t == "function" ? t() :
|
|
35
|
+
return typeof t == "function" ? t() : h(t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ze(t, e) {
|
|
38
38
|
function n(...o) {
|
|
39
39
|
t(() => e.apply(this, o), { fn: e, thisArg: this, args: o });
|
|
40
40
|
}
|
|
41
41
|
return n;
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function At(t, e = {}) {
|
|
44
44
|
let n, o;
|
|
45
45
|
return (a) => {
|
|
46
|
-
const
|
|
47
|
-
if (n && clearTimeout(n),
|
|
46
|
+
const l = ge(t), r = ge(e.maxWait);
|
|
47
|
+
if (n && clearTimeout(n), l <= 0 || r !== void 0 && r <= 0)
|
|
48
48
|
return o && (clearTimeout(o), o = null), a();
|
|
49
|
-
|
|
49
|
+
r && !o && (o = setTimeout(() => {
|
|
50
50
|
n && clearTimeout(n), o = null, a();
|
|
51
|
-
},
|
|
51
|
+
}, r)), n = setTimeout(() => {
|
|
52
52
|
o && clearTimeout(o), o = null, a();
|
|
53
|
-
},
|
|
53
|
+
}, l);
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
let o = 0,
|
|
58
|
-
const
|
|
59
|
-
|
|
56
|
+
function jt(t, e = !0, n = !0) {
|
|
57
|
+
let o = 0, s, a = !0;
|
|
58
|
+
const l = () => {
|
|
59
|
+
s && (clearTimeout(s), s = void 0);
|
|
60
60
|
};
|
|
61
|
-
return (
|
|
62
|
-
const
|
|
63
|
-
if (
|
|
64
|
-
return o = Date.now(),
|
|
65
|
-
|
|
66
|
-
o = Date.now(), a = !0,
|
|
67
|
-
},
|
|
61
|
+
return (c) => {
|
|
62
|
+
const u = ge(t), v = Date.now() - o;
|
|
63
|
+
if (l(), u <= 0)
|
|
64
|
+
return o = Date.now(), c();
|
|
65
|
+
v > u && (n || !a) ? (o = Date.now(), c()) : e && (s = setTimeout(() => {
|
|
66
|
+
o = Date.now(), a = !0, l(), c();
|
|
67
|
+
}, u)), !n && !s && (s = setTimeout(() => a = !0, u)), a = !1;
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function zt(t) {
|
|
71
71
|
return t;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
let n, o,
|
|
75
|
-
const a = D(!0),
|
|
76
|
-
a.value = !0,
|
|
73
|
+
function Lt(t, e) {
|
|
74
|
+
let n, o, s;
|
|
75
|
+
const a = D(!0), l = () => {
|
|
76
|
+
a.value = !0, s();
|
|
77
77
|
};
|
|
78
|
-
R(t,
|
|
79
|
-
const
|
|
78
|
+
R(t, l, { flush: "sync" });
|
|
79
|
+
const r = Qe(e) ? e : e.get, c = Qe(e) ? void 0 : e.set, u = Dt((v, M) => (o = v, s = M, {
|
|
80
80
|
get() {
|
|
81
|
-
return a.value && (n =
|
|
81
|
+
return a.value && (n = r(), a.value = !1), o(), n;
|
|
82
82
|
},
|
|
83
|
-
set(
|
|
84
|
-
|
|
83
|
+
set(y) {
|
|
84
|
+
c?.(y);
|
|
85
85
|
}
|
|
86
86
|
}));
|
|
87
|
-
return Object.isExtensible(
|
|
87
|
+
return Object.isExtensible(u) && (u.trigger = l), u;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
return
|
|
89
|
+
function Ve(t) {
|
|
90
|
+
return ft() ? (yt(t), !0) : !1;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
92
|
+
function Ge(t, e = 200, n = {}) {
|
|
93
|
+
return Ze(At(e, n), t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
return
|
|
95
|
+
function Be(t, e = 200, n = !1, o = !0) {
|
|
96
|
+
return Ze(jt(e, n, o), t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
98
|
+
function Ke(t, e = !0) {
|
|
99
|
+
Fe() ? ae(t) : e ? t() : ze(t);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Xe(t) {
|
|
102
102
|
var e;
|
|
103
103
|
const n = ge(t);
|
|
104
104
|
return (e = n?.$el) != null ? e : n;
|
|
@@ -108,89 +108,89 @@ ve && window.navigator;
|
|
|
108
108
|
ve && window.location;
|
|
109
109
|
function Ot(t, e = !1) {
|
|
110
110
|
const n = D(), o = () => n.value = Boolean(t());
|
|
111
|
-
return o(),
|
|
111
|
+
return o(), Ke(o, e), n;
|
|
112
112
|
}
|
|
113
|
-
const Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
114
|
-
Ee[
|
|
115
|
-
Ee[
|
|
113
|
+
const Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = "__vueuse_ssr_handlers__";
|
|
114
|
+
Ee[Ae] = Ee[Ae] || {};
|
|
115
|
+
Ee[Ae];
|
|
116
116
|
function _t() {
|
|
117
|
-
const t =
|
|
118
|
-
return
|
|
117
|
+
const t = Fe(), e = Lt(() => null, () => t.proxy.$el);
|
|
118
|
+
return Nt(e.trigger), ae(e.trigger), e;
|
|
119
119
|
}
|
|
120
|
-
var
|
|
120
|
+
var Ue = Object.getOwnPropertySymbols, St = Object.prototype.hasOwnProperty, bt = Object.prototype.propertyIsEnumerable, kt = (t, e) => {
|
|
121
121
|
var n = {};
|
|
122
122
|
for (var o in t)
|
|
123
123
|
St.call(t, o) && e.indexOf(o) < 0 && (n[o] = t[o]);
|
|
124
|
-
if (t != null &&
|
|
125
|
-
for (var o of
|
|
124
|
+
if (t != null && Ue)
|
|
125
|
+
for (var o of Ue(t))
|
|
126
126
|
e.indexOf(o) < 0 && bt.call(t, o) && (n[o] = t[o]);
|
|
127
127
|
return n;
|
|
128
128
|
};
|
|
129
129
|
function Qt(t, e, n = {}) {
|
|
130
|
-
const o = n, { window:
|
|
131
|
-
let
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
},
|
|
135
|
-
|
|
136
|
-
}, { immediate: !0, flush: "post" }),
|
|
137
|
-
|
|
130
|
+
const o = n, { window: s = xt } = o, a = kt(o, ["window"]);
|
|
131
|
+
let l;
|
|
132
|
+
const r = Ot(() => s && "ResizeObserver" in s), c = () => {
|
|
133
|
+
l && (l.disconnect(), l = void 0);
|
|
134
|
+
}, u = R(() => Xe(t), (M) => {
|
|
135
|
+
c(), r.value && s && M && (l = new ResizeObserver(e), l.observe(M, a));
|
|
136
|
+
}, { immediate: !0, flush: "post" }), v = () => {
|
|
137
|
+
c(), u();
|
|
138
138
|
};
|
|
139
|
-
return
|
|
140
|
-
isSupported:
|
|
141
|
-
stop:
|
|
139
|
+
return Ve(v), {
|
|
140
|
+
isSupported: r,
|
|
141
|
+
stop: v
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
144
|
function Bt(t, e = { width: 0, height: 0 }, n = {}) {
|
|
145
|
-
const { box: o = "content-box" } = n,
|
|
146
|
-
return Qt(t, ([
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
}, n), R(() =>
|
|
150
|
-
|
|
145
|
+
const { box: o = "content-box" } = n, s = D(e.width), a = D(e.height);
|
|
146
|
+
return Qt(t, ([l]) => {
|
|
147
|
+
const r = o === "border-box" ? l.borderBoxSize : o === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
|
|
148
|
+
r ? (s.value = r.reduce((c, { inlineSize: u }) => c + u, 0), a.value = r.reduce((c, { blockSize: u }) => c + u, 0)) : (s.value = l.contentRect.width, a.value = l.contentRect.height);
|
|
149
|
+
}, n), R(() => Xe(t), (l) => {
|
|
150
|
+
s.value = l ? e.width : 0, a.value = l ? e.height : 0;
|
|
151
151
|
}), {
|
|
152
|
-
width:
|
|
152
|
+
width: s,
|
|
153
153
|
height: a
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var Ye;
|
|
157
157
|
(function(t) {
|
|
158
158
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
159
|
-
})(
|
|
159
|
+
})(Ye || (Ye = {}));
|
|
160
160
|
let Ut = 0;
|
|
161
|
-
function
|
|
161
|
+
function _e(t, e = {}) {
|
|
162
162
|
const n = D(!1), {
|
|
163
163
|
document: o = Ct,
|
|
164
|
-
immediate:
|
|
164
|
+
immediate: s = !0,
|
|
165
165
|
manual: a = !1,
|
|
166
|
-
id:
|
|
167
|
-
} = e,
|
|
168
|
-
let
|
|
166
|
+
id: l = `vueuse_styletag_${++Ut}`
|
|
167
|
+
} = e, r = D(t);
|
|
168
|
+
let c = () => {
|
|
169
169
|
};
|
|
170
|
-
const
|
|
170
|
+
const u = () => {
|
|
171
171
|
if (!o)
|
|
172
172
|
return;
|
|
173
|
-
const M = o.getElementById(
|
|
174
|
-
M.type = "text/css", M.id =
|
|
175
|
-
M.innerText =
|
|
173
|
+
const M = o.getElementById(l) || o.createElement("style");
|
|
174
|
+
M.type = "text/css", M.id = l, e.media && (M.media = e.media), o.head.appendChild(M), !n.value && (c = R(r, (y) => {
|
|
175
|
+
M.innerText = y;
|
|
176
176
|
}, { immediate: !0 }), n.value = !0);
|
|
177
|
-
},
|
|
178
|
-
!o || !n.value || (
|
|
177
|
+
}, v = () => {
|
|
178
|
+
!o || !n.value || (c(), o.head.removeChild(o.getElementById(l)), n.value = !1);
|
|
179
179
|
};
|
|
180
|
-
return
|
|
181
|
-
id:
|
|
182
|
-
css:
|
|
183
|
-
unload:
|
|
184
|
-
load:
|
|
180
|
+
return s && !a && Ke(u), a || Ve(v), {
|
|
181
|
+
id: l,
|
|
182
|
+
css: r,
|
|
183
|
+
unload: v,
|
|
184
|
+
load: u,
|
|
185
185
|
isLoaded: ht(n)
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
|
-
var Yt = Object.defineProperty,
|
|
188
|
+
var Yt = Object.defineProperty, $e = Object.getOwnPropertySymbols, $t = Object.prototype.hasOwnProperty, Rt = Object.prototype.propertyIsEnumerable, Re = (t, e, n) => e in t ? Yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Pt = (t, e) => {
|
|
189
189
|
for (var n in e || (e = {}))
|
|
190
|
-
$t.call(e, n) &&
|
|
191
|
-
if (
|
|
192
|
-
for (var n of
|
|
193
|
-
Rt.call(e, n) &&
|
|
190
|
+
$t.call(e, n) && Re(t, n, e[n]);
|
|
191
|
+
if ($e)
|
|
192
|
+
for (var n of $e(e))
|
|
193
|
+
Rt.call(e, n) && Re(t, n, e[n]);
|
|
194
194
|
return t;
|
|
195
195
|
};
|
|
196
196
|
const Ft = {
|
|
@@ -220,113 +220,113 @@ const Ft = {
|
|
|
220
220
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
221
221
|
};
|
|
222
222
|
Pt({
|
|
223
|
-
linear:
|
|
223
|
+
linear: zt
|
|
224
224
|
}, Ft);
|
|
225
225
|
function Ht(t, e) {
|
|
226
|
-
const { scrollEndHook: n, itemHeight: o, overscan:
|
|
227
|
-
let
|
|
228
|
-
const
|
|
226
|
+
const { scrollEndHook: n, itemHeight: o, overscan: s = 5 } = e, a = D(null), l = Bt(a), r = D(!0), c = Ge(V, 100);
|
|
227
|
+
let u;
|
|
228
|
+
const v = mt(t), M = D(0), y = D({ start: 0, end: 10 }), f = D({ start: 0, end: s });
|
|
229
229
|
let d = 0;
|
|
230
|
-
const
|
|
231
|
-
let { sum:
|
|
232
|
-
return
|
|
233
|
-
}),
|
|
234
|
-
const { start:
|
|
235
|
-
return
|
|
230
|
+
const I = D([]), i = N(() => {
|
|
231
|
+
let { sum: j, height: w } = { sum: 0, height: 0 };
|
|
232
|
+
return v.value.map((b, k) => (typeof o == "number" ? w = o : w = o(k), j += w, { height: w, sum: j }));
|
|
233
|
+
}), g = N(() => q(y.value.start)), T = N(() => typeof o == "number" ? i.value.length * o : i.value[i.value.length - 1]?.sum || 0), B = N(() => {
|
|
234
|
+
const { start: j, end: w } = f.value;
|
|
235
|
+
return I.value.slice(j, w);
|
|
236
236
|
});
|
|
237
|
-
|
|
238
|
-
}),
|
|
239
|
-
|
|
237
|
+
ae(() => {
|
|
238
|
+
}), He(() => cancelAnimationFrame(u)), R(
|
|
239
|
+
v,
|
|
240
240
|
() => {
|
|
241
|
-
(
|
|
241
|
+
(l.width.value || l.height.value) && O();
|
|
242
242
|
},
|
|
243
243
|
{ deep: !0 }
|
|
244
244
|
), R(
|
|
245
|
-
[
|
|
246
|
-
([
|
|
247
|
-
(
|
|
245
|
+
[l.width, l.height],
|
|
246
|
+
([j, w]) => {
|
|
247
|
+
(j || w) && O();
|
|
248
248
|
},
|
|
249
249
|
{ deep: !0 }
|
|
250
250
|
), R(M, () => {
|
|
251
|
-
Z(),
|
|
251
|
+
Z(), c();
|
|
252
252
|
});
|
|
253
253
|
function Z() {
|
|
254
|
-
|
|
254
|
+
r.value = !1;
|
|
255
255
|
}
|
|
256
256
|
function V() {
|
|
257
|
-
|
|
257
|
+
r.value = !0, n?.();
|
|
258
258
|
}
|
|
259
259
|
function O() {
|
|
260
|
-
cancelAnimationFrame(
|
|
260
|
+
cancelAnimationFrame(u), u = requestAnimationFrame(L);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function L() {
|
|
263
263
|
if (a.value) {
|
|
264
264
|
M.value = a.value.scrollTop;
|
|
265
|
-
let
|
|
266
|
-
d = G(
|
|
267
|
-
let w = Math.max(0,
|
|
268
|
-
|
|
269
|
-
|
|
265
|
+
let j = _(M.value);
|
|
266
|
+
d = G(j);
|
|
267
|
+
let w = Math.max(0, j - s), b = Math.min(
|
|
268
|
+
j + d + s,
|
|
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
|
-
})),
|
|
274
|
+
})), f.value.start = j - w, f.value.end = f.value.start + d;
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
function _(
|
|
277
|
+
function _(j) {
|
|
278
278
|
let w = 0, b = i.value.length - 1, k = -1;
|
|
279
279
|
for (; w <= b; ) {
|
|
280
280
|
const C = Math.floor((w + b) / 2);
|
|
281
|
-
i.value[C].sum >=
|
|
281
|
+
i.value[C].sum >= j ? (k = C, b = C - 1) : w = C + 1;
|
|
282
282
|
}
|
|
283
283
|
return Math.max(0, k);
|
|
284
284
|
}
|
|
285
|
-
function G(
|
|
285
|
+
function G(j) {
|
|
286
286
|
let w = 0, b = 0;
|
|
287
|
-
for (let k =
|
|
287
|
+
for (let k = j; k < i.value.length && (w++, b += i.value[k].height, !(b >= l.height.value)); k++)
|
|
288
288
|
;
|
|
289
289
|
return w;
|
|
290
290
|
}
|
|
291
|
-
function q(
|
|
291
|
+
function q(j) {
|
|
292
292
|
if (typeof o == "number")
|
|
293
|
-
return
|
|
294
|
-
let w = i.value[
|
|
293
|
+
return j * o;
|
|
294
|
+
let w = i.value[j];
|
|
295
295
|
return w ? w.sum - w.height : 0;
|
|
296
296
|
}
|
|
297
|
-
function P(
|
|
298
|
-
return i.value[
|
|
297
|
+
function P(j) {
|
|
298
|
+
return i.value[j] || { sum: 0, height: 0 };
|
|
299
299
|
}
|
|
300
|
-
function te(
|
|
300
|
+
function te(j) {
|
|
301
301
|
if (a.value) {
|
|
302
|
-
const w = P(
|
|
303
|
-
a.value.scrollTop = w.sum - w.height,
|
|
302
|
+
const w = P(j);
|
|
303
|
+
a.value.scrollTop = w.sum - w.height, L();
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
const
|
|
306
|
+
const ie = N(() => ({
|
|
307
307
|
style: {
|
|
308
308
|
width: "100%",
|
|
309
|
-
height: `${
|
|
310
|
-
pointerEvents:
|
|
309
|
+
height: `${T.value}px`,
|
|
310
|
+
pointerEvents: r.value ? void 0 : "none"
|
|
311
311
|
}
|
|
312
|
-
})), ne =
|
|
312
|
+
})), ne = N(() => ({
|
|
313
313
|
style: {
|
|
314
|
-
transform: `translate3d(0, ${
|
|
314
|
+
transform: `translate3d(0, ${g.value}px, 0)`,
|
|
315
315
|
"will-change": "transform"
|
|
316
316
|
}
|
|
317
317
|
})), J = {
|
|
318
318
|
overflowY: "auto"
|
|
319
319
|
};
|
|
320
320
|
return {
|
|
321
|
-
list:
|
|
321
|
+
list: I,
|
|
322
322
|
visiableList: B,
|
|
323
323
|
getItemHeightData: P,
|
|
324
324
|
getoffsetTopIndex: _,
|
|
325
|
-
totalHeight:
|
|
326
|
-
clientHeight:
|
|
325
|
+
totalHeight: T,
|
|
326
|
+
clientHeight: l.height,
|
|
327
327
|
scrollTo: te,
|
|
328
328
|
scrollTop: M,
|
|
329
|
-
isScrollEnd:
|
|
329
|
+
isScrollEnd: r,
|
|
330
330
|
containerProps: {
|
|
331
331
|
ref: a,
|
|
332
332
|
onScroll: () => {
|
|
@@ -334,304 +334,304 @@ function Ht(t, e) {
|
|
|
334
334
|
},
|
|
335
335
|
style: J
|
|
336
336
|
},
|
|
337
|
-
wrapperProps:
|
|
337
|
+
wrapperProps: ie,
|
|
338
338
|
innerProps: ne
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const qe = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol(), st = Symbol(), lt = Symbol(), je = Symbol(), at = Symbol();
|
|
342
342
|
function Wt(t, e) {
|
|
343
343
|
const n = Object.keys(t), o = Object.keys(e);
|
|
344
344
|
if (n.length !== o.length)
|
|
345
345
|
return !1;
|
|
346
|
-
for (let
|
|
347
|
-
const a = t[
|
|
346
|
+
for (let s of n) {
|
|
347
|
+
const a = t[s], l = e[s];
|
|
348
348
|
if (a instanceof Date) {
|
|
349
|
-
if (a.getTime() !==
|
|
349
|
+
if (a.getTime() !== l.getTime())
|
|
350
350
|
return !1;
|
|
351
351
|
continue;
|
|
352
352
|
}
|
|
353
|
-
if (t[
|
|
353
|
+
if (t[s] !== e[s])
|
|
354
354
|
return !1;
|
|
355
355
|
}
|
|
356
356
|
return !0;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
const o = t.reduce((
|
|
360
|
-
for (let
|
|
361
|
-
const M =
|
|
362
|
-
for (const d of
|
|
363
|
-
const
|
|
364
|
-
!i && d ?
|
|
358
|
+
function io(t, e, n) {
|
|
359
|
+
const o = t.reduce((v, M) => (v.set(M[n], M), v), /* @__PURE__ */ new Map()), s = [], a = [], l = [], r = /* @__PURE__ */ new Set(), c = 2500, u = Math.ceil(e.length / c);
|
|
360
|
+
for (let v = 0; v < u; v++) {
|
|
361
|
+
const M = v * c, y = M + c, f = e.slice(M, y);
|
|
362
|
+
for (const d of f) {
|
|
363
|
+
const I = d[n], i = o.get(I);
|
|
364
|
+
!i && d ? s.push(d) : i && !d ? a.push(i) : i && d && (Wt(i, d) || l.push(d)), r.add(I), o.delete(I);
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
for (const [
|
|
368
|
-
|
|
369
|
-
return { added:
|
|
367
|
+
for (const [v, M] of o)
|
|
368
|
+
r.has(v) || a.push(M);
|
|
369
|
+
return { added: s, removed: a, modified: l };
|
|
370
370
|
}
|
|
371
371
|
function uo() {
|
|
372
|
-
const { voidFn: t, boolFn: e, boolRef: n, numberRef: o, arrayRef:
|
|
373
|
-
voidFn: (
|
|
372
|
+
const { voidFn: t, boolFn: e, boolRef: n, numberRef: o, arrayRef: s } = {
|
|
373
|
+
voidFn: (I) => {
|
|
374
374
|
},
|
|
375
|
-
boolFn: (
|
|
376
|
-
boolRef:
|
|
377
|
-
numberRef:
|
|
378
|
-
arrayRef:
|
|
379
|
-
}, a = H(
|
|
375
|
+
boolFn: (I) => !1,
|
|
376
|
+
boolRef: N(() => !1),
|
|
377
|
+
numberRef: N(() => 0),
|
|
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), M = H(ot, t), y = H(st, t), f = H(je, t), d = H(at, o);
|
|
380
380
|
return {
|
|
381
381
|
selected: a,
|
|
382
|
-
isSelected:
|
|
383
|
-
isAllSelected:
|
|
384
|
-
toggle:
|
|
385
|
-
toggleAll:
|
|
386
|
-
select:
|
|
382
|
+
isSelected: l,
|
|
383
|
+
isAllSelected: r,
|
|
384
|
+
toggle: c,
|
|
385
|
+
toggleAll: u,
|
|
386
|
+
select: v,
|
|
387
387
|
selectAll: M,
|
|
388
|
-
unselect:
|
|
389
|
-
unselectAll:
|
|
388
|
+
unselect: y,
|
|
389
|
+
unselectAll: f,
|
|
390
390
|
selectedCount: d
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
const n = D(!1), o = D(/* @__PURE__ */ new Set()),
|
|
393
|
+
function ro(t, e) {
|
|
394
|
+
const n = D(!1), o = D(/* @__PURE__ */ new Set()), s = D(/* @__PURE__ */ new Map());
|
|
395
395
|
R(
|
|
396
396
|
t,
|
|
397
397
|
(i) => {
|
|
398
|
-
|
|
398
|
+
s.value = i.reduce((g, T) => (g.set(T[e], T), g), /* @__PURE__ */ new Map());
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
deep: !0,
|
|
402
402
|
immediate: !0
|
|
403
403
|
}
|
|
404
404
|
);
|
|
405
|
-
const a =
|
|
405
|
+
const a = N(() => {
|
|
406
406
|
let i = [];
|
|
407
407
|
if (n.value != null)
|
|
408
|
-
n.value && (i = Array.from(
|
|
408
|
+
n.value && (i = Array.from(s.value.values()));
|
|
409
409
|
else if (o.value.size) {
|
|
410
|
-
let
|
|
411
|
-
o.value.forEach((
|
|
412
|
-
|
|
410
|
+
let g;
|
|
411
|
+
o.value.forEach((T) => {
|
|
412
|
+
g = s.value.get(T), g && i.push(g);
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
return i;
|
|
416
|
-
}),
|
|
416
|
+
}), l = N(() => {
|
|
417
417
|
let i = 0;
|
|
418
|
-
return n.value != null ? n.value && (i =
|
|
419
|
-
}),
|
|
418
|
+
return n.value != null ? n.value && (i = s.value.size) : i = o.value.size, i;
|
|
419
|
+
}), r = N(() => {
|
|
420
420
|
let i;
|
|
421
421
|
if (n.value != null)
|
|
422
422
|
i = n.value;
|
|
423
423
|
else {
|
|
424
|
-
const
|
|
425
|
-
i =
|
|
424
|
+
const g = o.value.size, T = s.value.size;
|
|
425
|
+
i = g == T;
|
|
426
426
|
}
|
|
427
427
|
return i;
|
|
428
428
|
});
|
|
429
|
-
function
|
|
429
|
+
function c() {
|
|
430
430
|
n.value = !0;
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function u() {
|
|
433
433
|
n.value = !1;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
436
|
-
|
|
437
|
-
i.forEach((
|
|
438
|
-
o.value.add(
|
|
435
|
+
function v(i) {
|
|
436
|
+
f(() => {
|
|
437
|
+
i.forEach((g) => {
|
|
438
|
+
o.value.add(g[e]);
|
|
439
439
|
});
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
function M(i) {
|
|
443
|
-
|
|
444
|
-
i.forEach((
|
|
445
|
-
o.value.delete(
|
|
443
|
+
f(() => {
|
|
444
|
+
i.forEach((g) => {
|
|
445
|
+
o.value.delete(g[e]);
|
|
446
446
|
});
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function y(i) {
|
|
450
450
|
return n.value != null ? n.value : o.value.has(i[e]);
|
|
451
451
|
}
|
|
452
|
-
function
|
|
453
|
-
n.value != null && (n.value ? o.value = new Set(Array.from(
|
|
452
|
+
function f(i) {
|
|
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
455
|
function d(i) {
|
|
456
|
-
|
|
457
|
-
i.forEach((
|
|
458
|
-
|
|
456
|
+
f(() => {
|
|
457
|
+
i.forEach((g) => {
|
|
458
|
+
y(g) ? o.value.delete(g[e]) : o.value.add(g[e]);
|
|
459
459
|
});
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
const { value: i } =
|
|
464
|
-
i ?
|
|
462
|
+
function I() {
|
|
463
|
+
const { value: i } = r;
|
|
464
|
+
i ? u() : c();
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return $(qe, I), $(Je, d), $(et, y), $(tt, a), $(nt, v), $(ot, c), $(st, M), $(lt, r), $(je, u), $(je, u), $(at, l), {
|
|
467
467
|
selected: a,
|
|
468
|
-
select:
|
|
469
|
-
selectAll:
|
|
468
|
+
select: v,
|
|
469
|
+
selectAll: c,
|
|
470
470
|
unselect: M,
|
|
471
|
-
unselectAll:
|
|
471
|
+
unselectAll: u,
|
|
472
472
|
toggle: d,
|
|
473
|
-
toggleAll:
|
|
474
|
-
isSelected:
|
|
475
|
-
isAllSelected:
|
|
476
|
-
selectedCount:
|
|
473
|
+
toggleAll: I,
|
|
474
|
+
isSelected: y,
|
|
475
|
+
isAllSelected: r,
|
|
476
|
+
selectedCount: l
|
|
477
477
|
};
|
|
478
478
|
}
|
|
479
|
-
function
|
|
479
|
+
function Te(t) {
|
|
480
480
|
return () => {
|
|
481
481
|
console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function it({
|
|
485
485
|
attribute: t,
|
|
486
486
|
selectWay: e = "colum",
|
|
487
487
|
scrollOptions: n = {},
|
|
488
488
|
getSelectMap: o = () => ({})
|
|
489
489
|
}) {
|
|
490
490
|
const {
|
|
491
|
-
select:
|
|
492
|
-
unselect: a =
|
|
493
|
-
unselectAll:
|
|
491
|
+
select: s = Te("\u9009\u62E9"),
|
|
492
|
+
unselect: a = Te("\u53D6\u6D88\u9009\u62E9"),
|
|
493
|
+
unselectAll: l = Te("\u53D6\u6D88\u5168\u9009")
|
|
494
494
|
} = o();
|
|
495
|
-
let
|
|
496
|
-
const
|
|
497
|
-
() =>
|
|
498
|
-
),
|
|
499
|
-
(
|
|
500
|
-
), i = D({}),
|
|
495
|
+
let r = {};
|
|
496
|
+
const c = N(
|
|
497
|
+
() => Be(e === "colum" ? Mt : dt, 50)
|
|
498
|
+
), u = /* @__PURE__ */ new Set(), v = D(!0), M = D(), y = D(!1), f = D({ x: 0, y: 0 }), d = D({ x: 0, y: 0, scrollTop: 0 }), I = new ResizeObserver(
|
|
499
|
+
(m) => i.value = m[0].target.getBoundingClientRect()
|
|
500
|
+
), i = D({}), g = D({
|
|
501
501
|
top: 0,
|
|
502
502
|
height: 0,
|
|
503
|
-
sync(
|
|
504
|
-
|
|
503
|
+
sync(m = !1) {
|
|
504
|
+
g.value.top = M.value?.scrollTop || 0, m && (g.value.height = M.value?.scrollHeight || 0);
|
|
505
505
|
}
|
|
506
|
-
}),
|
|
507
|
-
left: Math.min(
|
|
508
|
-
top: Math.min(
|
|
509
|
-
width: Math.abs(
|
|
510
|
-
height: Math.abs(
|
|
506
|
+
}), T = N(() => y.value ? {
|
|
507
|
+
left: Math.min(f.value.x, d.value.x) - i.value.left,
|
|
508
|
+
top: Math.min(f.value.y, d.value.y) - i.value.top,
|
|
509
|
+
width: Math.abs(f.value.x - d.value.x),
|
|
510
|
+
height: Math.abs(f.value.y - d.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
|
-
const
|
|
513
|
+
const L = B, _ = Z, G = V, q = (m) => m ** 1;
|
|
514
514
|
let P = 0;
|
|
515
|
-
function te(
|
|
516
|
-
if (cancelAnimationFrame(O), P =
|
|
515
|
+
function te(m) {
|
|
516
|
+
if (cancelAnimationFrame(O), P = ie(m), P = Math.max(
|
|
517
517
|
Math.min(P, G),
|
|
518
518
|
-G
|
|
519
519
|
), P !== 0) {
|
|
520
520
|
const p = M.value;
|
|
521
|
-
if (!p || !
|
|
521
|
+
if (!p || !y.value)
|
|
522
522
|
return;
|
|
523
|
-
const U =
|
|
524
|
-
let x =
|
|
525
|
-
x = Math.min(Math.max(0, x), U), p.scrollTop = x, J(), O = requestAnimationFrame(() => te(
|
|
523
|
+
const U = g.value.height - i.value.height;
|
|
524
|
+
let x = g.value.top + Number(P);
|
|
525
|
+
x = Math.min(Math.max(0, x), U), p.scrollTop = x, J(), O = requestAnimationFrame(() => te(m));
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function ie(m) {
|
|
529
529
|
if (M.value) {
|
|
530
|
-
const U = i.value, x = U.bottom -
|
|
531
|
-
if (x <
|
|
532
|
-
return _ * q(1 - x /
|
|
533
|
-
const W =
|
|
534
|
-
if (W <
|
|
535
|
-
return -_ * q(1 - W /
|
|
530
|
+
const U = i.value, x = U.bottom - m;
|
|
531
|
+
if (x < L)
|
|
532
|
+
return _ * q(1 - x / L);
|
|
533
|
+
const W = m - U.top;
|
|
534
|
+
if (W < L)
|
|
535
|
+
return -_ * q(1 - W / L);
|
|
536
536
|
}
|
|
537
537
|
return 0;
|
|
538
538
|
}
|
|
539
|
-
function ne(
|
|
540
|
-
const p = { ...
|
|
541
|
-
return p.left += i.value.left, p.top += i.value.top -
|
|
539
|
+
function ne(m) {
|
|
540
|
+
const p = { ...T.value, right: 0, bottom: 0 };
|
|
541
|
+
return p.left += i.value.left, p.top += i.value.top - g.value.top, p.right = p.width + p.left, p.bottom = p.height + p.top, p.left < m.right && p.right > m.left && p.top < m.bottom && p.bottom > m.top;
|
|
542
542
|
}
|
|
543
543
|
function J() {
|
|
544
|
-
|
|
545
|
-
const { top:
|
|
544
|
+
g.value.sync();
|
|
545
|
+
const { top: m, height: p } = g.value;
|
|
546
546
|
d.value.y = Math.min(
|
|
547
547
|
p + i.value.top,
|
|
548
|
-
d.value.y +
|
|
549
|
-
), d.value.scrollTop =
|
|
548
|
+
d.value.y + m - d.value.scrollTop
|
|
549
|
+
), d.value.scrollTop = m;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function j(m, p, U = "dynamic-styles") {
|
|
552
552
|
let x = document.getElementById(U);
|
|
553
553
|
x || (x = document.createElement("style"), x.id = U, document.head.appendChild(x));
|
|
554
|
-
const W = x.sheet.cssRules, oe = W.length,
|
|
555
|
-
for (let
|
|
556
|
-
const
|
|
557
|
-
if (
|
|
554
|
+
const W = x.sheet.cssRules, oe = W.length, gt = `${m} { ${p} }`;
|
|
555
|
+
for (let me = 0; me < oe; me++) {
|
|
556
|
+
const be = W[me];
|
|
557
|
+
if (be.selectorText === m && be.style.cssText === p)
|
|
558
558
|
return;
|
|
559
559
|
}
|
|
560
|
-
x.sheet.insertRule(
|
|
560
|
+
x.sheet.insertRule(gt, oe);
|
|
561
561
|
}
|
|
562
|
-
function w(
|
|
563
|
-
|
|
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, d.value.x = f.value.x, d.value.y = f.value.y, M.value?.classList.add("disable-scroll-behavior"), u.clear();
|
|
564
564
|
}
|
|
565
|
-
function b(
|
|
566
|
-
!
|
|
567
|
-
p +
|
|
568
|
-
|
|
569
|
-
), d.value.scrollTop =
|
|
565
|
+
function b(m, p, U) {
|
|
566
|
+
!y.value || (v.value && e === "colum" && !S() && (l(), v.value = !1), U?.(), te(p), d.value.x = Math.max(m, i.value.left), d.value.y = Math.min(
|
|
567
|
+
p + g.value.top,
|
|
568
|
+
g.value.height + i.value.top
|
|
569
|
+
), d.value.scrollTop = g.value.top, c.value());
|
|
570
570
|
}
|
|
571
571
|
function k() {
|
|
572
|
-
|
|
572
|
+
y.value = !1, M.value?.classList.remove("disable-scroll-behavior");
|
|
573
573
|
}
|
|
574
574
|
function C() {
|
|
575
|
-
!
|
|
575
|
+
!y.value || (P || J(), c.value());
|
|
576
576
|
}
|
|
577
577
|
function S() {
|
|
578
|
-
if (!
|
|
578
|
+
if (!y.value)
|
|
579
579
|
return !1;
|
|
580
|
-
const { width:
|
|
581
|
-
return !(Math.max(
|
|
580
|
+
const { width: m, height: p } = T.value;
|
|
581
|
+
return !(Math.max(m, p) > 5);
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
S() &&
|
|
583
|
+
function Ne() {
|
|
584
|
+
S() && l();
|
|
585
585
|
}
|
|
586
|
-
function
|
|
587
|
-
S() || M.value?.querySelectorAll(`[${t}]`).forEach((
|
|
588
|
-
|
|
586
|
+
function Mt() {
|
|
587
|
+
S() || M.value?.querySelectorAll(`[${t}]`).forEach((m) => {
|
|
588
|
+
r[`${t}`] = m.getAttribute(`${t}`), ne(m.getBoundingClientRect()) ? s([r]) : a([r]);
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
591
|
+
function dt() {
|
|
592
|
+
const m = [];
|
|
593
593
|
let p = null, U = 0;
|
|
594
594
|
M.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
|
});
|
|
598
598
|
for (let x = p; x < U + 1; x++)
|
|
599
|
-
|
|
599
|
+
r[`${t}`] = m[x], s([r]), u.add(m[x]);
|
|
600
600
|
}
|
|
601
|
-
function
|
|
602
|
-
return !
|
|
601
|
+
function vt(m) {
|
|
602
|
+
return !m?.value || (M.value = m.value, !M?.value) ? !1 : (I.observe(M.value), j(
|
|
603
603
|
".disable-scroll-behavior",
|
|
604
604
|
"scroll-behavior: unset !important;"
|
|
605
605
|
), !0);
|
|
606
606
|
}
|
|
607
607
|
return {
|
|
608
|
-
init:
|
|
608
|
+
init: vt,
|
|
609
609
|
dragStart: w,
|
|
610
610
|
dragMove: b,
|
|
611
611
|
dragEnd: k,
|
|
612
612
|
onScroll: C,
|
|
613
613
|
isSingleClick: S,
|
|
614
|
-
cancelSelectAllBySingleClick:
|
|
615
|
-
selectFn:
|
|
616
|
-
selectRange:
|
|
617
|
-
isPressing:
|
|
614
|
+
cancelSelectAllBySingleClick: Ne,
|
|
615
|
+
selectFn: c,
|
|
616
|
+
selectRange: T,
|
|
617
|
+
isPressing: y,
|
|
618
618
|
containerEl: M,
|
|
619
|
-
observer:
|
|
619
|
+
observer: I
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
const e =
|
|
624
|
-
onScroll:
|
|
622
|
+
function co(t) {
|
|
623
|
+
const e = it(t), { observer: n, selectRange: o } = e, {
|
|
624
|
+
onScroll: s,
|
|
625
625
|
dragStart: a,
|
|
626
|
-
dragMove:
|
|
627
|
-
dragEnd:
|
|
628
|
-
cancelSelectAllBySingleClick:
|
|
629
|
-
} = e,
|
|
626
|
+
dragMove: l,
|
|
627
|
+
dragEnd: r,
|
|
628
|
+
cancelSelectAllBySingleClick: c
|
|
629
|
+
} = e, u = N(() => ({
|
|
630
630
|
left: `${o.value.left}px`,
|
|
631
631
|
top: `${o.value.top}px`,
|
|
632
632
|
width: `${o.value.width}px`,
|
|
633
633
|
height: `${o.value.height}px`
|
|
634
|
-
})), { load:
|
|
634
|
+
})), { load: v } = _e(
|
|
635
635
|
`.drag-select-box {
|
|
636
636
|
position: absolute;
|
|
637
637
|
z-index: 99999;
|
|
@@ -644,61 +644,61 @@ function ro(t) {
|
|
|
644
644
|
return X("div", {
|
|
645
645
|
id: "selectBoxEl",
|
|
646
646
|
class: "drag-select-box",
|
|
647
|
-
style:
|
|
647
|
+
style: u.value
|
|
648
648
|
});
|
|
649
649
|
}
|
|
650
650
|
});
|
|
651
|
-
function
|
|
652
|
-
|
|
651
|
+
function y(g) {
|
|
652
|
+
g.button === 0 && a(g.x, g.y);
|
|
653
653
|
}
|
|
654
|
-
function g
|
|
655
|
-
|
|
654
|
+
function f(g) {
|
|
655
|
+
l(g.x, g.y);
|
|
656
656
|
}
|
|
657
|
-
function d(
|
|
658
|
-
|
|
657
|
+
function d(g) {
|
|
658
|
+
g.composedPath().some((B) => B?.getAttribute?.(t.attribute)) || c(), r();
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function I(g) {
|
|
661
661
|
try {
|
|
662
|
-
if (!e.init(
|
|
662
|
+
if (!e.init(g))
|
|
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
|
-
|
|
667
|
-
} catch (
|
|
668
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
666
|
+
ce(X(M), e.containerEl.value), v(), e.containerEl.value?.addEventListener("scroll", s), e.containerEl.value?.addEventListener("mousedown", y), window.addEventListener("mousemove", f), window.addEventListener("mouseup", d);
|
|
667
|
+
} catch (T) {
|
|
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",
|
|
672
|
+
n.disconnect(), e.containerEl.value?.removeEventListener("scroll", s), e.containerEl.value?.removeEventListener("mousedown", y), window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", d);
|
|
673
673
|
}
|
|
674
|
-
return { init:
|
|
674
|
+
return { init: I, unMount: i };
|
|
675
675
|
}
|
|
676
|
-
function
|
|
677
|
-
const o =
|
|
676
|
+
function Mo(t, e, n = 600) {
|
|
677
|
+
const o = it({
|
|
678
678
|
...t,
|
|
679
679
|
selectWay: "row",
|
|
680
680
|
scrollOptions: {
|
|
681
681
|
startSpeed: 5,
|
|
682
682
|
maxSpeed: 5
|
|
683
683
|
}
|
|
684
|
-
}), { observer:
|
|
685
|
-
let
|
|
686
|
-
function
|
|
687
|
-
clearTimeout(
|
|
684
|
+
}), { observer: s } = o, { onScroll: a, dragStart: l, dragMove: r, dragEnd: c } = o;
|
|
685
|
+
let u;
|
|
686
|
+
function v() {
|
|
687
|
+
clearTimeout(u);
|
|
688
688
|
}
|
|
689
689
|
function M(i) {
|
|
690
|
-
|
|
691
|
-
const { clientX:
|
|
692
|
-
|
|
690
|
+
v(), i.composedPath().some((T) => !!T?.getAttribute?.(t.attribute)) && (u = setTimeout(() => {
|
|
691
|
+
const { clientX: T, clientY: B } = i.targetTouches[0];
|
|
692
|
+
l(T, B), e?.(), r(T, B, () => i.preventDefault()), i.preventDefault();
|
|
693
693
|
}, n));
|
|
694
694
|
}
|
|
695
|
-
function
|
|
696
|
-
|
|
697
|
-
const { clientX:
|
|
698
|
-
|
|
695
|
+
function y(i) {
|
|
696
|
+
v();
|
|
697
|
+
const { clientX: g, clientY: T } = i.targetTouches[0];
|
|
698
|
+
r(g, T, () => i.preventDefault());
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
|
|
700
|
+
function f() {
|
|
701
|
+
v(), c();
|
|
702
702
|
}
|
|
703
703
|
function d(i) {
|
|
704
704
|
try {
|
|
@@ -706,15 +706,15 @@ function co(t, e, n = 600) {
|
|
|
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", M), o.containerEl.value?.addEventListener("touchmove",
|
|
710
|
-
} catch (
|
|
711
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
709
|
+
o.containerEl.value?.addEventListener("scroll", a), o.containerEl.value?.addEventListener("touchstart", M), o.containerEl.value?.addEventListener("touchmove", y), window.addEventListener("touchcancel", f), window.addEventListener("touchend", f);
|
|
710
|
+
} catch (g) {
|
|
711
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", g);
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
714
|
+
function I() {
|
|
715
|
+
s.disconnect(), o.containerEl.value?.removeEventListener("scroll", a), o.containerEl.value?.removeEventListener("touchstart", M), o.containerEl.value?.removeEventListener("touchmove", y), window.removeEventListener("touchcancel", f), window.removeEventListener("touchEnd", f);
|
|
716
716
|
}
|
|
717
|
-
return { init: d, unMount:
|
|
717
|
+
return { init: d, unMount: I };
|
|
718
718
|
}
|
|
719
719
|
const Zt = Symbol(), Vt = {
|
|
720
720
|
key: 0,
|
|
@@ -731,18 +731,18 @@ const Zt = Symbol(), Vt = {
|
|
|
731
731
|
const n = t, o = () => {
|
|
732
732
|
n.closeOnClickOverlay && e("update:visiable", !1);
|
|
733
733
|
};
|
|
734
|
-
return
|
|
734
|
+
return $(Zt, () => e("update:visiable", !1)), (s, a) => (A(), ye(Le, { name: "modal" }, {
|
|
735
735
|
default: xe(() => [
|
|
736
|
-
t.visiable ?
|
|
736
|
+
t.visiable ? se((A(), z("div", Vt, [
|
|
737
737
|
E("div", {
|
|
738
|
-
onMousedown: a[0] || (a[0] =
|
|
738
|
+
onMousedown: a[0] || (a[0] = re(() => {
|
|
739
739
|
}, ["stop"])),
|
|
740
740
|
class: K(["lzc-dialog", t.dialogClass])
|
|
741
741
|
}, [
|
|
742
|
-
De(
|
|
742
|
+
De(s.$slots, "default", {}, void 0, !0)
|
|
743
743
|
], 34)
|
|
744
744
|
])), [
|
|
745
|
-
[
|
|
745
|
+
[h(Et), () => o()]
|
|
746
746
|
]) : ee("", !0)
|
|
747
747
|
]),
|
|
748
748
|
_: 3
|
|
@@ -751,20 +751,20 @@ const Zt = Symbol(), Vt = {
|
|
|
751
751
|
});
|
|
752
752
|
const F = (t, e) => {
|
|
753
753
|
const n = t.__vccOpts || t;
|
|
754
|
-
for (const [o,
|
|
755
|
-
n[o] =
|
|
754
|
+
for (const [o, s] of e)
|
|
755
|
+
n[o] = s;
|
|
756
756
|
return n;
|
|
757
757
|
}, Kt = /* @__PURE__ */ F(Gt, [["__scopeId", "data-v-4ff684af"]]);
|
|
758
|
-
function
|
|
758
|
+
function vo(t) {
|
|
759
759
|
function e(n, o) {
|
|
760
|
-
const
|
|
760
|
+
const s = document.createElement("div"), a = {
|
|
761
761
|
setup() {
|
|
762
762
|
return () => X(
|
|
763
763
|
Kt,
|
|
764
764
|
{
|
|
765
765
|
visiable: !0,
|
|
766
766
|
"onUpdate:visiable": () => {
|
|
767
|
-
|
|
767
|
+
s?.remove();
|
|
768
768
|
},
|
|
769
769
|
...t
|
|
770
770
|
},
|
|
@@ -774,56 +774,56 @@ function Mo(t) {
|
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
776
|
};
|
|
777
|
-
return document.body.appendChild(
|
|
778
|
-
close: () =>
|
|
777
|
+
return document.body.appendChild(s), ce(X(a), s), {
|
|
778
|
+
close: () => s?.remove()
|
|
779
779
|
};
|
|
780
780
|
}
|
|
781
781
|
return {
|
|
782
782
|
create: e
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
function
|
|
785
|
+
function ut({
|
|
786
786
|
component: t,
|
|
787
787
|
componentProps: e,
|
|
788
788
|
delay: n = 300
|
|
789
789
|
}) {
|
|
790
|
-
const
|
|
791
|
-
return
|
|
790
|
+
const s = `lzc-delay-loading-${`${new Date().getTime()}`}`, a = `${n}ms`;
|
|
791
|
+
return _e(
|
|
792
792
|
`@keyframes lzcDelayLoad {
|
|
793
793
|
to {
|
|
794
794
|
opacity: 1;
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
|
-
.${
|
|
797
|
+
.${s} {
|
|
798
798
|
opacity: 0;
|
|
799
799
|
animation: lzcDelayLoad 0s ${a} forwards;
|
|
800
800
|
}`
|
|
801
801
|
), { LoadingComp: Q({
|
|
802
802
|
setup() {
|
|
803
|
-
const
|
|
804
|
-
return
|
|
805
|
-
|
|
803
|
+
const r = _t();
|
|
804
|
+
return ae(() => {
|
|
805
|
+
r.value.classList.add(s);
|
|
806
806
|
}), () => X(t, e);
|
|
807
807
|
}
|
|
808
808
|
}) };
|
|
809
809
|
}
|
|
810
|
-
function
|
|
810
|
+
function go({
|
|
811
811
|
component: t,
|
|
812
812
|
componentProps: e,
|
|
813
813
|
delay: n = 300
|
|
814
814
|
}) {
|
|
815
|
-
const { LoadingComp: o } =
|
|
815
|
+
const { LoadingComp: o } = ut({
|
|
816
816
|
component: t,
|
|
817
817
|
componentProps: e,
|
|
818
818
|
delay: n
|
|
819
|
-
}),
|
|
819
|
+
}), s = D(!1);
|
|
820
820
|
function a() {
|
|
821
|
-
|
|
821
|
+
s.value = !0;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
823
|
+
function l() {
|
|
824
|
+
s.value = !1;
|
|
825
825
|
}
|
|
826
|
-
return { LoadingComp: o, loading:
|
|
826
|
+
return { LoadingComp: o, loading: s, load: a, unload: l };
|
|
827
827
|
}
|
|
828
828
|
const Xt = (t) => (Me("data-v-f86c8393"), t = t(), de(), t), qt = /* @__PURE__ */ Xt(() => /* @__PURE__ */ E("div", { class: "ldio-mm5gwljcryb" }, [
|
|
829
829
|
/* @__PURE__ */ E("div")
|
|
@@ -839,10 +839,10 @@ const Xt = (t) => (Me("data-v-f86c8393"), t = t(), de(), t), qt = /* @__PURE__ *
|
|
|
839
839
|
return Ce((e) => ({
|
|
840
840
|
"226a081e": t.width + "px",
|
|
841
841
|
"35610f1c": t.height + "px"
|
|
842
|
-
})), (e, n) => (
|
|
842
|
+
})), (e, n) => (A(), z("div", pe(we(e.$attrs)), Jt, 16));
|
|
843
843
|
}
|
|
844
844
|
});
|
|
845
|
-
const tn = /* @__PURE__ */ F(en, [["__scopeId", "data-v-f86c8393"]]), nn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", on = { class: "loading-wrap" },
|
|
845
|
+
const tn = /* @__PURE__ */ F(en, [["__scopeId", "data-v-f86c8393"]]), nn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC", on = { class: "loading-wrap" }, sn = ["src"], ln = /* @__PURE__ */ Q({
|
|
846
846
|
__name: "PageLoading",
|
|
847
847
|
props: {
|
|
848
848
|
delay: { default: "0.15s" }
|
|
@@ -850,15 +850,15 @@ const tn = /* @__PURE__ */ F(en, [["__scopeId", "data-v-f86c8393"]]), nn = "data
|
|
|
850
850
|
setup(t) {
|
|
851
851
|
return Ce((e) => ({
|
|
852
852
|
"8b276c48": t.delay
|
|
853
|
-
})), (e, n) => (
|
|
853
|
+
})), (e, n) => (A(), z("div", on, [
|
|
854
854
|
E("img", {
|
|
855
855
|
class: "loading-circle",
|
|
856
|
-
src:
|
|
857
|
-
}, null, 8,
|
|
856
|
+
src: h(nn)
|
|
857
|
+
}, null, 8, sn)
|
|
858
858
|
]));
|
|
859
859
|
}
|
|
860
860
|
});
|
|
861
|
-
const
|
|
861
|
+
const fo = /* @__PURE__ */ F(ln, [["__scopeId", "data-v-2affe82a"]]);
|
|
862
862
|
async function an(t) {
|
|
863
863
|
return new Promise((e) => setTimeout(() => e(), t));
|
|
864
864
|
}
|
|
@@ -870,73 +870,79 @@ const un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
870
870
|
duration: { default: 2e3 },
|
|
871
871
|
width: { default: void 0 },
|
|
872
872
|
maxWidth: { default: void 0 },
|
|
873
|
-
showIcon: { type: Boolean, default: !
|
|
873
|
+
showIcon: { type: Boolean, default: !1 },
|
|
874
874
|
icon: { default: void 0 },
|
|
875
875
|
showClose: { type: Boolean, default: !1 },
|
|
876
876
|
closeOnClick: { type: Boolean, default: !1 },
|
|
877
877
|
closeOnClickOverlay: { type: Boolean, default: !1 },
|
|
878
878
|
className: { default: "" },
|
|
879
879
|
overlayContentStyle: { default: void 0 },
|
|
880
|
-
|
|
880
|
+
captureEventP: { type: Boolean, default: !0 }
|
|
881
881
|
},
|
|
882
882
|
emits: ["close"],
|
|
883
883
|
setup(t, { emit: e }) {
|
|
884
|
-
const n = t, o = "lzc-loading-toast",
|
|
885
|
-
let
|
|
886
|
-
return n.
|
|
887
|
-
}), a =
|
|
888
|
-
let
|
|
889
|
-
|
|
890
|
-
|
|
884
|
+
const n = t, o = "lzc-loading-toast", s = N(() => {
|
|
885
|
+
let u = {};
|
|
886
|
+
return n.captureEventP && (u.pointerEvents = "none"), u;
|
|
887
|
+
}), a = N(() => {
|
|
888
|
+
let u = {
|
|
889
|
+
padding: "12px"
|
|
890
|
+
};
|
|
891
|
+
return n.icon && (u.padding = "20px"), n.width && (u.width = n.width), n.maxWidth && (u.maxWidth = n.maxWidth), n.overlayContentStyle && (u = {
|
|
892
|
+
...u,
|
|
891
893
|
...n.overlayContentStyle
|
|
892
|
-
}),
|
|
894
|
+
}), u;
|
|
895
|
+
}), l = N(() => {
|
|
896
|
+
let u = {};
|
|
897
|
+
return n.showClose && !n.icon && (u.paddingRight = "16px"), u;
|
|
893
898
|
});
|
|
894
|
-
function
|
|
899
|
+
function r() {
|
|
895
900
|
n.closeOnClickOverlay && e("close");
|
|
896
901
|
}
|
|
897
|
-
function
|
|
902
|
+
function c() {
|
|
898
903
|
n.closeOnClick && e("close");
|
|
899
904
|
}
|
|
900
|
-
return (
|
|
905
|
+
return (u, v) => (A(), ye(Le, {
|
|
901
906
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
902
907
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
903
908
|
}, {
|
|
904
909
|
default: xe(() => [
|
|
905
910
|
E("div", {
|
|
906
911
|
id: o,
|
|
907
|
-
style:
|
|
912
|
+
style: Y(h(s))
|
|
908
913
|
}, [
|
|
909
|
-
|
|
914
|
+
se(E("div", {
|
|
910
915
|
class: K(`${o} ${t.className}`),
|
|
911
|
-
onClick:
|
|
916
|
+
onClick: re(r, ["stop"])
|
|
912
917
|
}, [
|
|
913
918
|
E("div", {
|
|
914
919
|
class: K(`${o}-wrap`),
|
|
915
|
-
onClick:
|
|
920
|
+
onClick: re(c, ["stop"])
|
|
916
921
|
}, [
|
|
917
922
|
E("div", {
|
|
918
923
|
class: K(`${o}-content`),
|
|
919
|
-
style:
|
|
924
|
+
style: Y(h(a))
|
|
920
925
|
}, [
|
|
921
|
-
t.showClose ? (
|
|
926
|
+
t.showClose ? (A(), z("img", {
|
|
922
927
|
key: 0,
|
|
923
|
-
onClick: v[0] || (v[0] =
|
|
924
|
-
src:
|
|
928
|
+
onClick: v[0] || (v[0] = re((M) => e("close"), ["stop"])),
|
|
929
|
+
src: h(un),
|
|
925
930
|
class: K(`${o}-close`)
|
|
926
931
|
}, null, 10, dn)) : ee("", !0),
|
|
927
|
-
t.showIcon ? (
|
|
932
|
+
t.showIcon ? (A(), z("img", {
|
|
928
933
|
key: 1,
|
|
929
|
-
src: t.icon ||
|
|
934
|
+
src: t.icon || h(rn),
|
|
930
935
|
class: K(`${o}-icon`)
|
|
931
936
|
}, null, 10, vn)) : ee("", !0),
|
|
932
|
-
t.message ? (
|
|
937
|
+
t.message ? (A(), z("div", {
|
|
933
938
|
key: 2,
|
|
934
|
-
class: K(`${o}-message`)
|
|
935
|
-
|
|
939
|
+
class: K(`${o}-message`),
|
|
940
|
+
style: Y(h(l))
|
|
941
|
+
}, Oe(t.message), 7)) : ee("", !0)
|
|
936
942
|
], 6)
|
|
937
943
|
], 10, Mn)
|
|
938
944
|
], 10, cn), [
|
|
939
|
-
[
|
|
945
|
+
[he, t.visible]
|
|
940
946
|
])
|
|
941
947
|
], 4)
|
|
942
948
|
]),
|
|
@@ -944,8 +950,8 @@ const un = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
944
950
|
}));
|
|
945
951
|
}
|
|
946
952
|
});
|
|
947
|
-
const fn = /* @__PURE__ */ F(gn, [["__scopeId", "data-v-
|
|
948
|
-
class
|
|
953
|
+
const fn = /* @__PURE__ */ F(gn, [["__scopeId", "data-v-456fc2d8"]]);
|
|
954
|
+
class yn {
|
|
949
955
|
loadingToast;
|
|
950
956
|
el;
|
|
951
957
|
options;
|
|
@@ -955,10 +961,10 @@ class be {
|
|
|
955
961
|
this.options = { ...e, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = fn;
|
|
956
962
|
}
|
|
957
963
|
async show() {
|
|
958
|
-
const e = this.options, o = { ...e, onClose:
|
|
959
|
-
|
|
960
|
-
} },
|
|
961
|
-
|
|
964
|
+
const e = this.options, o = { ...e, onClose: () => {
|
|
965
|
+
this.close(), e?.onClose?.();
|
|
966
|
+
} }, s = le(this.loadingToast, o);
|
|
967
|
+
ce(s, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, e.duration !== 0 && setTimeout(() => {
|
|
962
968
|
this.destory();
|
|
963
969
|
}, e.duration), await an(e.duration + this.animateDuration);
|
|
964
970
|
}
|
|
@@ -973,50 +979,56 @@ class be {
|
|
|
973
979
|
}, this.animateDuration - 10);
|
|
974
980
|
}));
|
|
975
981
|
}
|
|
976
|
-
|
|
982
|
+
close() {
|
|
977
983
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
978
984
|
}
|
|
979
985
|
}
|
|
980
|
-
function
|
|
981
|
-
const n = !!e?.debug, o = e?.printErrorLog !== !1,
|
|
986
|
+
function yo(t, e) {
|
|
987
|
+
const n = !!e?.debug, o = e?.printErrorLog !== !1, s = e?.loading !== !1, a = e?.autoClose !== !1, l = e?.delay != null ? e.delay : 300, r = {
|
|
988
|
+
...e,
|
|
989
|
+
showIcon: e?.showIcon !== !1,
|
|
990
|
+
captureEventP: e?.captureEventP === !0
|
|
991
|
+
};
|
|
982
992
|
n && console.log(
|
|
983
|
-
"useDelayAsync - loading: %s autoClose: %s delay: %s
|
|
984
|
-
l,
|
|
985
|
-
a,
|
|
993
|
+
"useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",
|
|
986
994
|
s,
|
|
987
|
-
|
|
995
|
+
a,
|
|
996
|
+
l,
|
|
997
|
+
r
|
|
988
998
|
);
|
|
989
|
-
const
|
|
990
|
-
let
|
|
991
|
-
const v = new
|
|
992
|
-
async function
|
|
993
|
-
if (n && console.log(`useDelayAsync - handler - processing: ${
|
|
994
|
-
|
|
999
|
+
const c = D(!1);
|
|
1000
|
+
let u = null;
|
|
1001
|
+
const v = new yn(r);
|
|
1002
|
+
async function M(...f) {
|
|
1003
|
+
if (n && console.log(`useDelayAsync - handler - processing: ${c.value}`), !c.value) {
|
|
1004
|
+
c.value = !0, u = setTimeout(() => {
|
|
995
1005
|
n && console.log(
|
|
996
1006
|
"useDelayAsync - handler - setTimeout - loading: %s processing: %s",
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
),
|
|
1000
|
-
},
|
|
1007
|
+
s,
|
|
1008
|
+
c.value
|
|
1009
|
+
), s && (!c.value || v.show());
|
|
1010
|
+
}, l);
|
|
1001
1011
|
try {
|
|
1002
|
-
n && console.time("useDelayAsync - handler-execute-time")
|
|
1003
|
-
|
|
1004
|
-
n && console.timeEnd("useDelayAsync - handler-execute-time"),
|
|
1012
|
+
n && console.time("useDelayAsync - handler-execute-time");
|
|
1013
|
+
const d = await t(...f);
|
|
1014
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), await y(a), await e?.onSuccess?.(d);
|
|
1015
|
+
} catch (d) {
|
|
1016
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(d), await y(a), await e?.onError?.(d);
|
|
1005
1017
|
}
|
|
1006
1018
|
}
|
|
1007
1019
|
}
|
|
1008
|
-
async function
|
|
1009
|
-
n && console.log("useDelayAsync - close - closeLoading: ", f),
|
|
1020
|
+
async function y(f = !0) {
|
|
1021
|
+
n && console.log("useDelayAsync - close - closeLoading: ", f), c.value = !1, u && clearTimeout(u), u = null, f && await v.destory();
|
|
1010
1022
|
}
|
|
1011
|
-
return
|
|
1012
|
-
n && console.log("useDelayAsync - onBeforeUnmount - close"),
|
|
1023
|
+
return Tt(() => {
|
|
1024
|
+
n && console.log("useDelayAsync - onBeforeUnmount - close"), y();
|
|
1013
1025
|
}), {
|
|
1014
|
-
processing:
|
|
1015
|
-
handler:
|
|
1016
|
-
close:
|
|
1026
|
+
processing: c,
|
|
1027
|
+
handler: M,
|
|
1028
|
+
close: y
|
|
1017
1029
|
};
|
|
1018
1030
|
}
|
|
1019
|
-
const
|
|
1031
|
+
const Dn = ["onClick"], hn = /* @__PURE__ */ Q({
|
|
1020
1032
|
__name: "Toast",
|
|
1021
1033
|
props: {
|
|
1022
1034
|
message: null,
|
|
@@ -1024,7 +1036,7 @@ const yn = ["onClick"], Dn = /* @__PURE__ */ Q({
|
|
|
1024
1036
|
buttonClickEvent: null
|
|
1025
1037
|
},
|
|
1026
1038
|
setup(t) {
|
|
1027
|
-
const e = t, n = D(), o = D(),
|
|
1039
|
+
const e = t, n = D(), o = D(), s = D(), a = N(() => {
|
|
1028
1040
|
switch (e.position) {
|
|
1029
1041
|
case "top":
|
|
1030
1042
|
return 10;
|
|
@@ -1033,14 +1045,14 @@ const yn = ["onClick"], Dn = /* @__PURE__ */ Q({
|
|
|
1033
1045
|
case "bottom":
|
|
1034
1046
|
return 85;
|
|
1035
1047
|
}
|
|
1036
|
-
}),
|
|
1048
|
+
}), l = N(() => ({
|
|
1037
1049
|
position: "absolute",
|
|
1038
1050
|
borderRadius: "10px",
|
|
1039
1051
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
1040
1052
|
padding: "14px 19px",
|
|
1041
|
-
top: `calc(${a.value}% - ${
|
|
1053
|
+
top: `calc(${a.value}% - ${s.value}px)`,
|
|
1042
1054
|
left: `calc(50% - ${o.value}px)`
|
|
1043
|
-
})),
|
|
1055
|
+
})), r = N(() => ({
|
|
1044
1056
|
width: "fit-content",
|
|
1045
1057
|
display: "flex",
|
|
1046
1058
|
justifyContent: "center",
|
|
@@ -1048,44 +1060,44 @@ const yn = ["onClick"], Dn = /* @__PURE__ */ Q({
|
|
|
1048
1060
|
color: "white",
|
|
1049
1061
|
fontSize: "14px"
|
|
1050
1062
|
}));
|
|
1051
|
-
function
|
|
1063
|
+
function c() {
|
|
1052
1064
|
!e.buttonClickEvent || e.buttonClickEvent();
|
|
1053
1065
|
}
|
|
1054
|
-
return
|
|
1055
|
-
o.value = n.value.offsetWidth / 2,
|
|
1056
|
-
}), (
|
|
1057
|
-
onClick:
|
|
1066
|
+
return ze(() => {
|
|
1067
|
+
o.value = n.value.offsetWidth / 2, s.value = n.value.offsetHeight / 2;
|
|
1068
|
+
}), (u, v) => (A(), z("div", {
|
|
1069
|
+
onClick: re(c, ["stop"]),
|
|
1058
1070
|
id: "toastWrapper",
|
|
1059
1071
|
ref_key: "toastWrapper",
|
|
1060
1072
|
ref: n,
|
|
1061
1073
|
class: "toastWrapper",
|
|
1062
|
-
style:
|
|
1074
|
+
style: Y([h(l), { zIndex: 9999999 }])
|
|
1063
1075
|
}, [
|
|
1064
1076
|
E("div", {
|
|
1065
|
-
style:
|
|
1077
|
+
style: Y(h(r))
|
|
1066
1078
|
}, [
|
|
1067
1079
|
E("span", null, Oe(t.message), 1)
|
|
1068
1080
|
], 4)
|
|
1069
|
-
], 12,
|
|
1081
|
+
], 12, Dn));
|
|
1070
1082
|
}
|
|
1071
1083
|
});
|
|
1072
|
-
const Nn = /* @__PURE__ */ F(
|
|
1084
|
+
const Nn = /* @__PURE__ */ F(hn, [["__scopeId", "data-v-533e986b"]]), Pe = {
|
|
1073
1085
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1074
1086
|
position: "middle",
|
|
1075
1087
|
duration: 1500,
|
|
1076
1088
|
buttonClickEvent: () => {
|
|
1077
1089
|
}
|
|
1078
1090
|
};
|
|
1079
|
-
class
|
|
1091
|
+
class Do {
|
|
1080
1092
|
options;
|
|
1081
1093
|
container;
|
|
1082
1094
|
constructor(e) {
|
|
1083
1095
|
this.options = e, this.container = document.createElement("div");
|
|
1084
1096
|
}
|
|
1085
1097
|
present() {
|
|
1086
|
-
const e = X(X(Nn), { ...
|
|
1087
|
-
|
|
1088
|
-
const n = this.options.duration ||
|
|
1098
|
+
const e = X(X(Nn), { ...Pe, ...this.options });
|
|
1099
|
+
ce(e, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
1100
|
+
const n = this.options.duration || Pe.duration;
|
|
1089
1101
|
setTimeout(() => {
|
|
1090
1102
|
this.dismiss();
|
|
1091
1103
|
}, n);
|
|
@@ -1096,12 +1108,12 @@ class yo {
|
|
|
1096
1108
|
"#toastWrapper"
|
|
1097
1109
|
);
|
|
1098
1110
|
e.style.opacity = "0", e.style.transition = "opacity 0.4s ease-in", setTimeout(() => {
|
|
1099
|
-
this.container && (
|
|
1111
|
+
this.container && (ce(null, this.container), document.body.removeChild(this.container));
|
|
1100
1112
|
}, 500);
|
|
1101
1113
|
}
|
|
1102
1114
|
}
|
|
1103
1115
|
}
|
|
1104
|
-
const
|
|
1116
|
+
const mn = ["xlink:href", "fill", "color"], fe = /* @__PURE__ */ Q({
|
|
1105
1117
|
__name: "SvgIcon",
|
|
1106
1118
|
props: {
|
|
1107
1119
|
name: null,
|
|
@@ -1111,24 +1123,24 @@ const hn = ["xlink:href", "fill", "color"], fe = /* @__PURE__ */ Q({
|
|
|
1111
1123
|
height: null
|
|
1112
1124
|
},
|
|
1113
1125
|
setup(t) {
|
|
1114
|
-
const e = t, n =
|
|
1126
|
+
const e = t, n = N(() => `#${e.prefix}-${e.name}`), o = N(() => ({
|
|
1115
1127
|
width: `${e.width ?? e.height}px`,
|
|
1116
1128
|
height: `${e.height ?? e.width}px`,
|
|
1117
1129
|
aspectRatio: e.width && e.height ? void 0 : "1/1"
|
|
1118
1130
|
}));
|
|
1119
|
-
function
|
|
1120
|
-
const { style:
|
|
1121
|
-
return typeof
|
|
1131
|
+
function s(a) {
|
|
1132
|
+
const { style: l } = a;
|
|
1133
|
+
return typeof l == "object" ? l : {};
|
|
1122
1134
|
}
|
|
1123
|
-
return (a,
|
|
1135
|
+
return (a, l) => (A(), z("svg", {
|
|
1124
1136
|
"aria-hidden": "",
|
|
1125
|
-
style:
|
|
1137
|
+
style: Y({ ...h(o), ...s(a.$attrs) })
|
|
1126
1138
|
}, [
|
|
1127
1139
|
E("use", {
|
|
1128
|
-
"xlink:href":
|
|
1140
|
+
"xlink:href": h(n),
|
|
1129
1141
|
fill: t.color,
|
|
1130
1142
|
color: t.color
|
|
1131
|
-
}, null, 8,
|
|
1143
|
+
}, null, 8, mn)
|
|
1132
1144
|
], 4));
|
|
1133
1145
|
}
|
|
1134
1146
|
});
|
|
@@ -1137,70 +1149,70 @@ function Tn(t) {
|
|
|
1137
1149
|
containerEl: e,
|
|
1138
1150
|
sliderEl: n,
|
|
1139
1151
|
autoHeight: o,
|
|
1140
|
-
performance:
|
|
1152
|
+
performance: s = {},
|
|
1141
1153
|
maxHeightRatio: a = 0.9,
|
|
1142
|
-
observeMethod:
|
|
1143
|
-
} = t,
|
|
1144
|
-
let
|
|
1145
|
-
const M = D(0),
|
|
1154
|
+
observeMethod: l = "classList"
|
|
1155
|
+
} = t, r = D(!0), c = Ge(q, 100);
|
|
1156
|
+
let u, v = "";
|
|
1157
|
+
const M = D(0), y = D(0), f = D(0), d = D({
|
|
1146
1158
|
top: 0,
|
|
1147
1159
|
scrollTop: 0,
|
|
1148
1160
|
scrollHeight: 0,
|
|
1149
1161
|
clientHeight: 0
|
|
1150
|
-
}),
|
|
1162
|
+
}), I = D({
|
|
1151
1163
|
clientHeight: 0
|
|
1152
|
-
}), i =
|
|
1164
|
+
}), i = N(() => !!y.value), g = N(() => d.value.scrollHeight > d.value.clientHeight), T = N(() => o ? d.value.clientHeight - V.value : d.value.clientHeight - I.value.clientHeight), B = N(() => d.value.scrollHeight - d.value.clientHeight), Z = N(() => Math.max(
|
|
1153
1165
|
d.value.clientHeight / d.value.scrollHeight,
|
|
1154
1166
|
0.05
|
|
1155
|
-
)), V =
|
|
1167
|
+
)), V = N(() => Z.value > a ? 0 : Z.value * d.value.clientHeight), O = N(() => ({
|
|
1156
1168
|
willChange: "transform",
|
|
1157
|
-
transform: `translate3d(0,${
|
|
1169
|
+
transform: `translate3d(0,${f.value}px,0)`,
|
|
1158
1170
|
height: o ? `${V.value}px` : void 0
|
|
1159
1171
|
}));
|
|
1160
|
-
function
|
|
1161
|
-
G(),
|
|
1172
|
+
function L(C) {
|
|
1173
|
+
G(), y.value = C.clientY - n.value.getBoundingClientRect().top || 1, v = getComputedStyle(e.value).scrollBehavior, v === "smooth" && (e.value.style.scrollBehavior = "unset");
|
|
1162
1174
|
}
|
|
1163
1175
|
function _() {
|
|
1164
|
-
e.value.style.scrollBehavior =
|
|
1176
|
+
e.value.style.scrollBehavior = v, y.value = 0, c();
|
|
1165
1177
|
}
|
|
1166
1178
|
function G() {
|
|
1167
|
-
|
|
1179
|
+
r.value = !1;
|
|
1168
1180
|
}
|
|
1169
1181
|
function q() {
|
|
1170
|
-
i.value || (
|
|
1182
|
+
i.value || (r.value = !0);
|
|
1171
1183
|
}
|
|
1172
1184
|
function P(C) {
|
|
1173
1185
|
if (!i.value)
|
|
1174
1186
|
return;
|
|
1175
|
-
let S = C.clientY - d.value.top -
|
|
1176
|
-
S < 0 ?
|
|
1177
|
-
top:
|
|
1187
|
+
let S = C.clientY - d.value.top - y.value;
|
|
1188
|
+
S < 0 ? f.value = 0 : S >= T.value ? f.value = T.value : f.value = S, e.value.scrollTo({
|
|
1189
|
+
top: f.value / T.value * B.value
|
|
1178
1190
|
});
|
|
1179
1191
|
}
|
|
1180
1192
|
function te() {
|
|
1181
|
-
i.value ||
|
|
1193
|
+
i.value || ie();
|
|
1182
1194
|
}
|
|
1183
|
-
function
|
|
1184
|
-
cancelAnimationFrame(
|
|
1195
|
+
function ie() {
|
|
1196
|
+
cancelAnimationFrame(u), u = requestAnimationFrame(ne);
|
|
1185
1197
|
}
|
|
1186
1198
|
function ne() {
|
|
1187
|
-
e.value && (M.value =
|
|
1199
|
+
e.value && (M.value = s.scrollTop?.value ?? e.value.scrollTop, f.value = M.value / B.value * T.value);
|
|
1188
1200
|
}
|
|
1189
1201
|
function J(C) {
|
|
1190
1202
|
let S = "addEventListener";
|
|
1191
|
-
C === "add" ? S = "addEventListener" : S = "removeEventListener", n.value?.[S]("pointerdown",
|
|
1203
|
+
C === "add" ? S = "addEventListener" : S = "removeEventListener", n.value?.[S]("pointerdown", L, {
|
|
1192
1204
|
passive: !0
|
|
1193
1205
|
}), window[S]("pointermove", P, { passive: !0 }), window[S]("pointerup", _, { passive: !0 });
|
|
1194
1206
|
}
|
|
1195
|
-
const
|
|
1196
|
-
(
|
|
1207
|
+
const j = new MutationObserver((C) => {
|
|
1208
|
+
(l == "classList" || C.map((Ne) => Ne.oldValue).join().includes("height")) && w();
|
|
1197
1209
|
});
|
|
1198
1210
|
function w() {
|
|
1199
1211
|
d.value.top = e.value?.getBoundingClientRect().top ?? 0, d.value.scrollHeight = e.value?.scrollHeight ?? 0, d.value.clientHeight = e.value?.clientHeight ?? 0;
|
|
1200
1212
|
}
|
|
1201
1213
|
function b() {
|
|
1202
1214
|
G(), setTimeout(() => {
|
|
1203
|
-
|
|
1215
|
+
I.value.clientHeight = n.value?.clientHeight ?? 0, q();
|
|
1204
1216
|
}, 150);
|
|
1205
1217
|
}
|
|
1206
1218
|
function k() {
|
|
@@ -1209,30 +1221,30 @@ function Tn(t) {
|
|
|
1209
1221
|
passive: !0
|
|
1210
1222
|
}), J("add");
|
|
1211
1223
|
const C = {};
|
|
1212
|
-
|
|
1224
|
+
l === "classList" ? Object.assign(C, { subtree: !0, childList: !0 }) : Object.assign(C, {
|
|
1213
1225
|
subtree: !0,
|
|
1214
1226
|
attributeOldValue: !0,
|
|
1215
1227
|
attributeFilter: ["style"]
|
|
1216
|
-
}),
|
|
1228
|
+
}), j.observe(e.value, C), setTimeout(() => {
|
|
1217
1229
|
w();
|
|
1218
1230
|
}, 100), b();
|
|
1219
1231
|
} else
|
|
1220
1232
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: e, sliderEl: n });
|
|
1221
1233
|
}
|
|
1222
1234
|
return R(M, () => {
|
|
1223
|
-
G(),
|
|
1235
|
+
G(), c();
|
|
1224
1236
|
}), {
|
|
1225
|
-
isScrollEnd:
|
|
1237
|
+
isScrollEnd: r,
|
|
1226
1238
|
isDragSlider: i,
|
|
1227
|
-
offsetTop:
|
|
1239
|
+
offsetTop: f,
|
|
1228
1240
|
scrollTop: M,
|
|
1229
|
-
scrollable:
|
|
1241
|
+
scrollable: g,
|
|
1230
1242
|
sliderPos: O,
|
|
1231
1243
|
init: k,
|
|
1232
1244
|
modifySliderEventListener: J
|
|
1233
1245
|
};
|
|
1234
1246
|
}
|
|
1235
|
-
const
|
|
1247
|
+
const pn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), wn = /* @__PURE__ */ pn(() => /* @__PURE__ */ E("div", { class: "default-slider" }, null, -1)), In = /* @__PURE__ */ Q({
|
|
1236
1248
|
__name: "ScrollBar",
|
|
1237
1249
|
props: {
|
|
1238
1250
|
containerEl: null,
|
|
@@ -1242,13 +1254,13 @@ const mn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), pn = /* @__PURE__ *
|
|
|
1242
1254
|
performance: null
|
|
1243
1255
|
},
|
|
1244
1256
|
setup(t, { expose: e }) {
|
|
1245
|
-
const n = t, o = !!pt().default,
|
|
1257
|
+
const n = t, o = !!pt().default, s = D(null), a = N(() => n.containerEl), l = Tn({
|
|
1246
1258
|
containerEl: a,
|
|
1247
|
-
sliderEl:
|
|
1259
|
+
sliderEl: s,
|
|
1248
1260
|
autoHeight: o ? n.autoHeight : !0,
|
|
1249
1261
|
performance: n.performance,
|
|
1250
1262
|
observeMethod: n.observeMethod
|
|
1251
|
-
}), { scrollable:
|
|
1263
|
+
}), { scrollable: r, isScrollEnd: c, sliderPos: u } = l, v = D(!1), M = n.autoHide ? N(() => v.value || !c.value) : N(() => r.value), { load: y } = _e(
|
|
1252
1264
|
`.hide-scrollbar {
|
|
1253
1265
|
scrollbar-width: none;
|
|
1254
1266
|
-ms-overflow-style: none;
|
|
@@ -1258,47 +1270,47 @@ const mn = (t) => (Me("data-v-efefe52c"), t = t(), de(), t), pn = /* @__PURE__ *
|
|
|
1258
1270
|
}`,
|
|
1259
1271
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1260
1272
|
);
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1273
|
+
ae(() => {
|
|
1274
|
+
y(), ze(() => {
|
|
1275
|
+
l.init();
|
|
1264
1276
|
});
|
|
1265
|
-
}),
|
|
1266
|
-
|
|
1277
|
+
}), He(() => {
|
|
1278
|
+
l.modifySliderEventListener("remove");
|
|
1267
1279
|
});
|
|
1268
|
-
function
|
|
1269
|
-
|
|
1280
|
+
function f() {
|
|
1281
|
+
v.value = !0;
|
|
1270
1282
|
}
|
|
1271
1283
|
function d() {
|
|
1272
|
-
|
|
1284
|
+
v.value = !1;
|
|
1273
1285
|
}
|
|
1274
|
-
return e({ uScrollBarReturn:
|
|
1286
|
+
return e({ uScrollBarReturn: l }), (I, i) => (A(), ye(Le, null, {
|
|
1275
1287
|
default: xe(() => [
|
|
1276
|
-
|
|
1288
|
+
se(E("div", {
|
|
1277
1289
|
ref_key: "sliderRef",
|
|
1278
|
-
ref:
|
|
1290
|
+
ref: s,
|
|
1279
1291
|
class: "slider-wrapper",
|
|
1280
|
-
onMouseenter:
|
|
1292
|
+
onMouseenter: f,
|
|
1281
1293
|
onMouseleave: d,
|
|
1282
|
-
style:
|
|
1294
|
+
style: Y(h(u))
|
|
1283
1295
|
}, [
|
|
1284
|
-
De(
|
|
1285
|
-
|
|
1296
|
+
De(I.$slots, "default", {}, () => [
|
|
1297
|
+
wn
|
|
1286
1298
|
], !0)
|
|
1287
1299
|
], 36), [
|
|
1288
|
-
[
|
|
1300
|
+
[he, h(M)]
|
|
1289
1301
|
])
|
|
1290
1302
|
]),
|
|
1291
1303
|
_: 3
|
|
1292
1304
|
}));
|
|
1293
1305
|
}
|
|
1294
1306
|
});
|
|
1295
|
-
const
|
|
1307
|
+
const ho = /* @__PURE__ */ F(In, [["__scopeId", "data-v-efefe52c"]]), En = (t) => (Me("data-v-18377f18"), t = t(), de(), t), An = { class: "pull-refresh" }, jn = {
|
|
1296
1308
|
key: 0,
|
|
1297
1309
|
class: "pull-arrow-circle"
|
|
1298
1310
|
}, zn = {
|
|
1299
1311
|
key: 0,
|
|
1300
1312
|
class: "box-load"
|
|
1301
|
-
}, Ln = { class: "left-load" },
|
|
1313
|
+
}, Ln = { class: "left-load" }, xn = { class: "right-load" }, Cn = /* @__PURE__ */ En(() => /* @__PURE__ */ E("div", { class: "among-load" }, null, -1)), On = { class: "pull-arrow" }, _n = { key: 1 }, Sn = /* @__PURE__ */ Q({
|
|
1302
1314
|
__name: "PullRefresh",
|
|
1303
1315
|
props: {
|
|
1304
1316
|
refresh: null,
|
|
@@ -1307,81 +1319,81 @@ const Do = /* @__PURE__ */ F(wn, [["__scopeId", "data-v-efefe52c"]]), In = (t) =
|
|
|
1307
1319
|
pullRefreshContainer: null
|
|
1308
1320
|
},
|
|
1309
1321
|
setup(t) {
|
|
1310
|
-
const e = t, n = 0.7, o = "#2EC1CC",
|
|
1311
|
-
transition: `${
|
|
1312
|
-
transform: `translate3d(0,${
|
|
1313
|
-
})),
|
|
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), M = D(0), y = D(0), f = D(0), d = D(), I = N(() => e.scrollTop), i = N(() => ({
|
|
1323
|
+
transition: `${y.value}ms`,
|
|
1324
|
+
transform: `translate3d(0,${s.value}px, 0) scale(${a.value})`
|
|
1325
|
+
})), g = N(() => ({
|
|
1314
1326
|
borderColor: o,
|
|
1315
|
-
transition:
|
|
1316
|
-
transform: `rotate(${100 +
|
|
1317
|
-
opacity:
|
|
1327
|
+
transition: y.value,
|
|
1328
|
+
transform: `rotate(${100 + l.value}deg)`,
|
|
1329
|
+
opacity: r.value
|
|
1318
1330
|
}));
|
|
1319
|
-
R(
|
|
1320
|
-
|
|
1321
|
-
}), R(
|
|
1322
|
-
if (
|
|
1331
|
+
R(f, (L) => {
|
|
1332
|
+
L === 0 && (s.value = -50, r.value = 0.3);
|
|
1333
|
+
}), R(v, (L) => {
|
|
1334
|
+
if (f.value === 2)
|
|
1323
1335
|
return;
|
|
1324
|
-
const _ = Math.pow(
|
|
1325
|
-
_ === 0 && (
|
|
1336
|
+
const _ = Math.pow(L, n);
|
|
1337
|
+
_ === 0 && (s.value = -50), _ <= 50 && _ > 0 && (s.value = _ - 45, l.value = Math.pow(_, 1.5), _ > 15 ? c.value = !0 : c.value = !1), _ > 50 && (s.value = 5, r.value = 1, f.value);
|
|
1326
1338
|
});
|
|
1327
|
-
const
|
|
1328
|
-
|
|
1329
|
-
}, Z = (
|
|
1330
|
-
const _ =
|
|
1331
|
-
|
|
1339
|
+
const T = D(0), B = (L) => {
|
|
1340
|
+
T.value = L.touches[0].pageY;
|
|
1341
|
+
}, Z = (L) => {
|
|
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), M.value = 0, O.value.style.transition = `${M.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()));
|
|
1332
1344
|
}, V = () => {
|
|
1333
|
-
if (e.refreshOff || !e?.refresh ||
|
|
1345
|
+
if (e.refreshOff || !e?.refresh || f.value === 2)
|
|
1334
1346
|
return;
|
|
1335
|
-
|
|
1336
|
-
const
|
|
1337
|
-
O.value.style.transition = `${M.value}ms`,
|
|
1347
|
+
u.value = 0, M.value = 300;
|
|
1348
|
+
const L = Math.pow(v.value, n);
|
|
1349
|
+
O.value.style.transition = `${M.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(() => {
|
|
1338
1350
|
d.value = "\u5237\u65B0\u6210\u529F";
|
|
1339
1351
|
}).catch(() => {
|
|
1340
1352
|
d.value = "\u5237\u65B0\u5931\u8D25";
|
|
1341
1353
|
}).finally(() => {
|
|
1342
1354
|
setTimeout(() => {
|
|
1343
|
-
|
|
1344
|
-
|
|
1355
|
+
f.value = 0, v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1356
|
+
v.value,
|
|
1345
1357
|
n
|
|
1346
1358
|
)}px, 0)`, setTimeout(() => {
|
|
1347
1359
|
d.value = void 0;
|
|
1348
|
-
},
|
|
1360
|
+
}, y.value);
|
|
1349
1361
|
}, 600);
|
|
1350
|
-
})) : (
|
|
1362
|
+
})) : (v.value = 0, O.value.style.transform = `translate3d(0, ${Math.pow(v.value, n)}px, 0)`);
|
|
1351
1363
|
}, O = D(null);
|
|
1352
|
-
return
|
|
1364
|
+
return ae(() => {
|
|
1353
1365
|
e?.refreshOff || (O.value = document.querySelector(
|
|
1354
1366
|
e.pullRefreshContainer
|
|
1355
1367
|
), O.value?.addEventListener("touchstart", B), O.value?.addEventListener("touchmove", Z), O.value?.addEventListener("touchend", V));
|
|
1356
|
-
}), (
|
|
1368
|
+
}), (L, _) => (A(), z("div", An, [
|
|
1357
1369
|
E("div", {
|
|
1358
1370
|
class: "pull-refresh-box",
|
|
1359
|
-
style:
|
|
1371
|
+
style: Y(h(i))
|
|
1360
1372
|
}, [
|
|
1361
|
-
d.value ? (
|
|
1362
|
-
|
|
1373
|
+
d.value ? (A(), z("div", _n, Oe(d.value), 1)) : (A(), z("div", jn, [
|
|
1374
|
+
f.value == 2 ? (A(), z("div", zn, [
|
|
1363
1375
|
E("div", Ln, [
|
|
1364
1376
|
E("div", {
|
|
1365
1377
|
class: "left-circle",
|
|
1366
|
-
style:
|
|
1378
|
+
style: Y({ backgroundColor: o })
|
|
1367
1379
|
}, null, 4)
|
|
1368
1380
|
]),
|
|
1369
|
-
E("div",
|
|
1381
|
+
E("div", xn, [
|
|
1370
1382
|
E("div", {
|
|
1371
1383
|
class: "right-circle",
|
|
1372
|
-
style:
|
|
1384
|
+
style: Y({ backgroundColor: o })
|
|
1373
1385
|
}, null, 4)
|
|
1374
1386
|
]),
|
|
1375
|
-
|
|
1376
|
-
])) : (
|
|
1387
|
+
Cn
|
|
1388
|
+
])) : (A(), z("div", {
|
|
1377
1389
|
key: 1,
|
|
1378
1390
|
class: "pull-circle-line",
|
|
1379
|
-
style:
|
|
1391
|
+
style: Y(h(g))
|
|
1380
1392
|
}, [
|
|
1381
|
-
E("div",
|
|
1393
|
+
E("div", On, [
|
|
1382
1394
|
E("div", {
|
|
1383
|
-
class: K(["arrows", { opacity:
|
|
1384
|
-
style:
|
|
1395
|
+
class: K(["arrows", { opacity: c.value }]),
|
|
1396
|
+
style: Y({ borderBottomColor: o })
|
|
1385
1397
|
}, null, 6)
|
|
1386
1398
|
])
|
|
1387
1399
|
], 4))
|
|
@@ -1390,10 +1402,10 @@ const Do = /* @__PURE__ */ F(wn, [["__scopeId", "data-v-efefe52c"]]), In = (t) =
|
|
|
1390
1402
|
]));
|
|
1391
1403
|
}
|
|
1392
1404
|
});
|
|
1393
|
-
const
|
|
1405
|
+
const bn = /* @__PURE__ */ F(Sn, [["__scopeId", "data-v-18377f18"]]), kn = {
|
|
1394
1406
|
inheritAttrs: !1
|
|
1395
|
-
},
|
|
1396
|
-
...
|
|
1407
|
+
}, Qn = /* @__PURE__ */ Q({
|
|
1408
|
+
...kn,
|
|
1397
1409
|
__name: "VirtualList",
|
|
1398
1410
|
props: {
|
|
1399
1411
|
data: null,
|
|
@@ -1404,29 +1416,29 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1404
1416
|
},
|
|
1405
1417
|
emits: ["scrollEnd"],
|
|
1406
1418
|
setup(t, { expose: e, emit: n }) {
|
|
1407
|
-
const o = t,
|
|
1408
|
-
itemHeight: (
|
|
1419
|
+
const o = t, s = Ht(wt(o, "data"), {
|
|
1420
|
+
itemHeight: (y) => o.itemHeight(o.data[y]),
|
|
1409
1421
|
overscan: o.overscan,
|
|
1410
1422
|
scrollEndHook: () => {
|
|
1411
1423
|
n("scrollEnd");
|
|
1412
1424
|
}
|
|
1413
1425
|
}), {
|
|
1414
1426
|
list: a,
|
|
1415
|
-
containerProps:
|
|
1416
|
-
wrapperProps:
|
|
1417
|
-
innerProps:
|
|
1418
|
-
getItemHeightData:
|
|
1419
|
-
scrollTop:
|
|
1420
|
-
} =
|
|
1427
|
+
containerProps: l,
|
|
1428
|
+
wrapperProps: r,
|
|
1429
|
+
innerProps: c,
|
|
1430
|
+
getItemHeightData: u,
|
|
1431
|
+
scrollTop: v
|
|
1432
|
+
} = s;
|
|
1421
1433
|
e({
|
|
1422
|
-
vListReturn:
|
|
1434
|
+
vListReturn: s
|
|
1423
1435
|
});
|
|
1424
1436
|
const M = "virtualListWrapper" + new Date().getTime();
|
|
1425
|
-
return (
|
|
1426
|
-
le(
|
|
1437
|
+
return (y, f) => (A(), z(Ie, null, [
|
|
1438
|
+
le(bn, {
|
|
1427
1439
|
refresh: t.refresh,
|
|
1428
1440
|
refreshOff: t.refreshOff,
|
|
1429
|
-
scrollTop:
|
|
1441
|
+
scrollTop: h(v),
|
|
1430
1442
|
pullRefreshContainer: "#" + M
|
|
1431
1443
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1432
1444
|
E("div", {
|
|
@@ -1434,21 +1446,21 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1434
1446
|
id: M
|
|
1435
1447
|
}, [
|
|
1436
1448
|
E("div", ue({
|
|
1437
|
-
onScrollPassive:
|
|
1438
|
-
ref:
|
|
1449
|
+
onScrollPassive: f[0] || (f[0] = (...d) => h(l).onScroll && h(l).onScroll(...d)),
|
|
1450
|
+
ref: h(l).ref,
|
|
1439
1451
|
class: "virtualList"
|
|
1440
|
-
},
|
|
1441
|
-
E("div", pe(we(
|
|
1442
|
-
E("div", pe(we(
|
|
1443
|
-
(
|
|
1452
|
+
}, y.$attrs), [
|
|
1453
|
+
E("div", pe(we(h(r))), [
|
|
1454
|
+
E("div", pe(we(h(c))), [
|
|
1455
|
+
(A(!0), z(Ie, null, It(h(a), ({ index: d, data: I }) => (A(), z("div", {
|
|
1444
1456
|
key: d,
|
|
1445
|
-
style:
|
|
1446
|
-
height: `${
|
|
1457
|
+
style: Y({
|
|
1458
|
+
height: `${h(u)(d).height}px`,
|
|
1447
1459
|
display: "flex"
|
|
1448
1460
|
})
|
|
1449
1461
|
}, [
|
|
1450
|
-
De(
|
|
1451
|
-
data:
|
|
1462
|
+
De(y.$slots, "default", {
|
|
1463
|
+
data: I,
|
|
1452
1464
|
index: d
|
|
1453
1465
|
}, void 0, !0)
|
|
1454
1466
|
], 4))), 128))
|
|
@@ -1459,7 +1471,7 @@ const Sn = /* @__PURE__ */ F(_n, [["__scopeId", "data-v-18377f18"]]), bn = {
|
|
|
1459
1471
|
], 64));
|
|
1460
1472
|
}
|
|
1461
1473
|
});
|
|
1462
|
-
const No = /* @__PURE__ */ F(
|
|
1474
|
+
const No = /* @__PURE__ */ F(Qn, [["__scopeId", "data-v-e0fb787f"]]), Se = (t) => (Me("data-v-c986249d"), t = t(), de(), t), Bn = { style: { position: "absolute" } }, Un = /* @__PURE__ */ Se(() => /* @__PURE__ */ E("div", { class: "wrapper" }, null, -1)), Yn = ["width", "height"], $n = /* @__PURE__ */ Se(() => /* @__PURE__ */ E("title", null, "logo", -1)), Rn = /* @__PURE__ */ Se(() => /* @__PURE__ */ E("g", {
|
|
1463
1475
|
id: "group-1",
|
|
1464
1476
|
stroke: "none",
|
|
1465
1477
|
"stroke-width": "1",
|
|
@@ -1471,10 +1483,10 @@ const No = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-e0fb787f"]]), ke = (t) =
|
|
|
1471
1483
|
id: "path-1",
|
|
1472
1484
|
fill: "#FFF"
|
|
1473
1485
|
})
|
|
1474
|
-
], -1)),
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
],
|
|
1486
|
+
], -1)), Pn = [
|
|
1487
|
+
$n,
|
|
1488
|
+
Rn
|
|
1489
|
+
], Fn = /* @__PURE__ */ Q({
|
|
1478
1490
|
__name: "Loading",
|
|
1479
1491
|
props: {
|
|
1480
1492
|
width: { default: "90" },
|
|
@@ -1487,20 +1499,20 @@ const No = /* @__PURE__ */ F(kn, [["__scopeId", "data-v-e0fb787f"]]), ke = (t) =
|
|
|
1487
1499
|
"5e400569": n
|
|
1488
1500
|
}));
|
|
1489
1501
|
const n = `${e.duration}ms`;
|
|
1490
|
-
return (o,
|
|
1491
|
-
|
|
1492
|
-
(
|
|
1502
|
+
return (o, s) => (A(), z("div", Bn, [
|
|
1503
|
+
Un,
|
|
1504
|
+
(A(), z("svg", {
|
|
1493
1505
|
style: { position: "relative" },
|
|
1494
1506
|
width: t.width,
|
|
1495
1507
|
height: t.height,
|
|
1496
1508
|
viewBox: "0 0 260 260",
|
|
1497
1509
|
version: "1.1",
|
|
1498
1510
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1499
|
-
},
|
|
1511
|
+
}, Pn, 8, Yn))
|
|
1500
1512
|
]));
|
|
1501
1513
|
}
|
|
1502
1514
|
});
|
|
1503
|
-
const
|
|
1515
|
+
const mo = /* @__PURE__ */ F(Fn, [["__scopeId", "data-v-c986249d"]]), Hn = [
|
|
1504
1516
|
"image/avif",
|
|
1505
1517
|
"image/bmp",
|
|
1506
1518
|
"image/jpeg",
|
|
@@ -1512,7 +1524,7 @@ const ho = /* @__PURE__ */ F(Pn, [["__scopeId", "data-v-c986249d"]]), Fn = [
|
|
|
1512
1524
|
"image/tiff",
|
|
1513
1525
|
"image/webp",
|
|
1514
1526
|
"image/wbmp"
|
|
1515
|
-
],
|
|
1527
|
+
], Wn = [
|
|
1516
1528
|
"image/bmp",
|
|
1517
1529
|
"image/jpeg",
|
|
1518
1530
|
"image/gif",
|
|
@@ -1521,21 +1533,34 @@ const ho = /* @__PURE__ */ F(Pn, [["__scopeId", "data-v-c986249d"]]), Fn = [
|
|
|
1521
1533
|
"image/png",
|
|
1522
1534
|
"image/webp"
|
|
1523
1535
|
];
|
|
1524
|
-
function
|
|
1525
|
-
const n = D(
|
|
1536
|
+
function rt(t, e) {
|
|
1537
|
+
const n = D(t?.value), o = N(() => n.value?.startsWith("/_lzc")), s = D(!1), a = N(() => s.value), l = N(() => {
|
|
1538
|
+
const c = e?.value;
|
|
1539
|
+
return !c || c.startsWith("video/") ? !0 : c.startsWith("image/") ? o.value ? Hn.includes(c) : Wn.includes(c) : !1;
|
|
1540
|
+
});
|
|
1526
1541
|
t && R(t, (c) => {
|
|
1527
|
-
|
|
1542
|
+
n.value = c, s.value = !1;
|
|
1528
1543
|
});
|
|
1529
1544
|
function r() {
|
|
1530
|
-
|
|
1545
|
+
s.value = !0;
|
|
1531
1546
|
}
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1547
|
+
return {
|
|
1548
|
+
imgSrc: n,
|
|
1549
|
+
isError: s,
|
|
1550
|
+
hasError: a,
|
|
1551
|
+
isSupport: l,
|
|
1552
|
+
handleError: r
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
function ct() {
|
|
1556
|
+
return { vImageCancel: {
|
|
1557
|
+
beforeUnmount(e) {
|
|
1558
|
+
!e || (e.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
|
1559
|
+
}
|
|
1560
|
+
} };
|
|
1536
1561
|
}
|
|
1537
|
-
const
|
|
1538
|
-
...
|
|
1562
|
+
const Zn = (t) => (Me("data-v-5ec970bf"), t = t(), de(), t), Vn = ["title"], Gn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ E("span", { class: "text-[14px] text-[#ACACAC]" }, "\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301", -1)), Kn = ["src"], Xn = ["src"], qn = ["title"], Jn = { inheritAttrs: !1 }, eo = /* @__PURE__ */ Q({
|
|
1563
|
+
...Jn,
|
|
1539
1564
|
__name: "Image",
|
|
1540
1565
|
props: {
|
|
1541
1566
|
src: null,
|
|
@@ -1545,140 +1570,141 @@ const Wn = (t) => (Me("data-v-9ecf66ee"), t = t(), de(), t), Zn = ["title"], Vn
|
|
|
1545
1570
|
isFullyLoadedVisible: { type: Boolean }
|
|
1546
1571
|
},
|
|
1547
1572
|
setup(t) {
|
|
1548
|
-
const e = t, n = D(!1), o = D(!1), { src:
|
|
1549
|
-
l,
|
|
1550
|
-
a
|
|
1551
|
-
), { LoadingComp: f } = ct({
|
|
1573
|
+
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: M } = ct(), { LoadingComp: y } = ut({
|
|
1552
1574
|
component: tn,
|
|
1553
1575
|
delay: 500
|
|
1554
1576
|
});
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1577
|
+
function f() {
|
|
1578
|
+
o.value = !0, setTimeout(() => {
|
|
1579
|
+
s.value = !0;
|
|
1580
|
+
}, 50);
|
|
1581
|
+
}
|
|
1582
|
+
function d(i) {
|
|
1583
|
+
i && f(), n.value = !0;
|
|
1558
1584
|
}
|
|
1559
|
-
function
|
|
1560
|
-
|
|
1585
|
+
function I(i) {
|
|
1586
|
+
i ? v() : f(), n.value = !0;
|
|
1561
1587
|
}
|
|
1562
|
-
return (
|
|
1563
|
-
n.value ? ee("", !0) : (
|
|
1564
|
-
|
|
1565
|
-
title:
|
|
1588
|
+
return (i, g) => (A(), z(Ie, null, [
|
|
1589
|
+
n.value ? ee("", !0) : (A(), ye(h(y), { key: 0 })),
|
|
1590
|
+
h(c) ? h(u) ? (A(), z("div", ue({ key: 3 }, i.$attrs, {
|
|
1591
|
+
title: h(r),
|
|
1566
1592
|
class: "tip-wrap"
|
|
1567
1593
|
}), [
|
|
1568
1594
|
le(fe, {
|
|
1569
1595
|
class: "w-[92px] h-[92px]",
|
|
1570
1596
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1571
1597
|
})
|
|
1572
|
-
], 16,
|
|
1598
|
+
], 16, qn)) : De(i.$slots, "default", {
|
|
1573
1599
|
key: 2,
|
|
1574
|
-
src:
|
|
1575
|
-
onLoad:
|
|
1576
|
-
onError:
|
|
1600
|
+
src: h(r),
|
|
1601
|
+
onLoad: d,
|
|
1602
|
+
onError: I
|
|
1577
1603
|
}, () => [
|
|
1578
|
-
t.thumbnail && !
|
|
1579
|
-
|
|
1580
|
-
|
|
1604
|
+
t.thumbnail && !s.value ? se((A(), z("img", ue({ key: 0 }, i.$attrs, {
|
|
1605
|
+
class: "preview-blur",
|
|
1606
|
+
onLoad: g[0] || (g[0] = (T) => d()),
|
|
1607
|
+
onError: g[1] || (g[1] = (T) => I()),
|
|
1581
1608
|
src: t.thumbnail
|
|
1582
|
-
}), null, 16, Gn)) : ee("", !0),
|
|
1583
|
-
t.isShowSrc || o.value ? ce((j(), L("img", ue({ key: 1 }, N.$attrs, {
|
|
1584
|
-
ref_key: "el",
|
|
1585
|
-
ref: s,
|
|
1586
|
-
onLoad: i[2] || (i[2] = (y) => g(!0)),
|
|
1587
|
-
onError: i[3] || (i[3] = (y) => d(!0)),
|
|
1588
|
-
src: m(u)
|
|
1589
1609
|
}), null, 16, Kn)), [
|
|
1590
|
-
[
|
|
1610
|
+
[h(M)]
|
|
1611
|
+
]) : ee("", !0),
|
|
1612
|
+
t.isShowSrc || o.value ? se((A(), z("img", ue({ key: 1 }, i.$attrs, {
|
|
1613
|
+
class: "origin-animation",
|
|
1614
|
+
onLoad: g[2] || (g[2] = (T) => d(!0)),
|
|
1615
|
+
onError: g[3] || (g[3] = (T) => I(!0)),
|
|
1616
|
+
src: h(r)
|
|
1617
|
+
}), null, 16, Xn)), [
|
|
1618
|
+
[h(M)],
|
|
1619
|
+
[he, o.value]
|
|
1591
1620
|
]) : ee("", !0)
|
|
1592
|
-
], !0) : (
|
|
1593
|
-
title:
|
|
1621
|
+
], !0) : (A(), z("div", ue({ key: 1 }, i.$attrs, {
|
|
1622
|
+
title: h(r),
|
|
1594
1623
|
class: "tip-wrap"
|
|
1595
1624
|
}), [
|
|
1596
1625
|
le(fe, {
|
|
1597
1626
|
class: "icon",
|
|
1598
1627
|
name: "\u4E0D\u652F\u6301\u663E\u793A"
|
|
1599
1628
|
}),
|
|
1600
|
-
|
|
1601
|
-
], 16,
|
|
1629
|
+
Gn
|
|
1630
|
+
], 16, Vn))
|
|
1602
1631
|
], 64));
|
|
1603
1632
|
}
|
|
1604
1633
|
});
|
|
1605
|
-
const To = /* @__PURE__ */ F(
|
|
1634
|
+
const To = /* @__PURE__ */ F(eo, [["__scopeId", "data-v-5ec970bf"]]), to = ["title"], no = ["src"], oo = ["title"], so = /* @__PURE__ */ Q({
|
|
1606
1635
|
__name: "Thumbnail",
|
|
1607
1636
|
props: {
|
|
1608
1637
|
src: null,
|
|
1609
1638
|
mime: null
|
|
1610
1639
|
},
|
|
1611
1640
|
setup(t) {
|
|
1612
|
-
const e = t, n = D(!1), { src: o, mime:
|
|
1613
|
-
|
|
1614
|
-
l
|
|
1615
|
-
);
|
|
1616
|
-
return _e(v), (M, f) => m(r) ? m(u) ? (j(), L("div", {
|
|
1641
|
+
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();
|
|
1642
|
+
return (v, M) => h(r) ? h(l) ? (A(), z("div", {
|
|
1617
1643
|
key: 2,
|
|
1618
|
-
title:
|
|
1644
|
+
title: h(a),
|
|
1619
1645
|
class: "flex items-center justify-center"
|
|
1620
1646
|
}, [
|
|
1621
1647
|
le(fe, {
|
|
1622
1648
|
class: "w-[30%] h-[30%]",
|
|
1623
1649
|
name: "\u56FE\u7247\u635F\u574F"
|
|
1624
1650
|
})
|
|
1625
|
-
], 8,
|
|
1651
|
+
], 8, oo)) : se((A(), z("img", {
|
|
1626
1652
|
key: 1,
|
|
1627
|
-
|
|
1628
|
-
ref: a,
|
|
1653
|
+
ref: "el",
|
|
1629
1654
|
fetchpriority: "high",
|
|
1630
|
-
onLoad:
|
|
1631
|
-
onError:
|
|
1632
|
-
src:
|
|
1633
|
-
}, null, 40,
|
|
1634
|
-
[
|
|
1635
|
-
|
|
1655
|
+
onLoad: M[0] || (M[0] = (y) => n.value = !0),
|
|
1656
|
+
onError: M[1] || (M[1] = (...y) => h(c) && h(c)(...y)),
|
|
1657
|
+
src: h(a)
|
|
1658
|
+
}, null, 40, no)), [
|
|
1659
|
+
[h(u)],
|
|
1660
|
+
[he, n.value]
|
|
1661
|
+
]) : (A(), z("div", {
|
|
1636
1662
|
key: 0,
|
|
1637
|
-
title:
|
|
1663
|
+
title: h(a),
|
|
1638
1664
|
class: "flex items-center justify-center"
|
|
1639
1665
|
}, [
|
|
1640
1666
|
le(fe, {
|
|
1641
1667
|
class: "w-[30%] h-[30%]",
|
|
1642
1668
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
1643
1669
|
})
|
|
1644
|
-
], 8,
|
|
1670
|
+
], 8, to));
|
|
1645
1671
|
}
|
|
1646
1672
|
});
|
|
1647
|
-
const
|
|
1673
|
+
const po = /* @__PURE__ */ F(so, [["__scopeId", "data-v-8cb3d6f8"]]);
|
|
1648
1674
|
export {
|
|
1649
1675
|
tn as DefaultLoading,
|
|
1650
1676
|
To as Image,
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1677
|
+
mo as Loading,
|
|
1678
|
+
yn as LoadingToast,
|
|
1679
|
+
fo as PageLoading,
|
|
1680
|
+
bn as PullRefresh,
|
|
1681
|
+
ho as ScrollBar,
|
|
1656
1682
|
fe as SvgIcon,
|
|
1657
|
-
|
|
1658
|
-
|
|
1683
|
+
po as Thumbnail,
|
|
1684
|
+
Do as ToastCreator,
|
|
1659
1685
|
No as VirtualList,
|
|
1660
|
-
|
|
1686
|
+
tt as allSelectedKey,
|
|
1661
1687
|
Zt as closeDialogKey,
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1688
|
+
vo as dialogController,
|
|
1689
|
+
io as diff,
|
|
1690
|
+
lt as isAllSelectedKey,
|
|
1691
|
+
et as isSelectedKey,
|
|
1692
|
+
ot as selectAllKey,
|
|
1693
|
+
nt as selectKey,
|
|
1694
|
+
at as selectedCountKey,
|
|
1695
|
+
qe as toggleAllKey,
|
|
1696
|
+
Je as toggleKey,
|
|
1697
|
+
je as unselectAllKey,
|
|
1698
|
+
st as unselectKey,
|
|
1699
|
+
yo as useDelayAsync,
|
|
1700
|
+
go as useDelayLoad,
|
|
1701
|
+
ut as useDelayLoadComp,
|
|
1702
|
+
it as useDragSelect,
|
|
1703
|
+
Mo as useDragSelectByMobile,
|
|
1704
|
+
co as useDragSelectByPc,
|
|
1705
|
+
ro as useSelectable,
|
|
1680
1706
|
uo as useSelectableInjectors,
|
|
1681
1707
|
Ht as useVirtualList,
|
|
1682
|
-
|
|
1708
|
+
ao as vDebounceClick,
|
|
1683
1709
|
Et as vSingleClick
|
|
1684
1710
|
};
|