@lazycatcloud/lzc-toolkit 0.0.199 → 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 +923 -914
- 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 Wt = {
|
|
|
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 Wt = {
|
|
|
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 Zt(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 Tt(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 sn(e, t = {}) {
|
|
|
272
272
|
M(void 0, N);
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
|
-
function M(N,
|
|
275
|
+
function M(N, x) {
|
|
276
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: (Z =
|
|
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
|
-
Z === "flex" && p === "row-reverse" ? (
|
|
306
|
-
let
|
|
307
|
-
N === r.document && !
|
|
308
|
-
const
|
|
309
|
-
Z === "flex" && p === "column-reverse" ? (
|
|
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 un(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 Z(
|
|
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 _o(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 F(
|
|
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 bo(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 bo(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 bo(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 F(
|
|
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,160 +715,169 @@ function wt({
|
|
|
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 ? (
|
|
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({
|
|
726
726
|
top: 0,
|
|
727
727
|
height: 0,
|
|
728
|
-
sync(
|
|
729
|
-
|
|
728
|
+
sync(j = !1) {
|
|
729
|
+
D.value.top = M.value?.scrollTop || 0, j && (D.value.height = M.value?.scrollHeight || 0);
|
|
730
730
|
}
|
|
731
|
-
}),
|
|
732
|
-
left: Math.min(
|
|
733
|
-
top: Math.min(
|
|
734
|
-
width: Math.abs(
|
|
735
|
-
height: Math.abs(
|
|
736
|
-
} : { left: 0, top: 0, width: 0, height: 0 }),
|
|
737
|
-
let
|
|
738
|
-
const
|
|
739
|
-
let
|
|
740
|
-
function
|
|
741
|
-
if (cancelAnimationFrame(
|
|
742
|
-
Math.min(
|
|
743
|
-
-
|
|
744
|
-
),
|
|
745
|
-
const
|
|
746
|
-
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)
|
|
747
747
|
return;
|
|
748
|
-
const X =
|
|
749
|
-
let P =
|
|
750
|
-
P = Math.min(Math.max(0, P), X),
|
|
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));
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function L(j) {
|
|
754
754
|
if (M.value) {
|
|
755
|
-
const X =
|
|
756
|
-
if (P <
|
|
757
|
-
return
|
|
758
|
-
const
|
|
759
|
-
if (
|
|
760
|
-
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);
|
|
761
761
|
}
|
|
762
762
|
return 0;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
const
|
|
766
|
-
return
|
|
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
767
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
770
|
-
const { top:
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
),
|
|
775
|
-
}
|
|
776
|
-
function
|
|
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
777
|
let P = document.getElementById(X);
|
|
778
778
|
P || (P = document.createElement("style"), P.id = X, document.head.appendChild(P));
|
|
779
|
-
const
|
|
780
|
-
for (let
|
|
781
|
-
const
|
|
782
|
-
if (
|
|
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)
|
|
783
783
|
return;
|
|
784
784
|
}
|
|
785
|
-
P.sheet.insertRule(
|
|
785
|
+
P.sheet.insertRule(Oe, ue);
|
|
786
786
|
}
|
|
787
|
-
function
|
|
788
|
-
u.value = !0,
|
|
789
|
-
const X =
|
|
790
|
-
|
|
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();
|
|
791
791
|
}
|
|
792
|
-
function
|
|
793
|
-
!
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
),
|
|
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());
|
|
797
797
|
}
|
|
798
|
-
function
|
|
799
|
-
|
|
798
|
+
function V() {
|
|
799
|
+
y.value = !1, M.value?.classList.remove("disable-scroll-behavior");
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
!
|
|
801
|
+
function le() {
|
|
802
|
+
!y.value || (_ || H(), f.value());
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
if (!
|
|
804
|
+
function Ne() {
|
|
805
|
+
if (!y.value)
|
|
806
806
|
return !1;
|
|
807
|
-
const { width:
|
|
808
|
-
return !(Math.max(
|
|
809
|
-
}
|
|
810
|
-
function xt() {
|
|
811
|
-
Te() && i();
|
|
807
|
+
const { width: j, height: S } = b.value;
|
|
808
|
+
return !(Math.max(j, S) > 5);
|
|
812
809
|
}
|
|
813
810
|
function Ct() {
|
|
814
|
-
|
|
811
|
+
Ne() && i();
|
|
812
|
+
}
|
|
813
|
+
function St() {
|
|
814
|
+
Ne() || M.value?.querySelectorAll(`[${n}]`).forEach((j) => {
|
|
815
815
|
r[c.value] = g(
|
|
816
|
-
|
|
817
|
-
),
|
|
816
|
+
j.getAttribute(`${n}`)
|
|
817
|
+
), B(j.getBoundingClientRect()) ? a([r]) : C.value || d([r]);
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function
|
|
821
|
-
const
|
|
822
|
-
let
|
|
823
|
-
M.value?.querySelectorAll(`[${n}]`).forEach((P,
|
|
824
|
-
const
|
|
825
|
-
|
|
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]));
|
|
826
826
|
});
|
|
827
|
-
for (let P =
|
|
828
|
-
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
829
|
}
|
|
830
|
-
function
|
|
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();
|
|
838
|
+
}
|
|
839
|
+
function ut(j = 100, S = 3) {
|
|
831
840
|
if (!M.value)
|
|
832
841
|
return;
|
|
833
842
|
let X = 0;
|
|
834
843
|
const P = () => {
|
|
835
|
-
!M.value || (
|
|
844
|
+
!M.value || (h.value = M.value.getBoundingClientRect(), it() && X < S && (X++, setTimeout(P, j)));
|
|
836
845
|
};
|
|
837
846
|
P();
|
|
838
847
|
}
|
|
839
|
-
function
|
|
840
|
-
return !
|
|
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);
|
|
841
850
|
}
|
|
842
851
|
return {
|
|
843
|
-
init:
|
|
844
|
-
dragStart:
|
|
845
|
-
dragMove:
|
|
846
|
-
dragEnd:
|
|
847
|
-
onScroll:
|
|
848
|
-
isSingleClick:
|
|
849
|
-
cancelSelectAllBySingleClick:
|
|
850
|
-
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,
|
|
851
860
|
getAttributeValue: g,
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
861
|
+
checkAndUpdateRect: _t,
|
|
862
|
+
incrementalSelect: C,
|
|
863
|
+
selectRange: b,
|
|
864
|
+
isPressing: y,
|
|
865
|
+
containerEl: M
|
|
857
866
|
};
|
|
858
867
|
}
|
|
859
|
-
function
|
|
860
|
-
const n =
|
|
861
|
-
onScroll:
|
|
862
|
-
dragStart:
|
|
863
|
-
dragMove:
|
|
864
|
-
dragEnd:
|
|
865
|
-
cancelSelectAllBySingleClick:
|
|
866
|
-
} = n,
|
|
867
|
-
left: `${
|
|
868
|
-
top: `${
|
|
869
|
-
width: `${
|
|
870
|
-
height: `${
|
|
871
|
-
})), { 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(
|
|
872
881
|
`.drag-select-box {
|
|
873
882
|
position: absolute;
|
|
874
883
|
z-index: 99999;
|
|
@@ -876,88 +885,88 @@ function ko(e, t = !1) {
|
|
|
876
885
|
opacity: 0.5;
|
|
877
886
|
}`,
|
|
878
887
|
{ id: "styletag_lzc_dragselect", manual: !0 }
|
|
879
|
-
),
|
|
888
|
+
), c = q({
|
|
880
889
|
render() {
|
|
881
|
-
return
|
|
890
|
+
return re("div", {
|
|
882
891
|
id: "selectBoxEl",
|
|
883
892
|
class: "drag-select-box",
|
|
884
|
-
style:
|
|
893
|
+
style: r.value
|
|
885
894
|
});
|
|
886
895
|
}
|
|
887
896
|
});
|
|
888
|
-
function
|
|
889
|
-
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));
|
|
890
899
|
}
|
|
891
|
-
function
|
|
892
|
-
|
|
900
|
+
function v(T) {
|
|
901
|
+
a(T.x, T.y);
|
|
893
902
|
}
|
|
894
|
-
function
|
|
895
|
-
window.removeEventListener("mousemove",
|
|
896
|
-
(
|
|
897
|
-
|
|
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)
|
|
898
907
|
)
|
|
899
|
-
) ||
|
|
908
|
+
) || i(), d(), n.incrementalSelect.value = !1;
|
|
900
909
|
}
|
|
901
|
-
function
|
|
910
|
+
function M(T) {
|
|
902
911
|
try {
|
|
903
912
|
if (!n.init(T))
|
|
904
913
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
905
914
|
if (!n.containerEl?.value)
|
|
906
915
|
return !1;
|
|
907
|
-
|
|
908
|
-
} catch (
|
|
909
|
-
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);
|
|
910
919
|
}
|
|
911
920
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
921
|
+
function y() {
|
|
922
|
+
n.containerEl.value?.removeEventListener("scroll", l), n.containerEl.value?.removeEventListener("mousedown", g);
|
|
914
923
|
}
|
|
915
|
-
return { init:
|
|
924
|
+
return { init: M, unMount: y };
|
|
916
925
|
}
|
|
917
|
-
function
|
|
918
|
-
const o =
|
|
926
|
+
function Bo(e, t, n = 600) {
|
|
927
|
+
const o = It({
|
|
919
928
|
...e,
|
|
920
929
|
selectWay: "row",
|
|
921
930
|
scrollOptions: {
|
|
922
931
|
startSpeed: 5,
|
|
923
932
|
maxSpeed: 5
|
|
924
933
|
}
|
|
925
|
-
}), {
|
|
926
|
-
let
|
|
927
|
-
function
|
|
928
|
-
clearTimeout(
|
|
934
|
+
}), { onScroll: l, dragStart: s, dragMove: a, dragEnd: d } = o;
|
|
935
|
+
let i;
|
|
936
|
+
function r() {
|
|
937
|
+
clearTimeout(i);
|
|
929
938
|
}
|
|
930
|
-
function
|
|
931
|
-
|
|
932
|
-
const { clientX: T, clientY:
|
|
933
|
-
|
|
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();
|
|
934
943
|
}, n));
|
|
935
944
|
}
|
|
936
|
-
function
|
|
937
|
-
|
|
938
|
-
const { clientX:
|
|
939
|
-
|
|
945
|
+
function c(M) {
|
|
946
|
+
r();
|
|
947
|
+
const { clientX: y, clientY: T } = M.targetTouches[0];
|
|
948
|
+
a(y, T, () => M.preventDefault());
|
|
940
949
|
}
|
|
941
|
-
function
|
|
942
|
-
|
|
950
|
+
function g() {
|
|
951
|
+
r(), d();
|
|
943
952
|
}
|
|
944
|
-
function
|
|
953
|
+
function v(M) {
|
|
945
954
|
try {
|
|
946
|
-
if (!o.init(
|
|
955
|
+
if (!o.init(M))
|
|
947
956
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
948
957
|
if (!o.containerEl?.value)
|
|
949
958
|
return !1;
|
|
950
|
-
o.containerEl.value?.addEventListener("scroll",
|
|
951
|
-
} catch (
|
|
952
|
-
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);
|
|
953
962
|
}
|
|
954
963
|
}
|
|
955
|
-
function
|
|
956
|
-
|
|
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);
|
|
957
966
|
}
|
|
958
|
-
return { init:
|
|
967
|
+
return { init: v, unMount: u };
|
|
959
968
|
}
|
|
960
|
-
const
|
|
969
|
+
const fn = Symbol(), vn = /* @__PURE__ */ q({
|
|
961
970
|
__name: "Dialog",
|
|
962
971
|
props: {
|
|
963
972
|
visiable: { type: Boolean, default: !1 },
|
|
@@ -972,39 +981,39 @@ const cn = Symbol(), fn = /* @__PURE__ */ q({
|
|
|
972
981
|
const n = e, o = () => {
|
|
973
982
|
n.onClickOverlay?.(), n.closeOnClickOverlay && t("update:visiable", !1);
|
|
974
983
|
};
|
|
975
|
-
return F(
|
|
976
|
-
default:
|
|
977
|
-
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", {
|
|
978
987
|
key: 0,
|
|
979
988
|
class: se([e.hiddenOverlay ? "no-overlay-modal" : "lzc-modal", e.modalClass])
|
|
980
989
|
}, [
|
|
981
990
|
R("div", {
|
|
982
|
-
onMousedown: s[0] || (s[0] =
|
|
991
|
+
onMousedown: s[0] || (s[0] = ye(() => {
|
|
983
992
|
}, ["stop"])),
|
|
984
993
|
class: se(["lzc-dialog", e.dialogClass])
|
|
985
994
|
}, [
|
|
986
|
-
|
|
995
|
+
ze(l.$slots, "default", {}, void 0, !0)
|
|
987
996
|
], 34)
|
|
988
997
|
], 2)), [
|
|
989
|
-
[A(
|
|
998
|
+
[A(Zt), () => o()]
|
|
990
999
|
]) : fe("", !0)
|
|
991
1000
|
]),
|
|
992
1001
|
_: 3
|
|
993
1002
|
}));
|
|
994
1003
|
}
|
|
995
1004
|
});
|
|
996
|
-
const
|
|
1005
|
+
const oe = (e, t) => {
|
|
997
1006
|
const n = e.__vccOpts || e;
|
|
998
1007
|
for (const [o, l] of t)
|
|
999
1008
|
n[o] = l;
|
|
1000
1009
|
return n;
|
|
1001
|
-
},
|
|
1002
|
-
function
|
|
1010
|
+
}, Mn = /* @__PURE__ */ oe(vn, [["__scopeId", "data-v-3d61e60a"]]);
|
|
1011
|
+
function Uo(e) {
|
|
1003
1012
|
function t(n, o) {
|
|
1004
1013
|
const l = document.createElement("div"), s = {
|
|
1005
1014
|
setup() {
|
|
1006
|
-
return () =>
|
|
1007
|
-
|
|
1015
|
+
return () => re(
|
|
1016
|
+
Mn,
|
|
1008
1017
|
{
|
|
1009
1018
|
visiable: !0,
|
|
1010
1019
|
"onUpdate:visiable": () => {
|
|
@@ -1013,12 +1022,12 @@ function Yo(e) {
|
|
|
1013
1022
|
...e
|
|
1014
1023
|
},
|
|
1015
1024
|
{
|
|
1016
|
-
default: () =>
|
|
1025
|
+
default: () => re(n, o)
|
|
1017
1026
|
}
|
|
1018
1027
|
);
|
|
1019
1028
|
}
|
|
1020
1029
|
};
|
|
1021
|
-
return document.body.appendChild(l),
|
|
1030
|
+
return document.body.appendChild(l), De(re(s), l), {
|
|
1022
1031
|
close: () => l?.remove()
|
|
1023
1032
|
};
|
|
1024
1033
|
}
|
|
@@ -1026,13 +1035,13 @@ function Yo(e) {
|
|
|
1026
1035
|
create: t
|
|
1027
1036
|
};
|
|
1028
1037
|
}
|
|
1029
|
-
function
|
|
1038
|
+
function At({
|
|
1030
1039
|
component: e,
|
|
1031
1040
|
componentProps: t,
|
|
1032
1041
|
delay: n = 300
|
|
1033
1042
|
}) {
|
|
1034
1043
|
const l = `lzc-delay-loading-${`${new Date().getTime()}`}`, s = `${n}ms`;
|
|
1035
|
-
return
|
|
1044
|
+
return Ve(
|
|
1036
1045
|
`@keyframes lzcDelayLoad {
|
|
1037
1046
|
to {
|
|
1038
1047
|
opacity: 1;
|
|
@@ -1044,19 +1053,19 @@ function Et({
|
|
|
1044
1053
|
}`
|
|
1045
1054
|
), { LoadingComp: q({
|
|
1046
1055
|
setup() {
|
|
1047
|
-
const
|
|
1048
|
-
return
|
|
1049
|
-
|
|
1050
|
-
}), () =>
|
|
1056
|
+
const d = sn();
|
|
1057
|
+
return de(() => {
|
|
1058
|
+
d.value?.classList?.add(l);
|
|
1059
|
+
}), () => re(e, t);
|
|
1051
1060
|
}
|
|
1052
1061
|
}) };
|
|
1053
1062
|
}
|
|
1054
|
-
function
|
|
1063
|
+
function Ro({
|
|
1055
1064
|
component: e,
|
|
1056
1065
|
componentProps: t,
|
|
1057
1066
|
delay: n = 300
|
|
1058
1067
|
}) {
|
|
1059
|
-
const { LoadingComp: o } =
|
|
1068
|
+
const { LoadingComp: o } = At({
|
|
1060
1069
|
component: e,
|
|
1061
1070
|
componentProps: t,
|
|
1062
1071
|
delay: n
|
|
@@ -1069,24 +1078,24 @@ function Bo({
|
|
|
1069
1078
|
}
|
|
1070
1079
|
return { LoadingComp: o, loading: l, load: s, unload: a };
|
|
1071
1080
|
}
|
|
1072
|
-
const
|
|
1081
|
+
const gn = (e) => (Le("data-v-92a1804d"), e = e(), je(), e), hn = /* @__PURE__ */ gn(() => /* @__PURE__ */ R("div", { class: "ldio-mm5gwljcryb" }, [
|
|
1073
1082
|
/* @__PURE__ */ R("div")
|
|
1074
|
-
], -1)),
|
|
1075
|
-
|
|
1076
|
-
],
|
|
1083
|
+
], -1)), mn = [
|
|
1084
|
+
hn
|
|
1085
|
+
], yn = /* @__PURE__ */ q({
|
|
1077
1086
|
__name: "DefaultLoading",
|
|
1078
1087
|
props: {
|
|
1079
1088
|
width: { default: 24 },
|
|
1080
1089
|
height: { default: 24 }
|
|
1081
1090
|
},
|
|
1082
1091
|
setup(e) {
|
|
1083
|
-
return
|
|
1092
|
+
return Pe((t) => ({
|
|
1084
1093
|
"4e4a9ce4": e.width + "px",
|
|
1085
1094
|
e56fe5c2: e.height + "px"
|
|
1086
|
-
})), (t, n) => (
|
|
1095
|
+
})), (t, n) => (U(), $("div", Qe(Ye(t.$attrs)), mn, 16));
|
|
1087
1096
|
}
|
|
1088
1097
|
});
|
|
1089
|
-
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({
|
|
1090
1099
|
__name: "PageLoading",
|
|
1091
1100
|
props: {
|
|
1092
1101
|
delay: { default: "0.15s" },
|
|
@@ -1094,27 +1103,27 @@ const mn = /* @__PURE__ */ ne(hn, [["__scopeId", "data-v-92a1804d"]]), yn = "dat
|
|
|
1094
1103
|
},
|
|
1095
1104
|
setup(e) {
|
|
1096
1105
|
const t = e;
|
|
1097
|
-
|
|
1106
|
+
Pe((o) => ({
|
|
1098
1107
|
b1cf73a8: e.delay
|
|
1099
1108
|
}));
|
|
1100
1109
|
const n = z(() => {
|
|
1101
1110
|
const o = {};
|
|
1102
1111
|
return t.size === "mini" ? (o.width = "22px", o.height = "22px") : t.size === "large" && (o.width = "28px", o.height = "28px"), o;
|
|
1103
1112
|
});
|
|
1104
|
-
return (o, l) => (
|
|
1113
|
+
return (o, l) => (U(), $("div", Tn, [
|
|
1105
1114
|
R("img", {
|
|
1106
1115
|
class: "loading-circle",
|
|
1107
|
-
src: A(
|
|
1116
|
+
src: A(Dn),
|
|
1108
1117
|
style: K(A(n))
|
|
1109
|
-
}, null, 12,
|
|
1118
|
+
}, null, 12, Nn)
|
|
1110
1119
|
]));
|
|
1111
1120
|
}
|
|
1112
1121
|
});
|
|
1113
|
-
const
|
|
1114
|
-
async function
|
|
1122
|
+
const Ho = /* @__PURE__ */ oe(wn, [["__scopeId", "data-v-3c54972f"]]);
|
|
1123
|
+
async function st(e) {
|
|
1115
1124
|
return new Promise((t) => setTimeout(() => t(), e));
|
|
1116
1125
|
}
|
|
1117
|
-
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({
|
|
1118
1127
|
__name: "index",
|
|
1119
1128
|
props: {
|
|
1120
1129
|
visible: null,
|
|
@@ -1148,53 +1157,53 @@ const Nn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1148
1157
|
let r = {};
|
|
1149
1158
|
return n.showClose && !n.icon && (r.paddingRight = "16px"), r;
|
|
1150
1159
|
});
|
|
1151
|
-
function
|
|
1160
|
+
function d() {
|
|
1152
1161
|
n.closeOnClickOverlay && t("close");
|
|
1153
1162
|
}
|
|
1154
1163
|
function i() {
|
|
1155
1164
|
n.closeOnClick && t("close");
|
|
1156
1165
|
}
|
|
1157
|
-
return (r,
|
|
1166
|
+
return (r, f) => (U(), Ae(He, {
|
|
1158
1167
|
"enter-active-class": "lzc-animate-fade-in lzc-animate-duration-300",
|
|
1159
1168
|
"leave-active-class": "lzc-animate-fade-out lzc-animate-duration-300"
|
|
1160
1169
|
}, {
|
|
1161
|
-
default:
|
|
1170
|
+
default: $e(() => [
|
|
1162
1171
|
R("div", {
|
|
1163
1172
|
id: o,
|
|
1164
1173
|
style: K(A(l))
|
|
1165
1174
|
}, [
|
|
1166
|
-
|
|
1175
|
+
ce(R("div", {
|
|
1167
1176
|
class: se(`${o} ${e.className}`),
|
|
1168
|
-
onClick:
|
|
1177
|
+
onClick: ye(d, ["stop"])
|
|
1169
1178
|
}, [
|
|
1170
1179
|
R("div", {
|
|
1171
1180
|
class: se(`${o}-wrap`),
|
|
1172
|
-
onClick:
|
|
1181
|
+
onClick: ye(i, ["stop"])
|
|
1173
1182
|
}, [
|
|
1174
1183
|
R("div", {
|
|
1175
1184
|
class: se(`${o}-content`),
|
|
1176
1185
|
style: K(A(s))
|
|
1177
1186
|
}, [
|
|
1178
|
-
e.showClose ? (
|
|
1187
|
+
e.showClose ? (U(), $("img", {
|
|
1179
1188
|
key: 0,
|
|
1180
|
-
onClick:
|
|
1181
|
-
src: A(
|
|
1189
|
+
onClick: f[0] || (f[0] = ye((c) => t("close"), ["stop"])),
|
|
1190
|
+
src: A(En),
|
|
1182
1191
|
class: se(`${o}-close`)
|
|
1183
|
-
}, null, 10,
|
|
1184
|
-
e.showIcon ? (
|
|
1192
|
+
}, null, 10, Ln)) : fe("", !0),
|
|
1193
|
+
e.showIcon ? (U(), $("img", {
|
|
1185
1194
|
key: 1,
|
|
1186
|
-
src: e.icon || A(
|
|
1195
|
+
src: e.icon || A(In),
|
|
1187
1196
|
class: se(`${o}-icon`)
|
|
1188
|
-
}, null, 10,
|
|
1189
|
-
e.message ? (
|
|
1197
|
+
}, null, 10, jn)) : fe("", !0),
|
|
1198
|
+
e.message ? (U(), $("div", {
|
|
1190
1199
|
key: 2,
|
|
1191
1200
|
class: se(`${o}-message`),
|
|
1192
1201
|
style: K(A(a))
|
|
1193
|
-
},
|
|
1202
|
+
}, Fe(e.message), 7)) : fe("", !0)
|
|
1194
1203
|
], 6)
|
|
1195
|
-
], 10,
|
|
1196
|
-
], 10,
|
|
1197
|
-
[
|
|
1204
|
+
], 10, zn)
|
|
1205
|
+
], 10, An), [
|
|
1206
|
+
[xe, e.visible]
|
|
1198
1207
|
])
|
|
1199
1208
|
], 4)
|
|
1200
1209
|
]),
|
|
@@ -1202,23 +1211,23 @@ const Nn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
|
|
|
1202
1211
|
}));
|
|
1203
1212
|
}
|
|
1204
1213
|
});
|
|
1205
|
-
const
|
|
1206
|
-
class
|
|
1214
|
+
const Cn = /* @__PURE__ */ oe(xn, [["__scopeId", "data-v-0947d1e3"]]);
|
|
1215
|
+
class Sn {
|
|
1207
1216
|
loadingToast;
|
|
1208
1217
|
el;
|
|
1209
1218
|
options;
|
|
1210
1219
|
visible = m(!1);
|
|
1211
1220
|
animateDuration = 300;
|
|
1212
1221
|
constructor(t) {
|
|
1213
|
-
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;
|
|
1214
1223
|
}
|
|
1215
1224
|
async show() {
|
|
1216
1225
|
const t = this.options, o = { ...t, onClose: () => {
|
|
1217
1226
|
this.close(), t?.onClose?.();
|
|
1218
1227
|
} }, l = ge(this.loadingToast, o);
|
|
1219
|
-
|
|
1228
|
+
De(l, this.el), document.body.insertBefore(this.el, document.body.firstChild), this.visible.value = !0, t.duration !== 0 && setTimeout(() => {
|
|
1220
1229
|
this.destory();
|
|
1221
|
-
}, t.duration), await
|
|
1230
|
+
}, t.duration), await st(t.duration + this.animateDuration);
|
|
1222
1231
|
}
|
|
1223
1232
|
async destory() {
|
|
1224
1233
|
!this.visible.value || (this.visible.value = !1, await new Promise((t) => {
|
|
@@ -1235,8 +1244,8 @@ class xn {
|
|
|
1235
1244
|
document.querySelector("#lzc-loading-toast")?.remove();
|
|
1236
1245
|
}
|
|
1237
1246
|
}
|
|
1238
|
-
function
|
|
1239
|
-
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 = {
|
|
1240
1249
|
...t,
|
|
1241
1250
|
showIcon: t?.showIcon !== !1,
|
|
1242
1251
|
captureEventP: t?.captureEventP === !0
|
|
@@ -1249,11 +1258,11 @@ function Ro(e, t) {
|
|
|
1249
1258
|
i
|
|
1250
1259
|
);
|
|
1251
1260
|
const r = m(!1);
|
|
1252
|
-
let
|
|
1253
|
-
const c = new
|
|
1261
|
+
let f = null;
|
|
1262
|
+
const c = new Sn(i);
|
|
1254
1263
|
async function g(...u) {
|
|
1255
1264
|
if (n && console.log(`useDelayAsync - handler - processing: ${r.value}`), !r.value) {
|
|
1256
|
-
r.value = !0,
|
|
1265
|
+
r.value = !0, f = setTimeout(() => {
|
|
1257
1266
|
n && console.log(
|
|
1258
1267
|
"useDelayAsync - handler - setTimeout - loading: %s processing: %s",
|
|
1259
1268
|
l,
|
|
@@ -1263,41 +1272,41 @@ function Ro(e, t) {
|
|
|
1263
1272
|
try {
|
|
1264
1273
|
n && console.time("useDelayAsync - handler-execute-time");
|
|
1265
1274
|
const M = await e(...u);
|
|
1266
|
-
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;
|
|
1267
1276
|
} catch (M) {
|
|
1268
|
-
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]);
|
|
1269
1278
|
}
|
|
1270
1279
|
}
|
|
1271
1280
|
}
|
|
1272
|
-
async function
|
|
1273
|
-
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();
|
|
1274
1283
|
}
|
|
1275
|
-
return
|
|
1276
|
-
n && console.log("useDelayAsync - onBeforeUnmount - close"),
|
|
1284
|
+
return d && yt(() => {
|
|
1285
|
+
n && console.log("useDelayAsync - onBeforeUnmount - close"), v();
|
|
1277
1286
|
}), {
|
|
1278
1287
|
processing: r,
|
|
1279
1288
|
handler: g,
|
|
1280
|
-
close:
|
|
1289
|
+
close: v
|
|
1281
1290
|
};
|
|
1282
1291
|
}
|
|
1283
|
-
function
|
|
1292
|
+
function On(e, t) {
|
|
1284
1293
|
return e > t ? "horizontal" : t > e ? "vertical" : "";
|
|
1285
1294
|
}
|
|
1286
|
-
function
|
|
1287
|
-
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 = () => {
|
|
1288
1297
|
n.value = 0, o.value = 0, l.value = 0, s.value = 0, a.value = "";
|
|
1289
1298
|
};
|
|
1290
|
-
function
|
|
1291
|
-
r(), e.value = g, t.value =
|
|
1299
|
+
function f(g, v) {
|
|
1300
|
+
r(), e.value = g, t.value = v;
|
|
1292
1301
|
}
|
|
1293
|
-
function c(g,
|
|
1294
|
-
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);
|
|
1295
1304
|
const u = 10;
|
|
1296
|
-
(!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));
|
|
1297
1306
|
}
|
|
1298
1307
|
return {
|
|
1299
1308
|
move: c,
|
|
1300
|
-
start:
|
|
1309
|
+
start: f,
|
|
1301
1310
|
reset: r,
|
|
1302
1311
|
startX: e,
|
|
1303
1312
|
startY: t,
|
|
@@ -1306,26 +1315,26 @@ function Sn() {
|
|
|
1306
1315
|
offsetX: l,
|
|
1307
1316
|
offsetY: s,
|
|
1308
1317
|
direction: a,
|
|
1309
|
-
isVertical:
|
|
1318
|
+
isVertical: d,
|
|
1310
1319
|
isHorizontal: i
|
|
1311
1320
|
};
|
|
1312
1321
|
}
|
|
1313
|
-
const
|
|
1314
|
-
function
|
|
1322
|
+
const ct = 250, dt = 5, bn = 500;
|
|
1323
|
+
function kn(e) {
|
|
1315
1324
|
const { isDouble: t = !0 } = e;
|
|
1316
1325
|
let n, o;
|
|
1317
1326
|
function l() {
|
|
1318
1327
|
n = Date.now();
|
|
1319
1328
|
}
|
|
1320
|
-
async function s(a,
|
|
1329
|
+
async function s(a, d) {
|
|
1321
1330
|
const i = Date.now() - n;
|
|
1322
|
-
a <
|
|
1331
|
+
a < dt && d < dt && (i < ct ? t ? o ? (clearTimeout(o), o = null, e.onDoubleTap?.()) : o = setTimeout(async () => {
|
|
1323
1332
|
e.onTap?.(), o = null;
|
|
1324
|
-
},
|
|
1333
|
+
}, ct) : e.onTap?.() : i > bn && e.onLongPress?.());
|
|
1325
1334
|
}
|
|
1326
1335
|
return { startTap: l, checkTap: s };
|
|
1327
1336
|
}
|
|
1328
|
-
function
|
|
1337
|
+
function Qn(e, t) {
|
|
1329
1338
|
const n = m(!1);
|
|
1330
1339
|
function o() {
|
|
1331
1340
|
n.value || (n.value = !0, A(e)?.addEventListener("transitionend", l));
|
|
@@ -1335,7 +1344,7 @@ function bn(e, t) {
|
|
|
1335
1344
|
}
|
|
1336
1345
|
return { transitioning: n, startTransition: o };
|
|
1337
1346
|
}
|
|
1338
|
-
function
|
|
1347
|
+
function Yn(e, t, n, o) {
|
|
1339
1348
|
var l = Math.min(
|
|
1340
1349
|
n / e,
|
|
1341
1350
|
o / t
|
|
@@ -1345,42 +1354,42 @@ function kn(e, t, n, o) {
|
|
|
1345
1354
|
height: ae(a)
|
|
1346
1355
|
};
|
|
1347
1356
|
}
|
|
1348
|
-
function
|
|
1357
|
+
function Bn(e) {
|
|
1349
1358
|
return e < 3 ? "444ms" : e < 6 ? "555ms" : "666ms";
|
|
1350
1359
|
}
|
|
1351
|
-
function
|
|
1360
|
+
function be(e, t, n) {
|
|
1352
1361
|
return Math.min(Math.max(e, t), n);
|
|
1353
1362
|
}
|
|
1354
1363
|
function ae(e, t = 2) {
|
|
1355
1364
|
return parseFloat(e.toFixed(t));
|
|
1356
1365
|
}
|
|
1357
|
-
function
|
|
1366
|
+
function ke(e, t, n) {
|
|
1358
1367
|
return e = ae(e), t = ae(t), `translate3d(${e}px, ${t}px, 0) scale3d(${n},${n},${n})`;
|
|
1359
1368
|
}
|
|
1360
|
-
function
|
|
1369
|
+
function ft(e) {
|
|
1361
1370
|
return Math.sqrt(
|
|
1362
1371
|
(e[0].clientX - e[1].clientX) ** 2 + (e[0].clientY - e[1].clientY) ** 2
|
|
1363
1372
|
);
|
|
1364
1373
|
}
|
|
1365
|
-
function
|
|
1374
|
+
function Un(e) {
|
|
1366
1375
|
return {
|
|
1367
1376
|
x: (e[0].clientX + e[1].clientX) / 2,
|
|
1368
1377
|
y: (e[0].clientY + e[1].clientY) / 2
|
|
1369
1378
|
};
|
|
1370
1379
|
}
|
|
1371
|
-
function
|
|
1372
|
-
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({
|
|
1373
1382
|
level: 1,
|
|
1374
1383
|
offsetX: 0,
|
|
1375
1384
|
offsetY: 0,
|
|
1376
1385
|
zooming: !1,
|
|
1377
1386
|
preview: !0,
|
|
1378
1387
|
lastCenter: { x: 0, y: 0 }
|
|
1379
|
-
}), r = m({}),
|
|
1388
|
+
}), r = m({}), f = _n(), c = Qn(s, {
|
|
1380
1389
|
onComplate() {
|
|
1381
|
-
i.preview ||
|
|
1390
|
+
i.preview || y();
|
|
1382
1391
|
}
|
|
1383
|
-
}), g =
|
|
1392
|
+
}), g = kn({
|
|
1384
1393
|
onTap() {
|
|
1385
1394
|
e.onTap?.();
|
|
1386
1395
|
},
|
|
@@ -1391,19 +1400,19 @@ function It(e) {
|
|
|
1391
1400
|
e.onLongPress?.();
|
|
1392
1401
|
}
|
|
1393
1402
|
});
|
|
1394
|
-
|
|
1403
|
+
Ze(s, (p) => v(p)), G(
|
|
1395
1404
|
[l, s],
|
|
1396
1405
|
([p, E]) => {
|
|
1397
1406
|
u(p, E);
|
|
1398
1407
|
},
|
|
1399
1408
|
{ immediate: !0 }
|
|
1400
1409
|
);
|
|
1401
|
-
async function
|
|
1410
|
+
async function v(p) {
|
|
1402
1411
|
const [E] = p;
|
|
1403
|
-
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));
|
|
1404
1413
|
}
|
|
1405
1414
|
async function u(p, E) {
|
|
1406
|
-
await
|
|
1415
|
+
await x(p, E), p && Y();
|
|
1407
1416
|
}
|
|
1408
1417
|
async function M(p) {
|
|
1409
1418
|
if (!i.preview)
|
|
@@ -1412,45 +1421,45 @@ function It(e) {
|
|
|
1412
1421
|
const E = s.value;
|
|
1413
1422
|
if (!E)
|
|
1414
1423
|
return;
|
|
1415
|
-
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;
|
|
1416
1425
|
E.scrollTop = 0, E.scrollLeft = 0;
|
|
1417
1426
|
const { value: V } = r;
|
|
1418
|
-
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);
|
|
1419
1428
|
}
|
|
1420
|
-
async function
|
|
1429
|
+
async function y(p, E) {
|
|
1421
1430
|
if (!E && i.preview)
|
|
1422
1431
|
return;
|
|
1423
1432
|
i.preview = !0, p = p ?? i.level;
|
|
1424
|
-
const { value: O } = r, { scaleW: Q, scaleH:
|
|
1425
|
-
p === 1 && (O.maxHeight = "100%"), O.width = `${Q}px`, O.height = `${
|
|
1426
|
-
const
|
|
1427
|
-
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)
|
|
1428
1437
|
return;
|
|
1429
|
-
const { offsetX:
|
|
1430
|
-
|
|
1438
|
+
const { offsetX: H, offsetY: k } = i;
|
|
1439
|
+
H < 0 && (B.scrollLeft = Math.abs(H)), k < 0 && (B.scrollTop = Math.abs(k));
|
|
1431
1440
|
}
|
|
1432
|
-
async function
|
|
1433
|
-
if (t.value || (p = ae(p), p =
|
|
1441
|
+
async function T(p, E, O) {
|
|
1442
|
+
if (t.value || (p = ae(p), p = be(
|
|
1434
1443
|
p,
|
|
1435
1444
|
n.value - n.value * 0.5,
|
|
1436
1445
|
o.value + o.value * 0.5
|
|
1437
1446
|
), p == i.level))
|
|
1438
1447
|
return;
|
|
1439
|
-
i.preview && await M(), E || (E = { x:
|
|
1440
|
-
const { value: Q } = r, { width:
|
|
1441
|
-
left: Math.abs(
|
|
1442
|
-
top: Math.abs(
|
|
1443
|
-
right:
|
|
1444
|
-
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
|
|
1445
1454
|
};
|
|
1446
|
-
let V =
|
|
1447
|
-
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);
|
|
1448
1457
|
}
|
|
1449
|
-
function
|
|
1450
|
-
const p = i.level > 1 ? 1 :
|
|
1451
|
-
|
|
1458
|
+
function w() {
|
|
1459
|
+
const p = i.level > 1 ? 1 : b();
|
|
1460
|
+
T(p, void 0, !0);
|
|
1452
1461
|
}
|
|
1453
|
-
function
|
|
1462
|
+
function h(p, E) {
|
|
1454
1463
|
if (!i.preview)
|
|
1455
1464
|
return;
|
|
1456
1465
|
const O = s.value;
|
|
@@ -1460,14 +1469,14 @@ function It(e) {
|
|
|
1460
1469
|
});
|
|
1461
1470
|
}
|
|
1462
1471
|
async function D() {
|
|
1463
|
-
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;
|
|
1464
1473
|
}
|
|
1465
|
-
function
|
|
1466
|
-
const { width: p, height: E } = a.value, { width: O, height: Q } =
|
|
1467
|
-
let
|
|
1468
|
-
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;
|
|
1469
1478
|
}
|
|
1470
|
-
function
|
|
1479
|
+
function C(p) {
|
|
1471
1480
|
const { width: E, height: O } = a.value;
|
|
1472
1481
|
return {
|
|
1473
1482
|
scaleW: ae(p * E),
|
|
@@ -1475,37 +1484,37 @@ function It(e) {
|
|
|
1475
1484
|
};
|
|
1476
1485
|
}
|
|
1477
1486
|
function N(p, E) {
|
|
1478
|
-
const { width: O, height: Q } =
|
|
1479
|
-
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 };
|
|
1480
1489
|
}
|
|
1481
|
-
async function
|
|
1490
|
+
async function x(p, E) {
|
|
1482
1491
|
if (p = p ?? l.value, E = E ?? s.value, !E)
|
|
1483
1492
|
return;
|
|
1484
|
-
let O, { clientWidth: Q = 0, clientHeight:
|
|
1485
|
-
const { clientWidth:
|
|
1493
|
+
let O, { clientWidth: Q = 0, clientHeight: _ = 0 } = p || {};
|
|
1494
|
+
const { clientWidth: I, clientHeight: L } = E;
|
|
1486
1495
|
if (p instanceof HTMLImageElement ? O = { width: p.naturalWidth, height: p.naturalHeight } : p instanceof HTMLVideoElement && (O = { width: p.videoWidth, height: p.videoHeight }), O) {
|
|
1487
|
-
const
|
|
1496
|
+
const B = Yn(
|
|
1488
1497
|
O.width,
|
|
1489
1498
|
O.height,
|
|
1490
|
-
|
|
1499
|
+
I,
|
|
1491
1500
|
L
|
|
1492
1501
|
);
|
|
1493
|
-
Q =
|
|
1502
|
+
Q = B.width, _ = B.height;
|
|
1494
1503
|
}
|
|
1495
|
-
(Q === 0 ||
|
|
1496
|
-
width: Math.min(Q,
|
|
1497
|
-
height: Math.min(
|
|
1498
|
-
},
|
|
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);
|
|
1499
1508
|
}
|
|
1500
1509
|
function Y() {
|
|
1501
|
-
const p =
|
|
1510
|
+
const p = b();
|
|
1502
1511
|
o.value = Math.max(o.value, p * 2);
|
|
1503
1512
|
}
|
|
1504
1513
|
function Z(p) {
|
|
1505
1514
|
t.value = p;
|
|
1506
1515
|
}
|
|
1507
1516
|
return {
|
|
1508
|
-
touch:
|
|
1517
|
+
touch: f,
|
|
1509
1518
|
state: i,
|
|
1510
1519
|
style: r,
|
|
1511
1520
|
gesture: g,
|
|
@@ -1513,29 +1522,29 @@ function It(e) {
|
|
|
1513
1522
|
imageRef: l,
|
|
1514
1523
|
containerRef: s,
|
|
1515
1524
|
switchToZoom: M,
|
|
1516
|
-
switchToPreview:
|
|
1517
|
-
panTo:
|
|
1518
|
-
zoomTo:
|
|
1525
|
+
switchToPreview: y,
|
|
1526
|
+
panTo: h,
|
|
1527
|
+
zoomTo: T,
|
|
1519
1528
|
zoomFinished: D,
|
|
1520
|
-
toggleZoom:
|
|
1529
|
+
toggleZoom: w,
|
|
1521
1530
|
setDisableZoom: Z
|
|
1522
1531
|
};
|
|
1523
1532
|
}
|
|
1524
|
-
function
|
|
1525
|
-
const { state: n, touch: o, transition: l, containerRef: s } = e, a =
|
|
1526
|
-
let
|
|
1533
|
+
function Lt(e, t) {
|
|
1534
|
+
const { state: n, touch: o, transition: l, containerRef: s } = e, a = un(s);
|
|
1535
|
+
let d, i;
|
|
1527
1536
|
function r(g) {
|
|
1528
|
-
|
|
1537
|
+
d = g;
|
|
1529
1538
|
}
|
|
1530
|
-
function
|
|
1531
|
-
return
|
|
1539
|
+
function f(g) {
|
|
1540
|
+
return d == g;
|
|
1532
1541
|
}
|
|
1533
|
-
function c(g,
|
|
1542
|
+
function c(g, v, u, M) {
|
|
1534
1543
|
a.measure();
|
|
1535
|
-
const { top:
|
|
1544
|
+
const { top: y, left: T, right: w, bottom: h } = a.arrivedState;
|
|
1536
1545
|
if (g == "start")
|
|
1537
|
-
i =
|
|
1538
|
-
else if (
|
|
1546
|
+
i = y || T || w || h;
|
|
1547
|
+
else if (d == 2)
|
|
1539
1548
|
i = !1;
|
|
1540
1549
|
else if (i) {
|
|
1541
1550
|
if (o.direction.value == "vertical")
|
|
@@ -1543,113 +1552,113 @@ function At(e, t) {
|
|
|
1543
1552
|
i = !1;
|
|
1544
1553
|
else {
|
|
1545
1554
|
const D = o.startY.value < u;
|
|
1546
|
-
i =
|
|
1555
|
+
i = y && D || h && !D;
|
|
1547
1556
|
}
|
|
1548
1557
|
else if (o.direction.value == "horizontal") {
|
|
1549
|
-
const D = o.startX.value <
|
|
1550
|
-
i =
|
|
1558
|
+
const D = o.startX.value < v;
|
|
1559
|
+
i = T && D || w && !D;
|
|
1551
1560
|
}
|
|
1552
1561
|
}
|
|
1553
|
-
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);
|
|
1554
1563
|
}
|
|
1555
|
-
return { onSwipeEdge: c, setFingerNum: r, isEqualFingerNum:
|
|
1564
|
+
return { onSwipeEdge: c, setFingerNum: r, isEqualFingerNum: f };
|
|
1556
1565
|
}
|
|
1557
|
-
function
|
|
1558
|
-
const t =
|
|
1566
|
+
function Po(e) {
|
|
1567
|
+
const t = zt({
|
|
1559
1568
|
onDoubleTap() {
|
|
1560
1569
|
t.toggleZoom();
|
|
1561
1570
|
},
|
|
1562
1571
|
...e
|
|
1563
1572
|
}), { state: n, touch: o, gesture: l, transition: s } = t;
|
|
1564
|
-
let a = !1,
|
|
1565
|
-
const i = { top: 0, left: 0 }, r =
|
|
1566
|
-
|
|
1567
|
-
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) {
|
|
1568
1577
|
const D = t.containerRef.value;
|
|
1569
1578
|
if (!D)
|
|
1570
1579
|
return;
|
|
1571
|
-
const { left:
|
|
1572
|
-
c.value.left =
|
|
1573
|
-
let N =
|
|
1574
|
-
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);
|
|
1575
1584
|
}
|
|
1576
|
-
function
|
|
1585
|
+
function v(h) {
|
|
1577
1586
|
if (!a)
|
|
1578
1587
|
return;
|
|
1579
|
-
let D =
|
|
1580
|
-
o.move(D,
|
|
1588
|
+
let D = h.clientX, b = h.clientY;
|
|
1589
|
+
o.move(D, b), f(
|
|
1581
1590
|
"move",
|
|
1582
1591
|
D - c.value.left,
|
|
1583
|
-
|
|
1584
|
-
|
|
1592
|
+
b - c.value.top,
|
|
1593
|
+
h
|
|
1585
1594
|
), n.level !== 1 && t.panTo(
|
|
1586
1595
|
o.deltaX.value - i.left,
|
|
1587
1596
|
o.deltaY.value - i.top
|
|
1588
1597
|
);
|
|
1589
1598
|
}
|
|
1590
|
-
function u(
|
|
1591
|
-
|
|
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);
|
|
1592
1601
|
}
|
|
1593
|
-
function M(
|
|
1594
|
-
if (!
|
|
1602
|
+
function M(h) {
|
|
1603
|
+
if (!h.ctrlKey)
|
|
1595
1604
|
return;
|
|
1596
|
-
n.zooming || (n.zooming = !0,
|
|
1597
|
-
let D = -
|
|
1598
|
-
|
|
1599
|
-
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;
|
|
1600
1609
|
n.lastCenter = {
|
|
1601
|
-
x:
|
|
1602
|
-
y:
|
|
1603
|
-
}, 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();
|
|
1604
1613
|
}
|
|
1605
|
-
function
|
|
1606
|
-
t.zoomFinished(), window.removeEventListener("keyup",
|
|
1614
|
+
function y() {
|
|
1615
|
+
t.zoomFinished(), window.removeEventListener("keyup", y);
|
|
1607
1616
|
}
|
|
1608
|
-
function
|
|
1609
|
-
|
|
1617
|
+
function T(h) {
|
|
1618
|
+
d = h.key;
|
|
1610
1619
|
}
|
|
1611
|
-
function
|
|
1612
|
-
|
|
1620
|
+
function w() {
|
|
1621
|
+
d = null;
|
|
1613
1622
|
}
|
|
1614
1623
|
return { core: t, onPointerDown: g, onWheel: M };
|
|
1615
1624
|
}
|
|
1616
|
-
function
|
|
1617
|
-
const t =
|
|
1625
|
+
function Fo(e) {
|
|
1626
|
+
const t = zt({
|
|
1618
1627
|
onDoubleTap() {
|
|
1619
1628
|
t.toggleZoom();
|
|
1620
1629
|
},
|
|
1621
1630
|
...e
|
|
1622
|
-
}), { 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(
|
|
1623
1632
|
t,
|
|
1624
1633
|
e.onSwipeEdge
|
|
1625
1634
|
);
|
|
1626
1635
|
let i, r;
|
|
1627
|
-
async function v
|
|
1628
|
-
const { touches: u } =
|
|
1629
|
-
s(u.length), n.zooming =
|
|
1630
|
-
const { clientX: M, clientY:
|
|
1631
|
-
o.start(M,
|
|
1632
|
-
}
|
|
1633
|
-
async function c(
|
|
1634
|
-
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;
|
|
1635
1644
|
s(u.length);
|
|
1636
|
-
const { clientX: M, clientY:
|
|
1637
|
-
if (o.move(M,
|
|
1638
|
-
|
|
1639
|
-
const
|
|
1640
|
-
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);
|
|
1641
1650
|
}
|
|
1642
1651
|
}
|
|
1643
|
-
async function g(
|
|
1644
|
-
if (
|
|
1652
|
+
async function g(v) {
|
|
1653
|
+
if (v.touches.length)
|
|
1645
1654
|
return;
|
|
1646
|
-
const { clientX: u, clientY: M } =
|
|
1647
|
-
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();
|
|
1648
1657
|
}
|
|
1649
|
-
return { core: t, onTouchStart:
|
|
1658
|
+
return { core: t, onTouchStart: f, onTouchMove: c, onTouchEnd: g };
|
|
1650
1659
|
}
|
|
1651
|
-
function
|
|
1652
|
-
const e =
|
|
1660
|
+
function Wo() {
|
|
1661
|
+
const e = pe({
|
|
1653
1662
|
scale: 1,
|
|
1654
1663
|
startX: 0,
|
|
1655
1664
|
startY: 0,
|
|
@@ -1669,11 +1678,11 @@ function Po() {
|
|
|
1669
1678
|
}
|
|
1670
1679
|
return { state: e, dragStart: t, dragMove: n, dragEnd: o };
|
|
1671
1680
|
}
|
|
1672
|
-
function
|
|
1681
|
+
function Rn() {
|
|
1673
1682
|
const e = m(!1), t = m(!1);
|
|
1674
|
-
return
|
|
1683
|
+
return pt(() => {
|
|
1675
1684
|
!t.value || (e.value = !0);
|
|
1676
|
-
}),
|
|
1685
|
+
}), de(() => {
|
|
1677
1686
|
t.value = !1, setTimeout(() => {
|
|
1678
1687
|
t.value = !0;
|
|
1679
1688
|
});
|
|
@@ -1681,32 +1690,32 @@ function Bn() {
|
|
|
1681
1690
|
isActivated: e
|
|
1682
1691
|
};
|
|
1683
1692
|
}
|
|
1684
|
-
function
|
|
1693
|
+
function Hn(e) {
|
|
1685
1694
|
let t = !1;
|
|
1686
1695
|
return () => {
|
|
1687
1696
|
t || (e(), t = !0);
|
|
1688
1697
|
};
|
|
1689
1698
|
}
|
|
1690
|
-
function
|
|
1699
|
+
function Xo(e) {
|
|
1691
1700
|
let t = null;
|
|
1692
|
-
const { isActivated: n } =
|
|
1701
|
+
const { isActivated: n } = Rn(), o = Hn(() => t = window.onBackPress);
|
|
1693
1702
|
function l() {
|
|
1694
1703
|
o(), window.onBackPress = () => e();
|
|
1695
1704
|
}
|
|
1696
1705
|
function s() {
|
|
1697
1706
|
window.onBackPress = t;
|
|
1698
1707
|
}
|
|
1699
|
-
return
|
|
1708
|
+
return pt(() => {
|
|
1700
1709
|
!n.value || l();
|
|
1701
|
-
}),
|
|
1710
|
+
}), Ht(() => {
|
|
1702
1711
|
l();
|
|
1703
|
-
}),
|
|
1712
|
+
}), yt(() => {
|
|
1704
1713
|
s();
|
|
1705
|
-
}),
|
|
1714
|
+
}), $t(() => {
|
|
1706
1715
|
s();
|
|
1707
1716
|
}), { register: l, unregister: s };
|
|
1708
1717
|
}
|
|
1709
|
-
const
|
|
1718
|
+
const $n = ["onClick"], Pn = /* @__PURE__ */ q({
|
|
1710
1719
|
__name: "Toast",
|
|
1711
1720
|
props: {
|
|
1712
1721
|
message: null,
|
|
@@ -1730,7 +1739,7 @@ const Rn = ["onClick"], $n = /* @__PURE__ */ q({
|
|
|
1730
1739
|
padding: "14px 19px",
|
|
1731
1740
|
top: `calc(${s.value}% - ${l.value}px)`,
|
|
1732
1741
|
left: `calc(50% - ${o.value}px)`
|
|
1733
|
-
})),
|
|
1742
|
+
})), d = z(() => ({
|
|
1734
1743
|
width: "fit-content",
|
|
1735
1744
|
display: "flex",
|
|
1736
1745
|
justifyContent: "center",
|
|
@@ -1743,8 +1752,8 @@ const Rn = ["onClick"], $n = /* @__PURE__ */ q({
|
|
|
1743
1752
|
}
|
|
1744
1753
|
return Me(() => {
|
|
1745
1754
|
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
1746
|
-
}), (r,
|
|
1747
|
-
onClick:
|
|
1755
|
+
}), (r, f) => (U(), $("div", {
|
|
1756
|
+
onClick: ye(i, ["stop"]),
|
|
1748
1757
|
id: "toastWrapper",
|
|
1749
1758
|
ref_key: "toastWrapper",
|
|
1750
1759
|
ref: n,
|
|
@@ -1752,30 +1761,30 @@ const Rn = ["onClick"], $n = /* @__PURE__ */ q({
|
|
|
1752
1761
|
style: K([A(a), { zIndex: 9999999 }])
|
|
1753
1762
|
}, [
|
|
1754
1763
|
R("div", {
|
|
1755
|
-
style: K(A(
|
|
1764
|
+
style: K(A(d))
|
|
1756
1765
|
}, [
|
|
1757
|
-
R("span", null,
|
|
1766
|
+
R("span", null, Fe(e.message), 1)
|
|
1758
1767
|
], 4)
|
|
1759
|
-
], 12,
|
|
1768
|
+
], 12, $n));
|
|
1760
1769
|
}
|
|
1761
1770
|
});
|
|
1762
|
-
const
|
|
1771
|
+
const Fn = /* @__PURE__ */ oe(Pn, [["__scopeId", "data-v-25d39b90"]]), vt = {
|
|
1763
1772
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
1764
1773
|
position: "middle",
|
|
1765
1774
|
duration: 1500,
|
|
1766
1775
|
buttonClickEvent: () => {
|
|
1767
1776
|
}
|
|
1768
1777
|
};
|
|
1769
|
-
class
|
|
1778
|
+
class Zo {
|
|
1770
1779
|
options;
|
|
1771
1780
|
container;
|
|
1772
1781
|
constructor(t) {
|
|
1773
1782
|
this.options = t, this.container = document.createElement("div");
|
|
1774
1783
|
}
|
|
1775
1784
|
present() {
|
|
1776
|
-
const t =
|
|
1777
|
-
|
|
1778
|
-
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;
|
|
1779
1788
|
setTimeout(() => {
|
|
1780
1789
|
this.dismiss();
|
|
1781
1790
|
}, n);
|
|
@@ -1786,12 +1795,12 @@ class Wo {
|
|
|
1786
1795
|
"#toastWrapper"
|
|
1787
1796
|
);
|
|
1788
1797
|
t.style.opacity = "0", t.style.transition = "opacity 0.4s ease-in", setTimeout(() => {
|
|
1789
|
-
this.container && (
|
|
1798
|
+
this.container && (De(null, this.container), document.body.removeChild(this.container));
|
|
1790
1799
|
}, 500);
|
|
1791
1800
|
}
|
|
1792
1801
|
}
|
|
1793
1802
|
}
|
|
1794
|
-
const
|
|
1803
|
+
const Wn = ["xlink:href", "fill", "color"], Ie = /* @__PURE__ */ q({
|
|
1795
1804
|
__name: "SvgIcon",
|
|
1796
1805
|
props: {
|
|
1797
1806
|
name: null,
|
|
@@ -1810,7 +1819,7 @@ const Pn = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1810
1819
|
const { style: a } = s;
|
|
1811
1820
|
return typeof a == "object" ? a : {};
|
|
1812
1821
|
}
|
|
1813
|
-
return (s, a) => (
|
|
1822
|
+
return (s, a) => (U(), $("svg", {
|
|
1814
1823
|
"aria-hidden": "",
|
|
1815
1824
|
style: K({ ...A(o), ...l(s.$attrs) })
|
|
1816
1825
|
}, [
|
|
@@ -1818,11 +1827,11 @@ const Pn = ["xlink:href", "fill", "color"], we = /* @__PURE__ */ q({
|
|
|
1818
1827
|
"xlink:href": A(n),
|
|
1819
1828
|
fill: e.color,
|
|
1820
1829
|
color: e.color
|
|
1821
|
-
}, null, 8,
|
|
1830
|
+
}, null, 8, Wn)
|
|
1822
1831
|
], 4));
|
|
1823
1832
|
}
|
|
1824
1833
|
});
|
|
1825
|
-
function
|
|
1834
|
+
function Xn(e) {
|
|
1826
1835
|
const {
|
|
1827
1836
|
containerEl: t,
|
|
1828
1837
|
sliderEl: n,
|
|
@@ -1830,105 +1839,105 @@ function Fn(e) {
|
|
|
1830
1839
|
performance: l = {},
|
|
1831
1840
|
maxHeightRatio: s = 0.9,
|
|
1832
1841
|
observeMethod: a = "classList"
|
|
1833
|
-
} = e,
|
|
1834
|
-
let r,
|
|
1835
|
-
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({
|
|
1836
1845
|
top: 0,
|
|
1837
1846
|
scrollTop: 0,
|
|
1838
1847
|
scrollHeight: 0,
|
|
1839
1848
|
clientHeight: 0
|
|
1840
1849
|
}), M = m({
|
|
1841
1850
|
clientHeight: 0
|
|
1842
|
-
}),
|
|
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(
|
|
1843
1852
|
u.value.clientHeight / u.value.scrollHeight,
|
|
1844
1853
|
0.05
|
|
1845
|
-
)),
|
|
1854
|
+
)), b = z(() => D.value > s ? 0 : D.value * u.value.clientHeight), C = z(() => ({
|
|
1846
1855
|
willChange: "transform",
|
|
1847
|
-
transform: `translate3d(0,${
|
|
1848
|
-
height: o ? `${
|
|
1856
|
+
transform: `translate3d(0,${v.value}px,0)`,
|
|
1857
|
+
height: o ? `${b.value}px` : void 0
|
|
1849
1858
|
}));
|
|
1850
|
-
|
|
1851
|
-
function N(
|
|
1852
|
-
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");
|
|
1853
1862
|
}
|
|
1854
|
-
function
|
|
1855
|
-
t.value.style.scrollBehavior =
|
|
1863
|
+
function x() {
|
|
1864
|
+
t.value.style.scrollBehavior = f, g.value = 0, i();
|
|
1856
1865
|
}
|
|
1857
1866
|
function Y() {
|
|
1858
|
-
|
|
1867
|
+
d.value = !1;
|
|
1859
1868
|
}
|
|
1860
1869
|
function Z() {
|
|
1861
|
-
|
|
1870
|
+
y.value || (d.value = !0);
|
|
1862
1871
|
}
|
|
1863
|
-
function p(
|
|
1864
|
-
if (!
|
|
1872
|
+
function p(k) {
|
|
1873
|
+
if (!y.value)
|
|
1865
1874
|
return;
|
|
1866
|
-
let W =
|
|
1867
|
-
W < 0 ?
|
|
1868
|
-
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
|
|
1869
1878
|
});
|
|
1870
1879
|
}
|
|
1871
1880
|
function E() {
|
|
1872
|
-
|
|
1881
|
+
y.value || O();
|
|
1873
1882
|
}
|
|
1874
1883
|
function O() {
|
|
1875
1884
|
cancelAnimationFrame(r), r = requestAnimationFrame(Q);
|
|
1876
1885
|
}
|
|
1877
1886
|
function Q() {
|
|
1878
|
-
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);
|
|
1879
1888
|
}
|
|
1880
|
-
function k
|
|
1889
|
+
function _(k) {
|
|
1881
1890
|
let W = "addEventListener";
|
|
1882
|
-
|
|
1891
|
+
k === "add" ? W = "addEventListener" : W = "removeEventListener", n.value?.[W]("pointerdown", N, {
|
|
1883
1892
|
passive: !0
|
|
1884
|
-
}), window[W]("pointermove", p, { passive: !0 }), window[W]("pointerup",
|
|
1893
|
+
}), window[W]("pointermove", p, { passive: !0 }), window[W]("pointerup", x, { passive: !0 });
|
|
1885
1894
|
}
|
|
1886
|
-
const
|
|
1887
|
-
(a == "classList" ||
|
|
1895
|
+
const I = new MutationObserver((k) => {
|
|
1896
|
+
(a == "classList" || k.map((J) => J.oldValue).join().includes("height")) && L();
|
|
1888
1897
|
});
|
|
1889
1898
|
function L() {
|
|
1890
1899
|
u.value.top = t.value?.getBoundingClientRect().top ?? 0;
|
|
1891
|
-
const { scrollHeight:
|
|
1892
|
-
|
|
1893
|
-
const { clientHeight:
|
|
1894
|
-
|
|
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);
|
|
1895
1904
|
}
|
|
1896
|
-
function
|
|
1905
|
+
function B() {
|
|
1897
1906
|
Y(), setTimeout(() => {
|
|
1898
1907
|
M.value.clientHeight = n.value?.clientHeight ?? 0, Z();
|
|
1899
1908
|
}, 150);
|
|
1900
1909
|
}
|
|
1901
|
-
function
|
|
1910
|
+
function H() {
|
|
1902
1911
|
if (t.value && n.value) {
|
|
1903
1912
|
t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", E, {
|
|
1904
1913
|
passive: !0
|
|
1905
|
-
}),
|
|
1906
|
-
const
|
|
1907
|
-
a === "classList" ? Object.assign(
|
|
1914
|
+
}), _("add");
|
|
1915
|
+
const k = {};
|
|
1916
|
+
a === "classList" ? Object.assign(k, { subtree: !0, childList: !0 }) : Object.assign(k, {
|
|
1908
1917
|
subtree: !0,
|
|
1909
1918
|
attributeOldValue: !0,
|
|
1910
1919
|
attributeFilter: ["style"]
|
|
1911
|
-
}),
|
|
1920
|
+
}), I.observe(t.value, k), setTimeout(() => {
|
|
1912
1921
|
L();
|
|
1913
|
-
}, 100),
|
|
1922
|
+
}, 100), B();
|
|
1914
1923
|
} else
|
|
1915
1924
|
console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: n });
|
|
1916
1925
|
}
|
|
1917
1926
|
return G(c, () => {
|
|
1918
1927
|
Y(), i();
|
|
1919
1928
|
}), {
|
|
1920
|
-
isScrollEnd:
|
|
1921
|
-
isDragSlider:
|
|
1922
|
-
offsetTop:
|
|
1929
|
+
isScrollEnd: d,
|
|
1930
|
+
isDragSlider: y,
|
|
1931
|
+
offsetTop: v,
|
|
1923
1932
|
scrollTop: c,
|
|
1924
|
-
scrollable:
|
|
1925
|
-
sliderPos:
|
|
1926
|
-
init:
|
|
1927
|
-
modifySliderEventListener:
|
|
1933
|
+
scrollable: T,
|
|
1934
|
+
sliderPos: C,
|
|
1935
|
+
init: H,
|
|
1936
|
+
modifySliderEventListener: _,
|
|
1928
1937
|
heightRatio: D
|
|
1929
1938
|
};
|
|
1930
1939
|
}
|
|
1931
|
-
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({
|
|
1932
1941
|
__name: "ScrollBar",
|
|
1933
1942
|
props: {
|
|
1934
1943
|
containerEl: null,
|
|
@@ -1939,13 +1948,13 @@ const Wn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Xn = /* @__PURE__ *
|
|
|
1939
1948
|
maxHeightRatio: { default: 0.9 }
|
|
1940
1949
|
},
|
|
1941
1950
|
setup(e, { expose: t }) {
|
|
1942
|
-
const n = e, o =
|
|
1951
|
+
const n = e, o = !!Pt().default, l = m(null), s = z(() => n.containerEl), a = Xn({
|
|
1943
1952
|
containerEl: s,
|
|
1944
1953
|
sliderEl: l,
|
|
1945
1954
|
autoHeight: o ? n.autoHeight : !0,
|
|
1946
1955
|
performance: n.performance,
|
|
1947
1956
|
observeMethod: n.observeMethod
|
|
1948
|
-
}), { 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(
|
|
1949
1958
|
`.hide-scrollbar {
|
|
1950
1959
|
scrollbar-width: none;
|
|
1951
1960
|
-ms-overflow-style: none;
|
|
@@ -1955,11 +1964,11 @@ const Wn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Xn = /* @__PURE__ *
|
|
|
1955
1964
|
}`,
|
|
1956
1965
|
{ id: "styletag_lzc_scrollbar", manual: !0 }
|
|
1957
1966
|
);
|
|
1958
|
-
|
|
1959
|
-
|
|
1967
|
+
de(() => {
|
|
1968
|
+
v(), Me(() => {
|
|
1960
1969
|
a.init();
|
|
1961
1970
|
});
|
|
1962
|
-
}),
|
|
1971
|
+
}), mt(() => {
|
|
1963
1972
|
a.modifySliderEventListener("remove");
|
|
1964
1973
|
});
|
|
1965
1974
|
function u() {
|
|
@@ -1968,9 +1977,9 @@ const Wn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Xn = /* @__PURE__ *
|
|
|
1968
1977
|
function M() {
|
|
1969
1978
|
c.value = !1;
|
|
1970
1979
|
}
|
|
1971
|
-
return t({ uScrollBarReturn: a }), (
|
|
1972
|
-
default:
|
|
1973
|
-
|
|
1980
|
+
return t({ uScrollBarReturn: a }), (y, T) => (U(), Ae(He, null, {
|
|
1981
|
+
default: $e(() => [
|
|
1982
|
+
ce(R("div", {
|
|
1974
1983
|
ref_key: "sliderRef",
|
|
1975
1984
|
ref: l,
|
|
1976
1985
|
class: "slider-wrapper",
|
|
@@ -1978,24 +1987,24 @@ const Wn = (e) => (Ae("data-v-7fd39e51"), e = e(), ze(), e), Xn = /* @__PURE__ *
|
|
|
1978
1987
|
onMouseleave: M,
|
|
1979
1988
|
style: K(A(r))
|
|
1980
1989
|
}, [
|
|
1981
|
-
|
|
1982
|
-
|
|
1990
|
+
ze(y.$slots, "default", {}, () => [
|
|
1991
|
+
Vn
|
|
1983
1992
|
], !0)
|
|
1984
1993
|
], 36), [
|
|
1985
|
-
[
|
|
1994
|
+
[xe, A(g)]
|
|
1986
1995
|
])
|
|
1987
1996
|
]),
|
|
1988
1997
|
_: 3
|
|
1989
1998
|
}));
|
|
1990
1999
|
}
|
|
1991
2000
|
});
|
|
1992
|
-
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 = {
|
|
1993
2002
|
key: 0,
|
|
1994
2003
|
class: "pull-arrow-circle"
|
|
1995
|
-
},
|
|
2004
|
+
}, eo = {
|
|
1996
2005
|
key: 0,
|
|
1997
2006
|
class: "box-load"
|
|
1998
|
-
},
|
|
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({
|
|
1999
2008
|
__name: "PullRefresh",
|
|
2000
2009
|
props: {
|
|
2001
2010
|
refresh: null,
|
|
@@ -2004,78 +2013,78 @@ const Xo = /* @__PURE__ */ ne(Zn, [["__scopeId", "data-v-7fd39e51"]]), Vn = (e)
|
|
|
2004
2013
|
pullRefreshContainer: null
|
|
2005
2014
|
},
|
|
2006
2015
|
setup(e) {
|
|
2007
|
-
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(() => ({
|
|
2008
2017
|
transition: `${g.value}ms`,
|
|
2009
2018
|
transform: `translate3d(0,${l.value}px, 0) scale(${s.value})`
|
|
2010
|
-
})),
|
|
2019
|
+
})), T = z(() => ({
|
|
2011
2020
|
borderColor: o,
|
|
2012
2021
|
transition: g.value,
|
|
2013
2022
|
transform: `rotate(${100 + a.value}deg)`,
|
|
2014
|
-
opacity:
|
|
2023
|
+
opacity: d.value
|
|
2015
2024
|
}));
|
|
2016
|
-
G(
|
|
2017
|
-
N === 0 && (l.value = -50,
|
|
2018
|
-
}), G(
|
|
2019
|
-
if (
|
|
2025
|
+
G(v, (N) => {
|
|
2026
|
+
N === 0 && (l.value = -50, d.value = 0.3);
|
|
2027
|
+
}), G(f, (N) => {
|
|
2028
|
+
if (v.value === 2)
|
|
2020
2029
|
return;
|
|
2021
|
-
const
|
|
2022
|
-
|
|
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);
|
|
2023
2032
|
});
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2033
|
+
const w = m(0), h = (N) => {
|
|
2034
|
+
w.value = N.touches[0].pageY;
|
|
2026
2035
|
}, D = (N) => {
|
|
2027
|
-
const
|
|
2028
|
-
|
|
2029
|
-
},
|
|
2030
|
-
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)
|
|
2031
2040
|
return;
|
|
2032
2041
|
r.value = 0, c.value = 300;
|
|
2033
|
-
const N = Math.pow(
|
|
2034
|
-
|
|
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(() => {
|
|
2035
2044
|
u.value = "\u5237\u65B0\u6210\u529F";
|
|
2036
2045
|
}).catch(() => {
|
|
2037
2046
|
u.value = "\u5237\u65B0\u5931\u8D25";
|
|
2038
2047
|
}).finally(() => {
|
|
2039
2048
|
setTimeout(() => {
|
|
2040
|
-
|
|
2041
|
-
|
|
2049
|
+
v.value = 0, f.value = 0, C.value.style.transform = `translate3d(0, ${Math.pow(
|
|
2050
|
+
f.value,
|
|
2042
2051
|
n
|
|
2043
2052
|
)}px, 0)`, setTimeout(() => {
|
|
2044
2053
|
u.value = void 0;
|
|
2045
2054
|
}, g.value);
|
|
2046
2055
|
}, 600);
|
|
2047
|
-
})) : (
|
|
2048
|
-
},
|
|
2049
|
-
return
|
|
2050
|
-
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(
|
|
2051
2060
|
t.pullRefreshContainer
|
|
2052
|
-
),
|
|
2053
|
-
}), (N,
|
|
2061
|
+
), C.value?.addEventListener("touchstart", h), C.value?.addEventListener("touchmove", D), C.value?.addEventListener("touchend", b));
|
|
2062
|
+
}), (N, x) => (U(), $("div", qn, [
|
|
2054
2063
|
R("div", {
|
|
2055
2064
|
class: "pull-refresh-box",
|
|
2056
|
-
style: K(A(
|
|
2065
|
+
style: K(A(y))
|
|
2057
2066
|
}, [
|
|
2058
|
-
u.value ? (
|
|
2059
|
-
|
|
2060
|
-
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, [
|
|
2061
2070
|
R("div", {
|
|
2062
2071
|
class: "left-circle",
|
|
2063
2072
|
style: K({ backgroundColor: o })
|
|
2064
2073
|
}, null, 4)
|
|
2065
2074
|
]),
|
|
2066
|
-
R("div",
|
|
2075
|
+
R("div", no, [
|
|
2067
2076
|
R("div", {
|
|
2068
2077
|
class: "right-circle",
|
|
2069
2078
|
style: K({ backgroundColor: o })
|
|
2070
2079
|
}, null, 4)
|
|
2071
2080
|
]),
|
|
2072
|
-
|
|
2073
|
-
])) : (
|
|
2081
|
+
oo
|
|
2082
|
+
])) : (U(), $("div", {
|
|
2074
2083
|
key: 1,
|
|
2075
2084
|
class: "pull-circle-line",
|
|
2076
|
-
style: K(A(
|
|
2085
|
+
style: K(A(T))
|
|
2077
2086
|
}, [
|
|
2078
|
-
R("div",
|
|
2087
|
+
R("div", lo, [
|
|
2079
2088
|
R("div", {
|
|
2080
2089
|
class: se(["arrows", { opacity: i.value }]),
|
|
2081
2090
|
style: K({ borderBottomColor: o })
|
|
@@ -2087,10 +2096,10 @@ const Xo = /* @__PURE__ */ ne(Zn, [["__scopeId", "data-v-7fd39e51"]]), Vn = (e)
|
|
|
2087
2096
|
]));
|
|
2088
2097
|
}
|
|
2089
2098
|
});
|
|
2090
|
-
const
|
|
2099
|
+
const io = /* @__PURE__ */ oe(ao, [["__scopeId", "data-v-df5da876"]]), uo = ["data-key"], ro = {
|
|
2091
2100
|
inheritAttrs: !1
|
|
2092
|
-
},
|
|
2093
|
-
...
|
|
2101
|
+
}, co = /* @__PURE__ */ q({
|
|
2102
|
+
...ro,
|
|
2094
2103
|
__name: "VirtualList",
|
|
2095
2104
|
props: {
|
|
2096
2105
|
data: null,
|
|
@@ -2102,8 +2111,8 @@ const so = /* @__PURE__ */ ne(lo, [["__scopeId", "data-v-df5da876"]]), ao = ["da
|
|
|
2102
2111
|
},
|
|
2103
2112
|
emits: ["scrollEnd"],
|
|
2104
2113
|
setup(e, { expose: t, emit: n }) {
|
|
2105
|
-
const o = e, l =
|
|
2106
|
-
itemHeight: (
|
|
2114
|
+
const o = e, l = dn(Ft(o, "data"), {
|
|
2115
|
+
itemHeight: (v) => o.itemHeight(o.data[v]),
|
|
2107
2116
|
overscan: o.overscan,
|
|
2108
2117
|
scrollEndHook: () => {
|
|
2109
2118
|
n("scrollEnd");
|
|
@@ -2111,49 +2120,49 @@ const so = /* @__PURE__ */ ne(lo, [["__scopeId", "data-v-df5da876"]]), ao = ["da
|
|
|
2111
2120
|
}), {
|
|
2112
2121
|
list: s,
|
|
2113
2122
|
containerProps: a,
|
|
2114
|
-
wrapperProps:
|
|
2123
|
+
wrapperProps: d,
|
|
2115
2124
|
innerProps: i,
|
|
2116
2125
|
getItemHeightData: r,
|
|
2117
|
-
scrollTop:
|
|
2126
|
+
scrollTop: f
|
|
2118
2127
|
} = l;
|
|
2119
2128
|
t({
|
|
2120
2129
|
vListReturn: l
|
|
2121
2130
|
});
|
|
2122
2131
|
const c = "virtualListWrapper" + new Date().getTime();
|
|
2123
|
-
function g(
|
|
2124
|
-
return o.getItemKey ? o.getItemKey(
|
|
2132
|
+
function g(v, u) {
|
|
2133
|
+
return o.getItemKey ? o.getItemKey(v, u) : `${u}`;
|
|
2125
2134
|
}
|
|
2126
|
-
return (
|
|
2127
|
-
ge(
|
|
2135
|
+
return (v, u) => (U(), $(Be, null, [
|
|
2136
|
+
ge(io, {
|
|
2128
2137
|
refresh: e.refresh,
|
|
2129
2138
|
refreshOff: e.refreshOff,
|
|
2130
|
-
scrollTop: A(
|
|
2139
|
+
scrollTop: A(f),
|
|
2131
2140
|
pullRefreshContainer: "#" + c
|
|
2132
2141
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
2133
2142
|
R("div", {
|
|
2134
2143
|
class: "virtualListWrapper",
|
|
2135
2144
|
id: c
|
|
2136
2145
|
}, [
|
|
2137
|
-
R("div",
|
|
2146
|
+
R("div", me({
|
|
2138
2147
|
onScrollPassive: u[0] || (u[0] = (...M) => A(a).onScroll && A(a).onScroll(...M)),
|
|
2139
2148
|
ref: A(a).ref,
|
|
2140
2149
|
class: "virtualList"
|
|
2141
|
-
},
|
|
2142
|
-
R("div",
|
|
2143
|
-
R("div",
|
|
2144
|
-
(
|
|
2145
|
-
key: g(M,
|
|
2146
|
-
"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),
|
|
2147
2156
|
style: K({
|
|
2148
|
-
height: `${A(r)(
|
|
2157
|
+
height: `${A(r)(y).height}px`,
|
|
2149
2158
|
display: "flex"
|
|
2150
2159
|
})
|
|
2151
2160
|
}, [
|
|
2152
|
-
|
|
2161
|
+
ze(v.$slots, "default", {
|
|
2153
2162
|
data: M,
|
|
2154
|
-
index:
|
|
2163
|
+
index: y
|
|
2155
2164
|
}, void 0, !0)
|
|
2156
|
-
], 12,
|
|
2165
|
+
], 12, uo))), 128))
|
|
2157
2166
|
], 16)
|
|
2158
2167
|
], 16)
|
|
2159
2168
|
], 16)
|
|
@@ -2161,7 +2170,7 @@ const so = /* @__PURE__ */ ne(lo, [["__scopeId", "data-v-df5da876"]]), ao = ["da
|
|
|
2161
2170
|
], 64));
|
|
2162
2171
|
}
|
|
2163
2172
|
});
|
|
2164
|
-
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", {
|
|
2165
2174
|
id: "group-1",
|
|
2166
2175
|
stroke: "none",
|
|
2167
2176
|
"stroke-width": "1",
|
|
@@ -2173,10 +2182,10 @@ const Zo = /* @__PURE__ */ ne(uo, [["__scopeId", "data-v-dfe60586"]]), lt = (e)
|
|
|
2173
2182
|
id: "path-1",
|
|
2174
2183
|
fill: "#FFF"
|
|
2175
2184
|
})
|
|
2176
|
-
], -1)),
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
],
|
|
2185
|
+
], -1)), mo = [
|
|
2186
|
+
go,
|
|
2187
|
+
ho
|
|
2188
|
+
], yo = /* @__PURE__ */ q({
|
|
2180
2189
|
__name: "Loading",
|
|
2181
2190
|
props: {
|
|
2182
2191
|
width: { default: "90" },
|
|
@@ -2185,38 +2194,38 @@ const Zo = /* @__PURE__ */ ne(uo, [["__scopeId", "data-v-dfe60586"]]), lt = (e)
|
|
|
2185
2194
|
},
|
|
2186
2195
|
setup(e) {
|
|
2187
2196
|
const t = e;
|
|
2188
|
-
|
|
2197
|
+
Pe((o) => ({
|
|
2189
2198
|
"312487ac": n
|
|
2190
2199
|
}));
|
|
2191
2200
|
const n = `${t.duration}ms`;
|
|
2192
|
-
return (o, l) => (
|
|
2193
|
-
|
|
2194
|
-
(
|
|
2201
|
+
return (o, l) => (U(), $("div", fo, [
|
|
2202
|
+
vo,
|
|
2203
|
+
(U(), $("svg", {
|
|
2195
2204
|
style: { position: "relative" },
|
|
2196
2205
|
width: e.width,
|
|
2197
2206
|
height: e.height,
|
|
2198
2207
|
viewBox: "0 0 260 260",
|
|
2199
2208
|
version: "1.1",
|
|
2200
2209
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2201
|
-
},
|
|
2210
|
+
}, mo, 8, Mo))
|
|
2202
2211
|
]));
|
|
2203
2212
|
}
|
|
2204
2213
|
});
|
|
2205
|
-
const
|
|
2214
|
+
const Go = /* @__PURE__ */ oe(yo, [["__scopeId", "data-v-33519afd"]]), po = [
|
|
2206
2215
|
"image/vnd.adobe.photoshop",
|
|
2207
2216
|
"image/x-photoshop",
|
|
2208
2217
|
"image/jp2",
|
|
2209
2218
|
"image/pcx"
|
|
2210
2219
|
];
|
|
2211
|
-
function
|
|
2220
|
+
function jt(e, t) {
|
|
2212
2221
|
const n = m(e?.value), o = z(() => n.value?.startsWith("/_lzc")), l = m(!1), s = z(() => l.value), a = z(() => {
|
|
2213
2222
|
const i = t?.value;
|
|
2214
|
-
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;
|
|
2215
2224
|
});
|
|
2216
2225
|
e && G(e, (i) => {
|
|
2217
2226
|
n.value = i, l.value = !1;
|
|
2218
2227
|
});
|
|
2219
|
-
function
|
|
2228
|
+
function d() {
|
|
2220
2229
|
l.value = !0;
|
|
2221
2230
|
}
|
|
2222
2231
|
return {
|
|
@@ -2224,20 +2233,20 @@ function zt(e, t) {
|
|
|
2224
2233
|
isError: l,
|
|
2225
2234
|
hasError: s,
|
|
2226
2235
|
isSupport: a,
|
|
2227
|
-
handleError:
|
|
2236
|
+
handleError: d
|
|
2228
2237
|
};
|
|
2229
2238
|
}
|
|
2230
|
-
function
|
|
2239
|
+
function xt() {
|
|
2231
2240
|
return { vImageCancel: {
|
|
2232
2241
|
beforeUnmount(t) {
|
|
2233
2242
|
!t || (t.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
|
2234
2243
|
}
|
|
2235
2244
|
} };
|
|
2236
2245
|
}
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2239
|
-
],
|
|
2240
|
-
...
|
|
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,
|
|
2241
2250
|
__name: "Image",
|
|
2242
2251
|
props: {
|
|
2243
2252
|
src: null,
|
|
@@ -2250,84 +2259,84 @@ const yo = ["title"], po = { class: "tip" }, Do = /* @__PURE__ */ Ft("\u5F53\u52
|
|
|
2250
2259
|
},
|
|
2251
2260
|
emits: ["load", "noSupport", "loadError"],
|
|
2252
2261
|
setup(e, { emit: t }) {
|
|
2253
|
-
const n = e, o = m(), l = m(), s = m(!1), a = m(!1),
|
|
2254
|
-
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,
|
|
2255
2264
|
delay: 300
|
|
2256
|
-
}),
|
|
2257
|
-
function
|
|
2265
|
+
}), y = Vt(() => d.value && n.autoRemoveThumbnail ? !1 : n.thumbnail && !d.value);
|
|
2266
|
+
function T() {
|
|
2258
2267
|
a.value = !0;
|
|
2259
2268
|
}
|
|
2260
|
-
function
|
|
2261
|
-
a.value && (
|
|
2269
|
+
function w() {
|
|
2270
|
+
a.value && (d.value = !0);
|
|
2262
2271
|
}
|
|
2263
|
-
async function
|
|
2264
|
-
|
|
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");
|
|
2265
2274
|
}
|
|
2266
2275
|
function D() {
|
|
2267
|
-
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();
|
|
2268
2277
|
}
|
|
2269
|
-
async function
|
|
2270
|
-
|
|
2278
|
+
async function b(x) {
|
|
2279
|
+
x ? h() : l.value && t("load", l.value), s.value = !0;
|
|
2271
2280
|
}
|
|
2272
|
-
function
|
|
2273
|
-
|
|
2281
|
+
function C(x) {
|
|
2282
|
+
x ? (v(), t("loadError")) : T(), s.value = !0;
|
|
2274
2283
|
}
|
|
2275
2284
|
function N() {
|
|
2276
2285
|
t("noSupport");
|
|
2277
2286
|
}
|
|
2278
|
-
return (
|
|
2279
|
-
A(c) && !s.value ? (
|
|
2280
|
-
A(c) ? A(g) ? (
|
|
2281
|
-
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),
|
|
2282
2291
|
class: "tip-wrap"
|
|
2283
2292
|
}), [
|
|
2284
|
-
ge(
|
|
2293
|
+
ge(Ie, {
|
|
2285
2294
|
class: "bad-image",
|
|
2286
2295
|
name: e.badImageIconName
|
|
2287
2296
|
}, null, 8, ["name"])
|
|
2288
|
-
], 16,
|
|
2297
|
+
], 16, Ao)) : ze(x.$slots, "default", {
|
|
2289
2298
|
key: 2,
|
|
2290
|
-
src: A(
|
|
2291
|
-
onLoad:
|
|
2292
|
-
onError:
|
|
2299
|
+
src: A(f),
|
|
2300
|
+
onLoad: b,
|
|
2301
|
+
onError: C,
|
|
2293
2302
|
vImageCancel: A(u)
|
|
2294
2303
|
}, () => [
|
|
2295
|
-
A(
|
|
2304
|
+
A(y) ? ce((U(), $("img", me({ key: 0 }, x.$attrs, {
|
|
2296
2305
|
ref_key: "thumbnailRef",
|
|
2297
2306
|
ref: l,
|
|
2298
|
-
onLoad: Y[0] || (Y[0] = (Z) =>
|
|
2299
|
-
onError: Y[1] || (Y[1] = (Z) =>
|
|
2307
|
+
onLoad: Y[0] || (Y[0] = (Z) => b()),
|
|
2308
|
+
onError: Y[1] || (Y[1] = (Z) => C()),
|
|
2300
2309
|
src: e.thumbnail
|
|
2301
|
-
}), null, 16,
|
|
2310
|
+
}), null, 16, Eo)), [
|
|
2302
2311
|
[A(u)]
|
|
2303
2312
|
]) : fe("", !0),
|
|
2304
|
-
e.isShowSrc || a.value ?
|
|
2313
|
+
e.isShowSrc || a.value ? ce((U(), $("img", me({ key: 1 }, x.$attrs, {
|
|
2305
2314
|
ref_key: "srcRef",
|
|
2306
2315
|
ref: o,
|
|
2307
2316
|
class: "src-class",
|
|
2308
|
-
onLoad: Y[2] || (Y[2] = (Z) =>
|
|
2309
|
-
onError: Y[3] || (Y[3] = (Z) =>
|
|
2310
|
-
src: A(
|
|
2311
|
-
}), 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)), [
|
|
2312
2321
|
[A(u)],
|
|
2313
|
-
[
|
|
2322
|
+
[xe, a.value]
|
|
2314
2323
|
]) : fe("", !0)
|
|
2315
|
-
], !0) : (
|
|
2316
|
-
title: A(
|
|
2324
|
+
], !0) : (U(), $("div", me({ key: 1 }, x.$attrs, {
|
|
2325
|
+
title: A(f),
|
|
2317
2326
|
class: "tip-wrap"
|
|
2318
2327
|
}), [
|
|
2319
|
-
ge(
|
|
2328
|
+
ge(Ie, {
|
|
2320
2329
|
class: "no-support-icon",
|
|
2321
2330
|
name: e.noSupportIconName
|
|
2322
2331
|
}, null, 8, ["name"]),
|
|
2323
|
-
|
|
2324
|
-
[A(
|
|
2332
|
+
ce((U(), $("span", To, wo)), [
|
|
2333
|
+
[A(Tt), N]
|
|
2325
2334
|
])
|
|
2326
|
-
], 16,
|
|
2335
|
+
], 16, Do))
|
|
2327
2336
|
], 64));
|
|
2328
2337
|
}
|
|
2329
2338
|
});
|
|
2330
|
-
const
|
|
2339
|
+
const qo = /* @__PURE__ */ oe(Lo, [["__scopeId", "data-v-bfec1a6b"]]), jo = ["title"], xo = ["src"], Co = ["title"], So = /* @__PURE__ */ q({
|
|
2331
2340
|
__name: "Thumbnail",
|
|
2332
2341
|
props: {
|
|
2333
2342
|
src: null,
|
|
@@ -2335,86 +2344,86 @@ const Ko = /* @__PURE__ */ ne(Ao, [["__scopeId", "data-v-bfec1a6b"]]), zo = ["ti
|
|
|
2335
2344
|
},
|
|
2336
2345
|
emits: ["noSupport"],
|
|
2337
2346
|
setup(e, { emit: t }) {
|
|
2338
|
-
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();
|
|
2339
2348
|
function c() {
|
|
2340
2349
|
t("noSupport");
|
|
2341
2350
|
}
|
|
2342
|
-
return (g,
|
|
2351
|
+
return (g, v) => A(i) ? A(d) ? (U(), $("div", {
|
|
2343
2352
|
key: 2,
|
|
2344
2353
|
title: A(a),
|
|
2345
2354
|
class: "icon-wrap"
|
|
2346
2355
|
}, [
|
|
2347
|
-
ge(
|
|
2356
|
+
ge(Ie, {
|
|
2348
2357
|
class: "icon",
|
|
2349
2358
|
name: "\u56FE\u7247\u635F\u574F"
|
|
2350
2359
|
})
|
|
2351
|
-
], 8,
|
|
2360
|
+
], 8, Co)) : ce((U(), $("img", {
|
|
2352
2361
|
key: 1,
|
|
2353
2362
|
fetchpriority: "high",
|
|
2354
|
-
onLoad:
|
|
2355
|
-
onError:
|
|
2363
|
+
onLoad: v[0] || (v[0] = (u) => o.value = !0),
|
|
2364
|
+
onError: v[1] || (v[1] = (...u) => A(r) && A(r)(...u)),
|
|
2356
2365
|
src: A(a)
|
|
2357
|
-
}, null, 40,
|
|
2358
|
-
[A(
|
|
2359
|
-
[
|
|
2360
|
-
]) : (
|
|
2366
|
+
}, null, 40, xo)), [
|
|
2367
|
+
[A(f)],
|
|
2368
|
+
[xe, o.value]
|
|
2369
|
+
]) : (U(), $("div", {
|
|
2361
2370
|
key: 0,
|
|
2362
2371
|
title: A(a),
|
|
2363
2372
|
class: "icon-wrap"
|
|
2364
2373
|
}, [
|
|
2365
|
-
|
|
2374
|
+
ce(ge(Ie, {
|
|
2366
2375
|
class: "icon",
|
|
2367
2376
|
name: "\u672A\u77E5\u7C7B\u578B"
|
|
2368
2377
|
}, null, 512), [
|
|
2369
|
-
[A(
|
|
2378
|
+
[A(Tt), c]
|
|
2370
2379
|
])
|
|
2371
|
-
], 8,
|
|
2380
|
+
], 8, jo));
|
|
2372
2381
|
}
|
|
2373
2382
|
});
|
|
2374
|
-
const
|
|
2383
|
+
const Jo = /* @__PURE__ */ oe(So, [["__scopeId", "data-v-2f606efa"]]);
|
|
2375
2384
|
export {
|
|
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
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
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
|
|
2420
2429
|
};
|