ljs-tools 0.8.15 → 0.8.16
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/index.css +1 -1
- package/index.js +58 -56
- package/index.umd.cjs +2 -2
- package/package.json +33 -2
package/index.js
CHANGED
|
@@ -3,13 +3,13 @@ var co = (e, n, r) => n in e ? lo(e, n, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var St = (e, n, r) => (co(e, typeof n != "symbol" ? n + "" : n, r), r);
|
|
4
4
|
import { getCurrentInstance as He, inject as Be, ref as ie, computed as H, unref as R, shallowRef as Rt, watchEffect as ba, readonly as uo, getCurrentScope as fo, onScopeDispose as _a, onMounted as qe, nextTick as Ee, watch as De, isRef as Ca, warn as xo, provide as bn, defineComponent as se, openBlock as $, createElementBlock as V, mergeProps as $t, renderSlot as me, createElementVNode as Y, toRef as n0, onUnmounted as vo, useAttrs as po, useSlots as Ea, normalizeClass as U, normalizeStyle as pe, createCommentVNode as ee, Fragment as $e, createBlock as re, withCtx as oe, resolveDynamicComponent as ke, withModifiers as Pt, createVNode as ve, toDisplayString as ce, onBeforeUnmount as Nt, Text as ho, reactive as Ba, h as mo, markRaw as r0, toRefs as go, resolveComponent as Se, Transition as _n, withDirectives as b0, withKeys as Wt, createTextVNode as Jt, vShow as _0, isVNode as Da, render as Aa, Teleport as wa, renderList as x0, pushScopeId as Cn, popScopeId as En } from "vue";
|
|
5
5
|
const yo = () => {
|
|
6
|
-
|
|
6
|
+
J.colorLog({ content: ["", "******************************************"] }), J.colorLog({ content: ["Core Dependencies:", "ljs-tools"] }), J.colorLog({ content: ["Author:", "LJS"] }), J.colorLog({ content: ["API", "https://ljs-y.github.io/ljs-vue3"], color: [
|
|
7
7
|
"background: #666666; color: #fff; border-radius: 4px 0 0 4px; padding: 3px 6px;",
|
|
8
8
|
"background: #FFF; border: 1px solid #666666; color: #fff; border-radius: 0 4px 4px 0; padding: 2px 6px;"
|
|
9
|
-
] }),
|
|
9
|
+
] }), J.colorLog({ content: ["", "******************************************"] });
|
|
10
10
|
};
|
|
11
11
|
function Bn(e) {
|
|
12
|
-
if (
|
|
12
|
+
if (J.fieldCheck(e))
|
|
13
13
|
return null;
|
|
14
14
|
const n = {};
|
|
15
15
|
let r = e.split("?");
|
|
@@ -30,13 +30,13 @@ function bo(e, n = location.search) {
|
|
|
30
30
|
return e in t ? t[e] : null;
|
|
31
31
|
}
|
|
32
32
|
function _o(e, n = !0) {
|
|
33
|
-
if (
|
|
33
|
+
if (J.fieldCheck(e))
|
|
34
34
|
return null;
|
|
35
35
|
let r = e.lastIndexOf(".");
|
|
36
36
|
return r === -1 ? null : (r = n ? r : r + 1, e.slice(r, e.length));
|
|
37
37
|
}
|
|
38
38
|
function Co(e, n = !1) {
|
|
39
|
-
if (
|
|
39
|
+
if (J.fieldCheck(e))
|
|
40
40
|
return null;
|
|
41
41
|
const r = e.lastIndexOf("/"), t = e.lastIndexOf("\\");
|
|
42
42
|
let a = r > t ? r : t;
|
|
@@ -204,7 +204,7 @@ function Po(e, n) {
|
|
|
204
204
|
t[a] = r[a];
|
|
205
205
|
return t;
|
|
206
206
|
}
|
|
207
|
-
const
|
|
207
|
+
const J = {
|
|
208
208
|
fieldCheck: Bo,
|
|
209
209
|
deepCopy: a0,
|
|
210
210
|
getTreeParents: Ia,
|
|
@@ -225,7 +225,7 @@ function Mo(e) {
|
|
|
225
225
|
r.address = t, e.commit("SET_menuNowOpen", r), e.commit("SET_menuOpenList", [r]);
|
|
226
226
|
}
|
|
227
227
|
function Pa({ data: e, value: n, key: r = "url" }) {
|
|
228
|
-
const t =
|
|
228
|
+
const t = J.getTreeParents({ data: e, value: n, key: r }), a = [];
|
|
229
229
|
return t.forEach((i) => {
|
|
230
230
|
const o = {
|
|
231
231
|
title: i.title,
|
|
@@ -241,11 +241,11 @@ function Ma({ menuList: e }) {
|
|
|
241
241
|
return {};
|
|
242
242
|
let n = {};
|
|
243
243
|
return e.forEach((r, t) => {
|
|
244
|
-
t === 0 && (!
|
|
244
|
+
t === 0 && (!J.fieldCheck(r.children) && r.children.length > 0 ? (r.open = !0, n = Ma({ menuList: r.children })) : n = r);
|
|
245
245
|
}), n;
|
|
246
246
|
}
|
|
247
247
|
function Ro({ store: e, path: n }) {
|
|
248
|
-
const r = e.getters.menuList, t =
|
|
248
|
+
const r = e.getters.menuList, t = J.handleTreeList(r), a = t.length;
|
|
249
249
|
for (let i = 0; i < a; i++) {
|
|
250
250
|
const o = t[i];
|
|
251
251
|
if (o.url === n)
|
|
@@ -258,11 +258,11 @@ function zo({ store: e, run: n, path: r, query: t = {} }) {
|
|
|
258
258
|
}
|
|
259
259
|
function Ra({ store: e, run: n, menuObj: r, query: t }) {
|
|
260
260
|
let a = e.getters.menuList;
|
|
261
|
-
if (
|
|
261
|
+
if (J.fieldCheck(r.children) && (r.children = []), r.children.length > 0) {
|
|
262
262
|
if (r.open)
|
|
263
263
|
r.open = !r.open;
|
|
264
264
|
else {
|
|
265
|
-
const i =
|
|
265
|
+
const i = J.getTreeParents({
|
|
266
266
|
data: a,
|
|
267
267
|
value: r.menuId,
|
|
268
268
|
key: "menuId"
|
|
@@ -271,7 +271,7 @@ function Ra({ store: e, run: n, menuObj: r, query: t }) {
|
|
|
271
271
|
}
|
|
272
272
|
e.commit("SET_menuList", a);
|
|
273
273
|
} else {
|
|
274
|
-
if (!
|
|
274
|
+
if (!J.fieldCheck(r.isFrame) && r.isFrame === !0) {
|
|
275
275
|
za(r.url);
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
@@ -281,15 +281,17 @@ function Ra({ store: e, run: n, menuObj: r, query: t }) {
|
|
|
281
281
|
return;
|
|
282
282
|
r.address = Pa({ data: e.getters.menuList, value: r.url });
|
|
283
283
|
let l = r;
|
|
284
|
-
r.choose = !r.choose, e.commit("SET_menuNowOpen", l)
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
284
|
+
if (r.choose = !r.choose, e.commit("SET_menuNowOpen", l), !J.fieldCheck(r.openType) && r.openType === "2") {
|
|
285
|
+
const c = o.length;
|
|
286
|
+
let s = !1;
|
|
287
|
+
for (let u = 0; u < c; u++)
|
|
288
|
+
if (o[u].url === r.url) {
|
|
289
|
+
s = !0;
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
s || (o = e.getters.menuOpenList, o.push(l), e.commit("SET_menuOpenList", o));
|
|
293
|
+
}
|
|
294
|
+
n.push({
|
|
293
295
|
path: r.url,
|
|
294
296
|
query: t
|
|
295
297
|
});
|
|
@@ -390,7 +392,7 @@ const ne = {
|
|
|
390
392
|
averageNum: No
|
|
391
393
|
};
|
|
392
394
|
function le(e, n) {
|
|
393
|
-
if (
|
|
395
|
+
if (J.fieldCheck(e))
|
|
394
396
|
return e;
|
|
395
397
|
const r = new Date(e), t = n || "{y}-{m}-{d} {h}:{i}:{s}", a = {
|
|
396
398
|
y: r.getFullYear(),
|
|
@@ -404,7 +406,7 @@ function le(e, n) {
|
|
|
404
406
|
return t.replace(/{(y|m|d|h|i|s|MS)+}/g, (i, o) => a[o]);
|
|
405
407
|
}
|
|
406
408
|
function Vo(e, n, r = 0) {
|
|
407
|
-
if (
|
|
409
|
+
if (J.fieldCheck(e))
|
|
408
410
|
return e;
|
|
409
411
|
if (r === 0) {
|
|
410
412
|
let t = new Date(e).getTime();
|
|
@@ -1718,8 +1720,8 @@ function ft() {
|
|
|
1718
1720
|
var p = v + b, g = x[p];
|
|
1719
1721
|
x[p] = (g << 8 | g >>> 24) & 16711935 | (g << 24 | g >>> 8) & 4278255360;
|
|
1720
1722
|
}
|
|
1721
|
-
var y = this._hash.words, E = x[v + 0], C = x[v + 1], B = x[v + 2], w = x[v + 3], P = x[v + 4], _ = x[v + 5], A = x[v + 6], F = x[v + 7], S = x[v + 8], O = x[v + 9], N = x[v + 10], L = x[v + 11], q = x[v + 12], W = x[v + 13],
|
|
1722
|
-
k = m(k, I, M, T, E, 7, s[0]), T = m(T, k, I, M, C, 12, s[1]), M = m(M, T, k, I, B, 17, s[2]), I = m(I, M, T, k, w, 22, s[3]), k = m(k, I, M, T, P, 7, s[4]), T = m(T, k, I, M, _, 12, s[5]), M = m(M, T, k, I, A, 17, s[6]), I = m(I, M, T, k, F, 22, s[7]), k = m(k, I, M, T, S, 7, s[8]), T = m(T, k, I, M, O, 12, s[9]), M = m(M, T, k, I, N, 17, s[10]), I = m(I, M, T, k, L, 22, s[11]), k = m(k, I, M, T, q, 7, s[12]), T = m(T, k, I, M, W, 12, s[13]), M = m(M, T, k, I,
|
|
1723
|
+
var y = this._hash.words, E = x[v + 0], C = x[v + 1], B = x[v + 2], w = x[v + 3], P = x[v + 4], _ = x[v + 5], A = x[v + 6], F = x[v + 7], S = x[v + 8], O = x[v + 9], N = x[v + 10], L = x[v + 11], q = x[v + 12], W = x[v + 13], Z = x[v + 14], G = x[v + 15], k = y[0], I = y[1], M = y[2], T = y[3];
|
|
1724
|
+
k = m(k, I, M, T, E, 7, s[0]), T = m(T, k, I, M, C, 12, s[1]), M = m(M, T, k, I, B, 17, s[2]), I = m(I, M, T, k, w, 22, s[3]), k = m(k, I, M, T, P, 7, s[4]), T = m(T, k, I, M, _, 12, s[5]), M = m(M, T, k, I, A, 17, s[6]), I = m(I, M, T, k, F, 22, s[7]), k = m(k, I, M, T, S, 7, s[8]), T = m(T, k, I, M, O, 12, s[9]), M = m(M, T, k, I, N, 17, s[10]), I = m(I, M, T, k, L, 22, s[11]), k = m(k, I, M, T, q, 7, s[12]), T = m(T, k, I, M, W, 12, s[13]), M = m(M, T, k, I, Z, 17, s[14]), I = m(I, M, T, k, G, 22, s[15]), k = f(k, I, M, T, C, 5, s[16]), T = f(T, k, I, M, A, 9, s[17]), M = f(M, T, k, I, L, 14, s[18]), I = f(I, M, T, k, E, 20, s[19]), k = f(k, I, M, T, _, 5, s[20]), T = f(T, k, I, M, N, 9, s[21]), M = f(M, T, k, I, G, 14, s[22]), I = f(I, M, T, k, P, 20, s[23]), k = f(k, I, M, T, O, 5, s[24]), T = f(T, k, I, M, Z, 9, s[25]), M = f(M, T, k, I, w, 14, s[26]), I = f(I, M, T, k, S, 20, s[27]), k = f(k, I, M, T, W, 5, s[28]), T = f(T, k, I, M, B, 9, s[29]), M = f(M, T, k, I, F, 14, s[30]), I = f(I, M, T, k, q, 20, s[31]), k = h(k, I, M, T, _, 4, s[32]), T = h(T, k, I, M, S, 11, s[33]), M = h(M, T, k, I, L, 16, s[34]), I = h(I, M, T, k, Z, 23, s[35]), k = h(k, I, M, T, C, 4, s[36]), T = h(T, k, I, M, P, 11, s[37]), M = h(M, T, k, I, F, 16, s[38]), I = h(I, M, T, k, N, 23, s[39]), k = h(k, I, M, T, W, 4, s[40]), T = h(T, k, I, M, E, 11, s[41]), M = h(M, T, k, I, w, 16, s[42]), I = h(I, M, T, k, A, 23, s[43]), k = h(k, I, M, T, O, 4, s[44]), T = h(T, k, I, M, q, 11, s[45]), M = h(M, T, k, I, G, 16, s[46]), I = h(I, M, T, k, B, 23, s[47]), k = d(k, I, M, T, E, 6, s[48]), T = d(T, k, I, M, F, 10, s[49]), M = d(M, T, k, I, Z, 15, s[50]), I = d(I, M, T, k, _, 21, s[51]), k = d(k, I, M, T, q, 6, s[52]), T = d(T, k, I, M, w, 10, s[53]), M = d(M, T, k, I, N, 15, s[54]), I = d(I, M, T, k, C, 21, s[55]), k = d(k, I, M, T, S, 6, s[56]), T = d(T, k, I, M, G, 10, s[57]), M = d(M, T, k, I, A, 15, s[58]), I = d(I, M, T, k, W, 21, s[59]), k = d(k, I, M, T, P, 6, s[60]), T = d(T, k, I, M, L, 10, s[61]), M = d(M, T, k, I, B, 15, s[62]), I = d(I, M, T, k, O, 21, s[63]), y[0] = y[0] + k | 0, y[1] = y[1] + I | 0, y[2] = y[2] + M | 0, y[3] = y[3] + T | 0;
|
|
1723
1725
|
},
|
|
1724
1726
|
_doFinalize: function() {
|
|
1725
1727
|
var x = this._data, v = x.words, b = this._nDataBytes * 8, p = x.sigBytes * 8;
|
|
@@ -1995,7 +1997,7 @@ function Va() {
|
|
|
1995
1997
|
]);
|
|
1996
1998
|
},
|
|
1997
1999
|
_doProcessBlock: function(d, x) {
|
|
1998
|
-
for (var v = this._hash.words, b = v[0], p = v[1], g = v[2], y = v[3], E = v[4], C = v[5], B = v[6], w = v[7], P = b.high, _ = b.low, A = p.high, F = p.low, S = g.high, O = g.low, N = y.high, L = y.low, q = E.high, W = E.low,
|
|
2000
|
+
for (var v = this._hash.words, b = v[0], p = v[1], g = v[2], y = v[3], E = v[4], C = v[5], B = v[6], w = v[7], P = b.high, _ = b.low, A = p.high, F = p.low, S = g.high, O = g.low, N = y.high, L = y.low, q = E.high, W = E.low, Z = C.high, G = C.low, k = B.high, I = B.low, M = w.high, T = w.low, ae = P, Q = _, he = A, K = F, Ie = S, Re = O, vt = N, Ye = L, ge = q, xe = W, rt = Z, at = G, pt = k, it = I, wt = M, ot = T, ye = 0; ye < 80; ye++) {
|
|
1999
2001
|
var be, Pe, z = f[ye];
|
|
2000
2002
|
if (ye < 16)
|
|
2001
2003
|
Pe = z.high = d[x + ye * 2] | 0, be = z.low = d[x + ye * 2 + 1] | 0;
|
|
@@ -2006,7 +2008,7 @@ function Va() {
|
|
|
2006
2008
|
var eo = ge & rt ^ ~ge & pt, Gn = xe & at ^ ~xe & it, to = ae & he ^ ae & Ie ^ he & Ie, no = Q & K ^ Q & Re ^ K & Re, ro = (ae >>> 28 | Q << 4) ^ (ae << 30 | Q >>> 2) ^ (ae << 25 | Q >>> 7), Xn = (Q >>> 28 | ae << 4) ^ (Q << 30 | ae >>> 2) ^ (Q << 25 | ae >>> 7), ao = (ge >>> 14 | xe << 18) ^ (ge >>> 18 | xe << 14) ^ (ge << 23 | xe >>> 9), io = (xe >>> 14 | ge << 18) ^ (xe >>> 18 | ge << 14) ^ (xe << 23 | ge >>> 9), Jn = m[ye], oo = Jn.high, Zn = Jn.low, we = ot + io, Ke = wt + ao + (we >>> 0 < ot >>> 0 ? 1 : 0), we = we + Gn, Ke = Ke + eo + (we >>> 0 < Gn >>> 0 ? 1 : 0), we = we + Zn, Ke = Ke + oo + (we >>> 0 < Zn >>> 0 ? 1 : 0), we = we + be, Ke = Ke + Pe + (we >>> 0 < be >>> 0 ? 1 : 0), Qn = Xn + no, so = ro + to + (Qn >>> 0 < Xn >>> 0 ? 1 : 0);
|
|
2007
2009
|
wt = pt, ot = it, pt = rt, it = at, rt = ge, at = xe, xe = Ye + we | 0, ge = vt + Ke + (xe >>> 0 < Ye >>> 0 ? 1 : 0) | 0, vt = Ie, Ye = Re, Ie = he, Re = K, he = ae, K = Q, Q = we + Qn | 0, ae = Ke + so + (Q >>> 0 < we >>> 0 ? 1 : 0) | 0;
|
|
2008
2010
|
}
|
|
2009
|
-
_ = b.low = _ + Q, b.high = P + ae + (_ >>> 0 < Q >>> 0 ? 1 : 0), F = p.low = F + K, p.high = A + he + (F >>> 0 < K >>> 0 ? 1 : 0), O = g.low = O + Re, g.high = S + Ie + (O >>> 0 < Re >>> 0 ? 1 : 0), L = y.low = L + Ye, y.high = N + vt + (L >>> 0 < Ye >>> 0 ? 1 : 0), W = E.low = W + xe, E.high = q + ge + (W >>> 0 < xe >>> 0 ? 1 : 0), G = C.low = G + at, C.high =
|
|
2011
|
+
_ = b.low = _ + Q, b.high = P + ae + (_ >>> 0 < Q >>> 0 ? 1 : 0), F = p.low = F + K, p.high = A + he + (F >>> 0 < K >>> 0 ? 1 : 0), O = g.low = O + Re, g.high = S + Ie + (O >>> 0 < Re >>> 0 ? 1 : 0), L = y.low = L + Ye, y.high = N + vt + (L >>> 0 < Ye >>> 0 ? 1 : 0), W = E.low = W + xe, E.high = q + ge + (W >>> 0 < xe >>> 0 ? 1 : 0), G = C.low = G + at, C.high = Z + rt + (G >>> 0 < at >>> 0 ? 1 : 0), I = B.low = I + it, B.high = k + pt + (I >>> 0 < it >>> 0 ? 1 : 0), T = w.low = T + ot, w.high = M + wt + (T >>> 0 < ot >>> 0 ? 1 : 0);
|
|
2010
2012
|
},
|
|
2011
2013
|
_doFinalize: function() {
|
|
2012
2014
|
var d = this._data, x = d.words, v = this._nDataBytes * 8, b = d.sigBytes * 8;
|
|
@@ -2127,8 +2129,8 @@ function fs() {
|
|
|
2127
2129
|
B.high ^= _, B.low ^= A;
|
|
2128
2130
|
}
|
|
2129
2131
|
for (var W = 1; W < 25; W++) {
|
|
2130
|
-
var _, A, B = p[W],
|
|
2131
|
-
k < 32 ? (_ =
|
|
2132
|
+
var _, A, B = p[W], Z = B.high, G = B.low, k = m[W];
|
|
2133
|
+
k < 32 ? (_ = Z << k | G >>> 32 - k, A = G << k | Z >>> 32 - k) : (_ = G << k - 32 | Z >>> 64 - k, A = Z << k - 32 | G >>> 64 - k);
|
|
2132
2134
|
var I = d[f[W]];
|
|
2133
2135
|
I.high = _, I.low = A;
|
|
2134
2136
|
}
|
|
@@ -2515,11 +2517,11 @@ function xs() {
|
|
|
2515
2517
|
var P = B + w, _ = C[P];
|
|
2516
2518
|
C[P] = (_ << 8 | _ >>> 24) & 16711935 | (_ << 24 | _ >>> 8) & 4278255360;
|
|
2517
2519
|
}
|
|
2518
|
-
var A = this._hash.words, F = h.words, S = d.words, O = s.words, N = u.words, L = m.words, q = f.words, W,
|
|
2519
|
-
M = W = A[0], T =
|
|
2520
|
+
var A = this._hash.words, F = h.words, S = d.words, O = s.words, N = u.words, L = m.words, q = f.words, W, Z, G, k, I, M, T, ae, Q, he;
|
|
2521
|
+
M = W = A[0], T = Z = A[1], ae = G = A[2], Q = k = A[3], he = I = A[4];
|
|
2520
2522
|
for (var K, w = 0; w < 80; w += 1)
|
|
2521
|
-
K = W + C[B + O[w]] | 0, w < 16 ? K += v(
|
|
2522
|
-
K = A[1] + G + Q | 0, A[1] = A[2] + k + he | 0, A[2] = A[3] + I + M | 0, A[3] = A[4] + W + T | 0, A[4] = A[0] +
|
|
2523
|
+
K = W + C[B + O[w]] | 0, w < 16 ? K += v(Z, G, k) + F[0] : w < 32 ? K += b(Z, G, k) + F[1] : w < 48 ? K += p(Z, G, k) + F[2] : w < 64 ? K += g(Z, G, k) + F[3] : K += y(Z, G, k) + F[4], K = K | 0, K = E(K, L[w]), K = K + I | 0, W = I, I = k, k = E(G, 10), G = Z, Z = K, K = M + C[B + N[w]] | 0, w < 16 ? K += y(T, ae, Q) + S[0] : w < 32 ? K += g(T, ae, Q) + S[1] : w < 48 ? K += p(T, ae, Q) + S[2] : w < 64 ? K += b(T, ae, Q) + S[3] : K += v(T, ae, Q) + S[4], K = K | 0, K = E(K, q[w]), K = K + he | 0, M = he, he = Q, Q = E(ae, 10), ae = T, T = K;
|
|
2524
|
+
K = A[1] + G + Q | 0, A[1] = A[2] + k + he | 0, A[2] = A[3] + I + M | 0, A[3] = A[4] + W + T | 0, A[4] = A[0] + Z + ae | 0, A[0] = K;
|
|
2523
2525
|
},
|
|
2524
2526
|
_doFinalize: function() {
|
|
2525
2527
|
var C = this._data, B = C.words, w = this._nDataBytes * 8, P = C.sigBytes * 8;
|
|
@@ -3622,11 +3624,11 @@ function As() {
|
|
|
3622
3624
|
},
|
|
3623
3625
|
_doCryptBlock: function(g, y, E, C, B, w, P, _) {
|
|
3624
3626
|
for (var A = this._nRounds, F = g[y] ^ E[0], S = g[y + 1] ^ E[1], O = g[y + 2] ^ E[2], N = g[y + 3] ^ E[3], L = 4, q = 1; q < A; q++) {
|
|
3625
|
-
var W = C[F >>> 24] ^ B[S >>> 16 & 255] ^ w[O >>> 8 & 255] ^ P[N & 255] ^ E[L++],
|
|
3626
|
-
F = W, S =
|
|
3627
|
+
var W = C[F >>> 24] ^ B[S >>> 16 & 255] ^ w[O >>> 8 & 255] ^ P[N & 255] ^ E[L++], Z = C[S >>> 24] ^ B[O >>> 16 & 255] ^ w[N >>> 8 & 255] ^ P[F & 255] ^ E[L++], G = C[O >>> 24] ^ B[N >>> 16 & 255] ^ w[F >>> 8 & 255] ^ P[S & 255] ^ E[L++], k = C[N >>> 24] ^ B[F >>> 16 & 255] ^ w[S >>> 8 & 255] ^ P[O & 255] ^ E[L++];
|
|
3628
|
+
F = W, S = Z, O = G, N = k;
|
|
3627
3629
|
}
|
|
3628
|
-
var W = (_[F >>> 24] << 24 | _[S >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[N & 255]) ^ E[L++],
|
|
3629
|
-
g[y] = W, g[y + 1] =
|
|
3630
|
+
var W = (_[F >>> 24] << 24 | _[S >>> 16 & 255] << 16 | _[O >>> 8 & 255] << 8 | _[N & 255]) ^ E[L++], Z = (_[S >>> 24] << 24 | _[O >>> 16 & 255] << 16 | _[N >>> 8 & 255] << 8 | _[F & 255]) ^ E[L++], G = (_[O >>> 24] << 24 | _[N >>> 16 & 255] << 16 | _[F >>> 8 & 255] << 8 | _[S & 255]) ^ E[L++], k = (_[N >>> 24] << 24 | _[F >>> 16 & 255] << 16 | _[S >>> 8 & 255] << 8 | _[O & 255]) ^ E[L++];
|
|
3631
|
+
g[y] = W, g[y + 1] = Z, g[y + 2] = G, g[y + 3] = k;
|
|
3630
3632
|
},
|
|
3631
3633
|
keySize: 256 / 32
|
|
3632
3634
|
});
|
|
@@ -7328,7 +7330,7 @@ const ki = "ElInput", Rd = se({
|
|
|
7328
7330
|
[d.b("group")]: o.prepend || o.append,
|
|
7329
7331
|
[d.m("prefix")]: o.prefix || t.prefixIcon,
|
|
7330
7332
|
[d.m("suffix")]: o.suffix || t.suffixIcon || t.clearable || t.showPassword,
|
|
7331
|
-
[d.bm("suffix", "password-clear")]: W.value &&
|
|
7333
|
+
[d.bm("suffix", "password-clear")]: W.value && Z.value,
|
|
7332
7334
|
[d.b("hidden")]: t.type === "hidden"
|
|
7333
7335
|
},
|
|
7334
7336
|
a.class
|
|
@@ -7354,7 +7356,7 @@ const ki = "ElInput", Rd = se({
|
|
|
7354
7356
|
t.inputStyle,
|
|
7355
7357
|
E.value,
|
|
7356
7358
|
{ resize: t.resize }
|
|
7357
|
-
]), q = H(() => ii(t.modelValue) ? "" : String(t.modelValue)), W = H(() => t.clearable && !h.value && !t.readonly && !!q.value && (w.value || p.value)),
|
|
7359
|
+
]), q = H(() => ii(t.modelValue) ? "" : String(t.modelValue)), W = H(() => t.clearable && !h.value && !t.readonly && !!q.value && (w.value || p.value)), Z = H(() => t.showPassword && !h.value && !!q.value && (!!q.value || w.value)), G = H(() => t.showWordLimit && !!t.maxlength && (t.type === "text" || t.type === "textarea") && !h.value && !t.readonly && !t.showPassword), k = H(() => q.value.length), I = H(() => !!G.value && k.value > Number(t.maxlength)), M = H(() => !!o.suffix || !!t.suffixIcon || W.value || t.showPassword || G.value || !!F.value && A.value), [T, ae] = Md(v);
|
|
7358
7360
|
Eu(b, (z) => {
|
|
7359
7361
|
if (K(), !G.value || t.resize !== "both")
|
|
7360
7362
|
return;
|
|
@@ -7526,7 +7528,7 @@ const ki = "ElInput", Rd = se({
|
|
|
7526
7528
|
Y("span", {
|
|
7527
7529
|
class: U(R(d).e("suffix-inner"))
|
|
7528
7530
|
}, [
|
|
7529
|
-
!R(W) || !R(
|
|
7531
|
+
!R(W) || !R(Z) || !R(G) ? ($(), V($e, { key: 0 }, [
|
|
7530
7532
|
me(z.$slots, "suffix"),
|
|
7531
7533
|
z.suffixIcon ? ($(), re(R(Je), {
|
|
7532
7534
|
key: 0,
|
|
@@ -7549,7 +7551,7 @@ const ki = "ElInput", Rd = se({
|
|
|
7549
7551
|
]),
|
|
7550
7552
|
_: 1
|
|
7551
7553
|
}, 8, ["class", "onMousedown"])) : ee("v-if", !0),
|
|
7552
|
-
R(
|
|
7554
|
+
R(Z) ? ($(), re(R(Je), {
|
|
7553
7555
|
key: 2,
|
|
7554
7556
|
class: U([R(d).e("icon"), R(d).e("password")]),
|
|
7555
7557
|
onClick: at
|
|
@@ -8894,8 +8896,8 @@ const If = Tf, Pf = (e, n, r, t) => {
|
|
|
8894
8896
|
}, { immediate: !0 }), De(() => c.value, (L) => {
|
|
8895
8897
|
var q, W;
|
|
8896
8898
|
L && (e.boxType !== "prompt" && (s.autofocus ? b.value = (W = (q = g.value) == null ? void 0 : q.$el) != null ? W : x.value : b.value = x.value), s.zIndex = l()), e.boxType === "prompt" && (L ? Ee().then(() => {
|
|
8897
|
-
var
|
|
8898
|
-
p.value && p.value.$el && (s.autofocus ? b.value = (
|
|
8899
|
+
var Z;
|
|
8900
|
+
p.value && p.value.$el && (s.autofocus ? b.value = (Z = S()) != null ? Z : x.value : b.value = x.value);
|
|
8899
8901
|
}) : (s.editorErrorMessage = "", s.validateError = !1));
|
|
8900
8902
|
});
|
|
8901
8903
|
const E = H(() => e.draggable), C = H(() => e.overflow);
|
|
@@ -9316,7 +9318,7 @@ Vn.set = (e, n, r, t = 500) => {
|
|
|
9316
9318
|
};
|
|
9317
9319
|
};
|
|
9318
9320
|
function Xf(e) {
|
|
9319
|
-
if (
|
|
9321
|
+
if (J.fieldCheck(e))
|
|
9320
9322
|
return e;
|
|
9321
9323
|
const n = e.length;
|
|
9322
9324
|
if (n === 2)
|
|
@@ -9328,7 +9330,7 @@ function Xf(e) {
|
|
|
9328
9330
|
return e;
|
|
9329
9331
|
}
|
|
9330
9332
|
function Jf(e, n = 4) {
|
|
9331
|
-
if (
|
|
9333
|
+
if (J.fieldCheck(e))
|
|
9332
9334
|
return e;
|
|
9333
9335
|
e = e + "";
|
|
9334
9336
|
const r = e.length;
|
|
@@ -9359,7 +9361,7 @@ function Zf({
|
|
|
9359
9361
|
maskChar: t = "*",
|
|
9360
9362
|
maskLength: a = 4
|
|
9361
9363
|
}) {
|
|
9362
|
-
if (
|
|
9364
|
+
if (J.fieldCheck(e))
|
|
9363
9365
|
return e;
|
|
9364
9366
|
if (!e || e.length < n + r)
|
|
9365
9367
|
return e + t.repeat(a);
|
|
@@ -9903,7 +9905,7 @@ const Vi = /* @__PURE__ */ We(vx, [["render", mx], ["__scopeId", "data-v-5475b4d
|
|
|
9903
9905
|
break;
|
|
9904
9906
|
}
|
|
9905
9907
|
}
|
|
9906
|
-
}), this.date_type = e), !
|
|
9908
|
+
}), this.date_type = e), !J.fieldCheck(this.date) && this.date.length === 2 && (this.opts.startDate = this.date[0], this.opts.endDate = this.date[1]), this.dateTypeF(this.dateType);
|
|
9907
9909
|
},
|
|
9908
9910
|
// 日期类型切换
|
|
9909
9911
|
dateTypeF(e) {
|
|
@@ -9923,7 +9925,7 @@ const Vi = /* @__PURE__ */ We(vx, [["render", mx], ["__scopeId", "data-v-5475b4d
|
|
|
9923
9925
|
this.opts.dateType = "year", this.opts.valueFormat = "YYYY";
|
|
9924
9926
|
break;
|
|
9925
9927
|
}
|
|
9926
|
-
if (!
|
|
9928
|
+
if (!J.fieldCheck(this.date) && this.date.length === 2) {
|
|
9927
9929
|
switch (this.dateSwitchRule === 0 ? r = [this.date[0], this.date[1]] : this.dateSwitchRule === 1 && (r = de.initSearchDateQj(this.opts.dateType)), e) {
|
|
9928
9930
|
case this.dateTypeKeyValue[3]:
|
|
9929
9931
|
this.opts.startDate = de.formatTime(r[0], "{y}-{m}-{d} {h}:{i}:{s}"), this.opts.endDate = de.formatTime(r[1], "{y}-{m}-{d} {h}:{i}:{s}");
|
|
@@ -10087,7 +10089,7 @@ const qi = /* @__PURE__ */ We(yx, [["render", Ex], ["__scopeId", "data-v-1e7c37e
|
|
|
10087
10089
|
watch: {
|
|
10088
10090
|
modelValue: {
|
|
10089
10091
|
handler(e) {
|
|
10090
|
-
!
|
|
10092
|
+
!J.fieldCheck(this.modelValue) && this.modelValue.length >= 1 ? (this.opts.startDate = this.modelValue[0], this.opts.endDate = this.modelValue[1]) : (this.opts.startDate = null, this.opts.endDate = null);
|
|
10091
10093
|
},
|
|
10092
10094
|
deep: !0,
|
|
10093
10095
|
immediate: !0
|
|
@@ -10205,7 +10207,7 @@ function Sx(e, n = 30, r) {
|
|
|
10205
10207
|
function kx(e, n, r, t) {
|
|
10206
10208
|
if (t)
|
|
10207
10209
|
n.tempDate = e.date;
|
|
10208
|
-
else if (!
|
|
10210
|
+
else if (!J.fieldCheck(e.date) && e.date.length > 0 && !J.fieldCheck(e.date[0]) && !J.fieldCheck(e.date[1])) {
|
|
10209
10211
|
let a = new Date(e.date[0]).getTime(), i = new Date(e.date[1]).getTime();
|
|
10210
10212
|
Math.abs(a - i) / yt >= r && (n.tempDate[1] === e.date[1] ? e.date[1] = de.formatTime(a + yt * (r - 1), "{y}-{m}-{d}") : e.date[0] = de.formatTime(i - yt * (r - 1), "{y}-{m}-{d}"));
|
|
10211
10213
|
}
|
|
@@ -10213,7 +10215,7 @@ function kx(e, n, r, t) {
|
|
|
10213
10215
|
function Tx(e, n, r, t) {
|
|
10214
10216
|
if (t)
|
|
10215
10217
|
n.tempDate = e.date;
|
|
10216
|
-
else if (!
|
|
10218
|
+
else if (!J.fieldCheck(e.date) && e.date.length > 0 && !J.fieldCheck(e.date[0]) && !J.fieldCheck(e.date[1])) {
|
|
10217
10219
|
let a = new Date(e.date[0]).getTime(), i = new Date(e.date[1]).getTime();
|
|
10218
10220
|
Math.abs(a - i) / yt >= r && (n.tempDate[0] === e.date[0] ? e.date[0] = de.formatTime(i - yt * (r - 1), "{y}-{m}-{d}") : e.date[1] = de.formatTime(a + yt * (r - 1), "{y}-{m}-{d}"));
|
|
10219
10221
|
}
|
|
@@ -11104,14 +11106,14 @@ let It = null;
|
|
|
11104
11106
|
function Qx(e, n = null, r) {
|
|
11105
11107
|
if ("WebSocket" in window) {
|
|
11106
11108
|
e = e1(e);
|
|
11107
|
-
const t =
|
|
11109
|
+
const t = J.fieldCheck(n) ? [] : [n];
|
|
11108
11110
|
return It = new WebSocket(e, t), It.onopen = function() {
|
|
11109
|
-
|
|
11111
|
+
J.colorLog({ content: ["websocket", "已连接,正在接收数据...."] });
|
|
11110
11112
|
}, It.onmessage = function(a) {
|
|
11111
11113
|
let i = a.data;
|
|
11112
11114
|
r(JSON.parse(i));
|
|
11113
11115
|
}, It.onclose = function() {
|
|
11114
|
-
|
|
11116
|
+
J.colorLog({ content: ["websocket", "已关闭!"] });
|
|
11115
11117
|
}, It;
|
|
11116
11118
|
} else
|
|
11117
11119
|
console.info("您的浏览器不支持 WebSocket!");
|
|
@@ -11260,7 +11262,7 @@ const r1 = {
|
|
|
11260
11262
|
// html转pdf
|
|
11261
11263
|
}, a1 = [
|
|
11262
11264
|
{ type: "function", name: "menu", entity: $a },
|
|
11263
|
-
{ type: "function", name: "base", entity:
|
|
11265
|
+
{ type: "function", name: "base", entity: J },
|
|
11264
11266
|
{ type: "function", name: "num", entity: ne },
|
|
11265
11267
|
{ type: "function", name: "date", entity: de },
|
|
11266
11268
|
{ type: "function", name: "fc", entity: v0 },
|
|
@@ -11315,7 +11317,7 @@ const r1 = {
|
|
|
11315
11317
|
LJSprivacy: Li,
|
|
11316
11318
|
// 方法
|
|
11317
11319
|
LJSmenu: $a,
|
|
11318
|
-
LJSbase:
|
|
11320
|
+
LJSbase: J,
|
|
11319
11321
|
LJSnum: ne,
|
|
11320
11322
|
LJSdate: de,
|
|
11321
11323
|
LJSfc: v0,
|