fec-dev-designer 1.0.3 → 1.0.5

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