@lazycatcloud/lzc-toolkit 0.0.71 → 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 +418 -408
- package/dist/index.umd.js +7 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
|
-
return typeof e == "function" ? e() :
|
|
6
|
+
return typeof e == "function" ? e() : B(e);
|
|
7
7
|
}
|
|
8
8
|
function ke(e, t) {
|
|
9
9
|
function l(...n) {
|
|
@@ -11,60 +11,60 @@ 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
|
-
const s = ie(e),
|
|
18
|
-
if (l && clearTimeout(l), s <= 0 ||
|
|
17
|
+
const s = ie(e), i = ie(t.maxWait);
|
|
18
|
+
if (l && clearTimeout(l), s <= 0 || i !== void 0 && i <= 0)
|
|
19
19
|
return n && (clearTimeout(n), n = null), a();
|
|
20
|
-
|
|
20
|
+
i && !n && (n = setTimeout(() => {
|
|
21
21
|
l && clearTimeout(l), n = null, a();
|
|
22
|
-
},
|
|
22
|
+
}, i)), l = setTimeout(() => {
|
|
23
23
|
n && clearTimeout(n), n = null, a();
|
|
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 (
|
|
32
|
+
return (h) => {
|
|
33
33
|
const v = ie(e), d = Date.now() - n;
|
|
34
34
|
if (s(), v <= 0)
|
|
35
|
-
return n = Date.now(),
|
|
36
|
-
d > v && (l || !a) ? (n = Date.now(),
|
|
37
|
-
n = Date.now(), a = !0, s(),
|
|
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
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
|
|
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
|
-
return a.value && (l =
|
|
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
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
|
|
101
|
+
const i = Et(() => o && "ResizeObserver" in o), h = () => {
|
|
102
102
|
s && (s.disconnect(), s = void 0);
|
|
103
|
-
}, v =
|
|
104
|
-
|
|
103
|
+
}, v = Y(() => Ve(e), (c) => {
|
|
104
|
+
h(), i.value && o && c && (s = new ResizeObserver(t), s.observe(c, a));
|
|
105
105
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
106
|
-
|
|
106
|
+
h(), v();
|
|
107
107
|
};
|
|
108
108
|
return ze(d), {
|
|
109
|
-
isSupported:
|
|
109
|
+
isSupported: i,
|
|
110
110
|
stop: d
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
const { box: n = "content-box" } = l, o =
|
|
115
|
-
return
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
}, l),
|
|
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
|
+
const i = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
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,32 +126,32 @@ 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,
|
|
137
|
-
let
|
|
135
|
+
id: s = `vueuse_styletag_${++Rt}`
|
|
136
|
+
} = t, i = f(e);
|
|
137
|
+
let h = () => {
|
|
138
138
|
};
|
|
139
139
|
const v = () => {
|
|
140
140
|
if (!n)
|
|
141
141
|
return;
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
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 && (h = Y(i, (u) => {
|
|
144
|
+
c.innerText = u;
|
|
145
145
|
}, { immediate: !0 }), l.value = !0);
|
|
146
146
|
}, d = () => {
|
|
147
|
-
!n || !l.value || (
|
|
147
|
+
!n || !l.value || (h(), n.head.removeChild(n.getElementById(s)), l.value = !1);
|
|
148
148
|
};
|
|
149
149
|
return o && !a && Ne(v), a || ze(d), {
|
|
150
150
|
id: s,
|
|
151
|
-
css:
|
|
151
|
+
css: i,
|
|
152
152
|
unload: d,
|
|
153
153
|
load: v,
|
|
154
|
-
isLoaded:
|
|
154
|
+
isLoaded: at(l)
|
|
155
155
|
};
|
|
156
156
|
}
|
|
157
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) => {
|
|
@@ -189,68 +189,68 @@ const Ht = {
|
|
|
189
189
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
190
190
|
};
|
|
191
191
|
Pt({
|
|
192
|
-
linear:
|
|
192
|
+
linear: bt
|
|
193
193
|
}, Ht);
|
|
194
194
|
function At(e, t) {
|
|
195
|
-
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a =
|
|
195
|
+
const { scrollEndHook: l, itemHeight: n, overscan: o = 5 } = t, a = f(null), s = Dt(a), i = f(!0), h = We(N, 100);
|
|
196
196
|
let v;
|
|
197
|
-
const d =
|
|
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 d.value.map((
|
|
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(v)),
|
|
207
|
+
}), Ie(() => cancelAnimationFrame(v)), Y(
|
|
208
208
|
[s.width, s.height, d],
|
|
209
|
-
([g,
|
|
210
|
-
(g ||
|
|
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
|
|
217
|
-
|
|
216
|
+
function P() {
|
|
217
|
+
i.value = !1;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
219
|
+
function N() {
|
|
220
|
+
i.value = !0, l?.();
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
cancelAnimationFrame(v), v = requestAnimationFrame(
|
|
222
|
+
function U() {
|
|
223
|
+
cancelAnimationFrame(v), v = requestAnimationFrame($);
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function $() {
|
|
226
226
|
if (a.value) {
|
|
227
|
-
|
|
228
|
-
let g =
|
|
229
|
-
g = g - o, g = g < 0 ? 0 : g,
|
|
230
|
-
data:
|
|
231
|
-
index:
|
|
227
|
+
c.value = a.value.scrollTop, r = O();
|
|
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
|
+
index: H + g
|
|
232
232
|
}));
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
let
|
|
237
|
-
for (;
|
|
238
|
-
const
|
|
239
|
-
E.value[
|
|
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
|
-
return Math.max(0,
|
|
241
|
+
return Math.max(0, H);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
244
|
-
let g = 0,
|
|
245
|
-
for (let
|
|
243
|
+
function O() {
|
|
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,38 +261,38 @@ 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: `${
|
|
272
|
-
pointerEvents:
|
|
271
|
+
height: `${b.value}px`,
|
|
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
|
-
scrollTop:
|
|
291
|
-
isScrollEnd:
|
|
290
|
+
scrollTop: c,
|
|
291
|
+
isScrollEnd: i,
|
|
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
|
|
304
|
-
function
|
|
303
|
+
const Ye = Symbol(), Ke = Symbol(), Ue = Symbol(), qe = Symbol(), Qe = Symbol(), Ge = Symbol(), Xe = Symbol(), Ze = Symbol(), Je = Symbol();
|
|
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 = j(qe, n), a = j(Ue, t), s = j(
|
|
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
|
-
toggle:
|
|
317
|
-
toggleAll:
|
|
316
|
+
toggle: i,
|
|
317
|
+
toggleAll: h,
|
|
318
318
|
select: v,
|
|
319
319
|
selectAll: d,
|
|
320
|
-
unselect:
|
|
320
|
+
unselect: c,
|
|
321
321
|
unselectAll: u
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
function Sl(e, t) {
|
|
325
|
-
const l =
|
|
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;
|
|
@@ -331,12 +331,12 @@ function Sl(e, t) {
|
|
|
331
331
|
function s() {
|
|
332
332
|
l.value = {};
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function i(u) {
|
|
335
335
|
u.forEach((r) => {
|
|
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
|
});
|
|
@@ -349,17 +349,17 @@ function Sl(e, t) {
|
|
|
349
349
|
v(r) ? delete l.value[r[t]] : l.value[r[t]] = !0;
|
|
350
350
|
});
|
|
351
351
|
}
|
|
352
|
-
function
|
|
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
|
-
select:
|
|
357
|
+
select: i,
|
|
358
358
|
selectAll: a,
|
|
359
|
-
unselect:
|
|
359
|
+
unselect: h,
|
|
360
360
|
unselectAll: s,
|
|
361
361
|
toggle: d,
|
|
362
|
-
toggleAll:
|
|
362
|
+
toggleAll: c,
|
|
363
363
|
isSelected: v,
|
|
364
364
|
isAllSelected: o
|
|
365
365
|
};
|
|
@@ -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 = {},
|
|
@@ -380,223 +380,230 @@ function Je({
|
|
|
380
380
|
unselect: a = fe("\u53D6\u6D88\u9009\u62E9"),
|
|
381
381
|
unselectAll: s = fe("\u53D6\u6D88\u5168\u9009")
|
|
382
382
|
} = n();
|
|
383
|
-
let
|
|
384
|
-
const
|
|
385
|
-
() => Te(t === "colum" ?
|
|
386
|
-
), v = /* @__PURE__ */ new Set(), d =
|
|
387
|
-
(
|
|
388
|
-
),
|
|
383
|
+
let i = {};
|
|
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:
|
|
400
|
-
let
|
|
401
|
-
const
|
|
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
|
+
let $;
|
|
401
|
+
const x = P, O = N, G = U, X = (m) => m ** 1;
|
|
402
402
|
let k = 0;
|
|
403
|
-
function ee(
|
|
404
|
-
if (cancelAnimationFrame(
|
|
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
|
-
const _ =
|
|
408
|
+
const _ = c.value;
|
|
409
409
|
if (!_ || !u.value)
|
|
410
410
|
return;
|
|
411
|
-
const
|
|
412
|
-
let
|
|
413
|
-
|
|
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(
|
|
417
|
-
if (
|
|
418
|
-
const
|
|
419
|
-
if (
|
|
420
|
-
return
|
|
421
|
-
const V =
|
|
422
|
-
if (V <
|
|
423
|
-
return -
|
|
416
|
+
function se(m) {
|
|
417
|
+
if (c.value) {
|
|
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(
|
|
440
|
-
let
|
|
441
|
-
|
|
442
|
-
const V =
|
|
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
|
+
let L = document.getElementById(I);
|
|
441
|
+
L || (L = document.createElement("style"), L.id = I, document.head.appendChild(L));
|
|
442
|
+
const V = L.sheet.cssRules, ne = V.length, tt = `${m} { ${_} }`;
|
|
443
443
|
for (let ve = 0; ve < ne; ve++) {
|
|
444
444
|
const Se = V[ve];
|
|
445
|
-
if (Se.selectorText ===
|
|
445
|
+
if (Se.selectorText === m && Se.style.cssText === _)
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
|
|
448
|
+
L.sheet.insertRule(tt, ne);
|
|
449
449
|
}
|
|
450
|
-
function
|
|
451
|
-
d.value = !0, u.value = !0,
|
|
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 || (d.value && t === "colum" && !
|
|
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
|
-
function
|
|
460
|
-
u.value = !1,
|
|
459
|
+
function H() {
|
|
460
|
+
u.value = !1, c.value?.classList.remove("disable-scroll-behavior");
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
!u.value || (k || te(),
|
|
462
|
+
function R() {
|
|
463
|
+
!u.value || (k || te(), h.value());
|
|
464
464
|
}
|
|
465
|
-
function
|
|
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
|
-
|
|
476
|
-
|
|
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
|
|
481
|
-
let _ = null,
|
|
482
|
-
|
|
483
|
-
const ne =
|
|
484
|
-
|
|
480
|
+
const m = [];
|
|
481
|
+
let _ = null, I = 0;
|
|
482
|
+
c.value?.querySelectorAll(`[${e}]`).forEach((L, V) => {
|
|
483
|
+
const ne = L.getAttribute(`${e}`);
|
|
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
|
-
for (let
|
|
487
|
-
|
|
486
|
+
for (let L = _; L < I + 1; L++)
|
|
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:
|
|
499
|
-
dragEnd:
|
|
500
|
-
onScroll:
|
|
501
|
-
isSingleClick:
|
|
497
|
+
dragStart: y,
|
|
498
|
+
dragMove: F,
|
|
499
|
+
dragEnd: H,
|
|
500
|
+
onScroll: R,
|
|
501
|
+
isSingleClick: D,
|
|
502
502
|
cancelSelectAllBySingleClick: le,
|
|
503
|
-
selectFn:
|
|
504
|
-
selectRange:
|
|
503
|
+
selectFn: h,
|
|
504
|
+
selectRange: S,
|
|
505
505
|
isPressing: u,
|
|
506
|
-
containerEl:
|
|
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
|
-
dragEnd:
|
|
516
|
-
cancelSelectAllBySingleClick:
|
|
517
|
-
} = t, v =
|
|
515
|
+
dragEnd: i,
|
|
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
|
-
})), d =
|
|
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: "
|
|
533
|
+
class: "drag-select-box",
|
|
527
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
|
-
function
|
|
557
|
-
const n =
|
|
563
|
+
function El(e, t, l = 600) {
|
|
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:
|
|
571
|
+
}), { observer: o } = n, { onScroll: a, dragStart: s, dragMove: i, dragEnd: h } = n;
|
|
565
572
|
let v;
|
|
566
573
|
function d() {
|
|
567
574
|
clearTimeout(v);
|
|
568
575
|
}
|
|
569
|
-
function
|
|
570
|
-
d(),
|
|
571
|
-
const { clientX:
|
|
572
|
-
s(
|
|
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(
|
|
582
|
+
function u(C) {
|
|
576
583
|
d();
|
|
577
|
-
const { clientX:
|
|
578
|
-
|
|
584
|
+
const { clientX: b, clientY: S } = C.targetTouches[0];
|
|
585
|
+
i(b, S, () => C.preventDefault());
|
|
579
586
|
}
|
|
580
587
|
function r() {
|
|
581
|
-
d(),
|
|
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
|
-
n.containerEl.value?.addEventListener("scroll", a), n.containerEl.value?.addEventListener("touchstart",
|
|
590
|
-
} catch (
|
|
591
|
-
console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",
|
|
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);
|
|
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
|
-
o.disconnect(), n.containerEl.value?.removeEventListener("scroll", a), n.containerEl.value?.removeEventListener("touchstart",
|
|
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__ */ U({
|
|
|
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) => (
|
|
618
|
+
return z(Ft, () => t("update:visiable", !1)), (o, a) => (M(), Me(Pe, { name: "modal" }, {
|
|
612
619
|
default: He(() => [
|
|
613
|
-
e.visiable ? (
|
|
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
|
}));
|
|
@@ -638,7 +645,7 @@ 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 xl(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
|
}
|
|
@@ -666,7 +673,7 @@ function Wt({
|
|
|
666
673
|
componentProps: t,
|
|
667
674
|
delay: l = 300
|
|
668
675
|
}) {
|
|
669
|
-
const n = `${l}ms`, { load: o } =
|
|
676
|
+
const n = `${l}ms`, { load: o } = je(
|
|
670
677
|
`@keyframes lzcDelayLoad {
|
|
671
678
|
to {
|
|
672
679
|
opacity: 1;
|
|
@@ -677,12 +684,12 @@ function Wt({
|
|
|
677
684
|
animation: lzcDelayLoad 0s ${n} forwards;
|
|
678
685
|
}`
|
|
679
686
|
);
|
|
680
|
-
return { LoadingComp:
|
|
687
|
+
return { LoadingComp: K({
|
|
681
688
|
setup() {
|
|
682
|
-
const s =
|
|
689
|
+
const s = xt();
|
|
683
690
|
return oe(() => {
|
|
684
691
|
o(), s.value.classList.add("lzc-delay-loading");
|
|
685
|
-
}), () =>
|
|
692
|
+
}), () => Q(e, t);
|
|
686
693
|
}
|
|
687
694
|
}) };
|
|
688
695
|
}
|
|
@@ -695,7 +702,7 @@ function Tl({
|
|
|
695
702
|
component: e,
|
|
696
703
|
componentProps: t,
|
|
697
704
|
delay: l
|
|
698
|
-
}), o =
|
|
705
|
+
}), o = f(!1);
|
|
699
706
|
function a() {
|
|
700
707
|
o.value = !0;
|
|
701
708
|
}
|
|
@@ -704,22 +711,22 @@ function Tl({
|
|
|
704
711
|
}
|
|
705
712
|
return { LoadingComp: n, loading: o, load: a, unload: s };
|
|
706
713
|
}
|
|
707
|
-
const Nt = {}, Vt = (e) => (ce("data-v-76a2728a"), e = e(), de(), e), jt = /* @__PURE__ */ Vt(() => /* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
709
|
-
], -1)),
|
|
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 = [
|
|
710
717
|
jt
|
|
711
718
|
];
|
|
712
|
-
function
|
|
713
|
-
return
|
|
719
|
+
function Kt(e, t) {
|
|
720
|
+
return M(), A("div", he(pe(e.$attrs)), Yt, 16);
|
|
714
721
|
}
|
|
715
|
-
const Ll = /* @__PURE__ */ J(Nt, [["render",
|
|
722
|
+
const Ll = /* @__PURE__ */ J(Nt, [["render", Kt], ["__scopeId", "data-v-76a2728a"]]), Ut = /* @__PURE__ */ K({
|
|
716
723
|
__name: "Toast",
|
|
717
724
|
props: {
|
|
718
725
|
message: null,
|
|
719
726
|
position: null
|
|
720
727
|
},
|
|
721
728
|
setup(e) {
|
|
722
|
-
const t = e, l =
|
|
729
|
+
const t = e, l = f(), n = f(), o = f(), a = w(() => {
|
|
723
730
|
switch (t.position) {
|
|
724
731
|
case "top":
|
|
725
732
|
return 10;
|
|
@@ -728,14 +735,14 @@ const Ll = /* @__PURE__ */ J(Nt, [["render", Ut], ["__scopeId", "data-v-76a2728a
|
|
|
728
735
|
case "bottom":
|
|
729
736
|
return 85;
|
|
730
737
|
}
|
|
731
|
-
}), s =
|
|
738
|
+
}), s = w(() => ({
|
|
732
739
|
position: "absolute",
|
|
733
740
|
borderRadius: "10px",
|
|
734
741
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
735
742
|
padding: "14px 19px",
|
|
736
743
|
top: `calc(${a.value}% - ${o.value}px)`,
|
|
737
744
|
left: `calc(50% - ${n.value}px)`
|
|
738
|
-
})),
|
|
745
|
+
})), i = w(() => ({
|
|
739
746
|
width: "fit-content",
|
|
740
747
|
display: "flex",
|
|
741
748
|
justifyContent: "center",
|
|
@@ -745,22 +752,22 @@ const Ll = /* @__PURE__ */ J(Nt, [["render", Ut], ["__scopeId", "data-v-76a2728a
|
|
|
745
752
|
}));
|
|
746
753
|
return _e(() => {
|
|
747
754
|
n.value = l.value.offsetWidth / 2, o.value = l.value.offsetHeight / 2;
|
|
748
|
-
}), (
|
|
755
|
+
}), (h, v) => (M(), A("div", {
|
|
749
756
|
id: "toastWrapper",
|
|
750
757
|
ref_key: "toastWrapper",
|
|
751
758
|
ref: l,
|
|
752
759
|
class: "toastWrapper",
|
|
753
|
-
style: W([
|
|
760
|
+
style: W([B(s), { zIndex: 9999 }])
|
|
754
761
|
}, [
|
|
755
|
-
|
|
756
|
-
style: W(
|
|
762
|
+
T("div", {
|
|
763
|
+
style: W(B(i))
|
|
757
764
|
}, [
|
|
758
|
-
|
|
765
|
+
T("span", null, Fe(e.message), 1)
|
|
759
766
|
], 4)
|
|
760
767
|
], 4));
|
|
761
768
|
}
|
|
762
769
|
});
|
|
763
|
-
const
|
|
770
|
+
const qt = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-15ab4094"]]), Re = {
|
|
764
771
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
765
772
|
position: "middle",
|
|
766
773
|
duration: 1500
|
|
@@ -772,7 +779,7 @@ class Ol {
|
|
|
772
779
|
this.options = t, this.container = document.createElement("div");
|
|
773
780
|
}
|
|
774
781
|
present() {
|
|
775
|
-
const t =
|
|
782
|
+
const t = Q(Q(qt), { ...Re, ...this.options });
|
|
776
783
|
ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
777
784
|
const l = this.options.duration || Re.duration;
|
|
778
785
|
setTimeout(() => {
|
|
@@ -790,7 +797,7 @@ class Ol {
|
|
|
790
797
|
}
|
|
791
798
|
}
|
|
792
799
|
}
|
|
793
|
-
const
|
|
800
|
+
const Qt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ K({
|
|
794
801
|
__name: "SvgIcon",
|
|
795
802
|
props: {
|
|
796
803
|
name: null,
|
|
@@ -800,20 +807,20 @@ const Yt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ U({
|
|
|
800
807
|
height: null
|
|
801
808
|
},
|
|
802
809
|
setup(e) {
|
|
803
|
-
const t = e, l =
|
|
810
|
+
const t = e, l = w(() => `#${t.prefix}-${t.name}`), n = w(() => ({
|
|
804
811
|
width: `${t.width ?? t.height}px`,
|
|
805
812
|
height: `${t.height ?? t.width}px`,
|
|
806
813
|
aspectRatio: t.width && t.height ? void 0 : "1/1"
|
|
807
814
|
}));
|
|
808
|
-
return (o, a) => (
|
|
815
|
+
return (o, a) => (M(), A("svg", {
|
|
809
816
|
"aria-hidden": "",
|
|
810
|
-
style: W(
|
|
817
|
+
style: W(B(n))
|
|
811
818
|
}, [
|
|
812
|
-
|
|
813
|
-
"xlink:href":
|
|
819
|
+
T("use", {
|
|
820
|
+
"xlink:href": B(l),
|
|
814
821
|
fill: e.color,
|
|
815
822
|
color: e.color
|
|
816
|
-
}, null, 8,
|
|
823
|
+
}, null, 8, Qt)
|
|
817
824
|
], 4));
|
|
818
825
|
}
|
|
819
826
|
});
|
|
@@ -824,85 +831,85 @@ function Gt(e) {
|
|
|
824
831
|
autoHeight: n,
|
|
825
832
|
performance: o = {},
|
|
826
833
|
maxHeightRatio: a = 0.9
|
|
827
|
-
} = e, s =
|
|
828
|
-
let
|
|
829
|
-
const d =
|
|
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({
|
|
830
837
|
top: 0,
|
|
831
838
|
scrollTop: 0,
|
|
832
839
|
scrollHeight: 0,
|
|
833
840
|
clientHeight: 0
|
|
834
|
-
}),
|
|
841
|
+
}), p = f({
|
|
835
842
|
clientHeight: 0
|
|
836
|
-
}), 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(
|
|
837
844
|
r.value.clientHeight / r.value.scrollHeight,
|
|
838
845
|
0.05
|
|
839
|
-
)),
|
|
846
|
+
)), N = w(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = w(() => ({
|
|
840
847
|
willChange: "transform",
|
|
841
848
|
transform: `translate3d(0,${u.value}px,0)`,
|
|
842
|
-
height: n ? `${
|
|
849
|
+
height: n ? `${N.value}px` : void 0
|
|
843
850
|
}));
|
|
844
|
-
function R
|
|
845
|
-
|
|
851
|
+
function $(R) {
|
|
852
|
+
O(), c.value = R.clientY - l.value.getBoundingClientRect().top || 1, v = getComputedStyle(t.value).scrollBehavior, v === "smooth" && (t.value.style.scrollBehavior = "unset");
|
|
846
853
|
}
|
|
847
|
-
function
|
|
848
|
-
t.value.style.scrollBehavior = v,
|
|
854
|
+
function x() {
|
|
855
|
+
t.value.style.scrollBehavior = v, c.value = 0, i();
|
|
849
856
|
}
|
|
850
|
-
function
|
|
857
|
+
function O() {
|
|
851
858
|
s.value = !1;
|
|
852
859
|
}
|
|
853
860
|
function G() {
|
|
854
861
|
E.value || (s.value = !0);
|
|
855
862
|
}
|
|
856
|
-
function X(
|
|
863
|
+
function X(R) {
|
|
857
864
|
if (!E.value)
|
|
858
865
|
return;
|
|
859
|
-
let
|
|
860
|
-
|
|
861
|
-
top: u.value /
|
|
866
|
+
let D = R.clientY - r.value.top - c.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
|
|
862
869
|
});
|
|
863
870
|
}
|
|
864
871
|
function k() {
|
|
865
872
|
E.value || ee();
|
|
866
873
|
}
|
|
867
874
|
function ee() {
|
|
868
|
-
cancelAnimationFrame(
|
|
875
|
+
cancelAnimationFrame(h), h = requestAnimationFrame(se);
|
|
869
876
|
}
|
|
870
877
|
function se() {
|
|
871
|
-
t.value && (d.value = o.scrollTop?.value ?? t.value.scrollTop, u.value = d.value /
|
|
878
|
+
t.value && (d.value = o.scrollTop?.value ?? t.value.scrollTop, u.value = d.value / S.value * b.value);
|
|
872
879
|
}
|
|
873
|
-
function Z(
|
|
874
|
-
let
|
|
875
|
-
|
|
880
|
+
function Z(R) {
|
|
881
|
+
let D = "addEventListener";
|
|
882
|
+
R === "add" ? D = "addEventListener" : D = "removeEventListener", l.value?.[D]("pointerdown", $, {
|
|
876
883
|
passive: !0
|
|
877
|
-
}), window[
|
|
884
|
+
}), window[D]("pointermove", X, { passive: !0 }), window[D]("pointerup", x, { passive: !0 });
|
|
878
885
|
}
|
|
879
|
-
const te = new MutationObserver((
|
|
880
|
-
|
|
886
|
+
const te = new MutationObserver((R) => {
|
|
887
|
+
R.map((le) => le.oldValue).join().includes("height") && g();
|
|
881
888
|
});
|
|
882
889
|
function g() {
|
|
883
890
|
r.value.top = t.value?.getBoundingClientRect().top ?? 0, r.value.scrollHeight = t.value?.scrollHeight ?? 0, r.value.clientHeight = t.value?.clientHeight ?? 0;
|
|
884
891
|
}
|
|
885
|
-
function
|
|
886
|
-
|
|
887
|
-
|
|
892
|
+
function y() {
|
|
893
|
+
O(), setTimeout(() => {
|
|
894
|
+
p.value.clientHeight = l.value?.clientHeight ?? 0, G();
|
|
888
895
|
}, 150);
|
|
889
896
|
}
|
|
890
|
-
function
|
|
891
|
-
let
|
|
892
|
-
|
|
893
|
-
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} }`;
|
|
894
901
|
for (let _ = 0; _ < re; _++) {
|
|
895
|
-
const
|
|
896
|
-
if (
|
|
902
|
+
const I = ae[_];
|
|
903
|
+
if (I.selectorText === R && I.style.cssText === D)
|
|
897
904
|
return;
|
|
898
905
|
}
|
|
899
|
-
|
|
906
|
+
q.sheet.insertRule(m, re);
|
|
900
907
|
}
|
|
901
|
-
function
|
|
902
|
-
t.value && l.value ? (
|
|
908
|
+
function H() {
|
|
909
|
+
t.value && l.value ? (F(
|
|
903
910
|
".hide-scrollbar",
|
|
904
911
|
"scrollbar-width: none; -ms-overflow-style: none;"
|
|
905
|
-
),
|
|
912
|
+
), F(".hide-scrollbar::-webkit-scrollbar", "display: none"), t.value.classList.add("hide-scrollbar"), t.value.addEventListener("scroll", k, {
|
|
906
913
|
passive: !0
|
|
907
914
|
}), Z("add"), te.observe(t.value, {
|
|
908
915
|
subtree: !0,
|
|
@@ -910,22 +917,22 @@ function Gt(e) {
|
|
|
910
917
|
attributeFilter: ["style"]
|
|
911
918
|
}), setTimeout(() => {
|
|
912
919
|
g();
|
|
913
|
-
}, 100),
|
|
920
|
+
}, 100), y()) : console.error("useScrollBar:", "\u521D\u59CB\u5316\u5931\u8D25!", { containerEl: t, sliderEl: l });
|
|
914
921
|
}
|
|
915
|
-
return
|
|
916
|
-
|
|
922
|
+
return Y(d, () => {
|
|
923
|
+
O(), i();
|
|
917
924
|
}), {
|
|
918
925
|
isScrollEnd: s,
|
|
919
926
|
isDragSlider: E,
|
|
920
927
|
offsetTop: u,
|
|
921
928
|
scrollTop: d,
|
|
922
|
-
scrollable:
|
|
923
|
-
sliderPos:
|
|
924
|
-
init:
|
|
929
|
+
scrollable: C,
|
|
930
|
+
sliderPos: U,
|
|
931
|
+
init: H,
|
|
925
932
|
modifySliderEventListener: Z
|
|
926
933
|
};
|
|
927
934
|
}
|
|
928
|
-
const Xt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Zt = /* @__PURE__ */ Xt(() => /* @__PURE__ */
|
|
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({
|
|
929
936
|
__name: "ScrollBar",
|
|
930
937
|
props: {
|
|
931
938
|
containerEl: null,
|
|
@@ -934,12 +941,12 @@ const Xt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Zt = /* @__PURE__ *
|
|
|
934
941
|
performance: null
|
|
935
942
|
},
|
|
936
943
|
setup(e, { expose: t }) {
|
|
937
|
-
const l = e, n = !!
|
|
944
|
+
const l = e, n = !!ct().default, o = f(null), a = w(() => l.containerEl), s = Gt({
|
|
938
945
|
containerEl: a,
|
|
939
946
|
sliderEl: o,
|
|
940
947
|
autoHeight: n ? l.autoHeight : !0,
|
|
941
948
|
performance: l.performance
|
|
942
|
-
}), { scrollable:
|
|
949
|
+
}), { scrollable: i, isScrollEnd: h, sliderPos: v } = s, d = f(!1), c = l.autoHide ? w(() => d.value || !h.value) : w(() => i.value);
|
|
943
950
|
oe(() => {
|
|
944
951
|
_e(() => {
|
|
945
952
|
s.init();
|
|
@@ -953,34 +960,34 @@ const Xt = (e) => (ce("data-v-edec7292"), e = e(), de(), e), Zt = /* @__PURE__ *
|
|
|
953
960
|
function r() {
|
|
954
961
|
d.value = !1;
|
|
955
962
|
}
|
|
956
|
-
return t({ uScrollBarReturn: s }), (
|
|
963
|
+
return t({ uScrollBarReturn: s }), (p, E) => (M(), Me(Pe, null, {
|
|
957
964
|
default: He(() => [
|
|
958
|
-
|
|
965
|
+
dt(T("div", {
|
|
959
966
|
ref_key: "sliderRef",
|
|
960
967
|
ref: o,
|
|
961
968
|
class: "slider-wrapper",
|
|
962
969
|
onMouseenter: u,
|
|
963
970
|
onMouseleave: r,
|
|
964
|
-
style: W(
|
|
971
|
+
style: W(B(v))
|
|
965
972
|
}, [
|
|
966
|
-
ye(
|
|
973
|
+
ye(p.$slots, "default", {}, () => [
|
|
967
974
|
Zt
|
|
968
975
|
], !0)
|
|
969
976
|
], 36), [
|
|
970
|
-
[
|
|
977
|
+
[vt, B(c)]
|
|
971
978
|
])
|
|
972
979
|
]),
|
|
973
980
|
_: 3
|
|
974
981
|
}));
|
|
975
982
|
}
|
|
976
983
|
});
|
|
977
|
-
const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (e) => (ce("data-v-
|
|
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 = {
|
|
978
985
|
key: 0,
|
|
979
986
|
class: "pull-arrow-circle"
|
|
980
987
|
}, nl = {
|
|
981
988
|
key: 0,
|
|
982
989
|
class: "box-load"
|
|
983
|
-
}, ol = { class: "left-load" }, sl = { class: "right-load" }, al = /* @__PURE__ */ el(() => /* @__PURE__ */
|
|
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({
|
|
984
991
|
__name: "PullRefresh",
|
|
985
992
|
props: {
|
|
986
993
|
refresh: null,
|
|
@@ -989,77 +996,80 @@ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (e) =
|
|
|
989
996
|
pullRefreshContainer: null
|
|
990
997
|
},
|
|
991
998
|
setup(e) {
|
|
992
|
-
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(() => ({
|
|
993
1000
|
transition: `${u.value}ms`,
|
|
994
1001
|
transform: `translate3d(0,${o.value}px, 0) scale(${a.value})`
|
|
995
|
-
})),
|
|
1002
|
+
})), b = w(() => ({
|
|
996
1003
|
borderColor: n,
|
|
997
1004
|
transition: u.value,
|
|
998
1005
|
transform: `rotate(${100 + s.value}deg)`,
|
|
999
|
-
opacity:
|
|
1006
|
+
opacity: i.value
|
|
1000
1007
|
}));
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
}),
|
|
1008
|
+
Y(r, (x) => {
|
|
1009
|
+
x === 0 && (o.value = -50, i.value = 0.3);
|
|
1010
|
+
}), Y(d, (x) => {
|
|
1004
1011
|
if (r.value === 2)
|
|
1005
1012
|
return;
|
|
1006
|
-
const
|
|
1007
|
-
|
|
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);
|
|
1008
1015
|
});
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
},
|
|
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 = () => {
|
|
1012
1022
|
if (t.refreshOff || !t?.refresh || r.value === 2)
|
|
1013
1023
|
return;
|
|
1014
|
-
v.value = 0,
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1017
|
-
|
|
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";
|
|
1018
1028
|
}).catch(() => {
|
|
1019
|
-
|
|
1029
|
+
p.value = "\u5237\u65B0\u5931\u8D25";
|
|
1020
1030
|
}).finally(() => {
|
|
1021
1031
|
setTimeout(() => {
|
|
1022
|
-
r.value = 0, d.value = 0,
|
|
1032
|
+
r.value = 0, d.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1023
1033
|
d.value,
|
|
1024
1034
|
l
|
|
1025
1035
|
)}px, 0)`, setTimeout(() => {
|
|
1026
|
-
|
|
1036
|
+
p.value = void 0;
|
|
1027
1037
|
}, u.value);
|
|
1028
1038
|
}, 600);
|
|
1029
|
-
})) : (d.value = 0,
|
|
1030
|
-
},
|
|
1039
|
+
})) : (d.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(d.value, l)}px, 0)`);
|
|
1040
|
+
}, $ = f(null);
|
|
1031
1041
|
return oe(() => {
|
|
1032
|
-
|
|
1042
|
+
$.value = document.querySelector(
|
|
1033
1043
|
t.pullRefreshContainer
|
|
1034
|
-
),
|
|
1035
|
-
}), (
|
|
1036
|
-
|
|
1044
|
+
), $.value.addEventListener("touchstart", P), $.value.addEventListener("touchmove", N), $.value.addEventListener("touchend", U);
|
|
1045
|
+
}), (x, O) => (M(), A("div", tl, [
|
|
1046
|
+
T("div", {
|
|
1037
1047
|
class: "pull-refresh-box",
|
|
1038
|
-
style: W(
|
|
1048
|
+
style: W(B(C))
|
|
1039
1049
|
}, [
|
|
1040
|
-
|
|
1041
|
-
r.value == 2 ? (
|
|
1042
|
-
|
|
1043
|
-
|
|
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", {
|
|
1044
1054
|
class: "left-circle",
|
|
1045
1055
|
style: W({ backgroundColor: n })
|
|
1046
1056
|
}, null, 4)
|
|
1047
1057
|
]),
|
|
1048
|
-
|
|
1049
|
-
|
|
1058
|
+
T("div", sl, [
|
|
1059
|
+
T("div", {
|
|
1050
1060
|
class: "right-circle",
|
|
1051
1061
|
style: W({ backgroundColor: n })
|
|
1052
1062
|
}, null, 4)
|
|
1053
1063
|
]),
|
|
1054
1064
|
al
|
|
1055
|
-
])) : (
|
|
1065
|
+
])) : (M(), A("div", {
|
|
1056
1066
|
key: 1,
|
|
1057
1067
|
class: "pull-circle-line",
|
|
1058
|
-
style: W(
|
|
1068
|
+
style: W(B(b))
|
|
1059
1069
|
}, [
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
class: Ae(["arrows", { opacity:
|
|
1070
|
+
T("div", rl, [
|
|
1071
|
+
T("div", {
|
|
1072
|
+
class: Ae(["arrows", { opacity: h.value }]),
|
|
1063
1073
|
style: W({ borderBottomColor: n })
|
|
1064
1074
|
}, null, 6)
|
|
1065
1075
|
])
|
|
@@ -1069,9 +1079,9 @@ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (e) =
|
|
|
1069
1079
|
]));
|
|
1070
1080
|
}
|
|
1071
1081
|
});
|
|
1072
|
-
const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-
|
|
1082
|
+
const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-3d9ba957"]]), dl = {
|
|
1073
1083
|
inheritAttrs: !1
|
|
1074
|
-
}, vl = /* @__PURE__ */
|
|
1084
|
+
}, vl = /* @__PURE__ */ K({
|
|
1075
1085
|
...dl,
|
|
1076
1086
|
__name: "VirtualList",
|
|
1077
1087
|
props: {
|
|
@@ -1083,7 +1093,7 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-9bfa9cae"]]), dl = {
|
|
|
1083
1093
|
},
|
|
1084
1094
|
emits: ["scrollEnd"],
|
|
1085
1095
|
setup(e, { expose: t, emit: l }) {
|
|
1086
|
-
const n = e, o = At(
|
|
1096
|
+
const n = e, o = At(ft(n, "data"), {
|
|
1087
1097
|
itemHeight: (u) => n.itemHeight(n.data[u]),
|
|
1088
1098
|
overscan: n.overscan,
|
|
1089
1099
|
scrollEndHook: () => {
|
|
@@ -1092,43 +1102,43 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-9bfa9cae"]]), dl = {
|
|
|
1092
1102
|
}), {
|
|
1093
1103
|
list: a,
|
|
1094
1104
|
containerProps: s,
|
|
1095
|
-
wrapperProps:
|
|
1096
|
-
innerProps:
|
|
1105
|
+
wrapperProps: i,
|
|
1106
|
+
innerProps: h,
|
|
1097
1107
|
getItemHeightData: v,
|
|
1098
1108
|
scrollTop: d
|
|
1099
1109
|
} = o;
|
|
1100
1110
|
t({
|
|
1101
1111
|
vListReturn: o
|
|
1102
1112
|
});
|
|
1103
|
-
const
|
|
1104
|
-
return (u, r) => (
|
|
1105
|
-
|
|
1113
|
+
const c = "virtualListWrapper" + new Date().getTime();
|
|
1114
|
+
return (u, r) => (M(), A(Ce, null, [
|
|
1115
|
+
ht(cl, {
|
|
1106
1116
|
refresh: e.refresh,
|
|
1107
1117
|
refreshOff: e.refreshOff,
|
|
1108
|
-
scrollTop:
|
|
1109
|
-
pullRefreshContainer: "#" +
|
|
1118
|
+
scrollTop: B(d),
|
|
1119
|
+
pullRefreshContainer: "#" + c
|
|
1110
1120
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1111
|
-
|
|
1121
|
+
T("div", {
|
|
1112
1122
|
class: "virtualListWrapper",
|
|
1113
|
-
id:
|
|
1123
|
+
id: c
|
|
1114
1124
|
}, [
|
|
1115
|
-
|
|
1116
|
-
onScrollPassive: r[0] || (r[0] = (...
|
|
1117
|
-
ref:
|
|
1125
|
+
T("div", pt({
|
|
1126
|
+
onScrollPassive: r[0] || (r[0] = (...p) => B(s).onScroll && B(s).onScroll(...p)),
|
|
1127
|
+
ref: B(s).ref,
|
|
1118
1128
|
class: "virtualList"
|
|
1119
1129
|
}, u.$attrs), [
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
(
|
|
1123
|
-
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,
|
|
1124
1134
|
style: W({
|
|
1125
|
-
height: `${
|
|
1135
|
+
height: `${B(v)(p).height}px`,
|
|
1126
1136
|
display: "flex"
|
|
1127
1137
|
})
|
|
1128
1138
|
}, [
|
|
1129
1139
|
ye(u.$slots, "default", {
|
|
1130
1140
|
data: E,
|
|
1131
|
-
index:
|
|
1141
|
+
index: p
|
|
1132
1142
|
}, void 0, !0)
|
|
1133
1143
|
], 4))), 128))
|
|
1134
1144
|
], 16)
|
|
@@ -1138,14 +1148,14 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-9bfa9cae"]]), dl = {
|
|
|
1138
1148
|
], 64));
|
|
1139
1149
|
}
|
|
1140
1150
|
});
|
|
1141
|
-
const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]),
|
|
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", {
|
|
1142
1152
|
id: "group-1",
|
|
1143
1153
|
stroke: "none",
|
|
1144
1154
|
"stroke-width": "1",
|
|
1145
1155
|
fill: "none",
|
|
1146
1156
|
"fill-rule": "evenodd"
|
|
1147
1157
|
}, [
|
|
1148
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ T("path", {
|
|
1149
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",
|
|
1150
1160
|
id: "path-1",
|
|
1151
1161
|
fill: "#FFF"
|
|
@@ -1153,7 +1163,7 @@ const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1153
1163
|
], -1)), _l = [
|
|
1154
1164
|
ml,
|
|
1155
1165
|
gl
|
|
1156
|
-
], yl = /* @__PURE__ */
|
|
1166
|
+
], yl = /* @__PURE__ */ K({
|
|
1157
1167
|
__name: "Loading",
|
|
1158
1168
|
props: {
|
|
1159
1169
|
width: { default: "90" },
|
|
@@ -1162,13 +1172,13 @@ const Rl = /* @__PURE__ */ J(vl, [["__scopeId", "data-v-e0fb787f"]]), be = (e) =
|
|
|
1162
1172
|
},
|
|
1163
1173
|
setup(e) {
|
|
1164
1174
|
const t = e;
|
|
1165
|
-
|
|
1175
|
+
gt((n) => ({
|
|
1166
1176
|
"703ef503": l
|
|
1167
1177
|
}));
|
|
1168
1178
|
const l = `${t.duration}ms`;
|
|
1169
|
-
return (n, o) => (
|
|
1179
|
+
return (n, o) => (M(), A("div", fl, [
|
|
1170
1180
|
hl,
|
|
1171
|
-
(
|
|
1181
|
+
(M(), A("svg", {
|
|
1172
1182
|
style: { position: "relative" },
|
|
1173
1183
|
width: e.width,
|
|
1174
1184
|
height: e.height,
|
|
@@ -1191,20 +1201,20 @@ export {
|
|
|
1191
1201
|
qe as allSelectedKey,
|
|
1192
1202
|
Ft as closeDialogKey,
|
|
1193
1203
|
xl as dialogController,
|
|
1194
|
-
|
|
1204
|
+
Ze as isAllSelectedKey,
|
|
1195
1205
|
Ue as isSelectedKey,
|
|
1196
|
-
|
|
1206
|
+
Ge as selectAllKey,
|
|
1197
1207
|
Qe as selectKey,
|
|
1198
|
-
|
|
1208
|
+
Ye as toggleAllKey,
|
|
1199
1209
|
Ke as toggleKey,
|
|
1200
|
-
|
|
1201
|
-
|
|
1210
|
+
Je as unselectAllKey,
|
|
1211
|
+
Xe as unselectKey,
|
|
1202
1212
|
Tl as useDelayLoad,
|
|
1203
1213
|
Wt as useDelayLoadComp,
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1214
|
+
et as useDragSelect,
|
|
1215
|
+
El as useDragSelectByMobile,
|
|
1216
|
+
Cl as useDragSelectByPc,
|
|
1207
1217
|
Sl as useSelectable,
|
|
1208
|
-
|
|
1218
|
+
wl as useSelectableInjectors,
|
|
1209
1219
|
At as useVirtualList
|
|
1210
1220
|
};
|