@lazycatcloud/lzc-toolkit 0.0.198 → 0.0.200
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 +939 -923
- package/dist/index.umd.js +4 -4
- package/dist/types/useDragSelect/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shallowRef as
|
|
2
|
-
const
|
|
1
|
+
import { shallowRef as Mt, watchEffect as Qt, readonly as gt, getCurrentScope as Yt, onScopeDispose as ht, onMounted as de, nextTick as Me, ref as m, watch as G, customRef as Bt, unref as A, isRef as Ut, getCurrentInstance as Re, onUpdated as Rt, computed as z, reactive as pe, onUnmounted as mt, inject as te, provide as F, defineComponent as q, h as re, render as De, openBlock as U, createBlock as Ae, Transition as He, withCtx as $e, withDirectives as ce, createElementBlock as $, normalizeClass as se, createElementVNode as R, withModifiers as ye, renderSlot as ze, createCommentVNode as fe, useCssVars as Pe, normalizeProps as Qe, guardReactiveProps as Ye, pushScopeId as Le, popScopeId as je, normalizeStyle as K, toDisplayString as Fe, vShow as xe, createVNode as ge, onBeforeUnmount as yt, onActivated as pt, onBeforeMount as Ht, onDeactivated as $t, useSlots as Pt, toRef as Ft, Fragment as Be, mergeProps as me, renderList as Wt, toRefs as Dt, createTextVNode as Xt } from "vue";
|
|
2
|
+
const Zt = {
|
|
3
3
|
created(e, t) {
|
|
4
4
|
let n, o;
|
|
5
5
|
function l(a) {
|
|
@@ -8,15 +8,15 @@ const Ft = {
|
|
|
8
8
|
function s(a) {
|
|
9
9
|
if (a.button != 0 || n === void 0)
|
|
10
10
|
return;
|
|
11
|
-
const
|
|
12
|
-
r > 5 ||
|
|
11
|
+
const d = a.clientX, i = a.clientY, r = Math.abs(d - n), f = Math.abs(i - o);
|
|
12
|
+
r > 5 || f > 5 || t.value && t.value(a);
|
|
13
13
|
}
|
|
14
14
|
e.__mouse_down__ = l, e.__mouse_up__ = s, e.addEventListener("mousedown", l), e.addEventListener("mouseup", s);
|
|
15
15
|
},
|
|
16
16
|
unmounted(e) {
|
|
17
17
|
e.removeEventListener("mousedown", e.__mouse_down__), e.removeEventListener("mouseup", e.__mouse_up__);
|
|
18
18
|
}
|
|
19
|
-
},
|
|
19
|
+
}, _o = {
|
|
20
20
|
created(e, t) {
|
|
21
21
|
const { fn: n, ms: o = 1500 } = t.value;
|
|
22
22
|
let l = null;
|
|
@@ -27,30 +27,30 @@ const Ft = {
|
|
|
27
27
|
}
|
|
28
28
|
e.addEventListener("click", s);
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, Tt = {
|
|
31
31
|
beforeMount(e, t) {
|
|
32
32
|
t.value();
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
function
|
|
35
|
+
function Vt(e, t) {
|
|
36
36
|
var n;
|
|
37
|
-
const o =
|
|
38
|
-
return
|
|
37
|
+
const o = Mt();
|
|
38
|
+
return Qt(() => {
|
|
39
39
|
o.value = e();
|
|
40
40
|
}, {
|
|
41
41
|
...t,
|
|
42
42
|
flush: (n = t?.flush) != null ? n : "sync"
|
|
43
|
-
}),
|
|
43
|
+
}), gt(o);
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Kt(e, t) {
|
|
46
46
|
let n, o, l;
|
|
47
47
|
const s = m(!0), a = () => {
|
|
48
48
|
s.value = !0, l();
|
|
49
49
|
};
|
|
50
50
|
G(e, a, { flush: "sync" });
|
|
51
|
-
const
|
|
51
|
+
const d = typeof t == "function" ? t : t.get, i = typeof t == "function" ? void 0 : t.set, r = Bt((f, c) => (o = f, l = c, {
|
|
52
52
|
get() {
|
|
53
|
-
return s.value && (n =
|
|
53
|
+
return s.value && (n = d(), s.value = !1), o(), n;
|
|
54
54
|
},
|
|
55
55
|
set(g) {
|
|
56
56
|
i?.(g);
|
|
@@ -58,17 +58,17 @@ function Xt(e, t) {
|
|
|
58
58
|
}));
|
|
59
59
|
return Object.isExtensible(r) && (r.trigger = a), r;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return
|
|
61
|
+
function We(e) {
|
|
62
|
+
return Yt() ? (ht(e), !0) : !1;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function ne(e) {
|
|
65
65
|
return typeof e == "function" ? e() : A(e);
|
|
66
66
|
}
|
|
67
|
-
const
|
|
67
|
+
const Nt = typeof window < "u" && typeof document < "u";
|
|
68
68
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
69
|
-
const
|
|
69
|
+
const Gt = Object.prototype.toString, qt = (e) => Gt.call(e) === "[object Object]", ve = () => {
|
|
70
70
|
};
|
|
71
|
-
function
|
|
71
|
+
function wt(e, t) {
|
|
72
72
|
function n(...o) {
|
|
73
73
|
return new Promise((l, s) => {
|
|
74
74
|
Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(l).catch(s);
|
|
@@ -76,188 +76,188 @@ function Dt(e, t) {
|
|
|
76
76
|
}
|
|
77
77
|
return n;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
let n, o, l =
|
|
81
|
-
const s = (
|
|
82
|
-
clearTimeout(
|
|
79
|
+
function Jt(e, t = {}) {
|
|
80
|
+
let n, o, l = ve;
|
|
81
|
+
const s = (d) => {
|
|
82
|
+
clearTimeout(d), l(), l = ve;
|
|
83
83
|
};
|
|
84
|
-
return (
|
|
85
|
-
const i =
|
|
86
|
-
return n && s(n), i <= 0 || r !== void 0 && r <= 0 ? (o && (s(o), o = null), Promise.resolve(
|
|
87
|
-
l = t.rejectOnCancel ? c :
|
|
88
|
-
n && s(n), o = null,
|
|
84
|
+
return (d) => {
|
|
85
|
+
const i = ne(e), r = ne(t.maxWait);
|
|
86
|
+
return n && s(n), i <= 0 || r !== void 0 && r <= 0 ? (o && (s(o), o = null), Promise.resolve(d())) : new Promise((f, c) => {
|
|
87
|
+
l = t.rejectOnCancel ? c : f, r && !o && (o = setTimeout(() => {
|
|
88
|
+
n && s(n), o = null, f(d());
|
|
89
89
|
}, r)), n = setTimeout(() => {
|
|
90
|
-
o && s(o), o = null,
|
|
90
|
+
o && s(o), o = null, f(d());
|
|
91
91
|
}, i);
|
|
92
92
|
});
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
let t = 0, n, o = !0, l =
|
|
97
|
-
!
|
|
98
|
-
const
|
|
99
|
-
n && (clearTimeout(n), n = void 0, l(), l =
|
|
95
|
+
function en(...e) {
|
|
96
|
+
let t = 0, n, o = !0, l = ve, s, a, d, i, r;
|
|
97
|
+
!Ut(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: d = !0, leading: i = !0, rejectOnCancel: r = !1 } = e[0] : [a, d = !0, i = !0, r = !1] = e;
|
|
98
|
+
const f = () => {
|
|
99
|
+
n && (clearTimeout(n), n = void 0, l(), l = ve);
|
|
100
100
|
};
|
|
101
101
|
return (g) => {
|
|
102
|
-
const
|
|
103
|
-
return
|
|
104
|
-
l = r ?
|
|
105
|
-
t = Date.now(), o = !0,
|
|
106
|
-
}, Math.max(0,
|
|
107
|
-
})), !i && !n && (n = setTimeout(() => o = !0,
|
|
102
|
+
const v = ne(a), u = Date.now() - t, M = () => s = g();
|
|
103
|
+
return f(), v <= 0 ? (t = Date.now(), M()) : (u > v && (i || !o) ? (t = Date.now(), M()) : d && (s = new Promise((y, T) => {
|
|
104
|
+
l = r ? T : y, n = setTimeout(() => {
|
|
105
|
+
t = Date.now(), o = !0, y(M()), f();
|
|
106
|
+
}, Math.max(0, v - u));
|
|
107
|
+
})), !i && !n && (n = setTimeout(() => o = !0, v)), o = !1, s);
|
|
108
108
|
};
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return e ||
|
|
110
|
+
function tn(e) {
|
|
111
|
+
return e || Re();
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
115
|
-
|
|
113
|
+
function Ce(e, t = 200, n = {}) {
|
|
114
|
+
return wt(
|
|
115
|
+
Jt(t, n),
|
|
116
116
|
e
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return
|
|
121
|
-
|
|
119
|
+
function Ue(e, t = 200, n = !1, o = !0, l = !1) {
|
|
120
|
+
return wt(
|
|
121
|
+
en(t, n, o, l),
|
|
122
122
|
e
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
125
|
+
function Xe(e, t = !0, n) {
|
|
126
|
+
tn() ? de(e, n) : t ? e() : Me(e);
|
|
127
127
|
}
|
|
128
128
|
function ie(e) {
|
|
129
129
|
var t;
|
|
130
|
-
const n =
|
|
130
|
+
const n = ne(e);
|
|
131
131
|
return (t = n?.$el) != null ? t : n;
|
|
132
132
|
}
|
|
133
|
-
const
|
|
134
|
-
function
|
|
133
|
+
const Se = Nt ? window : void 0, nn = Nt ? window.document : void 0;
|
|
134
|
+
function Ee(...e) {
|
|
135
135
|
let t, n, o, l;
|
|
136
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t =
|
|
137
|
-
return
|
|
136
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, l] = e, t = Se) : [t, n, o, l] = e, !t)
|
|
137
|
+
return ve;
|
|
138
138
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
139
139
|
const s = [], a = () => {
|
|
140
|
-
s.forEach((
|
|
141
|
-
},
|
|
142
|
-
() => [ie(t),
|
|
143
|
-
([
|
|
144
|
-
if (a(), !
|
|
140
|
+
s.forEach((f) => f()), s.length = 0;
|
|
141
|
+
}, d = (f, c, g, v) => (f.addEventListener(c, g, v), () => f.removeEventListener(c, g, v)), i = G(
|
|
142
|
+
() => [ie(t), ne(l)],
|
|
143
|
+
([f, c]) => {
|
|
144
|
+
if (a(), !f)
|
|
145
145
|
return;
|
|
146
|
-
const g =
|
|
146
|
+
const g = qt(c) ? { ...c } : c;
|
|
147
147
|
s.push(
|
|
148
|
-
...n.flatMap((
|
|
148
|
+
...n.flatMap((v) => o.map((u) => d(f, v, u, g)))
|
|
149
149
|
);
|
|
150
150
|
},
|
|
151
151
|
{ immediate: !0, flush: "post" }
|
|
152
152
|
), r = () => {
|
|
153
153
|
i(), a();
|
|
154
154
|
};
|
|
155
|
-
return
|
|
155
|
+
return We(r), r;
|
|
156
156
|
}
|
|
157
|
-
function
|
|
158
|
-
const e = m(!1), t =
|
|
159
|
-
return t &&
|
|
157
|
+
function on() {
|
|
158
|
+
const e = m(!1), t = Re();
|
|
159
|
+
return t && de(() => {
|
|
160
160
|
e.value = !0;
|
|
161
161
|
}, t), e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
const t =
|
|
163
|
+
function ln(e) {
|
|
164
|
+
const t = on();
|
|
165
165
|
return z(() => (t.value, Boolean(e())));
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
const t =
|
|
167
|
+
function sn(e) {
|
|
168
|
+
const t = Re(), n = Kt(
|
|
169
169
|
() => null,
|
|
170
170
|
() => e ? ie(e) : t.proxy.$el
|
|
171
171
|
);
|
|
172
|
-
return
|
|
172
|
+
return Rt(n.trigger), de(n.trigger), n;
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
const { window: o =
|
|
174
|
+
function Ze(e, t, n = {}) {
|
|
175
|
+
const { window: o = Se, ...l } = n;
|
|
176
176
|
let s;
|
|
177
|
-
const a =
|
|
177
|
+
const a = ln(() => o && "ResizeObserver" in o), d = () => {
|
|
178
178
|
s && (s.disconnect(), s = void 0);
|
|
179
179
|
}, i = z(() => Array.isArray(e) ? e.map((c) => ie(c)) : [ie(e)]), r = G(
|
|
180
180
|
i,
|
|
181
181
|
(c) => {
|
|
182
|
-
if (
|
|
182
|
+
if (d(), a.value && o) {
|
|
183
183
|
s = new ResizeObserver(t);
|
|
184
184
|
for (const g of c)
|
|
185
185
|
g && s.observe(g, l);
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
{ immediate: !0, flush: "post" }
|
|
189
|
-
),
|
|
190
|
-
|
|
189
|
+
), f = () => {
|
|
190
|
+
d(), r();
|
|
191
191
|
};
|
|
192
|
-
return
|
|
192
|
+
return We(f), {
|
|
193
193
|
isSupported: a,
|
|
194
|
-
stop:
|
|
194
|
+
stop: f
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
const { window: o =
|
|
197
|
+
function an(e, t = { width: 0, height: 0 }, n = {}) {
|
|
198
|
+
const { window: o = Se, box: l = "content-box" } = n, s = z(() => {
|
|
199
199
|
var c, g;
|
|
200
200
|
return (g = (c = ie(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : g.includes("svg");
|
|
201
|
-
}), a = m(t.width),
|
|
201
|
+
}), a = m(t.width), d = m(t.height), { stop: i } = Ze(
|
|
202
202
|
e,
|
|
203
203
|
([c]) => {
|
|
204
204
|
const g = l === "border-box" ? c.borderBoxSize : l === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
|
|
205
205
|
if (o && s.value) {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
const u = o.getComputedStyle(
|
|
209
|
-
a.value = Number.parseFloat(u.width),
|
|
206
|
+
const v = ie(e);
|
|
207
|
+
if (v) {
|
|
208
|
+
const u = o.getComputedStyle(v);
|
|
209
|
+
a.value = Number.parseFloat(u.width), d.value = Number.parseFloat(u.height);
|
|
210
210
|
}
|
|
211
211
|
} else if (g) {
|
|
212
|
-
const
|
|
213
|
-
a.value =
|
|
212
|
+
const v = Array.isArray(g) ? g : [g];
|
|
213
|
+
a.value = v.reduce((u, { inlineSize: M }) => u + M, 0), d.value = v.reduce((u, { blockSize: M }) => u + M, 0);
|
|
214
214
|
} else
|
|
215
|
-
a.value = c.contentRect.width,
|
|
215
|
+
a.value = c.contentRect.width, d.value = c.contentRect.height;
|
|
216
216
|
},
|
|
217
217
|
n
|
|
218
218
|
);
|
|
219
|
-
|
|
219
|
+
Xe(() => {
|
|
220
220
|
const c = ie(e);
|
|
221
|
-
c && (a.value = "offsetWidth" in c ? c.offsetWidth : t.width,
|
|
221
|
+
c && (a.value = "offsetWidth" in c ? c.offsetWidth : t.width, d.value = "offsetHeight" in c ? c.offsetHeight : t.height);
|
|
222
222
|
});
|
|
223
223
|
const r = G(
|
|
224
224
|
() => ie(e),
|
|
225
225
|
(c) => {
|
|
226
|
-
a.value = c ? t.width : 0,
|
|
226
|
+
a.value = c ? t.width : 0, d.value = c ? t.height : 0;
|
|
227
227
|
}
|
|
228
228
|
);
|
|
229
|
-
function
|
|
229
|
+
function f() {
|
|
230
230
|
i(), r();
|
|
231
231
|
}
|
|
232
232
|
return {
|
|
233
233
|
width: a,
|
|
234
|
-
height:
|
|
235
|
-
stop:
|
|
234
|
+
height: d,
|
|
235
|
+
stop: f
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
const
|
|
239
|
-
function
|
|
238
|
+
const rt = 1;
|
|
239
|
+
function un(e, t = {}) {
|
|
240
240
|
const {
|
|
241
241
|
throttle: n = 0,
|
|
242
242
|
idle: o = 200,
|
|
243
|
-
onStop: l =
|
|
244
|
-
onScroll: s =
|
|
243
|
+
onStop: l = ve,
|
|
244
|
+
onScroll: s = ve,
|
|
245
245
|
offset: a = {
|
|
246
246
|
left: 0,
|
|
247
247
|
right: 0,
|
|
248
248
|
top: 0,
|
|
249
249
|
bottom: 0
|
|
250
250
|
},
|
|
251
|
-
eventListenerOptions:
|
|
251
|
+
eventListenerOptions: d = {
|
|
252
252
|
capture: !1,
|
|
253
253
|
passive: !0
|
|
254
254
|
},
|
|
255
255
|
behavior: i = "auto",
|
|
256
|
-
window: r =
|
|
257
|
-
onError:
|
|
256
|
+
window: r = Se,
|
|
257
|
+
onError: f = (N) => {
|
|
258
258
|
console.error(N);
|
|
259
259
|
}
|
|
260
|
-
} = t, c = m(0), g = m(0),
|
|
260
|
+
} = t, c = m(0), g = m(0), v = z({
|
|
261
261
|
get() {
|
|
262
262
|
return c.value;
|
|
263
263
|
},
|
|
@@ -272,87 +272,87 @@ function ln(e, t = {}) {
|
|
|
272
272
|
M(void 0, N);
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
function M(N,
|
|
276
|
-
var Y,
|
|
275
|
+
function M(N, x) {
|
|
276
|
+
var Y, Z, p;
|
|
277
277
|
if (!r)
|
|
278
278
|
return;
|
|
279
|
-
const E =
|
|
279
|
+
const E = ne(e);
|
|
280
280
|
!E || (p = E instanceof Document ? r.document.body : E) == null || p.scrollTo({
|
|
281
|
-
top: (Y =
|
|
282
|
-
left: (
|
|
283
|
-
behavior:
|
|
281
|
+
top: (Y = ne(x)) != null ? Y : u.value,
|
|
282
|
+
left: (Z = ne(N)) != null ? Z : v.value,
|
|
283
|
+
behavior: ne(i)
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
const
|
|
286
|
+
const y = m(!1), T = pe({
|
|
287
287
|
left: !0,
|
|
288
288
|
right: !1,
|
|
289
289
|
top: !0,
|
|
290
290
|
bottom: !1
|
|
291
|
-
}),
|
|
291
|
+
}), w = pe({
|
|
292
292
|
left: !1,
|
|
293
293
|
right: !1,
|
|
294
294
|
top: !1,
|
|
295
295
|
bottom: !1
|
|
296
|
-
}),
|
|
297
|
-
!
|
|
298
|
-
}, D =
|
|
299
|
-
var
|
|
296
|
+
}), h = (N) => {
|
|
297
|
+
!y.value || (y.value = !1, w.left = !1, w.right = !1, w.top = !1, w.bottom = !1, l(N));
|
|
298
|
+
}, D = Ce(h, n + o), b = (N) => {
|
|
299
|
+
var x;
|
|
300
300
|
if (!r)
|
|
301
301
|
return;
|
|
302
|
-
const Y = ((
|
|
303
|
-
|
|
304
|
-
const O = Math.abs(E) <= (a.left || 0), Q = Math.abs(E) + Y.clientWidth >= Y.scrollWidth - (a.right || 0) -
|
|
305
|
-
|
|
306
|
-
let
|
|
307
|
-
N === r.document && !
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
},
|
|
311
|
-
var
|
|
302
|
+
const Y = ((x = N?.document) == null ? void 0 : x.documentElement) || N?.documentElement || ie(N), { display: Z, flexDirection: p } = getComputedStyle(Y), E = Y.scrollLeft;
|
|
303
|
+
w.left = E < c.value, w.right = E > c.value;
|
|
304
|
+
const O = Math.abs(E) <= (a.left || 0), Q = Math.abs(E) + Y.clientWidth >= Y.scrollWidth - (a.right || 0) - rt;
|
|
305
|
+
Z === "flex" && p === "row-reverse" ? (T.left = Q, T.right = O) : (T.left = O, T.right = Q), c.value = E;
|
|
306
|
+
let _ = Y.scrollTop;
|
|
307
|
+
N === r.document && !_ && (_ = r.document.body.scrollTop), w.top = _ < g.value, w.bottom = _ > g.value;
|
|
308
|
+
const I = Math.abs(_) <= (a.top || 0), L = Math.abs(_) + Y.clientHeight >= Y.scrollHeight - (a.bottom || 0) - rt;
|
|
309
|
+
Z === "flex" && p === "column-reverse" ? (T.top = L, T.bottom = I) : (T.top = I, T.bottom = L), g.value = _;
|
|
310
|
+
}, C = (N) => {
|
|
311
|
+
var x;
|
|
312
312
|
if (!r)
|
|
313
313
|
return;
|
|
314
|
-
const Y = (
|
|
315
|
-
|
|
314
|
+
const Y = (x = N.target.documentElement) != null ? x : N.target;
|
|
315
|
+
b(Y), y.value = !0, D(N), s(N);
|
|
316
316
|
};
|
|
317
|
-
return
|
|
317
|
+
return Ee(
|
|
318
318
|
e,
|
|
319
319
|
"scroll",
|
|
320
|
-
n ?
|
|
321
|
-
|
|
322
|
-
),
|
|
320
|
+
n ? Ue(C, n, !0, !1) : C,
|
|
321
|
+
d
|
|
322
|
+
), Xe(() => {
|
|
323
323
|
try {
|
|
324
|
-
const N =
|
|
324
|
+
const N = ne(e);
|
|
325
325
|
if (!N)
|
|
326
326
|
return;
|
|
327
|
-
|
|
327
|
+
b(N);
|
|
328
328
|
} catch (N) {
|
|
329
|
-
|
|
329
|
+
f(N);
|
|
330
330
|
}
|
|
331
|
-
}),
|
|
331
|
+
}), Ee(
|
|
332
332
|
e,
|
|
333
333
|
"scrollend",
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
h,
|
|
335
|
+
d
|
|
336
336
|
), {
|
|
337
|
-
x:
|
|
337
|
+
x: v,
|
|
338
338
|
y: u,
|
|
339
|
-
isScrolling:
|
|
340
|
-
arrivedState:
|
|
341
|
-
directions:
|
|
339
|
+
isScrolling: y,
|
|
340
|
+
arrivedState: T,
|
|
341
|
+
directions: w,
|
|
342
342
|
measure() {
|
|
343
|
-
const N =
|
|
344
|
-
r && N &&
|
|
343
|
+
const N = ne(e);
|
|
344
|
+
r && N && b(N);
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
let
|
|
349
|
-
function
|
|
348
|
+
let rn = 0;
|
|
349
|
+
function Ve(e, t = {}) {
|
|
350
350
|
const n = m(!1), {
|
|
351
|
-
document: o =
|
|
351
|
+
document: o = nn,
|
|
352
352
|
immediate: l = !0,
|
|
353
353
|
manual: s = !1,
|
|
354
|
-
id: a = `vueuse_styletag_${++
|
|
355
|
-
} = t,
|
|
354
|
+
id: a = `vueuse_styletag_${++rn}`
|
|
355
|
+
} = t, d = m(e);
|
|
356
356
|
let i = () => {
|
|
357
357
|
};
|
|
358
358
|
const r = () => {
|
|
@@ -360,24 +360,24 @@ function Xe(e, t = {}) {
|
|
|
360
360
|
return;
|
|
361
361
|
const c = o.getElementById(a) || o.createElement("style");
|
|
362
362
|
c.isConnected || (c.id = a, t.media && (c.media = t.media), o.head.appendChild(c)), !n.value && (i = G(
|
|
363
|
-
|
|
363
|
+
d,
|
|
364
364
|
(g) => {
|
|
365
365
|
c.textContent = g;
|
|
366
366
|
},
|
|
367
367
|
{ immediate: !0 }
|
|
368
368
|
), n.value = !0);
|
|
369
|
-
},
|
|
369
|
+
}, f = () => {
|
|
370
370
|
!o || !n.value || (i(), o.head.removeChild(o.getElementById(a)), n.value = !1);
|
|
371
371
|
};
|
|
372
|
-
return l && !s &&
|
|
372
|
+
return l && !s && Xe(r), s || We(f), {
|
|
373
373
|
id: a,
|
|
374
|
-
css:
|
|
375
|
-
unload:
|
|
374
|
+
css: d,
|
|
375
|
+
unload: f,
|
|
376
376
|
load: r,
|
|
377
|
-
isLoaded:
|
|
377
|
+
isLoaded: gt(n)
|
|
378
378
|
};
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function cn(e, t, n) {
|
|
381
381
|
const o = e.style[t];
|
|
382
382
|
return o != n && (e.style[t] = n), {
|
|
383
383
|
reset() {
|
|
@@ -385,162 +385,162 @@ function an(e, t, n) {
|
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a =
|
|
388
|
+
function dn(e, t) {
|
|
389
|
+
const { scrollEndHook: n, itemHeight: o, overscan: l = 5 } = t, s = m(null), a = an(s), d = m(!0), i = Ce(b, 100);
|
|
390
390
|
let r;
|
|
391
|
-
const
|
|
391
|
+
const f = Mt(e), c = m(0), g = m({ start: 0, end: 10 }), v = m({ start: 0, end: l });
|
|
392
392
|
let u = 0;
|
|
393
|
-
const M = m([]),
|
|
394
|
-
let { sum:
|
|
395
|
-
return
|
|
396
|
-
}),
|
|
397
|
-
const { start:
|
|
398
|
-
return M.value.slice(
|
|
393
|
+
const M = m([]), y = z(() => {
|
|
394
|
+
let { sum: I, height: L } = { sum: 0, height: 0 };
|
|
395
|
+
return f.value.map((B, H) => (typeof o == "number" ? L = o : L = o(H), I += L, { height: L, sum: I }));
|
|
396
|
+
}), T = z(() => Z(g.value.start)), w = z(() => typeof o == "number" ? y.value.length * o : y.value[y.value.length - 1]?.sum || 0), h = z(() => {
|
|
397
|
+
const { start: I, end: L } = v.value;
|
|
398
|
+
return M.value.slice(I, L);
|
|
399
399
|
});
|
|
400
|
-
|
|
401
|
-
}),
|
|
402
|
-
|
|
400
|
+
de(() => {
|
|
401
|
+
}), mt(() => cancelAnimationFrame(r)), G(
|
|
402
|
+
f,
|
|
403
403
|
() => {
|
|
404
|
-
(a.width.value || a.height.value) &&
|
|
404
|
+
(a.width.value || a.height.value) && C();
|
|
405
405
|
},
|
|
406
406
|
{ deep: !0 }
|
|
407
407
|
), G(
|
|
408
408
|
[a.width, a.height],
|
|
409
|
-
([
|
|
410
|
-
(
|
|
409
|
+
([I, L]) => {
|
|
410
|
+
(I || L) && C();
|
|
411
411
|
},
|
|
412
412
|
{ deep: !0 }
|
|
413
413
|
), G(c, () => {
|
|
414
414
|
D(), i();
|
|
415
415
|
});
|
|
416
416
|
function D() {
|
|
417
|
-
|
|
417
|
+
d.value = !1;
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
|
|
419
|
+
function b() {
|
|
420
|
+
d.value = !0, n?.();
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function C() {
|
|
423
423
|
cancelAnimationFrame(r), r = requestAnimationFrame(N);
|
|
424
424
|
}
|
|
425
425
|
function N() {
|
|
426
426
|
if (s.value) {
|
|
427
427
|
c.value = s.value.scrollTop;
|
|
428
|
-
let
|
|
429
|
-
u = Y(
|
|
430
|
-
let L = Math.max(0,
|
|
431
|
-
|
|
432
|
-
|
|
428
|
+
let I = x(c.value);
|
|
429
|
+
u = Y(I);
|
|
430
|
+
let L = Math.max(0, I - l), B = Math.min(
|
|
431
|
+
I + u + l,
|
|
432
|
+
f.value.length
|
|
433
433
|
);
|
|
434
|
-
g.value = { start: L, end:
|
|
435
|
-
data:
|
|
436
|
-
index:
|
|
437
|
-
})),
|
|
434
|
+
g.value = { start: L, end: B }, M.value = f.value.slice(L, B).map((H, k) => ({
|
|
435
|
+
data: H,
|
|
436
|
+
index: k + L
|
|
437
|
+
})), v.value.start = I - L, v.value.end = v.value.start + u;
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
function
|
|
441
|
-
let L = 0,
|
|
442
|
-
for (; L <=
|
|
443
|
-
const
|
|
444
|
-
|
|
440
|
+
function x(I) {
|
|
441
|
+
let L = 0, B = y.value.length - 1, H = -1;
|
|
442
|
+
for (; L <= B; ) {
|
|
443
|
+
const k = Math.floor((L + B) / 2);
|
|
444
|
+
y.value[k].sum >= I ? (H = k, B = k - 1) : L = k + 1;
|
|
445
445
|
}
|
|
446
|
-
return Math.max(0,
|
|
446
|
+
return Math.max(0, H);
|
|
447
447
|
}
|
|
448
|
-
function Y(
|
|
449
|
-
let L = 0,
|
|
450
|
-
for (let
|
|
448
|
+
function Y(I) {
|
|
449
|
+
let L = 0, B = 0;
|
|
450
|
+
for (let H = I; H < y.value.length && (L++, B += y.value[H].height, !(B >= a.height.value)); H++)
|
|
451
451
|
;
|
|
452
452
|
return L;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function Z(I) {
|
|
455
455
|
if (typeof o == "number")
|
|
456
|
-
return
|
|
457
|
-
let L =
|
|
456
|
+
return I * o;
|
|
457
|
+
let L = y.value[I];
|
|
458
458
|
return L ? L.sum - L.height : 0;
|
|
459
459
|
}
|
|
460
|
-
function p(
|
|
461
|
-
return
|
|
460
|
+
function p(I) {
|
|
461
|
+
return y.value[I] || { sum: 0, height: 0 };
|
|
462
462
|
}
|
|
463
|
-
function E(
|
|
463
|
+
function E(I, L = "smooth") {
|
|
464
464
|
if (s.value) {
|
|
465
|
-
const { reset:
|
|
465
|
+
const { reset: B } = cn(
|
|
466
466
|
s.value,
|
|
467
467
|
"scrollBehavior",
|
|
468
468
|
L
|
|
469
|
-
),
|
|
470
|
-
s.value.scrollTop =
|
|
469
|
+
), H = p(I);
|
|
470
|
+
s.value.scrollTop = H.sum - H.height, N(), B();
|
|
471
471
|
}
|
|
472
472
|
if (s.value) {
|
|
473
|
-
const
|
|
474
|
-
s.value.scrollTop =
|
|
473
|
+
const B = p(I);
|
|
474
|
+
s.value.scrollTop = B.sum - B.height, N();
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
477
|
const O = z(() => ({
|
|
478
478
|
style: {
|
|
479
479
|
width: "100%",
|
|
480
|
-
height: `${
|
|
481
|
-
pointerEvents:
|
|
480
|
+
height: `${w.value}px`,
|
|
481
|
+
pointerEvents: d.value ? void 0 : "none"
|
|
482
482
|
}
|
|
483
483
|
})), Q = z(() => ({
|
|
484
484
|
style: {
|
|
485
|
-
transform: `translate3d(0, ${
|
|
485
|
+
transform: `translate3d(0, ${T.value}px, 0)`,
|
|
486
486
|
"will-change": "transform"
|
|
487
487
|
}
|
|
488
|
-
})),
|
|
488
|
+
})), _ = {
|
|
489
489
|
overflowY: "auto"
|
|
490
490
|
};
|
|
491
491
|
return {
|
|
492
492
|
list: M,
|
|
493
|
-
visiableList:
|
|
493
|
+
visiableList: h,
|
|
494
494
|
getItemHeightData: p,
|
|
495
|
-
getoffsetTopIndex:
|
|
496
|
-
totalHeight:
|
|
495
|
+
getoffsetTopIndex: x,
|
|
496
|
+
totalHeight: w,
|
|
497
497
|
clientHeight: a.height,
|
|
498
498
|
scrollTo: E,
|
|
499
499
|
scrollTop: c,
|
|
500
|
-
isScrollEnd:
|
|
500
|
+
isScrollEnd: d,
|
|
501
501
|
containerProps: {
|
|
502
502
|
ref: s,
|
|
503
503
|
onScroll: () => {
|
|
504
|
-
|
|
504
|
+
C();
|
|
505
505
|
},
|
|
506
|
-
style:
|
|
506
|
+
style: _
|
|
507
507
|
},
|
|
508
508
|
wrapperProps: O,
|
|
509
509
|
innerProps: Q
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
const
|
|
513
|
-
function
|
|
512
|
+
const Et = Symbol(), Ke = Symbol(), Ge = Symbol(), qe = Symbol(), Je = Symbol(), et = Symbol(), tt = Symbol(), nt = Symbol(), ot = Symbol(), Te = Symbol(), lt = Symbol();
|
|
513
|
+
function bo() {
|
|
514
514
|
const { voidFn: e, boolFn: t, boolRef: n, numberRef: o, arrayRef: l } = {
|
|
515
|
-
voidFn: (
|
|
515
|
+
voidFn: (y) => {
|
|
516
516
|
},
|
|
517
|
-
boolFn: (
|
|
517
|
+
boolFn: (y) => !1,
|
|
518
518
|
boolRef: z(() => !1),
|
|
519
519
|
numberRef: z(() => 0),
|
|
520
520
|
arrayRef: z(() => [])
|
|
521
|
-
}, s =
|
|
521
|
+
}, s = te(Et, "id"), a = te(Je, l), d = te(qe, t), i = te(ot, n), r = te(Ge, e), f = te(Ke, e), c = te(et, e), g = te(tt, e), v = te(nt, e), u = te(Te, e), M = te(lt, o);
|
|
522
522
|
return {
|
|
523
523
|
itemKey: s,
|
|
524
524
|
selected: a,
|
|
525
|
-
isSelected:
|
|
525
|
+
isSelected: d,
|
|
526
526
|
isAllSelected: i,
|
|
527
527
|
toggle: r,
|
|
528
|
-
toggleAll:
|
|
528
|
+
toggleAll: f,
|
|
529
529
|
select: c,
|
|
530
530
|
selectAll: g,
|
|
531
|
-
unselect:
|
|
531
|
+
unselect: v,
|
|
532
532
|
unselectAll: u,
|
|
533
533
|
selectedCount: M
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
|
-
function
|
|
537
|
-
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s =
|
|
536
|
+
function ko(e, t, n = { deep: !0, useAllFlagOptimizatiofn: !0 }) {
|
|
537
|
+
const o = m(!1), l = m(/* @__PURE__ */ new Set()), s = pe(/* @__PURE__ */ new Map());
|
|
538
538
|
G(
|
|
539
539
|
e,
|
|
540
|
-
(
|
|
541
|
-
s.clear(),
|
|
542
|
-
s.has(
|
|
543
|
-
}),
|
|
540
|
+
(h, D, b) => {
|
|
541
|
+
s.clear(), h.forEach((C) => {
|
|
542
|
+
s.has(C[t]) || s.set(C[t], C);
|
|
543
|
+
}), w(), b(() => {
|
|
544
544
|
D && (D.length = 0);
|
|
545
545
|
});
|
|
546
546
|
},
|
|
@@ -548,93 +548,93 @@ function Oo(e, t, n = { deep: !0, useAllFlagOptimizatiofn: !0 }) {
|
|
|
548
548
|
deep: n.deep,
|
|
549
549
|
immediate: !0
|
|
550
550
|
}
|
|
551
|
-
),
|
|
551
|
+
), ht(() => {
|
|
552
552
|
o.value = !1, l.value.clear(), s.clear();
|
|
553
553
|
});
|
|
554
554
|
const a = z(() => {
|
|
555
|
-
let
|
|
555
|
+
let h = [];
|
|
556
556
|
if (o.value != null)
|
|
557
|
-
o.value && (
|
|
557
|
+
o.value && (h = Array.from(s.values()));
|
|
558
558
|
else if (l.value.size) {
|
|
559
559
|
let D;
|
|
560
|
-
l.value.forEach((
|
|
561
|
-
D = s.get(
|
|
560
|
+
l.value.forEach((b) => {
|
|
561
|
+
D = s.get(b), D && h.push(D);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
return
|
|
565
|
-
}),
|
|
566
|
-
let
|
|
567
|
-
return o.value != null ? o.value && (
|
|
564
|
+
return h;
|
|
565
|
+
}), d = z(() => {
|
|
566
|
+
let h = 0;
|
|
567
|
+
return o.value != null ? o.value && (h = s.size) : h = l.value.size, h;
|
|
568
568
|
}), i = z(() => {
|
|
569
|
-
let
|
|
569
|
+
let h;
|
|
570
570
|
if (o.value != null)
|
|
571
|
-
|
|
571
|
+
h = o.value;
|
|
572
572
|
else {
|
|
573
|
-
const D = l.value.size,
|
|
574
|
-
|
|
573
|
+
const D = l.value.size, b = s.size;
|
|
574
|
+
h = D == b;
|
|
575
575
|
}
|
|
576
|
-
return
|
|
576
|
+
return h;
|
|
577
577
|
});
|
|
578
578
|
function r() {
|
|
579
579
|
o.value = !0;
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function f() {
|
|
582
582
|
o.value = !1;
|
|
583
583
|
}
|
|
584
|
-
function c(
|
|
585
|
-
s.has(
|
|
584
|
+
function c(h) {
|
|
585
|
+
s.has(h) && l.value.add(h);
|
|
586
586
|
}
|
|
587
|
-
function g(
|
|
587
|
+
function g(h) {
|
|
588
588
|
M(() => {
|
|
589
|
-
|
|
589
|
+
h.forEach((D) => {
|
|
590
590
|
c(D[t]);
|
|
591
591
|
});
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function v(h) {
|
|
595
595
|
M(() => {
|
|
596
|
-
|
|
596
|
+
h.forEach((D) => {
|
|
597
597
|
l.value.delete(D[t]);
|
|
598
598
|
});
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function u(
|
|
602
|
-
return o.value != null ? o.value : l.value.has(
|
|
601
|
+
function u(h) {
|
|
602
|
+
return o.value != null ? o.value : l.value.has(h[t]);
|
|
603
603
|
}
|
|
604
|
-
function M(
|
|
605
|
-
o.value != null && (o.value ? l.value = new Set(Array.from(s.keys())) : l.value = /* @__PURE__ */ new Set()),
|
|
604
|
+
function M(h) {
|
|
605
|
+
o.value != null && (o.value ? l.value = new Set(Array.from(s.keys())) : l.value = /* @__PURE__ */ new Set()), h(), n.useAllFlagOptimizatiofn ? l.value.size == 0 ? o.value = !1 : l.value.size == s.size ? o.value = !0 : o.value = null : o.value = null;
|
|
606
606
|
}
|
|
607
|
-
function h
|
|
607
|
+
function y(h) {
|
|
608
608
|
M(() => {
|
|
609
|
-
|
|
609
|
+
h.forEach((D) => {
|
|
610
610
|
u(D) ? l.value.delete(D[t]) : c(D[t]);
|
|
611
611
|
});
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function I() {
|
|
615
|
-
const { value: y } = i;
|
|
616
|
-
y ? v() : r();
|
|
617
|
-
}
|
|
618
614
|
function T() {
|
|
619
|
-
const
|
|
615
|
+
const { value: h } = i;
|
|
616
|
+
h ? f() : r();
|
|
617
|
+
}
|
|
618
|
+
function w() {
|
|
619
|
+
const h = [];
|
|
620
620
|
l.value.forEach((D) => {
|
|
621
|
-
s.get(D) ||
|
|
622
|
-
}),
|
|
621
|
+
s.get(D) || h.push(D);
|
|
622
|
+
}), h.forEach((D) => l.value.delete(D));
|
|
623
623
|
}
|
|
624
|
-
return
|
|
624
|
+
return F(Et, t), F(Ke, T), F(Ge, y), F(qe, u), F(Je, a), F(et, g), F(tt, r), F(nt, v), F(ot, i), F(Te, f), F(Te, f), F(lt, d), {
|
|
625
625
|
selected: a,
|
|
626
626
|
select: g,
|
|
627
627
|
selectAll: r,
|
|
628
|
-
unselect:
|
|
629
|
-
unselectAll:
|
|
630
|
-
toggle:
|
|
631
|
-
toggleAll:
|
|
628
|
+
unselect: v,
|
|
629
|
+
unselectAll: f,
|
|
630
|
+
toggle: y,
|
|
631
|
+
toggleAll: T,
|
|
632
632
|
isSelected: u,
|
|
633
633
|
isAllSelected: i,
|
|
634
|
-
selectedCount:
|
|
634
|
+
selectedCount: d
|
|
635
635
|
};
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Qo(e) {
|
|
638
638
|
const t = m(!1), n = m(/* @__PURE__ */ new Set()), o = z(() => {
|
|
639
639
|
let u = [];
|
|
640
640
|
return t.value != null ? t.value && (u = e.value) : n.value.size && (u = Array.from(n.value.values())), u;
|
|
@@ -646,15 +646,15 @@ function _o(e) {
|
|
|
646
646
|
if (t.value != null)
|
|
647
647
|
u = t.value;
|
|
648
648
|
else {
|
|
649
|
-
const M = n.value.size,
|
|
650
|
-
u = M ==
|
|
649
|
+
const M = n.value.size, y = e.value.length;
|
|
650
|
+
u = M == y;
|
|
651
651
|
}
|
|
652
652
|
return u;
|
|
653
653
|
});
|
|
654
654
|
function a() {
|
|
655
655
|
t.value = !0;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function d() {
|
|
658
658
|
t.value = !1;
|
|
659
659
|
}
|
|
660
660
|
function i(u) {
|
|
@@ -671,7 +671,7 @@ function _o(e) {
|
|
|
671
671
|
});
|
|
672
672
|
});
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function f(u) {
|
|
675
675
|
return t.value != null ? t.value : n.value.has(u);
|
|
676
676
|
}
|
|
677
677
|
function c(u) {
|
|
@@ -680,33 +680,33 @@ function _o(e) {
|
|
|
680
680
|
function g(u) {
|
|
681
681
|
c(() => {
|
|
682
682
|
u.forEach((M) => {
|
|
683
|
-
|
|
683
|
+
f(M) ? n.value.delete(M) : n.value.add(M);
|
|
684
684
|
});
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function v() {
|
|
688
688
|
const { value: u } = s;
|
|
689
|
-
u ?
|
|
689
|
+
u ? d() : a();
|
|
690
690
|
}
|
|
691
|
-
return
|
|
691
|
+
return F(Ke, v), F(Ge, g), F(qe, f), F(Je, o), F(et, i), F(tt, a), F(nt, r), F(ot, s), F(Te, d), F(Te, d), F(lt, l), {
|
|
692
692
|
selected: o,
|
|
693
693
|
select: i,
|
|
694
694
|
selectAll: a,
|
|
695
695
|
unselect: r,
|
|
696
|
-
unselectAll:
|
|
696
|
+
unselectAll: d,
|
|
697
697
|
toggle: g,
|
|
698
|
-
toggleAll:
|
|
699
|
-
isSelected:
|
|
698
|
+
toggleAll: v,
|
|
699
|
+
isSelected: f,
|
|
700
700
|
isAllSelected: s,
|
|
701
701
|
selectedCount: l
|
|
702
702
|
};
|
|
703
703
|
}
|
|
704
|
-
function
|
|
704
|
+
function _e(e) {
|
|
705
705
|
return () => {
|
|
706
706
|
console.debug(`\u9ED8\u8BA4${e}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function It({
|
|
710
710
|
key: e,
|
|
711
711
|
customAttributeValue: t,
|
|
712
712
|
attribute: n,
|
|
@@ -715,153 +715,169 @@ function Nt({
|
|
|
715
715
|
getSelectMap: s = () => ({})
|
|
716
716
|
}) {
|
|
717
717
|
const {
|
|
718
|
-
select: a =
|
|
719
|
-
unselect:
|
|
720
|
-
unselectAll: i =
|
|
718
|
+
select: a = _e("\u9009\u62E9"),
|
|
719
|
+
unselect: d = _e("\u53D6\u6D88\u9009\u62E9"),
|
|
720
|
+
unselectAll: i = _e("\u53D6\u6D88\u5168\u9009")
|
|
721
721
|
} = s();
|
|
722
722
|
let r = {};
|
|
723
|
-
const
|
|
724
|
-
() =>
|
|
725
|
-
), c = z(() => e ?? n), g = (() => t ? (
|
|
726
|
-
(x) => D.value = x[0].target.getBoundingClientRect()
|
|
727
|
-
), D = m({}), j = m({
|
|
723
|
+
const f = z(
|
|
724
|
+
() => Ue(o === "colum" ? St : Ot, 50)
|
|
725
|
+
), c = z(() => e ?? n), g = (() => t ? (j) => t(j) : (j) => j)(), v = /* @__PURE__ */ new Set(), u = m(!0), M = m(), y = m(!1), T = m({ x: 0, y: 0 }), w = m({ x: 0, y: 0, scrollTop: 0 }), h = m({}), D = m({
|
|
728
726
|
top: 0,
|
|
729
727
|
height: 0,
|
|
730
|
-
sync(
|
|
731
|
-
|
|
728
|
+
sync(j = !1) {
|
|
729
|
+
D.value.top = M.value?.scrollTop || 0, j && (D.value.height = M.value?.scrollHeight || 0);
|
|
732
730
|
}
|
|
733
|
-
}),
|
|
734
|
-
left: Math.min(
|
|
735
|
-
top: Math.min(
|
|
736
|
-
width: Math.abs(
|
|
737
|
-
height: Math.abs(
|
|
738
|
-
} : { left: 0, top: 0, width: 0, height: 0 }),
|
|
739
|
-
let
|
|
740
|
-
const
|
|
741
|
-
let
|
|
742
|
-
function
|
|
743
|
-
if (cancelAnimationFrame(
|
|
744
|
-
Math.min(
|
|
745
|
-
-
|
|
746
|
-
),
|
|
747
|
-
const
|
|
748
|
-
if (!
|
|
731
|
+
}), b = z(() => y.value ? {
|
|
732
|
+
left: Math.min(T.value.x, w.value.x) - h.value.left,
|
|
733
|
+
top: Math.min(T.value.y, w.value.y) - h.value.top,
|
|
734
|
+
width: Math.abs(T.value.x - w.value.x),
|
|
735
|
+
height: Math.abs(T.value.y - w.value.y)
|
|
736
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), C = m(!1), { margin: N = 50, startSpeed: x = 30, maxSpeed: Y = 30 } = l;
|
|
737
|
+
let Z;
|
|
738
|
+
const p = N, E = x, O = Y, Q = (j) => j ** 1;
|
|
739
|
+
let _ = 0;
|
|
740
|
+
function I(j) {
|
|
741
|
+
if (cancelAnimationFrame(Z), _ = L(j), _ = Math.max(
|
|
742
|
+
Math.min(_, O),
|
|
743
|
+
-O
|
|
744
|
+
), _ !== 0) {
|
|
745
|
+
const S = M.value;
|
|
746
|
+
if (!S || !y.value)
|
|
749
747
|
return;
|
|
750
|
-
const
|
|
751
|
-
let
|
|
752
|
-
|
|
748
|
+
const X = D.value.height - h.value.height;
|
|
749
|
+
let P = D.value.top + Number(_);
|
|
750
|
+
P = Math.min(Math.max(0, P), X), S.scrollTop = P, H(), Z = requestAnimationFrame(() => I(j));
|
|
753
751
|
}
|
|
754
752
|
}
|
|
755
|
-
function
|
|
753
|
+
function L(j) {
|
|
756
754
|
if (M.value) {
|
|
757
|
-
const
|
|
758
|
-
if (
|
|
759
|
-
return
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
return -
|
|
755
|
+
const X = h.value, P = X.bottom - j;
|
|
756
|
+
if (P < p)
|
|
757
|
+
return E * Q(1 - P / p);
|
|
758
|
+
const ee = j - X.top;
|
|
759
|
+
if (ee < p)
|
|
760
|
+
return -E * Q(1 - ee / p);
|
|
763
761
|
}
|
|
764
762
|
return 0;
|
|
765
763
|
}
|
|
766
|
-
function
|
|
767
|
-
const
|
|
768
|
-
return
|
|
769
|
-
}
|
|
770
|
-
function
|
|
771
|
-
|
|
772
|
-
const { top:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
),
|
|
777
|
-
}
|
|
778
|
-
function
|
|
779
|
-
let
|
|
780
|
-
|
|
781
|
-
const
|
|
782
|
-
for (let
|
|
783
|
-
const
|
|
784
|
-
if (
|
|
764
|
+
function B(j) {
|
|
765
|
+
const S = { ...b.value, right: 0, bottom: 0 };
|
|
766
|
+
return S.left += h.value.left, S.top += h.value.top - D.value.top, S.right = S.width + S.left, S.bottom = S.height + S.top, S.left < j.right && S.right > j.left && S.top < j.bottom && S.bottom > j.top;
|
|
767
|
+
}
|
|
768
|
+
function H() {
|
|
769
|
+
D.value.sync();
|
|
770
|
+
const { top: j, height: S } = D.value;
|
|
771
|
+
w.value.y = Math.min(
|
|
772
|
+
S + h.value.top,
|
|
773
|
+
w.value.y + j - w.value.scrollTop
|
|
774
|
+
), w.value.scrollTop = j;
|
|
775
|
+
}
|
|
776
|
+
function k(j, S, X = "dynamic-styles") {
|
|
777
|
+
let P = document.getElementById(X);
|
|
778
|
+
P || (P = document.createElement("style"), P.id = X, document.head.appendChild(P));
|
|
779
|
+
const ee = P.sheet.cssRules, ue = ee.length, Oe = `${j} { ${S} }`;
|
|
780
|
+
for (let he = 0; he < ue; he++) {
|
|
781
|
+
const we = ee[he];
|
|
782
|
+
if (we.selectorText === j && we.style.cssText === S)
|
|
785
783
|
return;
|
|
786
784
|
}
|
|
787
|
-
|
|
785
|
+
P.sheet.insertRule(Oe, ue);
|
|
788
786
|
}
|
|
789
|
-
function
|
|
790
|
-
u.value = !0,
|
|
791
|
-
const
|
|
792
|
-
|
|
787
|
+
function W(j, S) {
|
|
788
|
+
u.value = !0, y.value = !0, D.value.sync(!0);
|
|
789
|
+
const X = S + D.value.top;
|
|
790
|
+
T.value.x = j, T.value.y = X, w.value.x = j, w.value.y = X, M.value?.classList.add("disable-scroll-behavior"), v.clear();
|
|
793
791
|
}
|
|
794
|
-
function
|
|
795
|
-
!
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
),
|
|
792
|
+
function J(j, S, X) {
|
|
793
|
+
!y.value || (u.value && o === "colum" && !Ne() && (C.value || i(), u.value = !1), X?.(), I(S), w.value.x = Math.max(j, h.value.left), w.value.y = Math.min(
|
|
794
|
+
S + D.value.top,
|
|
795
|
+
D.value.height + h.value.top
|
|
796
|
+
), w.value.scrollTop = D.value.top, f.value());
|
|
799
797
|
}
|
|
800
|
-
function
|
|
801
|
-
|
|
798
|
+
function V() {
|
|
799
|
+
y.value = !1, M.value?.classList.remove("disable-scroll-behavior");
|
|
802
800
|
}
|
|
803
|
-
function
|
|
804
|
-
!
|
|
801
|
+
function le() {
|
|
802
|
+
!y.value || (_ || H(), f.value());
|
|
805
803
|
}
|
|
806
|
-
function
|
|
807
|
-
if (!
|
|
804
|
+
function Ne() {
|
|
805
|
+
if (!y.value)
|
|
808
806
|
return !1;
|
|
809
|
-
const { width:
|
|
810
|
-
return !(Math.max(
|
|
807
|
+
const { width: j, height: S } = b.value;
|
|
808
|
+
return !(Math.max(j, S) > 5);
|
|
811
809
|
}
|
|
812
|
-
function
|
|
813
|
-
|
|
810
|
+
function Ct() {
|
|
811
|
+
Ne() && i();
|
|
814
812
|
}
|
|
815
|
-
function
|
|
816
|
-
|
|
813
|
+
function St() {
|
|
814
|
+
Ne() || M.value?.querySelectorAll(`[${n}]`).forEach((j) => {
|
|
817
815
|
r[c.value] = g(
|
|
818
|
-
|
|
819
|
-
),
|
|
816
|
+
j.getAttribute(`${n}`)
|
|
817
|
+
), B(j.getBoundingClientRect()) ? a([r]) : C.value || d([r]);
|
|
820
818
|
});
|
|
821
819
|
}
|
|
822
|
-
function
|
|
823
|
-
const
|
|
824
|
-
let
|
|
825
|
-
M.value?.querySelectorAll(`[${n}]`).forEach((
|
|
826
|
-
const
|
|
827
|
-
|
|
820
|
+
function Ot() {
|
|
821
|
+
const j = [];
|
|
822
|
+
let S = null, X = 0;
|
|
823
|
+
M.value?.querySelectorAll(`[${n}]`).forEach((P, ee) => {
|
|
824
|
+
const ue = g(P.getAttribute(`${n}`));
|
|
825
|
+
j.push(ue), B(P.getBoundingClientRect()) ? (S === null && (S = ee), S = Math.min(S, ee), X = Math.max(X, ee)) : (r[c.value] = ue, v.has(ue) && d([r]));
|
|
828
826
|
});
|
|
829
|
-
for (let
|
|
830
|
-
r[c.value] =
|
|
827
|
+
for (let P = S; P < X + 1; P++)
|
|
828
|
+
r[c.value] = j[P], a([r]), v.add(j[P]);
|
|
829
|
+
}
|
|
830
|
+
function it() {
|
|
831
|
+
if (!h.value)
|
|
832
|
+
return !0;
|
|
833
|
+
const { left: j, right: S, top: X, bottom: P } = h.value, ee = window.innerWidth, ue = window.innerHeight, Oe = S <= 0, he = j >= ee, we = P <= 0, kt = X >= ue;
|
|
834
|
+
return Oe || he || we || kt;
|
|
835
|
+
}
|
|
836
|
+
function _t() {
|
|
837
|
+
it() && ut();
|
|
831
838
|
}
|
|
832
|
-
function
|
|
833
|
-
|
|
839
|
+
function ut(j = 100, S = 3) {
|
|
840
|
+
if (!M.value)
|
|
841
|
+
return;
|
|
842
|
+
let X = 0;
|
|
843
|
+
const P = () => {
|
|
844
|
+
!M.value || (h.value = M.value.getBoundingClientRect(), it() && X < S && (X++, setTimeout(P, j)));
|
|
845
|
+
};
|
|
846
|
+
P();
|
|
847
|
+
}
|
|
848
|
+
function bt(j) {
|
|
849
|
+
return !j?.value || (M.value = j.value, !M?.value) ? !1 : (ut(), k(".disable-scroll-behavior", "scroll-behavior: unset !important;"), !0);
|
|
834
850
|
}
|
|
835
851
|
return {
|
|
836
|
-
init:
|
|
837
|
-
dragStart:
|
|
838
|
-
dragMove:
|
|
839
|
-
dragEnd:
|
|
840
|
-
onScroll:
|
|
841
|
-
isSingleClick:
|
|
842
|
-
cancelSelectAllBySingleClick:
|
|
843
|
-
selectFn:
|
|
852
|
+
init: bt,
|
|
853
|
+
dragStart: W,
|
|
854
|
+
dragMove: J,
|
|
855
|
+
dragEnd: V,
|
|
856
|
+
onScroll: le,
|
|
857
|
+
isSingleClick: Ne,
|
|
858
|
+
cancelSelectAllBySingleClick: Ct,
|
|
859
|
+
selectFn: f,
|
|
844
860
|
getAttributeValue: g,
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
861
|
+
checkAndUpdateRect: _t,
|
|
862
|
+
incrementalSelect: C,
|
|
863
|
+
selectRange: b,
|
|
864
|
+
isPressing: y,
|
|
865
|
+
containerEl: M
|
|
850
866
|
};
|
|
851
867
|
}
|
|
852
|
-
function
|
|
853
|
-
const n =
|
|
854
|
-
onScroll:
|
|
855
|
-
dragStart:
|
|
856
|
-
dragMove:
|
|
857
|
-
dragEnd:
|
|
858
|
-
cancelSelectAllBySingleClick:
|
|
859
|
-
} = n,
|
|
860
|
-
left: `${
|
|
861
|
-
top: `${
|
|
862
|
-
width: `${
|
|
863
|
-
height: `${
|
|
864
|
-
})), { load:
|
|
868
|
+
function Yo(e, t = !1) {
|
|
869
|
+
const n = It(e), { selectRange: o } = n, {
|
|
870
|
+
onScroll: l,
|
|
871
|
+
dragStart: s,
|
|
872
|
+
dragMove: a,
|
|
873
|
+
dragEnd: d,
|
|
874
|
+
cancelSelectAllBySingleClick: i
|
|
875
|
+
} = n, r = z(() => ({
|
|
876
|
+
left: `${o.value.left}px`,
|
|
877
|
+
top: `${o.value.top}px`,
|
|
878
|
+
width: `${o.value.width}px`,
|
|
879
|
+
height: `${o.value.height}px`
|
|
880
|
+
})), { load: f } = Ve(
|
|
865
881
|
`.drag-select-box {
|
|
866
882
|
position: absolute;
|
|
867
883
|
z-index: 99999;
|
|
@@ -869,88 +885,88 @@ function bo(e, t = !1) {
|
|
|
869
885
|
opacity: 0.5;
|
|
870
886
|
}`,
|
|
871
887
|
{ id: "styletag_lzc_dragselect", manual: !0 }
|
|
872
|
-
),
|
|
888
|
+
), c = q({
|
|
873
889
|
render() {
|
|
874
|
-
return
|
|
890
|
+
return re("div", {
|
|
875
891
|
id: "selectBoxEl",
|
|
876
892
|
class: "drag-select-box",
|
|
877
|
-
style:
|
|
893
|
+
style: r.value
|
|
878
894
|
});
|
|
879
895
|
}
|
|
880
896
|
});
|
|
881
|
-
function
|
|
882
|
-
T.button === 0 && (t && (T.ctrlKey || T.metaKey) && (n.incrementalSelect.value = !0),
|
|
897
|
+
function g(T) {
|
|
898
|
+
T.button === 0 && (t && (T.ctrlKey || T.metaKey) && (n.incrementalSelect.value = !0), s(T.x, T.y), window.addEventListener("mousemove", v), window.addEventListener("mouseup", u));
|
|
883
899
|
}
|
|
884
|
-
function
|
|
885
|
-
|
|
900
|
+
function v(T) {
|
|
901
|
+
a(T.x, T.y);
|
|
886
902
|
}
|
|
887
|
-
function
|
|
888
|
-
window.removeEventListener("mousemove",
|
|
889
|
-
(
|
|
890
|
-
|
|
903
|
+
function u(T) {
|
|
904
|
+
window.removeEventListener("mousemove", v), window.removeEventListener("mouseup", u), T.composedPath().some(
|
|
905
|
+
(h) => n.getAttributeValue(
|
|
906
|
+
h?.getAttribute?.(e.attribute)
|
|
891
907
|
)
|
|
892
|
-
) ||
|
|
908
|
+
) || i(), d(), n.incrementalSelect.value = !1;
|
|
893
909
|
}
|
|
894
|
-
function
|
|
910
|
+
function M(T) {
|
|
895
911
|
try {
|
|
896
912
|
if (!n.init(T))
|
|
897
913
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
898
914
|
if (!n.containerEl?.value)
|
|
899
915
|
return !1;
|
|
900
|
-
|
|
901
|
-
} catch (
|
|
902
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
916
|
+
De(re(c), n.containerEl.value), f(), n.containerEl.value?.addEventListener("scroll", l), n.containerEl.value?.addEventListener("mousedown", g);
|
|
917
|
+
} catch (w) {
|
|
918
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", w);
|
|
903
919
|
}
|
|
904
920
|
}
|
|
905
|
-
function
|
|
906
|
-
|
|
921
|
+
function y() {
|
|
922
|
+
n.containerEl.value?.removeEventListener("scroll", l), n.containerEl.value?.removeEventListener("mousedown", g);
|
|
907
923
|
}
|
|
908
|
-
return { init:
|
|
924
|
+
return { init: M, unMount: y };
|
|
909
925
|
}
|
|
910
|
-
function
|
|
911
|
-
const o =
|
|
926
|
+
function Bo(e, t, n = 600) {
|
|
927
|
+
const o = It({
|
|
912
928
|
...e,
|
|
913
929
|
selectWay: "row",
|
|
914
930
|
scrollOptions: {
|
|
915
931
|
startSpeed: 5,
|
|
916
932
|
maxSpeed: 5
|
|
917
933
|
}
|
|
918
|
-
}), {
|
|
919
|
-
let
|
|
920
|
-
function
|
|
921
|
-
clearTimeout(
|
|
934
|
+
}), { onScroll: l, dragStart: s, dragMove: a, dragEnd: d } = o;
|
|
935
|
+
let i;
|
|
936
|
+
function r() {
|
|
937
|
+
clearTimeout(i);
|
|
922
938
|
}
|
|
923
|
-
function
|
|
924
|
-
|
|
925
|
-
const { clientX: T, clientY:
|
|
926
|
-
|
|
939
|
+
function f(M) {
|
|
940
|
+
r(), M.composedPath().some((T) => !!T?.getAttribute?.(e.attribute)) && (o.checkAndUpdateRect(), i = setTimeout(() => {
|
|
941
|
+
const { clientX: T, clientY: w } = M.targetTouches[0];
|
|
942
|
+
o.checkAndUpdateRect(), s(T, w), t?.(), a(T, w, () => M.preventDefault()), M.preventDefault();
|
|
927
943
|
}, n));
|
|
928
944
|
}
|
|
929
|
-
function
|
|
930
|
-
|
|
931
|
-
const { clientX:
|
|
932
|
-
|
|
945
|
+
function c(M) {
|
|
946
|
+
r();
|
|
947
|
+
const { clientX: y, clientY: T } = M.targetTouches[0];
|
|
948
|
+
a(y, T, () => M.preventDefault());
|
|
933
949
|
}
|
|
934
|
-
function
|
|
935
|
-
|
|
950
|
+
function g() {
|
|
951
|
+
r(), d();
|
|
936
952
|
}
|
|
937
|
-
function
|
|
953
|
+
function v(M) {
|
|
938
954
|
try {
|
|
939
|
-
if (!o.init(
|
|
955
|
+
if (!o.init(M))
|
|
940
956
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
941
957
|
if (!o.containerEl?.value)
|
|
942
958
|
return !1;
|
|
943
|
-
o.containerEl.value?.addEventListener("scroll",
|
|
944
|
-
} catch (
|
|
945
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
959
|
+
o.containerEl.value?.addEventListener("scroll", l), o.containerEl.value?.addEventListener("touchstart", f), o.containerEl.value?.addEventListener("touchmove", c), window.addEventListener("touchcancel", g), window.addEventListener("touchend", g);
|
|
960
|
+
} catch (y) {
|
|
961
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", y);
|
|
946
962
|
}
|
|
947
963
|
}
|
|
948
|
-
function
|
|
949
|
-
|
|
964
|
+
function u() {
|
|
965
|
+
o.containerEl.value?.removeEventListener("scroll", l), o.containerEl.value?.removeEventListener("touchstart", f), o.containerEl.value?.removeEventListener("touchmove", c), window.removeEventListener("touchcancel", g), window.removeEventListener("touchEnd", g);
|
|
950
966
|
}
|
|
951
|
-
return { init:
|
|
967
|
+
return { init: v, unMount: u };
|
|
952
968
|
}
|
|
953
|
-
const
|
|
969
|
+
const fn = Symbol(), vn = /* @__PURE__ */ q({
|
|
954
970
|
__name: "Dialog",
|
|
955
971
|
props: {
|
|
956
972
|
visiable: { type: Boolean, default: !1 },
|
|
@@ -965,39 +981,39 @@ const rn = Symbol(), cn = /* @__PURE__ */ q({
|
|
|
965
981
|
const n = e, o = () => {
|
|
966
982
|
n.onClickOverlay?.(), n.closeOnClickOverlay && t("update:visiable", !1);
|
|
967
983
|
};
|
|
968
|
-
return
|
|
969
|
-
default:
|
|
970
|
-
e.visiable ?
|
|
984
|
+
return F(fn, () => t("update:visiable", !1)), (l, s) => (U(), Ae(He, { name: "modal" }, {
|
|
985
|
+
default: $e(() => [
|
|
986
|
+
e.visiable ? ce((U(), $("div", {
|
|
971
987
|
key: 0,
|
|
972
988
|
class: se([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
973
989
|
}, [
|
|
974
990
|
R("div", {
|
|
975
|
-
onMousedown: s[0] || (s[0] =
|
|
991
|
+
onMousedown: s[0] || (s[0] = ye(() => {
|
|
976
992
|
}, ["stop"])),
|
|
977
993
|
class: se(["lzc-dialog", e.dialogClass])
|
|
978
994
|
}, [
|
|
979
|
-
|
|
995
|
+
ze(l.$slots, "default", {}, void 0, !0)
|
|
980
996
|
], 34)
|
|
981
997
|
], 2)), [
|
|
982
|
-
[A(
|
|
998
|
+
[A(Zt), () => o()]
|
|
983
999
|
]) : fe("", !0)
|
|
984
1000
|
]),
|
|
985
1001
|
_: 3
|
|
986
1002
|
}));
|
|
987
1003
|
}
|
|
988
1004
|
});
|
|
989
|
-
const
|
|
1005
|
+
const oe = (e, t) => {
|
|
990
1006
|
const n = e.__vccOpts || e;
|
|
991
1007
|
for (const [o, l] of t)
|
|
992
1008
|
n[o] = l;
|
|
993
1009
|
return n;
|
|
994
|
-
},
|
|
995
|
-
function
|
|
1010
|
+
}, Mn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-3d61e60a"]]);
|
|
1011
|
+
function Uo(e) {
|
|
996
1012
|
function t(n, o) {
|
|
997
1013
|
const l = document.createElement("div"), s = {
|
|
998
1014
|
setup() {
|
|
999
|
-
return () =>
|
|
1000
|
-
|
|
1015
|
+
return () => re(
|
|
1016
|
+
Mn,
|
|
1001
1017
|
{
|
|
1002
1018
|
visiable: !0,
|
|
1003
1019
|
"onUpdate:visiable": () => {
|
|
@@ -1006,12 +1022,12 @@ function Qo(e) {
|
|
|
1006
1022
|
...e
|
|
1007
1023
|
},
|
|
1008
1024
|
{
|
|
1009
|
-
default: () =>
|
|
1025
|
+
default: () => re(n, o)
|
|
1010
1026
|
}
|
|
1011
1027
|
);
|
|
1012
1028
|
}
|
|
1013
1029
|
};
|
|
1014
|
-
return document.body.appendChild(l),
|
|
1030
|
+
return document.body.appendChild(l), De(re(s), l), {
|
|
1015
1031
|
close: () => l?.remove()
|
|
1016
1032
|
};
|
|
1017
1033
|
}
|
|
@@ -1019,13 +1035,13 @@ function Qo(e) {
|
|
|
1019
1035
|
create: t
|
|
1020
1036
|
};
|
|
1021
1037
|
}
|
|
1022
|
-
function
|
|
1038
|
+
function At({
|
|
1023
1039
|
component: e,
|
|
1024
1040
|
componentProps: t,
|
|
1025
1041
|
delay: n = 300
|
|
1026
1042
|
}) {
|
|
1027
1043
|
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
|
|
1028
|
-
return
|
|
1044
|
+
return Ve(
|
|
1029
1045
|
`@keyframes lzcDelayLoad {
|
|
1030
1046
|
to {
|
|
1031
1047
|
opacity: 1;
|
|
@@ -1037,19 +1053,19 @@ function wt({
|
|
|
1037
1053
|
}`
|
|
1038
1054
|
), { LoadingComp: q({
|
|
1039
1055
|
setup() {
|
|
1040
|
-
const
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1043
|
-
}), () =>
|
|
1056
|
+
const d = sn();
|
|
1057
|
+
return de(() => {
|
|
1058
|
+
d.value?.classList?.add(l);
|
|
1059
|
+
}), () => re(e, t);
|
|
1044
1060
|
}
|
|
1045
1061
|
}) };
|
|
1046
1062
|
}
|
|
1047
|
-
function
|
|
1063
|
+
function Ro({
|
|
1048
1064
|
component: e,
|
|
1049
1065
|
componentProps: t,
|
|
1050
1066
|
delay: n = 300
|
|
1051
1067
|
}) {
|
|
1052
|
-
const { LoadingComp: o } =
|
|
1068
|
+
const { LoadingComp: o } = At({
|
|
1053
1069
|
component: e,
|
|
1054
1070
|
componentProps: t,
|
|
1055
1071
|
delay: n
|
|
@@ -1062,24 +1078,24 @@ function Yo({
|
|
|
1062
1078
|
}
|
|
1063
1079
|
return { LoadingComp: o, loading: l, load: s, unload: a };
|
|
1064
1080
|
}
|
|
1065
|
-
const
|
|
1081
|
+
const gn = (e) => (Le("data-v-92a1804d"), e = e(), je(), e), hn = /* @__PURE__ */ gn(() => /* @__PURE__ */ R("div", { class: "ldio-mm5gwljcryb" }, [
|
|
1066
1082
|
/* @__PURE__ */ R("div")
|
|
1067
|
-
], -1)),
|
|
1068
|
-
|
|
1069
|
-
],
|
|
1083
|
+
], -1)), mn = [
|
|
1084
|
+
hn
|
|
1085
|
+
], yn = /* @__PURE__ */ q({
|
|
1070
1086
|
__name: "DefaultLoading",
|
|
1071
1087
|
props: {
|
|
1072
1088
|
width: { default: 24 },
|
|
1073
1089
|
height: { default: 24 }
|
|
1074
1090
|
},
|
|
1075
1091
|
setup(e) {
|
|
1076
|
-
return
|
|
1092
|
+
return Pe((t) => ({
|
|
1077
1093
|
"4e4a9ce4": e.width + "px",
|
|
1078
1094
|
e56fe5c2: e.height + "px"
|
|
1079
|
-
})), (t, n) => (
|
|
1095
|
+
})), (t, n) => (U(), $("div", Qe(Ye(t.$attrs)), mn, 16));
|
|
1080
1096
|
}
|
|
1081
1097
|
});
|
|
1082
|
-
const
|
|
1098
|
+
const pn = /* @__PURE__ */ oe(yn, [["__scopeId", "data-v-92a1804d"]]), Dn = "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", Tn = { class: "loading-wrap" }, Nn = ["src"], wn = /* @__PURE__ */ q({
|
|
1083
1099
|
__name: "PageLoading",
|
|
1084
1100
|
props: {
|
|
1085
1101
|
delay: { default: "0.15s" },
|
|
@@ -1087,27 +1103,27 @@ const hn = /* @__PURE__ */ ne(gn, [["__scopeId", "data-v-92a1804d"]]), mn = "dat
|
|
|
1087
1103
|
},
|
|
1088
1104
|
setup(e) {
|
|
1089
1105
|
const t = e;
|
|
1090
|
-
|
|
1106
|
+
Pe((o) => ({
|
|
1091
1107
|
b1cf73a8: e.delay
|
|
1092
1108
|
}));
|
|
1093
1109
|
const n = z(() => {
|
|
1094
1110
|
const o = {};
|
|
1095
1111
|
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1096
1112
|
});
|
|
1097
|
-
return (o, l) => (
|
|
1113
|
+
return (o, l) => (U(), $("div", Tn, [
|
|
1098
1114
|
R("img", {
|
|
1099
1115
|
class: "loading-circle",
|
|
1100
|
-
src: A(
|
|
1116
|
+
src: A(Dn),
|
|
1101
1117
|
style: K(A(n))
|
|
1102
|
-
}, null, 12,
|
|
1118
|
+
}, null, 12, Nn)
|
|
1103
1119
|
]));
|
|
1104
1120
|
}
|
|
1105
1121
|
});
|
|
1106
|
-
const
|
|
1107
|
-
async function
|
|
1122
|
+
const Ho = /* @__PURE__ */ oe(wn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1123
|
+
async function st(e) {
|
|
1108
1124
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1109
1125
|
}
|
|
1110
|
-
const
|
|
1126
|
+
const En = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMDkgMTIuMDMyMTQyOSwxMS43NjQ0OTYgMTEuOTAzNTcxNCwxMS44OTI5NTI3IEMxMS44NjA3MTQzLDExLjk3ODU5MDUgMTEuNzc1LDEyIDExLjY4OTI4NTcsMTIgQzExLjYwMzU3MTQsMTIgMTEuNTE3ODU3MiwxMS45Nzg1OTA1IDExLjQ1MzU3MTQsMTEuOTE0MzYyMiBMNiw2LjQ2NSBMMC41NDY0Mjg1NzIsMTEuOTE0MzYyMiBDMC41MDM1NzE0MzMsMTEuOTc4NTkwNSAwLjQxNzg1NzE0MywxMiAwLjMzMjE0Mjg1MywxMiBDMC4yNDY0Mjg1NjMsMTIgMC4xNjA3MTQyODYsMTEuOTc4NTkwNSAwLjA5NjQyODU3MTUsMTEuOTE0MzYyMiBDLTAuMDMyMTQyODU3MiwxMS43ODU5MDU0IC0wLjAzMjE0Mjg1NzIsMTEuNTkzMjIwMyAwLjA5NjQyODU3MTUsMTEuNDY0NzYzNiBMNS41NDksNi4wMTUgTDAuMDk2NDI4NTcxNSwwLjU2NzM1MDU4NCBDLTAuMDEwNzE0MjgxNSwwLjQzODg5Mzg0OSAtMC4wMTA3MTQyODE1LDAuMjI0Nzk5Mjg2IDAuMDk2NDI4NTcxNSwwLjA5NjM0MjU1MTMgQzAuMjAzNTcxNDI0LC0wLjAzMjExNDE4MzggMC40MTc4NTcxNDMsLTAuMDMyMTE0MTgzOCAwLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgWiIgaWQ9IuW9oueKtue7k+WQiCI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+", In = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzVweCIgaGVpZ2h0PSIzNXB4IiB2aWV3Qm94PSIwIDAgNDAgNDAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNjguMDAwMDAwLCAtMzczLjAwMDAwMCkiIGZpbGw9IiM5RjlGOUYiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTE4LjAwMDAwMCwgMzU2LjAwMDAwMCkiPgogICAgICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSg1MC4wMDAwMDAsIDE3LjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBkPSJNMjAsMTIuMzQ0ODI3NiBDMTkuMjAwMTM5MywxMi4zNDQ4Mjc2IDE4LjU1MTcyNDEsMTEuNjk2NDEyNCAxOC41NTE3MjQxLDEwLjg5NjU1MTcgTDE4LjU1MTcyNDEsMy40NDgyNzU4NiBDMTguNTUxNzI0MSwyLjY0ODQxNTE5IDE5LjIwMDEzOTMsMiAyMCwyIEMyMC43OTk4NjA3LDIgMjEuNDQ4Mjc1OSwyLjY0ODQxNTE5IDIxLjQ0ODI3NTksMy40NDgyNzU4NiBMMjEuNDQ4Mjc1OSwxMC44OTY1NTE3IEMyMS40NDgyNzU5LDExLjY5NjQxMjQgMjAuNzk5ODYwNywxMi4zNDQ4Mjc2IDIwLDEyLjM0NDgyNzYgTDIwLDEyLjM0NDgyNzYgWiBNMjAsMzggQzE5LjYxNTg5MzQsMzggMTkuMjQ3NTE4NywzNy44NDc0MTQyIDE4Ljk3NTkxNDMsMzcuNTc1ODA5OCBDMTguNzA0MzA5OSwzNy4zMDQyMDU0IDE4LjU1MTcyNDEsMzYuOTM1ODMwOCAxOC41NTE3MjQxLDM2LjU1MTcyNDEgTDE4LjU1MTcyNDEsMjkuMTAzNDQ4MyBDMTguNTUxNzI0MSwyOC4zMDM1ODc2IDE5LjIwMDEzOTMsMjcuNjU1MTcyNCAyMCwyNy42NTUxNzI0IEMyMC43OTk4NjA3LDI3LjY1NTE3MjQgMjEuNDQ4Mjc1OSwyOC4zMDM1ODc2IDIxLjQ0ODI3NTksMjkuMTAzNDQ4MyBMMjEuNDQ4Mjc1OSwzNi41NTE3MjQxIEMyMS40NDgyNzU5LDM3LjM1MTU4NDggMjAuNzk5ODYwNywzOCAyMCwzOCBMMjAsMzggWiBNMjUuNDEzMDM0NSwxNC41ODY5NjU1IEMyNS4xNDE0MTA3LDE0LjMxNTM5MjIgMjQuOTg4ODA5OCwxMy45NDcwMjk0IDI0Ljk4ODgwOTgsMTMuNTYyOTMxIEMyNC45ODg4MDk4LDEzLjE3ODgzMjcgMjUuMTQxNDEwNywxMi44MTA0Njk5IDI1LjQxMzAzNDUsMTIuNTM4ODk2NiBMMzAuNjc5NzkzMSw3LjI3MjEzNzkzIEMzMC45NTEzNjY0LDcuMDAwNTE0MTQgMzEuMzE5NzI5Miw2Ljg0NzkxMzI0IDMxLjcwMzgyNzYsNi44NDc5MTMyNCBDMzIuMDg3OTI2LDYuODQ3OTEzMjQgMzIuNDU2Mjg4Nyw3LjAwMDUxNDE0IDMyLjcyNzg2MjEsNy4yNzIxMzc5MyBDMzIuOTk5NDg1OSw3LjU0MzcxMTI3IDMzLjE1MjA4NjgsNy45MTIwNzQwNCAzMy4xNTIwODY4LDguMjk2MTcyNDEgQzMzLjE1MjA4NjgsOC42ODAyNzA3OSAzMi45OTk0ODU5LDkuMDQ4NjMzNTYgMzIuNzI3ODYyMSw5LjMyMDIwNjkgTDI3LjQ2MTEwMzQsMTQuNTg2OTY1NSBDMjcuMTg5NTMwMSwxNC44NTg1ODkzIDI2LjgyMTE2NzMsMTUuMDExMTkwMiAyNi40MzcwNjksMTUuMDExMTkwMiBDMjYuMDUyOTcwNiwxNS4wMTExOTAyIDI1LjY4NDYwNzgsMTQuODU4NTg5MyAyNS40MTMwMzQ1LDE0LjU4Njk2NTUgTDI1LjQxMzAzNDUsMTQuNTg2OTY1NSBaIE03LjI3MjEzNzkzLDMyLjcyNzg2MjEgQzcuMDAwNTE0MTQsMzIuNDU2Mjg4NyA2Ljg0NzkxMzI0LDMyLjA4NzkyNiA2Ljg0NzkxMzI0LDMxLjcwMzgyNzYgQzYuODQ3OTEzMjQsMzEuMzE5NzI5MiA3LjAwMDUxNDE0LDMwLjk1MTM2NjQgNy4yNzIxMzc5MywzMC42Nzk3OTMxIEwxMi41Mzg4OTY2LDI1LjQxMzAzNDUgQzEyLjgxMDQ2OTksMjUuMTQxNDEwNyAxMy4xNzg4MzI3LDI0Ljk4ODgwOTggMTMuNTYyOTMxLDI0Ljk4ODgwOTggQzEzLjk0NzAyOTQsMjQuOTg4ODA5OCAxNC4zMTUzOTIyLDI1LjE0MTQxMDcgMTQuNTg2OTY1NSwyNS40MTMwMzQ1IEMxNC44NTg1ODkzLDI1LjY4NDYwNzggMTUuMDExMTkwMiwyNi4wNTI5NzA2IDE1LjAxMTE5MDIsMjYuNDM3MDY5IEMxNS4wMTExOTAyLDI2LjgyMTE2NzMgMTQuODU4NTg5MywyNy4xODk1MzAxIDE0LjU4Njk2NTUsMjcuNDYxMTAzNCBMOS4zMjAyMDY5LDMyLjcyNzg2MjEgQzkuMDQ4NjMzNTYsMzIuOTk5NDg1OSA4LjY4MDI3MDc5LDMzLjE1MjA4NjggOC4yOTYxNzI0MSwzMy4xNTIwODY4IEM3LjkxMjA3NDA0LDMzLjE1MjA4NjggNy41NDM3MTEyNywzMi45OTk0ODU5IDcuMjcyMTM3OTMsMzIuNzI3ODYyMSBMNy4yNzIxMzc5MywzMi43Mjc4NjIxIFogTTI3LjY1NTE3MjQsMjAgQzI3LjY1NTE3MjQsMTkuMjAwMTM5MyAyOC4zMDM1ODc2LDE4LjU1MTcyNDEgMjkuMTAzNDQ4MywxOC41NTE3MjQxIEwzNi41NTE3MjQxLDE4LjU1MTcyNDEgQzM3LjM1MTU4NDgsMTguNTUxNzI0MSAzOCwxOS4yMDAxMzkzIDM4LDIwIEMzOCwyMC43OTk4NjA3IDM3LjM1MTU4NDgsMjEuNDQ4Mjc1OSAzNi41NTE3MjQxLDIxLjQ0ODI3NTkgTDI5LjEwMzQ0ODMsMjEuNDQ4Mjc1OSBDMjguMzAzNTg3NiwyMS40NDgyNzU5IDI3LjY1NTE3MjQsMjAuNzk5ODYwNyAyNy42NTUxNzI0LDIwIEwyNy42NTUxNzI0LDIwIFogTTIsMjAgQzIsMTkuMjAwMTM5MyAyLjY0ODQxNTE5LDE4LjU1MTcyNDEgMy40NDgyNzU4NiwxOC41NTE3MjQxIEwxMC44OTY1NTE3LDE4LjU1MTcyNDEgQzExLjY5NjQxMjQsMTguNTUxNzI0MSAxMi4zNDQ4Mjc2LDE5LjIwMDEzOTMgMTIuMzQ0ODI3NiwyMCBDMTIuMzQ0ODI3NiwyMC43OTk4NjA3IDExLjY5NjQxMjQsMjEuNDQ4Mjc1OSAxMC44OTY1NTE3LDIxLjQ0ODI3NTkgTDMuNDQ4Mjc1ODYsMjEuNDQ4Mjc1OSBDMi42NDg0MTUxOSwyMS40NDgyNzU5IDIsMjAuNzk5ODYwNyAyLDIwIFogTTI1LjQxMzAzNDUsMjUuNDEzMDM0NSBDMjUuNjg0NjA3OCwyNS4xNDE0MTA3IDI2LjA1Mjk3MDYsMjQuOTg4ODA5OCAyNi40MzcwNjksMjQuOTg4ODA5OCBDMjYuODIxMTY3MywyNC45ODg4MDk4IDI3LjE4OTUzMDEsMjUuMTQxNDEwNyAyNy40NjExMDM0LDI1LjQxMzAzNDUgTDMyLjcyNzg2MjEsMzAuNjc5NzkzMSBDMzIuOTk5NDg1OSwzMC45NTEzNjY0IDMzLjE1MjA4NjgsMzEuMzE5NzI5MiAzMy4xNTIwODY4LDMxLjcwMzgyNzYgQzMzLjE1MjA4NjgsMzIuMDg3OTI2IDMyLjk5OTQ4NTksMzIuNDU2Mjg4NyAzMi43Mjc4NjIxLDMyLjcyNzg2MjEgQzMyLjQ1NjI4ODcsMzIuOTk5NDg1OSAzMi4wODc5MjYsMzMuMTUyMDg2OCAzMS43MDM4Mjc2LDMzLjE1MjA4NjggQzMxLjMxOTcyOTIsMzMuMTUyMDg2OCAzMC45NTEzNjY0LDMyLjk5OTQ4NTkgMzAuNjc5NzkzMSwzMi43Mjc4NjIxIEwyNS40MTMwMzQ1LDI3LjQ2MTEwMzQgQzI1LjE0MTQxMDcsMjcuMTg5NTMwMSAyNC45ODg4MDk4LDI2LjgyMTE2NzMgMjQuOTg4ODA5OCwyNi40MzcwNjkgQzI0Ljk4ODgwOTgsMjYuMDUyOTcwNiAyNS4xNDE0MTA3LDI1LjY4NDYwNzggMjUuNDEzMDM0NSwyNS40MTMwMzQ1IEwyNS40MTMwMzQ1LDI1LjQxMzAzNDUgWiBNNy4yNzIxMzc5Myw3LjI3MjEzNzkzIEM3LjU0MzcxMTI3LDcuMDAwNTE0MTQgNy45MTIwNzQwNCw2Ljg0NzkxMzI0IDguMjk2MTcyNDEsNi44NDc5MTMyNCBDOC42ODAyNzA3OSw2Ljg0NzkxMzI0IDkuMDQ4NjMzNTYsNy4wMDA1MTQxNCA5LjMyMDIwNjksNy4yNzIxMzc5MyBMMTQuNTg2OTY1NSwxMi41Mzg4OTY2IEMxNC44NTg1ODkzLDEyLjgxMDQ2OTkgMTUuMDExMTkwMiwxMy4xNzg4MzI3IDE1LjAxMTE5MDIsMTMuNTYyOTMxIEMxNS4wMTExOTAyLDEzLjk0NzAyOTQgMTQuODU4NTg5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+", An = ["onClick"], zn = ["onClick"], Ln = ["src"], jn = ["src"], xn = /* @__PURE__ */ q({
|
|
1111
1127
|
__name: "index",
|
|
1112
1128
|
props: {
|
|
1113
1129
|
visible: null,
|
|
@@ -1141,53 +1157,53 @@ const Tn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1141
1157
|
let r = {};
|
|
1142
1158
|
return n.showClose && !n.icon && (r.paddingRight = "16px"), r;
|
|
1143
1159
|
});
|
|
1144
|
-
function
|
|
1160
|
+
function d() {
|
|
1145
1161
|
n.closeOnClickOverlay && t("close");
|
|
1146
1162
|
}
|
|
1147
1163
|
function i() {
|
|
1148
1164
|
n.closeOnClick && t("close");
|
|
1149
1165
|
}
|
|
1150
|
-
return (r,
|
|
1166
|
+
return (r, f) => (U(), Ae(He, {
|
|
1151
1167
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
1152
1168
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
1153
1169
|
}, {
|
|
1154
|
-
default:
|
|
1170
|
+
default: $e(() => [
|
|
1155
1171
|
R("div", {
|
|
1156
1172
|
id: o,
|
|
1157
1173
|
style: K(A(l))
|
|
1158
1174
|
}, [
|
|
1159
|
-
|
|
1175
|
+
ce(R("div", {
|
|
1160
1176
|
class: se(`${o} ${e.className}`),
|
|
1161
|
-
onClick:
|
|
1177
|
+
onClick: ye(d, ["stop"])
|
|
1162
1178
|
}, [
|
|
1163
1179
|
R("div", {
|
|
1164
1180
|
class: se(`${o}-wrap`),
|
|
1165
|
-
onClick:
|
|
1181
|
+
onClick: ye(i, ["stop"])
|
|
1166
1182
|
}, [
|
|
1167
1183
|
R("div", {
|
|
1168
1184
|
class: se(`${o}-content`),
|
|
1169
1185
|
style: K(A(s))
|
|
1170
1186
|
}, [
|
|
1171
|
-
e.showClose ? (
|
|
1187
|
+
e.showClose ? (U(), $("img", {
|
|
1172
1188
|
key: 0,
|
|
1173
|
-
onClick:
|
|
1174
|
-
src: A(
|
|
1189
|
+
onClick: f[0] || (f[0] = ye((c) => t("close"), ["stop"])),
|
|
1190
|
+
src: A(En),
|
|
1175
1191
|
class: se(`${o}-close`)
|
|
1176
|
-
}, null, 10,
|
|
1177
|
-
e.showIcon ? (
|
|
1192
|
+
}, null, 10, Ln)) : fe("", !0),
|
|
1193
|
+
e.showIcon ? (U(), $("img", {
|
|
1178
1194
|
key: 1,
|
|
1179
|
-
src: e.icon || A(
|
|
1195
|
+
src: e.icon || A(In),
|
|
1180
1196
|
class: se(`${o}-icon`)
|
|
1181
|
-
}, null, 10,
|
|
1182
|
-
e.message ? (
|
|
1197
|
+
}, null, 10, jn)) : fe("", !0),
|
|
1198
|
+
e.message ? (U(), $("div", {
|
|
1183
1199
|
key: 2,
|
|
1184
1200
|
class: se(`${o}-message`),
|
|
1185
1201
|
style: K(A(a))
|
|
1186
|
-
},
|
|
1202
|
+
}, Fe(e.message), 7)) : fe("", !0)
|
|
1187
1203
|
], 6)
|
|
1188
|
-
], 10,
|
|
1189
|
-
], 10,
|
|
1190
|
-
[
|
|
1204
|
+
], 10, zn)
|
|
1205
|
+
], 10, An), [
|
|
1206
|
+
[xe, e.visible]
|
|
1191
1207
|
])
|
|
1192
1208
|
], 4)
|
|
1193
1209
|
]),
|
|
@@ -1195,23 +1211,23 @@ const Tn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1195
1211
|
}));
|
|
1196
1212
|
}
|
|
1197
1213
|
});
|
|
1198
|
-
const
|
|
1199
|
-
class
|
|
1214
|
+
const Cn = /* @__PURE__ */ oe(xn, [["__scopeId", "data-v-0947d1e3"]]);
|
|
1215
|
+
class Sn {
|
|
1200
1216
|
loadingToast;
|
|
1201
1217
|
el;
|
|
1202
1218
|
options;
|
|
1203
1219
|
visible = m(!1);
|
|
1204
1220
|
animateDuration = 300;
|
|
1205
1221
|
constructor(t) {
|
|
1206
|
-
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast =
|
|
1222
|
+
this.options = { ...t, visible: this.visible }, this.options.duration == null && (this.options.duration = 60 * 10 * 1e3), this.el = document.createElement("div"), this.loadingToast = Cn;
|
|
1207
1223
|
}
|
|
1208
1224
|
async show() {
|
|
1209
1225
|
const t = this.options, o = { ...t, onClose: () => {
|
|
1210
1226
|
this.close(), t?.onClose?.();
|
|
1211
1227
|
} }, l = ge(this.loadingToast, o);
|
|
1212
|
-
|
|
1228
|
+
De(l, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, t.duration !== 0 && setTimeout(() => {
|
|
1213
1229
|
this.destory();
|
|
1214
|
-
}, t.duration), await
|
|
1230
|
+
}, t.duration), await st(t.duration + this.animateDuration);
|
|
1215
1231
|
}
|
|
1216
1232
|
async destory() {
|
|
1217
1233
|
!this.visible.value || (this.visible.value = !1, await new Promise((t) => {
|
|
@@ -1228,8 +1244,8 @@ class jn {
|
|
|
1228
1244
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1229
1245
|
}
|
|
1230
1246
|
}
|
|
1231
|
-
function
|
|
1232
|
-
const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay !== void 0 ? t.delay : 300,
|
|
1247
|
+
function $o(e, t) {
|
|
1248
|
+
const n = !!t?.debug, o = t?.printErrorLog !== !1, l = t?.loading !== !1, s = t?.autoClose !== !1, a = t?.delay !== void 0 ? t.delay : 300, d = t?.hook !== void 0 ? t.hook : !0, i = {
|
|
1233
1249
|
...t,
|
|
1234
1250
|
showIcon: t?.showIcon !== !1,
|
|
1235
1251
|
captureEventP: t?.captureEventP === !0
|
|
@@ -1242,11 +1258,11 @@ function Uo(e, t) {
|
|
|
1242
1258
|
i
|
|
1243
1259
|
);
|
|
1244
1260
|
const r = m(!1);
|
|
1245
|
-
let
|
|
1246
|
-
const c = new
|
|
1261
|
+
let f = null;
|
|
1262
|
+
const c = new Sn(i);
|
|
1247
1263
|
async function g(...u) {
|
|
1248
1264
|
if (n && console.log(`useDelayAsync - handler - processing: ${r.value}`), !r.value) {
|
|
1249
|
-
r.value = !0,
|
|
1265
|
+
r.value = !0, f = setTimeout(() => {
|
|
1250
1266
|
n && console.log(
|
|
1251
1267
|
"useDelayAsync - handler - setTimeout - loading: %s processing: %s",
|
|
1252
1268
|
l,
|
|
@@ -1256,41 +1272,41 @@ function Uo(e, t) {
|
|
|
1256
1272
|
try {
|
|
1257
1273
|
n && console.time("useDelayAsync - handler-execute-time");
|
|
1258
1274
|
const M = await e(...u);
|
|
1259
|
-
return n && console.log("useDelayAsync - execute res: ", M), n && console.timeEnd("useDelayAsync - handler-execute-time"), await
|
|
1275
|
+
return n && console.log("useDelayAsync - execute res: ", M), n && console.timeEnd("useDelayAsync - handler-execute-time"), await v(s), await t?.onSuccess?.(M, [...u]), M;
|
|
1260
1276
|
} catch (M) {
|
|
1261
|
-
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(M), await
|
|
1277
|
+
n && console.timeEnd("useDelayAsync - handler-execute-time"), o && console.error(M), await v(s), await t?.onError?.(M, [...u]);
|
|
1262
1278
|
}
|
|
1263
1279
|
}
|
|
1264
1280
|
}
|
|
1265
|
-
async function
|
|
1266
|
-
n && console.log("useDelayAsync - close - closeLoading: ", u), r.value = !1,
|
|
1281
|
+
async function v(u = !0) {
|
|
1282
|
+
n && console.log("useDelayAsync - close - closeLoading: ", u), r.value = !1, f && clearTimeout(f), f = null, u && await c.destory();
|
|
1267
1283
|
}
|
|
1268
|
-
return
|
|
1269
|
-
n && console.log("useDelayAsync - onBeforeUnmount - close"),
|
|
1284
|
+
return d && yt(() => {
|
|
1285
|
+
n && console.log("useDelayAsync - onBeforeUnmount - close"), v();
|
|
1270
1286
|
}), {
|
|
1271
1287
|
processing: r,
|
|
1272
1288
|
handler: g,
|
|
1273
|
-
close:
|
|
1289
|
+
close: v
|
|
1274
1290
|
};
|
|
1275
1291
|
}
|
|
1276
|
-
function
|
|
1292
|
+
function On(e, t) {
|
|
1277
1293
|
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
1278
1294
|
}
|
|
1279
|
-
function
|
|
1280
|
-
const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""),
|
|
1295
|
+
function _n() {
|
|
1296
|
+
const e = m(0), t = m(0), n = m(0), o = m(0), l = m(0), s = m(0), a = m(""), d = () => a.value === "vertical", i = () => a.value === "horizontal", r = () => {
|
|
1281
1297
|
n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
|
|
1282
1298
|
};
|
|
1283
|
-
function
|
|
1284
|
-
r(), e.value = g, t.value =
|
|
1299
|
+
function f(g, v) {
|
|
1300
|
+
r(), e.value = g, t.value = v;
|
|
1285
1301
|
}
|
|
1286
|
-
function c(g,
|
|
1287
|
-
n.value = (g < 0 ? 0 : g) - e.value, o.value =
|
|
1302
|
+
function c(g, v) {
|
|
1303
|
+
n.value = (g < 0 ? 0 : g) - e.value, o.value = v - t.value, l.value = Math.abs(n.value), s.value = Math.abs(o.value);
|
|
1288
1304
|
const u = 10;
|
|
1289
|
-
(!a.value || l.value < u && s.value < u) && (a.value =
|
|
1305
|
+
(!a.value || l.value < u && s.value < u) && (a.value = On(l.value, s.value));
|
|
1290
1306
|
}
|
|
1291
1307
|
return {
|
|
1292
1308
|
move: c,
|
|
1293
|
-
start:
|
|
1309
|
+
start: f,
|
|
1294
1310
|
reset: r,
|
|
1295
1311
|
startX: e,
|
|
1296
1312
|
startY: t,
|
|
@@ -1299,26 +1315,26 @@ function Cn() {
|
|
|
1299
1315
|
offsetX: l,
|
|
1300
1316
|
offsetY: s,
|
|
1301
1317
|
direction: a,
|
|
1302
|
-
isVertical:
|
|
1318
|
+
isVertical: d,
|
|
1303
1319
|
isHorizontal: i
|
|
1304
1320
|
};
|
|
1305
1321
|
}
|
|
1306
|
-
const
|
|
1307
|
-
function
|
|
1322
|
+
const ct = 250, dt = 5, bn = 500;
|
|
1323
|
+
function kn(e) {
|
|
1308
1324
|
const { isDouble: t = !0 } = e;
|
|
1309
1325
|
let n, o;
|
|
1310
1326
|
function l() {
|
|
1311
1327
|
n = Date.now();
|
|
1312
1328
|
}
|
|
1313
|
-
async function s(a,
|
|
1329
|
+
async function s(a, d) {
|
|
1314
1330
|
const i = Date.now() - n;
|
|
1315
|
-
a <
|
|
1331
|
+
a < dt && d < dt && (i < ct ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
|
|
1316
1332
|
e.onTap?.(), o = null;
|
|
1317
|
-
},
|
|
1333
|
+
}, ct) : e.onTap?.() : i > bn && e.onLongPress?.());
|
|
1318
1334
|
}
|
|
1319
1335
|
return { startTap: l, checkTap: s };
|
|
1320
1336
|
}
|
|
1321
|
-
function
|
|
1337
|
+
function Qn(e, t) {
|
|
1322
1338
|
const n = m(!1);
|
|
1323
1339
|
function o() {
|
|
1324
1340
|
n.value || (n.value = !0, A(e)?.addEventListener("transitionend", l));
|
|
@@ -1328,7 +1344,7 @@ function _n(e, t) {
|
|
|
1328
1344
|
}
|
|
1329
1345
|
return { transitioning: n, startTransition: o };
|
|
1330
1346
|
}
|
|
1331
|
-
function
|
|
1347
|
+
function Yn(e, t, n, o) {
|
|
1332
1348
|
var l = Math.min(
|
|
1333
1349
|
n / e,
|
|
1334
1350
|
o / t
|
|
@@ -1338,42 +1354,42 @@ function bn(e, t, n, o) {
|
|
|
1338
1354
|
height: ae(a)
|
|
1339
1355
|
};
|
|
1340
1356
|
}
|
|
1341
|
-
function
|
|
1357
|
+
function Bn(e) {
|
|
1342
1358
|
return e < 3 ? "444ms" : e < 6 ? "555ms" : "666ms";
|
|
1343
1359
|
}
|
|
1344
|
-
function
|
|
1360
|
+
function be(e, t, n) {
|
|
1345
1361
|
return Math.min(Math.max(e, t), n);
|
|
1346
1362
|
}
|
|
1347
1363
|
function ae(e, t = 2) {
|
|
1348
1364
|
return parseFloat(e.toFixed(t));
|
|
1349
1365
|
}
|
|
1350
|
-
function
|
|
1366
|
+
function ke(e, t, n) {
|
|
1351
1367
|
return e = ae(e), t = ae(t), `translate3d(${e}px, ${t}px, 0) scale3d(${n},${n},${n})`;
|
|
1352
1368
|
}
|
|
1353
|
-
function
|
|
1369
|
+
function ft(e) {
|
|
1354
1370
|
return Math.sqrt(
|
|
1355
1371
|
(e[0].clientX - e[1].clientX) ** 2 + (e[0].clientY - e[1].clientY) ** 2
|
|
1356
1372
|
);
|
|
1357
1373
|
}
|
|
1358
|
-
function
|
|
1374
|
+
function Un(e) {
|
|
1359
1375
|
return {
|
|
1360
1376
|
x: (e[0].clientX + e[1].clientX) / 2,
|
|
1361
1377
|
y: (e[0].clientY + e[1].clientY) / 2
|
|
1362
1378
|
};
|
|
1363
1379
|
}
|
|
1364
|
-
function
|
|
1365
|
-
const t = m(!1), n = m(1), o = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }),
|
|
1380
|
+
function zt(e) {
|
|
1381
|
+
const t = m(!1), n = m(1), o = m(9), l = m(), s = m(), a = m({ width: 0, height: 0 }), d = m({ width: 0, height: 0 }), i = pe({
|
|
1366
1382
|
level: 1,
|
|
1367
1383
|
offsetX: 0,
|
|
1368
1384
|
offsetY: 0,
|
|
1369
1385
|
zooming: !1,
|
|
1370
1386
|
preview: !0,
|
|
1371
1387
|
lastCenter: { x: 0, y: 0 }
|
|
1372
|
-
}), r = m({}),
|
|
1388
|
+
}), r = m({}), f = _n(), c = Qn(s, {
|
|
1373
1389
|
onComplate() {
|
|
1374
|
-
i.preview ||
|
|
1390
|
+
i.preview || y();
|
|
1375
1391
|
}
|
|
1376
|
-
}), g =
|
|
1392
|
+
}), g = kn({
|
|
1377
1393
|
onTap() {
|
|
1378
1394
|
e.onTap?.();
|
|
1379
1395
|
},
|
|
@@ -1384,19 +1400,19 @@ function Et(e) {
|
|
|
1384
1400
|
e.onLongPress?.();
|
|
1385
1401
|
}
|
|
1386
1402
|
});
|
|
1387
|
-
|
|
1403
|
+
Ze(s, (p) => v(p)), G(
|
|
1388
1404
|
[l, s],
|
|
1389
1405
|
([p, E]) => {
|
|
1390
1406
|
u(p, E);
|
|
1391
1407
|
},
|
|
1392
1408
|
{ immediate: !0 }
|
|
1393
1409
|
);
|
|
1394
|
-
async function
|
|
1410
|
+
async function v(p) {
|
|
1395
1411
|
const [E] = p;
|
|
1396
|
-
E.contentRect.width ==
|
|
1412
|
+
E.contentRect.width == d.value.width && E.contentRect.height == d.value.height || (await u(l.value), await y(i.level, !0));
|
|
1397
1413
|
}
|
|
1398
1414
|
async function u(p, E) {
|
|
1399
|
-
await
|
|
1415
|
+
await x(p, E), p && Y();
|
|
1400
1416
|
}
|
|
1401
1417
|
async function M(p) {
|
|
1402
1418
|
if (!i.preview)
|
|
@@ -1405,45 +1421,45 @@ function Et(e) {
|
|
|
1405
1421
|
const E = s.value;
|
|
1406
1422
|
if (!E)
|
|
1407
1423
|
return;
|
|
1408
|
-
const { scrollTop: O, scrollLeft: Q } = E, { width:
|
|
1424
|
+
const { scrollTop: O, scrollLeft: Q } = E, { width: _, height: I } = a.value, { scaleW: L, scaleH: B } = C(p), { top: H, left: k } = N(L, B), W = k != 0 ? k : Q * -1, J = H != 0 ? H : O * -1;
|
|
1409
1425
|
E.scrollTop = 0, E.scrollLeft = 0;
|
|
1410
1426
|
const { value: V } = r;
|
|
1411
|
-
V.width = `${
|
|
1427
|
+
V.width = `${_}px`, V.height = `${I}px`, V.maxHeight = "none", V.transitionDuration = "0s", V.transform = ke(W, J, p), r.value = V, await Me(), i.offsetX = W, i.offsetY = J, await st(20);
|
|
1412
1428
|
}
|
|
1413
|
-
async function
|
|
1429
|
+
async function y(p, E) {
|
|
1414
1430
|
if (!E && i.preview)
|
|
1415
1431
|
return;
|
|
1416
1432
|
i.preview = !0, p = p ?? i.level;
|
|
1417
|
-
const { value: O } = r, { scaleW: Q, scaleH:
|
|
1418
|
-
p === 1 && (O.maxHeight = "100%"), O.width = `${Q}px`, O.height = `${
|
|
1419
|
-
const
|
|
1420
|
-
if (!
|
|
1433
|
+
const { value: O } = r, { scaleW: Q, scaleH: _ } = C(p), { left: I, top: L } = N(Q, _);
|
|
1434
|
+
p === 1 && (O.maxHeight = "100%"), O.width = `${Q}px`, O.height = `${_}px`, O.transitionDuration = "0s", O.transform = ke(I, L, 1), r.value = O, await Me();
|
|
1435
|
+
const B = s.value;
|
|
1436
|
+
if (!B)
|
|
1421
1437
|
return;
|
|
1422
|
-
const { offsetX:
|
|
1423
|
-
|
|
1438
|
+
const { offsetX: H, offsetY: k } = i;
|
|
1439
|
+
H < 0 && (B.scrollLeft = Math.abs(H)), k < 0 && (B.scrollTop = Math.abs(k));
|
|
1424
1440
|
}
|
|
1425
|
-
async function
|
|
1426
|
-
if (t.value || (p = ae(p), p =
|
|
1441
|
+
async function T(p, E, O) {
|
|
1442
|
+
if (t.value || (p = ae(p), p = be(
|
|
1427
1443
|
p,
|
|
1428
1444
|
n.value - n.value * 0.5,
|
|
1429
1445
|
o.value + o.value * 0.5
|
|
1430
1446
|
), p == i.level))
|
|
1431
1447
|
return;
|
|
1432
|
-
i.preview && await M(), E || (E = { x:
|
|
1433
|
-
const { value: Q } = r, { width:
|
|
1434
|
-
left: Math.abs(
|
|
1435
|
-
top: Math.abs(
|
|
1436
|
-
right:
|
|
1437
|
-
bottom:
|
|
1448
|
+
i.preview && await M(), E || (E = { x: f.startX.value, y: f.startY.value });
|
|
1449
|
+
const { value: Q } = r, { width: _, height: I } = a.value, { scaleW: L, scaleH: B } = C(p), { top: H, left: k } = N(L, B), W = p / i.level, J = {
|
|
1450
|
+
left: Math.abs(_ * p - d.value.width) * -1,
|
|
1451
|
+
top: Math.abs(I * p - d.value.height) * -1,
|
|
1452
|
+
right: k,
|
|
1453
|
+
bottom: H
|
|
1438
1454
|
};
|
|
1439
|
-
let V =
|
|
1440
|
-
V = ae(
|
|
1455
|
+
let V = k != 0 ? k : (i.offsetX - E.x) * W + E.x, le = H != 0 ? H : (i.offsetY - E.y) * W + E.y;
|
|
1456
|
+
V = ae(be(V, J.left, J.right)), le = ae(be(le, J.top, J.bottom)), Q.width = `${_}px`, Q.height = `${I}px`, Q.transitionDuration = O ? Bn(p) : "0s", Q.transform = ke(V, le, p), i.offsetX = V, i.offsetY = le, i.level = p, r.value = Q, await Me(), O && c.startTransition(), e.onScale?.(p);
|
|
1441
1457
|
}
|
|
1442
|
-
function
|
|
1443
|
-
const p = i.level > 1 ? 1 :
|
|
1444
|
-
|
|
1458
|
+
function w() {
|
|
1459
|
+
const p = i.level > 1 ? 1 : b();
|
|
1460
|
+
T(p, void 0, !0);
|
|
1445
1461
|
}
|
|
1446
|
-
function
|
|
1462
|
+
function h(p, E) {
|
|
1447
1463
|
if (!i.preview)
|
|
1448
1464
|
return;
|
|
1449
1465
|
const O = s.value;
|
|
@@ -1453,14 +1469,14 @@ function Et(e) {
|
|
|
1453
1469
|
});
|
|
1454
1470
|
}
|
|
1455
1471
|
async function D() {
|
|
1456
|
-
i.level >= n.value && i.level <= o.value ? i.zooming && await
|
|
1472
|
+
i.level >= n.value && i.level <= o.value ? i.zooming && await y() : i.level < n.value ? await T(n.value, void 0, !0) : i.level > o.value && await T(o.value, i.lastCenter, !0), i.zooming = !1;
|
|
1457
1473
|
}
|
|
1458
|
-
function
|
|
1459
|
-
const { width: p, height: E } = a.value, { width: O, height: Q } =
|
|
1460
|
-
let
|
|
1461
|
-
return E == Q ? (
|
|
1474
|
+
function b() {
|
|
1475
|
+
const { width: p, height: E } = a.value, { width: O, height: Q } = d.value, _ = 2.5;
|
|
1476
|
+
let I;
|
|
1477
|
+
return E == Q ? (I = O / p, I - 1 < 0.1 && (I = _)) : I = Math.max(_, O / p, Q / E), I;
|
|
1462
1478
|
}
|
|
1463
|
-
function
|
|
1479
|
+
function C(p) {
|
|
1464
1480
|
const { width: E, height: O } = a.value;
|
|
1465
1481
|
return {
|
|
1466
1482
|
scaleW: ae(p * E),
|
|
@@ -1468,37 +1484,37 @@ function Et(e) {
|
|
|
1468
1484
|
};
|
|
1469
1485
|
}
|
|
1470
1486
|
function N(p, E) {
|
|
1471
|
-
const { width: O, height: Q } =
|
|
1472
|
-
return { top:
|
|
1487
|
+
const { width: O, height: Q } = d.value, _ = Math.max(0, (Q - E) * 0.5), I = Math.max(0, (O - p) * 0.5);
|
|
1488
|
+
return { top: _, left: I };
|
|
1473
1489
|
}
|
|
1474
|
-
async function
|
|
1490
|
+
async function x(p, E) {
|
|
1475
1491
|
if (p = p ?? l.value, E = E ?? s.value, !E)
|
|
1476
1492
|
return;
|
|
1477
|
-
let O, { clientWidth: Q = 0, clientHeight:
|
|
1478
|
-
const { clientWidth:
|
|
1493
|
+
let O, { clientWidth: Q = 0, clientHeight: _ = 0 } = p || {};
|
|
1494
|
+
const { clientWidth: I, clientHeight: L } = E;
|
|
1479
1495
|
if (p instanceof HTMLImageElement ? O = { width: p.naturalWidth, height: p.naturalHeight } : p instanceof HTMLVideoElement && (O = { width: p.videoWidth, height: p.videoHeight }), O) {
|
|
1480
|
-
const
|
|
1496
|
+
const B = Yn(
|
|
1481
1497
|
O.width,
|
|
1482
1498
|
O.height,
|
|
1483
|
-
|
|
1499
|
+
I,
|
|
1484
1500
|
L
|
|
1485
1501
|
);
|
|
1486
|
-
Q =
|
|
1502
|
+
Q = B.width, _ = B.height;
|
|
1487
1503
|
}
|
|
1488
|
-
(Q === 0 ||
|
|
1489
|
-
width: Math.min(Q,
|
|
1490
|
-
height: Math.min(
|
|
1491
|
-
},
|
|
1504
|
+
(Q === 0 || _ === 0) && (Q = a.value.width || I, _ = a.value.height || L), a.value = {
|
|
1505
|
+
width: Math.min(Q, I),
|
|
1506
|
+
height: Math.min(_, L)
|
|
1507
|
+
}, d.value = { width: I, height: L }, y(void 0, !0);
|
|
1492
1508
|
}
|
|
1493
1509
|
function Y() {
|
|
1494
|
-
const p =
|
|
1510
|
+
const p = b();
|
|
1495
1511
|
o.value = Math.max(o.value, p * 2);
|
|
1496
1512
|
}
|
|
1497
|
-
function
|
|
1513
|
+
function Z(p) {
|
|
1498
1514
|
t.value = p;
|
|
1499
1515
|
}
|
|
1500
1516
|
return {
|
|
1501
|
-
touch:
|
|
1517
|
+
touch: f,
|
|
1502
1518
|
state: i,
|
|
1503
1519
|
style: r,
|
|
1504
1520
|
gesture: g,
|
|
@@ -1506,29 +1522,29 @@ function Et(e) {
|
|
|
1506
1522
|
imageRef: l,
|
|
1507
1523
|
containerRef: s,
|
|
1508
1524
|
switchToZoom: M,
|
|
1509
|
-
switchToPreview:
|
|
1510
|
-
panTo:
|
|
1511
|
-
zoomTo:
|
|
1525
|
+
switchToPreview: y,
|
|
1526
|
+
panTo: h,
|
|
1527
|
+
zoomTo: T,
|
|
1512
1528
|
zoomFinished: D,
|
|
1513
|
-
toggleZoom:
|
|
1514
|
-
setDisableZoom:
|
|
1529
|
+
toggleZoom: w,
|
|
1530
|
+
setDisableZoom: Z
|
|
1515
1531
|
};
|
|
1516
1532
|
}
|
|
1517
|
-
function
|
|
1518
|
-
const { state: n, touch: o, transition: l, containerRef: s } = e, a =
|
|
1519
|
-
let
|
|
1533
|
+
function Lt(e, t) {
|
|
1534
|
+
const { state: n, touch: o, transition: l, containerRef: s } = e, a = un(s);
|
|
1535
|
+
let d, i;
|
|
1520
1536
|
function r(g) {
|
|
1521
|
-
|
|
1537
|
+
d = g;
|
|
1522
1538
|
}
|
|
1523
|
-
function
|
|
1524
|
-
return
|
|
1539
|
+
function f(g) {
|
|
1540
|
+
return d == g;
|
|
1525
1541
|
}
|
|
1526
|
-
function c(g,
|
|
1542
|
+
function c(g, v, u, M) {
|
|
1527
1543
|
a.measure();
|
|
1528
|
-
const { top:
|
|
1544
|
+
const { top: y, left: T, right: w, bottom: h } = a.arrivedState;
|
|
1529
1545
|
if (g == "start")
|
|
1530
|
-
i =
|
|
1531
|
-
else if (
|
|
1546
|
+
i = y || T || w || h;
|
|
1547
|
+
else if (d == 2)
|
|
1532
1548
|
i = !1;
|
|
1533
1549
|
else if (i) {
|
|
1534
1550
|
if (o.direction.value == "vertical")
|
|
@@ -1536,113 +1552,113 @@ function It(e, t) {
|
|
|
1536
1552
|
i = !1;
|
|
1537
1553
|
else {
|
|
1538
1554
|
const D = o.startY.value < u;
|
|
1539
|
-
i =
|
|
1555
|
+
i = y && D || h && !D;
|
|
1540
1556
|
}
|
|
1541
1557
|
else if (o.direction.value == "horizontal") {
|
|
1542
|
-
const D = o.startX.value <
|
|
1543
|
-
i =
|
|
1558
|
+
const D = o.startX.value < v;
|
|
1559
|
+
i = T && D || w && !D;
|
|
1544
1560
|
}
|
|
1545
1561
|
}
|
|
1546
|
-
i && l.transitioning.value && (i = !1, M?.preventDefault()), g == "end" && !i && (
|
|
1562
|
+
i && l.transitioning.value && (i = !1, M?.preventDefault()), g == "end" && !i && (v = o.startX.value, u = o.startY.value, i = !0), (g != "move" || i) && t?.(g, o.direction.value, v, u, M);
|
|
1547
1563
|
}
|
|
1548
|
-
return { onSwipeEdge: c, setFingerNum: r, isEqualFingerNum:
|
|
1564
|
+
return { onSwipeEdge: c, setFingerNum: r, isEqualFingerNum: f };
|
|
1549
1565
|
}
|
|
1550
|
-
function
|
|
1551
|
-
const t =
|
|
1566
|
+
function Po(e) {
|
|
1567
|
+
const t = zt({
|
|
1552
1568
|
onDoubleTap() {
|
|
1553
1569
|
t.toggleZoom();
|
|
1554
1570
|
},
|
|
1555
1571
|
...e
|
|
1556
1572
|
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1557
|
-
let a = !1,
|
|
1558
|
-
const i = { top: 0, left: 0 }, r =
|
|
1559
|
-
|
|
1560
|
-
function g(
|
|
1573
|
+
let a = !1, d = null;
|
|
1574
|
+
const i = { top: 0, left: 0 }, r = Ce(y, 150), { onSwipeEdge: f } = Lt(t, e.onSwipeEdge), c = m({ top: 0, left: 0 });
|
|
1575
|
+
Ee("keyup", w), Ee("keydown", T);
|
|
1576
|
+
function g(h) {
|
|
1561
1577
|
const D = t.containerRef.value;
|
|
1562
1578
|
if (!D)
|
|
1563
1579
|
return;
|
|
1564
|
-
const { left:
|
|
1565
|
-
c.value.left =
|
|
1566
|
-
let N =
|
|
1567
|
-
o.start(N,
|
|
1580
|
+
const { left: b, top: C } = D.getBoundingClientRect();
|
|
1581
|
+
c.value.left = b, c.value.top = C, l.startTap();
|
|
1582
|
+
let N = h.clientX - b, x = h.clientY - C;
|
|
1583
|
+
o.start(N, x), f("start", N, x, h), s.transitioning.value || (a = !0, i.left = b, i.top = C, n.offsetX = D.scrollLeft, n.offsetY = D.scrollTop), window.addEventListener("pointermove", v), window.addEventListener("pointerup", u);
|
|
1568
1584
|
}
|
|
1569
|
-
function
|
|
1585
|
+
function v(h) {
|
|
1570
1586
|
if (!a)
|
|
1571
1587
|
return;
|
|
1572
|
-
let D =
|
|
1573
|
-
o.move(D,
|
|
1588
|
+
let D = h.clientX, b = h.clientY;
|
|
1589
|
+
o.move(D, b), f(
|
|
1574
1590
|
"move",
|
|
1575
1591
|
D - c.value.left,
|
|
1576
|
-
|
|
1577
|
-
|
|
1592
|
+
b - c.value.top,
|
|
1593
|
+
h
|
|
1578
1594
|
), n.level !== 1 && t.panTo(
|
|
1579
1595
|
o.deltaX.value - i.left,
|
|
1580
1596
|
o.deltaY.value - i.top
|
|
1581
1597
|
);
|
|
1582
1598
|
}
|
|
1583
|
-
function u(
|
|
1584
|
-
|
|
1599
|
+
function u(h) {
|
|
1600
|
+
f("end", o.offsetX.value, o.offsetY.value, h), l.checkTap(o.offsetX.value, o.offsetY.value), o.reset(), a = !1, window.removeEventListener("pointermove", v), window.removeEventListener("pointerup", u);
|
|
1585
1601
|
}
|
|
1586
|
-
function M(
|
|
1587
|
-
if (!
|
|
1602
|
+
function M(h) {
|
|
1603
|
+
if (!h.ctrlKey)
|
|
1588
1604
|
return;
|
|
1589
|
-
n.zooming || (n.zooming = !0,
|
|
1590
|
-
let D = -
|
|
1591
|
-
|
|
1592
|
-
const
|
|
1605
|
+
n.zooming || (n.zooming = !0, d == "Control" && window.addEventListener("keyup", y)), h.preventDefault();
|
|
1606
|
+
let D = -h.deltaY;
|
|
1607
|
+
h.deltaMode === 1 ? D *= 0.05 : D *= h.deltaMode ? 1 : 2e-3, d != "Control" && (D *= 10), D = 2 ** D;
|
|
1608
|
+
const b = n.level * D;
|
|
1593
1609
|
n.lastCenter = {
|
|
1594
|
-
x:
|
|
1595
|
-
y:
|
|
1596
|
-
}, t.zoomTo(
|
|
1610
|
+
x: h.clientX - c.value.left,
|
|
1611
|
+
y: h.clientY - c.value.top
|
|
1612
|
+
}, t.zoomTo(b, n.lastCenter), d != "Control" && r();
|
|
1597
1613
|
}
|
|
1598
|
-
function
|
|
1599
|
-
t.zoomFinished(), window.removeEventListener("keyup",
|
|
1614
|
+
function y() {
|
|
1615
|
+
t.zoomFinished(), window.removeEventListener("keyup", y);
|
|
1600
1616
|
}
|
|
1601
|
-
function
|
|
1602
|
-
|
|
1617
|
+
function T(h) {
|
|
1618
|
+
d = h.key;
|
|
1603
1619
|
}
|
|
1604
|
-
function
|
|
1605
|
-
|
|
1620
|
+
function w() {
|
|
1621
|
+
d = null;
|
|
1606
1622
|
}
|
|
1607
1623
|
return { core: t, onPointerDown: g, onWheel: M };
|
|
1608
1624
|
}
|
|
1609
|
-
function
|
|
1610
|
-
const t =
|
|
1625
|
+
function Fo(e) {
|
|
1626
|
+
const t = zt({
|
|
1611
1627
|
onDoubleTap() {
|
|
1612
1628
|
t.toggleZoom();
|
|
1613
1629
|
},
|
|
1614
1630
|
...e
|
|
1615
|
-
}), { state: n, touch: o, gesture: l } = t, { setFingerNum: s, onSwipeEdge: a, isEqualFingerNum:
|
|
1631
|
+
}), { state: n, touch: o, gesture: l } = t, { setFingerNum: s, onSwipeEdge: a, isEqualFingerNum: d } = Lt(
|
|
1616
1632
|
t,
|
|
1617
1633
|
e.onSwipeEdge
|
|
1618
1634
|
);
|
|
1619
1635
|
let i, r;
|
|
1620
|
-
async function v
|
|
1621
|
-
const { touches: u } =
|
|
1622
|
-
s(u.length), n.zooming =
|
|
1623
|
-
const { clientX: M, clientY:
|
|
1624
|
-
o.start(M,
|
|
1625
|
-
}
|
|
1626
|
-
async function c(
|
|
1627
|
-
const { touches: u } =
|
|
1636
|
+
async function f(v) {
|
|
1637
|
+
const { touches: u } = v;
|
|
1638
|
+
s(u.length), n.zooming = d(2), l.startTap();
|
|
1639
|
+
const { clientX: M, clientY: y } = u[0];
|
|
1640
|
+
o.start(M, y), a("start", M, y, v), n.zooming && (v.preventDefault(), i = n.level, r = ft(u), await t.switchToZoom(), n.lastCenter = Un(u));
|
|
1641
|
+
}
|
|
1642
|
+
async function c(v) {
|
|
1643
|
+
const { touches: u } = v;
|
|
1628
1644
|
s(u.length);
|
|
1629
|
-
const { clientX: M, clientY:
|
|
1630
|
-
if (o.move(M,
|
|
1631
|
-
|
|
1632
|
-
const
|
|
1633
|
-
t.zoomTo(
|
|
1645
|
+
const { clientX: M, clientY: y } = u[0];
|
|
1646
|
+
if (o.move(M, y), a("move", M, y, v), n.zooming && d(2)) {
|
|
1647
|
+
v.preventDefault();
|
|
1648
|
+
const T = ft(u), w = i * T / r;
|
|
1649
|
+
t.zoomTo(w, n.lastCenter);
|
|
1634
1650
|
}
|
|
1635
1651
|
}
|
|
1636
|
-
async function g(
|
|
1637
|
-
if (
|
|
1652
|
+
async function g(v) {
|
|
1653
|
+
if (v.touches.length)
|
|
1638
1654
|
return;
|
|
1639
|
-
const { clientX: u, clientY: M } =
|
|
1640
|
-
a("end", u, M,
|
|
1655
|
+
const { clientX: u, clientY: M } = v.changedTouches[0];
|
|
1656
|
+
a("end", u, M, v), l.checkTap(o.offsetX.value, o.offsetY.value), t.zoomFinished(), o.reset();
|
|
1641
1657
|
}
|
|
1642
|
-
return { core: t, onTouchStart:
|
|
1658
|
+
return { core: t, onTouchStart: f, onTouchMove: c, onTouchEnd: g };
|
|
1643
1659
|
}
|
|
1644
|
-
function
|
|
1645
|
-
const e =
|
|
1660
|
+
function Wo() {
|
|
1661
|
+
const e = pe({
|
|
1646
1662
|
scale: 1,
|
|
1647
1663
|
startX: 0,
|
|
1648
1664
|
startY: 0,
|
|
@@ -1662,11 +1678,11 @@ function Ho() {
|
|
|
1662
1678
|
}
|
|
1663
1679
|
return { state: e, dragStart: t, dragMove: n, dragEnd: o };
|
|
1664
1680
|
}
|
|
1665
|
-
function
|
|
1681
|
+
function Rn() {
|
|
1666
1682
|
const e = m(!1), t = m(!1);
|
|
1667
|
-
return
|
|
1683
|
+
return pt(() => {
|
|
1668
1684
|
!t.value || (e.value = !0);
|
|
1669
|
-
}),
|
|
1685
|
+
}), de(() => {
|
|
1670
1686
|
t.value = !1, setTimeout(() => {
|
|
1671
1687
|
t.value = !0;
|
|
1672
1688
|
});
|
|
@@ -1674,32 +1690,32 @@ function Yn() {
|
|
|
1674
1690
|
isActivated: e
|
|
1675
1691
|
};
|
|
1676
1692
|
}
|
|
1677
|
-
function
|
|
1693
|
+
function Hn(e) {
|
|
1678
1694
|
let t = !1;
|
|
1679
1695
|
return () => {
|
|
1680
1696
|
t || (e(), t = !0);
|
|
1681
1697
|
};
|
|
1682
1698
|
}
|
|
1683
|
-
function
|
|
1699
|
+
function Xo(e) {
|
|
1684
1700
|
let t = null;
|
|
1685
|
-
const { isActivated: n } =
|
|
1701
|
+
const { isActivated: n } = Rn(), o = Hn(() => t = window.onBackPress);
|
|
1686
1702
|
function l() {
|
|
1687
1703
|
o(), window.onBackPress = () => e();
|
|
1688
1704
|
}
|
|
1689
1705
|
function s() {
|
|
1690
1706
|
window.onBackPress = t;
|
|
1691
1707
|
}
|
|
1692
|
-
return
|
|
1708
|
+
return pt(() => {
|
|
1693
1709
|
!n.value || l();
|
|
1694
|
-
}),
|
|
1710
|
+
}), Ht(() => {
|
|
1695
1711
|
l();
|
|
1696
|
-
}),
|
|
1712
|
+
}), yt(() => {
|
|
1697
1713
|
s();
|
|
1698
|
-
}),
|
|
1714
|
+
}), $t(() => {
|
|
1699
1715
|
s();
|
|
1700
1716
|
}), { register: l, unregister: s };
|
|
1701
1717
|
}
|
|
1702
|
-
const
|
|
1718
|
+
const $n = ["onClick"], Pn = /* @__PURE__ */ q({
|
|
1703
1719
|
__name: "Toast",
|
|
1704
1720
|
props: {
|
|
1705
1721
|
message: null,
|
|
@@ -1723,7 +1739,7 @@ const Un = ["onClick"], Rn = /* @__PURE__ */ q({
|
|
|
1723
1739
|
padding: "14px 19px",
|
|
1724
1740
|
top: `calc(${s.value}% - ${l.value}px)`,
|
|
1725
1741
|
left: `calc(50% - ${o.value}px)`
|
|
1726
|
-
})),
|
|
1742
|
+
})), d = z(() => ({
|
|
1727
1743
|
width: "fit-content",
|
|
1728
1744
|
display: "flex",
|
|
1729
1745
|
justifyContent: "center",
|
|
@@ -1736,8 +1752,8 @@ const Un = ["onClick"], Rn = /* @__PURE__ */ q({
|
|
|
1736
1752
|
}
|
|
1737
1753
|
return Me(() => {
|
|
1738
1754
|
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1739
|
-
}), (r,
|
|
1740
|
-
onClick:
|
|
1755
|
+
}), (r, f) => (U(), $("div", {
|
|
1756
|
+
onClick: ye(i, ["stop"]),
|
|
1741
1757
|
id: "toastWrapper",
|
|
1742
1758
|
ref_key: "toastWrapper",
|
|
1743
1759
|
ref: n,
|
|
@@ -1745,30 +1761,30 @@ const Un = ["onClick"], Rn = /* @__PURE__ */ q({
|
|
|
1745
1761
|
style: K([A(a), { zIndex: 9999999 }])
|
|
1746
1762
|
}, [
|
|
1747
1763
|
R("div", {
|
|
1748
|
-
style: K(A(
|
|
1764
|
+
style: K(A(d))
|
|
1749
1765
|
}, [
|
|
1750
|
-
R("span", null,
|
|
1766
|
+
R("span", null, Fe(e.message), 1)
|
|
1751
1767
|
], 4)
|
|
1752
|
-
], 12,
|
|
1768
|
+
], 12, $n));
|
|
1753
1769
|
}
|
|
1754
1770
|
});
|
|
1755
|
-
const
|
|
1771
|
+
const Fn = /* @__PURE__ */ oe(Pn, [["__scopeId", "data-v-25d39b90"]]), vt = {
|
|
1756
1772
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1757
1773
|
position: "middle",
|
|
1758
1774
|
duration: 1500,
|
|
1759
1775
|
buttonClickEvent: () => {
|
|
1760
1776
|
}
|
|
1761
1777
|
};
|
|
1762
|
-
class
|
|
1778
|
+
class Zo {
|
|
1763
1779
|
options;
|
|
1764
1780
|
container;
|
|
1765
1781
|
constructor(t) {
|
|
1766
1782
|
this.options = t, this.container = document.createElement("div");
|
|
1767
1783
|
}
|
|
1768
1784
|
present() {
|
|
1769
|
-
const t =
|
|
1770
|
-
|
|
1771
|
-
const n = this.options.duration ||
|
|
1785
|
+
const t = re(re(Fn), { ...vt, ...this.options });
|
|
1786
|
+
De(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
1787
|
+
const n = this.options.duration || vt.duration;
|
|
1772
1788
|
setTimeout(() => {
|
|
1773
1789
|
this.dismiss();
|
|
1774
1790
|
}, n);
|
|
@@ -1779,12 +1795,12 @@ class Fo {
|
|
|
1779
1795
|
"#toastWrapper"
|
|
1780
1796
|
);
|
|
1781
1797
|
t.style.opacity = "0", t.style.transition = "opacity 0.4s ease-in", setTimeout(() => {
|
|
1782
|
-
this.container && (
|
|
1798
|
+
this.container && (De(null, this.container), document.body.removeChild(this.container));
|
|
1783
1799
|
}, 500);
|
|
1784
1800
|
}
|
|
1785
1801
|
}
|
|
1786
1802
|
}
|
|
1787
|
-
const
|
|
1803
|
+
const Wn = ["xlink:href", "fill", "color"], Ie = /* @__PURE__ */ q({
|
|
1788
1804
|
__name: "SvgIcon",
|
|
1789
1805
|
props: {
|
|
1790
1806
|
name: null,
|
|
@@ -1803,7 +1819,7 @@ const Hn = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1803
1819
|
const { style: a } = s;
|
|
1804
1820
|
return typeof a == "object" ? a : {};
|
|
1805
1821
|
}
|
|
1806
|
-
return (s, a) => (
|
|
1822
|
+
return (s, a) => (U(), $("svg", {
|
|
1807
1823
|
"aria-hidden": "",
|
|
1808
1824
|
style: K({ ...A(o), ...l(s.$attrs) })
|
|
1809
1825
|
}, [
|
|
@@ -1811,11 +1827,11 @@ const Hn = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1811
1827
|
"xlink:href": A(n),
|
|
1812
1828
|
fill: e.color,
|
|
1813
1829
|
color: e.color
|
|
1814
|
-
}, null, 8,
|
|
1830
|
+
}, null, 8, Wn)
|
|
1815
1831
|
], 4));
|
|
1816
1832
|
}
|
|
1817
1833
|
});
|
|
1818
|
-
function
|
|
1834
|
+
function Xn(e) {
|
|
1819
1835
|
const {
|
|
1820
1836
|
containerEl: t,
|
|
1821
1837
|
sliderEl: n,
|
|
@@ -1823,105 +1839,105 @@ function Pn(e) {
|
|
|
1823
1839
|
performance: l = {},
|
|
1824
1840
|
maxHeightRatio: s = 0.9,
|
|
1825
1841
|
observeMethod: a = "classList"
|
|
1826
|
-
} = e,
|
|
1827
|
-
let r,
|
|
1828
|
-
const c = m(0), g = m(0),
|
|
1842
|
+
} = e, d = m(!0), i = Ce(Z, 100);
|
|
1843
|
+
let r, f = "";
|
|
1844
|
+
const c = m(0), g = m(0), v = m(0), u = m({
|
|
1829
1845
|
top: 0,
|
|
1830
1846
|
scrollTop: 0,
|
|
1831
1847
|
scrollHeight: 0,
|
|
1832
1848
|
clientHeight: 0
|
|
1833
1849
|
}), M = m({
|
|
1834
1850
|
clientHeight: 0
|
|
1835
|
-
}),
|
|
1851
|
+
}), y = z(() => !!g.value), T = z(() => u.value.scrollHeight > u.value.clientHeight), w = z(() => o ? u.value.clientHeight - b.value : u.value.clientHeight - M.value.clientHeight), h = z(() => u.value.scrollHeight - u.value.clientHeight), D = z(() => !u.value.clientHeight && !u.value.scrollHeight ? 1 : Math.max(
|
|
1836
1852
|
u.value.clientHeight / u.value.scrollHeight,
|
|
1837
1853
|
0.05
|
|
1838
|
-
)),
|
|
1854
|
+
)), b = z(() => D.value > s ? 0 : D.value * u.value.clientHeight), C = z(() => ({
|
|
1839
1855
|
willChange: "transform",
|
|
1840
|
-
transform: `translate3d(0,${
|
|
1841
|
-
height: o ? `${
|
|
1856
|
+
transform: `translate3d(0,${v.value}px,0)`,
|
|
1857
|
+
height: o ? `${b.value}px` : void 0
|
|
1842
1858
|
}));
|
|
1843
|
-
|
|
1844
|
-
function N(
|
|
1845
|
-
Y(), g.value =
|
|
1859
|
+
Ze(t, () => L());
|
|
1860
|
+
function N(k) {
|
|
1861
|
+
Y(), g.value = k.clientY - n.value.getBoundingClientRect().top || 1, f = getComputedStyle(t.value).scrollBehavior, f === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
1846
1862
|
}
|
|
1847
|
-
function
|
|
1848
|
-
t.value.style.scrollBehavior =
|
|
1863
|
+
function x() {
|
|
1864
|
+
t.value.style.scrollBehavior = f, g.value = 0, i();
|
|
1849
1865
|
}
|
|
1850
1866
|
function Y() {
|
|
1851
|
-
|
|
1867
|
+
d.value = !1;
|
|
1852
1868
|
}
|
|
1853
|
-
function
|
|
1854
|
-
|
|
1869
|
+
function Z() {
|
|
1870
|
+
y.value || (d.value = !0);
|
|
1855
1871
|
}
|
|
1856
|
-
function p(
|
|
1857
|
-
if (!
|
|
1872
|
+
function p(k) {
|
|
1873
|
+
if (!y.value)
|
|
1858
1874
|
return;
|
|
1859
|
-
let
|
|
1860
|
-
|
|
1861
|
-
top:
|
|
1875
|
+
let W = k.clientY - u.value.top - g.value;
|
|
1876
|
+
W < 0 ? v.value = 0 : W >= w.value ? v.value = w.value : v.value = W, t.value.scrollTo({
|
|
1877
|
+
top: v.value / w.value * h.value
|
|
1862
1878
|
});
|
|
1863
1879
|
}
|
|
1864
1880
|
function E() {
|
|
1865
|
-
|
|
1881
|
+
y.value || O();
|
|
1866
1882
|
}
|
|
1867
1883
|
function O() {
|
|
1868
1884
|
cancelAnimationFrame(r), r = requestAnimationFrame(Q);
|
|
1869
1885
|
}
|
|
1870
1886
|
function Q() {
|
|
1871
|
-
t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop,
|
|
1887
|
+
t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, v.value = c.value / h.value * w.value);
|
|
1872
1888
|
}
|
|
1873
|
-
function k
|
|
1874
|
-
let
|
|
1875
|
-
|
|
1889
|
+
function _(k) {
|
|
1890
|
+
let W = "addEventListener";
|
|
1891
|
+
k === "add" ? W = "addEventListener" : W = "removeEventListener", n.value?.[W]("pointerdown", N, {
|
|
1876
1892
|
passive: !0
|
|
1877
|
-
}), window[
|
|
1893
|
+
}), window[W]("pointermove", p, { passive: !0 }), window[W]("pointerup", x, { passive: !0 });
|
|
1878
1894
|
}
|
|
1879
|
-
const
|
|
1880
|
-
(a == "classList" ||
|
|
1895
|
+
const I = new MutationObserver((k) => {
|
|
1896
|
+
(a == "classList" || k.map((J) => J.oldValue).join().includes("height")) && L();
|
|
1881
1897
|
});
|
|
1882
1898
|
function L() {
|
|
1883
1899
|
u.value.top = t.value?.getBoundingClientRect().top ?? 0;
|
|
1884
|
-
const { scrollHeight:
|
|
1885
|
-
|
|
1886
|
-
const { clientHeight:
|
|
1887
|
-
|
|
1900
|
+
const { scrollHeight: k = 0, clientHeight: W = 0 } = t.value || {}, { scrollHeight: J, clientHeight: V } = u.value;
|
|
1901
|
+
k != J && (u.value.scrollHeight = k, Q()), W != V && (u.value.clientHeight = W, Q());
|
|
1902
|
+
const { clientHeight: le = 0 } = n.value || {};
|
|
1903
|
+
le != M.value.clientHeight && (M.value.clientHeight = le);
|
|
1888
1904
|
}
|
|
1889
|
-
function
|
|
1905
|
+
function B() {
|
|
1890
1906
|
Y(), setTimeout(() => {
|
|
1891
|
-
M.value.clientHeight = n.value?.clientHeight ?? 0,
|
|
1907
|
+
M.value.clientHeight = n.value?.clientHeight ?? 0, Z();
|
|
1892
1908
|
}, 150);
|
|
1893
1909
|
}
|
|
1894
|
-
function
|
|
1910
|
+
function H() {
|
|
1895
1911
|
if (t.value && n.value) {
|
|
1896
1912
|
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", E, {
|
|
1897
1913
|
passive: !0
|
|
1898
|
-
}),
|
|
1899
|
-
const
|
|
1900
|
-
a === "classList" ? Object.assign(
|
|
1914
|
+
}), _("add");
|
|
1915
|
+
const k = {};
|
|
1916
|
+
a === "classList" ? Object.assign(k, { subtree: !0, childList: !0 }) : Object.assign(k, {
|
|
1901
1917
|
subtree: !0,
|
|
1902
1918
|
attributeOldValue: !0,
|
|
1903
1919
|
attributeFilter: ["style"]
|
|
1904
|
-
}),
|
|
1920
|
+
}), I.observe(t.value, k), setTimeout(() => {
|
|
1905
1921
|
L();
|
|
1906
|
-
}, 100),
|
|
1922
|
+
}, 100), B();
|
|
1907
1923
|
} else
|
|
1908
1924
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
1909
1925
|
}
|
|
1910
1926
|
return G(c, () => {
|
|
1911
1927
|
Y(), i();
|
|
1912
1928
|
}), {
|
|
1913
|
-
isScrollEnd:
|
|
1914
|
-
isDragSlider:
|
|
1915
|
-
offsetTop:
|
|
1929
|
+
isScrollEnd: d,
|
|
1930
|
+
isDragSlider: y,
|
|
1931
|
+
offsetTop: v,
|
|
1916
1932
|
scrollTop: c,
|
|
1917
|
-
scrollable:
|
|
1918
|
-
sliderPos:
|
|
1919
|
-
init:
|
|
1920
|
-
modifySliderEventListener:
|
|
1933
|
+
scrollable: T,
|
|
1934
|
+
sliderPos: C,
|
|
1935
|
+
init: H,
|
|
1936
|
+
modifySliderEventListener: _,
|
|
1921
1937
|
heightRatio: D
|
|
1922
1938
|
};
|
|
1923
1939
|
}
|
|
1924
|
-
const
|
|
1940
|
+
const Zn = (e) => (Le("data-v-7fd39e51"), e = e(), je(), e), Vn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ R("div", { class: "default-slider" }, null, -1)), Kn = /* @__PURE__ */ q({
|
|
1925
1941
|
__name: "ScrollBar",
|
|
1926
1942
|
props: {
|
|
1927
1943
|
containerEl: null,
|
|
@@ -1932,13 +1948,13 @@ const Fn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Wn = /* @__PURE__ *
|
|
|
1932
1948
|
maxHeightRatio: { default: 0.9 }
|
|
1933
1949
|
},
|
|
1934
1950
|
setup(e, { expose: t }) {
|
|
1935
|
-
const n = e, o = !!
|
|
1951
|
+
const n = e, o = !!Pt().default, l = m(null), s = z(() => n.containerEl), a = Xn({
|
|
1936
1952
|
containerEl: s,
|
|
1937
1953
|
sliderEl: l,
|
|
1938
1954
|
autoHeight: o ? n.autoHeight : !0,
|
|
1939
1955
|
performance: n.performance,
|
|
1940
1956
|
observeMethod: n.observeMethod
|
|
1941
|
-
}), { scrollable:
|
|
1957
|
+
}), { scrollable: d, isScrollEnd: i, sliderPos: r, heightRatio: f } = a, c = m(!1), g = n.autoHide ? z(() => n.maxHeightRatio < f.value ? !1 : c.value || !i.value) : z(() => n.maxHeightRatio < f.value ? !1 : d.value), { load: v } = Ve(
|
|
1942
1958
|
`.hide-scrollbar {
|
|
1943
1959
|
scrollbar-width: none;
|
|
1944
1960
|
-ms-overflow-style: none;
|
|
@@ -1948,11 +1964,11 @@ const Fn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Wn = /* @__PURE__ *
|
|
|
1948
1964
|
}`,
|
|
1949
1965
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1950
1966
|
);
|
|
1951
|
-
|
|
1952
|
-
|
|
1967
|
+
de(() => {
|
|
1968
|
+
v(), Me(() => {
|
|
1953
1969
|
a.init();
|
|
1954
1970
|
});
|
|
1955
|
-
}),
|
|
1971
|
+
}), mt(() => {
|
|
1956
1972
|
a.modifySliderEventListener("remove");
|
|
1957
1973
|
});
|
|
1958
1974
|
function u() {
|
|
@@ -1961,9 +1977,9 @@ const Fn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Wn = /* @__PURE__ *
|
|
|
1961
1977
|
function M() {
|
|
1962
1978
|
c.value = !1;
|
|
1963
1979
|
}
|
|
1964
|
-
return t({ uScrollBarReturn: a }), (
|
|
1965
|
-
default:
|
|
1966
|
-
|
|
1980
|
+
return t({ uScrollBarReturn: a }), (y, T) => (U(), Ae(He, null, {
|
|
1981
|
+
default: $e(() => [
|
|
1982
|
+
ce(R("div", {
|
|
1967
1983
|
ref_key: "sliderRef",
|
|
1968
1984
|
ref: l,
|
|
1969
1985
|
class: "slider-wrapper",
|
|
@@ -1971,24 +1987,24 @@ const Fn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Wn = /* @__PURE__ *
|
|
|
1971
1987
|
onMouseleave: M,
|
|
1972
1988
|
style: K(A(r))
|
|
1973
1989
|
}, [
|
|
1974
|
-
|
|
1975
|
-
|
|
1990
|
+
ze(y.$slots, "default", {}, () => [
|
|
1991
|
+
Vn
|
|
1976
1992
|
], !0)
|
|
1977
1993
|
], 36), [
|
|
1978
|
-
[
|
|
1994
|
+
[xe, A(g)]
|
|
1979
1995
|
])
|
|
1980
1996
|
]),
|
|
1981
1997
|
_: 3
|
|
1982
1998
|
}));
|
|
1983
1999
|
}
|
|
1984
2000
|
});
|
|
1985
|
-
const
|
|
2001
|
+
const Vo = /* @__PURE__ */ oe(Kn, [["__scopeId", "data-v-7fd39e51"]]), Gn = (e) => (Le("data-v-df5da876"), e = e(), je(), e), qn = { class: "pull-refresh" }, Jn = {
|
|
1986
2002
|
key: 0,
|
|
1987
2003
|
class: "pull-arrow-circle"
|
|
1988
|
-
},
|
|
2004
|
+
}, eo = {
|
|
1989
2005
|
key: 0,
|
|
1990
2006
|
class: "box-load"
|
|
1991
|
-
},
|
|
2007
|
+
}, to = { class: "left-load" }, no = { class: "right-load" }, oo = /* @__PURE__ */ Gn(() => /* @__PURE__ */ R("div", { class: "among-load" }, null, -1)), lo = { class: "pull-arrow" }, so = { key: 1 }, ao = /* @__PURE__ */ q({
|
|
1992
2008
|
__name: "PullRefresh",
|
|
1993
2009
|
props: {
|
|
1994
2010
|
refresh: null,
|
|
@@ -1997,78 +2013,78 @@ const Wo = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-7fd39e51"]]), Zn = (e)
|
|
|
1997
2013
|
pullRefreshContainer: null
|
|
1998
2014
|
},
|
|
1999
2015
|
setup(e) {
|
|
2000
|
-
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0),
|
|
2016
|
+
const t = e, n = 0.7, o = "#2EC1CC", l = m(-999), s = m(1), a = m(0), d = m(0.3), i = m(!1), r = m(0), f = m(0), c = m(0), g = m(0), v = m(0), u = m(), M = z(() => t.scrollTop), y = z(() => ({
|
|
2001
2017
|
transition: `${g.value}ms`,
|
|
2002
2018
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
2003
|
-
})),
|
|
2019
|
+
})), T = z(() => ({
|
|
2004
2020
|
borderColor: o,
|
|
2005
2021
|
transition: g.value,
|
|
2006
2022
|
transform: `rotate(${100 + a.value}deg)`,
|
|
2007
|
-
opacity:
|
|
2023
|
+
opacity: d.value
|
|
2008
2024
|
}));
|
|
2009
|
-
G(
|
|
2010
|
-
N === 0 && (l.value = -50,
|
|
2011
|
-
}), G(
|
|
2012
|
-
if (
|
|
2025
|
+
G(v, (N) => {
|
|
2026
|
+
N === 0 && (l.value = -50, d.value = 0.3);
|
|
2027
|
+
}), G(f, (N) => {
|
|
2028
|
+
if (v.value === 2)
|
|
2013
2029
|
return;
|
|
2014
|
-
const
|
|
2015
|
-
|
|
2030
|
+
const x = Math.pow(N, n);
|
|
2031
|
+
x === 0 && (l.value = -50), x <= 50 && x > 0 && (l.value = x - 45, a.value = Math.pow(x, 1.5), x > 15 ? i.value = !0 : i.value = !1), x > 50 && (l.value = 5, d.value = 1, v.value);
|
|
2016
2032
|
});
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2033
|
+
const w = m(0), h = (N) => {
|
|
2034
|
+
w.value = N.touches[0].pageY;
|
|
2019
2035
|
}, D = (N) => {
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
},
|
|
2023
|
-
if (t.refreshOff || !t?.refresh ||
|
|
2036
|
+
const x = N.touches[0].pageY - w.value;
|
|
2037
|
+
w.value = N.touches[0].pageY, !t.refreshOff && (!t?.refresh || v.value !== 2 && M.value === 0 && (r.value === 0 && (r.value = N.touches[0].pageY), c.value = 0, C.value.style.transition = `${c.value}ms`, g.value = 0, f.value = N.touches[0].pageY - r.value, C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, x > 0 && N.preventDefault()));
|
|
2038
|
+
}, b = () => {
|
|
2039
|
+
if (t.refreshOff || !t?.refresh || v.value === 2)
|
|
2024
2040
|
return;
|
|
2025
2041
|
r.value = 0, c.value = 300;
|
|
2026
|
-
const N = Math.pow(
|
|
2027
|
-
|
|
2042
|
+
const N = Math.pow(f.value, n);
|
|
2043
|
+
C.value.style.transition = `${c.value}ms`, N > 50 ? (v.value = 2, f.value = Math.pow(50, 1 / n), C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`, g.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
2028
2044
|
u.value = "\u5237\u65B0\u6210\u529F";
|
|
2029
2045
|
}).catch(() => {
|
|
2030
2046
|
u.value = "\u5237\u65B0\u5931\u8D25";
|
|
2031
2047
|
}).finally(() => {
|
|
2032
2048
|
setTimeout(() => {
|
|
2033
|
-
|
|
2034
|
-
|
|
2049
|
+
v.value = 0, f.value = 0, C.value.style.transform = `translate3d(0, ${Math.pow(
|
|
2050
|
+
f.value,
|
|
2035
2051
|
n
|
|
2036
2052
|
)}px, 0)`, setTimeout(() => {
|
|
2037
2053
|
u.value = void 0;
|
|
2038
2054
|
}, g.value);
|
|
2039
2055
|
}, 600);
|
|
2040
|
-
})) : (
|
|
2041
|
-
},
|
|
2042
|
-
return
|
|
2043
|
-
t?.refreshOff || (
|
|
2056
|
+
})) : (f.value = 0, C.value.style.transform = `translate3d(0, ${Math.pow(f.value, n)}px, 0)`);
|
|
2057
|
+
}, C = m(null);
|
|
2058
|
+
return de(() => {
|
|
2059
|
+
t?.refreshOff || (C.value = document.querySelector(
|
|
2044
2060
|
t.pullRefreshContainer
|
|
2045
|
-
),
|
|
2046
|
-
}), (N,
|
|
2061
|
+
), C.value?.addEventListener("touchstart", h), C.value?.addEventListener("touchmove", D), C.value?.addEventListener("touchend", b));
|
|
2062
|
+
}), (N, x) => (U(), $("div", qn, [
|
|
2047
2063
|
R("div", {
|
|
2048
2064
|
class: "pull-refresh-box",
|
|
2049
|
-
style: K(A(
|
|
2065
|
+
style: K(A(y))
|
|
2050
2066
|
}, [
|
|
2051
|
-
u.value ? (
|
|
2052
|
-
|
|
2053
|
-
R("div",
|
|
2067
|
+
u.value ? (U(), $("div", so, Fe(u.value), 1)) : (U(), $("div", Jn, [
|
|
2068
|
+
v.value == 2 ? (U(), $("div", eo, [
|
|
2069
|
+
R("div", to, [
|
|
2054
2070
|
R("div", {
|
|
2055
2071
|
class: "left-circle",
|
|
2056
2072
|
style: K({ backgroundColor: o })
|
|
2057
2073
|
}, null, 4)
|
|
2058
2074
|
]),
|
|
2059
|
-
R("div",
|
|
2075
|
+
R("div", no, [
|
|
2060
2076
|
R("div", {
|
|
2061
2077
|
class: "right-circle",
|
|
2062
2078
|
style: K({ backgroundColor: o })
|
|
2063
2079
|
}, null, 4)
|
|
2064
2080
|
]),
|
|
2065
|
-
|
|
2066
|
-
])) : (
|
|
2081
|
+
oo
|
|
2082
|
+
])) : (U(), $("div", {
|
|
2067
2083
|
key: 1,
|
|
2068
2084
|
class: "pull-circle-line",
|
|
2069
|
-
style: K(A(
|
|
2085
|
+
style: K(A(T))
|
|
2070
2086
|
}, [
|
|
2071
|
-
R("div",
|
|
2087
|
+
R("div", lo, [
|
|
2072
2088
|
R("div", {
|
|
2073
2089
|
class: se(["arrows", { opacity: i.value }]),
|
|
2074
2090
|
style: K({ borderBottomColor: o })
|
|
@@ -2080,10 +2096,10 @@ const Wo = /* @__PURE__ */ ne(Xn, [["__scopeId", "data-v-7fd39e51"]]), Zn = (e)
|
|
|
2080
2096
|
]));
|
|
2081
2097
|
}
|
|
2082
2098
|
});
|
|
2083
|
-
const
|
|
2099
|
+
const io = /* @__PURE__ */ oe(ao, [["__scopeId", "data-v-df5da876"]]), uo = ["data-key"], ro = {
|
|
2084
2100
|
inheritAttrs: !1
|
|
2085
|
-
},
|
|
2086
|
-
...
|
|
2101
|
+
}, co = /* @__PURE__ */ q({
|
|
2102
|
+
...ro,
|
|
2087
2103
|
__name: "VirtualList",
|
|
2088
2104
|
props: {
|
|
2089
2105
|
data: null,
|
|
@@ -2095,8 +2111,8 @@ const lo = /* @__PURE__ */ ne(oo, [["__scopeId", "data-v-df5da876"]]), so = ["da
|
|
|
2095
2111
|
},
|
|
2096
2112
|
emits: ["scrollEnd"],
|
|
2097
2113
|
setup(e, { expose: t, emit: n }) {
|
|
2098
|
-
const o = e, l =
|
|
2099
|
-
itemHeight: (
|
|
2114
|
+
const o = e, l = dn(Ft(o, "data"), {
|
|
2115
|
+
itemHeight: (v) => o.itemHeight(o.data[v]),
|
|
2100
2116
|
overscan: o.overscan,
|
|
2101
2117
|
scrollEndHook: () => {
|
|
2102
2118
|
n("scrollEnd");
|
|
@@ -2104,49 +2120,49 @@ const lo = /* @__PURE__ */ ne(oo, [["__scopeId", "data-v-df5da876"]]), so = ["da
|
|
|
2104
2120
|
}), {
|
|
2105
2121
|
list: s,
|
|
2106
2122
|
containerProps: a,
|
|
2107
|
-
wrapperProps:
|
|
2123
|
+
wrapperProps: d,
|
|
2108
2124
|
innerProps: i,
|
|
2109
2125
|
getItemHeightData: r,
|
|
2110
|
-
scrollTop:
|
|
2126
|
+
scrollTop: f
|
|
2111
2127
|
} = l;
|
|
2112
2128
|
t({
|
|
2113
2129
|
vListReturn: l
|
|
2114
2130
|
});
|
|
2115
2131
|
const c = "virtualListWrapper" + new Date().getTime();
|
|
2116
|
-
function g(
|
|
2117
|
-
return o.getItemKey ? o.getItemKey(
|
|
2132
|
+
function g(v, u) {
|
|
2133
|
+
return o.getItemKey ? o.getItemKey(v, u) : `${u}`;
|
|
2118
2134
|
}
|
|
2119
|
-
return (
|
|
2120
|
-
ge(
|
|
2135
|
+
return (v, u) => (U(), $(Be, null, [
|
|
2136
|
+
ge(io, {
|
|
2121
2137
|
refresh: e.refresh,
|
|
2122
2138
|
refreshOff: e.refreshOff,
|
|
2123
|
-
scrollTop: A(
|
|
2139
|
+
scrollTop: A(f),
|
|
2124
2140
|
pullRefreshContainer: "#" + c
|
|
2125
2141
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
2126
2142
|
R("div", {
|
|
2127
2143
|
class: "virtualListWrapper",
|
|
2128
2144
|
id: c
|
|
2129
2145
|
}, [
|
|
2130
|
-
R("div",
|
|
2146
|
+
R("div", me({
|
|
2131
2147
|
onScrollPassive: u[0] || (u[0] = (...M) => A(a).onScroll && A(a).onScroll(...M)),
|
|
2132
2148
|
ref: A(a).ref,
|
|
2133
2149
|
class: "virtualList"
|
|
2134
|
-
},
|
|
2135
|
-
R("div",
|
|
2136
|
-
R("div",
|
|
2137
|
-
(
|
|
2138
|
-
key: g(M,
|
|
2139
|
-
"data-key": g(M,
|
|
2150
|
+
}, v.$attrs), [
|
|
2151
|
+
R("div", Qe(Ye(A(d))), [
|
|
2152
|
+
R("div", Qe(Ye(A(i))), [
|
|
2153
|
+
(U(!0), $(Be, null, Wt(A(s), ({ data: M, index: y }) => (U(), $("div", {
|
|
2154
|
+
key: g(M, y),
|
|
2155
|
+
"data-key": g(M, y),
|
|
2140
2156
|
style: K({
|
|
2141
|
-
height: `${A(r)(
|
|
2157
|
+
height: `${A(r)(y).height}px`,
|
|
2142
2158
|
display: "flex"
|
|
2143
2159
|
})
|
|
2144
2160
|
}, [
|
|
2145
|
-
|
|
2161
|
+
ze(v.$slots, "default", {
|
|
2146
2162
|
data: M,
|
|
2147
|
-
index:
|
|
2163
|
+
index: y
|
|
2148
2164
|
}, void 0, !0)
|
|
2149
|
-
], 12,
|
|
2165
|
+
], 12, uo))), 128))
|
|
2150
2166
|
], 16)
|
|
2151
2167
|
], 16)
|
|
2152
2168
|
], 16)
|
|
@@ -2154,7 +2170,7 @@ const lo = /* @__PURE__ */ ne(oo, [["__scopeId", "data-v-df5da876"]]), so = ["da
|
|
|
2154
2170
|
], 64));
|
|
2155
2171
|
}
|
|
2156
2172
|
});
|
|
2157
|
-
const
|
|
2173
|
+
const Ko = /* @__PURE__ */ oe(co, [["__scopeId", "data-v-dfe60586"]]), at = (e) => (Le("data-v-33519afd"), e = e(), je(), e), fo = { style: { position: "absolute" } }, vo = /* @__PURE__ */ at(() => /* @__PURE__ */ R("div", { class: "wrapper" }, null, -1)), Mo = ["width", "height"], go = /* @__PURE__ */ at(() => /* @__PURE__ */ R("title", null, "logo", -1)), ho = /* @__PURE__ */ at(() => /* @__PURE__ */ R("g", {
|
|
2158
2174
|
id: "group-1",
|
|
2159
2175
|
stroke: "none",
|
|
2160
2176
|
"stroke-width": "1",
|
|
@@ -2166,10 +2182,10 @@ const Xo = /* @__PURE__ */ ne(io, [["__scopeId", "data-v-dfe60586"]]), lt = (e)
|
|
|
2166
2182
|
id: "path-1",
|
|
2167
2183
|
fill: "#FFF"
|
|
2168
2184
|
})
|
|
2169
|
-
], -1)),
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
],
|
|
2185
|
+
], -1)), mo = [
|
|
2186
|
+
go,
|
|
2187
|
+
ho
|
|
2188
|
+
], yo = /* @__PURE__ */ q({
|
|
2173
2189
|
__name: "Loading",
|
|
2174
2190
|
props: {
|
|
2175
2191
|
width: { default: "90" },
|
|
@@ -2178,38 +2194,38 @@ const Xo = /* @__PURE__ */ ne(io, [["__scopeId", "data-v-dfe60586"]]), lt = (e)
|
|
|
2178
2194
|
},
|
|
2179
2195
|
setup(e) {
|
|
2180
2196
|
const t = e;
|
|
2181
|
-
|
|
2197
|
+
Pe((o) => ({
|
|
2182
2198
|
"312487ac": n
|
|
2183
2199
|
}));
|
|
2184
2200
|
const n = `${t.duration}ms`;
|
|
2185
|
-
return (o, l) => (
|
|
2186
|
-
|
|
2187
|
-
(
|
|
2201
|
+
return (o, l) => (U(), $("div", fo, [
|
|
2202
|
+
vo,
|
|
2203
|
+
(U(), $("svg", {
|
|
2188
2204
|
style: { position: "relative" },
|
|
2189
2205
|
width: e.width,
|
|
2190
2206
|
height: e.height,
|
|
2191
2207
|
viewBox: "0 0 260 260",
|
|
2192
2208
|
version: "1.1",
|
|
2193
2209
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2194
|
-
},
|
|
2210
|
+
}, mo, 8, Mo))
|
|
2195
2211
|
]));
|
|
2196
2212
|
}
|
|
2197
2213
|
});
|
|
2198
|
-
const
|
|
2214
|
+
const Go = /* @__PURE__ */ oe(yo, [["__scopeId", "data-v-33519afd"]]), po = [
|
|
2199
2215
|
"image/vnd.adobe.photoshop",
|
|
2200
2216
|
"image/x-photoshop",
|
|
2201
2217
|
"image/jp2",
|
|
2202
2218
|
"image/pcx"
|
|
2203
2219
|
];
|
|
2204
|
-
function
|
|
2220
|
+
function jt(e, t) {
|
|
2205
2221
|
const n = m(e?.value), o = z(() => n.value?.startsWith("/_lzc")), l = m(!1), s = z(() => l.value), a = z(() => {
|
|
2206
2222
|
const i = t?.value;
|
|
2207
|
-
return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ? o.value ? !0 : !
|
|
2223
|
+
return !i || i.startsWith("video/") ? !0 : i.startsWith("image/") ? o.value ? !0 : !po.includes(i) : !1;
|
|
2208
2224
|
});
|
|
2209
2225
|
e && G(e, (i) => {
|
|
2210
2226
|
n.value = i, l.value = !1;
|
|
2211
2227
|
});
|
|
2212
|
-
function
|
|
2228
|
+
function d() {
|
|
2213
2229
|
l.value = !0;
|
|
2214
2230
|
}
|
|
2215
2231
|
return {
|
|
@@ -2217,20 +2233,20 @@ function At(e, t) {
|
|
|
2217
2233
|
isError: l,
|
|
2218
2234
|
hasError: s,
|
|
2219
2235
|
isSupport: a,
|
|
2220
|
-
handleError:
|
|
2236
|
+
handleError: d
|
|
2221
2237
|
};
|
|
2222
2238
|
}
|
|
2223
|
-
function
|
|
2239
|
+
function xt() {
|
|
2224
2240
|
return { vImageCancel: {
|
|
2225
2241
|
beforeUnmount(t) {
|
|
2226
2242
|
!t || (t.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
|
2227
2243
|
}
|
|
2228
2244
|
} };
|
|
2229
2245
|
}
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
],
|
|
2233
|
-
...
|
|
2246
|
+
const Do = ["title"], To = { class: "tip" }, No = /* @__PURE__ */ Xt("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301"), wo = [
|
|
2247
|
+
No
|
|
2248
|
+
], Eo = ["src"], Io = ["src"], Ao = ["title"], zo = { inheritAttrs: !1 }, Lo = /* @__PURE__ */ q({
|
|
2249
|
+
...zo,
|
|
2234
2250
|
__name: "Image",
|
|
2235
2251
|
props: {
|
|
2236
2252
|
src: null,
|
|
@@ -2243,84 +2259,84 @@ const mo = ["title"], yo = { class: "tip" }, po = /* @__PURE__ */ Pt("\u5F53\u52
|
|
|
2243
2259
|
},
|
|
2244
2260
|
emits: ["load", "noSupport", "loadError"],
|
|
2245
2261
|
setup(e, { emit: t }) {
|
|
2246
|
-
const n = e, o = m(), l = m(), s = m(!1), a = m(!1),
|
|
2247
|
-
component:
|
|
2262
|
+
const n = e, o = m(), l = m(), s = m(!1), a = m(!1), d = m(!1), { src: i, mime: r } = Dt(n), { imgSrc: f, isSupport: c, hasError: g, handleError: v } = jt(i, r), { vImageCancel: u } = xt(), { LoadingComp: M } = At({
|
|
2263
|
+
component: pn,
|
|
2248
2264
|
delay: 300
|
|
2249
|
-
}),
|
|
2250
|
-
function
|
|
2265
|
+
}), y = Vt(() => d.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !d.value);
|
|
2266
|
+
function T() {
|
|
2251
2267
|
a.value = !0;
|
|
2252
2268
|
}
|
|
2253
|
-
function
|
|
2254
|
-
a.value && (
|
|
2269
|
+
function w() {
|
|
2270
|
+
a.value && (d.value = !0);
|
|
2255
2271
|
}
|
|
2256
|
-
async function
|
|
2257
|
-
|
|
2272
|
+
async function h() {
|
|
2273
|
+
T(), y.value ? (o.value?.addEventListener("animationend", D), o.value?.classList.add("showing"), await st(10)) : o.value && t("load", o.value), o.value?.classList.remove("src-class");
|
|
2258
2274
|
}
|
|
2259
2275
|
function D() {
|
|
2260
|
-
o.value?.removeEventListener("animationend", D), o.value?.classList.remove("showing"), o.value && t("load", o.value),
|
|
2276
|
+
o.value?.removeEventListener("animationend", D), o.value?.classList.remove("showing"), o.value && t("load", o.value), w();
|
|
2261
2277
|
}
|
|
2262
|
-
async function
|
|
2263
|
-
|
|
2278
|
+
async function b(x) {
|
|
2279
|
+
x ? h() : l.value && t("load", l.value), s.value = !0;
|
|
2264
2280
|
}
|
|
2265
|
-
function
|
|
2266
|
-
|
|
2281
|
+
function C(x) {
|
|
2282
|
+
x ? (v(), t("loadError")) : T(), s.value = !0;
|
|
2267
2283
|
}
|
|
2268
2284
|
function N() {
|
|
2269
2285
|
t("noSupport");
|
|
2270
2286
|
}
|
|
2271
|
-
return (
|
|
2272
|
-
A(c) && !s.value ? (
|
|
2273
|
-
A(c) ? A(g) ? (
|
|
2274
|
-
title: A(
|
|
2287
|
+
return (x, Y) => (U(), $(Be, null, [
|
|
2288
|
+
A(c) && !s.value ? (U(), Ae(A(M), { key: 0 })) : fe("", !0),
|
|
2289
|
+
A(c) ? A(g) ? (U(), $("div", me({ key: 3 }, x.$attrs, {
|
|
2290
|
+
title: A(f),
|
|
2275
2291
|
class: "tip-wrap"
|
|
2276
2292
|
}), [
|
|
2277
|
-
ge(
|
|
2293
|
+
ge(Ie, {
|
|
2278
2294
|
class: "bad-image",
|
|
2279
2295
|
name: e.badImageIconName
|
|
2280
2296
|
}, null, 8, ["name"])
|
|
2281
|
-
], 16,
|
|
2297
|
+
], 16, Ao)) : ze(x.$slots, "default", {
|
|
2282
2298
|
key: 2,
|
|
2283
|
-
src: A(
|
|
2284
|
-
onLoad:
|
|
2285
|
-
onError:
|
|
2299
|
+
src: A(f),
|
|
2300
|
+
onLoad: b,
|
|
2301
|
+
onError: C,
|
|
2286
2302
|
vImageCancel: A(u)
|
|
2287
2303
|
}, () => [
|
|
2288
|
-
A(
|
|
2304
|
+
A(y) ? ce((U(), $("img", me({ key: 0 }, x.$attrs, {
|
|
2289
2305
|
ref_key: "thumbnailRef",
|
|
2290
2306
|
ref: l,
|
|
2291
|
-
onLoad: Y[0] || (Y[0] = (
|
|
2292
|
-
onError: Y[1] || (Y[1] = (
|
|
2307
|
+
onLoad: Y[0] || (Y[0] = (Z) => b()),
|
|
2308
|
+
onError: Y[1] || (Y[1] = (Z) => C()),
|
|
2293
2309
|
src: e.thumbnail
|
|
2294
|
-
}), null, 16,
|
|
2310
|
+
}), null, 16, Eo)), [
|
|
2295
2311
|
[A(u)]
|
|
2296
2312
|
]) : fe("", !0),
|
|
2297
|
-
e.isShowSrc || a.value ?
|
|
2313
|
+
e.isShowSrc || a.value ? ce((U(), $("img", me({ key: 1 }, x.$attrs, {
|
|
2298
2314
|
ref_key: "srcRef",
|
|
2299
2315
|
ref: o,
|
|
2300
2316
|
class: "src-class",
|
|
2301
|
-
onLoad: Y[2] || (Y[2] = (
|
|
2302
|
-
onError: Y[3] || (Y[3] = (
|
|
2303
|
-
src: A(
|
|
2304
|
-
}), null, 16,
|
|
2317
|
+
onLoad: Y[2] || (Y[2] = (Z) => b(!0)),
|
|
2318
|
+
onError: Y[3] || (Y[3] = (Z) => C(!0)),
|
|
2319
|
+
src: A(f)
|
|
2320
|
+
}), null, 16, Io)), [
|
|
2305
2321
|
[A(u)],
|
|
2306
|
-
[
|
|
2322
|
+
[xe, a.value]
|
|
2307
2323
|
]) : fe("", !0)
|
|
2308
|
-
], !0) : (
|
|
2309
|
-
title: A(
|
|
2324
|
+
], !0) : (U(), $("div", me({ key: 1 }, x.$attrs, {
|
|
2325
|
+
title: A(f),
|
|
2310
2326
|
class: "tip-wrap"
|
|
2311
2327
|
}), [
|
|
2312
|
-
ge(
|
|
2328
|
+
ge(Ie, {
|
|
2313
2329
|
class: "no-support-icon",
|
|
2314
2330
|
name: e.noSupportIconName
|
|
2315
2331
|
}, null, 8, ["name"]),
|
|
2316
|
-
|
|
2317
|
-
[A(
|
|
2332
|
+
ce((U(), $("span", To, wo)), [
|
|
2333
|
+
[A(Tt), N]
|
|
2318
2334
|
])
|
|
2319
|
-
], 16,
|
|
2335
|
+
], 16, Do))
|
|
2320
2336
|
], 64));
|
|
2321
2337
|
}
|
|
2322
2338
|
});
|
|
2323
|
-
const
|
|
2339
|
+
const qo = /* @__PURE__ */ oe(Lo, [["__scopeId", "data-v-bfec1a6b"]]), jo = ["title"], xo = ["src"], Co = ["title"], So = /* @__PURE__ */ q({
|
|
2324
2340
|
__name: "Thumbnail",
|
|
2325
2341
|
props: {
|
|
2326
2342
|
src: null,
|
|
@@ -2328,86 +2344,86 @@ const Vo = /* @__PURE__ */ ne(Io, [["__scopeId", "data-v-bfec1a6b"]]), Ao = ["ti
|
|
|
2328
2344
|
},
|
|
2329
2345
|
emits: ["noSupport"],
|
|
2330
2346
|
setup(e, { emit: t }) {
|
|
2331
|
-
const n = e, o = m(!1), { src: l, mime: s } =
|
|
2347
|
+
const n = e, o = m(!1), { src: l, mime: s } = Dt(n), { imgSrc: a, hasError: d, isSupport: i, handleError: r } = jt(l, s), { vImageCancel: f } = xt();
|
|
2332
2348
|
function c() {
|
|
2333
2349
|
t("noSupport");
|
|
2334
2350
|
}
|
|
2335
|
-
return (g,
|
|
2351
|
+
return (g, v) => A(i) ? A(d) ? (U(), $("div", {
|
|
2336
2352
|
key: 2,
|
|
2337
2353
|
title: A(a),
|
|
2338
2354
|
class: "icon-wrap"
|
|
2339
2355
|
}, [
|
|
2340
|
-
ge(
|
|
2356
|
+
ge(Ie, {
|
|
2341
2357
|
class: "icon",
|
|
2342
2358
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2343
2359
|
})
|
|
2344
|
-
], 8,
|
|
2360
|
+
], 8, Co)) : ce((U(), $("img", {
|
|
2345
2361
|
key: 1,
|
|
2346
2362
|
fetchpriority: "high",
|
|
2347
|
-
onLoad:
|
|
2348
|
-
onError:
|
|
2363
|
+
onLoad: v[0] || (v[0] = (u) => o.value = !0),
|
|
2364
|
+
onError: v[1] || (v[1] = (...u) => A(r) && A(r)(...u)),
|
|
2349
2365
|
src: A(a)
|
|
2350
|
-
}, null, 40,
|
|
2351
|
-
[A(
|
|
2352
|
-
[
|
|
2353
|
-
]) : (
|
|
2366
|
+
}, null, 40, xo)), [
|
|
2367
|
+
[A(f)],
|
|
2368
|
+
[xe, o.value]
|
|
2369
|
+
]) : (U(), $("div", {
|
|
2354
2370
|
key: 0,
|
|
2355
2371
|
title: A(a),
|
|
2356
2372
|
class: "icon-wrap"
|
|
2357
2373
|
}, [
|
|
2358
|
-
|
|
2374
|
+
ce(ge(Ie, {
|
|
2359
2375
|
class: "icon",
|
|
2360
2376
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2361
2377
|
}, null, 512), [
|
|
2362
|
-
[A(
|
|
2378
|
+
[A(Tt), c]
|
|
2363
2379
|
])
|
|
2364
|
-
], 8,
|
|
2380
|
+
], 8, jo));
|
|
2365
2381
|
}
|
|
2366
2382
|
});
|
|
2367
|
-
const
|
|
2383
|
+
const Jo = /* @__PURE__ */ oe(So, [["__scopeId", "data-v-2f606efa"]]);
|
|
2368
2384
|
export {
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2385
|
+
pn as DefaultLoading,
|
|
2386
|
+
qo as Image,
|
|
2387
|
+
Go as Loading,
|
|
2388
|
+
Sn as LoadingToast,
|
|
2389
|
+
Ho as PageLoading,
|
|
2390
|
+
io as PullRefresh,
|
|
2391
|
+
Vo as ScrollBar,
|
|
2392
|
+
Ie as SvgIcon,
|
|
2393
|
+
Jo as Thumbnail,
|
|
2394
|
+
Zo as ToastCreator,
|
|
2395
|
+
Ko as VirtualList,
|
|
2396
|
+
Je as allSelectedKey,
|
|
2397
|
+
fn as closeDialogKey,
|
|
2398
|
+
Uo as dialogController,
|
|
2399
|
+
ke as getTransform,
|
|
2400
|
+
ot as isAllSelectedKey,
|
|
2401
|
+
qe as isSelectedKey,
|
|
2402
|
+
Et as itemKeyKey,
|
|
2403
|
+
Hn as once,
|
|
2404
|
+
tt as selectAllKey,
|
|
2405
|
+
et as selectKey,
|
|
2406
|
+
lt as selectedCountKey,
|
|
2407
|
+
Ke as toggleAllKey,
|
|
2408
|
+
Ge as toggleKey,
|
|
2409
|
+
Te as unselectAllKey,
|
|
2410
|
+
nt as unselectKey,
|
|
2411
|
+
Xo as useBackPress,
|
|
2412
|
+
$o as useDelayAsync,
|
|
2413
|
+
Ro as useDelayLoad,
|
|
2414
|
+
At as useDelayLoadComp,
|
|
2415
|
+
Wo as useDownDrag,
|
|
2416
|
+
It as useDragSelect,
|
|
2417
|
+
Bo as useDragSelectByMobile,
|
|
2418
|
+
Yo as useDragSelectByPc,
|
|
2419
|
+
Rn as useRouterActivated,
|
|
2420
|
+
Fo as useScaleImageByMobile,
|
|
2421
|
+
Po as useScaleImageByPc,
|
|
2422
|
+
ko as useSelectable,
|
|
2423
|
+
Qo as useSelectableByBase,
|
|
2424
|
+
bo as useSelectableInjectors,
|
|
2425
|
+
dn as useVirtualList,
|
|
2426
|
+
_o as vDebounceClick,
|
|
2427
|
+
Tt as vEnter,
|
|
2428
|
+
Zt as vSingleClick
|
|
2413
2429
|
};
|