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