@a2simcode/ui 0.0.166 → 0.0.167
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/components/input-rows/index.d.ts +15 -0
- package/dist/components/input-rows/src/input-rows.vue.d.ts +16 -0
- package/dist/simcode-ui.es.js +363 -356
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/docs/components/meta/input-rows.ts +119 -113
- package/docs/examples/form/basic.vue +41 -4
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -814,8 +814,8 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
814
814
|
var b = y + _, v = g[b];
|
|
815
815
|
g[b] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
|
|
816
816
|
}
|
|
817
|
-
var w = this._hash.words, S = g[y + 0], m = g[y + 1], x = g[y + 2], C = g[y + 3], k = g[y + 4], T = g[y + 5], A = g[y + 6], H = g[y + 7],
|
|
818
|
-
j = f(j, F, G, P, S, 7, s[0]), P = f(P, j, F, G, m, 12, s[1]), G = f(G, P, j, F, x, 17, s[2]), F = f(F, G, P, j, C, 22, s[3]), j = f(j, F, G, P, k, 7, s[4]), P = f(P, j, F, G, T, 12, s[5]), G = f(G, P, j, F, A, 17, s[6]), F = f(F, G, P, j, H, 22, s[7]), j = f(j, F, G, P,
|
|
817
|
+
var w = this._hash.words, S = g[y + 0], m = g[y + 1], x = g[y + 2], C = g[y + 3], k = g[y + 4], T = g[y + 5], A = g[y + 6], H = g[y + 7], z = g[y + 8], $ = g[y + 9], M = g[y + 10], R = g[y + 11], W = g[y + 12], q = g[y + 13], se = g[y + 14], ye = g[y + 15], j = w[0], F = w[1], G = w[2], P = w[3];
|
|
818
|
+
j = f(j, F, G, P, S, 7, s[0]), P = f(P, j, F, G, m, 12, s[1]), G = f(G, P, j, F, x, 17, s[2]), F = f(F, G, P, j, C, 22, s[3]), j = f(j, F, G, P, k, 7, s[4]), P = f(P, j, F, G, T, 12, s[5]), G = f(G, P, j, F, A, 17, s[6]), F = f(F, G, P, j, H, 22, s[7]), j = f(j, F, G, P, z, 7, s[8]), P = f(P, j, F, G, $, 12, s[9]), G = f(G, P, j, F, M, 17, s[10]), F = f(F, G, P, j, R, 22, s[11]), j = f(j, F, G, P, W, 7, s[12]), P = f(P, j, F, G, q, 12, s[13]), G = f(G, P, j, F, se, 17, s[14]), F = f(F, G, P, j, ye, 22, s[15]), j = u(j, F, G, P, m, 5, s[16]), P = u(P, j, F, G, A, 9, s[17]), G = u(G, P, j, F, R, 14, s[18]), F = u(F, G, P, j, S, 20, s[19]), j = u(j, F, G, P, T, 5, s[20]), P = u(P, j, F, G, M, 9, s[21]), G = u(G, P, j, F, ye, 14, s[22]), F = u(F, G, P, j, k, 20, s[23]), j = u(j, F, G, P, $, 5, s[24]), P = u(P, j, F, G, se, 9, s[25]), G = u(G, P, j, F, C, 14, s[26]), F = u(F, G, P, j, z, 20, s[27]), j = u(j, F, G, P, q, 5, s[28]), P = u(P, j, F, G, x, 9, s[29]), G = u(G, P, j, F, H, 14, s[30]), F = u(F, G, P, j, W, 20, s[31]), j = h(j, F, G, P, T, 4, s[32]), P = h(P, j, F, G, z, 11, s[33]), G = h(G, P, j, F, R, 16, s[34]), F = h(F, G, P, j, se, 23, s[35]), j = h(j, F, G, P, m, 4, s[36]), P = h(P, j, F, G, k, 11, s[37]), G = h(G, P, j, F, H, 16, s[38]), F = h(F, G, P, j, M, 23, s[39]), j = h(j, F, G, P, q, 4, s[40]), P = h(P, j, F, G, S, 11, s[41]), G = h(G, P, j, F, C, 16, s[42]), F = h(F, G, P, j, A, 23, s[43]), j = h(j, F, G, P, $, 4, s[44]), P = h(P, j, F, G, W, 11, s[45]), G = h(G, P, j, F, ye, 16, s[46]), F = h(F, G, P, j, x, 23, s[47]), j = p(j, F, G, P, S, 6, s[48]), P = p(P, j, F, G, H, 10, s[49]), G = p(G, P, j, F, se, 15, s[50]), F = p(F, G, P, j, T, 21, s[51]), j = p(j, F, G, P, W, 6, s[52]), P = p(P, j, F, G, C, 10, s[53]), G = p(G, P, j, F, M, 15, s[54]), F = p(F, G, P, j, m, 21, s[55]), j = p(j, F, G, P, z, 6, s[56]), P = p(P, j, F, G, ye, 10, s[57]), G = p(G, P, j, F, A, 15, s[58]), F = p(F, G, P, j, q, 21, s[59]), j = p(j, F, G, P, k, 6, s[60]), P = p(P, j, F, G, R, 10, s[61]), G = p(G, P, j, F, x, 15, s[62]), F = p(F, G, P, j, $, 21, s[63]), w[0] = w[0] + j | 0, w[1] = w[1] + F | 0, w[2] = w[2] + G | 0, w[3] = w[3] + P | 0;
|
|
819
819
|
},
|
|
820
820
|
_doFinalize: function() {
|
|
821
821
|
var g = this._data, y = g.words, _ = this._nDataBytes * 8, b = g.sigBytes * 8;
|
|
@@ -990,11 +990,11 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
990
990
|
}
|
|
991
991
|
return function(T) {
|
|
992
992
|
return {
|
|
993
|
-
encrypt: function(A, H,
|
|
994
|
-
return k(H).encrypt(T, A, H,
|
|
993
|
+
encrypt: function(A, H, z) {
|
|
994
|
+
return k(H).encrypt(T, A, H, z);
|
|
995
995
|
},
|
|
996
|
-
decrypt: function(A, H,
|
|
997
|
-
return k(H).decrypt(T, A, H,
|
|
996
|
+
decrypt: function(A, H, z) {
|
|
997
|
+
return k(H).decrypt(T, A, H, z);
|
|
998
998
|
}
|
|
999
999
|
};
|
|
1000
1000
|
};
|
|
@@ -1019,22 +1019,22 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1019
1019
|
}), g = h.CBC = (function() {
|
|
1020
1020
|
var k = p.extend();
|
|
1021
1021
|
k.Encryptor = k.extend({ processBlock: function(A, H) {
|
|
1022
|
-
var
|
|
1023
|
-
T.call(this, A, H,
|
|
1022
|
+
var z = this._cipher, $ = z.blockSize;
|
|
1023
|
+
T.call(this, A, H, $), z.encryptBlock(A, H), this._prevBlock = A.slice(H, H + $);
|
|
1024
1024
|
} }), k.Decryptor = k.extend({ processBlock: function(A, H) {
|
|
1025
|
-
var
|
|
1026
|
-
|
|
1025
|
+
var z = this._cipher, $ = z.blockSize, M = A.slice(H, H + $);
|
|
1026
|
+
z.decryptBlock(A, H), T.call(this, A, H, $), this._prevBlock = M;
|
|
1027
1027
|
} });
|
|
1028
|
-
function T(A, H,
|
|
1029
|
-
var
|
|
1030
|
-
M ? (
|
|
1031
|
-
for (var R = 0; R <
|
|
1028
|
+
function T(A, H, z) {
|
|
1029
|
+
var $, M = this._iv;
|
|
1030
|
+
M ? ($ = M, this._iv = a) : $ = this._prevBlock;
|
|
1031
|
+
for (var R = 0; R < z; R++) A[H + R] ^= $[R];
|
|
1032
1032
|
}
|
|
1033
1033
|
return k;
|
|
1034
1034
|
})(), y = o.pad = {}, _ = y.Pkcs7 = {
|
|
1035
1035
|
pad: function(k, T) {
|
|
1036
|
-
for (var A = T * 4, H = A - k.sigBytes % A,
|
|
1037
|
-
var R = l.create(
|
|
1036
|
+
for (var A = T * 4, H = A - k.sigBytes % A, z = H << 24 | H << 16 | H << 8 | H, $ = [], M = 0; M < H; M += 4) $.push(z);
|
|
1037
|
+
var R = l.create($, H);
|
|
1038
1038
|
k.concat(R);
|
|
1039
1039
|
},
|
|
1040
1040
|
unpad: function(k) {
|
|
@@ -1085,9 +1085,9 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1085
1085
|
cfg: r.extend({ format: w }),
|
|
1086
1086
|
encrypt: function(k, T, A, H) {
|
|
1087
1087
|
H = this.cfg.extend(H);
|
|
1088
|
-
var
|
|
1088
|
+
var z = k.createEncryptor(A, H), $ = z.finalize(T), M = z.cfg;
|
|
1089
1089
|
return b.create({
|
|
1090
|
-
ciphertext:
|
|
1090
|
+
ciphertext: $,
|
|
1091
1091
|
key: A,
|
|
1092
1092
|
iv: M.iv,
|
|
1093
1093
|
algorithm: k,
|
|
@@ -1103,15 +1103,15 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1103
1103
|
_parse: function(k, T) {
|
|
1104
1104
|
return typeof k == "string" ? T.parse(k, this) : k;
|
|
1105
1105
|
}
|
|
1106
|
-
}), m = o.kdf = {}, x = m.OpenSSL = { execute: function(k, T, A, H,
|
|
1107
|
-
if (H || (H = l.random(64 / 8)),
|
|
1106
|
+
}), m = o.kdf = {}, x = m.OpenSSL = { execute: function(k, T, A, H, z) {
|
|
1107
|
+
if (H || (H = l.random(64 / 8)), z) var $ = f.create({
|
|
1108
1108
|
keySize: T + A,
|
|
1109
|
-
hasher:
|
|
1109
|
+
hasher: z
|
|
1110
1110
|
}).compute(k, H);
|
|
1111
|
-
else var
|
|
1112
|
-
var M = l.create(
|
|
1113
|
-
return
|
|
1114
|
-
key:
|
|
1111
|
+
else var $ = f.create({ keySize: T + A }).compute(k, H);
|
|
1112
|
+
var M = l.create($.words.slice(T), A * 4);
|
|
1113
|
+
return $.sigBytes = T * 4, b.create({
|
|
1114
|
+
key: $,
|
|
1115
1115
|
iv: M,
|
|
1116
1116
|
salt: H
|
|
1117
1117
|
});
|
|
@@ -1119,15 +1119,15 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1119
1119
|
cfg: S.cfg.extend({ kdf: x }),
|
|
1120
1120
|
encrypt: function(k, T, A, H) {
|
|
1121
1121
|
H = this.cfg.extend(H);
|
|
1122
|
-
var
|
|
1123
|
-
H.iv =
|
|
1124
|
-
var
|
|
1125
|
-
return
|
|
1122
|
+
var z = H.kdf.execute(A, k.keySize, k.ivSize, H.salt, H.hasher);
|
|
1123
|
+
H.iv = z.iv;
|
|
1124
|
+
var $ = S.encrypt.call(this, k, T, z.key, H);
|
|
1125
|
+
return $.mixIn(z), $;
|
|
1126
1126
|
},
|
|
1127
1127
|
decrypt: function(k, T, A, H) {
|
|
1128
1128
|
H = this.cfg.extend(H), T = this._parse(T, H.format);
|
|
1129
|
-
var
|
|
1130
|
-
return H.iv =
|
|
1129
|
+
var z = H.kdf.execute(A, k.keySize, k.ivSize, T.salt, H.hasher);
|
|
1130
|
+
return H.iv = z.iv, S.decrypt.call(this, k, T, z.key, H);
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
1133
1133
|
})();
|
|
@@ -1190,11 +1190,11 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1190
1190
|
b[v + 1] = b[v + 3], b[v + 3] = w;
|
|
1191
1191
|
},
|
|
1192
1192
|
_doCryptBlock: function(b, v, w, S, m, x, C, k) {
|
|
1193
|
-
for (var T = this._nRounds, A = b[v] ^ w[0], H = b[v + 1] ^ w[1],
|
|
1194
|
-
var W = S[A >>> 24] ^ m[H >>> 16 & 255] ^ x[
|
|
1195
|
-
A = W, H = q,
|
|
1193
|
+
for (var T = this._nRounds, A = b[v] ^ w[0], H = b[v + 1] ^ w[1], z = b[v + 2] ^ w[2], $ = b[v + 3] ^ w[3], M = 4, R = 1; R < T; R++) {
|
|
1194
|
+
var W = S[A >>> 24] ^ m[H >>> 16 & 255] ^ x[z >>> 8 & 255] ^ C[$ & 255] ^ w[M++], q = S[H >>> 24] ^ m[z >>> 16 & 255] ^ x[$ >>> 8 & 255] ^ C[A & 255] ^ w[M++], se = S[z >>> 24] ^ m[$ >>> 16 & 255] ^ x[A >>> 8 & 255] ^ C[H & 255] ^ w[M++], ye = S[$ >>> 24] ^ m[A >>> 16 & 255] ^ x[H >>> 8 & 255] ^ C[z & 255] ^ w[M++];
|
|
1195
|
+
A = W, H = q, z = se, $ = ye;
|
|
1196
1196
|
}
|
|
1197
|
-
var W = (k[A >>> 24] << 24 | k[H >>> 16 & 255] << 16 | k[
|
|
1197
|
+
var W = (k[A >>> 24] << 24 | k[H >>> 16 & 255] << 16 | k[z >>> 8 & 255] << 8 | k[$ & 255]) ^ w[M++], q = (k[H >>> 24] << 24 | k[z >>> 16 & 255] << 16 | k[$ >>> 8 & 255] << 8 | k[A & 255]) ^ w[M++], se = (k[z >>> 24] << 24 | k[$ >>> 16 & 255] << 16 | k[A >>> 8 & 255] << 8 | k[H & 255]) ^ w[M++], ye = (k[$ >>> 24] << 24 | k[A >>> 16 & 255] << 16 | k[H >>> 8 & 255] << 8 | k[z & 255]) ^ w[M++];
|
|
1198
1198
|
b[v] = W, b[v + 1] = q, b[v + 2] = se, b[v + 3] = ye;
|
|
1199
1199
|
},
|
|
1200
1200
|
keySize: 256 / 32
|
|
@@ -1242,7 +1242,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1242
1242
|
var k = f[C - 15], T = (k << 25 | k >>> 7) ^ (k << 14 | k >>> 18) ^ k >>> 3, A = f[C - 2], H = (A << 15 | A >>> 17) ^ (A << 13 | A >>> 19) ^ A >>> 10;
|
|
1243
1243
|
f[C] = T + f[C - 7] + H + f[C - 16];
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1245
|
+
var z = w & S ^ ~w & m, $ = y & _ ^ y & b ^ _ & b, M = (y << 30 | y >>> 2) ^ (y << 19 | y >>> 13) ^ (y << 10 | y >>> 22), R = (w << 26 | w >>> 6) ^ (w << 21 | w >>> 11) ^ (w << 7 | w >>> 25), W = x + R + z + d[C] + f[C], q = M + $;
|
|
1246
1246
|
x = m, m = S, S = w, w = v + W | 0, v = b, b = _, _ = y, y = W + q | 0;
|
|
1247
1247
|
}
|
|
1248
1248
|
g[0] = g[0] + y | 0, g[1] = g[1] + _ | 0, g[2] = g[2] + b | 0, g[3] = g[3] + v | 0, g[4] = g[4] + w | 0, g[5] = g[5] + S | 0, g[6] = g[6] + m | 0, g[7] = g[7] + x | 0;
|
|
@@ -1393,7 +1393,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1393
1393
|
]);
|
|
1394
1394
|
},
|
|
1395
1395
|
_doProcessBlock: function(h, p) {
|
|
1396
|
-
for (var g = this._hash.words, y = g[0], _ = g[1], b = g[2], v = g[3], w = g[4], S = g[5], m = g[6], x = g[7], C = y.high, k = y.low, T = _.high, A = _.low, H = b.high,
|
|
1396
|
+
for (var g = this._hash.words, y = g[0], _ = g[1], b = g[2], v = g[3], w = g[4], S = g[5], m = g[6], x = g[7], C = y.high, k = y.low, T = _.high, A = _.low, H = b.high, z = b.low, $ = v.high, M = v.low, R = w.high, W = w.low, q = S.high, se = S.low, ye = m.high, j = m.low, F = x.high, G = x.low, P = C, ke = k, $e = T, we = A, Ge = H, Xe = z, ie = $, Ee = M, Me = R, Oe = W, Rt = q, _t = se, Ke = ye, Yt = j, ln = F, Jt = G, Ht = 0; Ht < 80; Ht++) {
|
|
1397
1397
|
var Ot, dt, Vt = f[Ht];
|
|
1398
1398
|
if (Ht < 16)
|
|
1399
1399
|
dt = Vt.high = h[p + Ht * 2] | 0, Ot = Vt.low = h[p + Ht * 2 + 1] | 0;
|
|
@@ -1404,7 +1404,7 @@ var Gf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1404
1404
|
var yt = Me & Rt ^ ~Me & Ke, ht = Oe & _t ^ ~Oe & Yt, be = P & $e ^ P & Ge ^ $e & Ge, mt = ke & we ^ ke & Xe ^ we & Xe, Gt = (P >>> 28 | ke << 4) ^ (P << 30 | ke >>> 2) ^ (P << 25 | ke >>> 7), It = (ke >>> 28 | P << 4) ^ (ke << 30 | P >>> 2) ^ (ke << 25 | P >>> 7), qt = (Me >>> 14 | Oe << 18) ^ (Me >>> 18 | Oe << 14) ^ (Me << 23 | Oe >>> 9), Ze = (Oe >>> 14 | Me << 18) ^ (Oe >>> 18 | Me << 14) ^ (Oe << 23 | Me >>> 9), sn = d[Ht], Un = sn.high, ya = sn.low, qe = Jt + Ze, Tt = ln + qt + (qe >>> 0 < Jt >>> 0 ? 1 : 0), qe = qe + ht, Tt = Tt + yt + (qe >>> 0 < ht >>> 0 ? 1 : 0), qe = qe + ya, Tt = Tt + Un + (qe >>> 0 < ya >>> 0 ? 1 : 0), qe = qe + Ot, Tt = Tt + dt + (qe >>> 0 < Ot >>> 0 ? 1 : 0), Qt = It + mt, en = Gt + be + (Qt >>> 0 < It >>> 0 ? 1 : 0);
|
|
1405
1405
|
ln = Ke, Jt = Yt, Ke = Rt, Yt = _t, Rt = Me, _t = Oe, Oe = Ee + qe | 0, Me = ie + Tt + (Oe >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ie = Ge, Ee = Xe, Ge = $e, Xe = we, $e = P, we = ke, ke = qe + Qt | 0, P = Tt + en + (ke >>> 0 < qe >>> 0 ? 1 : 0) | 0;
|
|
1406
1406
|
}
|
|
1407
|
-
k = y.low = k + ke, y.high = C + P + (k >>> 0 < ke >>> 0 ? 1 : 0), A = _.low = A + we, _.high = T + $e + (A >>> 0 < we >>> 0 ? 1 : 0),
|
|
1407
|
+
k = y.low = k + ke, y.high = C + P + (k >>> 0 < ke >>> 0 ? 1 : 0), A = _.low = A + we, _.high = T + $e + (A >>> 0 < we >>> 0 ? 1 : 0), z = b.low = z + Xe, b.high = H + Ge + (z >>> 0 < Xe >>> 0 ? 1 : 0), M = v.low = M + Ee, v.high = $ + ie + (M >>> 0 < Ee >>> 0 ? 1 : 0), W = w.low = W + Oe, w.high = R + Me + (W >>> 0 < Oe >>> 0 ? 1 : 0), se = S.low = se + _t, S.high = q + Rt + (se >>> 0 < _t >>> 0 ? 1 : 0), j = m.low = j + Yt, m.high = ye + Ke + (j >>> 0 < Yt >>> 0 ? 1 : 0), G = x.low = G + Jt, x.high = F + ln + (G >>> 0 < Jt >>> 0 ? 1 : 0);
|
|
1408
1408
|
},
|
|
1409
1409
|
_doFinalize: function() {
|
|
1410
1410
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, y = h.sigBytes * 8;
|
|
@@ -1660,34 +1660,34 @@ var Eh = /* @__PURE__ */ he({
|
|
|
1660
1660
|
__name: "dynamic-layer",
|
|
1661
1661
|
setup(e, { expose: t }) {
|
|
1662
1662
|
const n = I(), a = I(600), o = I(400), i = I(!0), r = I(!0), l = I(!0), c = I(""), s = I([]), d = I(!0), f = I(), u = Bi(), h = I(), { getPageName: p } = _h(), g = () => {
|
|
1663
|
-
const
|
|
1664
|
-
return
|
|
1665
|
-
}, y = I(!1), _ = I([]), b = async (
|
|
1663
|
+
const z = p();
|
|
1664
|
+
return z || (typeof u.value == "string" ? u.value : "");
|
|
1665
|
+
}, y = I(!1), _ = I([]), b = async (z) => {
|
|
1666
1666
|
if (f.value?.validateSteps) {
|
|
1667
1667
|
Fa(!0);
|
|
1668
|
-
const
|
|
1669
|
-
return Fa(!1),
|
|
1668
|
+
const $ = f.value.validateSteps(z);
|
|
1669
|
+
return Fa(!1), $;
|
|
1670
1670
|
}
|
|
1671
1671
|
return !0;
|
|
1672
1672
|
}, v = () => f.value?.beforeClose ? f.value.beforeClose() : !0;
|
|
1673
1673
|
let w, S, m, x = 0;
|
|
1674
|
-
const C = async (
|
|
1674
|
+
const C = async (z) => {
|
|
1675
1675
|
if (f.value) {
|
|
1676
1676
|
if (x = 0, f.value.getConfig) {
|
|
1677
|
-
const
|
|
1678
|
-
s.value =
|
|
1677
|
+
const $ = f.value.getConfig();
|
|
1678
|
+
s.value = $.buttons || [], y.value = $.isStep, _.value = $.steps || [];
|
|
1679
1679
|
} else
|
|
1680
1680
|
s.value = [], y.value = !1, _.value = [];
|
|
1681
1681
|
if (f.value.open) try {
|
|
1682
|
-
const { buttons:
|
|
1682
|
+
const { buttons: $ } = await f.value.open(z, n.value, () => {
|
|
1683
1683
|
w && w();
|
|
1684
1684
|
}) || {};
|
|
1685
|
-
if (
|
|
1685
|
+
if ($ && $.length > 0) {
|
|
1686
1686
|
const M = [];
|
|
1687
|
-
M.push(...s.value), M.push(
|
|
1687
|
+
M.push(...s.value), M.push(...$), s.value = M;
|
|
1688
1688
|
}
|
|
1689
|
-
} catch (
|
|
1690
|
-
n.value.close(), console.error(
|
|
1689
|
+
} catch ($) {
|
|
1690
|
+
n.value.close(), console.error($);
|
|
1691
1691
|
}
|
|
1692
1692
|
n.value.hideLoading();
|
|
1693
1693
|
} else {
|
|
@@ -1696,25 +1696,25 @@ var Eh = /* @__PURE__ */ he({
|
|
|
1696
1696
|
return;
|
|
1697
1697
|
}
|
|
1698
1698
|
x++, setTimeout(async () => {
|
|
1699
|
-
await C(
|
|
1699
|
+
await C(z);
|
|
1700
1700
|
}, 100);
|
|
1701
1701
|
}
|
|
1702
|
-
}, k = (
|
|
1703
|
-
u.value =
|
|
1704
|
-
n.value.showLoading("加载中"), await C(
|
|
1702
|
+
}, k = (z) => {
|
|
1703
|
+
u.value = z?.name, a.value = z?.width || 600, o.value = z?.height || 400, i.value = z?.hasBtns !== !1, r.value = z?.hasSaveBtn !== !1, l.value = z?.hasHeader !== !1, z?.destroyOnClose !== !1 && (d.value = !0), h.value = z?.config || {}, c.value = z?.btnText || "保存", w = z?.afterOk || null, S = z?.afterClose || null, m = z?.afterCancel || null, n.value.open(z.title, z.type, z.subtitle), zt(async () => {
|
|
1704
|
+
n.value.showLoading("加载中"), await C(z.param || {});
|
|
1705
1705
|
});
|
|
1706
1706
|
}, T = async () => {
|
|
1707
1707
|
if (f.value?.ok) {
|
|
1708
1708
|
Fa(!0);
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1709
|
+
const z = await f.value.ok();
|
|
1710
|
+
z && (n.value.close(), w && await w(z)), Fa(!1);
|
|
1711
1711
|
}
|
|
1712
1712
|
}, A = () => {
|
|
1713
1713
|
f.value?.closed && f.value.closed(), S && S();
|
|
1714
1714
|
}, H = () => {
|
|
1715
1715
|
m && m();
|
|
1716
1716
|
};
|
|
1717
|
-
return xh({ getPageName: g }), t({ open: k }), (
|
|
1717
|
+
return xh({ getPageName: g }), t({ open: k }), (z, $) => {
|
|
1718
1718
|
const M = V("j-layer");
|
|
1719
1719
|
return E(), N(M, {
|
|
1720
1720
|
ref_key: "layerRef",
|
|
@@ -3347,37 +3347,37 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3347
3347
|
get() {
|
|
3348
3348
|
return i.value !== -1 ? i.value : t.left;
|
|
3349
3349
|
},
|
|
3350
|
-
set(
|
|
3351
|
-
i.value =
|
|
3350
|
+
set($) {
|
|
3351
|
+
i.value = $;
|
|
3352
3352
|
}
|
|
3353
3353
|
}), h = O({
|
|
3354
3354
|
get() {
|
|
3355
3355
|
return r.value !== -1 ? r.value : t.right;
|
|
3356
3356
|
},
|
|
3357
|
-
set(
|
|
3358
|
-
r.value =
|
|
3357
|
+
set($) {
|
|
3358
|
+
r.value = $;
|
|
3359
3359
|
}
|
|
3360
3360
|
}), p = O({
|
|
3361
3361
|
get() {
|
|
3362
3362
|
return l.value !== -1 ? l.value : t.top;
|
|
3363
3363
|
},
|
|
3364
|
-
set(
|
|
3365
|
-
l.value =
|
|
3364
|
+
set($) {
|
|
3365
|
+
l.value = $;
|
|
3366
3366
|
}
|
|
3367
3367
|
}), g = O({
|
|
3368
3368
|
get() {
|
|
3369
3369
|
return c.value !== -1 ? c.value : t.bottom;
|
|
3370
3370
|
},
|
|
3371
|
-
set(
|
|
3372
|
-
c.value =
|
|
3371
|
+
set($) {
|
|
3372
|
+
c.value = $;
|
|
3373
3373
|
}
|
|
3374
3374
|
}), y = O(() => n.left), _ = O(() => n.right), b = O(() => n.top), v = O(() => n.bottom), w = O(() => y.value ? d.value && t.hideMidWhenNarrow && _.value ? "50%" : d.value && t.hideMidWhenNarrow && !_.value ? "100%" : typeof u.value == "number" ? u.value + "px" : u.value : "0"), S = O(() => _.value ? d.value && t.hideMidWhenNarrow && y.value ? "50%" : d.value && t.hideMidWhenNarrow && !y.value ? "100%" : typeof h.value == "number" ? h.value + "px" : h.value : "0"), m = O(() => b.value ? typeof p.value == "number" ? p.value + "px" : p.value : "0"), x = O(() => v.value ? typeof g.value == "number" ? g.value + "px" : g.value : "0"), C = O(() => ({
|
|
3375
3375
|
minWidth: t.midMinWidth + "px",
|
|
3376
3376
|
minHeight: t.midMinHeight + "px"
|
|
3377
|
-
})), k = (
|
|
3378
|
-
f.type =
|
|
3377
|
+
})), k = ($, M) => {
|
|
3378
|
+
f.type = $, f.isMove = !0, f.pageX = M.pageX, f.pageY = M.pageY, f.h = o.value.clientHeight, f.w = o.value.clientWidth;
|
|
3379
3379
|
const R = a.value.clientWidth, W = a.value.clientHeight;
|
|
3380
|
-
switch (
|
|
3380
|
+
switch ($) {
|
|
3381
3381
|
case "left": {
|
|
3382
3382
|
const q = u.value;
|
|
3383
3383
|
f.size = typeof q == "string" && q.includes("%") ? parseFloat(q) / 100 * R : Number(q);
|
|
@@ -3400,28 +3400,28 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3400
3400
|
}
|
|
3401
3401
|
}
|
|
3402
3402
|
document.onmouseup = A, document.onmousemove = T;
|
|
3403
|
-
}, T = (
|
|
3403
|
+
}, T = ($) => {
|
|
3404
3404
|
if (f.isMove) switch (f.type) {
|
|
3405
3405
|
case "left": {
|
|
3406
|
-
const M =
|
|
3406
|
+
const M = $.pageX - f.pageX;
|
|
3407
3407
|
let R = f.size + M;
|
|
3408
3408
|
R < 0 ? R = 4 : R > f.size + f.w - t.midMinWidth && (R = f.size + f.w - t.midMinWidth), u.value = R;
|
|
3409
3409
|
break;
|
|
3410
3410
|
}
|
|
3411
3411
|
case "right": {
|
|
3412
|
-
const M =
|
|
3412
|
+
const M = $.pageX - f.pageX;
|
|
3413
3413
|
let R = f.size - M;
|
|
3414
3414
|
R < 0 ? R = 4 : R > f.size + f.w - t.midMinWidth && (R = f.size + f.w - t.midMinWidth), h.value = R;
|
|
3415
3415
|
break;
|
|
3416
3416
|
}
|
|
3417
3417
|
case "top": {
|
|
3418
|
-
const M =
|
|
3418
|
+
const M = $.pageY - f.pageY;
|
|
3419
3419
|
let R = f.size + M;
|
|
3420
3420
|
R < 0 ? R = 4 : R > f.size + f.h - t.midMinHeight && (R = f.size + f.h - t.midMinHeight), p.value = R;
|
|
3421
3421
|
break;
|
|
3422
3422
|
}
|
|
3423
3423
|
case "bottom": {
|
|
3424
|
-
const M =
|
|
3424
|
+
const M = $.pageY - f.pageY;
|
|
3425
3425
|
let R = f.size - M;
|
|
3426
3426
|
R < 0 ? R = 4 : R > f.size + f.h - t.midMinHeight && (R = f.size + f.h - t.midMinHeight), g.value = R;
|
|
3427
3427
|
break;
|
|
@@ -3435,25 +3435,25 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3435
3435
|
return;
|
|
3436
3436
|
}
|
|
3437
3437
|
s.value = a.value.clientWidth;
|
|
3438
|
-
let
|
|
3438
|
+
let $ = 0, M = 0;
|
|
3439
3439
|
if (y.value) {
|
|
3440
3440
|
const R = u.value;
|
|
3441
|
-
|
|
3441
|
+
$ = typeof R == "string" && R.includes("%") ? parseFloat(R) / 100 * s.value : Number(R);
|
|
3442
3442
|
}
|
|
3443
3443
|
if (_.value) {
|
|
3444
3444
|
const R = h.value;
|
|
3445
3445
|
M = typeof R == "string" && R.includes("%") ? parseFloat(R) / 100 * s.value : Number(R);
|
|
3446
3446
|
}
|
|
3447
|
-
d.value = s.value -
|
|
3447
|
+
d.value = s.value - $ - M < t.midMinWidth;
|
|
3448
3448
|
};
|
|
3449
|
-
let
|
|
3449
|
+
let z = null;
|
|
3450
3450
|
return jt(() => {
|
|
3451
|
-
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (H(),
|
|
3451
|
+
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (H(), z = new ResizeObserver(() => {
|
|
3452
3452
|
H();
|
|
3453
|
-
}),
|
|
3453
|
+
}), z.observe(a.value));
|
|
3454
3454
|
}), Ao(() => {
|
|
3455
|
-
|
|
3456
|
-
}), (
|
|
3455
|
+
z && z.disconnect();
|
|
3456
|
+
}), ($, M) => (E(), L("div", {
|
|
3457
3457
|
ref_key: "layout",
|
|
3458
3458
|
ref: a,
|
|
3459
3459
|
class: Ne(["j-layout", { "j-layout-not-hidden": e.notHidden }])
|
|
@@ -3462,7 +3462,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3462
3462
|
key: 0,
|
|
3463
3463
|
class: "j-layout--left",
|
|
3464
3464
|
style: le({ width: w.value })
|
|
3465
|
-
}, [B("div", hp, [Ye(
|
|
3465
|
+
}, [B("div", hp, [Ye($.$slots, "left")]), e.leftMove ? (E(), L("div", {
|
|
3466
3466
|
key: 0,
|
|
3467
3467
|
class: "j-layout--move",
|
|
3468
3468
|
onMousedown: M[0] || (M[0] = (R) => k("left", R))
|
|
@@ -3472,7 +3472,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3472
3472
|
key: 0,
|
|
3473
3473
|
class: "j-layout--top",
|
|
3474
3474
|
style: le({ height: m.value })
|
|
3475
|
-
}, [B("div", gp, [Ye(
|
|
3475
|
+
}, [B("div", gp, [Ye($.$slots, "top")]), e.topMove ? (E(), L("div", {
|
|
3476
3476
|
key: 0,
|
|
3477
3477
|
class: "j-layout--move",
|
|
3478
3478
|
onMousedown: M[1] || (M[1] = (R) => k("top", R))
|
|
@@ -3482,12 +3482,12 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3482
3482
|
ref: o,
|
|
3483
3483
|
class: "j-layout--wrapper",
|
|
3484
3484
|
style: le(C.value)
|
|
3485
|
-
}, [Ye(
|
|
3485
|
+
}, [Ye($.$slots, "default")], 4),
|
|
3486
3486
|
v.value ? (E(), L("div", {
|
|
3487
3487
|
key: 1,
|
|
3488
3488
|
class: "j-layout--bottom",
|
|
3489
3489
|
style: le({ height: x.value })
|
|
3490
|
-
}, [B("div", vp, [Ye(
|
|
3490
|
+
}, [B("div", vp, [Ye($.$slots, "bottom")]), e.bottomMove ? (E(), L("div", {
|
|
3491
3491
|
key: 0,
|
|
3492
3492
|
class: "j-layout--move",
|
|
3493
3493
|
onMousedown: M[2] || (M[2] = (R) => k("bottom", R))
|
|
@@ -3497,7 +3497,7 @@ var Th = _e(Pc), Ah = /* @__PURE__ */ he({
|
|
|
3497
3497
|
key: 2,
|
|
3498
3498
|
class: "j-layout--right",
|
|
3499
3499
|
style: le({ width: S.value })
|
|
3500
|
-
}, [B("div", yp, [Ye(
|
|
3500
|
+
}, [B("div", yp, [Ye($.$slots, "right")]), e.rightMove ? (E(), L("div", {
|
|
3501
3501
|
key: 0,
|
|
3502
3502
|
class: "j-layout--move",
|
|
3503
3503
|
onMousedown: M[3] || (M[3] = (R) => k("right", R))
|
|
@@ -5382,18 +5382,18 @@ var jp = class {
|
|
|
5382
5382
|
}) || [] : C.value.options || [];
|
|
5383
5383
|
}), A = O(() => n.isTableCell && (k.value === "j-radio" || k.value === "j-checkbox") ? "j-select" : k.value === "j-textarea" ? "j-input" : ((k.value == null || k.value === "") && console.warn("组件类型不能为空"), k.value)), H = (j) => l({
|
|
5384
5384
|
value: j,
|
|
5385
|
-
config:
|
|
5385
|
+
config: $.value || {},
|
|
5386
5386
|
formData: s || {},
|
|
5387
5387
|
row: v,
|
|
5388
5388
|
getTableData: y
|
|
5389
|
-
}),
|
|
5389
|
+
}), z = async (j) => i ? await i({
|
|
5390
5390
|
type: A.value,
|
|
5391
|
-
config:
|
|
5391
|
+
config: $.value,
|
|
5392
5392
|
formData: s || {},
|
|
5393
5393
|
row: v,
|
|
5394
5394
|
getTableData: y,
|
|
5395
5395
|
params: j
|
|
5396
|
-
}) : [],
|
|
5396
|
+
}) : [], $ = O(() => {
|
|
5397
5397
|
const j = { ...C.value };
|
|
5398
5398
|
return A.value === "j-layer-form" && (j.schema = n.children), A.value === "el-collapse-item" && j.label && (j.title = j.label, delete j.label), [
|
|
5399
5399
|
"j-input-cards",
|
|
@@ -5405,7 +5405,7 @@ var jp = class {
|
|
|
5405
5405
|
...F,
|
|
5406
5406
|
id: F.id.slice(G.length + 1)
|
|
5407
5407
|
} : F;
|
|
5408
|
-
})), n.isTableCell && (k.value === "j-checkbox" && (j.multiple = !0), k.value === "j-select" && j.multiple && (j.collapseTags = !0, j.collapseTagsTooltip = !0), k.value === "j-switch" && (j.size = "small"), k.value === "j-textarea" && (j.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (j.loadLayerData =
|
|
5408
|
+
})), n.isTableCell && (k.value === "j-checkbox" && (j.multiple = !0), k.value === "j-select" && j.multiple && (j.collapseTags = !0, j.collapseTagsTooltip = !0), k.value === "j-switch" && (j.size = "small"), k.value === "j-textarea" && (j.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (j.loadLayerData = z, j.getText = H), j.dataType && (j.options = T.value), j;
|
|
5409
5409
|
}), M = O(() => {
|
|
5410
5410
|
if (A.value === "j-layer-form" || A.value === "j-input-rows" || A.value === "j-input-cards") return {};
|
|
5411
5411
|
const j = {};
|
|
@@ -5456,11 +5456,11 @@ var jp = class {
|
|
|
5456
5456
|
q.value.forEach((j) => j()), q.value = [];
|
|
5457
5457
|
}), (j, F) => {
|
|
5458
5458
|
const G = V("JComp"), P = V("el-row");
|
|
5459
|
-
return
|
|
5459
|
+
return $.value.display != !1 && w.value ? (E(), N(Ya(A.value), Fe({
|
|
5460
5460
|
key: 0,
|
|
5461
5461
|
ref_key: "compRef",
|
|
5462
5462
|
ref: W
|
|
5463
|
-
},
|
|
5463
|
+
}, $.value, {
|
|
5464
5464
|
modelValue: m.value,
|
|
5465
5465
|
"onUpdate:modelValue": F[0] || (F[0] = (ke) => m.value = ke),
|
|
5466
5466
|
"run-flow": J(u),
|
|
@@ -5468,17 +5468,17 @@ var jp = class {
|
|
|
5468
5468
|
}), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5469
5469
|
name: $e,
|
|
5470
5470
|
fn: K(() => [(E(!0), L(Ce, null, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5471
|
-
}))]), 1040, ["modelValue", "run-flow"])) :
|
|
5471
|
+
}))]), 1040, ["modelValue", "run-flow"])) : $.value.display != !1 ? (E(), N(Ya(A.value), Fe({
|
|
5472
5472
|
key: 1,
|
|
5473
5473
|
ref_key: "compRef",
|
|
5474
5474
|
ref: W
|
|
5475
|
-
},
|
|
5475
|
+
}, $.value, { onChange: R }), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5476
5476
|
name: $e,
|
|
5477
|
-
fn: K(() => [
|
|
5477
|
+
fn: K(() => [$.value.needRow === !0 || $.value.needRow?.[$e] === !0 ? (E(), N(P, {
|
|
5478
5478
|
key: 0,
|
|
5479
5479
|
gutter: p.value
|
|
5480
5480
|
}, {
|
|
5481
|
-
default: K(() => [
|
|
5481
|
+
default: K(() => [$.value.needFormItem === !0 || $.value.needFormItem?.[$e] === !0 ? (E(!0), L(Ce, { key: 0 }, He(ke, (we) => (E(), N(Hc, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128)) : (E(!0), L(Ce, { key: 1 }, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))]),
|
|
5482
5482
|
_: 2
|
|
5483
5483
|
}, 1032, ["gutter"])) : (E(!0), L(Ce, { key: 1 }, He(ke, (we) => (E(), N(G, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5484
5484
|
}))]), 1040)) : ee("", !0);
|
|
@@ -5740,20 +5740,20 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5740
5740
|
],
|
|
5741
5741
|
setup(e, { expose: t, emit: n }) {
|
|
5742
5742
|
const a = uc(), o = e, i = n, { formData: r } = Aa(), { useData: l } = bt(), { getLabel: c, getCode: s, loadDataState: d, getObjectList: f } = l(), { openLayer: u } = Po(), h = O(() => o.heightMode === "auto" ? { height: "auto" } : {}), p = na({}), g = () => {
|
|
5743
|
-
Object.keys(p).forEach((
|
|
5744
|
-
delete p[
|
|
5743
|
+
Object.keys(p).forEach((D) => {
|
|
5744
|
+
delete p[D];
|
|
5745
5745
|
});
|
|
5746
5746
|
}, y = I(40), _ = O(() => {
|
|
5747
|
-
const
|
|
5748
|
-
return o.heightMode === "auto" && (o.emptyTipText && y.value < 200 ?
|
|
5747
|
+
const D = {};
|
|
5748
|
+
return o.heightMode === "auto" && (o.emptyTipText && y.value < 200 ? D.height = "200px" : D.height = y.value + "px", D.flex = "none", o.maxHeight && (D.maxHeight = typeof o.maxHeight == "number" ? `${o.maxHeight}px` : o.maxHeight)), D;
|
|
5749
5749
|
}), b = I(null);
|
|
5750
5750
|
let v = null, w = null, S = 0, m = 0, x = !1;
|
|
5751
5751
|
const C = I(0);
|
|
5752
5752
|
let k = o.records.length, T = 45;
|
|
5753
|
-
const A = I(!1), H = I({}),
|
|
5753
|
+
const A = I(!1), H = I({}), z = I([]), $ = I(null), M = I(0);
|
|
5754
5754
|
let R = null, W = !1, q = !1;
|
|
5755
|
-
const se = (
|
|
5756
|
-
|
|
5755
|
+
const se = (D, U, Q, ae, Y) => {
|
|
5756
|
+
z.value = D, $.value = U, M.value = Q, H.value = {
|
|
5757
5757
|
left: `${ae}px`,
|
|
5758
5758
|
top: `${Y}px`
|
|
5759
5759
|
}, A.value = !0, W = !1, document.addEventListener("wheel", ke, { passive: !1 });
|
|
@@ -5769,34 +5769,34 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5769
5769
|
W = !0, F();
|
|
5770
5770
|
}, P = () => {
|
|
5771
5771
|
W = !1, j();
|
|
5772
|
-
}, ke = (
|
|
5773
|
-
|
|
5774
|
-
}, $e = (
|
|
5775
|
-
|
|
5776
|
-
data:
|
|
5772
|
+
}, ke = (D) => {
|
|
5773
|
+
D.preventDefault();
|
|
5774
|
+
}, $e = (D) => {
|
|
5775
|
+
D.config?.disabled || ($.value && D.click && D.click({
|
|
5776
|
+
data: $.value,
|
|
5777
5777
|
openLayer: u
|
|
5778
5778
|
}), ye());
|
|
5779
|
-
}, we = (
|
|
5780
|
-
let U =
|
|
5779
|
+
}, we = (D) => {
|
|
5780
|
+
let U = D.action.config?.display !== !1, Q = D.action.config?.disabled === !0;
|
|
5781
5781
|
const ae = o.actionFilter;
|
|
5782
5782
|
if (ae) try {
|
|
5783
|
-
const Y = ae(
|
|
5783
|
+
const Y = ae(D);
|
|
5784
5784
|
typeof Y == "boolean" ? U = Y : Y && typeof Y == "object" && (typeof Y.display == "boolean" && (U = Y.display), typeof Y.disabled == "boolean" && (Q = Y.disabled));
|
|
5785
5785
|
} catch {
|
|
5786
|
-
U =
|
|
5786
|
+
U = D.action.config?.display !== !1, Q = D.action.config?.disabled === !0;
|
|
5787
5787
|
}
|
|
5788
5788
|
return {
|
|
5789
5789
|
display: U,
|
|
5790
5790
|
disabled: Q
|
|
5791
5791
|
};
|
|
5792
|
-
}, Ge = (
|
|
5793
|
-
...
|
|
5792
|
+
}, Ge = (D, U) => U.disabled ? {
|
|
5793
|
+
...D,
|
|
5794
5794
|
config: {
|
|
5795
|
-
...
|
|
5795
|
+
...D.config || {},
|
|
5796
5796
|
disabled: !0
|
|
5797
5797
|
}
|
|
5798
|
-
} :
|
|
5799
|
-
const { Group: U, Text: Q } = We.CustomLayout, ae = o.actionsMaxCount, Y =
|
|
5798
|
+
} : D, Xe = (D) => {
|
|
5799
|
+
const { Group: U, Text: Q } = We.CustomLayout, ae = o.actionsMaxCount, Y = D.filter((fe) => fe.config?.display !== !1), te = Y.length > ae, re = te ? Y.slice(0, ae - 1) : Y;
|
|
5800
5800
|
let pe = 0;
|
|
5801
5801
|
if (re.forEach((fe, xe) => {
|
|
5802
5802
|
const Re = bn(fe.config?.label || fe.label || "") || 0;
|
|
@@ -5886,8 +5886,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5886
5886
|
};
|
|
5887
5887
|
}
|
|
5888
5888
|
};
|
|
5889
|
-
}, ie = (
|
|
5890
|
-
const { dataValue: Q, table: ae, col: Y, row: te, value: re } =
|
|
5889
|
+
}, ie = (D, U) => {
|
|
5890
|
+
const { dataValue: Q, table: ae, col: Y, row: te, value: re } = D, pe = D.rect ?? ae?.getCellRect?.(Y, te) ?? {
|
|
5891
5891
|
width: 0,
|
|
5892
5892
|
height: 0
|
|
5893
5893
|
}, de = ae?.getBodyField?.(Y, te), fe = ae?.options?.columns || [], xe = (de ? dt(fe, de) : null)?.style?.textAlign || "left", Re = 8, Be = Math.max(0, pe.width - Re * 2);
|
|
@@ -5908,8 +5908,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5908
5908
|
}],
|
|
5909
5909
|
expectedHeight: yn
|
|
5910
5910
|
};
|
|
5911
|
-
}, Ee = (
|
|
5912
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } =
|
|
5911
|
+
}, Ee = (D, U) => {
|
|
5912
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } = D;
|
|
5913
5913
|
let pe = "mdi:toggle-switch", de = "#165dff";
|
|
5914
5914
|
Q || (pe = "mdi:toggle-switch-off", de = "#e5e6eb");
|
|
5915
5915
|
const fe = Sa(pe), xe = fe?.body?.replace(/currentColor/g, de), Re = [], Be = Y?.getBodyField?.(te, re), Te = Y?.options?.columns || [], Qe = Be ? dt(Te, Be) : null, Le = 8, Ae = 40;
|
|
@@ -5925,8 +5925,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5925
5925
|
elements: Re,
|
|
5926
5926
|
expectedHeight: yn
|
|
5927
5927
|
};
|
|
5928
|
-
}, Me = (
|
|
5929
|
-
const { dataValue: Q, rect: ae } =
|
|
5928
|
+
}, Me = (D, U) => {
|
|
5929
|
+
const { dataValue: Q, rect: ae } = D, Y = Number(Q) || 0, te = 5, re = 20, pe = 4, de = 8, fe = (ae.height - re) / 2, xe = [], Re = Sa("mdi:star"), Be = Sa("mdi:star-half-full"), Te = Sa("mdi:star-outline"), Qe = "#f7ba2a", Le = "#e5e6eb";
|
|
5930
5930
|
for (let Ae = 0; Ae < te; Ae++) {
|
|
5931
5931
|
const et = de + Ae * (re + pe), tt = fe;
|
|
5932
5932
|
if (Y >= Ae + 1) {
|
|
@@ -5965,8 +5965,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
5965
5965
|
elements: xe,
|
|
5966
5966
|
expectedHeight: yn
|
|
5967
5967
|
};
|
|
5968
|
-
}, Oe = (
|
|
5969
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } =
|
|
5968
|
+
}, Oe = (D, U) => {
|
|
5969
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re } = D, pe = Y.getBodyField(te, re), de = dt(Y.options?.columns || [], pe), fe = Y.getCellOriginRecord?.(te, re) || Y.getRecordByCell?.(te, re) || {}, xe = U || Mn({
|
|
5970
5970
|
config: de?._compConfig,
|
|
5971
5971
|
getCompConfig: de?._getCompConfig,
|
|
5972
5972
|
formData: r || {},
|
|
@@ -6011,19 +6011,19 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6011
6011
|
elements: gn,
|
|
6012
6012
|
expectedHeight: yn
|
|
6013
6013
|
};
|
|
6014
|
-
}, Rt = (
|
|
6015
|
-
if (!
|
|
6016
|
-
if ((bn(
|
|
6014
|
+
}, Rt = (D) => String(D).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), _t = (D, U) => {
|
|
6015
|
+
if (!D) return "";
|
|
6016
|
+
if ((bn(D) || 0) <= U) return D;
|
|
6017
6017
|
const Q = "...", ae = bn(Q) || 0;
|
|
6018
6018
|
if (ae >= U) return "";
|
|
6019
|
-
let Y = 0, te =
|
|
6019
|
+
let Y = 0, te = D.length;
|
|
6020
6020
|
for (; Y < te; ) {
|
|
6021
6021
|
const re = Math.ceil((Y + te) / 2);
|
|
6022
|
-
(bn(
|
|
6022
|
+
(bn(D.slice(0, re)) || 0) + ae <= U ? Y = re : te = re - 1;
|
|
6023
6023
|
}
|
|
6024
|
-
return
|
|
6025
|
-
}, Ke = (
|
|
6026
|
-
const { value: Q, rect: ae, table: Y, col: te, row: re } =
|
|
6024
|
+
return D.slice(0, Y) + Q;
|
|
6025
|
+
}, Ke = (D, U) => {
|
|
6026
|
+
const { value: Q, rect: ae, table: Y, col: te, row: re } = D;
|
|
6027
6027
|
if (!Q) return {
|
|
6028
6028
|
elements: [],
|
|
6029
6029
|
expectedHeight: yn
|
|
@@ -6069,8 +6069,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6069
6069
|
}],
|
|
6070
6070
|
expectedHeight: Math.max(yn, Re)
|
|
6071
6071
|
};
|
|
6072
|
-
}, Yt = (
|
|
6073
|
-
const { dataValue: Q, rect: ae, table: Y, col: te, row: re, value: pe } =
|
|
6072
|
+
}, Yt = (D, U) => {
|
|
6073
|
+
const { dataValue: Q, rect: ae, table: Y, col: te, row: re, value: pe } = D, de = Y.getBodyField(te, re), fe = dt(Y.options?.columns || [], de), xe = Y.getCellOriginRecord?.(te, re) || Y.getRecordByCell?.(te, re) || {}, Re = U || Mn({
|
|
6074
6074
|
config: fe?._compConfig,
|
|
6075
6075
|
getCompConfig: fe?._getCompConfig,
|
|
6076
6076
|
formData: r || {},
|
|
@@ -6143,10 +6143,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6143
6143
|
expectedHeight: Math.max(yn, Go),
|
|
6144
6144
|
expectedWidth: Wt
|
|
6145
6145
|
};
|
|
6146
|
-
}, ln = (
|
|
6147
|
-
if (!
|
|
6148
|
-
|
|
6149
|
-
const U = parseInt(
|
|
6146
|
+
}, ln = (D) => {
|
|
6147
|
+
if (!D) return "#1d2129";
|
|
6148
|
+
D = D.replace("#", ""), D.length === 3 && (D = D.split("").map((Y) => Y + Y).join(""));
|
|
6149
|
+
const U = parseInt(D.substring(0, 2), 16), Q = parseInt(D.substring(2, 4), 16), ae = parseInt(D.substring(4, 6), 16);
|
|
6150
6150
|
if ((U * 299 + Q * 587 + ae * 114) / 1e3 >= 128) {
|
|
6151
6151
|
const Y = U / 255, te = Q / 255, re = ae / 255, pe = Math.max(Y, te, re), de = Math.min(Y, te, re);
|
|
6152
6152
|
let fe = 0, xe = 0;
|
|
@@ -6177,8 +6177,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6177
6177
|
return `#${et(Qe)}${et(Le)}${et(Ae)}`;
|
|
6178
6178
|
}
|
|
6179
6179
|
return "#ffffff";
|
|
6180
|
-
}, Jt = (
|
|
6181
|
-
const { table: U, row: Q, col: ae, rect: Y, value: te } =
|
|
6180
|
+
}, Jt = (D) => {
|
|
6181
|
+
const { table: U, row: Q, col: ae, rect: Y, value: te } = D, { Group: re, Text: pe } = We.CustomLayout, de = U.getBodyField(ae, Q), fe = dt(U.options?.columns || [], de), xe = fe?._compConfig || {}, Re = new re({
|
|
6182
6182
|
height: Y.height,
|
|
6183
6183
|
width: Y.width,
|
|
6184
6184
|
display: "flex",
|
|
@@ -6213,8 +6213,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6213
6213
|
rootContainer: Re,
|
|
6214
6214
|
renderDefault: !1
|
|
6215
6215
|
};
|
|
6216
|
-
}, Ht = (
|
|
6217
|
-
const { table: U, row: Q, col: ae, rect: Y } =
|
|
6216
|
+
}, Ht = (D) => {
|
|
6217
|
+
const { table: U, row: Q, col: ae, rect: Y } = D, { height: te, width: re } = Y ?? U.getCellRect(ae, Q), { Group: pe, CheckBox: de } = We.CustomLayout, fe = U.getBodyField(ae, Q), xe = dt(U.options?.columns || [], fe), Re = U.getCellOriginRecord(ae, Q) || {}, Be = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Te = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Qe = (nt, me) => {
|
|
6218
6218
|
const pt = Re?.[fe];
|
|
6219
6219
|
Re[fe] = (Array.isArray(pt) ? pt : []).map((Ve, Dt) => Dt !== nt ? Ve : Ve && typeof Ve == "object" ? {
|
|
6220
6220
|
...Ve,
|
|
@@ -6275,15 +6275,15 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6275
6275
|
rootContainer: Ae,
|
|
6276
6276
|
renderDefault: !1
|
|
6277
6277
|
};
|
|
6278
|
-
}, Ot = (
|
|
6279
|
-
const { table: U, row: Q, col: ae } =
|
|
6278
|
+
}, Ot = (D) => {
|
|
6279
|
+
const { table: U, row: Q, col: ae } = D, Y = U.getBodyField(ae, Q), te = dt(U.options?.columns || [], Y), re = te?._compConfig || {};
|
|
6280
6280
|
if (te?._customLayout) return te._customLayout({
|
|
6281
|
-
...
|
|
6281
|
+
...D,
|
|
6282
6282
|
config: re,
|
|
6283
6283
|
customLayout: We.CustomLayout
|
|
6284
6284
|
});
|
|
6285
|
-
}, dt = (
|
|
6286
|
-
for (const Q of
|
|
6285
|
+
}, dt = (D, U) => {
|
|
6286
|
+
for (const Q of D) {
|
|
6287
6287
|
if (Q.field === U) return Q;
|
|
6288
6288
|
if (Q.columns) {
|
|
6289
6289
|
const ae = dt(Q.columns, U);
|
|
@@ -6291,8 +6291,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6291
6291
|
}
|
|
6292
6292
|
}
|
|
6293
6293
|
return null;
|
|
6294
|
-
}, Vt = (
|
|
6295
|
-
const { table: U, col: Q, row: ae } =
|
|
6294
|
+
}, Vt = (D) => {
|
|
6295
|
+
const { table: U, col: Q, row: ae } = D, Y = U.getBodyField(Q, ae), te = dt(U.options?.columns || [], Y);
|
|
6296
6296
|
if (!te) return {
|
|
6297
6297
|
elements: [],
|
|
6298
6298
|
expectedHeight: yn
|
|
@@ -6321,41 +6321,41 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6321
6321
|
"j-input-tag": Yt,
|
|
6322
6322
|
"j-icon": Ke
|
|
6323
6323
|
}[de] || ie;
|
|
6324
|
-
return fe ? fe(
|
|
6324
|
+
return fe ? fe(D, pe) : {
|
|
6325
6325
|
elements: [],
|
|
6326
6326
|
expectedHeight: yn
|
|
6327
6327
|
};
|
|
6328
|
-
}, Cn = (
|
|
6328
|
+
}, Cn = (D, U, Q, ae) => {
|
|
6329
6329
|
const Y = ae.getBodyField(U, Q), te = dt(ae.options?.columns || [], Y);
|
|
6330
|
-
if (te._fieldFormat) return te._fieldFormat(
|
|
6330
|
+
if (te._fieldFormat) return te._fieldFormat(D, U, Q, ae);
|
|
6331
6331
|
if (te._compType === "dateTime") {
|
|
6332
6332
|
const de = te._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6333
|
-
return Yr(
|
|
6333
|
+
return Yr(D[Y], de);
|
|
6334
6334
|
}
|
|
6335
|
-
const re = Wf(
|
|
6335
|
+
const re = Wf(D[Y], c, {
|
|
6336
6336
|
type: te._compType,
|
|
6337
6337
|
getCompType: te._getCompType,
|
|
6338
6338
|
getCompConfig: te._getCompConfig,
|
|
6339
6339
|
config: te._compConfig,
|
|
6340
6340
|
formData: r,
|
|
6341
6341
|
getTableData: ht,
|
|
6342
|
-
row:
|
|
6342
|
+
row: D
|
|
6343
6343
|
});
|
|
6344
|
-
if (
|
|
6345
|
-
var pe = s(re.config.dataType, re.config.dataCode, { value:
|
|
6344
|
+
if (D[Y] && D[Y] == re.label && re.config.dataType && re.config.dataType != "options" && !re.config.options && re.type != "j-autocomplete" && c && s) {
|
|
6345
|
+
var pe = s(re.config.dataType, re.config.dataCode, { value: D[Y] });
|
|
6346
6346
|
p[pe] = !0;
|
|
6347
6347
|
}
|
|
6348
6348
|
return re.label;
|
|
6349
6349
|
}, X = () => {
|
|
6350
6350
|
if (!d?.value) return !1;
|
|
6351
|
-
const
|
|
6352
|
-
return
|
|
6351
|
+
const D = Object.keys(p);
|
|
6352
|
+
return D.length === 0 ? !1 : D.every((U) => d.value?.[U] === 9);
|
|
6353
6353
|
};
|
|
6354
|
-
at(() => X(), (
|
|
6355
|
-
|
|
6354
|
+
at(() => X(), (D) => {
|
|
6355
|
+
D && v && v.renderWithRecreateCells();
|
|
6356
6356
|
});
|
|
6357
|
-
const ce = (
|
|
6358
|
-
const U =
|
|
6357
|
+
const ce = (D) => {
|
|
6358
|
+
const U = D.filter((Q) => Q.config?.display !== !1).map((Q) => {
|
|
6359
6359
|
const { id: ae, type: Y, config: te, getCompConfig: re, getCompType: pe, children: de, customLayout: fe } = Q, { label: xe, width: Re, minWidth: Be, maxWidth: Te, align: Qe, headerAlign: Le, fieldFormat: Ae, editor: et, frozen: tt, ...ut } = te || {}, nt = Le ?? Qe, me = {
|
|
6360
6360
|
field: ae,
|
|
6361
6361
|
title: xe,
|
|
@@ -6375,20 +6375,20 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6375
6375
|
return (Ve || pt) && (me.editor = Ve || "j-comp-editor", x = !0), pt ? me.customRender = Vt : (Y === "j-switch" && (me.customRender = Ee), Y === "j-rate" && (me.customRender = Me), Y === "j-slider" && (me.customRender = Oe), (Y === "j-tag" || Y === "j-input-tag") && (me.customRender = Yt), Y === "j-icon" && (me.customRender = Ke)), Y === "link" && (me.customLayout = Jt), Y === "checkbox" && (me.customLayout = Ht), Y === "j-switch" && (me.minWidth = me.minWidth || Re, me.maxWidth = me.maxWidth || Re), fe && (me.customLayout = Ot), me.fieldFormat = Cn, de && de.length > 0 && (me.columns = ce(de)), me;
|
|
6376
6376
|
});
|
|
6377
6377
|
return o.isTree && U.length > 0 && (U[0].tree = !0), U;
|
|
6378
|
-
}, ne = (
|
|
6379
|
-
const Q =
|
|
6378
|
+
}, ne = (D, U) => {
|
|
6379
|
+
const Q = D.replace("#", ""), ae = parseInt(Q, 16), Y = Math.min(255, Math.max(0, (ae >> 16) + U)), te = Math.min(255, Math.max(0, (ae >> 8 & 255) + U)), re = Math.min(255, Math.max(0, (ae & 255) + U));
|
|
6380
6380
|
return `#${(Y << 16 | te << 8 | re).toString(16).padStart(6, "0")}`;
|
|
6381
6381
|
}, oe = () => {
|
|
6382
|
-
let
|
|
6383
|
-
o.isPage && (
|
|
6384
|
-
let U = bn(String(
|
|
6382
|
+
let D = k;
|
|
6383
|
+
o.isPage && (D = It.value + k);
|
|
6384
|
+
let U = bn(String(D)) || 0;
|
|
6385
6385
|
return o.subColumns && o.subColumns.length > 0 && (U = U + 32), Math.max(45, U + 18);
|
|
6386
|
-
}, ge = (
|
|
6386
|
+
}, ge = (D) => {
|
|
6387
6387
|
let U = (Q, ae, Y, te) => {
|
|
6388
6388
|
const re = te.getRecordIndexByCell(ae, Y);
|
|
6389
|
-
return o.isPage && !
|
|
6389
|
+
return o.isPage && !D ? It.value + re + 1 : re + 1;
|
|
6390
6390
|
};
|
|
6391
|
-
return
|
|
6391
|
+
return D && (U = (Q, ae, Y, te) => te.getRecordIndexByCell(ae, Y) + 1), {
|
|
6392
6392
|
field: "__sequence__",
|
|
6393
6393
|
title: "序号",
|
|
6394
6394
|
width: T,
|
|
@@ -6412,15 +6412,15 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6412
6412
|
fieldFormat: () => "",
|
|
6413
6413
|
_getCompConfig: void 0,
|
|
6414
6414
|
_getCompType: void 0
|
|
6415
|
-
}), Ie = (
|
|
6416
|
-
if (
|
|
6417
|
-
if (
|
|
6415
|
+
}), Ie = (D) => {
|
|
6416
|
+
if (D.frozen) return D.frozen;
|
|
6417
|
+
if (D.columns) for (const U of D.columns) {
|
|
6418
6418
|
const Q = Ie(U);
|
|
6419
6419
|
if (Q) return Q;
|
|
6420
6420
|
}
|
|
6421
|
-
}, ot = (
|
|
6421
|
+
}, ot = (D) => {
|
|
6422
6422
|
const U = [];
|
|
6423
|
-
return
|
|
6423
|
+
return D.forEach((Q) => {
|
|
6424
6424
|
if (Q.frozen) {
|
|
6425
6425
|
U.push(Q);
|
|
6426
6426
|
return;
|
|
@@ -6448,9 +6448,9 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6448
6448
|
columns: te
|
|
6449
6449
|
});
|
|
6450
6450
|
}), U;
|
|
6451
|
-
}, St = (
|
|
6451
|
+
}, St = (D) => {
|
|
6452
6452
|
let U = 0, Q = 0;
|
|
6453
|
-
return
|
|
6453
|
+
return D.forEach((ae) => {
|
|
6454
6454
|
if (ae.columns && ae.columns.length > 0) {
|
|
6455
6455
|
const Y = St(ae.columns);
|
|
6456
6456
|
U += Y.left, Q += Y.right;
|
|
@@ -6459,10 +6459,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6459
6459
|
left: U,
|
|
6460
6460
|
right: Q
|
|
6461
6461
|
};
|
|
6462
|
-
}, ft = (
|
|
6462
|
+
}, ft = (D, U, Q, ae) => {
|
|
6463
6463
|
S = 0, m = 0, x = !1;
|
|
6464
6464
|
const Y = {};
|
|
6465
|
-
let te = ce(
|
|
6465
|
+
let te = ce(D);
|
|
6466
6466
|
te.length === 0 && (te = [je()]), te = ot(te);
|
|
6467
6467
|
const re = [], pe = [], de = [];
|
|
6468
6468
|
te.forEach((Be) => {
|
|
@@ -6490,11 +6490,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6490
6490
|
option: Y
|
|
6491
6491
|
};
|
|
6492
6492
|
}, Sn = () => {
|
|
6493
|
-
const
|
|
6493
|
+
const D = ft(o.columns, o.isShowNumber && !o.isTree, o.actions);
|
|
6494
6494
|
Jn.value && m++;
|
|
6495
6495
|
const U = {
|
|
6496
6496
|
records: [],
|
|
6497
|
-
columns:
|
|
6497
|
+
columns: D.columns,
|
|
6498
6498
|
autoFillWidth: !0,
|
|
6499
6499
|
enableCheckboxCascade: Jn.value,
|
|
6500
6500
|
enableHeaderCheckboxCascade: Jn.value,
|
|
@@ -6503,7 +6503,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6503
6503
|
tooltip: { isShowOverflowTextTooltip: !0 },
|
|
6504
6504
|
hover: { highlightMode: o.highlightMode },
|
|
6505
6505
|
select: { highlightMode: o.highlightMode },
|
|
6506
|
-
...
|
|
6506
|
+
...D.option
|
|
6507
6507
|
};
|
|
6508
6508
|
return o.isTree && o.defaultExpandAll && !o.loadChildren && (U.hierarchyExpandLevel = Number.POSITIVE_INFINITY), o.emptyTipText && (U.emptyTip = { text: o.emptyTipText }), o.isAnimationAppear && (U.animationAppear = {
|
|
6509
6509
|
duration: 100,
|
|
@@ -6540,13 +6540,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6540
6540
|
height: "auto"
|
|
6541
6541
|
},
|
|
6542
6542
|
theme: Qo,
|
|
6543
|
-
...
|
|
6543
|
+
...D.option
|
|
6544
6544
|
} }), U.plugins = [w]), U;
|
|
6545
|
-
}, kn = (
|
|
6545
|
+
}, kn = (D) => !o.isTree || !o.parentKey || D.some((U) => Array.isArray(U?.children) && U.children.length > 0) ? D : $f(D, (o.rowKey || "").split(",")[0]?.trim() || "id", o.parentKey), va = (D) => {
|
|
6546
6546
|
if (!b.value) return;
|
|
6547
6547
|
g(), T = oe(), Lp();
|
|
6548
6548
|
const U = Sn(), Q = Ml();
|
|
6549
|
-
|
|
6549
|
+
D && D.length >= 0 ? U.records = kn(D) : Q.length > 0 ? U.records = kn(Q) : (U.records = kn(o.records), i("update:modelValue", U.records)), v = new We.ListTable(b.value, U), v._getAppContext = () => a?.appContext;
|
|
6550
6550
|
const ae = a?.provides;
|
|
6551
6551
|
v._getProvides = () => ae, o.loadChildren && v.on(We.ListTable.EVENT_TYPE.TREE_HIERARCHY_STATE_CHANGE, async (Y) => {
|
|
6552
6552
|
if (Y.hierarchyState === We.TYPES.HierarchyState.expand && Y.originData?.children === !0) {
|
|
@@ -6590,10 +6590,10 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6590
6590
|
}), y.value = v.getAllRowsHeight(), i("ready", v);
|
|
6591
6591
|
}, Se = () => {
|
|
6592
6592
|
v && (v.release(), v = null);
|
|
6593
|
-
}, Pe = () => v, yt = (
|
|
6593
|
+
}, Pe = () => v, yt = (D) => {
|
|
6594
6594
|
if (g(), C.value = 0, v) {
|
|
6595
|
-
v.setScrollTop(0), k =
|
|
6596
|
-
const U = kn(
|
|
6595
|
+
v.setScrollTop(0), k = D.length;
|
|
6596
|
+
const U = kn(D);
|
|
6597
6597
|
if (o.subColumns && o.subColumns.length > 0) setTimeout(() => {
|
|
6598
6598
|
Se(), va(U);
|
|
6599
6599
|
});
|
|
@@ -6602,7 +6602,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6602
6602
|
Q !== T ? (T = Q, o.subColumns && o.subColumns.length > 0 ? (Se(), va(U)) : qe(U)) : v.setRecords(U);
|
|
6603
6603
|
}
|
|
6604
6604
|
if (o.selectStateKey && o.isMultiple) {
|
|
6605
|
-
const Q =
|
|
6605
|
+
const Q = D.filter((ae) => ae[o.selectStateKey]);
|
|
6606
6606
|
Un(Q), C.value = Q.length, i("selectRecordsChanged", Q), i("selectionChanged", {
|
|
6607
6607
|
isMultiple: !0,
|
|
6608
6608
|
selections: Q,
|
|
@@ -6621,40 +6621,40 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6621
6621
|
get() {
|
|
6622
6622
|
return o.tablePage;
|
|
6623
6623
|
},
|
|
6624
|
-
set(
|
|
6625
|
-
i("update:tablePage",
|
|
6624
|
+
set(D) {
|
|
6625
|
+
i("update:tablePage", D);
|
|
6626
6626
|
}
|
|
6627
6627
|
}), mt = I(0), Gt = O({
|
|
6628
6628
|
get() {
|
|
6629
6629
|
return mt.value !== 0 ? mt.value : o.pageSize;
|
|
6630
6630
|
},
|
|
6631
|
-
set(
|
|
6632
|
-
mt.value =
|
|
6631
|
+
set(D) {
|
|
6632
|
+
mt.value = D, i("update:pageSize", D);
|
|
6633
6633
|
}
|
|
6634
|
-
}), It = O(() => (be.value - 1) * Gt.value), qt = (
|
|
6634
|
+
}), It = O(() => (be.value - 1) * Gt.value), qt = (D, U) => {
|
|
6635
6635
|
i("loadPageData", {
|
|
6636
6636
|
rows: U,
|
|
6637
|
-
page:
|
|
6637
|
+
page: D
|
|
6638
6638
|
});
|
|
6639
6639
|
}, Ze = () => {
|
|
6640
6640
|
if (!v) return [];
|
|
6641
6641
|
if (!Jn.value) {
|
|
6642
|
-
const
|
|
6643
|
-
if (
|
|
6644
|
-
const U =
|
|
6642
|
+
const D = v.getSelectedCellInfos();
|
|
6643
|
+
if (D && D.length > 0) {
|
|
6644
|
+
const U = D[0][0];
|
|
6645
6645
|
return U?.originData ? [U.originData] : [];
|
|
6646
6646
|
}
|
|
6647
6647
|
return [];
|
|
6648
6648
|
}
|
|
6649
6649
|
if (v.stateManager && v.stateManager.checkedState) {
|
|
6650
|
-
const
|
|
6650
|
+
const D = [], U = /* @__PURE__ */ new Set(), Q = (pe) => {
|
|
6651
6651
|
if (!pe) return;
|
|
6652
6652
|
const de = sn(pe);
|
|
6653
6653
|
if (de) {
|
|
6654
6654
|
if (U.has(de)) return;
|
|
6655
6655
|
U.add(de);
|
|
6656
6656
|
const fe = {};
|
|
6657
|
-
pe.__checkState = !0, wi(fe, pe, ["children"]),
|
|
6657
|
+
pe.__checkState = !0, wi(fe, pe, ["children"]), D.push(fe);
|
|
6658
6658
|
} else console.warn("key is empty");
|
|
6659
6659
|
}, ae = (pe) => {
|
|
6660
6660
|
const de = pe?.children;
|
|
@@ -6671,13 +6671,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6671
6671
|
const xe = re(0, (de + "").split(",").map(Number), te);
|
|
6672
6672
|
Q(xe), fe === !0 && ae(xe);
|
|
6673
6673
|
}
|
|
6674
|
-
}),
|
|
6674
|
+
}), D;
|
|
6675
6675
|
}
|
|
6676
6676
|
return [];
|
|
6677
|
-
}, sn = (
|
|
6677
|
+
}, sn = (D) => o.editConfig.isRemoveBtn ? D._i : o.rowKey ? o.rowKey.split(",").map((U) => D[U.trim()]).join("::") : "", Un = (D) => {
|
|
6678
6678
|
if (v)
|
|
6679
6679
|
if (Jn.value || v.clearSelected(), o.rowKey) {
|
|
6680
|
-
const U = new Set(
|
|
6680
|
+
const U = new Set(D.map(sn)), Q = "__checkState";
|
|
6681
6681
|
if (!Jn.value) {
|
|
6682
6682
|
const pe = v.records;
|
|
6683
6683
|
for (let de = 0; de < pe.length; de++) {
|
|
@@ -6710,9 +6710,9 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6710
6710
|
for (let pe = 0; pe < re.length; pe++) re[pe][0].originData[Q] == !0 && v.setCellCheckboxState(0, pe + 1, !0);
|
|
6711
6711
|
v.renderWithRecreateCells();
|
|
6712
6712
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6713
|
-
}, ya = (
|
|
6714
|
-
i("rowChange",
|
|
6715
|
-
}, qe = (
|
|
6713
|
+
}, ya = (D) => {
|
|
6714
|
+
i("rowChange", D), v.renderWithRecreateCells();
|
|
6715
|
+
}, qe = (D) => {
|
|
6716
6716
|
if (!v) return;
|
|
6717
6717
|
const U = Ze();
|
|
6718
6718
|
if (U.length > 0) {
|
|
@@ -6720,55 +6720,55 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6720
6720
|
return;
|
|
6721
6721
|
}
|
|
6722
6722
|
const Q = Sn();
|
|
6723
|
-
Q.records =
|
|
6723
|
+
Q.records = D || v.records, v.updateOption(Q, {
|
|
6724
6724
|
clearColWidthCache: !1,
|
|
6725
6725
|
clearRowHeightCache: !1
|
|
6726
6726
|
}), o.heightMode === "auto" && (y.value = v.getAllRowsHeight()), C.value = 0;
|
|
6727
6727
|
}, Tt = () => {
|
|
6728
6728
|
v.renderWithRecreateCells();
|
|
6729
6729
|
}, Qt = O(() => o.editConfig.isAddBtn), en = O(() => o.editConfig.addBtnText || "添加"), Yn = O(() => o.editConfig.isRemoveBtn), Jo = O(() => o.editConfig.readonly), Jn = O(() => o.isMultiple || Yn.value), Ml = () => {
|
|
6730
|
-
const
|
|
6731
|
-
return
|
|
6730
|
+
const D = o.modelValue || [];
|
|
6731
|
+
return D.forEach((U) => {
|
|
6732
6732
|
U._i || (U._i = ta());
|
|
6733
|
-
}),
|
|
6733
|
+
}), D;
|
|
6734
6734
|
};
|
|
6735
6735
|
at(() => o.modelValue, () => {
|
|
6736
6736
|
yt(Ml());
|
|
6737
6737
|
});
|
|
6738
6738
|
const yd = O(() => {
|
|
6739
|
-
const
|
|
6739
|
+
const D = (U) => {
|
|
6740
6740
|
const Q = [];
|
|
6741
6741
|
return U.forEach((ae) => {
|
|
6742
|
-
ae.children && ae.children.length > 0 ? Q.push(...
|
|
6742
|
+
ae.children && ae.children.length > 0 ? Q.push(...D(ae.children)) : Q.push(ae);
|
|
6743
6743
|
}), Q;
|
|
6744
6744
|
};
|
|
6745
|
-
return
|
|
6745
|
+
return D(o.columns);
|
|
6746
6746
|
}), md = () => {
|
|
6747
|
-
const
|
|
6748
|
-
|
|
6747
|
+
const D = {};
|
|
6748
|
+
D._i = ta(), yd.value.forEach((U) => {
|
|
6749
6749
|
const Q = U.config?.valueRowKey || U.id || "";
|
|
6750
|
-
Q && (
|
|
6751
|
-
}), v && (v.addRecord(
|
|
6750
|
+
Q && (D[Q] = xn(U.config?.defaultValue));
|
|
6751
|
+
}), v && (v.addRecord(D), o.heightMode === "auto" && qe(), v.scrollToCell({
|
|
6752
6752
|
col: 0,
|
|
6753
6753
|
row: v.records.length
|
|
6754
6754
|
})), i("change", {
|
|
6755
6755
|
id: o.id,
|
|
6756
|
-
value:
|
|
6757
|
-
data:
|
|
6756
|
+
value: D,
|
|
6757
|
+
data: D,
|
|
6758
6758
|
formData: r,
|
|
6759
6759
|
tableData: v.records,
|
|
6760
6760
|
type: "add"
|
|
6761
6761
|
});
|
|
6762
6762
|
}, bd = O(() => C.value > 0), wd = () => {
|
|
6763
6763
|
if (!v) return;
|
|
6764
|
-
const
|
|
6765
|
-
|
|
6764
|
+
const D = Ze();
|
|
6765
|
+
D.length !== 0 && Ad.confirm(`确定要删除选中的 ${D.length} 条记录吗?`, "删除确认", {
|
|
6766
6766
|
confirmButtonText: "确定",
|
|
6767
6767
|
cancelButtonText: "取消",
|
|
6768
6768
|
type: "warning"
|
|
6769
6769
|
}).then(() => {
|
|
6770
|
-
const U = v.records, Q = new Set(
|
|
6771
|
-
qe(ae), i("update:modelValue", ae),
|
|
6770
|
+
const U = v.records, Q = new Set(D.map((Y) => Y._i)), ae = U.filter((Y) => !Q.has(Y._i));
|
|
6771
|
+
qe(ae), i("update:modelValue", ae), D.forEach((Y) => {
|
|
6772
6772
|
i("change", {
|
|
6773
6773
|
id: o.id,
|
|
6774
6774
|
value: Y,
|
|
@@ -6781,8 +6781,8 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6781
6781
|
}).catch(() => {
|
|
6782
6782
|
});
|
|
6783
6783
|
};
|
|
6784
|
-
return at(() => o.columns, (
|
|
6785
|
-
JSON.stringify(
|
|
6784
|
+
return at(() => o.columns, (D, U) => {
|
|
6785
|
+
JSON.stringify(D) !== JSON.stringify(U) && qe();
|
|
6786
6786
|
}), at(() => [
|
|
6787
6787
|
o.isTree,
|
|
6788
6788
|
o.defaultExpandAll,
|
|
@@ -6814,7 +6814,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6814
6814
|
getSelection: Ze,
|
|
6815
6815
|
setSelection: Un,
|
|
6816
6816
|
renderTable: Tt
|
|
6817
|
-
}), (
|
|
6817
|
+
}), (D, U) => {
|
|
6818
6818
|
const Q = V("j-button"), ae = V("el-space"), Y = V("el-pagination");
|
|
6819
6819
|
return E(), L("div", {
|
|
6820
6820
|
class: Ne(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
@@ -6876,7 +6876,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
6876
6876
|
style: le(H.value),
|
|
6877
6877
|
onMouseenter: G,
|
|
6878
6878
|
onMouseleave: P
|
|
6879
|
-
}, [(E(!0), L(Ce, null, He(
|
|
6879
|
+
}, [(E(!0), L(Ce, null, He(z.value, (te) => (E(), L("div", {
|
|
6880
6880
|
key: te.id,
|
|
6881
6881
|
class: "j-table-dropdown-item",
|
|
6882
6882
|
style: le({
|
|
@@ -7027,22 +7027,22 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7027
7027
|
}, A = () => {
|
|
7028
7028
|
o("ok", C, k);
|
|
7029
7029
|
}, H = () => {
|
|
7030
|
-
p.left = 0, p.top = 0, v.value = 0, b.value = 0, a.isStep && (
|
|
7030
|
+
p.left = 0, p.top = 0, v.value = 0, b.value = 0, a.isStep && (z.value = 0, zt(() => {
|
|
7031
7031
|
W();
|
|
7032
7032
|
})), o("closed");
|
|
7033
|
-
},
|
|
7033
|
+
}, z = O({
|
|
7034
7034
|
get() {
|
|
7035
7035
|
return h.value !== -1 ? h.value : a.stepActive;
|
|
7036
7036
|
},
|
|
7037
7037
|
set(P) {
|
|
7038
7038
|
h.value = P, o("update:stepActive", P);
|
|
7039
7039
|
}
|
|
7040
|
-
}),
|
|
7041
|
-
|
|
7040
|
+
}), $ = () => {
|
|
7041
|
+
z.value > 0 && z.value--, zt(() => {
|
|
7042
7042
|
W();
|
|
7043
7043
|
});
|
|
7044
7044
|
}, M = async () => {
|
|
7045
|
-
await R() && (
|
|
7045
|
+
await R() && (z.value < a.steps.length - 1 && (z.value += 1), zt(() => {
|
|
7046
7046
|
W();
|
|
7047
7047
|
}));
|
|
7048
7048
|
}, R = async () => {
|
|
@@ -7052,7 +7052,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7052
7052
|
}
|
|
7053
7053
|
return s.value = !1, !0;
|
|
7054
7054
|
}, W = () => {
|
|
7055
|
-
switch (u.value = !0, f.value = !0, d.value = !0,
|
|
7055
|
+
switch (u.value = !0, f.value = !0, d.value = !0, z.value) {
|
|
7056
7056
|
case 0:
|
|
7057
7057
|
f.value = !1;
|
|
7058
7058
|
break;
|
|
@@ -7152,7 +7152,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7152
7152
|
width: "100%"
|
|
7153
7153
|
}) }, [Z(Xe, {
|
|
7154
7154
|
simple: "",
|
|
7155
|
-
active:
|
|
7155
|
+
active: z.value,
|
|
7156
7156
|
space: 160,
|
|
7157
7157
|
"finish-status": "success"
|
|
7158
7158
|
}, {
|
|
@@ -7170,7 +7170,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7170
7170
|
size: "mini",
|
|
7171
7171
|
disabled: d.value,
|
|
7172
7172
|
label: J(i)("上一步"),
|
|
7173
|
-
onClick:
|
|
7173
|
+
onClick: $
|
|
7174
7174
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7175
7175
|
e.isStep ? (E(), N($e, {
|
|
7176
7176
|
key: 1,
|
|
@@ -7347,7 +7347,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7347
7347
|
showLoading: v,
|
|
7348
7348
|
hideLoading: w
|
|
7349
7349
|
}), (A, H) => {
|
|
7350
|
-
const
|
|
7350
|
+
const z = V("el-step"), $ = V("el-steps"), M = V("j-button"), R = V("el-space"), W = V("el-divider"), q = V("el-dialog"), se = Pi("loading");
|
|
7351
7351
|
return E(), N(q, {
|
|
7352
7352
|
modelValue: l.value,
|
|
7353
7353
|
"onUpdate:modelValue": H[0] || (H[0] = (ye) => l.value = ye),
|
|
@@ -7376,14 +7376,14 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7376
7376
|
B("div", {
|
|
7377
7377
|
class: "j-dialog-full-header-mid",
|
|
7378
7378
|
style: le({ maxWidth: `${200 * k.value.length}px` })
|
|
7379
|
-
}, [e.isStep ? (E(), N(
|
|
7379
|
+
}, [e.isStep ? (E(), N($, {
|
|
7380
7380
|
key: 0,
|
|
7381
7381
|
simple: "",
|
|
7382
7382
|
active: g.value,
|
|
7383
7383
|
space: 160,
|
|
7384
7384
|
"finish-status": "success"
|
|
7385
7385
|
}, {
|
|
7386
|
-
default: K(() => [(E(!0), L(Ce, null, He(k.value, (ye, j) => (E(), N(
|
|
7386
|
+
default: K(() => [(E(!0), L(Ce, null, He(k.value, (ye, j) => (E(), N(z, {
|
|
7387
7387
|
key: j,
|
|
7388
7388
|
title: J(r)(ye.title)
|
|
7389
7389
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -7609,7 +7609,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7609
7609
|
showLoading: d,
|
|
7610
7610
|
hideLoading: f
|
|
7611
7611
|
}), (A, H) => {
|
|
7612
|
-
const
|
|
7612
|
+
const z = V("el-input"), $ = V("j-button"), M = V("el-space"), R = V("el-step"), W = V("el-steps"), q = V("el-drawer"), se = Pi("loading");
|
|
7613
7613
|
return E(), N(q, {
|
|
7614
7614
|
modelValue: s.value,
|
|
7615
7615
|
"onUpdate:modelValue": H[0] || (H[0] = (ye) => s.value = ye),
|
|
@@ -7633,21 +7633,21 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7633
7633
|
class: "j-drawer--body",
|
|
7634
7634
|
style: le({ "padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0" })
|
|
7635
7635
|
}, [
|
|
7636
|
-
Z(
|
|
7636
|
+
Z(z, { style: {
|
|
7637
7637
|
position: "absolute",
|
|
7638
7638
|
top: "-200px"
|
|
7639
7639
|
} }),
|
|
7640
7640
|
B("div", ug, [Ye(A.$slots, "default")]),
|
|
7641
7641
|
e.hasBtns ? (E(), L("div", dg, [Z(M, { size: 8 }, {
|
|
7642
7642
|
default: K(() => [
|
|
7643
|
-
e.isStep ? (E(), N(
|
|
7643
|
+
e.isStep ? (E(), N($, {
|
|
7644
7644
|
key: 0,
|
|
7645
7645
|
size: "mini",
|
|
7646
7646
|
disabled: _.value,
|
|
7647
7647
|
label: J(o)("上一步"),
|
|
7648
7648
|
onClick: m
|
|
7649
7649
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7650
|
-
e.isStep ? (E(), N(
|
|
7650
|
+
e.isStep ? (E(), N($, {
|
|
7651
7651
|
key: 1,
|
|
7652
7652
|
size: "mini",
|
|
7653
7653
|
disabled: b.value,
|
|
@@ -7659,17 +7659,17 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7659
7659
|
"loading",
|
|
7660
7660
|
"label"
|
|
7661
7661
|
])) : ee("", !0),
|
|
7662
|
-
!e.isStep && e.showCloseBtn ? (E(), N(
|
|
7662
|
+
!e.isStep && e.showCloseBtn ? (E(), N($, {
|
|
7663
7663
|
key: 2,
|
|
7664
7664
|
size: "mini",
|
|
7665
7665
|
label: J(o)("取消"),
|
|
7666
7666
|
onClick: p
|
|
7667
7667
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7668
|
-
(E(!0), L(Ce, null, He(e.buttons, (ye) => (E(), N(
|
|
7668
|
+
(E(!0), L(Ce, null, He(e.buttons, (ye) => (E(), N($, Fe({ key: ye.id }, { ref_for: !0 }, ye.config, {
|
|
7669
7669
|
label: ye.label,
|
|
7670
7670
|
onClick: (j) => g(ye)
|
|
7671
7671
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7672
|
-
e.hasSaveBtn ? (E(), N(
|
|
7672
|
+
e.hasSaveBtn ? (E(), N($, {
|
|
7673
7673
|
key: 3,
|
|
7674
7674
|
size: "mini",
|
|
7675
7675
|
type: "primary",
|
|
@@ -7681,7 +7681,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
7681
7681
|
_: 1
|
|
7682
7682
|
})])) : ee("", !0)
|
|
7683
7683
|
], 4),
|
|
7684
|
-
B("div", fg, [B("div", hg, [B("span", null, ve(J(o)(e.title)), 1), B("span", pg, [e.subtitle ? (E(), N(Ya(e.subtitle()), { key: 0 })) : ee("", !0)])]), e.showCloseBtn ? (E(), L("div", gg, [Z(
|
|
7684
|
+
B("div", fg, [B("div", hg, [B("span", null, ve(J(o)(e.title)), 1), B("span", pg, [e.subtitle ? (E(), N(Ya(e.subtitle()), { key: 0 })) : ee("", !0)])]), e.showCloseBtn ? (E(), L("div", gg, [Z($, {
|
|
7685
7685
|
type: "text",
|
|
7686
7686
|
icon: "mdi:close",
|
|
7687
7687
|
onClick: p
|
|
@@ -8577,7 +8577,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8577
8577
|
file: ie,
|
|
8578
8578
|
list: b.value
|
|
8579
8579
|
});
|
|
8580
|
-
},
|
|
8580
|
+
}, z = (ie) => {
|
|
8581
8581
|
if (b.value.push(ie), ie.status === "unUpload") {
|
|
8582
8582
|
a("notUploadChange", { value: ie.url });
|
|
8583
8583
|
return;
|
|
@@ -8589,11 +8589,11 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8589
8589
|
onError: H,
|
|
8590
8590
|
uploadCallback: n.uploadCallback
|
|
8591
8591
|
}) : A(ie);
|
|
8592
|
-
},
|
|
8592
|
+
}, $ = (ie) => {
|
|
8593
8593
|
if (!w(ie.size))
|
|
8594
8594
|
return i && i("上传文件超出大小了"), !1;
|
|
8595
8595
|
}, M = (ie) => {
|
|
8596
|
-
C(ie.file),
|
|
8596
|
+
C(ie.file), z(ie.file);
|
|
8597
8597
|
}, R = (ie) => new Promise((Ee) => {
|
|
8598
8598
|
r ? r({
|
|
8599
8599
|
title: "提示",
|
|
@@ -8674,7 +8674,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
8674
8674
|
accept: h.value,
|
|
8675
8675
|
limit: p.value,
|
|
8676
8676
|
multiple: e.multiple,
|
|
8677
|
-
"before-upload":
|
|
8677
|
+
"before-upload": $,
|
|
8678
8678
|
"http-request": M,
|
|
8679
8679
|
"file-list": b.value,
|
|
8680
8680
|
"before-remove": R,
|
|
@@ -9192,31 +9192,31 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
9192
9192
|
if (k) {
|
|
9193
9193
|
const T = k[1], A = Number(k[2]);
|
|
9194
9194
|
for (let H = 0; H < m.length; H++) try {
|
|
9195
|
-
const
|
|
9196
|
-
let
|
|
9195
|
+
const z = Number(m[H]);
|
|
9196
|
+
let $ = !1;
|
|
9197
9197
|
switch (T) {
|
|
9198
9198
|
case ">":
|
|
9199
|
-
|
|
9199
|
+
$ = z > A;
|
|
9200
9200
|
break;
|
|
9201
9201
|
case "<":
|
|
9202
|
-
|
|
9202
|
+
$ = z < A;
|
|
9203
9203
|
break;
|
|
9204
9204
|
case ">=":
|
|
9205
|
-
|
|
9205
|
+
$ = z >= A;
|
|
9206
9206
|
break;
|
|
9207
9207
|
case "<=":
|
|
9208
|
-
|
|
9208
|
+
$ = z <= A;
|
|
9209
9209
|
break;
|
|
9210
9210
|
case "==":
|
|
9211
9211
|
case "===":
|
|
9212
|
-
|
|
9212
|
+
$ = z === A;
|
|
9213
9213
|
break;
|
|
9214
9214
|
case "!=":
|
|
9215
9215
|
case "!==":
|
|
9216
|
-
|
|
9216
|
+
$ = z !== A;
|
|
9217
9217
|
break;
|
|
9218
9218
|
}
|
|
9219
|
-
|
|
9219
|
+
$ && C++;
|
|
9220
9220
|
} catch {
|
|
9221
9221
|
console.log("计算失败");
|
|
9222
9222
|
break;
|
|
@@ -9772,42 +9772,42 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
9772
9772
|
})
|
|
9773
9773
|
]),
|
|
9774
9774
|
_: 1
|
|
9775
|
-
})]), B("div", fv, [s.cells.length == 0 ? (E(), L("span", hv)) : ee("", !0), (E(!0), L(Ce, null, He(s.cells, (H,
|
|
9775
|
+
})]), B("div", fv, [s.cells.length == 0 ? (E(), L("span", hv)) : ee("", !0), (E(!0), L(Ce, null, He(s.cells, (H, z) => (E(), L(Ce, { key: z }, [H.type == "fun" ? (E(), L("span", pv, ve(H.value.toUpperCase()), 1)) : H.type == "comp" ? (E(), L("span", gv, " #" + ve(S(H.value)) + "# ", 1)) : H.type == "num" ? (E(), L("span", vv, ve(H.value), 1)) : ee("", !0), z + 1 == s.cursor ? (E(), L("span", yv)) : ee("", !0)], 64))), 128))])]),
|
|
9776
9776
|
Z(T, { class: "j-input-count-mid" }, {
|
|
9777
|
-
default: K(() => [(E(), L(Ce, null, He(i, (H,
|
|
9778
|
-
key:
|
|
9777
|
+
default: K(() => [(E(), L(Ce, null, He(i, (H, z) => Z(C, {
|
|
9778
|
+
key: z,
|
|
9779
9779
|
label: H.label + "",
|
|
9780
|
-
onClick: (
|
|
9780
|
+
onClick: ($) => u(H.value, "num")
|
|
9781
9781
|
}, null, 8, ["label", "onClick"])), 64))]),
|
|
9782
9782
|
_: 1
|
|
9783
9783
|
}),
|
|
9784
|
-
B("div", mv, [B("div", bv, [(E(!0), L(Ce, null, He(e.list, (H,
|
|
9784
|
+
B("div", mv, [B("div", bv, [(E(!0), L(Ce, null, He(e.list, (H, z) => (E(), L(Ce, { key: z }, [B("div", wv, ve(J(n)(H.label)), 1), Z(T, {
|
|
9785
9785
|
size: [8, 8],
|
|
9786
9786
|
wrap: "",
|
|
9787
9787
|
style: { "margin-bottom": "16px" }
|
|
9788
9788
|
}, {
|
|
9789
|
-
default: K(() => [(E(!0), L(Ce, null, He(H.children, (
|
|
9790
|
-
key:
|
|
9791
|
-
onClick: (M) => u(
|
|
9792
|
-
label: J(n)(
|
|
9789
|
+
default: K(() => [(E(!0), L(Ce, null, He(H.children, ($) => (E(), N(C, {
|
|
9790
|
+
key: $.value,
|
|
9791
|
+
onClick: (M) => u($.value, "comp"),
|
|
9792
|
+
label: J(n)($.label)
|
|
9793
9793
|
}, null, 8, ["onClick", "label"]))), 128))]),
|
|
9794
9794
|
_: 2
|
|
9795
|
-
}, 1024)], 64))), 128))]), B("div", _v, [B("div", xv, [B("span", Cv, ve(J(n)("函数列表")), 1), B("div", Sv, [(E(), L(Ce, null, He(r, (H,
|
|
9795
|
+
}, 1024)], 64))), 128))]), B("div", _v, [B("div", xv, [B("span", Cv, ve(J(n)("函数列表")), 1), B("div", Sv, [(E(), L(Ce, null, He(r, (H, z) => Z(C, {
|
|
9796
9796
|
type: "text",
|
|
9797
9797
|
style: {
|
|
9798
9798
|
"border-radius": "0",
|
|
9799
9799
|
"justify-content": "left"
|
|
9800
9800
|
},
|
|
9801
|
-
key:
|
|
9802
|
-
onMouseover: (
|
|
9803
|
-
onClick: (
|
|
9801
|
+
key: z,
|
|
9802
|
+
onMouseover: ($) => f(H.des),
|
|
9803
|
+
onClick: ($) => u(H.value, "fun"),
|
|
9804
9804
|
label: H.label
|
|
9805
9805
|
}, null, 8, [
|
|
9806
9806
|
"onMouseover",
|
|
9807
9807
|
"onClick",
|
|
9808
9808
|
"label"
|
|
9809
|
-
])), 64))])]), B("div", kv, [B("div", null, [B("ul", null, [(E(!0), L(Ce, null, He(c.value, (H,
|
|
9810
|
-
key:
|
|
9809
|
+
])), 64))])]), B("div", kv, [B("div", null, [B("ul", null, [(E(!0), L(Ce, null, He(c.value, (H, z) => (E(), L("li", {
|
|
9810
|
+
key: z,
|
|
9811
9811
|
style: { "margin-bottom": "8px" }
|
|
9812
9812
|
}, [B("span", Ev, ve(J(n)(H)), 1)]))), 128))])])])])])
|
|
9813
9813
|
])]),
|
|
@@ -11894,13 +11894,13 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
11894
11894
|
const H = k.get(A.id);
|
|
11895
11895
|
if (H) {
|
|
11896
11896
|
T.add(H.id || "");
|
|
11897
|
-
const
|
|
11897
|
+
const z = {
|
|
11898
11898
|
id: H.id || "",
|
|
11899
11899
|
label: H.config?.label || H.id || "",
|
|
11900
11900
|
type: H.type,
|
|
11901
11901
|
display: H.config?.display !== !1
|
|
11902
11902
|
};
|
|
11903
|
-
H.children && H.children.length > 0 && (
|
|
11903
|
+
H.children && H.children.length > 0 && (z.children = f(H.children, A.children)), C.push(z);
|
|
11904
11904
|
}
|
|
11905
11905
|
}), m.forEach((A) => {
|
|
11906
11906
|
if (!T.has(A.id || "")) {
|
|
@@ -12169,7 +12169,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12169
12169
|
}), ht.push(mt);
|
|
12170
12170
|
}
|
|
12171
12171
|
}), ht;
|
|
12172
|
-
}, m = O(() => S(i.columns, Xe.value)), x = O(() => Vf(i.columns, (Se) => Se.config.label)), C = I(""), k = O(() => x.value.some((Se) => Se.config?.filter?.isSearchKeyword)), T = I(), A = I(!0), H = I([]),
|
|
12172
|
+
}, m = O(() => S(i.columns, Xe.value)), x = O(() => Vf(i.columns, (Se) => Se.config.label)), C = I(""), k = O(() => x.value.some((Se) => Se.config?.filter?.isSearchKeyword)), T = I(), A = I(!0), H = I([]), z = O(() => A.value ? "搜索全部" : `搜索范围:${x.value.filter((Se) => H.value.includes(Se.id)).map((Se) => Se.config?.label).join("、")}`), $ = () => {
|
|
12173
12173
|
T.value.init();
|
|
12174
12174
|
}, M = I(), R = I(!1), W = I(!1), q = I(!1), se = I([]), ye = I("and"), j = I(), F = I(!1), G = I([]), P = () => {
|
|
12175
12175
|
j.value.init(G.value);
|
|
@@ -12388,7 +12388,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12388
12388
|
prefix: K(() => [Z(ht, { icon: "mdi:search" })]),
|
|
12389
12389
|
suffix: K(() => [Z(mt, {
|
|
12390
12390
|
placement: "bottom",
|
|
12391
|
-
content:
|
|
12391
|
+
content: z.value
|
|
12392
12392
|
}, {
|
|
12393
12393
|
default: K(() => [B("div", null, [Z(be, {
|
|
12394
12394
|
placement: "bottom-end",
|
|
@@ -12396,7 +12396,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12396
12396
|
width: 200,
|
|
12397
12397
|
trigger: "click",
|
|
12398
12398
|
"show-arrow": !1,
|
|
12399
|
-
onShow:
|
|
12399
|
+
onShow: $,
|
|
12400
12400
|
onHide: ce
|
|
12401
12401
|
}, {
|
|
12402
12402
|
reference: K(() => [Z(ht, {
|
|
@@ -12800,39 +12800,39 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12800
12800
|
}), d.value = !1, zt(() => {
|
|
12801
12801
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
12802
12802
|
});
|
|
12803
|
-
}, _ = (
|
|
12804
|
-
s.value?.setCurrentKey(
|
|
12805
|
-
}, b = () => s.value?.getCurrentKey(), v = (
|
|
12806
|
-
s.value?.setCheckedKeys(
|
|
12807
|
-
}, w = (
|
|
12808
|
-
if (f.value =
|
|
12803
|
+
}, _ = ($, M = !0) => {
|
|
12804
|
+
s.value?.setCurrentKey($, M);
|
|
12805
|
+
}, b = () => s.value?.getCurrentKey(), v = ($, M = !1) => {
|
|
12806
|
+
s.value?.setCheckedKeys($, M);
|
|
12807
|
+
}, w = ($ = !1) => s.value?.getCheckedKeys($), S = async ($, M, R, W) => {
|
|
12808
|
+
if (f.value = $.value, a.nodeClickFlow && a.runFlow) {
|
|
12809
12809
|
const q = JSON.parse(a.nodeClickFlow);
|
|
12810
|
-
await a.runFlow(q, { value:
|
|
12810
|
+
await a.runFlow(q, { value: $.value });
|
|
12811
12811
|
}
|
|
12812
|
-
a.click && a.click(
|
|
12813
|
-
}, m = (
|
|
12812
|
+
a.click && a.click($.value, $, W);
|
|
12813
|
+
}, m = ($, { checkedKeys: M, checkedNodes: R, halfCheckedKeys: W, halfCheckedNodes: q }) => {
|
|
12814
12814
|
a.check && a.check(M, {
|
|
12815
|
-
node:
|
|
12815
|
+
node: $,
|
|
12816
12816
|
checkedNodes: R,
|
|
12817
12817
|
halfCheckedKeys: W,
|
|
12818
12818
|
halfCheckedNodes: q
|
|
12819
12819
|
});
|
|
12820
|
-
}, x = (
|
|
12821
|
-
o("node-drop",
|
|
12822
|
-
}, C = (
|
|
12820
|
+
}, x = ($, M, R, W) => {
|
|
12821
|
+
o("node-drop", $, M, R, W);
|
|
12822
|
+
}, C = ($) => {
|
|
12823
12823
|
const M = xn(a.treeButtons);
|
|
12824
|
-
return
|
|
12824
|
+
return $ && a.filterButton ? a.filterButton({
|
|
12825
12825
|
buttons: M,
|
|
12826
|
-
node:
|
|
12826
|
+
node: $
|
|
12827
12827
|
}) : M;
|
|
12828
|
-
}, { openLayer: k } = Po(), T = (
|
|
12829
|
-
|
|
12828
|
+
}, { openLayer: k } = Po(), T = ($, M) => {
|
|
12829
|
+
$.config?.disabled || $.click && $.click({
|
|
12830
12830
|
data: M,
|
|
12831
12831
|
openLayer: k
|
|
12832
12832
|
});
|
|
12833
|
-
}, A = I(""), H = (
|
|
12834
|
-
A.value =
|
|
12835
|
-
},
|
|
12833
|
+
}, A = I(""), H = ($, M) => {
|
|
12834
|
+
A.value = $ ? M.value : "", console.log(A.value, "row");
|
|
12835
|
+
}, z = ($, M, R) => a.allowDrop ? a.allowDrop($, M, R) : !(R == "inner" && !M.data.canInner);
|
|
12836
12836
|
return jt(async () => {
|
|
12837
12837
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await y();
|
|
12838
12838
|
}), at(() => a.list, () => {
|
|
@@ -12847,7 +12847,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12847
12847
|
getValue: b,
|
|
12848
12848
|
setCheck: v,
|
|
12849
12849
|
getCheck: w
|
|
12850
|
-
}), (
|
|
12850
|
+
}), ($, M) => {
|
|
12851
12851
|
const R = V("j-icon"), W = V("j-button"), q = V("el-dropdown-item"), se = V("el-dropdown-menu"), ye = V("el-dropdown"), j = V("el-tree"), F = V("el-empty"), G = Pi("loading");
|
|
12852
12852
|
return zn((E(), L("div", {
|
|
12853
12853
|
class: Ne([
|
|
@@ -12873,7 +12873,7 @@ var zp = { class: "j-table-footer" }, Dp = {
|
|
|
12873
12873
|
"filter-node-method": e.filterNode,
|
|
12874
12874
|
"render-after-expand": e.renderAfterExpand,
|
|
12875
12875
|
draggable: e.draggable,
|
|
12876
|
-
"allow-drop":
|
|
12876
|
+
"allow-drop": z,
|
|
12877
12877
|
"expand-on-click-node": e.expandOnClickNode,
|
|
12878
12878
|
onNodeClick: S,
|
|
12879
12879
|
onCheck: m,
|
|
@@ -13139,8 +13139,8 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13139
13139
|
const g = (X) => {
|
|
13140
13140
|
f && f(X);
|
|
13141
13141
|
}, y = I(!1), _ = O(() => a.config?.gutter || 16), b = O(() => a.config?.span || 24), v = O(() => a.config?.labelWidth), w = O(() => a.config?.labelPosition || "right"), S = O(() => C.length === 1 && (C[0].type === "j-tabs" || C[0].type === "j-layout" || C[0].config?.isAutoWindow)), m = na({}), x = I({}), C = [], k = {};
|
|
13142
|
-
let T = {}, A = {}, H = [],
|
|
13143
|
-
const
|
|
13142
|
+
let T = {}, A = {}, H = [], z = {};
|
|
13143
|
+
const $ = async (X) => {
|
|
13144
13144
|
y.value && W && (X.getTableData || Hl(W, X.id, X.formData[X.id])), o("change", X), k[X.id]?.config?.codeChange && await Vt(JSON.parse(k[X.id]?.config?.codeChange), { param: X }), a.config?.codeChange && await Vt(JSON.parse(a.config?.codeChange), { param: X });
|
|
13145
13145
|
}, M = (X) => Wr(k[X]?.type || "") && !k[X]?.config?.notInput || k[X]?.config?.isInput, R = (X) => [
|
|
13146
13146
|
"j-table",
|
|
@@ -13191,7 +13191,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13191
13191
|
}, j = async (X, ce) => {
|
|
13192
13192
|
y.value = !1;
|
|
13193
13193
|
const ne = !!ce;
|
|
13194
|
-
C.splice(0, C.length), T = {}, A = {}, H = [], W = ce, wo(m), wo(k), ne && q(ce, ""), ye(X, C, ne),
|
|
13194
|
+
C.splice(0, C.length), T = {}, A = {}, H = [], W = ce, wo(m), wo(k), ne && q(ce, ""), ye(X, C, ne), z = xn(m), await zt(), y.value = !0, await zt(), a.config?.codeInit && await Vt(JSON.parse(a.config?.codeInit), { param: {} });
|
|
13195
13195
|
}, F = (X, ce, ne) => {
|
|
13196
13196
|
const oe = [];
|
|
13197
13197
|
return ce.forEach((ge) => {
|
|
@@ -13298,8 +13298,8 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13298
13298
|
const X = await Xe();
|
|
13299
13299
|
return Object.keys(X).length > 0 ? (x.value = X, g(`${h(k[Object.keys(X)[0]]?.config?.label)}:${h(X[Object.keys(X)[0]].msg)}`), !1) : !0;
|
|
13300
13300
|
}, Ee = () => {
|
|
13301
|
-
x.value = {}, wo(m), Object.keys(
|
|
13302
|
-
m[X] =
|
|
13301
|
+
x.value = {}, wo(m), Object.keys(z || {}).forEach((X) => {
|
|
13302
|
+
m[X] = z[X];
|
|
13303
13303
|
});
|
|
13304
13304
|
}, Me = (X) => {
|
|
13305
13305
|
let ce = k[X];
|
|
@@ -13426,7 +13426,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13426
13426
|
labelWidth: v,
|
|
13427
13427
|
labelPosition: w,
|
|
13428
13428
|
getValue: Rt,
|
|
13429
|
-
formChange:
|
|
13429
|
+
formChange: $,
|
|
13430
13430
|
runFlow: Vt,
|
|
13431
13431
|
runFlowByNotRunActions: async (X) => {
|
|
13432
13432
|
const ce = dt[X];
|
|
@@ -13688,6 +13688,10 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13688
13688
|
id: {
|
|
13689
13689
|
type: String,
|
|
13690
13690
|
default: ""
|
|
13691
|
+
},
|
|
13692
|
+
actions: {
|
|
13693
|
+
type: Array,
|
|
13694
|
+
default: () => []
|
|
13691
13695
|
}
|
|
13692
13696
|
},
|
|
13693
13697
|
emits: [
|
|
@@ -13783,23 +13787,23 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13783
13787
|
getTableData: () => g.value,
|
|
13784
13788
|
rowChange: w
|
|
13785
13789
|
}), (S, m) => {
|
|
13786
|
-
const x = V("j-comp"), C = V("j-icon"), k = V("j-button");
|
|
13790
|
+
const x = V("j-comp"), C = V("j-icon"), k = V("j-button"), T = V("j-buttons");
|
|
13787
13791
|
return E(), L("div", Ib, [B("div", {
|
|
13788
13792
|
ref_key: "inputRowsRef",
|
|
13789
13793
|
ref: h,
|
|
13790
13794
|
class: "j-input-rows-container"
|
|
13791
|
-
}, [(E(!0), L(Ce, null, He(g.value, (
|
|
13792
|
-
key:
|
|
13795
|
+
}, [(E(!0), L(Ce, null, He(g.value, (A, H) => (E(), L("div", {
|
|
13796
|
+
key: A._i + H,
|
|
13793
13797
|
class: Ne([e.isCompact ? "j-space-compact" : "j-space", { "j-space-wrap": e.isWrap }])
|
|
13794
13798
|
}, [
|
|
13795
|
-
e.showNum ? (E(), L("div", Lb, ve(
|
|
13796
|
-
e.showChar ? (E(), L("div", zb, ve(p[
|
|
13797
|
-
(E(!0), L(Ce, null, He(e.columns, (
|
|
13798
|
-
key:
|
|
13799
|
+
e.showNum ? (E(), L("div", Lb, ve(H + 1), 1)) : ee("", !0),
|
|
13800
|
+
e.showChar ? (E(), L("div", zb, ve(p[H % 26]), 1)) : ee("", !0),
|
|
13801
|
+
(E(!0), L(Ce, null, He(e.columns, (z) => (E(), N(x, Fe({
|
|
13802
|
+
key: z.id,
|
|
13799
13803
|
ref_for: !0
|
|
13800
|
-
},
|
|
13801
|
-
row:
|
|
13802
|
-
style: _(
|
|
13804
|
+
}, z, {
|
|
13805
|
+
row: A,
|
|
13806
|
+
style: _(z)
|
|
13803
13807
|
}), null, 16, ["row", "style"]))), 128)),
|
|
13804
13808
|
f.value ? (E(), N(C, {
|
|
13805
13809
|
key: 2,
|
|
@@ -13810,7 +13814,7 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13810
13814
|
key: 3,
|
|
13811
13815
|
icon: "mdi:delete-outline",
|
|
13812
13816
|
class: "j-input-rows-delete",
|
|
13813
|
-
onClick: (
|
|
13817
|
+
onClick: (z) => v(H)
|
|
13814
13818
|
}, null, 8, ["onClick"])) : ee("", !0)
|
|
13815
13819
|
], 2))), 128))], 512), !d.value && r.value ? (E(), L("div", {
|
|
13816
13820
|
key: 0,
|
|
@@ -13823,7 +13827,10 @@ var vb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13823
13827
|
label: l.value,
|
|
13824
13828
|
icon: "mdi:add",
|
|
13825
13829
|
onClick: b
|
|
13826
|
-
}, null, 8, ["label"])) : ee("", !0)
|
|
13830
|
+
}, null, 8, ["label"])) : ee("", !0), e.actions && e.actions.length > 0 ? (E(), N(T, {
|
|
13831
|
+
key: 1,
|
|
13832
|
+
list: e.actions
|
|
13833
|
+
}, null, 8, ["list"])) : ee("", !0)], 4)) : ee("", !0)]);
|
|
13827
13834
|
};
|
|
13828
13835
|
}
|
|
13829
13836
|
}), $b = Db, Fb = _e($b), Vb = { class: "j-input-layer" }, Nb = /* @__PURE__ */ he({
|
|
@@ -16067,7 +16074,7 @@ function ou(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16067
16074
|
]);
|
|
16068
16075
|
}
|
|
16069
16076
|
k = C - x;
|
|
16070
|
-
var
|
|
16077
|
+
var z = Mt.cos(x), $ = Mt.sin(x), M = Mt.cos(C), R = Mt.sin(C), W = Mt.tan(k / 4), q = 4 / 3 * n * W, se = 4 / 3 * a * W, ye = [e, t], j = [e + q * $, t - se * z], F = [l + q * R, c - se * M], G = [l, c];
|
|
16071
16078
|
if (j[0] = 2 * ye[0] - j[0], j[1] = 2 * ye[1] - j[1], s) return [
|
|
16072
16079
|
j,
|
|
16073
16080
|
F,
|
|
@@ -18566,7 +18573,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18566
18573
|
});
|
|
18567
18574
|
const { computeStyle: d } = t;
|
|
18568
18575
|
function f(M) {
|
|
18569
|
-
return
|
|
18576
|
+
return $[M];
|
|
18570
18577
|
}
|
|
18571
18578
|
function u(M) {
|
|
18572
18579
|
return t.computeStyle(M, ["no-fill"], {
|
|
@@ -18839,7 +18846,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18839
18846
|
parentGfx: M
|
|
18840
18847
|
});
|
|
18841
18848
|
}
|
|
18842
|
-
function
|
|
18849
|
+
function z(M, R, W, q) {
|
|
18843
18850
|
const se = s[R.type]?.icon || R.icon;
|
|
18844
18851
|
se && b(M, n.getScaledPath(se, { abspos: {
|
|
18845
18852
|
x: W,
|
|
@@ -18849,7 +18856,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18849
18856
|
fill: kt(R, s[R.type]?.iconFill || R.iconFill)
|
|
18850
18857
|
});
|
|
18851
18858
|
}
|
|
18852
|
-
const
|
|
18859
|
+
const $ = {
|
|
18853
18860
|
event(M, R, W) {
|
|
18854
18861
|
return "fillOpacity" in W || (W.fillOpacity = ir), y(M, R.width, R.height, W);
|
|
18855
18862
|
},
|
|
@@ -18859,7 +18866,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18859
18866
|
stroke: kt(R, s.startEvent?.stroke || R.stroke),
|
|
18860
18867
|
strokeWidth: li(R, s.startEvent?.strokeWidth || R.strokeWidth)
|
|
18861
18868
|
}, q = f("event")(M, R, W);
|
|
18862
|
-
return
|
|
18869
|
+
return z(M, R, 18, 18), q;
|
|
18863
18870
|
},
|
|
18864
18871
|
endEvent(M, R) {
|
|
18865
18872
|
const W = f("event")(M, R, {
|
|
@@ -18867,7 +18874,7 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
18867
18874
|
fill: mn(R, s.endEvent?.fill || R.fill),
|
|
18868
18875
|
stroke: kt(R, s.endEvent?.stroke || R.stroke)
|
|
18869
18876
|
});
|
|
18870
|
-
return
|
|
18877
|
+
return z(M, R, 18, 18), W;
|
|
18871
18878
|
},
|
|
18872
18879
|
gateway(M, R) {
|
|
18873
18880
|
const W = {
|
|
@@ -19008,10 +19015,10 @@ function Oa(e, t, n, a, o, i, r) {
|
|
|
19008
19015
|
fill: mn(R, s[R.type]?.fill || R.fill),
|
|
19009
19016
|
stroke: kt(R, s[R.type]?.stroke || R.stroke)
|
|
19010
19017
|
}, q = _(M, R.width, R.height, R.radius || Tr, W);
|
|
19011
|
-
return m(M, R, "center-middle"), C(M, R),
|
|
19018
|
+
return m(M, R, "center-middle"), C(M, R), z(M, R, R.iconX, R.iconY), q;
|
|
19012
19019
|
}
|
|
19013
19020
|
};
|
|
19014
|
-
this.handlers =
|
|
19021
|
+
this.handlers = $, this._drawPath = b;
|
|
19015
19022
|
}
|
|
19016
19023
|
Ra(Oa, Ha);
|
|
19017
19024
|
Oa.$inject = [
|
|
@@ -19823,8 +19830,8 @@ function _l(e) {
|
|
|
19823
19830
|
}
|
|
19824
19831
|
function Ku(e, t, n, a, o) {
|
|
19825
19832
|
function i(v, w, S) {
|
|
19826
|
-
var m = v.index, x = v.point, C, k, T, A, H,
|
|
19827
|
-
return m <= 0 || v.bendpoint ? !1 : (C = w[m - 1], k = w[m], T = Cr(C, k), A = Qn(C, k), H = Math.abs(x.x - T.x),
|
|
19833
|
+
var m = v.index, x = v.point, C, k, T, A, H, z;
|
|
19834
|
+
return m <= 0 || v.bendpoint ? !1 : (C = w[m - 1], k = w[m], T = Cr(C, k), A = Qn(C, k), H = Math.abs(x.x - T.x), z = Math.abs(x.y - T.y), A && H <= S && z <= S);
|
|
19828
19835
|
}
|
|
19829
19836
|
function r(v, w) {
|
|
19830
19837
|
var S = v.waypoints, m, x, C, k;
|
|
@@ -19883,14 +19890,14 @@ function Ku(e, t, n, a, o) {
|
|
|
19883
19890
|
S && Bn(S, m.x, m.y);
|
|
19884
19891
|
}
|
|
19885
19892
|
function b(v, w, S) {
|
|
19886
|
-
var m = d(w.index, v), x = S[w.index - 1], C = S[w.index], k = w.point, T = Cr(x, C), A = Qn(x, C), H,
|
|
19887
|
-
m && (H = sx(m),
|
|
19893
|
+
var m = d(w.index, v), x = S[w.index - 1], C = S[w.index], k = w.point, T = Cr(x, C), A = Qn(x, C), H, z;
|
|
19894
|
+
m && (H = sx(m), z = {
|
|
19888
19895
|
x: k.x - T.x,
|
|
19889
19896
|
y: k.y - T.y
|
|
19890
|
-
}, A === "v" && (
|
|
19891
|
-
x:
|
|
19892
|
-
y:
|
|
19893
|
-
}), Bn(H,
|
|
19897
|
+
}, A === "v" && (z = {
|
|
19898
|
+
x: z.y,
|
|
19899
|
+
y: z.x
|
|
19900
|
+
}), Bn(H, z.x, z.y));
|
|
19894
19901
|
}
|
|
19895
19902
|
e.on("connection.changed", function(v) {
|
|
19896
19903
|
y(v.element);
|
|
@@ -22691,8 +22698,8 @@ var QC = {
|
|
|
22691
22698
|
});
|
|
22692
22699
|
const A = l.get("canvas"), H = l.get("elementFactory");
|
|
22693
22700
|
s();
|
|
22694
|
-
const
|
|
22695
|
-
A.setRootElement(
|
|
22701
|
+
const z = H.createRoot();
|
|
22702
|
+
A.setRootElement(z), d();
|
|
22696
22703
|
};
|
|
22697
22704
|
jt(() => {
|
|
22698
22705
|
u();
|
|
@@ -22808,15 +22815,15 @@ var QC = {
|
|
|
22808
22815
|
for (let T = 0; T < x; T++) {
|
|
22809
22816
|
const A = h.value[T];
|
|
22810
22817
|
for (let H = 0; H < k; H++) {
|
|
22811
|
-
const
|
|
22812
|
-
if (v(
|
|
22813
|
-
const
|
|
22814
|
-
for (let M = 0; M <
|
|
22815
|
-
const R =
|
|
22816
|
-
if (R.pattern = R.pattern ? R.pattern + "" : "", R.pattern && !Xt(A[
|
|
22817
|
-
return m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(
|
|
22818
|
-
if (R.required && Xt(A[
|
|
22819
|
-
return m.isOk = !1, m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(
|
|
22818
|
+
const z = C[H];
|
|
22819
|
+
if (v(z.config, T).display !== !1 && z.rule && z.rule.length > 0) {
|
|
22820
|
+
const $ = z.rule.length;
|
|
22821
|
+
for (let M = 0; M < $; M++) {
|
|
22822
|
+
const R = z.rule[M];
|
|
22823
|
+
if (R.pattern = R.pattern ? R.pattern + "" : "", R.pattern && !Xt(A[z.prop || ""]) && !new RegExp(R.pattern.substring(1, R.pattern.length - 1)).test(A[z.prop || ""]))
|
|
22824
|
+
return m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(z.label)}:${i(R.message)}`, m.isOk = !1, m;
|
|
22825
|
+
if (R.required && Xt(A[z.prop || ""]))
|
|
22826
|
+
return m.isOk = !1, m.info = `${i("第")}${T + 1}${i("行")},${i("第")}${H + 1}${i("列")},${i(z.label)}:${i("不能为空")}`, m;
|
|
22820
22827
|
}
|
|
22821
22828
|
}
|
|
22822
22829
|
}
|
|
@@ -22850,15 +22857,15 @@ var QC = {
|
|
|
22850
22857
|
rowChange: p
|
|
22851
22858
|
}), (m, x) => {
|
|
22852
22859
|
const C = V("j-comp"), k = V("el-form-item"), T = V("el-col"), A = V("j-button"), H = V("el-row");
|
|
22853
|
-
return E(), L(Ce, null, [B("div", Fe({ class: "j-input-cards" }, m.$attrs), [(E(!0), L(Ce, null, He(h.value, (
|
|
22860
|
+
return E(), L(Ce, null, [B("div", Fe({ class: "j-input-cards" }, m.$attrs), [(E(!0), L(Ce, null, He(h.value, (z, $) => (E(), L("div", {
|
|
22854
22861
|
class: "j-input-cards-item",
|
|
22855
|
-
key:
|
|
22862
|
+
key: z.i,
|
|
22856
22863
|
style: { "margin-bottom": "8px" }
|
|
22857
22864
|
}, [Z(H, { gutter: e.gutter }, {
|
|
22858
22865
|
default: K(() => [(E(!0), L(Ce, null, He(e.columns, (M) => (E(), N(T, {
|
|
22859
22866
|
key: M.prop,
|
|
22860
22867
|
span: M.config?.span || e.span || 24,
|
|
22861
|
-
style: le({ "margin-bottom": (M.getInputType ? M.getInputType(
|
|
22868
|
+
style: le({ "margin-bottom": (M.getInputType ? M.getInputType(z) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
22862
22869
|
}, {
|
|
22863
22870
|
default: K(() => [zn(Z(k, {
|
|
22864
22871
|
"label-width": w(M.config?.labelWidth),
|
|
@@ -22867,7 +22874,7 @@ var QC = {
|
|
|
22867
22874
|
tooltip: M.config?.labelTooltip,
|
|
22868
22875
|
required: M.config?.required
|
|
22869
22876
|
}, {
|
|
22870
|
-
default: K(() => [Z(C, Fe({ ref_for: !0 }, M, { row:
|
|
22877
|
+
default: K(() => [Z(C, Fe({ ref_for: !0 }, M, { row: z }), null, 16, ["row"])]),
|
|
22871
22878
|
_: 2
|
|
22872
22879
|
}, 1032, [
|
|
22873
22880
|
"label-width",
|
|
@@ -22875,7 +22882,7 @@ var QC = {
|
|
|
22875
22882
|
"extra",
|
|
22876
22883
|
"tooltip",
|
|
22877
22884
|
"required"
|
|
22878
|
-
]), [[mo, v(M.config,
|
|
22885
|
+
]), [[mo, v(M.config, $).display !== !1]])]),
|
|
22879
22886
|
_: 2
|
|
22880
22887
|
}, 1032, ["span", "style"]))), 128)), d.value && (u.value || h.value.length > 1) && !f.value ? (E(), N(A, {
|
|
22881
22888
|
key: 0,
|
|
@@ -22884,7 +22891,7 @@ var QC = {
|
|
|
22884
22891
|
shape: "circle",
|
|
22885
22892
|
icon: "mdi:close",
|
|
22886
22893
|
danger: "",
|
|
22887
|
-
onClick: (M) => y(
|
|
22894
|
+
onClick: (M) => y($)
|
|
22888
22895
|
}, null, 8, ["onClick"])) : ee("", !0)]),
|
|
22889
22896
|
_: 2
|
|
22890
22897
|
}, 1032, ["gutter"])]))), 128))], 16), l.value && !f.value ? (E(), L("div", {
|