fec-dev-designer 5.1.2 → 5.1.3

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