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