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.
- package/es/config-dev.js +7 -5
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +107 -92
- package/es/node_modules/element-plus/es/components/result/index.js +7 -0
- package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
- package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
- package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
- package/es/src/components/OptionConfig.vue.js +1 -1
- package/es/src/components/ValueSelector.vue2.js +30 -24
- package/es/src/components/ValueSelectorPopover.vue2.js +2 -1
- package/es/src/index.js +6 -4
- package/es/src/layout/aside/index.vue.js +64 -60
- package/es/src/layout/index.vue.js +91 -54
- package/es/src/packages/dataSource/dataSource.vue.js +122 -118
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
- package/es/src/packages/form/aside/index.js +17 -3
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +46 -42
- package/es/src/packages/form/default.js +1 -0
- package/es/src/packages/form/formSetting.vue.js +72 -50
- package/es/src/packages/form/index.vue.js +247 -202
- package/es/src/packages/form/property/blank.vue.js +62 -0
- package/es/src/packages/form/property/index.vue.js +21 -20
- package/es/src/packages/form/property/subTable.vue.js +61 -52
- package/es/src/packages/form/property/widgets.vue.js +280 -173
- package/es/src/packages/table/aside/index.js +1 -0
- package/es/src/packages/table/property/widgets.vue.js +96 -85
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
- package/es/src/packages/table/tablePagination.vue.js +37 -45
- package/es/src/packages/table/tableSetting.vue.js +12 -13
- package/es/src/store/designer.js +40 -0
- package/es/src/store/index.js +12 -39
- package/es/style.css +1 -1
- 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
|
|
12
|
-
import
|
|
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
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { Setting as
|
|
24
|
-
import { getEditConfigData as
|
|
25
|
-
import "
|
|
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
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
|
|
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
|
-
},
|
|
44
|
+
}, Xe = {
|
|
41
45
|
key: 1,
|
|
42
46
|
class: "status-tag disabled-tag"
|
|
43
|
-
},
|
|
47
|
+
}, qe = {
|
|
44
48
|
key: 2,
|
|
45
49
|
class: "status-tag readonly-tag"
|
|
46
|
-
},
|
|
50
|
+
}, y = "drop", Be = {
|
|
47
51
|
__name: "index",
|
|
48
|
-
setup(
|
|
49
|
-
const p =
|
|
50
|
-
|
|
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
|
-
(
|
|
53
|
-
if (!
|
|
56
|
+
(t, o) => {
|
|
57
|
+
if (!d.value || t === o || t > o)
|
|
54
58
|
return;
|
|
55
|
-
const
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}),
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
|
79
|
-
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
n.id,
|
|
89
|
+
g.x,
|
|
90
|
+
g.y,
|
|
91
|
+
g.w,
|
|
92
|
+
g.h
|
|
86
93
|
);
|
|
87
94
|
}
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
95
|
+
const l = _.value.getItem(y);
|
|
96
|
+
if (l) {
|
|
90
97
|
try {
|
|
91
|
-
|
|
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
|
|
98
|
-
var
|
|
99
|
-
const o =
|
|
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
|
|
108
|
+
const s = d.value[o];
|
|
102
109
|
p.value.deletedFields || (p.value.deletedFields = []);
|
|
103
|
-
const
|
|
104
|
-
label: ((
|
|
105
|
-
fieldName: ((
|
|
106
|
-
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:
|
|
115
|
+
data: s
|
|
109
116
|
};
|
|
110
|
-
p.value.deletedFields.push(
|
|
117
|
+
p.value.deletedFields.push(r), d.value.splice(o, 1), xe.success("字段已移至回收站");
|
|
111
118
|
}
|
|
112
119
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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
|
-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|
163
|
-
|
|
199
|
+
function G(t, o) {
|
|
200
|
+
U.value.set(t, o);
|
|
164
201
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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:
|
|
179
|
-
|
|
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:
|
|
228
|
+
onAdd: $
|
|
186
229
|
}, {
|
|
187
|
-
default:
|
|
188
|
-
|
|
230
|
+
default: m(() => [
|
|
231
|
+
i(f(we), {
|
|
189
232
|
ref_key: "gridLayout",
|
|
190
|
-
ref:
|
|
191
|
-
layout:
|
|
192
|
-
"onUpdate:layout": o[1] || (o[1] = (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:
|
|
200
|
-
e.component ? (u(),
|
|
243
|
+
item: m(({ item: e }) => [
|
|
244
|
+
e.component ? (u(), b("div", {
|
|
201
245
|
key: 0,
|
|
202
|
-
class:
|
|
203
|
-
|
|
246
|
+
class: S(["form-component", [
|
|
247
|
+
f(ve)(e.component),
|
|
204
248
|
e.component.fieldType
|
|
205
249
|
]]),
|
|
206
|
-
onMouseenter: (
|
|
207
|
-
onMouseleave: o[0] || (o[0] = (
|
|
208
|
-
onClick:
|
|
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
|
-
|
|
211
|
-
|
|
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: (
|
|
260
|
+
onVisibleChange: (c) => G(e.id, c)
|
|
217
261
|
}, {
|
|
218
|
-
dropdown:
|
|
219
|
-
|
|
220
|
-
default:
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
o[3] || (o[3] =
|
|
224
|
-
n
|
|
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": (
|
|
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
|
-
|
|
232
|
-
o[4] || (o[4] =
|
|
233
|
-
n
|
|
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": (
|
|
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
|
-
|
|
241
|
-
|
|
284
|
+
h("div", Ye, [
|
|
285
|
+
i(a, {
|
|
242
286
|
modelValue: e.component.required,
|
|
243
|
-
"onUpdate:modelValue": (
|
|
287
|
+
"onUpdate:modelValue": (c) => e.component.required = c,
|
|
244
288
|
label: "必填",
|
|
245
289
|
size: "small"
|
|
246
290
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
247
|
-
|
|
291
|
+
i(a, {
|
|
248
292
|
modelValue: e.component.readOnly,
|
|
249
|
-
"onUpdate:modelValue": (
|
|
293
|
+
"onUpdate:modelValue": (c) => e.component.readOnly = c,
|
|
250
294
|
label: "只读",
|
|
251
295
|
size: "small"
|
|
252
296
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
253
|
-
|
|
297
|
+
i(a, {
|
|
254
298
|
modelValue: e.component.disabled,
|
|
255
|
-
"onUpdate:modelValue": (
|
|
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)) :
|
|
307
|
+
}, 1024)) : V("", !0)
|
|
264
308
|
]),
|
|
265
|
-
default:
|
|
266
|
-
|
|
267
|
-
|
|
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
|
-
|
|
271
|
-
default:
|
|
272
|
-
|
|
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
|
-
|
|
325
|
+
h("span", {
|
|
281
326
|
class: "toolbar-btn delete-btn",
|
|
282
327
|
title: "删除组件",
|
|
283
|
-
onClick:
|
|
328
|
+
onClick: q((c) => A(e), ["stop"])
|
|
284
329
|
}, [
|
|
285
|
-
|
|
286
|
-
default:
|
|
287
|
-
|
|
330
|
+
i(l, null, {
|
|
331
|
+
default: m(() => [
|
|
332
|
+
i(f(ue))
|
|
288
333
|
]),
|
|
289
334
|
_: 1
|
|
290
335
|
})
|
|
291
|
-
], 8,
|
|
292
|
-
]),
|
|
293
|
-
|
|
294
|
-
p.value.showFieldName && e.component.fieldName ? (u(),
|
|
295
|
-
e.component.disabled ? (u(),
|
|
296
|
-
|
|
297
|
-
default:
|
|
298
|
-
|
|
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(),
|
|
303
|
-
|
|
304
|
-
default:
|
|
305
|
-
|
|
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
|
-
])) :
|
|
354
|
+
])) : V("", !0)
|
|
310
355
|
]),
|
|
311
|
-
|
|
312
|
-
class:
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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(),
|
|
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,
|
|
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
|
-
|
|
393
|
+
i(ae)
|
|
349
394
|
]);
|
|
350
395
|
};
|
|
351
396
|
}
|
|
352
|
-
},
|
|
397
|
+
}, Co = /* @__PURE__ */ be(Be, [["__scopeId", "data-v-22a7ee1a"]]);
|
|
353
398
|
export {
|
|
354
|
-
|
|
399
|
+
Co as default
|
|
355
400
|
};
|