@jt-home/mfe-components 1.0.28 → 1.0.30
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/index.cjs +2 -2
- package/dist/index.mjs +339 -335
- package/dist/style.css +1 -1
- package/dist/types/components/table/types.d.ts +2 -2
- package/package.json +18 -17
- package/readme.md +695 -695
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as de, useAttrs as xn, computed as L, openBlock as $, createBlock as H, mergeProps as re, toHandlers as
|
|
2
|
+
import { defineComponent as de, useAttrs as xn, computed as L, openBlock as $, createBlock as H, mergeProps as re, toHandlers as Qe, withCtx as J, renderSlot as X, resolveDynamicComponent as xt, createCommentVNode as fe, ref as ge, watch as Be, mergeDefaults as qn, withKeys as Gn, createElementBlock as U, Fragment as Se, renderList as ye, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as Je, createVNode as we, withModifiers as Gt, unref as se, createSlots as je, createElementVNode as ee, toDisplayString as me, normalizeProps as Me, guardReactiveProps as Fe, useModel as pt, withDirectives as Yn, mergeModels as Mt, shallowRef as Pe, onMounted as Kt, onBeforeUnmount as Un, createTextVNode as Ue, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
|
|
3
3
|
import { ElButton as It, ElIcon as Yt, ElCascader as Wn, ElDatePicker as Ut, ElInput as Ht, ElSelect as Jt, ElOption as Wt, ElFormItem as Zt, ElForm as Qt, ElTable as Xt, ElTableColumn as en, ElPagination as Zn, ElLoadingDirective as Qn, ElInputNumber as Xn, ElSwitch as eo, ElRow as to, ElCol as no, ElPopconfirm as oo } from "element-plus/es";
|
|
4
4
|
import { JtAttachmentPreview as Tt } from "./JtAttachmentPreview/index.mjs";
|
|
5
5
|
import { JtAttachmentPreviewByParams as Za, setupJtAttachmentPreview as Qa } from "./JtAttachmentPreview/index.mjs";
|
|
@@ -64,7 +64,7 @@ const lo = /* @__PURE__ */ de({
|
|
|
64
64
|
}), r = L(() => nn(n));
|
|
65
65
|
return (i, s) => {
|
|
66
66
|
const l = Yt, a = It;
|
|
67
|
-
return $(), H(a, re({ class: "jt-button" }, o.value,
|
|
67
|
+
return $(), H(a, re({ class: "jt-button" }, o.value, Qe(r.value)), {
|
|
68
68
|
default: J(() => [
|
|
69
69
|
i.$slots.icon ? ($(), H(l, {
|
|
70
70
|
key: 0,
|
|
@@ -94,7 +94,7 @@ const lo = /* @__PURE__ */ de({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
},
|
|
97
|
+
}, ot = /* @__PURE__ */ be(lo, [["__scopeId", "data-v-9651b22b"]]), co = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
placeholder: "请选择",
|
|
@@ -278,7 +278,7 @@ const fo = /* @__PURE__ */ de({
|
|
|
278
278
|
}), null, 16);
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
}), mo = /* @__PURE__ */ be(po, [["__scopeId", "data-v-
|
|
281
|
+
}), mo = /* @__PURE__ */ be(po, [["__scopeId", "data-v-ee23f9b2"]]), vo = /* @__PURE__ */ de({
|
|
282
282
|
name: "JtInput",
|
|
283
283
|
__name: "index",
|
|
284
284
|
props: {
|
|
@@ -329,12 +329,12 @@ const fo = /* @__PURE__ */ de({
|
|
|
329
329
|
));
|
|
330
330
|
return (i, s) => {
|
|
331
331
|
const l = Ht;
|
|
332
|
-
return $(), H(l, re({ class: "jt-input" }, n,
|
|
332
|
+
return $(), H(l, re({ class: "jt-input" }, n, Qe(r.value), {
|
|
333
333
|
onKeyup: s[0] || (s[0] = Gn((a) => o("enter"), ["enter"]))
|
|
334
334
|
}), null, 16);
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
}), mt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-
|
|
337
|
+
}), mt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-592e0bdc"]]), ho = /* @__PURE__ */ de({
|
|
338
338
|
name: "JtSelect",
|
|
339
339
|
__name: "index",
|
|
340
340
|
props: {
|
|
@@ -407,9 +407,9 @@ const fo = /* @__PURE__ */ de({
|
|
|
407
407
|
const a = Wt, c = Jt;
|
|
408
408
|
return $(), H(c, re({
|
|
409
409
|
class: ["jt-select", { "jt-select--hide-dropdown-icon": n.hideDropdownIcon }]
|
|
410
|
-
}, o.value,
|
|
410
|
+
}, o.value, Qe(i.value)), {
|
|
411
411
|
default: J(() => [
|
|
412
|
-
($(!0),
|
|
412
|
+
($(!0), U(Se, null, ye(s.options ?? [], (g) => ($(), H(a, re({
|
|
413
413
|
key: g.value,
|
|
414
414
|
ref_for: !0
|
|
415
415
|
}, g), null, 16))), 128))
|
|
@@ -418,7 +418,7 @@ const fo = /* @__PURE__ */ de({
|
|
|
418
418
|
}, 16, ["class"]);
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
}), go = /* @__PURE__ */ be(ho, [["__scopeId", "data-v-
|
|
421
|
+
}), go = /* @__PURE__ */ be(ho, [["__scopeId", "data-v-cb667840"]]), yo = { class: "jt-form-items" }, vt = 4, bo = /* @__PURE__ */ de({
|
|
422
422
|
name: "JTFormItems",
|
|
423
423
|
__name: "JtFormItems",
|
|
424
424
|
props: {
|
|
@@ -494,8 +494,8 @@ const fo = /* @__PURE__ */ de({
|
|
|
494
494
|
}
|
|
495
495
|
return (v, m) => {
|
|
496
496
|
const M = Zt;
|
|
497
|
-
return $(),
|
|
498
|
-
($(!0),
|
|
497
|
+
return $(), U("div", yo, [
|
|
498
|
+
($(!0), U(Se, null, ye(l.value, (h) => ($(), H(M, re({
|
|
499
499
|
key: h.prop,
|
|
500
500
|
ref_for: !0,
|
|
501
501
|
ref: V(h.prop),
|
|
@@ -509,7 +509,7 @@ const fo = /* @__PURE__ */ de({
|
|
|
509
509
|
key: 1,
|
|
510
510
|
"model-value": v.formData[h.prop],
|
|
511
511
|
ref_for: !0
|
|
512
|
-
}, c(h),
|
|
512
|
+
}, c(h), Qe(g(h)), {
|
|
513
513
|
"onUpdate:modelValue": (j) => I(h.prop, j),
|
|
514
514
|
onChange: () => A(h.prop, "change"),
|
|
515
515
|
onBlur: () => A(h.prop, "blur")
|
|
@@ -530,7 +530,7 @@ const fo = /* @__PURE__ */ de({
|
|
|
530
530
|
]);
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
|
-
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-
|
|
533
|
+
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-02a564cb"]]);
|
|
534
534
|
function wo() {
|
|
535
535
|
const e = ge(!1);
|
|
536
536
|
function t() {
|
|
@@ -563,21 +563,21 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
563
563
|
() => Math.max(1, w.value.searchSpan ?? 4)
|
|
564
564
|
), d = L(() => Math.max(1, w.value.searchCollapsedRows ?? 1)), S = L(() => A.value), k = L(
|
|
565
565
|
() => Math.max(1, S.value * d.value)
|
|
566
|
-
), R = L(() => A.value), v = L(() => O.value ? "264px" : "174px"), m = L(() => G(w.value.searchLabelWidth ?? 84)), M = L(() => w.value.searchLabelPosition ?? "top"), h = L(() => Z(w.value.searchGutter,
|
|
566
|
+
), R = L(() => A.value), v = L(() => O.value ? "264px" : "174px"), m = L(() => G(w.value.searchLabelWidth ?? 84)), M = L(() => w.value.searchLabelPosition ?? "top"), h = L(() => Z(w.value.searchGutter, 16)), j = L(() => Z(w.value.searchRowGap, 10)), b = L(() => ie(w.value.searchPadding ?? "18px 4px 0")), O = L(() => w.value.searchCollapse === !1 ? !1 : K(V.value) > k.value), T = L(() => {
|
|
567
567
|
if (!O.value || !I.value) return V.value;
|
|
568
568
|
let P = 0;
|
|
569
569
|
return V.value.filter((te) => {
|
|
570
|
-
const oe =
|
|
570
|
+
const oe = q(te);
|
|
571
571
|
return P + oe > k.value ? !1 : (P += oe, !0);
|
|
572
572
|
});
|
|
573
573
|
}), z = L(
|
|
574
574
|
() => T.value.filter((P) => !!s[`${P.prop}-search`])
|
|
575
575
|
), ne = L(() => {
|
|
576
|
-
const
|
|
577
|
-
return
|
|
578
|
-
}),
|
|
579
|
-
const
|
|
580
|
-
return `${Math.min(A.value, P
|
|
576
|
+
const P = K(T.value);
|
|
577
|
+
return T.value.length > 0 && T.value.length <= 2 && P < A.value;
|
|
578
|
+
}), x = L(() => {
|
|
579
|
+
const P = K(T.value);
|
|
580
|
+
return `${Math.min(A.value, P + 1)}`;
|
|
581
581
|
}), N = L(
|
|
582
582
|
() => T.value.map((P) => F(P))
|
|
583
583
|
);
|
|
@@ -605,7 +605,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
605
605
|
...ae,
|
|
606
606
|
prop: P.prop,
|
|
607
607
|
label: P.searchLabel ?? P.label,
|
|
608
|
-
span:
|
|
608
|
+
span: q(P),
|
|
609
609
|
itemType: oe,
|
|
610
610
|
// 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
|
|
611
611
|
showSlot: !!s[`${P.prop}-search`],
|
|
@@ -654,11 +654,11 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
654
654
|
function E() {
|
|
655
655
|
I.value = !I.value;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
657
|
+
function q(P) {
|
|
658
658
|
return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
|
|
659
659
|
}
|
|
660
|
-
function
|
|
661
|
-
return P.reduce((te, oe) => te +
|
|
660
|
+
function K(P) {
|
|
661
|
+
return P.reduce((te, oe) => te + q(oe), 0);
|
|
662
662
|
}
|
|
663
663
|
function G(P) {
|
|
664
664
|
return typeof P == "number" ? `${P}px` : P;
|
|
@@ -680,13 +680,13 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
680
680
|
searchDone: g
|
|
681
681
|
}), (P, te) => {
|
|
682
682
|
const oe = Qt;
|
|
683
|
-
return $(),
|
|
684
|
-
class:
|
|
683
|
+
return $(), U("div", {
|
|
684
|
+
class: Je(["jt-filter-bar", [`is-label-${M.value}`, { "is-single-filter": ne.value }]]),
|
|
685
685
|
style: qt({
|
|
686
686
|
"--jt-filter-columns": A.value,
|
|
687
687
|
"--jt-filter-field-columns": R.value,
|
|
688
688
|
"--jt-filter-btns-width": v.value,
|
|
689
|
-
"--jt-filter-actions-start":
|
|
689
|
+
"--jt-filter-actions-start": x.value,
|
|
690
690
|
"--jt-filter-label-width": m.value,
|
|
691
691
|
"--jt-filter-column-gap": `${h.value}px`,
|
|
692
692
|
"--jt-filter-row-gap": `${j.value}px`,
|
|
@@ -718,14 +718,15 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
718
718
|
collapsed: I.value,
|
|
719
719
|
toggleCollapse: E
|
|
720
720
|
}, () => [
|
|
721
|
-
O.value ? ($(), H(se(
|
|
721
|
+
O.value ? ($(), H(se(ot), {
|
|
722
722
|
key: 0,
|
|
723
723
|
class: "jt-filter-bar__btn-collapse",
|
|
724
|
+
size: "small",
|
|
724
725
|
onClick: E
|
|
725
726
|
}, {
|
|
726
727
|
icon: J(() => [
|
|
727
728
|
ee("img", {
|
|
728
|
-
class:
|
|
729
|
+
class: Je(["jt-filter-bar__icon-arrow", { "is-collapsed": I.value }]),
|
|
729
730
|
src: se(Io),
|
|
730
731
|
alt: ""
|
|
731
732
|
}, null, 10, ko)
|
|
@@ -735,8 +736,9 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
735
736
|
]),
|
|
736
737
|
_: 1
|
|
737
738
|
})) : fe("", !0),
|
|
738
|
-
we(se(
|
|
739
|
+
we(se(ot), {
|
|
739
740
|
class: "jt-filter-bar__btn-reset",
|
|
741
|
+
size: "small",
|
|
740
742
|
disabled: se(a),
|
|
741
743
|
onClick: B
|
|
742
744
|
}, {
|
|
@@ -751,9 +753,10 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
751
753
|
]),
|
|
752
754
|
_: 1
|
|
753
755
|
}, 8, ["disabled"]),
|
|
754
|
-
we(se(
|
|
756
|
+
we(se(ot), {
|
|
755
757
|
class: "jt-filter-bar__btn-query",
|
|
756
758
|
type: "primary",
|
|
759
|
+
size: "small",
|
|
757
760
|
disabled: se(a),
|
|
758
761
|
onClick: _
|
|
759
762
|
}, {
|
|
@@ -793,7 +796,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
793
796
|
], 6);
|
|
794
797
|
};
|
|
795
798
|
}
|
|
796
|
-
}), Oo = /* @__PURE__ */ be(Do, [["__scopeId", "data-v-
|
|
799
|
+
}), Oo = /* @__PURE__ */ be(Do, [["__scopeId", "data-v-f2973026"]]), Fo = { key: 1 }, Bo = { key: 2 }, Eo = { key: 3 }, Lo = /* @__PURE__ */ de({
|
|
797
800
|
name: "JtTable",
|
|
798
801
|
__name: "JtTable",
|
|
799
802
|
props: {
|
|
@@ -842,7 +845,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
842
845
|
"row-key": i.value.rowKey ?? "id",
|
|
843
846
|
"empty-text": i.value.emptyText,
|
|
844
847
|
class: "jt-table"
|
|
845
|
-
}, i.value.tableProps,
|
|
848
|
+
}, i.value.tableProps, Qe(d.tableEvents)), {
|
|
846
849
|
default: J(() => [
|
|
847
850
|
i.value.selection ? ($(), H(k, {
|
|
848
851
|
key: 0,
|
|
@@ -857,7 +860,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
857
860
|
width: "60",
|
|
858
861
|
align: "center"
|
|
859
862
|
}, null, 8, ["label"])) : fe("", !0),
|
|
860
|
-
($(!0),
|
|
863
|
+
($(!0), U(Se, null, ye(s.value, (v) => ($(), H(k, re({
|
|
861
864
|
key: v.prop,
|
|
862
865
|
prop: v.prop,
|
|
863
866
|
label: v.label,
|
|
@@ -877,12 +880,12 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
877
880
|
c(v.prop) ? X(d.$slots, `${v.prop}-data`, re({
|
|
878
881
|
key: 0,
|
|
879
882
|
ref_for: !0
|
|
880
|
-
}, m), void 0, !0) : v.dicData ? ($(),
|
|
883
|
+
}, m), void 0, !0) : v.dicData ? ($(), U("span", Fo, me(A(v.dicData, m.row[v.prop])), 1)) : v.formatter ? ($(), U("span", Bo, me(v.formatter(
|
|
881
884
|
m.row,
|
|
882
885
|
m.column,
|
|
883
886
|
m.row[v.prop],
|
|
884
887
|
m.$index
|
|
885
|
-
)), 1)) : ($(),
|
|
888
|
+
)), 1)) : ($(), U("span", Eo, me(m.row[v.prop]), 1))
|
|
886
889
|
]),
|
|
887
890
|
key: "1"
|
|
888
891
|
} : void 0
|
|
@@ -905,7 +908,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
905
908
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
906
909
|
};
|
|
907
910
|
}
|
|
908
|
-
}), Vo = /* @__PURE__ */ be(Lo, [["__scopeId", "data-v-
|
|
911
|
+
}), Vo = /* @__PURE__ */ be(Lo, [["__scopeId", "data-v-d55eb34a"]]), Po = { class: "jt-pagination" }, Ao = { class: "jt-pagination__count" }, jo = /* @__PURE__ */ de({
|
|
909
912
|
name: "JtPagination",
|
|
910
913
|
__name: "JtPagination",
|
|
911
914
|
props: {
|
|
@@ -922,7 +925,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
922
925
|
}
|
|
923
926
|
return (s, l) => {
|
|
924
927
|
const a = Zn;
|
|
925
|
-
return $(),
|
|
928
|
+
return $(), U("div", Po, [
|
|
926
929
|
we(a, {
|
|
927
930
|
"current-page": s.currentPage,
|
|
928
931
|
"page-size": s.pageSize,
|
|
@@ -938,7 +941,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
938
941
|
]);
|
|
939
942
|
};
|
|
940
943
|
}
|
|
941
|
-
}), No = /* @__PURE__ */ be(jo, [["__scopeId", "data-v-
|
|
944
|
+
}), No = /* @__PURE__ */ be(jo, [["__scopeId", "data-v-4394abe7"]]), Ro = { class: "jt-crud-table" }, zo = { class: "filter-bar-box" }, xo = { class: "jt-crud-table__result" }, qo = { class: "jt-crud-table__table-group" }, Go = {
|
|
942
945
|
key: 0,
|
|
943
946
|
class: "jt-crud-table__toolbar"
|
|
944
947
|
}, Ko = /* @__PURE__ */ de({
|
|
@@ -1000,7 +1003,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1000
1003
|
searchDone: M
|
|
1001
1004
|
}), (h, j) => {
|
|
1002
1005
|
const b = Qn;
|
|
1003
|
-
return $(),
|
|
1006
|
+
return $(), U("div", Ro, [
|
|
1004
1007
|
X(h.$slots, "header", {}, void 0, !0),
|
|
1005
1008
|
ee("div", zo, [
|
|
1006
1009
|
I.value ? ($(), H(Oo, {
|
|
@@ -1024,7 +1027,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1024
1027
|
]),
|
|
1025
1028
|
ee("div", xo, [
|
|
1026
1029
|
ee("div", qo, [
|
|
1027
|
-
se(a).toolbar ? ($(),
|
|
1030
|
+
se(a).toolbar ? ($(), U("div", Go, [
|
|
1028
1031
|
X(h.$slots, "toolbar", {}, void 0, !0)
|
|
1029
1032
|
])) : fe("", !0),
|
|
1030
1033
|
Yn(($(), H(Vo, {
|
|
@@ -1073,7 +1076,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1073
1076
|
]);
|
|
1074
1077
|
};
|
|
1075
1078
|
}
|
|
1076
|
-
}), Ga = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-
|
|
1079
|
+
}), Ga = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-156ba76d"]]), Yo = { class: "jt-page-header__title" }, Uo = { key: 0 }, Ho = {
|
|
1077
1080
|
key: 0,
|
|
1078
1081
|
class: "jt-page-header__operates"
|
|
1079
1082
|
}, Jo = /* @__PURE__ */ de({
|
|
@@ -1090,17 +1093,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1090
1093
|
function s(l, a) {
|
|
1091
1094
|
l.onClick?.(l, a), o("operate-click", l, a);
|
|
1092
1095
|
}
|
|
1093
|
-
return (l, a) => ($(),
|
|
1096
|
+
return (l, a) => ($(), U("div", re({
|
|
1094
1097
|
class: ["jt-page-header", `jt-page-header--${l.type}`]
|
|
1095
1098
|
}, l.$attrs), [
|
|
1096
1099
|
ee("div", Yo, [
|
|
1097
1100
|
X(l.$slots, "title", {}, () => [
|
|
1098
|
-
l.title ? ($(),
|
|
1101
|
+
l.title ? ($(), U("span", Uo, me(l.title), 1)) : fe("", !0)
|
|
1099
1102
|
], !0)
|
|
1100
1103
|
]),
|
|
1101
|
-
i.value ? ($(),
|
|
1104
|
+
i.value ? ($(), U("div", Ho, [
|
|
1102
1105
|
X(l.$slots, "operates", { operates: l.operates }, () => [
|
|
1103
|
-
($(!0),
|
|
1106
|
+
($(!0), U(Se, null, ye(l.operates, (c) => ($(), H(se(ot), re({
|
|
1104
1107
|
key: c.key ?? c.label,
|
|
1105
1108
|
ref_for: !0
|
|
1106
1109
|
}, c.buttonProps, {
|
|
@@ -1122,7 +1125,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1122
1125
|
])) : fe("", !0)
|
|
1123
1126
|
], 16));
|
|
1124
1127
|
}
|
|
1125
|
-
}), Ka = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-
|
|
1128
|
+
}), Ka = /* @__PURE__ */ be(Jo, [["__scopeId", "data-v-0926ebf1"]]);
|
|
1126
1129
|
function Wo(e, t) {
|
|
1127
1130
|
t = t || (() => "default-use-once-sync");
|
|
1128
1131
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -1156,15 +1159,15 @@ function rn(e, t) {
|
|
|
1156
1159
|
}
|
|
1157
1160
|
return o.bind(e);
|
|
1158
1161
|
}
|
|
1159
|
-
var
|
|
1160
|
-
function
|
|
1162
|
+
var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1163
|
+
function lt(e) {
|
|
1161
1164
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1162
1165
|
}
|
|
1163
1166
|
var an = { exports: {} };
|
|
1164
1167
|
(function(e, t) {
|
|
1165
1168
|
(function(n, o) {
|
|
1166
1169
|
e.exports = o();
|
|
1167
|
-
})(
|
|
1170
|
+
})(it, function() {
|
|
1168
1171
|
var n = 1e3, o = 6e4, r = 36e5, i = "millisecond", s = "second", l = "minute", a = "hour", c = "day", g = "week", w = "month", I = "quarter", V = "year", A = "date", d = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
|
1169
1172
|
var D = ["th", "st", "nd", "rd"], F = N % 100;
|
|
1170
1173
|
return "[" + N + (D[(F - 20) % 10] || D[F] || D[0]) + "]";
|
|
@@ -1223,8 +1226,8 @@ var an = { exports: {} };
|
|
|
1223
1226
|
if (typeof y == "string" && !/Z$/i.test(y)) {
|
|
1224
1227
|
var B = y.match(S);
|
|
1225
1228
|
if (B) {
|
|
1226
|
-
var E = B[2] - 1 || 0,
|
|
1227
|
-
return _ ? new Date(Date.UTC(B[1], E, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0,
|
|
1229
|
+
var E = B[2] - 1 || 0, q = (B[7] || "0").substring(0, 3);
|
|
1230
|
+
return _ ? new Date(Date.UTC(B[1], E, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q)) : new Date(B[1], E, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, q);
|
|
1228
1231
|
}
|
|
1229
1232
|
}
|
|
1230
1233
|
return new Date(y);
|
|
@@ -1253,37 +1256,37 @@ var an = { exports: {} };
|
|
|
1253
1256
|
var y = this, _ = !!z.u(u) || u, B = z.p(F), E = function(oe, ae) {
|
|
1254
1257
|
var pe = z.w(y.$u ? Date.UTC(y.$y, ae, oe) : new Date(y.$y, ae, oe), y);
|
|
1255
1258
|
return _ ? pe : pe.endOf(c);
|
|
1256
|
-
},
|
|
1259
|
+
}, q = function(oe, ae) {
|
|
1257
1260
|
return z.w(y.toDate()[oe].apply(y.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), y);
|
|
1258
|
-
},
|
|
1261
|
+
}, K = this.$W, G = this.$M, Z = this.$D, ie = "set" + (this.$u ? "UTC" : "");
|
|
1259
1262
|
switch (B) {
|
|
1260
1263
|
case V:
|
|
1261
1264
|
return _ ? E(1, 0) : E(31, 11);
|
|
1262
1265
|
case w:
|
|
1263
1266
|
return _ ? E(1, G) : E(0, G + 1);
|
|
1264
1267
|
case g:
|
|
1265
|
-
var P = this.$locale().weekStart || 0, te = (
|
|
1268
|
+
var P = this.$locale().weekStart || 0, te = (K < P ? K + 7 : K) - P;
|
|
1266
1269
|
return E(_ ? Z - te : Z + (6 - te), G);
|
|
1267
1270
|
case c:
|
|
1268
1271
|
case A:
|
|
1269
|
-
return
|
|
1272
|
+
return q(ie + "Hours", 0);
|
|
1270
1273
|
case a:
|
|
1271
|
-
return
|
|
1274
|
+
return q(ie + "Minutes", 1);
|
|
1272
1275
|
case l:
|
|
1273
|
-
return
|
|
1276
|
+
return q(ie + "Seconds", 2);
|
|
1274
1277
|
case s:
|
|
1275
|
-
return
|
|
1278
|
+
return q(ie + "Milliseconds", 3);
|
|
1276
1279
|
default:
|
|
1277
1280
|
return this.clone();
|
|
1278
1281
|
}
|
|
1279
1282
|
}, D.endOf = function(F) {
|
|
1280
1283
|
return this.startOf(F, !1);
|
|
1281
1284
|
}, D.$set = function(F, u) {
|
|
1282
|
-
var y, _ = z.p(F), B = "set" + (this.$u ? "UTC" : ""), E = (y = {}, y[c] = B + "Date", y[A] = B + "Date", y[w] = B + "Month", y[V] = B + "FullYear", y[a] = B + "Hours", y[l] = B + "Minutes", y[s] = B + "Seconds", y[i] = B + "Milliseconds", y)[_],
|
|
1285
|
+
var y, _ = z.p(F), B = "set" + (this.$u ? "UTC" : ""), E = (y = {}, y[c] = B + "Date", y[A] = B + "Date", y[w] = B + "Month", y[V] = B + "FullYear", y[a] = B + "Hours", y[l] = B + "Minutes", y[s] = B + "Seconds", y[i] = B + "Milliseconds", y)[_], q = _ === c ? this.$D + (u - this.$W) : u;
|
|
1283
1286
|
if (_ === w || _ === V) {
|
|
1284
|
-
var
|
|
1285
|
-
|
|
1286
|
-
} else E && this.$d[E](
|
|
1287
|
+
var K = this.clone().set(A, 1);
|
|
1288
|
+
K.$d[E](q), K.init(), this.$d = K.set(A, Math.min(this.$D, K.daysInMonth())).$d;
|
|
1289
|
+
} else E && this.$d[E](q);
|
|
1287
1290
|
return this.init(), this;
|
|
1288
1291
|
}, D.set = function(F, u) {
|
|
1289
1292
|
return this.clone().$set(F, u);
|
|
@@ -1300,14 +1303,14 @@ var an = { exports: {} };
|
|
|
1300
1303
|
if (B === V) return this.set(V, this.$y + F);
|
|
1301
1304
|
if (B === c) return E(1);
|
|
1302
1305
|
if (B === g) return E(7);
|
|
1303
|
-
var
|
|
1304
|
-
return z.w(
|
|
1306
|
+
var q = (y = {}, y[l] = o, y[a] = r, y[s] = n, y)[B] || 1, K = this.$d.getTime() + F * q;
|
|
1307
|
+
return z.w(K, this);
|
|
1305
1308
|
}, D.subtract = function(F, u) {
|
|
1306
1309
|
return this.add(-1 * F, u);
|
|
1307
1310
|
}, D.format = function(F) {
|
|
1308
1311
|
var u = this, y = this.$locale();
|
|
1309
1312
|
if (!this.isValid()) return y.invalidDate || d;
|
|
1310
|
-
var _ = F || "YYYY-MM-DDTHH:mm:ssZ", B = z.z(this), E = this.$H,
|
|
1313
|
+
var _ = F || "YYYY-MM-DDTHH:mm:ssZ", B = z.z(this), E = this.$H, q = this.$m, K = this.$M, G = y.weekdays, Z = y.months, ie = y.meridiem, P = function(ae, pe, De, Ie) {
|
|
1311
1314
|
return ae && (ae[pe] || ae(u, _)) || De[pe].slice(0, Ie);
|
|
1312
1315
|
}, te = function(ae) {
|
|
1313
1316
|
return z.s(E % 12 || 12, ae, "0");
|
|
@@ -1323,13 +1326,13 @@ var an = { exports: {} };
|
|
|
1323
1326
|
case "YYYY":
|
|
1324
1327
|
return z.s(u.$y, 4, "0");
|
|
1325
1328
|
case "M":
|
|
1326
|
-
return
|
|
1329
|
+
return K + 1;
|
|
1327
1330
|
case "MM":
|
|
1328
|
-
return z.s(
|
|
1331
|
+
return z.s(K + 1, 2, "0");
|
|
1329
1332
|
case "MMM":
|
|
1330
|
-
return P(y.monthsShort,
|
|
1333
|
+
return P(y.monthsShort, K, Z, 3);
|
|
1331
1334
|
case "MMMM":
|
|
1332
|
-
return P(Z,
|
|
1335
|
+
return P(Z, K);
|
|
1333
1336
|
case "D":
|
|
1334
1337
|
return u.$D;
|
|
1335
1338
|
case "DD":
|
|
@@ -1351,13 +1354,13 @@ var an = { exports: {} };
|
|
|
1351
1354
|
case "hh":
|
|
1352
1355
|
return te(2);
|
|
1353
1356
|
case "a":
|
|
1354
|
-
return oe(E,
|
|
1357
|
+
return oe(E, q, !0);
|
|
1355
1358
|
case "A":
|
|
1356
|
-
return oe(E,
|
|
1359
|
+
return oe(E, q, !1);
|
|
1357
1360
|
case "m":
|
|
1358
|
-
return String(
|
|
1361
|
+
return String(q);
|
|
1359
1362
|
case "mm":
|
|
1360
|
-
return z.s(
|
|
1363
|
+
return z.s(q, 2, "0");
|
|
1361
1364
|
case "s":
|
|
1362
1365
|
return String(u.$s);
|
|
1363
1366
|
case "ss":
|
|
@@ -1373,8 +1376,8 @@ var an = { exports: {} };
|
|
|
1373
1376
|
}, D.utcOffset = function() {
|
|
1374
1377
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1375
1378
|
}, D.diff = function(F, u, y) {
|
|
1376
|
-
var _, B = this, E = z.p(u),
|
|
1377
|
-
return z.m(B,
|
|
1379
|
+
var _, B = this, E = z.p(u), q = T(F), K = (q.utcOffset() - this.utcOffset()) * o, G = this - q, Z = function() {
|
|
1380
|
+
return z.m(B, q);
|
|
1378
1381
|
};
|
|
1379
1382
|
switch (E) {
|
|
1380
1383
|
case V:
|
|
@@ -1387,10 +1390,10 @@ var an = { exports: {} };
|
|
|
1387
1390
|
_ = Z() / 3;
|
|
1388
1391
|
break;
|
|
1389
1392
|
case g:
|
|
1390
|
-
_ = (G -
|
|
1393
|
+
_ = (G - K) / 6048e5;
|
|
1391
1394
|
break;
|
|
1392
1395
|
case c:
|
|
1393
|
-
_ = (G -
|
|
1396
|
+
_ = (G - K) / 864e5;
|
|
1394
1397
|
break;
|
|
1395
1398
|
case a:
|
|
1396
1399
|
_ = G / r;
|
|
@@ -1424,9 +1427,9 @@ var an = { exports: {} };
|
|
|
1424
1427
|
}, D.toString = function() {
|
|
1425
1428
|
return this.$d.toUTCString();
|
|
1426
1429
|
}, N;
|
|
1427
|
-
}(),
|
|
1428
|
-
return T.prototype =
|
|
1429
|
-
|
|
1430
|
+
}(), x = ne.prototype;
|
|
1431
|
+
return T.prototype = x, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", w], ["$y", V], ["$D", A]].forEach(function(N) {
|
|
1432
|
+
x[N[1]] = function(D) {
|
|
1430
1433
|
return this.$g(D, N[0], N[1]);
|
|
1431
1434
|
};
|
|
1432
1435
|
}), T.extend = function(N, D) {
|
|
@@ -1437,12 +1440,12 @@ var an = { exports: {} };
|
|
|
1437
1440
|
});
|
|
1438
1441
|
})(an);
|
|
1439
1442
|
var Zo = an.exports;
|
|
1440
|
-
const _t = /* @__PURE__ */
|
|
1443
|
+
const _t = /* @__PURE__ */ lt(Zo);
|
|
1441
1444
|
var sn = { exports: {} };
|
|
1442
1445
|
(function(e, t) {
|
|
1443
1446
|
(function(n, o) {
|
|
1444
1447
|
e.exports = o();
|
|
1445
|
-
})(
|
|
1448
|
+
})(it, function() {
|
|
1446
1449
|
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, o = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, a = {}, c = function(S) {
|
|
1447
1450
|
return (S = +S) + (S > 68 ? 1900 : 2e3);
|
|
1448
1451
|
}, g = function(S) {
|
|
@@ -1499,8 +1502,8 @@ var sn = { exports: {} };
|
|
|
1499
1502
|
var k, R;
|
|
1500
1503
|
k = S, R = a && a.formats;
|
|
1501
1504
|
for (var v = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, z, ne) {
|
|
1502
|
-
var
|
|
1503
|
-
return z || R[ne] || n[ne] || R[
|
|
1505
|
+
var x = ne && ne.toUpperCase();
|
|
1506
|
+
return z || R[ne] || n[ne] || R[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, D, F) {
|
|
1504
1507
|
return D || F.slice(1);
|
|
1505
1508
|
});
|
|
1506
1509
|
})).match(o), m = v.length, M = 0; M < m; M += 1) {
|
|
@@ -1508,11 +1511,11 @@ var sn = { exports: {} };
|
|
|
1508
1511
|
v[M] = O ? { regex: b, parser: O } : h.replace(/^\[|\]$/g, "");
|
|
1509
1512
|
}
|
|
1510
1513
|
return function(T) {
|
|
1511
|
-
for (var z = {}, ne = 0,
|
|
1514
|
+
for (var z = {}, ne = 0, x = 0; ne < m; ne += 1) {
|
|
1512
1515
|
var N = v[ne];
|
|
1513
|
-
if (typeof N == "string")
|
|
1516
|
+
if (typeof N == "string") x += N.length;
|
|
1514
1517
|
else {
|
|
1515
|
-
var D = N.regex, F = N.parser, u = T.slice(
|
|
1518
|
+
var D = N.regex, F = N.parser, u = T.slice(x), y = D.exec(u)[0];
|
|
1516
1519
|
F.call(z, y), T = T.replace(y, "");
|
|
1517
1520
|
}
|
|
1518
1521
|
}
|
|
@@ -1533,18 +1536,18 @@ var sn = { exports: {} };
|
|
|
1533
1536
|
this.$u = j;
|
|
1534
1537
|
var O = b[1];
|
|
1535
1538
|
if (typeof O == "string") {
|
|
1536
|
-
var T = b[2] === !0, z = b[3] === !0, ne = T || z,
|
|
1537
|
-
z && (
|
|
1539
|
+
var T = b[2] === !0, z = b[3] === !0, ne = T || z, x = b[2];
|
|
1540
|
+
z && (x = b[2]), a = this.$locale(), !T && x && (a = R.Ls[x]), this.$d = function(u, y, _, B) {
|
|
1538
1541
|
try {
|
|
1539
1542
|
if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * u);
|
|
1540
|
-
var E = d(y)(u),
|
|
1541
|
-
|
|
1542
|
-
var xe,
|
|
1543
|
-
return oe ? new Date(Date.UTC(Ie, ze, De,
|
|
1543
|
+
var E = d(y)(u), q = E.year, K = E.month, G = E.day, Z = E.hours, ie = E.minutes, P = E.seconds, te = E.milliseconds, oe = E.zone, ae = E.week, pe = /* @__PURE__ */ new Date(), De = G || (q || K ? 1 : pe.getDate()), Ie = q || pe.getFullYear(), ze = 0;
|
|
1544
|
+
q && !K || (ze = K > 0 ? K - 1 : pe.getMonth());
|
|
1545
|
+
var xe, tt = Z || 0, qe = ie || 0, p = P || 0, f = te || 0;
|
|
1546
|
+
return oe ? new Date(Date.UTC(Ie, ze, De, tt, qe, p, f + 60 * oe.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, ze, De, tt, qe, p, f)) : (xe = new Date(Ie, ze, De, tt, qe, p, f), ae && (xe = B(xe).week(ae).toDate()), xe);
|
|
1544
1547
|
} catch {
|
|
1545
1548
|
return /* @__PURE__ */ new Date("");
|
|
1546
1549
|
}
|
|
1547
|
-
}(h, O, j, R), this.init(),
|
|
1550
|
+
}(h, O, j, R), this.init(), x && x !== !0 && (this.$L = this.locale(x).$L), ne && h != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
|
|
1548
1551
|
} else if (O instanceof Array) for (var N = O.length, D = 1; D <= N; D += 1) {
|
|
1549
1552
|
b[1] = O[D - 1];
|
|
1550
1553
|
var F = R.apply(this, b);
|
|
@@ -1560,12 +1563,12 @@ var sn = { exports: {} };
|
|
|
1560
1563
|
});
|
|
1561
1564
|
})(sn);
|
|
1562
1565
|
var Qo = sn.exports;
|
|
1563
|
-
const Xo = /* @__PURE__ */
|
|
1566
|
+
const Xo = /* @__PURE__ */ lt(Qo);
|
|
1564
1567
|
var ln = { exports: {} };
|
|
1565
1568
|
(function(e, t) {
|
|
1566
1569
|
(function(n, o) {
|
|
1567
1570
|
e.exports = o();
|
|
1568
|
-
})(
|
|
1571
|
+
})(it, function() {
|
|
1569
1572
|
var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
|
|
1570
1573
|
return function(r, i, s) {
|
|
1571
1574
|
var l, a = function(I, V, A) {
|
|
@@ -1623,12 +1626,12 @@ var ln = { exports: {} };
|
|
|
1623
1626
|
});
|
|
1624
1627
|
})(ln);
|
|
1625
1628
|
var er = ln.exports;
|
|
1626
|
-
const tr = /* @__PURE__ */
|
|
1629
|
+
const tr = /* @__PURE__ */ lt(er);
|
|
1627
1630
|
var cn = { exports: {} };
|
|
1628
1631
|
(function(e, t) {
|
|
1629
1632
|
(function(n, o) {
|
|
1630
1633
|
e.exports = o();
|
|
1631
|
-
})(
|
|
1634
|
+
})(it, function() {
|
|
1632
1635
|
var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
1633
1636
|
return function(i, s, l) {
|
|
1634
1637
|
var a = s.prototype;
|
|
@@ -1698,7 +1701,7 @@ var cn = { exports: {} };
|
|
|
1698
1701
|
});
|
|
1699
1702
|
})(cn);
|
|
1700
1703
|
var nr = cn.exports;
|
|
1701
|
-
const or = /* @__PURE__ */
|
|
1704
|
+
const or = /* @__PURE__ */ lt(nr);
|
|
1702
1705
|
_t.extend(or);
|
|
1703
1706
|
_t.extend(tr);
|
|
1704
1707
|
_t.extend(Xo);
|
|
@@ -1737,7 +1740,7 @@ function yt(e, t) {
|
|
|
1737
1740
|
}
|
|
1738
1741
|
!e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
|
|
1739
1742
|
}
|
|
1740
|
-
function
|
|
1743
|
+
function Xe(e) {
|
|
1741
1744
|
return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
|
|
1742
1745
|
}
|
|
1743
1746
|
function $t(e) {
|
|
@@ -1765,14 +1768,14 @@ function dn(e, t, n = "-") {
|
|
|
1765
1768
|
const o = $t(e);
|
|
1766
1769
|
return o === "empty" || Ce(t) ? n : un(t) ? (console.error("[globalInfo] field value render failed", t), n) : o === "select" ? pr(e, t, n) : o === "switch" ? fn(t) ? "是" : "否" : o === "file" ? mr(t, n) : o === "multi-row" ? vr(t, n) : String(t);
|
|
1767
1770
|
}
|
|
1768
|
-
function
|
|
1769
|
-
return Array.isArray(t) ? t :
|
|
1771
|
+
function ct(e, t) {
|
|
1772
|
+
return Array.isArray(t) ? t : dt(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [t] : [t];
|
|
1770
1773
|
}
|
|
1771
1774
|
function ar(e, t) {
|
|
1772
|
-
return
|
|
1775
|
+
return dt(e) ? ct(e, t) : t;
|
|
1773
1776
|
}
|
|
1774
1777
|
function sr(e, t) {
|
|
1775
|
-
return !
|
|
1778
|
+
return !dt(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
|
|
1776
1779
|
}
|
|
1777
1780
|
function fn(e) {
|
|
1778
1781
|
if (typeof e == "boolean") return e;
|
|
@@ -1780,7 +1783,7 @@ function fn(e) {
|
|
|
1780
1783
|
const t = String(e ?? "").trim().toLowerCase();
|
|
1781
1784
|
return ["true", "1", "y", "yes", "t", "是"].includes(t);
|
|
1782
1785
|
}
|
|
1783
|
-
function
|
|
1786
|
+
function ut(e, t, n, o = {}) {
|
|
1784
1787
|
const r = ur(o);
|
|
1785
1788
|
return e.filter((i) => i.visible ? !dr(i, t, n, r, o.rows) : !1);
|
|
1786
1789
|
}
|
|
@@ -1907,15 +1910,15 @@ function vn(e) {
|
|
|
1907
1910
|
return String(e ?? "").trim().toLowerCase();
|
|
1908
1911
|
}
|
|
1909
1912
|
function pr(e, t, n) {
|
|
1910
|
-
const o =
|
|
1913
|
+
const o = dt(e);
|
|
1911
1914
|
if (Array.isArray(t) || o) {
|
|
1912
|
-
const r =
|
|
1915
|
+
const r = ct(e, t).map((s) => Pt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
|
|
1913
1916
|
return r.length > 0 ? r.join(i) : n;
|
|
1914
1917
|
}
|
|
1915
1918
|
return Pt(e, t) || String(t).trim() || n;
|
|
1916
1919
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return !!e.props?.multiple && (
|
|
1920
|
+
function dt(e) {
|
|
1921
|
+
return !!e.props?.multiple && (Xe(e) === "select" || $t(e) === "select");
|
|
1919
1922
|
}
|
|
1920
1923
|
function Pt(e, t) {
|
|
1921
1924
|
return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
|
|
@@ -2015,7 +2018,7 @@ function Ya(e) {
|
|
|
2015
2018
|
}
|
|
2016
2019
|
function yn(e) {
|
|
2017
2020
|
const t = _n(e);
|
|
2018
|
-
return (Array.isArray(t) ? t :
|
|
2021
|
+
return (Array.isArray(t) ? t : We(ue(t), ["options", "list", "records", "data"])).map((o) => {
|
|
2019
2022
|
const r = ue(o), i = r.fieldvalue ?? r.fieldValue;
|
|
2020
2023
|
return {
|
|
2021
2024
|
id: r.id,
|
|
@@ -2028,7 +2031,7 @@ function yn(e) {
|
|
|
2028
2031
|
});
|
|
2029
2032
|
}
|
|
2030
2033
|
function Sr(e, t, n) {
|
|
2031
|
-
const o =
|
|
2034
|
+
const o = We(e, ["sections", "sets", "list"]);
|
|
2032
2035
|
return o.length > 0 ? o.map((r) => Nt(r, t, n, o.length === 1)) : e.infSetMark || e.infSetFields || e.fields ? [Nt(e, t, n, !0)] : [];
|
|
2033
2036
|
}
|
|
2034
2037
|
function Nt(e, t, n, o) {
|
|
@@ -2049,7 +2052,7 @@ function Nt(e, t, n, o) {
|
|
|
2049
2052
|
fields: s,
|
|
2050
2053
|
model: c,
|
|
2051
2054
|
rows: a,
|
|
2052
|
-
operationInfo:
|
|
2055
|
+
operationInfo: ft(t.operationInfo ?? r.operationInfo),
|
|
2053
2056
|
raw: r
|
|
2054
2057
|
};
|
|
2055
2058
|
return h.renderType === "form" && a.length === 0 && (h.rows = [{ ...c, __rowKey: `${M}-0` }]), h;
|
|
@@ -2120,7 +2123,7 @@ function bn(e) {
|
|
|
2120
2123
|
return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
|
|
2121
2124
|
}
|
|
2122
2125
|
function Sn(e, t, n = "") {
|
|
2123
|
-
const o = ue(e), r =
|
|
2126
|
+
const o = ue(e), r = We(o, ["children", "list", "tags"]).flatMap((s) => Sn(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Tr(o.infSetList);
|
|
2124
2127
|
return r.length === 0 && i.length > 0 ? i.map((s, l) => kr(o, s, t, n, l)) : [Cr(o, t, n, r)];
|
|
2125
2128
|
}
|
|
2126
2129
|
function Cr(e, t, n, o) {
|
|
@@ -2142,7 +2145,7 @@ function Cr(e, t, n, o) {
|
|
|
2142
2145
|
code: ce(e.code),
|
|
2143
2146
|
children: o,
|
|
2144
2147
|
infSetList: [],
|
|
2145
|
-
operationInfo:
|
|
2148
|
+
operationInfo: ft(e.operationInfo),
|
|
2146
2149
|
loaded: o.length > 0,
|
|
2147
2150
|
raw: e
|
|
2148
2151
|
};
|
|
@@ -2166,7 +2169,7 @@ function kr(e, t, n, o, r) {
|
|
|
2166
2169
|
code: g,
|
|
2167
2170
|
children: [],
|
|
2168
2171
|
infSetList: [t],
|
|
2169
|
-
operationInfo:
|
|
2172
|
+
operationInfo: ft(e.operationInfo),
|
|
2170
2173
|
loaded: !0,
|
|
2171
2174
|
raw: {
|
|
2172
2175
|
...e,
|
|
@@ -2190,8 +2193,8 @@ function wn(e, t = {}) {
|
|
|
2190
2193
|
function Mr(e) {
|
|
2191
2194
|
if (Array.isArray(e.globalInfoSchmConfig))
|
|
2192
2195
|
return e.globalInfoSchmConfig;
|
|
2193
|
-
const t = ue(e.globalInfoSchmConfig), n =
|
|
2194
|
-
return n.length ? n :
|
|
2196
|
+
const t = ue(e.globalInfoSchmConfig), n = We(t, ["children", "tree", "list", "tags"]);
|
|
2197
|
+
return n.length ? n : We(e, ["children", "tree", "list", "tags", "records"]);
|
|
2195
2198
|
}
|
|
2196
2199
|
function Tr(e) {
|
|
2197
2200
|
return Array.isArray(e) ? e.map((t) => {
|
|
@@ -2201,7 +2204,7 @@ function Tr(e) {
|
|
|
2201
2204
|
setId: ce(n.setId),
|
|
2202
2205
|
// 信息集列表里的 code 是页面 section 插槽接管点,必须从树接口阶段保留下来。
|
|
2203
2206
|
code: ce(n.code),
|
|
2204
|
-
operationInfo:
|
|
2207
|
+
operationInfo: ft(n.operationInfo),
|
|
2205
2208
|
raw: n
|
|
2206
2209
|
};
|
|
2207
2210
|
}) : [];
|
|
@@ -2213,7 +2216,7 @@ function _n(e) {
|
|
|
2213
2216
|
const t = ue(e);
|
|
2214
2217
|
return t.data ?? t.result ?? e;
|
|
2215
2218
|
}
|
|
2216
|
-
function
|
|
2219
|
+
function We(e, t) {
|
|
2217
2220
|
for (const n of t) {
|
|
2218
2221
|
const o = e[n];
|
|
2219
2222
|
if (Array.isArray(o))
|
|
@@ -2235,7 +2238,7 @@ function $n(e) {
|
|
|
2235
2238
|
params: Cn(t.params)
|
|
2236
2239
|
};
|
|
2237
2240
|
}
|
|
2238
|
-
function
|
|
2241
|
+
function ft(e) {
|
|
2239
2242
|
const t = ue(e);
|
|
2240
2243
|
if (Object.keys(t).length !== 0)
|
|
2241
2244
|
return Object.fromEntries(
|
|
@@ -2292,7 +2295,7 @@ function Mn(e) {
|
|
|
2292
2295
|
function $e(e) {
|
|
2293
2296
|
return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
|
|
2294
2297
|
}
|
|
2295
|
-
const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => String(e ?? "").trim(),
|
|
2298
|
+
const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => String(e ?? "").trim(), et = (e) => Array.from(new Set(e.map(Br).filter(Boolean))), Ye = (e) => !!(e && typeof e == "object" && "children" in e), Ze = (e) => et([
|
|
2296
2299
|
e?.key,
|
|
2297
2300
|
e?.id,
|
|
2298
2301
|
e?.setId,
|
|
@@ -2301,7 +2304,7 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => Str
|
|
|
2301
2304
|
e?.code,
|
|
2302
2305
|
...(e?.infSetList ?? []).map((t) => t.infSetId),
|
|
2303
2306
|
...(e?.infSetList ?? []).map((t) => t.setId)
|
|
2304
|
-
]), Er = (e) =>
|
|
2307
|
+
]), Er = (e) => et([
|
|
2305
2308
|
e.key,
|
|
2306
2309
|
e.id,
|
|
2307
2310
|
e.setId,
|
|
@@ -2310,11 +2313,11 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => Str
|
|
|
2310
2313
|
e.code
|
|
2311
2314
|
]);
|
|
2312
2315
|
function Tn(e, t, n) {
|
|
2313
|
-
const o = Er(e), r =
|
|
2316
|
+
const o = Er(e), r = et([n, ...Ze(t)]);
|
|
2314
2317
|
return r.length === 0 ? !1 : r.some((i) => o.includes(i));
|
|
2315
2318
|
}
|
|
2316
2319
|
function Lr(e, t, n) {
|
|
2317
|
-
return
|
|
2320
|
+
return et([n, ...Ze(t)]).length === 0 ? e : e.filter((r) => Tn(r, t, n));
|
|
2318
2321
|
}
|
|
2319
2322
|
function Vr(e, t, n = {}) {
|
|
2320
2323
|
const o = Object.keys(n).length > 0 ? n : e.model, r = typeof t == "string" ? t : Ve(t), i = typeof t == "string" ? e.fields.find((a) => Ve(a) === r || a.code === r) : t, l = Re(i).some((a) => {
|
|
@@ -2340,24 +2343,24 @@ function Ar(e, t) {
|
|
|
2340
2343
|
function jr(e) {
|
|
2341
2344
|
return yn(e);
|
|
2342
2345
|
}
|
|
2343
|
-
const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {},
|
|
2346
|
+
const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, rt = (e) => {
|
|
2344
2347
|
const t = Te(e);
|
|
2345
2348
|
return !!(t.url || t.method || t.params);
|
|
2346
2349
|
};
|
|
2347
2350
|
function Nr(e) {
|
|
2348
2351
|
const t = Te(e.operationInfo).openTag;
|
|
2349
|
-
return
|
|
2352
|
+
return rt(t) ? t : void 0;
|
|
2350
2353
|
}
|
|
2351
2354
|
function Rr(e, t, n) {
|
|
2352
2355
|
const o = Te(e?.operationInfo).queryInfoSet;
|
|
2353
|
-
if (
|
|
2356
|
+
if (rt(o))
|
|
2354
2357
|
return o;
|
|
2355
2358
|
const r = t?.infSetList.find((s) => s.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
|
|
2356
|
-
return
|
|
2359
|
+
return rt(i) ? i : void 0;
|
|
2357
2360
|
}
|
|
2358
2361
|
function zr(e) {
|
|
2359
2362
|
const t = Te(e.operationInfo).editInfoSet;
|
|
2360
|
-
return
|
|
2363
|
+
return rt(t) ? t : void 0;
|
|
2361
2364
|
}
|
|
2362
2365
|
async function Dn(e) {
|
|
2363
2366
|
const t = e.params === void 0 ? void 0 : Te(e.params);
|
|
@@ -2409,7 +2412,7 @@ async function xr(e) {
|
|
|
2409
2412
|
e.context ? { ...e.context, params: o } : e.context
|
|
2410
2413
|
);
|
|
2411
2414
|
}
|
|
2412
|
-
function
|
|
2415
|
+
function He(e = {}) {
|
|
2413
2416
|
return {
|
|
2414
2417
|
// loading:当前 section 是否正在拉详情。
|
|
2415
2418
|
loading: !1,
|
|
@@ -2426,17 +2429,17 @@ function Ue(e = {}) {
|
|
|
2426
2429
|
};
|
|
2427
2430
|
}
|
|
2428
2431
|
function qr(e) {
|
|
2429
|
-
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Lr(e.nextViewModel.sections, e.node, e.targetKey), s =
|
|
2432
|
+
const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Lr(e.nextViewModel.sections, e.node, e.targetKey), s = et([e.targetKey, ...Ze(e.node)]).length > 0, l = i.find((a) => Tn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
|
|
2430
2433
|
return i.forEach((a) => {
|
|
2431
2434
|
const c = ke(a);
|
|
2432
|
-
t[c] = a, o.includes(c) || o.push(c), r[c] =
|
|
2435
|
+
t[c] = a, o.includes(c) || o.push(c), r[c] = He({
|
|
2433
2436
|
...r[c],
|
|
2434
2437
|
loaded: !0,
|
|
2435
2438
|
loading: !1,
|
|
2436
2439
|
error: null,
|
|
2437
2440
|
editing: e.editingSectionKeys.includes(c)
|
|
2438
2441
|
});
|
|
2439
|
-
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] =
|
|
2442
|
+
}), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = He({
|
|
2440
2443
|
...r[e.targetKey],
|
|
2441
2444
|
loaded: !0,
|
|
2442
2445
|
loading: !1,
|
|
@@ -2563,22 +2566,22 @@ const Ur = (e) => {
|
|
|
2563
2566
|
activeNode: l.value,
|
|
2564
2567
|
activeSection: a.value,
|
|
2565
2568
|
searchText: f?.searchText
|
|
2566
|
-
}),
|
|
2567
|
-
return m(
|
|
2569
|
+
}), Y = { ...p, params: C }, W = f && { ...f, params: C };
|
|
2570
|
+
return m(Y, W);
|
|
2568
2571
|
}, h = (p, f) => {
|
|
2569
2572
|
if (!f)
|
|
2570
2573
|
return p[0] ?? null;
|
|
2571
2574
|
for (const C of p) {
|
|
2572
|
-
if (
|
|
2575
|
+
if (Ze(C).includes(f))
|
|
2573
2576
|
return C;
|
|
2574
|
-
const
|
|
2575
|
-
if (
|
|
2576
|
-
return
|
|
2577
|
+
const Y = h(C.children, f);
|
|
2578
|
+
if (Y)
|
|
2579
|
+
return Y;
|
|
2577
2580
|
}
|
|
2578
2581
|
return null;
|
|
2579
2582
|
}, j = (p = a.value) => {
|
|
2580
2583
|
if (p)
|
|
2581
|
-
return typeof p == "string" ? p :
|
|
2584
|
+
return typeof p == "string" ? p : Ye(p) ? T(p) : ke(p);
|
|
2582
2585
|
}, b = (p = a.value) => {
|
|
2583
2586
|
const f = j(p);
|
|
2584
2587
|
if (!f)
|
|
@@ -2591,24 +2594,24 @@ const Ur = (e) => {
|
|
|
2591
2594
|
return g.value[f] ?? f;
|
|
2592
2595
|
}, T = (p = a.value) => {
|
|
2593
2596
|
if (p)
|
|
2594
|
-
return typeof p == "string" ? p :
|
|
2597
|
+
return typeof p == "string" ? p : Ye(p) ? p.setId ?? p.infSetId ?? p.key : ke(p);
|
|
2595
2598
|
}, z = (p = a.value) => {
|
|
2596
|
-
if (
|
|
2599
|
+
if (Ye(p))
|
|
2597
2600
|
return p;
|
|
2598
2601
|
if (typeof p == "string") {
|
|
2599
2602
|
const f = h(i.value, p);
|
|
2600
2603
|
if (f)
|
|
2601
2604
|
return f;
|
|
2602
2605
|
const C = b(p);
|
|
2603
|
-
return C?.ownerNodeKey ? h(i.value, C.ownerNodeKey) ?? l.value : C || l.value &&
|
|
2606
|
+
return C?.ownerNodeKey ? h(i.value, C.ownerNodeKey) ?? l.value : C || l.value && Ze(l.value).includes(p) ? l.value : null;
|
|
2604
2607
|
}
|
|
2605
2608
|
return p?.ownerNodeKey ? h(i.value, p.ownerNodeKey) ?? l.value : l.value;
|
|
2606
|
-
}, ne = (p = a.value) => !p ||
|
|
2609
|
+
}, ne = (p = a.value) => !p || Ye(p) ? null : b(p), x = (p = a.value) => {
|
|
2607
2610
|
const f = T(p);
|
|
2608
2611
|
if (!f)
|
|
2609
|
-
return
|
|
2612
|
+
return He();
|
|
2610
2613
|
const C = g.value[f] ?? f;
|
|
2611
|
-
return
|
|
2614
|
+
return He({
|
|
2612
2615
|
...I.value[f],
|
|
2613
2616
|
...I.value[C],
|
|
2614
2617
|
// 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
|
|
@@ -2620,7 +2623,7 @@ const Ur = (e) => {
|
|
|
2620
2623
|
const C = T(p);
|
|
2621
2624
|
C && (I.value = {
|
|
2622
2625
|
...I.value,
|
|
2623
|
-
[C]:
|
|
2626
|
+
[C]: He({
|
|
2624
2627
|
// 保留已有状态。
|
|
2625
2628
|
...I.value[C],
|
|
2626
2629
|
// 合并本次状态补丁。
|
|
@@ -2630,7 +2633,7 @@ const Ur = (e) => {
|
|
|
2630
2633
|
})
|
|
2631
2634
|
});
|
|
2632
2635
|
}, D = (p = s.value?.raw ?? null, f = l.value) => {
|
|
2633
|
-
const C = A.value,
|
|
2636
|
+
const C = A.value, Y = a.value && C.find(
|
|
2634
2637
|
(W) => ke(W) === ke(a.value)
|
|
2635
2638
|
) ? a.value : null;
|
|
2636
2639
|
s.value = {
|
|
@@ -2644,16 +2647,16 @@ const Ur = (e) => {
|
|
|
2644
2647
|
// 当前激活节点。
|
|
2645
2648
|
activeNode: f,
|
|
2646
2649
|
// 当前激活 section。
|
|
2647
|
-
activeSection:
|
|
2650
|
+
activeSection: Y,
|
|
2648
2651
|
// 当前所有已加载 section。
|
|
2649
2652
|
sections: C,
|
|
2650
2653
|
// 当前 section 缓存。
|
|
2651
2654
|
sectionMap: c.value,
|
|
2652
2655
|
// 保留原始接口数据。
|
|
2653
2656
|
raw: p
|
|
2654
|
-
}, a.value =
|
|
2657
|
+
}, a.value = Y;
|
|
2655
2658
|
}, F = (p, f = l.value, C) => {
|
|
2656
|
-
const
|
|
2659
|
+
const Y = qr({
|
|
2657
2660
|
currentMap: c.value,
|
|
2658
2661
|
currentAliasMap: g.value,
|
|
2659
2662
|
currentOrder: w.value,
|
|
@@ -2664,53 +2667,54 @@ const Ur = (e) => {
|
|
|
2664
2667
|
targetKey: C,
|
|
2665
2668
|
activeSection: a.value
|
|
2666
2669
|
});
|
|
2667
|
-
return c.value =
|
|
2670
|
+
return c.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, I.value = Y.sectionStatusMap, s.value = {
|
|
2668
2671
|
...p,
|
|
2669
2672
|
scheme: p.scheme ?? s.value?.scheme ?? null,
|
|
2670
2673
|
topNodes: i.value,
|
|
2671
2674
|
treeNodes: i.value,
|
|
2672
2675
|
activeNode: f,
|
|
2673
|
-
activeSection:
|
|
2674
|
-
sections:
|
|
2676
|
+
activeSection: Y.matchedSection,
|
|
2677
|
+
sections: Y.targetSections,
|
|
2675
2678
|
sectionMap: c.value
|
|
2676
|
-
}, a.value =
|
|
2679
|
+
}, a.value = Y.matchedSection, Y.matchedSection;
|
|
2677
2680
|
}, u = (p, f) => {
|
|
2678
|
-
const C = O(p),
|
|
2679
|
-
if (!C || !
|
|
2681
|
+
const C = O(p), Y = C ? c.value[C] : null;
|
|
2682
|
+
if (!C || !Y)
|
|
2680
2683
|
return;
|
|
2681
|
-
const W = f(
|
|
2684
|
+
const W = f(Y);
|
|
2682
2685
|
c.value = {
|
|
2683
2686
|
...c.value,
|
|
2684
2687
|
[C]: W
|
|
2685
2688
|
}, a.value = ke(a.value ?? W) === C ? W : a.value, D();
|
|
2686
2689
|
}, y = async (p = a.value ?? l.value) => {
|
|
2687
|
-
const f = ne(p), C = z(p) ?? l.value,
|
|
2690
|
+
const f = ne(p), C = z(p) ?? l.value, Y = T(p);
|
|
2688
2691
|
if (!C)
|
|
2689
2692
|
return null;
|
|
2690
2693
|
if (!e.service.requestOperation)
|
|
2691
2694
|
throw Ne("service.requestOperation is required");
|
|
2692
|
-
n.value = !0, r.value = null, N(
|
|
2695
|
+
n.value = !0, r.value = null, N(Y ?? C, { loading: !0, error: null });
|
|
2693
2696
|
try {
|
|
2694
2697
|
const W = f ? [{ infSetId: f.infSetId, setId: f.setId, operationInfo: f.operationInfo, raw: f.raw }] : C.infSetList;
|
|
2695
2698
|
if (W.length === 0)
|
|
2696
2699
|
throw Ne("node.infSetList is required");
|
|
2697
2700
|
const _e = await Promise.all(W.map(async (le) => {
|
|
2698
|
-
const he = Rr(f, C, le.infSetId), Ae = {
|
|
2701
|
+
const he = Rr(f, C, le.infSetId), Ae = f?.requestTagId ?? f?.tagId ?? C.tagId, nt = {
|
|
2699
2702
|
...R(C, f),
|
|
2703
|
+
tagId: Ae,
|
|
2700
2704
|
infSetId: le.infSetId,
|
|
2701
2705
|
setId: le.setId,
|
|
2702
2706
|
operationInfo: le.operationInfo
|
|
2703
2707
|
};
|
|
2704
2708
|
if (he) {
|
|
2705
|
-
const
|
|
2709
|
+
const Ge = await v(he, {
|
|
2706
2710
|
type: "queryInfoSet",
|
|
2707
2711
|
requestSource: "inner",
|
|
2708
|
-
tagId:
|
|
2712
|
+
tagId: Ae,
|
|
2709
2713
|
node: C,
|
|
2710
2714
|
section: f,
|
|
2711
|
-
params:
|
|
2715
|
+
params: nt
|
|
2712
2716
|
});
|
|
2713
|
-
return gr(
|
|
2717
|
+
return gr(Ge, nt, C);
|
|
2714
2718
|
}
|
|
2715
2719
|
throw Ne("infoSet.operationInfo.queryInfoSet is required");
|
|
2716
2720
|
})), ve = {
|
|
@@ -2718,48 +2722,48 @@ const Ur = (e) => {
|
|
|
2718
2722
|
sections: _e.flatMap((le) => le.sections),
|
|
2719
2723
|
sectionMap: Object.fromEntries(_e.flatMap((le) => le.sections).map((le) => [le.key, le]))
|
|
2720
2724
|
};
|
|
2721
|
-
return F(ve, C,
|
|
2725
|
+
return F(ve, C, Y);
|
|
2722
2726
|
} catch (W) {
|
|
2723
|
-
throw r.value = W, N(
|
|
2727
|
+
throw r.value = W, N(Y ?? C, { loading: !1, error: W }), W;
|
|
2724
2728
|
} finally {
|
|
2725
|
-
n.value = !1, N(
|
|
2729
|
+
n.value = !1, N(Y ?? C, { loading: !1 });
|
|
2726
2730
|
}
|
|
2727
2731
|
}, _ = (p = a.value) => y(p), B = (p = a.value) => {
|
|
2728
2732
|
if (!p)
|
|
2729
2733
|
return null;
|
|
2730
|
-
if (!
|
|
2734
|
+
if (!Ye(p) && typeof p != "string")
|
|
2731
2735
|
return b(p);
|
|
2732
2736
|
const f = T(p);
|
|
2733
2737
|
return f ? c.value[g.value[f] ?? f] ?? null : null;
|
|
2734
|
-
}, E = async (p = l.value) => p ? (await y(p), s.value) : (s.value = null, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, null),
|
|
2738
|
+
}, E = async (p = l.value) => p ? (await y(p), s.value) : (s.value = null, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, null), q = async (p) => {
|
|
2735
2739
|
const f = Nr(p);
|
|
2736
2740
|
if (!f)
|
|
2737
2741
|
return p.children;
|
|
2738
|
-
const C = k(p),
|
|
2742
|
+
const C = k(p), Y = await v(f, {
|
|
2739
2743
|
type: "openTag",
|
|
2740
2744
|
requestSource: "sidebar",
|
|
2741
2745
|
tagId: p.tagId,
|
|
2742
2746
|
node: p,
|
|
2743
2747
|
params: C
|
|
2744
2748
|
});
|
|
2745
|
-
return jt(
|
|
2746
|
-
},
|
|
2749
|
+
return jt(Y).treeNodes;
|
|
2750
|
+
}, K = async (p) => {
|
|
2747
2751
|
if (p.loaded)
|
|
2748
2752
|
return p.children;
|
|
2749
|
-
const f = await
|
|
2753
|
+
const f = await q(p);
|
|
2750
2754
|
return f.length > 0 && (i.value = hn(i.value, p.key, f)), f;
|
|
2751
2755
|
}, G = async (p) => {
|
|
2752
2756
|
const f = typeof p == "string" ? h(i.value, p) : p;
|
|
2753
|
-
return f ? (l.value = f, a.value = null, V.value = [], await
|
|
2757
|
+
return f ? (l.value = f, a.value = null, V.value = [], await K(f), D(s.value?.raw, f), f) : null;
|
|
2754
2758
|
}, Z = async () => {
|
|
2755
2759
|
const p = e.service.templateTree;
|
|
2756
2760
|
if (!p)
|
|
2757
2761
|
throw Ne("service.templateTree is required");
|
|
2758
2762
|
t.value = !0, r.value = null;
|
|
2759
2763
|
try {
|
|
2760
|
-
const f = await p(S()), C = jt(f),
|
|
2764
|
+
const f = await p(S()), C = jt(f), Y = await Promise.all(
|
|
2761
2765
|
C.treeNodes.map(async (_e) => {
|
|
2762
|
-
const ve = await
|
|
2766
|
+
const ve = await q(_e);
|
|
2763
2767
|
return {
|
|
2764
2768
|
..._e,
|
|
2765
2769
|
children: ve,
|
|
@@ -2767,11 +2771,11 @@ const Ur = (e) => {
|
|
|
2767
2771
|
};
|
|
2768
2772
|
})
|
|
2769
2773
|
);
|
|
2770
|
-
i.value =
|
|
2771
|
-
const W = h(
|
|
2774
|
+
i.value = Y, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, V.value = [];
|
|
2775
|
+
const W = h(Y, e.initialActiveNodeKey) ?? h(Y);
|
|
2772
2776
|
return l.value = W, s.value = {
|
|
2773
2777
|
...C,
|
|
2774
|
-
treeNodes:
|
|
2778
|
+
treeNodes: Y,
|
|
2775
2779
|
activeNode: W,
|
|
2776
2780
|
sectionMap: c.value,
|
|
2777
2781
|
sections: A.value
|
|
@@ -2800,11 +2804,11 @@ const Ur = (e) => {
|
|
|
2800
2804
|
(C) => C !== f
|
|
2801
2805
|
), N(f, { editing: !1 }));
|
|
2802
2806
|
}, ae = (p, f, C) => {
|
|
2803
|
-
const
|
|
2807
|
+
const Y = typeof f == "string" ? f : Ve(f);
|
|
2804
2808
|
u(p, (W) => {
|
|
2805
|
-
const ve = (typeof f == "string" ? W.fields.find((he) => Ve(he) ===
|
|
2809
|
+
const ve = (typeof f == "string" ? W.fields.find((he) => Ve(he) === Y || he.code === Y) : f)?.cascadeClearFields ?? [], le = {
|
|
2806
2810
|
...W.model,
|
|
2807
|
-
[
|
|
2811
|
+
[Y]: C
|
|
2808
2812
|
};
|
|
2809
2813
|
return ve.forEach((he) => {
|
|
2810
2814
|
le[he] = "";
|
|
@@ -2818,38 +2822,38 @@ const Ur = (e) => {
|
|
|
2818
2822
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
2819
2823
|
fields: W.fields.map((he) => {
|
|
2820
2824
|
const Ae = Ve(he);
|
|
2821
|
-
return Ae ===
|
|
2825
|
+
return Ae === Y || he.code === Y ? { ...he, value: C } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
|
|
2822
2826
|
})
|
|
2823
2827
|
};
|
|
2824
2828
|
});
|
|
2825
|
-
}, pe = async (p, f, C = {},
|
|
2829
|
+
}, pe = async (p, f, C = {}, Y = {}) => {
|
|
2826
2830
|
const W = b(p);
|
|
2827
2831
|
if (!W)
|
|
2828
2832
|
return [];
|
|
2829
2833
|
const _e = {
|
|
2830
2834
|
...C,
|
|
2831
|
-
...
|
|
2835
|
+
...Y.searchText !== void 0 ? { searchText: Y.searchText } : {}
|
|
2832
2836
|
}, {
|
|
2833
2837
|
fieldKey: ve,
|
|
2834
2838
|
currentField: le,
|
|
2835
2839
|
sourceModel: he,
|
|
2836
2840
|
sourceRow: Ae,
|
|
2837
|
-
missingDependField:
|
|
2838
|
-
} = Vr(W, f, _e),
|
|
2839
|
-
if (!le || !
|
|
2841
|
+
missingDependField: nt
|
|
2842
|
+
} = Vr(W, f, _e), Ge = le?.interface;
|
|
2843
|
+
if (!le || !Ge)
|
|
2840
2844
|
return le?.options ?? [];
|
|
2841
2845
|
if (Pr(le))
|
|
2842
2846
|
return le.options ?? [];
|
|
2843
|
-
if (
|
|
2844
|
-
return u(W, (
|
|
2845
|
-
...
|
|
2846
|
-
fields:
|
|
2847
|
+
if (nt)
|
|
2848
|
+
return u(W, (Ke) => ({
|
|
2849
|
+
...Ke,
|
|
2850
|
+
fields: Ke.fields.map(
|
|
2847
2851
|
(Le) => Ve(Le) === ve || Le.code === ve ? { ...Le, options: [] } : Le
|
|
2848
2852
|
)
|
|
2849
2853
|
})), [];
|
|
2850
2854
|
const zn = await M(
|
|
2851
2855
|
{
|
|
2852
|
-
...
|
|
2856
|
+
...Ge
|
|
2853
2857
|
},
|
|
2854
2858
|
{
|
|
2855
2859
|
type: "fieldOptions",
|
|
@@ -2858,16 +2862,16 @@ const Ur = (e) => {
|
|
|
2858
2862
|
node: z(W),
|
|
2859
2863
|
section: W,
|
|
2860
2864
|
field: le,
|
|
2861
|
-
params: Te(
|
|
2865
|
+
params: Te(Ge.params),
|
|
2862
2866
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
2863
2867
|
model: he,
|
|
2864
2868
|
row: Ae,
|
|
2865
|
-
searchText:
|
|
2869
|
+
searchText: Y.searchText
|
|
2866
2870
|
}
|
|
2867
2871
|
), kt = jr(zn);
|
|
2868
|
-
return u(W, (
|
|
2869
|
-
...
|
|
2870
|
-
fields:
|
|
2872
|
+
return u(W, (Ke) => ({
|
|
2873
|
+
...Ke,
|
|
2874
|
+
fields: Ke.fields.map(
|
|
2871
2875
|
(Le) => Ve(Le) === ve || Le.code === ve ? { ...Le, options: kt } : Le
|
|
2872
2876
|
)
|
|
2873
2877
|
})), kt;
|
|
@@ -2883,9 +2887,9 @@ const Ur = (e) => {
|
|
|
2883
2887
|
// 表单类型同步合并到第一行 rows。
|
|
2884
2888
|
rows: C.renderType === "form" ? [{ ...C.rows[0], ...f }] : C.rows,
|
|
2885
2889
|
// fields.value 也同步成 model 中的值。
|
|
2886
|
-
fields: C.fields.map((
|
|
2887
|
-
...
|
|
2888
|
-
value: f[Ve(
|
|
2890
|
+
fields: C.fields.map((Y) => ({
|
|
2891
|
+
...Y,
|
|
2892
|
+
value: f[Ve(Y)]
|
|
2889
2893
|
}))
|
|
2890
2894
|
}));
|
|
2891
2895
|
}, Ie = (p, f) => {
|
|
@@ -2910,7 +2914,7 @@ const Ur = (e) => {
|
|
|
2910
2914
|
// 获取指定节点或 section 的缓存数据。
|
|
2911
2915
|
getSection: B,
|
|
2912
2916
|
// 获取指定节点或 section 的状态。
|
|
2913
|
-
getSectionStatus:
|
|
2917
|
+
getSectionStatus: x,
|
|
2914
2918
|
// 开启编辑。
|
|
2915
2919
|
startEdit: te,
|
|
2916
2920
|
// 取消编辑。
|
|
@@ -2930,8 +2934,8 @@ const Ur = (e) => {
|
|
|
2930
2934
|
},
|
|
2931
2935
|
// 删除单行本地缓存。
|
|
2932
2936
|
deleteRow: (p, f) => {
|
|
2933
|
-
const C = b(p),
|
|
2934
|
-
(_e, ve) => ve !==
|
|
2937
|
+
const C = b(p), Y = typeof f == "string" ? Number(f) : f, W = (C?.rows ?? []).filter(
|
|
2938
|
+
(_e, ve) => ve !== Y
|
|
2935
2939
|
);
|
|
2936
2940
|
Ie(p, W);
|
|
2937
2941
|
},
|
|
@@ -2940,8 +2944,8 @@ const Ur = (e) => {
|
|
|
2940
2944
|
const f = j(p), C = b(p);
|
|
2941
2945
|
if (!C)
|
|
2942
2946
|
return null;
|
|
2943
|
-
const
|
|
2944
|
-
if (!
|
|
2947
|
+
const Y = zr(C);
|
|
2948
|
+
if (!Y)
|
|
2945
2949
|
throw Ne("section.operationInfo.editInfoSet is required");
|
|
2946
2950
|
o.value = !0, r.value = null, f && f !== ke(C) && N(f, { saving: !0, error: null }), N(C, { saving: !0, error: null });
|
|
2947
2951
|
try {
|
|
@@ -2959,7 +2963,7 @@ const Ur = (e) => {
|
|
|
2959
2963
|
throw new Error(le);
|
|
2960
2964
|
const he = await v(
|
|
2961
2965
|
// 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
|
|
2962
|
-
|
|
2966
|
+
Y,
|
|
2963
2967
|
{
|
|
2964
2968
|
type: "editInfoSet",
|
|
2965
2969
|
requestSource: "inner",
|
|
@@ -3068,67 +3072,67 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3068
3072
|
},
|
|
3069
3073
|
emits: ["update:modelValue", "change", "loadOptions"],
|
|
3070
3074
|
setup(e, { emit: t }) {
|
|
3071
|
-
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = ge(null), s = L(() =>
|
|
3075
|
+
const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = ge(null), s = L(() => Xe(n.field)), l = L(() => s.value === "select_remote"), a = L(() => n.disabled || n.field.disabled || n.field.readonly), c = L(() => !!n.field.props?.multiple), g = L(() => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)), w = L(() => r.includes(s.value) ? n.field.props?.resize ?? "vertical" : void 0), I = L(() => {
|
|
3072
3076
|
if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
|
|
3073
|
-
const
|
|
3074
|
-
return Number.isFinite(
|
|
3077
|
+
const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
|
|
3078
|
+
return Number.isFinite(x) ? x : void 0;
|
|
3075
3079
|
}), V = L(() => ar(n.field, n.modelValue)), A = L(() => {
|
|
3076
|
-
const
|
|
3077
|
-
return
|
|
3080
|
+
const x = n.field.props?.activeValue ?? n.field.props?.["active-value"], N = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
|
|
3081
|
+
return x !== void 0 || N !== void 0 ? n.modelValue ?? N ?? !1 : fn(n.modelValue);
|
|
3078
3082
|
}), d = L(() => s.value === "code" ? 5 : 1), S = L(() => s.value === "file" && !Ce(n.modelValue)), k = L(() => dn(n.field, n.modelValue, "请选择文件")), R = L(() => pn(n.field, n.modelValue, "请选择文件")), v = L(() => n.field.placeholder ? n.field.placeholder : s.value === "select_remote" ? "请输入关键词" : s.value === "select" ? "请选择" : s.value === "date" ? "请选择日期" : s.value === "file" ? "请选择文件" : "请输入");
|
|
3079
3083
|
let m;
|
|
3080
|
-
function M(
|
|
3081
|
-
o("update:modelValue", j(
|
|
3084
|
+
function M(x) {
|
|
3085
|
+
o("update:modelValue", j(x));
|
|
3082
3086
|
}
|
|
3083
|
-
function h(
|
|
3084
|
-
o("change", j(
|
|
3087
|
+
function h(x) {
|
|
3088
|
+
o("change", j(x));
|
|
3085
3089
|
}
|
|
3086
|
-
function j(
|
|
3087
|
-
return s.value === "select" || s.value === "select_remote" ? sr(n.field,
|
|
3090
|
+
function j(x) {
|
|
3091
|
+
return s.value === "select" || s.value === "select_remote" ? sr(n.field, x) : x;
|
|
3088
3092
|
}
|
|
3089
|
-
function b(
|
|
3090
|
-
|
|
3093
|
+
function b(x) {
|
|
3094
|
+
x && o("loadOptions", l.value ? { searchText: "" } : void 0);
|
|
3091
3095
|
}
|
|
3092
|
-
function O(
|
|
3096
|
+
function O(x) {
|
|
3093
3097
|
l.value && (m && clearTimeout(m), m = setTimeout(() => {
|
|
3094
|
-
o("loadOptions", { searchText:
|
|
3098
|
+
o("loadOptions", { searchText: x });
|
|
3095
3099
|
}, 300));
|
|
3096
3100
|
}
|
|
3097
3101
|
function T() {
|
|
3098
3102
|
a.value || i.value?.click();
|
|
3099
3103
|
}
|
|
3100
|
-
function z(
|
|
3101
|
-
Fn(
|
|
3104
|
+
function z(x) {
|
|
3105
|
+
Fn(x);
|
|
3102
3106
|
}
|
|
3103
3107
|
Un(() => {
|
|
3104
3108
|
m && clearTimeout(m);
|
|
3105
3109
|
});
|
|
3106
|
-
function ne(
|
|
3107
|
-
const N =
|
|
3110
|
+
function ne(x) {
|
|
3111
|
+
const N = x.target, D = Array.from(N.files ?? []), F = n.field.props?.multiple ? D : D[0] ?? null;
|
|
3108
3112
|
M(F), h(F);
|
|
3109
3113
|
}
|
|
3110
|
-
return (
|
|
3114
|
+
return (x, N) => {
|
|
3111
3115
|
const D = Wt, F = Jt, u = Ut, y = Xn, _ = eo, B = Ht;
|
|
3112
3116
|
return s.value === "select" || s.value === "select_remote" ? ($(), H(F, re({
|
|
3113
3117
|
key: 0,
|
|
3114
3118
|
class: "global-info-field-control"
|
|
3115
|
-
},
|
|
3119
|
+
}, x.field.props, {
|
|
3116
3120
|
"model-value": V.value,
|
|
3117
3121
|
placeholder: v.value,
|
|
3118
3122
|
disabled: a.value,
|
|
3119
3123
|
"collapse-tags": c.value,
|
|
3120
3124
|
"collapse-tags-tooltip": c.value,
|
|
3121
3125
|
"max-collapse-tags": 1,
|
|
3122
|
-
filterable: l.value || !!
|
|
3123
|
-
remote: l.value || !!
|
|
3124
|
-
"remote-method": l.value ? O :
|
|
3126
|
+
filterable: l.value || !!x.field.props?.filterable,
|
|
3127
|
+
remote: l.value || !!x.field.props?.remote,
|
|
3128
|
+
"remote-method": l.value ? O : x.field.props?.remoteMethod,
|
|
3125
3129
|
clearable: "",
|
|
3126
3130
|
onVisibleChange: b,
|
|
3127
3131
|
"onUpdate:modelValue": M,
|
|
3128
3132
|
onChange: h
|
|
3129
3133
|
}), {
|
|
3130
3134
|
default: J(() => [
|
|
3131
|
-
($(!0),
|
|
3135
|
+
($(!0), U(Se, null, ye(x.field.options || [], (E) => ($(), H(D, {
|
|
3132
3136
|
key: String(E.value),
|
|
3133
3137
|
label: E.label,
|
|
3134
3138
|
value: E.value
|
|
@@ -3138,8 +3142,8 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3138
3142
|
}, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? ($(), H(u, re({
|
|
3139
3143
|
key: 1,
|
|
3140
3144
|
class: "global-info-field-control"
|
|
3141
|
-
},
|
|
3142
|
-
"model-value":
|
|
3145
|
+
}, x.field.props, {
|
|
3146
|
+
"model-value": x.modelValue,
|
|
3143
3147
|
placeholder: v.value,
|
|
3144
3148
|
disabled: a.value,
|
|
3145
3149
|
type: "date",
|
|
@@ -3149,7 +3153,7 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3149
3153
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? ($(), H(y, re({
|
|
3150
3154
|
key: 2,
|
|
3151
3155
|
class: "global-info-field-control"
|
|
3152
|
-
},
|
|
3156
|
+
}, x.field.props, {
|
|
3153
3157
|
"model-value": I.value,
|
|
3154
3158
|
placeholder: v.value,
|
|
3155
3159
|
disabled: a.value,
|
|
@@ -3159,14 +3163,14 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3159
3163
|
}), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? ($(), H(_, re({
|
|
3160
3164
|
key: 3,
|
|
3161
3165
|
class: "global-info-field-control global-info-field-control--switch"
|
|
3162
|
-
},
|
|
3166
|
+
}, x.field.props, {
|
|
3163
3167
|
"model-value": A.value,
|
|
3164
3168
|
disabled: a.value,
|
|
3165
3169
|
"onUpdate:modelValue": M,
|
|
3166
3170
|
onChange: h
|
|
3167
|
-
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? ($(),
|
|
3171
|
+
}), null, 16, ["model-value", "disabled"])) : s.value === "file" ? ($(), U("div", {
|
|
3168
3172
|
key: 4,
|
|
3169
|
-
class:
|
|
3173
|
+
class: Je(["global-info-field-control global-info-field-control--file", {
|
|
3170
3174
|
"is-disabled": a.value,
|
|
3171
3175
|
"is-empty": !S.value,
|
|
3172
3176
|
"is-filled": S.value
|
|
@@ -3179,23 +3183,23 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3179
3183
|
class: "global-info-field-control__file-input",
|
|
3180
3184
|
type: "file",
|
|
3181
3185
|
disabled: a.value,
|
|
3182
|
-
accept: String(
|
|
3183
|
-
multiple: !!
|
|
3186
|
+
accept: String(x.field.props?.accept ?? ""),
|
|
3187
|
+
multiple: !!x.field.props?.multiple,
|
|
3184
3188
|
onChange: ne
|
|
3185
3189
|
}, null, 40, Hr),
|
|
3186
|
-
R.value.length ? ($(),
|
|
3187
|
-
($(!0),
|
|
3190
|
+
R.value.length ? ($(), U("span", Jr, [
|
|
3191
|
+
($(!0), U(Se, null, ye(R.value, (E, q) => ($(), U(Se, {
|
|
3188
3192
|
key: E.key
|
|
3189
3193
|
}, [
|
|
3190
|
-
E.action ? ($(),
|
|
3194
|
+
E.action ? ($(), U("button", {
|
|
3191
3195
|
key: 0,
|
|
3192
3196
|
class: "global-info-field-control__file-preview",
|
|
3193
3197
|
type: "button",
|
|
3194
|
-
onClick: Gt((
|
|
3195
|
-
}, me(E.text), 9, Wr)) : ($(),
|
|
3196
|
-
|
|
3198
|
+
onClick: Gt((K) => z(E), ["stop", "prevent"])
|
|
3199
|
+
}, me(E.text), 9, Wr)) : ($(), U("span", Zr, me(E.text), 1)),
|
|
3200
|
+
q < R.value.length - 1 ? ($(), U("span", Qr, "、")) : fe("", !0)
|
|
3197
3201
|
], 64))), 128))
|
|
3198
|
-
])) : S.value ? ($(),
|
|
3202
|
+
])) : S.value ? ($(), U("span", Xr, me(k.value), 1)) : ($(), U("span", ea, "上 传"))
|
|
3199
3203
|
], 2)) : s.value === "empty" ? ($(), H(B, {
|
|
3200
3204
|
key: 5,
|
|
3201
3205
|
class: "global-info-field-control",
|
|
@@ -3208,7 +3212,7 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3208
3212
|
"global-info-field-control--textarea": r.includes(s.value),
|
|
3209
3213
|
"global-info-field-control--code": s.value === "code"
|
|
3210
3214
|
}]
|
|
3211
|
-
},
|
|
3215
|
+
}, x.field.props, {
|
|
3212
3216
|
"model-value": g.value,
|
|
3213
3217
|
placeholder: v.value,
|
|
3214
3218
|
disabled: a.value,
|
|
@@ -3220,7 +3224,7 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3220
3224
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3221
3225
|
};
|
|
3222
3226
|
}
|
|
3223
|
-
}), Bn = /* @__PURE__ */ be(ta, [["__scopeId", "data-v-
|
|
3227
|
+
}), Bn = /* @__PURE__ */ be(ta, [["__scopeId", "data-v-e5614372"]]), na = ["innerHTML"], oa = {
|
|
3224
3228
|
key: 1,
|
|
3225
3229
|
class: "global-info-field-value global-info-field-value--code"
|
|
3226
3230
|
}, ra = {
|
|
@@ -3239,40 +3243,40 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
|
|
|
3239
3243
|
function s(l) {
|
|
3240
3244
|
Fn(l);
|
|
3241
3245
|
}
|
|
3242
|
-
return (l, a) => n.value === "html" && !o.value ? ($(),
|
|
3246
|
+
return (l, a) => n.value === "html" && !o.value ? ($(), U("span", {
|
|
3243
3247
|
key: 0,
|
|
3244
3248
|
class: "global-info-field-value global-info-field-value--html",
|
|
3245
3249
|
innerHTML: r.value
|
|
3246
|
-
}, null, 8, na)) : n.value === "code" && !o.value ? ($(),
|
|
3247
|
-
($(!0),
|
|
3250
|
+
}, null, 8, na)) : n.value === "code" && !o.value ? ($(), U("pre", oa, me(r.value), 1)) : i.value.length ? ($(), U("span", ra, [
|
|
3251
|
+
($(!0), U(Se, null, ye(i.value, (c, g) => ($(), U(Se, {
|
|
3248
3252
|
key: c.key
|
|
3249
3253
|
}, [
|
|
3250
|
-
c.action ? ($(),
|
|
3254
|
+
c.action ? ($(), U("button", {
|
|
3251
3255
|
key: 0,
|
|
3252
3256
|
class: "global-info-field-value__attachment-preview",
|
|
3253
3257
|
type: "button",
|
|
3254
3258
|
onClick: (w) => s(c)
|
|
3255
|
-
}, me(c.text), 9, aa)) : ($(),
|
|
3256
|
-
g < i.value.length - 1 ? ($(),
|
|
3259
|
+
}, me(c.text), 9, aa)) : ($(), U("span", sa, me(c.text), 1)),
|
|
3260
|
+
g < i.value.length - 1 ? ($(), U("span", ia, "、")) : fe("", !0)
|
|
3257
3261
|
], 64))), 128))
|
|
3258
|
-
])) : ($(),
|
|
3262
|
+
])) : ($(), U("span", {
|
|
3259
3263
|
key: 3,
|
|
3260
|
-
class:
|
|
3264
|
+
class: Je(["global-info-field-value", {
|
|
3261
3265
|
"global-info-field-value--multi-row": n.value === "multi-row",
|
|
3262
3266
|
"global-info-field-value--file": n.value === "file" && !o.value
|
|
3263
3267
|
}])
|
|
3264
3268
|
}, me(r.value), 3));
|
|
3265
3269
|
}
|
|
3266
|
-
}), En = /* @__PURE__ */ be(la, [["__scopeId", "data-v-
|
|
3270
|
+
}), En = /* @__PURE__ */ be(la, [["__scopeId", "data-v-79688203"]]);
|
|
3267
3271
|
function ca(e) {
|
|
3268
|
-
const t =
|
|
3272
|
+
const t = Xe(e);
|
|
3269
3273
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
3270
3274
|
}
|
|
3271
|
-
function
|
|
3275
|
+
function at(e, t, n = {}, o = "") {
|
|
3272
3276
|
const r = t.key || t.id || t.code, s = Re(t).map((l) => `${l}:${String(n[l] ?? "")}`).join("|");
|
|
3273
3277
|
return [e, o, r, s].join("::");
|
|
3274
3278
|
}
|
|
3275
|
-
function
|
|
3279
|
+
function st(e, t, n) {
|
|
3276
3280
|
return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Re(e).length === 0 : !1;
|
|
3277
3281
|
}
|
|
3278
3282
|
function Ln(e = {}) {
|
|
@@ -3285,11 +3289,11 @@ function Vn(e, t) {
|
|
|
3285
3289
|
return n.size === 0 ? !1 : Re(e).some((o) => n.has(o));
|
|
3286
3290
|
}
|
|
3287
3291
|
function Pn(e, t, n) {
|
|
3288
|
-
const o =
|
|
3292
|
+
const o = Xe(e);
|
|
3289
3293
|
return ca(e) ? n ? !0 : !Ce(t) : !1;
|
|
3290
3294
|
}
|
|
3291
3295
|
function An(e, t) {
|
|
3292
|
-
return
|
|
3296
|
+
return Xe(e) !== "select_remote" ? {} : {
|
|
3293
3297
|
searchText: t == null ? "" : String(t)
|
|
3294
3298
|
};
|
|
3295
3299
|
}
|
|
@@ -3310,7 +3314,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3310
3314
|
renderConfig: {}
|
|
3311
3315
|
},
|
|
3312
3316
|
setup(e) {
|
|
3313
|
-
const t = e, n = Ee(), o = L(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = L(() =>
|
|
3317
|
+
const t = e, n = Ee(), o = L(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = L(() => ut(
|
|
3314
3318
|
t.section.fields,
|
|
3315
3319
|
t.section,
|
|
3316
3320
|
t.renderConfig,
|
|
@@ -3351,7 +3355,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3351
3355
|
}
|
|
3352
3356
|
}
|
|
3353
3357
|
function c(m, M) {
|
|
3354
|
-
const h =
|
|
3358
|
+
const h = ct(m, M);
|
|
3355
3359
|
return (m.options ?? []).filter((j) => h.some((b) => j.value === b || String(j.value) === String(b)));
|
|
3356
3360
|
}
|
|
3357
3361
|
function g() {
|
|
@@ -3365,8 +3369,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3365
3369
|
return Object.fromEntries(j);
|
|
3366
3370
|
}
|
|
3367
3371
|
async function I(m, M = {}, h = o.value) {
|
|
3368
|
-
const j = h, b = k(m), O =
|
|
3369
|
-
if (!Ln(M) &&
|
|
3372
|
+
const j = h, b = k(m), O = at(t.section.key, m, j), T = r.get(b);
|
|
3373
|
+
if (!Ln(M) && st(m, T, O)) {
|
|
3370
3374
|
r.set(b, O);
|
|
3371
3375
|
return;
|
|
3372
3376
|
}
|
|
@@ -3385,8 +3389,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3385
3389
|
if (M && !Vn(h, M)) continue;
|
|
3386
3390
|
const j = m[h.code];
|
|
3387
3391
|
if (!R(h, j)) continue;
|
|
3388
|
-
const b =
|
|
3389
|
-
if (
|
|
3392
|
+
const b = at(t.section.key, h, m), O = k(h), T = r.get(O);
|
|
3393
|
+
if (st(h, T, b)) {
|
|
3390
3394
|
r.set(O, b);
|
|
3391
3395
|
continue;
|
|
3392
3396
|
}
|
|
@@ -3448,7 +3452,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3448
3452
|
default: J(() => [
|
|
3449
3453
|
we(b, { gutter: 24 }, {
|
|
3450
3454
|
default: J(() => [
|
|
3451
|
-
($(!0),
|
|
3455
|
+
($(!0), U(Se, null, ye(i.value, (T) => ($(), H(j, {
|
|
3452
3456
|
key: k(T),
|
|
3453
3457
|
span: S(T)
|
|
3454
3458
|
}, {
|
|
@@ -3459,8 +3463,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3459
3463
|
}, T.formItemProps), {
|
|
3460
3464
|
label: J(() => [
|
|
3461
3465
|
ee("span", ua, [
|
|
3462
|
-
v(T) ? ($(),
|
|
3463
|
-
|
|
3466
|
+
v(T) ? ($(), U("span", da, "*")) : fe("", !0),
|
|
3467
|
+
Ue(" " + me(T.label), 1)
|
|
3464
3468
|
])
|
|
3465
3469
|
]),
|
|
3466
3470
|
default: J(() => [
|
|
@@ -3494,7 +3498,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3494
3498
|
}, 8, ["model"]);
|
|
3495
3499
|
};
|
|
3496
3500
|
}
|
|
3497
|
-
}), pa = /* @__PURE__ */ be(fa, [["__scopeId", "data-v-
|
|
3501
|
+
}), pa = /* @__PURE__ */ be(fa, [["__scopeId", "data-v-952fa220"]]), ma = /* @__PURE__ */ de({
|
|
3498
3502
|
name: "GlobalInfoDeleteConfirm",
|
|
3499
3503
|
__name: "GlobalInfoDeleteConfirm",
|
|
3500
3504
|
props: {
|
|
@@ -3543,7 +3547,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3543
3547
|
const u = t.renderConfig?.sequenceStart;
|
|
3544
3548
|
return typeof u == "number" && Number.isFinite(u) ? u : 1;
|
|
3545
3549
|
}), a = L(() => {
|
|
3546
|
-
const u =
|
|
3550
|
+
const u = ut(
|
|
3547
3551
|
t.section.fields,
|
|
3548
3552
|
t.section,
|
|
3549
3553
|
t.renderConfig,
|
|
@@ -3569,22 +3573,22 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3569
3573
|
}) : u.allowDelete !== !1);
|
|
3570
3574
|
}
|
|
3571
3575
|
function V(u, y, _, B) {
|
|
3572
|
-
const E = t.section.rows.slice(),
|
|
3576
|
+
const E = t.section.rows.slice(), q = _.cascadeClearFields ?? [], K = {
|
|
3573
3577
|
...u,
|
|
3574
3578
|
__rowKey: D(u),
|
|
3575
3579
|
[_.code]: B
|
|
3576
3580
|
};
|
|
3577
|
-
|
|
3578
|
-
|
|
3581
|
+
q.forEach((G) => {
|
|
3582
|
+
K[G] = "";
|
|
3579
3583
|
}), E[y] = {
|
|
3580
|
-
...
|
|
3581
|
-
}, t.actions.updateTableRows(t.section, E), A(_, B,
|
|
3584
|
+
...K
|
|
3585
|
+
}, t.actions.updateTableRows(t.section, E), A(_, B, K, y, E), v(_, K);
|
|
3582
3586
|
}
|
|
3583
3587
|
function A(u, y, _, B, E) {
|
|
3584
|
-
const
|
|
3585
|
-
if (
|
|
3588
|
+
const q = t.renderConfig?.onFieldBusinessChange;
|
|
3589
|
+
if (q)
|
|
3586
3590
|
try {
|
|
3587
|
-
const
|
|
3591
|
+
const K = d(u, y), G = { ...t.section.model, ..._ }, Z = {
|
|
3588
3592
|
field: u,
|
|
3589
3593
|
value: y,
|
|
3590
3594
|
section: t.section,
|
|
@@ -3598,18 +3602,18 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3598
3602
|
sections: S(),
|
|
3599
3603
|
sectionValues: k(t.section, E),
|
|
3600
3604
|
actions: t.actions,
|
|
3601
|
-
selectedOption:
|
|
3602
|
-
selectedOptions:
|
|
3605
|
+
selectedOption: K[0],
|
|
3606
|
+
selectedOptions: K
|
|
3603
3607
|
};
|
|
3604
|
-
Promise.resolve(
|
|
3608
|
+
Promise.resolve(q(Z)).catch((ie) => {
|
|
3605
3609
|
console.error("[GlobalInfoTableRenderer] field business change failed", ie);
|
|
3606
3610
|
});
|
|
3607
|
-
} catch (
|
|
3608
|
-
console.error("[GlobalInfoTableRenderer] field business change failed",
|
|
3611
|
+
} catch (K) {
|
|
3612
|
+
console.error("[GlobalInfoTableRenderer] field business change failed", K);
|
|
3609
3613
|
}
|
|
3610
3614
|
}
|
|
3611
3615
|
function d(u, y) {
|
|
3612
|
-
const _ =
|
|
3616
|
+
const _ = ct(u, y);
|
|
3613
3617
|
return (u.options ?? []).filter((B) => _.some((E) => B.value === E || String(B.value) === String(E)));
|
|
3614
3618
|
}
|
|
3615
3619
|
function S() {
|
|
@@ -3617,15 +3621,15 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3617
3621
|
}
|
|
3618
3622
|
function k(u, y) {
|
|
3619
3623
|
const B = S().flatMap((E) => {
|
|
3620
|
-
const
|
|
3621
|
-
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((
|
|
3624
|
+
const q = E.key === u.key ? y : E.renderType === "table" ? E.rows : E.model;
|
|
3625
|
+
return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((K) => [String(K), q]);
|
|
3622
3626
|
});
|
|
3623
3627
|
return Object.fromEntries(B);
|
|
3624
3628
|
}
|
|
3625
3629
|
async function R(u, y, _ = {}, B = y) {
|
|
3626
|
-
const E = D(B),
|
|
3627
|
-
if (!Ln(_) &&
|
|
3628
|
-
c.set(
|
|
3630
|
+
const E = D(B), q = `${E}:${T(u)}`, K = at(t.section.key, u, B, E), G = c.get(q);
|
|
3631
|
+
if (!Ln(_) && st(u, G, K)) {
|
|
3632
|
+
c.set(q, K);
|
|
3629
3633
|
return;
|
|
3630
3634
|
}
|
|
3631
3635
|
try {
|
|
@@ -3633,7 +3637,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3633
3637
|
await g(u, B, _);
|
|
3634
3638
|
return;
|
|
3635
3639
|
}
|
|
3636
|
-
await t.actions.loadFieldOptions(t.section, u, B, _), c.set(
|
|
3640
|
+
await t.actions.loadFieldOptions(t.section, u, B, _), c.set(q, K);
|
|
3637
3641
|
} catch (ie) {
|
|
3638
3642
|
console.error("[GlobalInfoTableRenderer] load field options failed", ie);
|
|
3639
3643
|
}
|
|
@@ -3642,16 +3646,16 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3642
3646
|
const _ = y ? [y] : t.section.rows;
|
|
3643
3647
|
for (const B of _) {
|
|
3644
3648
|
const E = D(B);
|
|
3645
|
-
for (const
|
|
3646
|
-
if (u && !Vn(
|
|
3647
|
-
const
|
|
3648
|
-
if (!j(
|
|
3649
|
-
const G =
|
|
3650
|
-
if (
|
|
3649
|
+
for (const q of a.value) {
|
|
3650
|
+
if (u && !Vn(q, u)) continue;
|
|
3651
|
+
const K = B[q.code];
|
|
3652
|
+
if (!j(q, K)) continue;
|
|
3653
|
+
const G = at(t.section.key, q, B, E), Z = `${E}:${T(q)}`, ie = c.get(Z);
|
|
3654
|
+
if (st(q, ie, G)) {
|
|
3651
3655
|
c.set(Z, G);
|
|
3652
3656
|
continue;
|
|
3653
3657
|
}
|
|
3654
|
-
ie !== G && await R(
|
|
3658
|
+
ie !== G && await R(q, B, An(q, K));
|
|
3655
3659
|
}
|
|
3656
3660
|
}
|
|
3657
3661
|
}
|
|
@@ -3700,15 +3704,15 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3700
3704
|
function ne(u) {
|
|
3701
3705
|
return Et(u);
|
|
3702
3706
|
}
|
|
3703
|
-
let
|
|
3707
|
+
let x = 0;
|
|
3704
3708
|
const N = /* @__PURE__ */ new WeakMap();
|
|
3705
3709
|
function D(u) {
|
|
3706
3710
|
const y = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
|
|
3707
3711
|
if (y != null && y !== "") return String(y);
|
|
3708
3712
|
const _ = u, B = N.get(_);
|
|
3709
3713
|
if (B) return B;
|
|
3710
|
-
|
|
3711
|
-
const E = `local-${
|
|
3714
|
+
x += 1;
|
|
3715
|
+
const E = `local-${x}`;
|
|
3712
3716
|
return N.set(_, E), E;
|
|
3713
3717
|
}
|
|
3714
3718
|
function F(u) {
|
|
@@ -3726,12 +3730,12 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3726
3730
|
},
|
|
3727
3731
|
{ immediate: !0 }
|
|
3728
3732
|
), (u, y) => {
|
|
3729
|
-
const _ = en, B = Hn("Delete"), E = Yt,
|
|
3730
|
-
return $(),
|
|
3731
|
-
class:
|
|
3733
|
+
const _ = en, B = Hn("Delete"), E = Yt, q = It, K = Xt;
|
|
3734
|
+
return $(), U("div", {
|
|
3735
|
+
class: Je(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
|
|
3732
3736
|
}, [
|
|
3733
3737
|
ee("div", va, [
|
|
3734
|
-
we(
|
|
3738
|
+
we(K, {
|
|
3735
3739
|
class: "global-info-table-renderer__table",
|
|
3736
3740
|
data: u.section.rows,
|
|
3737
3741
|
fit: !0,
|
|
@@ -3746,7 +3750,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3746
3750
|
width: s.value,
|
|
3747
3751
|
index: z
|
|
3748
3752
|
}, null, 8, ["label", "width"])) : fe("", !0),
|
|
3749
|
-
($(!0),
|
|
3753
|
+
($(!0), U(Se, null, ye(a.value, (G) => ($(), H(_, {
|
|
3750
3754
|
key: T(G),
|
|
3751
3755
|
prop: G.code,
|
|
3752
3756
|
label: G.label,
|
|
@@ -3755,7 +3759,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3755
3759
|
}, {
|
|
3756
3760
|
header: J(() => [
|
|
3757
3761
|
ee("span", ha, [
|
|
3758
|
-
F(G) ? ($(),
|
|
3762
|
+
F(G) ? ($(), U("span", ga, "*")) : fe("", !0),
|
|
3759
3763
|
ee("span", null, me(G.label), 1)
|
|
3760
3764
|
])
|
|
3761
3765
|
]),
|
|
@@ -3795,7 +3799,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3795
3799
|
onConfirm: (ie) => w(Z)
|
|
3796
3800
|
}, {
|
|
3797
3801
|
default: J(() => [
|
|
3798
|
-
we(
|
|
3802
|
+
we(q, {
|
|
3799
3803
|
class: "global-info-table-renderer__delete",
|
|
3800
3804
|
link: "",
|
|
3801
3805
|
type: "danger"
|
|
@@ -3807,7 +3811,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3807
3811
|
]),
|
|
3808
3812
|
_: 1
|
|
3809
3813
|
}),
|
|
3810
|
-
y[0] || (y[0] =
|
|
3814
|
+
y[0] || (y[0] = Ue(" 删除 "))
|
|
3811
3815
|
]),
|
|
3812
3816
|
_: 1
|
|
3813
3817
|
})
|
|
@@ -3824,7 +3828,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
|
|
|
3824
3828
|
], 2);
|
|
3825
3829
|
};
|
|
3826
3830
|
}
|
|
3827
|
-
}), ba = /* @__PURE__ */ be(ya, [["__scopeId", "data-v-
|
|
3831
|
+
}), ba = /* @__PURE__ */ be(ya, [["__scopeId", "data-v-366b90b7"]]), Sa = /* @__PURE__ */ de({
|
|
3828
3832
|
name: "GlobalInfoAutoRenderer",
|
|
3829
3833
|
__name: "GlobalInfoAutoRenderer",
|
|
3830
3834
|
props: {
|
|
@@ -3883,7 +3887,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
3883
3887
|
renderConfig: {}
|
|
3884
3888
|
},
|
|
3885
3889
|
setup(e) {
|
|
3886
|
-
const t = e, n = Ee(), o = L(() =>
|
|
3890
|
+
const t = e, n = Ee(), o = L(() => ut(
|
|
3887
3891
|
t.section.fields,
|
|
3888
3892
|
t.section,
|
|
3889
3893
|
t.renderConfig,
|
|
@@ -3986,7 +3990,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
3986
3990
|
setup(e) {
|
|
3987
3991
|
const t = e, n = Ee(), o = ge(!1), r = ge(null), i = ge(null), s = L(() => !!t.hideHeader), l = L(() => t.actions.getSectionStatus(t.node)), a = L(() => t.actions.getSection(t.node) ?? i.value), c = L(() => {
|
|
3988
3992
|
const b = a.value;
|
|
3989
|
-
return b ?
|
|
3993
|
+
return b ? ut(b.fields, b, t.renderConfig, {
|
|
3990
3994
|
values: b.model,
|
|
3991
3995
|
rows: b.renderType === "table" ? b.rows : void 0
|
|
3992
3996
|
}) : [];
|
|
@@ -4067,23 +4071,23 @@ const wa = /* @__PURE__ */ de({
|
|
|
4067
4071
|
}
|
|
4068
4072
|
), (b, O) => {
|
|
4069
4073
|
const T = It;
|
|
4070
|
-
return $(),
|
|
4071
|
-
s.value ? fe("", !0) : ($(),
|
|
4074
|
+
return $(), U("section", _a, [
|
|
4075
|
+
s.value ? fe("", !0) : ($(), U("header", $a, [
|
|
4072
4076
|
X(b.$slots, "header", Me(Fe(S.value)), () => [
|
|
4073
4077
|
ee("div", Ca, [
|
|
4074
4078
|
O[0] || (O[0] = ee("span", { class: "global-info-section-block__marker" }, null, -1)),
|
|
4075
4079
|
ee("h3", ka, me(g.value), 1)
|
|
4076
4080
|
]),
|
|
4077
4081
|
X(b.$slots, "actions", Me(Fe(S.value)), () => [
|
|
4078
|
-
a.value ? ($(),
|
|
4079
|
-
w.value ? ($(),
|
|
4082
|
+
a.value ? ($(), U("div", Ma, [
|
|
4083
|
+
w.value ? ($(), U(Se, { key: 1 }, [
|
|
4080
4084
|
we(T, {
|
|
4081
4085
|
class: "global-info-section-block__cancel",
|
|
4082
4086
|
disabled: l.value.saving,
|
|
4083
4087
|
onClick: v
|
|
4084
4088
|
}, {
|
|
4085
4089
|
default: J(() => O[2] || (O[2] = [
|
|
4086
|
-
|
|
4090
|
+
Ue(" 取消 ")
|
|
4087
4091
|
])),
|
|
4088
4092
|
_: 1
|
|
4089
4093
|
}, 8, ["disabled"]),
|
|
@@ -4094,7 +4098,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4094
4098
|
onClick: m
|
|
4095
4099
|
}, {
|
|
4096
4100
|
default: J(() => O[3] || (O[3] = [
|
|
4097
|
-
|
|
4101
|
+
Ue(" 新增 ")
|
|
4098
4102
|
])),
|
|
4099
4103
|
_: 1
|
|
4100
4104
|
}, 8, ["disabled"])) : fe("", !0),
|
|
@@ -4104,7 +4108,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4104
4108
|
onClick: M
|
|
4105
4109
|
}, {
|
|
4106
4110
|
default: J(() => [
|
|
4107
|
-
|
|
4111
|
+
Ue(me(I.value ? "确认" : "保存"), 1)
|
|
4108
4112
|
]),
|
|
4109
4113
|
_: 1
|
|
4110
4114
|
}, 8, ["loading"])
|
|
@@ -4161,8 +4165,8 @@ const wa = /* @__PURE__ */ de({
|
|
|
4161
4165
|
}, je({ _: 2 }, [
|
|
4162
4166
|
ye(se(n), (z, ne) => ({
|
|
4163
4167
|
name: ne,
|
|
4164
|
-
fn: J((
|
|
4165
|
-
X(b.$slots, ne, Me(Fe({ ...S.value, ...
|
|
4168
|
+
fn: J((x) => [
|
|
4169
|
+
X(b.$slots, ne, Me(Fe({ ...S.value, ...x })), void 0, !0)
|
|
4166
4170
|
])
|
|
4167
4171
|
}))
|
|
4168
4172
|
]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
|
|
@@ -4173,7 +4177,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4173
4177
|
]);
|
|
4174
4178
|
};
|
|
4175
4179
|
}
|
|
4176
|
-
}), Oa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-
|
|
4180
|
+
}), Oa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-77980d16"]]), Fa = { class: "global-info-group" }, Ba = { class: "global-info-group__header" }, Ea = { class: "global-info-group__title" }, La = { class: "global-info-group__body" }, Va = ["id"], Pa = /* @__PURE__ */ de({
|
|
4177
4181
|
name: "GlobalInfoGroup",
|
|
4178
4182
|
__name: "GlobalInfoGroup",
|
|
4179
4183
|
props: {
|
|
@@ -4216,7 +4220,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4216
4220
|
function a(c) {
|
|
4217
4221
|
return `global-info-section-${l(c, 0)}`;
|
|
4218
4222
|
}
|
|
4219
|
-
return (c, g) => ($(),
|
|
4223
|
+
return (c, g) => ($(), U("section", Fa, [
|
|
4220
4224
|
X(c.$slots, "header", {
|
|
4221
4225
|
group: c.group,
|
|
4222
4226
|
children: c.children,
|
|
@@ -4242,8 +4246,8 @@ const wa = /* @__PURE__ */ de({
|
|
|
4242
4246
|
renderConfig: c.renderConfig,
|
|
4243
4247
|
index: c.index,
|
|
4244
4248
|
isEmpty: c.children.length === 0
|
|
4245
|
-
}, void 0, !0) : ($(),
|
|
4246
|
-
($(!0),
|
|
4249
|
+
}, void 0, !0) : ($(), U(Se, { key: 1 }, [
|
|
4250
|
+
($(!0), U(Se, null, ye(c.children, (w, I) => ($(), U("div", {
|
|
4247
4251
|
id: a(w),
|
|
4248
4252
|
key: l(w, I),
|
|
4249
4253
|
class: "global-info-group__section"
|
|
@@ -4286,7 +4290,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4286
4290
|
])
|
|
4287
4291
|
]));
|
|
4288
4292
|
}
|
|
4289
|
-
}), Aa = /* @__PURE__ */ be(Pa, [["__scopeId", "data-v-
|
|
4293
|
+
}), Aa = /* @__PURE__ */ be(Pa, [["__scopeId", "data-v-352d3733"]]), ja = { class: "global-info-sections" }, Na = /* @__PURE__ */ de({
|
|
4290
4294
|
name: "GlobalInfoSections",
|
|
4291
4295
|
__name: "GlobalInfoSections",
|
|
4292
4296
|
props: {
|
|
@@ -4337,8 +4341,8 @@ const wa = /* @__PURE__ */ de({
|
|
|
4337
4341
|
children: I
|
|
4338
4342
|
}));
|
|
4339
4343
|
}
|
|
4340
|
-
return (g, w) => ($(),
|
|
4341
|
-
($(!0),
|
|
4344
|
+
return (g, w) => ($(), U("div", ja, [
|
|
4345
|
+
($(!0), U(Se, null, ye(o.value, (I, V) => ($(), U(Se, {
|
|
4342
4346
|
key: l(I.group, V)
|
|
4343
4347
|
}, [
|
|
4344
4348
|
s(I.group) ? X(g.$slots, s(I.group), {
|
|
@@ -4378,7 +4382,7 @@ const wa = /* @__PURE__ */ de({
|
|
|
4378
4382
|
], 64))), 128))
|
|
4379
4383
|
]));
|
|
4380
4384
|
}
|
|
4381
|
-
}), Ha = /* @__PURE__ */ be(Na, [["__scopeId", "data-v-
|
|
4385
|
+
}), Ha = /* @__PURE__ */ be(Na, [["__scopeId", "data-v-2be3bbc5"]]);
|
|
4382
4386
|
export {
|
|
4383
4387
|
On as DEFAULT_GLOBAL_INFO_REQUIRED_INFO_SET_EMPTY_MESSAGE,
|
|
4384
4388
|
Sa as GlobalInfoAutoRenderer,
|
|
@@ -4394,7 +4398,7 @@ export {
|
|
|
4394
4398
|
ba as GlobalInfoTableRenderer,
|
|
4395
4399
|
Tt as JtAttachmentPreview,
|
|
4396
4400
|
Za as JtAttachmentPreviewByParams,
|
|
4397
|
-
|
|
4401
|
+
ot as JtButton,
|
|
4398
4402
|
fo as JtCascader,
|
|
4399
4403
|
Ga as JtCrudTable,
|
|
4400
4404
|
mo as JtDatePicker,
|