@fecp/designer 5.6.37 → 5.6.40
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/designer/package.json.mjs +1 -1
- package/es/designer/src/components/DataSourceSelect.vue.mjs +10 -4
- package/es/designer/src/packages/dialog/index.vue.mjs +28 -11
- package/es/designer/src/packages/dialog/index.vue2.mjs +28 -11
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/index.vue.mjs +28 -11
- package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +28 -11
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/utils/common.mjs +17 -0
- package/es/designer.css +122 -121
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +1 -1
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/components/DataSourceSelect.vue.js +9 -3
- package/lib/designer/src/packages/dialog/index.vue.js +26 -9
- package/lib/designer/src/packages/dialog/index.vue2.js +351 -334
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/index.vue.js +26 -9
- package/lib/designer/src/packages/dialogGlobal/index.vue2.js +321 -304
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/packages/utils/common.js +17 -0
- package/lib/designer.css +122 -121
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +1 -1
- package/package.json +23 -23
|
@@ -26,7 +26,7 @@ require("../../../../node_modules/element-plus/es/index.js");
|
|
|
26
26
|
;/* empty css */
|
|
27
27
|
;/* empty css */
|
|
28
28
|
;/* empty css */
|
|
29
|
-
const
|
|
29
|
+
const vue = require("vue");
|
|
30
30
|
const vueDraggablePlus = require("../../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js");
|
|
31
31
|
const index$5 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
|
|
32
32
|
const common = require("../utils/common.js");
|
|
@@ -159,17 +159,30 @@ const _sfc_main = {
|
|
|
159
159
|
},
|
|
160
160
|
emits: ["update:modelValue"],
|
|
161
161
|
setup(__props) {
|
|
162
|
-
const currentInstance =
|
|
162
|
+
const currentInstance = vue.getCurrentInstance();
|
|
163
163
|
const ctx = currentInstance.proxy;
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
const dialogVisible = vue.useModel(__props, "modelValue");
|
|
165
|
+
const loading = vue.ref(false);
|
|
166
|
+
const saving = vue.ref(false);
|
|
167
|
+
const selectedDialogs = vue.ref([]);
|
|
168
|
+
const activeDialogIndex = vue.ref(-1);
|
|
169
|
+
function normalizeDataSourceConfigs(dialogs) {
|
|
170
|
+
const globalDataSources = common.getEditConfigDataSources() || [];
|
|
171
|
+
(dialogs || []).forEach((dialog) => {
|
|
172
|
+
if (dialog.contentSource !== "table" || dialog.tableContent !== "custom") {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (!dialog.customTableConfig) {
|
|
176
|
+
dialog.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
|
|
177
|
+
dialog.customTableConfig.fieldsData = [];
|
|
178
|
+
}
|
|
179
|
+
dialog.customTableConfig.dataSources = common.mergeDataSources(
|
|
180
|
+
globalDataSources,
|
|
181
|
+
dialog.customTableConfig.dataSources
|
|
182
|
+
);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
vue.watch(dialogVisible, async (val) => {
|
|
173
186
|
if (val) {
|
|
174
187
|
isEditingNew.value = false;
|
|
175
188
|
editingDialogIndex.value = -1;
|
|
@@ -184,6 +197,7 @@ const _sfc_main = {
|
|
|
184
197
|
...JSON.parse(dialog.config)
|
|
185
198
|
});
|
|
186
199
|
}
|
|
200
|
+
normalizeDataSourceConfigs(selectedDialogs.value);
|
|
187
201
|
if (selectedDialogs.value.length > 0 && activeDialogIndex.value === -1) {
|
|
188
202
|
activeDialogIndex.value = 0;
|
|
189
203
|
}
|
|
@@ -196,10 +210,10 @@ const _sfc_main = {
|
|
|
196
210
|
}
|
|
197
211
|
}
|
|
198
212
|
});
|
|
199
|
-
const isEditingNew =
|
|
200
|
-
const newDialogName =
|
|
201
|
-
const editingDialogIndex =
|
|
202
|
-
const editingDialogName =
|
|
213
|
+
const isEditingNew = vue.ref(false);
|
|
214
|
+
const newDialogName = vue.ref("");
|
|
215
|
+
const editingDialogIndex = vue.ref(-1);
|
|
216
|
+
const editingDialogName = vue.ref("");
|
|
203
217
|
const startAddDialog = () => {
|
|
204
218
|
isEditingNew.value = true;
|
|
205
219
|
newDialogName.value = "";
|
|
@@ -276,6 +290,7 @@ const _sfc_main = {
|
|
|
276
290
|
const onConfirm = async () => {
|
|
277
291
|
saving.value = true;
|
|
278
292
|
try {
|
|
293
|
+
normalizeDataSourceConfigs(selectedDialogs.value);
|
|
279
294
|
const dialogArr = selectedDialogs.value.map((dialog) => {
|
|
280
295
|
const data = common.cloneDeep(dialog);
|
|
281
296
|
const id = data.id;
|
|
@@ -298,9 +313,9 @@ const _sfc_main = {
|
|
|
298
313
|
saving.value = false;
|
|
299
314
|
}
|
|
300
315
|
};
|
|
301
|
-
const tableOptions =
|
|
302
|
-
const formOptions =
|
|
303
|
-
const currentDialog =
|
|
316
|
+
const tableOptions = vue.ref(null);
|
|
317
|
+
const formOptions = vue.ref(null);
|
|
318
|
+
const currentDialog = vue.computed(() => {
|
|
304
319
|
const data = selectedDialogs.value[activeDialogIndex.value];
|
|
305
320
|
if (!data.fieldMapping) {
|
|
306
321
|
data.fieldMapping = [];
|
|
@@ -308,10 +323,11 @@ const _sfc_main = {
|
|
|
308
323
|
if (!data.customTableConfig) {
|
|
309
324
|
data.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
|
|
310
325
|
data.customTableConfig.fieldsData = [];
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
data.customTableConfig.dataSources = editConfigData.value.dataSources;
|
|
326
|
+
}
|
|
327
|
+
if (data.customTableConfig.queryConfig) {
|
|
314
328
|
data.customTableConfig.queryConfig.enabled = false;
|
|
329
|
+
} else {
|
|
330
|
+
data.customTableConfig.queryConfig = { enabled: false };
|
|
315
331
|
}
|
|
316
332
|
if ((data == null ? void 0 : data.contentSource) == "table") {
|
|
317
333
|
const pkId = data == null ? void 0 : data.subTableId;
|
|
@@ -337,11 +353,11 @@ const _sfc_main = {
|
|
|
337
353
|
function formSelectorConfirm(data) {
|
|
338
354
|
formOptions.value = data;
|
|
339
355
|
}
|
|
340
|
-
const tableMode =
|
|
356
|
+
const tableMode = vue.computed(() => {
|
|
341
357
|
var _a;
|
|
342
358
|
return (_a = tableOptions.value) == null ? void 0 : _a.mode;
|
|
343
359
|
});
|
|
344
|
-
|
|
360
|
+
vue.computed(() => {
|
|
345
361
|
var _a, _b, _c, _d;
|
|
346
362
|
if (currentDialog.value.tableContent === "custom") {
|
|
347
363
|
return ((_b = (_a = currentDialog.value) == null ? void 0 : _a.customTableConfig) == null ? void 0 : _b.fieldsData) || [];
|
|
@@ -352,7 +368,7 @@ const _sfc_main = {
|
|
|
352
368
|
];
|
|
353
369
|
}
|
|
354
370
|
});
|
|
355
|
-
const formFooterBtn =
|
|
371
|
+
const formFooterBtn = vue.computed(() => {
|
|
356
372
|
var _a;
|
|
357
373
|
const btnList = (_a = formOptions.value) == null ? void 0 : _a.pageFooterConfig.actions;
|
|
358
374
|
if (btnList) {
|
|
@@ -406,7 +422,7 @@ const _sfc_main = {
|
|
|
406
422
|
const _component_el_checkbox = index$f.ElCheckbox;
|
|
407
423
|
const _component_el_form = index$a.ElForm;
|
|
408
424
|
const _component_el_dialog = index$2.ElDialog;
|
|
409
|
-
return
|
|
425
|
+
return vue.openBlock(), vue.createBlock(_component_el_dialog, {
|
|
410
426
|
modelValue: dialogVisible.value,
|
|
411
427
|
"onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => dialogVisible.value = $event),
|
|
412
428
|
width: "50%",
|
|
@@ -415,146 +431,146 @@ const _sfc_main = {
|
|
|
415
431
|
overflow: "",
|
|
416
432
|
"append-to-body": "",
|
|
417
433
|
class: "fec-dev-designer-dialog",
|
|
418
|
-
"close-on-click-modal": !
|
|
419
|
-
"close-on-press-escape": !
|
|
420
|
-
"show-close": !
|
|
434
|
+
"close-on-click-modal": !vue.unref(saving),
|
|
435
|
+
"close-on-press-escape": !vue.unref(saving),
|
|
436
|
+
"show-close": !vue.unref(saving)
|
|
421
437
|
}, {
|
|
422
|
-
footer:
|
|
423
|
-
|
|
424
|
-
|
|
438
|
+
footer: vue.withCtx(() => [
|
|
439
|
+
vue.createElementVNode("div", _hoisted_21, [
|
|
440
|
+
vue.createVNode(_component_el_button, {
|
|
425
441
|
onClick: _cache[25] || (_cache[25] = ($event) => dialogVisible.value = false),
|
|
426
|
-
disabled:
|
|
442
|
+
disabled: vue.unref(saving)
|
|
427
443
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
|
|
444
|
+
default: vue.withCtx(() => _cache[43] || (_cache[43] = [
|
|
445
|
+
vue.createTextVNode("取消")
|
|
430
446
|
])),
|
|
431
447
|
_: 1
|
|
432
448
|
}, 8, ["disabled"]),
|
|
433
|
-
|
|
449
|
+
vue.createVNode(_component_el_button, {
|
|
434
450
|
type: "primary",
|
|
435
451
|
onClick: onConfirm,
|
|
436
|
-
loading:
|
|
437
|
-
disabled:
|
|
452
|
+
loading: vue.unref(saving),
|
|
453
|
+
disabled: vue.unref(loading) || vue.unref(saving)
|
|
438
454
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
|
|
455
|
+
default: vue.withCtx(() => _cache[44] || (_cache[44] = [
|
|
456
|
+
vue.createTextVNode(" 确定 ")
|
|
441
457
|
])),
|
|
442
458
|
_: 1
|
|
443
459
|
}, 8, ["loading", "disabled"])
|
|
444
460
|
])
|
|
445
461
|
]),
|
|
446
|
-
default:
|
|
447
|
-
|
|
448
|
-
default:
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
default:
|
|
452
|
-
|
|
462
|
+
default: vue.withCtx(() => [
|
|
463
|
+
vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px", "position": "relative" } }, {
|
|
464
|
+
default: vue.withCtx(() => [
|
|
465
|
+
vue.unref(loading) || vue.unref(saving) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
466
|
+
vue.createVNode(_component_el_icon, { class: "loading-icon" }, {
|
|
467
|
+
default: vue.withCtx(() => [
|
|
468
|
+
vue.createVNode(vue.unref(index$5.Loading))
|
|
453
469
|
]),
|
|
454
470
|
_: 1
|
|
455
471
|
}),
|
|
456
|
-
|
|
457
|
-
])) :
|
|
458
|
-
|
|
459
|
-
default:
|
|
460
|
-
|
|
461
|
-
default:
|
|
462
|
-
|
|
472
|
+
vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(vue.unref(loading) ? "加载中..." : "保存中..."), 1)
|
|
473
|
+
])) : vue.createCommentVNode("", true),
|
|
474
|
+
vue.createVNode(_component_el_aside, { width: "300px" }, {
|
|
475
|
+
default: vue.withCtx(() => [
|
|
476
|
+
vue.createVNode(_component_el_container, null, {
|
|
477
|
+
default: vue.withCtx(() => [
|
|
478
|
+
vue.createVNode(_component_el_header, {
|
|
463
479
|
height: "40px",
|
|
464
480
|
style: { "background-color": "#f2f2f2", "line-height": "40px" }
|
|
465
481
|
}, {
|
|
466
|
-
default:
|
|
467
|
-
|
|
482
|
+
default: vue.withCtx(() => [
|
|
483
|
+
vue.createVNode(_component_el_button, {
|
|
468
484
|
type: "primary",
|
|
469
485
|
link: "",
|
|
470
|
-
icon:
|
|
486
|
+
icon: vue.unref(index$5.Plus),
|
|
471
487
|
onClick: startAddDialog
|
|
472
488
|
}, {
|
|
473
|
-
default:
|
|
474
|
-
|
|
489
|
+
default: vue.withCtx(() => _cache[27] || (_cache[27] = [
|
|
490
|
+
vue.createTextVNode(" 新增弹层 ")
|
|
475
491
|
])),
|
|
476
492
|
_: 1
|
|
477
493
|
}, 8, ["icon"])
|
|
478
494
|
]),
|
|
479
495
|
_: 1
|
|
480
496
|
}),
|
|
481
|
-
|
|
482
|
-
default:
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
modelValue:
|
|
488
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) =>
|
|
497
|
+
vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
|
|
498
|
+
default: vue.withCtx(() => [
|
|
499
|
+
vue.unref(isEditingNew) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
500
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
501
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
502
|
+
vue.createVNode(_component_el_input, {
|
|
503
|
+
modelValue: vue.unref(newDialogName),
|
|
504
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(newDialogName) ? newDialogName.value = $event : null),
|
|
489
505
|
placeholder: "请输入弹层名称",
|
|
490
506
|
size: "default",
|
|
491
|
-
onKeyup:
|
|
507
|
+
onKeyup: vue.withKeys(confirmAddDialog, ["enter"]),
|
|
492
508
|
class: "new-item-input"
|
|
493
509
|
}, null, 8, ["modelValue"]),
|
|
494
|
-
|
|
495
|
-
|
|
510
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
511
|
+
vue.createVNode(_component_el_button, {
|
|
496
512
|
size: "small",
|
|
497
|
-
icon:
|
|
513
|
+
icon: vue.unref(index$5.Close),
|
|
498
514
|
onClick: cancelAddDialog
|
|
499
515
|
}, {
|
|
500
|
-
default:
|
|
501
|
-
|
|
516
|
+
default: vue.withCtx(() => _cache[28] || (_cache[28] = [
|
|
517
|
+
vue.createTextVNode(" 取消 ")
|
|
502
518
|
])),
|
|
503
519
|
_: 1
|
|
504
520
|
}, 8, ["icon"]),
|
|
505
|
-
|
|
521
|
+
vue.createVNode(_component_el_button, {
|
|
506
522
|
type: "primary",
|
|
507
523
|
size: "small",
|
|
508
|
-
icon:
|
|
524
|
+
icon: vue.unref(index$5.Check),
|
|
509
525
|
onClick: confirmAddDialog
|
|
510
526
|
}, {
|
|
511
|
-
default:
|
|
512
|
-
|
|
527
|
+
default: vue.withCtx(() => _cache[29] || (_cache[29] = [
|
|
528
|
+
vue.createTextVNode(" 确认 ")
|
|
513
529
|
])),
|
|
514
530
|
_: 1
|
|
515
531
|
}, 8, ["icon"])
|
|
516
532
|
])
|
|
517
533
|
])
|
|
518
534
|
])
|
|
519
|
-
])) :
|
|
520
|
-
(
|
|
521
|
-
return
|
|
535
|
+
])) : vue.createCommentVNode("", true),
|
|
536
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedDialogs), (dialog, index2) => {
|
|
537
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
522
538
|
key: index2,
|
|
523
|
-
class:
|
|
539
|
+
class: vue.normalizeClass([
|
|
524
540
|
"dialog-menu-item",
|
|
525
|
-
{ "is-active":
|
|
541
|
+
{ "is-active": vue.unref(activeDialogIndex) === index2 }
|
|
526
542
|
]),
|
|
527
543
|
onClick: ($event) => activeDialogIndex.value = index2
|
|
528
544
|
}, [
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
545
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
546
|
+
vue.createElementVNode("div", _hoisted_9, [
|
|
547
|
+
vue.withDirectives(vue.createVNode(_component_el_input, {
|
|
532
548
|
onBlur: ($event) => onEditOutside(),
|
|
533
549
|
maxlength: "30",
|
|
534
|
-
modelValue:
|
|
535
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) =>
|
|
550
|
+
modelValue: vue.unref(editingDialogName),
|
|
551
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
|
|
536
552
|
size: "small"
|
|
537
553
|
}, null, 8, ["onBlur", "modelValue"]), [
|
|
538
|
-
[
|
|
554
|
+
[vue.vShow, vue.unref(editingDialogIndex) === index2]
|
|
539
555
|
]),
|
|
540
|
-
|
|
556
|
+
vue.withDirectives(vue.createVNode(_component_el_link, {
|
|
541
557
|
icon: "Edit",
|
|
542
|
-
onClick:
|
|
558
|
+
onClick: vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
|
|
543
559
|
}, {
|
|
544
|
-
default:
|
|
545
|
-
|
|
560
|
+
default: vue.withCtx(() => [
|
|
561
|
+
vue.createTextVNode(vue.toDisplayString(dialog.name), 1)
|
|
546
562
|
]),
|
|
547
563
|
_: 2
|
|
548
564
|
}, 1032, ["onClick"]), [
|
|
549
|
-
[
|
|
565
|
+
[vue.vShow, vue.unref(editingDialogIndex) !== index2]
|
|
550
566
|
])
|
|
551
567
|
]),
|
|
552
|
-
|
|
568
|
+
vue.createVNode(_component_el_icon, {
|
|
553
569
|
class: "delete-icon",
|
|
554
|
-
onClick:
|
|
570
|
+
onClick: vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
|
|
555
571
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
572
|
+
default: vue.withCtx(() => [
|
|
573
|
+
vue.createVNode(vue.unref(index$5.Delete))
|
|
558
574
|
]),
|
|
559
575
|
_: 2
|
|
560
576
|
}, 1032, ["onClick"])
|
|
@@ -570,72 +586,72 @@ const _sfc_main = {
|
|
|
570
586
|
]),
|
|
571
587
|
_: 1
|
|
572
588
|
}),
|
|
573
|
-
|
|
574
|
-
default:
|
|
575
|
-
|
|
589
|
+
vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
|
|
590
|
+
default: vue.withCtx(() => [
|
|
591
|
+
vue.unref(activeDialogIndex) !== -1 ? (vue.openBlock(), vue.createBlock(_component_el_container, {
|
|
576
592
|
key: 0,
|
|
577
593
|
style: { "height": "100%" }
|
|
578
594
|
}, {
|
|
579
|
-
default:
|
|
580
|
-
|
|
595
|
+
default: vue.withCtx(() => [
|
|
596
|
+
vue.createVNode(_component_el_header, {
|
|
581
597
|
height: "40px",
|
|
582
598
|
class: "dialog-header"
|
|
583
599
|
}, {
|
|
584
|
-
default:
|
|
585
|
-
|
|
600
|
+
default: vue.withCtx(() => [
|
|
601
|
+
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(currentDialog).name), 1)
|
|
586
602
|
]),
|
|
587
603
|
_: 1
|
|
588
604
|
}),
|
|
589
|
-
|
|
590
|
-
default:
|
|
591
|
-
|
|
592
|
-
default:
|
|
593
|
-
|
|
594
|
-
model:
|
|
605
|
+
vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
|
|
606
|
+
default: vue.withCtx(() => [
|
|
607
|
+
vue.createVNode(_component_el_scrollbar, null, {
|
|
608
|
+
default: vue.withCtx(() => [
|
|
609
|
+
vue.createVNode(_component_el_form, {
|
|
610
|
+
model: vue.unref(currentDialog),
|
|
595
611
|
"label-width": "120px",
|
|
596
612
|
style: { "padding-right": "20px" },
|
|
597
613
|
size: "small"
|
|
598
614
|
}, {
|
|
599
|
-
default:
|
|
600
|
-
|
|
601
|
-
default:
|
|
602
|
-
|
|
603
|
-
modelValue:
|
|
604
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) =>
|
|
615
|
+
default: vue.withCtx(() => [
|
|
616
|
+
vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
|
|
617
|
+
default: vue.withCtx(() => [
|
|
618
|
+
vue.createVNode(_component_el_input, {
|
|
619
|
+
modelValue: vue.unref(currentDialog).dialogTitle,
|
|
620
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(currentDialog).dialogTitle = $event),
|
|
605
621
|
placeholder: "请输入弹层标题",
|
|
606
622
|
clearable: ""
|
|
607
623
|
}, null, 8, ["modelValue"])
|
|
608
624
|
]),
|
|
609
625
|
_: 1
|
|
610
626
|
}),
|
|
611
|
-
|
|
612
|
-
default:
|
|
613
|
-
|
|
614
|
-
modelValue:
|
|
615
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) =>
|
|
627
|
+
vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
|
|
628
|
+
default: vue.withCtx(() => [
|
|
629
|
+
vue.createVNode(_component_el_radio_group, {
|
|
630
|
+
modelValue: vue.unref(currentDialog).dialogSize,
|
|
631
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(currentDialog).dialogSize = $event)
|
|
616
632
|
}, {
|
|
617
|
-
default:
|
|
618
|
-
|
|
619
|
-
default:
|
|
620
|
-
|
|
633
|
+
default: vue.withCtx(() => [
|
|
634
|
+
vue.createVNode(_component_el_radio_button, { value: "standard" }, {
|
|
635
|
+
default: vue.withCtx(() => _cache[30] || (_cache[30] = [
|
|
636
|
+
vue.createTextVNode("标准")
|
|
621
637
|
])),
|
|
622
638
|
_: 1
|
|
623
639
|
}),
|
|
624
|
-
|
|
625
|
-
default:
|
|
626
|
-
|
|
640
|
+
vue.createVNode(_component_el_radio_button, { value: "large" }, {
|
|
641
|
+
default: vue.withCtx(() => _cache[31] || (_cache[31] = [
|
|
642
|
+
vue.createTextVNode("更大")
|
|
627
643
|
])),
|
|
628
644
|
_: 1
|
|
629
645
|
}),
|
|
630
|
-
|
|
631
|
-
default:
|
|
632
|
-
|
|
646
|
+
vue.createVNode(_component_el_radio_button, { value: "small" }, {
|
|
647
|
+
default: vue.withCtx(() => _cache[32] || (_cache[32] = [
|
|
648
|
+
vue.createTextVNode("更小")
|
|
633
649
|
])),
|
|
634
650
|
_: 1
|
|
635
651
|
}),
|
|
636
|
-
|
|
637
|
-
default:
|
|
638
|
-
|
|
652
|
+
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
653
|
+
default: vue.withCtx(() => _cache[33] || (_cache[33] = [
|
|
654
|
+
vue.createTextVNode("自定义")
|
|
639
655
|
])),
|
|
640
656
|
_: 1
|
|
641
657
|
})
|
|
@@ -645,65 +661,65 @@ const _sfc_main = {
|
|
|
645
661
|
]),
|
|
646
662
|
_: 1
|
|
647
663
|
}),
|
|
648
|
-
|
|
664
|
+
vue.unref(currentDialog).dialogSize === "custom" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
|
|
649
665
|
key: 0,
|
|
650
666
|
label: "自定义尺寸"
|
|
651
667
|
}, {
|
|
652
|
-
default:
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
modelValue:
|
|
656
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) =>
|
|
668
|
+
default: vue.withCtx(() => [
|
|
669
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
670
|
+
vue.createVNode(_component_el_input, {
|
|
671
|
+
modelValue: vue.unref(currentDialog).customWidth,
|
|
672
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(currentDialog).customWidth = $event),
|
|
657
673
|
placeholder: "宽度,如:800px、60%",
|
|
658
674
|
style: { "flex": "1" }
|
|
659
675
|
}, null, 8, ["modelValue"]),
|
|
660
|
-
|
|
661
|
-
modelValue:
|
|
662
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) =>
|
|
676
|
+
vue.createVNode(_component_el_input, {
|
|
677
|
+
modelValue: vue.unref(currentDialog).customMaxHeight,
|
|
678
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentDialog).customMaxHeight = $event),
|
|
663
679
|
placeholder: "最大高度,如:600px、80vh",
|
|
664
680
|
style: { "flex": "1" }
|
|
665
681
|
}, null, 8, ["modelValue"])
|
|
666
682
|
])
|
|
667
683
|
]),
|
|
668
684
|
_: 1
|
|
669
|
-
})) :
|
|
670
|
-
|
|
671
|
-
default:
|
|
672
|
-
|
|
673
|
-
modelValue:
|
|
674
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) =>
|
|
685
|
+
})) : vue.createCommentVNode("", true),
|
|
686
|
+
vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
|
|
687
|
+
default: vue.withCtx(() => [
|
|
688
|
+
vue.createVNode(ParamsConfig.default, {
|
|
689
|
+
modelValue: vue.unref(currentDialog).dialogParams,
|
|
690
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(currentDialog).dialogParams = $event)
|
|
675
691
|
}, null, 8, ["modelValue"])
|
|
676
692
|
]),
|
|
677
693
|
_: 1
|
|
678
694
|
}),
|
|
679
|
-
|
|
680
|
-
default:
|
|
681
|
-
|
|
682
|
-
modelValue:
|
|
683
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) =>
|
|
695
|
+
vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
|
|
696
|
+
default: vue.withCtx(() => [
|
|
697
|
+
vue.createVNode(_component_el_radio_group, {
|
|
698
|
+
modelValue: vue.unref(currentDialog).contentSource,
|
|
699
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(currentDialog).contentSource = $event)
|
|
684
700
|
}, {
|
|
685
|
-
default:
|
|
686
|
-
|
|
687
|
-
default:
|
|
688
|
-
|
|
701
|
+
default: vue.withCtx(() => [
|
|
702
|
+
vue.createVNode(_component_el_radio_button, { value: "table" }, {
|
|
703
|
+
default: vue.withCtx(() => _cache[34] || (_cache[34] = [
|
|
704
|
+
vue.createTextVNode("列表")
|
|
689
705
|
])),
|
|
690
706
|
_: 1
|
|
691
707
|
}),
|
|
692
|
-
|
|
693
|
-
default:
|
|
694
|
-
|
|
708
|
+
vue.createVNode(_component_el_radio_button, { value: "form" }, {
|
|
709
|
+
default: vue.withCtx(() => _cache[35] || (_cache[35] = [
|
|
710
|
+
vue.createTextVNode("表单")
|
|
695
711
|
])),
|
|
696
712
|
_: 1
|
|
697
713
|
}),
|
|
698
|
-
|
|
699
|
-
default:
|
|
700
|
-
|
|
714
|
+
vue.createVNode(_component_el_radio_button, { value: "tree" }, {
|
|
715
|
+
default: vue.withCtx(() => _cache[36] || (_cache[36] = [
|
|
716
|
+
vue.createTextVNode("树形")
|
|
701
717
|
])),
|
|
702
718
|
_: 1
|
|
703
719
|
}),
|
|
704
|
-
|
|
705
|
-
default:
|
|
706
|
-
|
|
720
|
+
vue.createVNode(_component_el_radio_button, { value: "component" }, {
|
|
721
|
+
default: vue.withCtx(() => _cache[37] || (_cache[37] = [
|
|
722
|
+
vue.createTextVNode("组件")
|
|
707
723
|
])),
|
|
708
724
|
_: 1
|
|
709
725
|
})
|
|
@@ -713,23 +729,23 @@ const _sfc_main = {
|
|
|
713
729
|
]),
|
|
714
730
|
_: 1
|
|
715
731
|
}),
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
default:
|
|
719
|
-
|
|
720
|
-
modelValue:
|
|
721
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) =>
|
|
732
|
+
vue.unref(currentDialog).contentSource === "table" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
733
|
+
vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
|
|
734
|
+
default: vue.withCtx(() => [
|
|
735
|
+
vue.createVNode(_component_el_radio_group, {
|
|
736
|
+
modelValue: vue.unref(currentDialog).tableContent,
|
|
737
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(currentDialog).tableContent = $event)
|
|
722
738
|
}, {
|
|
723
|
-
default:
|
|
724
|
-
|
|
725
|
-
default:
|
|
726
|
-
|
|
739
|
+
default: vue.withCtx(() => [
|
|
740
|
+
vue.createVNode(_component_el_radio_button, { value: "select" }, {
|
|
741
|
+
default: vue.withCtx(() => _cache[38] || (_cache[38] = [
|
|
742
|
+
vue.createTextVNode("选择列表")
|
|
727
743
|
])),
|
|
728
744
|
_: 1
|
|
729
745
|
}),
|
|
730
|
-
|
|
731
|
-
default:
|
|
732
|
-
|
|
746
|
+
vue.createVNode(_component_el_radio_button, { value: "custom" }, {
|
|
747
|
+
default: vue.withCtx(() => _cache[39] || (_cache[39] = [
|
|
748
|
+
vue.createTextVNode("自定义")
|
|
733
749
|
])),
|
|
734
750
|
_: 1
|
|
735
751
|
})
|
|
@@ -739,32 +755,32 @@ const _sfc_main = {
|
|
|
739
755
|
]),
|
|
740
756
|
_: 1
|
|
741
757
|
}),
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
default:
|
|
745
|
-
|
|
746
|
-
modelValue:
|
|
747
|
-
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) =>
|
|
748
|
-
templateKey:
|
|
749
|
-
"onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) =>
|
|
750
|
-
templateId:
|
|
751
|
-
"onUpdate:templateId": _cache[11] || (_cache[11] = ($event) =>
|
|
758
|
+
vue.unref(currentDialog).tableContent === "select" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
759
|
+
vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
|
|
760
|
+
default: vue.withCtx(() => [
|
|
761
|
+
vue.createVNode(TemplateSelector.default, {
|
|
762
|
+
modelValue: vue.unref(currentDialog).subTableName,
|
|
763
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(currentDialog).subTableName = $event),
|
|
764
|
+
templateKey: vue.unref(currentDialog).subTableKey,
|
|
765
|
+
"onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => vue.unref(currentDialog).subTableKey = $event),
|
|
766
|
+
templateId: vue.unref(currentDialog).subTableId,
|
|
767
|
+
"onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => vue.unref(currentDialog).subTableId = $event),
|
|
752
768
|
templateType: "table",
|
|
753
769
|
onConfirm: tableSelectorConfirm
|
|
754
770
|
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
755
771
|
]),
|
|
756
772
|
_: 1
|
|
757
773
|
}),
|
|
758
|
-
|
|
759
|
-
default:
|
|
760
|
-
|
|
761
|
-
modelValue:
|
|
762
|
-
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) =>
|
|
774
|
+
vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
|
|
775
|
+
default: vue.withCtx(() => [
|
|
776
|
+
vue.createVNode(_component_el_select, {
|
|
777
|
+
modelValue: vue.unref(currentDialog).subTableMode,
|
|
778
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(currentDialog).subTableMode = $event),
|
|
763
779
|
clearable: ""
|
|
764
780
|
}, {
|
|
765
|
-
default:
|
|
766
|
-
(
|
|
767
|
-
return
|
|
781
|
+
default: vue.withCtx(() => [
|
|
782
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableMode), (mode) => {
|
|
783
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
768
784
|
key: mode.key,
|
|
769
785
|
label: mode.name,
|
|
770
786
|
value: mode.key
|
|
@@ -776,77 +792,77 @@ const _sfc_main = {
|
|
|
776
792
|
]),
|
|
777
793
|
_: 1
|
|
778
794
|
})
|
|
779
|
-
], 64)) :
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
default:
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
795
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
796
|
+
vue.unref(currentDialog).tableContent === "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
797
|
+
vue.createVNode(_component_el_form_item, { label: "列配置" }, {
|
|
798
|
+
default: vue.withCtx(() => [
|
|
799
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
800
|
+
vue.createElementVNode("div", _hoisted_12, [
|
|
801
|
+
vue.createVNode(_component_el_button, {
|
|
786
802
|
type: "primary",
|
|
787
803
|
size: "small",
|
|
788
804
|
onClick: addTableCol,
|
|
789
805
|
icon: "Plus",
|
|
790
806
|
link: ""
|
|
791
807
|
}, {
|
|
792
|
-
default:
|
|
793
|
-
|
|
808
|
+
default: vue.withCtx(() => _cache[40] || (_cache[40] = [
|
|
809
|
+
vue.createTextVNode(" 添加列配置 ")
|
|
794
810
|
])),
|
|
795
811
|
_: 1
|
|
796
812
|
})
|
|
797
813
|
]),
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
modelValue:
|
|
801
|
-
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) =>
|
|
814
|
+
vue.createElementVNode("div", _hoisted_13, [
|
|
815
|
+
vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
|
|
816
|
+
modelValue: vue.unref(currentDialog).customTableConfig.fieldsData,
|
|
817
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(currentDialog).customTableConfig.fieldsData = $event),
|
|
802
818
|
animation: 150,
|
|
803
819
|
handle: ".drag-handle"
|
|
804
820
|
}, {
|
|
805
|
-
default:
|
|
806
|
-
(
|
|
807
|
-
return
|
|
821
|
+
default: vue.withCtx(() => [
|
|
822
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
|
|
823
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
808
824
|
key: index2,
|
|
809
825
|
class: "col-rule-item"
|
|
810
826
|
}, [
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
default:
|
|
814
|
-
|
|
827
|
+
vue.createElementVNode("div", _hoisted_14, [
|
|
828
|
+
vue.createVNode(_component_el_icon, null, {
|
|
829
|
+
default: vue.withCtx(() => [
|
|
830
|
+
vue.createVNode(vue.unref(index$5.Rank))
|
|
815
831
|
]),
|
|
816
832
|
_: 1
|
|
817
833
|
})
|
|
818
834
|
]),
|
|
819
|
-
|
|
835
|
+
vue.createVNode(_component_el_input, {
|
|
820
836
|
modelValue: col.label,
|
|
821
837
|
"onUpdate:modelValue": ($event) => col.label = $event,
|
|
822
838
|
size: "small",
|
|
823
839
|
placeholder: "列标题"
|
|
824
840
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
825
|
-
|
|
841
|
+
vue.createVNode(_component_el_input, {
|
|
826
842
|
modelValue: col.fieldName,
|
|
827
843
|
"onUpdate:modelValue": ($event) => col.fieldName = $event,
|
|
828
844
|
size: "small",
|
|
829
845
|
placeholder: "字段名"
|
|
830
846
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
831
|
-
|
|
832
|
-
|
|
847
|
+
vue.createElementVNode("div", _hoisted_15, [
|
|
848
|
+
vue.createVNode(_component_el_popover, {
|
|
833
849
|
placement: "right",
|
|
834
850
|
width: 200,
|
|
835
851
|
trigger: "click"
|
|
836
852
|
}, {
|
|
837
|
-
reference:
|
|
838
|
-
|
|
839
|
-
icon:
|
|
853
|
+
reference: vue.withCtx(() => [
|
|
854
|
+
vue.createVNode(_component_el_button, {
|
|
855
|
+
icon: vue.unref(index$5.Edit),
|
|
840
856
|
link: "",
|
|
841
857
|
type: "primary",
|
|
842
858
|
class: "edit-btn"
|
|
843
859
|
}, null, 8, ["icon"])
|
|
844
860
|
]),
|
|
845
|
-
default:
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
default:
|
|
849
|
-
|
|
861
|
+
default: vue.withCtx(() => [
|
|
862
|
+
vue.createElementVNode("div", _hoisted_16, [
|
|
863
|
+
vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
|
|
864
|
+
default: vue.withCtx(() => [
|
|
865
|
+
vue.createVNode(widgets.default, {
|
|
850
866
|
column: col,
|
|
851
867
|
isComp: ""
|
|
852
868
|
}, null, 8, ["column"])
|
|
@@ -857,8 +873,8 @@ const _sfc_main = {
|
|
|
857
873
|
]),
|
|
858
874
|
_: 2
|
|
859
875
|
}, 1024),
|
|
860
|
-
|
|
861
|
-
icon:
|
|
876
|
+
vue.createVNode(_component_el_button, {
|
|
877
|
+
icon: vue.unref(index$5.Delete),
|
|
862
878
|
link: "",
|
|
863
879
|
type: "danger",
|
|
864
880
|
class: "delete-btn",
|
|
@@ -875,78 +891,79 @@ const _sfc_main = {
|
|
|
875
891
|
]),
|
|
876
892
|
_: 1
|
|
877
893
|
}),
|
|
878
|
-
|
|
879
|
-
default:
|
|
880
|
-
|
|
881
|
-
modelValue:
|
|
882
|
-
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) =>
|
|
894
|
+
vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
|
|
895
|
+
default: vue.withCtx(() => [
|
|
896
|
+
vue.createVNode(_component_el_input, {
|
|
897
|
+
modelValue: vue.unref(currentDialog).customTableConfig.pkFieldName,
|
|
898
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(currentDialog).customTableConfig.pkFieldName = $event),
|
|
883
899
|
placeholder: "请输入主键字段",
|
|
884
900
|
clearable: ""
|
|
885
901
|
}, null, 8, ["modelValue"])
|
|
886
902
|
]),
|
|
887
903
|
_: 1
|
|
888
904
|
}),
|
|
889
|
-
|
|
890
|
-
default:
|
|
891
|
-
|
|
892
|
-
modelValue:
|
|
893
|
-
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) =>
|
|
894
|
-
|
|
905
|
+
vue.createVNode(_component_el_form_item, { label: "数据源" }, {
|
|
906
|
+
default: vue.withCtx(() => [
|
|
907
|
+
vue.createVNode(DataSourceSelect.default, {
|
|
908
|
+
modelValue: vue.unref(currentDialog).customTableConfig.dataSourceId,
|
|
909
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(currentDialog).customTableConfig.dataSourceId = $event),
|
|
910
|
+
"data-sources": vue.unref(currentDialog).customTableConfig.dataSources
|
|
911
|
+
}, null, 8, ["modelValue", "data-sources"])
|
|
895
912
|
]),
|
|
896
913
|
_: 1
|
|
897
914
|
})
|
|
898
|
-
], 64)) :
|
|
899
|
-
|
|
900
|
-
default:
|
|
901
|
-
|
|
902
|
-
modelValue:
|
|
903
|
-
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) =>
|
|
915
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
916
|
+
vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
|
|
917
|
+
default: vue.withCtx(() => [
|
|
918
|
+
vue.createVNode(_component_el_switch, {
|
|
919
|
+
modelValue: vue.unref(currentDialog).isSubTablePagination,
|
|
920
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(currentDialog).isSubTablePagination = $event)
|
|
904
921
|
}, null, 8, ["modelValue"])
|
|
905
922
|
]),
|
|
906
923
|
_: 1
|
|
907
924
|
}),
|
|
908
|
-
|
|
909
|
-
default:
|
|
910
|
-
|
|
911
|
-
modelValue:
|
|
912
|
-
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) =>
|
|
925
|
+
vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
|
|
926
|
+
default: vue.withCtx(() => [
|
|
927
|
+
vue.createVNode(_component_el_switch, {
|
|
928
|
+
modelValue: vue.unref(currentDialog).isSubTableReadOnly,
|
|
929
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(currentDialog).isSubTableReadOnly = $event)
|
|
913
930
|
}, null, 8, ["modelValue"])
|
|
914
931
|
]),
|
|
915
932
|
_: 1
|
|
916
933
|
})
|
|
917
|
-
], 64)) :
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
default:
|
|
921
|
-
|
|
922
|
-
modelValue:
|
|
923
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) =>
|
|
924
|
-
templateKey:
|
|
925
|
-
"onUpdate:templateKey": _cache[19] || (_cache[19] = ($event) =>
|
|
926
|
-
templateId:
|
|
927
|
-
"onUpdate:templateId": _cache[20] || (_cache[20] = ($event) =>
|
|
934
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
935
|
+
vue.unref(currentDialog).contentSource === "form" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
|
|
936
|
+
vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
|
|
937
|
+
default: vue.withCtx(() => [
|
|
938
|
+
vue.createVNode(TemplateSelector.default, {
|
|
939
|
+
modelValue: vue.unref(currentDialog).subFormName,
|
|
940
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => vue.unref(currentDialog).subFormName = $event),
|
|
941
|
+
templateKey: vue.unref(currentDialog).subFormKey,
|
|
942
|
+
"onUpdate:templateKey": _cache[19] || (_cache[19] = ($event) => vue.unref(currentDialog).subFormKey = $event),
|
|
943
|
+
templateId: vue.unref(currentDialog).subFormId,
|
|
944
|
+
"onUpdate:templateId": _cache[20] || (_cache[20] = ($event) => vue.unref(currentDialog).subFormId = $event),
|
|
928
945
|
templateType: "form",
|
|
929
946
|
onConfirm: formSelectorConfirm
|
|
930
947
|
}, null, 8, ["modelValue", "templateKey", "templateId"])
|
|
931
948
|
]),
|
|
932
949
|
_: 1
|
|
933
950
|
}),
|
|
934
|
-
|
|
935
|
-
default:
|
|
936
|
-
|
|
937
|
-
modelValue:
|
|
938
|
-
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) =>
|
|
951
|
+
vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
|
|
952
|
+
default: vue.withCtx(() => [
|
|
953
|
+
vue.createVNode(_component_el_radio_group, {
|
|
954
|
+
modelValue: vue.unref(currentDialog).subFormMode,
|
|
955
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).subFormMode = $event)
|
|
939
956
|
}, {
|
|
940
|
-
default:
|
|
941
|
-
|
|
942
|
-
default:
|
|
943
|
-
|
|
957
|
+
default: vue.withCtx(() => [
|
|
958
|
+
vue.createVNode(_component_el_radio_button, { value: "edit" }, {
|
|
959
|
+
default: vue.withCtx(() => _cache[41] || (_cache[41] = [
|
|
960
|
+
vue.createTextVNode("编辑")
|
|
944
961
|
])),
|
|
945
962
|
_: 1
|
|
946
963
|
}),
|
|
947
|
-
|
|
948
|
-
default:
|
|
949
|
-
|
|
964
|
+
vue.createVNode(_component_el_radio_button, { value: "query" }, {
|
|
965
|
+
default: vue.withCtx(() => _cache[42] || (_cache[42] = [
|
|
966
|
+
vue.createTextVNode("查看")
|
|
950
967
|
])),
|
|
951
968
|
_: 1
|
|
952
969
|
})
|
|
@@ -956,18 +973,18 @@ const _sfc_main = {
|
|
|
956
973
|
]),
|
|
957
974
|
_: 1
|
|
958
975
|
}),
|
|
959
|
-
|
|
960
|
-
default:
|
|
961
|
-
|
|
962
|
-
!
|
|
963
|
-
(
|
|
964
|
-
return
|
|
976
|
+
vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
|
|
977
|
+
default: vue.withCtx(() => [
|
|
978
|
+
vue.createElementVNode("div", _hoisted_17, [
|
|
979
|
+
!vue.unref(formFooterBtn) || vue.unref(formFooterBtn).length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, " 暂无可用按钮 ")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
980
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formFooterBtn), (btn) => {
|
|
981
|
+
return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
|
|
965
982
|
key: btn.id,
|
|
966
983
|
"model-value": isButtonSelected(btn.id),
|
|
967
984
|
onChange: ($event) => toggleButton(btn)
|
|
968
985
|
}, {
|
|
969
|
-
default:
|
|
970
|
-
|
|
986
|
+
default: vue.withCtx(() => [
|
|
987
|
+
vue.createTextVNode(vue.toDisplayString(btn.label), 1)
|
|
971
988
|
]),
|
|
972
989
|
_: 2
|
|
973
990
|
}, 1032, ["model-value", "onChange"]);
|
|
@@ -977,38 +994,38 @@ const _sfc_main = {
|
|
|
977
994
|
]),
|
|
978
995
|
_: 1
|
|
979
996
|
})
|
|
980
|
-
], 64)) :
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
default:
|
|
984
|
-
|
|
985
|
-
modelValue:
|
|
986
|
-
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) =>
|
|
997
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
998
|
+
vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
|
|
999
|
+
vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
|
|
1000
|
+
default: vue.withCtx(() => [
|
|
1001
|
+
vue.createVNode(_component_el_input, {
|
|
1002
|
+
modelValue: vue.unref(currentDialog).componentPath,
|
|
1003
|
+
"onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).componentPath = $event),
|
|
987
1004
|
placeholder: "请输入组件路径",
|
|
988
1005
|
clearable: ""
|
|
989
1006
|
}, null, 8, ["modelValue"])
|
|
990
1007
|
]),
|
|
991
1008
|
_: 1
|
|
992
1009
|
}),
|
|
993
|
-
|
|
994
|
-
default:
|
|
995
|
-
|
|
996
|
-
modelValue:
|
|
997
|
-
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) =>
|
|
1010
|
+
vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
|
|
1011
|
+
default: vue.withCtx(() => [
|
|
1012
|
+
vue.createVNode(ParamsConfig.default, {
|
|
1013
|
+
modelValue: vue.unref(currentDialog).componentParams,
|
|
1014
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).componentParams = $event)
|
|
998
1015
|
}, null, 8, ["modelValue"])
|
|
999
1016
|
]),
|
|
1000
1017
|
_: 1
|
|
1001
1018
|
}),
|
|
1002
|
-
|
|
1003
|
-
default:
|
|
1004
|
-
|
|
1005
|
-
modelValue:
|
|
1006
|
-
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) =>
|
|
1019
|
+
vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
|
|
1020
|
+
default: vue.withCtx(() => [
|
|
1021
|
+
vue.createVNode(_component_el_switch, {
|
|
1022
|
+
modelValue: vue.unref(currentDialog).componentIsDialog,
|
|
1023
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
|
|
1007
1024
|
}, null, 8, ["modelValue"])
|
|
1008
1025
|
]),
|
|
1009
1026
|
_: 1
|
|
1010
1027
|
})
|
|
1011
|
-
], 64)) :
|
|
1028
|
+
], 64)) : vue.createCommentVNode("", true)
|
|
1012
1029
|
]),
|
|
1013
1030
|
_: 1
|
|
1014
1031
|
}, 8, ["model"])
|
|
@@ -1020,7 +1037,7 @@ const _sfc_main = {
|
|
|
1020
1037
|
})
|
|
1021
1038
|
]),
|
|
1022
1039
|
_: 1
|
|
1023
|
-
})) : (
|
|
1040
|
+
})) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_20, "请从左侧选择一个弹层"))
|
|
1024
1041
|
]),
|
|
1025
1042
|
_: 1
|
|
1026
1043
|
})
|
|
@@ -1033,5 +1050,5 @@ const _sfc_main = {
|
|
|
1033
1050
|
};
|
|
1034
1051
|
}
|
|
1035
1052
|
};
|
|
1036
|
-
const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
1053
|
+
const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-be95917a"]]);
|
|
1037
1054
|
exports.default = DialogGlobalDialog;
|