ss-component-new 1.3.144 → 1.3.146

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.
Files changed (50) hide show
  1. package/dist/{array-BWcsf6Cx.js → array-GAR4BkGQ.js} +41 -41
  2. package/dist/array-qUjqa3vL.cjs +1 -0
  3. package/dist/{index-S7DgzEZC.cjs → index-15Y0r_ut.cjs} +1 -1
  4. package/dist/{index-D2gqelVW.js → index-B0e3EcTV.js} +1 -1
  5. package/dist/{index-CvPaR1b6.cjs → index-B9zMYYgz.cjs} +1 -1
  6. package/dist/index-BPn4voi8.js +6151 -0
  7. package/dist/index-BY5r2tiE.cjs +1 -0
  8. package/dist/{index-BLGbHrYm.js → index-BnSkyegx.js} +1 -1
  9. package/dist/{index-BLsVrPbK.js → index-BsR5F9sN.js} +636 -616
  10. package/dist/{index-tZ4ZNo8X.js → index-BwKn8eh6.js} +1 -1
  11. package/dist/{index-Dk7Aw-V0.cjs → index-C2Ea8y34.cjs} +1 -1
  12. package/dist/{index-Vl9tQF-D.js → index-C8QH0mX8.js} +1 -1
  13. package/dist/{index-DZIPi-Ci.js → index-CFbtY7NE.js} +28 -28
  14. package/dist/{index-BcUlsHfU.cjs → index-CKXbaQ4c.cjs} +1 -1
  15. package/dist/{index-C4oMzEnr.cjs → index-CYSxb7LT.cjs} +1 -1
  16. package/dist/{index-2speQLEm.cjs → index-Cc52pVoM.cjs} +1 -1
  17. package/dist/index-Cin7sFfV.cjs +15 -0
  18. package/dist/index-CjUJhL0d.cjs +13 -0
  19. package/dist/{index-BMZLV92m.js → index-Cy9fa8mE.js} +1 -1
  20. package/dist/{index-DHz7RstZ.js → index-DJQ08uVb.js} +4896 -4762
  21. package/dist/{index-ovelX0OV.js → index-DMnaBHQe.js} +3 -3
  22. package/dist/{index-C1sd_NT9.cjs → index-DOlCp9F8.cjs} +1 -1
  23. package/dist/{index-DwRJHOSq.cjs → index-DdYSlAX_.cjs} +1 -1
  24. package/dist/{index-A6m7DxW1.cjs → index-DllbY18n.cjs} +1 -1
  25. package/dist/{index-iHQzA9eS.js → index-DudAF_KY.js} +1 -1
  26. package/dist/{index-IRHySR7a.cjs → index-DuySSbOn.cjs} +1 -1
  27. package/dist/{index-DgBXuJxd.js → index-F1oR3Huu.js} +2 -2
  28. package/dist/{index-OW9SfkHt.cjs → index-KlKbtyod.cjs} +1 -1
  29. package/dist/{index-Cx0cfkOK.cjs → index-MRv92kDw.cjs} +1 -1
  30. package/dist/{index-Dr0MN2Wb.js → index-NBd8Lh4S.js} +1 -1
  31. package/dist/index-YjKWzL8y.cjs +1 -0
  32. package/dist/{index-OHBvB7Y-.js → index-d61tIWWK.js} +1 -1
  33. package/dist/{index-Bp22umNa.js → index-ujTozsG5.js} +2 -2
  34. package/dist/{index-BjQId1BU.js → index-yJHaTCyR.js} +7 -7
  35. package/dist/{main-CBVQ7Zms.cjs → main-CJmuuRho.cjs} +1 -1
  36. package/dist/{main-DgTNrbrZ.js → main-DfQk0hFB.js} +2 -2
  37. package/dist/ss-component.cjs +1 -1
  38. package/dist/ss-component.css +2 -2
  39. package/dist/ss-component.js +5 -5
  40. package/dist/ss-component2.cjs +1 -1
  41. package/dist/ss-component2.js +11 -11
  42. package/dist/{threeModel-C6_MpypD.js → threeModel-ByCNHUaa.js} +1 -1
  43. package/dist/{threeModel-CNaK8ll2.cjs → threeModel-DWwRkl6O.cjs} +1 -1
  44. package/package.json +1 -1
  45. package/dist/array-C3ot2nVA.cjs +0 -1
  46. package/dist/index-4R5V1wmx.js +0 -6030
  47. package/dist/index-BzY6NVRG.cjs +0 -1
  48. package/dist/index-CWj9Cx0n.cjs +0 -15
  49. package/dist/index-DdBsX7tD.cjs +0 -1
  50. package/dist/index-RxhzPX2O.cjs +0 -13
@@ -1,9 +1,9 @@
1
- import { ref as k, computed as ae, resolveComponent as te, createElementBlock as $, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
2
- import { N as Ie, g as aa, D as oa, B as sa, C as Je, b as ra } from "./index-BLsVrPbK.js";
1
+ import { ref as k, computed as ae, resolveComponent as te, createElementBlock as M, openBlock as p, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, createCommentVNode as q, normalizeStyle as ta, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
2
+ import { N as Ie, g as aa, D as oa, B as sa, C as Je, b as ra } from "./index-BsR5F9sN.js";
3
3
  import { a as Ce, p as he, s as ie, c as K, u as ke } from "./index-Co8J4ykY.js";
4
4
  import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import ua from "./index-rlStojTL.js";
6
- import { c as ca, b as ia } from "./index-DHz7RstZ.js";
6
+ import { c as ca, b as ia } from "./index-DJQ08uVb.js";
7
7
  import { s as da } from "./index-DRahG0Jp.js";
8
8
  import { E as va } from "./index-CZeDHFmo.js";
9
9
  import { E as pa } from "./index-C4YCGLRG.js";
@@ -16,9 +16,9 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
16
16
  setup(a, { emit: n }) {
17
17
  const i = Ce(he), { itemData: s, activeItemIndex: C } = ie(i), r = n, x = k(null), f = ae(() => {
18
18
  var ee, P, U;
19
- const M = { label: "布局", items: ["TABS", "LAYOUT"] }, O = { label: "常用", items: ["FORM", "TABLE"] }, F = { label: "高级", items: ["STEP", "TIMELINE", "CHART", "SIGNATURE", "AVATAR", "FOLD"] }, D = (ee = Ie.value) == null ? void 0 : ee.filter((A) => {
19
+ const $ = { label: "布局", items: ["TABS", "LAYOUT"] }, O = { label: "常用", items: ["FORM", "TABLE"] }, F = { label: "高级", items: ["STEP", "TIMELINE", "CHART", "SIGNATURE", "AVATAR", "FOLD"] }, D = (ee = Ie.value) == null ? void 0 : ee.filter((A) => {
20
20
  var c, t;
21
- return (t = M == null ? void 0 : M.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
21
+ return (t = $ == null ? void 0 : $.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
22
22
  }), Z = (P = Ie.value) == null ? void 0 : P.filter((A) => {
23
23
  var c, t;
24
24
  return (t = O == null ? void 0 : O.items) == null ? void 0 : t.includes((c = A == null ? void 0 : A.type) == null ? void 0 : c.toUpperCase());
@@ -28,7 +28,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
28
28
  });
29
29
  return [
30
30
  {
31
- ...M,
31
+ ...$,
32
32
  items: D
33
33
  },
34
34
  {
@@ -40,29 +40,29 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
40
40
  items: H
41
41
  }
42
42
  ];
43
- }), B = (M, O) => {
43
+ }), B = ($, O) => {
44
44
  try {
45
- M.dataTransfer.clearData();
45
+ $.dataTransfer.clearData();
46
46
  const F = {
47
47
  ...O,
48
48
  timestamp: Date.now()
49
49
  // 添加时间戳确保唯一性
50
50
  };
51
- M.dataTransfer.setData("application/json", JSON.stringify(F)), M.dataTransfer.effectAllowed = "copyMove", M.target.classList.add("dragging"), r("handleDragStart", O);
51
+ $.dataTransfer.setData("application/json", JSON.stringify(F)), $.dataTransfer.effectAllowed = "copyMove", $.target.classList.add("dragging"), r("handleDragStart", O);
52
52
  } catch (F) {
53
53
  console.error("Drag start error:", F);
54
54
  }
55
55
  };
56
- return (M, O) => {
56
+ return ($, O) => {
57
57
  const F = te("svg-icon");
58
- return p(), $("div", fa, [
59
- (p(!0), $(ue, null, ce(f.value, (D) => (p(), $("div", {
58
+ return p(), M("div", fa, [
59
+ (p(!0), M(ue, null, ce(f.value, (D) => (p(), M("div", {
60
60
  class: "group-item",
61
61
  key: D == null ? void 0 : D.label
62
62
  }, [
63
63
  w("div", ha, re(D == null ? void 0 : D.label), 1),
64
64
  w("div", ga, [
65
- (p(!0), $(ue, null, ce(D == null ? void 0 : D.items, (Z, H) => (p(), $("div", {
65
+ (p(!0), M(ue, null, ce(D == null ? void 0 : D.items, (Z, H) => (p(), M("div", {
66
66
  class: "type-list",
67
67
  title: "鼠标拖动",
68
68
  ref_for: !0,
@@ -307,7 +307,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
307
307
  }), Da = () => {
308
308
  W.show = !1;
309
309
  }, Ia = (a, n) => {
310
- var s, C, r, x, f, B, M, O, F;
310
+ var s, C, r, x, f, B, $, O, F;
311
311
  if (fe.value = K(n), a === "删除")
312
312
  return oe.value === "任务配置" ? J.value = (s = J.value) == null ? void 0 : s.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id)) : oe.value === "任务关联" && (ne.value = (C = ne.value) == null ? void 0 : C.filter((D) => (D == null ? void 0 : D.id) !== (n == null ? void 0 : n.id))), ye.setItemExtendData({
313
313
  任务配置: {
@@ -322,7 +322,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
322
322
  }
323
323
  });
324
324
  const i = n ? (f = Object.keys(n)) == null ? void 0 : f[1] : "";
325
- oe.value === "任务配置" ? W.title = `当前配置:${(B = X.value) == null ? void 0 : B.name}>任务配置>【${(n == null ? void 0 : n[i]) || a}】` : oe.value === "任务关联" && (W.title = `当前配置:${(M = X.value) == null ? void 0 : M.name}>任务关联>【${(n == null ? void 0 : n[i]) || a}】`), W.type = typeof ((O = fe.value) == null ? void 0 : O.id) == "string" || !((F = fe.value) != null && F.id) ? "创建" : "编辑", W.show = a === "创建" || a === "访问";
325
+ oe.value === "任务配置" ? W.title = `当前配置:${(B = X.value) == null ? void 0 : B.name}>任务配置>【${(n == null ? void 0 : n[i]) || a}】` : oe.value === "任务关联" && (W.title = `当前配置:${($ = X.value) == null ? void 0 : $.name}>任务关联>【${(n == null ? void 0 : n[i]) || a}】`), W.type = typeof ((O = fe.value) == null ? void 0 : O.id) == "string" || !((F = fe.value) != null && F.id) ? "创建" : "编辑", W.show = a === "创建" || a === "访问";
326
326
  }, ka = (a) => {
327
327
  var n;
328
328
  typeof a == "number" && (X.value = (n = V.value) == null ? void 0 : n[a], Sa()), _e.value = "data";
@@ -407,7 +407,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
407
407
  return ((C = s == null ? void 0 : s.key) == null ? void 0 : C.type) === "extend";
408
408
  });
409
409
  (a == null ? void 0 : a.length) !== 0 && (J.value = ea(a, "任务配置"), ne.value = ea(a, "任务关联"));
410
- }, Ra = { class: "fill-content" }, La = { class: "overall-config-wrapper" }, $a = { class: "operate-content" }, Ma = ["onClick"], Ba = {
410
+ }, Ra = { class: "fill-content" }, La = { class: "overall-config-wrapper" }, Ma = { class: "operate-content" }, $a = ["onClick"], Ba = {
411
411
  class: "collapse-title-item",
412
412
  title: "编辑"
413
413
  }, Ha = { key: 1 }, Ea = ["onClick"], Oa = { class: "icon-content" }, Fa = {
@@ -418,7 +418,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
418
418
  setup(a) {
419
419
  const n = Ce(he), { itemData: i, originalData: s } = ie(n), C = ke(), { activeMenuPath: r } = ie(C);
420
420
  k([]);
421
- const x = k([]), f = k([]), B = k([]), M = ae(() => {
421
+ const x = k([]), f = k([]), B = k([]), $ = ae(() => {
422
422
  var c, t, g, v;
423
423
  return ((c = V.value) == null ? void 0 : c.length) > 0 && (t = V.value) != null && t.every((h) => {
424
424
  var N, z;
@@ -495,18 +495,18 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
495
495
  return (c, t) => {
496
496
  var z;
497
497
  const g = te("svg-icon"), v = te("el-tab-pane"), h = te("el-card"), N = te("el-tabs");
498
- return p(), $("div", Ra, [
498
+ return p(), M("div", Ra, [
499
499
  t[10] || (t[10] = w("div", { class: "fill-operate" }, "操作栏", -1)),
500
500
  w("div", La, [
501
- (p(), j(le(H(M.value + "style")), {
501
+ (p(), j(le(H($.value + "style")), {
502
502
  target: "overall",
503
503
  optionItems: _(Xe),
504
- compType: M.value,
504
+ compType: $.value,
505
505
  comp: (z = _(V)) == null ? void 0 : z[0],
506
506
  onChange: _(Qe)
507
507
  }, null, 40, ["optionItems", "compType", "comp", "onChange"]))
508
508
  ]),
509
- w("div", $a, [
509
+ w("div", Ma, [
510
510
  R(ua, {
511
511
  class: "collapse-content",
512
512
  collapseContents: _(V),
@@ -523,12 +523,12 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
523
523
  onClick: (T) => U(y, d)
524
524
  }, [
525
525
  w("div", Ba, [
526
- (E = (Y = f.value) == null ? void 0 : Y.find((T) => T.id === y)) != null && E.content ? q("", !0) : (p(), $("div", {
526
+ (E = (Y = f.value) == null ? void 0 : Y.find((T) => T.id === y)) != null && E.content ? q("", !0) : (p(), M("div", {
527
527
  key: 0,
528
528
  class: "collapse-title",
529
529
  style: ta({ marginRight: u.name && u.name !== "" ? "8px" : "0px" })
530
530
  }, re(u.name), 5)),
531
- (l = (G = f.value) == null ? void 0 : G.find((T) => T.id === y)) != null && l.content ? (p(), $("div", Ha, [
531
+ (l = (G = f.value) == null ? void 0 : G.find((T) => T.id === y)) != null && l.content ? (p(), M("div", Ha, [
532
532
  R(ia, {
533
533
  modelValue: u.name,
534
534
  "onUpdate:modelValue": (T) => u.name = T,
@@ -536,7 +536,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
536
536
  }, ["stop"]))
537
537
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
538
538
  ])) : q("", !0),
539
- (m = (o = f.value) == null ? void 0 : o.find((T) => T.id === y)) != null && m.content ? q("", !0) : (p(), $("div", {
539
+ (m = (o = f.value) == null ? void 0 : o.find((T) => T.id === y)) != null && m.content ? q("", !0) : (p(), M("div", {
540
540
  key: 2,
541
541
  onClick: ve((T) => O(y), ["stop"]),
542
542
  class: "icon-content"
@@ -548,7 +548,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
548
548
  ], 8, Ea))
549
549
  ]),
550
550
  w("div", Oa, [
551
- (b = (I = f.value) == null ? void 0 : I.find((T) => T.id === y)) != null && b.content ? (p(), $("div", Fa, [
551
+ (b = (I = f.value) == null ? void 0 : I.find((T) => T.id === y)) != null && b.content ? (p(), M("div", Fa, [
552
552
  R(g, {
553
553
  name: "Cancel",
554
554
  style: { width: "16px", height: "16px" },
@@ -562,7 +562,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
562
562
  class: "icon-content"
563
563
  }, null, 8, ["onClick"])
564
564
  ])) : q("", !0),
565
- (se = (Q = f.value) == null ? void 0 : Q.find((T) => T.id === y)) != null && se.content ? q("", !0) : (p(), $("div", {
565
+ (se = (Q = f.value) == null ? void 0 : Q.find((T) => T.id === y)) != null && se.content ? q("", !0) : (p(), M("div", {
566
566
  key: 1,
567
567
  onClick: ve((T) => A(y), ["stop"]),
568
568
  class: "icon-content"
@@ -573,7 +573,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
573
573
  })
574
574
  ], 8, Aa))
575
575
  ])
576
- ], 8, Ma)
576
+ ], 8, $a)
577
577
  ];
578
578
  }),
579
579
  content: L(({ item: u, index: y }) => [
@@ -693,7 +693,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
693
693
  onTabChange: _(wa)
694
694
  }, {
695
695
  default: L(() => [
696
- (p(!0), $(ue, null, ce(_(ya), (d, Y) => (p(), j(v, {
696
+ (p(!0), M(ue, null, ce(_(ya), (d, Y) => (p(), j(v, {
697
697
  key: d == null ? void 0 : d.name,
698
698
  label: d == null ? void 0 : d.label,
699
699
  name: d == null ? void 0 : d.name
@@ -768,7 +768,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
768
768
  }, Qa = {
769
769
  __name: "index",
770
770
  setup(a) {
771
- const n = Ce(he), { itemData: i, activeItemIndex: s, pageMapState: C } = ie(n), r = k([]), x = k(0), f = k(""), B = ke(he), { activeMenuPath: M } = ie(B), O = k(null), F = k(null), D = k(24), Z = k(2), H = k([]), ee = k([]), P = ae(() => {
771
+ const n = Ce(he), { itemData: i, activeItemIndex: s, pageMapState: C } = ie(n), r = k([]), x = k(0), f = k(""), B = ke(he), { activeMenuPath: $ } = ie(B), O = k(null), F = k(null), D = k(24), Z = k(2), H = k([]), ee = k([]), P = ae(() => {
772
772
  var l, o, m;
773
773
  return {
774
774
  default: !c.value && !A.value && U.value === "vertical" && ((l = r.value) == null ? void 0 : l.length) > 0,
@@ -856,7 +856,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
856
856
  });
857
857
  }, E = (l, o) => {
858
858
  H.value = o ? l : ra(l), n.setItemGridData({
859
- pageKey: M.value,
859
+ pageKey: $.value,
860
860
  results: H.value
861
861
  }), B.setContentLoading(!1);
862
862
  };
@@ -866,7 +866,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
866
866
  }, { immediate: !0 }), be(() => P.value.grid, (l) => {
867
867
  var o, m;
868
868
  !l && ((o = H.value) == null ? void 0 : o.length) > 0 && n.setItemGridData({
869
- pageKey: M.value,
869
+ pageKey: $.value,
870
870
  results: (m = H.value) == null ? void 0 : m.map((I) => I == null ? void 0 : I.id),
871
871
  isDelete: !0
872
872
  });
@@ -876,16 +876,16 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
876
876
  }, { deep: !0, immediate: !0 });
877
877
  const G = (l) => aa(l);
878
878
  return (l, o) => {
879
- var se, T, me, xe, Te, Se, Re, Le, $e, Me, Be, He;
879
+ var se, T, me, xe, Te, Se, Re, Le, Me, $e, Be, He;
880
880
  const m = te("el-tab-pane"), I = te("el-tabs"), b = te("el-step"), Q = te("el-steps");
881
- return p(), $("div", {
881
+ return p(), M("div", {
882
882
  ref_key: "containerRef",
883
883
  ref: O,
884
884
  class: "low-code-wrapper",
885
885
  onDragover: N,
886
886
  onDrop: z
887
887
  }, [
888
- (se = P.value) != null && se.default ? (p(!0), $(ue, { key: 0 }, ce(r.value, (e, S) => (p(), $("div", {
888
+ (se = P.value) != null && se.default ? (p(!0), M(ue, { key: 0 }, ce(r.value, (e, S) => (p(), M("div", {
889
889
  class: "item-content",
890
890
  key: S
891
891
  }, [
@@ -919,7 +919,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
919
919
  margin: [8, 16]
920
920
  }, {
921
921
  default: L(() => [
922
- (p(!0), $(ue, null, ce(H.value, (e, S) => {
922
+ (p(!0), M(ue, null, ce(H.value, (e, S) => {
923
923
  var De, Ee;
924
924
  return p(), j(_(sa), {
925
925
  key: e.i,
@@ -963,7 +963,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
963
963
  ]),
964
964
  _: 1
965
965
  }, 8, ["layout"])) : q("", !0),
966
- (me = P.value) != null && me.tab ? (p(), $("div", Ja, [
966
+ (me = P.value) != null && me.tab ? (p(), M("div", Ja, [
967
967
  R(I, {
968
968
  modelValue: g.value,
969
969
  "onUpdate:modelValue": o[1] || (o[1] = (e) => g.value = e),
@@ -971,7 +971,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
971
971
  class: "display-tabs"
972
972
  }, {
973
973
  default: L(() => [
974
- (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), j(m, {
974
+ (p(!0), M(ue, null, ce(r.value, (e, S) => (p(), j(m, {
975
975
  key: e.i,
976
976
  label: e == null ? void 0 : e.name,
977
977
  name: e == null ? void 0 : e.name
@@ -1003,7 +1003,7 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
1003
1003
  class: "display-steps"
1004
1004
  }, {
1005
1005
  default: L(() => [
1006
- (p(!0), $(ue, null, ce(r.value, (e, S) => (p(), j(b, {
1006
+ (p(!0), M(ue, null, ce(r.value, (e, S) => (p(), j(b, {
1007
1007
  key: S,
1008
1008
  class: "step-item",
1009
1009
  status: f.value,
@@ -1017,14 +1017,14 @@ const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class
1017
1017
  ]),
1018
1018
  _: 1
1019
1019
  }, 8, ["active"])) : q("", !0),
1020
- (Te = P.value) != null && Te.step ? (p(), $("div", Xa, [
1020
+ (Te = P.value) != null && Te.step ? (p(), M("div", Xa, [
1021
1021
  (p(), j(le(G((Se = t.value) == null ? void 0 : Se.comp)), {
1022
1022
  pageLayout: U.value,
1023
1023
  itemData: (Re = t.value) == null ? void 0 : Re.compData,
1024
1024
  childItemData: (Le = t.value) == null ? void 0 : Le.itemChildData,
1025
- key: ($e = t.value) == null ? void 0 : $e.id,
1025
+ key: (Me = t.value) == null ? void 0 : Me.id,
1026
1026
  config: {
1027
- showIndex: (Me = t.value) == null ? void 0 : Me.showIndex,
1027
+ showIndex: ($e = t.value) == null ? void 0 : $e.showIndex,
1028
1028
  allowMove: (Be = t.value) == null ? void 0 : Be.allowMove,
1029
1029
  viewport: (He = t.value) == null ? void 0 : He.viewport
1030
1030
  }
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),K=require("./index-YjKWzL8y.cjs"),f=require("./index-CBXWBaIT.cjs"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Se=require("./index-BVaHwt5f.cjs"),Ie=require("./index-Cin7sFfV.cjs"),Re=require("./index-C_jSP6_B.cjs"),Le=require("./index-gPLkPzGs.cjs"),Me=require("./index-Dc6Q0f3F.cjs"),$e={class:"type-select"},Fe={class:"group-label"},He={class:"group-items"},Oe=["onDragstart"],Ae={__name:"index",props:{compContainerRef:Object},emits:[""],setup(l,{emit:n}){const d=f.useModelComp(f.pinia),{itemData:r,activeItemIndex:y}=f.storeToRefs(d),c=n,w=e.ref(null),h=e.computed(()=>{var P,O,$;const I={label:"布局",items:["TABS","LAYOUT"]},E={label:"常用",items:["FORM","TABLE"]},S={label:"高级",items:["STEP","TIMELINE","CHART","SIGNATURE","AVATAR","FOLD"]},b=(P=K.slotContent.value)==null?void 0:P.filter(R=>{var i,o;return(o=I==null?void 0:I.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),j=(O=K.slotContent.value)==null?void 0:O.filter(R=>{var i,o;return(o=E==null?void 0:E.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())}),N=($=K.slotContent.value)==null?void 0:$.filter(R=>{var i,o;return(o=S==null?void 0:S.items)==null?void 0:o.includes((i=R==null?void 0:R.type)==null?void 0:i.toUpperCase())});return[{...I,items:b},{...E,items:j},{...S,items:N}]}),V=(I,E)=>{try{I.dataTransfer.clearData();const S={...E,timestamp:Date.now()};I.dataTransfer.setData("application/json",JSON.stringify(S)),I.dataTransfer.effectAllowed="copyMove",I.target.classList.add("dragging"),c("handleDragStart",E)}catch(S){console.error("Drag start error:",S)}};return(I,E)=>{const S=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",$e,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,b=>(e.openBlock(),e.createElementBlock("div",{class:"group-item",key:b==null?void 0:b.label},[e.createElementVNode("div",Fe,e.toDisplayString(b==null?void 0:b.label),1),e.createElementVNode("div",He,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b==null?void 0:b.items,(j,N)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",title:"鼠标拖动",ref_for:!0,ref_key:"dragItem",ref:w,key:N,draggable:!0,onDragstart:P=>V(P,j)},[e.createVNode(S,{name:j.icon,style:{width:"15px",height:"15px"}},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(j.name),1)],40,Oe))),128))])]))),128))])}}},Ue=oe._export_sfc(Ae,[["__scopeId","data-v-951fb5b4"]]),le=f.useModelComp(f.pinia),{pageMapState:qe}=f.storeToRefs(le),ze=f.useMenuState(),{activeMenuPath:Z}=f.storeToRefs(ze),q=e.ref([]),W=e.ref([]),Ge=e.computed(()=>[{label:"任务配置",name:"任务配置",component:{comp:"Table",name:"任务配置",isShow:!0,compData:[{key:"header",contents:[{prop:"任务名称",align:"center",isRun:!1,label:"任务名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务关键词",align:"center",isRun:!1,label:"任务关键词",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行任务",align:"center",isRun:!1,label:"执行任务",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"执行交互",align:"center",isRun:!1,label:"执行交互",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"任务状态",align:"center",isRun:!1,label:"任务状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"创建时间",align:"center",isRun:!1,label:"创建时间",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:q.value}]}},{label:"任务关联",name:"任务关联",component:{comp:"Table",name:"任务关联",isShow:!0,compData:[{key:"header",contents:[{prop:"关联名称",align:"center",isRun:!1,label:"关联名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联形式",align:"center",isRun:!1,label:"关联形式",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"关联任务集合",align:"center",isRun:!1,label:"关联任务集合",isRoute:!1,isTableColHidden:!0,isFormColHidden:!1},{prop:"关联状态",align:"center",isRun:!1,label:"关联状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作"}]},{key:"rowButton",contents:[{label:"访问"},{label:"删除"}]},{key:"extraButton",contents:[{label:"创建"},{label:"批量删除"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:W.value}]}}]),M=e.ref([]),Ve=e.computed(()=>{var l;return(l=M.value)==null?void 0:l.map((n,d)=>({value:n==null?void 0:n.id,label:n==null?void 0:n.name}))}),te=e.ref("data"),Y=e.ref("任务配置"),Q=e.ref({}),z=e.ref(null),A=e.reactive({width:"30%",title:"任务配置",type:"创建",show:!1}),Ke=()=>{A.show=!1},je=(l,n)=>{var r,y,c,w,h,V,I,E,S;if(Q.value=f.cloneDeep(n),l==="删除")return Y.value==="任务配置"?q.value=(r=q.value)==null?void 0:r.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id)):Y.value==="任务关联"&&(W.value=(y=W.value)==null?void 0:y.filter(b=>(b==null?void 0:b.id)!==(n==null?void 0:n.id))),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:(c=z.value)==null?void 0:c.id,results:q.value},任务关联:{pageKey:Z.value,compId:(w=z.value)==null?void 0:w.id,results:W.value}});const d=n?(h=Object.keys(n))==null?void 0:h[1]:"";Y.value==="任务配置"?A.title=`当前配置:${(V=z.value)==null?void 0:V.name}>任务配置>【${(n==null?void 0:n[d])||l}】`:Y.value==="任务关联"&&(A.title=`当前配置:${(I=z.value)==null?void 0:I.name}>任务关联>【${(n==null?void 0:n[d])||l}】`),A.type=typeof((E=Q.value)==null?void 0:E.id)=="string"||!((S=Q.value)!=null&&S.id)?"创建":"编辑",A.show=l==="创建"||l==="访问"},Pe=l=>{var n;typeof l=="number"&&(z.value=(n=M.value)==null?void 0:n[l],Xe()),te.value="data"},We=l=>{},Ye=l=>{var n,d;switch(Y.value){case"任务配置":A.type==="创建"?q.value.push(l==null?void 0:l.data):q.value=(n=q.value)==null?void 0:n.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break;case"任务关联":A.type==="创建"?W.value.push(l==null?void 0:l.data):W.value=(d=W.value)==null?void 0:d.map(r=>{var y;return(r==null?void 0:r.id)===((y=l==null?void 0:l.data)==null?void 0:y.id)?{...r,...l==null?void 0:l.data}:r});break}console.log("handleTableData:",q.value,l,A.type),le.setItemExtendData({任务配置:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:q.value},任务关联:{pageKey:Z.value,compId:l==null?void 0:l.compId,results:W.value}}),A.show=!1},Je=l=>{var n,d;if((l==null?void 0:l.buttonName)==="取消")A.show=!1;else if((l==null?void 0:l.buttonName)==="保存"){const r={compId:(n=z.value)==null?void 0:n.id,data:{...l==null?void 0:l.content,id:(d=Q.value)==null?void 0:d.id}};Ye(r)}},Ne=(l,n)=>{var c,w;const{target:d,styleConfigs:r}=l;if(!r)return;const y=r==null?void 0:r.reduce((h,V)=>(h[V.prop]=V.value,h),{});n?M.value=(w=M.value)==null?void 0:w.map(h=>(h==null?void 0:h.id)===(n==null?void 0:n.id)?{...h,...y}:h):M.value=(c=M.value)==null?void 0:c.map(h=>({...h,...y})),le.setItemData(M.value)},Te=l=>{},Ee=(l,n)=>{var d;return(d=l==null?void 0:l.filter(r=>{var y,c,w,h,V;return((c=(y=r==null?void 0:r.key)==null?void 0:y.relatedInfo)==null?void 0:c.target)===n&&((h=(w=r==null?void 0:r.key)==null?void 0:w.relatedInfo)==null?void 0:h.compId)===((V=z.value)==null?void 0:V.id)}))==null?void 0:d.map(r=>{var y;return{...(y=r==null?void 0:r.value)==null?void 0:y.tableData,id:r==null?void 0:r.id}})},Xe=()=>{var n,d;const l=(d=(n=qe.value)==null?void 0:n[Z.value])==null?void 0:d.filter(r=>{var y;return((y=r==null?void 0:r.key)==null?void 0:y.type)==="extend"});(l==null?void 0:l.length)!==0&&(q.value=Ee(l,"任务配置"),W.value=Ee(l,"任务关联"))},Qe={class:"fill-content"},Ze={class:"overall-config-wrapper"},et={class:"operate-content"},tt=["onClick"],lt={class:"collapse-title-item",title:"编辑"},at={key:1},ot=["onClick"],nt={class:"icon-content"},st={key:0,class:"edit-content"},rt=["onClick"],ct={title:"设置"},ut=["onClick"],it={class:"parent-main"},dt={style:{display:"flex","justify-content":"space-between"}},pt={title:"样式"},vt={title:"交互"},ft={title:"扩展"},ht={style:{width:"100%","max-height":"500px",overflow:"auto"}},mt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,originalData:r}=f.storeToRefs(n),y=f.useMenuState(),{activeMenuPath:c}=f.storeToRefs(y);e.ref([]);const w=e.ref([]),h=e.ref([]),V=e.ref([]),I=e.computed(()=>{var i,o,g,v;return((i=M.value)==null?void 0:i.length)>0&&(o=M.value)!=null&&o.every(m=>{var L,F;return(m==null?void 0:m.comp)===((F=(L=M.value)==null?void 0:L[0])==null?void 0:F.comp)})?(v=(g=M.value)==null?void 0:g[0])==null?void 0:v.comp:null}),E=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!0),v));h.value=o},S=i=>{var g;let o=(g=f.cloneDeep(h.value))==null?void 0:g.map((v,m)=>(i===m&&(v.content=!1),v));h.value=o,M.value=f.cloneDeep(d.value)},b=(i,o)=>{var L;let g=(L=f.cloneDeep(h.value))==null?void 0:L.map((F,u)=>(i===u&&(F.content=!1),F));h.value=g;const v=f.cloneDeep(d.value),m=v==null?void 0:v.filter((F,u)=>(u===i&&(F.name=o),F));n.setOriginalData(m),n.setItemData(m)},j=i=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.map((v,m)=>((v==null?void 0:v.name)===(i==null?void 0:i.name)?v.isShow=!(i!=null&&i.isShow):v.isShow=v.isShow,v));d.value=g};e.watch(()=>d.value,()=>{var i,o,g,v;!d.value||((i=d.value)==null?void 0:i.length)===0?M.value=[]:M.value=(o=d.value)==null?void 0:o.filter(m=>(m==null?void 0:m.comp)!=="methodButton"),w.value=M.value,h.value=(g=f.cloneDeep(w.value))==null?void 0:g.map((m,L)=>({id:L,content:!1})),V.value=(v=f.cloneDeep(w.value))==null?void 0:v.map((m,L)=>({id:L,isShow:m==null?void 0:m.isShow}))},{deep:!0,immediate:!0});const N=i=>K.getComponent(i),P=(i,o,g,v)=>{var L,F;if(!i)return;let m=f.cloneDeep(d.value);m=(L=m==null?void 0:m.map((u,_)=>{if(v&&_===g){const{compData:p,itemChildData:U}=i;return u.compData=p,u.itemChildData=U,u}return _===g&&(u.compData=i),u}))==null?void 0:L.filter(u=>(u==null?void 0:u.comp)!=="methodButton"),h.value=(F=f.cloneDeep(m))==null?void 0:F.map((u,_)=>({id:_,content:!1})),n.setOriginalData(m),n.setItemData(m)},O=e.ref(null),$=(i,o)=>{if(!o){n.setActiveItemIndex(i);return}n.setActiveItemIndex(-1)},R=i=>{Le.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=f.cloneDeep(d.value),g=o==null?void 0:o.filter((v,m)=>m!==i);n.setOriginalData(g),n.setItemData(g),n.setActiveItemIndex(-1),Me.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(i,o)=>{var F;const g=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-tab-pane"),m=e.resolveComponent("el-card"),L=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",Qe,[o[10]||(o[10]=e.createElementVNode("div",{class:"fill-operate"},"操作栏",-1)),e.createElementVNode("div",Ze,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(I.value+"style")),{target:"overall",optionItems:e.unref(Ve),compType:I.value,comp:(F=e.unref(M))==null?void 0:F[0],onChange:e.unref(Ne)},null,40,["optionItems","compType","comp","onChange"]))]),e.createElementVNode("div",et,[e.createVNode(Se.default,{class:"collapse-content",collapseContents:e.unref(M),accordion:!0,onChange:e.unref(Pe),ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:u,index:_,isActive:p})=>{var U,T,H,a,s,C,D,k,G,J;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:x=>$(_,p)},[e.createElementVNode("div",lt,[(T=(U=h.value)==null?void 0:U.find(x=>x.id===_))!=null&&T.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:u.name&&u.name!==""?"8px":"0px"})},e.toDisplayString(u.name),5)),(a=(H=h.value)==null?void 0:H.find(x=>x.id===_))!=null&&a.content?(e.openBlock(),e.createElementBlock("div",at,[e.createVNode(Ie.ssInput,{modelValue:u.name,"onUpdate:modelValue":x=>u.name=x,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),(C=(s=h.value)==null?void 0:s.find(x=>x.id===_))!=null&&C.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(x=>E(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Edit",style:{width:"13px",height:"13px"}})],8,ot))]),e.createElementVNode("div",nt,[(k=(D=h.value)==null?void 0:D.find(x=>x.id===_))!=null&&k.content?(e.openBlock(),e.createElementBlock("div",st,[e.createVNode(g,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(x=>S(_),["stop"])},null,8,["onClick"]),e.createVNode(g,{name:"Save",onClick:e.withModifiers(x=>b(_,u.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(J=(G=h.value)==null?void 0:G.find(x=>x.id===_))!=null&&J.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(x=>R(_),["stop"]),class:"icon-content"},[e.createVNode(g,{name:"Delete",style:{width:"16px",height:"16px"}})],8,rt))])],8,tt)]}),content:e.withCtx(({item:u,index:_})=>[e.createVNode(L,{modelValue:e.unref(te),"onUpdate:modelValue":o[2]||(o[2]=p=>e.isRef(te)?te.value=p:null),class:"config-tabs",onTabClick:$},{default:e.withCtx(()=>[e.createVNode(v,{label:"设置",name:"data"},{label:e.withCtx(()=>[e.createElementVNode("span",ct,[e.createVNode(g,{name:"LowCodeSetting",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[3]||(o[3]=e.createTextVNode("设置"))])]),default:e.withCtx(()=>{var p,U;return[e.createElementVNode("div",{class:"comp-child",onClick:T=>$(_)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(u.comp+"Operate")),{itemContents:u==null?void 0:u.compData,originalItemContents:(U=(p=w.value)==null?void 0:p.find((T,H)=>H===_))==null?void 0:U.compData,itemChildData:u==null?void 0:u.itemChildData,onChange:(T,H)=>P(T,u,_,H)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,ut),e.createElementVNode("div",it,[o[5]||(o[5]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",dt,[o[4]||(o[4]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(Ie._sfc_main$1,{value:V.value.find(T=>T.id===_).isShow,"onUpdate:value":T=>V.value.find(H=>H.id===_).isShow=T,onClick:T=>j(u)},null,8,["value","onUpdate:value","onClick"])])])]}),_:2},1024),e.createVNode(v,{label:"样式",name:"style"},{label:e.withCtx(()=>[e.createElementVNode("span",pt,[e.createVNode(g,{name:"LowCodeStyle",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[6]||(o[6]=e.createTextVNode("样式"))])]),default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((u==null?void 0:u.comp)+"style")),{target:"alone",compType:u==null?void 0:u.comp,comp:u,optionItems:e.unref(Ve),onChange:p=>e.unref(Ne)(p,u)},null,40,["compType","comp","optionItems","onChange"]))]),_:2},1024),e.createVNode(v,{label:"交互",name:"event"},{label:e.withCtx(()=>[e.createElementVNode("span",vt,[e.createVNode(g,{name:"LowCodeEvent",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[7]||(o[7]=e.createTextVNode("交互"))])]),default:e.withCtx(()=>[o[8]||(o[8]=e.createTextVNode(" 交互 "))]),_:1,__:[8]}),e.createVNode(v,{label:"扩展",name:"extend"},{label:e.withCtx(()=>[e.createElementVNode("span",ft,[e.createVNode(g,{name:"LowCodeExtend",style:{width:"15px",height:"15px","margin-right":"5px"}}),o[9]||(o[9]=e.createTextVNode("扩展"))])]),default:e.withCtx(()=>[e.createVNode(L,{"tab-position":"left",modelValue:e.unref(Y),"onUpdate:modelValue":o[1]||(o[1]=p=>e.isRef(Y)?Y.value=p:null),class:"extend-tabs",onTabChange:e.unref(We)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Ge),(p,U)=>(e.openBlock(),e.createBlock(v,{key:p==null?void 0:p.name,label:p==null?void 0:p.label,name:p==null?void 0:p.name},{default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>{var T,H,a;return[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N((T=p==null?void 0:p.component)==null?void 0:T.comp)),{compItem:p==null?void 0:p.component,itemData:(H=p==null?void 0:p.component)==null?void 0:H.compData,childItemData:(a=p==null?void 0:p.component)==null?void 0:a.itemChildData,key:U,level:1,onChange:e.unref(Te),onOnButtonClick:e.unref(je)},null,40,["compItem","itemData","childItemData","onChange","onOnButtonClick"]))]}),_:2},1024)]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue","onTabChange"])]),_:1})]),_:2},1032,["modelValue"])]),_:1},8,["collapseContents","onChange"])]),e.createVNode(Re.ssDialog,{class:"task-dialog-wrapper",visible:e.unref(A).show,title:e.unref(A).title,dialogWidth:e.unref(A).width,onBeforeDestroy:e.unref(Ke)},{default:e.withCtx(()=>{var u,_;return[e.createElementVNode("div",ht,[e.unref(z)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N(((u=e.unref(z))==null?void 0:u.comp)+"extend")),{key:0,target:"alone",comp:e.unref(z),extendItem:e.unref(Q),compType:(_=e.unref(z))==null?void 0:_.comp,activeTabName:e.unref(Y),relatedData:e.unref(q),onChange:e.unref(Te),onOnButtonClick:e.unref(Je)},null,40,["comp","extendItem","compType","activeTabName","relatedData","onChange","onOnButtonClick"])):e.createCommentVNode("",!0)])]}),_:1},8,["visible","title","dialogWidth","onBeforeDestroy"])])}}},gt=oe._export_sfc(mt,[["__scopeId","data-v-0ecba574"]]),Ct={style:{display:"flex"}},kt={style:{display:"flex"}},yt={key:2},_t={key:4,style:{"margin-top":"30px"}},bt={__name:"index",setup(l){const n=f.useModelComp(f.pinia),{itemData:d,activeItemIndex:r,pageMapState:y}=f.storeToRefs(n),c=e.ref([]),w=e.ref(0),h=e.ref(""),V=f.useMenuState(f.pinia),{activeMenuPath:I}=f.storeToRefs(V),E=e.ref(null),S=e.ref(null),b=e.ref(24),j=e.ref(2),N=e.ref([]),P=e.ref([]),O=e.computed(()=>{var a,s,C;return{default:!i.value&&!R.value&&$.value==="vertical"&&((a=c.value)==null?void 0:a.length)>0,grid:i.value&&!R.value&&$.value==="vertical",tab:$.value==="horizontal"&&((s=c.value)==null?void 0:s.length)>0,step:R.value&&$.value==="vertical"&&((C=c.value)==null?void 0:C.length)>0}}),$=e.computed(()=>{var a,s,C,D;return((a=c.value)==null?void 0:a.length)>0&&((s=c.value)!=null&&s.every(k=>k==null?void 0:k.layout))?(D=(C=c.value)==null?void 0:C[0])==null?void 0:D.layout:"vertical"}),R=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isStepLayout}),i=e.computed(()=>{var a,s;return(s=(a=c.value)==null?void 0:a[0])==null?void 0:s.isGridLayout}),o=e.ref(null),g=e.computed(()=>{var a,s,C;return((a=c.value)==null?void 0:a.length)>0&&$.value==="horizontal"?(C=(s=c.value)==null?void 0:s[0])==null?void 0:C.name:""}),v=(a,s)=>{w.value=s,o.value=a},m=a=>{var k;if(!a)return;let s=null;const C=f.cloneDeep(c.value);if(r.value>=0&&(s=C==null?void 0:C[r.value]),s&&s.comp==="Layout"){const{compData:G=[]}=s;((k=G==null?void 0:G.find(x=>{const{key:ee}=x;return ee==="children"}))==null?void 0:k.contents).push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(C);return}const D=f.cloneDeep(c.value);D.push({comp:a.comp,name:a.name,compData:[]}),n.setItemData(D),T(D)},L=a=>{a.preventDefault(),a.dataTransfer.dropEffect="copy"},F=async a=>{try{const s=a.dataTransfer.getData("application/json");if(!s)return;const C=JSON.parse(s),D=await u(a),k=_(C,D);await e.nextTick(),p(k),m(JSON.parse(s||"")),console.log("drop"),U()}catch(s){console.error("Drop error:",s),U()}},u=async a=>E.value?new Promise(s=>{requestAnimationFrame(()=>{const C=E.value.getBoundingClientRect(),D=a.clientX-C.left,k=a.clientY,G=Math.floor(D/(C.width/b.value)),J=Math.floor(k/(C.width/b.value));s({x:Math.max(0,G),y:Math.max(0,J),w:b.value,h:j.value})})}):{x:0,y:0},_=(a,s)=>{var D,k;const C=`item_${Date.now()}_${(k=(D=Math.random())==null?void 0:D.toString(36))==null?void 0:k.substring(2,9)}`;return{i:C,id:C,x:s.x,y:s.y,w:s.w,h:s.h,component:a,minW:2,minH:2}},p=a=>{T([...N.value,a],!0)},U=()=>{document.querySelectorAll(".dragging").forEach(a=>{a.classList.remove("dragging")})},T=(a,s)=>{N.value=s?a:K.generateLayouts(a),n.setItemGridData({pageKey:I.value,results:N.value}),V.setContentLoading(!1)};e.watch(()=>O.value.step,a=>{var s;a&&v((s=c.value)==null?void 0:s[0],1)},{immediate:!0}),e.watch(()=>O.value.grid,a=>{var s,C;!a&&((s=N.value)==null?void 0:s.length)>0&&n.setItemGridData({pageKey:I.value,results:(C=N.value)==null?void 0:C.map(D=>D==null?void 0:D.id),isDelete:!0})},{immediate:!0}),e.watch(()=>d.value,a=>{var s,C,D;V.setContentLoading(!0),c.value=!a||(a==null?void 0:a.length)===0?[]:(s=f.cloneDeep(a))==null?void 0:s.filter(k=>!(k!=null&&k.affix)||(k==null?void 0:k.affix)==="default"),P.value=!a||(a==null?void 0:a.length)===0?[]:(C=f.cloneDeep(a))==null?void 0:C.filter(k=>(k==null?void 0:k.affix)&&(k==null?void 0:k.affix)!=="default"),(D=O.value)!=null&&D.grid&&T(c.value)},{deep:!0,immediate:!0});const H=a=>K.getComponent(a);return(a,s)=>{var J,x,ee,ne,se,re,ce,ue,ie,de,pe,ve;const C=e.resolveComponent("el-tab-pane"),D=e.resolveComponent("el-tabs"),k=e.resolveComponent("el-step"),G=e.resolveComponent("el-steps");return e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:E,class:"low-code-wrapper",onDragover:L,onDrop:F},[(J=O.value)!=null&&J.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(t,B)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:B},[e.createElementVNode("div",Ct,e.toDisplayString(t.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t.comp)),{itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport},pageLayout:$.value,parentTableId:t==null?void 0:t.tableId,children:t==null?void 0:t.children,level:1},null,8,["itemData","childItemData","config","pageLayout","parentTableId","children"]))]))),128)):e.createCommentVNode("",!0),(x=O.value)!=null&&x.grid?(e.openBlock(),e.createBlock(e.unref(K.De),{key:1,ref_key:"gridLayoutRef",ref:S,layout:N.value,"onUpdate:layout":s[0]||(s[0]=t=>N.value=t),"prevent-collision":!1,"is-draggable":!0,"is-resizable":!0,responsive:!1,"col-num":24,margin:[8,16]},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(t,B)=>{var ae,fe;return e.openBlock(),e.createBlock(e.unref(K.st),{key:t.i,x:t.x,y:t.y,"min-h":t.minH,"max-h":t.maxH,"min-w":t.minW,w:t.w,h:e.unref(K.verifyButton)((ae=c.value[B])==null?void 0:ae.comp)?0:t.h,i:t.i,class:e.normalizeClass(e.unref(K.verifyButton)((fe=c.value[B])==null?void 0:fe.comp)?"grid-method-button":"")},{default:e.withCtx(()=>{var he,me,ge,Ce,ke,ye,_e,be,De,we,xe,Be;return[e.createElementVNode("div",{class:e.normalizeClass((me=P.value)!=null&&me.includes((he=t==null?void 0:t.component)==null?void 0:he.id)?"comp-wrapper affix-content":"comp-wrapper")},[e.createElementVNode("div",kt,e.toDisplayString((ge=c.value[B])==null?void 0:ge.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((Ce=c.value[B])==null?void 0:Ce.comp)),{pageLayout:$.value,itemData:(ke=c.value[B])==null?void 0:ke.compData,childItemData:(ye=c.value[B])==null?void 0:ye.itemChildData,index:((_e=c.value[B])==null?void 0:_e.id)??B,parentTableId:(be=c.value[B])==null?void 0:be.tableId,children:(De=c.value[B])==null?void 0:De.children,level:1,config:{showIndex:(we=c.value[B])==null?void 0:we.showIndex,allowMove:(xe=c.value[B])==null?void 0:xe.allowMove,viewport:(Be=c.value[B])==null?void 0:Be.viewport}},null,8,["pageLayout","itemData","childItemData","index","parentTableId","children","config"]))],2)]}),_:2},1032,["x","y","min-h","max-h","min-w","w","h","i","class"])}),128))]),_:1},8,["layout"])):e.createCommentVNode("",!0),(ee=O.value)!=null&&ee.tab?(e.openBlock(),e.createElementBlock("div",yt,[e.createVNode(D,{modelValue:g.value,"onUpdate:modelValue":s[1]||(s[1]=t=>g.value=t),type:"card",class:"display-tabs"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(C,{key:t.i,label:t==null?void 0:t.name,name:t==null?void 0:t.name},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H(t==null?void 0:t.comp)),{pageLayout:$.value,itemData:t==null?void 0:t.compData,childItemData:t==null?void 0:t.itemChildData,key:B,config:{showIndex:t==null?void 0:t.showIndex,allowMove:t==null?void 0:t.allowMove,viewport:t==null?void 0:t.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0),(ne=O.value)!=null&&ne.step?(e.openBlock(),e.createBlock(G,{key:3,direction:"horizontal",active:w.value,"align-center":!0,class:"display-steps"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(t,B)=>(e.openBlock(),e.createBlock(k,{key:B,class:"step-item",status:h.value,onClick:ae=>v(t,B+1)},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t==null?void 0:t.name),1)]),_:2},1032,["status","onClick"]))),128))]),_:1},8,["active"])):e.createCommentVNode("",!0),(se=O.value)!=null&&se.step?(e.openBlock(),e.createElementBlock("div",_t,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H((re=o.value)==null?void 0:re.comp)),{pageLayout:$.value,itemData:(ce=o.value)==null?void 0:ce.compData,childItemData:(ue=o.value)==null?void 0:ue.itemChildData,key:(ie=o.value)==null?void 0:ie.id,config:{showIndex:(de=o.value)==null?void 0:de.showIndex,allowMove:(pe=o.value)==null?void 0:pe.allowMove,viewport:(ve=o.value)==null?void 0:ve.viewport}},null,8,["pageLayout","itemData","childItemData","config"]))])):e.createCommentVNode("",!0)],544)}}},Dt=oe._export_sfc(bt,[["__scopeId","data-v-fda67a9b"]]),X=e.ref(0),wt=l=>l.reduce((d,r)=>{var c,w;const y=Object.values(d);return(((c=Object.keys(d))==null?void 0:c.length)===0||y[y.length-1].length>=(r==null?void 0:r.width))&&(d[X.value]=[],X.value++),d[X.value-1].push(r),((w=Object.keys(d))==null?void 0:w.length)===(r==null?void 0:r.width)&&(d[X.value]=[],X.value++),d},{});exports.arrayToNumberArray=wt;exports.modelFill=gt;exports.modelSelect=Ue;exports.modelShow=Dt;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-DCvXCyim.cjs"),_=require("./index-RxhzPX2O.cjs"),m=require("./index-C_jSP6_B.cjs"),h=require("./index-CWj9Cx0n.cjs"),l=require("./index-CBXWBaIT.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-DCvXCyim.cjs"),_=require("./index-CjUJhL0d.cjs"),m=require("./index-C_jSP6_B.cjs"),h=require("./index-Cin7sFfV.cjs"),l=require("./index-CBXWBaIT.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
@@ -1,5 +1,5 @@
1
1
  import { ref as s, defineComponent as f, createElementBlock as m, openBlock as u, createElementVNode as e, createVNode as p, unref as t } from "vue";
2
- import { s as b } from "./index-4R5V1wmx.js";
2
+ import { s as b } from "./index-BPn4voi8.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const g = () => {
5
5
  const i = s("角色管理"), a = s(), o = s([
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-RxhzPX2O.cjs"),y=require("./index-Dc6Q0f3F.cjs"),n=require("./index-CBXWBaIT.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),b=require("./index-CjUJhL0d.cjs"),y=require("./index-Dc6Q0f3F.cjs"),n=require("./index-CBXWBaIT.cjs"),g=n.useModelComp(),{itemData:i}=n.storeToRefs(g),u=o.ref(0),m=o.ref([{label:"机构名称",value:"",name:"deptName"}]),D=e=>{console.log("handleQueryChange",e)},c=o.ref([{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"编辑"},{label:"删除"}]},{key:"header",contents:[{label:"职位名称",prop:"postName"},{label:"职位排序",formType:"Number",prop:"postOrder"},{label:"备注",formType:"TextArea",prop:"remark"},{label:"操作"}]},{key:"tableContents",contents:[]}]),f=e=>{n.submitTableAsyncByVerify(e.singleContent,e.buttonName,u.value)},h=e=>{console.log("onDoubleClick",e)},C=(e,a)=>{console.log("onButtonClick",e,a)},k=async e=>{const a=await n.handleSubmitAsync(y.getInsofDataApi,{key:{type:"data",systemKey:sessionStorage.getItem("systemKey"),pageKey:e}},"查询"),l=a==null?void 0:a.map(t=>{var r;return{id:t.id,tableData:(r=t==null?void 0:t.value)==null?void 0:r.tableData}});return l==null?void 0:l.map(t=>{var r;if(Array.isArray(t==null?void 0:t.tableData)){let s={id:t.id};return(r=t==null?void 0:t.tableData)==null||r.forEach((d,p)=>{s[`a${p}`]=d}),s}else return{...t.tableData,id:t.id}})},_={comp:"Group",name:"/系统管理/职位管理",compData:[{key:"groupContents",contents:[{comp:"Table",compData:c.value,name:""}]}]};o.watch(()=>i.value,e=>{var a;e&&(e==null?void 0:e.length)>0&&(c.value=(a=e==null?void 0:e[0])==null?void 0:a.compData)});const S=Object.freeze(Object.defineProperty({__proto__:null,getPageDataAsync:k,handleItemDataChange:f,handleQueryChange:D,onButtonClick:C,onDoubleClick:h,pageData:c,queryFormData:m,structureId:u,tempPostPageData:_},Symbol.toStringTag,{value:"Module"})),T=o.defineComponent({__name:"index",setup(e){const a=o.reactive({...S}),l=n.useMenuState(),{activeMenuPath:t}=n.storeToRefs(l);return o.onMounted(async()=>{a.structureId=await n.getActivePageStructureId(t.value)}),(r,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createVNode(b.ssTable,{itemData:a.pageData,onChange:a.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=T;