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.
- package/es/node_modules/element-plus/{dist/locale → es/locale/lang}/zh-cn.js +0 -1
- package/es/src/components/FieldSetMapping.vue.js +245 -108
- package/es/src/components/TemplateSelector.vue.js +101 -81
- package/es/src/layout/aside/HiddenFieldDialog.vue.js +313 -0
- package/es/src/{packages/form → layout/aside}/fieldRecycleBin.vue.js +72 -64
- package/es/src/layout/aside/index.vue.js +47 -50
- package/es/src/layout/index.vue.js +81 -76
- package/es/src/packages/dialog/index.vue.js +41 -38
- package/es/src/packages/form/aside/index.js +2 -1
- package/es/src/packages/form/demo.js +8064 -0
- package/es/src/packages/form/headerBtn.vue.js +120 -99
- package/es/src/packages/form/index.vue.js +187 -171
- package/es/src/packages/table/index.vue.js +191 -155
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +76 -77
- package/es/src/packages/table/queryModule/index.vue.js +108 -91
- package/es/src/packages/utils/common.js +33 -29
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/src/packages/form/HiddenFieldDialog.vue.js +0 -258
- /package/es/src/{packages/form → layout/aside}/HiddenFieldDialog.vue2.js +0 -0
- /package/es/src/{packages/form → layout/aside}/fieldRecycleBin.vue2.js +0 -0
|
@@ -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
|
|
12
|
-
import
|
|
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
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { Setting as
|
|
25
|
-
import { getEditConfigData as
|
|
26
|
-
import { throttle as
|
|
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
|
|
31
|
-
import
|
|
32
|
-
import { ElMessage as
|
|
33
|
-
import { ElIcon as
|
|
34
|
-
import { ElInput as
|
|
35
|
-
import { ElCheckbox as
|
|
36
|
-
import { ElDropdownMenu as
|
|
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
|
|
39
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
45
|
+
}, Be = {
|
|
46
46
|
key: 1,
|
|
47
47
|
class: "status-tag disabled-tag"
|
|
48
|
-
},
|
|
48
|
+
}, Oe = {
|
|
49
49
|
key: 2,
|
|
50
50
|
class: "status-tag readonly-tag"
|
|
51
|
-
},
|
|
51
|
+
}, y = "drop", Le = {
|
|
52
52
|
__name: "index",
|
|
53
|
-
setup(
|
|
54
|
-
const p =
|
|
55
|
-
|
|
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 (!
|
|
58
|
+
if (!a.value || t === o || t > o)
|
|
59
59
|
return;
|
|
60
60
|
const n = [], l = [];
|
|
61
|
-
if (
|
|
62
|
-
|
|
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((
|
|
65
|
-
const
|
|
66
|
-
n.forEach((
|
|
67
|
-
|
|
68
|
-
}),
|
|
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
|
-
),
|
|
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
|
-
|
|
82
|
-
var
|
|
83
|
-
n.includes((
|
|
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
|
|
88
|
-
function
|
|
87
|
+
const F = D(!1);
|
|
88
|
+
function B(t) {
|
|
89
89
|
console.log("🚀 ~ handleAddToGrid ~ event:", t);
|
|
90
|
-
const o =
|
|
90
|
+
const o = a.value.findIndex((l) => l.i === y);
|
|
91
91
|
if (o !== -1) {
|
|
92
|
-
const l =
|
|
93
|
-
|
|
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(
|
|
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 = [],
|
|
108
|
+
I.value = [], F.value = !0;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
var n, l,
|
|
113
|
-
const o =
|
|
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
|
|
115
|
+
const i = a.value[o];
|
|
116
116
|
p.value.deletedFields || (p.value.deletedFields = []);
|
|
117
|
-
const
|
|
118
|
-
label: ((n =
|
|
119
|
-
fieldName: ((l =
|
|
120
|
-
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:
|
|
122
|
+
data: i
|
|
123
123
|
};
|
|
124
|
-
p.value.deletedFields.push(
|
|
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
|
|
129
|
-
if (
|
|
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,
|
|
139
|
-
if (!(x.x === null || x.y === null || Math.abs(
|
|
140
|
-
Math.abs(
|
|
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:
|
|
143
|
-
let
|
|
144
|
-
o.fieldType == "textarea" ?
|
|
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") && (
|
|
149
|
-
const
|
|
150
|
-
let z =
|
|
151
|
-
z ? (z.x =
|
|
152
|
-
x:
|
|
153
|
-
y:
|
|
154
|
-
w:
|
|
155
|
-
h:
|
|
156
|
-
i:
|
|
157
|
-
isResizable:
|
|
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
|
-
}),
|
|
160
|
-
var
|
|
161
|
-
const E =
|
|
163
|
+
}), ne(() => {
|
|
164
|
+
var W;
|
|
165
|
+
const E = a.value.findIndex((k) => k.i == y);
|
|
162
166
|
if (E !== -1) {
|
|
163
|
-
const k = (
|
|
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:
|
|
172
|
-
left:
|
|
173
|
-
}), k.calcXY(
|
|
175
|
+
top: c,
|
|
176
|
+
left: i
|
|
177
|
+
}), k.calcXY(c, i), _.value.dragEvent(
|
|
174
178
|
"dragstart",
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
), g.x =
|
|
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
|
-
|
|
185
|
-
|
|
186
|
-
}),
|
|
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,
|
|
189
|
-
n >=
|
|
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
|
-
|
|
195
|
+
y,
|
|
192
196
|
g.x,
|
|
193
197
|
g.y,
|
|
194
198
|
g.h,
|
|
195
199
|
g.w
|
|
196
|
-
),
|
|
197
|
-
(
|
|
200
|
+
), a.value = a.value.filter(
|
|
201
|
+
(c) => c.i != y && c.i != o.id
|
|
198
202
|
)), console.log("🚀 ~ onFormDragEnd:", t);
|
|
199
|
-
}),
|
|
203
|
+
}), U.on("resizeEvent", () => {
|
|
200
204
|
_.value.resizeEvent();
|
|
201
205
|
});
|
|
202
|
-
const
|
|
203
|
-
function
|
|
204
|
-
return
|
|
206
|
+
const R = D(/* @__PURE__ */ new Map());
|
|
207
|
+
function Y(t) {
|
|
208
|
+
return R.value.get(t) || !1;
|
|
205
209
|
}
|
|
206
|
-
function
|
|
207
|
-
|
|
210
|
+
function j(t, o) {
|
|
211
|
+
R.value.set(t, o);
|
|
208
212
|
}
|
|
209
|
-
const
|
|
213
|
+
const J = X(() => {
|
|
210
214
|
var t;
|
|
211
215
|
return ((t = _.value) == null ? void 0 : t.state.isDragging) || !1;
|
|
212
216
|
});
|
|
213
|
-
return
|
|
214
|
-
onFormDragMove:
|
|
217
|
+
return A({
|
|
218
|
+
onFormDragMove: G
|
|
215
219
|
}), (t, o) => {
|
|
216
|
-
const n =
|
|
217
|
-
return u(), b("div",
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
239
|
+
onAdd: B
|
|
236
240
|
}, {
|
|
237
241
|
default: m(() => [
|
|
238
|
-
|
|
242
|
+
d(v(Ve), {
|
|
239
243
|
ref_key: "gridLayout",
|
|
240
244
|
ref: _,
|
|
241
|
-
layout:
|
|
242
|
-
"onUpdate:layout": o[1] || (o[1] = (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
|
-
|
|
258
|
+
v(_e)(e.component),
|
|
255
259
|
e.component.fieldType
|
|
256
260
|
]]),
|
|
257
|
-
onMouseenter: (
|
|
258
|
-
onMouseleave: o[0] || (o[0] = (
|
|
259
|
-
onClick:
|
|
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
|
-
!
|
|
262
|
-
|
|
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: (
|
|
271
|
+
onVisibleChange: (r) => j(e.id, r)
|
|
268
272
|
}, {
|
|
269
273
|
dropdown: m(() => [
|
|
270
|
-
|
|
274
|
+
Y(e.id) ? (u(), w(i, { key: 0 }, {
|
|
271
275
|
default: m(() => [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
o[3] || (o[3] =
|
|
275
|
-
|
|
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": (
|
|
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
|
-
|
|
283
|
-
o[4] || (o[4] =
|
|
284
|
-
|
|
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": (
|
|
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
|
-
|
|
292
|
-
|
|
295
|
+
f("div", We, [
|
|
296
|
+
d(s, {
|
|
293
297
|
modelValue: e.component.required,
|
|
294
|
-
"onUpdate:modelValue": (
|
|
298
|
+
"onUpdate:modelValue": (r) => e.component.required = r,
|
|
295
299
|
label: "必填",
|
|
296
300
|
size: "small"
|
|
297
301
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
298
|
-
|
|
302
|
+
d(s, {
|
|
299
303
|
modelValue: e.component.readOnly,
|
|
300
|
-
"onUpdate:modelValue": (
|
|
304
|
+
"onUpdate:modelValue": (r) => e.component.readOnly = r,
|
|
301
305
|
label: "只读",
|
|
302
306
|
size: "small"
|
|
303
307
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
304
|
-
|
|
308
|
+
d(s, {
|
|
305
309
|
modelValue: e.component.disabled,
|
|
306
|
-
"onUpdate:modelValue": (
|
|
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":
|
|
323
|
+
class: S(["toolbar-btn settings-btn", { "is-active": Y(e.id) }]),
|
|
320
324
|
title: "快捷设置"
|
|
321
325
|
}, [
|
|
322
|
-
|
|
326
|
+
d(n, null, {
|
|
323
327
|
default: m(() => [
|
|
324
|
-
|
|
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
|
-
|
|
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:
|
|
351
|
+
onClick: N((r) => O(e), ["stop"])
|
|
336
352
|
}, [
|
|
337
|
-
|
|
353
|
+
d(n, null, {
|
|
338
354
|
default: m(() => [
|
|
339
|
-
|
|
355
|
+
d(v(ve))
|
|
340
356
|
]),
|
|
341
357
|
_: 1
|
|
342
358
|
})
|
|
343
|
-
], 8,
|
|
359
|
+
], 8, $e)
|
|
344
360
|
])) : V("", !0),
|
|
345
|
-
|
|
346
|
-
p.value.showFieldName && e.component.fieldName ? (u(), b("div",
|
|
347
|
-
e.component.disabled ? (u(), b("div",
|
|
348
|
-
|
|
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
|
-
|
|
366
|
+
d(v(ge))
|
|
351
367
|
]),
|
|
352
368
|
_: 1
|
|
353
369
|
})
|
|
354
|
-
])) : e.component.readOnly ? (u(), b("div",
|
|
355
|
-
|
|
370
|
+
])) : e.component.readOnly ? (u(), b("div", Oe, [
|
|
371
|
+
d(n, null, {
|
|
356
372
|
default: m(() => [
|
|
357
|
-
|
|
373
|
+
d(v(he))
|
|
358
374
|
]),
|
|
359
375
|
_: 1
|
|
360
376
|
})
|
|
361
377
|
])) : V("", !0)
|
|
362
378
|
]),
|
|
363
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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,
|
|
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
|
-
|
|
419
|
+
d(ie)
|
|
404
420
|
]);
|
|
405
421
|
};
|
|
406
422
|
}
|
|
407
|
-
},
|
|
423
|
+
}, No = /* @__PURE__ */ ke(Le, [["__scopeId", "data-v-084bd41d"]]);
|
|
408
424
|
export {
|
|
409
|
-
|
|
425
|
+
No as default
|
|
410
426
|
};
|