@lazycatcloud/lzc-toolkit 0.0.72 → 0.0.73
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 +427 -407
- package/dist/index.umd.js +7 -2
- package/dist/types/useDelayLoad/index.d.ts +8 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
var
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { ref as f, watch as Y, customRef as lt, getCurrentScope as nt, onScopeDispose as ot, getCurrentInstance as Be, onMounted as oe, nextTick as _e, unref as B, onUpdated as st, readonly as at, shallowRef as rt, computed as w, onUnmounted as Ie, inject as j, provide as z, defineComponent as K, h as Q, render as ue, openBlock as M, createBlock as Me, Transition as Pe, withCtx as He, createElementBlock as A, createElementVNode as T, withModifiers as ut, normalizeClass as Ae, renderSlot as ye, createCommentVNode as it, normalizeProps as he, guardReactiveProps as pe, pushScopeId as ce, popScopeId as de, normalizeStyle as W, toDisplayString as Fe, useSlots as ct, withDirectives as dt, vShow as vt, toRef as ft, Fragment as Ce, createVNode as ht, mergeProps as pt, renderList as mt, useCssVars as gt } from "vue";
|
|
2
|
+
var Ee;
|
|
3
|
+
const be = typeof window < "u", xe = (e) => typeof e == "function";
|
|
4
|
+
be && ((Ee = window?.navigator) == null ? void 0 : Ee.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
5
5
|
function ie(e) {
|
|
6
6
|
return typeof e == "function" ? e() : B(e);
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ function ke(e, t) {
|
|
|
11
11
|
}
|
|
12
12
|
return l;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function _t(e, t = {}) {
|
|
15
15
|
let l, n;
|
|
16
16
|
return (a) => {
|
|
17
17
|
const s = ie(e), i = ie(t.maxWait);
|
|
@@ -24,47 +24,47 @@ function gt(e, t = {}) {
|
|
|
24
24
|
}, s);
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function yt(e, t = !0, l = !0) {
|
|
28
28
|
let n = 0, o, a = !0;
|
|
29
29
|
const s = () => {
|
|
30
30
|
o && (clearTimeout(o), o = void 0);
|
|
31
31
|
};
|
|
32
|
-
return (
|
|
33
|
-
const
|
|
34
|
-
if (s(),
|
|
35
|
-
return n = Date.now(),
|
|
36
|
-
|
|
37
|
-
n = Date.now(), a = !0, s(),
|
|
38
|
-
},
|
|
32
|
+
return (h) => {
|
|
33
|
+
const v = ie(e), d = Date.now() - n;
|
|
34
|
+
if (s(), v <= 0)
|
|
35
|
+
return n = Date.now(), h();
|
|
36
|
+
d > v && (l || !a) ? (n = Date.now(), h()) : t && (o = setTimeout(() => {
|
|
37
|
+
n = Date.now(), a = !0, s(), h();
|
|
38
|
+
}, v)), !l && !o && (o = setTimeout(() => a = !0, v)), a = !1;
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function bt(e) {
|
|
42
42
|
return e;
|
|
43
43
|
}
|
|
44
44
|
function wt(e, t) {
|
|
45
45
|
let l, n, o;
|
|
46
|
-
const a =
|
|
46
|
+
const a = f(!0), s = () => {
|
|
47
47
|
a.value = !0, o();
|
|
48
48
|
};
|
|
49
|
-
|
|
50
|
-
const i = xe(t) ? t : t.get,
|
|
49
|
+
Y(e, s, { flush: "sync" });
|
|
50
|
+
const i = xe(t) ? t : t.get, h = xe(t) ? void 0 : t.set, v = lt((d, c) => (n = d, o = c, {
|
|
51
51
|
get() {
|
|
52
52
|
return a.value && (l = i(), a.value = !1), n(), l;
|
|
53
53
|
},
|
|
54
54
|
set(u) {
|
|
55
|
-
|
|
55
|
+
h?.(u);
|
|
56
56
|
}
|
|
57
57
|
}));
|
|
58
|
-
return Object.isExtensible(
|
|
58
|
+
return Object.isExtensible(v) && (v.trigger = s), v;
|
|
59
59
|
}
|
|
60
60
|
function ze(e) {
|
|
61
|
-
return
|
|
61
|
+
return nt() ? (ot(e), !0) : !1;
|
|
62
62
|
}
|
|
63
63
|
function We(e, t = 200, l = {}) {
|
|
64
|
-
return ke(
|
|
64
|
+
return ke(_t(t, l), e);
|
|
65
65
|
}
|
|
66
66
|
function Te(e, t = 200, l = !1, n = !0) {
|
|
67
|
-
return ke(
|
|
67
|
+
return ke(yt(t, l, n), e);
|
|
68
68
|
}
|
|
69
69
|
function Ne(e, t = !0) {
|
|
70
70
|
Be() ? oe(e) : t ? e() : _e(e);
|
|
@@ -74,48 +74,48 @@ function Ve(e) {
|
|
|
74
74
|
const l = ie(e);
|
|
75
75
|
return (t = l?.$el) != null ? t : l;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const St = be ? window : void 0, Ct = be ? window.document : void 0;
|
|
78
78
|
function Et(e, t = !1) {
|
|
79
|
-
const l =
|
|
79
|
+
const l = f(), n = () => l.value = Boolean(e());
|
|
80
80
|
return n(), Ne(n, t), l;
|
|
81
81
|
}
|
|
82
82
|
const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
|
|
83
83
|
me[ge] = me[ge] || {};
|
|
84
84
|
me[ge];
|
|
85
|
-
function
|
|
85
|
+
function xt() {
|
|
86
86
|
const e = Be(), t = wt(() => null, () => e.proxy.$el);
|
|
87
|
-
return
|
|
87
|
+
return st(t.trigger), oe(t.trigger), t;
|
|
88
88
|
}
|
|
89
|
-
var Le = Object.getOwnPropertySymbols,
|
|
89
|
+
var Le = Object.getOwnPropertySymbols, Tt = Object.prototype.hasOwnProperty, Lt = Object.prototype.propertyIsEnumerable, Ot = (e, t) => {
|
|
90
90
|
var l = {};
|
|
91
91
|
for (var n in e)
|
|
92
|
-
|
|
92
|
+
Tt.call(e, n) && t.indexOf(n) < 0 && (l[n] = e[n]);
|
|
93
93
|
if (e != null && Le)
|
|
94
94
|
for (var n of Le(e))
|
|
95
|
-
t.indexOf(n) < 0 &&
|
|
95
|
+
t.indexOf(n) < 0 && Lt.call(e, n) && (l[n] = e[n]);
|
|
96
96
|
return l;
|
|
97
97
|
};
|
|
98
|
-
function
|
|
99
|
-
const n = l, { window: o =
|
|
98
|
+
function $t(e, t, l = {}) {
|
|
99
|
+
const n = l, { window: o = St } = n, a = Ot(n, ["window"]);
|
|
100
100
|
let s;
|
|
101
|
-
const i = Et(() => o && "ResizeObserver" in o),
|
|
101
|
+
const i = Et(() => o && "ResizeObserver" in o), h = () => {
|
|
102
102
|
s && (s.disconnect(), s = void 0);
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
}, { immediate: !0, flush: "post" }),
|
|
106
|
-
|
|
103
|
+
}, v = Y(() => Ve(e), (c) => {
|
|
104
|
+
h(), i.value && o && c && (s = new ResizeObserver(t), s.observe(c, a));
|
|
105
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
106
|
+
h(), v();
|
|
107
107
|
};
|
|
108
|
-
return ze(
|
|
108
|
+
return ze(d), {
|
|
109
109
|
isSupported: i,
|
|
110
|
-
stop:
|
|
110
|
+
stop: d
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const { box: n = "content-box" } = l, o =
|
|
115
|
-
return
|
|
113
|
+
function Dt(e, t = { width: 0, height: 0 }, l = {}) {
|
|
114
|
+
const { box: n = "content-box" } = l, o = f(t.width), a = f(t.height);
|
|
115
|
+
return $t(e, ([s]) => {
|
|
116
116
|
const i = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
117
|
-
i ? (o.value = i.reduce((
|
|
118
|
-
}, l),
|
|
117
|
+
i ? (o.value = i.reduce((h, { inlineSize: v }) => h + v, 0), a.value = i.reduce((h, { blockSize: v }) => h + v, 0)) : (o.value = s.contentRect.width, a.value = s.contentRect.height);
|
|
118
|
+
}, l), Y(() => Ve(e), (s) => {
|
|
119
119
|
o.value = s ? t.width : 0, a.value = s ? t.height : 0;
|
|
120
120
|
}), {
|
|
121
121
|
width: o,
|
|
@@ -126,35 +126,35 @@ var Oe;
|
|
|
126
126
|
(function(e) {
|
|
127
127
|
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
128
128
|
})(Oe || (Oe = {}));
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
const l =
|
|
132
|
-
document: n =
|
|
129
|
+
let Rt = 0;
|
|
130
|
+
function je(e, t = {}) {
|
|
131
|
+
const l = f(!1), {
|
|
132
|
+
document: n = Ct,
|
|
133
133
|
immediate: o = !0,
|
|
134
134
|
manual: a = !1,
|
|
135
|
-
id: s = `vueuse_styletag_${++
|
|
136
|
-
} = t, i =
|
|
137
|
-
let
|
|
135
|
+
id: s = `vueuse_styletag_${++Rt}`
|
|
136
|
+
} = t, i = f(e);
|
|
137
|
+
let h = () => {
|
|
138
138
|
};
|
|
139
|
-
const
|
|
139
|
+
const v = () => {
|
|
140
140
|
if (!n)
|
|
141
141
|
return;
|
|
142
142
|
const c = n.getElementById(s) || n.createElement("style");
|
|
143
|
-
c.type = "text/css", c.id = s, t.media && (c.media = t.media), n.head.appendChild(c), !l.value && (
|
|
143
|
+
c.type = "text/css", c.id = s, t.media && (c.media = t.media), n.head.appendChild(c), !l.value && (h = Y(i, (u) => {
|
|
144
144
|
c.innerText = u;
|
|
145
145
|
}, { immediate: !0 }), l.value = !0);
|
|
146
|
-
},
|
|
147
|
-
!n || !l.value || (
|
|
146
|
+
}, d = () => {
|
|
147
|
+
!n || !l.value || (h(), n.head.removeChild(n.getElementById(s)), l.value = !1);
|
|
148
148
|
};
|
|
149
|
-
return o && !a && Ne(
|
|
149
|
+
return o && !a && Ne(v), a || ze(d), {
|
|
150
150
|
id: s,
|
|
151
151
|
css: i,
|
|
152
|
-
unload:
|
|
153
|
-
load:
|
|
154
|
-
isLoaded:
|
|
152
|
+
unload: d,
|
|
153
|
+
load: v,
|
|
154
|
+
isLoaded: at(l)
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
|
-
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l,
|
|
157
|
+
var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.prototype.hasOwnProperty, Mt = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Bt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Pt = (e, t) => {
|
|
158
158
|
for (var l in t || (t = {}))
|
|
159
159
|
It.call(t, l) && De(e, l, t[l]);
|
|
160
160
|
if ($e)
|
|
@@ -162,7 +162,7 @@ var Bt = Object.defineProperty, $e = Object.getOwnPropertySymbols, It = Object.p
|
|
|
162
162
|
Mt.call(t, l) && De(e, l, t[l]);
|
|
163
163
|
return e;
|
|
164
164
|
};
|
|
165
|
-
const
|
|
165
|
+
const Ht = {
|
|
166
166
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
167
167
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
168
168
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -188,69 +188,69 @@ const Pt = {
|
|
|
188
188
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
189
189
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
190
190
|
};
|
|
191
|
-
|
|
192
|
-
linear:
|
|
193
|
-
},
|
|
191
|
+
Pt({
|
|
192
|
+
linear: bt
|
|
193
|
+
}, Ht);
|
|
194
194
|
function At(e, t) {
|
|
195
|
-
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a =
|
|
196
|
-
let
|
|
197
|
-
const
|
|
195
|
+
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = f(null), s = Dt(a), i = f(!0), h = We(N, 100);
|
|
196
|
+
let v;
|
|
197
|
+
const d = rt(e), c = f(0), u = f({ start: 0, end: 10 });
|
|
198
198
|
let r = 0;
|
|
199
|
-
const
|
|
200
|
-
let { sum: g, height:
|
|
201
|
-
return
|
|
202
|
-
}),
|
|
203
|
-
let g =
|
|
204
|
-
return
|
|
199
|
+
const p = f([]), E = w(() => {
|
|
200
|
+
let { sum: g, height: y } = { sum: 0, height: 0 };
|
|
201
|
+
return d.value.map((F, H) => (typeof n == "number" ? y = n : y = n(H), g += y, { height: y, sum: g }));
|
|
202
|
+
}), C = w(() => G(u.value.start)), b = w(() => typeof n == "number" ? E.value.length * n : E.value[E.value.length - 1]?.sum || 0), S = w(() => {
|
|
203
|
+
let g = p.value.length - o, y = Math.max(g - r, 0);
|
|
204
|
+
return p.value.slice(y, g);
|
|
205
205
|
});
|
|
206
206
|
oe(() => {
|
|
207
|
-
}), Ie(() => cancelAnimationFrame(
|
|
208
|
-
[s.width, s.height,
|
|
209
|
-
([g,
|
|
210
|
-
(g ||
|
|
207
|
+
}), Ie(() => cancelAnimationFrame(v)), Y(
|
|
208
|
+
[s.width, s.height, d],
|
|
209
|
+
([g, y]) => {
|
|
210
|
+
(g || y) && U();
|
|
211
211
|
},
|
|
212
212
|
{ deep: !0 }
|
|
213
|
-
),
|
|
214
|
-
|
|
213
|
+
), Y(c, () => {
|
|
214
|
+
P(), h();
|
|
215
215
|
});
|
|
216
|
-
function
|
|
216
|
+
function P() {
|
|
217
217
|
i.value = !1;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function N() {
|
|
220
220
|
i.value = !0, l?.();
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
cancelAnimationFrame(
|
|
222
|
+
function U() {
|
|
223
|
+
cancelAnimationFrame(v), v = requestAnimationFrame($);
|
|
224
224
|
}
|
|
225
225
|
function $() {
|
|
226
226
|
if (a.value) {
|
|
227
227
|
c.value = a.value.scrollTop, r = O();
|
|
228
|
-
let g =
|
|
229
|
-
g = g - o, g = g < 0 ? 0 : g,
|
|
230
|
-
data:
|
|
228
|
+
let g = x(c.value), y = g + r + o;
|
|
229
|
+
g = g - o, g = g < 0 ? 0 : g, y = y > d.value.length ? d.value.length : y, u.value = { start: g, end: y }, p.value = d.value.slice(g, y).map((F, H) => ({
|
|
230
|
+
data: F,
|
|
231
231
|
index: H + g
|
|
232
232
|
}));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let
|
|
237
|
-
for (;
|
|
238
|
-
const R = Math.floor((
|
|
239
|
-
E.value[R].sum >= g ? (H = R,
|
|
235
|
+
function x(g) {
|
|
236
|
+
let y = 0, F = E.value.length - 1, H = -1;
|
|
237
|
+
for (; y <= F; ) {
|
|
238
|
+
const R = Math.floor((y + F) / 2);
|
|
239
|
+
E.value[R].sum >= g ? (H = R, F = R - 1) : y = R + 1;
|
|
240
240
|
}
|
|
241
241
|
return Math.max(0, H);
|
|
242
242
|
}
|
|
243
243
|
function O() {
|
|
244
|
-
let g = 0,
|
|
245
|
-
for (let H =
|
|
244
|
+
let g = 0, y = 0, F = k();
|
|
245
|
+
for (let H = F; H < E.value.length && (g++, y += E.value[H].height, !(y >= s.height.value)); H++)
|
|
246
246
|
;
|
|
247
247
|
return g;
|
|
248
248
|
}
|
|
249
249
|
function G(g) {
|
|
250
250
|
if (typeof n == "number")
|
|
251
251
|
return g * n;
|
|
252
|
-
let
|
|
253
|
-
return
|
|
252
|
+
let y = E.value[g];
|
|
253
|
+
return y ? y.sum - y.height : 0;
|
|
254
254
|
}
|
|
255
255
|
function X(g) {
|
|
256
256
|
return E.value[g] || { sum: 0, height: 0 };
|
|
@@ -261,30 +261,30 @@ function At(e, t) {
|
|
|
261
261
|
}
|
|
262
262
|
function ee(g) {
|
|
263
263
|
if (a.value) {
|
|
264
|
-
const
|
|
265
|
-
a.value.scrollTop =
|
|
264
|
+
const y = X(g);
|
|
265
|
+
a.value.scrollTop = y.sum - y.height, $();
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
|
-
const se =
|
|
268
|
+
const se = w(() => ({
|
|
269
269
|
style: {
|
|
270
270
|
width: "100%",
|
|
271
|
-
height: `${
|
|
271
|
+
height: `${b.value}px`,
|
|
272
272
|
pointerEvents: i.value ? void 0 : "none"
|
|
273
273
|
}
|
|
274
|
-
})), Z =
|
|
274
|
+
})), Z = w(() => ({
|
|
275
275
|
style: {
|
|
276
|
-
transform: `translate3d(0, ${
|
|
276
|
+
transform: `translate3d(0, ${C.value}px, 0)`,
|
|
277
277
|
"will-change": "transform"
|
|
278
278
|
}
|
|
279
279
|
})), te = {
|
|
280
280
|
overflowY: "auto"
|
|
281
281
|
};
|
|
282
282
|
return {
|
|
283
|
-
list:
|
|
284
|
-
visiableList:
|
|
283
|
+
list: p,
|
|
284
|
+
visiableList: S,
|
|
285
285
|
getItemHeightData: X,
|
|
286
|
-
getoffsetTopIndex:
|
|
287
|
-
totalHeight:
|
|
286
|
+
getoffsetTopIndex: x,
|
|
287
|
+
totalHeight: b,
|
|
288
288
|
clientHeight: s.height,
|
|
289
289
|
scrollTo: ee,
|
|
290
290
|
scrollTop: c,
|
|
@@ -292,7 +292,7 @@ function At(e, t) {
|
|
|
292
292
|
containerProps: {
|
|
293
293
|
ref: a,
|
|
294
294
|
onScroll: () => {
|
|
295
|
-
|
|
295
|
+
U();
|
|
296
296
|
},
|
|
297
297
|
style: te
|
|
298
298
|
},
|
|
@@ -300,29 +300,29 @@ function At(e, t) {
|
|
|
300
300
|
innerProps: Z
|
|
301
301
|
};
|
|
302
302
|
}
|
|
303
|
-
const
|
|
303
|
+
const Ye = Symbol(), Ke = Symbol(), Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Ge = Symbol(), Xe = Symbol(), Ze = Symbol(), Je = Symbol();
|
|
304
304
|
function wl() {
|
|
305
305
|
const { voidFn: e, boolFn: t, boolRef: l, arrayRef: n } = {
|
|
306
306
|
voidFn: (r) => {
|
|
307
307
|
},
|
|
308
308
|
boolFn: (r) => !1,
|
|
309
|
-
boolRef:
|
|
310
|
-
arrayRef:
|
|
311
|
-
}, o =
|
|
309
|
+
boolRef: w(() => !1),
|
|
310
|
+
arrayRef: w(() => [])
|
|
311
|
+
}, o = j(qe, n), a = j(Ue, t), s = j(Ze, l), i = j(Ke, e), h = j(Ye, e), v = j(Qe, e), d = j(Ge, e), c = j(Xe, e), u = j(Je, e);
|
|
312
312
|
return {
|
|
313
313
|
selected: o,
|
|
314
314
|
isSelected: a,
|
|
315
315
|
isAllSelected: s,
|
|
316
316
|
toggle: i,
|
|
317
|
-
toggleAll:
|
|
318
|
-
select:
|
|
319
|
-
selectAll:
|
|
317
|
+
toggleAll: h,
|
|
318
|
+
select: v,
|
|
319
|
+
selectAll: d,
|
|
320
320
|
unselect: c,
|
|
321
321
|
unselectAll: u
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
const l =
|
|
324
|
+
function Sl(e, t) {
|
|
325
|
+
const l = f({}), n = w(() => e.value.filter((u) => l.value[u[t]])), o = w(() => n.value.length != 0 && Object.keys(l.value).length == e.value.length);
|
|
326
326
|
function a() {
|
|
327
327
|
e.value.forEach((u) => {
|
|
328
328
|
l.value[u[t]] = !0;
|
|
@@ -336,31 +336,31 @@ function bl(e, t) {
|
|
|
336
336
|
l.value[r[t]] || (l.value[r[t]] = !0);
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
function
|
|
339
|
+
function h(u) {
|
|
340
340
|
u.forEach((r) => {
|
|
341
341
|
l.value[r[t]] && delete l.value[r[t]];
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function v(u) {
|
|
345
345
|
return !!l.value[u[t]];
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function d(u) {
|
|
348
348
|
u.forEach((r) => {
|
|
349
|
-
|
|
349
|
+
v(r) ? delete l.value[r[t]] : l.value[r[t]] = !0;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
352
|
function c() {
|
|
353
353
|
o.value ? s() : a();
|
|
354
354
|
}
|
|
355
|
-
return z(
|
|
355
|
+
return z(Ye, c), z(Ke, d), z(Ue, v), z(qe, n), z(Qe, i), z(Ge, a), z(Xe, h), z(Ze, o), z(Je, s), {
|
|
356
356
|
selected: n,
|
|
357
357
|
select: i,
|
|
358
358
|
selectAll: a,
|
|
359
|
-
unselect:
|
|
359
|
+
unselect: h,
|
|
360
360
|
unselectAll: s,
|
|
361
|
-
toggle:
|
|
361
|
+
toggle: d,
|
|
362
362
|
toggleAll: c,
|
|
363
|
-
isSelected:
|
|
363
|
+
isSelected: v,
|
|
364
364
|
isAllSelected: o
|
|
365
365
|
};
|
|
366
366
|
}
|
|
@@ -369,7 +369,7 @@ function fe(e) {
|
|
|
369
369
|
console.debug(`\u9ED8\u8BA4${e}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`);
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function et({
|
|
373
373
|
attribute: e,
|
|
374
374
|
selectWay: t = "colum",
|
|
375
375
|
scrollOptions: l = {},
|
|
@@ -381,222 +381,229 @@ function Je({
|
|
|
381
381
|
unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
|
|
382
382
|
} = n();
|
|
383
383
|
let i = {};
|
|
384
|
-
const
|
|
385
|
-
() => Te(t === "colum" ?
|
|
386
|
-
),
|
|
387
|
-
(
|
|
388
|
-
),
|
|
384
|
+
const h = w(
|
|
385
|
+
() => Te(t === "colum" ? q : ae, 50)
|
|
386
|
+
), v = /* @__PURE__ */ new Set(), d = f(!0), c = f(), u = f(!1), r = f({ x: 0, y: 0 }), p = f({ x: 0, y: 0, scrollTop: 0 }), E = new ResizeObserver(
|
|
387
|
+
(m) => C.value = m[0].target.getBoundingClientRect()
|
|
388
|
+
), C = f({}), b = f({
|
|
389
389
|
top: 0,
|
|
390
390
|
height: 0,
|
|
391
|
-
sync(
|
|
392
|
-
|
|
391
|
+
sync(m = !1) {
|
|
392
|
+
b.value.top = c.value?.scrollTop || 0, m && (b.value.height = c.value?.scrollHeight || 0);
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
395
|
-
left: Math.min(r.value.x,
|
|
396
|
-
top: Math.min(r.value.y,
|
|
397
|
-
width: Math.abs(r.value.x -
|
|
398
|
-
height: Math.abs(r.value.y -
|
|
399
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin:
|
|
394
|
+
}), S = w(() => u.value ? {
|
|
395
|
+
left: Math.min(r.value.x, p.value.x) - C.value.left,
|
|
396
|
+
top: Math.min(r.value.y, p.value.y) - C.value.top,
|
|
397
|
+
width: Math.abs(r.value.x - p.value.x),
|
|
398
|
+
height: Math.abs(r.value.y - p.value.y)
|
|
399
|
+
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed: N = 30, maxSpeed: U = 30 } = l;
|
|
400
400
|
let $;
|
|
401
|
-
const
|
|
401
|
+
const x = P, O = N, G = U, X = (m) => m ** 1;
|
|
402
402
|
let k = 0;
|
|
403
|
-
function ee(
|
|
404
|
-
if (cancelAnimationFrame($), k = se(
|
|
403
|
+
function ee(m) {
|
|
404
|
+
if (cancelAnimationFrame($), k = se(m), k = Math.max(
|
|
405
405
|
Math.min(k, G),
|
|
406
406
|
-G
|
|
407
407
|
), k !== 0) {
|
|
408
408
|
const _ = c.value;
|
|
409
409
|
if (!_ || !u.value)
|
|
410
410
|
return;
|
|
411
|
-
const I =
|
|
412
|
-
let L =
|
|
413
|
-
L = Math.min(Math.max(0, L), I), _.scrollTop = L, te(), $ = requestAnimationFrame(() => ee(
|
|
411
|
+
const I = b.value.height - C.value.height;
|
|
412
|
+
let L = b.value.top + Number(k);
|
|
413
|
+
L = Math.min(Math.max(0, L), I), _.scrollTop = L, te(), $ = requestAnimationFrame(() => ee(m));
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
function se(
|
|
416
|
+
function se(m) {
|
|
417
417
|
if (c.value) {
|
|
418
|
-
const I =
|
|
419
|
-
if (L <
|
|
420
|
-
return O * X(1 - L /
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
return -O * X(1 -
|
|
418
|
+
const I = C.value, L = I.bottom - m;
|
|
419
|
+
if (L < x)
|
|
420
|
+
return O * X(1 - L / x);
|
|
421
|
+
const V = m - I.top;
|
|
422
|
+
if (V < x)
|
|
423
|
+
return -O * X(1 - V / x);
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function Z(
|
|
428
|
-
const _ = { ...
|
|
429
|
-
return _.left +=
|
|
427
|
+
function Z(m) {
|
|
428
|
+
const _ = { ...S.value, right: 0, bottom: 0 };
|
|
429
|
+
return _.left += C.value.left, _.top += C.value.top - b.value.top, _.right = _.width + _.left, _.bottom = _.height + _.top, _.left < m.right && _.right > m.left && _.top < m.bottom && _.bottom > m.top;
|
|
430
430
|
}
|
|
431
431
|
function te() {
|
|
432
|
-
|
|
433
|
-
const { top:
|
|
434
|
-
|
|
435
|
-
_ +
|
|
436
|
-
|
|
437
|
-
),
|
|
438
|
-
}
|
|
439
|
-
function g(
|
|
432
|
+
b.value.sync();
|
|
433
|
+
const { top: m, height: _ } = b.value;
|
|
434
|
+
p.value.y = Math.min(
|
|
435
|
+
_ + C.value.top,
|
|
436
|
+
p.value.y + m - p.value.scrollTop
|
|
437
|
+
), p.value.scrollTop = m;
|
|
438
|
+
}
|
|
439
|
+
function g(m, _, I = "dynamic-styles") {
|
|
440
440
|
let L = document.getElementById(I);
|
|
441
441
|
L || (L = document.createElement("style"), L.id = I, document.head.appendChild(L));
|
|
442
|
-
const
|
|
442
|
+
const V = L.sheet.cssRules, ne = V.length, tt = `${m} { ${_} }`;
|
|
443
443
|
for (let ve = 0; ve < ne; ve++) {
|
|
444
|
-
const Se =
|
|
445
|
-
if (Se.selectorText ===
|
|
444
|
+
const Se = V[ve];
|
|
445
|
+
if (Se.selectorText === m && Se.style.cssText === _)
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
L.sheet.insertRule(
|
|
448
|
+
L.sheet.insertRule(tt, ne);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
|
|
450
|
+
function y(m, _) {
|
|
451
|
+
d.value = !0, u.value = !0, b.value.height ? b.value.sync() : b.value.sync(!0), r.value.x = m, r.value.y = _ + b.value.top, p.value.x = r.value.x, p.value.y = r.value.y, c.value?.classList.add("disable-scroll-behavior"), v.clear();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
!u.value || (
|
|
455
|
-
_ +
|
|
456
|
-
|
|
457
|
-
),
|
|
453
|
+
function F(m, _, I) {
|
|
454
|
+
!u.value || (d.value && t === "colum" && !D() && (s(), d.value = !1), I?.(), ee(_), p.value.x = Math.max(m, C.value.left), p.value.y = Math.min(
|
|
455
|
+
_ + b.value.top,
|
|
456
|
+
b.value.height + C.value.top
|
|
457
|
+
), p.value.scrollTop = b.value.top, h.value());
|
|
458
458
|
}
|
|
459
459
|
function H() {
|
|
460
460
|
u.value = !1, c.value?.classList.remove("disable-scroll-behavior");
|
|
461
461
|
}
|
|
462
462
|
function R() {
|
|
463
|
-
!u.value || (k || te(),
|
|
463
|
+
!u.value || (k || te(), h.value());
|
|
464
464
|
}
|
|
465
465
|
function D() {
|
|
466
466
|
if (!u.value)
|
|
467
467
|
return !1;
|
|
468
|
-
const { width:
|
|
469
|
-
return !(Math.max(
|
|
468
|
+
const { width: m, height: _ } = S.value;
|
|
469
|
+
return !(Math.max(m, _) > 5);
|
|
470
470
|
}
|
|
471
471
|
function le() {
|
|
472
472
|
D() && s();
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
D() || c.value?.querySelectorAll(`[${e}]`).forEach((
|
|
476
|
-
i[`${e}`] =
|
|
474
|
+
function q() {
|
|
475
|
+
D() || c.value?.querySelectorAll(`[${e}]`).forEach((m) => {
|
|
476
|
+
i[`${e}`] = m.getAttribute(`${e}`), Z(m.getBoundingClientRect()) ? o([i]) : a([i]);
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
function ae() {
|
|
480
|
-
const
|
|
480
|
+
const m = [];
|
|
481
481
|
let _ = null, I = 0;
|
|
482
|
-
c.value?.querySelectorAll(`[${e}]`).forEach((L,
|
|
482
|
+
c.value?.querySelectorAll(`[${e}]`).forEach((L, V) => {
|
|
483
483
|
const ne = L.getAttribute(`${e}`);
|
|
484
|
-
|
|
484
|
+
m.push(ne), Z(L.getBoundingClientRect()) ? (_ === null && (_ = V), _ = Math.min(_, V), I = Math.max(I, V)) : (i[`${e}`] = ne, v.has(ne) && a([i]));
|
|
485
485
|
});
|
|
486
486
|
for (let L = _; L < I + 1; L++)
|
|
487
|
-
i[`${e}`] =
|
|
487
|
+
i[`${e}`] = m[L], o([i]), v.add(m[L]);
|
|
488
488
|
}
|
|
489
|
-
function re(
|
|
490
|
-
return !
|
|
489
|
+
function re(m) {
|
|
490
|
+
return !m?.value || (c.value = m.value, !c?.value) ? !1 : (E.observe(c.value), g(
|
|
491
491
|
".disable-scroll-behavior",
|
|
492
492
|
"scroll-behavior: unset !important;"
|
|
493
493
|
), !0);
|
|
494
494
|
}
|
|
495
495
|
return {
|
|
496
496
|
init: re,
|
|
497
|
-
dragStart:
|
|
498
|
-
dragMove:
|
|
497
|
+
dragStart: y,
|
|
498
|
+
dragMove: F,
|
|
499
499
|
dragEnd: H,
|
|
500
500
|
onScroll: R,
|
|
501
501
|
isSingleClick: D,
|
|
502
502
|
cancelSelectAllBySingleClick: le,
|
|
503
|
-
selectFn:
|
|
504
|
-
selectRange:
|
|
503
|
+
selectFn: h,
|
|
504
|
+
selectRange: S,
|
|
505
505
|
isPressing: u,
|
|
506
506
|
containerEl: c,
|
|
507
507
|
observer: E
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
const t =
|
|
510
|
+
function Cl(e) {
|
|
511
|
+
const t = et(e), { observer: l, selectRange: n } = t, {
|
|
512
512
|
onScroll: o,
|
|
513
513
|
dragStart: a,
|
|
514
514
|
dragMove: s,
|
|
515
515
|
dragEnd: i,
|
|
516
|
-
cancelSelectAllBySingleClick:
|
|
517
|
-
} = t,
|
|
516
|
+
cancelSelectAllBySingleClick: h
|
|
517
|
+
} = t, v = w(() => ({
|
|
518
518
|
left: `${n.value.left}px`,
|
|
519
519
|
top: `${n.value.top}px`,
|
|
520
520
|
width: `${n.value.width}px`,
|
|
521
521
|
height: `${n.value.height}px`
|
|
522
|
-
})),
|
|
522
|
+
})), { load: d, unload: c } = je(
|
|
523
|
+
`.drag-select-box {
|
|
524
|
+
position: absolute;
|
|
525
|
+
z-index: 99999;
|
|
526
|
+
background-color: rgb(191 219 254);
|
|
527
|
+
opacity: 0.5;
|
|
528
|
+
}`
|
|
529
|
+
), u = K({
|
|
523
530
|
render() {
|
|
524
|
-
return
|
|
531
|
+
return Q("div", {
|
|
525
532
|
id: "selectBoxEl",
|
|
526
|
-
class: "
|
|
527
|
-
style:
|
|
533
|
+
class: "drag-select-box",
|
|
534
|
+
style: v.value
|
|
528
535
|
});
|
|
529
536
|
}
|
|
530
537
|
});
|
|
531
|
-
function
|
|
532
|
-
|
|
538
|
+
function r(S) {
|
|
539
|
+
S.button === 0 && a(S.x, S.y);
|
|
533
540
|
}
|
|
534
|
-
function
|
|
535
|
-
s(
|
|
541
|
+
function p(S) {
|
|
542
|
+
s(S.x, S.y);
|
|
536
543
|
}
|
|
537
|
-
function
|
|
538
|
-
|
|
544
|
+
function E(S) {
|
|
545
|
+
S.composedPath().some((N) => N?.getAttribute?.(e.attribute)) || h(), i();
|
|
539
546
|
}
|
|
540
|
-
function
|
|
547
|
+
function C(S) {
|
|
541
548
|
try {
|
|
542
|
-
if (!t.init(
|
|
549
|
+
if (!t.init(S))
|
|
543
550
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
544
551
|
if (!t.containerEl?.value)
|
|
545
552
|
return !1;
|
|
546
|
-
ue(
|
|
547
|
-
} catch (
|
|
548
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
553
|
+
ue(Q(u), t.containerEl.value), d(), t.containerEl.value?.addEventListener("scroll", o), t.containerEl.value?.addEventListener("mousedown", r), window.addEventListener("mousemove", p), window.addEventListener("mouseup", E);
|
|
554
|
+
} catch (P) {
|
|
555
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", P);
|
|
549
556
|
}
|
|
550
557
|
}
|
|
551
|
-
function
|
|
552
|
-
l.disconnect(), t.containerEl.value?.removeEventListener("scroll", o), t.containerEl.value?.removeEventListener("mousedown",
|
|
558
|
+
function b() {
|
|
559
|
+
c(), l.disconnect(), t.containerEl.value?.removeEventListener("scroll", o), t.containerEl.value?.removeEventListener("mousedown", r), window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", E);
|
|
553
560
|
}
|
|
554
|
-
return { init:
|
|
561
|
+
return { init: C, unMount: b };
|
|
555
562
|
}
|
|
556
563
|
function El(e, t, l = 600) {
|
|
557
|
-
const n =
|
|
564
|
+
const n = et({
|
|
558
565
|
...e,
|
|
559
566
|
selectWay: "row",
|
|
560
567
|
scrollOptions: {
|
|
561
568
|
startSpeed: 5,
|
|
562
569
|
maxSpeed: 5
|
|
563
570
|
}
|
|
564
|
-
}), { observer: o } = n, { onScroll: a, dragStart: s, dragMove: i, dragEnd:
|
|
565
|
-
let
|
|
566
|
-
function
|
|
567
|
-
clearTimeout(
|
|
568
|
-
}
|
|
569
|
-
function c(
|
|
570
|
-
|
|
571
|
-
const { clientX:
|
|
572
|
-
s(
|
|
571
|
+
}), { observer: o } = n, { onScroll: a, dragStart: s, dragMove: i, dragEnd: h } = n;
|
|
572
|
+
let v;
|
|
573
|
+
function d() {
|
|
574
|
+
clearTimeout(v);
|
|
575
|
+
}
|
|
576
|
+
function c(C) {
|
|
577
|
+
d(), C.composedPath().some((S) => !!S?.getAttribute?.(e.attribute)) && (v = setTimeout(() => {
|
|
578
|
+
const { clientX: S, clientY: P } = C.targetTouches[0];
|
|
579
|
+
s(S, P), t?.(), i(S, P, () => C.preventDefault()), C.preventDefault();
|
|
573
580
|
}, l));
|
|
574
581
|
}
|
|
575
|
-
function u(
|
|
576
|
-
|
|
577
|
-
const { clientX:
|
|
578
|
-
i(
|
|
582
|
+
function u(C) {
|
|
583
|
+
d();
|
|
584
|
+
const { clientX: b, clientY: S } = C.targetTouches[0];
|
|
585
|
+
i(b, S, () => C.preventDefault());
|
|
579
586
|
}
|
|
580
587
|
function r() {
|
|
581
|
-
|
|
588
|
+
d(), h();
|
|
582
589
|
}
|
|
583
|
-
function
|
|
590
|
+
function p(C) {
|
|
584
591
|
try {
|
|
585
|
-
if (!n.init(
|
|
592
|
+
if (!n.init(C))
|
|
586
593
|
throw "\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";
|
|
587
594
|
if (!n.containerEl?.value)
|
|
588
595
|
return !1;
|
|
589
596
|
n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart", c), n.containerEl.value?.addEventListener("touchmove", u), window.addEventListener("touchcancel", r), window.addEventListener("touchend", r);
|
|
590
|
-
} catch (
|
|
591
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
597
|
+
} catch (b) {
|
|
598
|
+
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25", b);
|
|
592
599
|
}
|
|
593
600
|
}
|
|
594
601
|
function E() {
|
|
595
602
|
o.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart", c), n.containerEl.value?.removeEventListener("touchmove", u), window.removeEventListener("touchcancel", r), window.removeEventListener("touchEnd", r);
|
|
596
603
|
}
|
|
597
|
-
return { init:
|
|
604
|
+
return { init: p, unMount: E };
|
|
598
605
|
}
|
|
599
|
-
const Ft = Symbol(), kt = /* @__PURE__ */
|
|
606
|
+
const Ft = Symbol(), kt = /* @__PURE__ */ K({
|
|
600
607
|
__name: "Dialog",
|
|
601
608
|
props: {
|
|
602
609
|
visiable: { type: Boolean, default: !1 },
|
|
@@ -608,21 +615,21 @@ const Ft = Symbol(), kt = /* @__PURE__ */ Y({
|
|
|
608
615
|
const l = e, n = () => {
|
|
609
616
|
l.closeOnClickOverlay && t("update:visiable", !1);
|
|
610
617
|
};
|
|
611
|
-
return z(Ft, () => t("update:visiable", !1)), (o, a) => (M(), Me(
|
|
612
|
-
default:
|
|
613
|
-
e.visiable ? (M(),
|
|
618
|
+
return z(Ft, () => t("update:visiable", !1)), (o, a) => (M(), Me(Pe, { name: "modal" }, {
|
|
619
|
+
default: He(() => [
|
|
620
|
+
e.visiable ? (M(), A("div", {
|
|
614
621
|
key: 0,
|
|
615
622
|
onClick: n,
|
|
616
623
|
class: "lzc-modal"
|
|
617
624
|
}, [
|
|
618
|
-
|
|
619
|
-
onClick: a[0] || (a[0] =
|
|
625
|
+
T("div", {
|
|
626
|
+
onClick: a[0] || (a[0] = ut(() => {
|
|
620
627
|
}, ["stop"])),
|
|
621
628
|
class: Ae(["lzc-dialog", e.dialogClass])
|
|
622
629
|
}, [
|
|
623
630
|
ye(o.$slots, "default", {}, void 0, !0)
|
|
624
631
|
], 2)
|
|
625
|
-
])) :
|
|
632
|
+
])) : it("", !0)
|
|
626
633
|
]),
|
|
627
634
|
_: 3
|
|
628
635
|
}));
|
|
@@ -634,11 +641,11 @@ const J = (e, t) => {
|
|
|
634
641
|
l[n] = o;
|
|
635
642
|
return l;
|
|
636
643
|
}, zt = /* @__PURE__ */ J(kt, [["__scopeId", "data-v-e171c24d"]]);
|
|
637
|
-
function
|
|
644
|
+
function xl(e) {
|
|
638
645
|
function t(l, n) {
|
|
639
646
|
const o = document.createElement("div"), a = {
|
|
640
647
|
setup() {
|
|
641
|
-
return () =>
|
|
648
|
+
return () => Q(
|
|
642
649
|
zt,
|
|
643
650
|
{
|
|
644
651
|
visiable: !0,
|
|
@@ -648,12 +655,12 @@ function Cl(e) {
|
|
|
648
655
|
...e
|
|
649
656
|
},
|
|
650
657
|
{
|
|
651
|
-
default: () =>
|
|
658
|
+
default: () => Q(l, n)
|
|
652
659
|
}
|
|
653
660
|
);
|
|
654
661
|
}
|
|
655
662
|
};
|
|
656
|
-
return document.body.appendChild(o), ue(
|
|
663
|
+
return document.body.appendChild(o), ue(Q(a), o), {
|
|
657
664
|
close: () => o?.remove()
|
|
658
665
|
};
|
|
659
666
|
}
|
|
@@ -661,12 +668,12 @@ function Cl(e) {
|
|
|
661
668
|
create: t
|
|
662
669
|
};
|
|
663
670
|
}
|
|
664
|
-
function
|
|
671
|
+
function Wt({
|
|
665
672
|
component: e,
|
|
666
673
|
componentProps: t,
|
|
667
674
|
delay: l = 300
|
|
668
675
|
}) {
|
|
669
|
-
const n = `${l}ms`,
|
|
676
|
+
const n = `${l}ms`, { load: o } = je(
|
|
670
677
|
`@keyframes lzcDelayLoad {
|
|
671
678
|
to {
|
|
672
679
|
opacity: 1;
|
|
@@ -676,38 +683,50 @@ function xl({
|
|
|
676
683
|
opacity: 0;
|
|
677
684
|
animation: lzcDelayLoad 0s ${n} forwards;
|
|
678
685
|
}`
|
|
679
|
-
)
|
|
686
|
+
);
|
|
687
|
+
return { LoadingComp: K({
|
|
680
688
|
setup() {
|
|
681
|
-
const
|
|
689
|
+
const s = xt();
|
|
682
690
|
return oe(() => {
|
|
683
|
-
|
|
684
|
-
}), () =>
|
|
691
|
+
o(), s.value.classList.add("lzc-delay-loading");
|
|
692
|
+
}), () => Q(e, t);
|
|
685
693
|
}
|
|
686
|
-
});
|
|
687
|
-
|
|
694
|
+
}) };
|
|
695
|
+
}
|
|
696
|
+
function Tl({
|
|
697
|
+
component: e,
|
|
698
|
+
componentProps: t,
|
|
699
|
+
delay: l = 300
|
|
700
|
+
}) {
|
|
701
|
+
const { LoadingComp: n } = Wt({
|
|
702
|
+
component: e,
|
|
703
|
+
componentProps: t,
|
|
704
|
+
delay: l
|
|
705
|
+
}), o = f(!1);
|
|
706
|
+
function a() {
|
|
688
707
|
o.value = !0;
|
|
689
708
|
}
|
|
690
|
-
function
|
|
709
|
+
function s() {
|
|
691
710
|
o.value = !1;
|
|
692
711
|
}
|
|
693
|
-
return { LoadingComp:
|
|
712
|
+
return { LoadingComp: n, loading: o, load: a, unload: s };
|
|
694
713
|
}
|
|
695
|
-
const
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
], -1)),
|
|
698
|
-
|
|
714
|
+
const Nt = {}, Vt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), jt = /* @__PURE__ */ Vt(() => /* @__PURE__ */ T("div", { class: "ldio-mm5gwljcryb" }, [
|
|
715
|
+
/* @__PURE__ */ T("div")
|
|
716
|
+
], -1)), Yt = [
|
|
717
|
+
jt
|
|
699
718
|
];
|
|
700
|
-
function
|
|
701
|
-
return M(),
|
|
719
|
+
function Kt(e, t) {
|
|
720
|
+
return M(), A("div", he(pe(e.$attrs)), Yt, 16);
|
|
702
721
|
}
|
|
703
|
-
const
|
|
722
|
+
const Ll = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-76a2728a"]]), Ut = /* @__PURE__ */ K({
|
|
704
723
|
__name: "Toast",
|
|
705
724
|
props: {
|
|
706
725
|
message: null,
|
|
707
726
|
position: null
|
|
708
727
|
},
|
|
709
728
|
setup(e) {
|
|
710
|
-
const t = e, l =
|
|
729
|
+
const t = e, l = f(), n = f(), o = f(), a = w(() => {
|
|
711
730
|
switch (t.position) {
|
|
712
731
|
case "top":
|
|
713
732
|
return 10;
|
|
@@ -716,14 +735,14 @@ const Tl = /* @__PURE__ */ J(Wt, [["render", Yt], ["__scopeId", "data-v-76a2728a
|
|
|
716
735
|
case "bottom":
|
|
717
736
|
return 85;
|
|
718
737
|
}
|
|
719
|
-
}), s =
|
|
738
|
+
}), s = w(() => ({
|
|
720
739
|
position: "absolute",
|
|
721
740
|
borderRadius: "10px",
|
|
722
741
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
723
742
|
padding: "14px 19px",
|
|
724
743
|
top: `calc(${a.value}% - ${o.value}px)`,
|
|
725
744
|
left: `calc(50% - ${n.value}px)`
|
|
726
|
-
})), i =
|
|
745
|
+
})), i = w(() => ({
|
|
727
746
|
width: "fit-content",
|
|
728
747
|
display: "flex",
|
|
729
748
|
justifyContent: "center",
|
|
@@ -733,34 +752,34 @@ const Tl = /* @__PURE__ */ J(Wt, [["render", Yt], ["__scopeId", "data-v-76a2728a
|
|
|
733
752
|
}));
|
|
734
753
|
return _e(() => {
|
|
735
754
|
n.value = l.value.offsetWidth / 2, o.value = l.value.offsetHeight / 2;
|
|
736
|
-
}), (
|
|
755
|
+
}), (h, v) => (M(), A("div", {
|
|
737
756
|
id: "toastWrapper",
|
|
738
757
|
ref_key: "toastWrapper",
|
|
739
758
|
ref: l,
|
|
740
759
|
class: "toastWrapper",
|
|
741
760
|
style: W([B(s), { zIndex: 9999 }])
|
|
742
761
|
}, [
|
|
743
|
-
|
|
762
|
+
T("div", {
|
|
744
763
|
style: W(B(i))
|
|
745
764
|
}, [
|
|
746
|
-
|
|
765
|
+
T("span", null, Fe(e.message), 1)
|
|
747
766
|
], 4)
|
|
748
767
|
], 4));
|
|
749
768
|
}
|
|
750
769
|
});
|
|
751
|
-
const
|
|
770
|
+
const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-15ab4094"]]), Re = {
|
|
752
771
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
753
772
|
position: "middle",
|
|
754
773
|
duration: 1500
|
|
755
774
|
};
|
|
756
|
-
class
|
|
775
|
+
class Ol {
|
|
757
776
|
options;
|
|
758
777
|
container;
|
|
759
778
|
constructor(t) {
|
|
760
779
|
this.options = t, this.container = document.createElement("div");
|
|
761
780
|
}
|
|
762
781
|
present() {
|
|
763
|
-
const t =
|
|
782
|
+
const t = Q(Q(qt), { ...Re, ...this.options });
|
|
764
783
|
ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
765
784
|
const l = this.options.duration || Re.duration;
|
|
766
785
|
setTimeout(() => {
|
|
@@ -778,7 +797,7 @@ class Ll {
|
|
|
778
797
|
}
|
|
779
798
|
}
|
|
780
799
|
}
|
|
781
|
-
const
|
|
800
|
+
const Qt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ K({
|
|
782
801
|
__name: "SvgIcon",
|
|
783
802
|
props: {
|
|
784
803
|
name: null,
|
|
@@ -788,52 +807,52 @@ const qt = ["xlink:href", "fill", "color"], Ol = /* @__PURE__ */ Y({
|
|
|
788
807
|
height: null
|
|
789
808
|
},
|
|
790
809
|
setup(e) {
|
|
791
|
-
const t = e, l =
|
|
810
|
+
const t = e, l = w(() => `#${t.prefix}-${t.name}`), n = w(() => ({
|
|
792
811
|
width: `${t.width ?? t.height}px`,
|
|
793
812
|
height: `${t.height ?? t.width}px`,
|
|
794
813
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
795
814
|
}));
|
|
796
|
-
return (o, a) => (M(),
|
|
815
|
+
return (o, a) => (M(), A("svg", {
|
|
797
816
|
"aria-hidden": "",
|
|
798
817
|
style: W(B(n))
|
|
799
818
|
}, [
|
|
800
|
-
|
|
819
|
+
T("use", {
|
|
801
820
|
"xlink:href": B(l),
|
|
802
821
|
fill: e.color,
|
|
803
822
|
color: e.color
|
|
804
|
-
}, null, 8,
|
|
823
|
+
}, null, 8, Qt)
|
|
805
824
|
], 4));
|
|
806
825
|
}
|
|
807
826
|
});
|
|
808
|
-
function
|
|
827
|
+
function Gt(e) {
|
|
809
828
|
const {
|
|
810
829
|
containerEl: t,
|
|
811
830
|
sliderEl: l,
|
|
812
831
|
autoHeight: n,
|
|
813
832
|
performance: o = {},
|
|
814
833
|
maxHeightRatio: a = 0.9
|
|
815
|
-
} = e, s =
|
|
816
|
-
let
|
|
817
|
-
const
|
|
834
|
+
} = e, s = f(!0), i = We(G, 100);
|
|
835
|
+
let h, v = "";
|
|
836
|
+
const d = f(0), c = f(0), u = f(0), r = f({
|
|
818
837
|
top: 0,
|
|
819
838
|
scrollTop: 0,
|
|
820
839
|
scrollHeight: 0,
|
|
821
840
|
clientHeight: 0
|
|
822
|
-
}),
|
|
841
|
+
}), p = f({
|
|
823
842
|
clientHeight: 0
|
|
824
|
-
}), E =
|
|
843
|
+
}), E = w(() => !!c.value), C = w(() => r.value.scrollHeight > r.value.clientHeight), b = w(() => r.value.clientHeight - p.value.clientHeight), S = w(() => r.value.scrollHeight - r.value.clientHeight), P = w(() => Math.max(
|
|
825
844
|
r.value.clientHeight / r.value.scrollHeight,
|
|
826
845
|
0.05
|
|
827
|
-
)),
|
|
846
|
+
)), N = w(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = w(() => ({
|
|
828
847
|
willChange: "transform",
|
|
829
848
|
transform: `translate3d(0,${u.value}px,0)`,
|
|
830
|
-
height: n ? `${
|
|
849
|
+
height: n ? `${N.value}px` : void 0
|
|
831
850
|
}));
|
|
832
851
|
function $(R) {
|
|
833
|
-
O(), c.value = R.clientY - l.value.getBoundingClientRect().top || 1,
|
|
852
|
+
O(), c.value = R.clientY - l.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
834
853
|
}
|
|
835
|
-
function
|
|
836
|
-
t.value.style.scrollBehavior =
|
|
854
|
+
function x() {
|
|
855
|
+
t.value.style.scrollBehavior = v, c.value = 0, i();
|
|
837
856
|
}
|
|
838
857
|
function O() {
|
|
839
858
|
s.value = !1;
|
|
@@ -845,24 +864,24 @@ function Qt(e) {
|
|
|
845
864
|
if (!E.value)
|
|
846
865
|
return;
|
|
847
866
|
let D = R.clientY - r.value.top - c.value;
|
|
848
|
-
D < 0 ? u.value = 0 : D >=
|
|
849
|
-
top: u.value /
|
|
867
|
+
D < 0 ? u.value = 0 : D >= b.value ? u.value = b.value : u.value = D, t.value.scrollTo({
|
|
868
|
+
top: u.value / b.value * S.value
|
|
850
869
|
});
|
|
851
870
|
}
|
|
852
871
|
function k() {
|
|
853
872
|
E.value || ee();
|
|
854
873
|
}
|
|
855
874
|
function ee() {
|
|
856
|
-
cancelAnimationFrame(
|
|
875
|
+
cancelAnimationFrame(h), h = requestAnimationFrame(se);
|
|
857
876
|
}
|
|
858
877
|
function se() {
|
|
859
|
-
t.value && (
|
|
878
|
+
t.value && (d.value = o.scrollTop?.value ?? t.value.scrollTop, u.value = d.value / S.value * b.value);
|
|
860
879
|
}
|
|
861
880
|
function Z(R) {
|
|
862
881
|
let D = "addEventListener";
|
|
863
882
|
R === "add" ? D = "addEventListener" : D = "removeEventListener", l.value?.[D]("pointerdown", $, {
|
|
864
883
|
passive: !0
|
|
865
|
-
}), window[D]("pointermove", X, { passive: !0 }), window[D]("pointerup",
|
|
884
|
+
}), window[D]("pointermove", X, { passive: !0 }), window[D]("pointerup", x, { passive: !0 });
|
|
866
885
|
}
|
|
867
886
|
const te = new MutationObserver((R) => {
|
|
868
887
|
R.map((le) => le.oldValue).join().includes("height") && g();
|
|
@@ -870,27 +889,27 @@ function Qt(e) {
|
|
|
870
889
|
function g() {
|
|
871
890
|
r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
|
|
872
891
|
}
|
|
873
|
-
function
|
|
892
|
+
function y() {
|
|
874
893
|
O(), setTimeout(() => {
|
|
875
|
-
|
|
894
|
+
p.value.clientHeight = l.value?.clientHeight ?? 0, G();
|
|
876
895
|
}, 150);
|
|
877
896
|
}
|
|
878
|
-
function
|
|
879
|
-
let
|
|
880
|
-
|
|
881
|
-
const ae =
|
|
897
|
+
function F(R, D, le = "dynamic-styles") {
|
|
898
|
+
let q = document.getElementById(le);
|
|
899
|
+
q || (q = document.createElement("style"), q.id = le, document.head.appendChild(q));
|
|
900
|
+
const ae = q.sheet.cssRules, re = ae.length, m = `${R} { ${D} }`;
|
|
882
901
|
for (let _ = 0; _ < re; _++) {
|
|
883
902
|
const I = ae[_];
|
|
884
903
|
if (I.selectorText === R && I.style.cssText === D)
|
|
885
904
|
return;
|
|
886
905
|
}
|
|
887
|
-
|
|
906
|
+
q.sheet.insertRule(m, re);
|
|
888
907
|
}
|
|
889
908
|
function H() {
|
|
890
|
-
t.value && l.value ? (
|
|
909
|
+
t.value && l.value ? (F(
|
|
891
910
|
".hide-scrollbar",
|
|
892
911
|
"scrollbar-width: none; -ms-overflow-style: none;"
|
|
893
|
-
),
|
|
912
|
+
), F(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", k, {
|
|
894
913
|
passive: !0
|
|
895
914
|
}), Z("add"), te.observe(t.value, {
|
|
896
915
|
subtree: !0,
|
|
@@ -898,22 +917,22 @@ function Qt(e) {
|
|
|
898
917
|
attributeFilter: ["style"]
|
|
899
918
|
}), setTimeout(() => {
|
|
900
919
|
g();
|
|
901
|
-
}, 100),
|
|
920
|
+
}, 100), y()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: l });
|
|
902
921
|
}
|
|
903
|
-
return
|
|
922
|
+
return Y(d, () => {
|
|
904
923
|
O(), i();
|
|
905
924
|
}), {
|
|
906
925
|
isScrollEnd: s,
|
|
907
926
|
isDragSlider: E,
|
|
908
927
|
offsetTop: u,
|
|
909
|
-
scrollTop:
|
|
910
|
-
scrollable:
|
|
911
|
-
sliderPos:
|
|
928
|
+
scrollTop: d,
|
|
929
|
+
scrollable: C,
|
|
930
|
+
sliderPos: U,
|
|
912
931
|
init: H,
|
|
913
932
|
modifySliderEventListener: Z
|
|
914
933
|
};
|
|
915
934
|
}
|
|
916
|
-
const
|
|
935
|
+
const Xt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Zt = /* @__PURE__ */ Xt(() => /* @__PURE__ */ T("div", { class: "default-slider" }, null, -1)), Jt = /* @__PURE__ */ K({
|
|
917
936
|
__name: "ScrollBar",
|
|
918
937
|
props: {
|
|
919
938
|
containerEl: null,
|
|
@@ -922,12 +941,12 @@ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ *
|
|
|
922
941
|
performance: null
|
|
923
942
|
},
|
|
924
943
|
setup(e, { expose: t }) {
|
|
925
|
-
const l = e, n = !!
|
|
944
|
+
const l = e, n = !!ct().default, o = f(null), a = w(() => l.containerEl), s = Gt({
|
|
926
945
|
containerEl: a,
|
|
927
946
|
sliderEl: o,
|
|
928
947
|
autoHeight: n ? l.autoHeight : !0,
|
|
929
948
|
performance: l.performance
|
|
930
|
-
}), { scrollable: i, isScrollEnd:
|
|
949
|
+
}), { scrollable: i, isScrollEnd: h, sliderPos: v } = s, d = f(!1), c = l.autoHide ? w(() => d.value || !h.value) : w(() => i.value);
|
|
931
950
|
oe(() => {
|
|
932
951
|
_e(() => {
|
|
933
952
|
s.init();
|
|
@@ -936,39 +955,39 @@ const Gt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Xt = /* @__PURE__ *
|
|
|
936
955
|
s.modifySliderEventListener("remove");
|
|
937
956
|
});
|
|
938
957
|
function u() {
|
|
939
|
-
|
|
958
|
+
d.value = !0;
|
|
940
959
|
}
|
|
941
960
|
function r() {
|
|
942
|
-
|
|
961
|
+
d.value = !1;
|
|
943
962
|
}
|
|
944
|
-
return t({ uScrollBarReturn: s }), (
|
|
945
|
-
default:
|
|
946
|
-
|
|
963
|
+
return t({ uScrollBarReturn: s }), (p, E) => (M(), Me(Pe, null, {
|
|
964
|
+
default: He(() => [
|
|
965
|
+
dt(T("div", {
|
|
947
966
|
ref_key: "sliderRef",
|
|
948
967
|
ref: o,
|
|
949
968
|
class: "slider-wrapper",
|
|
950
969
|
onMouseenter: u,
|
|
951
970
|
onMouseleave: r,
|
|
952
|
-
style: W(B(
|
|
971
|
+
style: W(B(v))
|
|
953
972
|
}, [
|
|
954
|
-
ye(
|
|
955
|
-
|
|
973
|
+
ye(p.$slots, "default", {}, () => [
|
|
974
|
+
Zt
|
|
956
975
|
], !0)
|
|
957
976
|
], 36), [
|
|
958
|
-
[
|
|
977
|
+
[vt, B(c)]
|
|
959
978
|
])
|
|
960
979
|
]),
|
|
961
980
|
_: 3
|
|
962
981
|
}));
|
|
963
982
|
}
|
|
964
983
|
});
|
|
965
|
-
const
|
|
984
|
+
const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (e) => (ce("data-v-3d9ba957"), e = e(), de(), e), tl = { class: "pull-refresh" }, ll = {
|
|
966
985
|
key: 0,
|
|
967
986
|
class: "pull-arrow-circle"
|
|
968
|
-
},
|
|
987
|
+
}, nl = {
|
|
969
988
|
key: 0,
|
|
970
989
|
class: "box-load"
|
|
971
|
-
},
|
|
990
|
+
}, ol = { class: "left-load" }, sl = { class: "right-load" }, al = /* @__PURE__ */ el(() => /* @__PURE__ */ T("div", { class: "among-load" }, null, -1)), rl = { class: "pull-arrow" }, ul = { key: 1 }, il = /* @__PURE__ */ K({
|
|
972
991
|
__name: "PullRefresh",
|
|
973
992
|
props: {
|
|
974
993
|
refresh: null,
|
|
@@ -977,80 +996,80 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
977
996
|
pullRefreshContainer: null
|
|
978
997
|
},
|
|
979
998
|
setup(e) {
|
|
980
|
-
const t = e, l = 0.7, n = "#2EC1CC", o =
|
|
999
|
+
const t = e, l = 0.7, n = "#2EC1CC", o = f(-999), a = f(1), s = f(0), i = f(0.3), h = f(!1), v = f(0), d = f(0), c = f(0), u = f(0), r = f(0), p = f(), E = w(() => t.scrollTop), C = w(() => ({
|
|
981
1000
|
transition: `${u.value}ms`,
|
|
982
1001
|
transform: `translate3d(0,${o.value}px, 0) scale(${a.value})`
|
|
983
|
-
})),
|
|
1002
|
+
})), b = w(() => ({
|
|
984
1003
|
borderColor: n,
|
|
985
1004
|
transition: u.value,
|
|
986
1005
|
transform: `rotate(${100 + s.value}deg)`,
|
|
987
1006
|
opacity: i.value
|
|
988
1007
|
}));
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
}),
|
|
1008
|
+
Y(r, (x) => {
|
|
1009
|
+
x === 0 && (o.value = -50, i.value = 0.3);
|
|
1010
|
+
}), Y(d, (x) => {
|
|
992
1011
|
if (r.value === 2)
|
|
993
1012
|
return;
|
|
994
|
-
const O = Math.pow(
|
|
995
|
-
O === 0 && (o.value = -50), O <= 50 && O > 0 && (o.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ?
|
|
1013
|
+
const O = Math.pow(x, l);
|
|
1014
|
+
O === 0 && (o.value = -50), O <= 50 && O > 0 && (o.value = O - 45, s.value = Math.pow(O, 1.5), O > 15 ? h.value = !0 : h.value = !1), O > 50 && (o.value = 5, i.value = 1, r.value);
|
|
996
1015
|
});
|
|
997
|
-
const
|
|
998
|
-
|
|
999
|
-
},
|
|
1000
|
-
const O =
|
|
1001
|
-
|
|
1002
|
-
},
|
|
1016
|
+
const S = f(0), P = (x) => {
|
|
1017
|
+
S.value = x.touches[0].pageY;
|
|
1018
|
+
}, N = (x) => {
|
|
1019
|
+
const O = x.touches[0].pageY - S.value;
|
|
1020
|
+
S.value = x.touches[0].pageY, !t.refreshOff && (!t?.refresh || r.value !== 2 && E.value === 0 && (v.value === 0 && (v.value = x.touches[0].pageY), c.value = 0, $.value.style.transition = `${c.value}ms`, u.value = 0, d.value = x.touches[0].pageY - v.value, $.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`, O > 0 && x.preventDefault()));
|
|
1021
|
+
}, U = () => {
|
|
1003
1022
|
if (t.refreshOff || !t?.refresh || r.value === 2)
|
|
1004
1023
|
return;
|
|
1005
|
-
|
|
1006
|
-
const
|
|
1007
|
-
$.value.style.transition = `${c.value}ms`,
|
|
1008
|
-
|
|
1024
|
+
v.value = 0, c.value = 300;
|
|
1025
|
+
const x = Math.pow(d.value, l);
|
|
1026
|
+
$.value.style.transition = `${c.value}ms`, x > 50 ? (r.value = 2, d.value = Math.pow(50, 1 / l), $.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`, u.value = 300, t?.refresh && t?.refresh().then(() => {
|
|
1027
|
+
p.value = "\u5237\u65B0\u6210\u529F";
|
|
1009
1028
|
}).catch(() => {
|
|
1010
|
-
|
|
1029
|
+
p.value = "\u5237\u65B0\u5931\u8D25";
|
|
1011
1030
|
}).finally(() => {
|
|
1012
1031
|
setTimeout(() => {
|
|
1013
|
-
r.value = 0,
|
|
1014
|
-
|
|
1032
|
+
r.value = 0, d.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1033
|
+
d.value,
|
|
1015
1034
|
l
|
|
1016
1035
|
)}px, 0)`, setTimeout(() => {
|
|
1017
|
-
|
|
1036
|
+
p.value = void 0;
|
|
1018
1037
|
}, u.value);
|
|
1019
1038
|
}, 600);
|
|
1020
|
-
})) : (
|
|
1021
|
-
}, $ =
|
|
1039
|
+
})) : (d.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`);
|
|
1040
|
+
}, $ = f(null);
|
|
1022
1041
|
return oe(() => {
|
|
1023
1042
|
$.value = document.querySelector(
|
|
1024
1043
|
t.pullRefreshContainer
|
|
1025
|
-
), $.value.addEventListener("touchstart",
|
|
1026
|
-
}), (
|
|
1027
|
-
|
|
1044
|
+
), $.value.addEventListener("touchstart", P), $.value.addEventListener("touchmove", N), $.value.addEventListener("touchend", U);
|
|
1045
|
+
}), (x, O) => (M(), A("div", tl, [
|
|
1046
|
+
T("div", {
|
|
1028
1047
|
class: "pull-refresh-box",
|
|
1029
|
-
style: W(B(
|
|
1048
|
+
style: W(B(C))
|
|
1030
1049
|
}, [
|
|
1031
|
-
|
|
1032
|
-
r.value == 2 ? (M(),
|
|
1033
|
-
|
|
1034
|
-
|
|
1050
|
+
p.value ? (M(), A("div", ul, Fe(p.value), 1)) : (M(), A("div", ll, [
|
|
1051
|
+
r.value == 2 ? (M(), A("div", nl, [
|
|
1052
|
+
T("div", ol, [
|
|
1053
|
+
T("div", {
|
|
1035
1054
|
class: "left-circle",
|
|
1036
1055
|
style: W({ backgroundColor: n })
|
|
1037
1056
|
}, null, 4)
|
|
1038
1057
|
]),
|
|
1039
|
-
|
|
1040
|
-
|
|
1058
|
+
T("div", sl, [
|
|
1059
|
+
T("div", {
|
|
1041
1060
|
class: "right-circle",
|
|
1042
1061
|
style: W({ backgroundColor: n })
|
|
1043
1062
|
}, null, 4)
|
|
1044
1063
|
]),
|
|
1045
|
-
|
|
1046
|
-
])) : (M(),
|
|
1064
|
+
al
|
|
1065
|
+
])) : (M(), A("div", {
|
|
1047
1066
|
key: 1,
|
|
1048
1067
|
class: "pull-circle-line",
|
|
1049
|
-
style: W(B(
|
|
1068
|
+
style: W(B(b))
|
|
1050
1069
|
}, [
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
class: Ae(["arrows", { opacity:
|
|
1070
|
+
T("div", rl, [
|
|
1071
|
+
T("div", {
|
|
1072
|
+
class: Ae(["arrows", { opacity: h.value }]),
|
|
1054
1073
|
style: W({ borderBottomColor: n })
|
|
1055
1074
|
}, null, 6)
|
|
1056
1075
|
])
|
|
@@ -1060,10 +1079,10 @@ const $l = /* @__PURE__ */ J(Zt, [["__scopeId", "data-v-edec7292"]]), Jt = (e) =
|
|
|
1060
1079
|
]));
|
|
1061
1080
|
}
|
|
1062
1081
|
});
|
|
1063
|
-
const
|
|
1082
|
+
const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-3d9ba957"]]), dl = {
|
|
1064
1083
|
inheritAttrs: !1
|
|
1065
|
-
},
|
|
1066
|
-
...
|
|
1084
|
+
}, vl = /* @__PURE__ */ K({
|
|
1085
|
+
...dl,
|
|
1067
1086
|
__name: "VirtualList",
|
|
1068
1087
|
props: {
|
|
1069
1088
|
data: null,
|
|
@@ -1074,7 +1093,7 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-3d9ba957"]]), cl = {
|
|
|
1074
1093
|
},
|
|
1075
1094
|
emits: ["scrollEnd"],
|
|
1076
1095
|
setup(e, { expose: t, emit: l }) {
|
|
1077
|
-
const n = e, o = At(
|
|
1096
|
+
const n = e, o = At(ft(n, "data"), {
|
|
1078
1097
|
itemHeight: (u) => n.itemHeight(n.data[u]),
|
|
1079
1098
|
overscan: n.overscan,
|
|
1080
1099
|
scrollEndHook: () => {
|
|
@@ -1084,42 +1103,42 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-3d9ba957"]]), cl = {
|
|
|
1084
1103
|
list: a,
|
|
1085
1104
|
containerProps: s,
|
|
1086
1105
|
wrapperProps: i,
|
|
1087
|
-
innerProps:
|
|
1088
|
-
getItemHeightData:
|
|
1089
|
-
scrollTop:
|
|
1106
|
+
innerProps: h,
|
|
1107
|
+
getItemHeightData: v,
|
|
1108
|
+
scrollTop: d
|
|
1090
1109
|
} = o;
|
|
1091
1110
|
t({
|
|
1092
1111
|
vListReturn: o
|
|
1093
1112
|
});
|
|
1094
1113
|
const c = "virtualListWrapper" + new Date().getTime();
|
|
1095
|
-
return (u, r) => (M(),
|
|
1096
|
-
|
|
1114
|
+
return (u, r) => (M(), A(Ce, null, [
|
|
1115
|
+
ht(cl, {
|
|
1097
1116
|
refresh: e.refresh,
|
|
1098
1117
|
refreshOff: e.refreshOff,
|
|
1099
|
-
scrollTop: B(
|
|
1118
|
+
scrollTop: B(d),
|
|
1100
1119
|
pullRefreshContainer: "#" + c
|
|
1101
1120
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1102
|
-
|
|
1121
|
+
T("div", {
|
|
1103
1122
|
class: "virtualListWrapper",
|
|
1104
1123
|
id: c
|
|
1105
1124
|
}, [
|
|
1106
|
-
|
|
1107
|
-
onScrollPassive: r[0] || (r[0] = (...
|
|
1125
|
+
T("div", pt({
|
|
1126
|
+
onScrollPassive: r[0] || (r[0] = (...p) => B(s).onScroll && B(s).onScroll(...p)),
|
|
1108
1127
|
ref: B(s).ref,
|
|
1109
1128
|
class: "virtualList"
|
|
1110
1129
|
}, u.$attrs), [
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
(M(!0),
|
|
1114
|
-
key:
|
|
1130
|
+
T("div", he(pe(B(i))), [
|
|
1131
|
+
T("div", he(pe(B(h))), [
|
|
1132
|
+
(M(!0), A(Ce, null, mt(B(a), ({ index: p, data: E }) => (M(), A("div", {
|
|
1133
|
+
key: p,
|
|
1115
1134
|
style: W({
|
|
1116
|
-
height: `${B(
|
|
1135
|
+
height: `${B(v)(p).height}px`,
|
|
1117
1136
|
display: "flex"
|
|
1118
1137
|
})
|
|
1119
1138
|
}, [
|
|
1120
1139
|
ye(u.$slots, "default", {
|
|
1121
1140
|
data: E,
|
|
1122
|
-
index:
|
|
1141
|
+
index: p
|
|
1123
1142
|
}, void 0, !0)
|
|
1124
1143
|
], 4))), 128))
|
|
1125
1144
|
], 16)
|
|
@@ -1129,22 +1148,22 @@ const il = /* @__PURE__ */ J(ul, [["__scopeId", "data-v-3d9ba957"]]), cl = {
|
|
|
1129
1148
|
], 64));
|
|
1130
1149
|
}
|
|
1131
1150
|
});
|
|
1132
|
-
const
|
|
1151
|
+
const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]), we = (e) => (ce("data-v-40e00f20"), e = e(), de(), e), fl = { style: { position: "absolute" } }, hl = /* @__PURE__ */ we(() => /* @__PURE__ */ T("div", { class: "wrapper" }, null, -1)), pl = ["width", "height"], ml = /* @__PURE__ */ we(() => /* @__PURE__ */ T("title", null, "logo", -1)), gl = /* @__PURE__ */ we(() => /* @__PURE__ */ T("g", {
|
|
1133
1152
|
id: "group-1",
|
|
1134
1153
|
stroke: "none",
|
|
1135
1154
|
"stroke-width": "1",
|
|
1136
1155
|
fill: "none",
|
|
1137
1156
|
"fill-rule": "evenodd"
|
|
1138
1157
|
}, [
|
|
1139
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ T("path", {
|
|
1140
1159
|
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",
|
|
1141
1160
|
id: "path-1",
|
|
1142
1161
|
fill: "#FFF"
|
|
1143
1162
|
})
|
|
1144
|
-
], -1)),
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
],
|
|
1163
|
+
], -1)), _l = [
|
|
1164
|
+
ml,
|
|
1165
|
+
gl
|
|
1166
|
+
], yl = /* @__PURE__ */ K({
|
|
1148
1167
|
__name: "Loading",
|
|
1149
1168
|
props: {
|
|
1150
1169
|
width: { default: "90" },
|
|
@@ -1153,48 +1172,49 @@ const Dl = /* @__PURE__ */ J(dl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1153
1172
|
},
|
|
1154
1173
|
setup(e) {
|
|
1155
1174
|
const t = e;
|
|
1156
|
-
|
|
1175
|
+
gt((n) => ({
|
|
1157
1176
|
"703ef503": l
|
|
1158
1177
|
}));
|
|
1159
1178
|
const l = `${t.duration}ms`;
|
|
1160
|
-
return (n, o) => (M(),
|
|
1161
|
-
|
|
1162
|
-
(M(),
|
|
1179
|
+
return (n, o) => (M(), A("div", fl, [
|
|
1180
|
+
hl,
|
|
1181
|
+
(M(), A("svg", {
|
|
1163
1182
|
style: { position: "relative" },
|
|
1164
1183
|
width: e.width,
|
|
1165
1184
|
height: e.height,
|
|
1166
1185
|
viewBox: "0 0 260 260",
|
|
1167
1186
|
version: "1.1",
|
|
1168
1187
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1169
|
-
},
|
|
1188
|
+
}, _l, 8, pl))
|
|
1170
1189
|
]));
|
|
1171
1190
|
}
|
|
1172
1191
|
});
|
|
1173
|
-
const
|
|
1192
|
+
const Bl = /* @__PURE__ */ J(yl, [["__scopeId", "data-v-40e00f20"]]);
|
|
1174
1193
|
export {
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1194
|
+
Ll as DefaultLoading,
|
|
1195
|
+
Bl as Loading,
|
|
1196
|
+
cl as PullRefresh,
|
|
1197
|
+
Dl as ScrollBar,
|
|
1198
|
+
$l as SvgIcon,
|
|
1199
|
+
Ol as ToastCreator,
|
|
1200
|
+
Rl as VirtualList,
|
|
1201
|
+
qe as allSelectedKey,
|
|
1183
1202
|
Ft as closeDialogKey,
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1203
|
+
xl as dialogController,
|
|
1204
|
+
Ze as isAllSelectedKey,
|
|
1205
|
+
Ue as isSelectedKey,
|
|
1206
|
+
Ge as selectAllKey,
|
|
1207
|
+
Qe as selectKey,
|
|
1208
|
+
Ye as toggleAllKey,
|
|
1209
|
+
Ke as toggleKey,
|
|
1210
|
+
Je as unselectAllKey,
|
|
1211
|
+
Xe as unselectKey,
|
|
1212
|
+
Tl as useDelayLoad,
|
|
1213
|
+
Wt as useDelayLoadComp,
|
|
1214
|
+
et as useDragSelect,
|
|
1195
1215
|
El as useDragSelectByMobile,
|
|
1196
|
-
|
|
1197
|
-
|
|
1216
|
+
Cl as useDragSelectByPc,
|
|
1217
|
+
Sl as useSelectable,
|
|
1198
1218
|
wl as useSelectableInjectors,
|
|
1199
1219
|
At as useVirtualList
|
|
1200
1220
|
};
|