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