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