@lazycatcloud/lzc-toolkit 0.0.79 → 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 +498 -480
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -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 K, customRef 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 we = typeof window < "u", xe = (
|
|
3
|
+
const we = typeof window < "u", xe = (e) => typeof e == "function";
|
|
4
4
|
we && ((Se = window?.navigator) == null ? void 0 : Se.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
5
|
-
function ie(
|
|
6
|
-
return typeof
|
|
5
|
+
function ie(e) {
|
|
6
|
+
return typeof e == "function" ? e() : R(e);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
function
|
|
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
|
-
return
|
|
12
|
+
return n;
|
|
13
13
|
}
|
|
14
|
-
function _t(
|
|
15
|
-
let
|
|
14
|
+
function _t(e, t = {}) {
|
|
15
|
+
let n, o;
|
|
16
16
|
return (a) => {
|
|
17
|
-
const s = ie(
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
20
|
-
i && !
|
|
21
|
-
|
|
22
|
-
}, i)),
|
|
23
|
-
|
|
17
|
+
const s = ie(e), i = ie(t.maxWait);
|
|
18
|
+
if (n && clearTimeout(n), s <= 0 || i !== void 0 && i <= 0)
|
|
19
|
+
return o && (clearTimeout(o), o = null), a();
|
|
20
|
+
i && !o && (o = setTimeout(() => {
|
|
21
|
+
n && clearTimeout(n), o = null, a();
|
|
22
|
+
}, i)), n = setTimeout(() => {
|
|
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 && (
|
|
37
|
-
|
|
38
|
-
}, v)), !
|
|
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 wt(
|
|
42
|
-
return
|
|
41
|
+
function wt(e) {
|
|
42
|
+
return e;
|
|
43
43
|
}
|
|
44
|
-
function bt(
|
|
45
|
-
let
|
|
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
|
-
K(
|
|
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 && (
|
|
52
|
+
return a.value && (n = i(), a.value = !1), o(), n;
|
|
53
53
|
},
|
|
54
54
|
set(u) {
|
|
55
55
|
f?.(u);
|
|
@@ -57,51 +57,51 @@ function bt(t, e) {
|
|
|
57
57
|
}));
|
|
58
58
|
return Object.isExtensible(v) && (v.trigger = s), v;
|
|
59
59
|
}
|
|
60
|
-
function Ne(
|
|
61
|
-
return
|
|
60
|
+
function Ne(e) {
|
|
61
|
+
return at() ? (rt(e), !0) : !1;
|
|
62
62
|
}
|
|
63
|
-
function Ve(
|
|
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 je(
|
|
70
|
-
Be() ?
|
|
69
|
+
function je(e, t = !0) {
|
|
70
|
+
Be() ? le(e) : t ? e() : _e(e);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
var
|
|
74
|
-
const
|
|
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
|
|
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
|
|
90
|
-
var
|
|
91
|
-
for (var
|
|
92
|
-
|
|
93
|
-
if (
|
|
94
|
-
for (var
|
|
95
|
-
|
|
96
|
-
return
|
|
89
|
+
var Te = Object.getOwnPropertySymbols, Lt = Object.prototype.hasOwnProperty, Tt = Object.prototype.propertyIsEnumerable, Ot = (e, t) => {
|
|
90
|
+
var n = {};
|
|
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
|
+
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 = K(() =>
|
|
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
|
};
|
|
@@ -110,57 +110,57 @@ function $t(t, e, l = {}) {
|
|
|
110
110
|
stop: c
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
|
-
function Dt(
|
|
114
|
-
const { box:
|
|
115
|
-
return $t(
|
|
116
|
-
const i =
|
|
117
|
-
i ? (
|
|
118
|
-
},
|
|
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
|
|
131
|
-
const
|
|
132
|
-
document:
|
|
133
|
-
immediate:
|
|
130
|
+
function Ue(e, t = {}) {
|
|
131
|
+
const n = h(!1), {
|
|
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
|
-
}, { immediate: !0 }),
|
|
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
|
|
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
|
|
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],
|
|
@@ -191,19 +191,19 @@ const Ht = {
|
|
|
191
191
|
Pt({
|
|
192
192
|
linear: wt
|
|
193
193
|
}, Ht);
|
|
194
|
-
function At(
|
|
195
|
-
const { scrollEndHook:
|
|
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
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
|
-
|
|
206
|
+
le(() => {
|
|
207
207
|
}), Ie(() => cancelAnimationFrame(v)), K(
|
|
208
208
|
[s.width, s.height, c],
|
|
209
209
|
([g, y]) => {
|
|
@@ -216,8 +216,8 @@ function At(t, e) {
|
|
|
216
216
|
function P() {
|
|
217
217
|
i.value = !1;
|
|
218
218
|
}
|
|
219
|
-
function
|
|
220
|
-
i.value = !0,
|
|
219
|
+
function N() {
|
|
220
|
+
i.value = !0, n?.();
|
|
221
221
|
}
|
|
222
222
|
function U() {
|
|
223
223
|
cancelAnimationFrame(v), v = requestAnimationFrame($);
|
|
@@ -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,22 +246,22 @@ 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
|
}
|
|
@@ -273,7 +273,7 @@ function At(t, e) {
|
|
|
273
273
|
}
|
|
274
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,8 +281,8 @@ 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
287
|
totalHeight: w,
|
|
288
288
|
clientHeight: s.height,
|
|
@@ -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
309
|
boolRef: b(() => !1),
|
|
310
310
|
arrayRef: b(() => [])
|
|
311
|
-
},
|
|
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,39 +321,39 @@ function bl() {
|
|
|
321
321
|
unselectAll: u
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
function
|
|
325
|
-
const
|
|
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
|
-
|
|
327
|
+
e.value.forEach((u) => {
|
|
328
|
+
n.value[u[t]] = !0;
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
function s() {
|
|
332
|
-
|
|
332
|
+
n.value = {};
|
|
333
333
|
}
|
|
334
334
|
function i(u) {
|
|
335
335
|
u.forEach((r) => {
|
|
336
|
-
|
|
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
|
-
|
|
341
|
+
n.value[r[t]] && delete n.value[r[t]];
|
|
342
342
|
});
|
|
343
343
|
}
|
|
344
344
|
function v(u) {
|
|
345
|
-
return !!
|
|
345
|
+
return !!n.value[u[t]];
|
|
346
346
|
}
|
|
347
347
|
function c(u) {
|
|
348
348
|
u.forEach((r) => {
|
|
349
|
-
v(r) ? delete
|
|
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 Cl(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:
|
|
375
|
-
scrollOptions:
|
|
376
|
-
getSelectMap:
|
|
372
|
+
function ot({
|
|
373
|
+
attribute: e,
|
|
374
|
+
selectWay: t = "colum",
|
|
375
|
+
scrollOptions: n = {},
|
|
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
384
|
const f = b(
|
|
385
|
-
() =>
|
|
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
|
-
} : { left: 0, top: 0, width: 0, height: 0 }), { margin: P = 50, startSpeed:
|
|
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 =
|
|
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 = w.value.height -
|
|
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 *
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
return -O *
|
|
418
|
+
const I = C.value, T = I.bottom - m;
|
|
419
|
+
if (T < x)
|
|
420
|
+
return O * G(1 - T / x);
|
|
421
|
+
const V = m - I.top;
|
|
422
|
+
if (V < x)
|
|
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
432
|
w.value.sync();
|
|
433
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
|
|
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
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 &&
|
|
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
455
|
_ + w.value.top,
|
|
456
|
-
w.value.height +
|
|
456
|
+
w.value.height + C.value.top
|
|
457
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
|
-
function
|
|
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 lt({
|
|
|
497
497
|
dragStart: y,
|
|
498
498
|
dragMove: F,
|
|
499
499
|
dragEnd: H,
|
|
500
|
-
onScroll:
|
|
500
|
+
onScroll: B,
|
|
501
501
|
isSingleClick: D,
|
|
502
|
-
cancelSelectAllBySingleClick:
|
|
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 El(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
558
|
function w() {
|
|
559
|
-
d(),
|
|
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
|
|
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(
|
|
580
|
-
},
|
|
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
|
+
}, n));
|
|
581
581
|
}
|
|
582
|
-
function u(
|
|
582
|
+
function u(C) {
|
|
583
583
|
c();
|
|
584
|
-
const { clientX: w, clientY:
|
|
585
|
-
i(w,
|
|
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
|
-
|
|
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
597
|
} catch (w) {
|
|
598
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__ */ N({
|
|
|
611
631
|
dialogClass: { default: "" }
|
|
612
632
|
},
|
|
613
633
|
emits: ["update:visiable"],
|
|
614
|
-
setup(
|
|
615
|
-
const
|
|
616
|
-
|
|
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
|
|
640
|
-
for (const [
|
|
641
|
-
|
|
642
|
-
return
|
|
643
|
-
},
|
|
644
|
-
function
|
|
645
|
-
function
|
|
646
|
-
const
|
|
656
|
+
const J = (e, t) => {
|
|
657
|
+
const n = e.__vccOpts || e;
|
|
658
|
+
for (const [o, l] of t)
|
|
659
|
+
n[o] = l;
|
|
660
|
+
return n;
|
|
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(
|
|
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:
|
|
674
|
-
delay:
|
|
689
|
+
function Nt({
|
|
690
|
+
component: e,
|
|
691
|
+
componentProps: t,
|
|
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,63 +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:
|
|
699
|
-
delay:
|
|
714
|
+
function $n({
|
|
715
|
+
component: e,
|
|
716
|
+
componentProps: t,
|
|
717
|
+
delay: n = 300
|
|
700
718
|
}) {
|
|
701
|
-
const { LoadingComp:
|
|
702
|
-
component:
|
|
703
|
-
componentProps:
|
|
704
|
-
delay:
|
|
705
|
-
}),
|
|
719
|
+
const { LoadingComp: o } = Nt({
|
|
720
|
+
component: e,
|
|
721
|
+
componentProps: t,
|
|
722
|
+
delay: n
|
|
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)),
|
|
717
|
-
|
|
718
|
-
],
|
|
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 = [
|
|
735
|
+
jt
|
|
736
|
+
], Ut = /* @__PURE__ */ Y({
|
|
719
737
|
__name: "DefaultLoading",
|
|
720
738
|
props: {
|
|
721
739
|
width: { default: 24 },
|
|
722
740
|
height: { default: 24 }
|
|
723
741
|
},
|
|
724
|
-
setup(
|
|
725
|
-
return
|
|
726
|
-
d8dfa9f0:
|
|
727
|
-
"2941c2e5":
|
|
728
|
-
})), (
|
|
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));
|
|
729
747
|
}
|
|
730
748
|
});
|
|
731
|
-
const
|
|
749
|
+
const Dn = /* @__PURE__ */ J(Ut, [["__scopeId", "data-v-d0ad7597"]]), qt = ["onClick"], Qt = /* @__PURE__ */ Y({
|
|
732
750
|
__name: "Toast",
|
|
733
751
|
props: {
|
|
734
752
|
message: null,
|
|
735
753
|
position: null,
|
|
736
754
|
buttonClickEvent: null
|
|
737
755
|
},
|
|
738
|
-
setup(
|
|
739
|
-
const
|
|
740
|
-
switch (
|
|
756
|
+
setup(e) {
|
|
757
|
+
const t = e, n = h(), o = h(), l = h(), a = b(() => {
|
|
758
|
+
switch (t.position) {
|
|
741
759
|
case "top":
|
|
742
760
|
return 10;
|
|
743
761
|
case "middle":
|
|
@@ -750,8 +768,8 @@ const Ll = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-d0ad7597"]]), Kt = ["onC
|
|
|
750
768
|
borderRadius: "10px",
|
|
751
769
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
752
770
|
padding: "14px 19px",
|
|
753
|
-
top: `calc(${a.value}% - ${
|
|
754
|
-
left: `calc(50% - ${
|
|
771
|
+
top: `calc(${a.value}% - ${l.value}px)`,
|
|
772
|
+
left: `calc(50% - ${o.value}px)`
|
|
755
773
|
})), i = b(() => ({
|
|
756
774
|
width: "fit-content",
|
|
757
775
|
display: "flex",
|
|
@@ -761,59 +779,59 @@ const Ll = /* @__PURE__ */ J(Yt, [["__scopeId", "data-v-d0ad7597"]]), Kt = ["onC
|
|
|
761
779
|
fontSize: "14px"
|
|
762
780
|
}));
|
|
763
781
|
function f() {
|
|
764
|
-
!
|
|
782
|
+
!t.buttonClickEvent || t.buttonClickEvent();
|
|
765
783
|
}
|
|
766
784
|
return _e(() => {
|
|
767
|
-
|
|
785
|
+
o.value = n.value.offsetWidth / 2, l.value = n.value.offsetHeight / 2;
|
|
768
786
|
}), (v, c) => (M(), A("div", {
|
|
769
|
-
onClick:
|
|
787
|
+
onClick: Fe(f, ["stop"]),
|
|
770
788
|
id: "toastWrapper",
|
|
771
789
|
ref_key: "toastWrapper",
|
|
772
|
-
ref:
|
|
790
|
+
ref: n,
|
|
773
791
|
class: "toastWrapper",
|
|
774
|
-
style: W([
|
|
792
|
+
style: W([R(s), { zIndex: 9999999 }])
|
|
775
793
|
}, [
|
|
776
|
-
|
|
777
|
-
style: W(
|
|
794
|
+
L("div", {
|
|
795
|
+
style: W(R(i))
|
|
778
796
|
}, [
|
|
779
|
-
|
|
797
|
+
L("span", null, We(e.message), 1)
|
|
780
798
|
], 4)
|
|
781
|
-
], 12,
|
|
799
|
+
], 12, qt));
|
|
782
800
|
}
|
|
783
801
|
});
|
|
784
|
-
const
|
|
802
|
+
const Xt = /* @__PURE__ */ J(Qt, [["__scopeId", "data-v-533e986b"]]), Re = {
|
|
785
803
|
message: "\u61D2\u732B\u4E91 Yes!!!",
|
|
786
804
|
position: "middle",
|
|
787
805
|
duration: 1500,
|
|
788
806
|
buttonClickEvent: () => {
|
|
789
807
|
}
|
|
790
808
|
};
|
|
791
|
-
class
|
|
809
|
+
class Rn {
|
|
792
810
|
options;
|
|
793
811
|
container;
|
|
794
|
-
constructor(
|
|
795
|
-
this.options =
|
|
812
|
+
constructor(t) {
|
|
813
|
+
this.options = t, this.container = document.createElement("div");
|
|
796
814
|
}
|
|
797
815
|
present() {
|
|
798
|
-
const
|
|
799
|
-
ue(
|
|
800
|
-
const
|
|
816
|
+
const t = Q(Q(Xt), { ...Re, ...this.options });
|
|
817
|
+
ue(t, this.container), document.body.insertBefore(this.container, document.body.firstChild);
|
|
818
|
+
const n = this.options.duration || Re.duration;
|
|
801
819
|
setTimeout(() => {
|
|
802
820
|
this.dismiss();
|
|
803
|
-
},
|
|
821
|
+
}, n);
|
|
804
822
|
}
|
|
805
823
|
dismiss() {
|
|
806
824
|
if (this.container) {
|
|
807
|
-
const
|
|
825
|
+
const t = this.container.querySelector(
|
|
808
826
|
"#toastWrapper"
|
|
809
827
|
);
|
|
810
|
-
|
|
828
|
+
t.style.opacity = "0", t.style.transition = "opacity 0.4s ease-in", setTimeout(() => {
|
|
811
829
|
this.container && (ue(null, this.container), document.body.removeChild(this.container));
|
|
812
830
|
}, 500);
|
|
813
831
|
}
|
|
814
832
|
}
|
|
815
833
|
}
|
|
816
|
-
const
|
|
834
|
+
const Gt = ["xlink:href", "fill", "color"], Bn = /* @__PURE__ */ Y({
|
|
817
835
|
__name: "SvgIcon",
|
|
818
836
|
props: {
|
|
819
837
|
name: null,
|
|
@@ -822,32 +840,32 @@ const Qt = ["xlink:href", "fill", "color"], $l = /* @__PURE__ */ N({
|
|
|
822
840
|
width: null,
|
|
823
841
|
height: null
|
|
824
842
|
},
|
|
825
|
-
setup(
|
|
826
|
-
const
|
|
827
|
-
width: `${
|
|
828
|
-
height: `${
|
|
829
|
-
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"
|
|
830
848
|
}));
|
|
831
|
-
return (
|
|
849
|
+
return (l, a) => (M(), A("svg", {
|
|
832
850
|
"aria-hidden": "",
|
|
833
|
-
style: W(
|
|
851
|
+
style: W(R(o))
|
|
834
852
|
}, [
|
|
835
|
-
|
|
836
|
-
"xlink:href":
|
|
837
|
-
fill:
|
|
838
|
-
color:
|
|
839
|
-
}, null, 8,
|
|
853
|
+
L("use", {
|
|
854
|
+
"xlink:href": R(n),
|
|
855
|
+
fill: e.color,
|
|
856
|
+
color: e.color
|
|
857
|
+
}, null, 8, Gt)
|
|
840
858
|
], 4));
|
|
841
859
|
}
|
|
842
860
|
});
|
|
843
|
-
function
|
|
861
|
+
function Zt(e) {
|
|
844
862
|
const {
|
|
845
|
-
containerEl:
|
|
846
|
-
sliderEl:
|
|
847
|
-
autoHeight:
|
|
848
|
-
performance:
|
|
863
|
+
containerEl: t,
|
|
864
|
+
sliderEl: n,
|
|
865
|
+
autoHeight: o,
|
|
866
|
+
performance: l = {},
|
|
849
867
|
maxHeightRatio: a = 0.9
|
|
850
|
-
} =
|
|
868
|
+
} = e, s = h(!0), i = Ve(X, 100);
|
|
851
869
|
let f, v = "";
|
|
852
870
|
const c = h(0), d = h(0), u = h(0), r = h({
|
|
853
871
|
top: 0,
|
|
@@ -856,32 +874,32 @@ function Gt(t) {
|
|
|
856
874
|
clientHeight: 0
|
|
857
875
|
}), p = h({
|
|
858
876
|
clientHeight: 0
|
|
859
|
-
}), S = b(() => !!d.value),
|
|
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(
|
|
860
878
|
r.value.clientHeight / r.value.scrollHeight,
|
|
861
879
|
0.05
|
|
862
|
-
)),
|
|
880
|
+
)), N = b(() => P.value > a ? 0 : P.value * r.value.clientHeight), U = b(() => ({
|
|
863
881
|
willChange: "transform",
|
|
864
882
|
transform: `translate3d(0,${u.value}px,0)`,
|
|
865
|
-
height:
|
|
883
|
+
height: o ? `${N.value}px` : void 0
|
|
866
884
|
}));
|
|
867
|
-
function $(
|
|
868
|
-
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");
|
|
869
887
|
}
|
|
870
888
|
function x() {
|
|
871
|
-
|
|
889
|
+
t.value.style.scrollBehavior = v, d.value = 0, i();
|
|
872
890
|
}
|
|
873
891
|
function O() {
|
|
874
892
|
s.value = !1;
|
|
875
893
|
}
|
|
876
|
-
function
|
|
894
|
+
function X() {
|
|
877
895
|
S.value || (s.value = !0);
|
|
878
896
|
}
|
|
879
|
-
function
|
|
897
|
+
function G(B) {
|
|
880
898
|
if (!S.value)
|
|
881
899
|
return;
|
|
882
|
-
let D =
|
|
883
|
-
D < 0 ? u.value = 0 : D >= w.value ? u.value = w.value : u.value = D,
|
|
884
|
-
top: u.value / w.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
|
|
885
903
|
});
|
|
886
904
|
}
|
|
887
905
|
function k() {
|
|
@@ -891,49 +909,49 @@ function Gt(t) {
|
|
|
891
909
|
cancelAnimationFrame(f), f = requestAnimationFrame(se);
|
|
892
910
|
}
|
|
893
911
|
function se() {
|
|
894
|
-
|
|
912
|
+
t.value && (c.value = l.scrollTop?.value ?? t.value.scrollTop, u.value = c.value / E.value * w.value);
|
|
895
913
|
}
|
|
896
|
-
function Z(
|
|
914
|
+
function Z(B) {
|
|
897
915
|
let D = "addEventListener";
|
|
898
|
-
|
|
916
|
+
B === "add" ? D = "addEventListener" : D = "removeEventListener", n.value?.[D]("pointerdown", $, {
|
|
899
917
|
passive: !0
|
|
900
|
-
}), window[D]("pointermove",
|
|
918
|
+
}), window[D]("pointermove", G, { passive: !0 }), window[D]("pointerup", x, { passive: !0 });
|
|
901
919
|
}
|
|
902
|
-
const te = new MutationObserver((
|
|
903
|
-
|
|
920
|
+
const te = new MutationObserver((B) => {
|
|
921
|
+
B.map((ne) => ne.oldValue).join().includes("height") && g();
|
|
904
922
|
});
|
|
905
923
|
function g() {
|
|
906
|
-
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;
|
|
907
925
|
}
|
|
908
926
|
function y() {
|
|
909
927
|
O(), setTimeout(() => {
|
|
910
|
-
p.value.clientHeight =
|
|
928
|
+
p.value.clientHeight = n.value?.clientHeight ?? 0, X();
|
|
911
929
|
}, 150);
|
|
912
930
|
}
|
|
913
|
-
function F(
|
|
914
|
-
let q = document.getElementById(
|
|
915
|
-
q || (q = document.createElement("style"), q.id =
|
|
916
|
-
const ae = q.sheet.cssRules, re = ae.length, m = `${
|
|
931
|
+
function F(B, D, ne = "dynamic-styles") {
|
|
932
|
+
let q = document.getElementById(ne);
|
|
933
|
+
q || (q = document.createElement("style"), q.id = ne, document.head.appendChild(q));
|
|
934
|
+
const ae = q.sheet.cssRules, re = ae.length, m = `${B} { ${D} }`;
|
|
917
935
|
for (let _ = 0; _ < re; _++) {
|
|
918
936
|
const I = ae[_];
|
|
919
|
-
if (I.selectorText ===
|
|
937
|
+
if (I.selectorText === B && I.style.cssText === D)
|
|
920
938
|
return;
|
|
921
939
|
}
|
|
922
940
|
q.sheet.insertRule(m, re);
|
|
923
941
|
}
|
|
924
942
|
function H() {
|
|
925
|
-
|
|
943
|
+
t.value && n.value ? (F(
|
|
926
944
|
".hide-scrollbar",
|
|
927
945
|
"scrollbar-width: none; -ms-overflow-style: none;"
|
|
928
|
-
), 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, {
|
|
929
947
|
passive: !0
|
|
930
|
-
}), Z("add"), te.observe(
|
|
948
|
+
}), Z("add"), te.observe(t.value, {
|
|
931
949
|
subtree: !0,
|
|
932
950
|
attributeOldValue: !0,
|
|
933
951
|
attributeFilter: ["style"]
|
|
934
952
|
}), setTimeout(() => {
|
|
935
953
|
g();
|
|
936
|
-
}, 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 });
|
|
937
955
|
}
|
|
938
956
|
return K(c, () => {
|
|
939
957
|
O(), i();
|
|
@@ -942,13 +960,13 @@ function Gt(t) {
|
|
|
942
960
|
isDragSlider: S,
|
|
943
961
|
offsetTop: u,
|
|
944
962
|
scrollTop: c,
|
|
945
|
-
scrollable:
|
|
963
|
+
scrollable: C,
|
|
946
964
|
sliderPos: U,
|
|
947
965
|
init: H,
|
|
948
966
|
modifySliderEventListener: Z
|
|
949
967
|
};
|
|
950
968
|
}
|
|
951
|
-
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({
|
|
952
970
|
__name: "ScrollBar",
|
|
953
971
|
props: {
|
|
954
972
|
containerEl: null,
|
|
@@ -956,14 +974,14 @@ const Xt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Zt = /* @__PURE__ *
|
|
|
956
974
|
autoHeight: { type: Boolean },
|
|
957
975
|
performance: null
|
|
958
976
|
},
|
|
959
|
-
setup(
|
|
960
|
-
const
|
|
977
|
+
setup(e, { expose: t }) {
|
|
978
|
+
const n = e, o = !!vt().default, l = h(null), a = b(() => n.containerEl), s = Zt({
|
|
961
979
|
containerEl: a,
|
|
962
|
-
sliderEl:
|
|
963
|
-
autoHeight:
|
|
964
|
-
performance:
|
|
965
|
-
}), { scrollable: i, isScrollEnd: f, sliderPos: v } = s, c = h(!1), d =
|
|
966
|
-
|
|
980
|
+
sliderEl: l,
|
|
981
|
+
autoHeight: o ? n.autoHeight : !0,
|
|
982
|
+
performance: n.performance
|
|
983
|
+
}), { scrollable: i, isScrollEnd: f, sliderPos: v } = s, c = h(!1), d = n.autoHide ? b(() => c.value || !f.value) : b(() => i.value);
|
|
984
|
+
le(() => {
|
|
967
985
|
_e(() => {
|
|
968
986
|
s.init();
|
|
969
987
|
});
|
|
@@ -976,34 +994,34 @@ const Xt = (t) => (ce("data-v-edec7292"), t = t(), de(), t), Zt = /* @__PURE__ *
|
|
|
976
994
|
function r() {
|
|
977
995
|
c.value = !1;
|
|
978
996
|
}
|
|
979
|
-
return
|
|
997
|
+
return t({ uScrollBarReturn: s }), (p, S) => (M(), Me(Pe, null, {
|
|
980
998
|
default: He(() => [
|
|
981
|
-
|
|
999
|
+
Ae(L("div", {
|
|
982
1000
|
ref_key: "sliderRef",
|
|
983
|
-
ref:
|
|
1001
|
+
ref: l,
|
|
984
1002
|
class: "slider-wrapper",
|
|
985
1003
|
onMouseenter: u,
|
|
986
1004
|
onMouseleave: r,
|
|
987
|
-
style: W(
|
|
1005
|
+
style: W(R(v))
|
|
988
1006
|
}, [
|
|
989
1007
|
ye(p.$slots, "default", {}, () => [
|
|
990
|
-
|
|
1008
|
+
en
|
|
991
1009
|
], !0)
|
|
992
1010
|
], 36), [
|
|
993
|
-
[ft,
|
|
1011
|
+
[ft, R(d)]
|
|
994
1012
|
])
|
|
995
1013
|
]),
|
|
996
1014
|
_: 3
|
|
997
1015
|
}));
|
|
998
1016
|
}
|
|
999
1017
|
});
|
|
1000
|
-
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 = {
|
|
1001
1019
|
key: 0,
|
|
1002
1020
|
class: "pull-arrow-circle"
|
|
1003
|
-
},
|
|
1021
|
+
}, sn = {
|
|
1004
1022
|
key: 0,
|
|
1005
1023
|
class: "box-load"
|
|
1006
|
-
},
|
|
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({
|
|
1007
1025
|
__name: "PullRefresh",
|
|
1008
1026
|
props: {
|
|
1009
1027
|
refresh: null,
|
|
@@ -1011,35 +1029,35 @@ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (t) =
|
|
|
1011
1029
|
scrollTop: null,
|
|
1012
1030
|
pullRefreshContainer: null
|
|
1013
1031
|
},
|
|
1014
|
-
setup(
|
|
1015
|
-
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(() => ({
|
|
1016
1034
|
transition: `${u.value}ms`,
|
|
1017
|
-
transform: `translate3d(0,${
|
|
1035
|
+
transform: `translate3d(0,${l.value}px, 0) scale(${a.value})`
|
|
1018
1036
|
})), w = b(() => ({
|
|
1019
|
-
borderColor:
|
|
1037
|
+
borderColor: o,
|
|
1020
1038
|
transition: u.value,
|
|
1021
1039
|
transform: `rotate(${100 + s.value}deg)`,
|
|
1022
1040
|
opacity: i.value
|
|
1023
1041
|
}));
|
|
1024
1042
|
K(r, (x) => {
|
|
1025
|
-
x === 0 && (
|
|
1043
|
+
x === 0 && (l.value = -50, i.value = 0.3);
|
|
1026
1044
|
}), K(c, (x) => {
|
|
1027
1045
|
if (r.value === 2)
|
|
1028
1046
|
return;
|
|
1029
|
-
const O = Math.pow(x,
|
|
1030
|
-
O === 0 && (
|
|
1047
|
+
const O = Math.pow(x, n);
|
|
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);
|
|
1031
1049
|
});
|
|
1032
|
-
const
|
|
1033
|
-
|
|
1034
|
-
},
|
|
1035
|
-
const O = x.touches[0].pageY -
|
|
1036
|
-
|
|
1050
|
+
const E = h(0), P = (x) => {
|
|
1051
|
+
E.value = x.touches[0].pageY;
|
|
1052
|
+
}, N = (x) => {
|
|
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()));
|
|
1037
1055
|
}, U = () => {
|
|
1038
|
-
if (
|
|
1056
|
+
if (t.refreshOff || !t?.refresh || r.value === 2)
|
|
1039
1057
|
return;
|
|
1040
1058
|
v.value = 0, d.value = 300;
|
|
1041
|
-
const x = Math.pow(c.value,
|
|
1042
|
-
$.value.style.transition = `${d.value}ms`, x > 50 ? (r.value = 2, c.value = Math.pow(50, 1 /
|
|
1059
|
+
const x = Math.pow(c.value, n);
|
|
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(() => {
|
|
1043
1061
|
p.value = "\u5237\u65B0\u6210\u529F";
|
|
1044
1062
|
}).catch(() => {
|
|
1045
1063
|
p.value = "\u5237\u65B0\u5931\u8D25";
|
|
@@ -1047,46 +1065,46 @@ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (t) =
|
|
|
1047
1065
|
setTimeout(() => {
|
|
1048
1066
|
r.value = 0, c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(
|
|
1049
1067
|
c.value,
|
|
1050
|
-
|
|
1068
|
+
n
|
|
1051
1069
|
)}px, 0)`, setTimeout(() => {
|
|
1052
1070
|
p.value = void 0;
|
|
1053
1071
|
}, u.value);
|
|
1054
1072
|
}, 600);
|
|
1055
|
-
})) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value,
|
|
1073
|
+
})) : (c.value = 0, $.value.style.transform = `translate3d(0, ${Math.pow(c.value, n)}px, 0)`);
|
|
1056
1074
|
}, $ = h(null);
|
|
1057
|
-
return
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
), $.value?.addEventListener("touchstart", P), $.value?.addEventListener("touchmove",
|
|
1061
|
-
}), (x, O) => (M(), A("div",
|
|
1062
|
-
|
|
1075
|
+
return le(() => {
|
|
1076
|
+
t?.refreshOff || ($.value = document.querySelector(
|
|
1077
|
+
t.pullRefreshContainer
|
|
1078
|
+
), $.value?.addEventListener("touchstart", P), $.value?.addEventListener("touchmove", N), $.value?.addEventListener("touchend", U));
|
|
1079
|
+
}), (x, O) => (M(), A("div", on, [
|
|
1080
|
+
L("div", {
|
|
1063
1081
|
class: "pull-refresh-box",
|
|
1064
|
-
style: W(
|
|
1082
|
+
style: W(R(C))
|
|
1065
1083
|
}, [
|
|
1066
|
-
p.value ? (M(), A("div",
|
|
1067
|
-
r.value == 2 ? (M(), A("div",
|
|
1068
|
-
|
|
1069
|
-
|
|
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", {
|
|
1070
1088
|
class: "left-circle",
|
|
1071
|
-
style: W({ backgroundColor:
|
|
1089
|
+
style: W({ backgroundColor: o })
|
|
1072
1090
|
}, null, 4)
|
|
1073
1091
|
]),
|
|
1074
|
-
|
|
1075
|
-
|
|
1092
|
+
L("div", rn, [
|
|
1093
|
+
L("div", {
|
|
1076
1094
|
class: "right-circle",
|
|
1077
|
-
style: W({ backgroundColor:
|
|
1095
|
+
style: W({ backgroundColor: o })
|
|
1078
1096
|
}, null, 4)
|
|
1079
1097
|
]),
|
|
1080
|
-
|
|
1098
|
+
un
|
|
1081
1099
|
])) : (M(), A("div", {
|
|
1082
1100
|
key: 1,
|
|
1083
1101
|
class: "pull-circle-line",
|
|
1084
|
-
style: W(
|
|
1102
|
+
style: W(R(w))
|
|
1085
1103
|
}, [
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
class:
|
|
1089
|
-
style: W({ borderBottomColor:
|
|
1104
|
+
L("div", cn, [
|
|
1105
|
+
L("div", {
|
|
1106
|
+
class: ke(["arrows", { opacity: f.value }]),
|
|
1107
|
+
style: W({ borderBottomColor: o })
|
|
1090
1108
|
}, null, 6)
|
|
1091
1109
|
])
|
|
1092
1110
|
], 4))
|
|
@@ -1095,10 +1113,10 @@ const Dl = /* @__PURE__ */ J(Jt, [["__scopeId", "data-v-edec7292"]]), el = (t) =
|
|
|
1095
1113
|
]));
|
|
1096
1114
|
}
|
|
1097
1115
|
});
|
|
1098
|
-
const
|
|
1116
|
+
const fn = /* @__PURE__ */ J(vn, [["__scopeId", "data-v-18377f18"]]), hn = {
|
|
1099
1117
|
inheritAttrs: !1
|
|
1100
|
-
},
|
|
1101
|
-
...
|
|
1118
|
+
}, pn = /* @__PURE__ */ Y({
|
|
1119
|
+
...hn,
|
|
1102
1120
|
__name: "VirtualList",
|
|
1103
1121
|
props: {
|
|
1104
1122
|
data: null,
|
|
@@ -1108,12 +1126,12 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-18377f18"]]), dl = {
|
|
|
1108
1126
|
refreshOff: { type: Boolean, default: !1 }
|
|
1109
1127
|
},
|
|
1110
1128
|
emits: ["scrollEnd"],
|
|
1111
|
-
setup(
|
|
1112
|
-
const
|
|
1113
|
-
itemHeight: (u) =>
|
|
1114
|
-
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,
|
|
1115
1133
|
scrollEndHook: () => {
|
|
1116
|
-
|
|
1134
|
+
n("scrollEnd");
|
|
1117
1135
|
}
|
|
1118
1136
|
}), {
|
|
1119
1137
|
list: a,
|
|
@@ -1122,33 +1140,33 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-18377f18"]]), dl = {
|
|
|
1122
1140
|
innerProps: f,
|
|
1123
1141
|
getItemHeightData: v,
|
|
1124
1142
|
scrollTop: c
|
|
1125
|
-
} =
|
|
1126
|
-
|
|
1127
|
-
vListReturn:
|
|
1143
|
+
} = l;
|
|
1144
|
+
t({
|
|
1145
|
+
vListReturn: l
|
|
1128
1146
|
});
|
|
1129
1147
|
const d = "virtualListWrapper" + new Date().getTime();
|
|
1130
|
-
return (u, r) => (M(), A(
|
|
1131
|
-
pt(
|
|
1132
|
-
refresh:
|
|
1133
|
-
refreshOff:
|
|
1134
|
-
scrollTop:
|
|
1148
|
+
return (u, r) => (M(), A(Ce, null, [
|
|
1149
|
+
pt(fn, {
|
|
1150
|
+
refresh: e.refresh,
|
|
1151
|
+
refreshOff: e.refreshOff,
|
|
1152
|
+
scrollTop: R(c),
|
|
1135
1153
|
pullRefreshContainer: "#" + d
|
|
1136
1154
|
}, null, 8, ["refresh", "refreshOff", "scrollTop", "pullRefreshContainer"]),
|
|
1137
|
-
|
|
1155
|
+
L("div", {
|
|
1138
1156
|
class: "virtualListWrapper",
|
|
1139
1157
|
id: d
|
|
1140
1158
|
}, [
|
|
1141
|
-
|
|
1142
|
-
onScrollPassive: r[0] || (r[0] = (...p) =>
|
|
1143
|
-
ref:
|
|
1159
|
+
L("div", mt({
|
|
1160
|
+
onScrollPassive: r[0] || (r[0] = (...p) => R(s).onScroll && R(s).onScroll(...p)),
|
|
1161
|
+
ref: R(s).ref,
|
|
1144
1162
|
class: "virtualList"
|
|
1145
1163
|
}, u.$attrs), [
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
(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", {
|
|
1149
1167
|
key: p,
|
|
1150
1168
|
style: W({
|
|
1151
|
-
height: `${
|
|
1169
|
+
height: `${R(v)(p).height}px`,
|
|
1152
1170
|
display: "flex"
|
|
1153
1171
|
})
|
|
1154
1172
|
}, [
|
|
@@ -1164,73 +1182,73 @@ const cl = /* @__PURE__ */ J(il, [["__scopeId", "data-v-18377f18"]]), dl = {
|
|
|
1164
1182
|
], 64));
|
|
1165
1183
|
}
|
|
1166
1184
|
});
|
|
1167
|
-
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", {
|
|
1168
1186
|
id: "group-1",
|
|
1169
1187
|
stroke: "none",
|
|
1170
1188
|
"stroke-width": "1",
|
|
1171
1189
|
fill: "none",
|
|
1172
1190
|
"fill-rule": "evenodd"
|
|
1173
1191
|
}, [
|
|
1174
|
-
/* @__PURE__ */
|
|
1192
|
+
/* @__PURE__ */ L("path", {
|
|
1175
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",
|
|
1176
1194
|
id: "path-1",
|
|
1177
1195
|
fill: "#FFF"
|
|
1178
1196
|
})
|
|
1179
|
-
], -1)),
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
],
|
|
1197
|
+
], -1)), bn = [
|
|
1198
|
+
yn,
|
|
1199
|
+
wn
|
|
1200
|
+
], En = /* @__PURE__ */ Y({
|
|
1183
1201
|
__name: "Loading",
|
|
1184
1202
|
props: {
|
|
1185
1203
|
width: { default: "90" },
|
|
1186
1204
|
height: { default: "90" },
|
|
1187
1205
|
duration: { default: 1300 }
|
|
1188
1206
|
},
|
|
1189
|
-
setup(
|
|
1190
|
-
const
|
|
1191
|
-
|
|
1192
|
-
"703ef503":
|
|
1207
|
+
setup(e) {
|
|
1208
|
+
const t = e;
|
|
1209
|
+
ze((o) => ({
|
|
1210
|
+
"703ef503": n
|
|
1193
1211
|
}));
|
|
1194
|
-
const
|
|
1195
|
-
return (
|
|
1196
|
-
|
|
1212
|
+
const n = `${t.duration}ms`;
|
|
1213
|
+
return (o, l) => (M(), A("div", mn, [
|
|
1214
|
+
gn,
|
|
1197
1215
|
(M(), A("svg", {
|
|
1198
1216
|
style: { position: "relative" },
|
|
1199
|
-
width:
|
|
1200
|
-
height:
|
|
1217
|
+
width: e.width,
|
|
1218
|
+
height: e.height,
|
|
1201
1219
|
viewBox: "0 0 260 260",
|
|
1202
1220
|
version: "1.1",
|
|
1203
1221
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1204
|
-
},
|
|
1222
|
+
}, bn, 8, _n))
|
|
1205
1223
|
]));
|
|
1206
1224
|
}
|
|
1207
1225
|
});
|
|
1208
|
-
const
|
|
1226
|
+
const Pn = /* @__PURE__ */ J(En, [["__scopeId", "data-v-40e00f20"]]);
|
|
1209
1227
|
export {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
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,
|
|
1217
1235
|
Ge as allSelectedKey,
|
|
1218
1236
|
Ft as closeDialogKey,
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
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,
|
|
1249
|
+
Tn as useDragSelectByMobile,
|
|
1250
|
+
Ln as useDragSelectByPc,
|
|
1251
|
+
xn as useSelectable,
|
|
1252
|
+
Sn as useSelectableInjectors,
|
|
1235
1253
|
At as useVirtualList
|
|
1236
1254
|
};
|