@jt-home/mfe-components 1.0.29 → 1.0.31

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.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 Ze, 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 Y, Fragment as Se, renderList as ye, normalizeStyle as qt, nextTick as Kn, useSlots as Ee, normalizeClass as He, 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 Ye, resolveComponent as Hn, onErrorCaptured as Jn } from "vue";
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, Ze(r.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
- }, tt = /* @__PURE__ */ be(lo, [["__scopeId", "data-v-500460fb"]]), co = {
97
+ }, ot = /* @__PURE__ */ be(lo, [["__scopeId", "data-v-500460fb"]]), co = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
100
  placeholder: "请选择",
@@ -329,7 +329,7 @@ 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, Ze(r.value), {
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
  };
@@ -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, Ze(i.value)), {
410
+ }, o.value, Qe(i.value)), {
411
411
  default: J(() => [
412
- ($(!0), Y(Se, null, ye(s.options ?? [], (g) => ($(), H(a, re({
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))
@@ -494,8 +494,8 @@ const fo = /* @__PURE__ */ de({
494
494
  }
495
495
  return (v, m) => {
496
496
  const M = Zt;
497
- return $(), Y("div", yo, [
498
- ($(!0), Y(Se, null, ye(l.value, (h) => ($(), H(M, re({
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), Ze(g(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-5a7778ac"]]);
533
+ }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-1edb93c6"]]);
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, 16)), j = L(() => Z(w.value.searchRowGap, 10)), b = L(() => ie(w.value.searchPadding ?? "18px 4px 0")), O = L(() => w.value.searchCollapse === !1 ? !1 : U(V.value) > k.value), T = L(() => {
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 = x(te);
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 [P] = T.value;
577
- return !!P && T.value.length === 1 && x(P) < A.value;
578
- }), q = L(() => {
579
- const [P] = T.value;
580
- return `${Math.min(A.value, P ? x(P) + 1 : 1)}`;
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: x(P),
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 x(P) {
657
+ function q(P) {
658
658
  return Math.min(A.value, Math.max(1, P.searchSpan ?? 1));
659
659
  }
660
- function U(P) {
661
- return P.reduce((te, oe) => te + x(oe), 0);
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 $(), Y("div", {
684
- class: He(["jt-filter-bar", [`is-label-${M.value}`, { "is-single-filter": ne.value }]]),
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": q.value,
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,7 +718,7 @@ 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(tt), {
721
+ O.value ? ($(), H(se(ot), {
722
722
  key: 0,
723
723
  class: "jt-filter-bar__btn-collapse",
724
724
  size: "small",
@@ -726,7 +726,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
726
726
  }, {
727
727
  icon: J(() => [
728
728
  ee("img", {
729
- class: He(["jt-filter-bar__icon-arrow", { "is-collapsed": I.value }]),
729
+ class: Je(["jt-filter-bar__icon-arrow", { "is-collapsed": I.value }]),
730
730
  src: se(Io),
731
731
  alt: ""
732
732
  }, null, 10, ko)
@@ -736,7 +736,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
736
736
  ]),
737
737
  _: 1
738
738
  })) : fe("", !0),
739
- we(se(tt), {
739
+ we(se(ot), {
740
740
  class: "jt-filter-bar__btn-reset",
741
741
  size: "small",
742
742
  disabled: se(a),
@@ -753,7 +753,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
753
753
  ]),
754
754
  _: 1
755
755
  }, 8, ["disabled"]),
756
- we(se(tt), {
756
+ we(se(ot), {
757
757
  class: "jt-filter-bar__btn-query",
758
758
  type: "primary",
759
759
  size: "small",
@@ -796,7 +796,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
796
796
  ], 6);
797
797
  };
798
798
  }
799
- }), Oo = /* @__PURE__ */ be(Do, [["__scopeId", "data-v-08fcc2d5"]]), Fo = { key: 1 }, Bo = { key: 2 }, Eo = { key: 3 }, Lo = /* @__PURE__ */ de({
799
+ }), Oo = /* @__PURE__ */ be(Do, [["__scopeId", "data-v-b25f3447"]]), Fo = { key: 1 }, Bo = { key: 2 }, Eo = { key: 3 }, Lo = /* @__PURE__ */ de({
800
800
  name: "JtTable",
801
801
  __name: "JtTable",
802
802
  props: {
@@ -845,7 +845,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
845
845
  "row-key": i.value.rowKey ?? "id",
846
846
  "empty-text": i.value.emptyText,
847
847
  class: "jt-table"
848
- }, i.value.tableProps, Ze(d.tableEvents)), {
848
+ }, i.value.tableProps, Qe(d.tableEvents)), {
849
849
  default: J(() => [
850
850
  i.value.selection ? ($(), H(k, {
851
851
  key: 0,
@@ -860,7 +860,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
860
860
  width: "60",
861
861
  align: "center"
862
862
  }, null, 8, ["label"])) : fe("", !0),
863
- ($(!0), Y(Se, null, ye(s.value, (v) => ($(), H(k, re({
863
+ ($(!0), U(Se, null, ye(s.value, (v) => ($(), H(k, re({
864
864
  key: v.prop,
865
865
  prop: v.prop,
866
866
  label: v.label,
@@ -880,12 +880,12 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
880
880
  c(v.prop) ? X(d.$slots, `${v.prop}-data`, re({
881
881
  key: 0,
882
882
  ref_for: !0
883
- }, m), void 0, !0) : v.dicData ? ($(), Y("span", Fo, me(A(v.dicData, m.row[v.prop])), 1)) : v.formatter ? ($(), Y("span", Bo, me(v.formatter(
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(
884
884
  m.row,
885
885
  m.column,
886
886
  m.row[v.prop],
887
887
  m.$index
888
- )), 1)) : ($(), Y("span", Eo, me(m.row[v.prop]), 1))
888
+ )), 1)) : ($(), U("span", Eo, me(m.row[v.prop]), 1))
889
889
  ]),
890
890
  key: "1"
891
891
  } : void 0
@@ -925,7 +925,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
925
925
  }
926
926
  return (s, l) => {
927
927
  const a = Zn;
928
- return $(), Y("div", Po, [
928
+ return $(), U("div", Po, [
929
929
  we(a, {
930
930
  "current-page": s.currentPage,
931
931
  "page-size": s.pageSize,
@@ -1003,7 +1003,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1003
1003
  searchDone: M
1004
1004
  }), (h, j) => {
1005
1005
  const b = Qn;
1006
- return $(), Y("div", Ro, [
1006
+ return $(), U("div", Ro, [
1007
1007
  X(h.$slots, "header", {}, void 0, !0),
1008
1008
  ee("div", zo, [
1009
1009
  I.value ? ($(), H(Oo, {
@@ -1027,7 +1027,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1027
1027
  ]),
1028
1028
  ee("div", xo, [
1029
1029
  ee("div", qo, [
1030
- se(a).toolbar ? ($(), Y("div", Go, [
1030
+ se(a).toolbar ? ($(), U("div", Go, [
1031
1031
  X(h.$slots, "toolbar", {}, void 0, !0)
1032
1032
  ])) : fe("", !0),
1033
1033
  Yn(($(), H(Vo, {
@@ -1076,7 +1076,7 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1076
1076
  ]);
1077
1077
  };
1078
1078
  }
1079
- }), Ga = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-0077706a"]]), Yo = { class: "jt-page-header__title" }, Uo = { key: 0 }, Ho = {
1079
+ }), Ga = /* @__PURE__ */ be(Ko, [["__scopeId", "data-v-3600b216"]]), Yo = { class: "jt-page-header__title" }, Uo = { key: 0 }, Ho = {
1080
1080
  key: 0,
1081
1081
  class: "jt-page-header__operates"
1082
1082
  }, Jo = /* @__PURE__ */ de({
@@ -1093,17 +1093,17 @@ const Io = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1093
1093
  function s(l, a) {
1094
1094
  l.onClick?.(l, a), o("operate-click", l, a);
1095
1095
  }
1096
- return (l, a) => ($(), Y("div", re({
1096
+ return (l, a) => ($(), U("div", re({
1097
1097
  class: ["jt-page-header", `jt-page-header--${l.type}`]
1098
1098
  }, l.$attrs), [
1099
1099
  ee("div", Yo, [
1100
1100
  X(l.$slots, "title", {}, () => [
1101
- l.title ? ($(), Y("span", Uo, me(l.title), 1)) : fe("", !0)
1101
+ l.title ? ($(), U("span", Uo, me(l.title), 1)) : fe("", !0)
1102
1102
  ], !0)
1103
1103
  ]),
1104
- i.value ? ($(), Y("div", Ho, [
1104
+ i.value ? ($(), U("div", Ho, [
1105
1105
  X(l.$slots, "operates", { operates: l.operates }, () => [
1106
- ($(!0), Y(Se, null, ye(l.operates, (c) => ($(), H(se(tt), re({
1106
+ ($(!0), U(Se, null, ye(l.operates, (c) => ($(), H(se(ot), re({
1107
1107
  key: c.key ?? c.label,
1108
1108
  ref_for: !0
1109
1109
  }, c.buttonProps, {
@@ -1159,15 +1159,15 @@ function rn(e, t) {
1159
1159
  }
1160
1160
  return o.bind(e);
1161
1161
  }
1162
- var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1163
- function st(e) {
1162
+ var it = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1163
+ function lt(e) {
1164
1164
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1165
1165
  }
1166
1166
  var an = { exports: {} };
1167
1167
  (function(e, t) {
1168
1168
  (function(n, o) {
1169
1169
  e.exports = o();
1170
- })(at, function() {
1170
+ })(it, function() {
1171
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) {
1172
1172
  var D = ["th", "st", "nd", "rd"], F = N % 100;
1173
1173
  return "[" + N + (D[(F - 20) % 10] || D[F] || D[0]) + "]";
@@ -1226,8 +1226,8 @@ var an = { exports: {} };
1226
1226
  if (typeof y == "string" && !/Z$/i.test(y)) {
1227
1227
  var B = y.match(S);
1228
1228
  if (B) {
1229
- var E = B[2] - 1 || 0, x = (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, x)) : new Date(B[1], E, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, x);
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);
1231
1231
  }
1232
1232
  }
1233
1233
  return new Date(y);
@@ -1256,37 +1256,37 @@ var an = { exports: {} };
1256
1256
  var y = this, _ = !!z.u(u) || u, B = z.p(F), E = function(oe, ae) {
1257
1257
  var pe = z.w(y.$u ? Date.UTC(y.$y, ae, oe) : new Date(y.$y, ae, oe), y);
1258
1258
  return _ ? pe : pe.endOf(c);
1259
- }, x = function(oe, ae) {
1259
+ }, q = function(oe, ae) {
1260
1260
  return z.w(y.toDate()[oe].apply(y.toDate("s"), (_ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), y);
1261
- }, U = this.$W, G = this.$M, Z = this.$D, ie = "set" + (this.$u ? "UTC" : "");
1261
+ }, K = this.$W, G = this.$M, Z = this.$D, ie = "set" + (this.$u ? "UTC" : "");
1262
1262
  switch (B) {
1263
1263
  case V:
1264
1264
  return _ ? E(1, 0) : E(31, 11);
1265
1265
  case w:
1266
1266
  return _ ? E(1, G) : E(0, G + 1);
1267
1267
  case g:
1268
- var P = this.$locale().weekStart || 0, te = (U < P ? U + 7 : U) - P;
1268
+ var P = this.$locale().weekStart || 0, te = (K < P ? K + 7 : K) - P;
1269
1269
  return E(_ ? Z - te : Z + (6 - te), G);
1270
1270
  case c:
1271
1271
  case A:
1272
- return x(ie + "Hours", 0);
1272
+ return q(ie + "Hours", 0);
1273
1273
  case a:
1274
- return x(ie + "Minutes", 1);
1274
+ return q(ie + "Minutes", 1);
1275
1275
  case l:
1276
- return x(ie + "Seconds", 2);
1276
+ return q(ie + "Seconds", 2);
1277
1277
  case s:
1278
- return x(ie + "Milliseconds", 3);
1278
+ return q(ie + "Milliseconds", 3);
1279
1279
  default:
1280
1280
  return this.clone();
1281
1281
  }
1282
1282
  }, D.endOf = function(F) {
1283
1283
  return this.startOf(F, !1);
1284
1284
  }, D.$set = function(F, u) {
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)[_], x = _ === c ? this.$D + (u - this.$W) : u;
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;
1286
1286
  if (_ === w || _ === V) {
1287
- var U = this.clone().set(A, 1);
1288
- U.$d[E](x), U.init(), this.$d = U.set(A, Math.min(this.$D, U.daysInMonth())).$d;
1289
- } else E && this.$d[E](x);
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);
1290
1290
  return this.init(), this;
1291
1291
  }, D.set = function(F, u) {
1292
1292
  return this.clone().$set(F, u);
@@ -1303,14 +1303,14 @@ var an = { exports: {} };
1303
1303
  if (B === V) return this.set(V, this.$y + F);
1304
1304
  if (B === c) return E(1);
1305
1305
  if (B === g) return E(7);
1306
- var x = (y = {}, y[l] = o, y[a] = r, y[s] = n, y)[B] || 1, U = this.$d.getTime() + F * x;
1307
- return z.w(U, this);
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);
1308
1308
  }, D.subtract = function(F, u) {
1309
1309
  return this.add(-1 * F, u);
1310
1310
  }, D.format = function(F) {
1311
1311
  var u = this, y = this.$locale();
1312
1312
  if (!this.isValid()) return y.invalidDate || d;
1313
- var _ = F || "YYYY-MM-DDTHH:mm:ssZ", B = z.z(this), E = this.$H, x = this.$m, U = this.$M, G = y.weekdays, Z = y.months, ie = y.meridiem, P = function(ae, pe, De, Ie) {
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) {
1314
1314
  return ae && (ae[pe] || ae(u, _)) || De[pe].slice(0, Ie);
1315
1315
  }, te = function(ae) {
1316
1316
  return z.s(E % 12 || 12, ae, "0");
@@ -1326,13 +1326,13 @@ var an = { exports: {} };
1326
1326
  case "YYYY":
1327
1327
  return z.s(u.$y, 4, "0");
1328
1328
  case "M":
1329
- return U + 1;
1329
+ return K + 1;
1330
1330
  case "MM":
1331
- return z.s(U + 1, 2, "0");
1331
+ return z.s(K + 1, 2, "0");
1332
1332
  case "MMM":
1333
- return P(y.monthsShort, U, Z, 3);
1333
+ return P(y.monthsShort, K, Z, 3);
1334
1334
  case "MMMM":
1335
- return P(Z, U);
1335
+ return P(Z, K);
1336
1336
  case "D":
1337
1337
  return u.$D;
1338
1338
  case "DD":
@@ -1354,13 +1354,13 @@ var an = { exports: {} };
1354
1354
  case "hh":
1355
1355
  return te(2);
1356
1356
  case "a":
1357
- return oe(E, x, !0);
1357
+ return oe(E, q, !0);
1358
1358
  case "A":
1359
- return oe(E, x, !1);
1359
+ return oe(E, q, !1);
1360
1360
  case "m":
1361
- return String(x);
1361
+ return String(q);
1362
1362
  case "mm":
1363
- return z.s(x, 2, "0");
1363
+ return z.s(q, 2, "0");
1364
1364
  case "s":
1365
1365
  return String(u.$s);
1366
1366
  case "ss":
@@ -1376,8 +1376,8 @@ var an = { exports: {} };
1376
1376
  }, D.utcOffset = function() {
1377
1377
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1378
1378
  }, D.diff = function(F, u, y) {
1379
- var _, B = this, E = z.p(u), x = T(F), U = (x.utcOffset() - this.utcOffset()) * o, G = this - x, Z = function() {
1380
- return z.m(B, x);
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);
1381
1381
  };
1382
1382
  switch (E) {
1383
1383
  case V:
@@ -1390,10 +1390,10 @@ var an = { exports: {} };
1390
1390
  _ = Z() / 3;
1391
1391
  break;
1392
1392
  case g:
1393
- _ = (G - U) / 6048e5;
1393
+ _ = (G - K) / 6048e5;
1394
1394
  break;
1395
1395
  case c:
1396
- _ = (G - U) / 864e5;
1396
+ _ = (G - K) / 864e5;
1397
1397
  break;
1398
1398
  case a:
1399
1399
  _ = G / r;
@@ -1427,9 +1427,9 @@ var an = { exports: {} };
1427
1427
  }, D.toString = function() {
1428
1428
  return this.$d.toUTCString();
1429
1429
  }, N;
1430
- }(), q = ne.prototype;
1431
- return T.prototype = q, [["$ms", i], ["$s", s], ["$m", l], ["$H", a], ["$W", c], ["$M", w], ["$y", V], ["$D", A]].forEach(function(N) {
1432
- q[N[1]] = function(D) {
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) {
1433
1433
  return this.$g(D, N[0], N[1]);
1434
1434
  };
1435
1435
  }), T.extend = function(N, D) {
@@ -1440,12 +1440,12 @@ var an = { exports: {} };
1440
1440
  });
1441
1441
  })(an);
1442
1442
  var Zo = an.exports;
1443
- const _t = /* @__PURE__ */ st(Zo);
1443
+ const _t = /* @__PURE__ */ lt(Zo);
1444
1444
  var sn = { exports: {} };
1445
1445
  (function(e, t) {
1446
1446
  (function(n, o) {
1447
1447
  e.exports = o();
1448
- })(at, function() {
1448
+ })(it, function() {
1449
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) {
1450
1450
  return (S = +S) + (S > 68 ? 1900 : 2e3);
1451
1451
  }, g = function(S) {
@@ -1502,8 +1502,8 @@ var sn = { exports: {} };
1502
1502
  var k, R;
1503
1503
  k = S, R = a && a.formats;
1504
1504
  for (var v = (S = k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(T, z, ne) {
1505
- var q = ne && ne.toUpperCase();
1506
- return z || R[ne] || n[ne] || R[q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(N, D, F) {
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) {
1507
1507
  return D || F.slice(1);
1508
1508
  });
1509
1509
  })).match(o), m = v.length, M = 0; M < m; M += 1) {
@@ -1511,11 +1511,11 @@ var sn = { exports: {} };
1511
1511
  v[M] = O ? { regex: b, parser: O } : h.replace(/^\[|\]$/g, "");
1512
1512
  }
1513
1513
  return function(T) {
1514
- for (var z = {}, ne = 0, q = 0; ne < m; ne += 1) {
1514
+ for (var z = {}, ne = 0, x = 0; ne < m; ne += 1) {
1515
1515
  var N = v[ne];
1516
- if (typeof N == "string") q += N.length;
1516
+ if (typeof N == "string") x += N.length;
1517
1517
  else {
1518
- var D = N.regex, F = N.parser, u = T.slice(q), y = D.exec(u)[0];
1518
+ var D = N.regex, F = N.parser, u = T.slice(x), y = D.exec(u)[0];
1519
1519
  F.call(z, y), T = T.replace(y, "");
1520
1520
  }
1521
1521
  }
@@ -1536,18 +1536,18 @@ var sn = { exports: {} };
1536
1536
  this.$u = j;
1537
1537
  var O = b[1];
1538
1538
  if (typeof O == "string") {
1539
- var T = b[2] === !0, z = b[3] === !0, ne = T || z, q = b[2];
1540
- z && (q = b[2]), a = this.$locale(), !T && q && (a = R.Ls[q]), this.$d = function(u, y, _, B) {
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) {
1541
1541
  try {
1542
1542
  if (["x", "X"].indexOf(y) > -1) return new Date((y === "X" ? 1e3 : 1) * u);
1543
- var E = d(y)(u), x = E.year, U = 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 || (x || U ? 1 : pe.getDate()), Ie = x || pe.getFullYear(), ze = 0;
1544
- x && !U || (ze = U > 0 ? U - 1 : pe.getMonth());
1545
- var xe, et = Z || 0, qe = ie || 0, p = P || 0, f = te || 0;
1546
- return oe ? new Date(Date.UTC(Ie, ze, De, et, qe, p, f + 60 * oe.offset * 1e3)) : _ ? new Date(Date.UTC(Ie, ze, De, et, qe, p, f)) : (xe = new Date(Ie, ze, De, et, qe, p, f), ae && (xe = B(xe).week(ae).toDate()), xe);
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);
1547
1547
  } catch {
1548
1548
  return /* @__PURE__ */ new Date("");
1549
1549
  }
1550
- }(h, O, j, R), this.init(), q && q !== !0 && (this.$L = this.locale(q).$L), ne && h != this.format(O) && (this.$d = /* @__PURE__ */ new Date("")), a = {};
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 = {};
1551
1551
  } else if (O instanceof Array) for (var N = O.length, D = 1; D <= N; D += 1) {
1552
1552
  b[1] = O[D - 1];
1553
1553
  var F = R.apply(this, b);
@@ -1563,12 +1563,12 @@ var sn = { exports: {} };
1563
1563
  });
1564
1564
  })(sn);
1565
1565
  var Qo = sn.exports;
1566
- const Xo = /* @__PURE__ */ st(Qo);
1566
+ const Xo = /* @__PURE__ */ lt(Qo);
1567
1567
  var ln = { exports: {} };
1568
1568
  (function(e, t) {
1569
1569
  (function(n, o) {
1570
1570
  e.exports = o();
1571
- })(at, function() {
1571
+ })(it, function() {
1572
1572
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1573
1573
  return function(r, i, s) {
1574
1574
  var l, a = function(I, V, A) {
@@ -1626,12 +1626,12 @@ var ln = { exports: {} };
1626
1626
  });
1627
1627
  })(ln);
1628
1628
  var er = ln.exports;
1629
- const tr = /* @__PURE__ */ st(er);
1629
+ const tr = /* @__PURE__ */ lt(er);
1630
1630
  var cn = { exports: {} };
1631
1631
  (function(e, t) {
1632
1632
  (function(n, o) {
1633
1633
  e.exports = o();
1634
- })(at, function() {
1634
+ })(it, function() {
1635
1635
  var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
1636
1636
  return function(i, s, l) {
1637
1637
  var a = s.prototype;
@@ -1701,7 +1701,7 @@ var cn = { exports: {} };
1701
1701
  });
1702
1702
  })(cn);
1703
1703
  var nr = cn.exports;
1704
- const or = /* @__PURE__ */ st(nr);
1704
+ const or = /* @__PURE__ */ lt(nr);
1705
1705
  _t.extend(or);
1706
1706
  _t.extend(tr);
1707
1707
  _t.extend(Xo);
@@ -1740,7 +1740,7 @@ function yt(e, t) {
1740
1740
  }
1741
1741
  !e || typeof e != "object" || Object.values(e).forEach((n) => yt(n, t));
1742
1742
  }
1743
- function Qe(e) {
1743
+ function Xe(e) {
1744
1744
  return Lt(e.type || e.fieldType || e.frontInputType) || Lt(e.renderType) || "text";
1745
1745
  }
1746
1746
  function $t(e) {
@@ -1768,14 +1768,14 @@ function dn(e, t, n = "-") {
1768
1768
  const o = $t(e);
1769
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);
1770
1770
  }
1771
- function it(e, t) {
1772
- return Array.isArray(t) ? t : ct(e) ? typeof t == "string" ? t.split(",").map((n) => n.trim()).filter(Boolean) : Ce(t) ? [] : [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];
1773
1773
  }
1774
1774
  function ar(e, t) {
1775
- return ct(e) ? it(e, t) : t;
1775
+ return dt(e) ? ct(e, t) : t;
1776
1776
  }
1777
1777
  function sr(e, t) {
1778
- return !ct(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
1778
+ return !dt(e) || !Array.isArray(t) ? Ce(t) ? "" : t : t.map((n) => String(n ?? "").trim()).filter(Boolean).join(",");
1779
1779
  }
1780
1780
  function fn(e) {
1781
1781
  if (typeof e == "boolean") return e;
@@ -1783,7 +1783,7 @@ function fn(e) {
1783
1783
  const t = String(e ?? "").trim().toLowerCase();
1784
1784
  return ["true", "1", "y", "yes", "t", "是"].includes(t);
1785
1785
  }
1786
- function lt(e, t, n, o = {}) {
1786
+ function ut(e, t, n, o = {}) {
1787
1787
  const r = ur(o);
1788
1788
  return e.filter((i) => i.visible ? !dr(i, t, n, r, o.rows) : !1);
1789
1789
  }
@@ -1910,15 +1910,15 @@ function vn(e) {
1910
1910
  return String(e ?? "").trim().toLowerCase();
1911
1911
  }
1912
1912
  function pr(e, t, n) {
1913
- const o = ct(e);
1913
+ const o = dt(e);
1914
1914
  if (Array.isArray(t) || o) {
1915
- const r = it(e, t).map((s) => Pt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
1915
+ const r = ct(e, t).map((s) => Pt(e, s) || String(s ?? "").trim()).filter(Boolean), i = o ? "," : "、";
1916
1916
  return r.length > 0 ? r.join(i) : n;
1917
1917
  }
1918
1918
  return Pt(e, t) || String(t).trim() || n;
1919
1919
  }
1920
- function ct(e) {
1921
- return !!e.props?.multiple && (Qe(e) === "select" || $t(e) === "select");
1920
+ function dt(e) {
1921
+ return !!e.props?.multiple && (Xe(e) === "select" || $t(e) === "select");
1922
1922
  }
1923
1923
  function Pt(e, t) {
1924
1924
  return e.options?.find((o) => o.value === t || String(o.value) === String(t))?.label ?? "";
@@ -2018,7 +2018,7 @@ function Ya(e) {
2018
2018
  }
2019
2019
  function yn(e) {
2020
2020
  const t = _n(e);
2021
- return (Array.isArray(t) ? t : Je(ue(t), ["options", "list", "records", "data"])).map((o) => {
2021
+ return (Array.isArray(t) ? t : We(ue(t), ["options", "list", "records", "data"])).map((o) => {
2022
2022
  const r = ue(o), i = r.fieldvalue ?? r.fieldValue;
2023
2023
  return {
2024
2024
  id: r.id,
@@ -2031,7 +2031,7 @@ function yn(e) {
2031
2031
  });
2032
2032
  }
2033
2033
  function Sr(e, t, n) {
2034
- const o = Je(e, ["sections", "sets", "list"]);
2034
+ const o = We(e, ["sections", "sets", "list"]);
2035
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)] : [];
2036
2036
  }
2037
2037
  function Nt(e, t, n, o) {
@@ -2052,7 +2052,7 @@ function Nt(e, t, n, o) {
2052
2052
  fields: s,
2053
2053
  model: c,
2054
2054
  rows: a,
2055
- operationInfo: ut(t.operationInfo ?? r.operationInfo),
2055
+ operationInfo: ft(t.operationInfo ?? r.operationInfo),
2056
2056
  raw: r
2057
2057
  };
2058
2058
  return h.renderType === "form" && a.length === 0 && (h.rows = [{ ...c, __rowKey: `${M}-0` }]), h;
@@ -2123,7 +2123,7 @@ function bn(e) {
2123
2123
  return e.reduce((t, n) => (t[n.code || n.key] = n.value, t), {});
2124
2124
  }
2125
2125
  function Sn(e, t, n = "") {
2126
- const o = ue(e), r = Je(o, ["children", "list", "tags"]).flatMap((s) => Sn(s, t, Q(o.tagId ?? o.id ?? o.key))), i = Tr(o.infSetList);
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);
2127
2127
  return r.length === 0 && i.length > 0 ? i.map((s, l) => kr(o, s, t, n, l)) : [Cr(o, t, n, r)];
2128
2128
  }
2129
2129
  function Cr(e, t, n, o) {
@@ -2145,7 +2145,7 @@ function Cr(e, t, n, o) {
2145
2145
  code: ce(e.code),
2146
2146
  children: o,
2147
2147
  infSetList: [],
2148
- operationInfo: ut(e.operationInfo),
2148
+ operationInfo: ft(e.operationInfo),
2149
2149
  loaded: o.length > 0,
2150
2150
  raw: e
2151
2151
  };
@@ -2169,7 +2169,7 @@ function kr(e, t, n, o, r) {
2169
2169
  code: g,
2170
2170
  children: [],
2171
2171
  infSetList: [t],
2172
- operationInfo: ut(e.operationInfo),
2172
+ operationInfo: ft(e.operationInfo),
2173
2173
  loaded: !0,
2174
2174
  raw: {
2175
2175
  ...e,
@@ -2193,8 +2193,8 @@ function wn(e, t = {}) {
2193
2193
  function Mr(e) {
2194
2194
  if (Array.isArray(e.globalInfoSchmConfig))
2195
2195
  return e.globalInfoSchmConfig;
2196
- const t = ue(e.globalInfoSchmConfig), n = Je(t, ["children", "tree", "list", "tags"]);
2197
- return n.length ? n : Je(e, ["children", "tree", "list", "tags", "records"]);
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"]);
2198
2198
  }
2199
2199
  function Tr(e) {
2200
2200
  return Array.isArray(e) ? e.map((t) => {
@@ -2204,7 +2204,7 @@ function Tr(e) {
2204
2204
  setId: ce(n.setId),
2205
2205
  // 信息集列表里的 code 是页面 section 插槽接管点,必须从树接口阶段保留下来。
2206
2206
  code: ce(n.code),
2207
- operationInfo: ut(n.operationInfo),
2207
+ operationInfo: ft(n.operationInfo),
2208
2208
  raw: n
2209
2209
  };
2210
2210
  }) : [];
@@ -2216,7 +2216,7 @@ function _n(e) {
2216
2216
  const t = ue(e);
2217
2217
  return t.data ?? t.result ?? e;
2218
2218
  }
2219
- function Je(e, t) {
2219
+ function We(e, t) {
2220
2220
  for (const n of t) {
2221
2221
  const o = e[n];
2222
2222
  if (Array.isArray(o))
@@ -2238,7 +2238,7 @@ function $n(e) {
2238
2238
  params: Cn(t.params)
2239
2239
  };
2240
2240
  }
2241
- function ut(e) {
2241
+ function ft(e) {
2242
2242
  const t = ue(e);
2243
2243
  if (Object.keys(t).length !== 0)
2244
2244
  return Object.fromEntries(
@@ -2295,7 +2295,7 @@ function Mn(e) {
2295
2295
  function $e(e) {
2296
2296
  return typeof e == "string" ? ["true", "1", "y", "yes", "t", "是"].includes(e.toLowerCase()) : !!e;
2297
2297
  }
2298
- const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => String(e ?? "").trim(), Xe = (e) => Array.from(new Set(e.map(Br).filter(Boolean))), Ke = (e) => !!(e && typeof e == "object" && "children" in e), We = (e) => Xe([
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([
2299
2299
  e?.key,
2300
2300
  e?.id,
2301
2301
  e?.setId,
@@ -2304,7 +2304,7 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => Str
2304
2304
  e?.code,
2305
2305
  ...(e?.infSetList ?? []).map((t) => t.infSetId),
2306
2306
  ...(e?.infSetList ?? []).map((t) => t.setId)
2307
- ]), Er = (e) => Xe([
2307
+ ]), Er = (e) => et([
2308
2308
  e.key,
2309
2309
  e.id,
2310
2310
  e.setId,
@@ -2313,11 +2313,11 @@ const Ve = (e) => e.key || e.code, ke = (e) => e.key || e.setId, Br = (e) => Str
2313
2313
  e.code
2314
2314
  ]);
2315
2315
  function Tn(e, t, n) {
2316
- const o = Er(e), r = Xe([n, ...We(t)]);
2316
+ const o = Er(e), r = et([n, ...Ze(t)]);
2317
2317
  return r.length === 0 ? !1 : r.some((i) => o.includes(i));
2318
2318
  }
2319
2319
  function Lr(e, t, n) {
2320
- return Xe([n, ...We(t)]).length === 0 ? e : e.filter((r) => Tn(r, t, n));
2320
+ return et([n, ...Ze(t)]).length === 0 ? e : e.filter((r) => Tn(r, t, n));
2321
2321
  }
2322
2322
  function Vr(e, t, n = {}) {
2323
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) => {
@@ -2343,24 +2343,24 @@ function Ar(e, t) {
2343
2343
  function jr(e) {
2344
2344
  return yn(e);
2345
2345
  }
2346
- const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, nt = (e) => {
2346
+ const Te = (e) => e && typeof e == "object" && !Array.isArray(e) ? e : {}, rt = (e) => {
2347
2347
  const t = Te(e);
2348
2348
  return !!(t.url || t.method || t.params);
2349
2349
  };
2350
2350
  function Nr(e) {
2351
2351
  const t = Te(e.operationInfo).openTag;
2352
- return nt(t) ? t : void 0;
2352
+ return rt(t) ? t : void 0;
2353
2353
  }
2354
2354
  function Rr(e, t, n) {
2355
2355
  const o = Te(e?.operationInfo).queryInfoSet;
2356
- if (nt(o))
2356
+ if (rt(o))
2357
2357
  return o;
2358
2358
  const r = t?.infSetList.find((s) => s.infSetId === n), i = Te(r?.operationInfo).queryInfoSet;
2359
- return nt(i) ? i : void 0;
2359
+ return rt(i) ? i : void 0;
2360
2360
  }
2361
2361
  function zr(e) {
2362
2362
  const t = Te(e.operationInfo).editInfoSet;
2363
- return nt(t) ? t : void 0;
2363
+ return rt(t) ? t : void 0;
2364
2364
  }
2365
2365
  async function Dn(e) {
2366
2366
  const t = e.params === void 0 ? void 0 : Te(e.params);
@@ -2412,7 +2412,7 @@ async function xr(e) {
2412
2412
  e.context ? { ...e.context, params: o } : e.context
2413
2413
  );
2414
2414
  }
2415
- function Ue(e = {}) {
2415
+ function He(e = {}) {
2416
2416
  return {
2417
2417
  // loading:当前 section 是否正在拉详情。
2418
2418
  loading: !1,
@@ -2429,17 +2429,17 @@ function Ue(e = {}) {
2429
2429
  };
2430
2430
  }
2431
2431
  function qr(e) {
2432
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], r = { ...e.currentStatusMap }, i = Lr(e.nextViewModel.sections, e.node, e.targetKey), s = Xe([e.targetKey, ...We(e.node)]).length > 0, l = i.find((a) => Tn(a, e.node, e.targetKey)) ?? (s ? null : e.nextViewModel.activeSection ?? i[0] ?? e.activeSection ?? null);
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);
2433
2433
  return i.forEach((a) => {
2434
2434
  const c = ke(a);
2435
- t[c] = a, o.includes(c) || o.push(c), r[c] = Ue({
2435
+ t[c] = a, o.includes(c) || o.push(c), r[c] = He({
2436
2436
  ...r[c],
2437
2437
  loaded: !0,
2438
2438
  loading: !1,
2439
2439
  error: null,
2440
2440
  editing: e.editingSectionKeys.includes(c)
2441
2441
  });
2442
- }), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = Ue({
2442
+ }), e.targetKey && l ? n[e.targetKey] = ke(l) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (r[e.targetKey] = He({
2443
2443
  ...r[e.targetKey],
2444
2444
  loaded: !0,
2445
2445
  loading: !1,
@@ -2566,22 +2566,22 @@ const Ur = (e) => {
2566
2566
  activeNode: l.value,
2567
2567
  activeSection: a.value,
2568
2568
  searchText: f?.searchText
2569
- }), K = { ...p, params: C }, W = f && { ...f, params: C };
2570
- return m(K, W);
2569
+ }), Y = { ...p, params: C }, W = f && { ...f, params: C };
2570
+ return m(Y, W);
2571
2571
  }, h = (p, f) => {
2572
2572
  if (!f)
2573
2573
  return p[0] ?? null;
2574
2574
  for (const C of p) {
2575
- if (We(C).includes(f))
2575
+ if (Ze(C).includes(f))
2576
2576
  return C;
2577
- const K = h(C.children, f);
2578
- if (K)
2579
- return K;
2577
+ const Y = h(C.children, f);
2578
+ if (Y)
2579
+ return Y;
2580
2580
  }
2581
2581
  return null;
2582
2582
  }, j = (p = a.value) => {
2583
2583
  if (p)
2584
- return typeof p == "string" ? p : Ke(p) ? T(p) : ke(p);
2584
+ return typeof p == "string" ? p : Ye(p) ? T(p) : ke(p);
2585
2585
  }, b = (p = a.value) => {
2586
2586
  const f = j(p);
2587
2587
  if (!f)
@@ -2594,24 +2594,24 @@ const Ur = (e) => {
2594
2594
  return g.value[f] ?? f;
2595
2595
  }, T = (p = a.value) => {
2596
2596
  if (p)
2597
- return typeof p == "string" ? p : Ke(p) ? p.setId ?? p.infSetId ?? p.key : ke(p);
2597
+ return typeof p == "string" ? p : Ye(p) ? p.setId ?? p.infSetId ?? p.key : ke(p);
2598
2598
  }, z = (p = a.value) => {
2599
- if (Ke(p))
2599
+ if (Ye(p))
2600
2600
  return p;
2601
2601
  if (typeof p == "string") {
2602
2602
  const f = h(i.value, p);
2603
2603
  if (f)
2604
2604
  return f;
2605
2605
  const C = b(p);
2606
- return C?.ownerNodeKey ? h(i.value, C.ownerNodeKey) ?? l.value : C || l.value && We(l.value).includes(p) ? l.value : null;
2606
+ return C?.ownerNodeKey ? h(i.value, C.ownerNodeKey) ?? l.value : C || l.value && Ze(l.value).includes(p) ? l.value : null;
2607
2607
  }
2608
2608
  return p?.ownerNodeKey ? h(i.value, p.ownerNodeKey) ?? l.value : l.value;
2609
- }, ne = (p = a.value) => !p || Ke(p) ? null : b(p), q = (p = a.value) => {
2609
+ }, ne = (p = a.value) => !p || Ye(p) ? null : b(p), x = (p = a.value) => {
2610
2610
  const f = T(p);
2611
2611
  if (!f)
2612
- return Ue();
2612
+ return He();
2613
2613
  const C = g.value[f] ?? f;
2614
- return Ue({
2614
+ return He({
2615
2615
  ...I.value[f],
2616
2616
  ...I.value[C],
2617
2617
  // 编辑态始终从 editingSectionKeys 计算,避免状态对象过期。
@@ -2623,7 +2623,7 @@ const Ur = (e) => {
2623
2623
  const C = T(p);
2624
2624
  C && (I.value = {
2625
2625
  ...I.value,
2626
- [C]: Ue({
2626
+ [C]: He({
2627
2627
  // 保留已有状态。
2628
2628
  ...I.value[C],
2629
2629
  // 合并本次状态补丁。
@@ -2633,7 +2633,7 @@ const Ur = (e) => {
2633
2633
  })
2634
2634
  });
2635
2635
  }, D = (p = s.value?.raw ?? null, f = l.value) => {
2636
- const C = A.value, K = a.value && C.find(
2636
+ const C = A.value, Y = a.value && C.find(
2637
2637
  (W) => ke(W) === ke(a.value)
2638
2638
  ) ? a.value : null;
2639
2639
  s.value = {
@@ -2647,16 +2647,16 @@ const Ur = (e) => {
2647
2647
  // 当前激活节点。
2648
2648
  activeNode: f,
2649
2649
  // 当前激活 section。
2650
- activeSection: K,
2650
+ activeSection: Y,
2651
2651
  // 当前所有已加载 section。
2652
2652
  sections: C,
2653
2653
  // 当前 section 缓存。
2654
2654
  sectionMap: c.value,
2655
2655
  // 保留原始接口数据。
2656
2656
  raw: p
2657
- }, a.value = K;
2657
+ }, a.value = Y;
2658
2658
  }, F = (p, f = l.value, C) => {
2659
- const K = qr({
2659
+ const Y = qr({
2660
2660
  currentMap: c.value,
2661
2661
  currentAliasMap: g.value,
2662
2662
  currentOrder: w.value,
@@ -2667,53 +2667,54 @@ const Ur = (e) => {
2667
2667
  targetKey: C,
2668
2668
  activeSection: a.value
2669
2669
  });
2670
- return c.value = K.sectionMap, g.value = K.sectionAliasMap, w.value = K.sectionOrder, I.value = K.sectionStatusMap, s.value = {
2670
+ return c.value = Y.sectionMap, g.value = Y.sectionAliasMap, w.value = Y.sectionOrder, I.value = Y.sectionStatusMap, s.value = {
2671
2671
  ...p,
2672
2672
  scheme: p.scheme ?? s.value?.scheme ?? null,
2673
2673
  topNodes: i.value,
2674
2674
  treeNodes: i.value,
2675
2675
  activeNode: f,
2676
- activeSection: K.matchedSection,
2677
- sections: K.targetSections,
2676
+ activeSection: Y.matchedSection,
2677
+ sections: Y.targetSections,
2678
2678
  sectionMap: c.value
2679
- }, a.value = K.matchedSection, K.matchedSection;
2679
+ }, a.value = Y.matchedSection, Y.matchedSection;
2680
2680
  }, u = (p, f) => {
2681
- const C = O(p), K = C ? c.value[C] : null;
2682
- if (!C || !K)
2681
+ const C = O(p), Y = C ? c.value[C] : null;
2682
+ if (!C || !Y)
2683
2683
  return;
2684
- const W = f(K);
2684
+ const W = f(Y);
2685
2685
  c.value = {
2686
2686
  ...c.value,
2687
2687
  [C]: W
2688
2688
  }, a.value = ke(a.value ?? W) === C ? W : a.value, D();
2689
2689
  }, y = async (p = a.value ?? l.value) => {
2690
- const f = ne(p), C = z(p) ?? l.value, K = T(p);
2690
+ const f = ne(p), C = z(p) ?? l.value, Y = T(p);
2691
2691
  if (!C)
2692
2692
  return null;
2693
2693
  if (!e.service.requestOperation)
2694
2694
  throw Ne("service.requestOperation is required");
2695
- n.value = !0, r.value = null, N(K ?? C, { loading: !0, error: null });
2695
+ n.value = !0, r.value = null, N(Y ?? C, { loading: !0, error: null });
2696
2696
  try {
2697
2697
  const W = f ? [{ infSetId: f.infSetId, setId: f.setId, operationInfo: f.operationInfo, raw: f.raw }] : C.infSetList;
2698
2698
  if (W.length === 0)
2699
2699
  throw Ne("node.infSetList is required");
2700
2700
  const _e = await Promise.all(W.map(async (le) => {
2701
- const he = Rr(f, C, le.infSetId), Ae = {
2701
+ const he = Rr(f, C, le.infSetId), Ae = f?.requestTagId ?? f?.tagId ?? C.tagId, nt = {
2702
2702
  ...R(C, f),
2703
+ tagId: Ae,
2703
2704
  infSetId: le.infSetId,
2704
2705
  setId: le.setId,
2705
2706
  operationInfo: le.operationInfo
2706
2707
  };
2707
2708
  if (he) {
2708
- const dt = await v(he, {
2709
+ const Ge = await v(he, {
2709
2710
  type: "queryInfoSet",
2710
2711
  requestSource: "inner",
2711
- tagId: f?.requestTagId ?? f?.tagId ?? C.tagId,
2712
+ tagId: Ae,
2712
2713
  node: C,
2713
2714
  section: f,
2714
- params: Ae
2715
+ params: nt
2715
2716
  });
2716
- return gr(dt, Ae, C);
2717
+ return gr(Ge, nt, C);
2717
2718
  }
2718
2719
  throw Ne("infoSet.operationInfo.queryInfoSet is required");
2719
2720
  })), ve = {
@@ -2721,48 +2722,48 @@ const Ur = (e) => {
2721
2722
  sections: _e.flatMap((le) => le.sections),
2722
2723
  sectionMap: Object.fromEntries(_e.flatMap((le) => le.sections).map((le) => [le.key, le]))
2723
2724
  };
2724
- return F(ve, C, K);
2725
+ return F(ve, C, Y);
2725
2726
  } catch (W) {
2726
- throw r.value = W, N(K ?? C, { loading: !1, error: W }), W;
2727
+ throw r.value = W, N(Y ?? C, { loading: !1, error: W }), W;
2727
2728
  } finally {
2728
- n.value = !1, N(K ?? C, { loading: !1 });
2729
+ n.value = !1, N(Y ?? C, { loading: !1 });
2729
2730
  }
2730
2731
  }, _ = (p = a.value) => y(p), B = (p = a.value) => {
2731
2732
  if (!p)
2732
2733
  return null;
2733
- if (!Ke(p) && typeof p != "string")
2734
+ if (!Ye(p) && typeof p != "string")
2734
2735
  return b(p);
2735
2736
  const f = T(p);
2736
2737
  return f ? c.value[g.value[f] ?? f] ?? null : null;
2737
- }, 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), x = async (p) => {
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) => {
2738
2739
  const f = Nr(p);
2739
2740
  if (!f)
2740
2741
  return p.children;
2741
- const C = k(p), K = await v(f, {
2742
+ const C = k(p), Y = await v(f, {
2742
2743
  type: "openTag",
2743
2744
  requestSource: "sidebar",
2744
2745
  tagId: p.tagId,
2745
2746
  node: p,
2746
2747
  params: C
2747
2748
  });
2748
- return jt(K).treeNodes;
2749
- }, U = async (p) => {
2749
+ return jt(Y).treeNodes;
2750
+ }, K = async (p) => {
2750
2751
  if (p.loaded)
2751
2752
  return p.children;
2752
- const f = await x(p);
2753
+ const f = await q(p);
2753
2754
  return f.length > 0 && (i.value = hn(i.value, p.key, f)), f;
2754
2755
  }, G = async (p) => {
2755
2756
  const f = typeof p == "string" ? h(i.value, p) : p;
2756
- return f ? (l.value = f, a.value = null, V.value = [], await U(f), D(s.value?.raw, f), f) : null;
2757
+ return f ? (l.value = f, a.value = null, V.value = [], await K(f), D(s.value?.raw, f), f) : null;
2757
2758
  }, Z = async () => {
2758
2759
  const p = e.service.templateTree;
2759
2760
  if (!p)
2760
2761
  throw Ne("service.templateTree is required");
2761
2762
  t.value = !0, r.value = null;
2762
2763
  try {
2763
- const f = await p(S()), C = jt(f), K = await Promise.all(
2764
+ const f = await p(S()), C = jt(f), Y = await Promise.all(
2764
2765
  C.treeNodes.map(async (_e) => {
2765
- const ve = await x(_e);
2766
+ const ve = await q(_e);
2766
2767
  return {
2767
2768
  ..._e,
2768
2769
  children: ve,
@@ -2770,11 +2771,11 @@ const Ur = (e) => {
2770
2771
  };
2771
2772
  })
2772
2773
  );
2773
- i.value = K, a.value = null, c.value = {}, g.value = {}, w.value = [], I.value = {}, V.value = [];
2774
- const W = h(K, e.initialActiveNodeKey) ?? h(K);
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);
2775
2776
  return l.value = W, s.value = {
2776
2777
  ...C,
2777
- treeNodes: K,
2778
+ treeNodes: Y,
2778
2779
  activeNode: W,
2779
2780
  sectionMap: c.value,
2780
2781
  sections: A.value
@@ -2803,11 +2804,11 @@ const Ur = (e) => {
2803
2804
  (C) => C !== f
2804
2805
  ), N(f, { editing: !1 }));
2805
2806
  }, ae = (p, f, C) => {
2806
- const K = typeof f == "string" ? f : Ve(f);
2807
+ const Y = typeof f == "string" ? f : Ve(f);
2807
2808
  u(p, (W) => {
2808
- const ve = (typeof f == "string" ? W.fields.find((he) => Ve(he) === K || he.code === K) : f)?.cascadeClearFields ?? [], le = {
2809
+ const ve = (typeof f == "string" ? W.fields.find((he) => Ve(he) === Y || he.code === Y) : f)?.cascadeClearFields ?? [], le = {
2809
2810
  ...W.model,
2810
- [K]: C
2811
+ [Y]: C
2811
2812
  };
2812
2813
  return ve.forEach((he) => {
2813
2814
  le[he] = "";
@@ -2821,38 +2822,38 @@ const Ur = (e) => {
2821
2822
  // 同步 fields.value,保证只读 renderer 立即显示新值。
2822
2823
  fields: W.fields.map((he) => {
2823
2824
  const Ae = Ve(he);
2824
- return Ae === K || he.code === K ? { ...he, value: C } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
2825
+ return Ae === Y || he.code === Y ? { ...he, value: C } : ve.includes(Ae) || ve.includes(he.code) ? { ...he, value: "" } : he;
2825
2826
  })
2826
2827
  };
2827
2828
  });
2828
- }, pe = async (p, f, C = {}, K = {}) => {
2829
+ }, pe = async (p, f, C = {}, Y = {}) => {
2829
2830
  const W = b(p);
2830
2831
  if (!W)
2831
2832
  return [];
2832
2833
  const _e = {
2833
2834
  ...C,
2834
- ...K.searchText !== void 0 ? { searchText: K.searchText } : {}
2835
+ ...Y.searchText !== void 0 ? { searchText: Y.searchText } : {}
2835
2836
  }, {
2836
2837
  fieldKey: ve,
2837
2838
  currentField: le,
2838
2839
  sourceModel: he,
2839
2840
  sourceRow: Ae,
2840
- missingDependField: dt
2841
- } = Vr(W, f, _e), ft = le?.interface;
2842
- if (!le || !ft)
2841
+ missingDependField: nt
2842
+ } = Vr(W, f, _e), Ge = le?.interface;
2843
+ if (!le || !Ge)
2843
2844
  return le?.options ?? [];
2844
2845
  if (Pr(le))
2845
2846
  return le.options ?? [];
2846
- if (dt)
2847
- return u(W, (Ge) => ({
2848
- ...Ge,
2849
- fields: Ge.fields.map(
2847
+ if (nt)
2848
+ return u(W, (Ke) => ({
2849
+ ...Ke,
2850
+ fields: Ke.fields.map(
2850
2851
  (Le) => Ve(Le) === ve || Le.code === ve ? { ...Le, options: [] } : Le
2851
2852
  )
2852
2853
  })), [];
2853
2854
  const zn = await M(
2854
2855
  {
2855
- ...ft
2856
+ ...Ge
2856
2857
  },
2857
2858
  {
2858
2859
  type: "fieldOptions",
@@ -2861,16 +2862,16 @@ const Ur = (e) => {
2861
2862
  node: z(W),
2862
2863
  section: W,
2863
2864
  field: le,
2864
- params: Te(ft.params),
2865
+ params: Te(Ge.params),
2865
2866
  // searchText 参与本次查询时,需要一并透传到 model 上,避免被依赖检查视为缺失并提前截断请求。
2866
2867
  model: he,
2867
2868
  row: Ae,
2868
- searchText: K.searchText
2869
+ searchText: Y.searchText
2869
2870
  }
2870
2871
  ), kt = jr(zn);
2871
- return u(W, (Ge) => ({
2872
- ...Ge,
2873
- fields: Ge.fields.map(
2872
+ return u(W, (Ke) => ({
2873
+ ...Ke,
2874
+ fields: Ke.fields.map(
2874
2875
  (Le) => Ve(Le) === ve || Le.code === ve ? { ...Le, options: kt } : Le
2875
2876
  )
2876
2877
  })), kt;
@@ -2886,9 +2887,9 @@ const Ur = (e) => {
2886
2887
  // 表单类型同步合并到第一行 rows。
2887
2888
  rows: C.renderType === "form" ? [{ ...C.rows[0], ...f }] : C.rows,
2888
2889
  // fields.value 也同步成 model 中的值。
2889
- fields: C.fields.map((K) => ({
2890
- ...K,
2891
- value: f[Ve(K)]
2890
+ fields: C.fields.map((Y) => ({
2891
+ ...Y,
2892
+ value: f[Ve(Y)]
2892
2893
  }))
2893
2894
  }));
2894
2895
  }, Ie = (p, f) => {
@@ -2913,7 +2914,7 @@ const Ur = (e) => {
2913
2914
  // 获取指定节点或 section 的缓存数据。
2914
2915
  getSection: B,
2915
2916
  // 获取指定节点或 section 的状态。
2916
- getSectionStatus: q,
2917
+ getSectionStatus: x,
2917
2918
  // 开启编辑。
2918
2919
  startEdit: te,
2919
2920
  // 取消编辑。
@@ -2933,8 +2934,8 @@ const Ur = (e) => {
2933
2934
  },
2934
2935
  // 删除单行本地缓存。
2935
2936
  deleteRow: (p, f) => {
2936
- const C = b(p), K = typeof f == "string" ? Number(f) : f, W = (C?.rows ?? []).filter(
2937
- (_e, ve) => ve !== K
2937
+ const C = b(p), Y = typeof f == "string" ? Number(f) : f, W = (C?.rows ?? []).filter(
2938
+ (_e, ve) => ve !== Y
2938
2939
  );
2939
2940
  Ie(p, W);
2940
2941
  },
@@ -2943,8 +2944,8 @@ const Ur = (e) => {
2943
2944
  const f = j(p), C = b(p);
2944
2945
  if (!C)
2945
2946
  return null;
2946
- const K = zr(C);
2947
- if (!K)
2947
+ const Y = zr(C);
2948
+ if (!Y)
2948
2949
  throw Ne("section.operationInfo.editInfoSet is required");
2949
2950
  o.value = !0, r.value = null, f && f !== ke(C) && N(f, { saving: !0, error: null }), N(C, { saving: !0, error: null });
2950
2951
  try {
@@ -2962,7 +2963,7 @@ const Ur = (e) => {
2962
2963
  throw new Error(le);
2963
2964
  const he = await v(
2964
2965
  // 保存时保留后端给的 method/url,但不再把 editOperation.params 混入实际提交数据。
2965
- K,
2966
+ Y,
2966
2967
  {
2967
2968
  type: "editInfoSet",
2968
2969
  requestSource: "inner",
@@ -3071,67 +3072,67 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3071
3072
  },
3072
3073
  emits: ["update:modelValue", "change", "loadOptions"],
3073
3074
  setup(e, { emit: t }) {
3074
- const n = e, o = t, r = ["textarea", "html", "code", "multi-row"], i = ge(null), s = L(() => Qe(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(() => {
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(() => {
3075
3076
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "") return;
3076
- const q = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3077
- return Number.isFinite(q) ? q : void 0;
3077
+ const x = typeof n.modelValue == "number" ? n.modelValue : Number(n.modelValue);
3078
+ return Number.isFinite(x) ? x : void 0;
3078
3079
  }), V = L(() => ar(n.field, n.modelValue)), A = L(() => {
3079
- const q = n.field.props?.activeValue ?? n.field.props?.["active-value"], N = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3080
- return q !== void 0 || N !== void 0 ? n.modelValue ?? N ?? !1 : fn(n.modelValue);
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);
3081
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" ? "请选择文件" : "请输入");
3082
3083
  let m;
3083
- function M(q) {
3084
- o("update:modelValue", j(q));
3084
+ function M(x) {
3085
+ o("update:modelValue", j(x));
3085
3086
  }
3086
- function h(q) {
3087
- o("change", j(q));
3087
+ function h(x) {
3088
+ o("change", j(x));
3088
3089
  }
3089
- function j(q) {
3090
- return s.value === "select" || s.value === "select_remote" ? sr(n.field, q) : q;
3090
+ function j(x) {
3091
+ return s.value === "select" || s.value === "select_remote" ? sr(n.field, x) : x;
3091
3092
  }
3092
- function b(q) {
3093
- q && o("loadOptions", l.value ? { searchText: "" } : void 0);
3093
+ function b(x) {
3094
+ x && o("loadOptions", l.value ? { searchText: "" } : void 0);
3094
3095
  }
3095
- function O(q) {
3096
+ function O(x) {
3096
3097
  l.value && (m && clearTimeout(m), m = setTimeout(() => {
3097
- o("loadOptions", { searchText: q });
3098
+ o("loadOptions", { searchText: x });
3098
3099
  }, 300));
3099
3100
  }
3100
3101
  function T() {
3101
3102
  a.value || i.value?.click();
3102
3103
  }
3103
- function z(q) {
3104
- Fn(q);
3104
+ function z(x) {
3105
+ Fn(x);
3105
3106
  }
3106
3107
  Un(() => {
3107
3108
  m && clearTimeout(m);
3108
3109
  });
3109
- function ne(q) {
3110
- const N = q.target, D = Array.from(N.files ?? []), F = n.field.props?.multiple ? D : D[0] ?? null;
3110
+ function ne(x) {
3111
+ const N = x.target, D = Array.from(N.files ?? []), F = n.field.props?.multiple ? D : D[0] ?? null;
3111
3112
  M(F), h(F);
3112
3113
  }
3113
- return (q, N) => {
3114
+ return (x, N) => {
3114
3115
  const D = Wt, F = Jt, u = Ut, y = Xn, _ = eo, B = Ht;
3115
3116
  return s.value === "select" || s.value === "select_remote" ? ($(), H(F, re({
3116
3117
  key: 0,
3117
3118
  class: "global-info-field-control"
3118
- }, q.field.props, {
3119
+ }, x.field.props, {
3119
3120
  "model-value": V.value,
3120
3121
  placeholder: v.value,
3121
3122
  disabled: a.value,
3122
3123
  "collapse-tags": c.value,
3123
3124
  "collapse-tags-tooltip": c.value,
3124
3125
  "max-collapse-tags": 1,
3125
- filterable: l.value || !!q.field.props?.filterable,
3126
- remote: l.value || !!q.field.props?.remote,
3127
- "remote-method": l.value ? O : q.field.props?.remoteMethod,
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,
3128
3129
  clearable: "",
3129
3130
  onVisibleChange: b,
3130
3131
  "onUpdate:modelValue": M,
3131
3132
  onChange: h
3132
3133
  }), {
3133
3134
  default: J(() => [
3134
- ($(!0), Y(Se, null, ye(q.field.options || [], (E) => ($(), H(D, {
3135
+ ($(!0), U(Se, null, ye(x.field.options || [], (E) => ($(), H(D, {
3135
3136
  key: String(E.value),
3136
3137
  label: E.label,
3137
3138
  value: E.value
@@ -3141,8 +3142,8 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3141
3142
  }, 16, ["model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : s.value === "date" ? ($(), H(u, re({
3142
3143
  key: 1,
3143
3144
  class: "global-info-field-control"
3144
- }, q.field.props, {
3145
- "model-value": q.modelValue,
3145
+ }, x.field.props, {
3146
+ "model-value": x.modelValue,
3146
3147
  placeholder: v.value,
3147
3148
  disabled: a.value,
3148
3149
  type: "date",
@@ -3152,7 +3153,7 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3152
3153
  }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "number" ? ($(), H(y, re({
3153
3154
  key: 2,
3154
3155
  class: "global-info-field-control"
3155
- }, q.field.props, {
3156
+ }, x.field.props, {
3156
3157
  "model-value": I.value,
3157
3158
  placeholder: v.value,
3158
3159
  disabled: a.value,
@@ -3162,14 +3163,14 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3162
3163
  }), null, 16, ["model-value", "placeholder", "disabled"])) : s.value === "switch" ? ($(), H(_, re({
3163
3164
  key: 3,
3164
3165
  class: "global-info-field-control global-info-field-control--switch"
3165
- }, q.field.props, {
3166
+ }, x.field.props, {
3166
3167
  "model-value": A.value,
3167
3168
  disabled: a.value,
3168
3169
  "onUpdate:modelValue": M,
3169
3170
  onChange: h
3170
- }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? ($(), Y("div", {
3171
+ }), null, 16, ["model-value", "disabled"])) : s.value === "file" ? ($(), U("div", {
3171
3172
  key: 4,
3172
- class: He(["global-info-field-control global-info-field-control--file", {
3173
+ class: Je(["global-info-field-control global-info-field-control--file", {
3173
3174
  "is-disabled": a.value,
3174
3175
  "is-empty": !S.value,
3175
3176
  "is-filled": S.value
@@ -3182,23 +3183,23 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3182
3183
  class: "global-info-field-control__file-input",
3183
3184
  type: "file",
3184
3185
  disabled: a.value,
3185
- accept: String(q.field.props?.accept ?? ""),
3186
- multiple: !!q.field.props?.multiple,
3186
+ accept: String(x.field.props?.accept ?? ""),
3187
+ multiple: !!x.field.props?.multiple,
3187
3188
  onChange: ne
3188
3189
  }, null, 40, Hr),
3189
- R.value.length ? ($(), Y("span", Jr, [
3190
- ($(!0), Y(Se, null, ye(R.value, (E, x) => ($(), Y(Se, {
3190
+ R.value.length ? ($(), U("span", Jr, [
3191
+ ($(!0), U(Se, null, ye(R.value, (E, q) => ($(), U(Se, {
3191
3192
  key: E.key
3192
3193
  }, [
3193
- E.action ? ($(), Y("button", {
3194
+ E.action ? ($(), U("button", {
3194
3195
  key: 0,
3195
3196
  class: "global-info-field-control__file-preview",
3196
3197
  type: "button",
3197
- onClick: Gt((U) => z(E), ["stop", "prevent"])
3198
- }, me(E.text), 9, Wr)) : ($(), Y("span", Zr, me(E.text), 1)),
3199
- x < R.value.length - 1 ? ($(), Y("span", Qr, "、")) : fe("", !0)
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)
3200
3201
  ], 64))), 128))
3201
- ])) : S.value ? ($(), Y("span", Xr, me(k.value), 1)) : ($(), Y("span", ea, "上 传"))
3202
+ ])) : S.value ? ($(), U("span", Xr, me(k.value), 1)) : ($(), U("span", ea, "上 传"))
3202
3203
  ], 2)) : s.value === "empty" ? ($(), H(B, {
3203
3204
  key: 5,
3204
3205
  class: "global-info-field-control",
@@ -3211,7 +3212,7 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3211
3212
  "global-info-field-control--textarea": r.includes(s.value),
3212
3213
  "global-info-field-control--code": s.value === "code"
3213
3214
  }]
3214
- }, q.field.props, {
3215
+ }, x.field.props, {
3215
3216
  "model-value": g.value,
3216
3217
  placeholder: v.value,
3217
3218
  disabled: a.value,
@@ -3242,25 +3243,25 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3242
3243
  function s(l) {
3243
3244
  Fn(l);
3244
3245
  }
3245
- return (l, a) => n.value === "html" && !o.value ? ($(), Y("span", {
3246
+ return (l, a) => n.value === "html" && !o.value ? ($(), U("span", {
3246
3247
  key: 0,
3247
3248
  class: "global-info-field-value global-info-field-value--html",
3248
3249
  innerHTML: r.value
3249
- }, null, 8, na)) : n.value === "code" && !o.value ? ($(), Y("pre", oa, me(r.value), 1)) : i.value.length ? ($(), Y("span", ra, [
3250
- ($(!0), Y(Se, null, ye(i.value, (c, g) => ($(), Y(Se, {
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, {
3251
3252
  key: c.key
3252
3253
  }, [
3253
- c.action ? ($(), Y("button", {
3254
+ c.action ? ($(), U("button", {
3254
3255
  key: 0,
3255
3256
  class: "global-info-field-value__attachment-preview",
3256
3257
  type: "button",
3257
3258
  onClick: (w) => s(c)
3258
- }, me(c.text), 9, aa)) : ($(), Y("span", sa, me(c.text), 1)),
3259
- g < i.value.length - 1 ? ($(), Y("span", ia, "、")) : fe("", !0)
3259
+ }, me(c.text), 9, aa)) : ($(), U("span", sa, me(c.text), 1)),
3260
+ g < i.value.length - 1 ? ($(), U("span", ia, "、")) : fe("", !0)
3260
3261
  ], 64))), 128))
3261
- ])) : ($(), Y("span", {
3262
+ ])) : ($(), U("span", {
3262
3263
  key: 3,
3263
- class: He(["global-info-field-value", {
3264
+ class: Je(["global-info-field-value", {
3264
3265
  "global-info-field-value--multi-row": n.value === "multi-row",
3265
3266
  "global-info-field-value--file": n.value === "file" && !o.value
3266
3267
  }])
@@ -3268,14 +3269,14 @@ const Hr = ["disabled", "accept", "multiple"], Jr = {
3268
3269
  }
3269
3270
  }), En = /* @__PURE__ */ be(la, [["__scopeId", "data-v-efe9888d"]]);
3270
3271
  function ca(e) {
3271
- const t = Qe(e);
3272
+ const t = Xe(e);
3272
3273
  return (t === "select" || t === "select_remote") && !!e.interface;
3273
3274
  }
3274
- function ot(e, t, n = {}, o = "") {
3275
+ function at(e, t, n = {}, o = "") {
3275
3276
  const r = t.key || t.id || t.code, s = Re(t).map((l) => `${l}:${String(n[l] ?? "")}`).join("|");
3276
3277
  return [e, o, r, s].join("::");
3277
3278
  }
3278
- function rt(e, t, n) {
3279
+ function st(e, t, n) {
3279
3280
  return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Re(e).length === 0 : !1;
3280
3281
  }
3281
3282
  function Ln(e = {}) {
@@ -3288,11 +3289,11 @@ function Vn(e, t) {
3288
3289
  return n.size === 0 ? !1 : Re(e).some((o) => n.has(o));
3289
3290
  }
3290
3291
  function Pn(e, t, n) {
3291
- const o = Qe(e);
3292
+ const o = Xe(e);
3292
3293
  return ca(e) ? n ? !0 : !Ce(t) : !1;
3293
3294
  }
3294
3295
  function An(e, t) {
3295
- return Qe(e) !== "select_remote" ? {} : {
3296
+ return Xe(e) !== "select_remote" ? {} : {
3296
3297
  searchText: t == null ? "" : String(t)
3297
3298
  };
3298
3299
  }
@@ -3313,7 +3314,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3313
3314
  renderConfig: {}
3314
3315
  },
3315
3316
  setup(e) {
3316
- const t = e, n = Ee(), o = L(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = L(() => lt(
3317
+ const t = e, n = Ee(), o = L(() => t.model ?? t.section.model), r = /* @__PURE__ */ new Map(), i = L(() => ut(
3317
3318
  t.section.fields,
3318
3319
  t.section,
3319
3320
  t.renderConfig,
@@ -3354,7 +3355,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3354
3355
  }
3355
3356
  }
3356
3357
  function c(m, M) {
3357
- const h = it(m, M);
3358
+ const h = ct(m, M);
3358
3359
  return (m.options ?? []).filter((j) => h.some((b) => j.value === b || String(j.value) === String(b)));
3359
3360
  }
3360
3361
  function g() {
@@ -3368,8 +3369,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3368
3369
  return Object.fromEntries(j);
3369
3370
  }
3370
3371
  async function I(m, M = {}, h = o.value) {
3371
- const j = h, b = k(m), O = ot(t.section.key, m, j), T = r.get(b);
3372
- if (!Ln(M) && rt(m, T, O)) {
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)) {
3373
3374
  r.set(b, O);
3374
3375
  return;
3375
3376
  }
@@ -3388,8 +3389,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3388
3389
  if (M && !Vn(h, M)) continue;
3389
3390
  const j = m[h.code];
3390
3391
  if (!R(h, j)) continue;
3391
- const b = ot(t.section.key, h, m), O = k(h), T = r.get(O);
3392
- if (rt(h, T, b)) {
3392
+ const b = at(t.section.key, h, m), O = k(h), T = r.get(O);
3393
+ if (st(h, T, b)) {
3393
3394
  r.set(O, b);
3394
3395
  continue;
3395
3396
  }
@@ -3451,7 +3452,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3451
3452
  default: J(() => [
3452
3453
  we(b, { gutter: 24 }, {
3453
3454
  default: J(() => [
3454
- ($(!0), Y(Se, null, ye(i.value, (T) => ($(), H(j, {
3455
+ ($(!0), U(Se, null, ye(i.value, (T) => ($(), H(j, {
3455
3456
  key: k(T),
3456
3457
  span: S(T)
3457
3458
  }, {
@@ -3462,8 +3463,8 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3462
3463
  }, T.formItemProps), {
3463
3464
  label: J(() => [
3464
3465
  ee("span", ua, [
3465
- v(T) ? ($(), Y("span", da, "*")) : fe("", !0),
3466
- Ye(" " + me(T.label), 1)
3466
+ v(T) ? ($(), U("span", da, "*")) : fe("", !0),
3467
+ Ue(" " + me(T.label), 1)
3467
3468
  ])
3468
3469
  ]),
3469
3470
  default: J(() => [
@@ -3546,7 +3547,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3546
3547
  const u = t.renderConfig?.sequenceStart;
3547
3548
  return typeof u == "number" && Number.isFinite(u) ? u : 1;
3548
3549
  }), a = L(() => {
3549
- const u = lt(
3550
+ const u = ut(
3550
3551
  t.section.fields,
3551
3552
  t.section,
3552
3553
  t.renderConfig,
@@ -3572,22 +3573,22 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3572
3573
  }) : u.allowDelete !== !1);
3573
3574
  }
3574
3575
  function V(u, y, _, B) {
3575
- const E = t.section.rows.slice(), x = _.cascadeClearFields ?? [], U = {
3576
+ const E = t.section.rows.slice(), q = _.cascadeClearFields ?? [], K = {
3576
3577
  ...u,
3577
3578
  __rowKey: D(u),
3578
3579
  [_.code]: B
3579
3580
  };
3580
- x.forEach((G) => {
3581
- U[G] = "";
3581
+ q.forEach((G) => {
3582
+ K[G] = "";
3582
3583
  }), E[y] = {
3583
- ...U
3584
- }, t.actions.updateTableRows(t.section, E), A(_, B, U, y, E), v(_, U);
3584
+ ...K
3585
+ }, t.actions.updateTableRows(t.section, E), A(_, B, K, y, E), v(_, K);
3585
3586
  }
3586
3587
  function A(u, y, _, B, E) {
3587
- const x = t.renderConfig?.onFieldBusinessChange;
3588
- if (x)
3588
+ const q = t.renderConfig?.onFieldBusinessChange;
3589
+ if (q)
3589
3590
  try {
3590
- const U = d(u, y), G = { ...t.section.model, ..._ }, Z = {
3591
+ const K = d(u, y), G = { ...t.section.model, ..._ }, Z = {
3591
3592
  field: u,
3592
3593
  value: y,
3593
3594
  section: t.section,
@@ -3601,18 +3602,18 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3601
3602
  sections: S(),
3602
3603
  sectionValues: k(t.section, E),
3603
3604
  actions: t.actions,
3604
- selectedOption: U[0],
3605
- selectedOptions: U
3605
+ selectedOption: K[0],
3606
+ selectedOptions: K
3606
3607
  };
3607
- Promise.resolve(x(Z)).catch((ie) => {
3608
+ Promise.resolve(q(Z)).catch((ie) => {
3608
3609
  console.error("[GlobalInfoTableRenderer] field business change failed", ie);
3609
3610
  });
3610
- } catch (U) {
3611
- console.error("[GlobalInfoTableRenderer] field business change failed", U);
3611
+ } catch (K) {
3612
+ console.error("[GlobalInfoTableRenderer] field business change failed", K);
3612
3613
  }
3613
3614
  }
3614
3615
  function d(u, y) {
3615
- const _ = it(u, y);
3616
+ const _ = ct(u, y);
3616
3617
  return (u.options ?? []).filter((B) => _.some((E) => B.value === E || String(B.value) === String(E)));
3617
3618
  }
3618
3619
  function S() {
@@ -3620,15 +3621,15 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3620
3621
  }
3621
3622
  function k(u, y) {
3622
3623
  const B = S().flatMap((E) => {
3623
- const x = E.key === u.key ? y : E.renderType === "table" ? E.rows : E.model;
3624
- return [E.key, E.id, E.setId, E.infSetId, E.code].filter(Boolean).map((U) => [String(U), x]);
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]);
3625
3626
  });
3626
3627
  return Object.fromEntries(B);
3627
3628
  }
3628
3629
  async function R(u, y, _ = {}, B = y) {
3629
- const E = D(B), x = `${E}:${T(u)}`, U = ot(t.section.key, u, B, E), G = c.get(x);
3630
- if (!Ln(_) && rt(u, G, U)) {
3631
- c.set(x, U);
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);
3632
3633
  return;
3633
3634
  }
3634
3635
  try {
@@ -3636,7 +3637,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3636
3637
  await g(u, B, _);
3637
3638
  return;
3638
3639
  }
3639
- await t.actions.loadFieldOptions(t.section, u, B, _), c.set(x, U);
3640
+ await t.actions.loadFieldOptions(t.section, u, B, _), c.set(q, K);
3640
3641
  } catch (ie) {
3641
3642
  console.error("[GlobalInfoTableRenderer] load field options failed", ie);
3642
3643
  }
@@ -3645,16 +3646,16 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3645
3646
  const _ = y ? [y] : t.section.rows;
3646
3647
  for (const B of _) {
3647
3648
  const E = D(B);
3648
- for (const x of a.value) {
3649
- if (u && !Vn(x, u)) continue;
3650
- const U = B[x.code];
3651
- if (!j(x, U)) continue;
3652
- const G = ot(t.section.key, x, B, E), Z = `${E}:${T(x)}`, ie = c.get(Z);
3653
- if (rt(x, ie, G)) {
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)) {
3654
3655
  c.set(Z, G);
3655
3656
  continue;
3656
3657
  }
3657
- ie !== G && await R(x, B, An(x, U));
3658
+ ie !== G && await R(q, B, An(q, K));
3658
3659
  }
3659
3660
  }
3660
3661
  }
@@ -3703,15 +3704,15 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3703
3704
  function ne(u) {
3704
3705
  return Et(u);
3705
3706
  }
3706
- let q = 0;
3707
+ let x = 0;
3707
3708
  const N = /* @__PURE__ */ new WeakMap();
3708
3709
  function D(u) {
3709
3710
  const y = u.__rowKey ?? u.key ?? u.id ?? u.setId ?? u.infSetId;
3710
3711
  if (y != null && y !== "") return String(y);
3711
3712
  const _ = u, B = N.get(_);
3712
3713
  if (B) return B;
3713
- q += 1;
3714
- const E = `local-${q}`;
3714
+ x += 1;
3715
+ const E = `local-${x}`;
3715
3716
  return N.set(_, E), E;
3716
3717
  }
3717
3718
  function F(u) {
@@ -3729,12 +3730,12 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3729
3730
  },
3730
3731
  { immediate: !0 }
3731
3732
  ), (u, y) => {
3732
- const _ = en, B = Hn("Delete"), E = Yt, x = It, U = Xt;
3733
- return $(), Y("div", {
3734
- class: He(["global-info-table-renderer", { "global-info-table-renderer--editing": u.editing }])
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 }])
3735
3736
  }, [
3736
3737
  ee("div", va, [
3737
- we(U, {
3738
+ we(K, {
3738
3739
  class: "global-info-table-renderer__table",
3739
3740
  data: u.section.rows,
3740
3741
  fit: !0,
@@ -3749,7 +3750,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3749
3750
  width: s.value,
3750
3751
  index: z
3751
3752
  }, null, 8, ["label", "width"])) : fe("", !0),
3752
- ($(!0), Y(Se, null, ye(a.value, (G) => ($(), H(_, {
3753
+ ($(!0), U(Se, null, ye(a.value, (G) => ($(), H(_, {
3753
3754
  key: T(G),
3754
3755
  prop: G.code,
3755
3756
  label: G.label,
@@ -3758,7 +3759,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3758
3759
  }, {
3759
3760
  header: J(() => [
3760
3761
  ee("span", ha, [
3761
- F(G) ? ($(), Y("span", ga, "*")) : fe("", !0),
3762
+ F(G) ? ($(), U("span", ga, "*")) : fe("", !0),
3762
3763
  ee("span", null, me(G.label), 1)
3763
3764
  ])
3764
3765
  ]),
@@ -3798,7 +3799,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3798
3799
  onConfirm: (ie) => w(Z)
3799
3800
  }, {
3800
3801
  default: J(() => [
3801
- we(x, {
3802
+ we(q, {
3802
3803
  class: "global-info-table-renderer__delete",
3803
3804
  link: "",
3804
3805
  type: "danger"
@@ -3810,7 +3811,7 @@ const ua = { class: "global-info-form-renderer__label" }, da = {
3810
3811
  ]),
3811
3812
  _: 1
3812
3813
  }),
3813
- y[0] || (y[0] = Ye(" 删除 "))
3814
+ y[0] || (y[0] = Ue(" 删除 "))
3814
3815
  ]),
3815
3816
  _: 1
3816
3817
  })
@@ -3886,7 +3887,7 @@ const wa = /* @__PURE__ */ de({
3886
3887
  renderConfig: {}
3887
3888
  },
3888
3889
  setup(e) {
3889
- const t = e, n = Ee(), o = L(() => lt(
3890
+ const t = e, n = Ee(), o = L(() => ut(
3890
3891
  t.section.fields,
3891
3892
  t.section,
3892
3893
  t.renderConfig,
@@ -3989,7 +3990,7 @@ const wa = /* @__PURE__ */ de({
3989
3990
  setup(e) {
3990
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(() => {
3991
3992
  const b = a.value;
3992
- return b ? lt(b.fields, b, t.renderConfig, {
3993
+ return b ? ut(b.fields, b, t.renderConfig, {
3993
3994
  values: b.model,
3994
3995
  rows: b.renderType === "table" ? b.rows : void 0
3995
3996
  }) : [];
@@ -4070,23 +4071,23 @@ const wa = /* @__PURE__ */ de({
4070
4071
  }
4071
4072
  ), (b, O) => {
4072
4073
  const T = It;
4073
- return $(), Y("section", _a, [
4074
- s.value ? fe("", !0) : ($(), Y("header", $a, [
4074
+ return $(), U("section", _a, [
4075
+ s.value ? fe("", !0) : ($(), U("header", $a, [
4075
4076
  X(b.$slots, "header", Me(Fe(S.value)), () => [
4076
4077
  ee("div", Ca, [
4077
4078
  O[0] || (O[0] = ee("span", { class: "global-info-section-block__marker" }, null, -1)),
4078
4079
  ee("h3", ka, me(g.value), 1)
4079
4080
  ]),
4080
4081
  X(b.$slots, "actions", Me(Fe(S.value)), () => [
4081
- a.value ? ($(), Y("div", Ma, [
4082
- w.value ? ($(), Y(Se, { key: 1 }, [
4082
+ a.value ? ($(), U("div", Ma, [
4083
+ w.value ? ($(), U(Se, { key: 1 }, [
4083
4084
  we(T, {
4084
4085
  class: "global-info-section-block__cancel",
4085
4086
  disabled: l.value.saving,
4086
4087
  onClick: v
4087
4088
  }, {
4088
4089
  default: J(() => O[2] || (O[2] = [
4089
- Ye(" 取消 ")
4090
+ Ue(" 取消 ")
4090
4091
  ])),
4091
4092
  _: 1
4092
4093
  }, 8, ["disabled"]),
@@ -4097,7 +4098,7 @@ const wa = /* @__PURE__ */ de({
4097
4098
  onClick: m
4098
4099
  }, {
4099
4100
  default: J(() => O[3] || (O[3] = [
4100
- Ye(" 新增 ")
4101
+ Ue(" 新增 ")
4101
4102
  ])),
4102
4103
  _: 1
4103
4104
  }, 8, ["disabled"])) : fe("", !0),
@@ -4107,7 +4108,7 @@ const wa = /* @__PURE__ */ de({
4107
4108
  onClick: M
4108
4109
  }, {
4109
4110
  default: J(() => [
4110
- Ye(me(I.value ? "确认" : "保存"), 1)
4111
+ Ue(me(I.value ? "确认" : "保存"), 1)
4111
4112
  ]),
4112
4113
  _: 1
4113
4114
  }, 8, ["loading"])
@@ -4164,8 +4165,8 @@ const wa = /* @__PURE__ */ de({
4164
4165
  }, je({ _: 2 }, [
4165
4166
  ye(se(n), (z, ne) => ({
4166
4167
  name: ne,
4167
- fn: J((q) => [
4168
- X(b.$slots, ne, Me(Fe({ ...S.value, ...q })), void 0, !0)
4168
+ fn: J((x) => [
4169
+ X(b.$slots, ne, Me(Fe({ ...S.value, ...x })), void 0, !0)
4169
4170
  ])
4170
4171
  }))
4171
4172
  ]), 1032, ["section", "node", "editing", "state", "actions", "render-config"])
@@ -4219,7 +4220,7 @@ const wa = /* @__PURE__ */ de({
4219
4220
  function a(c) {
4220
4221
  return `global-info-section-${l(c, 0)}`;
4221
4222
  }
4222
- return (c, g) => ($(), Y("section", Fa, [
4223
+ return (c, g) => ($(), U("section", Fa, [
4223
4224
  X(c.$slots, "header", {
4224
4225
  group: c.group,
4225
4226
  children: c.children,
@@ -4245,8 +4246,8 @@ const wa = /* @__PURE__ */ de({
4245
4246
  renderConfig: c.renderConfig,
4246
4247
  index: c.index,
4247
4248
  isEmpty: c.children.length === 0
4248
- }, void 0, !0) : ($(), Y(Se, { key: 1 }, [
4249
- ($(!0), Y(Se, null, ye(c.children, (w, I) => ($(), Y("div", {
4249
+ }, void 0, !0) : ($(), U(Se, { key: 1 }, [
4250
+ ($(!0), U(Se, null, ye(c.children, (w, I) => ($(), U("div", {
4250
4251
  id: a(w),
4251
4252
  key: l(w, I),
4252
4253
  class: "global-info-group__section"
@@ -4340,8 +4341,8 @@ const wa = /* @__PURE__ */ de({
4340
4341
  children: I
4341
4342
  }));
4342
4343
  }
4343
- return (g, w) => ($(), Y("div", ja, [
4344
- ($(!0), Y(Se, null, ye(o.value, (I, V) => ($(), Y(Se, {
4344
+ return (g, w) => ($(), U("div", ja, [
4345
+ ($(!0), U(Se, null, ye(o.value, (I, V) => ($(), U(Se, {
4345
4346
  key: l(I.group, V)
4346
4347
  }, [
4347
4348
  s(I.group) ? X(g.$slots, s(I.group), {
@@ -4397,7 +4398,7 @@ export {
4397
4398
  ba as GlobalInfoTableRenderer,
4398
4399
  Tt as JtAttachmentPreview,
4399
4400
  Za as JtAttachmentPreviewByParams,
4400
- tt as JtButton,
4401
+ ot as JtButton,
4401
4402
  fo as JtCascader,
4402
4403
  Ga as JtCrudTable,
4403
4404
  mo as JtDatePicker,