@a2simcode/ui 0.0.325 → 0.0.327
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as He, computed as H, createBlock as K, createCommentVNode as oe, createElementBlock as L, createElementVNode as I, createSlots as Qn, createTextVNode as Wn, createVNode as Q, defineComponent as xe, getCurrentInstance as nr, guardReactiveProps as ei, h as Fi, inject as Vd, mergeModels as Xo, mergeProps as et, nextTick as Ht, normalizeClass as Qe, normalizeProps as Ka, normalizeStyle as
|
|
1
|
+
import { Fragment as He, computed as H, createBlock as K, createCommentVNode as oe, createElementBlock as L, createElementVNode as I, createSlots as Qn, createTextVNode as Wn, createVNode as Q, defineComponent as xe, getCurrentInstance as nr, guardReactiveProps as ei, h as Fi, inject as Vd, mergeModels as Xo, mergeProps as et, nextTick as Ht, normalizeClass as Qe, normalizeProps as Ka, normalizeStyle as ue, onBeforeUnmount as ti, onMounted as Ot, onUnmounted as ni, openBlock as k, provide as Nd, reactive as ea, ref as D, render as Vi, renderList as Fe, renderSlot as rt, resolveComponent as V, resolveDirective as xo, resolveDynamicComponent as Ja, shallowRef as ai, toDisplayString as Ee, unref as q, useModel as Zo, useSlots as Wd, useTemplateRef as Wa, vShow as Pl, watch as st, watchEffect as Bc, withCtx as X, withDirectives as ta, withKeys as Hl, withModifiers as nn } from "vue";
|
|
2
2
|
import { Icon as Zr, getIcon as Na } from "@iconify/vue";
|
|
3
3
|
import mo from "dayjs";
|
|
4
4
|
import Ud from "sortablejs";
|
|
@@ -1428,7 +1428,7 @@ var ph = /* @__PURE__ */ bn(((e, t) => {
|
|
|
1428
1428
|
]);
|
|
1429
1429
|
},
|
|
1430
1430
|
_doProcessBlock: function(h, p) {
|
|
1431
|
-
for (var g = this._hash.words, m = g[0], _ = g[1], w = g[2], b = g[3], v = g[4], C = g[5], y = g[6], x = g[7], S = m.high, R = m.low, T = _.high, j = _.low, P = w.high, A = w.low, B = b.high, M = b.low, E = v.high, W = v.low, F = C.high, ie = C.low, me = y.high, J = y.low, ee = x.high, Z = x.low, z = S,
|
|
1431
|
+
for (var g = this._hash.words, m = g[0], _ = g[1], w = g[2], b = g[3], v = g[4], C = g[5], y = g[6], x = g[7], S = m.high, R = m.low, T = _.high, j = _.low, P = w.high, A = w.low, B = b.high, M = b.low, E = v.high, W = v.low, F = C.high, ie = C.low, me = y.high, J = y.low, ee = x.high, Z = x.low, z = S, de = R, $e = T, Se = j, We = P, lt = A, xt = B, Ze = M, ne = E, Ce = W, ct = F, _t = ie, N = me, ke = J, Ae = ee, Oe = Z, Ke = 0; Ke < 80; Ke++) {
|
|
1432
1432
|
var Le, Ye, dt = f[Ke];
|
|
1433
1433
|
if (Ke < 16)
|
|
1434
1434
|
Ye = dt.high = h[p + Ke * 2] | 0, Le = dt.low = h[p + Ke * 2 + 1] | 0;
|
|
@@ -1436,10 +1436,10 @@ var ph = /* @__PURE__ */ bn(((e, t) => {
|
|
|
1436
1436
|
var Jt = f[Ke - 15], It = Jt.high, un = Jt.low, pn = (It >>> 1 | un << 31) ^ (It >>> 8 | un << 24) ^ It >>> 7, Et = (un >>> 1 | It << 31) ^ (un >>> 8 | It << 24) ^ (un >>> 7 | It << 25), Mt = f[Ke - 2], wt = Mt.high, Ut = Mt.low, on = (wt >>> 19 | Ut << 13) ^ (wt << 3 | Ut >>> 29) ^ wt >>> 6, wn = (Ut >>> 19 | wt << 13) ^ (Ut << 3 | wt >>> 29) ^ (Ut >>> 6 | wt << 26), dn = f[Ke - 7], Xn = dn.high, G = dn.low, pe = f[Ke - 16], re = pe.high, he = pe.low;
|
|
1437
1437
|
Le = Et + G, Ye = pn + Xn + (Le >>> 0 < Et >>> 0 ? 1 : 0), Le = Le + wn, Ye = Ye + on + (Le >>> 0 < wn >>> 0 ? 1 : 0), Le = Le + he, Ye = Ye + re + (Le >>> 0 < he >>> 0 ? 1 : 0), dt.high = Ye, dt.low = Le;
|
|
1438
1438
|
}
|
|
1439
|
-
var _e = ne & ct ^ ~ne & N, Be = Ce & _t ^ ~Ce & ke, Ne = z & $e ^ z & We ^ $e & We, pt =
|
|
1440
|
-
Ae = N, Oe = ke, N = ct, ke = _t, ct = ne, _t = Ce, Ce = Ze + Yt | 0, ne = xt + gn + (Ce >>> 0 < Ze >>> 0 ? 1 : 0) | 0, xt = We, Ze = lt, We = $e, lt = Se, $e = z, Se =
|
|
1439
|
+
var _e = ne & ct ^ ~ne & N, Be = Ce & _t ^ ~Ce & ke, Ne = z & $e ^ z & We ^ $e & We, pt = de & Se ^ de & lt ^ Se & lt, Kt = (z >>> 28 | de << 4) ^ (z << 30 | de >>> 2) ^ (z << 25 | de >>> 7), St = (de >>> 28 | z << 4) ^ (de << 30 | z >>> 2) ^ (de << 25 | z >>> 7), zn = (ne >>> 14 | Ce << 18) ^ (ne >>> 18 | Ce << 14) ^ (ne << 23 | Ce >>> 9), ra = (Ce >>> 14 | ne << 18) ^ (Ce >>> 18 | ne << 14) ^ (Ce << 23 | ne >>> 9), sa = d[Ke], ro = sa.high, ca = sa.low, Yt = Oe + ra, gn = Ae + zn + (Yt >>> 0 < Oe >>> 0 ? 1 : 0), Yt = Yt + Be, gn = gn + _e + (Yt >>> 0 < Be >>> 0 ? 1 : 0), Yt = Yt + ca, gn = gn + ro + (Yt >>> 0 < ca >>> 0 ? 1 : 0), Yt = Yt + Le, gn = gn + Ye + (Yt >>> 0 < Le >>> 0 ? 1 : 0), ua = St + pt, Ho = Kt + Ne + (ua >>> 0 < St >>> 0 ? 1 : 0);
|
|
1440
|
+
Ae = N, Oe = ke, N = ct, ke = _t, ct = ne, _t = Ce, Ce = Ze + Yt | 0, ne = xt + gn + (Ce >>> 0 < Ze >>> 0 ? 1 : 0) | 0, xt = We, Ze = lt, We = $e, lt = Se, $e = z, Se = de, de = Yt + ua | 0, z = gn + Ho + (de >>> 0 < Yt >>> 0 ? 1 : 0) | 0;
|
|
1441
1441
|
}
|
|
1442
|
-
R = m.low = R +
|
|
1442
|
+
R = m.low = R + de, m.high = S + z + (R >>> 0 < de >>> 0 ? 1 : 0), j = _.low = j + Se, _.high = T + $e + (j >>> 0 < Se >>> 0 ? 1 : 0), A = w.low = A + lt, w.high = P + We + (A >>> 0 < lt >>> 0 ? 1 : 0), M = b.low = M + Ze, b.high = B + xt + (M >>> 0 < Ze >>> 0 ? 1 : 0), W = v.low = W + Ce, v.high = E + ne + (W >>> 0 < Ce >>> 0 ? 1 : 0), ie = C.low = ie + _t, C.high = F + ct + (ie >>> 0 < _t >>> 0 ? 1 : 0), J = y.low = J + ke, y.high = me + N + (J >>> 0 < ke >>> 0 ? 1 : 0), Z = x.low = Z + Oe, x.high = ee + Ae + (Z >>> 0 < Oe >>> 0 ? 1 : 0);
|
|
1443
1443
|
},
|
|
1444
1444
|
_doFinalize: function() {
|
|
1445
1445
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, m = h.sigBytes * 8;
|
|
@@ -2075,12 +2075,12 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2075
2075
|
} : void 0,
|
|
2076
2076
|
e.prepend ? {
|
|
2077
2077
|
name: "prepend",
|
|
2078
|
-
fn: X(() => [I("span", { style:
|
|
2078
|
+
fn: X(() => [I("span", { style: ue(e.prependStyle) }, Ee(e.prepend), 5)]),
|
|
2079
2079
|
key: "2"
|
|
2080
2080
|
} : void 0,
|
|
2081
2081
|
e.append ? {
|
|
2082
2082
|
name: "append",
|
|
2083
|
-
fn: X(() => [I("span", { style:
|
|
2083
|
+
fn: X(() => [I("span", { style: ue(e.appendStyle) }, Ee(e.append), 5)]),
|
|
2084
2084
|
key: "3"
|
|
2085
2085
|
} : void 0
|
|
2086
2086
|
]), 1040, [
|
|
@@ -2770,7 +2770,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2770
2770
|
key: 0,
|
|
2771
2771
|
class: "j-select-option-icon",
|
|
2772
2772
|
icon: x.icon
|
|
2773
|
-
}, null, 8, ["icon"])) : oe("", !0), I("div", { style:
|
|
2773
|
+
}, null, 8, ["icon"])) : oe("", !0), I("div", { style: ue(r(x)) }, Ee(x.label), 5)])]),
|
|
2774
2774
|
_: 2
|
|
2775
2775
|
}, 1032, [
|
|
2776
2776
|
"label",
|
|
@@ -2788,7 +2788,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2788
2788
|
key: 0,
|
|
2789
2789
|
class: "j-select-option-icon",
|
|
2790
2790
|
icon: y.icon
|
|
2791
|
-
}, null, 8, ["icon"])) : oe("", !0), I("div", { style:
|
|
2791
|
+
}, null, 8, ["icon"])) : oe("", !0), I("div", { style: ue(r(y)) }, Ee(y.label), 5)])]),
|
|
2792
2792
|
_: 2
|
|
2793
2793
|
}, 1032, [
|
|
2794
2794
|
"label",
|
|
@@ -2804,7 +2804,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2804
2804
|
icon: s.value
|
|
2805
2805
|
}, null, 8, ["icon"])) : oe("", !0), I("div", {
|
|
2806
2806
|
class: Qe({ "j-select-input-label-colored": f.value }),
|
|
2807
|
-
style:
|
|
2807
|
+
style: ue(u.value)
|
|
2808
2808
|
}, [e.isShowTooltip ? (k(), K(w, {
|
|
2809
2809
|
key: 0,
|
|
2810
2810
|
content: c.value,
|
|
@@ -3605,7 +3605,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3605
3605
|
m.value ? (k(), L("div", {
|
|
3606
3606
|
key: 0,
|
|
3607
3607
|
class: "j-layout--left",
|
|
3608
|
-
style:
|
|
3608
|
+
style: ue({ width: v.value })
|
|
3609
3609
|
}, [I("div", Pp, [rt(B.$slots, "left")]), e.leftMove ? (k(), L("div", {
|
|
3610
3610
|
key: 0,
|
|
3611
3611
|
class: "j-layout--move",
|
|
@@ -3615,7 +3615,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3615
3615
|
w.value ? (k(), L("div", {
|
|
3616
3616
|
key: 0,
|
|
3617
3617
|
class: "j-layout--top",
|
|
3618
|
-
style:
|
|
3618
|
+
style: ue({ height: y.value })
|
|
3619
3619
|
}, [I("div", Op, [rt(B.$slots, "top")]), e.topMove ? (k(), L("div", {
|
|
3620
3620
|
key: 0,
|
|
3621
3621
|
class: "j-layout--move",
|
|
@@ -3625,12 +3625,12 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3625
3625
|
ref_key: "mid",
|
|
3626
3626
|
ref: o,
|
|
3627
3627
|
class: "j-layout--wrapper",
|
|
3628
|
-
style:
|
|
3628
|
+
style: ue(S.value)
|
|
3629
3629
|
}, [rt(B.$slots, "default")], 4),
|
|
3630
3630
|
b.value ? (k(), L("div", {
|
|
3631
3631
|
key: 1,
|
|
3632
3632
|
class: "j-layout--bottom",
|
|
3633
|
-
style:
|
|
3633
|
+
style: ue({ height: x.value })
|
|
3634
3634
|
}, [I("div", Ip, [rt(B.$slots, "bottom")]), e.bottomMove ? (k(), L("div", {
|
|
3635
3635
|
key: 0,
|
|
3636
3636
|
class: "j-layout--move",
|
|
@@ -3640,7 +3640,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3640
3640
|
_.value ? (k(), L("div", {
|
|
3641
3641
|
key: 2,
|
|
3642
3642
|
class: "j-layout--right",
|
|
3643
|
-
style:
|
|
3643
|
+
style: ue({ width: C.value })
|
|
3644
3644
|
}, [I("div", Lp, [rt(B.$slots, "right")]), e.rightMove ? (k(), L("div", {
|
|
3645
3645
|
key: 0,
|
|
3646
3646
|
class: "j-layout--move",
|
|
@@ -5385,7 +5385,7 @@ var Xp = class {
|
|
|
5385
5385
|
return p.value && !e.isNotCol ? (k(), K(R, {
|
|
5386
5386
|
key: 0,
|
|
5387
5387
|
span: h.value.span || e.pspan || q(i),
|
|
5388
|
-
style:
|
|
5388
|
+
style: ue({ ...h.value.colStyle || {} }),
|
|
5389
5389
|
class: Qe(h.value.colClass || {})
|
|
5390
5390
|
}, {
|
|
5391
5391
|
default: X(() => [m.value && h.value.needFormItem !== !1 && ![
|
|
@@ -5537,7 +5537,7 @@ var Xp = class {
|
|
|
5537
5537
|
}) || [] : M.value.options || [];
|
|
5538
5538
|
}), F = H(() => n.isTableCell && (E.value === "j-radio" || E.value === "j-checkbox") ? "j-select" : E.value === "j-textarea" ? "j-input" : ((E.value == null || E.value === "") && console.warn("组件类型不能为空"), E.value)), ie = (N) => r({
|
|
5539
5539
|
value: N,
|
|
5540
|
-
config:
|
|
5540
|
+
config: de.value || {},
|
|
5541
5541
|
formData: S.value,
|
|
5542
5542
|
row: y,
|
|
5543
5543
|
getTableData: w
|
|
@@ -5553,22 +5553,22 @@ var Xp = class {
|
|
|
5553
5553
|
}, ee = async (N) => {
|
|
5554
5554
|
if (!i) return [];
|
|
5555
5555
|
let ke = {};
|
|
5556
|
-
|
|
5556
|
+
de.value.paramList && de.value.paramList.length > 0 && de.value.paramList.forEach((Le) => {
|
|
5557
5557
|
!Pt(Le.upId) && !Pt(Le.upKey) && (ke[Le.upKey] = J(Le.upId));
|
|
5558
5558
|
});
|
|
5559
5559
|
const Ae = N.fixedFilter || {};
|
|
5560
5560
|
Object.keys(Ae).forEach((Le) => {
|
|
5561
5561
|
ke[Le] = Ae[Le];
|
|
5562
5562
|
});
|
|
5563
|
-
let Oe =
|
|
5564
|
-
Oe == "dataView" &&
|
|
5563
|
+
let Oe = de.value.dataType;
|
|
5564
|
+
Oe == "dataView" && de.value.isPage && (Oe = "dataViewPages"), Oe === "dataViewPages" ? N.params = ke : N = {
|
|
5565
5565
|
...N,
|
|
5566
5566
|
...ke
|
|
5567
5567
|
};
|
|
5568
5568
|
let Ke = await i({
|
|
5569
5569
|
type: F.value,
|
|
5570
5570
|
config: {
|
|
5571
|
-
...
|
|
5571
|
+
...de.value,
|
|
5572
5572
|
dataType: Oe
|
|
5573
5573
|
},
|
|
5574
5574
|
formData: S.value,
|
|
@@ -5576,7 +5576,7 @@ var Xp = class {
|
|
|
5576
5576
|
getTableData: w,
|
|
5577
5577
|
params: N
|
|
5578
5578
|
});
|
|
5579
|
-
return
|
|
5579
|
+
return de.value.dataType === "dataItem" && de.value.isPage && (Ke = eh(N.pagination, Ke)), Ke;
|
|
5580
5580
|
}, Z = (N) => {
|
|
5581
5581
|
const ke = Number(N.row1), Ae = Number(N.row2);
|
|
5582
5582
|
return (Oe, Ke, Le) => {
|
|
@@ -5608,7 +5608,7 @@ var Xp = class {
|
|
|
5608
5608
|
id: Oe,
|
|
5609
5609
|
config: Ye
|
|
5610
5610
|
};
|
|
5611
|
-
},
|
|
5611
|
+
}, de = H(() => {
|
|
5612
5612
|
const N = { ...M.value };
|
|
5613
5613
|
if (F.value === "j-layer-form" && N.schema === void 0 && (N.schema = n.children), F.value === "el-collapse-item" && N.label && (N.title = N.label, delete N.label), [
|
|
5614
5614
|
"j-input-cards",
|
|
@@ -5684,8 +5684,8 @@ var Xp = class {
|
|
|
5684
5684
|
}), N;
|
|
5685
5685
|
}), lt = ({ data: N, row: ke, config: Ae }) => {
|
|
5686
5686
|
if (N && ["j-input-layer", "j-button-layer"].includes(F.value)) {
|
|
5687
|
-
const Oe = Ae.parentTableId && ke ? ke : s, Ke =
|
|
5688
|
-
|
|
5687
|
+
const Oe = Ae.parentTableId && ke ? ke : s, Ke = de.value?.isMultiSelect;
|
|
5688
|
+
de.value.columns.forEach((Le) => {
|
|
5689
5689
|
const Ye = Le.config?.valueKey;
|
|
5690
5690
|
!Ye || !Le.id || (Oe[Ye] = Ke ? N.map((dt) => dt[Le.id]).join(",") : N[Le.id]);
|
|
5691
5691
|
});
|
|
@@ -5719,11 +5719,11 @@ var Xp = class {
|
|
|
5719
5719
|
ct();
|
|
5720
5720
|
}), (N, ke) => {
|
|
5721
5721
|
const Ae = V("JComp"), Oe = V("el-row");
|
|
5722
|
-
return
|
|
5722
|
+
return de.value.display != !1 && R.value ? (k(), K(Ja(F.value), et({
|
|
5723
5723
|
key: 0,
|
|
5724
5724
|
ref_key: "compRef",
|
|
5725
5725
|
ref: Ze
|
|
5726
|
-
},
|
|
5726
|
+
}, de.value, {
|
|
5727
5727
|
modelValue: A.value,
|
|
5728
5728
|
"onUpdate:modelValue": ke[0] || (ke[0] = (Ke) => A.value = Ke),
|
|
5729
5729
|
"run-flow": q(u),
|
|
@@ -5731,22 +5731,22 @@ var Xp = class {
|
|
|
5731
5731
|
}), Qn({ _: 2 }, [Fe(We.value, (Ke, Le) => ({
|
|
5732
5732
|
name: Le,
|
|
5733
5733
|
fn: X(() => [(k(!0), L(He, null, Fe(Ke, (Ye) => (k(), K(Ae, et({ key: Ye.id }, { ref_for: !0 }, Ye), null, 16))), 128))])
|
|
5734
|
-
}))]), 1040, ["modelValue", "run-flow"])) :
|
|
5734
|
+
}))]), 1040, ["modelValue", "run-flow"])) : de.value.display != !1 ? (k(), K(Ja(F.value), et({
|
|
5735
5735
|
key: 1,
|
|
5736
5736
|
ref_key: "compRef",
|
|
5737
5737
|
ref: Ze
|
|
5738
|
-
},
|
|
5738
|
+
}, de.value, {
|
|
5739
5739
|
"run-flow": q(u) || q(m),
|
|
5740
5740
|
onChange: xt
|
|
5741
5741
|
}), Qn({ _: 2 }, [Fe(We.value, (Ke, Le) => ({
|
|
5742
5742
|
name: Le,
|
|
5743
|
-
fn: X(() => [
|
|
5743
|
+
fn: X(() => [de.value.needRow === !0 || de.value.needRow?.[Le] === !0 ? (k(), K(Oe, {
|
|
5744
5744
|
key: 0,
|
|
5745
5745
|
gutter: p.value
|
|
5746
5746
|
}, {
|
|
5747
|
-
default: X(() => [
|
|
5748
|
-
plabelWidth: F.value === "el-tab-pane" ?
|
|
5749
|
-
pspan: F.value === "el-tab-pane" ?
|
|
5747
|
+
default: X(() => [de.value.needFormItem === !0 || de.value.needFormItem?.[Le] === !0 ? (k(!0), L(He, { key: 0 }, Fe(Ke, (Ye) => (k(), K(Qc, et({ key: Ye.id }, { ref_for: !0 }, Ye, {
|
|
5748
|
+
plabelWidth: F.value === "el-tab-pane" ? de.value.labelWidth : "",
|
|
5749
|
+
pspan: F.value === "el-tab-pane" ? de.value.span : void 0
|
|
5750
5750
|
}), null, 16, ["plabelWidth", "pspan"]))), 128)) : (k(!0), L(He, { key: 1 }, Fe(Ke, (Ye) => (k(), K(Ae, et({ key: Ye.id }, { ref_for: !0 }, Ye), null, 16))), 128))]),
|
|
5751
5751
|
_: 2
|
|
5752
5752
|
}, 1032, ["gutter"])) : (k(!0), L(He, { key: 1 }, Fe(Ke, (Ye) => (k(), K(Ae, et({ key: Ye.id }, { ref_for: !0 }, Ye), null, 16))), 128))])
|
|
@@ -5908,7 +5908,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
5908
5908
|
"label-position": l.value,
|
|
5909
5909
|
"label-width": i.value,
|
|
5910
5910
|
size: e.formConfig?.size,
|
|
5911
|
-
style:
|
|
5911
|
+
style: ue({ padding: r.value ? 0 : void 0 }),
|
|
5912
5912
|
onSubmit: s[0] || (s[0] = nn(() => {
|
|
5913
5913
|
}, ["prevent"]))
|
|
5914
5914
|
}, {
|
|
@@ -6174,7 +6174,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6174
6174
|
}, M.value = !0, J = !1, document.addEventListener("wheel", lt, { passive: !1 });
|
|
6175
6175
|
}, z = () => {
|
|
6176
6176
|
M.value = !1, J = !1, ee = !1, $e(), document.removeEventListener("wheel", lt);
|
|
6177
|
-
},
|
|
6177
|
+
}, de = () => {
|
|
6178
6178
|
$e(), me = setTimeout(() => {
|
|
6179
6179
|
!J && !ee && z();
|
|
6180
6180
|
}, 100);
|
|
@@ -6183,7 +6183,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6183
6183
|
}, Se = () => {
|
|
6184
6184
|
J = !0, $e();
|
|
6185
6185
|
}, We = () => {
|
|
6186
|
-
J = !1,
|
|
6186
|
+
J = !1, de();
|
|
6187
6187
|
}, lt = (O) => {
|
|
6188
6188
|
O.preventDefault();
|
|
6189
6189
|
}, xt = (O) => {
|
|
@@ -6211,26 +6211,26 @@ var og = /* @__PURE__ */ xe({
|
|
|
6211
6211
|
disabled: !0
|
|
6212
6212
|
}
|
|
6213
6213
|
} : O, Ce = (O) => {
|
|
6214
|
-
const { Group: $, Text: U } = nt.CustomLayout, te = o.actionsMaxCount, Y = O.filter((
|
|
6215
|
-
let
|
|
6216
|
-
if (le.forEach((
|
|
6217
|
-
const Te = On(
|
|
6218
|
-
|
|
6214
|
+
const { Group: $, Text: U } = nt.CustomLayout, te = o.actionsMaxCount, Y = O.filter((ye) => ye.config?.display !== !1), ae = Y.length > te, le = ae ? Y.slice(0, te - 1) : Y;
|
|
6215
|
+
let ve = 0;
|
|
6216
|
+
if (le.forEach((ye, fe) => {
|
|
6217
|
+
const Te = On(ye.config?.label || ye.label || "") || 0;
|
|
6218
|
+
ve += Te + (fe === 0 ? 24 : 12);
|
|
6219
6219
|
}), ae) {
|
|
6220
|
-
const
|
|
6221
|
-
|
|
6220
|
+
const ye = (On("更多") || 0) + 12;
|
|
6221
|
+
ve += ye;
|
|
6222
6222
|
}
|
|
6223
|
-
const
|
|
6223
|
+
const ce = Math.max(80, ve) + "px";
|
|
6224
6224
|
return {
|
|
6225
6225
|
field: "__actions__",
|
|
6226
6226
|
title: o.actionsLabel,
|
|
6227
|
-
width:
|
|
6228
|
-
maxWidth:
|
|
6229
|
-
minWidth:
|
|
6227
|
+
width: ce,
|
|
6228
|
+
maxWidth: ce,
|
|
6229
|
+
minWidth: ce,
|
|
6230
6230
|
disableColumnResize: !0,
|
|
6231
6231
|
disableSelect: !0,
|
|
6232
|
-
customLayout: (
|
|
6233
|
-
const { table: fe, row: Te, col: je } =
|
|
6232
|
+
customLayout: (ye) => {
|
|
6233
|
+
const { table: fe, row: Te, col: je } = ye, Me = fe.getCellOriginRecord(je, Te), tt = fe.getRecordIndexByCell(je, Te), Je = Y.map((Ue) => {
|
|
6234
6234
|
const ht = Ze({
|
|
6235
6235
|
action: Ue,
|
|
6236
6236
|
record: Me,
|
|
@@ -6292,7 +6292,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6292
6292
|
const jt = b.value?.getBoundingClientRect();
|
|
6293
6293
|
jt && Z(gt, Me, tt, Ge.canvasX + jt.left - 64, Ge.canvasY + jt.top + 8), ee = !0, $e();
|
|
6294
6294
|
}), ht.addEventListener("mouseleave", (Ge) => {
|
|
6295
|
-
Ge.target.setAttribute("fill", Ue), fe.scenegraph.stage.renderNextFrame(), ee = !1,
|
|
6295
|
+
Ge.target.setAttribute("fill", Ue), fe.scenegraph.stage.renderNextFrame(), ee = !1, de();
|
|
6296
6296
|
}), kt.add(ht);
|
|
6297
6297
|
}
|
|
6298
6298
|
return {
|
|
@@ -6302,20 +6302,20 @@ var og = /* @__PURE__ */ xe({
|
|
|
6302
6302
|
}
|
|
6303
6303
|
};
|
|
6304
6304
|
}, ct = (O, $) => {
|
|
6305
|
-
const { dataValue: U, table: te, col: Y, row: ae, value: le } = O,
|
|
6305
|
+
const { dataValue: U, table: te, col: Y, row: ae, value: le } = O, ve = O.rect ?? te?.getCellRect?.(Y, ae) ?? {
|
|
6306
6306
|
width: 0,
|
|
6307
6307
|
height: 0
|
|
6308
|
-
},
|
|
6308
|
+
}, ce = te?.getBodyField?.(Y, ae), ye = te?.options?.columns || [], fe = (ce ? Et(ye, ce) : null)?.style?.textAlign || "left", Te = 8, je = Math.max(0, ve.width - Te * 2);
|
|
6309
6309
|
let Me = Pt(le) ? U : le;
|
|
6310
6310
|
Me == null && (Me = "");
|
|
6311
6311
|
const tt = Oe(typeof Me == "object" ? JSON.stringify(Me) : String(Me), je);
|
|
6312
6312
|
let Je = Te, De = "left";
|
|
6313
|
-
return fe === "center" ? (Je =
|
|
6313
|
+
return fe === "center" ? (Je = ve.width / 2, De = "center") : fe === "right" && (Je = Math.max(Te, ve.width - Te), De = "right"), {
|
|
6314
6314
|
elements: [{
|
|
6315
6315
|
type: "text",
|
|
6316
6316
|
text: tt,
|
|
6317
6317
|
x: Je,
|
|
6318
|
-
y:
|
|
6318
|
+
y: ve.height / 2,
|
|
6319
6319
|
fontSize: 14,
|
|
6320
6320
|
fill: "#1d2129",
|
|
6321
6321
|
textAlign: De,
|
|
@@ -6324,12 +6324,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6324
6324
|
expectedHeight: Pn
|
|
6325
6325
|
};
|
|
6326
6326
|
}, _t = (O, $) => {
|
|
6327
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O,
|
|
6327
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O, ve = Y?.options?.columns || [], ce = Y?.getBodyField?.(ae, le), ye = ce ? Et(ve, ce) : null, fe = $ || ye?._compConfig || {};
|
|
6328
6328
|
let Te = "mdi:toggle-switch", je = "#165dff";
|
|
6329
6329
|
(Object.prototype.hasOwnProperty.call(fe, "inactiveValue") && fe.inactiveValue !== void 0 ? String(U) === String(fe.inactiveValue) : !U) && (Te = "mdi:toggle-switch-off", je = "#e5e6eb");
|
|
6330
6330
|
const Me = Na(Te), tt = Me?.body?.replace(/currentColor/g, je), Je = [], De = 8, Ve = 40;
|
|
6331
6331
|
let ot = De;
|
|
6332
|
-
return
|
|
6332
|
+
return ye?.style?.textAlign === "center" ? ot = Math.max(De, (te.width - Ve) / 2) : ye?.style?.textAlign === "right" && (ot = Math.max(De, te.width - Ve - De)), Je.push({
|
|
6333
6333
|
type: "icon",
|
|
6334
6334
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ve}" height="${Ve}" viewBox="0 0 ${Me?.width} ${Me?.height}" >${tt}</svg>`,
|
|
6335
6335
|
x: ot,
|
|
@@ -6341,9 +6341,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
6341
6341
|
expectedHeight: Pn
|
|
6342
6342
|
};
|
|
6343
6343
|
}, N = (O, $) => {
|
|
6344
|
-
const { dataValue: U, rect: te } = O, Y = Number(U) || 0, ae = 5, le = 20,
|
|
6344
|
+
const { dataValue: U, rect: te } = O, Y = Number(U) || 0, ae = 5, le = 20, ve = 4, ce = 8, ye = (te.height - le) / 2, fe = [], Te = Na("mdi:star"), je = Na("mdi:star-half-full"), Me = Na("mdi:star-outline"), tt = "#f7ba2a", Je = "#e5e6eb";
|
|
6345
6345
|
for (let De = 0; De < ae; De++) {
|
|
6346
|
-
const Ve =
|
|
6346
|
+
const Ve = ce + De * (le + ve), ot = ye;
|
|
6347
6347
|
if (Y >= De + 1) {
|
|
6348
6348
|
const gt = Te?.body?.replace(/currentColor/g, tt);
|
|
6349
6349
|
fe.push({
|
|
@@ -6381,12 +6381,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6381
6381
|
expectedHeight: Pn
|
|
6382
6382
|
};
|
|
6383
6383
|
}, ke = (O, $) => {
|
|
6384
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O,
|
|
6385
|
-
config:
|
|
6386
|
-
getCompConfig:
|
|
6384
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O, ve = Y.getBodyField(ae, le), ce = Et(Y.options?.columns || [], ve), ye = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, fe = $ || kn({
|
|
6385
|
+
config: ce?._compConfig,
|
|
6386
|
+
getCompConfig: ce?._getCompConfig,
|
|
6387
6387
|
formData: l || {},
|
|
6388
6388
|
getTableData: Dn,
|
|
6389
|
-
row:
|
|
6389
|
+
row: ye
|
|
6390
6390
|
}) || {}, Te = Number(fe.min) || 0, je = Number(fe.max) || 100, Me = Number(U) || 0, tt = je - Te, Je = tt === 0 ? 0 : Math.max(0, Math.min(100, (Me - Te) / tt * 100)), De = 4, Ve = 8, ot = 8, gt = (te.height - De) / 2, kt = String(Me), Ue = On(kt) || 0, ht = Ve, Ge = gt, jt = te.width - Ve * 2 - Ue - ot, fn = jt * Je / 100, xn = [], Oa = (tn, sn, co) => {
|
|
6391
6391
|
const ft = Math.min(co, sn / 2, tn / 2);
|
|
6392
6392
|
return `M ${ft} 0 L ${tn - ft} 0 Q ${tn} 0 ${tn} ${ft} L ${tn} ${sn - ft} Q ${tn} ${sn} ${tn - ft} ${sn} L ${ft} ${sn} Q 0 ${sn} 0 ${sn - ft} L 0 ${ft} Q 0 0 ${ft} 0 Z`;
|
|
@@ -6443,12 +6443,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6443
6443
|
elements: [],
|
|
6444
6444
|
expectedHeight: Pn
|
|
6445
6445
|
};
|
|
6446
|
-
const
|
|
6447
|
-
config:
|
|
6448
|
-
getCompConfig:
|
|
6446
|
+
const ve = Y.getBodyField(ae, le), ce = Et(Y.options?.columns || [], ve), ye = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, fe = $ || kn({
|
|
6447
|
+
config: ce?._compConfig,
|
|
6448
|
+
getCompConfig: ce?._getCompConfig,
|
|
6449
6449
|
formData: l || {},
|
|
6450
6450
|
getTableData: Dn,
|
|
6451
|
-
row:
|
|
6451
|
+
row: ye
|
|
6452
6452
|
}) || {}, Te = Number(fe.size) || 16, je = fe.color, Me = (te.width - Te) / 2, tt = (te.height - Te) / 2;
|
|
6453
6453
|
let Je = String(U).trim();
|
|
6454
6454
|
if (!Je) return {
|
|
@@ -6485,13 +6485,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
6485
6485
|
expectedHeight: Math.max(Pn, Te)
|
|
6486
6486
|
};
|
|
6487
6487
|
}, Le = (O, $) => {
|
|
6488
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row: le, value:
|
|
6489
|
-
config:
|
|
6490
|
-
getCompConfig:
|
|
6488
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le, value: ve } = O, ce = Y.getBodyField(ae, le), ye = Et(Y.options?.columns || [], ce), fe = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, Te = $ || kn({
|
|
6489
|
+
config: ye?._compConfig,
|
|
6490
|
+
getCompConfig: ye?._getCompConfig,
|
|
6491
6491
|
formData: l || {},
|
|
6492
6492
|
getTableData: Dn,
|
|
6493
6493
|
row: fe
|
|
6494
|
-
}) || {}, je =
|
|
6494
|
+
}) || {}, je = ye?.style?.textAlign || "left", Me = Pt(ye._fieldFormat) ? U : ve, tt = Pt(Me) ? "" : Me + "", Je = u({
|
|
6495
6495
|
config: Te,
|
|
6496
6496
|
row: fe,
|
|
6497
6497
|
value: tt
|
|
@@ -6568,43 +6568,43 @@ var og = /* @__PURE__ */ xe({
|
|
|
6568
6568
|
O = O.replace("#", ""), O.length === 3 && (O = O.split("").map((Y) => Y + Y).join(""));
|
|
6569
6569
|
const $ = parseInt(O.substring(0, 2), 16), U = parseInt(O.substring(2, 4), 16), te = parseInt(O.substring(4, 6), 16);
|
|
6570
6570
|
if (($ * 299 + U * 587 + te * 114) / 1e3 >= 128) {
|
|
6571
|
-
const Y = $ / 255, ae = U / 255, le = te / 255,
|
|
6572
|
-
let
|
|
6573
|
-
const Te = (
|
|
6574
|
-
if (
|
|
6575
|
-
const ot =
|
|
6576
|
-
switch (fe = Te > 0.5 ? ot / (2 -
|
|
6571
|
+
const Y = $ / 255, ae = U / 255, le = te / 255, ve = Math.max(Y, ae, le), ce = Math.min(Y, ae, le);
|
|
6572
|
+
let ye = 0, fe = 0;
|
|
6573
|
+
const Te = (ve + ce) / 2;
|
|
6574
|
+
if (ve !== ce) {
|
|
6575
|
+
const ot = ve - ce;
|
|
6576
|
+
switch (fe = Te > 0.5 ? ot / (2 - ve - ce) : ot / (ve + ce), ve) {
|
|
6577
6577
|
case Y:
|
|
6578
|
-
|
|
6578
|
+
ye = (ae - le) / ot + (ae < le ? 6 : 0);
|
|
6579
6579
|
break;
|
|
6580
6580
|
case ae:
|
|
6581
|
-
|
|
6581
|
+
ye = (le - Y) / ot + 2;
|
|
6582
6582
|
break;
|
|
6583
6583
|
case le:
|
|
6584
|
-
|
|
6584
|
+
ye = (Y - ae) / ot + 4;
|
|
6585
6585
|
break;
|
|
6586
6586
|
}
|
|
6587
|
-
|
|
6587
|
+
ye /= 6;
|
|
6588
6588
|
}
|
|
6589
6589
|
const je = 0.3, Me = fe;
|
|
6590
6590
|
let tt, Je, De;
|
|
6591
6591
|
if (Me === 0) tt = Je = De = je;
|
|
6592
6592
|
else {
|
|
6593
6593
|
const ot = (Ue, ht, Ge) => (Ge < 0 && (Ge += 1), Ge > 1 && (Ge -= 1), Ge < 0.16666666666666666 ? Ue + (ht - Ue) * 6 * Ge : Ge < 0.5 ? ht : Ge < 0.6666666666666666 ? Ue + (ht - Ue) * (0.6666666666666666 - Ge) * 6 : Ue), gt = je < 0.5 ? je * (1 + Me) : je + Me - je * Me, kt = 2 * je - gt;
|
|
6594
|
-
tt = ot(kt, gt,
|
|
6594
|
+
tt = ot(kt, gt, ye + 1 / 3), Je = ot(kt, gt, ye), De = ot(kt, gt, ye - 1 / 3);
|
|
6595
6595
|
}
|
|
6596
6596
|
const Ve = (ot) => Math.round(ot * 255).toString(16).padStart(2, "0");
|
|
6597
6597
|
return `#${Ve(tt)}${Ve(Je)}${Ve(De)}`;
|
|
6598
6598
|
}
|
|
6599
6599
|
return "#ffffff";
|
|
6600
6600
|
}, dt = (O) => {
|
|
6601
|
-
const { table: $, row: U, col: te, rect: Y, value: ae } = O, { Group: le, Text:
|
|
6601
|
+
const { table: $, row: U, col: te, rect: Y, value: ae } = O, { Group: le, Text: ve } = nt.CustomLayout, ce = $.getBodyField(te, U), ye = Et($.options?.columns || [], ce), fe = ye?._compConfig || {}, Te = new le({
|
|
6602
6602
|
height: Y.height,
|
|
6603
6603
|
width: Y.width,
|
|
6604
6604
|
display: "flex",
|
|
6605
6605
|
alignItems: "center",
|
|
6606
|
-
justifyContent:
|
|
6607
|
-
}), je = "#165dff", Me = new
|
|
6606
|
+
justifyContent: ye.style?.textAlign === "center" ? "center" : ye.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6607
|
+
}), je = "#165dff", Me = new ve({
|
|
6608
6608
|
text: String(ae ?? ""),
|
|
6609
6609
|
fontSize: 14,
|
|
6610
6610
|
fill: je,
|
|
@@ -6621,7 +6621,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6621
6621
|
const tt = $.getCellOriginRecord(te, U);
|
|
6622
6622
|
fe.click({
|
|
6623
6623
|
row: tt,
|
|
6624
|
-
column:
|
|
6624
|
+
column: ye,
|
|
6625
6625
|
openLayer: h
|
|
6626
6626
|
});
|
|
6627
6627
|
}
|
|
@@ -6634,18 +6634,18 @@ var og = /* @__PURE__ */ xe({
|
|
|
6634
6634
|
renderDefault: !1
|
|
6635
6635
|
};
|
|
6636
6636
|
}, Jt = (O, $) => $ ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff", It = (O) => {
|
|
6637
|
-
const { table: $, row: U, col: te, rect: Y } = O, { Group: ae, Text: le } = nt.CustomLayout,
|
|
6638
|
-
config:
|
|
6639
|
-
getCompConfig:
|
|
6637
|
+
const { table: $, row: U, col: te, rect: Y } = O, { Group: ae, Text: le } = nt.CustomLayout, ve = $.getBodyField(te, U), ce = Et($.options?.columns || [], ve), ye = $.getCellOriginRecord?.(te, U) || $.getRecordByCell?.(te, U) || {}, fe = kn({
|
|
6638
|
+
config: ce?._compConfig,
|
|
6639
|
+
getCompConfig: ce?._getCompConfig,
|
|
6640
6640
|
formData: l || {},
|
|
6641
6641
|
getTableData: Dn,
|
|
6642
|
-
row:
|
|
6643
|
-
}) || {}, Te = Array.isArray(fe.schema) ? fe.schema : [], je = String(fe.buttonLabel || fe.layerLabel ||
|
|
6642
|
+
row: ye
|
|
6643
|
+
}) || {}, Te = Array.isArray(fe.schema) ? fe.schema : [], je = String(fe.buttonLabel || fe.layerLabel || ce?.title || "设置"), Me = fe.disabled === !0 || Te.length === 0, tt = Jt(fe.status, Me), Je = new ae({
|
|
6644
6644
|
height: Y.height,
|
|
6645
6645
|
width: Y.width,
|
|
6646
6646
|
display: "flex",
|
|
6647
6647
|
alignItems: "center",
|
|
6648
|
-
justifyContent:
|
|
6648
|
+
justifyContent: ce?.style?.textAlign === "center" ? "center" : ce?.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6649
6649
|
}), De = new le({
|
|
6650
6650
|
text: je,
|
|
6651
6651
|
fontSize: 14,
|
|
@@ -6671,7 +6671,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6671
6671
|
config: {
|
|
6672
6672
|
schema: Te,
|
|
6673
6673
|
formConfig: fe.formConfig || {},
|
|
6674
|
-
rowData:
|
|
6674
|
+
rowData: ye
|
|
6675
6675
|
}
|
|
6676
6676
|
});
|
|
6677
6677
|
}), De.addEventListener("mouseenter", (Ve) => {
|
|
@@ -6683,15 +6683,15 @@ var og = /* @__PURE__ */ xe({
|
|
|
6683
6683
|
renderDefault: !1
|
|
6684
6684
|
};
|
|
6685
6685
|
}, un = (O) => {
|
|
6686
|
-
const { table: $, row: U, col: te, rect: Y } = O, { height: ae, width: le } = Y ?? $.getCellRect(te, U), { Group:
|
|
6687
|
-
const ht = Te?.[
|
|
6688
|
-
Te[
|
|
6686
|
+
const { table: $, row: U, col: te, rect: Y } = O, { height: ae, width: le } = Y ?? $.getCellRect(te, U), { Group: ve, CheckBox: ce } = nt.CustomLayout, ye = $.getBodyField(te, U), fe = Et($.options?.columns || [], ye), Te = $.getCellOriginRecord(te, U) || {}, je = fe?.style?.textAlign === "right" ? "flex-end" : fe?.style?.textAlign === "center" ? "center" : "flex-start", Me = fe?.style?.textAlign === "right" ? "flex-end" : fe?.style?.textAlign === "center" ? "center" : "flex-start", tt = (kt, Ue) => {
|
|
6687
|
+
const ht = Te?.[ye];
|
|
6688
|
+
Te[ye] = (Array.isArray(ht) ? ht : []).map((Ge, jt) => jt !== kt ? Ge : Ge && typeof Ge == "object" ? {
|
|
6689
6689
|
...Ge,
|
|
6690
6690
|
...Ue
|
|
6691
6691
|
} : { ...Ue });
|
|
6692
6692
|
}, Je = () => {
|
|
6693
6693
|
$.renderWithRecreateCells();
|
|
6694
|
-
}, De = new
|
|
6694
|
+
}, De = new ve({
|
|
6695
6695
|
width: le,
|
|
6696
6696
|
height: Math.max(ae || 0, 40),
|
|
6697
6697
|
display: "flex",
|
|
@@ -6699,12 +6699,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6699
6699
|
alignItems: je,
|
|
6700
6700
|
justifyContent: "center",
|
|
6701
6701
|
flexWrap: "nowrap"
|
|
6702
|
-
}), Ve = Te?.[
|
|
6702
|
+
}), Ve = Te?.[ye];
|
|
6703
6703
|
if (!Array.isArray(Ve)) return {
|
|
6704
6704
|
rootContainer: De,
|
|
6705
6705
|
renderDefault: !1
|
|
6706
6706
|
};
|
|
6707
|
-
const ot = Ve, gt = new
|
|
6707
|
+
const ot = Ve, gt = new ve({
|
|
6708
6708
|
width: le,
|
|
6709
6709
|
display: "flex",
|
|
6710
6710
|
flexDirection: "row",
|
|
@@ -6720,7 +6720,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6720
6720
|
});
|
|
6721
6721
|
De.add(gt);
|
|
6722
6722
|
for (let kt = 0; kt < ot.length; kt++) {
|
|
6723
|
-
const Ue = ot[kt], ht = Ue && typeof Ue == "object" ? Ue.label ?? Ue.value ?? "" : Ue ?? "", Ge = new
|
|
6723
|
+
const Ue = ot[kt], ht = Ue && typeof Ue == "object" ? Ue.label ?? Ue.value ?? "" : Ue ?? "", Ge = new ce({
|
|
6724
6724
|
text: {
|
|
6725
6725
|
text: String(ht),
|
|
6726
6726
|
fontSize: 12
|
|
@@ -6766,22 +6766,22 @@ var og = /* @__PURE__ */ xe({
|
|
|
6766
6766
|
elements: [],
|
|
6767
6767
|
expectedHeight: Pn
|
|
6768
6768
|
};
|
|
6769
|
-
const le = $.getCellOriginRecord?.(U, te) || $.getRecordByCell?.(U, te) || {},
|
|
6769
|
+
const le = $.getCellOriginRecord?.(U, te) || $.getRecordByCell?.(U, te) || {}, ve = kn({
|
|
6770
6770
|
config: ae._compConfig,
|
|
6771
6771
|
getCompConfig: ae._getCompConfig,
|
|
6772
6772
|
formData: l || {},
|
|
6773
6773
|
getTableData: Dn,
|
|
6774
6774
|
row: le
|
|
6775
|
-
}),
|
|
6775
|
+
}), ce = hr({
|
|
6776
6776
|
type: ae._compType,
|
|
6777
6777
|
getCompType: ae._getCompType,
|
|
6778
|
-
config:
|
|
6778
|
+
config: ve,
|
|
6779
6779
|
formData: l || {},
|
|
6780
6780
|
getTableData: Dn,
|
|
6781
6781
|
row: le
|
|
6782
6782
|
});
|
|
6783
|
-
le._compTypeByRender = le._compTypeByRender || {}, le._compTypeByRender[Y] =
|
|
6784
|
-
const
|
|
6783
|
+
le._compTypeByRender = le._compTypeByRender || {}, le._compTypeByRender[Y] = ce;
|
|
6784
|
+
const ye = {
|
|
6785
6785
|
text: ct,
|
|
6786
6786
|
"j-switch": _t,
|
|
6787
6787
|
"j-rate": N,
|
|
@@ -6789,8 +6789,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
6789
6789
|
"j-tag": Le,
|
|
6790
6790
|
"j-input-tag": Le,
|
|
6791
6791
|
"j-icon": Ke
|
|
6792
|
-
}[
|
|
6793
|
-
return
|
|
6792
|
+
}[ce] || ct;
|
|
6793
|
+
return ye ? ye(O, ve) : {
|
|
6794
6794
|
elements: [],
|
|
6795
6795
|
expectedHeight: Pn
|
|
6796
6796
|
};
|
|
@@ -6798,8 +6798,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
6798
6798
|
const Y = te.getBodyField($, U), ae = Et(te.options?.columns || [], Y);
|
|
6799
6799
|
if (ae._fieldFormat) return ae._fieldFormat(O, $, U, te);
|
|
6800
6800
|
if (ae._compType === "dateTime") {
|
|
6801
|
-
const
|
|
6802
|
-
return pr(O[Y],
|
|
6801
|
+
const ye = ae._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6802
|
+
return pr(O[Y], ye);
|
|
6803
6803
|
}
|
|
6804
6804
|
const le = ch(O[Y], s, {
|
|
6805
6805
|
type: ae._compType,
|
|
@@ -6809,10 +6809,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
6809
6809
|
formData: l,
|
|
6810
6810
|
getTableData: Dn,
|
|
6811
6811
|
row: O
|
|
6812
|
-
}),
|
|
6813
|
-
if (!Pt(
|
|
6814
|
-
var
|
|
6815
|
-
g[
|
|
6812
|
+
}), ve = le.config?.valueIdKey && O[le.config.valueIdKey] != null ? O[le.config.valueIdKey] : O[Y];
|
|
6813
|
+
if (!Pt(ve) && (le.label == O[Y] || le.label == ve) && le.config.dataType && le.config.dataType != "options" && !le.config.options && le.type != "j-autocomplete" && s && d) {
|
|
6814
|
+
var ce = d(le.config.dataType, le.config.dataCode, { value: ve });
|
|
6815
|
+
g[ce] = !0;
|
|
6816
6816
|
}
|
|
6817
6817
|
return le.label;
|
|
6818
6818
|
}, Ut = () => {
|
|
@@ -6833,11 +6833,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
6833
6833
|
});
|
|
6834
6834
|
const Xn = (O) => {
|
|
6835
6835
|
const $ = new Set(o.columnFilter || []), U = (Y, ae, le) => !(Y.config?.display === !1 || $.has(Y.id)), te = (Y, ae, le = 0) => {
|
|
6836
|
-
const
|
|
6837
|
-
return Y.forEach((
|
|
6838
|
-
if (!U(
|
|
6839
|
-
const { id:
|
|
6840
|
-
field:
|
|
6836
|
+
const ve = [];
|
|
6837
|
+
return Y.forEach((ce) => {
|
|
6838
|
+
if (!U(ce, ae, le)) return;
|
|
6839
|
+
const { id: ye, type: fe, config: Te, getCompConfig: je, getCompType: Me, children: tt, customLayout: Je } = ce, { label: De, width: Ve, minWidth: ot, maxWidth: gt, align: kt, headerAlign: Ue, fieldFormat: ht, editor: Ge, frozen: jt, mergeCell: fn, ...xn } = Te || {}, Oa = Ue ?? kt, Lt = {
|
|
6840
|
+
field: ye,
|
|
6841
6841
|
title: De,
|
|
6842
6842
|
width: Ve,
|
|
6843
6843
|
minWidth: ot,
|
|
@@ -6854,12 +6854,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6854
6854
|
mergeCell: fn
|
|
6855
6855
|
}, _n = typeof Me == "function", fa = tu(fe);
|
|
6856
6856
|
if ((fa || _n) && (Lt.editor = fa || "j-comp-editor", S = !0), _n ? Lt.customRender = Mt : (fe === "j-switch" && (Lt.customRender = _t), fe === "j-rate" && (Lt.customRender = N), fe === "j-slider" && (Lt.customRender = ke), (fe === "j-tag" || fe === "j-input-tag" || xn.showTag) && (Lt.customRender = Le), fe === "j-icon" && (Lt.customRender = Ke)), fe === "link" && (Lt.customLayout = dt), (fe === "j-layerform" || fe === "j-layer-form") && (Lt.customLayout = It), fe === "checkbox" && (Lt.customLayout = un), fe === "j-switch" && (Lt.minWidth = Lt.minWidth || Ve, Lt.maxWidth = Lt.maxWidth || Ve), Je && (Lt.customLayout = pn), Lt.fieldFormat = wt, tt && tt.length > 0) {
|
|
6857
|
-
const Ia = te(tt,
|
|
6857
|
+
const Ia = te(tt, ce, le + 1);
|
|
6858
6858
|
if (Ia.length === 0) return;
|
|
6859
6859
|
Lt.columns = Ia;
|
|
6860
6860
|
}
|
|
6861
|
-
|
|
6862
|
-
}), o.isTree &&
|
|
6861
|
+
ve.push(Lt);
|
|
6862
|
+
}), o.isTree && ve.length > 0 && (ve[0].tree = !0), ve;
|
|
6863
6863
|
};
|
|
6864
6864
|
return te(O);
|
|
6865
6865
|
}, G = (O) => String(O || "").split(",").map(($) => $.trim()).filter(Boolean), pe = (O, $, U) => ({
|
|
@@ -6875,18 +6875,18 @@ var og = /* @__PURE__ */ xe({
|
|
|
6875
6875
|
return $.forEach((te, Y) => {
|
|
6876
6876
|
const ae = G(te.value);
|
|
6877
6877
|
if (ae.length === 0) return;
|
|
6878
|
-
const le = /* @__PURE__ */ new Set(),
|
|
6879
|
-
let
|
|
6878
|
+
const le = /* @__PURE__ */ new Set(), ve = [];
|
|
6879
|
+
let ce = U.length;
|
|
6880
6880
|
if (ae.forEach((fe) => {
|
|
6881
6881
|
if (le.has(fe)) return;
|
|
6882
6882
|
le.add(fe);
|
|
6883
6883
|
const Te = U.findIndex((Me) => Me.field === fe);
|
|
6884
6884
|
if (Te === -1) return;
|
|
6885
6885
|
const [je] = U.splice(Te, 1);
|
|
6886
|
-
je && (
|
|
6887
|
-
}),
|
|
6888
|
-
const
|
|
6889
|
-
U.splice(Math.min(
|
|
6886
|
+
je && (ve.push(je), ce = Math.min(ce, Te));
|
|
6887
|
+
}), ve.length === 0) return;
|
|
6888
|
+
const ye = pe(te, Y, ve);
|
|
6889
|
+
U.splice(Math.min(ce, U.length), 0, ye);
|
|
6890
6890
|
}), U;
|
|
6891
6891
|
}, he = (O, $) => {
|
|
6892
6892
|
const U = O.replace("#", ""), te = parseInt(U, 16), Y = Math.min(255, Math.max(0, (te >> 16) + $)), ae = Math.min(255, Math.max(0, (te >> 8 & 255) + $)), le = Math.min(255, Math.max(0, (te & 255) + $));
|
|
@@ -6987,9 +6987,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
6987
6987
|
return;
|
|
6988
6988
|
}
|
|
6989
6989
|
const te = ra(U.columns), Y = [], ae = [], le = [];
|
|
6990
|
-
if (te.forEach((
|
|
6991
|
-
const
|
|
6992
|
-
|
|
6990
|
+
if (te.forEach((ve) => {
|
|
6991
|
+
const ce = zn(ve);
|
|
6992
|
+
ce === "left" ? Y.push(ve) : ce === "right" ? ae.push(ve) : le.push(ve);
|
|
6993
6993
|
}), (Y.length > 0 ? 1 : 0) + (ae.length > 0 ? 1 : 0) + (le.length > 0 ? 1 : 0) <= 1) {
|
|
6994
6994
|
U.columns = te, $.push(U);
|
|
6995
6995
|
return;
|
|
@@ -7021,16 +7021,16 @@ var og = /* @__PURE__ */ xe({
|
|
|
7021
7021
|
const Y = {};
|
|
7022
7022
|
let ae = Xn(O);
|
|
7023
7023
|
te || (ae = re(ae, o.mergeHeader)), ae.length === 0 && (ae = [St()]), ae = ra(ae);
|
|
7024
|
-
const le = [],
|
|
7024
|
+
const le = [], ve = [], ce = [];
|
|
7025
7025
|
ae.forEach((je) => {
|
|
7026
7026
|
const Me = zn(je);
|
|
7027
|
-
Me === "left" ? le.push(je) : Me === "right" ?
|
|
7027
|
+
Me === "left" ? le.push(je) : Me === "right" ? ve.push(je) : ce.push(je);
|
|
7028
7028
|
});
|
|
7029
|
-
const
|
|
7030
|
-
x +=
|
|
7029
|
+
const ye = sa(le), fe = sa(ve);
|
|
7030
|
+
x += ye.left, y += fe.right, ae = [
|
|
7031
7031
|
...le,
|
|
7032
|
-
...
|
|
7033
|
-
...
|
|
7032
|
+
...ce,
|
|
7033
|
+
...ve
|
|
7034
7034
|
], $ && (ae.unshift(Be(te)), x++), U.length > 0 && (ae.push(Ce(U)), y++), S && (Y.editCellTrigger = "click", Y.keyboardOptions = {
|
|
7035
7035
|
copySelected: !0,
|
|
7036
7036
|
cutSelected: !0,
|
|
@@ -7105,23 +7105,23 @@ var og = /* @__PURE__ */ xe({
|
|
|
7105
7105
|
}
|
|
7106
7106
|
}
|
|
7107
7107
|
}), v.on("click_cell", (Y) => {
|
|
7108
|
-
const { col: ae, row: le, cellType:
|
|
7108
|
+
const { col: ae, row: le, cellType: ve, originData: ce } = Y, ye = ce || { children: v.records };
|
|
7109
7109
|
if (en.value) {
|
|
7110
|
-
if (
|
|
7111
|
-
if (
|
|
7110
|
+
if (ve === "checkbox" && ae == 0) {
|
|
7111
|
+
if (ye.__checkState = Y.target.attribute.checked, le === 0 && ye.__checkState === !1) {
|
|
7112
7112
|
const Te = (je) => {
|
|
7113
7113
|
!Array.isArray(je) || je.length === 0 || je.forEach((Me) => {
|
|
7114
7114
|
Me && (Me.__checkState = !1, Array.isArray(Me.children) && Me.children.length > 0 && Te(Me.children));
|
|
7115
7115
|
});
|
|
7116
7116
|
};
|
|
7117
|
-
Te(
|
|
7117
|
+
Te(ye.children);
|
|
7118
7118
|
}
|
|
7119
7119
|
const fe = Re();
|
|
7120
7120
|
fe.length == 0 && v.setCellCheckboxState(0, 0, !1), R.value = fe.length, i("selectionChanged", {
|
|
7121
7121
|
isMultiple: !0,
|
|
7122
7122
|
selections: fe,
|
|
7123
|
-
record:
|
|
7124
|
-
checked:
|
|
7123
|
+
record: ye,
|
|
7124
|
+
checked: ye.__checkState,
|
|
7125
7125
|
isInit: !1
|
|
7126
7126
|
}), v.renderWithRecreateCells();
|
|
7127
7127
|
}
|
|
@@ -7130,7 +7130,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7130
7130
|
R.value = fe.length, i("selectionChanged", {
|
|
7131
7131
|
isMultiple: !1,
|
|
7132
7132
|
selections: fe,
|
|
7133
|
-
record:
|
|
7133
|
+
record: ye,
|
|
7134
7134
|
checked: !0,
|
|
7135
7135
|
isInit: !1
|
|
7136
7136
|
});
|
|
@@ -7187,21 +7187,21 @@ var og = /* @__PURE__ */ xe({
|
|
|
7187
7187
|
}), ti(() => {
|
|
7188
7188
|
ua(), $e(), wn(), document.removeEventListener("wheel", lt);
|
|
7189
7189
|
});
|
|
7190
|
-
const
|
|
7190
|
+
const se = H({
|
|
7191
7191
|
get() {
|
|
7192
7192
|
return o.tablePage;
|
|
7193
7193
|
},
|
|
7194
7194
|
set(O) {
|
|
7195
7195
|
i("update:tablePage", O);
|
|
7196
7196
|
}
|
|
7197
|
-
}),
|
|
7197
|
+
}), ge = D(0), ze = H({
|
|
7198
7198
|
get() {
|
|
7199
|
-
return
|
|
7199
|
+
return ge.value !== 0 ? ge.value : o.pageSize;
|
|
7200
7200
|
},
|
|
7201
7201
|
set(O) {
|
|
7202
|
-
|
|
7202
|
+
ge.value = O, i("update:pageSize", O);
|
|
7203
7203
|
}
|
|
7204
|
-
}), Ie = H(() => (
|
|
7204
|
+
}), Ie = H(() => (se.value - 1) * ze.value), be = (O, $) => {
|
|
7205
7205
|
i("loadPageData", {
|
|
7206
7206
|
rows: $,
|
|
7207
7207
|
page: O
|
|
@@ -7217,29 +7217,29 @@ var og = /* @__PURE__ */ xe({
|
|
|
7217
7217
|
return [];
|
|
7218
7218
|
}
|
|
7219
7219
|
if (v.stateManager && v.stateManager.checkedState) {
|
|
7220
|
-
const O = [], $ = /* @__PURE__ */ new Set(), U = (
|
|
7221
|
-
if (!
|
|
7222
|
-
const
|
|
7223
|
-
if (
|
|
7224
|
-
if ($.has(
|
|
7225
|
-
$.add(
|
|
7226
|
-
const
|
|
7227
|
-
|
|
7220
|
+
const O = [], $ = /* @__PURE__ */ new Set(), U = (ve) => {
|
|
7221
|
+
if (!ve || qt(ve)) return;
|
|
7222
|
+
const ce = Gt(ve);
|
|
7223
|
+
if (ce) {
|
|
7224
|
+
if ($.has(ce)) return;
|
|
7225
|
+
$.add(ce);
|
|
7226
|
+
const ye = {};
|
|
7227
|
+
ve.__checkState = !0, Ui(ye, ve, ["children"]), O.push(ye);
|
|
7228
7228
|
} else console.warn("key is empty");
|
|
7229
|
-
}, te = (
|
|
7230
|
-
const
|
|
7231
|
-
!Array.isArray(
|
|
7232
|
-
U(
|
|
7229
|
+
}, te = (ve) => {
|
|
7230
|
+
const ce = ve?.children;
|
|
7231
|
+
!Array.isArray(ce) || ce.length === 0 || ce.forEach((ye) => {
|
|
7232
|
+
U(ye), te(ye);
|
|
7233
7233
|
});
|
|
7234
|
-
}, Y = v.stateManager.checkedState, ae = v.records, le = (
|
|
7235
|
-
const fe =
|
|
7236
|
-
return
|
|
7234
|
+
}, Y = v.stateManager.checkedState, ae = v.records, le = (ve, ce, ye) => {
|
|
7235
|
+
const fe = ye[ce[ve]];
|
|
7236
|
+
return ve < ce.length - 1 && fe?.children && fe.children.length > 0 ? le(ve + 1, ce, fe.children || []) : fe;
|
|
7237
7237
|
};
|
|
7238
|
-
return Y.forEach((
|
|
7239
|
-
const
|
|
7240
|
-
if (
|
|
7241
|
-
const fe = le(0, (
|
|
7242
|
-
U(fe),
|
|
7238
|
+
return Y.forEach((ve, ce) => {
|
|
7239
|
+
const ye = ve?._checkState;
|
|
7240
|
+
if (ye === "indeterminate" || ye === !0) {
|
|
7241
|
+
const fe = le(0, (ce + "").split(",").map(Number), ae);
|
|
7242
|
+
U(fe), ye === !0 && !(o.isTree && o.checkStrictly) && te(fe);
|
|
7243
7243
|
}
|
|
7244
7244
|
}), O;
|
|
7245
7245
|
}
|
|
@@ -7249,52 +7249,52 @@ var og = /* @__PURE__ */ xe({
|
|
|
7249
7249
|
if (en.value || v.clearSelected(), o.rowKey) {
|
|
7250
7250
|
const $ = new Set(O.map(Gt)), U = "__checkState";
|
|
7251
7251
|
if (!en.value) {
|
|
7252
|
-
const
|
|
7253
|
-
for (let
|
|
7254
|
-
const
|
|
7255
|
-
if (!$.has(Gt(
|
|
7256
|
-
const fe = v.getTableIndexByRecordIndex(
|
|
7252
|
+
const ve = v.records;
|
|
7253
|
+
for (let ce = 0; ce < ve.length; ce++) {
|
|
7254
|
+
const ye = ve[ce];
|
|
7255
|
+
if (!$.has(Gt(ye))) continue;
|
|
7256
|
+
const fe = v.getTableIndexByRecordIndex(ce);
|
|
7257
7257
|
v.selectRow(fe);
|
|
7258
7258
|
break;
|
|
7259
7259
|
}
|
|
7260
7260
|
return;
|
|
7261
7261
|
}
|
|
7262
|
-
const te = (
|
|
7263
|
-
|
|
7264
|
-
if (Array.isArray(
|
|
7265
|
-
if (te(
|
|
7266
|
-
const je = $.has(Gt(
|
|
7267
|
-
|
|
7262
|
+
const te = (ve) => {
|
|
7263
|
+
ve.forEach((ce) => {
|
|
7264
|
+
if (Array.isArray(ce?.children) && ce.children.length > 0) {
|
|
7265
|
+
if (te(ce.children), o.checkStrictly) {
|
|
7266
|
+
const je = $.has(Gt(ce));
|
|
7267
|
+
ce[U] = !!(!qt(ce) && je);
|
|
7268
7268
|
return;
|
|
7269
7269
|
}
|
|
7270
|
-
const
|
|
7271
|
-
|
|
7270
|
+
const ye = ce.children.filter((je) => !qt(je)), fe = ye.filter((je) => je?.[U] === !0), Te = ye.filter((je) => je?.[U] === !1);
|
|
7271
|
+
ye.length === 0 ? ce[U] = !1 : fe.length == ye.length ? ce[U] = !0 : Te.length == ye.length ? ce[U] = !1 : ce[U] = "indeterminate", ce[U] === "indeterminate" && (ce.hierarchyState = "expand");
|
|
7272
7272
|
} else {
|
|
7273
|
-
const
|
|
7274
|
-
|
|
7273
|
+
const ye = $.has(Gt(ce));
|
|
7274
|
+
ce[U] = !!(!qt(ce) && ye);
|
|
7275
7275
|
}
|
|
7276
7276
|
});
|
|
7277
7277
|
}, Y = v.records;
|
|
7278
|
-
o.isTree ? te(Y) : Y.forEach((
|
|
7279
|
-
|
|
7278
|
+
o.isTree ? te(Y) : Y.forEach((ve) => {
|
|
7279
|
+
ve[U] = !qt(ve) && $.has(Gt(ve));
|
|
7280
7280
|
});
|
|
7281
7281
|
const ae = ca();
|
|
7282
7282
|
if (ae.records = Y, v.updateOption(ae, {
|
|
7283
7283
|
clearColWidthCache: !1,
|
|
7284
7284
|
clearRowHeightCache: !1
|
|
7285
7285
|
}), o.heightMode === "auto" && (_.value = v.getAllRowsHeight()), v.stateManager?.checkedState) {
|
|
7286
|
-
const
|
|
7287
|
-
for (let Te = 0; Te <
|
|
7288
|
-
const je =
|
|
7286
|
+
const ve = "_checkState", ce = (ye, fe) => {
|
|
7287
|
+
for (let Te = 0; Te < ye.length; Te++) {
|
|
7288
|
+
const je = ye[Te];
|
|
7289
7289
|
if (!je) continue;
|
|
7290
7290
|
const Me = fe ? `${fe},${Te}` : `${Te}`, tt = je[U];
|
|
7291
|
-
v.stateManager.checkedState.set(Me, { [
|
|
7291
|
+
v.stateManager.checkedState.set(Me, { [ve]: tt === "indeterminate" ? "indeterminate" : tt === !0 }), Array.isArray(je.children) && je.children.length > 0 && ce(je.children, Me);
|
|
7292
7292
|
}
|
|
7293
7293
|
};
|
|
7294
|
-
|
|
7294
|
+
ce(Y, "");
|
|
7295
7295
|
}
|
|
7296
7296
|
const le = v.getAllBodyCells(1);
|
|
7297
|
-
for (let
|
|
7297
|
+
for (let ve = 0; ve < le.length; ve++) le[ve][0].originData[U] == !0 && v.setCellCheckboxState(0, ve + 1, !0);
|
|
7298
7298
|
v.renderWithRecreateCells();
|
|
7299
7299
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
7300
7300
|
}, da = (O) => {
|
|
@@ -7351,7 +7351,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7351
7351
|
}), v && (v.addRecord(O), o.heightMode === "auto" && Sn(), v.scrollToCell({
|
|
7352
7352
|
col: 0,
|
|
7353
7353
|
row: v.records.length
|
|
7354
|
-
})), i("change", {
|
|
7354
|
+
}), A([...v.records])), i("change", {
|
|
7355
7355
|
id: o.id,
|
|
7356
7356
|
value: O,
|
|
7357
7357
|
data: O,
|
|
@@ -7422,12 +7422,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
7422
7422
|
const U = V("j-button"), te = V("el-space"), Y = V("el-pagination");
|
|
7423
7423
|
return k(), L("div", {
|
|
7424
7424
|
class: Qe(["j-table", { "j-table-auto": e.heightMode === "auto" }]),
|
|
7425
|
-
style:
|
|
7425
|
+
style: ue(p.value)
|
|
7426
7426
|
}, [
|
|
7427
7427
|
e.label ? (k(), L("div", rg, Ee(e.label), 1)) : oe("", !0),
|
|
7428
7428
|
I("div", {
|
|
7429
7429
|
class: "j-table-wrapper",
|
|
7430
|
-
style:
|
|
7430
|
+
style: ue(w.value)
|
|
7431
7431
|
}, [I("div", {
|
|
7432
7432
|
ref_key: "tableContainer",
|
|
7433
7433
|
ref: b,
|
|
@@ -7455,8 +7455,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
7455
7455
|
$[2] || ($[2] = I("div", null, null, -1)),
|
|
7456
7456
|
e.isPage ? (k(), K(Y, {
|
|
7457
7457
|
key: 0,
|
|
7458
|
-
"current-page":
|
|
7459
|
-
"onUpdate:currentPage": $[0] || ($[0] = (ae) =>
|
|
7458
|
+
"current-page": se.value,
|
|
7459
|
+
"onUpdate:currentPage": $[0] || ($[0] = (ae) => se.value = ae),
|
|
7460
7460
|
"page-size": ze.value,
|
|
7461
7461
|
"onUpdate:pageSize": $[1] || ($[1] = (ae) => ze.value = ae),
|
|
7462
7462
|
"page-sizes": e.pageSizes || [
|
|
@@ -7478,13 +7478,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
7478
7478
|
M.value ? (k(), L("div", {
|
|
7479
7479
|
key: 1,
|
|
7480
7480
|
class: "j-table-dropdown",
|
|
7481
|
-
style:
|
|
7481
|
+
style: ue(E.value),
|
|
7482
7482
|
onMouseenter: Se,
|
|
7483
7483
|
onMouseleave: We
|
|
7484
7484
|
}, [(k(!0), L(He, null, Fe(W.value, (ae) => (k(), L("div", {
|
|
7485
7485
|
key: ae.id,
|
|
7486
7486
|
class: "j-table-dropdown-item",
|
|
7487
|
-
style:
|
|
7487
|
+
style: ue({
|
|
7488
7488
|
color: ae.config?.disabled ? "var(--j-color-text-disabled)" : ae.config?.status === "danger" ? "var(--j-color-danger)" : "var(--j-color-primary)",
|
|
7489
7489
|
cursor: ae.config?.disabled ? "not-allowed" : "pointer",
|
|
7490
7490
|
opacity: ae.config?.disabled ? 0.7 : 1
|
|
@@ -7677,15 +7677,15 @@ var og = /* @__PURE__ */ xe({
|
|
|
7677
7677
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
7678
7678
|
}, J = (z) => {
|
|
7679
7679
|
if (p.isMove) {
|
|
7680
|
-
const
|
|
7681
|
-
let Se = p._left +
|
|
7680
|
+
const de = z.pageX - p.pageX, $e = z.pageY - p.pageY;
|
|
7681
|
+
let Se = p._left + de, We = p._top + $e;
|
|
7682
7682
|
Se + C.value < 0 && (Se = -C.value), typeof document < "u" && document.body && (w.value ? Se + w.value + C.value > document.body.clientWidth && (Se = document.body.clientWidth - w.value - C.value) : Se + x.value + C.value > document.body.clientWidth && (Se = document.body.clientWidth - x.value - C.value)), We + y.value < 0 && (We = -y.value), typeof window < "u" && (b.value ? We + b.value + y.value + 40 > window.innerHeight && (We = window.innerHeight - b.value - y.value - 40) : We + v.value + y.value + 40 > window.innerHeight && (We = window.innerHeight - v.value - y.value - 40)), p.left = Se, p.top = We;
|
|
7683
7683
|
}
|
|
7684
7684
|
}, ee = (z) => {
|
|
7685
|
-
const
|
|
7686
|
-
if (z.clientX >
|
|
7687
|
-
else if (
|
|
7688
|
-
else if (z.clientX >
|
|
7685
|
+
const de = m.value.offsetLeft, $e = m.value.offsetTop, Se = m.value.clientWidth, We = m.value.clientHeight, lt = We - _.value, xt = m.value.scrollTop;
|
|
7686
|
+
if (z.clientX > de + Se - 10 && xt + z.clientY > $e + We - 10 || xt + z.clientY < $e + 5 && de + 10 > z.clientX) m.value.style.cursor = "se-resize";
|
|
7687
|
+
else if (de + 10 > z.clientX && xt + z.clientY > $e + We - 10 || z.clientX > de + Se - 10 && xt + z.clientY < $e + 5) m.value.style.cursor = "sw-resize";
|
|
7688
|
+
else if (z.clientX > de + Se - 10 || de + 10 > z.clientX) m.value.style.cursor = "w-resize";
|
|
7689
7689
|
else if (xt + z.clientY > $e + We - 10 || xt + z.clientY < $e + 5) m.value.style.cursor = "s-resize";
|
|
7690
7690
|
else {
|
|
7691
7691
|
m.value.style.cursor = "default", m.value.onmousedown = null;
|
|
@@ -7705,11 +7705,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
7705
7705
|
return t({
|
|
7706
7706
|
showLoading: S,
|
|
7707
7707
|
hideLoading: R
|
|
7708
|
-
}), (z,
|
|
7708
|
+
}), (z, de) => {
|
|
7709
7709
|
const $e = V("j-button"), Se = V("el-space"), We = V("el-step"), lt = V("el-steps"), xt = V("el-dialog");
|
|
7710
7710
|
return k(), K(xt, {
|
|
7711
7711
|
modelValue: l.value,
|
|
7712
|
-
"onUpdate:modelValue":
|
|
7712
|
+
"onUpdate:modelValue": de[0] || (de[0] = (Ze) => l.value = Ze),
|
|
7713
7713
|
class: "j-dialog",
|
|
7714
7714
|
"align-center": "",
|
|
7715
7715
|
"append-to-body": !0,
|
|
@@ -7719,7 +7719,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7719
7719
|
"modal-penetrable": !e.mask,
|
|
7720
7720
|
"close-on-click-modal": !1,
|
|
7721
7721
|
width: `${w.value || x.value}px`,
|
|
7722
|
-
style:
|
|
7722
|
+
style: ue({
|
|
7723
7723
|
position: "fixed",
|
|
7724
7724
|
left: `${C.value + p.left}px`,
|
|
7725
7725
|
top: `${y.value + p.top}px`,
|
|
@@ -7733,7 +7733,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7733
7733
|
}, [I("div", {
|
|
7734
7734
|
class: "j-dialog-header-left",
|
|
7735
7735
|
title: q(i)(e.title || ""),
|
|
7736
|
-
style:
|
|
7736
|
+
style: ue({ cursor: e.autoHeight ? "" : "move" })
|
|
7737
7737
|
}, [I("span", null, Ee(q(i)(e.title || "")), 1), e.subtitle ? (k(), L("span", gg, [(k(), K(Ja(e.subtitle())))])) : oe("", !0)], 12, pg), e.showCloseBtn ? (k(), K(Se, {
|
|
7738
7738
|
key: 0,
|
|
7739
7739
|
size: 0
|
|
@@ -7750,9 +7750,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
7750
7750
|
{ "j-dialog-window-hasBtns": e.hasBtns },
|
|
7751
7751
|
{ "j-dialog-window-hasSteps": e.isStep }
|
|
7752
7752
|
]),
|
|
7753
|
-
style:
|
|
7753
|
+
style: ue({ height: e.autoHeight ? "auto" : (b.value > 0 ? b.value : v.value) + "px" })
|
|
7754
7754
|
}, [
|
|
7755
|
-
e.isStep ? (k(), L("div", vg, [I("div", { style:
|
|
7755
|
+
e.isStep ? (k(), L("div", vg, [I("div", { style: ue({
|
|
7756
7756
|
maxWidth: `${200 * F.value.length}px`,
|
|
7757
7757
|
width: "100%"
|
|
7758
7758
|
}) }, [Q(lt, {
|
|
@@ -7987,7 +7987,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7987
7987
|
]),
|
|
7988
7988
|
I("div", {
|
|
7989
7989
|
class: "j-dialog-full-header-mid",
|
|
7990
|
-
style:
|
|
7990
|
+
style: ue({ maxWidth: `${200 * R.value.length}px` })
|
|
7991
7991
|
}, [e.isStep ? (k(), K(B, {
|
|
7992
7992
|
key: 0,
|
|
7993
7993
|
simple: "",
|
|
@@ -8250,7 +8250,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8250
8250
|
}, [
|
|
8251
8251
|
I("div", {
|
|
8252
8252
|
class: "j-drawer--body",
|
|
8253
|
-
style:
|
|
8253
|
+
style: ue({ "padding-bottom": e.showCloseBtn || e.hasSaveBtn || e.buttons.length > 0 ? "48px" : "0" })
|
|
8254
8254
|
}, [
|
|
8255
8255
|
Q(A, { style: {
|
|
8256
8256
|
position: "absolute",
|
|
@@ -8305,7 +8305,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8305
8305
|
icon: "mdi:close",
|
|
8306
8306
|
onClick: p
|
|
8307
8307
|
})])) : oe("", !0)]),
|
|
8308
|
-
e.isStep ? (k(), L("div", $g, [I("div", { style:
|
|
8308
|
+
e.isStep ? (k(), L("div", $g, [I("div", { style: ue({
|
|
8309
8309
|
maxWidth: `${200 * T.value.length}px`,
|
|
8310
8310
|
width: "100%"
|
|
8311
8311
|
}) }, [Q(W, {
|
|
@@ -8602,7 +8602,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8602
8602
|
type: l.value[_]?.color ? "primary" : "info",
|
|
8603
8603
|
effect: l.value[_]?.color ? "dark" : void 0,
|
|
8604
8604
|
closable: !e.readonly,
|
|
8605
|
-
style:
|
|
8605
|
+
style: ue(l.value[_] || {}),
|
|
8606
8606
|
size: "small",
|
|
8607
8607
|
onClose: nn((w) => d(_), ["prevent"])
|
|
8608
8608
|
}, {
|
|
@@ -8895,7 +8895,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8895
8895
|
}, [
|
|
8896
8896
|
Q(l, {
|
|
8897
8897
|
icon: "mdi:file-document-outline",
|
|
8898
|
-
style:
|
|
8898
|
+
style: ue({ color: s.color ? `var(${s.color})` : void 0 }),
|
|
8899
8899
|
size: 16
|
|
8900
8900
|
}, null, 8, ["style"]),
|
|
8901
8901
|
I("div", iv, [Q(r, {
|
|
@@ -9198,7 +9198,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
9198
9198
|
} else
|
|
9199
9199
|
w.value = En(), v.value = [];
|
|
9200
9200
|
}, { immediate: !0 });
|
|
9201
|
-
const J = D(!1), ee = D(""), Z = D(""), z = D(!1),
|
|
9201
|
+
const J = D(!1), ee = D(""), Z = D(""), z = D(!1), de = D(!1);
|
|
9202
9202
|
let $e = null;
|
|
9203
9203
|
const Se = D(Si(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), We = (ne) => {
|
|
9204
9204
|
if (ne.isPreview === !1 && !n.isUploadImg) {
|
|
@@ -9213,7 +9213,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
9213
9213
|
case "bmp":
|
|
9214
9214
|
case "jpeg":
|
|
9215
9215
|
case "svg":
|
|
9216
|
-
J.value = !0, Z.value = ne.url,
|
|
9216
|
+
J.value = !0, Z.value = ne.url, de.value = !1, z.value = !0;
|
|
9217
9217
|
break;
|
|
9218
9218
|
default:
|
|
9219
9219
|
if (n.isNotApi) {
|
|
@@ -9228,7 +9228,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
9228
9228
|
o && o("当前文件不支持预览!");
|
|
9229
9229
|
return;
|
|
9230
9230
|
}
|
|
9231
|
-
|
|
9231
|
+
de.value = !0, z.value = !0;
|
|
9232
9232
|
break;
|
|
9233
9233
|
}
|
|
9234
9234
|
Se.value = Si(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
@@ -9269,7 +9269,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
9269
9269
|
title: e.isUploadImg ? q(r)("图片列表") : q(r)("文件列表")
|
|
9270
9270
|
}, {
|
|
9271
9271
|
content: X(() => [Q(us, {
|
|
9272
|
-
style:
|
|
9272
|
+
style: ue({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
9273
9273
|
list: v.value,
|
|
9274
9274
|
"preview-file": We,
|
|
9275
9275
|
"delete-file": me,
|
|
@@ -9344,8 +9344,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
9344
9344
|
height: "100%"
|
|
9345
9345
|
},
|
|
9346
9346
|
frameborder: "0",
|
|
9347
|
-
onLoad: Ce[0] || (Ce[0] = (Le) =>
|
|
9348
|
-
}, null, 40, pv)])), [[Ke,
|
|
9347
|
+
onLoad: Ce[0] || (Ce[0] = (Le) => de.value = !1)
|
|
9348
|
+
}, null, 40, pv)])), [[Ke, de.value]]) : oe("", !0)]),
|
|
9349
9349
|
_: 1
|
|
9350
9350
|
}, 8, [
|
|
9351
9351
|
"visible",
|
|
@@ -10480,16 +10480,16 @@ var og = /* @__PURE__ */ xe({
|
|
|
10480
10480
|
}), a = H(() => ({ borderTopStyle: t.borderStyle }));
|
|
10481
10481
|
return (o, i) => (k(), L("div", {
|
|
10482
10482
|
class: Qe(`j-divider-container j-divider-${e.contentPosition}`),
|
|
10483
|
-
style:
|
|
10483
|
+
style: ue(n.value)
|
|
10484
10484
|
}, [
|
|
10485
10485
|
I("div", {
|
|
10486
10486
|
class: "j-divider-line j-divider-line-left",
|
|
10487
|
-
style:
|
|
10487
|
+
style: ue(a.value)
|
|
10488
10488
|
}, null, 4),
|
|
10489
10489
|
I("div", uy, [I("span", null, Ee(e.content || ""), 1)]),
|
|
10490
10490
|
I("div", {
|
|
10491
10491
|
class: "j-divider-line j-divider-line-right",
|
|
10492
|
-
style:
|
|
10492
|
+
style: ue(a.value)
|
|
10493
10493
|
}, null, 4)
|
|
10494
10494
|
], 6));
|
|
10495
10495
|
}
|
|
@@ -10849,7 +10849,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
10849
10849
|
});
|
|
10850
10850
|
return (o, i) => (k(), L("div", {
|
|
10851
10851
|
class: Qe(["j-title", n.value]),
|
|
10852
|
-
style:
|
|
10852
|
+
style: ue(a.value)
|
|
10853
10853
|
}, Ee(e.title), 7));
|
|
10854
10854
|
}
|
|
10855
10855
|
}), Hy = Py, Oy = Pe(Hy), Iy = { class: "j-decorated-title-wrapper1" }, Ly = { class: "j-decorated-title-wrapper1-line" }, zy = {
|
|
@@ -10903,118 +10903,118 @@ var og = /* @__PURE__ */ xe({
|
|
|
10903
10903
|
const f = V("el-divider");
|
|
10904
10904
|
return k(), L("div", {
|
|
10905
10905
|
class: Qe(["j-decorated-title", a.value]),
|
|
10906
|
-
style:
|
|
10907
|
-
}, [e.titleType === "title2" ? (k(), L(He, { key: 0 }, [I("p", { style:
|
|
10908
|
-
I("p", { style:
|
|
10906
|
+
style: ue(c.value)
|
|
10907
|
+
}, [e.titleType === "title2" ? (k(), L(He, { key: 0 }, [I("p", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5), I("p", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)], 64)) : ["title3", "title4"].includes(e.titleType || "") ? (k(), L(He, { key: 1 }, [
|
|
10908
|
+
I("p", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5),
|
|
10909
10909
|
Q(f, {
|
|
10910
10910
|
class: "m-0",
|
|
10911
|
-
style:
|
|
10911
|
+
style: ue(l.value)
|
|
10912
10912
|
}, null, 8, ["style"]),
|
|
10913
|
-
I("p", { style:
|
|
10913
|
+
I("p", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)
|
|
10914
10914
|
], 64)) : e.titleType === "title5" ? (k(), L(He, { key: 2 }, [I("div", Iy, [I("div", {
|
|
10915
10915
|
class: "j-decorated-title-wrapper1-title",
|
|
10916
|
-
style:
|
|
10916
|
+
style: ue([o.value, { backgroundColor: r.value }])
|
|
10917
10917
|
}, Ee(q(t)(e.title || "")), 5), I("div", Ly, [
|
|
10918
10918
|
I("div", {
|
|
10919
10919
|
class: "wrapper-line",
|
|
10920
|
-
style:
|
|
10920
|
+
style: ue({ borderColor: r.value })
|
|
10921
10921
|
}, null, 4),
|
|
10922
10922
|
I("div", {
|
|
10923
10923
|
class: "wrapper-triangle",
|
|
10924
|
-
style:
|
|
10924
|
+
style: ue({ backgroundColor: r.value })
|
|
10925
10925
|
}, null, 4),
|
|
10926
10926
|
I("div", {
|
|
10927
10927
|
class: "wrapper-pm wrapper-parallelogram1",
|
|
10928
|
-
style:
|
|
10928
|
+
style: ue({ backgroundColor: r.value })
|
|
10929
10929
|
}, null, 4),
|
|
10930
10930
|
I("div", {
|
|
10931
10931
|
class: "wrapper-pm wrapper-parallelogram2",
|
|
10932
|
-
style:
|
|
10932
|
+
style: ue({ backgroundColor: r.value })
|
|
10933
10933
|
}, null, 4),
|
|
10934
10934
|
I("div", {
|
|
10935
10935
|
class: "wrapper-pm wrapper-parallelogram3",
|
|
10936
|
-
style:
|
|
10936
|
+
style: ue({ backgroundColor: r.value })
|
|
10937
10937
|
}, null, 4)
|
|
10938
|
-
])]), I("p", { style:
|
|
10939
|
-
I("p", { style:
|
|
10940
|
-
I("div", Dy, [I("div", $y, [I("div", { style:
|
|
10938
|
+
])]), I("p", { style: ue([i.value, { textAlign: "left" }]) }, Ee(q(t)(e.content || "")), 5)], 64)) : e.titleType === "title6" ? (k(), L("div", zy, [
|
|
10939
|
+
I("p", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5),
|
|
10940
|
+
I("div", Dy, [I("div", $y, [I("div", { style: ue({ borderColor: r.value }) }, null, 4)]), I("div", {
|
|
10941
10941
|
class: "wrapper2-triangle",
|
|
10942
|
-
style:
|
|
10943
|
-
}, [I("span", { style:
|
|
10944
|
-
I("p", { style:
|
|
10945
|
-
])) : e.titleType === "title7" ? (k(), L("div", Fy, [I("div", Vy, [I("div", Ny, [I("div", { style:
|
|
10942
|
+
style: ue({ backgroundColor: r.value })
|
|
10943
|
+
}, [I("span", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5)], 4)]),
|
|
10944
|
+
I("p", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)
|
|
10945
|
+
])) : e.titleType === "title7" ? (k(), L("div", Fy, [I("div", Vy, [I("div", Ny, [I("div", { style: ue({ backgroundColor: r.value }) }, null, 4)]), I("div", {
|
|
10946
10946
|
class: "wrapper3-triangle",
|
|
10947
|
-
style:
|
|
10948
|
-
}, [I("span", { style:
|
|
10947
|
+
style: ue({ backgroundColor: r.value })
|
|
10948
|
+
}, [I("span", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5)], 4)]), I("p", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)])) : e.titleType === "title8" ? (k(), L("div", Wy, [I("div", Uy, [I("div", {
|
|
10949
10949
|
class: "wrapper4-bg",
|
|
10950
|
-
style:
|
|
10950
|
+
style: ue({ backgroundColor: r.value })
|
|
10951
10951
|
}, null, 4), I("div", Ky, [
|
|
10952
10952
|
I("div", {
|
|
10953
10953
|
class: "wrapper4-center-label",
|
|
10954
|
-
style:
|
|
10955
|
-
}, [I("span", { style:
|
|
10954
|
+
style: ue({ backgroundColor: r.value })
|
|
10955
|
+
}, [I("span", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5)], 4),
|
|
10956
10956
|
I("div", {
|
|
10957
10957
|
class: "wrapper4-center-triangle left-triangle",
|
|
10958
|
-
style:
|
|
10958
|
+
style: ue({ backgroundColor: r.value })
|
|
10959
10959
|
}, null, 4),
|
|
10960
10960
|
I("div", {
|
|
10961
10961
|
class: "wrapper4-center-triangle right-triangle",
|
|
10962
|
-
style:
|
|
10962
|
+
style: ue({ backgroundColor: r.value })
|
|
10963
10963
|
}, null, 4),
|
|
10964
10964
|
I("div", {
|
|
10965
10965
|
class: "wrapper4-center-border left-border",
|
|
10966
|
-
style:
|
|
10966
|
+
style: ue({ backgroundColor: r.value })
|
|
10967
10967
|
}, null, 4),
|
|
10968
10968
|
I("div", {
|
|
10969
10969
|
class: "wrapper4-center-border right-border",
|
|
10970
|
-
style:
|
|
10970
|
+
style: ue({ backgroundColor: r.value })
|
|
10971
10971
|
}, null, 4)
|
|
10972
|
-
])]), I("div", { style:
|
|
10972
|
+
])]), I("div", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)])) : e.titleType === "title9" ? (k(), L("div", Yy, [I("div", Jy, [
|
|
10973
10973
|
I("div", Gy, [
|
|
10974
10974
|
I("div", {
|
|
10975
10975
|
class: "wrapper5-triangle wrapper5-left-triangle",
|
|
10976
|
-
style:
|
|
10976
|
+
style: ue({ backgroundColor: r.value })
|
|
10977
10977
|
}, null, 4),
|
|
10978
10978
|
I("div", {
|
|
10979
10979
|
class: "wrapper5-block wrapper5-left-block",
|
|
10980
|
-
style:
|
|
10980
|
+
style: ue({ backgroundColor: r.value })
|
|
10981
10981
|
}, null, 4),
|
|
10982
10982
|
d[0] || (d[0] = I("div", { class: "wrapper5-square wrapper5-left-square" }, null, -1)),
|
|
10983
10983
|
I("div", {
|
|
10984
10984
|
class: "wrapper5-line1 wrapper5-left-line1",
|
|
10985
|
-
style:
|
|
10985
|
+
style: ue({ borderColor: r.value })
|
|
10986
10986
|
}, null, 4),
|
|
10987
10987
|
I("div", {
|
|
10988
10988
|
class: "wrapper5-line2 wrapper5-left-line2",
|
|
10989
|
-
style:
|
|
10989
|
+
style: ue({ borderColor: r.value })
|
|
10990
10990
|
}, null, 4)
|
|
10991
10991
|
]),
|
|
10992
10992
|
I("div", {
|
|
10993
10993
|
class: "wrapper5-center",
|
|
10994
|
-
style:
|
|
10995
|
-
}, [I("span", { style:
|
|
10994
|
+
style: ue([{ backgroundColor: r.value }])
|
|
10995
|
+
}, [I("span", { style: ue(o.value) }, Ee(q(t)(e.title || "")), 5)], 4),
|
|
10996
10996
|
I("div", qy, [
|
|
10997
10997
|
I("div", {
|
|
10998
10998
|
class: "wrapper5-triangle wrapper5-right-triangle",
|
|
10999
|
-
style:
|
|
10999
|
+
style: ue({ backgroundColor: r.value })
|
|
11000
11000
|
}, null, 4),
|
|
11001
11001
|
I("div", {
|
|
11002
11002
|
class: "wrapper5-block wrapper5-right-block",
|
|
11003
|
-
style:
|
|
11003
|
+
style: ue({ backgroundColor: r.value })
|
|
11004
11004
|
}, null, 4),
|
|
11005
11005
|
d[1] || (d[1] = I("div", { class: "wrapper5-square wrapper5-right-square" }, null, -1)),
|
|
11006
11006
|
I("div", {
|
|
11007
11007
|
class: "wrapper5-line1 wrapper5-right-line1",
|
|
11008
|
-
style:
|
|
11008
|
+
style: ue({ borderColor: r.value })
|
|
11009
11009
|
}, null, 4),
|
|
11010
11010
|
I("div", {
|
|
11011
11011
|
class: "wrapper5-line2 wrapper5-right-line2",
|
|
11012
|
-
style:
|
|
11012
|
+
style: ue({ borderColor: r.value })
|
|
11013
11013
|
}, null, 4)
|
|
11014
11014
|
])
|
|
11015
|
-
]), I("div", { style:
|
|
11015
|
+
]), I("div", { style: ue(i.value) }, Ee(q(t)(e.content || "")), 5)])) : (k(), L("span", {
|
|
11016
11016
|
key: 7,
|
|
11017
|
-
style:
|
|
11017
|
+
style: ue(o.value)
|
|
11018
11018
|
}, Ee(q(t)(e.title || "")), 5))], 6);
|
|
11019
11019
|
};
|
|
11020
11020
|
}
|
|
@@ -11292,7 +11292,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11292
11292
|
ref_key: "codeWraperRef",
|
|
11293
11293
|
ref: i,
|
|
11294
11294
|
class: "j-code-mirror",
|
|
11295
|
-
style:
|
|
11295
|
+
style: ue({ height: e.height ? `${e.height}px` : "" })
|
|
11296
11296
|
}, null, 4));
|
|
11297
11297
|
}
|
|
11298
11298
|
}), lm = im, rm = Pe(lm), sm = /* @__PURE__ */ xe({
|
|
@@ -11324,7 +11324,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11324
11324
|
return k(), L("div", {
|
|
11325
11325
|
ref_key: "actionRef",
|
|
11326
11326
|
ref: a,
|
|
11327
|
-
style:
|
|
11327
|
+
style: ue(i.value),
|
|
11328
11328
|
class: "j-slider-captcha-action",
|
|
11329
11329
|
name: "captcha-action"
|
|
11330
11330
|
}, [e.isPassing ? (k(), K(s, {
|
|
@@ -11366,7 +11366,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11366
11366
|
}), (l, r) => (k(), L("div", {
|
|
11367
11367
|
ref_key: "barRef",
|
|
11368
11368
|
ref: a,
|
|
11369
|
-
style:
|
|
11369
|
+
style: ue(i.value)
|
|
11370
11370
|
}, null, 4));
|
|
11371
11371
|
}
|
|
11372
11372
|
}), dm = um, fm = /* @__PURE__ */ xe({
|
|
@@ -11403,9 +11403,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
11403
11403
|
ref_key: "contentRef",
|
|
11404
11404
|
ref: a,
|
|
11405
11405
|
class: Qe([{ success: e.isPassing }, "j-slider-captcha-content"]),
|
|
11406
|
-
style:
|
|
11406
|
+
style: ue(o.value)
|
|
11407
11407
|
}, [I("div", {
|
|
11408
|
-
style:
|
|
11408
|
+
style: ue(i.value),
|
|
11409
11409
|
class: "j-spine-text"
|
|
11410
11410
|
}, Ee(e.isPassing ? "验证成功" : "请按住滑块拖动"), 5)], 6));
|
|
11411
11411
|
}
|
|
@@ -11501,7 +11501,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11501
11501
|
ref_key: "wrapperRef",
|
|
11502
11502
|
ref: l,
|
|
11503
11503
|
class: Qe(["j-slider-captcha slider-border", n.class]),
|
|
11504
|
-
style:
|
|
11504
|
+
style: ue([{ "background-color": "var(--j-color-bg)" }, e.wrapperStyle]),
|
|
11505
11505
|
onMouseleave: p,
|
|
11506
11506
|
onMousemove: h,
|
|
11507
11507
|
onMouseup: p,
|
|
@@ -11614,7 +11614,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11614
11614
|
active: e.item.value === q(a),
|
|
11615
11615
|
"p-active": e.parentActives.includes(e.item.value)
|
|
11616
11616
|
}]),
|
|
11617
|
-
style:
|
|
11617
|
+
style: ue({ "padding-left": `${e.item.indent * 24 + 16}px` })
|
|
11618
11618
|
}, [
|
|
11619
11619
|
e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
|
|
11620
11620
|
key: 0,
|
|
@@ -11642,12 +11642,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
11642
11642
|
active: e.item.value === q(a),
|
|
11643
11643
|
"p-active": e.parentActives.includes(e.item.value)
|
|
11644
11644
|
}]),
|
|
11645
|
-
style:
|
|
11645
|
+
style: ue({ "padding-left": `${e.item.indent * 34 + 16}px` })
|
|
11646
11646
|
}, [
|
|
11647
11647
|
e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
|
|
11648
11648
|
key: 0,
|
|
11649
11649
|
icon: e.item.icon,
|
|
11650
|
-
style:
|
|
11650
|
+
style: ue({
|
|
11651
11651
|
"margin-right": e.item.label && (e.isSub || !e.isVertical) ? "8px" : 0,
|
|
11652
11652
|
"background-color": e.isVertical ? e.item.color : "transparent"
|
|
11653
11653
|
}),
|
|
@@ -11675,13 +11675,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
11675
11675
|
active: e.item.value === q(a),
|
|
11676
11676
|
"p-active": e.parentActives.includes(e.item.value)
|
|
11677
11677
|
}]),
|
|
11678
|
-
style:
|
|
11678
|
+
style: ue({ "padding-left": `${e.item.indent * 24 + 16}px` })
|
|
11679
11679
|
}, [
|
|
11680
11680
|
e.item.icon && (e.showChildIcon || !e.isSub && e.item.indent === 0) ? (k(), K(c, {
|
|
11681
11681
|
key: 0,
|
|
11682
11682
|
icon: e.item.icon,
|
|
11683
11683
|
class: "j-menu-item-icon",
|
|
11684
|
-
style:
|
|
11684
|
+
style: ue({
|
|
11685
11685
|
"margin-right": e.item.label && (e.isSub || !e.isVertical) ? "8px" : 0,
|
|
11686
11686
|
"background-color": e.isVertical ? e.item.color : "transparent"
|
|
11687
11687
|
}),
|
|
@@ -12873,21 +12873,21 @@ var og = /* @__PURE__ */ xe({
|
|
|
12873
12873
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
12874
12874
|
const r = D(), c = D(), s = D([]), d = D(0), f = D(1), u = D(i.pageSize || 100), h = D(0), p = H(() => h.value > 0), g = D([]), m = D([]), _ = D(!1), w = H(() => i.batchButtons && i.batchButtons.length > 0), b = H(() => i.isMultiple && i.rowKey ? g.value.length : m.value.length), v = H(() => b.value > 0), C = H(() => w.value && v.value && i.isMultiple || _.value), y = H(() => !!i.loadData), x = H(() => !!i.loadData && i.isPage && !C.value), S = H(() => i.viewMode === "card"), R = H(() => _.value ? m.value : s.value);
|
|
12875
12875
|
w.value && !i.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
|
|
12876
|
-
const T = (
|
|
12877
|
-
const
|
|
12876
|
+
const T = (se) => i.rowKey ? i.rowKey.split(",").map((ge) => se[ge.trim()]).join("::") : "", j = (se) => {
|
|
12877
|
+
const ge = new Map(se.map((be) => [T(be), be])), ze = new Set(g.value), Ie = new Map(m.value.map((be) => [T(be), be]));
|
|
12878
12878
|
s.value.forEach((be) => {
|
|
12879
12879
|
const Re = T(be);
|
|
12880
|
-
Re && (
|
|
12880
|
+
Re && (ge.has(Re) ? (ze.add(Re), Ie.set(Re, ge.get(Re))) : (ze.delete(Re), Ie.delete(Re)));
|
|
12881
12881
|
}), g.value = Array.from(ze), m.value = Array.from(Ie.values());
|
|
12882
|
-
}, P = (
|
|
12883
|
-
m.value =
|
|
12884
|
-
}, A = (
|
|
12885
|
-
if (!
|
|
12882
|
+
}, P = (se) => {
|
|
12883
|
+
m.value = se, g.value = i.rowKey ? se.map(T).filter(Boolean) : [];
|
|
12884
|
+
}, A = (se, ge) => {
|
|
12885
|
+
if (!ge || ge.length === 0) return se.filter((be) => be.config?.display !== !1).map((be) => be.children && be.children.length > 0 ? {
|
|
12886
12886
|
...be,
|
|
12887
12887
|
children: A(be.children)
|
|
12888
12888
|
} : be);
|
|
12889
|
-
const ze = new Map(
|
|
12890
|
-
return
|
|
12889
|
+
const ze = new Map(se.map((be) => [be.id, be])), Ie = [];
|
|
12890
|
+
return ge.forEach((be) => {
|
|
12891
12891
|
const Re = ze.get(be.id);
|
|
12892
12892
|
if (Re) {
|
|
12893
12893
|
if (be.display) {
|
|
@@ -12899,7 +12899,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
12899
12899
|
}
|
|
12900
12900
|
ze.delete(be.id);
|
|
12901
12901
|
}
|
|
12902
|
-
}),
|
|
12902
|
+
}), se.forEach((be) => {
|
|
12903
12903
|
if (ze.has(be.id) && be.config?.display !== !1) {
|
|
12904
12904
|
let Re = be;
|
|
12905
12905
|
be.children && be.children.length > 0 && (Re = {
|
|
@@ -12908,24 +12908,24 @@ var og = /* @__PURE__ */ xe({
|
|
|
12908
12908
|
}), Ie.push(Re);
|
|
12909
12909
|
}
|
|
12910
12910
|
}), Ie;
|
|
12911
|
-
}, B = H(() => A(i.columns, Oe.value)), M = H(() => rh(i.columns, (
|
|
12911
|
+
}, B = H(() => A(i.columns, Oe.value)), M = H(() => rh(i.columns, (se) => se.config.label)), E = D(""), W = H(() => M.value.some((se) => se.config?.filter?.isSearchKeyword)), F = D(), ie = D(!0), me = D([]), J = H(() => ie.value ? "搜索全部" : `搜索范围:${M.value.filter((se) => me.value.includes(se.id)).map((se) => se.config?.label).join("、")}`), ee = () => {
|
|
12912
12912
|
F.value.init();
|
|
12913
|
-
}, Z = D(), z = D(!1),
|
|
12914
|
-
const
|
|
12915
|
-
return
|
|
12913
|
+
}, Z = D(), z = D(!1), de = D(!1), $e = D(!1), Se = D([]), We = D("and"), lt = D(), xt = D(!1), Ze = D([]), ne = D(), Ce = (se) => {
|
|
12914
|
+
const ge = new Map(M.value.map((ze) => [ze.id, ze.config?.label || ze.id]));
|
|
12915
|
+
return se.split(",").map((ze) => ze.trim()).filter(Boolean).map((ze) => {
|
|
12916
12916
|
const [Ie, be] = ze.split(/\s+/), Re = (be || "ASC").toUpperCase() === "DESC" ? "DESC" : "ASC";
|
|
12917
12917
|
return {
|
|
12918
|
-
label:
|
|
12918
|
+
label: ge.get(Ie) || Ie,
|
|
12919
12919
|
value: Ie,
|
|
12920
12920
|
sord: Re
|
|
12921
12921
|
};
|
|
12922
12922
|
}).filter((ze) => ze.value);
|
|
12923
12923
|
};
|
|
12924
|
-
st([() => i.sort, () => M.value], ([
|
|
12925
|
-
const
|
|
12926
|
-
if (
|
|
12927
|
-
if (
|
|
12928
|
-
Ze.value = Ce(
|
|
12924
|
+
st([() => i.sort, () => M.value], ([se]) => {
|
|
12925
|
+
const ge = (se || "").trim();
|
|
12926
|
+
if (ge) {
|
|
12927
|
+
if (ge !== ne.value) {
|
|
12928
|
+
Ze.value = Ce(ge), ne.value = ge;
|
|
12929
12929
|
return;
|
|
12930
12930
|
}
|
|
12931
12931
|
const ze = new Map(M.value.map((Ie) => [Ie.id, Ie.config?.label || Ie.id]));
|
|
@@ -12939,21 +12939,22 @@ var og = /* @__PURE__ */ xe({
|
|
|
12939
12939
|
}, { immediate: !0 });
|
|
12940
12940
|
const ct = () => {
|
|
12941
12941
|
lt.value.init(Ze.value);
|
|
12942
|
-
}, _t = (
|
|
12943
|
-
Ze.value =
|
|
12942
|
+
}, _t = (se) => {
|
|
12943
|
+
Ze.value = se, xt.value = !1, pe();
|
|
12944
12944
|
}, N = () => {
|
|
12945
12945
|
Ze.value = [], pe();
|
|
12946
12946
|
}, ke = D(), Ae = D(!1), Oe = D(), Ke = H(() => Oe.value != null), Le = () => {
|
|
12947
12947
|
ke.value?.init();
|
|
12948
|
-
}, Ye = (
|
|
12949
|
-
Oe.value =
|
|
12948
|
+
}, Ye = (se) => {
|
|
12949
|
+
Oe.value = se, Ae.value = !1;
|
|
12950
12950
|
}, dt = D(!1), Jt = () => {
|
|
12951
12951
|
dt.value = !dt.value;
|
|
12952
12952
|
}, It = () => {
|
|
12953
|
+
const se = m.value, ge = g.value;
|
|
12953
12954
|
g.value = [], m.value = [], r.value && (r.value.setSelection?.([]), _.value && (_.value = !1, r.value.setRecords(s.value, { skipSelectState: !0 }))), c.value?.clearSelection?.(), l("select", {
|
|
12954
|
-
selections:
|
|
12955
|
-
keys:
|
|
12956
|
-
record:
|
|
12955
|
+
selections: se,
|
|
12956
|
+
keys: ge,
|
|
12957
|
+
record: null,
|
|
12957
12958
|
checked: !1,
|
|
12958
12959
|
isMultiple: i.isMultiple,
|
|
12959
12960
|
isInit: !1
|
|
@@ -12978,14 +12979,14 @@ var og = /* @__PURE__ */ xe({
|
|
|
12978
12979
|
}, pn = async () => {
|
|
12979
12980
|
if (_.value = !_.value, !S.value) {
|
|
12980
12981
|
if (_.value) {
|
|
12981
|
-
const
|
|
12982
|
-
|
|
12982
|
+
const se = await un();
|
|
12983
|
+
se && (m.value = se), r.value?.setRecords(m.value, { skipSelectState: !0 });
|
|
12983
12984
|
} else r.value?.setRecords(s.value, { skipSelectState: !0 });
|
|
12984
12985
|
r.value?.setSelection?.(m.value);
|
|
12985
12986
|
}
|
|
12986
12987
|
}, Et = H(() => {
|
|
12987
12988
|
if (v.value && i.isMultiple) {
|
|
12988
|
-
const
|
|
12989
|
+
const se = [
|
|
12989
12990
|
{
|
|
12990
12991
|
id: "selection_count",
|
|
12991
12992
|
label: `已选${b.value}条`,
|
|
@@ -13003,7 +13004,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13003
13004
|
config: { type: "text" },
|
|
13004
13005
|
click: It
|
|
13005
13006
|
}
|
|
13006
|
-
],
|
|
13007
|
+
], ge = i.batchButtons.map((ze) => ({
|
|
13007
13008
|
...ze,
|
|
13008
13009
|
click: () => {
|
|
13009
13010
|
ze.click && ze.click({
|
|
@@ -13012,10 +13013,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
13012
13013
|
});
|
|
13013
13014
|
}
|
|
13014
13015
|
}));
|
|
13015
|
-
return [...
|
|
13016
|
+
return [...se, ...ge];
|
|
13016
13017
|
}
|
|
13017
13018
|
return i.buttons;
|
|
13018
|
-
}), Mt = H(() => Et.value.filter((
|
|
13019
|
+
}), Mt = H(() => Et.value.filter((se) => se.config?.display !== !1)), wt = D(null), Ut = D(0), on = () => {
|
|
13019
13020
|
Ut.value = wt.value?.clientWidth || 0;
|
|
13020
13021
|
};
|
|
13021
13022
|
let wn;
|
|
@@ -13031,11 +13032,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
13031
13032
|
Ht(on);
|
|
13032
13033
|
});
|
|
13033
13034
|
const dn = H(() => {
|
|
13034
|
-
const
|
|
13035
|
-
if (
|
|
13036
|
-
const
|
|
13037
|
-
if (
|
|
13038
|
-
const ze = Math.max(0,
|
|
13035
|
+
const se = Mt.value;
|
|
13036
|
+
if (se.length === 0) return [];
|
|
13037
|
+
const ge = Ut.value;
|
|
13038
|
+
if (ge <= 0) return se;
|
|
13039
|
+
const ze = Math.max(0, ge - 4), Ie = (Nt, vn) => Nt.groupId || `__auto_${vn}`, be = (Nt) => {
|
|
13039
13040
|
if (Nt.config?.notLabel === !0 || !Nt.label) return 28;
|
|
13040
13041
|
const vn = 24, en = On(Nt.label || "") || 0, qt = Nt.config?.icon ? 18 : 0;
|
|
13041
13042
|
return Math.ceil(en + vn + qt + 2);
|
|
@@ -13046,7 +13047,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13046
13047
|
const Oo = Ie(qt, so);
|
|
13047
13048
|
en !== null && (vn += Oo === en ? -1 : 8), vn += be(qt), en = Oo;
|
|
13048
13049
|
}), vn;
|
|
13049
|
-
})(
|
|
13050
|
+
})(se) <= ze) return se;
|
|
13050
13051
|
const Gt = {
|
|
13051
13052
|
id: "__table_panel_more__",
|
|
13052
13053
|
label: "",
|
|
@@ -13057,17 +13058,17 @@ var og = /* @__PURE__ */ xe({
|
|
|
13057
13058
|
children: []
|
|
13058
13059
|
}, Qt = 28, da = [];
|
|
13059
13060
|
let Sn = 0, Pa = null;
|
|
13060
|
-
for (let Nt = 0; Nt <
|
|
13061
|
-
const vn =
|
|
13061
|
+
for (let Nt = 0; Nt < se.length; Nt++) {
|
|
13062
|
+
const vn = se[Nt], en = Ie(vn, Nt);
|
|
13062
13063
|
let qt = Sn;
|
|
13063
13064
|
Pa !== null && (qt += en === Pa ? -1 : 8), qt += be(vn);
|
|
13064
|
-
const so =
|
|
13065
|
+
const so = se.length - (Nt + 1) > 0 ? (qt > 0 ? 8 : 0) + Qt : 0;
|
|
13065
13066
|
if (qt + so <= ze)
|
|
13066
13067
|
da.push(vn), Sn = qt, Pa = en;
|
|
13067
13068
|
else break;
|
|
13068
13069
|
}
|
|
13069
|
-
const Ha =
|
|
13070
|
-
if (Ha.length === 0) return
|
|
13070
|
+
const Ha = se.slice(da.length);
|
|
13071
|
+
if (Ha.length === 0) return se;
|
|
13071
13072
|
const at = {
|
|
13072
13073
|
...Gt,
|
|
13073
13074
|
children: Ha
|
|
@@ -13075,10 +13076,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
13075
13076
|
return da.length === 0 ? [at] : [...da, at];
|
|
13076
13077
|
});
|
|
13077
13078
|
let Xn;
|
|
13078
|
-
const G = async (
|
|
13079
|
+
const G = async (se, ge) => {
|
|
13079
13080
|
h.value++;
|
|
13080
13081
|
const ze = {};
|
|
13081
|
-
|
|
13082
|
+
se && (Xn = se), Xn && (ze.query = Xn);
|
|
13082
13083
|
try {
|
|
13083
13084
|
const Ie = {};
|
|
13084
13085
|
Ie.rel = We.value, Ie.cond = (Z.value?.getSearchFields?.() || Se.value).filter((Re) => Re.value !== void 0 && Re.value !== null && Re.value !== "" || ["empty", "not_empty"].includes(Re.method)).map((Re) => ({
|
|
@@ -13098,10 +13099,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
13098
13099
|
page: f.value,
|
|
13099
13100
|
sort: be || i.sort || i.rowKey
|
|
13100
13101
|
};
|
|
13101
|
-
const Re = await i.loadData(ze,
|
|
13102
|
+
const Re = await i.loadData(ze, ge) || {};
|
|
13102
13103
|
s.value = Re.rows || [], d.value = Re.records || 0;
|
|
13103
13104
|
} else
|
|
13104
|
-
ze.sort = be, s.value = await i.loadData(ze,
|
|
13105
|
+
ze.sort = be, s.value = await i.loadData(ze, ge) || [], d.value = s.value.length;
|
|
13105
13106
|
r.value?.setRecords(R.value), w.value ? (g.value = [], m.value = [], _.value = !1, c.value?.clearSelection?.()) : i.rowKey && m.value.length > 0 && (r.value?.setSelection?.(m.value), c.value?.selections && (c.value.selections.value = m.value.map((Re) => T(Re)).filter(Boolean)));
|
|
13106
13107
|
} else
|
|
13107
13108
|
s.value = i.modelValue || [], d.value = s.value.length, r.value?.setRecords(R.value);
|
|
@@ -13111,89 +13112,89 @@ var og = /* @__PURE__ */ xe({
|
|
|
13111
13112
|
};
|
|
13112
13113
|
st(() => i.modelValue, async () => {
|
|
13113
13114
|
await G();
|
|
13114
|
-
}), st(() => S.value, async (
|
|
13115
|
-
if (await Ht(), !
|
|
13115
|
+
}), st(() => S.value, async (se) => {
|
|
13116
|
+
if (await Ht(), !se) {
|
|
13116
13117
|
r.value?.setSelection?.(m.value);
|
|
13117
13118
|
return;
|
|
13118
13119
|
}
|
|
13119
|
-
c.value?.selections && (c.value.selections.value = m.value.map((
|
|
13120
|
+
c.value?.selections && (c.value.selections.value = m.value.map((ge) => T(ge)).filter(Boolean));
|
|
13120
13121
|
});
|
|
13121
13122
|
const pe = async () => {
|
|
13122
13123
|
i.loadData && (f.value = 1, await G());
|
|
13123
|
-
}, re = ({ rows:
|
|
13124
|
-
u.value =
|
|
13125
|
-
}, he = (
|
|
13124
|
+
}, re = ({ rows: se, page: ge }) => {
|
|
13125
|
+
u.value = se, f.value = ge, G();
|
|
13126
|
+
}, he = (se) => {
|
|
13126
13127
|
re({
|
|
13127
13128
|
rows: q(u),
|
|
13128
|
-
page:
|
|
13129
|
+
page: se
|
|
13129
13130
|
});
|
|
13130
|
-
}, _e = (
|
|
13131
|
+
}, _e = (se) => {
|
|
13131
13132
|
re({
|
|
13132
|
-
rows:
|
|
13133
|
+
rows: se,
|
|
13133
13134
|
page: 1
|
|
13134
13135
|
});
|
|
13135
|
-
}, Be = async (
|
|
13136
|
-
m.value = [], g.value = [], _.value = !1, f.value = 1, Xn = void 0, await G({},
|
|
13137
|
-
}, Ne = async (
|
|
13138
|
-
m.value = [], _.value = !1, await G(
|
|
13136
|
+
}, Be = async (se = !1) => {
|
|
13137
|
+
m.value = [], g.value = [], _.value = !1, f.value = 1, Xn = void 0, await G({}, se);
|
|
13138
|
+
}, Ne = async (se) => {
|
|
13139
|
+
m.value = [], _.value = !1, await G(se);
|
|
13139
13140
|
}, pt = async () => {
|
|
13140
13141
|
await Be(!0);
|
|
13141
|
-
}, Kt = (
|
|
13142
|
-
l("ready",
|
|
13143
|
-
}, St = ({ selections:
|
|
13142
|
+
}, Kt = (se) => {
|
|
13143
|
+
l("ready", se);
|
|
13144
|
+
}, St = ({ selections: se, record: ge, checked: ze, isMultiple: Ie, isInit: be }) => {
|
|
13144
13145
|
let Re = [];
|
|
13145
13146
|
if (!i.isMultiple) {
|
|
13146
|
-
P(
|
|
13147
|
-
selections:
|
|
13147
|
+
P(se), l("select", {
|
|
13148
|
+
selections: se,
|
|
13148
13149
|
keys: g.value,
|
|
13149
|
-
record:
|
|
13150
|
+
record: ge,
|
|
13150
13151
|
checked: ze,
|
|
13151
13152
|
isMultiple: Ie,
|
|
13152
13153
|
isInit: be
|
|
13153
13154
|
});
|
|
13154
13155
|
return;
|
|
13155
13156
|
}
|
|
13156
|
-
w.value ? (Re =
|
|
13157
|
+
w.value ? (Re = se, P(se)) : i.rowKey ? (j(se), Re = m.value) : (Re = se, P(se)), l("select", {
|
|
13157
13158
|
selections: Re,
|
|
13158
13159
|
keys: g.value,
|
|
13159
|
-
record:
|
|
13160
|
+
record: ge,
|
|
13160
13161
|
checked: ze,
|
|
13161
13162
|
isMultiple: Ie,
|
|
13162
13163
|
isInit: be
|
|
13163
13164
|
}), _.value && Re.length === 0 ? (_.value = !1, r.value && r.value.setRecords(s.value, { skipSelectState: !0 })) : _.value && Re.length > 0 && r.value && (r.value.setRecords(Re, { skipSelectState: !0 }), r.value.setSelection?.(Re));
|
|
13164
|
-
}, zn = (
|
|
13165
|
-
i.isMultiple && i.rowKey && !w.value ? j(
|
|
13166
|
-
}, ra = (
|
|
13167
|
-
P([
|
|
13168
|
-
selections: [
|
|
13165
|
+
}, zn = (se) => {
|
|
13166
|
+
i.isMultiple && i.rowKey && !w.value ? j(se) : P(se);
|
|
13167
|
+
}, ra = (se) => {
|
|
13168
|
+
P([se]), l("select", {
|
|
13169
|
+
selections: [se],
|
|
13169
13170
|
keys: g.value,
|
|
13170
|
-
record:
|
|
13171
|
+
record: se,
|
|
13171
13172
|
checked: !0,
|
|
13172
13173
|
isMultiple: !1,
|
|
13173
13174
|
isInit: !1
|
|
13174
13175
|
});
|
|
13175
13176
|
}, sa = () => {
|
|
13176
|
-
const
|
|
13177
|
-
if (
|
|
13178
|
-
if (!i.rowKey ||
|
|
13179
|
-
const ze = new Map(
|
|
13177
|
+
const se = m.value || [], ge = !S.value && r.value?.getSelection?.() || [];
|
|
13178
|
+
if (ge.length === 0) return se;
|
|
13179
|
+
if (!i.rowKey || se.length === 0) return ge;
|
|
13180
|
+
const ze = new Map(ge.map((be) => [T(be), be])), Ie = se.map((be) => ze.get(T(be)) || be);
|
|
13180
13181
|
return m.value = Ie, Ie;
|
|
13181
|
-
}, ro = (
|
|
13182
|
-
if (P(
|
|
13183
|
-
c.value?.selections && (c.value.selections.value = (
|
|
13182
|
+
}, ro = (se) => {
|
|
13183
|
+
if (P(se || []), S.value) {
|
|
13184
|
+
c.value?.selections && (c.value.selections.value = (se || []).map((ge) => T(ge)).filter(Boolean));
|
|
13184
13185
|
return;
|
|
13185
13186
|
}
|
|
13186
|
-
r.value?.setSelection?.(
|
|
13187
|
-
}, ca = (
|
|
13187
|
+
r.value?.setSelection?.(se);
|
|
13188
|
+
}, ca = (se) => {
|
|
13188
13189
|
if (!i.rowKey) return;
|
|
13189
|
-
const
|
|
13190
|
-
g.value =
|
|
13190
|
+
const ge = (se || []).map((be) => String(be)), ze = new Set(ge);
|
|
13191
|
+
g.value = ge;
|
|
13191
13192
|
const Ie = new Map(m.value.filter((be) => ze.has(T(be))).map((be) => [T(be), be]));
|
|
13192
13193
|
if (s.value.forEach((be) => {
|
|
13193
13194
|
const Re = T(be);
|
|
13194
13195
|
ze.has(Re) && Ie.set(Re, be);
|
|
13195
13196
|
}), m.value = Array.from(Ie.values()), S.value) {
|
|
13196
|
-
c.value?.selections && (c.value.selections.value =
|
|
13197
|
+
c.value?.selections && (c.value.selections.value = ge);
|
|
13197
13198
|
return;
|
|
13198
13199
|
}
|
|
13199
13200
|
r.value?.setSelection?.(m.value);
|
|
@@ -13202,13 +13203,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
13202
13203
|
200,
|
|
13203
13204
|
500,
|
|
13204
13205
|
1e3
|
|
13205
|
-
]), ua = H(() => !!i.rowKey && !i.isMultiple), Ho = H(() => !!i.rowKey && i.isMultiple), bl = ({ buttons:
|
|
13206
|
+
]), ua = H(() => !!i.rowKey && !i.isMultiple), Ho = H(() => !!i.rowKey && i.isMultiple), bl = ({ buttons: se, row: ge }) => {
|
|
13206
13207
|
if (!i.actionFilter) return;
|
|
13207
|
-
const ze = s.value.findIndex((Ie) => T(Ie) === T(
|
|
13208
|
-
|
|
13208
|
+
const ze = s.value.findIndex((Ie) => T(Ie) === T(ge));
|
|
13209
|
+
se.forEach((Ie) => {
|
|
13209
13210
|
const be = i.actionFilter?.({
|
|
13210
13211
|
action: Ie,
|
|
13211
|
-
record:
|
|
13212
|
+
record: ge,
|
|
13212
13213
|
recordIndex: ze,
|
|
13213
13214
|
col: -1,
|
|
13214
13215
|
row: ze,
|
|
@@ -13220,9 +13221,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13220
13221
|
}
|
|
13221
13222
|
be && typeof be == "object" && (be.display !== void 0 && (Ie.config = Ie.config || {}, Ie.config.display = be.display), be.disabled !== void 0 && (Ie.config = Ie.config || {}, Ie.config.disabled = be.disabled));
|
|
13222
13223
|
});
|
|
13223
|
-
}, xi = ({ selections:
|
|
13224
|
+
}, xi = ({ selections: se, rows: ge }) => {
|
|
13224
13225
|
if (!i.isMultiple) {
|
|
13225
|
-
const Ie =
|
|
13226
|
+
const Ie = ge[0], be = Ie ? [Ie] : [];
|
|
13226
13227
|
P(be), l("select", {
|
|
13227
13228
|
selections: be,
|
|
13228
13229
|
keys: g.value,
|
|
@@ -13235,9 +13236,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13235
13236
|
}
|
|
13236
13237
|
let ze = [];
|
|
13237
13238
|
if (w.value || !i.rowKey)
|
|
13238
|
-
ze =
|
|
13239
|
+
ze = ge, P(ge);
|
|
13239
13240
|
else {
|
|
13240
|
-
const Ie = new Set(
|
|
13241
|
+
const Ie = new Set(se), be = new Set(g.value), Re = new Map(m.value.map((Gt) => [T(Gt), Gt]));
|
|
13241
13242
|
s.value.forEach((Gt) => {
|
|
13242
13243
|
const Qt = T(Gt);
|
|
13243
13244
|
Qt && (Ie.has(Qt) ? (be.add(Qt), Re.set(Qt, Gt)) : (be.delete(Qt), Re.delete(Qt)));
|
|
@@ -13246,7 +13247,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13246
13247
|
l("select", {
|
|
13247
13248
|
selections: ze,
|
|
13248
13249
|
keys: g.value,
|
|
13249
|
-
record:
|
|
13250
|
+
record: ge[0] || {},
|
|
13250
13251
|
checked: ze.length > 0,
|
|
13251
13252
|
isMultiple: !0,
|
|
13252
13253
|
isInit: !1
|
|
@@ -13264,7 +13265,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13264
13265
|
It();
|
|
13265
13266
|
},
|
|
13266
13267
|
getTableRef: Yt
|
|
13267
|
-
}), (
|
|
13268
|
+
}), (se, ge) => {
|
|
13268
13269
|
const ze = V("j-buttons"), Ie = V("j-icon"), be = V("el-popover"), Re = V("el-tooltip"), Gt = V("el-input"), Qt = V("j-button"), da = V("el-pagination"), Sn = V("j-card-list"), Pa = V("j-table"), Ha = xo("loading");
|
|
13269
13270
|
return k(), L("div", { class: Qe(["j-table-panel-wrapper", {
|
|
13270
13271
|
fullscreen: dt.value,
|
|
@@ -13276,7 +13277,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13276
13277
|
}, [Q(ze, { list: dn.value }, null, 8, ["list"])], 512), I("div", cb, [
|
|
13277
13278
|
y.value && W.value && !C.value ? (k(), L("div", ub, [Q(Gt, {
|
|
13278
13279
|
modelValue: E.value,
|
|
13279
|
-
"onUpdate:modelValue":
|
|
13280
|
+
"onUpdate:modelValue": ge[2] || (ge[2] = (at) => E.value = at),
|
|
13280
13281
|
modelModifiers: { trim: !0 },
|
|
13281
13282
|
placeholder: q(a)("搜索数据"),
|
|
13282
13283
|
clearable: "",
|
|
@@ -13306,9 +13307,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13306
13307
|
ref_key: "keywordPanelRef",
|
|
13307
13308
|
ref: F,
|
|
13308
13309
|
"check-all": ie.value,
|
|
13309
|
-
"onUpdate:checkAll":
|
|
13310
|
+
"onUpdate:checkAll": ge[0] || (ge[0] = (at) => ie.value = at),
|
|
13310
13311
|
"check-fields": me.value,
|
|
13311
|
-
"onUpdate:checkFields":
|
|
13312
|
+
"onUpdate:checkFields": ge[1] || (ge[1] = (at) => me.value = at),
|
|
13312
13313
|
columns: M.value
|
|
13313
13314
|
}, null, 8, [
|
|
13314
13315
|
"check-all",
|
|
@@ -13323,8 +13324,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
13323
13324
|
}, 8, ["modelValue", "placeholder"])])) : oe("", !0),
|
|
13324
13325
|
y.value && e.showFilterButton && !z.value && !C.value ? (k(), K(be, {
|
|
13325
13326
|
key: 1,
|
|
13326
|
-
visible:
|
|
13327
|
-
"onUpdate:visible":
|
|
13327
|
+
visible: de.value,
|
|
13328
|
+
"onUpdate:visible": ge[6] || (ge[6] = (at) => de.value = at),
|
|
13328
13329
|
placement: "bottom",
|
|
13329
13330
|
"popper-style": "padding: 0",
|
|
13330
13331
|
width: 664,
|
|
@@ -13342,14 +13343,14 @@ var og = /* @__PURE__ */ xe({
|
|
|
13342
13343
|
ref_key: "filterPanelRef",
|
|
13343
13344
|
ref: Z,
|
|
13344
13345
|
"is-pin": z.value,
|
|
13345
|
-
"onUpdate:isPin":
|
|
13346
|
+
"onUpdate:isPin": ge[3] || (ge[3] = (at) => z.value = at),
|
|
13346
13347
|
relation: We.value,
|
|
13347
|
-
"onUpdate:relation":
|
|
13348
|
+
"onUpdate:relation": ge[4] || (ge[4] = (at) => We.value = at),
|
|
13348
13349
|
"search-list": e.searchList,
|
|
13349
13350
|
"search-field-list": Se.value,
|
|
13350
13351
|
columns: M.value,
|
|
13351
13352
|
onFilter: pe,
|
|
13352
|
-
onClose:
|
|
13353
|
+
onClose: ge[5] || (ge[5] = (at) => de.value = !1)
|
|
13353
13354
|
}, null, 8, [
|
|
13354
13355
|
"is-pin",
|
|
13355
13356
|
"relation",
|
|
@@ -13366,7 +13367,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13366
13367
|
}, {
|
|
13367
13368
|
default: X(() => [I("div", null, [Q(be, {
|
|
13368
13369
|
visible: xt.value,
|
|
13369
|
-
"onUpdate:visible":
|
|
13370
|
+
"onUpdate:visible": ge[7] || (ge[7] = (at) => xt.value = at),
|
|
13370
13371
|
placement: "bottom",
|
|
13371
13372
|
"popper-style": "padding: 0",
|
|
13372
13373
|
width: 380,
|
|
@@ -13396,7 +13397,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13396
13397
|
}, {
|
|
13397
13398
|
default: X(() => [I("div", null, [Q(be, {
|
|
13398
13399
|
visible: Ae.value,
|
|
13399
|
-
"onUpdate:visible":
|
|
13400
|
+
"onUpdate:visible": ge[8] || (ge[8] = (at) => Ae.value = at),
|
|
13400
13401
|
placement: "bottom",
|
|
13401
13402
|
"popper-style": "padding: 0",
|
|
13402
13403
|
width: 400,
|
|
@@ -13453,11 +13454,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
13453
13454
|
}, [I("div", fb, [(k(!0), L(He, null, Fe(R.value, (at, Nt) => (k(), K(Ja(e.renderVNode(at)), {
|
|
13454
13455
|
key: T(at) || Nt,
|
|
13455
13456
|
onClick: (vn) => ra(at)
|
|
13456
|
-
}, null, 8, ["onClick"]))), 128))]), x.value ? (k(), L("div", hb, [
|
|
13457
|
+
}, null, 8, ["onClick"]))), 128))]), x.value ? (k(), L("div", hb, [ge[16] || (ge[16] = I("div", null, null, -1)), Q(da, {
|
|
13457
13458
|
"current-page": f.value,
|
|
13458
|
-
"onUpdate:currentPage":
|
|
13459
|
+
"onUpdate:currentPage": ge[9] || (ge[9] = (at) => f.value = at),
|
|
13459
13460
|
"page-size": u.value,
|
|
13460
|
-
"onUpdate:pageSize":
|
|
13461
|
+
"onUpdate:pageSize": ge[10] || (ge[10] = (at) => u.value = at),
|
|
13461
13462
|
"page-sizes": e.pageSizes || [
|
|
13462
13463
|
100,
|
|
13463
13464
|
200,
|
|
@@ -13486,9 +13487,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13486
13487
|
"page-sizes": gn.value,
|
|
13487
13488
|
"page-total": d.value,
|
|
13488
13489
|
"table-page": f.value,
|
|
13489
|
-
"onUpdate:tablePage":
|
|
13490
|
+
"onUpdate:tablePage": ge[11] || (ge[11] = (at) => f.value = at),
|
|
13490
13491
|
"page-size": u.value,
|
|
13491
|
-
"onUpdate:pageSize":
|
|
13492
|
+
"onUpdate:pageSize": ge[12] || (ge[12] = (at) => u.value = at),
|
|
13492
13493
|
"max-btns": e.actionsMaxCount,
|
|
13493
13494
|
"row-key": e.rowKey,
|
|
13494
13495
|
"is-radio": ua.value,
|
|
@@ -13526,7 +13527,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13526
13527
|
ref_key: "tableRef",
|
|
13527
13528
|
ref: r,
|
|
13528
13529
|
"table-page": f.value,
|
|
13529
|
-
"onUpdate:tablePage":
|
|
13530
|
+
"onUpdate:tablePage": ge[13] || (ge[13] = (at) => f.value = at),
|
|
13530
13531
|
columns: B.value,
|
|
13531
13532
|
"column-filter": e.columnFilter,
|
|
13532
13533
|
"sub-columns": e.subColumns,
|
|
@@ -13589,9 +13590,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13589
13590
|
ref_key: "filterPanelRef",
|
|
13590
13591
|
ref: Z,
|
|
13591
13592
|
"is-pin": z.value,
|
|
13592
|
-
"onUpdate:isPin":
|
|
13593
|
+
"onUpdate:isPin": ge[14] || (ge[14] = (at) => z.value = at),
|
|
13593
13594
|
relation: We.value,
|
|
13594
|
-
"onUpdate:relation":
|
|
13595
|
+
"onUpdate:relation": ge[15] || (ge[15] = (at) => We.value = at),
|
|
13595
13596
|
"search-list": e.searchList,
|
|
13596
13597
|
"search-field-list": Se.value,
|
|
13597
13598
|
columns: M.value,
|
|
@@ -13879,13 +13880,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
13879
13880
|
color: z.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
13880
13881
|
}, null, 8, ["icon", "color"])) : oe("", !0),
|
|
13881
13882
|
I("div", kb, Ee(z.label), 1),
|
|
13882
|
-
S(z.data).length ? (k(), L("div", Rb, [(k(!0), L(He, null, Fe(S(z.data), (
|
|
13883
|
+
S(z.data).length ? (k(), L("div", Rb, [(k(!0), L(He, null, Fe(S(z.data), (de, $e) => (k(), K(me, {
|
|
13883
13884
|
key: $e,
|
|
13884
13885
|
trigger: "click",
|
|
13885
13886
|
onVisibleChange: (Se) => P(Se, z.data)
|
|
13886
13887
|
}, {
|
|
13887
13888
|
dropdown: X(() => [Q(ie, null, {
|
|
13888
|
-
default: X(() => [(k(!0), L(He, null, Fe(
|
|
13889
|
+
default: X(() => [(k(!0), L(He, null, Fe(de.children, (Se, We) => (k(), K(F, {
|
|
13889
13890
|
key: We,
|
|
13890
13891
|
disabled: Se.disabled,
|
|
13891
13892
|
divided: Se.divided,
|
|
@@ -13893,7 +13894,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13893
13894
|
}, {
|
|
13894
13895
|
default: X(() => [I("div", {
|
|
13895
13896
|
class: "j-flex-item",
|
|
13896
|
-
style:
|
|
13897
|
+
style: ue({ color: Se.danger ? "var(--j-color-danger)" : Se.color || e.buttonIconColor || "var(--j-color-text-2)" })
|
|
13897
13898
|
}, [Se.icon || e.buttonDefaultIcon ? (k(), K(E, {
|
|
13898
13899
|
key: 0,
|
|
13899
13900
|
icon: Se.icon || e.buttonDefaultIcon
|
|
@@ -13907,7 +13908,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13907
13908
|
_: 2
|
|
13908
13909
|
}, 1024)]),
|
|
13909
13910
|
default: X(() => [Q(W, {
|
|
13910
|
-
icon:
|
|
13911
|
+
icon: de.icon,
|
|
13911
13912
|
type: "text"
|
|
13912
13913
|
}, null, 8, ["icon"])]),
|
|
13913
13914
|
_: 2
|
|
@@ -14148,7 +14149,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14148
14149
|
E || (B = Xt(M), E = !0);
|
|
14149
14150
|
}, Z = async (G) => {
|
|
14150
14151
|
_.value && $e && (G.getTableData || ts($e, G.config.valueIdKey || G.id, G.formData[G.config.valueIdKey || G.id])), o("change", G), T[G.id]?.config?.codeChange && await dn(JSON.parse(T[G.id]?.config?.codeChange), { param: G }), a.config?.codeChange && await dn(JSON.parse(a.config?.codeChange), { param: G });
|
|
14151
|
-
}, z = (G) => fr(T[G]?.type || "") && !T[G]?.config?.notInput || T[G]?.config?.isInput,
|
|
14152
|
+
}, z = (G) => fr(T[G]?.type || "") && !T[G]?.config?.notInput || T[G]?.config?.isInput, de = (G) => [
|
|
14152
14153
|
"j-table",
|
|
14153
14154
|
"j-table-panel",
|
|
14154
14155
|
"j-input-rows",
|
|
@@ -14194,7 +14195,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14194
14195
|
if (z(_e.id))
|
|
14195
14196
|
!re && pt === !1 && (St?.defaultValue === 0 ? x[_e.id] = St?.defaultValue : x[_e.id] = St?.defaultValue || void 0), St.table && St.field ? j[`${St.table}_${St.field}`.toLowerCase()] = _e.id : St.field && (pt ? j[`${Kt}_${St.field}`.toLowerCase()] = _e.id : j[`${St.field}`.toLowerCase()] = _e.id);
|
|
14196
14197
|
else if (pt && St.field) j[`${Kt}_${St.field}`.toLowerCase()] = _e.id;
|
|
14197
|
-
else if (
|
|
14198
|
+
else if (de(_e.id))
|
|
14198
14199
|
!re && !St.isSubTable && (x[_e.id] = []), St.table && (j[St.table.toLowerCase() || ""] = _e.id), St.isSubTable || A.push(Be);
|
|
14199
14200
|
else if (St?.defaultValue) x[_e.id] = St?.defaultValue;
|
|
14200
14201
|
else if (_e.type === "collapse" && St?.isExpand) {
|
|
@@ -14203,7 +14204,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14203
14204
|
zn.push(ra.i);
|
|
14204
14205
|
}), x[_e.id] = zn;
|
|
14205
14206
|
}
|
|
14206
|
-
Ne && Ne.length > 0 && lt(Ne, Be.children, re,
|
|
14207
|
+
Ne && Ne.length > 0 && lt(Ne, Be.children, re, de(Be.id) ? Be.id : he);
|
|
14207
14208
|
});
|
|
14208
14209
|
}, xt = async (G, pe) => {
|
|
14209
14210
|
const re = ++W, he = _.value;
|
|
@@ -14245,7 +14246,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14245
14246
|
re !== "main" && (Ne = `${re}_${Be}`), P[Ne] = re, x[j[Ne.toLowerCase()] || Be] = he[Be];
|
|
14246
14247
|
}
|
|
14247
14248
|
}) : x[re] = he);
|
|
14248
|
-
else if (
|
|
14249
|
+
else if (de(_e.id || "")) {
|
|
14249
14250
|
if (!Array.isArray(he)) {
|
|
14250
14251
|
console.warn("表格数据不是数组:" + re);
|
|
14251
14252
|
return;
|
|
@@ -14265,7 +14266,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14265
14266
|
if (_e) {
|
|
14266
14267
|
const Be = _e.config?.table, Ne = _e.config?.field;
|
|
14267
14268
|
if (pe) Ne ? re[Ne] = G[he] : re[he] = G[he];
|
|
14268
|
-
else if (
|
|
14269
|
+
else if (de(he)) {
|
|
14269
14270
|
const pt = [];
|
|
14270
14271
|
G[he].forEach((Kt) => {
|
|
14271
14272
|
pt.push(ct(Kt, !0));
|
|
@@ -14310,7 +14311,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14310
14311
|
throw h(pt.message) || h("数据值重复");
|
|
14311
14312
|
}), {
|
|
14312
14313
|
rules: Be,
|
|
14313
|
-
myGridtableId:
|
|
14314
|
+
myGridtableId: de(_e._componentId) ? _e._componentId : ""
|
|
14314
14315
|
};
|
|
14315
14316
|
}
|
|
14316
14317
|
return {
|
|
@@ -14355,7 +14356,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14355
14356
|
Be.push(Ne[_e || ""]);
|
|
14356
14357
|
}), Be;
|
|
14357
14358
|
}
|
|
14358
|
-
if (
|
|
14359
|
+
if (de(re.id || "")) {
|
|
14359
14360
|
const he = [];
|
|
14360
14361
|
return x[re.id || ""].forEach((_e) => {
|
|
14361
14362
|
he.push(ct(_e, !0));
|
|
@@ -14673,14 +14674,14 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14673
14674
|
const i = V("j-button"), l = V("el-tooltip"), r = V("j-buttons");
|
|
14674
14675
|
return k(), L("div", {
|
|
14675
14676
|
class: "j-block",
|
|
14676
|
-
style:
|
|
14677
|
+
style: ue({
|
|
14677
14678
|
padding: e.noPadding ? void 0 : "4px",
|
|
14678
14679
|
width: (e.notSetWidth ? 100 : e.flexWidth || 100) + "%",
|
|
14679
14680
|
height: `${e.height ? e.height + (e.unit || "%") : "100%"}`
|
|
14680
14681
|
})
|
|
14681
14682
|
}, [I("div", {
|
|
14682
14683
|
class: "j-panel",
|
|
14683
|
-
style:
|
|
14684
|
+
style: ue({ "border-radius": e.noPadding ? "0px" : "4px" })
|
|
14684
14685
|
}, [
|
|
14685
14686
|
e.title && !e.notTitle || e.toolBtns && e.toolBtns.length > 0 ? (k(), L("div", qb, [e.notTitle ? oe("", !0) : (k(), L("div", {
|
|
14686
14687
|
key: 0,
|
|
@@ -14700,7 +14701,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14700
14701
|
}, 1032, ["content"]))), 128))])) : oe("", !0)])) : oe("", !0),
|
|
14701
14702
|
I("div", {
|
|
14702
14703
|
class: "j-panel-body",
|
|
14703
|
-
style:
|
|
14704
|
+
style: ue(e.bodyStyle)
|
|
14704
14705
|
}, [rt(a.$slots, "default")], 4),
|
|
14705
14706
|
e.bootmBtns && e.bootmBtns.length > 0 || e.bootmRightBtns && e.bootmRightBtns.length > 0 ? (k(), L("div", e0, [Q(r, { list: e.bootmBtns }, null, 8, ["list"]), Q(r, { list: e.bootmRightBtns }, null, 8, ["list"])])) : oe("", !0)
|
|
14706
14707
|
], 4)], 4);
|
|
@@ -14880,7 +14881,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14880
14881
|
}, null, 8, ["onClick"])) : oe("", !0)
|
|
14881
14882
|
], 2))), 128))], 512), !d.value && l.value ? (k(), L("div", {
|
|
14882
14883
|
key: 0,
|
|
14883
|
-
style:
|
|
14884
|
+
style: ue({ "text-align": c.value }),
|
|
14884
14885
|
class: "j-input-rows-actions"
|
|
14885
14886
|
}, [l.value ? (k(), K(T, {
|
|
14886
14887
|
key: 0,
|
|
@@ -15584,7 +15585,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15584
15585
|
ref_key: "editorRef",
|
|
15585
15586
|
ref: o,
|
|
15586
15587
|
class: "j-editor-content",
|
|
15587
|
-
style:
|
|
15588
|
+
style: ue(r.value)
|
|
15588
15589
|
}, null, 4)]));
|
|
15589
15590
|
}
|
|
15590
15591
|
}), T0 = E0, M0 = Pe(T0), j0 = {
|
|
@@ -15673,7 +15674,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15673
15674
|
f();
|
|
15674
15675
|
}), (m, _) => (k(), L("div", {
|
|
15675
15676
|
class: "j-map",
|
|
15676
|
-
style:
|
|
15677
|
+
style: ue({ height: e.height })
|
|
15677
15678
|
}, [i.value ? (k(), L("div", j0, [Q(Ya, {
|
|
15678
15679
|
icon: "mdi:loading",
|
|
15679
15680
|
class: "is-loading",
|
|
@@ -17174,7 +17175,7 @@ function _u(e, t, n, a, o, i, l, r, c, s) {
|
|
|
17174
17175
|
ee,
|
|
17175
17176
|
Z
|
|
17176
17177
|
].concat(u).join().split(",");
|
|
17177
|
-
for (var z = [],
|
|
17178
|
+
for (var z = [], de = 0, $e = u.length; de < $e; de++) z[de] = de % 2 ? p(u[de - 1], u[de], f).y : p(u[de], u[de + 1], f).x;
|
|
17178
17179
|
return z;
|
|
17179
17180
|
}
|
|
17180
17181
|
function jw(e, t, n, a, o, i, l, r) {
|
|
@@ -23952,7 +23953,7 @@ var x1 = {
|
|
|
23952
23953
|
default: X(() => [(k(!0), L(He, null, Fe(e.columns, (E) => (k(), K(j, {
|
|
23953
23954
|
key: E.prop,
|
|
23954
23955
|
span: E.config?.span || e.span || 24,
|
|
23955
|
-
style:
|
|
23956
|
+
style: ue({ "margin-bottom": (E.getInputType ? E.getInputType(B) : E.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
23956
23957
|
}, {
|
|
23957
23958
|
default: X(() => [ta(Q(T, {
|
|
23958
23959
|
"label-width": v(E.config?.labelWidth),
|
|
@@ -23981,7 +23982,7 @@ var x1 = {
|
|
|
23981
23982
|
onClick: (E) => m(M)
|
|
23982
23983
|
}, null, 8, ["onClick"])) : oe("", !0)]))), 128))], 16), r.value && !f.value ? (k(), L("div", {
|
|
23983
23984
|
key: 0,
|
|
23984
|
-
style:
|
|
23985
|
+
style: ue({ "text-align": s.value })
|
|
23985
23986
|
}, [r.value ? (k(), K(A, {
|
|
23986
23987
|
key: 0,
|
|
23987
23988
|
type: "link",
|
|
@@ -24177,20 +24178,20 @@ var x1 = {
|
|
|
24177
24178
|
const M = V("el-image"), E = V("j-button"), W = V("el-dropdown-item"), F = V("el-dropdown-menu"), ie = V("el-dropdown"), me = V("el-tooltip"), J = V("el-radio"), ee = V("el-checkbox"), Z = V("el-pagination"), z = xo("loading");
|
|
24178
24179
|
return k(), L("div", {
|
|
24179
24180
|
class: "j-card-list",
|
|
24180
|
-
style:
|
|
24181
|
+
style: ue({
|
|
24181
24182
|
paddingBottom: e.isPage ? "48px" : void 0,
|
|
24182
24183
|
backgroundColor: e.backgroundColor || "var(--j-color-bg)"
|
|
24183
24184
|
})
|
|
24184
|
-
}, [ta((k(), L("div", M1, [(k(!0), L(He, null, Fe(r.value, (
|
|
24185
|
-
key: h(
|
|
24186
|
-
style:
|
|
24185
|
+
}, [ta((k(), L("div", M1, [(k(!0), L(He, null, Fe(r.value, (de, $e) => (k(), L("div", {
|
|
24186
|
+
key: h(de, $e),
|
|
24187
|
+
style: ue([f.value, { padding: "4px" }])
|
|
24187
24188
|
}, [I("div", {
|
|
24188
24189
|
class: "j-card-list-item",
|
|
24189
|
-
style:
|
|
24190
|
+
style: ue({ aspectRatio: e.cardAspectRatio })
|
|
24190
24191
|
}, [
|
|
24191
24192
|
Q(M, {
|
|
24192
24193
|
class: "j-card-list-image",
|
|
24193
|
-
src: d(
|
|
24194
|
+
src: d(de),
|
|
24194
24195
|
fit: e.imageFit,
|
|
24195
24196
|
"preview-src-list": c.value,
|
|
24196
24197
|
"initial-index": $e,
|
|
@@ -24212,12 +24213,12 @@ var x1 = {
|
|
|
24212
24213
|
class: "j-card-list-edit-btn",
|
|
24213
24214
|
type: "primary",
|
|
24214
24215
|
label: q(i)(s.value.label || "编辑"),
|
|
24215
|
-
onClick: (Se) => C(s.value,
|
|
24216
|
+
onClick: (Se) => C(s.value, de, $e)
|
|
24216
24217
|
}, null, 8, ["label", "onClick"])])) : oe("", !0),
|
|
24217
24218
|
I("div", H1, [I("div", {
|
|
24218
24219
|
class: "j-card-list-title",
|
|
24219
|
-
title: String(
|
|
24220
|
-
}, Ee(String(
|
|
24220
|
+
title: String(de[e.labelKey] ?? "")
|
|
24221
|
+
}, Ee(String(de[e.labelKey] ?? "")), 9, O1), I("div", I1, [(k(!0), L(He, null, Fe(v(de), (Se) => (k(), L(He, { key: Se.id }, [Se.children?.length ? (k(), K(ie, {
|
|
24221
24222
|
key: 0,
|
|
24222
24223
|
trigger: "click"
|
|
24223
24224
|
}, {
|
|
@@ -24225,7 +24226,7 @@ var x1 = {
|
|
|
24225
24226
|
default: X(() => [(k(!0), L(He, null, Fe(Se.children, (We) => (k(), K(W, {
|
|
24226
24227
|
key: We.id,
|
|
24227
24228
|
disabled: We.config?.disabled,
|
|
24228
|
-
onClick: (lt) => C(We,
|
|
24229
|
+
onClick: (lt) => C(We, de, $e)
|
|
24229
24230
|
}, {
|
|
24230
24231
|
default: X(() => [Wn(Ee(q(i)(We.label || "")), 1)]),
|
|
24231
24232
|
_: 2
|
|
@@ -24248,7 +24249,7 @@ var x1 = {
|
|
|
24248
24249
|
status: Se.config?.status,
|
|
24249
24250
|
disabled: Se.config?.disabled,
|
|
24250
24251
|
notLabel: !0,
|
|
24251
|
-
onClick: (We) => C(Se,
|
|
24252
|
+
onClick: (We) => C(Se, de, $e)
|
|
24252
24253
|
}, null, 8, [
|
|
24253
24254
|
"icon",
|
|
24254
24255
|
"status",
|
|
@@ -24266,7 +24267,7 @@ var x1 = {
|
|
|
24266
24267
|
style: { height: "14px" },
|
|
24267
24268
|
modelValue: g.value,
|
|
24268
24269
|
"onUpdate:modelValue": B[0] || (B[0] = (Se) => g.value = Se),
|
|
24269
|
-
value: u(
|
|
24270
|
+
value: u(de)
|
|
24270
24271
|
}, null, 8, ["modelValue", "value"])])) : oe("", !0),
|
|
24271
24272
|
e.isMultiSelect ? (k(), L("div", {
|
|
24272
24273
|
key: 2,
|
|
@@ -24275,14 +24276,14 @@ var x1 = {
|
|
|
24275
24276
|
}, ["stop"]))
|
|
24276
24277
|
}, [Q(ee, {
|
|
24277
24278
|
style: { height: "14px" },
|
|
24278
|
-
"model-value": m(
|
|
24279
|
-
onChange: (Se) => _([
|
|
24279
|
+
"model-value": m(de),
|
|
24280
|
+
onChange: (Se) => _([de], !!Se)
|
|
24280
24281
|
}, null, 8, ["model-value", "onChange"])])) : oe("", !0)
|
|
24281
24282
|
], 4)], 4))), 128))])), [[z, e.loading]]), e.isPage ? (k(), L("div", L1, [Q(Z, {
|
|
24282
24283
|
"current-page": x.value,
|
|
24283
|
-
"onUpdate:currentPage": B[3] || (B[3] = (
|
|
24284
|
+
"onUpdate:currentPage": B[3] || (B[3] = (de) => x.value = de),
|
|
24284
24285
|
"page-size": y.value,
|
|
24285
|
-
"onUpdate:pageSize": B[4] || (B[4] = (
|
|
24286
|
+
"onUpdate:pageSize": B[4] || (B[4] = (de) => y.value = de),
|
|
24286
24287
|
"page-sizes": e.pageSizes || [
|
|
24287
24288
|
50,
|
|
24288
24289
|
100,
|