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