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