super-page-designer 2.2.22 → 2.2.24

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 (48) hide show
  1. package/dist/es/components/design/utils/page-explore-util.js +10 -10
  2. package/dist/es/components/design/utils/page-permission-util.js +35 -33
  3. package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +24 -22
  4. package/dist/es/components/design/views/assemblys/chart/common/common-attr-clickset.vue.js +39 -36
  5. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +43 -40
  6. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +43 -40
  7. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +14 -13
  9. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +33 -30
  10. package/dist/es/components/design/views/assemblys/chart/gauge/gauge-design.vue2.js +25 -23
  11. package/dist/es/components/design/views/assemblys/chart/pie/pie-design.vue2.js +25 -23
  12. package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +33 -30
  13. package/dist/es/components/design/views/assemblys/chart/radar/radar-design.vue2.js +25 -23
  14. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +38 -35
  15. package/dist/es/components/design/views/assemblys/chart/scatter/scatter-design.vue2.js +23 -21
  16. package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +60 -57
  17. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +36 -33
  18. package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +44 -41
  19. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  20. package/dist/es/components/design/views/assemblys/common/{common-variable-bind.vue2.js → common-variable-bind.vue3.js} +8 -8
  21. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +25 -25
  22. package/dist/es/components/design/views/assemblys/common-attr-events.vue.js +14 -12
  23. package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +78 -74
  24. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  25. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +111 -107
  26. package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +41 -39
  27. package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-design.vue2.js +10 -8
  28. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +26 -22
  29. package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +41 -37
  30. package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +30 -26
  31. package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +30 -26
  32. package/dist/es/components/design/views/assemblys/form/common/uploading.vue.js +1 -1
  33. package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +30 -26
  34. package/dist/es/components/design/views/assemblys/form/radio/radio-design.vue2.js +12 -10
  35. package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +29 -26
  36. package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +18 -15
  37. package/dist/es/components/design/views/assemblys/object-design.vue.js +28 -20
  38. package/dist/es/components/design/views/assemblys/page/page-attr-permissions.vue.js +38 -34
  39. package/dist/es/components/design/views/design/page-event/{config.vue.js → config.vue2.js} +2 -2
  40. package/dist/es/components/design/views/design/page-event/config.vue3.js +43 -40
  41. package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +48 -45
  42. package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +22 -22
  43. package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +67 -63
  44. package/dist/es/components/design/views/design/view/view-design-display.vue.js +92 -89
  45. package/dist/es/stores/event-undo-redo-store.d.ts +4 -1
  46. package/dist/es/stores/event-undo-redo-store.js +5 -2
  47. package/dist/es/style.css +13 -13
  48. package/package.json +3 -3
@@ -1,203 +1,207 @@
1
- import { defineComponent as e, ref as l, onMounted as a, resolveComponent as u, createElementBlock as t, openBlock as n, createElementVNode as d, createCommentVNode as i, createTextVNode as o, createVNode as r, createBlock as p, withCtx as s, withDirectives as v, toDisplayString as c, unref as f, vShow as m, Fragment as y, renderList as g } from "vue";
2
- import { Plus as h, EditPen as b, Document as x, Delete as U } from "@element-plus/icons-vue";
3
- import { getUuidv4 as _ } from "../../../../utils/common-util.js";
4
- import { ElMessage as k, ElMessageBox as O } from "element-plus";
5
- import { getTopGroupHeaderList as T, setGroupHeaderDataDisplayOrder as C, addColumnToGroupHeaders as V, isLeafNode as H } from "../../../../utils/data-table-util.js";
6
- import N from "../../../../utils/eventBus.js";
7
- const w = { key: 0 }, E = { style: { display: "flex", margin: "8px 0" } }, L = { key: 0 }, G = { key: 1 }, $ = { key: 0, id: "menu", ref: "headerMenu", class: "context-menu" }, R = { key: 5, id: "menu-4994-1-6", tabindex: "-1" }, S = { class: "dialog-footer" }, D = { class: "dialog-footer" }, j = e({ __name: "composite-header", props: { configure: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
8
- const j2 = e2, M = l(false), B = l({}), P = l(null), q = l(false), I = l(null);
9
- let J = {};
10
- const F = l([]), X = l(false), Y = l([]);
1
+ import { defineComponent as e, ref as l, onMounted as a, onUnmounted as u, resolveComponent as t, createElementBlock as n, openBlock as i, createElementVNode as d, createCommentVNode as o, createTextVNode as r, createVNode as p, createBlock as s, withCtx as v, withDirectives as c, toDisplayString as f, unref as m, vShow as y, Fragment as g, renderList as h } from "vue";
2
+ import { Plus as b, EditPen as x, Document as U, Delete as _ } from "@element-plus/icons-vue";
3
+ import { getUuidv4 as k } from "../../../../utils/common-util.js";
4
+ import { ElMessage as O, ElMessageBox as T } from "element-plus";
5
+ import { getTopGroupHeaderList as C, setGroupHeaderDataDisplayOrder as V, addColumnToGroupHeaders as H, isLeafNode as N } from "../../../../utils/data-table-util.js";
6
+ import w from "../../../../utils/eventBus.js";
7
+ const E = { key: 0 }, L = { style: { display: "flex", margin: "8px 0" } }, G = { key: 0 }, $ = { key: 1 }, R = { key: 0, id: "menu", ref: "headerMenu", class: "context-menu" }, S = { key: 5, id: "menu-4994-1-6", tabindex: "-1" }, D = { class: "dialog-footer" }, j = { class: "dialog-footer" }, M = e({ __name: "composite-header", props: { configure: { type: Object, default: () => ({ props: {} }) } }, setup(e2) {
8
+ const M2 = e2, B = l(false), P = l({}), q = l(null), I = l(false), J = l(null);
9
+ let F = {};
10
+ const X = l([]), Y = l(false), z = l([]);
11
11
  l(null);
12
- const z = l([]), A = l({}), K = l(false), Q = l(null), W = l(j2.configure.props.groupHeaders), Z = l(null);
13
- function ee(e3) {
14
- !e3 || j2.configure.props.groupHeaders && 0 !== j2.configure.props.groupHeaders.length || (J = j2.configure.items, ue(), ae());
12
+ const A = l([]), K = l({}), Q = l(false), W = l(null), Z = l(M2.configure.props.groupHeaders), ee = l(null);
13
+ function le(e3) {
14
+ !e3 || M2.configure.props.groupHeaders && 0 !== M2.configure.props.groupHeaders.length || (F = M2.configure.items, te(), ue());
15
15
  }
16
16
  a(() => {
17
- Y.value = T(W.value);
17
+ z.value = C(Z.value);
18
18
  });
19
- const le = l([]);
20
- function ae() {
19
+ const ae = l([]);
20
+ function ue() {
21
21
  let e3 = 1;
22
- j2.configure.props.groupHeaders = [], J.forEach((l2) => {
22
+ M2.configure.props.groupHeaders = [], F.forEach((l2) => {
23
23
  if ("$selection" !== l2.props.base.prop && "$index" !== l2.props.base.prop && "operation" !== l2.props.base.prop) {
24
- let a2 = { uuid: _(), columnUuid: l2.uuid, titleText: l2.props.base.name, isLeaf: true, prop: l2.props.base.prop, displayOrder: e3++ };
25
- j2.configure.props.groupHeaders.push(a2);
24
+ let a2 = { uuid: k(), columnUuid: l2.uuid, titleText: l2.props.base.name, isLeaf: true, prop: l2.props.base.prop, displayOrder: e3++ };
25
+ M2.configure.props.groupHeaders.push(a2);
26
26
  }
27
- }), W.value = j2.configure.props.groupHeaders, ne(), Y.value = T(W.value);
27
+ }), Z.value = M2.configure.props.groupHeaders, de(), z.value = C(Z.value);
28
28
  }
29
- function ue() {
30
- F.value = [], J.forEach((e3) => {
29
+ function te() {
30
+ X.value = [], F.forEach((e3) => {
31
31
  if ("$selection" !== e3.props.base.prop && "$index" !== e3.props.base.prop && "operation" !== e3.props.base.prop) {
32
- const l2 = W.value.filter((l3) => l3.columnUuid && l3.columnUuid === e3.uuid);
33
- l2 && 0 !== l2.length || F.value.push(e3);
32
+ const l2 = Z.value.filter((l3) => l3.columnUuid && l3.columnUuid === e3.uuid);
33
+ l2 && 0 !== l2.length || X.value.push(e3);
34
34
  }
35
35
  });
36
36
  }
37
- function te() {
38
- P.value.validate((e3) => {
37
+ function ne() {
38
+ q.value.validate((e3) => {
39
39
  if (e3) {
40
40
  let e4;
41
- B.value.uuid ? (e4 = me(B.value.uuid), e4.titleText = B.value.titleText, e4.displayOrder = B.value.displayOrder, void 0 !== B.value.displayOrder && null !== B.value.displayOrder || C(B.value.parentUuid, e4, W.value), M.value = false) : (B.value.uuid = _(), void 0 !== B.value.displayOrder && null !== B.value.displayOrder || C(B.value.parentUuid, B.value, W.value), W.value.push(B.value), M.value = false), ne(), B.value.parentUuid ? Z.value.append(B.value, A.value) : Y.value = T(W.value), K.value && ye();
41
+ P.value.uuid ? (e4 = ge(P.value.uuid), e4.titleText = P.value.titleText, e4.displayOrder = P.value.displayOrder, void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, e4, Z.value), B.value = false) : (P.value.uuid = k(), void 0 !== P.value.displayOrder && null !== P.value.displayOrder || V(P.value.parentUuid, P.value, Z.value), Z.value.push(P.value), B.value = false), de(), P.value.parentUuid ? ee.value.append(P.value, K.value) : z.value = C(Z.value), Q.value && he();
42
42
  }
43
43
  });
44
44
  }
45
- function ne() {
46
- j2.configure.props.isChangeGroupHeader = false, setTimeout(() => {
47
- j2.configure.props.isChangeGroupHeader = true;
45
+ let ie;
46
+ function de() {
47
+ ie && clearTimeout(ie), M2.configure.props.isChangeGroupHeader = false, ie = setTimeout(() => {
48
+ M2.configure.props.isChangeGroupHeader = true;
48
49
  }, 1);
49
50
  }
50
- function de() {
51
- if (!B.value.columnUuid) return false;
52
- const e3 = J.filter((e4) => e4.uuid === B.value.columnUuid);
51
+ function oe() {
52
+ if (!P.value.columnUuid) return false;
53
+ const e3 = F.filter((e4) => e4.uuid === P.value.columnUuid);
53
54
  return !!(e3 && e3.length > 0);
54
55
  }
55
- function ie(e3, l2) {
56
- q.value = false, A.value = l2;
56
+ function re(e3, l2) {
57
+ I.value = false, K.value = l2;
57
58
  }
58
- function oe(e3, l2) {
59
- q.value = true;
59
+ function pe(e3, l2) {
60
+ I.value = true;
60
61
  const a2 = document.querySelector("#menu"), u2 = document.documentElement.scrollTop || document.body.scrollTop;
61
62
  a2.style.display = "block", a2.style.left = e3.clientX + 30 + "px", a2.style.top = e3.clientY + u2 - 22 + "px";
62
63
  }
63
- function re(e3) {
64
- "updateCombinedHeader" === e3 ? (B.value = A.value.data, B.value.id = 1, M.value = true, q.value = false) : "createCombinedHeader" === e3 ? (B.value = {}, B.value.parentUuid = A.value.data.uuid, M.value = true, q.value = false) : "addListColumn" === e3 ? (ue(), z.value = [], X.value = true, q.value = false) : "moveToRootNode" === e3 ? (!function() {
65
- const e4 = me(A.value.data.uuid);
66
- e4 && (e4.parentUuid = null, A.value.parentUuid = null);
67
- Y.value = T(W.value), ne();
68
- }(), q.value = false) : "childMoveToRootNode" === e3 ? (A.value.childNodes.forEach((e4) => {
69
- const l2 = me(e4.data.uuid);
64
+ function se(e3) {
65
+ "updateCombinedHeader" === e3 ? (P.value = K.value.data, P.value.id = 1, B.value = true, I.value = false) : "createCombinedHeader" === e3 ? (P.value = {}, P.value.parentUuid = K.value.data.uuid, B.value = true, I.value = false) : "addListColumn" === e3 ? (te(), A.value = [], Y.value = true, I.value = false) : "moveToRootNode" === e3 ? (!function() {
66
+ const e4 = ge(K.value.data.uuid);
67
+ e4 && (e4.parentUuid = null, K.value.parentUuid = null);
68
+ z.value = C(Z.value), de();
69
+ }(), I.value = false) : "childMoveToRootNode" === e3 ? (K.value.childNodes.forEach((e4) => {
70
+ const l2 = ge(e4.data.uuid);
70
71
  l2 && (l2.parentUuid = null, e4.parentUuid = null);
71
- }), Y.value = T(W.value), ne(), q.value = false) : "deleteNode" === e3 ? (A.value && A.value.data && function() {
72
- const e4 = A.value, l2 = A.value.data, a2 = l2.parentUuid, u2 = A.value.parent, t2 = W.value.filter((e5) => e5.parentUuid === l2.uuid);
73
- if (t2 && t2.length > 0) return void k({ showClose: true, type: "warning", message: "请先删除子节点" });
74
- O.confirm("确认删除节点[" + l2.titleText + "]吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
75
- const t3 = W.value.findIndex((e5) => e5.uuid === l2.uuid);
76
- if (null != t3 && t3 >= 0 && (W.value.splice(t3, 1), ne()), u2) {
77
- const e5 = W.value.filter((e6) => e6.uuid === a2);
72
+ }), z.value = C(Z.value), de(), I.value = false) : "deleteNode" === e3 ? (K.value && K.value.data && function() {
73
+ const e4 = K.value, l2 = K.value.data, a2 = l2.parentUuid, u2 = K.value.parent, t2 = Z.value.filter((e5) => e5.parentUuid === l2.uuid);
74
+ if (t2 && t2.length > 0) return void O({ showClose: true, type: "warning", message: "请先删除子节点" });
75
+ T.confirm("确认删除节点[" + l2.titleText + "]吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then(() => {
76
+ const t3 = Z.value.findIndex((e5) => e5.uuid === l2.uuid);
77
+ if (null != t3 && t3 >= 0 && (Z.value.splice(t3, 1), de()), u2) {
78
+ const e5 = Z.value.filter((e6) => e6.uuid === a2);
78
79
  e5 && e5.length > 0 ? u2.data.isLeaf = false : u2.data.isLeaf = true, u2.loaded = false, u2.expand();
79
80
  }
80
- if (k({ showClose: true, type: "success", message: "删除成功" }), l2.columnUuid) {
81
- const a3 = J.filter((e5) => e5.uuid === l2.columnUuid);
81
+ if (O({ showClose: true, type: "success", message: "删除成功" }), l2.columnUuid) {
82
+ const a3 = F.filter((e5) => e5.uuid === l2.columnUuid);
82
83
  if (a3 && a3.length > 0) {
83
84
  const l3 = a3[0];
84
- V(l3, null, W.value), ne();
85
+ H(l3, null, Z.value), de();
85
86
  const u3 = function(e5) {
86
- return fe(e5);
87
+ return ye(e5);
87
88
  }(e4);
88
89
  u3.loaded = false, u3.expand();
89
90
  }
90
91
  }
91
92
  });
92
- }(), q.value = false) : "mobileNode" === e3 && (pe.value = true);
93
- }
94
- N.$on("setFieldGroup", (e3) => {
95
- e3.length > 0 && (le.value = e3);
96
- }), N.$on("synchroGroupHeadersData", () => {
97
- Y.value = T(W.value);
93
+ }(), I.value = false) : "mobileNode" === e3 && (ve.value = true);
94
+ }
95
+ w.$on("setFieldGroup", (e3) => {
96
+ e3.length > 0 && (ae.value = e3);
97
+ }), w.$on("synchroGroupHeadersData", () => {
98
+ z.value = C(Z.value);
99
+ }), u(() => {
100
+ ie && clearTimeout(ie), _e && clearTimeout(_e);
98
101
  });
99
- const pe = l(false), se = l([]);
100
- function ve(e3) {
101
- if (!e3 && se.value.length > 0) {
102
- const e4 = me(A.value.data.uuid);
103
- e4 && (e4.parentUuid = se.value[se.value.length - 1], A.value.parentUuid = se.value[se.value.length - 1]), Y.value = T(W.value), ne(), pe.value = false;
102
+ const ve = l(false), ce = l([]);
103
+ function fe(e3) {
104
+ if (!e3 && ce.value.length > 0) {
105
+ const e4 = ge(K.value.data.uuid);
106
+ e4 && (e4.parentUuid = ce.value[ce.value.length - 1], K.value.parentUuid = ce.value[ce.value.length - 1]), z.value = C(Z.value), de(), ve.value = false;
104
107
  }
105
108
  }
106
- function ce() {
107
- z.value.forEach((e3) => {
108
- const l2 = F.value.filter((l3) => l3.uuid === e3);
109
+ function me() {
110
+ A.value.forEach((e3) => {
111
+ const l2 = X.value.filter((l3) => l3.uuid === e3);
109
112
  if (l2 && l2.length > 0) {
110
113
  const e4 = l2[0];
111
- V(e4, A.value.data.uuid, W.value), ne();
114
+ H(e4, K.value.data.uuid, Z.value), de();
112
115
  }
113
- }), A.value && (A.value.loaded = false, A.value.expand()), K.value && ye(), X.value = false;
116
+ }), K.value && (K.value.loaded = false, K.value.expand()), Q.value && he(), Y.value = false;
114
117
  }
115
- function fe(e3) {
116
- return e3.parent ? fe(e3.parent) : e3;
118
+ function ye(e3) {
119
+ return e3.parent ? ye(e3.parent) : e3;
117
120
  }
118
- function me(e3) {
119
- const l2 = W.value.filter((l3) => l3.uuid === e3);
121
+ function ge(e3) {
122
+ const l2 = Z.value.filter((l3) => l3.uuid === e3);
120
123
  if (l2 && l2.length > 0) return l2[0];
121
124
  }
122
- function ye() {
123
- q.value = false, K.value = true;
124
- const e3 = I.value;
125
+ function he() {
126
+ I.value = false, Q.value = true;
127
+ const e3 = J.value;
125
128
  if (e3) {
126
- const l2 = W.value.filter((l3) => l3.titleText.indexOf(e3) >= 0);
129
+ const l2 = Z.value.filter((l3) => l3.titleText.indexOf(e3) >= 0);
127
130
  let a2 = JSON.parse(JSON.stringify(l2));
128
131
  a2.forEach((e4) => {
129
- e4.isTheLeaf = H(e4, W.value), ge(e4, e4, e4.titleText);
130
- }), Y.value = a2;
131
- } else K.value = false, Y.value = T(W.value);
132
+ e4.isTheLeaf = N(e4, Z.value), be(e4, e4, e4.titleText);
133
+ }), z.value = a2;
134
+ } else Q.value = false, z.value = C(Z.value);
132
135
  }
133
- function ge(e3, l2, a2) {
136
+ function be(e3, l2, a2) {
134
137
  const u2 = l2.parentUuid;
135
138
  if (u2) {
136
- const l3 = W.value.filter((e4) => e4.uuid === u2);
139
+ const l3 = Z.value.filter((e4) => e4.uuid === u2);
137
140
  if (l3 && l3.length > 0) {
138
141
  const u3 = l3[0];
139
- ge(e3, u3, a2 = a2 ? u3.titleText + "/" + a2 : u3.titleText);
142
+ be(e3, u3, a2 = a2 ? u3.titleText + "/" + a2 : u3.titleText);
140
143
  }
141
144
  } else e3.fullPath = a2;
142
145
  }
143
- function he(e3, l2) {
144
- N.$emit("hadleDragging", true), Q.value = e3;
146
+ function xe(e3, l2) {
147
+ w.$emit("hadleDragging", true), W.value = e3;
145
148
  }
146
- function be(e3, l2, a2) {
149
+ function Ue(e3, l2, a2) {
147
150
  let u2 = true;
148
151
  return l2.data.columnUuid && "inner" === a2 && (u2 = false), u2;
149
152
  }
150
- function xe(e3, l2, a2, u2) {
153
+ let _e;
154
+ function ke(e3, l2, a2, u2) {
151
155
  let t2 = l2.data;
152
156
  let n2;
153
- const d2 = me(e3.data.uuid);
157
+ const i2 = ge(e3.data.uuid);
154
158
  if ("after" === a2) !function(e4, l3) {
155
159
  const a3 = e4.parentUuid;
156
160
  let u3 = e4.displayOrder;
157
161
  null == u3 && (u3 = 0);
158
- let t3 = W.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
162
+ let t3 = Z.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
159
163
  t3 && t3.length > 0 ? (t3 = t3.sort((e5, l4) => e5.displayOrder - l4.displayOrder), l3.displayOrder = t3[0].displayOrder + 1, t3.forEach((e5) => {
160
164
  e5.displayOrder = e5.displayOrder + 1;
161
165
  })) : l3.displayOrder = u3 + 1;
162
- ne();
163
- }(t2, d2), n2 = t2.parentUuid, d2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (Q.value = null, Y.value = T(W.value));
166
+ de();
167
+ }(t2, i2), n2 = t2.parentUuid, i2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (W.value = null, z.value = C(Z.value));
164
168
  else if ("before" === a2) !function(e4, l3) {
165
169
  const a3 = e4.parentUuid;
166
170
  let u3 = e4.displayOrder;
167
171
  null == u3 && (u3 = 0);
168
172
  l3.displayOrder = u3, e4.displayOrder = u3 + 1;
169
- let t3 = W.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
173
+ let t3 = Z.value.filter((l4) => l4.parentUuid === a3 && l4.uuid !== e4.uuid && l4.displayOrder > u3);
170
174
  t3 && t3.length > 0 && (t3 = t3.sort((e5, l4) => e5.displayOrder - l4.displayOrder), t3.forEach((e5) => {
171
175
  e5.displayOrder = e5.displayOrder + 1;
172
176
  }));
173
- ne();
174
- }(t2, d2), n2 = t2.parentUuid, d2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (Q.value = null, Y.value = T(W.value));
177
+ de();
178
+ }(t2, i2), n2 = t2.parentUuid, i2.parentUuid = n2, l2.parent ? (l2.parent.loaded = false, l2.parent.expand()) : (W.value = null, z.value = C(Z.value));
175
179
  else if ("inner" === a2 && !t2.columnUuid) {
176
180
  !function(e5, l3) {
177
181
  let a3;
178
182
  e5 && (a3 = e5.uuid);
179
- C(a3, l3, W.value), ne();
180
- }(t2, d2), n2 = t2.uuid, d2.parentUuid = n2;
181
- const e4 = me(n2);
182
- e4.isLeaf = H(e4, W.value), l2.loaded = false, l2.expand();
183
+ V(a3, l3, Z.value), de();
184
+ }(t2, i2), n2 = t2.uuid, i2.parentUuid = n2;
185
+ const e4 = ge(n2);
186
+ e4.isLeaf = N(e4, Z.value), l2.loaded = false, l2.expand();
183
187
  }
184
- if (Q.value && !t2.columnUuid) {
185
- const e4 = Q.value.parent;
188
+ if (W.value && !t2.columnUuid) {
189
+ const e4 = W.value.parent;
186
190
  e4 && (e4.loaded = false, e4.expand());
187
191
  }
188
192
  if (t2.columnUuid) {
189
193
  const e4 = l2.parent;
190
194
  e4 && (e4.loaded = false, e4.expand());
191
195
  }
192
- setTimeout(() => {
193
- N.$emit("hadleDragging", false);
196
+ _e && clearTimeout(_e), _e = setTimeout(() => {
197
+ w.$emit("hadleDragging", false);
194
198
  }, 50);
195
199
  }
196
200
  return (l2, a2) => {
197
- const _2 = u("el-switch"), k2 = u("el-button"), O2 = u("el-input"), T2 = u("el-tree"), C2 = u("el-icon"), V2 = u("el-cascader"), H2 = u("el-form-item"), N2 = u("el-form"), j3 = u("el-dialog"), J2 = u("el-checkbox"), Q2 = u("el-col"), W2 = u("el-row"), ue2 = u("el-checkbox-group");
198
- return n(), t("div", null, [d("div", null, [a2[19] || (a2[19] = o(" 是否启用")), r(_2, { modelValue: e2.configure.props.base.isEnableGroupHeader, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.props.base.isEnableGroupHeader = l3), onChange: ee }, null, 8, ["modelValue"]), e2.configure.props.base.isEnableGroupHeader ? (n(), p(k2, { key: 0, style: { "margin-left": "10px" }, type: "primary", onClick: ae }, { default: s(() => a2[17] || (a2[17] = [o("重置")])), _: 1 })) : i("", true), e2.configure.props.base.isEnableGroupHeader ? (n(), p(k2, { key: 1, type: "primary", onClick: a2[1] || (a2[1] = (e3) => (B.value = {}, void (M.value = true))) }, { default: s(() => a2[18] || (a2[18] = [o("添加顶级菜单")])), _: 1 })) : i("", true)]), e2.configure.props.base.isEnableGroupHeader ? (n(), t("div", w, [d("div", E, [r(O2, { modelValue: I.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => I.value = e3), placeholder: "Search...", clearable: "", class: "input-with-select", onInput: ye }, null, 8, ["modelValue"])]), r(T2, { ref_key: "groupTreeRef", ref: Z, style: { "max-width": "600px" }, data: Y.value, draggable: !K.value, props: { isLeaf: "isLeaf", children: "children", label: "titleText" }, "node-key": "uuid", onNodeClick: ie, onNodeContextmenu: oe, onNodeDrop: xe, onNodeDragStart: he, "allow-drop": be }, { default: s(({ data: e3 }) => [K.value && e3.fullPath ? (n(), t("span", L, c(e3.fullPath), 1)) : (n(), t("span", G, c(e3.titleText), 1))]), _: 1 }, 8, ["data", "draggable"]), v(d("div", null, [A.value.data ? (n(), t("ul", $, [A.value.data.columnUuid ? i("", true) : (n(), t("li", { key: 0, id: "menu-4994-1-0", class: "menu__item", tabindex: "-1", onClick: a2[3] || (a2[3] = () => re("createCombinedHeader")) }, [r(C2, null, { default: s(() => [r(f(h))]), _: 1 }), a2[20] || (a2[20] = o(" 创建节点 "))])), A.value.data.columnUuid ? i("", true) : (n(), t("li", { key: 1, id: "menu-4994-1-1", class: "menu__item", tabindex: "-1", onClick: a2[4] || (a2[4] = () => re("updateCombinedHeader")) }, [r(C2, null, { default: s(() => [r(f(b))]), _: 1 }), a2[21] || (a2[21] = o(" 修改节点 "))])), A.value.data.parentUuid && !pe.value ? (n(), t("li", { key: 2, id: "menu-4994-1-3", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[5] || (a2[5] = () => re("moveToRootNode")) }, [r(C2, null, { default: s(() => [r(f(x))]), _: 1 }), a2[22] || (a2[22] = o(" 移至根节点 "))])) : i("", true), A.value.isLeaf || A.value.isTheLeaf || A.value.data.columnUuid || pe.value ? i("", true) : (n(), t("li", { key: 3, id: "menu-4994-1-4", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[6] || (a2[6] = () => re("childMoveToRootNode")) }, [r(C2, null, { default: s(() => [r(f(x))]), _: 1 }), a2[23] || (a2[23] = o(" 子节点移至根节点 "))])), pe.value ? i("", true) : (n(), t("li", { key: 4, id: "menu-4994-1-5", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[7] || (a2[7] = () => re("mobileNode")) }, [r(C2, null, { default: s(() => [r(f(U))]), _: 1 }), a2[24] || (a2[24] = o(" 移动节点 "))])), pe.value ? (n(), t("li", R, [r(V2, { props: { value: "uuid", label: "titleText", children: "children", checkStrictly: true }, modelValue: se.value, "onUpdate:modelValue": a2[8] || (a2[8] = (e3) => se.value = e3), options: le.value, onVisibleChange: ve }, null, 8, ["modelValue", "options"])])) : i("", true), A.value.data.columnUuid ? i("", true) : (n(), t("li", { key: 6, id: "menu-4994-1-7", class: "menu__item", tabindex: "-1", onClick: a2[9] || (a2[9] = () => re("deleteNode")) }, [r(C2, null, { default: s(() => [r(f(U))]), _: 1 }), a2[25] || (a2[25] = o(" 删除节点 "))]))], 512)) : i("", true)], 512), [[m, q.value]]), M.value ? (n(), p(j3, { key: 0, modelValue: M.value, "onUpdate:modelValue": a2[13] || (a2[13] = (e3) => M.value = e3), title: "组合表头", width: "500" }, { footer: s(() => [d("div", S, [r(k2, { onClick: a2[12] || (a2[12] = (e3) => M.value = false) }, { default: s(() => a2[26] || (a2[26] = [o("取消")])), _: 1 }), r(k2, { type: "primary", onClick: te }, { default: s(() => a2[27] || (a2[27] = [o(" 确认 ")])), _: 1 })])]), default: s(() => [r(N2, { ref_key: "formRef", ref: P, model: B.value, "label-width": "auto", style: { "max-width": "600px" } }, { default: s(() => [r(H2, { label: "名称", required: "" }, { default: s(() => [r(O2, { modelValue: B.value.titleText, "onUpdate:modelValue": a2[10] || (a2[10] = (e3) => B.value.titleText = e3), disabled: de() }, null, 8, ["modelValue", "disabled"])]), _: 1 }), r(H2, { label: "显示顺序" }, { default: s(() => [r(O2, { modelValue: B.value.displayOrder, "onUpdate:modelValue": a2[11] || (a2[11] = (e3) => B.value.displayOrder = e3), modelModifiers: { number: true } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue"])) : i("", true), X.value ? (n(), p(j3, { key: 1, modelValue: X.value, "onUpdate:modelValue": a2[16] || (a2[16] = (e3) => X.value = e3), title: "请选择字段", width: "500" }, { footer: s(() => [d("div", D, [r(k2, { onClick: a2[15] || (a2[15] = (e3) => X.value = false) }, { default: s(() => a2[28] || (a2[28] = [o("取消")])), _: 1 }), r(k2, { type: "primary", onClick: ce }, { default: s(() => a2[29] || (a2[29] = [o(" 确认 ")])), _: 1 })])]), default: s(() => [r(ue2, { modelValue: z.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e3) => z.value = e3) }, { default: s(() => [r(W2, null, { default: s(() => [(n(true), t(y, null, g(F.value, (e3) => (n(), p(Q2, { span: 6, key: e3.uuid }, { default: s(() => [r(J2, { label: e3.props.base.name, value: e3.uuid }, null, 8, ["label", "value"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : i("", true)])) : i("", true)]);
201
+ const u2 = t("el-switch"), k2 = t("el-button"), O2 = t("el-input"), T2 = t("el-tree"), C2 = t("el-icon"), V2 = t("el-cascader"), H2 = t("el-form-item"), N2 = t("el-form"), w2 = t("el-dialog"), M3 = t("el-checkbox"), F2 = t("el-col"), W2 = t("el-row"), Z2 = t("el-checkbox-group");
202
+ return i(), n("div", null, [d("div", null, [a2[19] || (a2[19] = r(" 是否启用")), p(u2, { modelValue: e2.configure.props.base.isEnableGroupHeader, "onUpdate:modelValue": a2[0] || (a2[0] = (l3) => e2.configure.props.base.isEnableGroupHeader = l3), onChange: le }, null, 8, ["modelValue"]), e2.configure.props.base.isEnableGroupHeader ? (i(), s(k2, { key: 0, style: { "margin-left": "10px" }, type: "primary", onClick: ue }, { default: v(() => a2[17] || (a2[17] = [r("重置")])), _: 1 })) : o("", true), e2.configure.props.base.isEnableGroupHeader ? (i(), s(k2, { key: 1, type: "primary", onClick: a2[1] || (a2[1] = (e3) => (P.value = {}, void (B.value = true))) }, { default: v(() => a2[18] || (a2[18] = [r("添加顶级菜单")])), _: 1 })) : o("", true)]), e2.configure.props.base.isEnableGroupHeader ? (i(), n("div", E, [d("div", L, [p(O2, { modelValue: J.value, "onUpdate:modelValue": a2[2] || (a2[2] = (e3) => J.value = e3), placeholder: "Search...", clearable: "", class: "input-with-select", onInput: he }, null, 8, ["modelValue"])]), p(T2, { ref_key: "groupTreeRef", ref: ee, style: { "max-width": "600px" }, data: z.value, draggable: !Q.value, props: { isLeaf: "isLeaf", children: "children", label: "titleText" }, "node-key": "uuid", onNodeClick: re, onNodeContextmenu: pe, onNodeDrop: ke, onNodeDragStart: xe, "allow-drop": Ue }, { default: v(({ data: e3 }) => [Q.value && e3.fullPath ? (i(), n("span", G, f(e3.fullPath), 1)) : (i(), n("span", $, f(e3.titleText), 1))]), _: 1 }, 8, ["data", "draggable"]), c(d("div", null, [K.value.data ? (i(), n("ul", R, [K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 0, id: "menu-4994-1-0", class: "menu__item", tabindex: "-1", onClick: a2[3] || (a2[3] = () => se("createCombinedHeader")) }, [p(C2, null, { default: v(() => [p(m(b))]), _: 1 }), a2[20] || (a2[20] = r(" 创建节点 "))])), K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 1, id: "menu-4994-1-1", class: "menu__item", tabindex: "-1", onClick: a2[4] || (a2[4] = () => se("updateCombinedHeader")) }, [p(C2, null, { default: v(() => [p(m(x))]), _: 1 }), a2[21] || (a2[21] = r(" 修改节点 "))])), K.value.data.parentUuid && !ve.value ? (i(), n("li", { key: 2, id: "menu-4994-1-3", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[5] || (a2[5] = () => se("moveToRootNode")) }, [p(C2, null, { default: v(() => [p(m(U))]), _: 1 }), a2[22] || (a2[22] = r(" 移至根节点 "))])) : o("", true), K.value.isLeaf || K.value.isTheLeaf || K.value.data.columnUuid || ve.value ? o("", true) : (i(), n("li", { key: 3, id: "menu-4994-1-4", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[6] || (a2[6] = () => se("childMoveToRootNode")) }, [p(C2, null, { default: v(() => [p(m(U))]), _: 1 }), a2[23] || (a2[23] = r(" 子节点移至根节点 "))])), ve.value ? o("", true) : (i(), n("li", { key: 4, id: "menu-4994-1-5", class: "menu__item context-menuLi", tabindex: "-1", onClick: a2[7] || (a2[7] = () => se("mobileNode")) }, [p(C2, null, { default: v(() => [p(m(_))]), _: 1 }), a2[24] || (a2[24] = r(" 移动节点 "))])), ve.value ? (i(), n("li", S, [p(V2, { props: { value: "uuid", label: "titleText", children: "children", checkStrictly: true }, modelValue: ce.value, "onUpdate:modelValue": a2[8] || (a2[8] = (e3) => ce.value = e3), options: ae.value, onVisibleChange: fe }, null, 8, ["modelValue", "options"])])) : o("", true), K.value.data.columnUuid ? o("", true) : (i(), n("li", { key: 6, id: "menu-4994-1-7", class: "menu__item", tabindex: "-1", onClick: a2[9] || (a2[9] = () => se("deleteNode")) }, [p(C2, null, { default: v(() => [p(m(_))]), _: 1 }), a2[25] || (a2[25] = r(" 删除节点 "))]))], 512)) : o("", true)], 512), [[y, I.value]]), B.value ? (i(), s(w2, { key: 0, modelValue: B.value, "onUpdate:modelValue": a2[13] || (a2[13] = (e3) => B.value = e3), title: "组合表头", width: "500" }, { footer: v(() => [d("div", D, [p(k2, { onClick: a2[12] || (a2[12] = (e3) => B.value = false) }, { default: v(() => a2[26] || (a2[26] = [r("取消")])), _: 1 }), p(k2, { type: "primary", onClick: ne }, { default: v(() => a2[27] || (a2[27] = [r(" 确认 ")])), _: 1 })])]), default: v(() => [p(N2, { ref_key: "formRef", ref: q, model: P.value, "label-width": "auto", style: { "max-width": "600px" } }, { default: v(() => [p(H2, { label: "名称", required: "" }, { default: v(() => [p(O2, { modelValue: P.value.titleText, "onUpdate:modelValue": a2[10] || (a2[10] = (e3) => P.value.titleText = e3), disabled: oe() }, null, 8, ["modelValue", "disabled"])]), _: 1 }), p(H2, { label: "显示顺序" }, { default: v(() => [p(O2, { modelValue: P.value.displayOrder, "onUpdate:modelValue": a2[11] || (a2[11] = (e3) => P.value.displayOrder = e3), modelModifiers: { number: true } }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 }, 8, ["model"])]), _: 1 }, 8, ["modelValue"])) : o("", true), Y.value ? (i(), s(w2, { key: 1, modelValue: Y.value, "onUpdate:modelValue": a2[16] || (a2[16] = (e3) => Y.value = e3), title: "请选择字段", width: "500" }, { footer: v(() => [d("div", j, [p(k2, { onClick: a2[15] || (a2[15] = (e3) => Y.value = false) }, { default: v(() => a2[28] || (a2[28] = [r("取消")])), _: 1 }), p(k2, { type: "primary", onClick: me }, { default: v(() => a2[29] || (a2[29] = [r(" 确认 ")])), _: 1 })])]), default: v(() => [p(Z2, { modelValue: A.value, "onUpdate:modelValue": a2[14] || (a2[14] = (e3) => A.value = e3) }, { default: v(() => [p(W2, null, { default: v(() => [(i(true), n(g, null, h(X.value, (e3) => (i(), s(F2, { span: 6, key: e3.uuid }, { default: v(() => [p(M3, { label: e3.props.base.name, value: e3.uuid }, null, 8, ["label", "value"])]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }, 8, ["modelValue"])) : o("", true)])) : o("", true)]);
199
203
  };
200
204
  } });
201
205
  export {
202
- j as default
206
+ M as default
203
207
  };
@@ -1,70 +1,72 @@
1
- import { defineComponent as e, ref as s, resolveComponent as n, createBlock as l, openBlock as t, createSlots as o, withCtx as i, createElementBlock as u, createCommentVNode as r, Fragment as a, renderList as p, normalizeClass as m, normalizeStyle as c, unref as g, toDisplayString as d, reactive as b } from "vue";
2
- import { columnCustomTittleClass as C, columnTittleStyle as f } from "../../../../utils/form-design-util.js";
3
- import { VueDraggable as y } from "vue-draggable-plus";
4
- import h from "../../../../utils/eventBus.js";
5
- import { deepCopy as x, getUuidv4 as O } from "../../../../utils/common-util.js";
6
- import k from "../../object-design.vue.js";
7
- import { ElMessage as j, ElMessageBox as W } from "element-plus";
8
- const D = ["onClick", "onMouseout", "onMouseover"], v = { key: 2 }, L = e({ __name: "table-children-column", props: { listColumns: { type: Object, default: () => {
1
+ import { defineComponent as e, ref as s, onUnmounted as n, resolveComponent as l, createBlock as o, openBlock as t, createSlots as i, withCtx as u, createElementBlock as r, createCommentVNode as a, Fragment as p, renderList as m, normalizeClass as c, normalizeStyle as g, unref as d, toDisplayString as b, reactive as C } from "vue";
2
+ import { columnCustomTittleClass as f, columnTittleStyle as y } from "../../../../utils/form-design-util.js";
3
+ import { VueDraggable as h } from "vue-draggable-plus";
4
+ import x from "../../../../utils/eventBus.js";
5
+ import { deepCopy as O, getUuidv4 as k } from "../../../../utils/common-util.js";
6
+ import j from "../../object-design.vue.js";
7
+ import { ElMessage as W, ElMessageBox as D } from "element-plus";
8
+ const v = ["onClick", "onMouseout", "onMouseover"], L = { key: 2 }, M = e({ __name: "table-children-column", props: { listColumns: { type: Object, default: () => {
9
9
  } }, selectWidget: { type: Object, default: () => {
10
10
  } }, indexObj: { type: Object, default: () => {
11
11
  } }, designProperty: { type: Object, default: () => {
12
12
  } }, configure: { type: Object, default: () => {
13
13
  } }, pageDesign: { type: Object, default: () => {
14
- } } }, emits: ["selectColumn", "onSelectWidget", "setHeaderLabel", "setColumnData", "closeMenuVisible"], setup(e2, { emit: M }) {
15
- const S = e2, B = M;
16
- function T(e3, s2) {
17
- if (!e3.props.base) return j.warning("组合表头顶级菜单不能进行列配置");
14
+ } } }, emits: ["selectColumn", "onSelectWidget", "setHeaderLabel", "setColumnData", "closeMenuVisible"], setup(e2, { emit: S }) {
15
+ const B = e2, T = S;
16
+ function w(e3, s2) {
17
+ if (!e3.props.base) return W.warning("组合表头顶级菜单不能进行列配置");
18
18
  {
19
- w(e3);
20
- let n2 = { columnData: e3, tableConfigure: S.configure };
21
- B("closeMenuVisible"), h.$emit("selectColumn", n2), P(s2.label);
19
+ $(e3);
20
+ let n2 = { columnData: e3, tableConfigure: B.configure };
21
+ T("closeMenuVisible"), x.$emit("selectColumn", n2), P(s2.label);
22
22
  }
23
23
  }
24
- function w(e3) {
25
- B("setColumnData", e3);
24
+ function $(e3) {
25
+ T("setColumnData", e3);
26
26
  }
27
27
  function P(e3) {
28
- B("setHeaderLabel", e3);
28
+ T("setHeaderLabel", e3);
29
29
  }
30
- function $(e3) {
30
+ function V(e3) {
31
31
  let s2 = "";
32
32
  return s2 = e3.props && e3.props.base && e3.props.base.name && e3.props.base.name.length > 0 ? e3.props.base.name : e3.titleText, s2;
33
33
  }
34
- function V(e3, s2) {
34
+ function _(e3, s2) {
35
35
  for (var n2 = document.getElementsByClassName(s2.id), l2 = 0; l2 < n2.length; l2++) n2[l2].style.backgroundColor = "";
36
36
  }
37
- function _(e3, s2) {
37
+ function H(e3, s2) {
38
38
  for (var n2 = document.getElementsByClassName(s2.id), l2 = 0; l2 < n2.length; l2++) n2[l2].style.backgroundColor = "rgba(88, 147, 239,.1)";
39
39
  }
40
- const H = s(false);
41
- function E(e3, s2, n2) {
42
- S.pageDesign.currentTableConfig = S.configure, H.value || B("onSelectWidget", e3, s2, n2), n2 && n2.label && P(n2.label);
40
+ const E = s(false);
41
+ function F(e3, s2, n2) {
42
+ B.pageDesign.currentTableConfig = B.configure, E.value || T("onSelectWidget", e3, s2, n2), n2 && n2.label && P(n2.label);
43
43
  }
44
- function F(e3) {
45
- const s2 = S.configure.btnList.indexOf(e3);
44
+ function N(e3) {
45
+ const s2 = B.configure.btnList.indexOf(e3);
46
46
  if (-1 == s2) return void alert("无可复制对象!");
47
- const n2 = b(x(e3));
48
- n2.uuid = O(), S.configure.btnList.splice(s2, 0, n2);
47
+ const n2 = C(O(e3));
48
+ n2.uuid = k(), B.configure.btnList.splice(s2, 0, n2);
49
49
  }
50
- function N(e3) {
51
- e3.items && e3.items.length > 0 ? W.confirm("还有子元素,确定要删除吗?", "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
52
- const s2 = S.configure.btnList, n2 = s2.indexOf(e3);
50
+ function z(e3) {
51
+ e3.items && e3.items.length > 0 ? D.confirm("还有子元素,确定要删除吗?", "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
52
+ const s2 = B.configure.btnList, n2 = s2.indexOf(e3);
53
53
  n2 > -1 && s2.splice(n2, 1);
54
54
  }).catch((e4) => {
55
- }) : S.listColumns && S.listColumns.props && S.listColumns.props.base && "operation" === S.listColumns.props.base.prop && W.confirm(`确定要删除${e3.label}吗?`, "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
56
- const s2 = S.configure.btnList, n2 = s2.indexOf(e3);
55
+ }) : B.listColumns && B.listColumns.props && B.listColumns.props.base && "operation" === B.listColumns.props.base.prop && D.confirm(`确定要删除${e3.label}吗?`, "删除", { confirmButtonText: "确认", cancelButtonText: "取消", type: "warning" }).then(() => {
56
+ const s2 = B.configure.btnList, n2 = s2.indexOf(e3);
57
57
  n2 > -1 && s2.splice(n2, 1);
58
58
  }).catch((e4) => {
59
59
  });
60
60
  }
61
- return h.$on("hadleDragging", (e3) => {
62
- H.value = e3;
63
- }), (s2, b2) => {
64
- const h2 = n("el-checkbox"), x2 = n("el-table-column");
65
- return t(), l(x2, { fixed: !(!e2.listColumns.props || !e2.listColumns.props.base || "false" === e2.listColumns.props.base.listColumnFixed) && e2.listColumns.props.base.listColumnFixed, "column-key": e2.listColumns.uuid, width: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.columnWidth ? e2.listColumns.props.base.columnWidth : 200, label: $(e2.listColumns), align: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignContent ? e2.listColumns.props.base.alignContent : e2.designProperty.alignContent, "header-align": e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignTitle ? e2.listColumns.props.base.alignTitle : e2.designProperty.alignTitle, resizable: "" }, o({ default: i(() => [e2.listColumns.children && e2.listColumns.children.length > 0 ? (t(true), u(a, { key: 0 }, p(e2.listColumns.children, (s3, n2) => (t(), l(L, { key: n2, listColumns: s3, designProperty: e2.designProperty, configure: e2.configure, pageDesign: e2.pageDesign, indexObj: e2.indexObj, onSetHeaderLabel: P, onOnSelectWidget: E, onSetColumnData: w, selectWidget: e2.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128)) : r("", true)]), _: 2 }, [e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "header", fn: i((s3) => [e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), l(h2, { key: 0, style: c(g(f)(e2.listColumns)), class: m(g(C)(e2.listColumns)), onClick: (n2) => T(e2.listColumns, s3.column), onMouseout: (e3) => V(0, s3.column), onMouseover: (e3) => _(0, s3.column) }, null, 8, ["style", "class", "onClick", "onMouseout", "onMouseover"])) : (t(), u("div", { key: 1, style: c(g(f)(e2.listColumns)), class: m(g(C)(e2.listColumns)), onClick: (n2) => T(e2.listColumns, s3.column), onMouseout: (e3) => V(0, s3.column), onMouseover: (e3) => _(0, s3.column) }, d($(e2.listColumns)), 47, D))]), key: "0" }, e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "default", fn: i((s3) => [e2.listColumns.props && e2.listColumns.props.base && "operation" === e2.listColumns.props.base.prop ? (t(), l(g(y), { key: 0, modelValue: S.configure.btnList, "onUpdate:modelValue": b2[0] || (b2[0] = (e3) => S.configure.btnList = e3), animation: 300, style: { width: "100%", height: "100%", display: "inline-flex" }, group: "amb-assembly-item", ghostClass: "amb-item-ghost" }, { default: i(() => [(t(true), u(a, null, p(S.configure.btnList, (n2) => (t(), l(k, { key: n2, pageDesign: e2.pageDesign, configure: n2, selectWidget: e2.selectWidget, indexObj: e2.indexObj, errorBlank: true, onOnSelectWidget: (e3, n3) => E(e3, n3, s3.column), onOnCopy: F, onOnDelete: N }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnSelectWidget"]))), 128))]), _: 2 }, 1032, ["modelValue"])) : e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), l(h2, { key: 1 })) : e2.listColumns.props && e2.listColumns.props.base && "$index" === e2.listColumns.props.base.prop ? (t(), u("span", v, "1")) : (t(), l(k, { key: 3, configure: e2.listColumns, pageDesign: e2.pageDesign, errorBlank: true, selectWidget: e2.selectWidget, indexObj: e2.indexObj, onOnSelectWidget: (e3, n2) => E(e3, n2, s3.column), showSelectedClass: false }, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj", "onOnSelectWidget"]))]), key: "1" }]), 1032, ["fixed", "column-key", "width", "label", "align", "header-align"]);
61
+ return x.$on("hadleDragging", (e3) => {
62
+ E.value = e3;
63
+ }), n(() => {
64
+ x.$off("hadleDragging");
65
+ }), (s2, n2) => {
66
+ const C2 = l("el-checkbox"), x2 = l("el-table-column");
67
+ return t(), o(x2, { fixed: !(!e2.listColumns.props || !e2.listColumns.props.base || "false" === e2.listColumns.props.base.listColumnFixed) && e2.listColumns.props.base.listColumnFixed, "column-key": e2.listColumns.uuid, width: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.columnWidth ? e2.listColumns.props.base.columnWidth : 200, label: V(e2.listColumns), align: e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignContent ? e2.listColumns.props.base.alignContent : e2.designProperty.alignContent, "header-align": e2.listColumns.props && e2.listColumns.props.base && e2.listColumns.props.base.alignTitle ? e2.listColumns.props.base.alignTitle : e2.designProperty.alignTitle, resizable: "" }, i({ default: u(() => [e2.listColumns.children && e2.listColumns.children.length > 0 ? (t(true), r(p, { key: 0 }, m(e2.listColumns.children, (s3, n3) => (t(), o(M, { key: n3, listColumns: s3, designProperty: e2.designProperty, configure: e2.configure, pageDesign: e2.pageDesign, indexObj: e2.indexObj, onSetHeaderLabel: P, onOnSelectWidget: F, onSetColumnData: $, selectWidget: e2.selectWidget }, null, 8, ["listColumns", "designProperty", "configure", "pageDesign", "indexObj", "selectWidget"]))), 128)) : a("", true)]), _: 2 }, [e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "header", fn: u((s3) => [e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), o(C2, { key: 0, style: g(d(y)(e2.listColumns)), class: c(d(f)(e2.listColumns)), onClick: (n3) => w(e2.listColumns, s3.column), onMouseout: (e3) => _(0, s3.column), onMouseover: (e3) => H(0, s3.column) }, null, 8, ["style", "class", "onClick", "onMouseout", "onMouseover"])) : (t(), r("div", { key: 1, style: g(d(y)(e2.listColumns)), class: c(d(f)(e2.listColumns)), onClick: (n3) => w(e2.listColumns, s3.column), onMouseout: (e3) => _(0, s3.column), onMouseover: (e3) => H(0, s3.column) }, b(V(e2.listColumns)), 47, v))]), key: "0" }, e2.listColumns.children && 0 != e2.listColumns.children.length ? void 0 : { name: "default", fn: u((s3) => [e2.listColumns.props && e2.listColumns.props.base && "operation" === e2.listColumns.props.base.prop ? (t(), o(d(h), { key: 0, modelValue: B.configure.btnList, "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => B.configure.btnList = e3), animation: 300, style: { width: "100%", height: "100%", display: "inline-flex" }, group: "amb-assembly-item", ghostClass: "amb-item-ghost" }, { default: u(() => [(t(true), r(p, null, m(B.configure.btnList, (n3) => (t(), o(j, { key: n3, pageDesign: e2.pageDesign, configure: n3, selectWidget: e2.selectWidget, indexObj: e2.indexObj, errorBlank: true, onOnSelectWidget: (e3, n4) => F(e3, n4, s3.column), onOnCopy: N, onOnDelete: z }, null, 8, ["pageDesign", "configure", "selectWidget", "indexObj", "onOnSelectWidget"]))), 128))]), _: 2 }, 1032, ["modelValue"])) : e2.listColumns.props && e2.listColumns.props.base && "$selection" === e2.listColumns.props.base.prop ? (t(), o(C2, { key: 1 })) : e2.listColumns.props && e2.listColumns.props.base && "$index" === e2.listColumns.props.base.prop ? (t(), r("span", L, "1")) : (t(), o(j, { key: 3, configure: e2.listColumns, pageDesign: e2.pageDesign, errorBlank: true, selectWidget: e2.selectWidget, indexObj: e2.indexObj, onOnSelectWidget: (e3, n3) => F(e3, n3, s3.column), showSelectedClass: false }, null, 8, ["configure", "pageDesign", "selectWidget", "indexObj", "onOnSelectWidget"]))]), key: "1" }]), 1032, ["fixed", "column-key", "width", "label", "align", "header-align"]);
66
68
  };
67
69
  } });
68
70
  export {
69
- L as default
71
+ M as default
70
72
  };
@@ -4,17 +4,19 @@ const h = e({ __name: "checkbox-design", props: { configure: { type: Object, req
4
4
  const h2 = e2;
5
5
  h2.configure.runtime || (h2.configure.runtime = {});
6
6
  const x = l([]), k = l({}), S = l(""), V = l({}), _ = l({}), w = l({});
7
- function z() {
7
+ u(h2.configure.style, () => {
8
+ p(h2.configure, k, S, V), h2.configure.runtime.style = k.value, h2.configure.runtime.class = S.value, h2.configure.runtime.headerStyle = V.value;
9
+ }, { immediate: true });
10
+ let z = setTimeout(() => {
11
+ j();
12
+ }, 10);
13
+ function j() {
8
14
  y(h2.configure, _, w), h2.configure.props.preSuffix && h2.configure.props, h2.configure.runtime.props = _.value, h2.configure.runtime.titleExceedStyle = w.value, x.value = _.value.options, null != x.value && 0 != x.value.length || (x.value = [{ label: "选项1", value: "1" }, { label: "选项2", value: "2" }]);
9
15
  }
10
- return u(h2.configure.style, () => {
11
- p(h2.configure, k, S, V), h2.configure.runtime.style = k.value, h2.configure.runtime.class = S.value, h2.configure.runtime.headerStyle = V.value;
12
- }, { immediate: true }), setTimeout(() => {
13
- z();
14
- }, 10), a(() => {
15
- b(h2.configure);
16
+ return a(() => {
17
+ b(h2.configure), z && clearTimeout(z);
16
18
  }), u(h2.configure.props, () => {
17
- z();
19
+ j();
18
20
  }), (e3, l2) => {
19
21
  const u2 = t("el-checkbox"), a2 = t("el-checkbox-group"), p2 = t("el-form-item");
20
22
  return o(), i(p2, { class: n([S.value, "remove-formLabel-formContent-blankStyle"]), "label-width": _.value.labelWidth, style: r(k.value) }, { label: s(() => [_.value.tittleShow ? (o(), v("div", { key: 0, style: r({ ...V.value, ...w.value, "padding-right": "12px" }) }, g(_.value.title), 5)) : m("", true)]), default: s(() => [c(a2, { disabled: "disabled" === _.value.state, size: _.value.size, modelValue: _.value.defaultValue, "onUpdate:modelValue": l2[0] || (l2[0] = (e4) => _.value.defaultValue = e4) }, { default: s(() => [(o(true), v(f, null, d(x.value, (e4) => (o(), i(u2, { key: e4.value, value: e4.value, label: e4.label }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["disabled", "size", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
@@ -1,37 +1,41 @@
1
- import { defineComponent as e, resolveComponent as o, createBlock as l, openBlock as n, withCtx as i, createElementVNode as r, createVNode as t, unref as a } from "vue";
2
- import { Plus as u, Delete as s } from "@element-plus/icons-vue";
1
+ import { defineComponent as e, onUnmounted as o, resolveComponent as l, createBlock as i, openBlock as n, withCtx as r, createElementVNode as t, createVNode as a, unref as u } from "vue";
2
+ import { Plus as s, Delete as c } from "@element-plus/icons-vue";
3
3
  import { getUuidv4 as p } from "../../../../utils/common-util.js";
4
- import c from "../../common/common-variable-bind.vue.js";
5
- const f = { style: { padding: "8px 0px 0px 0px" } }, d = e({ __name: "data-linkage", props: { configureProps: {} }, setup(e2) {
6
- const d2 = e2;
4
+ import f from "../../common/common-variable-bind.vue.js";
5
+ const d = { style: { padding: "8px 0px 0px 0px" } }, m = e({ __name: "data-linkage", props: { configureProps: {} }, setup(e2) {
6
+ const m2 = e2;
7
7
  function g(e3) {
8
8
  let o2 = -1;
9
- const l2 = d2.configureProps.linkages.length;
10
- for (let n2 = 0; n2 < l2; n2++) if (d2.configureProps.linkages[n2].uuid == e3.uuid) {
11
- o2 = n2;
9
+ const l2 = m2.configureProps.linkages.length;
10
+ for (let i2 = 0; i2 < l2; i2++) if (m2.configureProps.linkages[i2].uuid == e3.uuid) {
11
+ o2 = i2;
12
12
  break;
13
13
  }
14
14
  return o2;
15
15
  }
16
- function m(e3) {
16
+ function k(e3) {
17
17
  let o2 = -1;
18
18
  e3 && (o2 = g(e3));
19
19
  const l2 = { uuid: p(), fieldName: "" };
20
- d2.configureProps.linkages.splice(o2 + 1, 0, l2);
20
+ m2.configureProps.linkages.splice(o2 + 1, 0, l2);
21
21
  }
22
- return d2.configureProps.linkages || (d2.configureProps.linkages = []), 0 == d2.configureProps.linkages.length && m(null), (e3, p2) => {
23
- const k = o("el-table-column"), P = o("el-icon"), b = o("el-table"), _ = o("el-collapse-item");
24
- return n(), l(_, { title: "联动", name: "linkage", class: "amb-design-attr-group-header" }, { default: i(() => [r("div", f, [t(b, { data: e3.configureProps.linkages }, { default: i(() => [t(k, { prop: "fieldName", label: "联动变量" }, { default: i((e4) => [t(c, { modelValue: e4.row.fieldName, paramTypes: "['data','page']", "onUpdate:modelValue": (o2) => {
25
- return l2 = o2, void ((n2 = e4.row) && (n2.fieldName = l2));
26
- var l2, n2;
27
- } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), t(k, { label: "操作", width: "60" }, { default: i((e4) => [t(P, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o2) => m(e4.row) }, { default: i(() => [t(a(u))]), _: 2 }, 1032, ["onClick"]), t(P, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o2) => function(e5) {
28
- let o3 = g(e5);
29
- o3 > -1 && (d2.configureProps.linkages.splice(o3, 1), 0 == d2.configureProps.linkages.length && setTimeout(function() {
30
- m(null);
31
- }, 0));
32
- }(e4.row) }, { default: i(() => [t(a(s))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
22
+ let P;
23
+ return m2.configureProps.linkages || (m2.configureProps.linkages = []), 0 == m2.configureProps.linkages.length && k(null), o(() => {
24
+ P && clearTimeout(P);
25
+ }), (e3, o2) => {
26
+ const p2 = l("el-table-column"), b = l("el-icon"), _ = l("el-table"), h = l("el-collapse-item");
27
+ return n(), i(h, { title: "联动", name: "linkage", class: "amb-design-attr-group-header" }, { default: r(() => [t("div", d, [a(_, { data: e3.configureProps.linkages }, { default: r(() => [a(p2, { prop: "fieldName", label: "联动变量" }, { default: r((e4) => [a(f, { modelValue: e4.row.fieldName, paramTypes: "['data','page']", "onUpdate:modelValue": (o3) => {
28
+ return l2 = o3, void ((i2 = e4.row) && (i2.fieldName = l2));
29
+ var l2, i2;
30
+ } }, null, 8, ["modelValue", "onUpdate:modelValue"])]), _: 1 }), a(p2, { label: "操作", width: "60" }, { default: r((e4) => [a(b, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (o3) => k(e4.row) }, { default: r(() => [a(u(s))]), _: 2 }, 1032, ["onClick"]), a(b, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (o3) => function(e5) {
31
+ P && clearTimeout(P);
32
+ let o4 = g(e5);
33
+ o4 > -1 && (m2.configureProps.linkages.splice(o4, 1), 0 == m2.configureProps.linkages.length && (P = setTimeout(function() {
34
+ k(null);
35
+ }, 0)));
36
+ }(e4.row) }, { default: r(() => [a(u(c))]), _: 2 }, 1032, ["onClick"])]), _: 1 })]), _: 1 }, 8, ["data"])])]), _: 1 });
33
37
  };
34
38
  } });
35
39
  export {
36
- d as default
40
+ m as default
37
41
  };