fec-dev-designer 1.1.2 → 5.1.2

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 (34) hide show
  1. package/es/package.json.js +66 -0
  2. package/es/src/assets/approvalHistory.png.js +4 -0
  3. package/es/src/assets/logo.png.js +4 -0
  4. package/es/src/components/DataSourceSelect.vue.js +2 -1
  5. package/es/src/components/OptionConfig.vue.js +3 -2
  6. package/es/src/components/OptionConfig.vue2.js +2 -2
  7. package/es/src/components/ParamsConfig.vue.js +2 -2
  8. package/es/src/components/ParamsConfig.vue2.js +31 -32
  9. package/es/src/components/ValueSelector.vue2.js +49 -39
  10. package/es/src/layout/header/index.vue.js +95 -84
  11. package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
  12. package/es/src/packages/dataSource/dataSource.vue.js +98 -105
  13. package/es/src/packages/dialog/index.vue.js +443 -322
  14. package/es/src/packages/event/index.vue2.js +44 -44
  15. package/es/src/packages/event/useEventDialog.js +2 -2
  16. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
  17. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
  18. package/es/src/packages/form/aside/index.js +27 -2
  19. package/es/src/packages/form/aside/roleSelect.js +156 -0
  20. package/es/src/packages/form/aside/userSelect.js +206 -0
  21. package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
  22. package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
  23. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
  24. package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
  25. package/es/src/packages/form/index.vue.js +140 -130
  26. package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
  27. package/es/src/packages/form/property/index.vue.js +23 -22
  28. package/es/src/packages/form/property/subTable.vue.js +37 -43
  29. package/es/src/packages/form/property/widgets.vue.js +258 -202
  30. package/es/src/packages/table/aside/index.js +2 -1
  31. package/es/src/packages/table/default.js +24 -21
  32. package/es/src/packages/table/property/widgets.vue.js +63 -47
  33. package/es/style.css +1 -1
  34. package/package.json +1 -1
@@ -8,7 +8,7 @@ import "../../../node_modules/element-plus/theme-chalk/el-dropdown.css.js";
8
8
  import "../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js";
9
9
  import "../../../node_modules/element-plus/theme-chalk/el-checkbox.css.js";
10
10
  import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
11
- import { computed as W, ref as T, watch as X, openBlock as u, createElementBlock as b, createVNode as i, createElementVNode as h, withCtx as m, unref as f, normalizeClass as S, withModifiers as q, createBlock as k, createCommentVNode as V, toDisplayString as ee, nextTick as oe } from "vue";
11
+ import { computed as W, ref as D, watch as X, openBlock as u, createElementBlock as b, createVNode as i, createElementVNode as y, withCtx as m, unref as f, normalizeClass as S, withModifiers as q, createBlock as w, createCommentVNode as V, toDisplayString as ee, nextTick as oe } from "vue";
12
12
  import N from "../utils/eventBus.js";
13
13
  import "../../../node_modules/grid-layout-plus/es/index.js";
14
14
  import { VueDraggable as te } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
@@ -17,183 +17,190 @@ import ne from "./PageHeaderSetting.vue.js";
17
17
  import ae from "./PageFooterSetting.vue.js";
18
18
  import se from "./components/ComponentPreviewWrapper.vue.js";
19
19
  import ie from "./components/DividerWrapper.vue.js";
20
- import de from "./components/H2Wrapper.vue.js";
21
- import re from "./components/SubForm.vue.js";
22
- import ce from "./components/SubTable.vue.js";
23
- import { Setting as pe, Delete as ue, Lock as me, View as fe } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
24
- import { getEditConfigData as ge, getCurrentClass as ve, setHoverItem as B, setSelectedItem as he, isSelectedItem as ye } from "../utils/common.js";
25
- import { throttle as _e } from "../../../node_modules/@vexip-ui/utils/dist/index.js";
20
+ import re from "./components/H2Wrapper.vue.js";
21
+ import de from "./components/SubForm.vue.js";
22
+ import ce from "./components/ApprovalHistory.vue.js";
23
+ import pe from "./components/SubTable.vue.js";
24
+ import { Setting as ue, Delete as me, Lock as fe, View as ge } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
25
+ import { getEditConfigData as ve, getCurrentClass as ye, setHoverItem as A, setSelectedItem as he, isSelectedItem as _e } from "../utils/common.js";
26
+ import { throttle as be } from "../../../node_modules/@vexip-ui/utils/dist/index.js";
26
27
  import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
27
28
  import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
28
29
  import "./index.vue2.js";
29
- import be from "../../../_virtual/_plugin-vue_export-helper.js";
30
- import we from "../../../node_modules/grid-layout-plus/es/components/grid-layout.vue.js";
31
- import { ElMessage as xe } from "../../../node_modules/element-plus/es/components/message/index.js";
32
- import { ElIcon as ke } from "../../../node_modules/element-plus/es/components/icon/index.js";
33
- import { ElInput as Ve } from "../../../node_modules/element-plus/es/components/input/index.js";
30
+ import we from "../../../_virtual/_plugin-vue_export-helper.js";
31
+ import xe from "../../../node_modules/grid-layout-plus/es/components/grid-layout.vue.js";
32
+ import { ElMessage as ke } from "../../../node_modules/element-plus/es/components/message/index.js";
33
+ import { ElIcon as Ve } from "../../../node_modules/element-plus/es/components/icon/index.js";
34
+ import { ElInput as Te } from "../../../node_modules/element-plus/es/components/input/index.js";
34
35
  import { ElCheckbox as Ee } from "../../../node_modules/element-plus/es/components/checkbox/index.js";
35
- import { ElDropdownMenu as De, ElDropdown as Te } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
36
- import { ElForm as Ie } from "../../../node_modules/element-plus/es/components/form/index.js";
37
- import { ElScrollbar as Me } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
38
- const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, ze = ["onMouseenter", "onClick"], Se = {
36
+ import { ElDropdownMenu as De, ElDropdown as Ie } from "../../../node_modules/element-plus/es/components/dropdown/index.js";
37
+ import { ElForm as Me } from "../../../node_modules/element-plus/es/components/form/index.js";
38
+ import { ElScrollbar as Ce } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
39
+ const Fe = { class: "form-work-area" }, ze = { class: "form-grid-container" }, Se = ["onMouseenter", "onClick"], Ne = {
39
40
  key: 0,
40
41
  class: "component-toolbar"
41
- }, Ne = { class: "quick-setting-panel" }, Ue = { class: "setting-row" }, Re = { class: "setting-row" }, Ye = { class: "setting-row" }, He = ["onClick"], Pe = { class: "status-tags" }, We = {
42
+ }, Ue = { class: "quick-setting-panel" }, He = { class: "setting-row" }, Re = { class: "setting-row" }, Ye = { class: "setting-row" }, Pe = ["onClick"], We = { class: "status-tags" }, Xe = {
42
43
  key: 0,
43
44
  class: "field-name-tag"
44
- }, Xe = {
45
+ }, qe = {
45
46
  key: 1,
46
47
  class: "status-tag disabled-tag"
47
- }, qe = {
48
+ }, Ae = {
48
49
  key: 2,
49
50
  class: "status-tag readonly-tag"
50
- }, y = "drop", Be = {
51
+ }, h = "drop", Be = {
51
52
  __name: "index",
52
- setup(Oe, { expose: O }) {
53
- const p = W(() => ge()), I = T([]), d = T(p.value.fieldsData || []), _ = T(null), g = { x: 0, y: 0, w: 1, h: 1, i: "" };
53
+ setup(Oe, { expose: B }) {
54
+ const p = W(() => ve()), I = D([]), r = D(p.value.fieldsData || []), _ = D(null), g = { x: 0, y: 0, w: 1, h: 1, i: "" };
54
55
  X(
55
56
  () => p.value.columns,
56
57
  (t, o) => {
57
- if (!d.value || t === o || t > o)
58
+ if (!r.value || t === o || t > o)
58
59
  return;
59
- const l = [], n = [];
60
- if (d.value.forEach((a) => {
61
- a.i === y ? n.push(a) : a.x + a.w > t ? l.push({ ...a }) : n.push(a);
62
- }), l.length > 0) {
63
- l.sort((s, r) => s.y - r.y || s.x - r.x);
64
- const a = Math.max(...n.map((s) => s.y), -1);
65
- l.forEach((s, r) => {
66
- s.y = a + 1 + Math.floor(r / t), s.x = 0;
67
- }), d.value = [...n, ...l];
60
+ const n = [], l = [];
61
+ if (r.value.forEach((a) => {
62
+ a.i === h ? l.push(a) : a.x + a.w > t ? n.push({ ...a }) : l.push(a);
63
+ }), n.length > 0) {
64
+ n.sort((s, d) => s.y - d.y || s.x - d.x);
65
+ const a = Math.max(...l.map((s) => s.y), -1);
66
+ n.forEach((s, d) => {
67
+ s.y = a + 1 + Math.floor(d / t), s.x = 0;
68
+ }), r.value = [...l, ...n];
68
69
  }
69
70
  }
70
71
  ), X(
71
72
  () => p.value.labelPosition,
72
73
  (t) => {
73
- const o = t === "top" ? 0.75 : 1, l = ["divider", "h2"];
74
- d.value.forEach((n) => {
74
+ const o = t === "top" ? 0.75 : 1, n = [
75
+ "divider",
76
+ "h2",
77
+ "subForm",
78
+ "subTable",
79
+ "approvalHistory"
80
+ ];
81
+ r.value.forEach((l) => {
75
82
  var a;
76
- l.includes((a = n.component) == null ? void 0 : a.fieldType) && (n.h = o);
83
+ n.includes((a = l.component) == null ? void 0 : a.fieldType) && (l.h = l.h * o);
77
84
  }), _.value.resizeEvent();
78
85
  }
79
86
  );
80
- const M = T(!1);
81
- function $(t) {
87
+ const M = D(!1);
88
+ function O(t) {
82
89
  console.log("🚀 ~ handleAddToGrid ~ event:", t);
83
- const o = d.value.findIndex((n) => n.i === y);
90
+ const o = r.value.findIndex((l) => l.i === h);
84
91
  if (o !== -1) {
85
- const n = d.value[o].component;
86
- d.value[o].i = n.id, d.value[o].id = n.id, _.value.dragEvent(
92
+ const l = r.value[o].component;
93
+ r.value[o].i = l.id, r.value[o].id = l.id, _.value.dragEvent(
87
94
  "dragend",
88
- n.id,
95
+ l.id,
89
96
  g.x,
90
97
  g.y,
91
98
  g.w,
92
99
  g.h
93
100
  );
94
101
  }
95
- const l = _.value.getItem(y);
96
- if (l) {
102
+ const n = _.value.getItem(h);
103
+ if (n) {
97
104
  try {
98
- l.wrapper.style.display = "";
105
+ n.wrapper.style.display = "";
99
106
  } catch {
100
107
  }
101
108
  I.value = [], M.value = !0;
102
109
  }
103
110
  }
104
- function A(t) {
105
- var l, n, a;
106
- const o = d.value.findIndex((s) => s.i === t.i);
111
+ function $(t) {
112
+ var n, l, a;
113
+ const o = r.value.findIndex((s) => s.i === t.i);
107
114
  if (o !== -1) {
108
- const s = d.value[o];
115
+ const s = r.value[o];
109
116
  p.value.deletedFields || (p.value.deletedFields = []);
110
- const r = {
111
- label: ((l = s.component) == null ? void 0 : l.label) || "",
112
- fieldName: ((n = s.component) == null ? void 0 : n.fieldName) || "",
117
+ const d = {
118
+ label: ((n = s.component) == null ? void 0 : n.label) || "",
119
+ fieldName: ((l = s.component) == null ? void 0 : l.fieldName) || "",
113
120
  fieldType: ((a = s.component) == null ? void 0 : a.fieldType) || "",
114
121
  deleteTime: (/* @__PURE__ */ new Date()).toLocaleString("zh-CN"),
115
122
  data: s
116
123
  };
117
- p.value.deletedFields.push(r), d.value.splice(o, 1), xe.success("字段已移至回收站");
124
+ p.value.deletedFields.push(d), r.value.splice(o, 1), ke.success("字段已移至回收站");
118
125
  }
119
126
  }
120
- let w = { x: null, y: null }, E = null;
121
- const L = _e((t) => {
127
+ let x = { x: null, y: null }, T = null;
128
+ const L = be((t) => {
122
129
  if (M.value)
123
130
  return;
124
131
  const o = t.clonedData;
125
132
  if (!o)
126
133
  return;
127
- (!E || E.element !== t.to) && (E = {
134
+ (!T || T.element !== t.to) && (T = {
128
135
  element: t.to,
129
136
  rect: t.to.getBoundingClientRect()
130
137
  });
131
- const l = E.rect, n = t.originalEvent.clientX, a = t.originalEvent.clientY, s = n - l.left, r = a - l.top;
132
- if (!(w.x === null || w.y === null || Math.abs(s - w.x) > 5 || // 5px 的容差
133
- Math.abs(r - w.y) > 5))
138
+ const n = T.rect, l = t.originalEvent.clientX, a = t.originalEvent.clientY, s = l - n.left, d = a - n.top;
139
+ if (!(x.x === null || x.y === null || Math.abs(s - x.x) > 5 || // 5px 的容差
140
+ Math.abs(d - x.y) > 5))
134
141
  return;
135
- w = { x: s, y: r };
142
+ x = { x: s, y: d };
136
143
  let v = { w: 1, h: 1 };
137
144
  o.fieldType == "textarea" ? v = { w: 1, h: 2 } : o.fieldType == "divider" || o.fieldType == "h2" ? v = {
138
145
  w: p.value.columns,
139
146
  h: 1,
140
147
  isResizable: !1
141
- } : (o.fieldType == "subForm" || o.fieldType == "subTable") && (v = { w: p.value.columns, h: 2 });
142
- const e = p.value.columns, c = 60, H = 0, J = (l.width + H) / e, K = c + H, Q = Math.floor(s / J), Z = Math.floor(r / K), C = Math.max(0, Math.min(Q, e - 1)), F = Math.max(0, Z);
143
- let z = d.value.find((D) => D.i == y);
144
- z ? (z.x = C, z.y = F) : d.value.push({
148
+ } : (o.fieldType == "subForm" || o.fieldType == "subTable" || o.fieldType == "approvalHistory") && (v = { w: p.value.columns, h: 2 });
149
+ const e = p.value.columns, c = 60, Y = 0, J = (n.width + Y) / e, K = c + Y, Q = Math.floor(s / J), Z = Math.floor(d / K), C = Math.max(0, Math.min(Q, e - 1)), F = Math.max(0, Z);
150
+ let z = r.value.find((E) => E.i == h);
151
+ z ? (z.x = C, z.y = F) : r.value.push({
145
152
  x: C,
146
153
  y: F,
147
154
  w: v.w,
148
155
  h: v.h,
149
- i: y,
156
+ i: h,
150
157
  isResizable: v.isResizable !== !1,
151
158
  component: o
152
159
  }), oe(() => {
153
160
  var P;
154
- const D = d.value.findIndex((x) => x.i == y);
155
- if (D !== -1) {
156
- const x = (P = _.value) == null ? void 0 : P.getItem(y);
157
- if (!x)
161
+ const E = r.value.findIndex((k) => k.i == h);
162
+ if (E !== -1) {
163
+ const k = (P = _.value) == null ? void 0 : P.getItem(h);
164
+ if (!k)
158
165
  return;
159
166
  try {
160
- x.wrapper.style.display = "none";
167
+ k.wrapper.style.display = "none";
161
168
  } catch {
162
169
  }
163
- Object.assign(x.state, {
164
- top: r,
170
+ Object.assign(k.state, {
171
+ top: d,
165
172
  left: s
166
- }), x.calcXY(r, s), _.value.dragEvent(
173
+ }), k.calcXY(d, s), _.value.dragEvent(
167
174
  "dragstart",
168
- y,
175
+ h,
169
176
  C,
170
177
  F,
171
178
  v.h,
172
179
  v.w
173
- ), g.x = d.value[D].x, g.y = d.value[D].y, I.value = [];
180
+ ), g.x = r.value[E].x, g.y = r.value[E].y, I.value = [];
174
181
  }
175
182
  });
176
183
  });
177
184
  N.on("onFormDragStart", () => {
178
185
  M.value = !1;
179
186
  }), N.on("onFormDragEnd", (t) => {
180
- E = null, w = { x: null, y: null };
181
- const o = t.clonedData, l = t.originalEvent.clientX, n = t.originalEvent.clientY, a = document.querySelector(".form-grid-container").getBoundingClientRect();
182
- l >= a.left && l <= a.right && n >= a.top && n <= a.bottom || (_.value.dragEvent(
187
+ T = null, x = { x: null, y: null };
188
+ const o = t.clonedData, n = t.originalEvent.clientX, l = t.originalEvent.clientY, a = document.querySelector(".form-grid-container").getBoundingClientRect();
189
+ n >= a.left && n <= a.right && l >= a.top && l <= a.bottom || (_.value.dragEvent(
183
190
  "dragend",
184
- y,
191
+ h,
185
192
  g.x,
186
193
  g.y,
187
194
  g.h,
188
195
  g.w
189
- ), d.value = d.value.filter(
190
- (r) => r.i != y && r.i != o.id
196
+ ), r.value = r.value.filter(
197
+ (d) => d.i != h && d.i != o.id
191
198
  )), console.log("🚀 ~ onFormDragEnd:", t);
192
199
  }), N.on("resizeEvent", () => {
193
200
  _.value.resizeEvent();
194
201
  });
195
- const U = T(/* @__PURE__ */ new Map());
196
- function R(t) {
202
+ const U = D(/* @__PURE__ */ new Map());
203
+ function H(t) {
197
204
  return U.value.get(t) || !1;
198
205
  }
199
206
  function G(t, o) {
@@ -203,17 +210,17 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
203
210
  var t;
204
211
  return ((t = _.value) == null ? void 0 : t.state.isDragging) || !1;
205
212
  });
206
- return O({
213
+ return B({
207
214
  onFormDragMove: L
208
215
  }), (t, o) => {
209
- const l = ke, n = Ve, a = Ee, s = De, r = Te, Y = Ie, v = Me;
210
- return u(), b("div", Ce, [
216
+ const n = Ve, l = Te, a = Ee, s = De, d = Ie, R = Me, v = Ce;
217
+ return u(), b("div", Fe, [
211
218
  i(ne),
212
219
  i(le),
213
- h("div", Fe, [
220
+ y("div", ze, [
214
221
  i(v, null, {
215
222
  default: m(() => [
216
- i(Y, {
223
+ i(R, {
217
224
  class: "form-grid",
218
225
  "label-width": p.value.labelWidth,
219
226
  "label-position": p.value.labelPosition
@@ -225,14 +232,14 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
225
232
  "onUpdate:modelValue": o[2] || (o[2] = (e) => I.value = e),
226
233
  group: "dev",
227
234
  class: "grid-draggable-wrapper",
228
- onAdd: $
235
+ onAdd: O
229
236
  }, {
230
237
  default: m(() => [
231
- i(f(we), {
238
+ i(f(xe), {
232
239
  ref_key: "gridLayout",
233
240
  ref: _,
234
- layout: d.value,
235
- "onUpdate:layout": o[1] || (o[1] = (e) => d.value = e),
241
+ layout: r.value,
242
+ "onUpdate:layout": o[1] || (o[1] = (e) => r.value = e),
236
243
  "row-height": p.value.labelPosition == "top" ? 90 : 60,
237
244
  margin: [0, 0],
238
245
  "col-num": p.value.columns,
@@ -244,15 +251,15 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
244
251
  e.component ? (u(), b("div", {
245
252
  key: 0,
246
253
  class: S(["form-component", [
247
- f(ve)(e.component),
254
+ f(ye)(e.component),
248
255
  e.component.fieldType
249
256
  ]]),
250
- onMouseenter: (c) => f(B)(e.component),
251
- onMouseleave: o[0] || (o[0] = (c) => f(B)()),
257
+ onMouseenter: (c) => f(A)(e.component),
258
+ onMouseleave: o[0] || (o[0] = (c) => f(A)()),
252
259
  onClick: q((c) => f(he)(e.component), ["stop"])
253
260
  }, [
254
- !j.value && f(ye)(e.component) ? (u(), b("div", Se, [
255
- i(r, {
261
+ !j.value && f(_e)(e.component) ? (u(), b("div", Ne, [
262
+ i(d, {
256
263
  "popper-class": `form-quick-setting-${e.i}`,
257
264
  trigger: "click",
258
265
  placement: "bottom",
@@ -260,28 +267,28 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
260
267
  onVisibleChange: (c) => G(e.id, c)
261
268
  }, {
262
269
  dropdown: m(() => [
263
- R(e.id) ? (u(), k(s, { key: 0 }, {
270
+ H(e.id) ? (u(), w(s, { key: 0 }, {
264
271
  default: m(() => [
265
- h("div", Ne, [
266
- h("div", Ue, [
267
- o[3] || (o[3] = h("span", { class: "setting-label" }, "标题:", -1)),
268
- i(n, {
272
+ y("div", Ue, [
273
+ y("div", He, [
274
+ o[3] || (o[3] = y("span", { class: "setting-label" }, "标题:", -1)),
275
+ i(l, {
269
276
  modelValue: e.component.label,
270
277
  "onUpdate:modelValue": (c) => e.component.label = c,
271
278
  size: "small",
272
279
  class: "setting-input"
273
280
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
274
281
  ]),
275
- h("div", Re, [
276
- o[4] || (o[4] = h("span", { class: "setting-label" }, "字段:", -1)),
277
- i(n, {
282
+ y("div", Re, [
283
+ o[4] || (o[4] = y("span", { class: "setting-label" }, "字段:", -1)),
284
+ i(l, {
278
285
  modelValue: e.component.fieldName,
279
286
  "onUpdate:modelValue": (c) => e.component.fieldName = c,
280
287
  size: "small",
281
288
  class: "setting-input"
282
289
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
283
290
  ]),
284
- h("div", Ye, [
291
+ y("div", Ye, [
285
292
  i(a, {
286
293
  modelValue: e.component.required,
287
294
  "onUpdate:modelValue": (c) => e.component.required = c,
@@ -309,12 +316,12 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
309
316
  default: m(() => [
310
317
  e.component.fieldType != "blank" ? (u(), b("span", {
311
318
  key: 0,
312
- class: S(["toolbar-btn settings-btn", { "is-active": R(e.id) }]),
319
+ class: S(["toolbar-btn settings-btn", { "is-active": H(e.id) }]),
313
320
  title: "快捷设置"
314
321
  }, [
315
- i(l, null, {
322
+ i(n, null, {
316
323
  default: m(() => [
317
- i(f(pe))
324
+ i(f(ue))
318
325
  ]),
319
326
  _: 1
320
327
  })
@@ -322,61 +329,64 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
322
329
  ]),
323
330
  _: 2
324
331
  }, 1032, ["popper-class", "onVisibleChange"]),
325
- h("span", {
332
+ y("span", {
326
333
  class: "toolbar-btn delete-btn",
327
334
  title: "删除组件",
328
- onClick: q((c) => A(e), ["stop"])
335
+ onClick: q((c) => $(e), ["stop"])
329
336
  }, [
330
- i(l, null, {
337
+ i(n, null, {
331
338
  default: m(() => [
332
- i(f(ue))
339
+ i(f(me))
333
340
  ]),
334
341
  _: 1
335
342
  })
336
- ], 8, He)
343
+ ], 8, Pe)
337
344
  ])) : V("", !0),
338
- h("div", Pe, [
339
- p.value.showFieldName && e.component.fieldName ? (u(), b("div", We, ee(e.component.fieldType == "blank" ? "空白占位" : e.component.fieldName), 1)) : V("", !0),
340
- e.component.disabled ? (u(), b("div", Xe, [
341
- i(l, null, {
345
+ y("div", We, [
346
+ p.value.showFieldName && e.component.fieldName ? (u(), b("div", Xe, ee(e.component.fieldType == "blank" ? "空白占位" : e.component.fieldName), 1)) : V("", !0),
347
+ e.component.disabled ? (u(), b("div", qe, [
348
+ i(n, null, {
342
349
  default: m(() => [
343
- i(f(me))
350
+ i(f(fe))
344
351
  ]),
345
352
  _: 1
346
353
  })
347
- ])) : e.component.readOnly ? (u(), b("div", qe, [
348
- i(l, null, {
354
+ ])) : e.component.readOnly ? (u(), b("div", Ae, [
355
+ i(n, null, {
349
356
  default: m(() => [
350
- i(f(fe))
357
+ i(f(ge))
351
358
  ]),
352
359
  _: 1
353
360
  })
354
361
  ])) : V("", !0)
355
362
  ]),
356
- h("div", {
363
+ y("div", {
357
364
  class: S(["component-content", {
358
365
  "is-disabled": e.component.disabled,
359
366
  "is-readonly": e.component.readOnly && !e.component.disabled
360
367
  }])
361
368
  }, [
362
- e.component.fieldType == "divider" ? (u(), k(ie, {
369
+ e.component.fieldType == "divider" ? (u(), w(ie, {
363
370
  key: 0,
364
371
  "component-data": e.component
365
- }, null, 8, ["component-data"])) : e.component.fieldType == "h2" ? (u(), k(de, {
372
+ }, null, 8, ["component-data"])) : e.component.fieldType == "h2" ? (u(), w(re, {
366
373
  key: 1,
367
374
  "component-data": e.component
368
- }, null, 8, ["component-data"])) : e.component.fieldType == "subForm" ? (u(), k(re, {
375
+ }, null, 8, ["component-data"])) : e.component.fieldType == "subForm" ? (u(), w(de, {
369
376
  key: 2,
370
377
  "component-data": e.component
371
- }, null, 8, ["component-data"])) : e.component.fieldType == "subTable" ? (u(), k(ce, {
378
+ }, null, 8, ["component-data"])) : e.component.fieldType == "subTable" ? (u(), w(pe, {
372
379
  key: 3,
373
380
  "component-data": e.component
374
- }, null, 8, ["component-data"])) : (u(), k(se, {
381
+ }, null, 8, ["component-data"])) : e.component.fieldType == "approvalHistory" ? (u(), w(ce, {
375
382
  key: 4,
376
383
  "component-data": e.component
384
+ }, null, 8, ["component-data"])) : (u(), w(se, {
385
+ key: 5,
386
+ "component-data": e.component
377
387
  }, null, 8, ["component-data"]))
378
388
  ], 2)
379
- ], 42, ze)) : V("", !0)
389
+ ], 42, Se)) : V("", !0)
380
390
  ]),
381
391
  _: 1
382
392
  }, 8, ["layout", "row-height", "col-num"])
@@ -394,7 +404,7 @@ const Ce = { class: "form-work-area" }, Fe = { class: "form-grid-container" }, z
394
404
  ]);
395
405
  };
396
406
  }
397
- }, Co = /* @__PURE__ */ be(Be, [["__scopeId", "data-v-22a7ee1a"]]);
407
+ }, zo = /* @__PURE__ */ we(Be, [["__scopeId", "data-v-02539d10"]]);
398
408
  export {
399
- Co as default
409
+ zo as default
400
410
  };