@jt-home/mfe-components 1.0.43 → 1.0.44
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/JtAttachmentPreview/index.cjs +1 -1
- package/dist/JtAttachmentPreview/index.mjs +1 -1
- package/dist/{index-DrZ9DS6y.js → index-BXyTJFiJ.js} +336 -301
- package/dist/index-CoLqaicq.cjs +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +100 -100
- package/dist/style.css +1 -1
- package/dist/types/locale/index.d.ts +3 -3
- package/dist/types/locale/types.d.ts +1 -0
- package/package.json +99 -99
- package/readme.md +694 -694
- package/dist/index-sksijs-r.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { t as Z, J as Dt, i as Un } from "./index-
|
|
3
|
-
import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-
|
|
4
|
-
import { defineComponent as pe, useAttrs as Hn, computed as O, openBlock as I, createBlock as H, mergeProps as ae, toHandlers as et, withCtx as U, renderSlot as te, resolveDynamicComponent as Kt, createCommentVNode as fe, ref as ge, watch as Ee, mergeDefaults as Jn, withKeys as Wn, createElementBlock as G, Fragment as Se, renderList as ye, normalizeStyle as Yt, nextTick as Zn, useSlots as Le, normalizeClass as We, createVNode as Ie, withModifiers as Ut, unref as
|
|
2
|
+
import { t as Z, J as Dt, i as Un } from "./index-BXyTJFiJ.js";
|
|
3
|
+
import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-BXyTJFiJ.js";
|
|
4
|
+
import { defineComponent as pe, useAttrs as Hn, computed as O, openBlock as I, createBlock as H, mergeProps as ae, toHandlers as et, withCtx as U, renderSlot as te, resolveDynamicComponent as Kt, createCommentVNode as fe, ref as ge, watch as Ee, mergeDefaults as Jn, withKeys as Wn, createElementBlock as G, Fragment as Se, renderList as ye, normalizeStyle as Yt, nextTick as Zn, useSlots as Le, normalizeClass as We, createVNode as Ie, withModifiers as Ut, unref as W, createSlots as Re, createElementVNode as ne, toDisplayString as oe, normalizeProps as Oe, guardReactiveProps as Be, useModel as vt, withDirectives as Qn, mergeModels as Ft, shallowRef as je, onMounted as Ht, onBeforeUnmount as Xn, createTextVNode as He, resolveComponent as eo, onErrorCaptured as to } from "vue";
|
|
5
5
|
import { ElButton as $t, ElIcon as Jt, ElCascader as no, ElDatePicker as Wt, ElInput as Zt, ElSelect as Qt, ElOption as Xt, ElFormItem as en, ElForm as tn, ElTable as nn, ElTableColumn as on, ElPagination as oo, ElLoadingDirective as ro, ElInputNumber as ao, ElSwitch as so, ElRow as lo, ElCol as io, ElPopconfirm as co } from "element-plus/es";
|
|
6
6
|
import { cascaderEmits as uo, inputEmits as Bt, selectEmits as Et } from "element-plus";
|
|
7
7
|
const bt = 2, fo = 3;
|
|
@@ -94,7 +94,7 @@ const vo = /* @__PURE__ */ pe({
|
|
|
94
94
|
for (const [o, r] of t)
|
|
95
95
|
n[o] = r;
|
|
96
96
|
return n;
|
|
97
|
-
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-
|
|
97
|
+
}, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-9651b22b"]]), ho = {
|
|
98
98
|
// 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
|
|
99
99
|
options: () => [],
|
|
100
100
|
clearable: !0,
|
|
@@ -287,7 +287,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
287
287
|
}), null, 16);
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-
|
|
290
|
+
}), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-34482973"]]), _o = /* @__PURE__ */ pe({
|
|
291
291
|
name: "JtInput",
|
|
292
292
|
__name: "index",
|
|
293
293
|
props: {
|
|
@@ -353,7 +353,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
353
353
|
}), null, 16);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-
|
|
356
|
+
}), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-e55a2185"]]), wo = /* @__PURE__ */ pe({
|
|
357
357
|
name: "JtSelect",
|
|
358
358
|
__name: "index",
|
|
359
359
|
props: {
|
|
@@ -439,7 +439,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
439
439
|
}, 16);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-
|
|
442
|
+
}), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-bbfe7769"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
|
|
443
443
|
name: "JTFormItems",
|
|
444
444
|
__name: "JtFormItems",
|
|
445
445
|
props: {
|
|
@@ -551,7 +551,7 @@ const yo = /* @__PURE__ */ pe({
|
|
|
551
551
|
]);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-
|
|
554
|
+
}), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-1e378dcc"]]);
|
|
555
555
|
function To() {
|
|
556
556
|
const e = ge(!1);
|
|
557
557
|
function t() {
|
|
@@ -733,12 +733,12 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
733
733
|
model: i.value,
|
|
734
734
|
"label-position": F.value,
|
|
735
735
|
"label-width": v.value,
|
|
736
|
-
disabled:
|
|
736
|
+
disabled: W(a),
|
|
737
737
|
onSubmit: X[0] || (X[0] = Ut(() => {
|
|
738
738
|
}, ["prevent"]))
|
|
739
739
|
}, {
|
|
740
740
|
default: U(() => [
|
|
741
|
-
Ie(
|
|
741
|
+
Ie(W(ko), {
|
|
742
742
|
configs: R.value,
|
|
743
743
|
"form-data": i.value,
|
|
744
744
|
style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
|
|
@@ -748,11 +748,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
748
748
|
te(M.$slots, "search-menu", {
|
|
749
749
|
search: u,
|
|
750
750
|
reset: _,
|
|
751
|
-
disabled:
|
|
751
|
+
disabled: W(a),
|
|
752
752
|
collapsed: $.value,
|
|
753
753
|
toggleCollapse: D
|
|
754
754
|
}, () => [
|
|
755
|
-
j.value ? (I(), H(
|
|
755
|
+
j.value ? (I(), H(W(rt), {
|
|
756
756
|
key: 0,
|
|
757
757
|
class: "jt-filter-bar__btn-collapse",
|
|
758
758
|
size: "small",
|
|
@@ -761,47 +761,47 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
761
761
|
icon: U(() => [
|
|
762
762
|
ne("img", {
|
|
763
763
|
class: We(["jt-filter-bar__icon-arrow", { "is-collapsed": $.value }]),
|
|
764
|
-
src:
|
|
764
|
+
src: W(Mo),
|
|
765
765
|
alt: ""
|
|
766
766
|
}, null, 10, Bo)
|
|
767
767
|
]),
|
|
768
768
|
default: U(() => [
|
|
769
|
-
ne("span", null, oe($.value ?
|
|
769
|
+
ne("span", null, oe($.value ? W(Z)("common.展开") : W(Z)("common.收起")), 1)
|
|
770
770
|
]),
|
|
771
771
|
_: 1
|
|
772
772
|
})) : fe("", !0),
|
|
773
|
-
Ie(
|
|
773
|
+
Ie(W(rt), {
|
|
774
774
|
class: "jt-filter-bar__btn-reset",
|
|
775
775
|
size: "small",
|
|
776
|
-
disabled:
|
|
776
|
+
disabled: W(a),
|
|
777
777
|
onClick: _
|
|
778
778
|
}, {
|
|
779
779
|
icon: U(() => [
|
|
780
780
|
ne("img", {
|
|
781
|
-
src:
|
|
781
|
+
src: W(Oo),
|
|
782
782
|
alt: ""
|
|
783
783
|
}, null, 8, Eo)
|
|
784
784
|
]),
|
|
785
785
|
default: U(() => [
|
|
786
|
-
ne("span", null, oe(w.value.resetBtnText ??
|
|
786
|
+
ne("span", null, oe(w.value.resetBtnText ?? W(Z)("common.重置")), 1)
|
|
787
787
|
]),
|
|
788
788
|
_: 1
|
|
789
789
|
}, 8, ["disabled"]),
|
|
790
|
-
Ie(
|
|
790
|
+
Ie(W(rt), {
|
|
791
791
|
class: "jt-filter-bar__btn-query",
|
|
792
792
|
type: "primary",
|
|
793
793
|
size: "small",
|
|
794
|
-
disabled:
|
|
794
|
+
disabled: W(a),
|
|
795
795
|
onClick: u
|
|
796
796
|
}, {
|
|
797
797
|
icon: U(() => [
|
|
798
798
|
ne("img", {
|
|
799
|
-
src:
|
|
799
|
+
src: W(Do),
|
|
800
800
|
alt: ""
|
|
801
801
|
}, null, 8, Lo)
|
|
802
802
|
]),
|
|
803
803
|
default: U(() => [
|
|
804
|
-
ne("span", null, oe(w.value.searchBtnText ??
|
|
804
|
+
ne("span", null, oe(w.value.searchBtnText ?? W(Z)("common.查询")), 1)
|
|
805
805
|
]),
|
|
806
806
|
_: 1
|
|
807
807
|
}, 8, ["disabled"])
|
|
@@ -819,7 +819,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
819
819
|
setValue: (me) => B(de.prop, me),
|
|
820
820
|
search: u,
|
|
821
821
|
reset: _,
|
|
822
|
-
disabled:
|
|
822
|
+
disabled: W(a)
|
|
823
823
|
}, void 0, !0)
|
|
824
824
|
])
|
|
825
825
|
}))
|
|
@@ -830,7 +830,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
830
830
|
], 6);
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
}), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-
|
|
833
|
+
}), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-233ce306"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, zo = /* @__PURE__ */ pe({
|
|
834
834
|
name: "JtTable",
|
|
835
835
|
__name: "JtTable",
|
|
836
836
|
props: {
|
|
@@ -890,7 +890,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
890
890
|
c.value.index ? (I(), H(T, {
|
|
891
891
|
key: 1,
|
|
892
892
|
type: "index",
|
|
893
|
-
label: c.value.indexLabel ??
|
|
893
|
+
label: c.value.indexLabel ?? W(Z)("common.序号"),
|
|
894
894
|
width: "60",
|
|
895
895
|
align: "center"
|
|
896
896
|
}, null, 8, ["label"])) : fe("", !0),
|
|
@@ -926,7 +926,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
926
926
|
]), 1040, ["prop", "label", "formatter"]))), 128)),
|
|
927
927
|
c.value.menu ? (I(), H(T, {
|
|
928
928
|
key: 2,
|
|
929
|
-
label: c.value.menuLabel ??
|
|
929
|
+
label: c.value.menuLabel ?? W(Z)("common.操作"),
|
|
930
930
|
width: c.value.menuWidth,
|
|
931
931
|
"min-width": c.value.menuMinWidth,
|
|
932
932
|
align: c.value.menuAlign ?? "center",
|
|
@@ -942,7 +942,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
942
942
|
}, 16, ["data", "row-key", "empty-text"]);
|
|
943
943
|
};
|
|
944
944
|
}
|
|
945
|
-
}), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-
|
|
945
|
+
}), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-e04b4866"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
|
|
946
946
|
name: "JtPagination",
|
|
947
947
|
__name: "JtPagination",
|
|
948
948
|
props: {
|
|
@@ -971,11 +971,11 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
971
971
|
onCurrentChange: c,
|
|
972
972
|
onSizeChange: i[2] || (i[2] = (l) => s.$emit("size-change", l))
|
|
973
973
|
}, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
|
|
974
|
-
ne("span", qo, oe(
|
|
974
|
+
ne("span", qo, oe(W(Z)("common.共{total}条记录", "共 {total} 条记录", { total: s.total })), 1)
|
|
975
975
|
]);
|
|
976
976
|
};
|
|
977
977
|
}
|
|
978
|
-
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-
|
|
978
|
+
}), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-03d564ec"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
|
|
979
979
|
key: 0,
|
|
980
980
|
class: "jt-crud-table__toolbar"
|
|
981
981
|
}, Zo = /* @__PURE__ */ pe({
|
|
@@ -1061,7 +1061,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1061
1061
|
]),
|
|
1062
1062
|
ne("div", Ho, [
|
|
1063
1063
|
ne("div", Jo, [
|
|
1064
|
-
|
|
1064
|
+
W(a).toolbar ? (I(), G("div", Wo, [
|
|
1065
1065
|
te(y.$slots, "toolbar", {}, void 0, !0)
|
|
1066
1066
|
])) : fe("", !0),
|
|
1067
1067
|
Qn((I(), H(No, {
|
|
@@ -1110,14 +1110,14 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1110
1110
|
]);
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-
|
|
1113
|
+
}), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-335c2682"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
|
|
1114
1114
|
key: 0,
|
|
1115
1115
|
class: "jt-page-header__operates"
|
|
1116
1116
|
}, tr = /* @__PURE__ */ pe({
|
|
1117
1117
|
name: "JtPageHeader",
|
|
1118
1118
|
__name: "index",
|
|
1119
1119
|
props: {
|
|
1120
|
-
type: { default: "
|
|
1120
|
+
type: { default: "subsection" },
|
|
1121
1121
|
title: {},
|
|
1122
1122
|
operates: { default: () => [] }
|
|
1123
1123
|
},
|
|
@@ -1137,7 +1137,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1137
1137
|
]),
|
|
1138
1138
|
c.value ? (I(), G("div", er, [
|
|
1139
1139
|
te(i.$slots, "operates", { operates: i.operates }, () => [
|
|
1140
|
-
(I(!0), G(Se, null, ye(i.operates, (l) => (I(), H(
|
|
1140
|
+
(I(!0), G(Se, null, ye(i.operates, (l) => (I(), H(W(rt), ae({
|
|
1141
1141
|
key: l.key ?? l.label,
|
|
1142
1142
|
ref_for: !0
|
|
1143
1143
|
}, l.buttonProps, {
|
|
@@ -1159,7 +1159,7 @@ const Mo = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
|
|
|
1159
1159
|
])) : fe("", !0)
|
|
1160
1160
|
], 16));
|
|
1161
1161
|
}
|
|
1162
|
-
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-
|
|
1162
|
+
}), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-ec41a446"]]);
|
|
1163
1163
|
function nr(e, t) {
|
|
1164
1164
|
t = t || (() => "default-use-once-sync");
|
|
1165
1165
|
const n = /* @__PURE__ */ new Map();
|
|
@@ -2744,8 +2744,8 @@ const na = (e) => {
|
|
|
2744
2744
|
activeNode: i.value,
|
|
2745
2745
|
activeSection: a.value,
|
|
2746
2746
|
searchText: p?.searchText
|
|
2747
|
-
}), Y = { ...m, params: k },
|
|
2748
|
-
return v(Y,
|
|
2747
|
+
}), Y = { ...m, params: k }, J = p && { ...p, params: k };
|
|
2748
|
+
return v(Y, J);
|
|
2749
2749
|
}, y = (m, p) => {
|
|
2750
2750
|
if (!p)
|
|
2751
2751
|
return m[0] ?? null;
|
|
@@ -2812,7 +2812,7 @@ const na = (e) => {
|
|
|
2812
2812
|
});
|
|
2813
2813
|
}, B = (m = s.value?.raw ?? null, p = i.value) => {
|
|
2814
2814
|
const k = V.value, Y = a.value && k.find(
|
|
2815
|
-
(
|
|
2815
|
+
(J) => Me(J) === Me(a.value)
|
|
2816
2816
|
) ? a.value : null;
|
|
2817
2817
|
s.value = {
|
|
2818
2818
|
// 保留原 scheme。
|
|
@@ -2859,11 +2859,11 @@ const na = (e) => {
|
|
|
2859
2859
|
const k = j(m), Y = k ? l.value[k] : null;
|
|
2860
2860
|
if (!k || !Y)
|
|
2861
2861
|
return;
|
|
2862
|
-
const
|
|
2862
|
+
const J = p(Y);
|
|
2863
2863
|
l.value = {
|
|
2864
2864
|
...l.value,
|
|
2865
|
-
[k]:
|
|
2866
|
-
}, a.value = Me(a.value ??
|
|
2865
|
+
[k]: J
|
|
2866
|
+
}, a.value = Me(a.value ?? J) === k ? J : a.value, B();
|
|
2867
2867
|
}, u = async (m = a.value ?? i.value) => {
|
|
2868
2868
|
const p = re(m), k = N(m) ?? i.value, Y = C(m);
|
|
2869
2869
|
if (!k)
|
|
@@ -2872,10 +2872,10 @@ const na = (e) => {
|
|
|
2872
2872
|
throw ze("service.requestOperation is required");
|
|
2873
2873
|
n.value = !0, r.value = null, R(Y ?? k, { loading: !0, error: null });
|
|
2874
2874
|
try {
|
|
2875
|
-
const
|
|
2876
|
-
if (
|
|
2875
|
+
const J = p ? [{ infSetId: p.infSetId, setId: p.setId, operationInfo: p.operationInfo, raw: p.raw }] : k.infSetList;
|
|
2876
|
+
if (J.length === 0)
|
|
2877
2877
|
throw ze("node.infSetList is required");
|
|
2878
|
-
const Ce = await Promise.all(
|
|
2878
|
+
const Ce = await Promise.all(J.map(async (ie) => {
|
|
2879
2879
|
const he = Ur(p, k, ie.infSetId), Ae = p?.requestTagId ?? p?.tagId ?? k.tagId, ot = {
|
|
2880
2880
|
...z(k, p),
|
|
2881
2881
|
tagId: Ae,
|
|
@@ -2901,8 +2901,8 @@ const na = (e) => {
|
|
|
2901
2901
|
sectionMap: Object.fromEntries(Ce.flatMap((ie) => ie.sections).map((ie) => [ie.key, ie]))
|
|
2902
2902
|
};
|
|
2903
2903
|
return E(ve, k, Y);
|
|
2904
|
-
} catch (
|
|
2905
|
-
throw r.value =
|
|
2904
|
+
} catch (J) {
|
|
2905
|
+
throw r.value = J, R(Y ?? k, { loading: !1, error: J }), J;
|
|
2906
2906
|
} finally {
|
|
2907
2907
|
n.value = !1, R(Y ?? k, { loading: !1 });
|
|
2908
2908
|
}
|
|
@@ -2950,11 +2950,11 @@ const na = (e) => {
|
|
|
2950
2950
|
})
|
|
2951
2951
|
);
|
|
2952
2952
|
c.value = Y, a.value = null, l.value = {}, h.value = {}, w.value = [], $.value = {}, L.value = [];
|
|
2953
|
-
const
|
|
2954
|
-
return i.value =
|
|
2953
|
+
const J = y(Y, e.initialActiveNodeKey) ?? y(Y);
|
|
2954
|
+
return i.value = J, s.value = {
|
|
2955
2955
|
...k,
|
|
2956
2956
|
treeNodes: Y,
|
|
2957
|
-
activeNode:
|
|
2957
|
+
activeNode: J,
|
|
2958
2958
|
sectionMap: l.value,
|
|
2959
2959
|
sections: V.value
|
|
2960
2960
|
}, c.value;
|
|
@@ -2983,30 +2983,30 @@ const na = (e) => {
|
|
|
2983
2983
|
), R(p, { editing: !1 }));
|
|
2984
2984
|
}, me = (m, p, k) => {
|
|
2985
2985
|
const Y = typeof p == "string" ? p : Ve(p);
|
|
2986
|
-
d(m, (
|
|
2987
|
-
const ve = (typeof p == "string" ?
|
|
2988
|
-
...
|
|
2986
|
+
d(m, (J) => {
|
|
2987
|
+
const ve = (typeof p == "string" ? J.fields.find((he) => Ve(he) === Y || he.code === Y) : p)?.cascadeClearFields ?? [], ie = {
|
|
2988
|
+
...J.model,
|
|
2989
2989
|
[Y]: k
|
|
2990
2990
|
};
|
|
2991
2991
|
return ve.forEach((he) => {
|
|
2992
2992
|
ie[he] = "";
|
|
2993
2993
|
}), {
|
|
2994
2994
|
// 保留 section 其它元数据。
|
|
2995
|
-
...
|
|
2995
|
+
...J,
|
|
2996
2996
|
// 更新表单 model。
|
|
2997
2997
|
model: ie,
|
|
2998
2998
|
// 表单类型同步更新第一行 rows,方便保存时统一从 rows 构造 payload。
|
|
2999
|
-
rows:
|
|
2999
|
+
rows: J.renderType === "form" ? [{ ...J.rows[0], ...ie }] : J.rows,
|
|
3000
3000
|
// 同步 fields.value,保证只读 renderer 立即显示新值。
|
|
3001
|
-
fields:
|
|
3001
|
+
fields: J.fields.map((he) => {
|
|
3002
3002
|
const Ae = Ve(he);
|
|
3003
3003
|
return Ae === Y || he.code === Y ? { ...he, value: k } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
|
|
3004
3004
|
})
|
|
3005
3005
|
};
|
|
3006
3006
|
});
|
|
3007
3007
|
}, we = async (m, p, k = {}, Y = {}) => {
|
|
3008
|
-
const
|
|
3009
|
-
if (!
|
|
3008
|
+
const J = b(m);
|
|
3009
|
+
if (!J)
|
|
3010
3010
|
return [];
|
|
3011
3011
|
const Ce = {
|
|
3012
3012
|
...k,
|
|
@@ -3017,13 +3017,13 @@ const na = (e) => {
|
|
|
3017
3017
|
sourceModel: he,
|
|
3018
3018
|
sourceRow: Ae,
|
|
3019
3019
|
missingDependField: ot
|
|
3020
|
-
} = xr(
|
|
3020
|
+
} = xr(J, p, Ce), Ke = ie?.interface;
|
|
3021
3021
|
if (!ie || !Ke)
|
|
3022
3022
|
return ie?.options ?? [];
|
|
3023
3023
|
if (qr(ie))
|
|
3024
3024
|
return ie.options ?? [];
|
|
3025
3025
|
if (ot)
|
|
3026
|
-
return d(
|
|
3026
|
+
return d(J, (Ye) => ({
|
|
3027
3027
|
...Ye,
|
|
3028
3028
|
fields: Ye.fields.map(
|
|
3029
3029
|
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: [] } : Pe
|
|
@@ -3036,9 +3036,9 @@ const na = (e) => {
|
|
|
3036
3036
|
{
|
|
3037
3037
|
type: "fieldOptions",
|
|
3038
3038
|
requestSource: "inner",
|
|
3039
|
-
tagId:
|
|
3040
|
-
node: N(
|
|
3041
|
-
section:
|
|
3039
|
+
tagId: J.requestTagId ?? J.tagId,
|
|
3040
|
+
node: N(J),
|
|
3041
|
+
section: J,
|
|
3042
3042
|
field: ie,
|
|
3043
3043
|
params: Te(Ke.params),
|
|
3044
3044
|
// searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
|
|
@@ -3047,7 +3047,7 @@ const na = (e) => {
|
|
|
3047
3047
|
searchText: Y.searchText
|
|
3048
3048
|
}
|
|
3049
3049
|
), Ot = Kr(Yn);
|
|
3050
|
-
return d(
|
|
3050
|
+
return d(J, (Ye) => ({
|
|
3051
3051
|
...Ye,
|
|
3052
3052
|
fields: Ye.fields.map(
|
|
3053
3053
|
(Pe) => Ve(Pe) === ve || Pe.code === ve ? { ...Pe, options: Ot } : Pe
|
|
@@ -3107,15 +3107,15 @@ const na = (e) => {
|
|
|
3107
3107
|
updateTableRows: $e,
|
|
3108
3108
|
// 保存单行到本地缓存。
|
|
3109
3109
|
saveRow: (m, p = {}, k = -1) => {
|
|
3110
|
-
const
|
|
3111
|
-
|
|
3110
|
+
const J = [...b(m)?.rows ?? []];
|
|
3111
|
+
J.splice(k >= 0 ? k : J.length, k >= 0 ? 1 : 0, p), $e(m, J);
|
|
3112
3112
|
},
|
|
3113
3113
|
// 删除单行本地缓存。
|
|
3114
3114
|
deleteRow: (m, p) => {
|
|
3115
|
-
const k = b(m), Y = typeof p == "string" ? Number(p) : p,
|
|
3115
|
+
const k = b(m), Y = typeof p == "string" ? Number(p) : p, J = (k?.rows ?? []).filter(
|
|
3116
3116
|
(Ce, ve) => ve !== Y
|
|
3117
3117
|
);
|
|
3118
|
-
$e(m,
|
|
3118
|
+
$e(m, J);
|
|
3119
3119
|
},
|
|
3120
3120
|
// 调用接口保存 section。
|
|
3121
3121
|
saveSection: async (m = a.value) => {
|
|
@@ -3128,7 +3128,7 @@ const na = (e) => {
|
|
|
3128
3128
|
o.value = !0, r.value = null, p && p !== Me(k) && R(p, { saving: !0, error: null }), R(k, { saving: !0, error: null });
|
|
3129
3129
|
try {
|
|
3130
3130
|
const {
|
|
3131
|
-
tagId:
|
|
3131
|
+
tagId: J,
|
|
3132
3132
|
...Ce
|
|
3133
3133
|
} = z(i.value, k), ve = kr(k, Ce), ie = Xr(
|
|
3134
3134
|
k,
|
|
@@ -3153,8 +3153,8 @@ const na = (e) => {
|
|
|
3153
3153
|
}
|
|
3154
3154
|
);
|
|
3155
3155
|
return de(k), await _(k), he;
|
|
3156
|
-
} catch (
|
|
3157
|
-
throw r.value =
|
|
3156
|
+
} catch (J) {
|
|
3157
|
+
throw r.value = J, p && p !== Me(k) && R(p, { saving: !1, error: J }), R(k, { saving: !1, error: J }), J;
|
|
3158
3158
|
} finally {
|
|
3159
3159
|
o.value = !1, p && p !== Me(k) && R(p, { saving: !1 }), R(k, { saving: !1 });
|
|
3160
3160
|
}
|
|
@@ -3205,13 +3205,13 @@ const na = (e) => {
|
|
|
3205
3205
|
setup(e) {
|
|
3206
3206
|
const t = e, n = na(t), { viewModel: o, nodes: r, sections: c, activeNode: s, activeSection: i, state: a, actions: l } = n;
|
|
3207
3207
|
return (h, w) => te(h.$slots, "default", Oe(Be({
|
|
3208
|
-
viewModel:
|
|
3209
|
-
nodes:
|
|
3210
|
-
sections:
|
|
3211
|
-
activeNode:
|
|
3212
|
-
activeSection:
|
|
3213
|
-
state:
|
|
3214
|
-
actions:
|
|
3208
|
+
viewModel: W(o),
|
|
3209
|
+
nodes: W(r),
|
|
3210
|
+
sections: W(c),
|
|
3211
|
+
activeNode: W(s),
|
|
3212
|
+
activeSection: W(i),
|
|
3213
|
+
state: W(a),
|
|
3214
|
+
actions: W(l),
|
|
3215
3215
|
renderConfig: t.renderConfig
|
|
3216
3216
|
})));
|
|
3217
3217
|
}
|
|
@@ -3449,7 +3449,7 @@ const oa = {
|
|
|
3449
3449
|
}, oe(M.text), 9, ia)) : (I(), G("span", ca, oe(M.text), 1)),
|
|
3450
3450
|
X < y.value.length - 1 ? (I(), G("span", ua, "、")) : fe("", !0)
|
|
3451
3451
|
], 64))), 128))
|
|
3452
|
-
])) : v.value ? (I(), G("span", da, oe(F.value), 1)) : (I(), G("span", fa, oe(
|
|
3452
|
+
])) : v.value ? (I(), G("span", da, oe(F.value), 1)) : (I(), G("span", fa, oe(W(Z)("common.上传")), 1))
|
|
3453
3453
|
], 2)) : s.value === "empty" ? (I(), H(Q, {
|
|
3454
3454
|
key: 5,
|
|
3455
3455
|
class: "global-info-field-control",
|
|
@@ -3474,7 +3474,7 @@ const oa = {
|
|
|
3474
3474
|
}), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
|
|
3475
3475
|
};
|
|
3476
3476
|
}
|
|
3477
|
-
}), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-
|
|
3477
|
+
}), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-fb0f2f9b"]]), ma = ["innerHTML"], va = {
|
|
3478
3478
|
key: 1,
|
|
3479
3479
|
class: "global-info-field-value global-info-field-value--code"
|
|
3480
3480
|
}, ha = {
|
|
@@ -3517,7 +3517,7 @@ const oa = {
|
|
|
3517
3517
|
}])
|
|
3518
3518
|
}, oe(r.value), 3));
|
|
3519
3519
|
}
|
|
3520
|
-
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-
|
|
3520
|
+
}), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-79688203"]]);
|
|
3521
3521
|
function _a(e) {
|
|
3522
3522
|
const t = kt(e);
|
|
3523
3523
|
return (t === "select" || t === "select_remote") && !!e.interface;
|
|
@@ -3750,7 +3750,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
3750
3750
|
}, 8, ["model"]);
|
|
3751
3751
|
};
|
|
3752
3752
|
}
|
|
3753
|
-
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-
|
|
3753
|
+
}), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-4a51dc3d"]]), ka = /* @__PURE__ */ pe({
|
|
3754
3754
|
name: "GlobalInfoDeleteConfirm",
|
|
3755
3755
|
__name: "GlobalInfoDeleteConfirm",
|
|
3756
3756
|
props: {
|
|
@@ -4082,7 +4082,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4082
4082
|
}, 1032, ["prop", "label", "width", "min-width"]))), 128)),
|
|
4083
4083
|
d.editing ? (I(), H(_, {
|
|
4084
4084
|
key: 1,
|
|
4085
|
-
label:
|
|
4085
|
+
label: W(Z)("common.操作"),
|
|
4086
4086
|
width: "104",
|
|
4087
4087
|
fixed: "right"
|
|
4088
4088
|
}, {
|
|
@@ -4104,7 +4104,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4104
4104
|
]),
|
|
4105
4105
|
_: 1
|
|
4106
4106
|
}),
|
|
4107
|
-
He(oe(
|
|
4107
|
+
He(oe(W(Z)("common.删除")), 1)
|
|
4108
4108
|
]),
|
|
4109
4109
|
_: 1
|
|
4110
4110
|
})
|
|
@@ -4121,7 +4121,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
|
|
|
4121
4121
|
], 2);
|
|
4122
4122
|
};
|
|
4123
4123
|
}
|
|
4124
|
-
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-
|
|
4124
|
+
}), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-c89c935f"]]), Ba = /* @__PURE__ */ pe({
|
|
4125
4125
|
name: "GlobalInfoAutoRenderer",
|
|
4126
4126
|
__name: "GlobalInfoAutoRenderer",
|
|
4127
4127
|
props: {
|
|
@@ -4398,7 +4398,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4398
4398
|
onClick: g
|
|
4399
4399
|
}, {
|
|
4400
4400
|
default: U(() => [
|
|
4401
|
-
He(oe(
|
|
4401
|
+
He(oe(W(Z)("common.取消")), 1)
|
|
4402
4402
|
]),
|
|
4403
4403
|
_: 1
|
|
4404
4404
|
}, 8, ["disabled"]),
|
|
@@ -4409,7 +4409,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4409
4409
|
onClick: v
|
|
4410
4410
|
}, {
|
|
4411
4411
|
default: U(() => [
|
|
4412
|
-
He(oe(
|
|
4412
|
+
He(oe(W(Z)("common.新增")), 1)
|
|
4413
4413
|
]),
|
|
4414
4414
|
_: 1
|
|
4415
4415
|
}, 8, ["disabled"])) : fe("", !0),
|
|
@@ -4419,7 +4419,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4419
4419
|
onClick: F
|
|
4420
4420
|
}, {
|
|
4421
4421
|
default: U(() => [
|
|
4422
|
-
He(oe($.value ?
|
|
4422
|
+
He(oe($.value ? W(Z)("common.确认") : W(Z)("common.保存")), 1)
|
|
4423
4423
|
]),
|
|
4424
4424
|
_: 1
|
|
4425
4425
|
}, 8, ["loading"])
|
|
@@ -4441,7 +4441,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4441
4441
|
fill: "currentColor"
|
|
4442
4442
|
})
|
|
4443
4443
|
], -1)),
|
|
4444
|
-
ne("span", null, oe(
|
|
4444
|
+
ne("span", null, oe(W(Z)("common.编辑")), 1)
|
|
4445
4445
|
]),
|
|
4446
4446
|
_: 1
|
|
4447
4447
|
}, 8, ["disabled"]))
|
|
@@ -4451,9 +4451,9 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4451
4451
|
])),
|
|
4452
4452
|
ne("div", za, [
|
|
4453
4453
|
L.value ? te(b.$slots, "loading", Oe(ae({ key: 0 }, S.value)), () => [
|
|
4454
|
-
ne("div", Na, oe(
|
|
4454
|
+
ne("div", Na, oe(W(Z)("common.加载中___")), 1)
|
|
4455
4455
|
], !0) : !a.value || f.value ? te(b.$slots, "empty", Oe(ae({ key: 1 }, S.value)), () => [
|
|
4456
|
-
ne("div", xa, oe(
|
|
4456
|
+
ne("div", xa, oe(W(Z)("common.暂无数据")), 1)
|
|
4457
4457
|
], !0) : (I(), H(La, {
|
|
4458
4458
|
key: 2,
|
|
4459
4459
|
"boundary-key": b.node.key,
|
|
@@ -4462,7 +4462,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4462
4462
|
}, {
|
|
4463
4463
|
fallback: U(() => [
|
|
4464
4464
|
te(b.$slots, "empty", Oe(Be(S.value)), () => [
|
|
4465
|
-
ne("div", qa, oe(
|
|
4465
|
+
ne("div", qa, oe(W(Z)("common.暂无数据")), 1)
|
|
4466
4466
|
], !0)
|
|
4467
4467
|
]),
|
|
4468
4468
|
default: U(() => [
|
|
@@ -4474,7 +4474,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4474
4474
|
actions: b.actions,
|
|
4475
4475
|
"render-config": b.renderConfig
|
|
4476
4476
|
}, Re({ _: 2 }, [
|
|
4477
|
-
ye(
|
|
4477
|
+
ye(W(n), (N, re) => ({
|
|
4478
4478
|
name: re,
|
|
4479
4479
|
fn: U((le) => [
|
|
4480
4480
|
te(b.$slots, re, Oe(Be({ ...S.value, ...le })), void 0, !0)
|
|
@@ -4488,7 +4488,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4488
4488
|
]);
|
|
4489
4489
|
};
|
|
4490
4490
|
}
|
|
4491
|
-
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-
|
|
4491
|
+
}), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-ca5e73ee"]]), Ya = { class: "global-info-group" }, Ua = { class: "global-info-group__header" }, Ha = { class: "global-info-group__title" }, Ja = { class: "global-info-group__body" }, Wa = ["id"], Za = { class: "global-info-group__empty" }, Qa = /* @__PURE__ */ pe({
|
|
4492
4492
|
name: "GlobalInfoGroup",
|
|
4493
4493
|
__name: "GlobalInfoGroup",
|
|
4494
4494
|
props: {
|
|
@@ -4554,7 +4554,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4554
4554
|
])
|
|
4555
4555
|
], !0),
|
|
4556
4556
|
ne("div", Ja, [
|
|
4557
|
-
|
|
4557
|
+
W(n).default ? te(l.$slots, "default", {
|
|
4558
4558
|
key: 0,
|
|
4559
4559
|
group: l.group,
|
|
4560
4560
|
children: l.children,
|
|
@@ -4572,7 +4572,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4572
4572
|
s(w) ? te(l.$slots, s(w), ae({
|
|
4573
4573
|
key: 0,
|
|
4574
4574
|
ref_for: !0
|
|
4575
|
-
}, c(w, $)), void 0, !0) :
|
|
4575
|
+
}, c(w, $)), void 0, !0) : W(n).section ? te(l.$slots, "section", ae({
|
|
4576
4576
|
key: 1,
|
|
4577
4577
|
ref_for: !0
|
|
4578
4578
|
}, c(w, $)), void 0, !0) : (I(), H(Ka, {
|
|
@@ -4583,7 +4583,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4583
4583
|
"hide-header": r.value,
|
|
4584
4584
|
"render-config": l.renderConfig
|
|
4585
4585
|
}, Re({ _: 2 }, [
|
|
4586
|
-
ye(
|
|
4586
|
+
ye(W(n), (L, V) => ({
|
|
4587
4587
|
name: V,
|
|
4588
4588
|
fn: U((f) => [
|
|
4589
4589
|
te(l.$slots, V, ae({ ref_for: !0 }, f), void 0, !0)
|
|
@@ -4601,13 +4601,13 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4601
4601
|
index: -1,
|
|
4602
4602
|
renderConfig: l.renderConfig
|
|
4603
4603
|
}, () => [
|
|
4604
|
-
ne("div", Za, oe(
|
|
4604
|
+
ne("div", Za, oe(W(Z)("common.暂无数据")), 1)
|
|
4605
4605
|
], !0) : fe("", !0)
|
|
4606
4606
|
], 64))
|
|
4607
4607
|
])
|
|
4608
4608
|
]));
|
|
4609
4609
|
}
|
|
4610
|
-
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-
|
|
4610
|
+
}), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-ecdfaf65"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
|
|
4611
4611
|
name: "GlobalInfoSections",
|
|
4612
4612
|
__name: "GlobalInfoSections",
|
|
4613
4613
|
props: {
|
|
@@ -4687,7 +4687,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4687
4687
|
renderConfig: h.renderConfig,
|
|
4688
4688
|
index: L,
|
|
4689
4689
|
isEmpty: $.children.length === 0
|
|
4690
|
-
}, void 0, !0) :
|
|
4690
|
+
}, void 0, !0) : W(n).group ? te(h.$slots, "group", {
|
|
4691
4691
|
key: 1,
|
|
4692
4692
|
group: $.group,
|
|
4693
4693
|
children: $.children,
|
|
@@ -4705,7 +4705,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4705
4705
|
"render-config": h.renderConfig,
|
|
4706
4706
|
index: L
|
|
4707
4707
|
}, Re({ _: 2 }, [
|
|
4708
|
-
ye(
|
|
4708
|
+
ye(W(n), (V, f) => ({
|
|
4709
4709
|
name: f,
|
|
4710
4710
|
fn: U((S) => [
|
|
4711
4711
|
te(h.$slots, f, ae({ ref_for: !0 }, S), void 0, !0)
|
|
@@ -4715,7 +4715,7 @@ const Ea = /* @__PURE__ */ pe({
|
|
|
4715
4715
|
], 64))), 128))
|
|
4716
4716
|
]));
|
|
4717
4717
|
}
|
|
4718
|
-
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-
|
|
4718
|
+
}), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-86c94f9f"]]);
|
|
4719
4719
|
function ds(e, t = {}) {
|
|
4720
4720
|
Un(e, t);
|
|
4721
4721
|
}
|