@fecp/designer 5.4.62 → 5.4.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/TemplateSelector.vue.mjs +1 -116
  3. package/es/designer/src/components/TemplateSelector.vue2.mjs +116 -1
  4. package/es/designer/src/packages/dialog/index.vue.mjs +1 -1
  5. package/es/designer/src/packages/dialog/index.vue2.mjs +988 -0
  6. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +1 -1
  7. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +1035 -0
  8. package/es/designer/src/packages/form/property/subForm.vue.mjs +1 -1
  9. package/es/designer/src/packages/form/property/subTable.vue.mjs +1 -1
  10. package/es/designer/src/packages/form/property/widgets.vue.mjs +64 -34
  11. package/es/designer.css +26 -26
  12. package/es/packages/mobile/src/components/base/button/Button.vue.mjs +1 -1
  13. package/es/packages/vue/src/components/forms/form/Form.vue.mjs +50 -62
  14. package/es/packages/vue/src/components/layout/Layout.vue.mjs +7 -2
  15. package/lib/designer/package.json.js +1 -1
  16. package/lib/designer/src/components/TemplateSelector.vue.js +0 -115
  17. package/lib/designer/src/components/TemplateSelector.vue2.js +115 -0
  18. package/lib/designer/src/packages/dialog/index.vue.js +1 -1
  19. package/lib/designer/src/packages/dialog/index.vue2.js +988 -0
  20. package/lib/designer/src/packages/dialogGlobal/index.vue.js +1 -1
  21. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +1035 -0
  22. package/lib/designer/src/packages/form/property/subForm.vue.js +1 -1
  23. package/lib/designer/src/packages/form/property/subTable.vue.js +1 -1
  24. package/lib/designer/src/packages/form/property/widgets.vue.js +81 -51
  25. package/lib/designer.css +26 -26
  26. package/lib/packages/mobile/src/components/base/button/Button.vue.js +1 -1
  27. package/lib/packages/vue/src/components/forms/form/Form.vue.js +50 -62
  28. package/lib/packages/vue/src/components/layout/Layout.vue.js +7 -2
  29. package/package.json +1 -1
@@ -0,0 +1,1035 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ require("../../../../node_modules/element-plus/es/index.js");
4
+ ;/* empty css */
5
+ ;/* empty css */
6
+ ;/* empty css */
7
+ ;/* empty css */
8
+ ;/* empty css */
9
+ ;/* empty css */
10
+ ;/* empty css */
11
+ ;/* empty css */
12
+ ;/* empty css */
13
+ ;/* empty css */
14
+ ;/* empty css */
15
+ ;/* empty css */
16
+ ;/* empty css */
17
+ ;/* empty css */
18
+ ;/* empty css */
19
+ ;/* empty css */
20
+ ;/* empty css */
21
+ ;/* empty css */
22
+ ;/* empty css */
23
+ ;/* empty css */
24
+ ;/* empty css */
25
+ ;/* empty css */
26
+ ;/* empty css */
27
+ ;/* empty css */
28
+ ;/* empty css */
29
+ const vue = require("vue");
30
+ const vueDraggablePlus = require("../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
31
+ const index$5 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
32
+ const common = require("../utils/common.js");
33
+ const TemplateSelector = require("../../components/TemplateSelector.vue2.js");
34
+ const index = require("../../api/index.js");
35
+ const ParamsConfig = require("../../components/ParamsConfig.vue2.js");
36
+ const DataSourceSelect = require("../../components/DataSourceSelect.vue.js");
37
+ ;/* empty css */
38
+ ;/* empty css */
39
+ require("../../../../node_modules/element-plus/theme-chalk/el-dropdown-menu.css.js");
40
+ require("../../../../node_modules/element-plus/theme-chalk/el-dropdown-item.css.js");
41
+ ;/* empty css */
42
+ const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
43
+ require("../../../../node_modules/element-plus/theme-chalk/el-tooltip.css.js");
44
+ ;/* empty css */
45
+ ;/* empty css */
46
+ ;/* empty css */
47
+ ;/* empty css */
48
+ ;/* empty css */
49
+ ;/* empty css */
50
+ ;/* empty css */
51
+ ;/* empty css */
52
+ ;/* empty css */
53
+ ;/* empty css */
54
+ require("../../../../node_modules/element-plus/theme-chalk/el-sub-menu.css.js");
55
+ require("../../../../node_modules/element-plus/theme-chalk/el-menu-item.css.js");
56
+ ;/* empty css */
57
+ ;/* empty css */
58
+ ;/* empty css */
59
+ ;/* empty css */
60
+ ;/* empty css */
61
+ ;/* empty css */
62
+ ;/* empty css */
63
+ require("../../../../node_modules/vue-codemirror/dist/vue-codemirror.esm.js");
64
+ require("../formulaEditor/core/functionCore.js");
65
+ ;/* empty css */
66
+ ;/* empty css */
67
+ ;/* empty css */
68
+ ;/* empty css */
69
+ const index$g = require("../table/aside/index.js");
70
+ const _default = require("../table/default.js");
71
+ const widgets = require("../table/property/widgets.vue.js");
72
+ ;/* empty css */
73
+ ;/* empty css */
74
+ ;/* empty css */
75
+ ;/* empty css */
76
+ ;/* empty css */
77
+ ;/* empty css */
78
+ ;/* empty css */
79
+ ;/* empty css */
80
+ ;/* empty css */
81
+ ;/* empty css */
82
+ ;/* empty css */
83
+ ;/* empty css */
84
+ ;/* empty css */
85
+ ;/* empty css */
86
+ require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
87
+ ;/* empty css */
88
+ ;/* empty css */
89
+ ;/* empty css */
90
+ ;/* empty css */
91
+ ;/* empty css */
92
+ ;/* empty css */
93
+ ;/* empty css */
94
+ ;/* empty css */
95
+ ;/* empty css */
96
+ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
97
+ require("../../axios/config.js");
98
+ ;/* empty css */
99
+ ;/* empty css */
100
+ ;/* empty css */
101
+ ;/* empty css */
102
+ ;/* empty css */
103
+ ;/* empty css */
104
+ ;/* empty css */
105
+ ;/* empty css */
106
+ ;/* empty css */
107
+ const index$1 = require("../../../../node_modules/element-plus/es/components/message/index.js");
108
+ const index$2 = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
109
+ const index$3 = require("../../../../node_modules/element-plus/es/components/container/index.js");
110
+ const index$4 = require("../../../../node_modules/element-plus/es/components/icon/index.js");
111
+ const index$6 = require("../../../../node_modules/element-plus/es/components/button/index.js");
112
+ const index$7 = require("../../../../node_modules/element-plus/es/components/input/index.js");
113
+ const index$8 = require("../../../../node_modules/element-plus/es/components/link/index.js");
114
+ const index$9 = require("../../../../node_modules/element-plus/es/components/scrollbar/index.js");
115
+ const index$a = require("../../../../node_modules/element-plus/es/components/form/index.js");
116
+ const index$b = require("../../../../node_modules/element-plus/es/components/radio/index.js");
117
+ const index$c = require("../../../../node_modules/element-plus/es/components/select/index.js");
118
+ const index$d = require("../../../../node_modules/element-plus/es/components/popover/index.js");
119
+ const index$e = require("../../../../node_modules/element-plus/es/components/switch/index.js");
120
+ const index$f = require("../../../../node_modules/element-plus/es/components/checkbox/index.js");
121
+ const _hoisted_1 = {
122
+ key: 0,
123
+ class: "loading-overlay"
124
+ };
125
+ const _hoisted_2 = { class: "loading-text" };
126
+ const _hoisted_3 = { key: 0 };
127
+ const _hoisted_4 = { class: "dialog-menu-item is-editing" };
128
+ const _hoisted_5 = { class: "new-item-content" };
129
+ const _hoisted_6 = { class: "edit-actions" };
130
+ const _hoisted_7 = ["onClick"];
131
+ const _hoisted_8 = { class: "dialog-content" };
132
+ const _hoisted_9 = { class: "dialog-name-wrapper" };
133
+ const _hoisted_10 = { style: { "display": "flex", "gap": "16px", "width": "100%" } };
134
+ const _hoisted_11 = { class: "col-panel" };
135
+ const _hoisted_12 = { class: "col-header" };
136
+ const _hoisted_13 = { class: "col-rules-list" };
137
+ const _hoisted_14 = { class: "drag-handle" };
138
+ const _hoisted_15 = { class: "custom-col-btns" };
139
+ const _hoisted_16 = { class: "col-property" };
140
+ const _hoisted_17 = { class: "footer-buttons-container" };
141
+ const _hoisted_18 = {
142
+ key: 0,
143
+ class: "empty-tip"
144
+ };
145
+ const _hoisted_19 = {
146
+ key: 1,
147
+ class: "footer-buttons"
148
+ };
149
+ const _hoisted_20 = {
150
+ key: 1,
151
+ class: "empty-selection"
152
+ };
153
+ const _hoisted_21 = { class: "dialog-footer" };
154
+ const _sfc_main = {
155
+ __name: "index",
156
+ props: {
157
+ "modelValue": { required: true },
158
+ "modelModifiers": {}
159
+ },
160
+ emits: ["update:modelValue"],
161
+ setup(__props) {
162
+ const editConfigData = vue.computed(() => {
163
+ return common.getEditConfigData();
164
+ });
165
+ const dialogVisible = vue.useModel(__props, "modelValue");
166
+ const loading = vue.ref(false);
167
+ const saving = vue.ref(false);
168
+ const selectedDialogs = vue.ref([]);
169
+ const activeDialogIndex = vue.ref(-1);
170
+ vue.watch(dialogVisible, async (val) => {
171
+ if (val) {
172
+ isEditingNew.value = false;
173
+ editingDialogIndex.value = -1;
174
+ loading.value = true;
175
+ try {
176
+ const response = await index.default.getAllTemplateDialog();
177
+ selectedDialogs.value = [];
178
+ for (let dialog of response) {
179
+ selectedDialogs.value.push({
180
+ id: dialog.id,
181
+ name: dialog.name,
182
+ ...JSON.parse(dialog.config)
183
+ });
184
+ }
185
+ if (selectedDialogs.value.length > 0 && activeDialogIndex.value === -1) {
186
+ activeDialogIndex.value = 0;
187
+ }
188
+ } catch (error) {
189
+ console.error("🚀 ~ 获取弹层数据失败:", error);
190
+ index$1.ElMessage.error("获取弹层数据失败");
191
+ selectedDialogs.value = [];
192
+ } finally {
193
+ loading.value = false;
194
+ }
195
+ }
196
+ });
197
+ const isEditingNew = vue.ref(false);
198
+ const newDialogName = vue.ref("");
199
+ const editingDialogIndex = vue.ref(-1);
200
+ const editingDialogName = vue.ref("");
201
+ const startAddDialog = () => {
202
+ isEditingNew.value = true;
203
+ newDialogName.value = "";
204
+ };
205
+ const confirmAddDialog = async () => {
206
+ if (!newDialogName.value.trim()) {
207
+ index$1.ElMessage.warning("请输入弹层名称");
208
+ return;
209
+ }
210
+ const newDialog = {
211
+ id: "dialog_" + Date.now(),
212
+ name: newDialogName.value,
213
+ dialogTitle: "弹层标题",
214
+ // 默认弹层标题
215
+ dialogSize: "standard",
216
+ dialogParams: [],
217
+ customWidth: "",
218
+ // 自定义宽度
219
+ customMaxHeight: "",
220
+ // 自定义最大高度
221
+ contentSource: "table",
222
+ tableContent: "select",
223
+ selectionMode: "single",
224
+ isSubTablePagination: true,
225
+ isSubTableReadOnly: false,
226
+ componentPath: "",
227
+ fieldMapping: [],
228
+ subFormMode: "edit",
229
+ subFormFooterButtons: [],
230
+ // 表单底部按钮
231
+ componentParams: []
232
+ };
233
+ selectedDialogs.value.push(newDialog);
234
+ isEditingNew.value = false;
235
+ newDialogName.value = "";
236
+ activeDialogIndex.value = selectedDialogs.value.length - 1;
237
+ };
238
+ const cancelAddDialog = () => {
239
+ isEditingNew.value = false;
240
+ newDialogName.value = "";
241
+ };
242
+ const handleRemoveDialog = async (index$22) => {
243
+ const dialogToRemove = selectedDialogs.value[index$22];
244
+ try {
245
+ await index.default.deleteTemplateDialog(dialogToRemove.id);
246
+ } catch (error) {
247
+ console.error("🚀 ~ 删除弹层失败:", error);
248
+ index$1.ElMessage.error("删除弹层失败");
249
+ return;
250
+ }
251
+ selectedDialogs.value.splice(index$22, 1);
252
+ if (activeDialogIndex.value === index$22) {
253
+ activeDialogIndex.value = -1;
254
+ } else if (activeDialogIndex.value > index$22) {
255
+ activeDialogIndex.value--;
256
+ }
257
+ index$1.ElMessage.success("弹层删除成功");
258
+ };
259
+ const startEditDialog = (index2) => {
260
+ editingDialogIndex.value = index2;
261
+ editingDialogName.value = selectedDialogs.value[index2].name;
262
+ };
263
+ const onEditOutside = () => {
264
+ if (editingDialogIndex.value !== -1) {
265
+ if (!editingDialogName.value.trim()) {
266
+ index$1.ElMessage.warning("请输入弹层名称");
267
+ return;
268
+ }
269
+ selectedDialogs.value[editingDialogIndex.value].name = editingDialogName.value;
270
+ editingDialogIndex.value = -1;
271
+ editingDialogName.value = "";
272
+ }
273
+ };
274
+ const onConfirm = async () => {
275
+ saving.value = true;
276
+ try {
277
+ const dialogArr = selectedDialogs.value.map((dialog) => {
278
+ const data = common.cloneDeep(dialog);
279
+ const id = data.id;
280
+ const name = data.name;
281
+ delete data.id;
282
+ delete data.name;
283
+ return {
284
+ id,
285
+ name,
286
+ config: JSON.stringify(data)
287
+ };
288
+ });
289
+ const response = await index.default.saveTemplateDialog(dialogArr);
290
+ index$1.ElMessage.success("弹层配置保存成功");
291
+ dialogVisible.value = false;
292
+ } catch (error) {
293
+ console.error("🚀 ~ 保存弹层数据失败:", error);
294
+ index$1.ElMessage.error("保存弹层数据失败");
295
+ } finally {
296
+ saving.value = false;
297
+ }
298
+ };
299
+ const tableOptions = vue.ref(null);
300
+ const formOptions = vue.ref(null);
301
+ const currentDialog = vue.computed(() => {
302
+ const data = selectedDialogs.value[activeDialogIndex.value];
303
+ if (!data.fieldMapping) {
304
+ data.fieldMapping = [];
305
+ }
306
+ if (!data.customTableConfig) {
307
+ data.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
308
+ data.customTableConfig.fieldsData = [];
309
+ data.customTableConfig.dataSources = editConfigData.value.dataSources;
310
+ } else {
311
+ data.customTableConfig.dataSources = editConfigData.value.dataSources;
312
+ data.customTableConfig.queryConfig.enabled = false;
313
+ }
314
+ if ((data == null ? void 0 : data.contentSource) == "table") {
315
+ const pkId = data == null ? void 0 : data.subTableId;
316
+ if (pkId) {
317
+ index.default.getById(pkId, false).then((data2) => {
318
+ tableOptions.value = JSON.parse(data2.context);
319
+ });
320
+ }
321
+ } else if ((data == null ? void 0 : data.contentSource) == "form") {
322
+ const pkId = data == null ? void 0 : data.subFormId;
323
+ if (pkId) {
324
+ index.default.getById(pkId, false).then((data2) => {
325
+ formOptions.value = JSON.parse(data2.context);
326
+ });
327
+ }
328
+ }
329
+ return data;
330
+ });
331
+ function tableSelectorConfirm(data) {
332
+ tableOptions.value = data;
333
+ currentDialog.value.subTableMode = null;
334
+ }
335
+ function formSelectorConfirm(data) {
336
+ formOptions.value = data;
337
+ }
338
+ const tableMode = vue.computed(() => {
339
+ var _a;
340
+ return (_a = tableOptions.value) == null ? void 0 : _a.mode;
341
+ });
342
+ vue.computed(() => {
343
+ var _a, _b, _c, _d;
344
+ if (currentDialog.value.tableContent === "custom") {
345
+ return ((_b = (_a = currentDialog.value) == null ? void 0 : _a.customTableConfig) == null ? void 0 : _b.fieldsData) || [];
346
+ } else if (currentDialog.value.tableContent === "select") {
347
+ return [
348
+ ...((_c = tableOptions.value) == null ? void 0 : _c.fieldsData) || [],
349
+ ...((_d = tableOptions.value) == null ? void 0 : _d.hiddenFields) || []
350
+ ];
351
+ }
352
+ });
353
+ const formFooterBtn = vue.computed(() => {
354
+ var _a;
355
+ const btnList = (_a = formOptions.value) == null ? void 0 : _a.pageFooterConfig.actions;
356
+ if (btnList) {
357
+ return btnList.filter((item) => item.btnType == "primary");
358
+ }
359
+ return [];
360
+ });
361
+ const isButtonSelected = (btnId) => {
362
+ var _a, _b;
363
+ return (_b = (_a = currentDialog.value) == null ? void 0 : _a.subFormFooterButtons) == null ? void 0 : _b.includes(btnId);
364
+ };
365
+ const toggleButton = (btn) => {
366
+ if (!currentDialog.value.subFormFooterButtons) {
367
+ currentDialog.value.subFormFooterButtons = [];
368
+ }
369
+ const index2 = currentDialog.value.subFormFooterButtons.indexOf(btn.id);
370
+ if (index2 > -1) {
371
+ currentDialog.value.subFormFooterButtons.splice(index2, 1);
372
+ } else {
373
+ currentDialog.value.subFormFooterButtons.push(btn.id);
374
+ }
375
+ };
376
+ const addTableCol = () => {
377
+ currentDialog.value.customTableConfig.fieldsData.push({
378
+ fieldType: "text",
379
+ label: "",
380
+ ...index$g.defaultProperty,
381
+ fieldName: ""
382
+ });
383
+ };
384
+ const removeCol = (index2) => {
385
+ currentDialog.value.customTableConfig.fieldsData.splice(index2, 1);
386
+ };
387
+ return (_ctx, _cache) => {
388
+ const _component_el_icon = index$4.ElIcon;
389
+ const _component_el_button = index$6.ElButton;
390
+ const _component_el_header = index$3.ElHeader;
391
+ const _component_el_input = index$7.ElInput;
392
+ const _component_el_link = index$8.ElLink;
393
+ const _component_el_main = index$3.ElMain;
394
+ const _component_el_container = index$3.ElContainer;
395
+ const _component_el_aside = index$3.ElAside;
396
+ const _component_el_form_item = index$a.ElFormItem;
397
+ const _component_el_radio_button = index$b.ElRadioButton;
398
+ const _component_el_radio_group = index$b.ElRadioGroup;
399
+ const _component_el_option = index$c.ElOption;
400
+ const _component_el_select = index$c.ElSelect;
401
+ const _component_el_scrollbar = index$9.ElScrollbar;
402
+ const _component_el_popover = index$d.ElPopover;
403
+ const _component_el_switch = index$e.ElSwitch;
404
+ const _component_el_checkbox = index$f.ElCheckbox;
405
+ const _component_el_form = index$a.ElForm;
406
+ const _component_el_dialog = index$2.ElDialog;
407
+ return vue.openBlock(), vue.createBlock(_component_el_dialog, {
408
+ modelValue: dialogVisible.value,
409
+ "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => dialogVisible.value = $event),
410
+ width: "50%",
411
+ title: "全局弹层配置",
412
+ draggable: "",
413
+ overflow: "",
414
+ "append-to-body": "",
415
+ class: "fec-dev-designer-dialog",
416
+ "close-on-click-modal": !vue.unref(saving),
417
+ "close-on-press-escape": !vue.unref(saving),
418
+ "show-close": !vue.unref(saving)
419
+ }, {
420
+ footer: vue.withCtx(() => [
421
+ vue.createElementVNode("div", _hoisted_21, [
422
+ vue.createVNode(_component_el_button, {
423
+ onClick: _cache[25] || (_cache[25] = ($event) => dialogVisible.value = false),
424
+ disabled: vue.unref(saving)
425
+ }, {
426
+ default: vue.withCtx(() => _cache[43] || (_cache[43] = [
427
+ vue.createTextVNode("取消")
428
+ ])),
429
+ _: 1
430
+ }, 8, ["disabled"]),
431
+ vue.createVNode(_component_el_button, {
432
+ type: "primary",
433
+ onClick: onConfirm,
434
+ loading: vue.unref(saving),
435
+ disabled: vue.unref(loading) || vue.unref(saving)
436
+ }, {
437
+ default: vue.withCtx(() => _cache[44] || (_cache[44] = [
438
+ vue.createTextVNode(" 确定 ")
439
+ ])),
440
+ _: 1
441
+ }, 8, ["loading", "disabled"])
442
+ ])
443
+ ]),
444
+ default: vue.withCtx(() => [
445
+ vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px", "position": "relative" } }, {
446
+ default: vue.withCtx(() => [
447
+ vue.unref(loading) || vue.unref(saving) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
448
+ vue.createVNode(_component_el_icon, { class: "loading-icon" }, {
449
+ default: vue.withCtx(() => [
450
+ vue.createVNode(vue.unref(index$5.Loading))
451
+ ]),
452
+ _: 1
453
+ }),
454
+ vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(vue.unref(loading) ? "加载中..." : "保存中..."), 1)
455
+ ])) : vue.createCommentVNode("", true),
456
+ vue.createVNode(_component_el_aside, { width: "300px" }, {
457
+ default: vue.withCtx(() => [
458
+ vue.createVNode(_component_el_container, null, {
459
+ default: vue.withCtx(() => [
460
+ vue.createVNode(_component_el_header, {
461
+ height: "40px",
462
+ style: { "background-color": "#f2f2f2", "line-height": "40px" }
463
+ }, {
464
+ default: vue.withCtx(() => [
465
+ vue.createVNode(_component_el_button, {
466
+ type: "primary",
467
+ link: "",
468
+ icon: vue.unref(index$5.Plus),
469
+ onClick: startAddDialog
470
+ }, {
471
+ default: vue.withCtx(() => _cache[27] || (_cache[27] = [
472
+ vue.createTextVNode(" 新增弹层 ")
473
+ ])),
474
+ _: 1
475
+ }, 8, ["icon"])
476
+ ]),
477
+ _: 1
478
+ }),
479
+ vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
480
+ default: vue.withCtx(() => [
481
+ vue.unref(isEditingNew) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
482
+ vue.createElementVNode("div", _hoisted_4, [
483
+ vue.createElementVNode("div", _hoisted_5, [
484
+ vue.createVNode(_component_el_input, {
485
+ modelValue: vue.unref(newDialogName),
486
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(newDialogName) ? newDialogName.value = $event : null),
487
+ placeholder: "请输入弹层名称",
488
+ size: "default",
489
+ onKeyup: vue.withKeys(confirmAddDialog, ["enter"]),
490
+ class: "new-item-input"
491
+ }, null, 8, ["modelValue"]),
492
+ vue.createElementVNode("div", _hoisted_6, [
493
+ vue.createVNode(_component_el_button, {
494
+ size: "small",
495
+ icon: vue.unref(index$5.Close),
496
+ onClick: cancelAddDialog
497
+ }, {
498
+ default: vue.withCtx(() => _cache[28] || (_cache[28] = [
499
+ vue.createTextVNode(" 取消 ")
500
+ ])),
501
+ _: 1
502
+ }, 8, ["icon"]),
503
+ vue.createVNode(_component_el_button, {
504
+ type: "primary",
505
+ size: "small",
506
+ icon: vue.unref(index$5.Check),
507
+ onClick: confirmAddDialog
508
+ }, {
509
+ default: vue.withCtx(() => _cache[29] || (_cache[29] = [
510
+ vue.createTextVNode(" 确认 ")
511
+ ])),
512
+ _: 1
513
+ }, 8, ["icon"])
514
+ ])
515
+ ])
516
+ ])
517
+ ])) : vue.createCommentVNode("", true),
518
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedDialogs), (dialog, index2) => {
519
+ return vue.openBlock(), vue.createElementBlock("div", {
520
+ key: index2,
521
+ class: vue.normalizeClass([
522
+ "dialog-menu-item",
523
+ { "is-active": vue.unref(activeDialogIndex) === index2 }
524
+ ]),
525
+ onClick: ($event) => activeDialogIndex.value = index2
526
+ }, [
527
+ vue.createElementVNode("div", _hoisted_8, [
528
+ vue.createElementVNode("div", _hoisted_9, [
529
+ vue.withDirectives(vue.createVNode(_component_el_input, {
530
+ onBlur: ($event) => onEditOutside(),
531
+ maxlength: "30",
532
+ modelValue: vue.unref(editingDialogName),
533
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
534
+ size: "small"
535
+ }, null, 8, ["onBlur", "modelValue"]), [
536
+ [vue.vShow, vue.unref(editingDialogIndex) === index2]
537
+ ]),
538
+ vue.withDirectives(vue.createVNode(_component_el_link, {
539
+ icon: "Edit",
540
+ onClick: vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
541
+ }, {
542
+ default: vue.withCtx(() => [
543
+ vue.createTextVNode(vue.toDisplayString(dialog.name), 1)
544
+ ]),
545
+ _: 2
546
+ }, 1032, ["onClick"]), [
547
+ [vue.vShow, vue.unref(editingDialogIndex) !== index2]
548
+ ])
549
+ ]),
550
+ vue.createVNode(_component_el_icon, {
551
+ class: "delete-icon",
552
+ onClick: vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
553
+ }, {
554
+ default: vue.withCtx(() => [
555
+ vue.createVNode(vue.unref(index$5.Delete))
556
+ ]),
557
+ _: 2
558
+ }, 1032, ["onClick"])
559
+ ])
560
+ ], 10, _hoisted_7);
561
+ }), 128))
562
+ ]),
563
+ _: 1
564
+ })
565
+ ]),
566
+ _: 1
567
+ })
568
+ ]),
569
+ _: 1
570
+ }),
571
+ vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
572
+ default: vue.withCtx(() => [
573
+ vue.unref(activeDialogIndex) !== -1 ? (vue.openBlock(), vue.createBlock(_component_el_container, {
574
+ key: 0,
575
+ style: { "height": "100%" }
576
+ }, {
577
+ default: vue.withCtx(() => [
578
+ vue.createVNode(_component_el_header, {
579
+ height: "40px",
580
+ class: "dialog-header"
581
+ }, {
582
+ default: vue.withCtx(() => [
583
+ vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(currentDialog).name), 1)
584
+ ]),
585
+ _: 1
586
+ }),
587
+ vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
588
+ default: vue.withCtx(() => [
589
+ vue.createVNode(_component_el_scrollbar, null, {
590
+ default: vue.withCtx(() => [
591
+ vue.createVNode(_component_el_form, {
592
+ model: vue.unref(currentDialog),
593
+ "label-width": "120px",
594
+ style: { "padding-right": "20px" },
595
+ size: "small"
596
+ }, {
597
+ default: vue.withCtx(() => [
598
+ vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
599
+ default: vue.withCtx(() => [
600
+ vue.createVNode(_component_el_input, {
601
+ modelValue: vue.unref(currentDialog).dialogTitle,
602
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(currentDialog).dialogTitle = $event),
603
+ placeholder: "请输入弹层标题",
604
+ clearable: ""
605
+ }, null, 8, ["modelValue"])
606
+ ]),
607
+ _: 1
608
+ }),
609
+ vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
610
+ default: vue.withCtx(() => [
611
+ vue.createVNode(_component_el_radio_group, {
612
+ modelValue: vue.unref(currentDialog).dialogSize,
613
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(currentDialog).dialogSize = $event)
614
+ }, {
615
+ default: vue.withCtx(() => [
616
+ vue.createVNode(_component_el_radio_button, { value: "standard" }, {
617
+ default: vue.withCtx(() => _cache[30] || (_cache[30] = [
618
+ vue.createTextVNode("标准")
619
+ ])),
620
+ _: 1
621
+ }),
622
+ vue.createVNode(_component_el_radio_button, { value: "large" }, {
623
+ default: vue.withCtx(() => _cache[31] || (_cache[31] = [
624
+ vue.createTextVNode("更大")
625
+ ])),
626
+ _: 1
627
+ }),
628
+ vue.createVNode(_component_el_radio_button, { value: "small" }, {
629
+ default: vue.withCtx(() => _cache[32] || (_cache[32] = [
630
+ vue.createTextVNode("更小")
631
+ ])),
632
+ _: 1
633
+ }),
634
+ vue.createVNode(_component_el_radio_button, { value: "custom" }, {
635
+ default: vue.withCtx(() => _cache[33] || (_cache[33] = [
636
+ vue.createTextVNode("自定义")
637
+ ])),
638
+ _: 1
639
+ })
640
+ ]),
641
+ _: 1
642
+ }, 8, ["modelValue"])
643
+ ]),
644
+ _: 1
645
+ }),
646
+ vue.unref(currentDialog).dialogSize === "custom" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
647
+ key: 0,
648
+ label: "自定义尺寸"
649
+ }, {
650
+ default: vue.withCtx(() => [
651
+ vue.createElementVNode("div", _hoisted_10, [
652
+ vue.createVNode(_component_el_input, {
653
+ modelValue: vue.unref(currentDialog).customWidth,
654
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(currentDialog).customWidth = $event),
655
+ placeholder: "宽度,如:800px、60%",
656
+ style: { "flex": "1" }
657
+ }, null, 8, ["modelValue"]),
658
+ vue.createVNode(_component_el_input, {
659
+ modelValue: vue.unref(currentDialog).customMaxHeight,
660
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentDialog).customMaxHeight = $event),
661
+ placeholder: "最大高度,如:600px、80vh",
662
+ style: { "flex": "1" }
663
+ }, null, 8, ["modelValue"])
664
+ ])
665
+ ]),
666
+ _: 1
667
+ })) : vue.createCommentVNode("", true),
668
+ vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
669
+ default: vue.withCtx(() => [
670
+ vue.createVNode(ParamsConfig.default, {
671
+ modelValue: vue.unref(currentDialog).dialogParams,
672
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(currentDialog).dialogParams = $event)
673
+ }, null, 8, ["modelValue"])
674
+ ]),
675
+ _: 1
676
+ }),
677
+ vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
678
+ default: vue.withCtx(() => [
679
+ vue.createVNode(_component_el_radio_group, {
680
+ modelValue: vue.unref(currentDialog).contentSource,
681
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(currentDialog).contentSource = $event)
682
+ }, {
683
+ default: vue.withCtx(() => [
684
+ vue.createVNode(_component_el_radio_button, { value: "table" }, {
685
+ default: vue.withCtx(() => _cache[34] || (_cache[34] = [
686
+ vue.createTextVNode("列表")
687
+ ])),
688
+ _: 1
689
+ }),
690
+ vue.createVNode(_component_el_radio_button, { value: "form" }, {
691
+ default: vue.withCtx(() => _cache[35] || (_cache[35] = [
692
+ vue.createTextVNode("表单")
693
+ ])),
694
+ _: 1
695
+ }),
696
+ vue.createVNode(_component_el_radio_button, { value: "tree" }, {
697
+ default: vue.withCtx(() => _cache[36] || (_cache[36] = [
698
+ vue.createTextVNode("树形")
699
+ ])),
700
+ _: 1
701
+ }),
702
+ vue.createVNode(_component_el_radio_button, { value: "component" }, {
703
+ default: vue.withCtx(() => _cache[37] || (_cache[37] = [
704
+ vue.createTextVNode("组件")
705
+ ])),
706
+ _: 1
707
+ })
708
+ ]),
709
+ _: 1
710
+ }, 8, ["modelValue"])
711
+ ]),
712
+ _: 1
713
+ }),
714
+ vue.unref(currentDialog).contentSource === "table" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
715
+ vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
716
+ default: vue.withCtx(() => [
717
+ vue.createVNode(_component_el_radio_group, {
718
+ modelValue: vue.unref(currentDialog).tableContent,
719
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(currentDialog).tableContent = $event)
720
+ }, {
721
+ default: vue.withCtx(() => [
722
+ vue.createVNode(_component_el_radio_button, { value: "select" }, {
723
+ default: vue.withCtx(() => _cache[38] || (_cache[38] = [
724
+ vue.createTextVNode("选择列表")
725
+ ])),
726
+ _: 1
727
+ }),
728
+ vue.createVNode(_component_el_radio_button, { value: "custom" }, {
729
+ default: vue.withCtx(() => _cache[39] || (_cache[39] = [
730
+ vue.createTextVNode("自定义")
731
+ ])),
732
+ _: 1
733
+ })
734
+ ]),
735
+ _: 1
736
+ }, 8, ["modelValue"])
737
+ ]),
738
+ _: 1
739
+ }),
740
+ vue.unref(currentDialog).tableContent === "select" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
741
+ vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
742
+ default: vue.withCtx(() => [
743
+ vue.createVNode(TemplateSelector.default, {
744
+ modelValue: vue.unref(currentDialog).subTableName,
745
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(currentDialog).subTableName = $event),
746
+ templateKey: vue.unref(currentDialog).subTableKey,
747
+ "onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => vue.unref(currentDialog).subTableKey = $event),
748
+ templateId: vue.unref(currentDialog).subTableId,
749
+ "onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => vue.unref(currentDialog).subTableId = $event),
750
+ templateType: "table",
751
+ onConfirm: tableSelectorConfirm
752
+ }, null, 8, ["modelValue", "templateKey", "templateId"])
753
+ ]),
754
+ _: 1
755
+ }),
756
+ vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
757
+ default: vue.withCtx(() => [
758
+ vue.createVNode(_component_el_select, {
759
+ modelValue: vue.unref(currentDialog).subTableMode,
760
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(currentDialog).subTableMode = $event),
761
+ clearable: ""
762
+ }, {
763
+ default: vue.withCtx(() => [
764
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableMode), (mode) => {
765
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
766
+ key: mode.key,
767
+ label: mode.name,
768
+ value: mode.key
769
+ }, null, 8, ["label", "value"]);
770
+ }), 128))
771
+ ]),
772
+ _: 1
773
+ }, 8, ["modelValue"])
774
+ ]),
775
+ _: 1
776
+ })
777
+ ], 64)) : vue.createCommentVNode("", true),
778
+ vue.unref(currentDialog).tableContent === "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
779
+ vue.createVNode(_component_el_form_item, { label: "列配置" }, {
780
+ default: vue.withCtx(() => [
781
+ vue.createElementVNode("div", _hoisted_11, [
782
+ vue.createElementVNode("div", _hoisted_12, [
783
+ vue.createVNode(_component_el_button, {
784
+ type: "primary",
785
+ size: "small",
786
+ onClick: addTableCol,
787
+ icon: "Plus",
788
+ link: ""
789
+ }, {
790
+ default: vue.withCtx(() => _cache[40] || (_cache[40] = [
791
+ vue.createTextVNode(" 添加列配置 ")
792
+ ])),
793
+ _: 1
794
+ })
795
+ ]),
796
+ vue.createElementVNode("div", _hoisted_13, [
797
+ vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
798
+ modelValue: vue.unref(currentDialog).customTableConfig.fieldsData,
799
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(currentDialog).customTableConfig.fieldsData = $event),
800
+ animation: 150,
801
+ handle: ".drag-handle"
802
+ }, {
803
+ default: vue.withCtx(() => [
804
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
805
+ return vue.openBlock(), vue.createElementBlock("div", {
806
+ key: index2,
807
+ class: "col-rule-item"
808
+ }, [
809
+ vue.createElementVNode("div", _hoisted_14, [
810
+ vue.createVNode(_component_el_icon, null, {
811
+ default: vue.withCtx(() => [
812
+ vue.createVNode(vue.unref(index$5.Rank))
813
+ ]),
814
+ _: 1
815
+ })
816
+ ]),
817
+ vue.createVNode(_component_el_input, {
818
+ modelValue: col.label,
819
+ "onUpdate:modelValue": ($event) => col.label = $event,
820
+ size: "small",
821
+ placeholder: "列标题"
822
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
823
+ vue.createVNode(_component_el_input, {
824
+ modelValue: col.fieldName,
825
+ "onUpdate:modelValue": ($event) => col.fieldName = $event,
826
+ size: "small",
827
+ placeholder: "字段名"
828
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
829
+ vue.createElementVNode("div", _hoisted_15, [
830
+ vue.createVNode(_component_el_popover, {
831
+ placement: "right",
832
+ width: 200,
833
+ trigger: "click"
834
+ }, {
835
+ reference: vue.withCtx(() => [
836
+ vue.createVNode(_component_el_button, {
837
+ icon: vue.unref(index$5.Edit),
838
+ link: "",
839
+ type: "primary",
840
+ class: "edit-btn"
841
+ }, null, 8, ["icon"])
842
+ ]),
843
+ default: vue.withCtx(() => [
844
+ vue.createElementVNode("div", _hoisted_16, [
845
+ vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
846
+ default: vue.withCtx(() => [
847
+ vue.createVNode(widgets.default, {
848
+ column: col,
849
+ isComp: ""
850
+ }, null, 8, ["column"])
851
+ ]),
852
+ _: 2
853
+ }, 1024)
854
+ ])
855
+ ]),
856
+ _: 2
857
+ }, 1024),
858
+ vue.createVNode(_component_el_button, {
859
+ icon: vue.unref(index$5.Delete),
860
+ link: "",
861
+ type: "danger",
862
+ class: "delete-btn",
863
+ onClick: ($event) => removeCol(index2)
864
+ }, null, 8, ["icon", "onClick"])
865
+ ])
866
+ ]);
867
+ }), 128))
868
+ ]),
869
+ _: 1
870
+ }, 8, ["modelValue"])
871
+ ])
872
+ ])
873
+ ]),
874
+ _: 1
875
+ }),
876
+ vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
877
+ default: vue.withCtx(() => [
878
+ vue.createVNode(_component_el_input, {
879
+ modelValue: vue.unref(currentDialog).customTableConfig.pkFieldName,
880
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(currentDialog).customTableConfig.pkFieldName = $event),
881
+ placeholder: "请输入主键字段",
882
+ clearable: ""
883
+ }, null, 8, ["modelValue"])
884
+ ]),
885
+ _: 1
886
+ }),
887
+ vue.createVNode(_component_el_form_item, { label: "数据源" }, {
888
+ default: vue.withCtx(() => [
889
+ vue.createVNode(DataSourceSelect.default, {
890
+ modelValue: vue.unref(currentDialog).customTableConfig.dataSourceId,
891
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(currentDialog).customTableConfig.dataSourceId = $event)
892
+ }, null, 8, ["modelValue"])
893
+ ]),
894
+ _: 1
895
+ })
896
+ ], 64)) : vue.createCommentVNode("", true),
897
+ vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
898
+ default: vue.withCtx(() => [
899
+ vue.createVNode(_component_el_switch, {
900
+ modelValue: vue.unref(currentDialog).isSubTablePagination,
901
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(currentDialog).isSubTablePagination = $event)
902
+ }, null, 8, ["modelValue"])
903
+ ]),
904
+ _: 1
905
+ }),
906
+ vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
907
+ default: vue.withCtx(() => [
908
+ vue.createVNode(_component_el_switch, {
909
+ modelValue: vue.unref(currentDialog).isSubTableReadOnly,
910
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(currentDialog).isSubTableReadOnly = $event)
911
+ }, null, 8, ["modelValue"])
912
+ ]),
913
+ _: 1
914
+ })
915
+ ], 64)) : vue.createCommentVNode("", true),
916
+ vue.unref(currentDialog).contentSource === "form" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
917
+ vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
918
+ default: vue.withCtx(() => [
919
+ vue.createVNode(TemplateSelector.default, {
920
+ modelValue: vue.unref(currentDialog).subFormName,
921
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => vue.unref(currentDialog).subFormName = $event),
922
+ templateKey: vue.unref(currentDialog).subFormKey,
923
+ "onUpdate:templateKey": _cache[19] || (_cache[19] = ($event) => vue.unref(currentDialog).subFormKey = $event),
924
+ templateId: vue.unref(currentDialog).subFormId,
925
+ "onUpdate:templateId": _cache[20] || (_cache[20] = ($event) => vue.unref(currentDialog).subFormId = $event),
926
+ templateType: "form",
927
+ onConfirm: formSelectorConfirm
928
+ }, null, 8, ["modelValue", "templateKey", "templateId"])
929
+ ]),
930
+ _: 1
931
+ }),
932
+ vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
933
+ default: vue.withCtx(() => [
934
+ vue.createVNode(_component_el_radio_group, {
935
+ modelValue: vue.unref(currentDialog).subFormMode,
936
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).subFormMode = $event)
937
+ }, {
938
+ default: vue.withCtx(() => [
939
+ vue.createVNode(_component_el_radio_button, { value: "edit" }, {
940
+ default: vue.withCtx(() => _cache[41] || (_cache[41] = [
941
+ vue.createTextVNode("编辑")
942
+ ])),
943
+ _: 1
944
+ }),
945
+ vue.createVNode(_component_el_radio_button, { value: "query" }, {
946
+ default: vue.withCtx(() => _cache[42] || (_cache[42] = [
947
+ vue.createTextVNode("查看")
948
+ ])),
949
+ _: 1
950
+ })
951
+ ]),
952
+ _: 1
953
+ }, 8, ["modelValue"])
954
+ ]),
955
+ _: 1
956
+ }),
957
+ vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
958
+ default: vue.withCtx(() => [
959
+ vue.createElementVNode("div", _hoisted_17, [
960
+ !vue.unref(formFooterBtn) || vue.unref(formFooterBtn).length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, " 暂无可用按钮 ")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
961
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formFooterBtn), (btn) => {
962
+ return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
963
+ key: btn.id,
964
+ "model-value": isButtonSelected(btn.id),
965
+ onChange: ($event) => toggleButton(btn)
966
+ }, {
967
+ default: vue.withCtx(() => [
968
+ vue.createTextVNode(vue.toDisplayString(btn.label), 1)
969
+ ]),
970
+ _: 2
971
+ }, 1032, ["model-value", "onChange"]);
972
+ }), 128))
973
+ ]))
974
+ ])
975
+ ]),
976
+ _: 1
977
+ })
978
+ ], 64)) : vue.createCommentVNode("", true),
979
+ vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
980
+ vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
981
+ default: vue.withCtx(() => [
982
+ vue.createVNode(_component_el_input, {
983
+ modelValue: vue.unref(currentDialog).componentPath,
984
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).componentPath = $event),
985
+ placeholder: "请输入组件路径",
986
+ clearable: ""
987
+ }, null, 8, ["modelValue"])
988
+ ]),
989
+ _: 1
990
+ }),
991
+ vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
992
+ default: vue.withCtx(() => [
993
+ vue.createVNode(ParamsConfig.default, {
994
+ modelValue: vue.unref(currentDialog).componentParams,
995
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).componentParams = $event)
996
+ }, null, 8, ["modelValue"])
997
+ ]),
998
+ _: 1
999
+ }),
1000
+ vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
1001
+ default: vue.withCtx(() => [
1002
+ vue.createVNode(_component_el_switch, {
1003
+ modelValue: vue.unref(currentDialog).componentIsDialog,
1004
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
1005
+ }, null, 8, ["modelValue"])
1006
+ ]),
1007
+ _: 1
1008
+ })
1009
+ ], 64)) : vue.createCommentVNode("", true)
1010
+ ]),
1011
+ _: 1
1012
+ }, 8, ["model"])
1013
+ ]),
1014
+ _: 1
1015
+ })
1016
+ ]),
1017
+ _: 1
1018
+ })
1019
+ ]),
1020
+ _: 1
1021
+ })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, "请从左侧选择一个弹层"))
1022
+ ]),
1023
+ _: 1
1024
+ })
1025
+ ]),
1026
+ _: 1
1027
+ })
1028
+ ]),
1029
+ _: 1
1030
+ }, 8, ["modelValue", "close-on-click-modal", "close-on-press-escape", "show-close"]);
1031
+ };
1032
+ }
1033
+ };
1034
+ const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e641bf90"]]);
1035
+ exports.default = DialogGlobalDialog;