fec-dev-designer 1.0.5 → 1.1.1
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/icons-vue/dist/index.js +112 -93
- package/es/src/api/index.js +5 -5
- package/es/src/components/EventConfigButton.vue.js +2 -2
- package/es/src/components/FieldSetMapping.vue.js +211 -0
- package/es/src/components/FieldSetMapping.vue2.js +4 -0
- package/es/src/components/FormulaEditorInput.vue.js +43 -38
- package/es/src/components/JsonDataDrawer.vue.js +1 -1
- package/es/src/components/OnlyFLowConfigButton.vue.js +102 -0
- package/es/src/components/OnlyFLowConfigButton.vue2.js +4 -0
- package/es/src/components/TemplateSelector.vue.js +45 -45
- package/es/src/components/ValueSelectorPopover.vue2.js +1 -2
- package/es/src/layout/index.vue.js +61 -61
- package/es/src/packages/dialog/index.vue.js +718 -0
- package/es/src/packages/dialog/index.vue2.js +4 -0
- package/es/src/packages/dialog/useDialogDialog.js +15 -0
- package/es/src/packages/event/index.vue2.js +1 -1
- package/es/src/packages/event/onlyFlow.vue.js +91 -0
- package/es/src/packages/event/onlyFlow.vue2.js +4 -0
- package/es/src/packages/event/useOnlyFlowDialog.js +15 -0
- package/es/src/packages/eventFlow/dialog/action/Dialog.vue.js +48 -0
- package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue2.js +18 -16
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +54 -48
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +1 -1
- package/es/src/packages/eventFlow/dialog/action/config.js +12 -11
- package/es/src/packages/form/PageFooterSetting.vue.js +53 -58
- package/es/src/packages/form/aside/index.js +3 -1
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +70 -56
- package/es/src/packages/form/default.js +19 -19
- package/es/src/packages/form/headerBtn.vue.js +84 -65
- package/es/src/packages/form/property/pageFooterBtn.vue.js +39 -39
- package/es/src/packages/form/property/widgets.vue.js +339 -261
- package/es/src/packages/table/default.js +9 -1
- package/es/src/packages/table/headerBtn.vue.js +72 -54
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +1 -1
- package/es/src/packages/table/tableSetting.vue.js +197 -195
- package/es/src/packages/utils/common.js +44 -35
- package/es/src/store/designer.js +1 -1
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,718 @@
|
|
|
1
|
+
import "../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
|
+
import "../../../node_modules/element-plus/theme-chalk/el-dialog.css.js";
|
|
3
|
+
import "../../../node_modules/element-plus/theme-chalk/el-overlay.css.js";
|
|
4
|
+
import "../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
5
|
+
import "../../../node_modules/element-plus/theme-chalk/el-form.css.js";
|
|
6
|
+
import "../../../node_modules/element-plus/theme-chalk/el-checkbox.css.js";
|
|
7
|
+
import "../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
|
|
8
|
+
import "../../../node_modules/element-plus/theme-chalk/el-tag.css.js";
|
|
9
|
+
import "../../../node_modules/element-plus/theme-chalk/el-option.css.js";
|
|
10
|
+
import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
|
|
11
|
+
import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
|
|
12
|
+
import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
|
|
13
|
+
import "../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
|
|
14
|
+
import "../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
|
|
15
|
+
import "../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
|
|
16
|
+
import "../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
17
|
+
import "../../../node_modules/element-plus/theme-chalk/el-aside.css.js";
|
|
18
|
+
import "../../../node_modules/element-plus/theme-chalk/el-container.css.js";
|
|
19
|
+
import "../../../node_modules/element-plus/theme-chalk/el-footer.css.js";
|
|
20
|
+
import "../../../node_modules/element-plus/theme-chalk/el-header.css.js";
|
|
21
|
+
import "../../../node_modules/element-plus/theme-chalk/el-main.css.js";
|
|
22
|
+
import "../../../node_modules/element-plus/theme-chalk/el-link.css.js";
|
|
23
|
+
import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
24
|
+
import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
|
|
25
|
+
import { computed as w, useModel as Ve, ref as _, watch as ye, openBlock as i, createBlock as c, withCtx as n, createElementVNode as g, createVNode as o, createTextVNode as d, unref as l, createElementBlock as p, isRef as $, withKeys as _e, createCommentVNode as v, Fragment as k, renderList as O, normalizeClass as ce, withDirectives as A, vShow as H, withModifiers as W, toDisplayString as K } from "vue";
|
|
26
|
+
import { Plus as ke, Close as Ce, Check as Fe, Delete as Se } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
27
|
+
import { getEditConfigDataFields as xe, cloneDeep as Ee, getEditConfigDialogs as Te, setEditConfigDialogs as Me } from "../utils/common.js";
|
|
28
|
+
import q from "../../components/TemplateSelector.vue.js";
|
|
29
|
+
import J from "../../api/index.js";
|
|
30
|
+
import Ue from "../../components/ParamsConfig.vue2.js";
|
|
31
|
+
import we from "../../components/DataSourceSelect.vue.js";
|
|
32
|
+
import De from "../../components/FieldSetMapping.vue.js";
|
|
33
|
+
import Ie from "../../components/OnlyFLowConfigButton.vue.js";
|
|
34
|
+
import Be from "../../components/FormulaEditorInput.vue.js";
|
|
35
|
+
import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
|
|
36
|
+
import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
|
|
37
|
+
import "./index.vue2.js";
|
|
38
|
+
import Ne from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
39
|
+
import { ElMessage as G } from "../../../node_modules/element-plus/es/components/message/index.js";
|
|
40
|
+
import { ElButton as Oe } from "../../../node_modules/element-plus/es/components/button/index.js";
|
|
41
|
+
import { ElHeader as Ke, ElMain as Pe, ElContainer as ze, ElAside as Le } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
42
|
+
import { ElInput as Re } from "../../../node_modules/element-plus/es/components/input/index.js";
|
|
43
|
+
import { ElLink as $e } from "../../../node_modules/element-plus/es/components/link/index.js";
|
|
44
|
+
import { ElIcon as Ae } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
45
|
+
import { ElFormItem as He, ElForm as We } from "../../../node_modules/element-plus/es/components/form/index.js";
|
|
46
|
+
import { ElRadioButton as qe, ElRadioGroup as Je } from "../../../node_modules/element-plus/es/components/radio/index.js";
|
|
47
|
+
import { ElOption as Ge, ElSelect as je } from "../../../node_modules/element-plus/es/components/select/index.js";
|
|
48
|
+
import { ElSwitch as Qe } from "../../../node_modules/element-plus/es/components/switch/index.js";
|
|
49
|
+
import { ElCheckbox as Xe } from "../../../node_modules/element-plus/es/components/checkbox/index.js";
|
|
50
|
+
import { ElScrollbar as Ye } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
|
|
51
|
+
import { ElDialog as Ze } from "../../../node_modules/element-plus/es/components/dialog/index.js";
|
|
52
|
+
const he = { key: 0 }, el = { class: "dialog-menu-item is-editing" }, ll = { class: "new-item-content" }, ol = { class: "edit-actions" }, tl = ["onClick"], al = { class: "dialog-content" }, nl = { class: "dialog-name-wrapper" }, ul = { style: { display: "flex", gap: "16px", width: "100%" } }, il = { class: "footer-buttons-container" }, dl = {
|
|
53
|
+
key: 0,
|
|
54
|
+
class: "empty-tip"
|
|
55
|
+
}, ml = {
|
|
56
|
+
key: 1,
|
|
57
|
+
class: "footer-buttons"
|
|
58
|
+
}, sl = {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "empty-selection"
|
|
61
|
+
}, rl = { class: "dialog-footer" }, pl = {
|
|
62
|
+
__name: "index",
|
|
63
|
+
props: {
|
|
64
|
+
modelValue: { required: !0 },
|
|
65
|
+
modelModifiers: {}
|
|
66
|
+
},
|
|
67
|
+
emits: ["update:modelValue"],
|
|
68
|
+
setup(j) {
|
|
69
|
+
const Q = w(() => (xe() || []).map((e) => ({
|
|
70
|
+
id: e.id,
|
|
71
|
+
label: e.label,
|
|
72
|
+
fieldName: e.fieldName,
|
|
73
|
+
fieldType: e.fieldType
|
|
74
|
+
}))), x = Ve(j, "modelValue"), b = _([]), f = _(-1);
|
|
75
|
+
ye(x, (u) => {
|
|
76
|
+
u && (E.value = !1, C.value = -1, b.value = Ee(Te()), b.value.length > 0 && f.value === -1 && (f.value = 0));
|
|
77
|
+
});
|
|
78
|
+
const E = _(!1), V = _(""), C = _(-1), F = _(""), X = () => {
|
|
79
|
+
E.value = !0, V.value = "";
|
|
80
|
+
}, P = () => {
|
|
81
|
+
if (!V.value.trim()) {
|
|
82
|
+
G.warning("请输入弹层名称");
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
b.value.push({
|
|
86
|
+
id: "dialog_" + Date.now(),
|
|
87
|
+
name: V.value,
|
|
88
|
+
dialogSize: "standard",
|
|
89
|
+
dialogParams: [],
|
|
90
|
+
customWidth: "",
|
|
91
|
+
// 自定义宽度
|
|
92
|
+
customMaxHeight: "",
|
|
93
|
+
// 自定义最大高度
|
|
94
|
+
contentSource: "table",
|
|
95
|
+
tableContent: "select",
|
|
96
|
+
selectionMode: "single",
|
|
97
|
+
isSubTablePagination: !0,
|
|
98
|
+
isSubTableReadOnly: !1,
|
|
99
|
+
componentPath: "",
|
|
100
|
+
fieldMapping: [],
|
|
101
|
+
subFormMode: "edit",
|
|
102
|
+
subFormFooterButtons: []
|
|
103
|
+
// 表单底部按钮
|
|
104
|
+
// callbackEventConfig: {},
|
|
105
|
+
}), E.value = !1, V.value = "", f.value = b.value.length - 1;
|
|
106
|
+
}, Y = () => {
|
|
107
|
+
E.value = !1, V.value = "";
|
|
108
|
+
}, Z = (u) => {
|
|
109
|
+
b.value.splice(u, 1), f.value === u ? f.value = -1 : f.value > u && f.value--;
|
|
110
|
+
}, h = (u) => {
|
|
111
|
+
C.value = u, F.value = b.value[u].name;
|
|
112
|
+
}, ee = () => {
|
|
113
|
+
if (C.value !== -1) {
|
|
114
|
+
if (!F.value.trim()) {
|
|
115
|
+
G.warning("请输入弹层名称");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
b.value[C.value].name = F.value, C.value = -1, F.value = "";
|
|
119
|
+
}
|
|
120
|
+
}, le = () => {
|
|
121
|
+
Me(b.value), x.value = !1;
|
|
122
|
+
}, T = _(null), D = _(null), t = w(() => {
|
|
123
|
+
const u = b.value[f.value];
|
|
124
|
+
if (u.fieldMapping || (u.fieldMapping = []), (u == null ? void 0 : u.contentSource) == "table" && !T.value) {
|
|
125
|
+
const e = u == null ? void 0 : u.subTableId;
|
|
126
|
+
e && J.getById(e, !1).then((s) => {
|
|
127
|
+
T.value = JSON.parse(s.context);
|
|
128
|
+
});
|
|
129
|
+
} else if ((u == null ? void 0 : u.contentSource) == "form" && !D.value) {
|
|
130
|
+
const e = u == null ? void 0 : u.subFormId;
|
|
131
|
+
e && J.getById(e, !1).then((s) => {
|
|
132
|
+
D.value = JSON.parse(s.context);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return u;
|
|
136
|
+
});
|
|
137
|
+
function oe(u) {
|
|
138
|
+
T.value = u, t.value.subTableMode = null;
|
|
139
|
+
}
|
|
140
|
+
function te(u) {
|
|
141
|
+
D.value = u;
|
|
142
|
+
}
|
|
143
|
+
const ae = w(() => {
|
|
144
|
+
var u;
|
|
145
|
+
return (u = T.value) == null ? void 0 : u.mode;
|
|
146
|
+
}), z = w(() => {
|
|
147
|
+
var u;
|
|
148
|
+
return (u = T.value) == null ? void 0 : u.fieldsData;
|
|
149
|
+
}), I = w(() => {
|
|
150
|
+
var e;
|
|
151
|
+
const u = (e = D.value) == null ? void 0 : e.pageFooterConfig.actions;
|
|
152
|
+
return u ? u.filter((s) => s.btnType == "primary") : [];
|
|
153
|
+
}), ne = (u) => {
|
|
154
|
+
var e, s;
|
|
155
|
+
return (s = (e = t.value) == null ? void 0 : e.subFormFooterButtons) == null ? void 0 : s.includes(u);
|
|
156
|
+
}, ue = (u) => {
|
|
157
|
+
t.value.subFormFooterButtons || (t.value.subFormFooterButtons = []);
|
|
158
|
+
const e = t.value.subFormFooterButtons.indexOf(u.id);
|
|
159
|
+
e > -1 ? t.value.subFormFooterButtons.splice(e, 1) : t.value.subFormFooterButtons.push(u.id);
|
|
160
|
+
};
|
|
161
|
+
function ie(u) {
|
|
162
|
+
t.value.callbackEventConfig = u;
|
|
163
|
+
}
|
|
164
|
+
return (u, e) => {
|
|
165
|
+
const s = Oe, L = Ke, S = Re, de = $e, me = Ae, B = Pe, N = ze, se = Le, m = He, r = qe, M = Je, re = Ge, pe = je, R = Qe, fe = Xe, be = We, ve = Ye, ge = Ze;
|
|
166
|
+
return i(), c(ge, {
|
|
167
|
+
modelValue: x.value,
|
|
168
|
+
"onUpdate:modelValue": e[26] || (e[26] = (a) => x.value = a),
|
|
169
|
+
width: "50%",
|
|
170
|
+
title: "弹层配置",
|
|
171
|
+
draggable: "",
|
|
172
|
+
overflow: "",
|
|
173
|
+
"append-to-body": "",
|
|
174
|
+
class: "fec-dev-designer-dialog"
|
|
175
|
+
}, {
|
|
176
|
+
footer: n(() => [
|
|
177
|
+
g("div", rl, [
|
|
178
|
+
o(s, {
|
|
179
|
+
onClick: e[25] || (e[25] = (a) => x.value = !1)
|
|
180
|
+
}, {
|
|
181
|
+
default: n(() => [...e[44] || (e[44] = [
|
|
182
|
+
d("取消", -1)
|
|
183
|
+
])]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
o(s, {
|
|
187
|
+
type: "primary",
|
|
188
|
+
onClick: le
|
|
189
|
+
}, {
|
|
190
|
+
default: n(() => [...e[45] || (e[45] = [
|
|
191
|
+
d("确定", -1)
|
|
192
|
+
])]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
])
|
|
196
|
+
]),
|
|
197
|
+
default: n(() => [
|
|
198
|
+
o(N, { style: { border: "1px solid #ebeef5", "border-radius": "4px", height: "600px" } }, {
|
|
199
|
+
default: n(() => [
|
|
200
|
+
o(se, { width: "300px" }, {
|
|
201
|
+
default: n(() => [
|
|
202
|
+
o(N, null, {
|
|
203
|
+
default: n(() => [
|
|
204
|
+
o(L, {
|
|
205
|
+
height: "40px",
|
|
206
|
+
style: { "background-color": "#f2f2f2", "line-height": "40px" }
|
|
207
|
+
}, {
|
|
208
|
+
default: n(() => [
|
|
209
|
+
o(s, {
|
|
210
|
+
type: "primary",
|
|
211
|
+
link: "",
|
|
212
|
+
icon: l(ke),
|
|
213
|
+
onClick: X
|
|
214
|
+
}, {
|
|
215
|
+
default: n(() => [...e[27] || (e[27] = [
|
|
216
|
+
d(" 新增弹层 ", -1)
|
|
217
|
+
])]),
|
|
218
|
+
_: 1
|
|
219
|
+
}, 8, ["icon"])
|
|
220
|
+
]),
|
|
221
|
+
_: 1
|
|
222
|
+
}),
|
|
223
|
+
o(B, { style: { padding: "10px" } }, {
|
|
224
|
+
default: n(() => [
|
|
225
|
+
l(E) ? (i(), p("div", he, [
|
|
226
|
+
g("div", el, [
|
|
227
|
+
g("div", ll, [
|
|
228
|
+
o(S, {
|
|
229
|
+
modelValue: l(V),
|
|
230
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => $(V) ? V.value = a : null),
|
|
231
|
+
placeholder: "请输入弹层名称",
|
|
232
|
+
size: "default",
|
|
233
|
+
onKeyup: _e(P, ["enter"]),
|
|
234
|
+
class: "new-item-input"
|
|
235
|
+
}, null, 8, ["modelValue"]),
|
|
236
|
+
g("div", ol, [
|
|
237
|
+
o(s, {
|
|
238
|
+
size: "small",
|
|
239
|
+
icon: l(Ce),
|
|
240
|
+
onClick: Y
|
|
241
|
+
}, {
|
|
242
|
+
default: n(() => [...e[28] || (e[28] = [
|
|
243
|
+
d(" 取消 ", -1)
|
|
244
|
+
])]),
|
|
245
|
+
_: 1
|
|
246
|
+
}, 8, ["icon"]),
|
|
247
|
+
o(s, {
|
|
248
|
+
type: "primary",
|
|
249
|
+
size: "small",
|
|
250
|
+
icon: l(Fe),
|
|
251
|
+
onClick: P
|
|
252
|
+
}, {
|
|
253
|
+
default: n(() => [...e[29] || (e[29] = [
|
|
254
|
+
d(" 确认 ", -1)
|
|
255
|
+
])]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["icon"])
|
|
258
|
+
])
|
|
259
|
+
])
|
|
260
|
+
])
|
|
261
|
+
])) : v("", !0),
|
|
262
|
+
(i(!0), p(k, null, O(l(b), (a, y) => (i(), p("div", {
|
|
263
|
+
key: y,
|
|
264
|
+
class: ce([
|
|
265
|
+
"dialog-menu-item",
|
|
266
|
+
{ "is-active": l(f) === y }
|
|
267
|
+
]),
|
|
268
|
+
onClick: (U) => f.value = y
|
|
269
|
+
}, [
|
|
270
|
+
g("div", al, [
|
|
271
|
+
g("div", nl, [
|
|
272
|
+
A(o(S, {
|
|
273
|
+
onBlur: (U) => ee(),
|
|
274
|
+
maxlength: "30",
|
|
275
|
+
modelValue: l(F),
|
|
276
|
+
"onUpdate:modelValue": e[1] || (e[1] = (U) => $(F) ? F.value = U : null),
|
|
277
|
+
size: "small"
|
|
278
|
+
}, null, 8, ["onBlur", "modelValue"]), [
|
|
279
|
+
[H, l(C) === y]
|
|
280
|
+
]),
|
|
281
|
+
A(o(de, {
|
|
282
|
+
icon: "Edit",
|
|
283
|
+
onClick: W((U) => h(y), ["stop"])
|
|
284
|
+
}, {
|
|
285
|
+
default: n(() => [
|
|
286
|
+
d(K(a.name), 1)
|
|
287
|
+
]),
|
|
288
|
+
_: 2
|
|
289
|
+
}, 1032, ["onClick"]), [
|
|
290
|
+
[H, l(C) !== y]
|
|
291
|
+
])
|
|
292
|
+
]),
|
|
293
|
+
o(me, {
|
|
294
|
+
class: "delete-icon",
|
|
295
|
+
onClick: W((U) => Z(y), ["stop"])
|
|
296
|
+
}, {
|
|
297
|
+
default: n(() => [
|
|
298
|
+
o(l(Se))
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, ["onClick"])
|
|
302
|
+
])
|
|
303
|
+
], 10, tl))), 128))
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
})
|
|
307
|
+
]),
|
|
308
|
+
_: 1
|
|
309
|
+
})
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}),
|
|
313
|
+
o(B, { style: { "border-left": "1px solid #ebeef5", padding: "0" } }, {
|
|
314
|
+
default: n(() => [
|
|
315
|
+
l(f) !== -1 ? (i(), c(N, {
|
|
316
|
+
key: 0,
|
|
317
|
+
style: { height: "100%" }
|
|
318
|
+
}, {
|
|
319
|
+
default: n(() => [
|
|
320
|
+
o(L, {
|
|
321
|
+
height: "40px",
|
|
322
|
+
class: "dialog-header"
|
|
323
|
+
}, {
|
|
324
|
+
default: n(() => [
|
|
325
|
+
g("div", null, K(l(t).name), 1)
|
|
326
|
+
]),
|
|
327
|
+
_: 1
|
|
328
|
+
}),
|
|
329
|
+
o(B, { style: { padding: "12px 20px 0 20px" } }, {
|
|
330
|
+
default: n(() => [
|
|
331
|
+
o(ve, null, {
|
|
332
|
+
default: n(() => [
|
|
333
|
+
o(be, {
|
|
334
|
+
model: l(t),
|
|
335
|
+
"label-width": "120px",
|
|
336
|
+
style: { "padding-right": "20px" },
|
|
337
|
+
size: "small"
|
|
338
|
+
}, {
|
|
339
|
+
default: n(() => [
|
|
340
|
+
o(m, { label: "弹层标题" }, {
|
|
341
|
+
default: n(() => [
|
|
342
|
+
o(S, {
|
|
343
|
+
modelValue: l(t).dialogTitle,
|
|
344
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => l(t).dialogTitle = a),
|
|
345
|
+
placeholder: "请输入弹层标题",
|
|
346
|
+
clearable: ""
|
|
347
|
+
}, null, 8, ["modelValue"])
|
|
348
|
+
]),
|
|
349
|
+
_: 1
|
|
350
|
+
}),
|
|
351
|
+
o(m, { label: "弹层尺寸" }, {
|
|
352
|
+
default: n(() => [
|
|
353
|
+
o(M, {
|
|
354
|
+
modelValue: l(t).dialogSize,
|
|
355
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => l(t).dialogSize = a)
|
|
356
|
+
}, {
|
|
357
|
+
default: n(() => [
|
|
358
|
+
o(r, { value: "standard" }, {
|
|
359
|
+
default: n(() => [...e[30] || (e[30] = [
|
|
360
|
+
d("标准", -1)
|
|
361
|
+
])]),
|
|
362
|
+
_: 1
|
|
363
|
+
}),
|
|
364
|
+
o(r, { value: "large" }, {
|
|
365
|
+
default: n(() => [...e[31] || (e[31] = [
|
|
366
|
+
d("更大", -1)
|
|
367
|
+
])]),
|
|
368
|
+
_: 1
|
|
369
|
+
}),
|
|
370
|
+
o(r, { value: "small" }, {
|
|
371
|
+
default: n(() => [...e[32] || (e[32] = [
|
|
372
|
+
d("更小", -1)
|
|
373
|
+
])]),
|
|
374
|
+
_: 1
|
|
375
|
+
}),
|
|
376
|
+
o(r, { value: "custom" }, {
|
|
377
|
+
default: n(() => [...e[33] || (e[33] = [
|
|
378
|
+
d("自定义", -1)
|
|
379
|
+
])]),
|
|
380
|
+
_: 1
|
|
381
|
+
})
|
|
382
|
+
]),
|
|
383
|
+
_: 1
|
|
384
|
+
}, 8, ["modelValue"])
|
|
385
|
+
]),
|
|
386
|
+
_: 1
|
|
387
|
+
}),
|
|
388
|
+
l(t).dialogSize === "custom" ? (i(), c(m, {
|
|
389
|
+
key: 0,
|
|
390
|
+
label: "自定义尺寸"
|
|
391
|
+
}, {
|
|
392
|
+
default: n(() => [
|
|
393
|
+
g("div", ul, [
|
|
394
|
+
o(S, {
|
|
395
|
+
modelValue: l(t).customWidth,
|
|
396
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => l(t).customWidth = a),
|
|
397
|
+
placeholder: "宽度,如:800px、60%",
|
|
398
|
+
style: { flex: "1" }
|
|
399
|
+
}, null, 8, ["modelValue"]),
|
|
400
|
+
o(S, {
|
|
401
|
+
modelValue: l(t).customMaxHeight,
|
|
402
|
+
"onUpdate:modelValue": e[5] || (e[5] = (a) => l(t).customMaxHeight = a),
|
|
403
|
+
placeholder: "最大高度,如:600px、80vh",
|
|
404
|
+
style: { flex: "1" }
|
|
405
|
+
}, null, 8, ["modelValue"])
|
|
406
|
+
])
|
|
407
|
+
]),
|
|
408
|
+
_: 1
|
|
409
|
+
})) : v("", !0),
|
|
410
|
+
o(m, { label: "弹层参数" }, {
|
|
411
|
+
default: n(() => [
|
|
412
|
+
o(Ue, {
|
|
413
|
+
modelValue: l(t).dialogParams,
|
|
414
|
+
"onUpdate:modelValue": e[6] || (e[6] = (a) => l(t).dialogParams = a),
|
|
415
|
+
"available-fields": l(Q)
|
|
416
|
+
}, null, 8, ["modelValue", "available-fields"])
|
|
417
|
+
]),
|
|
418
|
+
_: 1
|
|
419
|
+
}),
|
|
420
|
+
o(m, { label: "弹层类型" }, {
|
|
421
|
+
default: n(() => [
|
|
422
|
+
o(M, {
|
|
423
|
+
modelValue: l(t).contentSource,
|
|
424
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => l(t).contentSource = a)
|
|
425
|
+
}, {
|
|
426
|
+
default: n(() => [
|
|
427
|
+
o(r, { value: "table" }, {
|
|
428
|
+
default: n(() => [...e[34] || (e[34] = [
|
|
429
|
+
d("列表", -1)
|
|
430
|
+
])]),
|
|
431
|
+
_: 1
|
|
432
|
+
}),
|
|
433
|
+
o(r, { value: "form" }, {
|
|
434
|
+
default: n(() => [...e[35] || (e[35] = [
|
|
435
|
+
d("表单", -1)
|
|
436
|
+
])]),
|
|
437
|
+
_: 1
|
|
438
|
+
}),
|
|
439
|
+
o(r, { value: "component" }, {
|
|
440
|
+
default: n(() => [...e[36] || (e[36] = [
|
|
441
|
+
d("组件", -1)
|
|
442
|
+
])]),
|
|
443
|
+
_: 1
|
|
444
|
+
})
|
|
445
|
+
]),
|
|
446
|
+
_: 1
|
|
447
|
+
}, 8, ["modelValue"])
|
|
448
|
+
]),
|
|
449
|
+
_: 1
|
|
450
|
+
}),
|
|
451
|
+
l(t).contentSource === "table" ? (i(), p(k, { key: 1 }, [
|
|
452
|
+
o(m, { label: "列表内容" }, {
|
|
453
|
+
default: n(() => [
|
|
454
|
+
o(M, {
|
|
455
|
+
modelValue: l(t).tableContent,
|
|
456
|
+
"onUpdate:modelValue": e[8] || (e[8] = (a) => l(t).tableContent = a)
|
|
457
|
+
}, {
|
|
458
|
+
default: n(() => [
|
|
459
|
+
o(r, { value: "select" }, {
|
|
460
|
+
default: n(() => [...e[37] || (e[37] = [
|
|
461
|
+
d("选择列表", -1)
|
|
462
|
+
])]),
|
|
463
|
+
_: 1
|
|
464
|
+
}),
|
|
465
|
+
o(r, { value: "custom" }, {
|
|
466
|
+
default: n(() => [...e[38] || (e[38] = [
|
|
467
|
+
d("自定义", -1)
|
|
468
|
+
])]),
|
|
469
|
+
_: 1
|
|
470
|
+
})
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
}, 8, ["modelValue"])
|
|
474
|
+
]),
|
|
475
|
+
_: 1
|
|
476
|
+
}),
|
|
477
|
+
l(t).tableContent === "select" ? (i(), p(k, { key: 0 }, [
|
|
478
|
+
l(t).tableContent === "select" ? (i(), c(m, {
|
|
479
|
+
key: 0,
|
|
480
|
+
label: "选择列表"
|
|
481
|
+
}, {
|
|
482
|
+
default: n(() => [
|
|
483
|
+
o(q, {
|
|
484
|
+
modelValue: l(t).subTableName,
|
|
485
|
+
"onUpdate:modelValue": e[9] || (e[9] = (a) => l(t).subTableName = a),
|
|
486
|
+
templateKey: l(t).subTableKey,
|
|
487
|
+
"onUpdate:templateKey": e[10] || (e[10] = (a) => l(t).subTableKey = a),
|
|
488
|
+
templateId: l(t).subTableId,
|
|
489
|
+
"onUpdate:templateId": e[11] || (e[11] = (a) => l(t).subTableId = a),
|
|
490
|
+
templateType: "table",
|
|
491
|
+
onConfirm: oe
|
|
492
|
+
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
493
|
+
]),
|
|
494
|
+
_: 1
|
|
495
|
+
})) : v("", !0),
|
|
496
|
+
o(m, { label: "列表模式" }, {
|
|
497
|
+
default: n(() => [
|
|
498
|
+
o(pe, {
|
|
499
|
+
modelValue: l(t).subTableMode,
|
|
500
|
+
"onUpdate:modelValue": e[12] || (e[12] = (a) => l(t).subTableMode = a),
|
|
501
|
+
clearable: ""
|
|
502
|
+
}, {
|
|
503
|
+
default: n(() => [
|
|
504
|
+
(i(!0), p(k, null, O(l(ae), (a) => (i(), c(re, {
|
|
505
|
+
key: a.key,
|
|
506
|
+
label: a.name,
|
|
507
|
+
value: a.key
|
|
508
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
509
|
+
]),
|
|
510
|
+
_: 1
|
|
511
|
+
}, 8, ["modelValue"])
|
|
512
|
+
]),
|
|
513
|
+
_: 1
|
|
514
|
+
})
|
|
515
|
+
], 64)) : v("", !0),
|
|
516
|
+
l(t).tableContent === "custom" ? (i(), c(m, {
|
|
517
|
+
key: 1,
|
|
518
|
+
label: "数据源"
|
|
519
|
+
}, {
|
|
520
|
+
default: n(() => [
|
|
521
|
+
o(we, {
|
|
522
|
+
modelValue: l(t).dataSourceValue,
|
|
523
|
+
"onUpdate:modelValue": e[13] || (e[13] = (a) => l(t).dataSourceValue = a)
|
|
524
|
+
}, null, 8, ["modelValue"])
|
|
525
|
+
]),
|
|
526
|
+
_: 1
|
|
527
|
+
})) : v("", !0),
|
|
528
|
+
o(m, { label: "是否翻页" }, {
|
|
529
|
+
default: n(() => [
|
|
530
|
+
o(R, {
|
|
531
|
+
modelValue: l(t).isSubTablePagination,
|
|
532
|
+
"onUpdate:modelValue": e[14] || (e[14] = (a) => l(t).isSubTablePagination = a)
|
|
533
|
+
}, null, 8, ["modelValue"])
|
|
534
|
+
]),
|
|
535
|
+
_: 1
|
|
536
|
+
}),
|
|
537
|
+
o(m, { label: "是否只读" }, {
|
|
538
|
+
default: n(() => [
|
|
539
|
+
o(R, {
|
|
540
|
+
modelValue: l(t).isSubTableReadOnly,
|
|
541
|
+
"onUpdate:modelValue": e[15] || (e[15] = (a) => l(t).isSubTableReadOnly = a)
|
|
542
|
+
}, null, 8, ["modelValue"])
|
|
543
|
+
]),
|
|
544
|
+
_: 1
|
|
545
|
+
}),
|
|
546
|
+
l(t).isSubTableReadOnly ? v("", !0) : (i(), p(k, { key: 2 }, [
|
|
547
|
+
o(m, { label: "选择模式" }, {
|
|
548
|
+
default: n(() => [
|
|
549
|
+
o(M, {
|
|
550
|
+
modelValue: l(t).selectionMode,
|
|
551
|
+
"onUpdate:modelValue": e[16] || (e[16] = (a) => l(t).selectionMode = a)
|
|
552
|
+
}, {
|
|
553
|
+
default: n(() => [
|
|
554
|
+
o(r, { value: "none" }, {
|
|
555
|
+
default: n(() => [...e[39] || (e[39] = [
|
|
556
|
+
d("无", -1)
|
|
557
|
+
])]),
|
|
558
|
+
_: 1
|
|
559
|
+
}),
|
|
560
|
+
o(r, { value: "single" }, {
|
|
561
|
+
default: n(() => [...e[40] || (e[40] = [
|
|
562
|
+
d("单选", -1)
|
|
563
|
+
])]),
|
|
564
|
+
_: 1
|
|
565
|
+
}),
|
|
566
|
+
o(r, { value: "multiple" }, {
|
|
567
|
+
default: n(() => [...e[41] || (e[41] = [
|
|
568
|
+
d("多选", -1)
|
|
569
|
+
])]),
|
|
570
|
+
_: 1
|
|
571
|
+
})
|
|
572
|
+
]),
|
|
573
|
+
_: 1
|
|
574
|
+
}, 8, ["modelValue"])
|
|
575
|
+
]),
|
|
576
|
+
_: 1
|
|
577
|
+
}),
|
|
578
|
+
l(t).selectionMode != "none" ? (i(), p(k, { key: 0 }, [
|
|
579
|
+
o(m, { label: "选取后反显格式" }, {
|
|
580
|
+
default: n(() => [
|
|
581
|
+
o(l(Be), {
|
|
582
|
+
title: "反显格式配置",
|
|
583
|
+
formulaConf: l(t).displayFormat,
|
|
584
|
+
"onUpdate:formulaConf": e[17] || (e[17] = (a) => l(t).displayFormat = a),
|
|
585
|
+
modelValue: l(t).displayFormatText,
|
|
586
|
+
"onUpdate:modelValue": e[18] || (e[18] = (a) => l(t).displayFormatText = a),
|
|
587
|
+
fieldList: l(z)
|
|
588
|
+
}, null, 8, ["formulaConf", "modelValue", "fieldList"])
|
|
589
|
+
]),
|
|
590
|
+
_: 1
|
|
591
|
+
}),
|
|
592
|
+
o(m, { label: "选取后表单赋值" }, {
|
|
593
|
+
default: n(() => [
|
|
594
|
+
o(De, {
|
|
595
|
+
modelValue: l(t).fieldMapping,
|
|
596
|
+
"onUpdate:modelValue": e[19] || (e[19] = (a) => l(t).fieldMapping = a),
|
|
597
|
+
fieldLabel: "赋值表单字段",
|
|
598
|
+
valueLabel: "列表字段",
|
|
599
|
+
valueOptions: l(z),
|
|
600
|
+
valueSelectMode: ""
|
|
601
|
+
}, null, 8, ["modelValue", "valueOptions"])
|
|
602
|
+
]),
|
|
603
|
+
_: 1
|
|
604
|
+
})
|
|
605
|
+
], 64)) : v("", !0),
|
|
606
|
+
o(m, { label: "回调事件配置" }, {
|
|
607
|
+
default: n(() => [
|
|
608
|
+
o(Ie, {
|
|
609
|
+
config: l(t).callbackEventConfig,
|
|
610
|
+
onConfirm: ie
|
|
611
|
+
}, null, 8, ["config"])
|
|
612
|
+
]),
|
|
613
|
+
_: 1
|
|
614
|
+
})
|
|
615
|
+
], 64))
|
|
616
|
+
], 64)) : v("", !0),
|
|
617
|
+
l(t).contentSource === "form" ? (i(), p(k, { key: 2 }, [
|
|
618
|
+
o(m, { label: "选择表单" }, {
|
|
619
|
+
default: n(() => [
|
|
620
|
+
o(q, {
|
|
621
|
+
modelValue: l(t).subFormName,
|
|
622
|
+
"onUpdate:modelValue": e[20] || (e[20] = (a) => l(t).subFormName = a),
|
|
623
|
+
templateKey: l(t).subFormKey,
|
|
624
|
+
"onUpdate:templateKey": e[21] || (e[21] = (a) => l(t).subFormKey = a),
|
|
625
|
+
templateId: l(t).subFormId,
|
|
626
|
+
"onUpdate:templateId": e[22] || (e[22] = (a) => l(t).subFormId = a),
|
|
627
|
+
templateType: "form",
|
|
628
|
+
onConfirm: te
|
|
629
|
+
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
630
|
+
]),
|
|
631
|
+
_: 1
|
|
632
|
+
}),
|
|
633
|
+
o(m, { label: "表单模式" }, {
|
|
634
|
+
default: n(() => [
|
|
635
|
+
o(M, {
|
|
636
|
+
modelValue: l(t).subFormMode,
|
|
637
|
+
"onUpdate:modelValue": e[23] || (e[23] = (a) => l(t).subFormMode = a)
|
|
638
|
+
}, {
|
|
639
|
+
default: n(() => [
|
|
640
|
+
o(r, { value: "edit" }, {
|
|
641
|
+
default: n(() => [...e[42] || (e[42] = [
|
|
642
|
+
d("编辑", -1)
|
|
643
|
+
])]),
|
|
644
|
+
_: 1
|
|
645
|
+
}),
|
|
646
|
+
o(r, { value: "query" }, {
|
|
647
|
+
default: n(() => [...e[43] || (e[43] = [
|
|
648
|
+
d("查看", -1)
|
|
649
|
+
])]),
|
|
650
|
+
_: 1
|
|
651
|
+
})
|
|
652
|
+
]),
|
|
653
|
+
_: 1
|
|
654
|
+
}, 8, ["modelValue"])
|
|
655
|
+
]),
|
|
656
|
+
_: 1
|
|
657
|
+
}),
|
|
658
|
+
o(m, { label: "表单底部按钮" }, {
|
|
659
|
+
default: n(() => [
|
|
660
|
+
g("div", il, [
|
|
661
|
+
!l(I) || l(I).length === 0 ? (i(), p("div", dl, " 暂无可用按钮 ")) : (i(), p("div", ml, [
|
|
662
|
+
(i(!0), p(k, null, O(l(I), (a) => (i(), c(fe, {
|
|
663
|
+
key: a.id,
|
|
664
|
+
"model-value": ne(a.id),
|
|
665
|
+
onChange: (y) => ue(a)
|
|
666
|
+
}, {
|
|
667
|
+
default: n(() => [
|
|
668
|
+
d(K(a.label), 1)
|
|
669
|
+
]),
|
|
670
|
+
_: 2
|
|
671
|
+
}, 1032, ["model-value", "onChange"]))), 128))
|
|
672
|
+
]))
|
|
673
|
+
])
|
|
674
|
+
]),
|
|
675
|
+
_: 1
|
|
676
|
+
})
|
|
677
|
+
], 64)) : v("", !0),
|
|
678
|
+
l(t).contentSource === "component" ? (i(), c(m, {
|
|
679
|
+
key: 3,
|
|
680
|
+
label: "选择组件"
|
|
681
|
+
}, {
|
|
682
|
+
default: n(() => [
|
|
683
|
+
o(S, {
|
|
684
|
+
modelValue: l(t).componentPath,
|
|
685
|
+
"onUpdate:modelValue": e[24] || (e[24] = (a) => l(t).componentPath = a),
|
|
686
|
+
placeholder: "请输入组件路径",
|
|
687
|
+
clearable: ""
|
|
688
|
+
}, null, 8, ["modelValue"])
|
|
689
|
+
]),
|
|
690
|
+
_: 1
|
|
691
|
+
})) : v("", !0)
|
|
692
|
+
]),
|
|
693
|
+
_: 1
|
|
694
|
+
}, 8, ["model"])
|
|
695
|
+
]),
|
|
696
|
+
_: 1
|
|
697
|
+
})
|
|
698
|
+
]),
|
|
699
|
+
_: 1
|
|
700
|
+
})
|
|
701
|
+
]),
|
|
702
|
+
_: 1
|
|
703
|
+
})) : (i(), p("div", sl, "请从左侧选择一个弹层"))
|
|
704
|
+
]),
|
|
705
|
+
_: 1
|
|
706
|
+
})
|
|
707
|
+
]),
|
|
708
|
+
_: 1
|
|
709
|
+
})
|
|
710
|
+
]),
|
|
711
|
+
_: 1
|
|
712
|
+
}, 8, ["modelValue"]);
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
}, ro = /* @__PURE__ */ Ne(pl, [["__scopeId", "data-v-251346b6"]]);
|
|
716
|
+
export {
|
|
717
|
+
ro as default
|
|
718
|
+
};
|