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