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