@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.
Files changed (25) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DataSourceSelect.vue.mjs +10 -4
  3. package/es/designer/src/packages/dialog/index.vue.mjs +28 -11
  4. package/es/designer/src/packages/dialog/index.vue2.mjs +28 -11
  5. package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
  6. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +28 -11
  7. package/es/designer/src/packages/dialogGlobal/index.vue2.mjs +28 -11
  8. package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
  9. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  10. package/es/designer/src/packages/utils/common.mjs +17 -0
  11. package/es/designer.css +122 -121
  12. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +1 -1
  13. package/lib/designer/package.json.js +1 -1
  14. package/lib/designer/src/components/DataSourceSelect.vue.js +9 -3
  15. package/lib/designer/src/packages/dialog/index.vue.js +26 -9
  16. package/lib/designer/src/packages/dialog/index.vue2.js +351 -334
  17. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  18. package/lib/designer/src/packages/dialogGlobal/index.vue.js +26 -9
  19. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +321 -304
  20. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  21. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  22. package/lib/designer/src/packages/utils/common.js +17 -0
  23. package/lib/designer.css +122 -121
  24. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +1 -1
  25. 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 Vue = require("vue");
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 = Vue.getCurrentInstance();
162
+ const currentInstance = vue.getCurrentInstance();
163
163
  const ctx = currentInstance.proxy;
164
- const editConfigData = Vue.computed(() => {
165
- return common.getEditConfigData();
166
- });
167
- const dialogVisible = Vue.useModel(__props, "modelValue");
168
- const loading = Vue.ref(false);
169
- const saving = Vue.ref(false);
170
- const selectedDialogs = Vue.ref([]);
171
- const activeDialogIndex = Vue.ref(-1);
172
- Vue.watch(dialogVisible, async (val) => {
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 = Vue.ref(false);
200
- const newDialogName = Vue.ref("");
201
- const editingDialogIndex = Vue.ref(-1);
202
- const editingDialogName = Vue.ref("");
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 = Vue.ref(null);
302
- const formOptions = Vue.ref(null);
303
- const currentDialog = Vue.computed(() => {
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
- data.customTableConfig.dataSources = editConfigData.value.dataSources;
312
- } else {
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 = Vue.computed(() => {
356
+ const tableMode = vue.computed(() => {
341
357
  var _a;
342
358
  return (_a = tableOptions.value) == null ? void 0 : _a.mode;
343
359
  });
344
- Vue.computed(() => {
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 = Vue.computed(() => {
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 Vue.openBlock(), Vue.createBlock(_component_el_dialog, {
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": !Vue.unref(saving),
419
- "close-on-press-escape": !Vue.unref(saving),
420
- "show-close": !Vue.unref(saving)
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: Vue.withCtx(() => [
423
- Vue.createElementVNode("div", _hoisted_21, [
424
- Vue.createVNode(_component_el_button, {
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: Vue.unref(saving)
442
+ disabled: vue.unref(saving)
427
443
  }, {
428
- default: Vue.withCtx(() => _cache[43] || (_cache[43] = [
429
- Vue.createTextVNode("取消")
444
+ default: vue.withCtx(() => _cache[43] || (_cache[43] = [
445
+ vue.createTextVNode("取消")
430
446
  ])),
431
447
  _: 1
432
448
  }, 8, ["disabled"]),
433
- Vue.createVNode(_component_el_button, {
449
+ vue.createVNode(_component_el_button, {
434
450
  type: "primary",
435
451
  onClick: onConfirm,
436
- loading: Vue.unref(saving),
437
- disabled: Vue.unref(loading) || Vue.unref(saving)
452
+ loading: vue.unref(saving),
453
+ disabled: vue.unref(loading) || vue.unref(saving)
438
454
  }, {
439
- default: Vue.withCtx(() => _cache[44] || (_cache[44] = [
440
- Vue.createTextVNode(" 确定 ")
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: Vue.withCtx(() => [
447
- Vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px", "position": "relative" } }, {
448
- default: Vue.withCtx(() => [
449
- Vue.unref(loading) || Vue.unref(saving) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
450
- Vue.createVNode(_component_el_icon, { class: "loading-icon" }, {
451
- default: Vue.withCtx(() => [
452
- Vue.createVNode(Vue.unref(index$5.Loading))
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
- Vue.createElementVNode("div", _hoisted_2, Vue.toDisplayString(Vue.unref(loading) ? "加载中..." : "保存中..."), 1)
457
- ])) : Vue.createCommentVNode("", true),
458
- Vue.createVNode(_component_el_aside, { width: "300px" }, {
459
- default: Vue.withCtx(() => [
460
- Vue.createVNode(_component_el_container, null, {
461
- default: Vue.withCtx(() => [
462
- Vue.createVNode(_component_el_header, {
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: Vue.withCtx(() => [
467
- Vue.createVNode(_component_el_button, {
482
+ default: vue.withCtx(() => [
483
+ vue.createVNode(_component_el_button, {
468
484
  type: "primary",
469
485
  link: "",
470
- icon: Vue.unref(index$5.Plus),
486
+ icon: vue.unref(index$5.Plus),
471
487
  onClick: startAddDialog
472
488
  }, {
473
- default: Vue.withCtx(() => _cache[27] || (_cache[27] = [
474
- Vue.createTextVNode(" 新增弹层 ")
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
- Vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
482
- default: Vue.withCtx(() => [
483
- Vue.unref(isEditingNew) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_3, [
484
- Vue.createElementVNode("div", _hoisted_4, [
485
- Vue.createElementVNode("div", _hoisted_5, [
486
- Vue.createVNode(_component_el_input, {
487
- modelValue: Vue.unref(newDialogName),
488
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(newDialogName) ? newDialogName.value = $event : null),
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: Vue.withKeys(confirmAddDialog, ["enter"]),
507
+ onKeyup: vue.withKeys(confirmAddDialog, ["enter"]),
492
508
  class: "new-item-input"
493
509
  }, null, 8, ["modelValue"]),
494
- Vue.createElementVNode("div", _hoisted_6, [
495
- Vue.createVNode(_component_el_button, {
510
+ vue.createElementVNode("div", _hoisted_6, [
511
+ vue.createVNode(_component_el_button, {
496
512
  size: "small",
497
- icon: Vue.unref(index$5.Close),
513
+ icon: vue.unref(index$5.Close),
498
514
  onClick: cancelAddDialog
499
515
  }, {
500
- default: Vue.withCtx(() => _cache[28] || (_cache[28] = [
501
- Vue.createTextVNode(" 取消 ")
516
+ default: vue.withCtx(() => _cache[28] || (_cache[28] = [
517
+ vue.createTextVNode(" 取消 ")
502
518
  ])),
503
519
  _: 1
504
520
  }, 8, ["icon"]),
505
- Vue.createVNode(_component_el_button, {
521
+ vue.createVNode(_component_el_button, {
506
522
  type: "primary",
507
523
  size: "small",
508
- icon: Vue.unref(index$5.Check),
524
+ icon: vue.unref(index$5.Check),
509
525
  onClick: confirmAddDialog
510
526
  }, {
511
- default: Vue.withCtx(() => _cache[29] || (_cache[29] = [
512
- Vue.createTextVNode(" 确认 ")
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
- ])) : Vue.createCommentVNode("", true),
520
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(selectedDialogs), (dialog, index2) => {
521
- return Vue.openBlock(), Vue.createElementBlock("div", {
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: Vue.normalizeClass([
539
+ class: vue.normalizeClass([
524
540
  "dialog-menu-item",
525
- { "is-active": Vue.unref(activeDialogIndex) === index2 }
541
+ { "is-active": vue.unref(activeDialogIndex) === index2 }
526
542
  ]),
527
543
  onClick: ($event) => activeDialogIndex.value = index2
528
544
  }, [
529
- Vue.createElementVNode("div", _hoisted_8, [
530
- Vue.createElementVNode("div", _hoisted_9, [
531
- Vue.withDirectives(Vue.createVNode(_component_el_input, {
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: Vue.unref(editingDialogName),
535
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => Vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
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
- [Vue.vShow, Vue.unref(editingDialogIndex) === index2]
554
+ [vue.vShow, vue.unref(editingDialogIndex) === index2]
539
555
  ]),
540
- Vue.withDirectives(Vue.createVNode(_component_el_link, {
556
+ vue.withDirectives(vue.createVNode(_component_el_link, {
541
557
  icon: "Edit",
542
- onClick: Vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
558
+ onClick: vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
543
559
  }, {
544
- default: Vue.withCtx(() => [
545
- Vue.createTextVNode(Vue.toDisplayString(dialog.name), 1)
560
+ default: vue.withCtx(() => [
561
+ vue.createTextVNode(vue.toDisplayString(dialog.name), 1)
546
562
  ]),
547
563
  _: 2
548
564
  }, 1032, ["onClick"]), [
549
- [Vue.vShow, Vue.unref(editingDialogIndex) !== index2]
565
+ [vue.vShow, vue.unref(editingDialogIndex) !== index2]
550
566
  ])
551
567
  ]),
552
- Vue.createVNode(_component_el_icon, {
568
+ vue.createVNode(_component_el_icon, {
553
569
  class: "delete-icon",
554
- onClick: Vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
570
+ onClick: vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
555
571
  }, {
556
- default: Vue.withCtx(() => [
557
- Vue.createVNode(Vue.unref(index$5.Delete))
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
- Vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
574
- default: Vue.withCtx(() => [
575
- Vue.unref(activeDialogIndex) !== -1 ? (Vue.openBlock(), Vue.createBlock(_component_el_container, {
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: Vue.withCtx(() => [
580
- Vue.createVNode(_component_el_header, {
595
+ default: vue.withCtx(() => [
596
+ vue.createVNode(_component_el_header, {
581
597
  height: "40px",
582
598
  class: "dialog-header"
583
599
  }, {
584
- default: Vue.withCtx(() => [
585
- Vue.createElementVNode("div", null, Vue.toDisplayString(Vue.unref(currentDialog).name), 1)
600
+ default: vue.withCtx(() => [
601
+ vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(currentDialog).name), 1)
586
602
  ]),
587
603
  _: 1
588
604
  }),
589
- Vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
590
- default: Vue.withCtx(() => [
591
- Vue.createVNode(_component_el_scrollbar, null, {
592
- default: Vue.withCtx(() => [
593
- Vue.createVNode(_component_el_form, {
594
- model: Vue.unref(currentDialog),
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: Vue.withCtx(() => [
600
- Vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
601
- default: Vue.withCtx(() => [
602
- Vue.createVNode(_component_el_input, {
603
- modelValue: Vue.unref(currentDialog).dialogTitle,
604
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => Vue.unref(currentDialog).dialogTitle = $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
- Vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
612
- default: Vue.withCtx(() => [
613
- Vue.createVNode(_component_el_radio_group, {
614
- modelValue: Vue.unref(currentDialog).dialogSize,
615
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => Vue.unref(currentDialog).dialogSize = $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: Vue.withCtx(() => [
618
- Vue.createVNode(_component_el_radio_button, { value: "standard" }, {
619
- default: Vue.withCtx(() => _cache[30] || (_cache[30] = [
620
- Vue.createTextVNode("标准")
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
- Vue.createVNode(_component_el_radio_button, { value: "large" }, {
625
- default: Vue.withCtx(() => _cache[31] || (_cache[31] = [
626
- Vue.createTextVNode("更大")
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
- Vue.createVNode(_component_el_radio_button, { value: "small" }, {
631
- default: Vue.withCtx(() => _cache[32] || (_cache[32] = [
632
- Vue.createTextVNode("更小")
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
- Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
637
- default: Vue.withCtx(() => _cache[33] || (_cache[33] = [
638
- Vue.createTextVNode("自定义")
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
- Vue.unref(currentDialog).dialogSize === "custom" ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
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: Vue.withCtx(() => [
653
- Vue.createElementVNode("div", _hoisted_10, [
654
- Vue.createVNode(_component_el_input, {
655
- modelValue: Vue.unref(currentDialog).customWidth,
656
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => Vue.unref(currentDialog).customWidth = $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
- Vue.createVNode(_component_el_input, {
661
- modelValue: Vue.unref(currentDialog).customMaxHeight,
662
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => Vue.unref(currentDialog).customMaxHeight = $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
- })) : Vue.createCommentVNode("", true),
670
- Vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
671
- default: Vue.withCtx(() => [
672
- Vue.createVNode(ParamsConfig.default, {
673
- modelValue: Vue.unref(currentDialog).dialogParams,
674
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => Vue.unref(currentDialog).dialogParams = $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
- Vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
680
- default: Vue.withCtx(() => [
681
- Vue.createVNode(_component_el_radio_group, {
682
- modelValue: Vue.unref(currentDialog).contentSource,
683
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => Vue.unref(currentDialog).contentSource = $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: Vue.withCtx(() => [
686
- Vue.createVNode(_component_el_radio_button, { value: "table" }, {
687
- default: Vue.withCtx(() => _cache[34] || (_cache[34] = [
688
- Vue.createTextVNode("列表")
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
- Vue.createVNode(_component_el_radio_button, { value: "form" }, {
693
- default: Vue.withCtx(() => _cache[35] || (_cache[35] = [
694
- Vue.createTextVNode("表单")
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
- Vue.createVNode(_component_el_radio_button, { value: "tree" }, {
699
- default: Vue.withCtx(() => _cache[36] || (_cache[36] = [
700
- Vue.createTextVNode("树形")
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
- Vue.createVNode(_component_el_radio_button, { value: "component" }, {
705
- default: Vue.withCtx(() => _cache[37] || (_cache[37] = [
706
- Vue.createTextVNode("组件")
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
- Vue.unref(currentDialog).contentSource === "table" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
717
- Vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
718
- default: Vue.withCtx(() => [
719
- Vue.createVNode(_component_el_radio_group, {
720
- modelValue: Vue.unref(currentDialog).tableContent,
721
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => Vue.unref(currentDialog).tableContent = $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: Vue.withCtx(() => [
724
- Vue.createVNode(_component_el_radio_button, { value: "select" }, {
725
- default: Vue.withCtx(() => _cache[38] || (_cache[38] = [
726
- Vue.createTextVNode("选择列表")
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
- Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
731
- default: Vue.withCtx(() => _cache[39] || (_cache[39] = [
732
- Vue.createTextVNode("自定义")
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
- Vue.unref(currentDialog).tableContent === "select" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
743
- Vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
744
- default: Vue.withCtx(() => [
745
- Vue.createVNode(TemplateSelector.default, {
746
- modelValue: Vue.unref(currentDialog).subTableName,
747
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => Vue.unref(currentDialog).subTableName = $event),
748
- templateKey: Vue.unref(currentDialog).subTableKey,
749
- "onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => Vue.unref(currentDialog).subTableKey = $event),
750
- templateId: Vue.unref(currentDialog).subTableId,
751
- "onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => Vue.unref(currentDialog).subTableId = $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
- Vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
759
- default: Vue.withCtx(() => [
760
- Vue.createVNode(_component_el_select, {
761
- modelValue: Vue.unref(currentDialog).subTableMode,
762
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => Vue.unref(currentDialog).subTableMode = $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: Vue.withCtx(() => [
766
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(tableMode), (mode) => {
767
- return Vue.openBlock(), Vue.createBlock(_component_el_option, {
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)) : Vue.createCommentVNode("", true),
780
- Vue.unref(currentDialog).tableContent === "custom" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
781
- Vue.createVNode(_component_el_form_item, { label: "列配置" }, {
782
- default: Vue.withCtx(() => [
783
- Vue.createElementVNode("div", _hoisted_11, [
784
- Vue.createElementVNode("div", _hoisted_12, [
785
- Vue.createVNode(_component_el_button, {
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: Vue.withCtx(() => _cache[40] || (_cache[40] = [
793
- Vue.createTextVNode(" 添加列配置 ")
808
+ default: vue.withCtx(() => _cache[40] || (_cache[40] = [
809
+ vue.createTextVNode(" 添加列配置 ")
794
810
  ])),
795
811
  _: 1
796
812
  })
797
813
  ]),
798
- Vue.createElementVNode("div", _hoisted_13, [
799
- Vue.createVNode(Vue.unref(vueDraggablePlus.VueDraggable), {
800
- modelValue: Vue.unref(currentDialog).customTableConfig.fieldsData,
801
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => Vue.unref(currentDialog).customTableConfig.fieldsData = $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: Vue.withCtx(() => [
806
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
807
- return Vue.openBlock(), Vue.createElementBlock("div", {
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
- Vue.createElementVNode("div", _hoisted_14, [
812
- Vue.createVNode(_component_el_icon, null, {
813
- default: Vue.withCtx(() => [
814
- Vue.createVNode(Vue.unref(index$5.Rank))
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
- Vue.createVNode(_component_el_input, {
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
- Vue.createVNode(_component_el_input, {
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
- Vue.createElementVNode("div", _hoisted_15, [
832
- Vue.createVNode(_component_el_popover, {
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: Vue.withCtx(() => [
838
- Vue.createVNode(_component_el_button, {
839
- icon: Vue.unref(index$5.Edit),
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: Vue.withCtx(() => [
846
- Vue.createElementVNode("div", _hoisted_16, [
847
- Vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
848
- default: Vue.withCtx(() => [
849
- Vue.createVNode(widgets.default, {
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
- Vue.createVNode(_component_el_button, {
861
- icon: Vue.unref(index$5.Delete),
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
- Vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
879
- default: Vue.withCtx(() => [
880
- Vue.createVNode(_component_el_input, {
881
- modelValue: Vue.unref(currentDialog).customTableConfig.pkFieldName,
882
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => Vue.unref(currentDialog).customTableConfig.pkFieldName = $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
- Vue.createVNode(_component_el_form_item, { label: "数据源" }, {
890
- default: Vue.withCtx(() => [
891
- Vue.createVNode(DataSourceSelect.default, {
892
- modelValue: Vue.unref(currentDialog).customTableConfig.dataSourceId,
893
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => Vue.unref(currentDialog).customTableConfig.dataSourceId = $event)
894
- }, null, 8, ["modelValue"])
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)) : Vue.createCommentVNode("", true),
899
- Vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
900
- default: Vue.withCtx(() => [
901
- Vue.createVNode(_component_el_switch, {
902
- modelValue: Vue.unref(currentDialog).isSubTablePagination,
903
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => Vue.unref(currentDialog).isSubTablePagination = $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
- Vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
909
- default: Vue.withCtx(() => [
910
- Vue.createVNode(_component_el_switch, {
911
- modelValue: Vue.unref(currentDialog).isSubTableReadOnly,
912
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => Vue.unref(currentDialog).isSubTableReadOnly = $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)) : Vue.createCommentVNode("", true),
918
- Vue.unref(currentDialog).contentSource === "form" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [
919
- Vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
920
- default: Vue.withCtx(() => [
921
- Vue.createVNode(TemplateSelector.default, {
922
- modelValue: Vue.unref(currentDialog).subFormName,
923
- "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => Vue.unref(currentDialog).subFormName = $event),
924
- templateKey: Vue.unref(currentDialog).subFormKey,
925
- "onUpdate:templateKey": _cache[19] || (_cache[19] = ($event) => Vue.unref(currentDialog).subFormKey = $event),
926
- templateId: Vue.unref(currentDialog).subFormId,
927
- "onUpdate:templateId": _cache[20] || (_cache[20] = ($event) => Vue.unref(currentDialog).subFormId = $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
- Vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
935
- default: Vue.withCtx(() => [
936
- Vue.createVNode(_component_el_radio_group, {
937
- modelValue: Vue.unref(currentDialog).subFormMode,
938
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => Vue.unref(currentDialog).subFormMode = $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: Vue.withCtx(() => [
941
- Vue.createVNode(_component_el_radio_button, { value: "edit" }, {
942
- default: Vue.withCtx(() => _cache[41] || (_cache[41] = [
943
- Vue.createTextVNode("编辑")
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
- Vue.createVNode(_component_el_radio_button, { value: "query" }, {
948
- default: Vue.withCtx(() => _cache[42] || (_cache[42] = [
949
- Vue.createTextVNode("查看")
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
- Vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
960
- default: Vue.withCtx(() => [
961
- Vue.createElementVNode("div", _hoisted_17, [
962
- !Vue.unref(formFooterBtn) || Vue.unref(formFooterBtn).length === 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_18, " 暂无可用按钮 ")) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_19, [
963
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(formFooterBtn), (btn) => {
964
- return Vue.openBlock(), Vue.createBlock(_component_el_checkbox, {
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: Vue.withCtx(() => [
970
- Vue.createTextVNode(Vue.toDisplayString(btn.label), 1)
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)) : Vue.createCommentVNode("", true),
981
- Vue.unref(currentDialog).contentSource === "component" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 3 }, [
982
- Vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
983
- default: Vue.withCtx(() => [
984
- Vue.createVNode(_component_el_input, {
985
- modelValue: Vue.unref(currentDialog).componentPath,
986
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => Vue.unref(currentDialog).componentPath = $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
- Vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
994
- default: Vue.withCtx(() => [
995
- Vue.createVNode(ParamsConfig.default, {
996
- modelValue: Vue.unref(currentDialog).componentParams,
997
- "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => Vue.unref(currentDialog).componentParams = $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
- Vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
1003
- default: Vue.withCtx(() => [
1004
- Vue.createVNode(_component_el_switch, {
1005
- modelValue: Vue.unref(currentDialog).componentIsDialog,
1006
- "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => Vue.unref(currentDialog).componentIsDialog = $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)) : Vue.createCommentVNode("", true)
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
- })) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_20, "请从左侧选择一个弹层"))
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-6b9e1841"]]);
1053
+ const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-be95917a"]]);
1037
1054
  exports.default = DialogGlobalDialog;