@a2simcode/ui 0.0.196 → 0.0.198
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/simcode-ui.es.js +82 -82
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1404,18 +1404,18 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1404
1404
|
]);
|
|
1405
1405
|
},
|
|
1406
1406
|
_doProcessBlock: function(h, p) {
|
|
1407
|
-
for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low, ve = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Ae = T, me = A, Ve = P, Ye = L, ne = I,
|
|
1407
|
+
for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low, ve = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Ae = T, me = A, Ve = P, Ye = L, ne = I, Ee = j, Be = E, Ie = V, Et = q, bt = se, Xe = ve, Kt = W, ln = G, qt = Q, Bt = 0; Bt < 80; Bt++) {
|
|
1408
1408
|
var Ht, ut, Nt = f[Bt];
|
|
1409
1409
|
if (Bt < 16)
|
|
1410
1410
|
ut = Nt.high = h[p + Bt * 2] | 0, Ht = Nt.low = h[p + Bt * 2 + 1] | 0;
|
|
1411
1411
|
else {
|
|
1412
|
-
var Cn = f[Bt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25), ye = f[Bt - 2],
|
|
1412
|
+
var Cn = f[Bt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25), ye = f[Bt - 2], Te = ye.high, ze = ye.low, nt = (Te >>> 19 | ze << 13) ^ (Te << 3 | ze >>> 29) ^ Te >>> 6, Ct = (ze >>> 19 | Te << 13) ^ (ze << 3 | Te >>> 29) ^ (ze >>> 6 | Te << 26), dt = f[Bt - 7], Sn = dt.high, kn = dt.low, Jn = f[Bt - 16], ya = Jn.high, $a = Jn.low;
|
|
1413
1413
|
Ht = ie + kn, ut = ae + Sn + (Ht >>> 0 < ie >>> 0 ? 1 : 0), Ht = Ht + Ct, ut = ut + nt + (Ht >>> 0 < Ct >>> 0 ? 1 : 0), Ht = Ht + $a, ut = ut + ya + (Ht >>> 0 < $a >>> 0 ? 1 : 0), Nt.high = ut, Nt.low = Ht;
|
|
1414
1414
|
}
|
|
1415
1415
|
var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M & Ae ^ M & Ve ^ Ae & Ve, gt = ue & me ^ ue & Ye ^ me & Ye, Ot = (M >>> 28 | ue << 4) ^ (M << 30 | ue >>> 2) ^ (M << 25 | ue >>> 7), xe = (ue >>> 28 | M << 4) ^ (ue << 30 | M >>> 2) ^ (ue << 25 | M >>> 7), St = (Be >>> 14 | Ie << 18) ^ (Be >>> 18 | Ie << 14) ^ (Be << 23 | Ie >>> 9), Wt = (Ie >>> 14 | Be << 18) ^ (Ie >>> 18 | Be << 14) ^ (Ie << 23 | Be >>> 9), wt = d[Bt], Yt = wt.high, Ln = wt.low, vt = qt + Wt, Le = ln + St + (vt >>> 0 < qt >>> 0 ? 1 : 0), vt = vt + be, Le = Le + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, Le = Le + Yt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Ht, Le = Le + ut + (vt >>> 0 < Ht >>> 0 ? 1 : 0), Rn = xe + gt, Dt = Ot + Re + (Rn >>> 0 < xe >>> 0 ? 1 : 0);
|
|
1416
|
-
ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie =
|
|
1416
|
+
ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne + Le + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Ve, Ee = Ye, Ve = Ae, Ye = me, Ae = M, me = ue, ue = vt + Rn | 0, M = Le + Dt + (ue >>> 0 < vt >>> 0 ? 1 : 0) | 0;
|
|
1417
1417
|
}
|
|
1418
|
-
R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + me, x.high = T + Ae + (A >>> 0 < me >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Ve + (L >>> 0 < Ye >>> 0 ? 1 : 0), j = v.low = j +
|
|
1418
|
+
R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + me, x.high = T + Ae + (A >>> 0 < me >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Ve + (L >>> 0 < Ye >>> 0 ? 1 : 0), j = v.low = j + Ee, v.high = I + ne + (j >>> 0 < Ee >>> 0 ? 1 : 0), V = w.low = V + Ie, w.high = E + Be + (V >>> 0 < Ie >>> 0 ? 1 : 0), se = C.low = se + bt, C.high = q + Et + (se >>> 0 < bt >>> 0 ? 1 : 0), W = y.low = W + Kt, y.high = ve + Xe + (W >>> 0 < Kt >>> 0 ? 1 : 0), Q = _.low = Q + qt, _.high = G + ln + (Q >>> 0 < qt >>> 0 ? 1 : 0);
|
|
1419
1419
|
},
|
|
1420
1420
|
_doFinalize: function() {
|
|
1421
1421
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, b = h.sigBytes * 8;
|
|
@@ -5952,7 +5952,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5952
5952
|
}],
|
|
5953
5953
|
expectedHeight: yn
|
|
5954
5954
|
};
|
|
5955
|
-
},
|
|
5955
|
+
}, Ee = (D, N) => {
|
|
5956
5956
|
const { dataValue: Z, rect: oe, table: U, col: te, row: re } = D;
|
|
5957
5957
|
let ge = "mdi:toggle-switch", fe = "#165dff";
|
|
5958
5958
|
Z || (ge = "mdi:toggle-switch-off", fe = "#e5e6eb");
|
|
@@ -6358,7 +6358,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6358
6358
|
re._compTypeByRender = re._compTypeByRender || {}, re._compTypeByRender[U] = fe;
|
|
6359
6359
|
const he = {
|
|
6360
6360
|
text: ne,
|
|
6361
|
-
"j-switch":
|
|
6361
|
+
"j-switch": Ee,
|
|
6362
6362
|
"j-rate": Be,
|
|
6363
6363
|
"j-slider": Ie,
|
|
6364
6364
|
"j-tag": Kt,
|
|
@@ -6416,7 +6416,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6416
6416
|
_getCompType: ge,
|
|
6417
6417
|
frozen: et
|
|
6418
6418
|
}, ft = typeof ge == "function", Ue = Ic(U);
|
|
6419
|
-
return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender =
|
|
6419
|
+
return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender = Ee), U === "j-rate" && (_e.customRender = Be), U === "j-slider" && (_e.customRender = Ie), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Kt), U === "j-icon" && (_e.customRender = Xe)), U === "link" && (_e.customLayout = qt), U === "checkbox" && (_e.customLayout = Bt), U === "j-switch" && (_e.minWidth = _e.minWidth || Me, _e.maxWidth = _e.maxWidth || Me), he && (_e.customLayout = Ht), _e.fieldFormat = Cn, fe && fe.length > 0 && (_e.columns = ce(fe)), _e;
|
|
6420
6420
|
});
|
|
6421
6421
|
return o.isTree && N.length > 0 && (N[0].tree = !0), N;
|
|
6422
6422
|
}, ae = (D, N) => {
|
|
@@ -6445,7 +6445,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6445
6445
|
_getCompConfig: void 0,
|
|
6446
6446
|
_getCompType: void 0
|
|
6447
6447
|
};
|
|
6448
|
-
},
|
|
6448
|
+
}, Te = () => ({
|
|
6449
6449
|
field: "__placeholder__",
|
|
6450
6450
|
title: "",
|
|
6451
6451
|
width: "auto",
|
|
@@ -6507,7 +6507,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6507
6507
|
C = 0, y = 0, _ = !1;
|
|
6508
6508
|
const U = {};
|
|
6509
6509
|
let te = ce(D);
|
|
6510
|
-
te.length === 0 && (te = [
|
|
6510
|
+
te.length === 0 && (te = [Te()]), te = nt(te);
|
|
6511
6511
|
const re = [], ge = [], fe = [];
|
|
6512
6512
|
te.forEach((He) => {
|
|
6513
6513
|
const je = ze(He);
|
|
@@ -7130,8 +7130,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7130
7130
|
b.value.style.cursor = "default", b.value.onmousedown = null;
|
|
7131
7131
|
return;
|
|
7132
7132
|
}
|
|
7133
|
-
b.value.onmousedown = (
|
|
7134
|
-
const { clientX: Be } =
|
|
7133
|
+
b.value.onmousedown = (Ee) => {
|
|
7134
|
+
const { clientX: Be } = Ee, { clientY: Ie } = Ee, Et = p.left + C.value, bt = p.top + y.value;
|
|
7135
7135
|
p._left = p.left, p._top = p.top, v.value || (v.value = Ye), m.value || (m.value = me), Be > Et + 10 && Be < Et + me - 10 && Ie > bt + 5 && Ie < bt + 47 || (typeof document < "u" && (document.onmousemove = function(Xe) {
|
|
7136
7136
|
Xe.preventDefault(), Be > Et && Be < Et + 10 && (Be > Xe.clientX && (m.value = me + (Be - Xe.clientX), p.left = p._left - (Be - Xe.clientX)), Be < Xe.clientX && m.value > a.minWidth && (m.value = me - (Xe.clientX - Be), p.left = p._left + Xe.clientX - Be)), Be > Et + me - 10 && Be < Et + me && (Be > Xe.clientX && m.value > a.minWidth && (m.value = me - (Be - Xe.clientX)), Be < Xe.clientX && typeof document < "u" && document.body && C.value + p.left + m.value < document.body.clientWidth && (m.value = me + (Xe.clientX - Be))), Ie > bt && Ie < bt + 5 && (Ie > Xe.clientY && (v.value = Ye + Ie - Xe.clientY, p.top = p._top - (Ie - Xe.clientY)), Ie < Xe.clientY && v.value > a.minHeight && (v.value = Ye - (Xe.clientY - Ie), p.top = p._top + Xe.clientY - Ie)), ne + Ie > bt + Ye + 38 && ne + Ie < bt + Ye + 48 && (Ie > Xe.clientY && v.value > a.minHeight && (v.value = Ye - (Ie - Xe.clientY)), Ie < Xe.clientY && typeof window < "u" && y.value + p.top + v.value + 48 < window.innerHeight && (v.value = Ye + Xe.clientY - Ie));
|
|
7137
7137
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
@@ -7148,7 +7148,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7148
7148
|
const Ae = $("j-button"), me = $("el-space"), Ve = $("el-step"), Ye = $("el-steps"), ne = $("el-dialog");
|
|
7149
7149
|
return S(), F(ne, {
|
|
7150
7150
|
modelValue: r.value,
|
|
7151
|
-
"onUpdate:modelValue": ue[0] || (ue[0] = (
|
|
7151
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (Ee) => r.value = Ee),
|
|
7152
7152
|
class: "j-dialog",
|
|
7153
7153
|
"align-center": "",
|
|
7154
7154
|
"append-to-body": !0,
|
|
@@ -7200,9 +7200,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7200
7200
|
space: 160,
|
|
7201
7201
|
"finish-status": "success"
|
|
7202
7202
|
}, {
|
|
7203
|
-
default: J(() => [(S(!0), O(ke, null, Oe(q.value, (
|
|
7203
|
+
default: J(() => [(S(!0), O(ke, null, Oe(q.value, (Ee, Be) => (S(), F(Ve, {
|
|
7204
7204
|
key: Be,
|
|
7205
|
-
title: Y(i)(
|
|
7205
|
+
title: Y(i)(Ee.title)
|
|
7206
7206
|
}, null, 8, ["title"]))), 128))]),
|
|
7207
7207
|
_: 1
|
|
7208
7208
|
}, 8, ["active"])], 4)])) : ee("", !0),
|
|
@@ -7234,10 +7234,10 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7234
7234
|
label: Y(i)("取消"),
|
|
7235
7235
|
onClick: T
|
|
7236
7236
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7237
|
-
(S(!0), O(ke, null, Oe(e.buttons, (
|
|
7238
|
-
key:
|
|
7239
|
-
label:
|
|
7240
|
-
onClick: (Be) => Q(
|
|
7237
|
+
(S(!0), O(ke, null, Oe(e.buttons, (Ee) => (S(), F(Ae, We({ ref_for: !0 }, Ee.config, {
|
|
7238
|
+
key: Ee.id,
|
|
7239
|
+
label: Ee.label,
|
|
7240
|
+
onClick: (Be) => Q(Ee)
|
|
7241
7241
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7242
7242
|
e.hasSaveBtn ? (S(), F(Ae, {
|
|
7243
7243
|
key: 3,
|
|
@@ -8570,22 +8570,22 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8570
8570
|
m.value = [...m.value];
|
|
8571
8571
|
}, w = (ne) => {
|
|
8572
8572
|
if (n.maxSize && n.sizeType) {
|
|
8573
|
-
let
|
|
8573
|
+
let Ee = ne;
|
|
8574
8574
|
switch (n.sizeType) {
|
|
8575
8575
|
case "GB":
|
|
8576
|
-
|
|
8576
|
+
Ee = 1024 * 1024 * 1024 * n.maxSize;
|
|
8577
8577
|
break;
|
|
8578
8578
|
case "MB":
|
|
8579
|
-
|
|
8579
|
+
Ee = 1024 * 1024 * n.maxSize;
|
|
8580
8580
|
break;
|
|
8581
8581
|
case "KB":
|
|
8582
|
-
|
|
8582
|
+
Ee = 1024 * n.maxSize;
|
|
8583
8583
|
break;
|
|
8584
8584
|
default:
|
|
8585
|
-
|
|
8585
|
+
Ee = n.maxSize;
|
|
8586
8586
|
break;
|
|
8587
8587
|
}
|
|
8588
|
-
if (
|
|
8588
|
+
if (Ee < ne) return !1;
|
|
8589
8589
|
}
|
|
8590
8590
|
return !0;
|
|
8591
8591
|
}, C = {
|
|
@@ -8599,12 +8599,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8599
8599
|
json: "file-json"
|
|
8600
8600
|
}, y = (ne) => {
|
|
8601
8601
|
if (ne) {
|
|
8602
|
-
const
|
|
8603
|
-
return
|
|
8602
|
+
const Ee = ne.split(".");
|
|
8603
|
+
return Ee[Ee.length - 1];
|
|
8604
8604
|
}
|
|
8605
8605
|
return "";
|
|
8606
|
-
}, _ = (ne,
|
|
8607
|
-
if (
|
|
8606
|
+
}, _ = (ne, Ee) => {
|
|
8607
|
+
if (Ee && Ee.indexOf("image") > -1) return "file-image";
|
|
8608
8608
|
const Be = y(ne);
|
|
8609
8609
|
return [
|
|
8610
8610
|
"webp",
|
|
@@ -8623,15 +8623,15 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8623
8623
|
file: ne,
|
|
8624
8624
|
list: m.value
|
|
8625
8625
|
});
|
|
8626
|
-
}, T = (ne,
|
|
8627
|
-
ne.percent = Be, ne.uploadSize =
|
|
8626
|
+
}, T = (ne, Ee, Be) => {
|
|
8627
|
+
ne.percent = Be, ne.uploadSize = Ee, v();
|
|
8628
8628
|
}, A = (ne) => {
|
|
8629
8629
|
ne.status = "done", ne.id += "1", ne.uid += "1", v(), a("success", {
|
|
8630
8630
|
file: ne,
|
|
8631
8631
|
list: m.value
|
|
8632
8632
|
}), n.modelValue || (a("update:modelValue", b.value), a("change", { value: b.value }));
|
|
8633
|
-
}, P = (ne,
|
|
8634
|
-
console.error(
|
|
8633
|
+
}, P = (ne, Ee) => {
|
|
8634
|
+
console.error(Ee, "简搭提醒您:文件上传错误!"), ne.status = "error", v(), a("error", {
|
|
8635
8635
|
file: ne,
|
|
8636
8636
|
list: m.value
|
|
8637
8637
|
});
|
|
@@ -8652,24 +8652,24 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8652
8652
|
return i && i("上传文件超出大小了"), !1;
|
|
8653
8653
|
}, j = (ne) => {
|
|
8654
8654
|
k(ne.file), L(ne.file);
|
|
8655
|
-
}, E = (ne) => new Promise((
|
|
8655
|
+
}, E = (ne) => new Promise((Ee) => {
|
|
8656
8656
|
r ? r({
|
|
8657
8657
|
title: "提示",
|
|
8658
8658
|
iconType: "warning",
|
|
8659
8659
|
content: `您确定删除【${ne.name}】?`,
|
|
8660
8660
|
onOk: () => {
|
|
8661
|
-
|
|
8661
|
+
Ee(!0);
|
|
8662
8662
|
},
|
|
8663
8663
|
onCancel: () => {
|
|
8664
|
-
|
|
8664
|
+
Ee(!1);
|
|
8665
8665
|
}
|
|
8666
|
-
}) : (V(ne),
|
|
8666
|
+
}) : (V(ne), Ee(!0));
|
|
8667
8667
|
}), V = (ne) => {
|
|
8668
8668
|
if (!n.isNotApi) {
|
|
8669
|
-
const
|
|
8670
|
-
u && u(
|
|
8669
|
+
const Ee = ne.response?.fileId || ne.id;
|
|
8670
|
+
u && u(Ee);
|
|
8671
8671
|
}
|
|
8672
|
-
m.value = m.value.filter((
|
|
8672
|
+
m.value = m.value.filter((Ee) => Ee.id !== ne.id), m.value.length === 0 && (a("update:modelValue", ""), a("change", { value: "" })), a("delete", {
|
|
8673
8673
|
file: ne,
|
|
8674
8674
|
list: m.value
|
|
8675
8675
|
});
|
|
@@ -8682,8 +8682,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8682
8682
|
o && o("无权限预览!");
|
|
8683
8683
|
return;
|
|
8684
8684
|
}
|
|
8685
|
-
const
|
|
8686
|
-
switch (M = ne, se.value = !1, ve.value = ne.name,
|
|
8685
|
+
const Ee = ne.name.split(".")[ne.name.split(".").length - 1];
|
|
8686
|
+
switch (M = ne, se.value = !1, ve.value = ne.name, Ee.toLowerCase()) {
|
|
8687
8687
|
case "jpg":
|
|
8688
8688
|
case "gif":
|
|
8689
8689
|
case "png":
|
|
@@ -8710,9 +8710,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8710
8710
|
}
|
|
8711
8711
|
ue.value = ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
8712
8712
|
}, me = (ne) => {
|
|
8713
|
-
const
|
|
8713
|
+
const Ee = ne.response?.fileId || ne.id;
|
|
8714
8714
|
if (!c) return "";
|
|
8715
|
-
const Be = ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" +
|
|
8715
|
+
const Be = ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + Ee;
|
|
8716
8716
|
return `${c}/system/annexesfile/preview/${fh.createAesEncryption({ key: "jianda" }).encrypt(Be).replace(/\//g, "|")}?token=${s?.value}`;
|
|
8717
8717
|
}, Ve = () => {
|
|
8718
8718
|
M.isDown === !1 && o && o("无权限下载!"), Mg(`${c}/system/annexesfile/${M.response?.fileId || M.id}?token=${s?.value}`);
|
|
@@ -8720,7 +8720,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8720
8720
|
if (n.limit !== -1 && n.limit <= m.value.length)
|
|
8721
8721
|
return o && o(`当前限制选择${n.limit}个文件`), !1;
|
|
8722
8722
|
};
|
|
8723
|
-
return (ne,
|
|
8723
|
+
return (ne, Ee) => {
|
|
8724
8724
|
const Be = $("j-icon"), Ie = $("j-button"), Et = $("el-popover"), bt = $("el-button"), Xe = $("el-upload"), Kt = $("el-text"), ln = $("j-dialog-full"), qt = Bo("loading");
|
|
8725
8725
|
return S(), O("div", Dg, [
|
|
8726
8726
|
X(Xe, {
|
|
@@ -8807,7 +8807,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8807
8807
|
])) : ee("", !0),
|
|
8808
8808
|
X(ln, {
|
|
8809
8809
|
visible: G.value,
|
|
8810
|
-
"onUpdate:visible":
|
|
8810
|
+
"onUpdate:visible": Ee[1] || (Ee[1] = (Bt) => G.value = Bt),
|
|
8811
8811
|
"btn-text": "下载",
|
|
8812
8812
|
title: `${Y(l)("文件预览")}【${ve.value}】`,
|
|
8813
8813
|
"destroy-on-close": !0,
|
|
@@ -8827,7 +8827,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8827
8827
|
height: "100%"
|
|
8828
8828
|
},
|
|
8829
8829
|
frameborder: "0",
|
|
8830
|
-
onLoad:
|
|
8830
|
+
onLoad: Ee[0] || (Ee[0] = (Bt) => Q.value = !1)
|
|
8831
8831
|
}, null, 40, Yg)])), [[qt, Q.value]]) : ee("", !0)]),
|
|
8832
8832
|
_: 1
|
|
8833
8833
|
}, 8, [
|
|
@@ -12238,7 +12238,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12238
12238
|
Q.value = be, G.value = !1, ce();
|
|
12239
12239
|
}, Ae = () => {
|
|
12240
12240
|
Q.value = [], ce();
|
|
12241
|
-
}, me = z(), Ve = z(!1), Ye = z(), ne = H(() => Ye.value != null),
|
|
12241
|
+
}, me = z(), Ve = z(!1), Ye = z(), ne = H(() => Ye.value != null), Ee = () => {
|
|
12242
12242
|
me.value?.init();
|
|
12243
12243
|
}, Be = (be) => {
|
|
12244
12244
|
Ye.value = be, Ve.value = !1;
|
|
@@ -12386,12 +12386,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12386
12386
|
rows: be,
|
|
12387
12387
|
page: 1
|
|
12388
12388
|
});
|
|
12389
|
-
},
|
|
12389
|
+
}, Te = async () => {
|
|
12390
12390
|
p.value = [], g.value = !1, d.value = 1, Cn = void 0, await K();
|
|
12391
12391
|
}, ze = async (be) => {
|
|
12392
12392
|
p.value = [], g.value = !1, await K(be);
|
|
12393
12393
|
}, nt = async () => {
|
|
12394
|
-
await
|
|
12394
|
+
await Te();
|
|
12395
12395
|
}, Ct = (be) => {
|
|
12396
12396
|
r("ready", be);
|
|
12397
12397
|
}, dt = ({ selections: be, record: Re, checked: gt, isMultiple: Ot }) => {
|
|
@@ -12436,7 +12436,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12436
12436
|
i.immediate && await ze();
|
|
12437
12437
|
}), t({
|
|
12438
12438
|
refreshData: ze,
|
|
12439
|
-
resetData:
|
|
12439
|
+
resetData: Te,
|
|
12440
12440
|
getSelection: Jn,
|
|
12441
12441
|
setSelection: ya,
|
|
12442
12442
|
clearSelection: () => {
|
|
@@ -12578,7 +12578,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12578
12578
|
"popper-style": "padding: 0",
|
|
12579
12579
|
width: 400,
|
|
12580
12580
|
trigger: "click",
|
|
12581
|
-
onShow:
|
|
12581
|
+
onShow: Ee
|
|
12582
12582
|
}, {
|
|
12583
12583
|
reference: J(() => [X(wt, {
|
|
12584
12584
|
class: Ne({ active: ne.value }),
|
|
@@ -13260,7 +13260,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13260
13260
|
}, ve = (K, ce, ae, ie = "") => {
|
|
13261
13261
|
K.forEach((ye) => {
|
|
13262
13262
|
ye.id = se(ye, ie);
|
|
13263
|
-
const
|
|
13263
|
+
const Te = {
|
|
13264
13264
|
id: ye.id,
|
|
13265
13265
|
slot: ye.slot,
|
|
13266
13266
|
type: ye.type || "",
|
|
@@ -13269,17 +13269,17 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13269
13269
|
config: {},
|
|
13270
13270
|
children: []
|
|
13271
13271
|
};
|
|
13272
|
-
ce.push(
|
|
13272
|
+
ce.push(Te);
|
|
13273
13273
|
const { children: ze } = ye;
|
|
13274
|
-
Si(
|
|
13274
|
+
Si(Te, ye, ["children", "config"]), Si(Te.config, ye.config || {}, []), a.config.size && Te.config.size === void 0 && (Te.config.size = a.config.size), R[ye.id] && console.warn("有重复的组件id:" + ye.id), R[ye.id] = Te, a.readonly === !0 && (Te.config.readonly = !0);
|
|
13275
13275
|
let nt = !1, Ct;
|
|
13276
|
-
ie !== "" && E(ie) && (nt = !0,
|
|
13277
|
-
const dt =
|
|
13276
|
+
ie !== "" && E(ie) && (nt = !0, Te.config = ye.config || {}, Te.config.parentTableId = ie, Ct = R[ie]?.config?.table);
|
|
13277
|
+
const dt = Te.config || {};
|
|
13278
13278
|
if (j(ye.id))
|
|
13279
13279
|
!ae && nt === !1 && (dt?.defaultValue === 0 ? y[ye.id] = dt?.defaultValue : y[ye.id] = dt?.defaultValue || void 0), dt.table && dt.field ? T[`${dt.table}_${dt.field}`.toLowerCase()] = ye.id : dt.field && (nt ? T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id : T[`${dt.field}`.toLowerCase()] = ye.id);
|
|
13280
13280
|
else if (nt && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id;
|
|
13281
13281
|
else if (E(ye.id))
|
|
13282
|
-
!ae && !dt.isSubTable && (y[ye.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = ye.id), dt.isSubTable || P.push(
|
|
13282
|
+
!ae && !dt.isSubTable && (y[ye.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = ye.id), dt.isSubTable || P.push(Te);
|
|
13283
13283
|
else if (dt?.defaultValue) y[ye.id] = dt?.defaultValue;
|
|
13284
13284
|
else if (ye.type === "collapse" && dt?.isExpand) {
|
|
13285
13285
|
const Sn = [];
|
|
@@ -13287,7 +13287,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13287
13287
|
Sn.push(kn.i);
|
|
13288
13288
|
}), y[ye.id] = Sn;
|
|
13289
13289
|
}
|
|
13290
|
-
ze && ze.length > 0 && ve(ze,
|
|
13290
|
+
ze && ze.length > 0 && ve(ze, Te.children, ae, Te.id);
|
|
13291
13291
|
});
|
|
13292
13292
|
}, W = async (K, ce) => {
|
|
13293
13293
|
b.value = !1;
|
|
@@ -13296,27 +13296,27 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13296
13296
|
}, G = (K, ce, ae) => {
|
|
13297
13297
|
const ie = [];
|
|
13298
13298
|
return ce.forEach((ye) => {
|
|
13299
|
-
const
|
|
13299
|
+
const Te = {};
|
|
13300
13300
|
Object.keys(ye).forEach((ze) => {
|
|
13301
13301
|
if (!ae || ae(ze, ye[ze], K)) {
|
|
13302
13302
|
const nt = Be(ze);
|
|
13303
|
-
if (nt?.type === "j-table")
|
|
13303
|
+
if (nt?.type === "j-table") Te[nt?.id || ""] = G(ze, ye[ze], ae);
|
|
13304
13304
|
else {
|
|
13305
13305
|
let Ct = T[`${K}_${ze}`.toLowerCase()] || ze;
|
|
13306
|
-
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct,
|
|
13306
|
+
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct, Te[Ct] = ye[ze];
|
|
13307
13307
|
}
|
|
13308
13308
|
}
|
|
13309
|
-
}), ie.push(
|
|
13309
|
+
}), ie.push(Te);
|
|
13310
13310
|
}), ie;
|
|
13311
13311
|
}, Q = (K, ce) => {
|
|
13312
13312
|
Object.keys(K || {}).forEach((ae) => {
|
|
13313
13313
|
let ie = K[ae];
|
|
13314
13314
|
const ye = Be(ae);
|
|
13315
13315
|
if (ye === void 0)
|
|
13316
|
-
ie && (br(ie) && (ie = ie[0] || {}), typeof ie == "object" ? Object.keys(ie).forEach((
|
|
13317
|
-
if (!ce || ce(ae, ie[
|
|
13318
|
-
let ze =
|
|
13319
|
-
ae !== "main" && (ze = `${ae}_${
|
|
13316
|
+
ie && (br(ie) && (ie = ie[0] || {}), typeof ie == "object" ? Object.keys(ie).forEach((Te) => {
|
|
13317
|
+
if (!ce || ce(ae, ie[Te], ae)) {
|
|
13318
|
+
let ze = Te;
|
|
13319
|
+
ae !== "main" && (ze = `${ae}_${Te}`), A[ze] = ae, y[T[ze.toLowerCase()] || Te] = ie[Te];
|
|
13320
13320
|
}
|
|
13321
13321
|
}) : y[ae] = ie);
|
|
13322
13322
|
else if (E(ye.id || "")) {
|
|
@@ -13340,14 +13340,14 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13340
13340
|
if (M.has(ie)) return;
|
|
13341
13341
|
const ye = R[ie];
|
|
13342
13342
|
if (ye) {
|
|
13343
|
-
const
|
|
13343
|
+
const Te = ye.config?.table, ze = ye.config?.field;
|
|
13344
13344
|
if (ce) ze ? ae[ze] = K[ie] : ae[ie] = K[ie];
|
|
13345
13345
|
else if (E(ie)) {
|
|
13346
13346
|
const nt = [];
|
|
13347
13347
|
K[ie].forEach((Ct) => {
|
|
13348
13348
|
nt.push(ue(Ct, !0));
|
|
13349
|
-
}), ae[
|
|
13350
|
-
} else
|
|
13349
|
+
}), ae[Te || ie] = nt;
|
|
13350
|
+
} else Te && ze ? (ae[Te] = ae[Te] || {}, ae[Te][ze] = K[ie]) : ze && (ae[ze] = K[ie]);
|
|
13351
13351
|
} else ce ? ie !== "_X_ROW_KEY" && ie !== "_isHover" && (ae[ie] = K[ie]) : A[ie] ? (ae[A[ie]] = ae[A[ie]] || {}, ae[A[ie]][ie.replace(`${A[ie]}_`, "")] = K[ie]) : ae[ie] = K[ie];
|
|
13352
13352
|
}), ae;
|
|
13353
13353
|
}, Ae = (K = !0) => K ? ue(y) : y, me = (K, ce, ae, ie) => {
|
|
@@ -13357,7 +13357,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13357
13357
|
ye = R[ze[ze.length - 1]] || {};
|
|
13358
13358
|
}
|
|
13359
13359
|
if (!ye) return {};
|
|
13360
|
-
const
|
|
13360
|
+
const Te = xn({
|
|
13361
13361
|
config: ye.config || {},
|
|
13362
13362
|
getCompConfig: ye.getCompConfig,
|
|
13363
13363
|
formData: y,
|
|
@@ -13365,11 +13365,11 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13365
13365
|
row: ce,
|
|
13366
13366
|
pRowData: ie
|
|
13367
13367
|
});
|
|
13368
|
-
return
|
|
13368
|
+
return Te._componentId = ye?.id, Te;
|
|
13369
13369
|
}, Ve = (K, ce, ae, ie) => {
|
|
13370
13370
|
const ye = me(K, ce, ae, ie);
|
|
13371
13371
|
if (ye.isNotRule !== !0 && ye.display !== !1) {
|
|
13372
|
-
const
|
|
13372
|
+
const Te = ye.rule || [], ze = Te.find((nt) => nt.type === "only");
|
|
13373
13373
|
return ze && (ze.validator = async (nt, Ct) => {
|
|
13374
13374
|
if (Ct && !await r({
|
|
13375
13375
|
table: nt.table,
|
|
@@ -13386,7 +13386,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13386
13386
|
}))
|
|
13387
13387
|
throw h(nt.message) || h("数据值重复");
|
|
13388
13388
|
}), {
|
|
13389
|
-
rules:
|
|
13389
|
+
rules: Te,
|
|
13390
13390
|
myGridtableId: E(ye._componentId) ? ye._componentId : ""
|
|
13391
13391
|
};
|
|
13392
13392
|
}
|
|
@@ -13398,7 +13398,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13398
13398
|
_.value = {};
|
|
13399
13399
|
const K = await Ye();
|
|
13400
13400
|
return Object.keys(K).length > 0 ? (_.value = K, g(`${h(R[Object.keys(K)[0]]?.config?.label)}:${h(K[Object.keys(K)[0]].msg)}`), !1) : !0;
|
|
13401
|
-
},
|
|
13401
|
+
}, Ee = () => {
|
|
13402
13402
|
_.value = {}, Co(y), Object.keys(L || {}).forEach((K) => {
|
|
13403
13403
|
y[K] = L[K];
|
|
13404
13404
|
});
|
|
@@ -13418,10 +13418,10 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13418
13418
|
if (ae.config.parentTableId) {
|
|
13419
13419
|
const ie = y[ae.config.parentTableId], ye = ae.id ? ae.id.replace(`${ae.config.parentTableId}.`, "") : "";
|
|
13420
13420
|
if (ce != null) return (ie[ce] || {})[ye || ""];
|
|
13421
|
-
const
|
|
13421
|
+
const Te = [];
|
|
13422
13422
|
return ie && ie.forEach((ze) => {
|
|
13423
|
-
|
|
13424
|
-
}),
|
|
13423
|
+
Te.push(ze[ye || ""]);
|
|
13424
|
+
}), Te;
|
|
13425
13425
|
}
|
|
13426
13426
|
if (E(ae.id || "")) {
|
|
13427
13427
|
const ie = [];
|
|
@@ -13438,19 +13438,19 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13438
13438
|
i: ce
|
|
13439
13439
|
}), ie = Be(K);
|
|
13440
13440
|
if (ie && p?.getLabel) if (ce !== void 0) {
|
|
13441
|
-
const ye = ae[ce],
|
|
13441
|
+
const ye = ae[ce], Te = y[ie.config.parentTableId || ""][ce], ze = xn({
|
|
13442
13442
|
config: ie.config,
|
|
13443
13443
|
getCompConfig: ie.getCompConfig,
|
|
13444
13444
|
formData: y,
|
|
13445
13445
|
tableData: y[ie.config.parentTableId || ""],
|
|
13446
|
-
row:
|
|
13446
|
+
row: Te
|
|
13447
13447
|
});
|
|
13448
13448
|
return await p?.getLabel({
|
|
13449
13449
|
value: ye,
|
|
13450
13450
|
config: ze,
|
|
13451
13451
|
formData: y,
|
|
13452
13452
|
tableData: y[ie.config.parentTableId || ""],
|
|
13453
|
-
row:
|
|
13453
|
+
row: Te
|
|
13454
13454
|
});
|
|
13455
13455
|
} else {
|
|
13456
13456
|
const ye = xn({
|
|
@@ -13535,7 +13535,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13535
13535
|
}
|
|
13536
13536
|
}), jc({ contextType: "form" }), t({
|
|
13537
13537
|
init: W,
|
|
13538
|
-
reset:
|
|
13538
|
+
reset: Ee,
|
|
13539
13539
|
validate: ne,
|
|
13540
13540
|
setValue: Ie,
|
|
13541
13541
|
getValue: Et,
|
|
@@ -13564,7 +13564,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13564
13564
|
key: 1,
|
|
13565
13565
|
gutter: x.value
|
|
13566
13566
|
}, {
|
|
13567
|
-
default: J(() => [(S(), O(ke, null, Oe(k, (
|
|
13567
|
+
default: J(() => [(S(), O(ke, null, Oe(k, (Te) => X(ae, We({ key: Te.id }, { ref_for: !0 }, Te), null, 16)), 64))]),
|
|
13568
13568
|
_: 1
|
|
13569
13569
|
}, 8, ["gutter"]))]),
|
|
13570
13570
|
_: 1
|