@jt-home/mfe-components 1.0.40 → 1.0.41

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,6 +1,6 @@
1
1
  import './style.css';
2
- import { t as Z, J as Dt, i as Un } from "./index-C6AyqKhk.js";
3
- import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-C6AyqKhk.js";
2
+ import { t as Z, J as Dt, i as Un } from "./index-moF0d2Ee.js";
3
+ import { a as ms, g as vs, n as hs, r as gs, s as ys, b as bs } from "./index-moF0d2Ee.js";
4
4
  import { defineComponent as pe, useAttrs as Hn, computed as O, openBlock as $, 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 J, 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";
@@ -56,17 +56,17 @@ const vo = /* @__PURE__ */ pe({
56
56
  },
57
57
  setup(e) {
58
58
  const t = e, n = Hn(), o = O(() => {
59
- const { icon: c, ...a } = t;
59
+ const { icon: c, ...r } = t;
60
60
  return {
61
61
  ...sn(n),
62
- ...a
62
+ ...r
63
63
  };
64
64
  }), l = O(() => an(n));
65
- return (c, a) => {
66
- const r = Jt, s = $t;
65
+ return (c, r) => {
66
+ const a = Jt, s = $t;
67
67
  return $(), H(s, ae({ class: "jt-button" }, o.value, et(l.value)), {
68
68
  default: U(() => [
69
- c.$slots.icon ? ($(), H(r, {
69
+ c.$slots.icon ? ($(), H(a, {
70
70
  key: 0,
71
71
  class: "jt-button__icon"
72
72
  }, {
@@ -74,7 +74,7 @@ const vo = /* @__PURE__ */ pe({
74
74
  te(c.$slots, "icon", {}, void 0, !0)
75
75
  ]),
76
76
  _: 3
77
- })) : t.icon ? ($(), H(r, {
77
+ })) : t.icon ? ($(), H(a, {
78
78
  key: 1,
79
79
  class: "jt-button__icon"
80
80
  }, {
@@ -94,10 +94,9 @@ const vo = /* @__PURE__ */ pe({
94
94
  for (const [o, l] of t)
95
95
  n[o] = l;
96
96
  return n;
97
- }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-fde6491e"]]), ho = {
97
+ }, rt = /* @__PURE__ */ be(vo, [["__scopeId", "data-v-28dbb12d"]]), ho = {
98
98
  // 默认值只补组件缺省体验,显式传入的 false、null 和空字符串仍由归一化逻辑保留。
99
99
  options: () => [],
100
- placeholder: Z("common.请选择"),
101
100
  clearable: !0,
102
101
  persistent: !0
103
102
  };
@@ -170,41 +169,41 @@ const yo = /* @__PURE__ */ pe({
170
169
  { deep: !0 }
171
170
  );
172
171
  const c = t;
173
- function a(f, ..._) {
172
+ function r(f, ..._) {
174
173
  c(f, ..._);
175
174
  }
176
- function r(f) {
177
- l.value = f, a("update:modelValue", f);
175
+ function a(f) {
176
+ l.value = f, r("update:modelValue", f);
178
177
  }
179
178
  function s(f) {
180
- a("change", f);
179
+ r("change", f);
181
180
  }
182
181
  function i(f) {
183
- a("focus", f);
182
+ r("focus", f);
184
183
  }
185
- function h(f) {
186
- a("blur", f);
184
+ function v(f) {
185
+ r("blur", f);
187
186
  }
188
187
  function S() {
189
- a("clear");
188
+ r("clear");
190
189
  }
191
190
  function I(f) {
192
- a("visibleChange", f);
191
+ r("visibleChange", f);
193
192
  }
194
193
  function L(f) {
195
- a("expandChange", f);
194
+ r("expandChange", f);
196
195
  }
197
196
  function V(f) {
198
- a("removeTag", f);
197
+ r("removeTag", f);
199
198
  }
200
199
  return (f, _) => {
201
200
  const M = no;
202
201
  return $(), H(M, ae({ class: "jt-cascader" }, o.value, {
203
202
  "model-value": l.value,
204
- "onUpdate:modelValue": r,
203
+ "onUpdate:modelValue": a,
205
204
  onChange: s,
206
205
  onFocus: i,
207
- onBlur: h,
206
+ onBlur: v,
208
207
  onClear: S,
209
208
  onVisibleChange: I,
210
209
  onExpandChange: L,
@@ -254,7 +253,7 @@ const yo = /* @__PURE__ */ pe({
254
253
  size: {},
255
254
  readonly: { type: Boolean },
256
255
  disabled: { type: Boolean },
257
- placeholder: { default: Z("common.请选择日期") },
256
+ placeholder: {},
258
257
  popperOptions: {},
259
258
  modelValue: {},
260
259
  rangeSeparator: {},
@@ -267,18 +266,20 @@ const yo = /* @__PURE__ */ pe({
267
266
  },
268
267
  setup(e) {
269
268
  const t = e, n = O(() => {
270
- const { preservePlaceholderWhenDisabled: a, ...r } = t, s = l(
269
+ const { preservePlaceholderWhenDisabled: r, ...a } = t, s = l(
271
270
  "jt-date-picker-popper",
272
- r.popperClass
271
+ a.popperClass
273
272
  ), i = {
274
- ...r,
273
+ ...a,
275
274
  popperClass: s,
275
+ // 默认日期 placeholder 依赖当前语言,放在 computed 中保证切换语言后重新计算。
276
+ placeholder: t.placeholder ?? Z("common.请选择日期"),
276
277
  startPlaceholder: t.startPlaceholder ?? (o(t.type) ? Z("common.开始日期") : void 0),
277
278
  endPlaceholder: t.endPlaceholder ?? (o(t.type) ? Z("common.结束日期") : void 0)
278
279
  };
279
- if (t.disabled && !a) {
280
+ if (t.disabled && !r) {
280
281
  const {
281
- placeholder: h,
282
+ placeholder: v,
282
283
  startPlaceholder: S,
283
284
  endPlaceholder: I,
284
285
  ...L
@@ -287,24 +288,24 @@ const yo = /* @__PURE__ */ pe({
287
288
  }
288
289
  return i;
289
290
  });
290
- function o(a) {
291
- return a?.includes("range") ?? !1;
291
+ function o(r) {
292
+ return r?.includes("range") ?? !1;
292
293
  }
293
- function l(a, r) {
294
- const s = Array.isArray(r) ? r.flatMap((i) => c(i)) : c(r);
295
- return [a, ...s].filter(Boolean).join(" ");
294
+ function l(r, a) {
295
+ const s = Array.isArray(a) ? a.flatMap((i) => c(i)) : c(a);
296
+ return [r, ...s].filter(Boolean).join(" ");
296
297
  }
297
- function c(a) {
298
- return a ? typeof a == "string" ? [a] : Array.isArray(a) ? a.flatMap((r) => c(r)) : typeof a == "object" ? Object.entries(a).filter(([, r]) => !!r).map(([r]) => r) : [] : [];
298
+ function c(r) {
299
+ return r ? typeof r == "string" ? [r] : Array.isArray(r) ? r.flatMap((a) => c(a)) : typeof r == "object" ? Object.entries(r).filter(([, a]) => !!a).map(([a]) => a) : [] : [];
299
300
  }
300
- return (a, r) => {
301
+ return (r, a) => {
301
302
  const s = Wt;
302
303
  return $(), H(s, ae({ class: "jt-date-picker" }, n.value, {
303
- "onUpdate:modelValue": r[0] || (r[0] = (i) => a.$emit("update:modelValue", i))
304
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => r.$emit("update:modelValue", i))
304
305
  }), null, 16);
305
306
  };
306
307
  }
307
- }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-dcb1a539"]]), _o = /* @__PURE__ */ pe({
308
+ }), So = /* @__PURE__ */ be(bo, [["__scopeId", "data-v-32c2dc63"]]), _o = /* @__PURE__ */ pe({
308
309
  name: "JtInput",
309
310
  __name: "index",
310
311
  props: {
@@ -321,7 +322,7 @@ const yo = /* @__PURE__ */ pe({
321
322
  autocomplete: {},
322
323
  formatter: {},
323
324
  parser: {},
324
- placeholder: { default: Z("common.请输入") },
325
+ placeholder: {},
325
326
  form: {},
326
327
  readonly: { type: Boolean },
327
328
  clearable: { type: Boolean, default: !0 },
@@ -349,24 +350,28 @@ const yo = /* @__PURE__ */ pe({
349
350
  },
350
351
  setup(e, { emit: t }) {
351
352
  const n = e, o = O(() => {
352
- const { preservePlaceholderWhenDisabled: a, ...r } = n;
353
- if (!n.disabled || a) return r;
354
- const { placeholder: s, ...i } = r;
355
- return i;
353
+ const { preservePlaceholderWhenDisabled: r, placeholder: a, ...s } = n, i = {
354
+ ...s,
355
+ // 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
356
+ placeholder: a ?? Z("common.请输入")
357
+ };
358
+ return !n.disabled || r ? i : Object.fromEntries(
359
+ Object.entries(i).filter(([v]) => v !== "placeholder")
360
+ );
356
361
  }), l = t, c = O(() => Object.fromEntries(
357
- Object.keys(Bt).map((a) => [
358
- a,
359
- (...r) => l(a, ...r)
362
+ Object.keys(Bt).map((r) => [
363
+ r,
364
+ (...a) => l(r, ...a)
360
365
  ])
361
366
  ));
362
- return (a, r) => {
367
+ return (r, a) => {
363
368
  const s = Zt;
364
369
  return $(), H(s, ae({ class: "jt-input" }, o.value, et(c.value), {
365
- onKeyup: r[0] || (r[0] = Wn((i) => l("enter"), ["enter"]))
370
+ onKeyup: a[0] || (a[0] = Wn((i) => l("enter"), ["enter"]))
366
371
  }), null, 16);
367
372
  };
368
373
  }
369
- }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-9467a9b9"]]), wo = /* @__PURE__ */ pe({
374
+ }), ht = /* @__PURE__ */ be(_o, [["__scopeId", "data-v-14966118"]]), wo = /* @__PURE__ */ pe({
370
375
  name: "JtSelect",
371
376
  __name: "index",
372
377
  props: {
@@ -399,7 +404,7 @@ const yo = /* @__PURE__ */ pe({
399
404
  filterMethod: {},
400
405
  multiple: { type: Boolean },
401
406
  multipleLimit: {},
402
- placeholder: { default: Z("common.请选择") },
407
+ placeholder: {},
403
408
  defaultFirstOption: { type: Boolean },
404
409
  reserveKeyword: { type: Boolean },
405
410
  valueKey: {},
@@ -427,29 +432,30 @@ const yo = /* @__PURE__ */ pe({
427
432
  emits: Et,
428
433
  setup(e, { emit: t }) {
429
434
  const n = e, o = O(() => {
430
- const { options: r, placeholder: s, preservePlaceholderWhenDisabled: i, ...h } = n, S = l("jt-select-popper", h.popperClass), I = {
431
- ...h,
435
+ const { options: a, placeholder: s, preservePlaceholderWhenDisabled: i, ...v } = n, S = l("jt-select-popper", v.popperClass), I = {
436
+ ...v,
432
437
  popperClass: S
433
438
  };
434
439
  return n.disabled && !i ? I : {
435
440
  ...I,
436
- placeholder: s
441
+ // 未显式配置 placeholder 时,每次渲染按当前语言重新读取默认文案。
442
+ placeholder: s ?? Z("common.请选择")
437
443
  };
438
444
  });
439
- function l(r, s) {
440
- return [r, s].flat().filter(Boolean).join(" ");
445
+ function l(a, s) {
446
+ return [a, s].flat().filter(Boolean).join(" ");
441
447
  }
442
- const c = t, a = O(() => Object.fromEntries(
443
- Object.keys(Et).map((r) => [
444
- r,
445
- (...s) => c(r, ...s)
448
+ const c = t, r = O(() => Object.fromEntries(
449
+ Object.keys(Et).map((a) => [
450
+ a,
451
+ (...s) => c(a, ...s)
446
452
  ])
447
453
  ));
448
- return (r, s) => {
449
- const i = Xt, h = Qt;
450
- return $(), H(h, ae({ class: "jt-select" }, o.value, et(a.value)), {
454
+ return (a, s) => {
455
+ const i = Xt, v = Qt;
456
+ return $(), H(v, ae({ class: "jt-select" }, o.value, et(r.value)), {
451
457
  default: U(() => [
452
- ($(!0), G(Se, null, ye(r.options ?? [], (S) => ($(), H(i, ae({
458
+ ($(!0), G(Se, null, ye(a.options ?? [], (S) => ($(), H(i, ae({
453
459
  key: S.value,
454
460
  ref_for: !0
455
461
  }, S), null, 16))), 128))
@@ -458,7 +464,7 @@ const yo = /* @__PURE__ */ pe({
458
464
  }, 16);
459
465
  };
460
466
  }
461
- }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-6cfa7fbd"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
467
+ }), Io = /* @__PURE__ */ be(wo, [["__scopeId", "data-v-adab2b3a"]]), $o = { class: "jt-form-items" }, gt = 4, Co = /* @__PURE__ */ pe({
462
468
  name: "JTFormItems",
463
469
  __name: "JtFormItems",
464
470
  props: {
@@ -478,53 +484,53 @@ const yo = /* @__PURE__ */ pe({
478
484
  daterange: "date-picker",
479
485
  "date-range": "date-picker",
480
486
  dateRange: "date-picker"
481
- }, l = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), a = /* @__PURE__ */ new Map(), r = O(() => t.configs.filter((g) => g.show !== !1)), s = (g) => {
482
- const { itemType: v } = g;
483
- if (!v) return ht;
484
- if (typeof v != "string") return v;
485
- const F = o[v] ?? v;
487
+ }, l = /* @__PURE__ */ new Set(["prop", "label", "itemType", "span", "options", "rules", "formItemProps", "showSlot", "show"]), c = Object.keys(n), r = /* @__PURE__ */ new Map(), a = O(() => t.configs.filter((g) => g.show !== !1)), s = (g) => {
488
+ const { itemType: h } = g;
489
+ if (!h) return ht;
490
+ if (typeof h != "string") return h;
491
+ const F = o[h] ?? h;
486
492
  return c.includes(F) ? n[F] : (console.error(
487
- `[JtFormItems] 不支持的 itemType: "${v}",支持的类型: ${c.join(", ")}`
493
+ `[JtFormItems] 不支持的 itemType: "${h}",支持的类型: ${c.join(", ")}`
488
494
  ), ht);
489
495
  }, i = (g) => {
490
- const v = sn(g, l);
496
+ const h = sn(g, l);
491
497
  return g.itemType === "select" || g.itemType === "remote-select" || g.itemType === "cascader" ? {
492
- ...v,
498
+ ...h,
493
499
  options: g.options
494
500
  } : z(g.itemType) ? {
495
- ...v,
501
+ ...h,
496
502
  type: "daterange"
497
- } : v;
498
- }, h = (g) => an(g, l), S = (g) => ({
503
+ } : h;
504
+ }, v = (g) => an(g, l), S = (g) => ({
499
505
  rules: g.rules,
500
506
  ...g.formItemProps
501
- }), I = (g, v) => {
502
- t.formData[g] = v;
507
+ }), I = (g, h) => {
508
+ t.formData[g] = h;
503
509
  };
504
510
  function L(g) {
505
- return (v) => {
506
- if (v) {
507
- a.set(g, v);
511
+ return (h) => {
512
+ if (h) {
513
+ r.set(g, h);
508
514
  return;
509
515
  }
510
- a.delete(g);
516
+ r.delete(g);
511
517
  };
512
518
  }
513
- function V(g, v) {
519
+ function V(g, h) {
514
520
  Zn(() => {
515
- a.get(g)?.validate(v).catch(() => {
521
+ r.get(g)?.validate(h).catch(() => {
516
522
  });
517
523
  });
518
524
  }
519
525
  const f = (g) => Math.min(Math.max(Math.trunc(g || 1), 1), 4), _ = O(() => {
520
- const v = r.value.reduce(
526
+ const h = a.value.reduce(
521
527
  (F, y) => F + f(t.span || y.span),
522
528
  0
523
529
  ) % gt;
524
- return v === 0 ? {
530
+ return h === 0 ? {
525
531
  gridColumn: `1 / span ${gt}`
526
532
  } : {
527
- gridColumn: `${v + 1} / span ${gt - v}`
533
+ gridColumn: `${h + 1} / span ${gt - h}`
528
534
  };
529
535
  }), M = (g) => ({
530
536
  gridColumn: `span ${f(t.span || g.span)}`
@@ -532,10 +538,10 @@ const yo = /* @__PURE__ */ pe({
532
538
  function z(g) {
533
539
  return g === "daterange" || g === "date-range" || g === "dateRange";
534
540
  }
535
- return (g, v) => {
541
+ return (g, h) => {
536
542
  const F = en;
537
543
  return $(), G("div", $o, [
538
- ($(!0), G(Se, null, ye(r.value, (y) => ($(), H(F, ae({
544
+ ($(!0), G(Se, null, ye(a.value, (y) => ($(), H(F, ae({
539
545
  key: y.prop,
540
546
  ref_for: !0,
541
547
  ref: L(y.prop),
@@ -549,7 +555,7 @@ const yo = /* @__PURE__ */ pe({
549
555
  key: 1,
550
556
  "model-value": g.formData[y.prop],
551
557
  ref_for: !0
552
- }, i(y), et(h(y)), {
558
+ }, i(y), et(v(y)), {
553
559
  "onUpdate:modelValue": (A) => I(y.prop, A),
554
560
  onChange: () => V(y.prop, "change"),
555
561
  onBlur: () => V(y.prop, "blur")
@@ -570,7 +576,7 @@ const yo = /* @__PURE__ */ pe({
570
576
  ]);
571
577
  };
572
578
  }
573
- }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-f16cba07"]]);
579
+ }), ko = /* @__PURE__ */ be(Co, [["__scopeId", "data-v-08413520"]]);
574
580
  function Mo() {
575
581
  const e = ge(!1);
576
582
  function t() {
@@ -595,7 +601,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
595
601
  },
596
602
  emits: ["update:modelValue", "search", "reset"],
597
603
  setup(e, { expose: t, emit: n }) {
598
- const o = e, l = n, c = ge(), a = Le(), r = ge({}), { searchDisabled: s, searchLoading: i, searchDone: h } = Mo(), S = O(() => o.option), I = ge(S.value.searchCollapsed ?? !0), L = O(
604
+ const o = e, l = n, c = ge(), r = Le(), a = ge({}), { searchDisabled: s, searchLoading: i, searchDone: v } = Mo(), S = O(() => o.option), I = ge(S.value.searchCollapsed ?? !0), L = O(
599
605
  () => o.columns.filter((T) => T.search === !0)
600
606
  ), V = O(
601
607
  () => Math.max(1, S.value.searchSpan ?? 4)
@@ -605,7 +611,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
605
611
  () => Math.max(1, _.value * f.value)
606
612
  ), z = O(() => V.value), g = O(
607
613
  () => j.value ? "264px" : "174px"
608
- ), v = O(
614
+ ), h = O(
609
615
  () => K(S.value.searchLabelWidth ?? 84)
610
616
  ), F = O(
611
617
  () => S.value.searchLabelPosition ?? "top"
@@ -623,7 +629,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
623
629
  return T + ue > M.value ? !1 : (T += ue, !0);
624
630
  });
625
631
  }), N = O(
626
- () => C.value.filter((T) => !!a[`${T.prop}-search`])
632
+ () => C.value.filter((T) => !!r[`${T.prop}-search`])
627
633
  ), re = O(() => {
628
634
  const T = x(C.value);
629
635
  return C.value.length > 0 && C.value.length <= 2 && T < V.value;
@@ -641,14 +647,14 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
641
647
  ), Ee(
642
648
  () => o.modelValue,
643
649
  (T) => {
644
- r.value = { ...T };
650
+ a.value = { ...T };
645
651
  },
646
652
  { deep: !0, immediate: !0 }
647
653
  );
648
654
  function B(T, X) {
649
655
  if (s.value) return;
650
- const ue = { ...r.value, [T]: X };
651
- r.value = ue, l("update:modelValue", ue);
656
+ const ue = { ...a.value, [T]: X };
657
+ a.value = ue, l("update:modelValue", ue);
652
658
  }
653
659
  function E(T) {
654
660
  const X = T.searchProps ?? {}, ue = T.searchType ?? "input";
@@ -659,7 +665,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
659
665
  span: P(T),
660
666
  itemType: ue,
661
667
  // 外部提供 `${prop}-search` 时交给插槽渲染,保持旧版 JtFilterBar 的自定义能力。
662
- showSlot: !!a[`${T.prop}-search`],
668
+ showSlot: !!r[`${T.prop}-search`],
663
669
  options: X.options ?? T.searchOptions ?? T.dicData,
664
670
  placeholder: X.placeholder ?? T.searchPlaceholder,
665
671
  valueFormat: X.valueFormat ?? T.searchValueFormat,
@@ -726,7 +732,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
726
732
  /** 开启筛选表单禁用。 */
727
733
  searchLoading: i,
728
734
  /** 关闭筛选表单禁用。 */
729
- searchDone: h
735
+ searchDone: v
730
736
  }), (T, X) => {
731
737
  const ue = tn;
732
738
  return $(), G("div", {
@@ -739,7 +745,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
739
745
  "--jt-filter-field-columns": z.value,
740
746
  "--jt-filter-btns-width": g.value,
741
747
  "--jt-filter-actions-start": le.value,
742
- "--jt-filter-label-width": v.value,
748
+ "--jt-filter-label-width": h.value,
743
749
  "--jt-filter-column-gap": `${y.value}px`,
744
750
  "--jt-filter-row-gap": `${A.value}px`,
745
751
  "--jt-filter-padding": b.value
@@ -749,9 +755,9 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
749
755
  ref_key: "formRef",
750
756
  ref: c,
751
757
  class: "jt-filter-bar__form",
752
- model: r.value,
758
+ model: a.value,
753
759
  "label-position": F.value,
754
- "label-width": v.value,
760
+ "label-width": h.value,
755
761
  disabled: J(s),
756
762
  onSubmit: X[0] || (X[0] = Ut(() => {
757
763
  }, ["prevent"]))
@@ -759,7 +765,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
759
765
  default: U(() => [
760
766
  Ie(J(ko), {
761
767
  configs: R.value,
762
- "form-data": r.value,
768
+ "form-data": a.value,
763
769
  style: { "--jt-form-label-gap": "6px", "--jt-form-column-gap": "16px", "--jt-form-row-gap": "10px" }
764
770
  }, Re({
765
771
  actions: U(() => [
@@ -833,7 +839,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
833
839
  name: de.prop,
834
840
  fn: U(() => [
835
841
  te(T.$slots, `${de.prop}-search`, {
836
- value: r.value[de.prop],
842
+ value: a.value[de.prop],
837
843
  column: de,
838
844
  setValue: (me) => B(de.prop, me),
839
845
  search: u,
@@ -849,7 +855,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
849
855
  ], 6);
850
856
  };
851
857
  }
852
- }), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-233ce306"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, zo = /* @__PURE__ */ pe({
858
+ }), Vo = /* @__PURE__ */ be(Po, [["__scopeId", "data-v-9c4fccf9"]]), jo = { key: 1 }, Ao = { key: 2 }, Ro = { key: 3 }, zo = /* @__PURE__ */ pe({
853
859
  name: "JtTable",
854
860
  __name: "JtTable",
855
861
  props: {
@@ -859,14 +865,14 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
859
865
  tableEvents: {}
860
866
  },
861
867
  setup(e, { expose: t }) {
862
- const n = e, o = Le(), l = ge(), c = O(() => n.option ?? {}), a = O(() => n.columns.filter((f) => !f.hide)), r = O(() => c.value.menuFixed ?? "right");
868
+ const n = e, o = Le(), l = ge(), c = O(() => n.option ?? {}), r = O(() => n.columns.filter((f) => !f.hide)), a = O(() => c.value.menuFixed ?? "right");
863
869
  function s(f) {
864
870
  return !!o[`${f}-header`];
865
871
  }
866
872
  function i(f) {
867
873
  return !!o[`${f}-data`];
868
874
  }
869
- function h(f) {
875
+ function v(f) {
870
876
  return {
871
877
  width: f.width,
872
878
  minWidth: f.minWidth,
@@ -913,32 +919,32 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
913
919
  width: "60",
914
920
  align: "center"
915
921
  }, null, 8, ["label"])) : fe("", !0),
916
- ($(!0), G(Se, null, ye(a.value, (g) => ($(), H(M, ae({
922
+ ($(!0), G(Se, null, ye(r.value, (g) => ($(), H(M, ae({
917
923
  key: g.prop,
918
924
  prop: g.prop,
919
925
  label: g.label,
920
926
  formatter: !i(g.prop) && !g.dicData ? g.formatter : void 0,
921
927
  ref_for: !0
922
- }, h(g)), Re({ _: 2 }, [
928
+ }, v(g)), Re({ _: 2 }, [
923
929
  s(g.prop) ? {
924
930
  name: "header",
925
- fn: U((v) => [
926
- te(f.$slots, `${g.prop}-header`, ae({ ref_for: !0 }, v), void 0, !0)
931
+ fn: U((h) => [
932
+ te(f.$slots, `${g.prop}-header`, ae({ ref_for: !0 }, h), void 0, !0)
927
933
  ]),
928
934
  key: "0"
929
935
  } : void 0,
930
936
  I(g) ? {
931
937
  name: "default",
932
- fn: U((v) => [
938
+ fn: U((h) => [
933
939
  i(g.prop) ? te(f.$slots, `${g.prop}-data`, ae({
934
940
  key: 0,
935
941
  ref_for: !0
936
- }, v), void 0, !0) : g.dicData ? ($(), G("span", jo, oe(V(g.dicData, v.row[g.prop])), 1)) : g.formatter ? ($(), G("span", Ao, oe(g.formatter(
937
- v.row,
938
- v.column,
939
- v.row[g.prop],
940
- v.$index
941
- )), 1)) : ($(), G("span", Ro, oe(v.row[g.prop]), 1))
942
+ }, h), void 0, !0) : g.dicData ? ($(), G("span", jo, oe(V(g.dicData, h.row[g.prop])), 1)) : g.formatter ? ($(), G("span", Ao, oe(g.formatter(
943
+ h.row,
944
+ h.column,
945
+ h.row[g.prop],
946
+ h.$index
947
+ )), 1)) : ($(), G("span", Ro, oe(h.row[g.prop]), 1))
942
948
  ]),
943
949
  key: "1"
944
950
  } : void 0
@@ -949,7 +955,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
949
955
  width: c.value.menuWidth,
950
956
  "min-width": c.value.menuMinWidth,
951
957
  align: c.value.menuAlign ?? "center",
952
- fixed: r.value
958
+ fixed: a.value
953
959
  }, {
954
960
  default: U((g) => [
955
961
  te(f.$slots, "menu", Oe(Be(g)), void 0, !0)
@@ -961,7 +967,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
961
967
  }, 16, ["data", "row-key", "empty-text"]);
962
968
  };
963
969
  }
964
- }), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-ca9bbaae"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
970
+ }), No = /* @__PURE__ */ be(zo, [["__scopeId", "data-v-cc0e0da1"]]), xo = { class: "jt-pagination" }, qo = { class: "jt-pagination__count" }, Go = /* @__PURE__ */ pe({
965
971
  name: "JtPagination",
966
972
  __name: "JtPagination",
967
973
  props: {
@@ -973,28 +979,28 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
973
979
  emits: ["update:currentPage", "update:pageSize", "current-change", "page-change", "size-change"],
974
980
  setup(e, { emit: t }) {
975
981
  const n = e, o = O(() => n.option ?? {}), l = t;
976
- function c(a) {
977
- l("current-change", a), l("page-change", a);
982
+ function c(r) {
983
+ l("current-change", r), l("page-change", r);
978
984
  }
979
- return (a, r) => {
985
+ return (r, a) => {
980
986
  const s = oo;
981
987
  return $(), G("div", xo, [
982
988
  Ie(s, {
983
- "current-page": a.currentPage,
984
- "page-size": a.pageSize,
989
+ "current-page": r.currentPage,
990
+ "page-size": r.pageSize,
985
991
  "page-sizes": o.value.pageSizes ?? [10, 20, 50, 100],
986
- total: a.total,
992
+ total: r.total,
987
993
  layout: o.value.paginationLayout ?? "sizes, prev, pager, next, jumper",
988
- "onUpdate:currentPage": r[0] || (r[0] = (i) => a.$emit("update:currentPage", i)),
989
- "onUpdate:pageSize": r[1] || (r[1] = (i) => a.$emit("update:pageSize", i)),
994
+ "onUpdate:currentPage": a[0] || (a[0] = (i) => r.$emit("update:currentPage", i)),
995
+ "onUpdate:pageSize": a[1] || (a[1] = (i) => r.$emit("update:pageSize", i)),
990
996
  onCurrentChange: c,
991
- onSizeChange: r[2] || (r[2] = (i) => a.$emit("size-change", i))
997
+ onSizeChange: a[2] || (a[2] = (i) => r.$emit("size-change", i))
992
998
  }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout"]),
993
- ne("span", qo, oe(J(Z)("common.共")) + oe(a.total) + oe(J(Z)("common.条记录")), 1)
999
+ ne("span", qo, oe(J(Z)("common.共")) + oe(r.total) + oe(J(Z)("common.条记录")), 1)
994
1000
  ]);
995
1001
  };
996
1002
  }
997
- }), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-37c16fce"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
1003
+ }), Ko = /* @__PURE__ */ be(Go, [["__scopeId", "data-v-8f04a5d2"]]), Yo = { class: "jt-crud-table" }, Uo = { class: "filter-bar-box" }, Ho = { class: "jt-crud-table__result" }, Jo = { class: "jt-crud-table__table-group" }, Wo = {
998
1004
  key: 0,
999
1005
  class: "jt-crud-table__toolbar"
1000
1006
  }, Zo = /* @__PURE__ */ pe({
@@ -1018,7 +1024,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1018
1024
  }),
1019
1025
  emits: /* @__PURE__ */ Ft(["search", "reset", "page-change", "size-change"], ["update:currentPage", "update:pageSize", "update:searchModel"]),
1020
1026
  setup(e, { expose: t, emit: n }) {
1021
- const o = e, l = n, c = vt(e, "currentPage"), a = vt(e, "pageSize"), r = vt(e, "searchModel"), s = Le(), i = ge(), h = ge(), S = O(() => o.option), I = O(() => S.value.searchShow !== !1), L = O(
1027
+ const o = e, l = n, c = vt(e, "currentPage"), r = vt(e, "pageSize"), a = vt(e, "searchModel"), s = Le(), i = ge(), v = ge(), S = O(() => o.option), I = O(() => S.value.searchShow !== !1), L = O(
1022
1028
  () => S.value.paginationShow !== !1
1023
1029
  ), V = O(
1024
1030
  () => o.columns.filter((y) => y.search && !!s[`${y.prop}-search`])
@@ -1034,24 +1040,24 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1034
1040
  }), y;
1035
1041
  }
1036
1042
  function z() {
1037
- l("search", { ...r.value });
1043
+ l("search", { ...a.value });
1038
1044
  }
1039
1045
  function g() {
1040
- r.value = M(), l("reset");
1046
+ a.value = M(), l("reset");
1041
1047
  }
1042
- function v() {
1043
- h.value?.searchLoading();
1048
+ function h() {
1049
+ v.value?.searchLoading();
1044
1050
  }
1045
1051
  function F() {
1046
- h.value?.searchDone();
1052
+ v.value?.searchDone();
1047
1053
  }
1048
1054
  return t({
1049
1055
  /** 获取内部 el-table 实例 */
1050
1056
  tableRef: O(() => i.value?.tableRef),
1051
1057
  /** 获取内部筛选条实例 */
1052
- filterBarRef: h,
1058
+ filterBarRef: v,
1053
1059
  /** 开启筛选表单禁用。 */
1054
- searchLoading: v,
1060
+ searchLoading: h,
1055
1061
  /** 关闭筛选表单禁用。 */
1056
1062
  searchDone: F
1057
1063
  }), (y, A) => {
@@ -1062,9 +1068,9 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1062
1068
  I.value ? ($(), H(Vo, {
1063
1069
  key: 0,
1064
1070
  ref_key: "filterBarRef",
1065
- ref: h,
1066
- modelValue: r.value,
1067
- "onUpdate:modelValue": A[0] || (A[0] = (j) => r.value = j),
1071
+ ref: v,
1072
+ modelValue: a.value,
1073
+ "onUpdate:modelValue": A[0] || (A[0] = (j) => a.value = j),
1068
1074
  columns: y.columns,
1069
1075
  option: S.value,
1070
1076
  onSearch: z,
@@ -1118,8 +1124,8 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1118
1124
  key: 0,
1119
1125
  "current-page": c.value,
1120
1126
  "onUpdate:currentPage": A[1] || (A[1] = (j) => c.value = j),
1121
- "page-size": a.value,
1122
- "onUpdate:pageSize": A[2] || (A[2] = (j) => a.value = j),
1127
+ "page-size": r.value,
1128
+ "onUpdate:pageSize": A[2] || (A[2] = (j) => r.value = j),
1123
1129
  total: y.total,
1124
1130
  option: S.value,
1125
1131
  onPageChange: A[3] || (A[3] = (j) => y.$emit("page-change", j)),
@@ -1129,7 +1135,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1129
1135
  ]);
1130
1136
  };
1131
1137
  }
1132
- }), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-335c2682"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
1138
+ }), ss = /* @__PURE__ */ be(Zo, [["__scopeId", "data-v-3454628a"]]), Qo = { class: "jt-page-header__title" }, Xo = { key: 0 }, er = {
1133
1139
  key: 0,
1134
1140
  class: "jt-page-header__operates"
1135
1141
  }, tr = /* @__PURE__ */ pe({
@@ -1143,20 +1149,20 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1143
1149
  emits: ["operate-click"],
1144
1150
  setup(e, { emit: t }) {
1145
1151
  const n = e, o = t, l = Le(), c = O(() => n.operates.length > 0 || !!l.operates);
1146
- function a(r, s) {
1147
- r.onClick?.(r, s), o("operate-click", r, s);
1152
+ function r(a, s) {
1153
+ a.onClick?.(a, s), o("operate-click", a, s);
1148
1154
  }
1149
- return (r, s) => ($(), G("div", ae({
1150
- class: ["jt-page-header", `jt-page-header--${r.type}`]
1151
- }, r.$attrs), [
1155
+ return (a, s) => ($(), G("div", ae({
1156
+ class: ["jt-page-header", `jt-page-header--${a.type}`]
1157
+ }, a.$attrs), [
1152
1158
  ne("div", Qo, [
1153
- te(r.$slots, "title", {}, () => [
1154
- r.title ? ($(), G("span", Xo, oe(r.title), 1)) : fe("", !0)
1159
+ te(a.$slots, "title", {}, () => [
1160
+ a.title ? ($(), G("span", Xo, oe(a.title), 1)) : fe("", !0)
1155
1161
  ], !0)
1156
1162
  ]),
1157
1163
  c.value ? ($(), G("div", er, [
1158
- te(r.$slots, "operates", { operates: r.operates }, () => [
1159
- ($(!0), G(Se, null, ye(r.operates, (i) => ($(), H(J(rt), ae({
1164
+ te(a.$slots, "operates", { operates: a.operates }, () => [
1165
+ ($(!0), G(Se, null, ye(a.operates, (i) => ($(), H(J(rt), ae({
1160
1166
  key: i.key ?? i.label,
1161
1167
  ref_for: !0
1162
1168
  }, i.buttonProps, {
@@ -1167,7 +1173,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1167
1173
  text: i.text,
1168
1174
  link: i.link,
1169
1175
  icon: i.icon,
1170
- onClick: (h) => a(i, h)
1176
+ onClick: (v) => r(i, v)
1171
1177
  }), {
1172
1178
  default: U(() => [
1173
1179
  ne("span", null, oe(i.label), 1)
@@ -1178,7 +1184,7 @@ const To = "data:image/svg+xml,%3csvg%20width='14'%20height='14'%20viewBox='0%20
1178
1184
  ])) : fe("", !0)
1179
1185
  ], 16));
1180
1186
  }
1181
- }), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-0926ebf1"]]);
1187
+ }), ls = /* @__PURE__ */ be(tr, [["__scopeId", "data-v-bbbd4ec6"]]);
1182
1188
  function nr(e, t) {
1183
1189
  t = t || (() => "default-use-once-sync");
1184
1190
  const n = /* @__PURE__ */ new Map();
@@ -1187,12 +1193,12 @@ function nr(e, t) {
1187
1193
  if (n.get(c))
1188
1194
  return n.get(c);
1189
1195
  try {
1190
- const a = e(...l).then((r) => r).catch((r) => {
1191
- throw r;
1196
+ const r = e(...l).then((a) => a).catch((a) => {
1197
+ throw a;
1192
1198
  });
1193
- return n.set(c, a), a;
1194
- } catch (a) {
1195
- throw n.set(c, null), a;
1199
+ return n.set(c, r), r;
1200
+ } catch (r) {
1201
+ throw n.set(c, null), r;
1196
1202
  }
1197
1203
  }
1198
1204
  return o.bind(e);
@@ -1201,12 +1207,12 @@ function ln(e, t) {
1201
1207
  t = t || (() => "default-use-queue-sync");
1202
1208
  const n = /* @__PURE__ */ new Map();
1203
1209
  async function o(...l) {
1204
- const c = t(...l), a = Symbol("single");
1205
- return n.set(c, a), new Promise((r, s) => {
1210
+ const c = t(...l), r = Symbol("single");
1211
+ return n.set(c, r), new Promise((a, s) => {
1206
1212
  e(...l).then((i) => {
1207
- n.get(c) === a && r(i);
1213
+ n.get(c) === r && a(i);
1208
1214
  }).catch((i) => {
1209
- n.get(c) === a && s(i);
1215
+ n.get(c) === r && s(i);
1210
1216
  });
1211
1217
  });
1212
1218
  }
@@ -1221,13 +1227,13 @@ var cn = { exports: {} };
1221
1227
  (function(n, o) {
1222
1228
  e.exports = o();
1223
1229
  })(it, function() {
1224
- var n = 1e3, o = 6e4, l = 36e5, c = "millisecond", a = "second", r = "minute", s = "hour", i = "day", h = "week", S = "month", I = "quarter", L = "year", V = "date", f = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|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, z = { 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(R) {
1230
+ var n = 1e3, o = 6e4, l = 36e5, c = "millisecond", r = "second", a = "minute", s = "hour", i = "day", v = "week", S = "month", I = "quarter", L = "year", V = "date", f = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|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, z = { 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(R) {
1225
1231
  var B = ["th", "st", "nd", "rd"], E = R % 100;
1226
1232
  return "[" + R + (B[(E - 20) % 10] || B[E] || B[0]) + "]";
1227
1233
  } }, g = function(R, B, E) {
1228
1234
  var d = String(R);
1229
1235
  return !d || d.length >= B ? R : "" + Array(B + 1 - d.length).join(E) + R;
1230
- }, v = { s: g, z: function(R) {
1236
+ }, h = { s: g, z: function(R) {
1231
1237
  var B = -R.utcOffset(), E = Math.abs(B), d = Math.floor(E / 60), u = E % 60;
1232
1238
  return (B <= 0 ? "+" : "-") + g(d, 2, "0") + ":" + g(u, 2, "0");
1233
1239
  }, m: function R(B, E) {
@@ -1237,7 +1243,7 @@ var cn = { exports: {} };
1237
1243
  }, a: function(R) {
1238
1244
  return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
1239
1245
  }, p: function(R) {
1240
- return { M: S, y: L, w: h, d: i, D: V, h: s, m: r, s: a, ms: c, Q: I }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1246
+ return { M: S, y: L, w: v, d: i, D: V, h: s, m: a, s: r, ms: c, Q: I }[R] || String(R || "").toLowerCase().replace(/s$/, "");
1241
1247
  }, u: function(R) {
1242
1248
  return R === void 0;
1243
1249
  } }, F = "en", y = {};
@@ -1261,7 +1267,7 @@ var cn = { exports: {} };
1261
1267
  if (b(R)) return R.clone();
1262
1268
  var E = typeof B == "object" ? B : {};
1263
1269
  return E.date = R, E.args = arguments, new re(E);
1264
- }, N = v;
1270
+ }, N = h;
1265
1271
  N.l = j, N.i = b, N.w = function(R, B) {
1266
1272
  return C(R, { locale: B.$L, utc: B.$u, x: B.$x, $offset: B.$offset });
1267
1273
  };
@@ -1317,7 +1323,7 @@ var cn = { exports: {} };
1317
1323
  return w ? P(1, 0) : P(31, 11);
1318
1324
  case S:
1319
1325
  return w ? P(1, q) : P(0, q + 1);
1320
- case h:
1326
+ case v:
1321
1327
  var X = this.$locale().weekStart || 0, ue = (K < X ? K + 7 : K) - X;
1322
1328
  return P(w ? Q - ue : Q + (6 - ue), q);
1323
1329
  case i:
@@ -1325,9 +1331,9 @@ var cn = { exports: {} };
1325
1331
  return x(T + "Hours", 0);
1326
1332
  case s:
1327
1333
  return x(T + "Minutes", 1);
1328
- case r:
1329
- return x(T + "Seconds", 2);
1330
1334
  case a:
1335
+ return x(T + "Seconds", 2);
1336
+ case r:
1331
1337
  return x(T + "Milliseconds", 3);
1332
1338
  default:
1333
1339
  return this.clone();
@@ -1335,7 +1341,7 @@ var cn = { exports: {} };
1335
1341
  }, B.endOf = function(E) {
1336
1342
  return this.startOf(E, !1);
1337
1343
  }, B.$set = function(E, d) {
1338
- var u, w = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[i] = D + "Date", u[V] = D + "Date", u[S] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[r] = D + "Minutes", u[a] = D + "Seconds", u[c] = D + "Milliseconds", u)[w], x = w === i ? this.$D + (d - this.$W) : d;
1344
+ var u, w = N.p(E), D = "set" + (this.$u ? "UTC" : ""), P = (u = {}, u[i] = D + "Date", u[V] = D + "Date", u[S] = D + "Month", u[L] = D + "FullYear", u[s] = D + "Hours", u[a] = D + "Minutes", u[r] = D + "Seconds", u[c] = D + "Milliseconds", u)[w], x = w === i ? this.$D + (d - this.$W) : d;
1339
1345
  if (w === S || w === L) {
1340
1346
  var K = this.clone().set(V, 1);
1341
1347
  K.$d[P](x), K.init(), this.$d = K.set(V, Math.min(this.$D, K.daysInMonth())).$d;
@@ -1355,8 +1361,8 @@ var cn = { exports: {} };
1355
1361
  if (D === S) return this.set(S, this.$M + E);
1356
1362
  if (D === L) return this.set(L, this.$y + E);
1357
1363
  if (D === i) return P(1);
1358
- if (D === h) return P(7);
1359
- var x = (u = {}, u[r] = o, u[s] = l, u[a] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1364
+ if (D === v) return P(7);
1365
+ var x = (u = {}, u[a] = o, u[s] = l, u[r] = n, u)[D] || 1, K = this.$d.getTime() + E * x;
1360
1366
  return N.w(K, this);
1361
1367
  }, B.subtract = function(E, d) {
1362
1368
  return this.add(-1 * E, d);
@@ -1442,7 +1448,7 @@ var cn = { exports: {} };
1442
1448
  case I:
1443
1449
  w = Q() / 3;
1444
1450
  break;
1445
- case h:
1451
+ case v:
1446
1452
  w = (q - K) / 6048e5;
1447
1453
  break;
1448
1454
  case i:
@@ -1451,10 +1457,10 @@ var cn = { exports: {} };
1451
1457
  case s:
1452
1458
  w = q / l;
1453
1459
  break;
1454
- case r:
1460
+ case a:
1455
1461
  w = q / o;
1456
1462
  break;
1457
- case a:
1463
+ case r:
1458
1464
  w = q / n;
1459
1465
  break;
1460
1466
  default:
@@ -1481,7 +1487,7 @@ var cn = { exports: {} };
1481
1487
  return this.$d.toUTCString();
1482
1488
  }, R;
1483
1489
  }(), le = re.prototype;
1484
- return C.prototype = le, [["$ms", c], ["$s", a], ["$m", r], ["$H", s], ["$W", i], ["$M", S], ["$y", L], ["$D", V]].forEach(function(R) {
1490
+ return C.prototype = le, [["$ms", c], ["$s", r], ["$m", a], ["$H", s], ["$W", i], ["$M", S], ["$y", L], ["$D", V]].forEach(function(R) {
1485
1491
  le[R[1]] = function(B) {
1486
1492
  return this.$g(B, R[0], R[1]);
1487
1493
  };
@@ -1499,9 +1505,9 @@ var un = { exports: {} };
1499
1505
  (function(n, o) {
1500
1506
  e.exports = o();
1501
1507
  })(it, function() {
1502
- 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, l = /\d/, c = /\d\d/, a = /\d\d?/, r = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(_) {
1508
+ 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, l = /\d/, c = /\d\d/, r = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, s = {}, i = function(_) {
1503
1509
  return (_ = +_) + (_ > 68 ? 1900 : 2e3);
1504
- }, h = function(_) {
1510
+ }, v = function(_) {
1505
1511
  return function(M) {
1506
1512
  this[_] = +M;
1507
1513
  };
@@ -1517,15 +1523,15 @@ var un = { exports: {} };
1517
1523
  }, L = function(_, M) {
1518
1524
  var z, g = s.meridiem;
1519
1525
  if (g) {
1520
- for (var v = 1; v <= 24; v += 1) if (_.indexOf(g(v, 0, M)) > -1) {
1521
- z = v > 12;
1526
+ for (var h = 1; h <= 24; h += 1) if (_.indexOf(g(h, 0, M)) > -1) {
1527
+ z = h > 12;
1522
1528
  break;
1523
1529
  }
1524
1530
  } else z = _ === (M ? "pm" : "PM");
1525
1531
  return z;
1526
- }, V = { A: [r, function(_) {
1532
+ }, V = { A: [a, function(_) {
1527
1533
  this.afternoon = L(_, !1);
1528
- }], a: [r, function(_) {
1534
+ }], a: [a, function(_) {
1529
1535
  this.afternoon = L(_, !0);
1530
1536
  }], Q: [l, function(_) {
1531
1537
  this.month = 3 * (_ - 1) + 1;
@@ -1535,22 +1541,22 @@ var un = { exports: {} };
1535
1541
  this.milliseconds = 10 * +_;
1536
1542
  }], SSS: [/\d{3}/, function(_) {
1537
1543
  this.milliseconds = +_;
1538
- }], s: [a, h("seconds")], ss: [a, h("seconds")], m: [a, h("minutes")], mm: [a, h("minutes")], H: [a, h("hours")], h: [a, h("hours")], HH: [a, h("hours")], hh: [a, h("hours")], D: [a, h("day")], DD: [c, h("day")], Do: [r, function(_) {
1544
+ }], s: [r, v("seconds")], ss: [r, v("seconds")], m: [r, v("minutes")], mm: [r, v("minutes")], H: [r, v("hours")], h: [r, v("hours")], HH: [r, v("hours")], hh: [r, v("hours")], D: [r, v("day")], DD: [c, v("day")], Do: [a, function(_) {
1539
1545
  var M = s.ordinal, z = _.match(/\d+/);
1540
1546
  if (this.day = z[0], M) for (var g = 1; g <= 31; g += 1) M(g).replace(/\[|\]/g, "") === _ && (this.day = g);
1541
- }], w: [a, h("week")], ww: [c, h("week")], M: [a, h("month")], MM: [c, h("month")], MMM: [r, function(_) {
1547
+ }], w: [r, v("week")], ww: [c, v("week")], M: [r, v("month")], MM: [c, v("month")], MMM: [a, function(_) {
1542
1548
  var M = I("months"), z = (I("monthsShort") || M.map(function(g) {
1543
1549
  return g.slice(0, 3);
1544
1550
  })).indexOf(_) + 1;
1545
1551
  if (z < 1) throw new Error();
1546
1552
  this.month = z % 12 || z;
1547
- }], MMMM: [r, function(_) {
1553
+ }], MMMM: [a, function(_) {
1548
1554
  var M = I("months").indexOf(_) + 1;
1549
1555
  if (M < 1) throw new Error();
1550
1556
  this.month = M % 12 || M;
1551
- }], Y: [/[+-]?\d+/, h("year")], YY: [c, function(_) {
1557
+ }], Y: [/[+-]?\d+/, v("year")], YY: [c, function(_) {
1552
1558
  this.year = i(_);
1553
- }], YYYY: [/\d{4}/, h("year")], Z: S, ZZ: S };
1559
+ }], YYYY: [/\d{4}/, v("year")], Z: S, ZZ: S };
1554
1560
  function f(_) {
1555
1561
  var M, z;
1556
1562
  M = _, z = s && s.formats;
@@ -1559,12 +1565,12 @@ var un = { exports: {} };
1559
1565
  return N || z[re] || n[re] || z[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(R, B, E) {
1560
1566
  return B || E.slice(1);
1561
1567
  });
1562
- })).match(o), v = g.length, F = 0; F < v; F += 1) {
1568
+ })).match(o), h = g.length, F = 0; F < h; F += 1) {
1563
1569
  var y = g[F], A = V[y], b = A && A[0], j = A && A[1];
1564
1570
  g[F] = j ? { regex: b, parser: j } : y.replace(/^\[|\]$/g, "");
1565
1571
  }
1566
1572
  return function(C) {
1567
- for (var N = {}, re = 0, le = 0; re < v; re += 1) {
1573
+ for (var N = {}, re = 0, le = 0; re < h; re += 1) {
1568
1574
  var R = g[re];
1569
1575
  if (typeof R == "string") le += R.length;
1570
1576
  else {
@@ -1583,7 +1589,7 @@ var un = { exports: {} };
1583
1589
  }
1584
1590
  return function(_, M, z) {
1585
1591
  z.p.customParseFormat = !0, _ && _.parseTwoDigitYear && (i = _.parseTwoDigitYear);
1586
- var g = M.prototype, v = g.parse;
1592
+ var g = M.prototype, h = g.parse;
1587
1593
  g.parse = function(F) {
1588
1594
  var y = F.date, A = F.utc, b = F.args;
1589
1595
  this.$u = A;
@@ -1610,7 +1616,7 @@ var un = { exports: {} };
1610
1616
  }
1611
1617
  B === R && (this.$d = /* @__PURE__ */ new Date(""));
1612
1618
  }
1613
- else v.call(this, F);
1619
+ else h.call(this, F);
1614
1620
  };
1615
1621
  };
1616
1622
  });
@@ -1623,57 +1629,57 @@ var dn = { exports: {} };
1623
1629
  e.exports = o();
1624
1630
  })(it, function() {
1625
1631
  var n = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, o = {};
1626
- return function(l, c, a) {
1627
- var r, s = function(I, L, V) {
1632
+ return function(l, c, r) {
1633
+ var a, s = function(I, L, V) {
1628
1634
  V === void 0 && (V = {});
1629
1635
  var f = new Date(I), _ = function(M, z) {
1630
1636
  z === void 0 && (z = {});
1631
- var g = z.timeZoneName || "short", v = M + "|" + g, F = o[v];
1632
- return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: g }), o[v] = F), F;
1637
+ var g = z.timeZoneName || "short", h = M + "|" + g, F = o[h];
1638
+ return F || (F = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: g }), o[h] = F), F;
1633
1639
  }(L, V);
1634
1640
  return _.formatToParts(f);
1635
1641
  }, i = function(I, L) {
1636
1642
  for (var V = s(I, L), f = [], _ = 0; _ < V.length; _ += 1) {
1637
- var M = V[_], z = M.type, g = M.value, v = n[z];
1638
- v >= 0 && (f[v] = parseInt(g, 10));
1643
+ var M = V[_], z = M.type, g = M.value, h = n[z];
1644
+ h >= 0 && (f[h] = parseInt(g, 10));
1639
1645
  }
1640
1646
  var F = f[3], y = F === 24 ? 0 : F, A = f[0] + "-" + f[1] + "-" + f[2] + " " + y + ":" + f[4] + ":" + f[5] + ":000", b = +I;
1641
- return (a.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
1642
- }, h = c.prototype;
1643
- h.tz = function(I, L) {
1644
- I === void 0 && (I = r);
1647
+ return (r.utc(A).valueOf() - (b -= b % 1e3)) / 6e4;
1648
+ }, v = c.prototype;
1649
+ v.tz = function(I, L) {
1650
+ I === void 0 && (I = a);
1645
1651
  var V, f = this.utcOffset(), _ = this.toDate(), M = _.toLocaleString("en-US", { timeZone: I }), z = Math.round((_ - new Date(M)) / 1e3 / 60), g = 15 * -Math.round(_.getTimezoneOffset() / 15) - z;
1646
1652
  if (!Number(g)) V = this.utcOffset(0, L);
1647
- else if (V = a(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), L) {
1648
- var v = V.utcOffset();
1649
- V = V.add(f - v, "minute");
1653
+ else if (V = r(M, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(g, !0), L) {
1654
+ var h = V.utcOffset();
1655
+ V = V.add(f - h, "minute");
1650
1656
  }
1651
1657
  return V.$x.$timezone = I, V;
1652
- }, h.offsetName = function(I) {
1653
- var L = this.$x.$timezone || a.tz.guess(), V = s(this.valueOf(), L, { timeZoneName: I }).find(function(f) {
1658
+ }, v.offsetName = function(I) {
1659
+ var L = this.$x.$timezone || r.tz.guess(), V = s(this.valueOf(), L, { timeZoneName: I }).find(function(f) {
1654
1660
  return f.type.toLowerCase() === "timezonename";
1655
1661
  });
1656
1662
  return V && V.value;
1657
1663
  };
1658
- var S = h.startOf;
1659
- h.startOf = function(I, L) {
1664
+ var S = v.startOf;
1665
+ v.startOf = function(I, L) {
1660
1666
  if (!this.$x || !this.$x.$timezone) return S.call(this, I, L);
1661
- var V = a(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1667
+ var V = r(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1662
1668
  return S.call(V, I, L).tz(this.$x.$timezone, !0);
1663
- }, a.tz = function(I, L, V) {
1664
- var f = V && L, _ = V || L || r, M = i(+a(), _);
1665
- if (typeof I != "string") return a(I).tz(_);
1669
+ }, r.tz = function(I, L, V) {
1670
+ var f = V && L, _ = V || L || a, M = i(+r(), _);
1671
+ if (typeof I != "string") return r(I).tz(_);
1666
1672
  var z = function(y, A, b) {
1667
1673
  var j = y - 60 * A * 1e3, C = i(j, b);
1668
1674
  if (A === C) return [j, A];
1669
1675
  var N = i(j -= 60 * (C - A) * 1e3, b);
1670
1676
  return C === N ? [j, C] : [y - 60 * Math.min(C, N) * 1e3, Math.max(C, N)];
1671
- }(a.utc(I, f).valueOf(), M, _), g = z[0], v = z[1], F = a(g).utcOffset(v);
1677
+ }(r.utc(I, f).valueOf(), M, _), g = z[0], h = z[1], F = r(g).utcOffset(h);
1672
1678
  return F.$x.$timezone = _, F;
1673
- }, a.tz.guess = function() {
1679
+ }, r.tz.guess = function() {
1674
1680
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
1675
- }, a.tz.setDefault = function(I) {
1676
- r = I;
1681
+ }, r.tz.setDefault = function(I) {
1682
+ a = I;
1677
1683
  };
1678
1684
  };
1679
1685
  });
@@ -1686,27 +1692,27 @@ var fn = { exports: {} };
1686
1692
  e.exports = o();
1687
1693
  })(it, function() {
1688
1694
  var n = "minute", o = /[+-]\d\d(?::?\d\d)?/g, l = /([+-]|\d\d)/g;
1689
- return function(c, a, r) {
1690
- var s = a.prototype;
1691
- r.utc = function(f) {
1695
+ return function(c, r, a) {
1696
+ var s = r.prototype;
1697
+ a.utc = function(f) {
1692
1698
  var _ = { date: f, utc: !0, args: arguments };
1693
- return new a(_);
1699
+ return new r(_);
1694
1700
  }, s.utc = function(f) {
1695
- var _ = r(this.toDate(), { locale: this.$L, utc: !0 });
1701
+ var _ = a(this.toDate(), { locale: this.$L, utc: !0 });
1696
1702
  return f ? _.add(this.utcOffset(), n) : _;
1697
1703
  }, s.local = function() {
1698
- return r(this.toDate(), { locale: this.$L, utc: !1 });
1704
+ return a(this.toDate(), { locale: this.$L, utc: !1 });
1699
1705
  };
1700
1706
  var i = s.parse;
1701
1707
  s.parse = function(f) {
1702
1708
  f.utc && (this.$u = !0), this.$utils().u(f.$offset) || (this.$offset = f.$offset), i.call(this, f);
1703
1709
  };
1704
- var h = s.init;
1710
+ var v = s.init;
1705
1711
  s.init = function() {
1706
1712
  if (this.$u) {
1707
1713
  var f = this.$d;
1708
1714
  this.$y = f.getUTCFullYear(), this.$M = f.getUTCMonth(), this.$D = f.getUTCDate(), this.$W = f.getUTCDay(), this.$H = f.getUTCHours(), this.$m = f.getUTCMinutes(), this.$s = f.getUTCSeconds(), this.$ms = f.getUTCMilliseconds();
1709
- } else h.call(this);
1715
+ } else v.call(this);
1710
1716
  };
1711
1717
  var S = s.utcOffset;
1712
1718
  s.utcOffset = function(f, _) {
@@ -1723,8 +1729,8 @@ var fn = { exports: {} };
1723
1729
  if (z === 0) return this.utc(_);
1724
1730
  var g = this.clone();
1725
1731
  if (_) return g.$offset = z, g.$u = !1, g;
1726
- var v = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1727
- return (g = this.local().add(z + v, n)).$offset = z, g.$x.$localOffset = v, g;
1732
+ var h = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1733
+ return (g = this.local().add(z + h, n)).$offset = z, g.$x.$localOffset = h, g;
1728
1734
  };
1729
1735
  var I = s.format;
1730
1736
  s.format = function(f) {
@@ -1742,12 +1748,12 @@ var fn = { exports: {} };
1742
1748
  };
1743
1749
  var L = s.toDate;
1744
1750
  s.toDate = function(f) {
1745
- return f === "s" && this.$offset ? r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1751
+ return f === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : L.call(this);
1746
1752
  };
1747
1753
  var V = s.diff;
1748
1754
  s.diff = function(f, _, M) {
1749
1755
  if (f && this.$u === f.$u) return V.call(this, f, _, M);
1750
- var z = this.local(), g = r(f).local();
1756
+ var z = this.local(), g = a(f).local();
1751
1757
  return V.call(z, g, _, M);
1752
1758
  };
1753
1759
  };
@@ -1936,24 +1942,24 @@ function vr(e, t, n) {
1936
1942
  if (e && typeof e == "object") {
1937
1943
  const o = e, l = hr(o, n), c = Fe(o.url);
1938
1944
  if (c) {
1939
- const r = { url: c }, s = Fe(o.name), i = Fe(o.mimeType), h = Fe(o.extension);
1940
- return s && (r.name = s), i && (r.mimeType = i), h && (r.extension = h), {
1945
+ const a = { url: c }, s = Fe(o.name), i = Fe(o.mimeType), v = Fe(o.extension);
1946
+ return s && (a.name = s), i && (a.mimeType = i), v && (a.extension = v), {
1941
1947
  key: String(t),
1942
1948
  text: l,
1943
1949
  action: {
1944
1950
  type: "direct",
1945
- options: r
1951
+ options: a
1946
1952
  }
1947
1953
  };
1948
1954
  }
1949
- const a = Fe(o.fileId);
1950
- return a ? {
1955
+ const r = Fe(o.fileId);
1956
+ return r ? {
1951
1957
  key: String(t),
1952
1958
  text: l,
1953
1959
  action: {
1954
1960
  type: "params",
1955
1961
  params: {
1956
- fileId: a
1962
+ fileId: r
1957
1963
  }
1958
1964
  }
1959
1965
  } : {
@@ -1985,20 +1991,20 @@ function gr(e) {
1985
1991
  }
1986
1992
  function yr(e, t, n, o, l) {
1987
1993
  const c = n?.hiddenRule;
1988
- return c ? o.some((a) => {
1994
+ return c ? o.some((r) => {
1989
1995
  try {
1990
- const r = a[e.code];
1996
+ const a = r[e.code];
1991
1997
  return c({
1992
1998
  field: e,
1993
1999
  section: t,
1994
- values: a,
1995
- allValues: a,
1996
- value: r,
1997
- currentValue: r,
2000
+ values: r,
2001
+ allValues: r,
2002
+ value: a,
2003
+ currentValue: a,
1998
2004
  rows: l
1999
2005
  });
2000
- } catch (r) {
2001
- return console.error("[globalInfo] hidden rule failed", r), !1;
2006
+ } catch (a) {
2007
+ return console.error("[globalInfo] hidden rule failed", a), !1;
2002
2008
  }
2003
2009
  }) : !1;
2004
2010
  }
@@ -2023,7 +2029,7 @@ function yn(e) {
2023
2029
  function Sr(e, t, n) {
2024
2030
  const o = pt(e);
2025
2031
  if (Array.isArray(t) || o) {
2026
- const l = dt(e, t).map((a) => Rt(e, a) || String(a ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2032
+ const l = dt(e, t).map((r) => Rt(e, r) || String(r ?? "").trim()).filter(Boolean), c = o ? "," : "、";
2027
2033
  return l.length > 0 ? l.join(c) : n;
2028
2034
  }
2029
2035
  return Rt(e, t) || String(t).trim() || n;
@@ -2101,8 +2107,8 @@ function Sn(e, t, n) {
2101
2107
  });
2102
2108
  }
2103
2109
  function $r(e, t = {}, n = null) {
2104
- const o = kn(e), l = Cn(o, t), c = Mr(o, t, n), a = Object.fromEntries(
2105
- c.map((r) => [r.key, r])
2110
+ const o = kn(e), l = Cn(o, t), c = Mr(o, t, n), r = Object.fromEntries(
2111
+ c.map((a) => [a.key, a])
2106
2112
  );
2107
2113
  return {
2108
2114
  scheme: l,
@@ -2112,7 +2118,7 @@ function $r(e, t = {}, n = null) {
2112
2118
  activeNode: n,
2113
2119
  activeSection: c[0] ?? null,
2114
2120
  sections: c,
2115
- sectionMap: a,
2121
+ sectionMap: r,
2116
2122
  raw: e
2117
2123
  };
2118
2124
  }
@@ -2122,14 +2128,14 @@ function Cr(e) {
2122
2128
  function kr(e, t = {}) {
2123
2129
  const n = e.renderType === "table" ? e.rows.map(
2124
2130
  (s) => _t(wt(s))
2125
- ) : [_t(wt(e.model))], o = ce(e.operationInfo), l = ce(o.editInfoSet), c = ce(l.params), a = ce(o.queryInfoSet), r = ce(a.params);
2131
+ ) : [_t(wt(e.model))], o = ce(e.operationInfo), l = ce(o.editInfoSet), c = ce(l.params), r = ce(o.queryInfoSet), a = ce(r.params);
2126
2132
  return {
2127
2133
  ...t,
2128
2134
  infSchmId: t.infSchmId ?? se(e.raw.infSchmId),
2129
2135
  emplid: t.emplid ?? se(e.raw.emplid),
2130
2136
  // 保存优先使用接口出参里的信息集挂载 tagId,其次才回退到请求节点 tagId。
2131
2137
  tagId: ee(
2132
- e.tagId || c.tagId || r.tagId || t.tagId || e.requestTagId
2138
+ e.tagId || c.tagId || a.tagId || t.tagId || e.requestTagId
2133
2139
  ),
2134
2140
  infSetId: t.infSetId ?? e.infSetId,
2135
2141
  setId: t.setId ?? e.setId,
@@ -2156,7 +2162,7 @@ function is(e) {
2156
2162
  function wn(e) {
2157
2163
  const t = Mn(e);
2158
2164
  return (Array.isArray(t) ? t : Qe(ce(t), ["options", "list", "records", "data"])).map((o) => {
2159
- const l = ce(o), c = l.fieldvalue, a = c ?? l.value ?? l.code ?? l.emplid;
2165
+ const l = ce(o), c = l.fieldvalue, r = c ?? l.value ?? l.code ?? l.emplid;
2160
2166
  return {
2161
2167
  id: l.id,
2162
2168
  code: c ?? l.value ?? l.code ?? l.emplid,
@@ -2166,7 +2172,7 @@ function wn(e) {
2166
2172
  ),
2167
2173
  labelDescr: se(l.labelDescr),
2168
2174
  name: se(l.name),
2169
- value: a,
2175
+ value: r,
2170
2176
  raw: o
2171
2177
  };
2172
2178
  });
@@ -2178,25 +2184,25 @@ function Mr(e, t, n) {
2178
2184
  ) : e.infSetMark || e.infSetFields || e.fields ? [xt(e, t, n, !0)] : [];
2179
2185
  }
2180
2186
  function xt(e, t, n, o) {
2181
- const l = ce(e), c = Tr(l.infSetMark ?? l), a = Or(l.infSetFields ?? l.fields ?? []), r = Cr(c), s = Fr(
2187
+ const l = ce(e), c = Tr(l.infSetMark ?? l), r = Or(l.infSetFields ?? l.fields ?? []), a = Cr(c), s = Fr(
2182
2188
  l.infSetValues ?? l.rows ?? l.data,
2183
- a,
2184
- r
2185
- ), i = s[0] ? wt(s[0]) : In(a), h = ce(l.tag), S = ee(
2186
- l.tagId ?? l.infTagId ?? h.tagId ?? h.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2187
- ), I = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, _ = o ? n?.code : void 0, M = c.setId || ee(l.setId), z = ee(l.infSetId) || M || ee(V), g = M || ee(f ?? z), v = c.code || ee(l.code ?? _ ?? g), F = g || v || z || S, y = {
2189
+ r,
2190
+ a
2191
+ ), i = s[0] ? wt(s[0]) : In(r), v = ce(l.tag), S = ee(
2192
+ l.tagId ?? l.infTagId ?? v.tagId ?? v.infTagId ?? c.raw.tagId ?? c.raw.infTagId
2193
+ ), I = ee(t.tagId ?? n?.tagId), L = ee(n?.key), V = o ? t.infSetId ?? n?.infSetId : void 0, f = o ? t.setId : void 0, _ = o ? n?.code : void 0, M = c.setId || ee(l.setId), z = ee(l.infSetId) || M || ee(V), g = M || ee(f ?? z), h = c.code || ee(l.code ?? _ ?? g), F = g || h || z || S, y = {
2188
2194
  key: F,
2189
2195
  id: F,
2190
2196
  setId: g,
2191
- code: v,
2197
+ code: h,
2192
2198
  tagId: S,
2193
2199
  requestTagId: I || void 0,
2194
2200
  ownerNodeKey: L || void 0,
2195
2201
  infSetId: z,
2196
2202
  title: c.name || ee(l.name ?? n?.tagName ?? F),
2197
- renderType: r,
2203
+ renderType: a,
2198
2204
  mark: c,
2199
- fields: a,
2205
+ fields: r,
2200
2206
  model: i,
2201
2207
  rows: s,
2202
2208
  operationInfo: mt(
@@ -2229,7 +2235,7 @@ function Dr(e, t) {
2229
2235
  n.code ?? n.fieldCode ?? n.prop ?? n.key ?? `field_${t}`
2230
2236
  ), l = ee(n.label ?? n.name ?? n.tagName ?? o), c = Tn(
2231
2237
  n.interface ?? n.interfaceField
2232
- ), a = qt(n.cascadeDependFields);
2238
+ ), r = qt(n.cascadeDependFields);
2233
2239
  return {
2234
2240
  id: ee(n.id ?? n.key ?? n.prop ?? o),
2235
2241
  key: ee(n.key ?? n.prop ?? o),
@@ -2255,7 +2261,7 @@ function Dr(e, t) {
2255
2261
  interface: c,
2256
2262
  cascadeClearFields: qt(n.cascadeClearFields),
2257
2263
  cascadeDependFields: Ne({
2258
- cascadeDependFields: a,
2264
+ cascadeDependFields: r,
2259
2265
  interface: c
2260
2266
  }),
2261
2267
  props: Ar(n),
@@ -2265,15 +2271,15 @@ function Dr(e, t) {
2265
2271
  }
2266
2272
  function Fr(e, t, n) {
2267
2273
  if (Array.isArray(e) && e.some((c) => {
2268
- const a = ce(c);
2274
+ const r = ce(c);
2269
2275
  return t.some(
2270
- (r) => a[r.code] !== void 0 || a[r.key] !== void 0
2276
+ (a) => r[a.code] !== void 0 || r[a.key] !== void 0
2271
2277
  );
2272
2278
  }))
2273
- return e.map((c, a) => ({
2279
+ return e.map((c, r) => ({
2274
2280
  ...ce(c),
2275
2281
  __rowKey: ee(
2276
- ce(c).__rowKey ?? ce(c).key ?? a
2282
+ ce(c).__rowKey ?? ce(c).key ?? r
2277
2283
  )
2278
2284
  }));
2279
2285
  const o = In(t);
@@ -2284,14 +2290,14 @@ function In(e) {
2284
2290
  }
2285
2291
  function $n(e, t, n = "") {
2286
2292
  const o = ce(e), l = Qe(o, ["children", "list", "tags"]).flatMap(
2287
- (a) => $n(
2288
- a,
2293
+ (r) => $n(
2294
+ r,
2289
2295
  t,
2290
2296
  ee(o.tagId ?? o.id ?? o.key)
2291
2297
  )
2292
2298
  ), c = Pr(o.infSetList);
2293
2299
  return l.length === 0 && c.length > 0 ? c.map(
2294
- (a, r) => Er(o, a, t, n, r)
2300
+ (r, a) => Er(o, r, t, n, a)
2295
2301
  ) : [Br(o, t, n, l)];
2296
2302
  }
2297
2303
  function Br(e, t, n, o) {
@@ -2321,13 +2327,13 @@ function Br(e, t, n, o) {
2321
2327
  };
2322
2328
  }
2323
2329
  function Er(e, t, n, o, l) {
2324
- const c = ee(e.tagId ?? e.id ?? e.key), a = ee(e.tagName ?? e.name ?? e.label ?? c), r = t.infSetId || ee(t.setId), s = t.setId || r, i = r || `${c}-${l}`, h = t.code || se(e.code ?? r);
2330
+ const c = ee(e.tagId ?? e.id ?? e.key), r = ee(e.tagName ?? e.name ?? e.label ?? c), a = t.infSetId || ee(t.setId), s = t.setId || a, i = a || `${c}-${l}`, v = t.code || se(e.code ?? a);
2325
2331
  return {
2326
2332
  key: i,
2327
2333
  id: i,
2328
2334
  tagId: c,
2329
- tagName: a,
2330
- label: a,
2335
+ tagName: r,
2336
+ label: r,
2331
2337
  tagLevel: se(e.tagLevel ?? e.level) ?? null,
2332
2338
  level: Dn(e.tagLevel ?? e.level),
2333
2339
  parentTagId: se(
@@ -2336,16 +2342,16 @@ function Er(e, t, n, o, l) {
2336
2342
  parentId: se(e.parentTagId ?? e.parentId ?? o) ?? null,
2337
2343
  infSchmId: se(e.infSchmId ?? n?.infSchmId),
2338
2344
  schemeId: ee(e.infSchmId ?? n?.infSchmId),
2339
- infSetId: r,
2345
+ infSetId: a,
2340
2346
  setId: s,
2341
- code: h,
2347
+ code: v,
2342
2348
  children: [],
2343
2349
  infSetList: [t],
2344
2350
  operationInfo: mt(e.operationInfo),
2345
2351
  loaded: !0,
2346
2352
  raw: {
2347
2353
  ...e,
2348
- infSetId: r,
2354
+ infSetId: a,
2349
2355
  setId: s,
2350
2356
  infSetList: [t.raw]
2351
2357
  }
@@ -2503,7 +2509,7 @@ function Nr(e, t, n) {
2503
2509
  return tt([n, ...Xe(t)]).length === 0 ? e : e.filter((l) => Bn(l, t, n));
2504
2510
  }
2505
2511
  function xr(e, t, n = {}) {
2506
- const o = Object.keys(n).length > 0 ? n : e.model, l = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((s) => Ve(s) === l || s.code === l) : t, r = Ne(c).some((s) => {
2512
+ const o = Object.keys(n).length > 0 ? n : e.model, l = typeof t == "string" ? t : Ve(t), c = typeof t == "string" ? e.fields.find((s) => Ve(s) === l || s.code === l) : t, a = Ne(c).some((s) => {
2507
2513
  if (s === "searchText" && Object.prototype.hasOwnProperty.call(o, s) || s !== "searchText" && !Gr(e, s))
2508
2514
  return !1;
2509
2515
  const i = o[s];
@@ -2514,7 +2520,7 @@ function xr(e, t, n = {}) {
2514
2520
  currentField: c,
2515
2521
  sourceModel: o,
2516
2522
  sourceRow: e.renderType === "table" ? o : void 0,
2517
- missingDependField: r
2523
+ missingDependField: a
2518
2524
  };
2519
2525
  }
2520
2526
  function qr(e) {
@@ -2538,7 +2544,7 @@ function Ur(e, t, n) {
2538
2544
  const o = Me(e?.operationInfo).queryInfoSet;
2539
2545
  if (at(o))
2540
2546
  return o;
2541
- const l = t?.infSetList.find((a) => a.infSetId === n), c = Me(l?.operationInfo).queryInfoSet;
2547
+ const l = t?.infSetList.find((r) => r.infSetId === n), c = Me(l?.operationInfo).queryInfoSet;
2542
2548
  return at(c) ? c : void 0;
2543
2549
  }
2544
2550
  function Hr(e) {
@@ -2624,7 +2630,7 @@ function Je(e = {}) {
2624
2630
  };
2625
2631
  }
2626
2632
  function Qr(e) {
2627
- const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], l = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), a = tt([e.targetKey, ...Xe(e.node)]).length > 0, r = c.find((s) => Bn(s, e.node, e.targetKey)) ?? (a ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2633
+ const t = { ...e.currentMap }, n = { ...e.currentAliasMap }, o = [...e.currentOrder], l = { ...e.currentStatusMap }, c = Nr(e.nextViewModel.sections, e.node, e.targetKey), r = tt([e.targetKey, ...Xe(e.node)]).length > 0, a = c.find((s) => Bn(s, e.node, e.targetKey)) ?? (r ? null : e.nextViewModel.activeSection ?? c[0] ?? e.activeSection ?? null);
2628
2634
  return c.forEach((s) => {
2629
2635
  const i = Te(s);
2630
2636
  t[i] = s, o.includes(i) || o.push(i), l[i] = Je({
@@ -2634,18 +2640,18 @@ function Qr(e) {
2634
2640
  error: null,
2635
2641
  editing: e.editingSectionKeys.includes(i)
2636
2642
  });
2637
- }), e.targetKey && r ? n[e.targetKey] = Te(r) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (l[e.targetKey] = Je({
2643
+ }), e.targetKey && a ? n[e.targetKey] = Te(a) : e.targetKey && (n[e.targetKey] = ""), e.targetKey && (l[e.targetKey] = Je({
2638
2644
  ...l[e.targetKey],
2639
2645
  loaded: !0,
2640
2646
  loading: !1,
2641
2647
  error: null,
2642
- editing: !!(r && e.editingSectionKeys.includes(Te(r)))
2648
+ editing: !!(a && e.editingSectionKeys.includes(Te(a)))
2643
2649
  })), {
2644
2650
  sectionMap: t,
2645
2651
  sectionAliasMap: n,
2646
2652
  sectionOrder: o,
2647
2653
  sectionStatusMap: l,
2648
- matchedSection: r,
2654
+ matchedSection: a,
2649
2655
  targetSections: c
2650
2656
  };
2651
2657
  }
@@ -2670,7 +2676,7 @@ function It(e) {
2670
2676
  return Array.isArray(e) ? `[${e.map((t) => It(t)).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).sort(([n], [o]) => n.localeCompare(o)).map(([n, o]) => `${JSON.stringify(n)}:${It(o)}`).join(",")}}` : JSON.stringify(e);
2671
2677
  }
2672
2678
  const na = (e) => {
2673
- const t = ge(!1), n = ge(!1), o = ge(!1), l = je(null), c = je([]), a = je(null), r = je(null), s = je(null), i = je({}), h = je({}), S = ge([]), I = je({}), L = ge([]), V = O(
2679
+ const t = ge(!1), n = ge(!1), o = ge(!1), l = je(null), c = je([]), r = je(null), a = je(null), s = je(null), i = je({}), v = je({}), S = ge([]), I = je({}), L = ge([]), V = O(
2674
2680
  () => {
2675
2681
  const m = S.value.map((k) => i.value[k]).filter((k) => !!k), p = Object.entries(i.value).filter(([k]) => !S.value.includes(k)).map(([, k]) => k);
2676
2682
  return [...m, ...p];
@@ -2695,7 +2701,7 @@ const na = (e) => {
2695
2701
  ...p,
2696
2702
  // 编辑态以 editingSectionKeys 为准,避免状态对象里 editing 值残留。
2697
2703
  editing: L.value.includes(
2698
- h.value[m] ?? m
2704
+ v.value[m] ?? m
2699
2705
  )
2700
2706
  }
2701
2707
  ])
@@ -2718,7 +2724,7 @@ const na = (e) => {
2718
2724
  tagLevel: m.tagLevel,
2719
2725
  // parentTagId 保留父子关系上下文。
2720
2726
  parentTagId: m.parentTagId
2721
- }), z = (m = r.value, p = s.value) => ({
2727
+ }), z = (m = a.value, p = s.value) => ({
2722
2728
  // 详情接口同样需要基础人员和场景参数。
2723
2729
  ..._(),
2724
2730
  // 当前节点所属模板方案。
@@ -2734,11 +2740,11 @@ const na = (e) => {
2734
2740
  formatter: e.formatOperationParams,
2735
2741
  operation: m,
2736
2742
  context: p,
2737
- viewModel: a.value,
2743
+ viewModel: r.value,
2738
2744
  sections: V.value,
2739
- activeNode: r.value,
2745
+ activeNode: a.value,
2740
2746
  activeSection: s.value
2741
- }), v = nr(
2747
+ }), h = nr(
2742
2748
  async (m, p) => {
2743
2749
  if (!e.service.requestOperation)
2744
2750
  throw ze("service.requestOperation is required");
@@ -2758,13 +2764,13 @@ const na = (e) => {
2758
2764
  model: p?.model,
2759
2765
  row: p?.row,
2760
2766
  node: p?.node,
2761
- viewModel: a.value,
2767
+ viewModel: r.value,
2762
2768
  sections: V.value,
2763
- activeNode: r.value,
2769
+ activeNode: a.value,
2764
2770
  activeSection: s.value,
2765
2771
  searchText: p?.searchText
2766
2772
  }), Y = { ...m, params: k }, W = p && { ...p, params: k };
2767
- return v(Y, W);
2773
+ return h(Y, W);
2768
2774
  }, y = (m, p) => {
2769
2775
  if (!p)
2770
2776
  return m[0] ?? null;
@@ -2783,12 +2789,12 @@ const na = (e) => {
2783
2789
  const p = A(m);
2784
2790
  if (!p)
2785
2791
  return null;
2786
- const k = h.value[p] ?? p;
2792
+ const k = v.value[p] ?? p;
2787
2793
  return i.value[k] ?? null;
2788
2794
  }, j = (m = s.value) => {
2789
2795
  const p = A(m);
2790
2796
  if (p)
2791
- return h.value[p] ?? p;
2797
+ return v.value[p] ?? p;
2792
2798
  }, C = (m = s.value) => {
2793
2799
  if (m)
2794
2800
  return typeof m == "string" ? m : Ue(m) ? m.setId ?? m.infSetId ?? m.key : Te(m);
@@ -2800,14 +2806,14 @@ const na = (e) => {
2800
2806
  if (p)
2801
2807
  return p;
2802
2808
  const k = b(m);
2803
- return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? r.value : k || r.value && Xe(r.value).includes(m) ? r.value : null;
2809
+ return k?.ownerNodeKey ? y(c.value, k.ownerNodeKey) ?? a.value : k || a.value && Xe(a.value).includes(m) ? a.value : null;
2804
2810
  }
2805
- return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? r.value : r.value;
2811
+ return m?.ownerNodeKey ? y(c.value, m.ownerNodeKey) ?? a.value : a.value;
2806
2812
  }, re = (m = s.value) => !m || Ue(m) ? null : b(m), le = (m = s.value) => {
2807
2813
  const p = C(m);
2808
2814
  if (!p)
2809
2815
  return Je();
2810
- const k = h.value[p] ?? p;
2816
+ const k = v.value[p] ?? p;
2811
2817
  return Je({
2812
2818
  ...I.value[p],
2813
2819
  ...I.value[k],
@@ -2829,13 +2835,13 @@ const na = (e) => {
2829
2835
  editing: L.value.includes(k)
2830
2836
  })
2831
2837
  });
2832
- }, B = (m = a.value?.raw ?? null, p = r.value) => {
2838
+ }, B = (m = r.value?.raw ?? null, p = a.value) => {
2833
2839
  const k = V.value, Y = s.value && k.find(
2834
2840
  (W) => Te(W) === Te(s.value)
2835
2841
  ) ? s.value : null;
2836
- a.value = {
2842
+ r.value = {
2837
2843
  // 保留原 scheme。
2838
- scheme: a.value?.scheme ?? null,
2844
+ scheme: r.value?.scheme ?? null,
2839
2845
  // 当前节点。
2840
2846
  node: p,
2841
2847
  // 顶层节点和树节点都来自 nodes。
@@ -2852,10 +2858,10 @@ const na = (e) => {
2852
2858
  // 保留原始接口数据。
2853
2859
  raw: m
2854
2860
  }, s.value = Y;
2855
- }, E = (m, p = r.value, k) => {
2861
+ }, E = (m, p = a.value, k) => {
2856
2862
  const Y = Qr({
2857
2863
  currentMap: i.value,
2858
- currentAliasMap: h.value,
2864
+ currentAliasMap: v.value,
2859
2865
  currentOrder: S.value,
2860
2866
  currentStatusMap: I.value,
2861
2867
  editingSectionKeys: L.value,
@@ -2864,9 +2870,9 @@ const na = (e) => {
2864
2870
  targetKey: k,
2865
2871
  activeSection: s.value
2866
2872
  });
2867
- return i.value = Y.sectionMap, h.value = Y.sectionAliasMap, S.value = Y.sectionOrder, I.value = Y.sectionStatusMap, a.value = {
2873
+ return i.value = Y.sectionMap, v.value = Y.sectionAliasMap, S.value = Y.sectionOrder, I.value = Y.sectionStatusMap, r.value = {
2868
2874
  ...m,
2869
- scheme: m.scheme ?? a.value?.scheme ?? null,
2875
+ scheme: m.scheme ?? r.value?.scheme ?? null,
2870
2876
  topNodes: c.value,
2871
2877
  treeNodes: c.value,
2872
2878
  activeNode: p,
@@ -2883,8 +2889,8 @@ const na = (e) => {
2883
2889
  ...i.value,
2884
2890
  [k]: W
2885
2891
  }, s.value = Te(s.value ?? W) === k ? W : s.value, B();
2886
- }, u = async (m = s.value ?? r.value) => {
2887
- const p = re(m), k = N(m) ?? r.value, Y = C(m);
2892
+ }, u = async (m = s.value ?? a.value) => {
2893
+ const p = re(m), k = N(m) ?? a.value, Y = C(m);
2888
2894
  if (!k)
2889
2895
  return null;
2890
2896
  if (!e.service.requestOperation)
@@ -2931,8 +2937,8 @@ const na = (e) => {
2931
2937
  if (!Ue(m) && typeof m != "string")
2932
2938
  return b(m);
2933
2939
  const p = C(m);
2934
- return p ? i.value[h.value[p] ?? p] ?? null : null;
2935
- }, P = async (m = r.value) => m ? (await u(m), a.value) : (a.value = null, s.value = null, i.value = {}, h.value = {}, S.value = [], I.value = {}, null), x = async (m) => {
2940
+ return p ? i.value[v.value[p] ?? p] ?? null : null;
2941
+ }, P = async (m = a.value) => m ? (await u(m), r.value) : (r.value = null, s.value = null, i.value = {}, v.value = {}, S.value = [], I.value = {}, null), x = async (m) => {
2936
2942
  const p = Yr(m);
2937
2943
  if (!p)
2938
2944
  return m.children;
@@ -2951,7 +2957,7 @@ const na = (e) => {
2951
2957
  return p.length > 0 && (c.value = Sn(c.value, m.key, p)), p;
2952
2958
  }, q = async (m) => {
2953
2959
  const p = typeof m == "string" ? y(c.value, m) : m;
2954
- return p ? (r.value = p, s.value = null, L.value = [], await K(p), B(a.value?.raw, p), p) : null;
2960
+ return p ? (a.value = p, s.value = null, L.value = [], await K(p), B(r.value?.raw, p), p) : null;
2955
2961
  }, Q = async () => {
2956
2962
  const m = e.service.templateTree;
2957
2963
  if (!m)
@@ -2968,9 +2974,9 @@ const na = (e) => {
2968
2974
  };
2969
2975
  })
2970
2976
  );
2971
- c.value = Y, s.value = null, i.value = {}, h.value = {}, S.value = [], I.value = {}, L.value = [];
2977
+ c.value = Y, s.value = null, i.value = {}, v.value = {}, S.value = [], I.value = {}, L.value = [];
2972
2978
  const W = y(Y, e.initialActiveNodeKey) ?? y(Y);
2973
- return r.value = W, a.value = {
2979
+ return a.value = W, r.value = {
2974
2980
  ...k,
2975
2981
  treeNodes: Y,
2976
2982
  activeNode: W,
@@ -2984,11 +2990,11 @@ const na = (e) => {
2984
2990
  }
2985
2991
  }, T = async () => {
2986
2992
  const m = A();
2987
- await w(s.value ?? r.value);
2993
+ await w(s.value ?? a.value);
2988
2994
  const p = V.value.find(
2989
2995
  (k) => Te(k) === m
2990
2996
  );
2991
- return p && (s.value = p), B(), a.value;
2997
+ return p && (s.value = p), B(), r.value;
2992
2998
  }, X = (m = s.value) => {
2993
2999
  const p = j(m);
2994
3000
  return !!(p && L.value.includes(p));
@@ -3149,7 +3155,7 @@ const na = (e) => {
3149
3155
  const {
3150
3156
  tagId: W,
3151
3157
  ...Ce
3152
- } = z(r.value, k), ve = kr(k, Ce), ie = Xr(
3158
+ } = z(a.value, k), ve = kr(k, Ce), ie = Xr(
3153
3159
  k,
3154
3160
  ve.infSetValues ?? [],
3155
3161
  {
@@ -3165,7 +3171,7 @@ const na = (e) => {
3165
3171
  type: "editInfoSet",
3166
3172
  requestSource: "inner",
3167
3173
  tagId: k.requestTagId ?? k.tagId,
3168
- node: r.value,
3174
+ node: a.value,
3169
3175
  section: k,
3170
3176
  params: ve,
3171
3177
  model: k.model
@@ -3191,7 +3197,7 @@ const na = (e) => {
3191
3197
  (e.autoLoad ?? !0) && Q();
3192
3198
  }), {
3193
3199
  // 当前 viewModel。
3194
- viewModel: a,
3200
+ viewModel: r,
3195
3201
  // 当前模板树节点。
3196
3202
  nodes: c,
3197
3203
  // 当前已加载 section 列表。
@@ -3201,7 +3207,7 @@ const na = (e) => {
3201
3207
  // 当前 section 状态缓存。
3202
3208
  sectionStatusMap: I,
3203
3209
  // 当前激活节点。
3204
- activeNode: r,
3210
+ activeNode: a,
3205
3211
  // 当前激活 section。
3206
3212
  activeSection: s,
3207
3213
  // 给页面消费的状态快照。
@@ -3222,13 +3228,13 @@ const na = (e) => {
3222
3228
  formatOperationParams: {}
3223
3229
  },
3224
3230
  setup(e) {
3225
- const t = e, n = na(t), { viewModel: o, nodes: l, sections: c, activeNode: a, activeSection: r, state: s, actions: i } = n;
3226
- return (h, S) => te(h.$slots, "default", Oe(Be({
3231
+ const t = e, n = na(t), { viewModel: o, nodes: l, sections: c, activeNode: r, activeSection: a, state: s, actions: i } = n;
3232
+ return (v, S) => te(v.$slots, "default", Oe(Be({
3227
3233
  viewModel: J(o),
3228
3234
  nodes: J(l),
3229
3235
  sections: J(c),
3230
- activeNode: J(a),
3231
- activeSection: J(r),
3236
+ activeNode: J(r),
3237
+ activeSection: J(a),
3232
3238
  state: J(s),
3233
3239
  actions: J(i),
3234
3240
  renderConfig: t.renderConfig
@@ -3280,18 +3286,18 @@ const oa = {
3280
3286
  "html",
3281
3287
  "code",
3282
3288
  "multi-row"
3283
- ], c = ge(null), a = O(
3289
+ ], c = ge(null), r = O(
3284
3290
  () => kt(n.field)
3285
- ), r = O(
3291
+ ), a = O(
3286
3292
  () => ut(n.field)
3287
3293
  ), s = O(
3288
3294
  () => dr(n.field)
3289
3295
  ), i = O(
3290
3296
  () => n.disabled || n.field.disabled || n.field.readonly
3291
- ), h = O(() => !!n.field.props?.multiple), S = O(
3297
+ ), v = O(() => !!n.field.props?.multiple), S = O(
3292
3298
  () => n.modelValue === void 0 || n.modelValue === null ? "" : String(n.modelValue)
3293
3299
  ), I = O(
3294
- () => l.includes(a.value) ? n.field.props?.resize ?? "vertical" : void 0
3300
+ () => l.includes(r.value) ? n.field.props?.resize ?? "vertical" : void 0
3295
3301
  ), L = O(() => {
3296
3302
  if (n.modelValue === void 0 || n.modelValue === null || n.modelValue === "")
3297
3303
  return;
@@ -3315,8 +3321,8 @@ const oa = {
3315
3321
  ), z = O(() => {
3316
3322
  const u = n.field.props?.activeValue ?? n.field.props?.["active-value"], w = n.field.props?.inactiveValue ?? n.field.props?.["inactive-value"];
3317
3323
  return u !== void 0 || w !== void 0 ? n.modelValue ?? w ?? !1 : vn(n.modelValue);
3318
- }), g = O(() => a.value === "code" ? 5 : 1), v = O(
3319
- () => a.value === "file" && !_e(n.modelValue)
3324
+ }), g = O(() => r.value === "code" ? 5 : 1), h = O(
3325
+ () => r.value === "file" && !_e(n.modelValue)
3320
3326
  ), F = O(
3321
3327
  () => mn(
3322
3328
  n.field,
@@ -3329,7 +3335,7 @@ const oa = {
3329
3335
  n.modelValue,
3330
3336
  Z("common.请选择文件")
3331
3337
  )
3332
- ), A = O(() => n.field.placeholder ? n.field.placeholder : r.value ? Z("common.请输入关键词") : a.value === "select" ? Z("common.请选择") : a.value === "date" ? Z("common.请选择日期") : a.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3338
+ ), A = O(() => n.field.placeholder ? n.field.placeholder : a.value ? Z("common.请输入关键词") : r.value === "select" ? Z("common.请选择") : r.value === "date" ? Z("common.请选择日期") : r.value === "file" ? Z("common.请选择文件") : Z("common.请输入"));
3333
3339
  let b;
3334
3340
  function j(u) {
3335
3341
  if (Array.isArray(V.value)) {
@@ -3347,13 +3353,13 @@ const oa = {
3347
3353
  o("change", re(u));
3348
3354
  }
3349
3355
  function re(u) {
3350
- return a.value === "select" || a.value === "select_remote" ? pr(n.field, u) : u;
3356
+ return r.value === "select" || r.value === "select_remote" ? pr(n.field, u) : u;
3351
3357
  }
3352
3358
  function le(u) {
3353
- u && o("loadOptions", r.value ? { searchText: "" } : void 0);
3359
+ u && o("loadOptions", a.value ? { searchText: "" } : void 0);
3354
3360
  }
3355
3361
  function R(u) {
3356
- r.value && (b && clearTimeout(b), b = setTimeout(() => {
3362
+ a.value && (b && clearTimeout(b), b = setTimeout(() => {
3357
3363
  o("loadOptions", { searchText: u });
3358
3364
  }, 300));
3359
3365
  }
@@ -3372,7 +3378,7 @@ const oa = {
3372
3378
  }
3373
3379
  return (u, w) => {
3374
3380
  const D = Xt, P = Qt, x = Wt, K = ao, q = so, Q = Zt;
3375
- return a.value === "select" || a.value === "select_remote" ? ($(), H(P, ae({
3381
+ return r.value === "select" || r.value === "select_remote" ? ($(), H(P, ae({
3376
3382
  key: 0,
3377
3383
  class: "global-info-field-control"
3378
3384
  }, u.field.props, {
@@ -3381,12 +3387,12 @@ const oa = {
3381
3387
  "model-value": V.value,
3382
3388
  placeholder: A.value,
3383
3389
  disabled: i.value,
3384
- "collapse-tags": h.value,
3385
- "collapse-tags-tooltip": h.value,
3390
+ "collapse-tags": v.value,
3391
+ "collapse-tags-tooltip": v.value,
3386
3392
  "max-collapse-tags": 1,
3387
- filterable: r.value || !!u.field.props?.filterable,
3388
- remote: r.value || !!u.field.props?.remote,
3389
- "remote-method": r.value ? R : u.field.props?.remoteMethod,
3393
+ filterable: a.value || !!u.field.props?.filterable,
3394
+ remote: a.value || !!u.field.props?.remote,
3395
+ "remote-method": a.value ? R : u.field.props?.remoteMethod,
3390
3396
  clearable: "",
3391
3397
  onVisibleChange: le,
3392
3398
  "onUpdate:modelValue": C,
@@ -3408,7 +3414,7 @@ const oa = {
3408
3414
  }, 1032, ["label", "value"]))), 128))
3409
3415
  ]),
3410
3416
  _: 1
3411
- }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : a.value === "date" ? ($(), H(x, ae({
3417
+ }, 16, ["popper-class", "teleported", "model-value", "placeholder", "disabled", "collapse-tags", "collapse-tags-tooltip", "filterable", "remote", "remote-method"])) : r.value === "date" ? ($(), H(x, ae({
3412
3418
  key: 1,
3413
3419
  class: "global-info-field-control"
3414
3420
  }, u.field.props, {
@@ -3419,7 +3425,7 @@ const oa = {
3419
3425
  "value-format": "YYYY-MM-DD",
3420
3426
  "onUpdate:modelValue": C,
3421
3427
  onChange: N
3422
- }), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "number" ? ($(), H(K, ae({
3428
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "number" ? ($(), H(K, ae({
3423
3429
  key: 2,
3424
3430
  class: "global-info-field-control"
3425
3431
  }, u.field.props, {
@@ -3429,7 +3435,7 @@ const oa = {
3429
3435
  "controls-position": "right",
3430
3436
  "onUpdate:modelValue": C,
3431
3437
  onChange: N
3432
- }), null, 16, ["model-value", "placeholder", "disabled"])) : a.value === "switch" ? ($(), H(q, ae({
3438
+ }), null, 16, ["model-value", "placeholder", "disabled"])) : r.value === "switch" ? ($(), H(q, ae({
3433
3439
  key: 3,
3434
3440
  class: "global-info-field-control global-info-field-control--switch"
3435
3441
  }, u.field.props, {
@@ -3437,12 +3443,12 @@ const oa = {
3437
3443
  disabled: i.value,
3438
3444
  "onUpdate:modelValue": C,
3439
3445
  onChange: N
3440
- }), null, 16, ["model-value", "disabled"])) : a.value === "file" ? ($(), G("div", {
3446
+ }), null, 16, ["model-value", "disabled"])) : r.value === "file" ? ($(), G("div", {
3441
3447
  key: 4,
3442
3448
  class: We(["global-info-field-control global-info-field-control--file", {
3443
3449
  "is-disabled": i.value,
3444
- "is-empty": !v.value,
3445
- "is-filled": v.value
3450
+ "is-empty": !h.value,
3451
+ "is-filled": h.value
3446
3452
  }]),
3447
3453
  onClick: B
3448
3454
  }, [
@@ -3468,8 +3474,8 @@ const oa = {
3468
3474
  }, oe(T.text), 9, ia)) : ($(), G("span", ca, oe(T.text), 1)),
3469
3475
  X < y.value.length - 1 ? ($(), G("span", ua, "、")) : fe("", !0)
3470
3476
  ], 64))), 128))
3471
- ])) : v.value ? ($(), G("span", da, oe(F.value), 1)) : ($(), G("span", fa, oe(J(Z)("common.上传")), 1))
3472
- ], 2)) : a.value === "empty" ? ($(), H(Q, {
3477
+ ])) : h.value ? ($(), G("span", da, oe(F.value), 1)) : ($(), G("span", fa, oe(J(Z)("common.上传")), 1))
3478
+ ], 2)) : r.value === "empty" ? ($(), H(Q, {
3473
3479
  key: 5,
3474
3480
  class: "global-info-field-control",
3475
3481
  "model-value": "",
@@ -3478,22 +3484,22 @@ const oa = {
3478
3484
  })) : ($(), H(Q, ae({
3479
3485
  key: 6,
3480
3486
  class: ["global-info-field-control", {
3481
- "global-info-field-control--textarea": l.includes(a.value),
3482
- "global-info-field-control--code": a.value === "code"
3487
+ "global-info-field-control--textarea": l.includes(r.value),
3488
+ "global-info-field-control--code": r.value === "code"
3483
3489
  }]
3484
3490
  }, u.field.props, {
3485
3491
  "model-value": S.value,
3486
3492
  placeholder: A.value,
3487
3493
  disabled: i.value,
3488
- type: l.includes(a.value) ? "textarea" : "text",
3489
- rows: l.includes(a.value) ? g.value : void 0,
3494
+ type: l.includes(r.value) ? "textarea" : "text",
3495
+ rows: l.includes(r.value) ? g.value : void 0,
3490
3496
  resize: I.value,
3491
3497
  "onUpdate:modelValue": C,
3492
3498
  onChange: N
3493
3499
  }), null, 16, ["class", "model-value", "placeholder", "disabled", "type", "rows", "resize"]));
3494
3500
  };
3495
3501
  }
3496
- }), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-fb0f2f9b"]]), ma = ["innerHTML"], va = {
3502
+ }), Vn = /* @__PURE__ */ be(pa, [["__scopeId", "data-v-94cd43bd"]]), ma = ["innerHTML"], va = {
3497
3503
  key: 1,
3498
3504
  class: "global-info-field-value global-info-field-value--code"
3499
3505
  }, ha = {
@@ -3509,24 +3515,24 @@ const oa = {
3509
3515
  },
3510
3516
  setup(e) {
3511
3517
  const t = e, n = O(() => Mt(t.field)), o = O(() => n.value === "empty" || _e(t.value)), l = O(() => mn(t.field, t.value, t.emptyText)), c = O(() => hn(t.field, t.value, t.emptyText));
3512
- function a(r) {
3513
- Pn(r);
3518
+ function r(a) {
3519
+ Pn(a);
3514
3520
  }
3515
- return (r, s) => n.value === "html" && !o.value ? ($(), G("span", {
3521
+ return (a, s) => n.value === "html" && !o.value ? ($(), G("span", {
3516
3522
  key: 0,
3517
3523
  class: "global-info-field-value global-info-field-value--html",
3518
3524
  innerHTML: l.value
3519
3525
  }, null, 8, ma)) : n.value === "code" && !o.value ? ($(), G("pre", va, oe(l.value), 1)) : c.value.length ? ($(), G("span", ha, [
3520
- ($(!0), G(Se, null, ye(c.value, (i, h) => ($(), G(Se, {
3526
+ ($(!0), G(Se, null, ye(c.value, (i, v) => ($(), G(Se, {
3521
3527
  key: i.key
3522
3528
  }, [
3523
3529
  i.action ? ($(), G("button", {
3524
3530
  key: 0,
3525
3531
  class: "global-info-field-value__attachment-preview",
3526
3532
  type: "button",
3527
- onClick: (S) => a(i)
3533
+ onClick: (S) => r(i)
3528
3534
  }, oe(i.text), 9, ga)) : ($(), G("span", ya, oe(i.text), 1)),
3529
- h < c.value.length - 1 ? ($(), G("span", ba, "、")) : fe("", !0)
3535
+ v < c.value.length - 1 ? ($(), G("span", ba, "、")) : fe("", !0)
3530
3536
  ], 64))), 128))
3531
3537
  ])) : ($(), G("span", {
3532
3538
  key: 3,
@@ -3536,14 +3542,14 @@ const oa = {
3536
3542
  }])
3537
3543
  }, oe(l.value), 3));
3538
3544
  }
3539
- }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-671a4fb5"]]);
3545
+ }), jn = /* @__PURE__ */ be(Sa, [["__scopeId", "data-v-0b0c0bd4"]]);
3540
3546
  function _a(e) {
3541
3547
  const t = kt(e);
3542
3548
  return (t === "select" || t === "select_remote") && !!e.interface;
3543
3549
  }
3544
3550
  function st(e, t, n = {}, o = "") {
3545
- const l = t.key || t.id || t.code, a = Ne(t).map((r) => `${r}:${String(n[r] ?? "")}`).join("|");
3546
- return [e, o, l, a].join("::");
3551
+ const l = t.key || t.id || t.code, r = Ne(t).map((a) => `${a}:${String(n[a] ?? "")}`).join("|");
3552
+ return [e, o, l, r].join("::");
3547
3553
  }
3548
3554
  function lt(e, t, n) {
3549
3555
  return Array.isArray(e.options) && e.options.length > 0 ? t === n ? !0 : !t && Ne(e).length === 0 : !1;
@@ -3590,29 +3596,29 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3590
3596
  t.section,
3591
3597
  t.renderConfig,
3592
3598
  { values: o.value }
3593
- )), a = ln(
3594
- async (v, F, y) => t.actions.loadFieldOptions(t.section, v, F, y),
3595
- (v) => `${t.section.key}:${M(v)}`
3599
+ )), r = ln(
3600
+ async (h, F, y) => t.actions.loadFieldOptions(t.section, h, F, y),
3601
+ (h) => `${t.section.key}:${M(h)}`
3596
3602
  );
3597
- function r(v, F) {
3598
- const y = { ...o.value, [v.code]: F };
3599
- (v.cascadeClearFields ?? []).forEach((A) => {
3603
+ function a(h, F) {
3604
+ const y = { ...o.value, [h.code]: F };
3605
+ (h.cascadeClearFields ?? []).forEach((A) => {
3600
3606
  y[A] = "";
3601
- }), t.onUpdateModel?.(y), t.onUpdateModel || t.actions.updateField(t.section, v, F), s(v, F, y), L(y, v);
3607
+ }), t.onUpdateModel?.(y), t.onUpdateModel || t.actions.updateField(t.section, h, F), s(h, F, y), L(y, h);
3602
3608
  }
3603
- function s(v, F, y) {
3609
+ function s(h, F, y) {
3604
3610
  const A = t.renderConfig?.onFieldBusinessChange;
3605
3611
  if (A)
3606
3612
  try {
3607
- const b = i(v, F), j = {
3608
- field: v,
3613
+ const b = i(h, F), j = {
3614
+ field: h,
3609
3615
  value: F,
3610
3616
  section: t.section,
3611
3617
  model: y,
3612
3618
  values: y,
3613
3619
  node: t.node,
3614
3620
  activeNode: t.node,
3615
- sections: h(),
3621
+ sections: v(),
3616
3622
  sectionValues: S(t.section, y),
3617
3623
  actions: t.actions,
3618
3624
  selectedOption: b[0],
@@ -3625,47 +3631,47 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3625
3631
  console.error("[GlobalInfoFormRenderer] field business change failed", b);
3626
3632
  }
3627
3633
  }
3628
- function i(v, F) {
3629
- const y = dt(v, F);
3630
- return (v.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
3634
+ function i(h, F) {
3635
+ const y = dt(h, F);
3636
+ return (h.options ?? []).filter((A) => y.some((b) => Ze(A, b)));
3631
3637
  }
3632
- function h() {
3638
+ function v() {
3633
3639
  return Object.values(t.state.sectionMap);
3634
3640
  }
3635
- function S(v, F) {
3636
- const A = h().flatMap((b) => {
3637
- const j = b.key === v.key ? F : b.renderType === "table" ? b.rows : b.model;
3641
+ function S(h, F) {
3642
+ const A = v().flatMap((b) => {
3643
+ const j = b.key === h.key ? F : b.renderType === "table" ? b.rows : b.model;
3638
3644
  return [b.key, b.id, b.setId, b.infSetId, b.code].filter(Boolean).map((C) => [String(C), j]);
3639
3645
  });
3640
3646
  return Object.fromEntries(A);
3641
3647
  }
3642
- async function I(v, F = {}, y = o.value) {
3643
- const A = y, b = M(v), j = st(t.section.key, v, A), C = l.get(b);
3644
- if (!An(F) && lt(v, C, j)) {
3648
+ async function I(h, F = {}, y = o.value) {
3649
+ const A = y, b = M(h), j = st(t.section.key, h, A), C = l.get(b);
3650
+ if (!An(F) && lt(h, C, j)) {
3645
3651
  l.set(b, j);
3646
3652
  return;
3647
3653
  }
3648
3654
  try {
3649
3655
  if (F.searchText !== void 0) {
3650
- await a(v, A, F);
3656
+ await r(h, A, F);
3651
3657
  return;
3652
3658
  }
3653
- await t.actions.loadFieldOptions(t.section, v, A, F), l.set(b, j);
3659
+ await t.actions.loadFieldOptions(t.section, h, A, F), l.set(b, j);
3654
3660
  } catch (re) {
3655
3661
  console.error("[GlobalInfoFormRenderer] load field options failed", re);
3656
3662
  }
3657
3663
  }
3658
- async function L(v = o.value, F) {
3664
+ async function L(h = o.value, F) {
3659
3665
  for (const y of c.value) {
3660
3666
  if (F && !Rn(y, F)) continue;
3661
- const A = Nn(y, v);
3667
+ const A = Nn(y, h);
3662
3668
  if (!z(y, A)) continue;
3663
- const b = st(t.section.key, y, v), j = M(y), C = l.get(j);
3669
+ const b = st(t.section.key, y, h), j = M(y), C = l.get(j);
3664
3670
  if (lt(y, C, b)) {
3665
3671
  l.set(j, b);
3666
3672
  continue;
3667
3673
  }
3668
- C !== b && await I(y, xn(y, A), v);
3674
+ C !== b && await I(y, xn(y, A), h);
3669
3675
  }
3670
3676
  }
3671
3677
  Ee(
@@ -3680,10 +3686,10 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3680
3686
  },
3681
3687
  { immediate: !0 }
3682
3688
  );
3683
- function V(v) {
3684
- const F = o.value[v.code];
3689
+ function V(h) {
3690
+ const F = o.value[h.code];
3685
3691
  return {
3686
- field: v,
3692
+ field: h,
3687
3693
  section: t.section,
3688
3694
  sectionView: t.section,
3689
3695
  node: t.node,
@@ -3692,28 +3698,28 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3692
3698
  value: F,
3693
3699
  state: t.state,
3694
3700
  actions: t.actions,
3695
- updateModelValue: (y) => r(v, y)
3701
+ updateModelValue: (y) => a(h, y)
3696
3702
  };
3697
3703
  }
3698
- function f(v) {
3699
- const F = String(v.code || "").trim(), y = F ? `field-${F}` : "";
3704
+ function f(h) {
3705
+ const F = String(h.code || "").trim(), y = F ? `field-${F}` : "";
3700
3706
  if (y && n[y]) return y;
3701
3707
  const A = y.toLowerCase();
3702
3708
  return A !== y && n[A] ? A : "";
3703
3709
  }
3704
- function _(v) {
3705
- return v.span ? Math.min(Math.max(v.span, 1), 24) : 6;
3710
+ function _(h) {
3711
+ return h.span ? Math.min(Math.max(h.span, 1), 24) : 6;
3706
3712
  }
3707
- function M(v) {
3708
- return v.key || v.id || v.code;
3713
+ function M(h) {
3714
+ return h.key || h.id || h.code;
3709
3715
  }
3710
- function z(v, F) {
3711
- return zn(v, F, t.editing);
3716
+ function z(h, F) {
3717
+ return zn(h, F, t.editing);
3712
3718
  }
3713
- function g(v) {
3714
- return v.required || v.isRequired;
3719
+ function g(h) {
3720
+ return h.required || h.isRequired;
3715
3721
  }
3716
- return (v, F) => {
3722
+ return (h, F) => {
3717
3723
  const y = en, A = io, b = lo, j = tn;
3718
3724
  return $(), H(j, {
3719
3725
  class: "global-info-form-renderer",
@@ -3739,21 +3745,21 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3739
3745
  ])
3740
3746
  ]),
3741
3747
  default: U(() => [
3742
- f(C) ? te(v.$slots, f(C), ae({
3748
+ f(C) ? te(h.$slots, f(C), ae({
3743
3749
  key: 0,
3744
3750
  ref_for: !0
3745
- }, V(C)), void 0, !0) : v.editing && !C.readonly ? ($(), H(Vn, {
3751
+ }, V(C)), void 0, !0) : h.editing && !C.readonly ? ($(), H(Vn, {
3746
3752
  key: 1,
3747
3753
  field: C,
3748
3754
  "model-value": o.value[C.code],
3749
- section: v.section,
3755
+ section: h.section,
3750
3756
  onLoadOptions: (N) => I(C, N),
3751
- "onUpdate:modelValue": (N) => r(C, N)
3757
+ "onUpdate:modelValue": (N) => a(C, N)
3752
3758
  }, null, 8, ["field", "model-value", "section", "onLoadOptions", "onUpdate:modelValue"])) : ($(), H(jn, {
3753
3759
  key: 2,
3754
3760
  field: C,
3755
3761
  value: o.value[C.code],
3756
- section: v.section
3762
+ section: h.section
3757
3763
  }, null, 8, ["field", "value", "section"]))
3758
3764
  ]),
3759
3765
  _: 2
@@ -3769,7 +3775,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3769
3775
  }, 8, ["model"]);
3770
3776
  };
3771
3777
  }
3772
- }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-45009469"]]), ka = /* @__PURE__ */ pe({
3778
+ }), Ca = /* @__PURE__ */ be($a, [["__scopeId", "data-v-54b269f1"]]), ka = /* @__PURE__ */ pe({
3773
3779
  name: "GlobalInfoDeleteConfirm",
3774
3780
  __name: "GlobalInfoDeleteConfirm",
3775
3781
  props: {
@@ -3818,9 +3824,9 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3818
3824
  () => t.section.fields.some((d) => Vt(d))
3819
3825
  ), l = O(() => o.value), c = O(
3820
3826
  () => t.renderConfig?.sequenceLabel ?? Z("common.序号")
3821
- ), a = O(
3827
+ ), r = O(
3822
3828
  () => t.renderConfig?.sequenceWidth ?? 56
3823
- ), r = O(() => {
3829
+ ), a = O(() => {
3824
3830
  const d = t.renderConfig?.sequenceStart;
3825
3831
  return typeof d == "number" && Number.isFinite(d) ? d : 1;
3826
3832
  }), s = O(() => {
@@ -3831,7 +3837,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3831
3837
  { rows: t.section.rows, values: t.section.model }
3832
3838
  );
3833
3839
  return l.value ? d.filter((u) => !re(u)) : d;
3834
- }), i = /* @__PURE__ */ new Map(), h = ln(
3840
+ }), i = /* @__PURE__ */ new Map(), v = ln(
3835
3841
  async (d, u, w) => t.actions.loadFieldOptions(t.section, d, u, w),
3836
3842
  (d, u) => `${t.section.key}:${B(u)}:${C(d)}`
3837
3843
  );
@@ -3930,7 +3936,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3930
3936
  }
3931
3937
  try {
3932
3938
  if (w.searchText !== void 0) {
3933
- await h(d, D, w);
3939
+ await v(d, D, w);
3934
3940
  return;
3935
3941
  }
3936
3942
  await t.actions.loadFieldOptions(
@@ -3970,7 +3976,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
3970
3976
  }
3971
3977
  }
3972
3978
  }
3973
- function v(d, u, w) {
3979
+ function h(d, u, w) {
3974
3980
  const D = u[d.code];
3975
3981
  return {
3976
3982
  field: d,
@@ -4010,7 +4016,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4010
4016
  return d.key || d.id || d.code;
4011
4017
  }
4012
4018
  function N(d) {
4013
- return r.value + d;
4019
+ return a.value + d;
4014
4020
  }
4015
4021
  function re(d) {
4016
4022
  return Vt(d);
@@ -4059,7 +4065,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4059
4065
  key: 0,
4060
4066
  type: "index",
4061
4067
  label: c.value,
4062
- width: a.value,
4068
+ width: r.value,
4063
4069
  index: N
4064
4070
  }, null, 8, ["label", "width"])) : fe("", !0),
4065
4071
  ($(!0), G(Se, null, ye(s.value, (q) => ($(), H(w, {
@@ -4079,7 +4085,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4079
4085
  F(q) ? te(d.$slots, F(q), ae({
4080
4086
  key: 0,
4081
4087
  ref_for: !0
4082
- }, v(q, Q, T)), void 0, !0) : d.editing && y(q) ? ($(), H(Vn, {
4088
+ }, h(q, Q, T)), void 0, !0) : d.editing && y(q) ? ($(), H(Vn, {
4083
4089
  key: 1,
4084
4090
  field: q,
4085
4091
  "model-value": Q[q.code],
@@ -4140,7 +4146,7 @@ const wa = { class: "global-info-form-renderer__label" }, Ia = {
4140
4146
  ], 2);
4141
4147
  };
4142
4148
  }
4143
- }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-47a32889"]]), Ba = /* @__PURE__ */ pe({
4149
+ }), Fa = /* @__PURE__ */ be(Da, [["__scopeId", "data-v-7dc68187"]]), Ba = /* @__PURE__ */ pe({
4144
4150
  name: "GlobalInfoAutoRenderer",
4145
4151
  __name: "GlobalInfoAutoRenderer",
4146
4152
  props: {
@@ -4207,22 +4213,22 @@ const Ea = /* @__PURE__ */ pe({
4207
4213
  values: t.section.model,
4208
4214
  rows: t.section.renderType === "table" ? t.section.rows : void 0
4209
4215
  }
4210
- )), l = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), a = O(() => {
4216
+ )), l = O(() => t.editing ?? t.actions.isEditing(t.section)), c = O(() => t.section.renderType === "table" && t.section.rows.length === 0 || o.value.length === 0), r = O(() => {
4211
4217
  const s = Tt(
4212
4218
  n,
4213
4219
  "section",
4214
4220
  Gn(t.node ?? {}, t.section)
4215
- ), i = r(t.section.renderType);
4221
+ ), i = a(t.section.renderType);
4216
4222
  return [
4217
4223
  s,
4218
4224
  i,
4219
4225
  "default"
4220
- ].find((h) => !!(h && n[h])) ?? "";
4226
+ ].find((v) => !!(v && n[v])) ?? "";
4221
4227
  });
4222
- function r(s) {
4228
+ function a(s) {
4223
4229
  return s === "form" || s === "table" ? s : "";
4224
4230
  }
4225
- return (s, i) => a.value ? te(s.$slots, a.value, {
4231
+ return (s, i) => r.value ? te(s.$slots, r.value, {
4226
4232
  key: 0,
4227
4233
  section: s.section,
4228
4234
  sectionView: s.section,
@@ -4300,7 +4306,7 @@ const Ea = /* @__PURE__ */ pe({
4300
4306
  onSave: { type: Function }
4301
4307
  },
4302
4308
  setup(e) {
4303
- const t = e, n = Le(), o = ge(!1), l = ge(null), c = ge(null), a = O(() => !!t.hideHeader), r = O(() => t.actions.getSectionStatus(t.node)), s = O(
4309
+ const t = e, n = Le(), o = ge(!1), l = ge(null), c = ge(null), r = O(() => !!t.hideHeader), a = O(() => t.actions.getSectionStatus(t.node)), s = O(
4304
4310
  () => t.actions.getSection(t.node) ?? c.value
4305
4311
  ), i = O(() => {
4306
4312
  const b = s.value;
@@ -4313,14 +4319,14 @@ const Ea = /* @__PURE__ */ pe({
4313
4319
  rows: b.renderType === "table" ? b.rows : void 0
4314
4320
  }
4315
4321
  ) : [];
4316
- }), h = O(
4322
+ }), v = O(
4317
4323
  () => s.value?.title || t.node.tagName || t.node.label || "-"
4318
4324
  ), S = O(
4319
4325
  () => !!(s.value && t.actions.isEditing(s.value))
4320
4326
  ), I = O(
4321
4327
  () => s.value?.renderType === "table"
4322
- ), L = O(() => o.value || r.value.loading), V = O(
4323
- () => M(l.value || r.value.error)
4328
+ ), L = O(() => o.value || a.value.loading), V = O(
4329
+ () => M(l.value || a.value.error)
4324
4330
  ), f = O(() => {
4325
4331
  const b = s.value;
4326
4332
  return b ? b.renderType === "table" && b.rows.length === 0 || i.value.length === 0 : !0;
@@ -4330,20 +4336,20 @@ const Ea = /* @__PURE__ */ pe({
4330
4336
  sectionView: s.value,
4331
4337
  fields: i.value,
4332
4338
  renderConfig: t.renderConfig,
4333
- title: h.value,
4339
+ title: v.value,
4334
4340
  editing: S.value,
4335
4341
  loading: L.value,
4336
- error: l.value || r.value.error,
4342
+ error: l.value || a.value.error,
4337
4343
  errorMessage: V.value,
4338
4344
  isEmpty: f.value,
4339
4345
  empty: f.value,
4340
- sectionStatus: r.value,
4346
+ sectionStatus: a.value,
4341
4347
  state: t.state,
4342
4348
  actions: t.actions,
4343
4349
  reload: A,
4344
4350
  handleEdit: z,
4345
4351
  handleCancel: g,
4346
- handleAddTableRow: v,
4352
+ handleAddTableRow: h,
4347
4353
  handleSave: F
4348
4354
  }));
4349
4355
  function M(b) {
@@ -4357,7 +4363,7 @@ const Ea = /* @__PURE__ */ pe({
4357
4363
  const b = s.value;
4358
4364
  b && (await t.onCancel?.(b, t.node), t.onCancel || t.actions.cancelEdit(b));
4359
4365
  }
4360
- function v() {
4366
+ function h() {
4361
4367
  const b = s.value;
4362
4368
  if (!b) return;
4363
4369
  const j = b.fields.reduce(
@@ -4402,18 +4408,18 @@ const Ea = /* @__PURE__ */ pe({
4402
4408
  ), (b, j) => {
4403
4409
  const C = $t;
4404
4410
  return $(), G("section", Pa, [
4405
- a.value ? fe("", !0) : ($(), G("header", Va, [
4411
+ r.value ? fe("", !0) : ($(), G("header", Va, [
4406
4412
  te(b.$slots, "header", Oe(Be(_.value)), () => [
4407
4413
  ne("div", ja, [
4408
4414
  j[0] || (j[0] = ne("span", { class: "global-info-section-block__marker" }, null, -1)),
4409
- ne("h3", Aa, oe(h.value), 1)
4415
+ ne("h3", Aa, oe(v.value), 1)
4410
4416
  ]),
4411
4417
  te(b.$slots, "actions", Oe(Be(_.value)), () => [
4412
4418
  s.value ? ($(), G("div", Ra, [
4413
4419
  S.value ? ($(), G(Se, { key: 1 }, [
4414
4420
  Ie(C, {
4415
4421
  class: "global-info-section-block__cancel",
4416
- disabled: r.value.saving,
4422
+ disabled: a.value.saving,
4417
4423
  onClick: g
4418
4424
  }, {
4419
4425
  default: U(() => [
@@ -4424,8 +4430,8 @@ const Ea = /* @__PURE__ */ pe({
4424
4430
  I.value ? ($(), H(C, {
4425
4431
  key: 0,
4426
4432
  class: "global-info-section-block__add",
4427
- disabled: r.value.saving,
4428
- onClick: v
4433
+ disabled: a.value.saving,
4434
+ onClick: h
4429
4435
  }, {
4430
4436
  default: U(() => [
4431
4437
  He(oe(J(Z)("common.新增")), 1)
@@ -4434,7 +4440,7 @@ const Ea = /* @__PURE__ */ pe({
4434
4440
  }, 8, ["disabled"])) : fe("", !0),
4435
4441
  Ie(C, {
4436
4442
  class: "global-info-section-block__confirm",
4437
- loading: r.value.saving,
4443
+ loading: a.value.saving,
4438
4444
  onClick: F
4439
4445
  }, {
4440
4446
  default: U(() => [
@@ -4445,7 +4451,7 @@ const Ea = /* @__PURE__ */ pe({
4445
4451
  ], 64)) : ($(), H(C, {
4446
4452
  key: 0,
4447
4453
  class: "global-info-section-block__edit",
4448
- disabled: r.value.saving || L.value,
4454
+ disabled: a.value.saving || L.value,
4449
4455
  onClick: z
4450
4456
  }, {
4451
4457
  default: U(() => [
@@ -4476,7 +4482,7 @@ const Ea = /* @__PURE__ */ pe({
4476
4482
  ], !0) : ($(), H(La, {
4477
4483
  key: 2,
4478
4484
  "boundary-key": b.node.key,
4479
- label: h.value,
4485
+ label: v.value,
4480
4486
  onError: y
4481
4487
  }, {
4482
4488
  fallback: U(() => [
@@ -4507,7 +4513,7 @@ const Ea = /* @__PURE__ */ pe({
4507
4513
  ]);
4508
4514
  };
4509
4515
  }
4510
- }), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-d1ce154e"]]), 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({
4516
+ }), Ka = /* @__PURE__ */ be(Ga, [["__scopeId", "data-v-5ebfeec6"]]), 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({
4511
4517
  name: "GlobalInfoGroup",
4512
4518
  __name: "GlobalInfoGroup",
4513
4519
  props: {
@@ -4522,7 +4528,7 @@ const Ea = /* @__PURE__ */ pe({
4522
4528
  const t = e, n = Le(), o = O(
4523
4529
  () => t.group.tagName || t.group.label || "-"
4524
4530
  ), l = O(() => t.children.length <= 1);
4525
- function c(i, h) {
4531
+ function c(i, v) {
4526
4532
  const S = t.actions.getSection(i);
4527
4533
  return {
4528
4534
  node: i,
@@ -4533,30 +4539,30 @@ const Ea = /* @__PURE__ */ pe({
4533
4539
  state: t.state,
4534
4540
  actions: t.actions,
4535
4541
  renderConfig: t.renderConfig,
4536
- index: h,
4542
+ index: v,
4537
4543
  editing: !!(S && t.actions.isEditing(S)),
4538
4544
  sectionStatus: t.actions.getSectionStatus(i),
4539
- isSelfSection: r(i, 0) === r(t.group, 0),
4545
+ isSelfSection: a(i, 0) === a(t.group, 0),
4540
4546
  handleEdit: () => t.actions.startEdit(i),
4541
4547
  handleCancel: () => t.actions.cancelEdit(i),
4542
4548
  handleSave: () => t.actions.saveSection(i.key)
4543
4549
  };
4544
4550
  }
4545
- function a(i) {
4546
- const h = t.actions.getSection(i);
4551
+ function r(i) {
4552
+ const v = t.actions.getSection(i);
4547
4553
  return Tt(
4548
4554
  n,
4549
4555
  "section",
4550
- Gn(i, h)
4556
+ Gn(i, v)
4551
4557
  );
4552
4558
  }
4553
- function r(i, h) {
4554
- return i.key || i.id || i.infSetId || i.tagId || `${h}`;
4559
+ function a(i, v) {
4560
+ return i.key || i.id || i.infSetId || i.tagId || `${v}`;
4555
4561
  }
4556
4562
  function s(i) {
4557
- return `global-info-section-${r(i, 0)}`;
4563
+ return `global-info-section-${a(i, 0)}`;
4558
4564
  }
4559
- return (i, h) => ($(), G("section", Ya, [
4565
+ return (i, v) => ($(), G("section", Ya, [
4560
4566
  te(i.$slots, "header", {
4561
4567
  group: i.group,
4562
4568
  children: i.children,
@@ -4568,7 +4574,7 @@ const Ea = /* @__PURE__ */ pe({
4568
4574
  isEmpty: i.children.length === 0
4569
4575
  }, () => [
4570
4576
  ne("header", Ua, [
4571
- h[0] || (h[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
4577
+ v[0] || (v[0] = ne("span", { class: "global-info-group__marker" }, null, -1)),
4572
4578
  ne("h2", Ha, oe(o.value), 1)
4573
4579
  ])
4574
4580
  ], !0),
@@ -4585,10 +4591,10 @@ const Ea = /* @__PURE__ */ pe({
4585
4591
  }, void 0, !0) : ($(), G(Se, { key: 1 }, [
4586
4592
  ($(!0), G(Se, null, ye(i.children, (S, I) => ($(), G("div", {
4587
4593
  id: s(S),
4588
- key: r(S, I),
4594
+ key: a(S, I),
4589
4595
  class: "global-info-group__section"
4590
4596
  }, [
4591
- a(S) ? te(i.$slots, a(S), ae({
4597
+ r(S) ? te(i.$slots, r(S), ae({
4592
4598
  key: 0,
4593
4599
  ref_for: !0
4594
4600
  }, c(S, I)), void 0, !0) : J(n).section ? te(i.$slots, "section", ae({
@@ -4626,7 +4632,7 @@ const Ea = /* @__PURE__ */ pe({
4626
4632
  ])
4627
4633
  ]));
4628
4634
  }
4629
- }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-91c91b25"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4635
+ }), Xa = /* @__PURE__ */ be(Qa, [["__scopeId", "data-v-e16cde81"]]), es = { class: "global-info-sections" }, ts = /* @__PURE__ */ pe({
4630
4636
  name: "GlobalInfoSections",
4631
4637
  __name: "GlobalInfoSections",
4632
4638
  props: {
@@ -4637,9 +4643,9 @@ const Ea = /* @__PURE__ */ pe({
4637
4643
  },
4638
4644
  setup(e) {
4639
4645
  const t = e, n = Le(), o = O(() => {
4640
- const h = t.nodes.filter(
4646
+ const v = t.nodes.filter(
4641
4647
  (M) => l(M).length > 0
4642
- ), S = t.nodes.filter((M) => l(M).length === 0), I = S.filter((M) => c(M)), L = S.filter((M) => !c(M)), V = h.map((M) => ({
4648
+ ), S = t.nodes.filter((M) => l(M).length === 0), I = S.filter((M) => c(M)), L = S.filter((M) => !c(M)), V = v.map((M) => ({
4643
4649
  group: M,
4644
4650
  children: l(M)
4645
4651
  })), f = I.map((M) => ({
@@ -4651,20 +4657,20 @@ const Ea = /* @__PURE__ */ pe({
4651
4657
  const _ = i(L);
4652
4658
  return [...V, ...f, ..._];
4653
4659
  });
4654
- function l(h) {
4655
- return h.children ?? [];
4660
+ function l(v) {
4661
+ return v.children ?? [];
4656
4662
  }
4657
- function c(h) {
4658
- return !String(h.parentId || h.parentTagId || "").trim();
4663
+ function c(v) {
4664
+ return !String(v.parentId || v.parentTagId || "").trim();
4659
4665
  }
4660
- function a(h) {
4661
- return Tt(n, "group", qn(h));
4666
+ function r(v) {
4667
+ return Tt(n, "group", qn(v));
4662
4668
  }
4663
- function r(h, S) {
4664
- return h.key || h.id || h.tagId || `${S}`;
4669
+ function a(v, S) {
4670
+ return v.key || v.id || v.tagId || `${S}`;
4665
4671
  }
4666
- function s(h) {
4667
- const S = h[0], I = S?.raw ?? {}, L = String(
4672
+ function s(v) {
4673
+ const S = v[0], I = S?.raw ?? {}, L = String(
4668
4674
  I.parentTagName || I.parentName || I.parentLabel || S?.parentId || Z("common.信息")
4669
4675
  );
4670
4676
  return {
@@ -4678,12 +4684,12 @@ const Ea = /* @__PURE__ */ pe({
4678
4684
  ),
4679
4685
  tagName: L,
4680
4686
  label: L,
4681
- children: h
4687
+ children: v
4682
4688
  };
4683
4689
  }
4684
- function i(h) {
4690
+ function i(v) {
4685
4691
  const S = /* @__PURE__ */ new Map();
4686
- return h.forEach((I) => {
4692
+ return v.forEach((I) => {
4687
4693
  const L = String(
4688
4694
  I.parentId || I.parentTagId || "global-info-flat"
4689
4695
  ), V = S.get(L) ?? [];
@@ -4693,48 +4699,48 @@ const Ea = /* @__PURE__ */ pe({
4693
4699
  children: I
4694
4700
  }));
4695
4701
  }
4696
- return (h, S) => ($(), G("div", es, [
4702
+ return (v, S) => ($(), G("div", es, [
4697
4703
  ($(!0), G(Se, null, ye(o.value, (I, L) => ($(), G(Se, {
4698
- key: r(I.group, L)
4704
+ key: a(I.group, L)
4699
4705
  }, [
4700
- a(I.group) ? te(h.$slots, a(I.group), {
4706
+ r(I.group) ? te(v.$slots, r(I.group), {
4701
4707
  key: 0,
4702
4708
  group: I.group,
4703
4709
  children: I.children,
4704
- state: h.state,
4705
- actions: h.actions,
4706
- renderConfig: h.renderConfig,
4710
+ state: v.state,
4711
+ actions: v.actions,
4712
+ renderConfig: v.renderConfig,
4707
4713
  index: L,
4708
4714
  isEmpty: I.children.length === 0
4709
- }, void 0, !0) : J(n).group ? te(h.$slots, "group", {
4715
+ }, void 0, !0) : J(n).group ? te(v.$slots, "group", {
4710
4716
  key: 1,
4711
4717
  group: I.group,
4712
4718
  children: I.children,
4713
- state: h.state,
4714
- actions: h.actions,
4715
- renderConfig: h.renderConfig,
4719
+ state: v.state,
4720
+ actions: v.actions,
4721
+ renderConfig: v.renderConfig,
4716
4722
  index: L,
4717
4723
  isEmpty: I.children.length === 0
4718
4724
  }, void 0, !0) : ($(), H(Xa, {
4719
4725
  key: 2,
4720
4726
  group: I.group,
4721
4727
  children: I.children,
4722
- state: h.state,
4723
- actions: h.actions,
4724
- "render-config": h.renderConfig,
4728
+ state: v.state,
4729
+ actions: v.actions,
4730
+ "render-config": v.renderConfig,
4725
4731
  index: L
4726
4732
  }, Re({ _: 2 }, [
4727
4733
  ye(J(n), (V, f) => ({
4728
4734
  name: f,
4729
4735
  fn: U((_) => [
4730
- te(h.$slots, f, ae({ ref_for: !0 }, _), void 0, !0)
4736
+ te(v.$slots, f, ae({ ref_for: !0 }, _), void 0, !0)
4731
4737
  ])
4732
4738
  }))
4733
4739
  ]), 1032, ["group", "children", "state", "actions", "render-config", "index"]))
4734
4740
  ], 64))), 128))
4735
4741
  ]));
4736
4742
  }
4737
- }), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-86c94f9f"]]);
4743
+ }), us = /* @__PURE__ */ be(ts, [["__scopeId", "data-v-d4ed3f80"]]);
4738
4744
  function ds(e, t = {}) {
4739
4745
  Un(e, t);
4740
4746
  }