@fecp/designer 5.6.36 → 5.6.38

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 (31) 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/index.vue.mjs +2 -2
  10. package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
  11. package/es/designer/src/packages/utils/common.mjs +17 -0
  12. package/es/designer.css +162 -161
  13. package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +1 -1
  14. package/es/packages/vue/src/components/table/Table.vue.mjs +13 -10
  15. package/es/packages/vue/src/components/table/TableColumn.vue.mjs +55 -2
  16. package/lib/designer/package.json.js +1 -1
  17. package/lib/designer/src/components/DataSourceSelect.vue.js +9 -3
  18. package/lib/designer/src/packages/dialog/index.vue.js +26 -9
  19. package/lib/designer/src/packages/dialog/index.vue2.js +351 -334
  20. package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
  21. package/lib/designer/src/packages/dialogGlobal/index.vue.js +26 -9
  22. package/lib/designer/src/packages/dialogGlobal/index.vue2.js +321 -304
  23. package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
  24. package/lib/designer/src/packages/form/index.vue.js +2 -2
  25. package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
  26. package/lib/designer/src/packages/utils/common.js +17 -0
  27. package/lib/designer.css +162 -161
  28. package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +1 -1
  29. package/lib/packages/vue/src/components/table/Table.vue.js +13 -10
  30. package/lib/packages/vue/src/components/table/TableColumn.vue.js +55 -2
  31. 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$4 = require("../../../../node_modules/@element-plus/icons-vue/dist/index.js");
32
32
  const common = require("../utils/common.js");
@@ -35,7 +35,7 @@ const index = require("../../api/index.js");
35
35
  const ParamsConfig = require("../../components/ParamsConfig.vue2.js");
36
36
  const DataSourceSelect = require("../../components/DataSourceSelect.vue.js");
37
37
  const FieldSetMapping = require("../../components/FieldSetMapping.vue2.js");
38
- const OnlyFLowConfigButton = ;/* empty css */
38
+ const OnlyFLowConfigButton = require("../../components/OnlyFLowConfigButton.vue2.js");
39
39
  const FormulaEditorInput = require("../../components/FormulaEditorInput.vue.js");
40
40
  const index$g = require("../table/aside/index.js");
41
41
  const _default = require("../table/default.js");
@@ -94,28 +94,42 @@ const _sfc_main = {
94
94
  },
95
95
  emits: ["update:modelValue"],
96
96
  setup(__props) {
97
- const currentInstance = Vue.getCurrentInstance();
97
+ const currentInstance = vue.getCurrentInstance();
98
98
  const ctx = currentInstance.proxy;
99
- const editConfigData = Vue.computed(() => {
100
- return common.getEditConfigData();
101
- });
102
- const dialogVisible = Vue.useModel(__props, "modelValue");
103
- const selectedDialogs = Vue.ref([]);
104
- const activeDialogIndex = Vue.ref(-1);
105
- Vue.watch(dialogVisible, (val) => {
99
+ const dialogVisible = vue.useModel(__props, "modelValue");
100
+ const selectedDialogs = vue.ref([]);
101
+ const activeDialogIndex = vue.ref(-1);
102
+ function normalizeDataSourceConfigs(dialogs) {
103
+ const globalDataSources = common.getEditConfigDataSources() || [];
104
+ (dialogs || []).forEach((dialog) => {
105
+ if (dialog.contentSource !== "table" || dialog.tableContent !== "custom") {
106
+ return;
107
+ }
108
+ if (!dialog.customTableConfig) {
109
+ dialog.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
110
+ dialog.customTableConfig.fieldsData = [];
111
+ }
112
+ dialog.customTableConfig.dataSources = common.mergeDataSources(
113
+ globalDataSources,
114
+ dialog.customTableConfig.dataSources
115
+ );
116
+ });
117
+ }
118
+ vue.watch(dialogVisible, (val) => {
106
119
  if (val) {
107
120
  isEditingNew.value = false;
108
121
  editingDialogIndex.value = -1;
109
122
  selectedDialogs.value = common.cloneDeep(common.getEditConfigDialogs());
123
+ normalizeDataSourceConfigs(selectedDialogs.value);
110
124
  if (selectedDialogs.value.length > 0 && activeDialogIndex.value === -1) {
111
125
  activeDialogIndex.value = 0;
112
126
  }
113
127
  }
114
128
  });
115
- const isEditingNew = Vue.ref(false);
116
- const newDialogName = Vue.ref("");
117
- const editingDialogIndex = Vue.ref(-1);
118
- const editingDialogName = Vue.ref("");
129
+ const isEditingNew = vue.ref(false);
130
+ const newDialogName = vue.ref("");
131
+ const editingDialogIndex = vue.ref(-1);
132
+ const editingDialogName = vue.ref("");
119
133
  const startAddDialog = () => {
120
134
  isEditingNew.value = true;
121
135
  newDialogName.value = "";
@@ -178,12 +192,13 @@ const _sfc_main = {
178
192
  }
179
193
  };
180
194
  const onConfirm = () => {
195
+ normalizeDataSourceConfigs(selectedDialogs.value);
181
196
  common.setEditConfigDialogs(selectedDialogs.value);
182
197
  dialogVisible.value = false;
183
198
  };
184
- const tableOptions = Vue.ref(null);
185
- const formOptions = Vue.ref(null);
186
- const currentDialog = Vue.computed(() => {
199
+ const tableOptions = vue.ref(null);
200
+ const formOptions = vue.ref(null);
201
+ const currentDialog = vue.computed(() => {
187
202
  const data = selectedDialogs.value[activeDialogIndex.value];
188
203
  if (!data.fieldMapping) {
189
204
  data.fieldMapping = [];
@@ -191,10 +206,11 @@ const _sfc_main = {
191
206
  if (!data.customTableConfig) {
192
207
  data.customTableConfig = common.cloneDeep(_default.defaultTableConfig);
193
208
  data.customTableConfig.fieldsData = [];
194
- data.customTableConfig.dataSources = editConfigData.value.dataSources;
195
- } else {
196
- data.customTableConfig.dataSources = editConfigData.value.dataSources;
209
+ }
210
+ if (data.customTableConfig.queryConfig) {
197
211
  data.customTableConfig.queryConfig.enabled = false;
212
+ } else {
213
+ data.customTableConfig.queryConfig = { enabled: false };
198
214
  }
199
215
  if ((data == null ? void 0 : data.contentSource) == "table") {
200
216
  const pkId = data == null ? void 0 : data.subTableId;
@@ -220,11 +236,11 @@ const _sfc_main = {
220
236
  function formSelectorConfirm(data) {
221
237
  formOptions.value = data;
222
238
  }
223
- const tableMode = Vue.computed(() => {
239
+ const tableMode = vue.computed(() => {
224
240
  var _a;
225
241
  return (_a = tableOptions.value) == null ? void 0 : _a.mode;
226
242
  });
227
- const tableFields = Vue.computed(() => {
243
+ const tableFields = vue.computed(() => {
228
244
  var _a, _b, _c, _d;
229
245
  if (currentDialog.value.tableContent === "custom") {
230
246
  return ((_b = (_a = currentDialog.value) == null ? void 0 : _a.customTableConfig) == null ? void 0 : _b.fieldsData) || [];
@@ -235,7 +251,7 @@ const _sfc_main = {
235
251
  ];
236
252
  }
237
253
  });
238
- const formFooterBtn = Vue.computed(() => {
254
+ const formFooterBtn = vue.computed(() => {
239
255
  var _a;
240
256
  const btnList = (_a = formOptions.value) == null ? void 0 : _a.pageFooterConfig.actions;
241
257
  if (btnList) {
@@ -292,7 +308,7 @@ const _sfc_main = {
292
308
  const _component_el_checkbox = index$e.ElCheckbox;
293
309
  const _component_el_form = index$9.ElForm;
294
310
  const _component_el_dialog = index$1.ElDialog;
295
- return Vue.openBlock(), Vue.createBlock(_component_el_dialog, {
311
+ return vue.openBlock(), vue.createBlock(_component_el_dialog, {
296
312
  modelValue: dialogVisible.value,
297
313
  "onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => dialogVisible.value = $event),
298
314
  width: "50%",
@@ -302,130 +318,130 @@ const _sfc_main = {
302
318
  "append-to-body": "",
303
319
  class: "fec-dev-designer-dialog"
304
320
  }, {
305
- footer: Vue.withCtx(() => [
306
- Vue.createElementVNode("div", _hoisted_19, [
307
- Vue.createVNode(_component_el_button, {
321
+ footer: vue.withCtx(() => [
322
+ vue.createElementVNode("div", _hoisted_19, [
323
+ vue.createVNode(_component_el_button, {
308
324
  onClick: _cache[30] || (_cache[30] = ($event) => dialogVisible.value = false)
309
325
  }, {
310
- default: Vue.withCtx(() => _cache[51] || (_cache[51] = [
311
- Vue.createTextVNode("取消")
326
+ default: vue.withCtx(() => _cache[51] || (_cache[51] = [
327
+ vue.createTextVNode("取消")
312
328
  ])),
313
329
  _: 1
314
330
  }),
315
- Vue.createVNode(_component_el_button, {
331
+ vue.createVNode(_component_el_button, {
316
332
  type: "primary",
317
333
  onClick: onConfirm
318
334
  }, {
319
- default: Vue.withCtx(() => _cache[52] || (_cache[52] = [
320
- Vue.createTextVNode("确定")
335
+ default: vue.withCtx(() => _cache[52] || (_cache[52] = [
336
+ vue.createTextVNode("确定")
321
337
  ])),
322
338
  _: 1
323
339
  })
324
340
  ])
325
341
  ]),
326
- default: Vue.withCtx(() => [
327
- Vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px" } }, {
328
- default: Vue.withCtx(() => [
329
- Vue.createVNode(_component_el_aside, { width: "300px" }, {
330
- default: Vue.withCtx(() => [
331
- Vue.createVNode(_component_el_container, null, {
332
- default: Vue.withCtx(() => [
333
- Vue.createVNode(_component_el_header, {
342
+ default: vue.withCtx(() => [
343
+ vue.createVNode(_component_el_container, { style: { "border": "1px solid #ebeef5", "border-radius": "4px", "height": "600px" } }, {
344
+ default: vue.withCtx(() => [
345
+ vue.createVNode(_component_el_aside, { width: "300px" }, {
346
+ default: vue.withCtx(() => [
347
+ vue.createVNode(_component_el_container, null, {
348
+ default: vue.withCtx(() => [
349
+ vue.createVNode(_component_el_header, {
334
350
  height: "40px",
335
351
  style: { "background-color": "#f2f2f2", "line-height": "40px" }
336
352
  }, {
337
- default: Vue.withCtx(() => [
338
- Vue.createVNode(_component_el_button, {
353
+ default: vue.withCtx(() => [
354
+ vue.createVNode(_component_el_button, {
339
355
  type: "primary",
340
356
  link: "",
341
- icon: Vue.unref(index$4.Plus),
357
+ icon: vue.unref(index$4.Plus),
342
358
  onClick: startAddDialog
343
359
  }, {
344
- default: Vue.withCtx(() => _cache[32] || (_cache[32] = [
345
- Vue.createTextVNode(" 新增弹层 ")
360
+ default: vue.withCtx(() => _cache[32] || (_cache[32] = [
361
+ vue.createTextVNode(" 新增弹层 ")
346
362
  ])),
347
363
  _: 1
348
364
  }, 8, ["icon"])
349
365
  ]),
350
366
  _: 1
351
367
  }),
352
- Vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
353
- default: Vue.withCtx(() => [
354
- Vue.unref(isEditingNew) ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_1, [
355
- Vue.createElementVNode("div", _hoisted_2, [
356
- Vue.createElementVNode("div", _hoisted_3, [
357
- Vue.createVNode(_component_el_input, {
358
- modelValue: Vue.unref(newDialogName),
359
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => Vue.isRef(newDialogName) ? newDialogName.value = $event : null),
368
+ vue.createVNode(_component_el_main, { style: { "padding": "10px" } }, {
369
+ default: vue.withCtx(() => [
370
+ vue.unref(isEditingNew) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
371
+ vue.createElementVNode("div", _hoisted_2, [
372
+ vue.createElementVNode("div", _hoisted_3, [
373
+ vue.createVNode(_component_el_input, {
374
+ modelValue: vue.unref(newDialogName),
375
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(newDialogName) ? newDialogName.value = $event : null),
360
376
  placeholder: "请输入弹层名称",
361
377
  size: "default",
362
- onKeyup: Vue.withKeys(confirmAddDialog, ["enter"]),
378
+ onKeyup: vue.withKeys(confirmAddDialog, ["enter"]),
363
379
  class: "new-item-input"
364
380
  }, null, 8, ["modelValue"]),
365
- Vue.createElementVNode("div", _hoisted_4, [
366
- Vue.createVNode(_component_el_button, {
381
+ vue.createElementVNode("div", _hoisted_4, [
382
+ vue.createVNode(_component_el_button, {
367
383
  size: "small",
368
- icon: Vue.unref(index$4.Close),
384
+ icon: vue.unref(index$4.Close),
369
385
  onClick: cancelAddDialog
370
386
  }, {
371
- default: Vue.withCtx(() => _cache[33] || (_cache[33] = [
372
- Vue.createTextVNode(" 取消 ")
387
+ default: vue.withCtx(() => _cache[33] || (_cache[33] = [
388
+ vue.createTextVNode(" 取消 ")
373
389
  ])),
374
390
  _: 1
375
391
  }, 8, ["icon"]),
376
- Vue.createVNode(_component_el_button, {
392
+ vue.createVNode(_component_el_button, {
377
393
  type: "primary",
378
394
  size: "small",
379
- icon: Vue.unref(index$4.Check),
395
+ icon: vue.unref(index$4.Check),
380
396
  onClick: confirmAddDialog
381
397
  }, {
382
- default: Vue.withCtx(() => _cache[34] || (_cache[34] = [
383
- Vue.createTextVNode(" 确认 ")
398
+ default: vue.withCtx(() => _cache[34] || (_cache[34] = [
399
+ vue.createTextVNode(" 确认 ")
384
400
  ])),
385
401
  _: 1
386
402
  }, 8, ["icon"])
387
403
  ])
388
404
  ])
389
405
  ])
390
- ])) : Vue.createCommentVNode("", true),
391
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(selectedDialogs), (dialog, index2) => {
392
- return Vue.openBlock(), Vue.createElementBlock("div", {
406
+ ])) : vue.createCommentVNode("", true),
407
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(selectedDialogs), (dialog, index2) => {
408
+ return vue.openBlock(), vue.createElementBlock("div", {
393
409
  key: index2,
394
- class: Vue.normalizeClass([
410
+ class: vue.normalizeClass([
395
411
  "dialog-menu-item",
396
- { "is-active": Vue.unref(activeDialogIndex) === index2 }
412
+ { "is-active": vue.unref(activeDialogIndex) === index2 }
397
413
  ]),
398
414
  onClick: ($event) => activeDialogIndex.value = index2
399
415
  }, [
400
- Vue.createElementVNode("div", _hoisted_6, [
401
- Vue.createElementVNode("div", _hoisted_7, [
402
- Vue.withDirectives(Vue.createVNode(_component_el_input, {
416
+ vue.createElementVNode("div", _hoisted_6, [
417
+ vue.createElementVNode("div", _hoisted_7, [
418
+ vue.withDirectives(vue.createVNode(_component_el_input, {
403
419
  onBlur: ($event) => onEditOutside(),
404
420
  maxlength: "30",
405
- modelValue: Vue.unref(editingDialogName),
406
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => Vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
421
+ modelValue: vue.unref(editingDialogName),
422
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(editingDialogName) ? editingDialogName.value = $event : null),
407
423
  size: "small"
408
424
  }, null, 8, ["onBlur", "modelValue"]), [
409
- [Vue.vShow, Vue.unref(editingDialogIndex) === index2]
425
+ [vue.vShow, vue.unref(editingDialogIndex) === index2]
410
426
  ]),
411
- Vue.withDirectives(Vue.createVNode(_component_el_link, {
427
+ vue.withDirectives(vue.createVNode(_component_el_link, {
412
428
  icon: "Edit",
413
- onClick: Vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
429
+ onClick: vue.withModifiers(($event) => startEditDialog(index2), ["stop"])
414
430
  }, {
415
- default: Vue.withCtx(() => [
416
- Vue.createTextVNode(Vue.toDisplayString(dialog.name), 1)
431
+ default: vue.withCtx(() => [
432
+ vue.createTextVNode(vue.toDisplayString(dialog.name), 1)
417
433
  ]),
418
434
  _: 2
419
435
  }, 1032, ["onClick"]), [
420
- [Vue.vShow, Vue.unref(editingDialogIndex) !== index2]
436
+ [vue.vShow, vue.unref(editingDialogIndex) !== index2]
421
437
  ])
422
438
  ]),
423
- Vue.createVNode(_component_el_icon, {
439
+ vue.createVNode(_component_el_icon, {
424
440
  class: "delete-icon",
425
- onClick: Vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
441
+ onClick: vue.withModifiers(($event) => handleRemoveDialog(index2), ["stop"])
426
442
  }, {
427
- default: Vue.withCtx(() => [
428
- Vue.createVNode(Vue.unref(index$4.Delete))
443
+ default: vue.withCtx(() => [
444
+ vue.createVNode(vue.unref(index$4.Delete))
429
445
  ]),
430
446
  _: 2
431
447
  }, 1032, ["onClick"])
@@ -441,72 +457,72 @@ const _sfc_main = {
441
457
  ]),
442
458
  _: 1
443
459
  }),
444
- Vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
445
- default: Vue.withCtx(() => [
446
- Vue.unref(activeDialogIndex) !== -1 ? (Vue.openBlock(), Vue.createBlock(_component_el_container, {
460
+ vue.createVNode(_component_el_main, { style: { "border-left": "1px solid #ebeef5", "padding": "0" } }, {
461
+ default: vue.withCtx(() => [
462
+ vue.unref(activeDialogIndex) !== -1 ? (vue.openBlock(), vue.createBlock(_component_el_container, {
447
463
  key: 0,
448
464
  style: { "height": "100%" }
449
465
  }, {
450
- default: Vue.withCtx(() => [
451
- Vue.createVNode(_component_el_header, {
466
+ default: vue.withCtx(() => [
467
+ vue.createVNode(_component_el_header, {
452
468
  height: "40px",
453
469
  class: "dialog-header"
454
470
  }, {
455
- default: Vue.withCtx(() => [
456
- Vue.createElementVNode("div", null, Vue.toDisplayString(Vue.unref(currentDialog).name), 1)
471
+ default: vue.withCtx(() => [
472
+ vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(currentDialog).name), 1)
457
473
  ]),
458
474
  _: 1
459
475
  }),
460
- Vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
461
- default: Vue.withCtx(() => [
462
- Vue.createVNode(_component_el_scrollbar, null, {
463
- default: Vue.withCtx(() => [
464
- Vue.createVNode(_component_el_form, {
465
- model: Vue.unref(currentDialog),
476
+ vue.createVNode(_component_el_main, { style: { "padding": "12px 20px 0 20px" } }, {
477
+ default: vue.withCtx(() => [
478
+ vue.createVNode(_component_el_scrollbar, null, {
479
+ default: vue.withCtx(() => [
480
+ vue.createVNode(_component_el_form, {
481
+ model: vue.unref(currentDialog),
466
482
  "label-width": "130px",
467
483
  style: { "padding-right": "20px" },
468
484
  size: "small"
469
485
  }, {
470
- default: Vue.withCtx(() => [
471
- Vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
472
- default: Vue.withCtx(() => [
473
- Vue.createVNode(_component_el_input, {
474
- modelValue: Vue.unref(currentDialog).dialogTitle,
475
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => Vue.unref(currentDialog).dialogTitle = $event),
486
+ default: vue.withCtx(() => [
487
+ vue.createVNode(_component_el_form_item, { label: "弹层标题" }, {
488
+ default: vue.withCtx(() => [
489
+ vue.createVNode(_component_el_input, {
490
+ modelValue: vue.unref(currentDialog).dialogTitle,
491
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(currentDialog).dialogTitle = $event),
476
492
  placeholder: "请输入弹层标题",
477
493
  clearable: ""
478
494
  }, null, 8, ["modelValue"])
479
495
  ]),
480
496
  _: 1
481
497
  }),
482
- Vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
483
- default: Vue.withCtx(() => [
484
- Vue.createVNode(_component_el_radio_group, {
485
- modelValue: Vue.unref(currentDialog).dialogSize,
486
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => Vue.unref(currentDialog).dialogSize = $event)
498
+ vue.createVNode(_component_el_form_item, { label: "弹层尺寸" }, {
499
+ default: vue.withCtx(() => [
500
+ vue.createVNode(_component_el_radio_group, {
501
+ modelValue: vue.unref(currentDialog).dialogSize,
502
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(currentDialog).dialogSize = $event)
487
503
  }, {
488
- default: Vue.withCtx(() => [
489
- Vue.createVNode(_component_el_radio_button, { value: "standard" }, {
490
- default: Vue.withCtx(() => _cache[35] || (_cache[35] = [
491
- Vue.createTextVNode("标准")
504
+ default: vue.withCtx(() => [
505
+ vue.createVNode(_component_el_radio_button, { value: "standard" }, {
506
+ default: vue.withCtx(() => _cache[35] || (_cache[35] = [
507
+ vue.createTextVNode("标准")
492
508
  ])),
493
509
  _: 1
494
510
  }),
495
- Vue.createVNode(_component_el_radio_button, { value: "large" }, {
496
- default: Vue.withCtx(() => _cache[36] || (_cache[36] = [
497
- Vue.createTextVNode("更大")
511
+ vue.createVNode(_component_el_radio_button, { value: "large" }, {
512
+ default: vue.withCtx(() => _cache[36] || (_cache[36] = [
513
+ vue.createTextVNode("更大")
498
514
  ])),
499
515
  _: 1
500
516
  }),
501
- Vue.createVNode(_component_el_radio_button, { value: "small" }, {
502
- default: Vue.withCtx(() => _cache[37] || (_cache[37] = [
503
- Vue.createTextVNode("更小")
517
+ vue.createVNode(_component_el_radio_button, { value: "small" }, {
518
+ default: vue.withCtx(() => _cache[37] || (_cache[37] = [
519
+ vue.createTextVNode("更小")
504
520
  ])),
505
521
  _: 1
506
522
  }),
507
- Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
508
- default: Vue.withCtx(() => _cache[38] || (_cache[38] = [
509
- Vue.createTextVNode("自定义")
523
+ vue.createVNode(_component_el_radio_button, { value: "custom" }, {
524
+ default: vue.withCtx(() => _cache[38] || (_cache[38] = [
525
+ vue.createTextVNode("自定义")
510
526
  ])),
511
527
  _: 1
512
528
  })
@@ -516,65 +532,65 @@ const _sfc_main = {
516
532
  ]),
517
533
  _: 1
518
534
  }),
519
- Vue.unref(currentDialog).dialogSize === "custom" ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
535
+ vue.unref(currentDialog).dialogSize === "custom" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
520
536
  key: 0,
521
537
  label: "自定义尺寸"
522
538
  }, {
523
- default: Vue.withCtx(() => [
524
- Vue.createElementVNode("div", _hoisted_8, [
525
- Vue.createVNode(_component_el_input, {
526
- modelValue: Vue.unref(currentDialog).customWidth,
527
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => Vue.unref(currentDialog).customWidth = $event),
539
+ default: vue.withCtx(() => [
540
+ vue.createElementVNode("div", _hoisted_8, [
541
+ vue.createVNode(_component_el_input, {
542
+ modelValue: vue.unref(currentDialog).customWidth,
543
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.unref(currentDialog).customWidth = $event),
528
544
  placeholder: "宽度,如:800px、60%",
529
545
  style: { "flex": "1" }
530
546
  }, null, 8, ["modelValue"]),
531
- Vue.createVNode(_component_el_input, {
532
- modelValue: Vue.unref(currentDialog).customMaxHeight,
533
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => Vue.unref(currentDialog).customMaxHeight = $event),
547
+ vue.createVNode(_component_el_input, {
548
+ modelValue: vue.unref(currentDialog).customMaxHeight,
549
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentDialog).customMaxHeight = $event),
534
550
  placeholder: "最大高度,如:600px、80vh",
535
551
  style: { "flex": "1" }
536
552
  }, null, 8, ["modelValue"])
537
553
  ])
538
554
  ]),
539
555
  _: 1
540
- })) : Vue.createCommentVNode("", true),
541
- Vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
542
- default: Vue.withCtx(() => [
543
- Vue.createVNode(ParamsConfig.default, {
544
- modelValue: Vue.unref(currentDialog).dialogParams,
545
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => Vue.unref(currentDialog).dialogParams = $event)
556
+ })) : vue.createCommentVNode("", true),
557
+ vue.createVNode(_component_el_form_item, { label: "弹层参数" }, {
558
+ default: vue.withCtx(() => [
559
+ vue.createVNode(ParamsConfig.default, {
560
+ modelValue: vue.unref(currentDialog).dialogParams,
561
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => vue.unref(currentDialog).dialogParams = $event)
546
562
  }, null, 8, ["modelValue"])
547
563
  ]),
548
564
  _: 1
549
565
  }),
550
- Vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
551
- default: Vue.withCtx(() => [
552
- Vue.createVNode(_component_el_radio_group, {
553
- modelValue: Vue.unref(currentDialog).contentSource,
554
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => Vue.unref(currentDialog).contentSource = $event)
566
+ vue.createVNode(_component_el_form_item, { label: "弹层类型" }, {
567
+ default: vue.withCtx(() => [
568
+ vue.createVNode(_component_el_radio_group, {
569
+ modelValue: vue.unref(currentDialog).contentSource,
570
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => vue.unref(currentDialog).contentSource = $event)
555
571
  }, {
556
- default: Vue.withCtx(() => [
557
- Vue.createVNode(_component_el_radio_button, { value: "table" }, {
558
- default: Vue.withCtx(() => _cache[39] || (_cache[39] = [
559
- Vue.createTextVNode("列表")
572
+ default: vue.withCtx(() => [
573
+ vue.createVNode(_component_el_radio_button, { value: "table" }, {
574
+ default: vue.withCtx(() => _cache[39] || (_cache[39] = [
575
+ vue.createTextVNode("列表")
560
576
  ])),
561
577
  _: 1
562
578
  }),
563
- Vue.createVNode(_component_el_radio_button, { value: "form" }, {
564
- default: Vue.withCtx(() => _cache[40] || (_cache[40] = [
565
- Vue.createTextVNode("表单")
579
+ vue.createVNode(_component_el_radio_button, { value: "form" }, {
580
+ default: vue.withCtx(() => _cache[40] || (_cache[40] = [
581
+ vue.createTextVNode("表单")
566
582
  ])),
567
583
  _: 1
568
584
  }),
569
- Vue.createVNode(_component_el_radio_button, { value: "tree" }, {
570
- default: Vue.withCtx(() => _cache[41] || (_cache[41] = [
571
- Vue.createTextVNode("树形")
585
+ vue.createVNode(_component_el_radio_button, { value: "tree" }, {
586
+ default: vue.withCtx(() => _cache[41] || (_cache[41] = [
587
+ vue.createTextVNode("树形")
572
588
  ])),
573
589
  _: 1
574
590
  }),
575
- Vue.createVNode(_component_el_radio_button, { value: "component" }, {
576
- default: Vue.withCtx(() => _cache[42] || (_cache[42] = [
577
- Vue.createTextVNode("组件")
591
+ vue.createVNode(_component_el_radio_button, { value: "component" }, {
592
+ default: vue.withCtx(() => _cache[42] || (_cache[42] = [
593
+ vue.createTextVNode("组件")
578
594
  ])),
579
595
  _: 1
580
596
  })
@@ -584,23 +600,23 @@ const _sfc_main = {
584
600
  ]),
585
601
  _: 1
586
602
  }),
587
- Vue.unref(currentDialog).contentSource === "table" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
588
- Vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
589
- default: Vue.withCtx(() => [
590
- Vue.createVNode(_component_el_radio_group, {
591
- modelValue: Vue.unref(currentDialog).tableContent,
592
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => Vue.unref(currentDialog).tableContent = $event)
603
+ vue.unref(currentDialog).contentSource === "table" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
604
+ vue.createVNode(_component_el_form_item, { label: "列表内容" }, {
605
+ default: vue.withCtx(() => [
606
+ vue.createVNode(_component_el_radio_group, {
607
+ modelValue: vue.unref(currentDialog).tableContent,
608
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => vue.unref(currentDialog).tableContent = $event)
593
609
  }, {
594
- default: Vue.withCtx(() => [
595
- Vue.createVNode(_component_el_radio_button, { value: "select" }, {
596
- default: Vue.withCtx(() => _cache[43] || (_cache[43] = [
597
- Vue.createTextVNode("选择列表")
610
+ default: vue.withCtx(() => [
611
+ vue.createVNode(_component_el_radio_button, { value: "select" }, {
612
+ default: vue.withCtx(() => _cache[43] || (_cache[43] = [
613
+ vue.createTextVNode("选择列表")
598
614
  ])),
599
615
  _: 1
600
616
  }),
601
- Vue.createVNode(_component_el_radio_button, { value: "custom" }, {
602
- default: Vue.withCtx(() => _cache[44] || (_cache[44] = [
603
- Vue.createTextVNode("自定义")
617
+ vue.createVNode(_component_el_radio_button, { value: "custom" }, {
618
+ default: vue.withCtx(() => _cache[44] || (_cache[44] = [
619
+ vue.createTextVNode("自定义")
604
620
  ])),
605
621
  _: 1
606
622
  })
@@ -610,32 +626,32 @@ const _sfc_main = {
610
626
  ]),
611
627
  _: 1
612
628
  }),
613
- Vue.unref(currentDialog).tableContent === "select" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
614
- Vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
615
- default: Vue.withCtx(() => [
616
- Vue.createVNode(TemplateSelector.default, {
617
- modelValue: Vue.unref(currentDialog).subTableName,
618
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => Vue.unref(currentDialog).subTableName = $event),
619
- templateKey: Vue.unref(currentDialog).subTableKey,
620
- "onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => Vue.unref(currentDialog).subTableKey = $event),
621
- templateId: Vue.unref(currentDialog).subTableId,
622
- "onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => Vue.unref(currentDialog).subTableId = $event),
629
+ vue.unref(currentDialog).tableContent === "select" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
630
+ vue.createVNode(_component_el_form_item, { label: "选择列表" }, {
631
+ default: vue.withCtx(() => [
632
+ vue.createVNode(TemplateSelector.default, {
633
+ modelValue: vue.unref(currentDialog).subTableName,
634
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => vue.unref(currentDialog).subTableName = $event),
635
+ templateKey: vue.unref(currentDialog).subTableKey,
636
+ "onUpdate:templateKey": _cache[10] || (_cache[10] = ($event) => vue.unref(currentDialog).subTableKey = $event),
637
+ templateId: vue.unref(currentDialog).subTableId,
638
+ "onUpdate:templateId": _cache[11] || (_cache[11] = ($event) => vue.unref(currentDialog).subTableId = $event),
623
639
  templateType: "table",
624
640
  onConfirm: tableSelectorConfirm
625
641
  }, null, 8, ["modelValue", "templateKey", "templateId"])
626
642
  ]),
627
643
  _: 1
628
644
  }),
629
- Vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
630
- default: Vue.withCtx(() => [
631
- Vue.createVNode(_component_el_select, {
632
- modelValue: Vue.unref(currentDialog).subTableMode,
633
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => Vue.unref(currentDialog).subTableMode = $event),
645
+ vue.createVNode(_component_el_form_item, { label: "列表模式" }, {
646
+ default: vue.withCtx(() => [
647
+ vue.createVNode(_component_el_select, {
648
+ modelValue: vue.unref(currentDialog).subTableMode,
649
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => vue.unref(currentDialog).subTableMode = $event),
634
650
  clearable: ""
635
651
  }, {
636
- default: Vue.withCtx(() => [
637
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(tableMode), (mode) => {
638
- return Vue.openBlock(), Vue.createBlock(_component_el_option, {
652
+ default: vue.withCtx(() => [
653
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tableMode), (mode) => {
654
+ return vue.openBlock(), vue.createBlock(_component_el_option, {
639
655
  key: mode.key,
640
656
  label: mode.name,
641
657
  value: mode.key
@@ -647,77 +663,77 @@ const _sfc_main = {
647
663
  ]),
648
664
  _: 1
649
665
  })
650
- ], 64)) : Vue.createCommentVNode("", true),
651
- Vue.unref(currentDialog).tableContent === "custom" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 1 }, [
652
- Vue.createVNode(_component_el_form_item, { label: "列配置" }, {
653
- default: Vue.withCtx(() => [
654
- Vue.createElementVNode("div", _hoisted_9, [
655
- Vue.createElementVNode("div", _hoisted_10, [
656
- Vue.createVNode(_component_el_button, {
666
+ ], 64)) : vue.createCommentVNode("", true),
667
+ vue.unref(currentDialog).tableContent === "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
668
+ vue.createVNode(_component_el_form_item, { label: "列配置" }, {
669
+ default: vue.withCtx(() => [
670
+ vue.createElementVNode("div", _hoisted_9, [
671
+ vue.createElementVNode("div", _hoisted_10, [
672
+ vue.createVNode(_component_el_button, {
657
673
  type: "primary",
658
674
  size: "small",
659
675
  onClick: addTableCol,
660
676
  icon: "Plus",
661
677
  link: ""
662
678
  }, {
663
- default: Vue.withCtx(() => _cache[45] || (_cache[45] = [
664
- Vue.createTextVNode(" 添加列配置 ")
679
+ default: vue.withCtx(() => _cache[45] || (_cache[45] = [
680
+ vue.createTextVNode(" 添加列配置 ")
665
681
  ])),
666
682
  _: 1
667
683
  })
668
684
  ]),
669
- Vue.createElementVNode("div", _hoisted_11, [
670
- Vue.createVNode(Vue.unref(vueDraggablePlus.VueDraggable), {
671
- modelValue: Vue.unref(currentDialog).customTableConfig.fieldsData,
672
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => Vue.unref(currentDialog).customTableConfig.fieldsData = $event),
685
+ vue.createElementVNode("div", _hoisted_11, [
686
+ vue.createVNode(vue.unref(vueDraggablePlus.VueDraggable), {
687
+ modelValue: vue.unref(currentDialog).customTableConfig.fieldsData,
688
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => vue.unref(currentDialog).customTableConfig.fieldsData = $event),
673
689
  animation: 150,
674
690
  handle: ".drag-handle"
675
691
  }, {
676
- default: Vue.withCtx(() => [
677
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
678
- return Vue.openBlock(), Vue.createElementBlock("div", {
692
+ default: vue.withCtx(() => [
693
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(currentDialog).customTableConfig.fieldsData, (col, index2) => {
694
+ return vue.openBlock(), vue.createElementBlock("div", {
679
695
  key: index2,
680
696
  class: "col-rule-item"
681
697
  }, [
682
- Vue.createElementVNode("div", _hoisted_12, [
683
- Vue.createVNode(_component_el_icon, null, {
684
- default: Vue.withCtx(() => [
685
- Vue.createVNode(Vue.unref(index$4.Rank))
698
+ vue.createElementVNode("div", _hoisted_12, [
699
+ vue.createVNode(_component_el_icon, null, {
700
+ default: vue.withCtx(() => [
701
+ vue.createVNode(vue.unref(index$4.Rank))
686
702
  ]),
687
703
  _: 1
688
704
  })
689
705
  ]),
690
- Vue.createVNode(_component_el_input, {
706
+ vue.createVNode(_component_el_input, {
691
707
  modelValue: col.label,
692
708
  "onUpdate:modelValue": ($event) => col.label = $event,
693
709
  size: "small",
694
710
  placeholder: "列标题"
695
711
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
696
- Vue.createVNode(_component_el_input, {
712
+ vue.createVNode(_component_el_input, {
697
713
  modelValue: col.fieldName,
698
714
  "onUpdate:modelValue": ($event) => col.fieldName = $event,
699
715
  size: "small",
700
716
  placeholder: "字段名"
701
717
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
702
- Vue.createElementVNode("div", _hoisted_13, [
703
- Vue.createVNode(_component_el_popover, {
718
+ vue.createElementVNode("div", _hoisted_13, [
719
+ vue.createVNode(_component_el_popover, {
704
720
  placement: "right",
705
721
  width: 200,
706
722
  trigger: "click"
707
723
  }, {
708
- reference: Vue.withCtx(() => [
709
- Vue.createVNode(_component_el_button, {
710
- icon: Vue.unref(index$4.Edit),
724
+ reference: vue.withCtx(() => [
725
+ vue.createVNode(_component_el_button, {
726
+ icon: vue.unref(index$4.Edit),
711
727
  link: "",
712
728
  type: "primary",
713
729
  class: "edit-btn"
714
730
  }, null, 8, ["icon"])
715
731
  ]),
716
- default: Vue.withCtx(() => [
717
- Vue.createElementVNode("div", _hoisted_14, [
718
- Vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
719
- default: Vue.withCtx(() => [
720
- Vue.createVNode(widgets.default, {
732
+ default: vue.withCtx(() => [
733
+ vue.createElementVNode("div", _hoisted_14, [
734
+ vue.createVNode(_component_el_scrollbar, { "wrap-class": "col-property-scrollbar" }, {
735
+ default: vue.withCtx(() => [
736
+ vue.createVNode(widgets.default, {
721
737
  column: col,
722
738
  isComp: ""
723
739
  }, null, 8, ["column"])
@@ -728,8 +744,8 @@ const _sfc_main = {
728
744
  ]),
729
745
  _: 2
730
746
  }, 1024),
731
- Vue.createVNode(_component_el_button, {
732
- icon: Vue.unref(index$4.Delete),
747
+ vue.createVNode(_component_el_button, {
748
+ icon: vue.unref(index$4.Delete),
733
749
  link: "",
734
750
  type: "danger",
735
751
  class: "delete-btn",
@@ -746,68 +762,69 @@ const _sfc_main = {
746
762
  ]),
747
763
  _: 1
748
764
  }),
749
- Vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
750
- default: Vue.withCtx(() => [
751
- Vue.createVNode(_component_el_input, {
752
- modelValue: Vue.unref(currentDialog).customTableConfig.pkFieldName,
753
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => Vue.unref(currentDialog).customTableConfig.pkFieldName = $event),
765
+ vue.createVNode(_component_el_form_item, { label: "主键字段" }, {
766
+ default: vue.withCtx(() => [
767
+ vue.createVNode(_component_el_input, {
768
+ modelValue: vue.unref(currentDialog).customTableConfig.pkFieldName,
769
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => vue.unref(currentDialog).customTableConfig.pkFieldName = $event),
754
770
  placeholder: "请输入主键字段",
755
771
  clearable: ""
756
772
  }, null, 8, ["modelValue"])
757
773
  ]),
758
774
  _: 1
759
775
  }),
760
- Vue.createVNode(_component_el_form_item, { label: "数据源" }, {
761
- default: Vue.withCtx(() => [
762
- Vue.createVNode(DataSourceSelect.default, {
763
- modelValue: Vue.unref(currentDialog).customTableConfig.dataSourceId,
764
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => Vue.unref(currentDialog).customTableConfig.dataSourceId = $event)
765
- }, null, 8, ["modelValue"])
776
+ vue.createVNode(_component_el_form_item, { label: "数据源" }, {
777
+ default: vue.withCtx(() => [
778
+ vue.createVNode(DataSourceSelect.default, {
779
+ modelValue: vue.unref(currentDialog).customTableConfig.dataSourceId,
780
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => vue.unref(currentDialog).customTableConfig.dataSourceId = $event),
781
+ "data-sources": vue.unref(currentDialog).customTableConfig.dataSources
782
+ }, null, 8, ["modelValue", "data-sources"])
766
783
  ]),
767
784
  _: 1
768
785
  })
769
- ], 64)) : Vue.createCommentVNode("", true),
770
- Vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
771
- default: Vue.withCtx(() => [
772
- Vue.createVNode(_component_el_switch, {
773
- modelValue: Vue.unref(currentDialog).isSubTablePagination,
774
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => Vue.unref(currentDialog).isSubTablePagination = $event)
786
+ ], 64)) : vue.createCommentVNode("", true),
787
+ vue.createVNode(_component_el_form_item, { label: "是否翻页" }, {
788
+ default: vue.withCtx(() => [
789
+ vue.createVNode(_component_el_switch, {
790
+ modelValue: vue.unref(currentDialog).isSubTablePagination,
791
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => vue.unref(currentDialog).isSubTablePagination = $event)
775
792
  }, null, 8, ["modelValue"])
776
793
  ]),
777
794
  _: 1
778
795
  }),
779
- Vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
780
- default: Vue.withCtx(() => [
781
- Vue.createVNode(_component_el_switch, {
782
- modelValue: Vue.unref(currentDialog).isSubTableReadOnly,
783
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => Vue.unref(currentDialog).isSubTableReadOnly = $event)
796
+ vue.createVNode(_component_el_form_item, { label: "是否只读" }, {
797
+ default: vue.withCtx(() => [
798
+ vue.createVNode(_component_el_switch, {
799
+ modelValue: vue.unref(currentDialog).isSubTableReadOnly,
800
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => vue.unref(currentDialog).isSubTableReadOnly = $event)
784
801
  }, null, 8, ["modelValue"])
785
802
  ]),
786
803
  _: 1
787
804
  }),
788
- !Vue.unref(currentDialog).isSubTableReadOnly ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [
789
- Vue.createVNode(_component_el_form_item, { label: "选择模式" }, {
790
- default: Vue.withCtx(() => [
791
- Vue.createVNode(_component_el_radio_group, {
792
- modelValue: Vue.unref(currentDialog).selectionMode,
793
- "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => Vue.unref(currentDialog).selectionMode = $event)
805
+ !vue.unref(currentDialog).isSubTableReadOnly ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
806
+ vue.createVNode(_component_el_form_item, { label: "选择模式" }, {
807
+ default: vue.withCtx(() => [
808
+ vue.createVNode(_component_el_radio_group, {
809
+ modelValue: vue.unref(currentDialog).selectionMode,
810
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => vue.unref(currentDialog).selectionMode = $event)
794
811
  }, {
795
- default: Vue.withCtx(() => [
796
- Vue.createVNode(_component_el_radio_button, { value: "none" }, {
797
- default: Vue.withCtx(() => _cache[46] || (_cache[46] = [
798
- Vue.createTextVNode("无")
812
+ default: vue.withCtx(() => [
813
+ vue.createVNode(_component_el_radio_button, { value: "none" }, {
814
+ default: vue.withCtx(() => _cache[46] || (_cache[46] = [
815
+ vue.createTextVNode("无")
799
816
  ])),
800
817
  _: 1
801
818
  }),
802
- Vue.createVNode(_component_el_radio_button, { value: "single" }, {
803
- default: Vue.withCtx(() => _cache[47] || (_cache[47] = [
804
- Vue.createTextVNode("单选")
819
+ vue.createVNode(_component_el_radio_button, { value: "single" }, {
820
+ default: vue.withCtx(() => _cache[47] || (_cache[47] = [
821
+ vue.createTextVNode("单选")
805
822
  ])),
806
823
  _: 1
807
824
  }),
808
- Vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
809
- default: Vue.withCtx(() => _cache[48] || (_cache[48] = [
810
- Vue.createTextVNode("多选")
825
+ vue.createVNode(_component_el_radio_button, { value: "multiple" }, {
826
+ default: vue.withCtx(() => _cache[48] || (_cache[48] = [
827
+ vue.createTextVNode("多选")
811
828
  ])),
812
829
  _: 1
813
830
  })
@@ -817,89 +834,89 @@ const _sfc_main = {
817
834
  ]),
818
835
  _: 1
819
836
  }),
820
- Vue.unref(currentDialog).selectionMode != "none" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 0 }, [
821
- Vue.createVNode(_component_el_form_item, { label: "选取后反显格式" }, {
822
- default: Vue.withCtx(() => [
823
- Vue.createVNode(Vue.unref(FormulaEditorInput.default), {
837
+ vue.unref(currentDialog).selectionMode != "none" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
838
+ vue.createVNode(_component_el_form_item, { label: "选取后反显格式" }, {
839
+ default: vue.withCtx(() => [
840
+ vue.createVNode(vue.unref(FormulaEditorInput.default), {
824
841
  title: "反显格式配置",
825
- formulaConf: Vue.unref(currentDialog).displayFormat,
826
- "onUpdate:formulaConf": _cache[19] || (_cache[19] = ($event) => Vue.unref(currentDialog).displayFormat = $event),
827
- modelValue: Vue.unref(currentDialog).displayFormatText,
828
- "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => Vue.unref(currentDialog).displayFormatText = $event),
829
- fieldList: Vue.unref(tableFields)
842
+ formulaConf: vue.unref(currentDialog).displayFormat,
843
+ "onUpdate:formulaConf": _cache[19] || (_cache[19] = ($event) => vue.unref(currentDialog).displayFormat = $event),
844
+ modelValue: vue.unref(currentDialog).displayFormatText,
845
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => vue.unref(currentDialog).displayFormatText = $event),
846
+ fieldList: vue.unref(tableFields)
830
847
  }, null, 8, ["formulaConf", "modelValue", "fieldList"])
831
848
  ]),
832
849
  _: 1
833
850
  }),
834
- Vue.unref(currentDialog).selectionMode == "single" ? (Vue.openBlock(), Vue.createBlock(_component_el_form_item, {
851
+ vue.unref(currentDialog).selectionMode == "single" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
835
852
  key: 0,
836
853
  label: "行数据全部赋值表单"
837
854
  }, {
838
- default: Vue.withCtx(() => [
839
- Vue.createVNode(_component_el_switch, {
840
- modelValue: Vue.unref(currentDialog).isRowDataAssignToForm,
841
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => Vue.unref(currentDialog).isRowDataAssignToForm = $event)
855
+ default: vue.withCtx(() => [
856
+ vue.createVNode(_component_el_switch, {
857
+ modelValue: vue.unref(currentDialog).isRowDataAssignToForm,
858
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => vue.unref(currentDialog).isRowDataAssignToForm = $event)
842
859
  }, null, 8, ["modelValue"])
843
860
  ]),
844
861
  _: 1
845
- })) : Vue.createCommentVNode("", true),
846
- Vue.createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
847
- default: Vue.withCtx(() => [
848
- Vue.createVNode(FieldSetMapping.default, {
849
- modelValue: Vue.unref(currentDialog).fieldMapping,
850
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => Vue.unref(currentDialog).fieldMapping = $event),
862
+ })) : vue.createCommentVNode("", true),
863
+ vue.createVNode(_component_el_form_item, { label: "选取后表单赋值映射" }, {
864
+ default: vue.withCtx(() => [
865
+ vue.createVNode(FieldSetMapping.default, {
866
+ modelValue: vue.unref(currentDialog).fieldMapping,
867
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).fieldMapping = $event),
851
868
  fieldLabel: "赋值表单字段",
852
869
  valueLabel: "列表字段",
853
- valueOptions: Vue.unref(tableFields),
870
+ valueOptions: vue.unref(tableFields),
854
871
  valueSelectMode: ""
855
872
  }, null, 8, ["modelValue", "valueOptions"])
856
873
  ]),
857
874
  _: 1
858
875
  })
859
- ], 64)) : Vue.createCommentVNode("", true),
860
- Vue.createVNode(_component_el_form_item, { label: "回调事件配置" }, {
861
- default: Vue.withCtx(() => [
862
- Vue.createVNode(OnlyFLowConfigButton.default, {
863
- config: Vue.unref(currentDialog).callbackEventConfig,
876
+ ], 64)) : vue.createCommentVNode("", true),
877
+ vue.createVNode(_component_el_form_item, { label: "回调事件配置" }, {
878
+ default: vue.withCtx(() => [
879
+ vue.createVNode(OnlyFLowConfigButton.default, {
880
+ config: vue.unref(currentDialog).callbackEventConfig,
864
881
  onConfirm: handleOnlyFlowConfirm
865
882
  }, null, 8, ["config"])
866
883
  ]),
867
884
  _: 1
868
885
  })
869
- ], 64)) : Vue.createCommentVNode("", true)
870
- ], 64)) : Vue.createCommentVNode("", true),
871
- Vue.unref(currentDialog).contentSource === "form" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 2 }, [
872
- Vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
873
- default: Vue.withCtx(() => [
874
- Vue.createVNode(TemplateSelector.default, {
875
- modelValue: Vue.unref(currentDialog).subFormName,
876
- "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => Vue.unref(currentDialog).subFormName = $event),
877
- templateKey: Vue.unref(currentDialog).subFormKey,
878
- "onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => Vue.unref(currentDialog).subFormKey = $event),
879
- templateId: Vue.unref(currentDialog).subFormId,
880
- "onUpdate:templateId": _cache[25] || (_cache[25] = ($event) => Vue.unref(currentDialog).subFormId = $event),
886
+ ], 64)) : vue.createCommentVNode("", true)
887
+ ], 64)) : vue.createCommentVNode("", true),
888
+ vue.unref(currentDialog).contentSource === "form" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
889
+ vue.createVNode(_component_el_form_item, { label: "选择表单" }, {
890
+ default: vue.withCtx(() => [
891
+ vue.createVNode(TemplateSelector.default, {
892
+ modelValue: vue.unref(currentDialog).subFormName,
893
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).subFormName = $event),
894
+ templateKey: vue.unref(currentDialog).subFormKey,
895
+ "onUpdate:templateKey": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).subFormKey = $event),
896
+ templateId: vue.unref(currentDialog).subFormId,
897
+ "onUpdate:templateId": _cache[25] || (_cache[25] = ($event) => vue.unref(currentDialog).subFormId = $event),
881
898
  templateType: "form",
882
899
  onConfirm: formSelectorConfirm
883
900
  }, null, 8, ["modelValue", "templateKey", "templateId"])
884
901
  ]),
885
902
  _: 1
886
903
  }),
887
- Vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
888
- default: Vue.withCtx(() => [
889
- Vue.createVNode(_component_el_radio_group, {
890
- modelValue: Vue.unref(currentDialog).subFormMode,
891
- "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => Vue.unref(currentDialog).subFormMode = $event)
904
+ vue.createVNode(_component_el_form_item, { label: "表单模式" }, {
905
+ default: vue.withCtx(() => [
906
+ vue.createVNode(_component_el_radio_group, {
907
+ modelValue: vue.unref(currentDialog).subFormMode,
908
+ "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => vue.unref(currentDialog).subFormMode = $event)
892
909
  }, {
893
- default: Vue.withCtx(() => [
894
- Vue.createVNode(_component_el_radio_button, { value: "edit" }, {
895
- default: Vue.withCtx(() => _cache[49] || (_cache[49] = [
896
- Vue.createTextVNode("编辑")
910
+ default: vue.withCtx(() => [
911
+ vue.createVNode(_component_el_radio_button, { value: "edit" }, {
912
+ default: vue.withCtx(() => _cache[49] || (_cache[49] = [
913
+ vue.createTextVNode("编辑")
897
914
  ])),
898
915
  _: 1
899
916
  }),
900
- Vue.createVNode(_component_el_radio_button, { value: "query" }, {
901
- default: Vue.withCtx(() => _cache[50] || (_cache[50] = [
902
- Vue.createTextVNode("查看")
917
+ vue.createVNode(_component_el_radio_button, { value: "query" }, {
918
+ default: vue.withCtx(() => _cache[50] || (_cache[50] = [
919
+ vue.createTextVNode("查看")
903
920
  ])),
904
921
  _: 1
905
922
  })
@@ -909,18 +926,18 @@ const _sfc_main = {
909
926
  ]),
910
927
  _: 1
911
928
  }),
912
- Vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
913
- default: Vue.withCtx(() => [
914
- Vue.createElementVNode("div", _hoisted_15, [
915
- !Vue.unref(formFooterBtn) || Vue.unref(formFooterBtn).length === 0 ? (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_16, " 暂无可用按钮 ")) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_17, [
916
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(Vue.unref(formFooterBtn), (btn) => {
917
- return Vue.openBlock(), Vue.createBlock(_component_el_checkbox, {
929
+ vue.createVNode(_component_el_form_item, { label: "表单底部按钮" }, {
930
+ default: vue.withCtx(() => [
931
+ vue.createElementVNode("div", _hoisted_15, [
932
+ !vue.unref(formFooterBtn) || vue.unref(formFooterBtn).length === 0 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, " 暂无可用按钮 ")) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
933
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(formFooterBtn), (btn) => {
934
+ return vue.openBlock(), vue.createBlock(_component_el_checkbox, {
918
935
  key: btn.id,
919
936
  "model-value": isButtonSelected(btn.id),
920
937
  onChange: ($event) => toggleButton(btn)
921
938
  }, {
922
- default: Vue.withCtx(() => [
923
- Vue.createTextVNode(Vue.toDisplayString(btn.label), 1)
939
+ default: vue.withCtx(() => [
940
+ vue.createTextVNode(vue.toDisplayString(btn.label), 1)
924
941
  ]),
925
942
  _: 2
926
943
  }, 1032, ["model-value", "onChange"]);
@@ -930,38 +947,38 @@ const _sfc_main = {
930
947
  ]),
931
948
  _: 1
932
949
  })
933
- ], 64)) : Vue.createCommentVNode("", true),
934
- Vue.unref(currentDialog).contentSource === "component" ? (Vue.openBlock(), Vue.createElementBlock(Vue.Fragment, { key: 3 }, [
935
- Vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
936
- default: Vue.withCtx(() => [
937
- Vue.createVNode(_component_el_input, {
938
- modelValue: Vue.unref(currentDialog).componentPath,
939
- "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => Vue.unref(currentDialog).componentPath = $event),
950
+ ], 64)) : vue.createCommentVNode("", true),
951
+ vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
952
+ vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
953
+ default: vue.withCtx(() => [
954
+ vue.createVNode(_component_el_input, {
955
+ modelValue: vue.unref(currentDialog).componentPath,
956
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => vue.unref(currentDialog).componentPath = $event),
940
957
  placeholder: "请输入组件路径",
941
958
  clearable: ""
942
959
  }, null, 8, ["modelValue"])
943
960
  ]),
944
961
  _: 1
945
962
  }),
946
- Vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
947
- default: Vue.withCtx(() => [
948
- Vue.createVNode(ParamsConfig.default, {
949
- modelValue: Vue.unref(currentDialog).componentParams,
950
- "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => Vue.unref(currentDialog).componentParams = $event)
963
+ vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
964
+ default: vue.withCtx(() => [
965
+ vue.createVNode(ParamsConfig.default, {
966
+ modelValue: vue.unref(currentDialog).componentParams,
967
+ "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => vue.unref(currentDialog).componentParams = $event)
951
968
  }, null, 8, ["modelValue"])
952
969
  ]),
953
970
  _: 1
954
971
  }),
955
- Vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
956
- default: Vue.withCtx(() => [
957
- Vue.createVNode(_component_el_switch, {
958
- modelValue: Vue.unref(currentDialog).componentIsDialog,
959
- "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => Vue.unref(currentDialog).componentIsDialog = $event)
972
+ vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
973
+ default: vue.withCtx(() => [
974
+ vue.createVNode(_component_el_switch, {
975
+ modelValue: vue.unref(currentDialog).componentIsDialog,
976
+ "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
960
977
  }, null, 8, ["modelValue"])
961
978
  ]),
962
979
  _: 1
963
980
  })
964
- ], 64)) : Vue.createCommentVNode("", true)
981
+ ], 64)) : vue.createCommentVNode("", true)
965
982
  ]),
966
983
  _: 1
967
984
  }, 8, ["model"])
@@ -973,7 +990,7 @@ const _sfc_main = {
973
990
  })
974
991
  ]),
975
992
  _: 1
976
- })) : (Vue.openBlock(), Vue.createElementBlock("div", _hoisted_18, "请从左侧选择一个弹层"))
993
+ })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_18, "请从左侧选择一个弹层"))
977
994
  ]),
978
995
  _: 1
979
996
  })
@@ -986,5 +1003,5 @@ const _sfc_main = {
986
1003
  };
987
1004
  }
988
1005
  };
989
- const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-7b357db6"]]);
1006
+ const DialogDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-1c16c4fd"]]);
990
1007
  exports.default = DialogDialog;