@a2simcode/ui 0.0.160 → 0.0.161
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 +326 -326
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as Ce, computed as O, createBlock as N, createCommentVNode as ee, createElementBlock as L, createElementVNode as H, createSlots as Dn, createTextVNode as on, createVNode as Z, defineComponent as he, getCurrentInstance as lc, guardReactiveProps as Pi, h as yi, inject as wd, mergeModels as So, mergeProps as Fe, nextTick as zt, normalizeClass as We, normalizeProps as Eo, normalizeStyle as se, onBeforeUnmount as To, onMounted as jt, onUnmounted as Ao, openBlock as R, provide as _d, reactive as na, ref as I, render as mi, renderList as He, renderSlot as Ye, resolveComponent as V, resolveDirective as Bi, resolveDynamicComponent as Ya, shallowRef as Hi, toDisplayString as ve, unref as J, useModel as ko, useSlots as xd, useTemplateRef as Sa, vShow as mo, watch as at, watchEffect as sc, withCtx as
|
|
1
|
+
import { Fragment as Ce, computed as O, createBlock as N, createCommentVNode as ee, createElementBlock as L, createElementVNode as H, createSlots as Dn, createTextVNode as on, createVNode as Z, defineComponent as he, getCurrentInstance as lc, guardReactiveProps as Pi, h as yi, inject as wd, mergeModels as So, mergeProps as Fe, nextTick as zt, normalizeClass as We, normalizeProps as Eo, normalizeStyle as se, onBeforeUnmount as To, onMounted as jt, onUnmounted as Ao, openBlock as R, provide as _d, reactive as na, ref as I, render as mi, renderList as He, renderSlot as Ye, resolveComponent as V, resolveDirective as Bi, resolveDynamicComponent as Ya, shallowRef as Hi, toDisplayString as ve, unref as J, useModel as ko, useSlots as xd, useTemplateRef as Sa, vShow as mo, watch as at, watchEffect as sc, withCtx as q, withDirectives as zn, withKeys as fr, withModifiers as $t } from "vue";
|
|
2
2
|
import { Icon as Ml, getIcon as Ca } from "@iconify/vue";
|
|
3
3
|
import cc from "dayjs";
|
|
4
4
|
import Cd from "sortablejs";
|
|
@@ -1398,8 +1398,8 @@ var Nf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1398
1398
|
if (Ht < 16)
|
|
1399
1399
|
dt = Vt.high = h[p + Ht * 2] | 0, Ot = Vt.low = h[p + Ht * 2 + 1] | 0;
|
|
1400
1400
|
else {
|
|
1401
|
-
var Cn = f[Ht - 15],
|
|
1402
|
-
Ot = oe + kn, dt =
|
|
1401
|
+
var Cn = f[Ht - 15], G = Cn.high, le = Cn.low, te = (G >>> 1 | le << 31) ^ (G >>> 8 | le << 24) ^ G >>> 7, oe = (le >>> 1 | G << 31) ^ (le >>> 8 | G << 24) ^ (le >>> 7 | G << 25), ge = f[Ht - 2], je = ge.high, Le = ge.low, ot = (je >>> 19 | Le << 13) ^ (je << 3 | Le >>> 29) ^ je >>> 6, St = (Le >>> 19 | je << 13) ^ (Le << 3 | je >>> 29) ^ (Le >>> 6 | je << 26), ft = f[Ht - 7], Sn = ft.high, kn = ft.low, ga = f[Ht - 16], Se = ga.high, Pe = ga.low;
|
|
1402
|
+
Ot = oe + kn, dt = te + Sn + (Ot >>> 0 < oe >>> 0 ? 1 : 0), Ot = Ot + St, dt = dt + ot + (Ot >>> 0 < St >>> 0 ? 1 : 0), Ot = Ot + Pe, dt = dt + Se + (Ot >>> 0 < Pe >>> 0 ? 1 : 0), Vt.high = dt, Vt.low = Ot;
|
|
1403
1403
|
}
|
|
1404
1404
|
var yt = Me & Et ^ ~Me & Ge, ht = Oe & _t ^ ~Oe & Yt, be = B & $e ^ B & Ke ^ $e & Ke, mt = ke & we ^ ke & Xe ^ we & Xe, Kt = (B >>> 28 | ke << 4) ^ (B << 30 | ke >>> 2) ^ (B << 25 | ke >>> 7), It = (ke >>> 28 | B << 4) ^ (ke << 30 | B >>> 2) ^ (ke << 25 | B >>> 7), qt = (Me >>> 14 | Oe << 18) ^ (Me >>> 18 | Oe << 14) ^ (Me << 23 | Oe >>> 9), Ze = (Oe >>> 14 | Me << 18) ^ (Oe >>> 18 | Me << 14) ^ (Oe << 23 | Me >>> 9), cn = u[Ht], Un = cn.high, va = cn.low, qe = Jt + Ze, Tt = sn + qt + (qe >>> 0 < Jt >>> 0 ? 1 : 0), qe = qe + ht, Tt = Tt + yt + (qe >>> 0 < ht >>> 0 ? 1 : 0), qe = qe + va, Tt = Tt + Un + (qe >>> 0 < va >>> 0 ? 1 : 0), qe = qe + Ot, Tt = Tt + dt + (qe >>> 0 < Ot >>> 0 ? 1 : 0), Qt = It + mt, en = Kt + be + (Qt >>> 0 < It >>> 0 ? 1 : 0);
|
|
1405
1405
|
sn = Ge, Jt = Yt, Ge = Et, Yt = _t, Et = Me, _t = Oe, Oe = Re + qe | 0, Me = ie + Tt + (Oe >>> 0 < Re >>> 0 ? 1 : 0) | 0, ie = Ke, Re = Xe, Ke = $e, Xe = we, $e = B, we = ke, ke = qe + Qt | 0, B = Tt + en + (ke >>> 0 < qe >>> 0 ? 1 : 0) | 0;
|
|
@@ -1735,7 +1735,7 @@ var xh = /* @__PURE__ */ he({
|
|
|
1735
1735
|
onClosed: A,
|
|
1736
1736
|
onCancel: j
|
|
1737
1737
|
}, {
|
|
1738
|
-
default:
|
|
1738
|
+
default: q(() => [(R(), N(Ya(d.value), Fe({
|
|
1739
1739
|
ref_key: "componentRef",
|
|
1740
1740
|
ref: f
|
|
1741
1741
|
}, h.value), null, 16))]),
|
|
@@ -1797,9 +1797,9 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
1797
1797
|
return (i, r) => {
|
|
1798
1798
|
const l = V("j-button"), c = V("el-space"), s = V("el-dropdown");
|
|
1799
1799
|
return R(), N(c, { size: e.isLink ? 0 : 8 }, {
|
|
1800
|
-
default:
|
|
1801
|
-
dropdown:
|
|
1802
|
-
default:
|
|
1800
|
+
default: q(() => [(R(!0), L(Ce, null, He(n.value, (u, f) => (R(), L("div", Fe({ key: f }, { ref_for: !0 }, i.$attrs), [(R(!0), L(Ce, null, He(u, (d, h) => (R(), L(Ce, { key: h }, [d.children?.length && d.children?.length > 0 ? (R(), N(s, { key: 0 }, {
|
|
1801
|
+
dropdown: q(() => [Z(c, { direction: "vertical" }, {
|
|
1802
|
+
default: q(() => [(R(!0), L(Ce, null, He(d.children || [], (p) => (R(), N(l, Fe({ key: p.id }, { ref_for: !0 }, p.config, {
|
|
1803
1803
|
type: "text",
|
|
1804
1804
|
label: p.label,
|
|
1805
1805
|
size: e.size,
|
|
@@ -1811,7 +1811,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
1811
1811
|
]))), 128))]),
|
|
1812
1812
|
_: 2
|
|
1813
1813
|
}, 1024)]),
|
|
1814
|
-
default:
|
|
1814
|
+
default: q(() => [Z(l, Fe({ ref_for: !0 }, d.config, {
|
|
1815
1815
|
label: d.label,
|
|
1816
1816
|
size: e.size,
|
|
1817
1817
|
type: e.isLink ? "link" : d.config?.type,
|
|
@@ -1995,22 +1995,22 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
1995
1995
|
}), Dn({ _: 2 }, [
|
|
1996
1996
|
e.prefixIcon ? {
|
|
1997
1997
|
name: "prefix",
|
|
1998
|
-
fn:
|
|
1998
|
+
fn: q(() => [Z(h, { icon: e.prefixIcon }, null, 8, ["icon"])]),
|
|
1999
1999
|
key: "0"
|
|
2000
2000
|
} : void 0,
|
|
2001
2001
|
e.suffixIcon ? {
|
|
2002
2002
|
name: "suffix",
|
|
2003
|
-
fn:
|
|
2003
|
+
fn: q(() => [Z(h, { icon: e.suffixIcon }, null, 8, ["icon"])]),
|
|
2004
2004
|
key: "1"
|
|
2005
2005
|
} : void 0,
|
|
2006
2006
|
e.prepend ? {
|
|
2007
2007
|
name: "prepend",
|
|
2008
|
-
fn:
|
|
2008
|
+
fn: q(() => [H("span", { style: se(e.prependStyle) }, ve(e.prepend), 5)]),
|
|
2009
2009
|
key: "2"
|
|
2010
2010
|
} : void 0,
|
|
2011
2011
|
e.append ? {
|
|
2012
2012
|
name: "append",
|
|
2013
|
-
fn:
|
|
2013
|
+
fn: q(() => [H("span", { style: se(e.appendStyle) }, ve(e.append), 5)]),
|
|
2014
2014
|
key: "3"
|
|
2015
2015
|
} : void 0
|
|
2016
2016
|
]), 1040, [
|
|
@@ -2385,7 +2385,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2385
2385
|
readonly: "",
|
|
2386
2386
|
value: o.value
|
|
2387
2387
|
}, {
|
|
2388
|
-
prefix:
|
|
2388
|
+
prefix: q(() => [Z(c, { icon: "mdi:calendar-blank-outline" })]),
|
|
2389
2389
|
_: 1
|
|
2390
2390
|
}, 8, ["size", "value"]);
|
|
2391
2391
|
};
|
|
@@ -2442,19 +2442,19 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2442
2442
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.value = d),
|
|
2443
2443
|
disabled: e.readonly
|
|
2444
2444
|
}, {
|
|
2445
|
-
default:
|
|
2445
|
+
default: q(() => [e.isButton ? (R(!0), L(Ce, { key: 0 }, He(e.options, (d) => (R(), N(c, {
|
|
2446
2446
|
key: d.value,
|
|
2447
2447
|
value: d.value,
|
|
2448
2448
|
size: e.size
|
|
2449
2449
|
}, {
|
|
2450
|
-
default:
|
|
2450
|
+
default: q(() => [on(ve(d.label), 1)]),
|
|
2451
2451
|
_: 2
|
|
2452
2452
|
}, 1032, ["value", "size"]))), 128)) : (R(!0), L(Ce, { key: 1 }, He(e.options, (d, h) => (R(), N(u, {
|
|
2453
2453
|
key: d.value,
|
|
2454
2454
|
value: d.value,
|
|
2455
2455
|
size: e.size
|
|
2456
2456
|
}, {
|
|
2457
|
-
default:
|
|
2457
|
+
default: q(() => [e.isColor ? (R(), N(s, {
|
|
2458
2458
|
key: 0,
|
|
2459
2459
|
color: i.value[h] || d.color || "",
|
|
2460
2460
|
size: e.size,
|
|
@@ -2462,7 +2462,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2462
2462
|
effect: "dark",
|
|
2463
2463
|
style: { "border-width": "0" }
|
|
2464
2464
|
}, {
|
|
2465
|
-
default:
|
|
2465
|
+
default: q(() => [on(ve(d.label), 1)]),
|
|
2466
2466
|
_: 2
|
|
2467
2467
|
}, 1032, ["color", "size"])) : (R(), L("span", Fh, ve(d.label), 1))]),
|
|
2468
2468
|
_: 2
|
|
@@ -2615,17 +2615,17 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2615
2615
|
placeholder: e.placeholder,
|
|
2616
2616
|
onChange: u
|
|
2617
2617
|
}), Dn({
|
|
2618
|
-
default:
|
|
2618
|
+
default: q(() => [e.isGroup ? (R(!0), L(Ce, { key: 0 }, He(s.value, (_) => (R(), N(g, {
|
|
2619
2619
|
key: _.label,
|
|
2620
2620
|
label: _.label
|
|
2621
2621
|
}, {
|
|
2622
|
-
default:
|
|
2622
|
+
default: q(() => [(R(!0), L(Ce, null, He(_.children, (m) => (R(), N(p, {
|
|
2623
2623
|
key: m.value,
|
|
2624
2624
|
label: m.label,
|
|
2625
2625
|
value: m.value || " ",
|
|
2626
2626
|
disabled: !!m.disabled
|
|
2627
2627
|
}, {
|
|
2628
|
-
default:
|
|
2628
|
+
default: q(() => [H("div", Yh, [m.icon ? (R(), N(ka, {
|
|
2629
2629
|
key: 0,
|
|
2630
2630
|
class: "j-select-option-icon",
|
|
2631
2631
|
icon: m.icon
|
|
@@ -2643,7 +2643,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2643
2643
|
value: _.value + "",
|
|
2644
2644
|
disabled: !!_.disabled
|
|
2645
2645
|
}, {
|
|
2646
|
-
default:
|
|
2646
|
+
default: q(() => [H("div", Jh, [_.icon ? (R(), N(ka, {
|
|
2647
2647
|
key: 0,
|
|
2648
2648
|
class: "j-select-option-icon",
|
|
2649
2649
|
icon: _.icon
|
|
@@ -2657,7 +2657,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2657
2657
|
_: 2
|
|
2658
2658
|
}, [e.multiple ? void 0 : {
|
|
2659
2659
|
name: "label",
|
|
2660
|
-
fn:
|
|
2660
|
+
fn: q(() => [H("div", Uh, [l.value ? (R(), N(ka, {
|
|
2661
2661
|
key: 0,
|
|
2662
2662
|
class: "j-select-option-icon",
|
|
2663
2663
|
icon: l.value
|
|
@@ -2666,7 +2666,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2666
2666
|
content: r.value,
|
|
2667
2667
|
placement: "top"
|
|
2668
2668
|
}, {
|
|
2669
|
-
default:
|
|
2669
|
+
default: q(() => [on(ve(r.value), 1)]),
|
|
2670
2670
|
_: 1
|
|
2671
2671
|
}, 8, ["content"])) : (R(), L(Ce, { key: 1 }, [on(ve(r.value), 1)], 64))])])]),
|
|
2672
2672
|
key: "0"
|
|
@@ -2894,7 +2894,7 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
2894
2894
|
type: e.type,
|
|
2895
2895
|
onChange: i
|
|
2896
2896
|
}, {
|
|
2897
|
-
default:
|
|
2897
|
+
default: q(() => [e.type === "checkbox" ? (R(!0), L(Ce, { key: 0 }, He(e.options, (f) => (R(), N(c, {
|
|
2898
2898
|
key: f.value,
|
|
2899
2899
|
value: f.value,
|
|
2900
2900
|
disabled: f.disabled,
|
|
@@ -3038,22 +3038,22 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
3038
3038
|
onBlur: c,
|
|
3039
3039
|
onFocus: s
|
|
3040
3040
|
}, Dn({
|
|
3041
|
-
"decrease-icon":
|
|
3041
|
+
"decrease-icon": q(() => [e.decreaseIcon ? (R(), N(p, {
|
|
3042
3042
|
key: 0,
|
|
3043
3043
|
icon: e.decreaseIcon
|
|
3044
3044
|
}, null, 8, ["icon"])) : ee("", !0)]),
|
|
3045
|
-
"increase-icon":
|
|
3045
|
+
"increase-icon": q(() => [e.increaseIcon ? (R(), N(p, {
|
|
3046
3046
|
key: 0,
|
|
3047
3047
|
icon: e.increaseIcon
|
|
3048
3048
|
}, null, 8, ["icon"])) : ee("", !0)]),
|
|
3049
3049
|
_: 2
|
|
3050
3050
|
}, [e.prefix ? {
|
|
3051
3051
|
name: "prefix",
|
|
3052
|
-
fn:
|
|
3052
|
+
fn: q(() => [H("span", null, ve(e.prefix), 1)]),
|
|
3053
3053
|
key: "0"
|
|
3054
3054
|
} : void 0, e.suffix ? {
|
|
3055
3055
|
name: "suffix",
|
|
3056
|
-
fn:
|
|
3056
|
+
fn: q(() => [H("span", null, ve(e.suffix), 1)]),
|
|
3057
3057
|
key: "1"
|
|
3058
3058
|
} : void 0]), 1032, [
|
|
3059
3059
|
"id",
|
|
@@ -3217,42 +3217,42 @@ var Sh = _e(Ac), kh = /* @__PURE__ */ he({
|
|
|
3217
3217
|
onFocus: g,
|
|
3218
3218
|
onBlur: y
|
|
3219
3219
|
}, Dn({
|
|
3220
|
-
default:
|
|
3220
|
+
default: q(({ item: w }) => [Ye(v.$slots, "default", { item: w }, () => [H("div", null, ve(w[e.valueKey] || ""), 1)])]),
|
|
3221
3221
|
_: 2
|
|
3222
3222
|
}, [
|
|
3223
3223
|
v.$slots.prefix ? {
|
|
3224
3224
|
name: "prefix",
|
|
3225
|
-
fn:
|
|
3225
|
+
fn: q(() => [Ye(v.$slots, "prefix")]),
|
|
3226
3226
|
key: "0"
|
|
3227
3227
|
} : void 0,
|
|
3228
3228
|
v.$slots.suffix ? {
|
|
3229
3229
|
name: "suffix",
|
|
3230
|
-
fn:
|
|
3230
|
+
fn: q(() => [Ye(v.$slots, "suffix")]),
|
|
3231
3231
|
key: "1"
|
|
3232
3232
|
} : void 0,
|
|
3233
3233
|
v.$slots.header ? {
|
|
3234
3234
|
name: "header",
|
|
3235
|
-
fn:
|
|
3235
|
+
fn: q(() => [Ye(v.$slots, "header")]),
|
|
3236
3236
|
key: "2"
|
|
3237
3237
|
} : void 0,
|
|
3238
3238
|
v.$slots.footer ? {
|
|
3239
3239
|
name: "footer",
|
|
3240
|
-
fn:
|
|
3240
|
+
fn: q(() => [Ye(v.$slots, "footer")]),
|
|
3241
3241
|
key: "3"
|
|
3242
3242
|
} : void 0,
|
|
3243
3243
|
v.$slots.prepend ? {
|
|
3244
3244
|
name: "prepend",
|
|
3245
|
-
fn:
|
|
3245
|
+
fn: q(() => [Ye(v.$slots, "prepend")]),
|
|
3246
3246
|
key: "4"
|
|
3247
3247
|
} : void 0,
|
|
3248
3248
|
v.$slots.append ? {
|
|
3249
3249
|
name: "append",
|
|
3250
|
-
fn:
|
|
3250
|
+
fn: q(() => [Ye(v.$slots, "append")]),
|
|
3251
3251
|
key: "5"
|
|
3252
3252
|
} : void 0,
|
|
3253
3253
|
v.$slots.loading ? {
|
|
3254
3254
|
name: "loading",
|
|
3255
|
-
fn:
|
|
3255
|
+
fn: q(() => [Ye(v.$slots, "loading")]),
|
|
3256
3256
|
key: "6"
|
|
3257
3257
|
} : void 0
|
|
3258
3258
|
]), 1032, [
|
|
@@ -5230,7 +5230,7 @@ var Ep = class {
|
|
|
5230
5230
|
style: se({ ...f.value.colStyle || {} }),
|
|
5231
5231
|
class: We(f.value.colClass || {})
|
|
5232
5232
|
}, {
|
|
5233
|
-
default:
|
|
5233
|
+
default: q(() => [p.value && f.value.needFormItem !== !1 ? (R(), N(w, {
|
|
5234
5234
|
key: 0,
|
|
5235
5235
|
label: J(c)(f.value.notShowLabel ? "" : f.value.label || ""),
|
|
5236
5236
|
"label-position": f.value.labelPosition,
|
|
@@ -5239,7 +5239,7 @@ var Ep = class {
|
|
|
5239
5239
|
error: J(c)(_.value),
|
|
5240
5240
|
class: We(`${u.value}-form-item`)
|
|
5241
5241
|
}, {
|
|
5242
|
-
default:
|
|
5242
|
+
default: q(() => [Z(k, Fe(h.value, { onChange: m }), null, 16)]),
|
|
5243
5243
|
_: 1
|
|
5244
5244
|
}, 8, [
|
|
5245
5245
|
"label",
|
|
@@ -5463,18 +5463,18 @@ var Ep = class {
|
|
|
5463
5463
|
onChange: E
|
|
5464
5464
|
}), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5465
5465
|
name: $e,
|
|
5466
|
-
fn:
|
|
5466
|
+
fn: q(() => [(R(!0), L(Ce, null, He(ke, (we) => (R(), N(K, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5467
5467
|
}))]), 1040, ["modelValue", "run-flow"])) : $.value.display != !1 ? (R(), N(Ya(A.value), Fe({
|
|
5468
5468
|
key: 1,
|
|
5469
5469
|
ref_key: "compRef",
|
|
5470
5470
|
ref: W
|
|
5471
5471
|
}, $.value, { onChange: E }), Dn({ _: 2 }, [He(M.value, (ke, $e) => ({
|
|
5472
5472
|
name: $e,
|
|
5473
|
-
fn:
|
|
5473
|
+
fn: q(() => [$.value.needRow === !0 || $.value.needRow?.[$e] === !0 ? (R(), N(B, {
|
|
5474
5474
|
key: 0,
|
|
5475
5475
|
gutter: p.value
|
|
5476
5476
|
}, {
|
|
5477
|
-
default:
|
|
5477
|
+
default: q(() => [$.value.needFormItem === !0 || $.value.needFormItem?.[$e] === !0 ? (R(!0), L(Ce, { key: 0 }, He(ke, (we) => (R(), N(jc, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128)) : (R(!0), L(Ce, { key: 1 }, He(ke, (we) => (R(), N(K, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))]),
|
|
5478
5478
|
_: 2
|
|
5479
5479
|
}, 1032, ["gutter"])) : (R(!0), L(Ce, { key: 1 }, He(ke, (we) => (R(), N(K, Fe({ key: we.id }, { ref_for: !0 }, we), null, 16))), 128))])
|
|
5480
5480
|
}))]), 1040)) : ee("", !0);
|
|
@@ -5792,12 +5792,12 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5792
5792
|
disabled: !0
|
|
5793
5793
|
}
|
|
5794
5794
|
} : D, Xe = (D) => {
|
|
5795
|
-
const { Group: U, Text: Q } = Ue.CustomLayout, ae = o.actionsMaxCount, Y = D.filter((fe) => fe.config?.display !== !1),
|
|
5795
|
+
const { Group: U, Text: Q } = Ue.CustomLayout, ae = o.actionsMaxCount, Y = D.filter((fe) => fe.config?.display !== !1), ne = Y.length > ae, re = ne ? Y.slice(0, ae - 1) : Y;
|
|
5796
5796
|
let pe = 0;
|
|
5797
5797
|
if (re.forEach((fe, xe) => {
|
|
5798
5798
|
const Ee = bn(fe.config?.label || fe.label || "") || 0;
|
|
5799
5799
|
pe += Ee + (xe === 0 ? 24 : 12);
|
|
5800
|
-
}),
|
|
5800
|
+
}), ne) {
|
|
5801
5801
|
const fe = (bn("更多") || 0) + 12;
|
|
5802
5802
|
pe += fe;
|
|
5803
5803
|
}
|
|
@@ -5851,7 +5851,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5851
5851
|
openLayer: d
|
|
5852
5852
|
});
|
|
5853
5853
|
}), un.addEventListener("mouseenter", (gn) => {
|
|
5854
|
-
Ve || (gn.target.setAttribute("fill",
|
|
5854
|
+
Ve || (gn.target.setAttribute("fill", te(Dt, -20)), xe.scenegraph.stage.renderNextFrame());
|
|
5855
5855
|
}), un.addEventListener("mouseleave", (gn) => {
|
|
5856
5856
|
Ve || (gn.target.setAttribute("fill", Dt), xe.scenegraph.stage.renderNextFrame());
|
|
5857
5857
|
}), nt.add(un);
|
|
@@ -5869,7 +5869,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5869
5869
|
cursor: "pointer"
|
|
5870
5870
|
});
|
|
5871
5871
|
pt.addEventListener("mouseenter", (Ve) => {
|
|
5872
|
-
Ve.target.setAttribute("fill",
|
|
5872
|
+
Ve.target.setAttribute("fill", te(me, -20)), xe.scenegraph.stage.renderNextFrame();
|
|
5873
5873
|
const Dt = m.value?.getBoundingClientRect();
|
|
5874
5874
|
Dt && ce(ut, Te, Qe, Ve.canvasX + Dt.left - 64, Ve.canvasY + Dt.top + 8), X = !0, F();
|
|
5875
5875
|
}), pt.addEventListener("mouseleave", (Ve) => {
|
|
@@ -5883,10 +5883,10 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5883
5883
|
}
|
|
5884
5884
|
};
|
|
5885
5885
|
}, ie = (D, U) => {
|
|
5886
|
-
const { dataValue: Q, table: ae, col: Y, row:
|
|
5886
|
+
const { dataValue: Q, table: ae, col: Y, row: ne, value: re } = D, pe = D.rect ?? ae?.getCellRect?.(Y, ne) ?? {
|
|
5887
5887
|
width: 0,
|
|
5888
5888
|
height: 0
|
|
5889
|
-
}, de = ae?.getBodyField?.(Y,
|
|
5889
|
+
}, de = ae?.getBodyField?.(Y, ne), fe = ae?.options?.columns || [], xe = (de ? dt(fe, de) : null)?.style?.textAlign || "left", Ee = 8, Be = Math.max(0, pe.width - Ee * 2);
|
|
5890
5890
|
let Te = re ?? Q;
|
|
5891
5891
|
Te == null && (Te = "");
|
|
5892
5892
|
const Qe = _t(typeof Te == "object" ? JSON.stringify(Te) : String(Te), Be);
|
|
@@ -5905,10 +5905,10 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5905
5905
|
expectedHeight: yn
|
|
5906
5906
|
};
|
|
5907
5907
|
}, Re = (D, U) => {
|
|
5908
|
-
const { dataValue: Q, rect: ae, table: Y, col:
|
|
5908
|
+
const { dataValue: Q, rect: ae, table: Y, col: ne, row: re } = D;
|
|
5909
5909
|
let pe = "mdi:toggle-switch", de = "#165dff";
|
|
5910
5910
|
Q || (pe = "mdi:toggle-switch-off", de = "#e5e6eb");
|
|
5911
|
-
const fe = Ca(pe), xe = fe?.body?.replace(/currentColor/g, de), Ee = [], Be = Y?.getBodyField?.(
|
|
5911
|
+
const fe = Ca(pe), xe = fe?.body?.replace(/currentColor/g, de), Ee = [], Be = Y?.getBodyField?.(ne, re), Te = Y?.options?.columns || [], Qe = Be ? dt(Te, Be) : null, ze = 8, Ae = 40;
|
|
5912
5912
|
let et = ze;
|
|
5913
5913
|
return Qe?.style?.textAlign === "center" ? et = Math.max(ze, (ae.width - Ae) / 2) : Qe?.style?.textAlign === "right" && (et = Math.max(ze, ae.width - Ae - ze)), Ee.push({
|
|
5914
5914
|
type: "icon",
|
|
@@ -5922,8 +5922,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5922
5922
|
expectedHeight: yn
|
|
5923
5923
|
};
|
|
5924
5924
|
}, Me = (D, U) => {
|
|
5925
|
-
const { dataValue: Q, rect: ae } = D, Y = Number(Q) || 0,
|
|
5926
|
-
for (let Ae = 0; Ae <
|
|
5925
|
+
const { dataValue: Q, rect: ae } = D, Y = Number(Q) || 0, ne = 5, re = 20, pe = 4, de = 8, fe = (ae.height - re) / 2, xe = [], Ee = Ca("mdi:star"), Be = Ca("mdi:star-half-full"), Te = Ca("mdi:star-outline"), Qe = "#f7ba2a", ze = "#e5e6eb";
|
|
5926
|
+
for (let Ae = 0; Ae < ne; Ae++) {
|
|
5927
5927
|
const et = de + Ae * (re + pe), tt = fe;
|
|
5928
5928
|
if (Y >= Ae + 1) {
|
|
5929
5929
|
const ut = Ee?.body?.replace(/currentColor/g, Qe);
|
|
@@ -5962,7 +5962,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
5962
5962
|
expectedHeight: yn
|
|
5963
5963
|
};
|
|
5964
5964
|
}, Oe = (D, U) => {
|
|
5965
|
-
const { dataValue: Q, rect: ae, table: Y, col:
|
|
5965
|
+
const { dataValue: Q, rect: ae, table: Y, col: ne, row: re } = D, pe = Y.getBodyField(ne, re), de = dt(Y.options?.columns || [], pe), fe = Y.getCellOriginRecord?.(ne, re) || Y.getRecordByCell?.(ne, re) || {}, xe = U || Mn({
|
|
5966
5966
|
config: de?._compConfig,
|
|
5967
5967
|
getCompConfig: de?._getCompConfig,
|
|
5968
5968
|
formData: r || {},
|
|
@@ -6012,19 +6012,19 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6012
6012
|
if ((bn(D) || 0) <= U) return D;
|
|
6013
6013
|
const Q = "...", ae = bn(Q) || 0;
|
|
6014
6014
|
if (ae >= U) return "";
|
|
6015
|
-
let Y = 0,
|
|
6016
|
-
for (; Y <
|
|
6017
|
-
const re = Math.ceil((Y +
|
|
6018
|
-
(bn(D.slice(0, re)) || 0) + ae <= U ? Y = re :
|
|
6015
|
+
let Y = 0, ne = D.length;
|
|
6016
|
+
for (; Y < ne; ) {
|
|
6017
|
+
const re = Math.ceil((Y + ne) / 2);
|
|
6018
|
+
(bn(D.slice(0, re)) || 0) + ae <= U ? Y = re : ne = re - 1;
|
|
6019
6019
|
}
|
|
6020
6020
|
return D.slice(0, Y) + Q;
|
|
6021
6021
|
}, Ge = (D, U) => {
|
|
6022
|
-
const { value: Q, rect: ae, table: Y, col:
|
|
6022
|
+
const { value: Q, rect: ae, table: Y, col: ne, row: re } = D;
|
|
6023
6023
|
if (!Q) return {
|
|
6024
6024
|
elements: [],
|
|
6025
6025
|
expectedHeight: yn
|
|
6026
6026
|
};
|
|
6027
|
-
const pe = Y.getBodyField(
|
|
6027
|
+
const pe = Y.getBodyField(ne, re), de = dt(Y.options?.columns || [], pe), fe = Y.getCellOriginRecord?.(ne, re) || Y.getRecordByCell?.(ne, re) || {}, xe = U || Mn({
|
|
6028
6028
|
config: de?._compConfig,
|
|
6029
6029
|
getCompConfig: de?._getCompConfig,
|
|
6030
6030
|
formData: r || {},
|
|
@@ -6066,7 +6066,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6066
6066
|
expectedHeight: Math.max(yn, Ee)
|
|
6067
6067
|
};
|
|
6068
6068
|
}, Yt = (D, U) => {
|
|
6069
|
-
const { dataValue: Q, rect: ae, table: Y, col:
|
|
6069
|
+
const { dataValue: Q, rect: ae, table: Y, col: ne, row: re, value: pe } = D, de = Y.getBodyField(ne, re), fe = dt(Y.options?.columns || [], de), xe = Y.getCellOriginRecord?.(ne, re) || Y.getRecordByCell?.(ne, re) || {}, Ee = U || Mn({
|
|
6070
6070
|
config: fe?._compConfig,
|
|
6071
6071
|
getCompConfig: fe?._getCompConfig,
|
|
6072
6072
|
formData: r || {},
|
|
@@ -6144,20 +6144,20 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6144
6144
|
D = D.replace("#", ""), D.length === 3 && (D = D.split("").map((Y) => Y + Y).join(""));
|
|
6145
6145
|
const U = parseInt(D.substring(0, 2), 16), Q = parseInt(D.substring(2, 4), 16), ae = parseInt(D.substring(4, 6), 16);
|
|
6146
6146
|
if ((U * 299 + Q * 587 + ae * 114) / 1e3 >= 128) {
|
|
6147
|
-
const Y = U / 255,
|
|
6147
|
+
const Y = U / 255, ne = Q / 255, re = ae / 255, pe = Math.max(Y, ne, re), de = Math.min(Y, ne, re);
|
|
6148
6148
|
let fe = 0, xe = 0;
|
|
6149
6149
|
const Ee = (pe + de) / 2;
|
|
6150
6150
|
if (pe !== de) {
|
|
6151
6151
|
const tt = pe - de;
|
|
6152
6152
|
switch (xe = Ee > 0.5 ? tt / (2 - pe - de) : tt / (pe + de), pe) {
|
|
6153
6153
|
case Y:
|
|
6154
|
-
fe = (
|
|
6154
|
+
fe = (ne - re) / tt + (ne < re ? 6 : 0);
|
|
6155
6155
|
break;
|
|
6156
|
-
case
|
|
6156
|
+
case ne:
|
|
6157
6157
|
fe = (re - Y) / tt + 2;
|
|
6158
6158
|
break;
|
|
6159
6159
|
case re:
|
|
6160
|
-
fe = (Y -
|
|
6160
|
+
fe = (Y - ne) / tt + 4;
|
|
6161
6161
|
break;
|
|
6162
6162
|
}
|
|
6163
6163
|
fe /= 6;
|
|
@@ -6174,14 +6174,14 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6174
6174
|
}
|
|
6175
6175
|
return "#ffffff";
|
|
6176
6176
|
}, Jt = (D) => {
|
|
6177
|
-
const { table: U, row: Q, col: ae, rect: Y, value:
|
|
6177
|
+
const { table: U, row: Q, col: ae, rect: Y, value: ne } = D, { Group: re, Text: pe } = Ue.CustomLayout, de = U.getBodyField(ae, Q), fe = dt(U.options?.columns || [], de), xe = fe?._compConfig || {}, Ee = new re({
|
|
6178
6178
|
height: Y.height,
|
|
6179
6179
|
width: Y.width,
|
|
6180
6180
|
display: "flex",
|
|
6181
6181
|
alignItems: "center",
|
|
6182
6182
|
justifyContent: fe.style?.textAlign === "center" ? "center" : fe.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6183
6183
|
}), Be = "#165dff", Te = new pe({
|
|
6184
|
-
text: String(
|
|
6184
|
+
text: String(ne ?? ""),
|
|
6185
6185
|
fontSize: 14,
|
|
6186
6186
|
fill: Be,
|
|
6187
6187
|
cursor: "pointer",
|
|
@@ -6202,7 +6202,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6202
6202
|
});
|
|
6203
6203
|
}
|
|
6204
6204
|
}), Te.addEventListener("mouseenter", (Qe) => {
|
|
6205
|
-
Qe.target.setAttribute("fill",
|
|
6205
|
+
Qe.target.setAttribute("fill", te(Be, -20)), U.scenegraph.stage.renderNextFrame();
|
|
6206
6206
|
}), Te.addEventListener("mouseleave", (Qe) => {
|
|
6207
6207
|
Qe.target.setAttribute("fill", Be), U.scenegraph.stage.renderNextFrame();
|
|
6208
6208
|
}), Ee.add(Te), {
|
|
@@ -6210,7 +6210,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6210
6210
|
renderDefault: !1
|
|
6211
6211
|
};
|
|
6212
6212
|
}, Ht = (D) => {
|
|
6213
|
-
const { table: U, row: Q, col: ae, rect: Y } = D, { height:
|
|
6213
|
+
const { table: U, row: Q, col: ae, rect: Y } = D, { height: ne, width: re } = Y ?? U.getCellRect(ae, Q), { Group: pe, CheckBox: de } = Ue.CustomLayout, fe = U.getBodyField(ae, Q), xe = dt(U.options?.columns || [], fe), Ee = U.getCellOriginRecord(ae, Q) || {}, Be = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Te = xe?.style?.textAlign === "right" ? "flex-end" : xe?.style?.textAlign === "center" ? "center" : "flex-start", Qe = (nt, me) => {
|
|
6214
6214
|
const pt = Ee?.[fe];
|
|
6215
6215
|
Ee[fe] = (Array.isArray(pt) ? pt : []).map((Ve, Dt) => Dt !== nt ? Ve : Ve && typeof Ve == "object" ? {
|
|
6216
6216
|
...Ve,
|
|
@@ -6220,7 +6220,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6220
6220
|
U.renderWithRecreateCells();
|
|
6221
6221
|
}, Ae = new pe({
|
|
6222
6222
|
width: re,
|
|
6223
|
-
height: Math.max(
|
|
6223
|
+
height: Math.max(ne || 0, 40),
|
|
6224
6224
|
display: "flex",
|
|
6225
6225
|
flexDirection: "column",
|
|
6226
6226
|
alignItems: Be,
|
|
@@ -6272,8 +6272,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6272
6272
|
renderDefault: !1
|
|
6273
6273
|
};
|
|
6274
6274
|
}, Ot = (D) => {
|
|
6275
|
-
const { table: U, row: Q, col: ae } = D, Y = U.getBodyField(ae, Q),
|
|
6276
|
-
if (
|
|
6275
|
+
const { table: U, row: Q, col: ae } = D, Y = U.getBodyField(ae, Q), ne = dt(U.options?.columns || [], Y), re = ne?._compConfig || {};
|
|
6276
|
+
if (ne?._customLayout) return ne._customLayout({
|
|
6277
6277
|
...D,
|
|
6278
6278
|
config: re,
|
|
6279
6279
|
customLayout: Ue.CustomLayout
|
|
@@ -6288,20 +6288,20 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6288
6288
|
}
|
|
6289
6289
|
return null;
|
|
6290
6290
|
}, Vt = (D) => {
|
|
6291
|
-
const { table: U, col: Q, row: ae } = D, Y = U.getBodyField(Q, ae),
|
|
6292
|
-
if (!
|
|
6291
|
+
const { table: U, col: Q, row: ae } = D, Y = U.getBodyField(Q, ae), ne = dt(U.options?.columns || [], Y);
|
|
6292
|
+
if (!ne) return {
|
|
6293
6293
|
elements: [],
|
|
6294
6294
|
expectedHeight: yn
|
|
6295
6295
|
};
|
|
6296
6296
|
const re = U.getCellOriginRecord?.(Q, ae) || U.getRecordByCell?.(Q, ae) || {}, pe = Mn({
|
|
6297
|
-
config:
|
|
6298
|
-
getCompConfig:
|
|
6297
|
+
config: ne._compConfig,
|
|
6298
|
+
getCompConfig: ne._getCompConfig,
|
|
6299
6299
|
formData: r || {},
|
|
6300
6300
|
getTableData: ht,
|
|
6301
6301
|
row: re
|
|
6302
6302
|
}), de = Wr({
|
|
6303
|
-
type:
|
|
6304
|
-
getCompType:
|
|
6303
|
+
type: ne._compType,
|
|
6304
|
+
getCompType: ne._getCompType,
|
|
6305
6305
|
config: pe,
|
|
6306
6306
|
formData: r || {},
|
|
6307
6307
|
getTableData: ht,
|
|
@@ -6322,17 +6322,17 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6322
6322
|
expectedHeight: yn
|
|
6323
6323
|
};
|
|
6324
6324
|
}, Cn = (D, U, Q, ae) => {
|
|
6325
|
-
const Y = ae.getBodyField(U, Q),
|
|
6326
|
-
if (
|
|
6327
|
-
if (
|
|
6328
|
-
const de =
|
|
6325
|
+
const Y = ae.getBodyField(U, Q), ne = dt(ae.options?.columns || [], Y);
|
|
6326
|
+
if (ne._fieldFormat) return ne._fieldFormat(D, U, Q, ae);
|
|
6327
|
+
if (ne._compType === "dateTime") {
|
|
6328
|
+
const de = ne._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6329
6329
|
return Ur(D[Y], de);
|
|
6330
6330
|
}
|
|
6331
6331
|
const re = Df(D[Y], c, {
|
|
6332
|
-
type:
|
|
6333
|
-
getCompType:
|
|
6334
|
-
getCompConfig:
|
|
6335
|
-
config:
|
|
6332
|
+
type: ne._compType,
|
|
6333
|
+
getCompType: ne._getCompType,
|
|
6334
|
+
getCompConfig: ne._getCompConfig,
|
|
6335
|
+
config: ne._compConfig,
|
|
6336
6336
|
formData: r,
|
|
6337
6337
|
getTableData: ht,
|
|
6338
6338
|
row: D
|
|
@@ -6342,17 +6342,17 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6342
6342
|
p[pe] = !0;
|
|
6343
6343
|
}
|
|
6344
6344
|
return re.label;
|
|
6345
|
-
},
|
|
6345
|
+
}, G = () => {
|
|
6346
6346
|
if (!u?.value) return !1;
|
|
6347
6347
|
const D = Object.keys(p);
|
|
6348
6348
|
return D.length === 0 ? !1 : D.every((U) => u.value?.[U] === 9);
|
|
6349
6349
|
};
|
|
6350
|
-
at(() =>
|
|
6350
|
+
at(() => G(), (D) => {
|
|
6351
6351
|
D && v && v.renderWithRecreateCells();
|
|
6352
6352
|
});
|
|
6353
6353
|
const le = (D) => {
|
|
6354
6354
|
const U = D.filter((Q) => Q.config?.display !== !1).map((Q) => {
|
|
6355
|
-
const { id: ae, type: Y, config:
|
|
6355
|
+
const { id: ae, type: Y, config: ne, getCompConfig: re, getCompType: pe, children: de, customLayout: fe } = Q, { label: xe, width: Ee, minWidth: Be, maxWidth: Te, align: Qe, headerAlign: ze, fieldFormat: Ae, editor: et, frozen: tt, ...ut } = ne || {}, nt = ze ?? Qe, me = {
|
|
6356
6356
|
field: ae,
|
|
6357
6357
|
title: xe,
|
|
6358
6358
|
width: Ee,
|
|
@@ -6371,20 +6371,20 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6371
6371
|
return (Ve || pt) && (me.editor = Ve || "j-comp-editor", S = !0), pt ? me.customRender = Vt : (Y === "j-switch" && (me.customRender = Re), Y === "j-rate" && (me.customRender = Me), Y === "j-slider" && (me.customRender = Oe), (Y === "j-tag" || Y === "j-input-tag") && (me.customRender = Yt), Y === "j-icon" && (me.customRender = Ge)), Y === "link" && (me.customLayout = Jt), Y === "checkbox" && (me.customLayout = Ht), Y === "j-switch" && (me.minWidth = me.minWidth || Ee, me.maxWidth = me.maxWidth || Ee), fe && (me.customLayout = Ot), me.fieldFormat = Cn, de && de.length > 0 && (me.columns = le(de)), me;
|
|
6372
6372
|
});
|
|
6373
6373
|
return o.isTree && U.length > 0 && (U[0].tree = !0), U;
|
|
6374
|
-
},
|
|
6375
|
-
const Q = D.replace("#", ""), ae = parseInt(Q, 16), Y = Math.min(255, Math.max(0, (ae >> 16) + U)),
|
|
6376
|
-
return `#${(Y << 16 |
|
|
6374
|
+
}, te = (D, U) => {
|
|
6375
|
+
const Q = D.replace("#", ""), ae = parseInt(Q, 16), Y = Math.min(255, Math.max(0, (ae >> 16) + U)), ne = Math.min(255, Math.max(0, (ae >> 8 & 255) + U)), re = Math.min(255, Math.max(0, (ae & 255) + U));
|
|
6376
|
+
return `#${(Y << 16 | ne << 8 | re).toString(16).padStart(6, "0")}`;
|
|
6377
6377
|
}, oe = () => {
|
|
6378
6378
|
let D = x;
|
|
6379
6379
|
o.isPage && (D = It.value + x);
|
|
6380
6380
|
let U = bn(String(D)) || 0;
|
|
6381
6381
|
return o.subColumns && o.subColumns.length > 0 && (U = U + 32), Math.max(45, U + 18);
|
|
6382
6382
|
}, ge = (D) => {
|
|
6383
|
-
let U = (Q, ae, Y,
|
|
6384
|
-
const re =
|
|
6383
|
+
let U = (Q, ae, Y, ne) => {
|
|
6384
|
+
const re = ne.getRecordIndexByCell(ae, Y);
|
|
6385
6385
|
return o.isPage && !D ? It.value + re + 1 : re + 1;
|
|
6386
6386
|
};
|
|
6387
|
-
return D && (U = (Q, ae, Y,
|
|
6387
|
+
return D && (U = (Q, ae, Y, ne) => ne.getRecordIndexByCell(ae, Y) + 1), {
|
|
6388
6388
|
field: "__sequence__",
|
|
6389
6389
|
title: "序号",
|
|
6390
6390
|
width: T,
|
|
@@ -6425,11 +6425,11 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6425
6425
|
U.push(Q);
|
|
6426
6426
|
return;
|
|
6427
6427
|
}
|
|
6428
|
-
const ae = ot(Q.columns), Y = [],
|
|
6428
|
+
const ae = ot(Q.columns), Y = [], ne = [], re = [];
|
|
6429
6429
|
if (ae.forEach((pe) => {
|
|
6430
6430
|
const de = Le(pe);
|
|
6431
|
-
de === "left" ? Y.push(pe) : de === "right" ?
|
|
6432
|
-
}), (Y.length > 0 ? 1 : 0) + (
|
|
6431
|
+
de === "left" ? Y.push(pe) : de === "right" ? ne.push(pe) : re.push(pe);
|
|
6432
|
+
}), (Y.length > 0 ? 1 : 0) + (ne.length > 0 ? 1 : 0) + (re.length > 0 ? 1 : 0) <= 1) {
|
|
6433
6433
|
Q.columns = ae, U.push(Q);
|
|
6434
6434
|
return;
|
|
6435
6435
|
}
|
|
@@ -6439,9 +6439,9 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6439
6439
|
}), re.length && U.push({
|
|
6440
6440
|
...Q,
|
|
6441
6441
|
columns: re
|
|
6442
|
-
}),
|
|
6442
|
+
}), ne.length && U.push({
|
|
6443
6443
|
...Q,
|
|
6444
|
-
columns:
|
|
6444
|
+
columns: ne
|
|
6445
6445
|
});
|
|
6446
6446
|
}), U;
|
|
6447
6447
|
}, St = (D) => {
|
|
@@ -6458,19 +6458,19 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6458
6458
|
}, ft = (D, U, Q, ae) => {
|
|
6459
6459
|
k = 0, w = 0, S = !1;
|
|
6460
6460
|
const Y = {};
|
|
6461
|
-
let
|
|
6462
|
-
|
|
6461
|
+
let ne = le(D);
|
|
6462
|
+
ne.length === 0 && (ne = [je()]), ne = ot(ne);
|
|
6463
6463
|
const re = [], pe = [], de = [];
|
|
6464
|
-
|
|
6464
|
+
ne.forEach((Be) => {
|
|
6465
6465
|
const Te = Le(Be);
|
|
6466
6466
|
Te === "left" ? re.push(Be) : Te === "right" ? pe.push(Be) : de.push(Be);
|
|
6467
6467
|
});
|
|
6468
6468
|
const fe = St(re), xe = St(pe);
|
|
6469
|
-
w += fe.left, k += xe.right,
|
|
6469
|
+
w += fe.left, k += xe.right, ne = [
|
|
6470
6470
|
...re,
|
|
6471
6471
|
...de,
|
|
6472
6472
|
...pe
|
|
6473
|
-
], U && (
|
|
6473
|
+
], U && (ne.unshift(ge(ae)), w++), Q.length > 0 && (ne.push(Xe(Q)), k++), S && (Y.editCellTrigger = "click", Y.keyboardOptions = {
|
|
6474
6474
|
copySelected: !0,
|
|
6475
6475
|
cutSelected: !0,
|
|
6476
6476
|
pasteValueToCell: !0,
|
|
@@ -6481,8 +6481,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6481
6481
|
if (Te?._compType === "checkbox" || Te?.customRender === Vt || Te?.customRender === Yt || Array.isArray(Te?.columns) && Ee(Te.columns)) return !0;
|
|
6482
6482
|
return !1;
|
|
6483
6483
|
};
|
|
6484
|
-
return Ee(
|
|
6485
|
-
columns:
|
|
6484
|
+
return Ee(ne) && !(o.subColumns && o.subColumns.length > 0) && (Y.defaultRowHeight = "auto", Y.defaultHeaderRowHeight = 40), {
|
|
6485
|
+
columns: ne,
|
|
6486
6486
|
option: Y
|
|
6487
6487
|
};
|
|
6488
6488
|
}, Sn = () => {
|
|
@@ -6548,16 +6548,16 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6548
6548
|
if (Y.hierarchyState === Ue.TYPES.HierarchyState.expand && Y.originData?.children === !0) {
|
|
6549
6549
|
v.setLoadingHierarchyState(Y.col, Y.row);
|
|
6550
6550
|
try {
|
|
6551
|
-
const
|
|
6552
|
-
o.isTree && v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(
|
|
6553
|
-
} catch (
|
|
6554
|
-
console.error("Failed to load detail data:",
|
|
6551
|
+
const ne = await o.loadChildren(Y.originData);
|
|
6552
|
+
o.isTree && v && typeof v.setRecordChildren == "function" ? v.setRecordChildren(ne, Y.col, Y.row) : b && typeof b.setRecordChildren == "function" ? b.setRecordChildren(ne, Y.col, Y.row) : v && typeof v.setRecordChildren == "function" && v.setRecordChildren(ne, Y.col, Y.row);
|
|
6553
|
+
} catch (ne) {
|
|
6554
|
+
console.error("Failed to load detail data:", ne), v.setLoadingHierarchyState(Y.col, Y.row);
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
6557
|
}), v.on("click_cell", (Y) => {
|
|
6558
|
-
const { col:
|
|
6558
|
+
const { col: ne, row: re, cellType: pe, originData: de } = Y, fe = de || { children: v.records };
|
|
6559
6559
|
if (Jn.value) {
|
|
6560
|
-
if (pe === "checkbox" &&
|
|
6560
|
+
if (pe === "checkbox" && ne == 0) {
|
|
6561
6561
|
if (fe.__checkState = Y.target.attribute.checked, re === 0 && fe.__checkState === !1) {
|
|
6562
6562
|
const Ee = (Be) => {
|
|
6563
6563
|
!Array.isArray(Be) || Be.length === 0 || Be.forEach((Te) => {
|
|
@@ -6657,14 +6657,14 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6657
6657
|
!Array.isArray(de) || de.length === 0 || de.forEach((fe) => {
|
|
6658
6658
|
Q(fe), ae(fe);
|
|
6659
6659
|
});
|
|
6660
|
-
}, Y = v.stateManager.checkedState,
|
|
6660
|
+
}, Y = v.stateManager.checkedState, ne = v.records, re = (pe, de, fe) => {
|
|
6661
6661
|
const xe = fe[de[pe]];
|
|
6662
6662
|
return pe < de.length - 1 && xe?.children && xe.children.length > 0 ? re(pe + 1, de, xe.children || []) : xe;
|
|
6663
6663
|
};
|
|
6664
6664
|
return Y.forEach((pe, de) => {
|
|
6665
6665
|
const fe = pe?._checkState;
|
|
6666
6666
|
if (fe === "indeterminate" || fe === !0) {
|
|
6667
|
-
const xe = re(0, (de + "").split(",").map(Number),
|
|
6667
|
+
const xe = re(0, (de + "").split(",").map(Number), ne);
|
|
6668
6668
|
Q(xe), fe === !0 && ae(xe);
|
|
6669
6669
|
}
|
|
6670
6670
|
}), D;
|
|
@@ -6697,8 +6697,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6697
6697
|
o.isTree ? ae(Y) : Y.forEach((pe) => {
|
|
6698
6698
|
pe[Q] = U.has(cn(pe));
|
|
6699
6699
|
});
|
|
6700
|
-
const
|
|
6701
|
-
|
|
6700
|
+
const ne = Sn();
|
|
6701
|
+
ne.records = Y, v.updateOption(ne, {
|
|
6702
6702
|
clearColWidthCache: !1,
|
|
6703
6703
|
clearRowHeightCache: !1
|
|
6704
6704
|
}), o.heightMode === "auto" && (y.value = v.getAllRowsHeight());
|
|
@@ -6826,7 +6826,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6826
6826
|
}, null, 512)], 4),
|
|
6827
6827
|
H("div", Hp, [e.isPage || !Ko.value && (Qt.value || Yn.value) ? (R(), L("div", Op, [
|
|
6828
6828
|
Z(ae, null, {
|
|
6829
|
-
default:
|
|
6829
|
+
default: q(() => [Qt.value ? (R(), N(Q, {
|
|
6830
6830
|
key: 0,
|
|
6831
6831
|
type: "link",
|
|
6832
6832
|
label: en.value,
|
|
@@ -6847,9 +6847,9 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6847
6847
|
e.isPage ? (R(), N(Y, {
|
|
6848
6848
|
key: 0,
|
|
6849
6849
|
"current-page": be.value,
|
|
6850
|
-
"onUpdate:currentPage": U[0] || (U[0] = (
|
|
6850
|
+
"onUpdate:currentPage": U[0] || (U[0] = (ne) => be.value = ne),
|
|
6851
6851
|
"page-size": Kt.value,
|
|
6852
|
-
"onUpdate:pageSize": U[1] || (U[1] = (
|
|
6852
|
+
"onUpdate:pageSize": U[1] || (U[1] = (ne) => Kt.value = ne),
|
|
6853
6853
|
"page-sizes": e.pageSizes || [
|
|
6854
6854
|
100,
|
|
6855
6855
|
200,
|
|
@@ -6872,16 +6872,16 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
6872
6872
|
style: se(j.value),
|
|
6873
6873
|
onMouseenter: K,
|
|
6874
6874
|
onMouseleave: B
|
|
6875
|
-
}, [(R(!0), L(Ce, null, He(z.value, (
|
|
6876
|
-
key:
|
|
6875
|
+
}, [(R(!0), L(Ce, null, He(z.value, (ne) => (R(), L("div", {
|
|
6876
|
+
key: ne.id,
|
|
6877
6877
|
class: "j-table-dropdown-item",
|
|
6878
6878
|
style: se({
|
|
6879
|
-
color:
|
|
6880
|
-
cursor:
|
|
6881
|
-
opacity:
|
|
6879
|
+
color: ne.config?.disabled ? "var(--j-color-text-disabled)" : ne.config?.danger ? "var(--j-color-danger)" : "var(--j-color-primary)",
|
|
6880
|
+
cursor: ne.config?.disabled ? "not-allowed" : "pointer",
|
|
6881
|
+
opacity: ne.config?.disabled ? 0.7 : 1
|
|
6882
6882
|
}),
|
|
6883
|
-
onClick: (re) => $e(
|
|
6884
|
-
}, ve(
|
|
6883
|
+
onClick: (re) => $e(ne)
|
|
6884
|
+
}, ve(ne.label), 13, Ip))), 128))], 36)) : ee("", !0)
|
|
6885
6885
|
], 6);
|
|
6886
6886
|
};
|
|
6887
6887
|
}
|
|
@@ -7118,7 +7118,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7118
7118
|
}),
|
|
7119
7119
|
onClosed: j
|
|
7120
7120
|
}, {
|
|
7121
|
-
default:
|
|
7121
|
+
default: q(() => [H("div", {
|
|
7122
7122
|
class: "j-dialog-header",
|
|
7123
7123
|
onMousedown: ce
|
|
7124
7124
|
}, [H("div", {
|
|
@@ -7129,7 +7129,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7129
7129
|
key: 0,
|
|
7130
7130
|
size: 0
|
|
7131
7131
|
}, {
|
|
7132
|
-
default:
|
|
7132
|
+
default: q(() => [Z($e, {
|
|
7133
7133
|
type: "text",
|
|
7134
7134
|
icon: "mdi:close",
|
|
7135
7135
|
onClick: T
|
|
@@ -7152,7 +7152,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7152
7152
|
space: 160,
|
|
7153
7153
|
"finish-status": "success"
|
|
7154
7154
|
}, {
|
|
7155
|
-
default:
|
|
7155
|
+
default: q(() => [(R(!0), L(Ce, null, He(X.value, (Re, Me) => (R(), N(Ke, {
|
|
7156
7156
|
key: Me,
|
|
7157
7157
|
title: J(i)(Re.title)
|
|
7158
7158
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -7160,7 +7160,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7160
7160
|
}, 8, ["active"])], 4)])) : ee("", !0),
|
|
7161
7161
|
H("div", Np, [Ye(B.$slots, "default")]),
|
|
7162
7162
|
e.hasBtns ? (R(), L("div", Wp, [Z(we, { size: 8 }, {
|
|
7163
|
-
default:
|
|
7163
|
+
default: q(() => [
|
|
7164
7164
|
e.isStep ? (R(), N($e, {
|
|
7165
7165
|
key: 0,
|
|
7166
7166
|
size: "mini",
|
|
@@ -7356,7 +7356,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7356
7356
|
"destroy-on-close": e.destroyOnClose,
|
|
7357
7357
|
onClosed: m
|
|
7358
7358
|
}, {
|
|
7359
|
-
default:
|
|
7359
|
+
default: q(() => [zn((R(), L("div", {
|
|
7360
7360
|
class: "j-block j-dialog-full-window",
|
|
7361
7361
|
"element-loading-text": J(r)(s.value)
|
|
7362
7362
|
}, [H("div", Gp, [
|
|
@@ -7379,16 +7379,16 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7379
7379
|
space: 160,
|
|
7380
7380
|
"finish-status": "success"
|
|
7381
7381
|
}, {
|
|
7382
|
-
default:
|
|
7382
|
+
default: q(() => [(R(!0), L(Ce, null, He(x.value, (ye, P) => (R(), N(z, {
|
|
7383
7383
|
key: P,
|
|
7384
7384
|
title: J(r)(ye.title)
|
|
7385
7385
|
}, null, 8, ["title"]))), 128))]),
|
|
7386
7386
|
_: 1
|
|
7387
7387
|
}, 8, ["active"])) : ee("", !0)], 4),
|
|
7388
7388
|
H("div", eg, [Z(E, { size: 0 }, {
|
|
7389
|
-
default:
|
|
7389
|
+
default: q(() => [
|
|
7390
7390
|
e.hasBtns ? (R(), N(E, { key: 0 }, {
|
|
7391
|
-
default:
|
|
7391
|
+
default: q(() => [
|
|
7392
7392
|
e.isStep ? (R(), N(M, {
|
|
7393
7393
|
key: 0,
|
|
7394
7394
|
size: "mini",
|
|
@@ -7621,7 +7621,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7621
7621
|
"close-on-click-modal": !0,
|
|
7622
7622
|
onClosed: d
|
|
7623
7623
|
}, {
|
|
7624
|
-
default:
|
|
7624
|
+
default: q(() => [zn((R(), L("div", {
|
|
7625
7625
|
class: We(["j-drawer--warpper", { "j-drawer--warpper-hasSteps": e.isStep }]),
|
|
7626
7626
|
"element-loading-text": l.value
|
|
7627
7627
|
}, [
|
|
@@ -7635,7 +7635,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7635
7635
|
} }),
|
|
7636
7636
|
H("div", rg, [Ye(A.$slots, "default")]),
|
|
7637
7637
|
e.hasBtns ? (R(), L("div", lg, [Z(M, { size: 8 }, {
|
|
7638
|
-
default:
|
|
7638
|
+
default: q(() => [
|
|
7639
7639
|
e.isStep ? (R(), N($, {
|
|
7640
7640
|
key: 0,
|
|
7641
7641
|
size: "mini",
|
|
@@ -7691,7 +7691,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7691
7691
|
space: 160,
|
|
7692
7692
|
"finish-status": "success"
|
|
7693
7693
|
}, {
|
|
7694
|
-
default:
|
|
7694
|
+
default: q(() => [(R(!0), L(Ce, null, He(T.value, (ye, P) => (R(), N(E, {
|
|
7695
7695
|
key: P,
|
|
7696
7696
|
title: J(o)(ye.title)
|
|
7697
7697
|
}, null, 8, ["title"]))), 128))]),
|
|
@@ -7814,7 +7814,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7814
7814
|
onClosed: h,
|
|
7815
7815
|
onCancel: p
|
|
7816
7816
|
}, {
|
|
7817
|
-
default:
|
|
7817
|
+
default: q(() => [Ye(_.$slots, "default")]),
|
|
7818
7818
|
_: 3
|
|
7819
7819
|
}, 8, [
|
|
7820
7820
|
"visible",
|
|
@@ -7853,7 +7853,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7853
7853
|
onClosed: h,
|
|
7854
7854
|
onCancel: p
|
|
7855
7855
|
}, {
|
|
7856
|
-
default:
|
|
7856
|
+
default: q(() => [Ye(_.$slots, "default")]),
|
|
7857
7857
|
_: 3
|
|
7858
7858
|
}, 8, [
|
|
7859
7859
|
"visible",
|
|
@@ -7893,7 +7893,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7893
7893
|
onClosed: h,
|
|
7894
7894
|
onCancel: p
|
|
7895
7895
|
}, {
|
|
7896
|
-
default:
|
|
7896
|
+
default: q(() => [Ye(_.$slots, "default")]),
|
|
7897
7897
|
_: 3
|
|
7898
7898
|
}, 8, [
|
|
7899
7899
|
"visible",
|
|
@@ -7973,8 +7973,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7973
7973
|
onKeyup: fr($t(s, ["stop"]), ["enter"]),
|
|
7974
7974
|
onKeydown: fr($t(c, ["stop"]), ["enter"])
|
|
7975
7975
|
}, {
|
|
7976
|
-
prefix:
|
|
7977
|
-
default:
|
|
7976
|
+
prefix: q(() => [Z(p, null, {
|
|
7977
|
+
default: q(() => [(R(!0), L(Ce, null, He(i.value, (y, _) => (R(), N(h, {
|
|
7978
7978
|
key: _,
|
|
7979
7979
|
type: "info",
|
|
7980
7980
|
closable: !e.readonly,
|
|
@@ -7982,7 +7982,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
7982
7982
|
size: e.size,
|
|
7983
7983
|
onClose: $t((m) => u(_), ["prevent"])
|
|
7984
7984
|
}, {
|
|
7985
|
-
default:
|
|
7985
|
+
default: q(() => [on(ve(y), 1)]),
|
|
7986
7986
|
_: 2
|
|
7987
7987
|
}, 1032, [
|
|
7988
7988
|
"closable",
|
|
@@ -8262,13 +8262,13 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8262
8262
|
size: 72
|
|
8263
8263
|
}, null, 8, ["style"])),
|
|
8264
8264
|
H("div", Mg, [Z(i, { ellipsis: "" }, {
|
|
8265
|
-
default:
|
|
8265
|
+
default: q(() => [on(ve(`${J(t)(s.name)}${s.status === "unUpload" ? "(" + J(t)("未传") + ")" : ""}`), 1)]),
|
|
8266
8266
|
_: 2
|
|
8267
8267
|
}, 1024), H("div", null, [s.status === "uploading" ? (R(), N(i, { key: 0 }, {
|
|
8268
|
-
default:
|
|
8268
|
+
default: q(() => [on(ve(J(ti)(s.uploadSize)) + "/", 1)]),
|
|
8269
8269
|
_: 2
|
|
8270
8270
|
}, 1024)) : ee("", !0), Z(i, null, {
|
|
8271
|
-
default:
|
|
8271
|
+
default: q(() => [on(ve(J(ti)(s.size)), 1)]),
|
|
8272
8272
|
_: 2
|
|
8273
8273
|
}, 1024)])]),
|
|
8274
8274
|
zn(H("div", jg, [s.status === "done" || s.status === "unUpload" ? (R(), N(r, {
|
|
@@ -8337,15 +8337,15 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8337
8337
|
underline: "never",
|
|
8338
8338
|
onClick: $t((u) => e.previewFile(s), ["stop"])
|
|
8339
8339
|
}, {
|
|
8340
|
-
default:
|
|
8340
|
+
default: q(() => [on(ve(`${J(t)(s.name)}${s.status === "unUpload" ? "(" + J(t)("未传") + ")" : ""}`), 1)]),
|
|
8341
8341
|
_: 2
|
|
8342
8342
|
}, 1032, ["onClick"])]),
|
|
8343
8343
|
s.status === "uploading" ? (R(), N(i, { key: 0 }, {
|
|
8344
|
-
default:
|
|
8344
|
+
default: q(() => [on(ve(J(ti)(s.uploadSize)) + "/", 1)]),
|
|
8345
8345
|
_: 2
|
|
8346
8346
|
}, 1024)) : ee("", !0),
|
|
8347
8347
|
Z(i, null, {
|
|
8348
|
-
default:
|
|
8348
|
+
default: q(() => [on(ve(J(ti)(s.size)), 1)]),
|
|
8349
8349
|
_: 2
|
|
8350
8350
|
}, 1024),
|
|
8351
8351
|
s.status === "done" && e.isShowSuccessIcon ? (R(), N(o, {
|
|
@@ -8678,12 +8678,12 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8678
8678
|
"on-preview": $e,
|
|
8679
8679
|
"on-exceed": Xe
|
|
8680
8680
|
}, {
|
|
8681
|
-
default:
|
|
8681
|
+
default: q(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (R(), L("div", Lg, [Z(Me, { icon: "mdi:add" }), H("div", zg, ve(J(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !F.value ? (R(), N(Et, {
|
|
8682
8682
|
key: 1,
|
|
8683
8683
|
placement: "bottom",
|
|
8684
8684
|
title: e.isUploadImg ? J(l)("图片列表") : J(l)("文件列表")
|
|
8685
8685
|
}, {
|
|
8686
|
-
content:
|
|
8686
|
+
content: q(() => [Z(Fl, {
|
|
8687
8687
|
style: se({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
8688
8688
|
list: m.value,
|
|
8689
8689
|
"preview-file": $e,
|
|
@@ -8696,7 +8696,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8696
8696
|
"is-upload-img",
|
|
8697
8697
|
"readonly"
|
|
8698
8698
|
])]),
|
|
8699
|
-
default:
|
|
8699
|
+
default: q(() => [Z(Oe, {
|
|
8700
8700
|
type: e.btnType,
|
|
8701
8701
|
size: e.btnSize,
|
|
8702
8702
|
icon: "mdi:tray-upload",
|
|
@@ -8712,7 +8712,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8712
8712
|
type: e.btnType,
|
|
8713
8713
|
size: e.btnSize
|
|
8714
8714
|
}, {
|
|
8715
|
-
default:
|
|
8715
|
+
default: q(() => [Z(Me, { icon: "mdi:tray-upload" }), on(" " + ve(e.placeholder), 1)]),
|
|
8716
8716
|
_: 1
|
|
8717
8717
|
}, 8, ["type", "size"]))]),
|
|
8718
8718
|
_: 1
|
|
@@ -8727,7 +8727,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8727
8727
|
"file-list"
|
|
8728
8728
|
]),
|
|
8729
8729
|
e.isTip ? (R(), L("div", Dg, [Z(Yt, null, {
|
|
8730
|
-
default:
|
|
8730
|
+
default: q(() => [on(ve(`${J(l)("只能上传不超过{0}的{1}文件", `${e.maxSize}${e.sizeType}`, `${h.value || ""}`)},${g.value}`), 1)]),
|
|
8731
8731
|
_: 1
|
|
8732
8732
|
})])) : ee("", !0),
|
|
8733
8733
|
!e.isLayer && !e.isUploadImg && e.showFileList && m.value.length > 0 ? (R(), N(Fl, {
|
|
@@ -8752,7 +8752,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
8752
8752
|
"has-btns": !!J(c),
|
|
8753
8753
|
onOk: Ke
|
|
8754
8754
|
}, {
|
|
8755
|
-
default:
|
|
8755
|
+
default: q(() => [ce.value && P.value ? (R(), L("div", $g, [H("img", {
|
|
8756
8756
|
width: "100%",
|
|
8757
8757
|
style: { "max-width": "1024px" },
|
|
8758
8758
|
src: P.value,
|
|
@@ -9738,21 +9738,21 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
9738
9738
|
onOk: m,
|
|
9739
9739
|
onClosed: v
|
|
9740
9740
|
}, {
|
|
9741
|
-
default:
|
|
9741
|
+
default: q(() => [H("div", ov, [
|
|
9742
9742
|
H("div", iv, [H("div", rv, [H("span", lv, ve(J(n)("计算公式")) + "=", 1), Z(T, null, {
|
|
9743
|
-
default:
|
|
9743
|
+
default: q(() => [
|
|
9744
9744
|
Z(C, {
|
|
9745
9745
|
type: "text",
|
|
9746
9746
|
onClick: h
|
|
9747
9747
|
}, {
|
|
9748
|
-
icon:
|
|
9748
|
+
icon: q(() => [Z(x, { icon: "arrowLeft" })]),
|
|
9749
9749
|
_: 1
|
|
9750
9750
|
}),
|
|
9751
9751
|
Z(C, {
|
|
9752
9752
|
type: "text",
|
|
9753
9753
|
onClick: p
|
|
9754
9754
|
}, {
|
|
9755
|
-
icon:
|
|
9755
|
+
icon: q(() => [Z(x, { icon: "arrowRight" })]),
|
|
9756
9756
|
_: 1
|
|
9757
9757
|
}),
|
|
9758
9758
|
Z(C, {
|
|
@@ -9770,7 +9770,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
9770
9770
|
_: 1
|
|
9771
9771
|
})]), H("div", sv, [s.cells.length == 0 ? (R(), L("span", cv)) : ee("", !0), (R(!0), L(Ce, null, He(s.cells, (j, z) => (R(), L(Ce, { key: z }, [j.type == "fun" ? (R(), L("span", uv, ve(j.value.toUpperCase()), 1)) : j.type == "comp" ? (R(), L("span", dv, " #" + ve(k(j.value)) + "# ", 1)) : j.type == "num" ? (R(), L("span", fv, ve(j.value), 1)) : ee("", !0), z + 1 == s.cursor ? (R(), L("span", hv)) : ee("", !0)], 64))), 128))])]),
|
|
9772
9772
|
Z(T, { class: "j-input-count-mid" }, {
|
|
9773
|
-
default:
|
|
9773
|
+
default: q(() => [(R(), L(Ce, null, He(i, (j, z) => Z(C, {
|
|
9774
9774
|
key: z,
|
|
9775
9775
|
label: j.label + "",
|
|
9776
9776
|
onClick: ($) => d(j.value, "num")
|
|
@@ -9782,7 +9782,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
9782
9782
|
wrap: "",
|
|
9783
9783
|
style: { "margin-bottom": "16px" }
|
|
9784
9784
|
}, {
|
|
9785
|
-
default:
|
|
9785
|
+
default: q(() => [(R(!0), L(Ce, null, He(j.children, ($) => (R(), N(C, {
|
|
9786
9786
|
key: $.value,
|
|
9787
9787
|
onClick: (M) => d($.value, "comp"),
|
|
9788
9788
|
label: J(n)($.label)
|
|
@@ -9990,7 +9990,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
9990
9990
|
onOk: r,
|
|
9991
9991
|
onClosed: c
|
|
9992
9992
|
}, {
|
|
9993
|
-
default:
|
|
9993
|
+
default: q(() => [Ye(u.$slots, "default")]),
|
|
9994
9994
|
_: 3
|
|
9995
9995
|
}, 8, [
|
|
9996
9996
|
"height",
|
|
@@ -10047,11 +10047,11 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
10047
10047
|
open: r,
|
|
10048
10048
|
onChange: s
|
|
10049
10049
|
}, {
|
|
10050
|
-
default:
|
|
10050
|
+
default: q(() => [Z(p, {
|
|
10051
10051
|
"right-move": !1,
|
|
10052
10052
|
right: 560
|
|
10053
10053
|
}, Dn({
|
|
10054
|
-
default:
|
|
10054
|
+
default: q(() => [Z(h, {
|
|
10055
10055
|
modelValue: i.value,
|
|
10056
10056
|
"onUpdate:modelValue": d[0] || (d[0] = (y) => i.value = y),
|
|
10057
10057
|
mode: e.mode,
|
|
@@ -10066,7 +10066,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
10066
10066
|
_: 2
|
|
10067
10067
|
}, [e.example ? {
|
|
10068
10068
|
name: "right",
|
|
10069
|
-
fn:
|
|
10069
|
+
fn: q(() => [Z(h, {
|
|
10070
10070
|
"model-value": e.example,
|
|
10071
10071
|
mode: e.mode,
|
|
10072
10072
|
readonly: ""
|
|
@@ -10211,7 +10211,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
10211
10211
|
onClear: f,
|
|
10212
10212
|
onChange: d
|
|
10213
10213
|
}), {
|
|
10214
|
-
[e.inputType]:
|
|
10214
|
+
[e.inputType]: q(() => [Z(_, {
|
|
10215
10215
|
modelValue: l.value,
|
|
10216
10216
|
"onUpdate:modelValue": y[0] || (y[0] = (v) => l.value = v),
|
|
10217
10217
|
size: e.size,
|
|
@@ -10465,7 +10465,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
10465
10465
|
onShow: l,
|
|
10466
10466
|
onHide: c
|
|
10467
10467
|
}, {
|
|
10468
|
-
reference:
|
|
10468
|
+
reference: q(() => [H("div", Ay, [Z(f, {
|
|
10469
10469
|
title: J(n)("这里是标题"),
|
|
10470
10470
|
content: J(n)("这里是信息描述"),
|
|
10471
10471
|
titleType: e.modelValue,
|
|
@@ -10487,7 +10487,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
10487
10487
|
icon: r.value,
|
|
10488
10488
|
size: 20
|
|
10489
10489
|
}, null, 8, ["icon"])])]),
|
|
10490
|
-
default:
|
|
10490
|
+
default: q(() => [(R(), L(Ce, null, He(8, (p) => H("div", {
|
|
10491
10491
|
class: "j-input-decorated-title-wrapper",
|
|
10492
10492
|
key: p
|
|
10493
10493
|
}, [Z(f, {
|
|
@@ -11010,8 +11010,8 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11010
11010
|
key: 0,
|
|
11011
11011
|
placement: "right"
|
|
11012
11012
|
}, {
|
|
11013
|
-
content:
|
|
11014
|
-
default:
|
|
11013
|
+
content: q(() => [H("span", null, ve(J(n)(e.item.label)), 1)]),
|
|
11014
|
+
default: q(() => [H("div", {
|
|
11015
11015
|
class: We(["j-menu-item", { collapsed: e.collapsed }]),
|
|
11016
11016
|
onClick: l[0] || (l[0] = $t((f) => i(e.item), ["stop"]))
|
|
11017
11017
|
}, [H("div", {
|
|
@@ -11041,7 +11041,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11041
11041
|
width: "200px",
|
|
11042
11042
|
"popper-class": "j-sub-menu"
|
|
11043
11043
|
}, {
|
|
11044
|
-
reference:
|
|
11044
|
+
reference: q(() => [H("div", { class: We(["j-menu-item", { collapsed: e.collapsed }]) }, [H("div", {
|
|
11045
11045
|
class: We(["j-menu-item-content", {
|
|
11046
11046
|
active: e.item.value === J(a),
|
|
11047
11047
|
"p-active": e.parentActives.includes(e.item.value)
|
|
@@ -11061,7 +11061,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11061
11061
|
H("div", Ky, ve(J(n)(e.item.label)), 1),
|
|
11062
11062
|
e.item.hasChildren && !e.isHorizontal && !e.isVertical ? (R(), L("div", Gy)) : ee("", !0)
|
|
11063
11063
|
], 6)], 2)]),
|
|
11064
|
-
default:
|
|
11064
|
+
default: q(() => [Z(Yy, {
|
|
11065
11065
|
"p-id": e.item.value,
|
|
11066
11066
|
onClick: i
|
|
11067
11067
|
}, null, 8, ["p-id"])]),
|
|
@@ -11391,7 +11391,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11391
11391
|
placeholder: J(n)("搜索"),
|
|
11392
11392
|
clearable: ""
|
|
11393
11393
|
}, {
|
|
11394
|
-
prefix:
|
|
11394
|
+
prefix: q(() => [Z(p, { icon: "mdi:search" })]),
|
|
11395
11395
|
_: 1
|
|
11396
11396
|
}, 8, ["modelValue", "placeholder"])])) : ee("", !0),
|
|
11397
11397
|
r.value ? (R(), L("div", cm, [Z(y, {
|
|
@@ -11773,7 +11773,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11773
11773
|
placement: "bottom",
|
|
11774
11774
|
content: r.value ? J(a)("取消固定") : J(a)("固定显示")
|
|
11775
11775
|
}, {
|
|
11776
|
-
default:
|
|
11776
|
+
default: q(() => [H("div", {
|
|
11777
11777
|
class: "pin-btn",
|
|
11778
11778
|
onClick: c
|
|
11779
11779
|
}, [Z(b, {
|
|
@@ -11974,7 +11974,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
11974
11974
|
placeholder: J(a)("搜索 (多个关键词用空格隔开)"),
|
|
11975
11975
|
clearable: ""
|
|
11976
11976
|
}, {
|
|
11977
|
-
prefix:
|
|
11977
|
+
prefix: q(() => [Z(C, { icon: "mdi:search" })]),
|
|
11978
11978
|
_: 1
|
|
11979
11979
|
}, 8, ["modelValue", "placeholder"])]), H("div", Mm, [Z(T, {
|
|
11980
11980
|
ref_key: "treeRef",
|
|
@@ -12275,7 +12275,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12275
12275
|
return qt.length === 0 ? [va] : [...qt, va];
|
|
12276
12276
|
});
|
|
12277
12277
|
let Cn;
|
|
12278
|
-
const
|
|
12278
|
+
const G = async (Se) => {
|
|
12279
12279
|
d.value++;
|
|
12280
12280
|
const Pe = {};
|
|
12281
12281
|
Se && (Cn = Se), Cn && (Pe.query = Cn);
|
|
@@ -12308,13 +12308,13 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12308
12308
|
d.value = Math.max(0, d.value - 1);
|
|
12309
12309
|
}
|
|
12310
12310
|
}, le = async () => {
|
|
12311
|
-
u.value = 1, await
|
|
12312
|
-
},
|
|
12313
|
-
f = Se, u.value = Pe,
|
|
12311
|
+
u.value = 1, await G();
|
|
12312
|
+
}, te = ({ rows: Se, page: Pe }) => {
|
|
12313
|
+
f = Se, u.value = Pe, G();
|
|
12314
12314
|
}, oe = async () => {
|
|
12315
|
-
p.value = [], g.value = !1, u.value = 1, Cn = void 0, await
|
|
12315
|
+
p.value = [], g.value = !1, u.value = 1, Cn = void 0, await G();
|
|
12316
12316
|
}, ge = async (Se) => {
|
|
12317
|
-
p.value = [], g.value = !1, await
|
|
12317
|
+
p.value = [], g.value = !1, await G(Se);
|
|
12318
12318
|
}, je = async () => {
|
|
12319
12319
|
await oe();
|
|
12320
12320
|
}, Le = (Se) => {
|
|
@@ -12381,12 +12381,12 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12381
12381
|
onKeyup: fr(le, ["enter"]),
|
|
12382
12382
|
onClear: le
|
|
12383
12383
|
}, {
|
|
12384
|
-
prefix:
|
|
12385
|
-
suffix:
|
|
12384
|
+
prefix: q(() => [Z(ht, { icon: "mdi:search" })]),
|
|
12385
|
+
suffix: q(() => [Z(mt, {
|
|
12386
12386
|
placement: "bottom",
|
|
12387
12387
|
content: z.value
|
|
12388
12388
|
}, {
|
|
12389
|
-
default:
|
|
12389
|
+
default: q(() => [H("div", null, [Z(be, {
|
|
12390
12390
|
placement: "bottom-end",
|
|
12391
12391
|
"popper-style": "padding: 0",
|
|
12392
12392
|
width: 200,
|
|
@@ -12395,11 +12395,11 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12395
12395
|
onShow: $,
|
|
12396
12396
|
onHide: le
|
|
12397
12397
|
}, {
|
|
12398
|
-
reference:
|
|
12398
|
+
reference: q(() => [Z(ht, {
|
|
12399
12399
|
icon: "mdi:keyboard-arrow-down",
|
|
12400
12400
|
style: { cursor: "pointer" }
|
|
12401
12401
|
})]),
|
|
12402
|
-
default:
|
|
12402
|
+
default: q(() => [Z(dm, {
|
|
12403
12403
|
ref_key: "keywordPanelRef",
|
|
12404
12404
|
ref: T,
|
|
12405
12405
|
"check-all": A.value,
|
|
@@ -12429,13 +12429,13 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12429
12429
|
persistent: !1,
|
|
12430
12430
|
onHide: le
|
|
12431
12431
|
}, {
|
|
12432
|
-
reference:
|
|
12432
|
+
reference: q(() => [Z(It, {
|
|
12433
12433
|
icon: "mdi:filter-outline",
|
|
12434
12434
|
label: "筛选",
|
|
12435
12435
|
type: "text",
|
|
12436
12436
|
class: We({ active: X.value })
|
|
12437
12437
|
}, null, 8, ["class"])]),
|
|
12438
|
-
default:
|
|
12438
|
+
default: q(() => [Z(Vl, {
|
|
12439
12439
|
ref_key: "filterPanelRef",
|
|
12440
12440
|
ref: M,
|
|
12441
12441
|
"is-pin": E.value,
|
|
@@ -12459,7 +12459,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12459
12459
|
placement: "bottom",
|
|
12460
12460
|
content: J(a)("排序")
|
|
12461
12461
|
}, {
|
|
12462
|
-
default:
|
|
12462
|
+
default: q(() => [H("div", null, [Z(be, {
|
|
12463
12463
|
visible: F.value,
|
|
12464
12464
|
"onUpdate:visible": Pe[7] || (Pe[7] = (Ze) => F.value = Ze),
|
|
12465
12465
|
placement: "bottom",
|
|
@@ -12468,12 +12468,12 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12468
12468
|
trigger: "click",
|
|
12469
12469
|
onShow: B
|
|
12470
12470
|
}, {
|
|
12471
|
-
reference:
|
|
12471
|
+
reference: q(() => [Z(It, {
|
|
12472
12472
|
class: We({ active: K.value.length > 0 }),
|
|
12473
12473
|
type: "text",
|
|
12474
12474
|
icon: "mdi:sort"
|
|
12475
12475
|
}, null, 8, ["class"])]),
|
|
12476
|
-
default:
|
|
12476
|
+
default: q(() => [Z(Rm, {
|
|
12477
12477
|
ref_key: "orderPanelRef",
|
|
12478
12478
|
ref: P,
|
|
12479
12479
|
columns: S.value,
|
|
@@ -12489,7 +12489,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12489
12489
|
placement: "bottom",
|
|
12490
12490
|
content: J(a)("显示字段")
|
|
12491
12491
|
}, {
|
|
12492
|
-
default:
|
|
12492
|
+
default: q(() => [H("div", null, [Z(be, {
|
|
12493
12493
|
visible: Ke.value,
|
|
12494
12494
|
"onUpdate:visible": Pe[8] || (Pe[8] = (Ze) => Ke.value = Ze),
|
|
12495
12495
|
placement: "bottom",
|
|
@@ -12498,12 +12498,12 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12498
12498
|
trigger: "click",
|
|
12499
12499
|
onShow: Re
|
|
12500
12500
|
}, {
|
|
12501
|
-
reference:
|
|
12501
|
+
reference: q(() => [Z(It, {
|
|
12502
12502
|
class: We({ active: ie.value }),
|
|
12503
12503
|
type: "text",
|
|
12504
12504
|
icon: "mdi:table-headers-eye"
|
|
12505
12505
|
}, null, 8, ["class"])]),
|
|
12506
|
-
default:
|
|
12506
|
+
default: q(() => [Z(Bm, {
|
|
12507
12507
|
ref_key: "columnPanelRef",
|
|
12508
12508
|
ref: we,
|
|
12509
12509
|
columns: e.columns,
|
|
@@ -12519,7 +12519,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12519
12519
|
placement: "bottom",
|
|
12520
12520
|
content: J(a)("刷新")
|
|
12521
12521
|
}, {
|
|
12522
|
-
default:
|
|
12522
|
+
default: q(() => [Z(It, {
|
|
12523
12523
|
type: "text",
|
|
12524
12524
|
icon: "mdi:refresh",
|
|
12525
12525
|
onClick: je
|
|
@@ -12531,7 +12531,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12531
12531
|
placement: "bottom",
|
|
12532
12532
|
content: Oe.value ? J(a)("退出全屏") : J(a)("全屏")
|
|
12533
12533
|
}, {
|
|
12534
|
-
default:
|
|
12534
|
+
default: q(() => [Z(It, {
|
|
12535
12535
|
type: "text",
|
|
12536
12536
|
icon: Oe.value ? "mdi:fullscreen-exit" : "mdi:fullscreen",
|
|
12537
12537
|
onClick: Et
|
|
@@ -12569,7 +12569,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12569
12569
|
"action-filter": e.actionFilter,
|
|
12570
12570
|
"highlight-mode": e.highlightMode,
|
|
12571
12571
|
"load-children": e.loadChildren,
|
|
12572
|
-
onLoadPageData:
|
|
12572
|
+
onLoadPageData: te,
|
|
12573
12573
|
onReady: Le,
|
|
12574
12574
|
onSelectionChanged: ot,
|
|
12575
12575
|
onSelectRecordsChanged: St
|
|
@@ -12645,7 +12645,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12645
12645
|
"show-arrow": !1,
|
|
12646
12646
|
offset: 4
|
|
12647
12647
|
}, {
|
|
12648
|
-
reference:
|
|
12648
|
+
reference: q(() => [Z(f, {
|
|
12649
12649
|
style: {
|
|
12650
12650
|
"justify-content": "flex-start",
|
|
12651
12651
|
padding: "4px 0",
|
|
@@ -12655,7 +12655,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12655
12655
|
label: e.label,
|
|
12656
12656
|
type: "link"
|
|
12657
12657
|
}, null, 8, ["label"])]),
|
|
12658
|
-
default:
|
|
12658
|
+
default: q(() => [H("div", Um, [H("div", Ym, [Z(h, {
|
|
12659
12659
|
modelValue: i.value,
|
|
12660
12660
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => i.value = g),
|
|
12661
12661
|
modelModifiers: { trim: !0 },
|
|
@@ -12663,7 +12663,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12663
12663
|
class: "no-border",
|
|
12664
12664
|
clearable: ""
|
|
12665
12665
|
}, {
|
|
12666
|
-
prefix:
|
|
12666
|
+
prefix: q(() => [Z(d, { icon: "mdi:search" })]),
|
|
12667
12667
|
_: 1
|
|
12668
12668
|
}, 8, ["modelValue", "placeholder"])]), H("div", Jm, [(R(!0), L(Ce, null, He(r.value, (g) => (R(), L("div", {
|
|
12669
12669
|
key: g.value,
|
|
@@ -12888,7 +12888,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12888
12888
|
onCheck: w,
|
|
12889
12889
|
onNodeDrop: S
|
|
12890
12890
|
}, {
|
|
12891
|
-
default:
|
|
12891
|
+
default: q(({ node: B }) => [H("div", { class: We(["j-tree-item-wraper", { "is-focus": A.value === B.data.value }]) }, [
|
|
12892
12892
|
B.data.openIcon ? (R(), N(E, {
|
|
12893
12893
|
key: 0,
|
|
12894
12894
|
class: "j-tree-item-open-icon",
|
|
@@ -12909,14 +12909,14 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12909
12909
|
trigger: "click",
|
|
12910
12910
|
onVisibleChange: (we) => j(we, B.data)
|
|
12911
12911
|
}, {
|
|
12912
|
-
dropdown:
|
|
12913
|
-
default:
|
|
12912
|
+
dropdown: q(() => [Z(ce, null, {
|
|
12913
|
+
default: q(() => [(R(!0), L(Ce, null, He(ke.children, (we, Ke) => (R(), N(X, {
|
|
12914
12914
|
key: Ke,
|
|
12915
12915
|
disabled: we.disabled,
|
|
12916
12916
|
divided: we.divided,
|
|
12917
12917
|
onClick: $t((Xe) => T(we, B.data), ["stop"])
|
|
12918
12918
|
}, {
|
|
12919
|
-
default:
|
|
12919
|
+
default: q(() => [H("div", {
|
|
12920
12920
|
class: "j-flex-item",
|
|
12921
12921
|
style: se({ color: we.danger ? "var(--j-color-danger)" : we.color || e.buttonIconColor || "var(--j-color-text-2)" })
|
|
12922
12922
|
}, [we.icon || e.buttonDefaultIcon ? (R(), N(E, {
|
|
@@ -12931,7 +12931,7 @@ var Hp = { class: "j-table-footer" }, Op = {
|
|
|
12931
12931
|
]))), 128))]),
|
|
12932
12932
|
_: 2
|
|
12933
12933
|
}, 1024)]),
|
|
12934
|
-
default:
|
|
12934
|
+
default: q(() => [Z(W, {
|
|
12935
12935
|
icon: ke.icon,
|
|
12936
12936
|
type: "text"
|
|
12937
12937
|
}, null, 8, ["icon"])]),
|
|
@@ -13146,30 +13146,30 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13146
13146
|
const a = e, o = n, { useData: i, existField: r, httpGet: l, httpPost: c, success: s, warning: u, error: f, info: d, t: h } = bt();
|
|
13147
13147
|
let p;
|
|
13148
13148
|
i && (p = i());
|
|
13149
|
-
const g = (
|
|
13150
|
-
f && f(
|
|
13149
|
+
const g = (G) => {
|
|
13150
|
+
f && f(G);
|
|
13151
13151
|
}, y = I(!1), _ = O(() => a.config?.gutter || 16), m = O(() => a.config?.span || 24), v = O(() => a.config?.labelWidth), b = O(() => a.config?.labelPosition || "right"), k = O(() => C.length === 1 && (C[0].type === "j-tabs" || C[0].type === "j-layout" || C[0].config?.isAutoWindow)), w = na({}), S = I({}), C = [], x = {};
|
|
13152
13152
|
let T = {}, A = {}, j = [], z = {};
|
|
13153
|
-
const $ = async (
|
|
13154
|
-
y.value && W && (
|
|
13155
|
-
let le =
|
|
13156
|
-
|
|
13157
|
-
}, M = (
|
|
13153
|
+
const $ = async (G) => {
|
|
13154
|
+
y.value && W && (G.getTableData || Bl(W, G.id, G.formData[G.id]));
|
|
13155
|
+
let le = G.id, te = G.id;
|
|
13156
|
+
G.config?.parentTableId && G.config?.field && (G.config?.parentTableId && (le = G.config.parentTableId), te = `${G.config.parentTableId}.${G.config.field}`, G.col = x[te]), o("change", x[le], G), x[le]?.config?.codeChange && await Vt(JSON.parse(x[le]?.config?.codeChange), { param: G }), a.config?.codeChange && await Vt(JSON.parse(a.config?.codeChange), { param: G });
|
|
13157
|
+
}, M = (G) => Nr(x[G]?.type || "") && !x[G]?.config?.notInput || x[G]?.config?.isInput, E = (G) => [
|
|
13158
13158
|
"j-table",
|
|
13159
13159
|
"j-input-rows",
|
|
13160
13160
|
"j-input-cards"
|
|
13161
|
-
].includes(x[
|
|
13161
|
+
].includes(x[G]?.type || "");
|
|
13162
13162
|
let W;
|
|
13163
|
-
const X = (
|
|
13164
|
-
Object.keys(
|
|
13165
|
-
const oe =
|
|
13166
|
-
le && (
|
|
13163
|
+
const X = (G, le) => {
|
|
13164
|
+
Object.keys(G).forEach((te) => {
|
|
13165
|
+
const oe = G[te];
|
|
13166
|
+
le && (te = le + "." + te), oe != null && typeof oe == "object" && !yr(oe) && X(oe, te), w[te] = oe;
|
|
13167
13167
|
});
|
|
13168
|
-
}, ce = (
|
|
13169
|
-
let
|
|
13170
|
-
return
|
|
13171
|
-
}, ye = (
|
|
13172
|
-
|
|
13168
|
+
}, ce = (G, le) => {
|
|
13169
|
+
let te = G.id;
|
|
13170
|
+
return te || (G.config?.table && G.config?.field ? te = `${G.config.table}.${G.config.field}` : G.config?.table ? te = G.config?.table : G.config?.field && (te = G.config?.field), le && E(le) && (te = `${le}.${te}`)), te || Vr("j");
|
|
13171
|
+
}, ye = (G, le, te, oe = "") => {
|
|
13172
|
+
G.forEach((ge) => {
|
|
13173
13173
|
ge.id = ce(ge, oe);
|
|
13174
13174
|
const je = {
|
|
13175
13175
|
id: ge.id,
|
|
@@ -13187,10 +13187,10 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13187
13187
|
oe !== "" && E(oe) && (ot = !0, je.config = ge.config || {}, je.config.parentTableId = oe, St = x[oe]?.config?.table);
|
|
13188
13188
|
const ft = je.config || {};
|
|
13189
13189
|
if (M(ge.id))
|
|
13190
|
-
!
|
|
13190
|
+
!te && ot === !1 && (ft?.defaultValue === 0 ? w[ge.id] = ft?.defaultValue : w[ge.id] = ft?.defaultValue || void 0), ft.table && ft.field ? T[`${ft.table}_${ft.field}`.toLowerCase()] = ge.id : ft.field && (ot ? T[`${St}_${ft.field}`.toLowerCase()] = ge.id : T[`${ft.field}`.toLowerCase()] = ge.id);
|
|
13191
13191
|
else if (ot && ft.field) T[`${St}_${ft.field}`.toLowerCase()] = ge.id;
|
|
13192
13192
|
else if (E(ge.id))
|
|
13193
|
-
!
|
|
13193
|
+
!te && !ft.isSubTable && (w[ge.id] = []), ft.table && (T[ft.table.toLowerCase() || ""] = ge.id), ft.isSubTable || j.push(je);
|
|
13194
13194
|
else if (ft?.defaultValue) w[ge.id] = ft?.defaultValue;
|
|
13195
13195
|
else if (ge.type === "collapse" && ft?.isExpand) {
|
|
13196
13196
|
const Sn = [];
|
|
@@ -13198,73 +13198,73 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13198
13198
|
Sn.push(kn.i);
|
|
13199
13199
|
}), w[ge.id] = Sn;
|
|
13200
13200
|
}
|
|
13201
|
-
Le && Le.length > 0 && ye(Le, je.children,
|
|
13201
|
+
Le && Le.length > 0 && ye(Le, je.children, te, je.id);
|
|
13202
13202
|
});
|
|
13203
|
-
}, P = async (
|
|
13203
|
+
}, P = async (G, le) => {
|
|
13204
13204
|
y.value = !1;
|
|
13205
|
-
const
|
|
13206
|
-
C.splice(0, C.length), T = {}, A = {}, j = [], W = le, wo(w), wo(x),
|
|
13207
|
-
}, F = (
|
|
13205
|
+
const te = !!le;
|
|
13206
|
+
C.splice(0, C.length), T = {}, A = {}, j = [], W = le, wo(w), wo(x), te && X(le, ""), ye(G, C, te), z = xn(w), await zt(), y.value = !0, await zt(), a.config?.codeInit && await Vt(JSON.parse(a.config?.codeInit), { param: {} });
|
|
13207
|
+
}, F = (G, le, te) => {
|
|
13208
13208
|
const oe = [];
|
|
13209
13209
|
return le.forEach((ge) => {
|
|
13210
13210
|
const je = {};
|
|
13211
13211
|
Object.keys(ge).forEach((Le) => {
|
|
13212
|
-
if (!
|
|
13212
|
+
if (!te || te(Le, ge[Le], G)) {
|
|
13213
13213
|
const ot = Me(Le);
|
|
13214
|
-
if (ot?.type === "j-table") je[ot?.id || ""] = F(Le, ge[Le],
|
|
13214
|
+
if (ot?.type === "j-table") je[ot?.id || ""] = F(Le, ge[Le], te);
|
|
13215
13215
|
else {
|
|
13216
|
-
let St = T[`${
|
|
13216
|
+
let St = T[`${G}_${Le}`.toLowerCase()] || Le;
|
|
13217
13217
|
St = St.indexOf(".") !== -1 ? St.split(".")[1] : St, je[St] = ge[Le];
|
|
13218
13218
|
}
|
|
13219
13219
|
}
|
|
13220
13220
|
}), oe.push(je);
|
|
13221
13221
|
}), oe;
|
|
13222
|
-
}, K = (
|
|
13223
|
-
Object.keys(
|
|
13224
|
-
let oe =
|
|
13225
|
-
const ge = Me(
|
|
13222
|
+
}, K = (G, le) => {
|
|
13223
|
+
Object.keys(G || {}).forEach((te) => {
|
|
13224
|
+
let oe = G[te];
|
|
13225
|
+
const ge = Me(te);
|
|
13226
13226
|
if (ge === void 0)
|
|
13227
13227
|
oe && (yr(oe) && (oe = oe[0] || {}), typeof oe == "object" ? Object.keys(oe).forEach((je) => {
|
|
13228
|
-
if (!le || le(
|
|
13228
|
+
if (!le || le(te, oe[je], te)) {
|
|
13229
13229
|
let Le = je;
|
|
13230
|
-
|
|
13230
|
+
te !== "main" && (Le = `${te}_${je}`), A[Le] = te, w[T[Le.toLowerCase()] || je] = oe[je];
|
|
13231
13231
|
}
|
|
13232
|
-
}) : w[
|
|
13232
|
+
}) : w[te] = oe);
|
|
13233
13233
|
else if (E(ge.id || "")) {
|
|
13234
13234
|
if (!Array.isArray(oe)) {
|
|
13235
|
-
console.warn("表格数据不是数组:" +
|
|
13235
|
+
console.warn("表格数据不是数组:" + te);
|
|
13236
13236
|
return;
|
|
13237
13237
|
}
|
|
13238
|
-
oe?.length > 0 ? w[T[
|
|
13239
|
-
} else (!le || le(
|
|
13240
|
-
}), W && Object.keys(w).forEach((
|
|
13241
|
-
const oe = Me(
|
|
13242
|
-
(oe === void 0 || !["j-tabs", "j-collapse"].includes(oe.type || "")) && Bl(W,
|
|
13238
|
+
oe?.length > 0 ? w[T[te.toLowerCase()] || te] = F(te, oe, le) : w[T[te.toLowerCase()] || te] = [];
|
|
13239
|
+
} else (!le || le(te, oe, te)) && (w[T[te.toLowerCase()] || te] = oe);
|
|
13240
|
+
}), W && Object.keys(w).forEach((te) => {
|
|
13241
|
+
const oe = Me(te);
|
|
13242
|
+
(oe === void 0 || !["j-tabs", "j-collapse"].includes(oe.type || "")) && Bl(W, te, w[te]);
|
|
13243
13243
|
});
|
|
13244
13244
|
}, B = /* @__PURE__ */ new Set([
|
|
13245
13245
|
"parentRow",
|
|
13246
13246
|
"_i",
|
|
13247
13247
|
"_compTypeByRender"
|
|
13248
|
-
]), ke = (
|
|
13249
|
-
const
|
|
13250
|
-
return Object.keys(
|
|
13248
|
+
]), ke = (G, le = !1) => {
|
|
13249
|
+
const te = {};
|
|
13250
|
+
return Object.keys(G).forEach((oe) => {
|
|
13251
13251
|
if (B.has(oe)) return;
|
|
13252
13252
|
const ge = x[oe];
|
|
13253
13253
|
if (ge) {
|
|
13254
13254
|
const je = ge.config?.table, Le = ge.config?.field;
|
|
13255
|
-
if (le) Le ?
|
|
13255
|
+
if (le) Le ? te[Le] = G[oe] : te[oe] = G[oe];
|
|
13256
13256
|
else if (E(oe)) {
|
|
13257
13257
|
const ot = [];
|
|
13258
|
-
|
|
13258
|
+
G[oe].forEach((St) => {
|
|
13259
13259
|
ot.push(ke(St, !0));
|
|
13260
|
-
}),
|
|
13261
|
-
} else je && Le ? (
|
|
13262
|
-
} else le ? oe !== "_X_ROW_KEY" && oe !== "_isHover" && (
|
|
13263
|
-
}),
|
|
13264
|
-
}, $e = (
|
|
13265
|
-
let ge = x[
|
|
13260
|
+
}), te[je || oe] = ot;
|
|
13261
|
+
} else je && Le ? (te[je] = te[je] || {}, te[je][Le] = G[oe]) : Le && (te[Le] = G[oe]);
|
|
13262
|
+
} else le ? oe !== "_X_ROW_KEY" && oe !== "_isHover" && (te[oe] = G[oe]) : A[oe] ? (te[A[oe]] = te[A[oe]] || {}, te[A[oe]][oe.replace(`${A[oe]}_`, "")] = G[oe]) : te[oe] = G[oe];
|
|
13263
|
+
}), te;
|
|
13264
|
+
}, $e = (G = !0) => G ? ke(w) : w, we = (G, le, te, oe) => {
|
|
13265
|
+
let ge = x[G];
|
|
13266
13266
|
if (ge == null) {
|
|
13267
|
-
const Le =
|
|
13267
|
+
const Le = G.split(".");
|
|
13268
13268
|
ge = x[Le[Le.length - 1]] || {};
|
|
13269
13269
|
}
|
|
13270
13270
|
if (!ge) return {};
|
|
@@ -13272,13 +13272,13 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13272
13272
|
config: ge.config || {},
|
|
13273
13273
|
getCompConfig: ge.getCompConfig,
|
|
13274
13274
|
formData: w,
|
|
13275
|
-
getTableData:
|
|
13275
|
+
getTableData: te,
|
|
13276
13276
|
row: le,
|
|
13277
13277
|
pRowData: oe
|
|
13278
13278
|
});
|
|
13279
13279
|
return je._componentId = ge?.id, je;
|
|
13280
|
-
}, Ke = (
|
|
13281
|
-
const ge = we(
|
|
13280
|
+
}, Ke = (G, le, te, oe) => {
|
|
13281
|
+
const ge = we(G, le, te, oe);
|
|
13282
13282
|
if (ge.isNotRule !== !0 && ge.display !== !1) {
|
|
13283
13283
|
const je = ge.rule || [], Le = je.find((ot) => ot.type === "only");
|
|
13284
13284
|
return Le && (Le.validator = async (ot, St) => {
|
|
@@ -13307,49 +13307,49 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13307
13307
|
};
|
|
13308
13308
|
}, { validateForm: Xe } = db(w, Ke), ie = async () => {
|
|
13309
13309
|
S.value = {};
|
|
13310
|
-
const
|
|
13311
|
-
return Object.keys(
|
|
13310
|
+
const G = await Xe();
|
|
13311
|
+
return Object.keys(G).length > 0 ? (S.value = G, g(`${h(x[Object.keys(G)[0]]?.config?.label)}:${h(G[Object.keys(G)[0]].msg)}`), !1) : !0;
|
|
13312
13312
|
}, Re = () => {
|
|
13313
|
-
S.value = {}, wo(w), Object.keys(z || {}).forEach((
|
|
13314
|
-
w[
|
|
13313
|
+
S.value = {}, wo(w), Object.keys(z || {}).forEach((G) => {
|
|
13314
|
+
w[G] = z[G];
|
|
13315
13315
|
});
|
|
13316
|
-
}, Me = (
|
|
13317
|
-
let le = x[
|
|
13318
|
-
return le === void 0 && T[
|
|
13319
|
-
}, Oe = ({ id:
|
|
13320
|
-
if (oe === "add") w[
|
|
13321
|
-
else if (oe === "delete") w[
|
|
13316
|
+
}, Me = (G) => {
|
|
13317
|
+
let le = x[G];
|
|
13318
|
+
return le === void 0 && T[G.toLowerCase()] && (le = x[T[G.toLowerCase()]]), le;
|
|
13319
|
+
}, Oe = ({ id: G, i: le, value: te, type: oe }) => {
|
|
13320
|
+
if (oe === "add") w[G].push(te);
|
|
13321
|
+
else if (oe === "delete") w[G].splice(le, 1);
|
|
13322
13322
|
else {
|
|
13323
|
-
const ge = Me(
|
|
13324
|
-
ge && (ge.config.parentTableId ? w[ge.config.parentTableId][le][
|
|
13323
|
+
const ge = Me(G);
|
|
13324
|
+
ge && (ge.config.parentTableId ? w[ge.config.parentTableId][le][G] = te : w[G] = te);
|
|
13325
13325
|
}
|
|
13326
|
-
}, Et = ({ id:
|
|
13327
|
-
const
|
|
13328
|
-
if (
|
|
13329
|
-
if (
|
|
13330
|
-
const oe = w[
|
|
13326
|
+
}, Et = ({ id: G, i: le }) => {
|
|
13327
|
+
const te = Me(G);
|
|
13328
|
+
if (te) {
|
|
13329
|
+
if (te.config.parentTableId) {
|
|
13330
|
+
const oe = w[te.config.parentTableId], ge = te.id ? te.id.replace(`${te.config.parentTableId}.`, "") : "";
|
|
13331
13331
|
if (le != null) return (oe[le] || {})[ge || ""];
|
|
13332
13332
|
const je = [];
|
|
13333
13333
|
return oe && oe.forEach((Le) => {
|
|
13334
13334
|
je.push(Le[ge || ""]);
|
|
13335
13335
|
}), je;
|
|
13336
13336
|
}
|
|
13337
|
-
if (E(
|
|
13337
|
+
if (E(te.id || "")) {
|
|
13338
13338
|
const oe = [];
|
|
13339
|
-
return w[
|
|
13339
|
+
return w[te.id || ""].forEach((ge) => {
|
|
13340
13340
|
oe.push(ke(ge, !0));
|
|
13341
13341
|
}), oe;
|
|
13342
13342
|
}
|
|
13343
|
-
return w[
|
|
13343
|
+
return w[te.id || ""];
|
|
13344
13344
|
}
|
|
13345
|
-
if (w[
|
|
13346
|
-
}, _t = async ({ id:
|
|
13347
|
-
const
|
|
13348
|
-
id:
|
|
13345
|
+
if (w[G]) return w[G];
|
|
13346
|
+
}, _t = async ({ id: G, i: le }) => {
|
|
13347
|
+
const te = Et({
|
|
13348
|
+
id: G,
|
|
13349
13349
|
i: le
|
|
13350
|
-
}), oe = Me(
|
|
13350
|
+
}), oe = Me(G);
|
|
13351
13351
|
if (oe && p?.getLabel) if (le !== void 0) {
|
|
13352
|
-
const ge =
|
|
13352
|
+
const ge = te[le], je = w[oe.config.parentTableId || ""][le], Le = Mn({
|
|
13353
13353
|
config: oe.config,
|
|
13354
13354
|
getCompConfig: oe.getCompConfig,
|
|
13355
13355
|
formData: w,
|
|
@@ -13370,20 +13370,20 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13370
13370
|
formData: w
|
|
13371
13371
|
});
|
|
13372
13372
|
return await p?.getLabel({
|
|
13373
|
-
value:
|
|
13373
|
+
value: te,
|
|
13374
13374
|
config: ge,
|
|
13375
13375
|
formData: w
|
|
13376
13376
|
});
|
|
13377
13377
|
}
|
|
13378
|
-
return
|
|
13379
|
-
}, Ge = async (
|
|
13378
|
+
return te;
|
|
13379
|
+
}, Ge = async (G, le) => p?.loadViewDataList ? await p?.loadViewDataList(G, le, !1) : [], Yt = (G) => (G.set = Oe, G.get = Et, G.setFormData = K, G.getFormData = $e, G.getLabel = _t, G.getViewData = Ge, G.getDateNow = (le) => Ur(/* @__PURE__ */ new Date(), le || "YYYY-MM-DD HH:mm:ss"), G.httpGet = l || (() => {
|
|
13380
13380
|
console.log("当前状态不支持");
|
|
13381
|
-
}),
|
|
13381
|
+
}), G.httpPost = c || (() => {
|
|
13382
13382
|
console.log("当前状态不支持");
|
|
13383
|
-
}),
|
|
13383
|
+
}), G.loading = (le) => {
|
|
13384
13384
|
Fa(le);
|
|
13385
|
-
},
|
|
13386
|
-
switch (
|
|
13385
|
+
}, G.showMsg = ({ text: le, type: te }) => {
|
|
13386
|
+
switch (te) {
|
|
13387
13387
|
case "success":
|
|
13388
13388
|
s && s(le);
|
|
13389
13389
|
break;
|
|
@@ -13400,12 +13400,12 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13400
13400
|
d && d(le);
|
|
13401
13401
|
break;
|
|
13402
13402
|
}
|
|
13403
|
-
console.log("showMsg", le,
|
|
13404
|
-
},
|
|
13405
|
-
if (
|
|
13406
|
-
|
|
13407
|
-
const { res:
|
|
13408
|
-
|
|
13403
|
+
console.log("showMsg", le, te);
|
|
13404
|
+
}, G), sn = async (G, le) => {
|
|
13405
|
+
if (G && G.trim()) {
|
|
13406
|
+
G = `async (jcode) => {${G}}`;
|
|
13407
|
+
const { res: te, fn: oe } = vc(G);
|
|
13408
|
+
te && await oe(Yt(le));
|
|
13409
13409
|
}
|
|
13410
13410
|
}, Jt = async () => {
|
|
13411
13411
|
a.config?.codeAfterSetData && await Vt(JSON.parse(a.config?.codeAfterSetData), { param: {} });
|
|
@@ -13415,9 +13415,9 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13415
13415
|
a.config?.codeAfterSave && await Vt(JSON.parse(a.config?.codeAfterSave), { param: {} });
|
|
13416
13416
|
};
|
|
13417
13417
|
a.schema && P(a.schema);
|
|
13418
|
-
const dt = {}, Vt = async (
|
|
13419
|
-
const { run:
|
|
13420
|
-
data:
|
|
13418
|
+
const dt = {}, Vt = async (G, le) => {
|
|
13419
|
+
const { run: te } = fb({
|
|
13420
|
+
data: G,
|
|
13421
13421
|
actions: a.actions,
|
|
13422
13422
|
utils: {
|
|
13423
13423
|
showLoading: Fa,
|
|
@@ -13426,7 +13426,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13426
13426
|
inputParams: le,
|
|
13427
13427
|
notRunActions: dt
|
|
13428
13428
|
});
|
|
13429
|
-
await
|
|
13429
|
+
await te();
|
|
13430
13430
|
};
|
|
13431
13431
|
return Ec({
|
|
13432
13432
|
formData: w,
|
|
@@ -13440,9 +13440,9 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13440
13440
|
getValue: Et,
|
|
13441
13441
|
formChange: $,
|
|
13442
13442
|
runFlow: Vt,
|
|
13443
|
-
runFlowByNotRunActions: async (
|
|
13444
|
-
const le = dt[
|
|
13445
|
-
le && (delete dt[
|
|
13443
|
+
runFlowByNotRunActions: async (G) => {
|
|
13444
|
+
const le = dt[G];
|
|
13445
|
+
le && (delete dt[G], await Vt(le.data, le.inputParams));
|
|
13446
13446
|
}
|
|
13447
13447
|
}), Tc({ contextType: "form" }), t({
|
|
13448
13448
|
init: P,
|
|
@@ -13456,8 +13456,8 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13456
13456
|
afterSetData: Jt,
|
|
13457
13457
|
beforeSave: Ht,
|
|
13458
13458
|
afterSave: Ot
|
|
13459
|
-
}), (
|
|
13460
|
-
const
|
|
13459
|
+
}), (G, le) => {
|
|
13460
|
+
const te = V("j-form-item"), oe = V("el-row"), ge = V("el-form");
|
|
13461
13461
|
return y.value ? (R(), N(ge, {
|
|
13462
13462
|
key: 0,
|
|
13463
13463
|
class: We([
|
|
@@ -13471,11 +13471,11 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13471
13471
|
onSubmit: le[0] || (le[0] = $t(() => {
|
|
13472
13472
|
}, ["prevent"]))
|
|
13473
13473
|
}, {
|
|
13474
|
-
default:
|
|
13474
|
+
default: q(() => [k.value ? (R(), N(te, Fe({ key: 0 }, C[0], { "is-not-col": "" }), null, 16)) : (R(), N(oe, {
|
|
13475
13475
|
key: 1,
|
|
13476
13476
|
gutter: _.value
|
|
13477
13477
|
}, {
|
|
13478
|
-
default:
|
|
13478
|
+
default: q(() => [(R(), L(Ce, null, He(C, (je) => Z(te, Fe({ key: je.id }, { ref_for: !0 }, je), null, 16)), 64))]),
|
|
13479
13479
|
_: 1
|
|
13480
13480
|
}, 8, ["gutter"]))]),
|
|
13481
13481
|
_: 1
|
|
@@ -13644,7 +13644,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13644
13644
|
placement: "top",
|
|
13645
13645
|
content: c.label || ""
|
|
13646
13646
|
}, {
|
|
13647
|
-
default:
|
|
13647
|
+
default: q(() => [Z(i, Fe({ ref_for: !0 }, c.config, {
|
|
13648
13648
|
onClick: (s) => n(c),
|
|
13649
13649
|
type: "text",
|
|
13650
13650
|
size: e.size
|
|
@@ -13981,7 +13981,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13981
13981
|
onClear: f
|
|
13982
13982
|
}, Dn({ _: 2 }, [e.readonly ? void 0 : {
|
|
13983
13983
|
name: "append",
|
|
13984
|
-
fn:
|
|
13984
|
+
fn: q(() => [Z(J(mr), {
|
|
13985
13985
|
icon: e.icon,
|
|
13986
13986
|
onClick: u
|
|
13987
13987
|
}, null, 8, ["icon"])]),
|
|
@@ -14001,7 +14001,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14001
14001
|
onOk: d,
|
|
14002
14002
|
onClosed: h
|
|
14003
14003
|
}, {
|
|
14004
|
-
default:
|
|
14004
|
+
default: q(() => [Z(J(Ic), {
|
|
14005
14005
|
ref_key: "tableRef",
|
|
14006
14006
|
ref: r,
|
|
14007
14007
|
columns: e.columns,
|
|
@@ -14095,7 +14095,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14095
14095
|
width: e.layerWidth || 600,
|
|
14096
14096
|
"has-btns": !1
|
|
14097
14097
|
}, {
|
|
14098
|
-
default:
|
|
14098
|
+
default: q(() => [Z(y, {
|
|
14099
14099
|
class: We(["j-block", "j-layer-form"]),
|
|
14100
14100
|
"label-position": l.value,
|
|
14101
14101
|
"label-width": r.value,
|
|
@@ -14103,11 +14103,11 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14103
14103
|
onSubmit: d[0] || (d[0] = $t(() => {
|
|
14104
14104
|
}, ["prevent"]))
|
|
14105
14105
|
}, {
|
|
14106
|
-
default:
|
|
14106
|
+
default: q(() => [c.value ? (R(), N(p, Eo(Fe({ key: 0 }, e.schema[0])), null, 16)) : (R(), N(g, {
|
|
14107
14107
|
key: 1,
|
|
14108
14108
|
gutter: o.value
|
|
14109
14109
|
}, {
|
|
14110
|
-
default:
|
|
14110
|
+
default: q(() => [(R(!0), L(Ce, null, He(e.schema, (m) => (R(), N(p, Fe({
|
|
14111
14111
|
key: m.id,
|
|
14112
14112
|
ref_for: !0
|
|
14113
14113
|
}, m), null, 16))), 128))]),
|
|
@@ -14240,22 +14240,22 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14240
14240
|
}), Dn({ _: 2 }, [
|
|
14241
14241
|
r.$slots["active-action"] ? {
|
|
14242
14242
|
name: "active-action",
|
|
14243
|
-
fn:
|
|
14243
|
+
fn: q(() => [Ye(r.$slots, "active-action")]),
|
|
14244
14244
|
key: "0"
|
|
14245
14245
|
} : void 0,
|
|
14246
14246
|
r.$slots["inactive-action"] ? {
|
|
14247
14247
|
name: "inactive-action",
|
|
14248
|
-
fn:
|
|
14248
|
+
fn: q(() => [Ye(r.$slots, "inactive-action")]),
|
|
14249
14249
|
key: "1"
|
|
14250
14250
|
} : void 0,
|
|
14251
14251
|
r.$slots.active ? {
|
|
14252
14252
|
name: "active",
|
|
14253
|
-
fn:
|
|
14253
|
+
fn: q(() => [Ye(r.$slots, "active")]),
|
|
14254
14254
|
key: "2"
|
|
14255
14255
|
} : void 0,
|
|
14256
14256
|
r.$slots.inactive ? {
|
|
14257
14257
|
name: "inactive",
|
|
14258
|
-
fn:
|
|
14258
|
+
fn: q(() => [Ye(r.$slots, "inactive")]),
|
|
14259
14259
|
key: "3"
|
|
14260
14260
|
} : void 0
|
|
14261
14261
|
]), 1040, [
|
|
@@ -14349,7 +14349,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14349
14349
|
onTabAdd: l,
|
|
14350
14350
|
onEdit: c
|
|
14351
14351
|
}), {
|
|
14352
|
-
default:
|
|
14352
|
+
default: q(() => [Ye(s.$slots, "default")]),
|
|
14353
14353
|
_: 3
|
|
14354
14354
|
}, 16, [
|
|
14355
14355
|
"class",
|
|
@@ -14389,7 +14389,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14389
14389
|
onChange: o,
|
|
14390
14390
|
"onUpdate:modelValue": a
|
|
14391
14391
|
}), {
|
|
14392
|
-
default:
|
|
14392
|
+
default: q(() => [Ye(i.$slots, "default")]),
|
|
14393
14393
|
_: 3
|
|
14394
14394
|
}, 16, ["model-value", "accordion"]);
|
|
14395
14395
|
};
|
|
@@ -14714,7 +14714,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14714
14714
|
ref: r,
|
|
14715
14715
|
class: "j-input-layer"
|
|
14716
14716
|
}, {
|
|
14717
|
-
append:
|
|
14717
|
+
append: q(() => [Z(w, {
|
|
14718
14718
|
icon: "mdi:map-marker-outline",
|
|
14719
14719
|
disabled: e.readonly,
|
|
14720
14720
|
size: e.size,
|
|
@@ -14740,7 +14740,7 @@ var fb = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14740
14740
|
onClosed: v,
|
|
14741
14741
|
style: { height: "0" }
|
|
14742
14742
|
}, {
|
|
14743
|
-
default:
|
|
14743
|
+
default: q(() => [Z(C, {
|
|
14744
14744
|
style: { padding: "0" },
|
|
14745
14745
|
schema: _,
|
|
14746
14746
|
ref_key: "indexRef",
|
|
@@ -22851,19 +22851,19 @@ var KC = {
|
|
|
22851
22851
|
key: z.i,
|
|
22852
22852
|
style: { "margin-bottom": "8px" }
|
|
22853
22853
|
}, [Z(j, { gutter: e.gutter }, {
|
|
22854
|
-
default:
|
|
22854
|
+
default: q(() => [(R(!0), L(Ce, null, He(e.columns, (M) => (R(), N(T, {
|
|
22855
22855
|
key: M.prop,
|
|
22856
22856
|
span: M.config?.span || e.span || 24,
|
|
22857
22857
|
style: se({ "margin-bottom": (M.getInputType ? M.getInputType(z) : M.inputType) == "j-input-rows" ? "8px" : void 0 })
|
|
22858
22858
|
}, {
|
|
22859
|
-
default:
|
|
22859
|
+
default: q(() => [zn(Z(x, {
|
|
22860
22860
|
"label-width": b(M.config?.labelWidth),
|
|
22861
22861
|
label: J(i)(M.config?.label || ""),
|
|
22862
22862
|
extra: M.config?.labelExtra,
|
|
22863
22863
|
tooltip: M.config?.labelTooltip,
|
|
22864
22864
|
required: M.config?.required
|
|
22865
22865
|
}, {
|
|
22866
|
-
default:
|
|
22866
|
+
default: q(() => [Z(C, Fe({ ref_for: !0 }, M, { row: z }), null, 16, ["row"])]),
|
|
22867
22867
|
_: 2
|
|
22868
22868
|
}, 1032, [
|
|
22869
22869
|
"label-width",
|