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