@fecp/designer 5.4.19 → 5.4.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/es/designer/package.json.mjs +1 -1
  2. package/es/designer/src/components/DialogSelect.vue.mjs +122 -0
  3. package/es/designer/src/packages/dialog/index.vue.mjs +58 -41
  4. package/es/designer/src/packages/dialogGlobal/index.vue.mjs +61 -42
  5. package/es/designer/src/packages/event/pageEvent.vue.mjs +18 -3
  6. package/es/designer/src/packages/eventFlow/dialog/action/Dialog.vue.mjs +9 -29
  7. package/es/designer/src/packages/form/aside/index.mjs +1 -0
  8. package/es/designer/src/packages/form/property/subForm.vue.mjs +12 -14
  9. package/es/designer/src/packages/form/property/widgets.vue.mjs +27 -25
  10. package/es/designer/src/packages/table/headerBtn.vue.mjs +2 -2
  11. package/es/designer.css +964 -961
  12. package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
  13. package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +34 -23
  14. package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +25 -2
  15. package/lib/designer/package.json.js +1 -1
  16. package/lib/designer/src/components/DialogSelect.vue.js +122 -0
  17. package/lib/designer/src/packages/dialog/index.vue.js +58 -41
  18. package/lib/designer/src/packages/dialogGlobal/index.vue.js +61 -42
  19. package/lib/designer/src/packages/event/pageEvent.vue.js +26 -11
  20. package/lib/designer/src/packages/eventFlow/dialog/action/Dialog.vue.js +11 -31
  21. package/lib/designer/src/packages/form/aside/index.js +1 -0
  22. package/lib/designer/src/packages/form/property/subForm.vue.js +12 -14
  23. package/lib/designer/src/packages/form/property/widgets.vue.js +22 -20
  24. package/lib/designer/src/packages/table/headerBtn.vue.js +2 -2
  25. package/lib/designer.css +964 -961
  26. package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
  27. package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +33 -22
  28. package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +25 -2
  29. package/package.json +1 -1
@@ -66,6 +66,13 @@ require("../formulaEditor/core/functionCore.js");
66
66
  ;/* empty css */
67
67
  ;/* empty css */
68
68
  ;/* empty css */
69
+ const index$g = require("../table/aside/index.js");
70
+ const _default = require("../table/default.js");
71
+ const widgets = require("../table/property/widgets.vue.js");
72
+ ;/* empty css */
73
+ ;/* empty css */
74
+ ;/* empty css */
75
+ ;/* empty css */
69
76
  ;/* empty css */
70
77
  ;/* empty css */
71
78
  ;/* empty css */
@@ -88,8 +95,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
88
95
  ;/* empty css */
89
96
  require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js");
90
97
  require("../../axios/config.js");
91
- ;/* empty css */
92
- ;/* empty css */
93
98
  ;/* empty css */
94
99
  ;/* empty css */
95
100
  ;/* empty css */
@@ -99,10 +104,6 @@ require("../../axios/config.js");
99
104
  ;/* empty css */
100
105
  ;/* empty css */
101
106
  ;/* empty css */
102
- const index$g = require("../table/aside/index.js");
103
- const _default = require("../table/default.js");
104
- const widgets = require("../table/property/widgets.vue.js");
105
- ;/* empty css */
106
107
  const index$1 = require("../../../../node_modules/element-plus/es/components/message/index.js");
107
108
  const index$2 = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
108
109
  const index$3 = require("../../../../node_modules/element-plus/es/components/container/index.js");
@@ -225,8 +226,9 @@ const _sfc_main = {
225
226
  componentPath: "",
226
227
  fieldMapping: [],
227
228
  subFormMode: "edit",
228
- subFormFooterButtons: []
229
+ subFormFooterButtons: [],
229
230
  // 表单底部按钮
231
+ componentParams: []
230
232
  };
231
233
  selectedDialogs.value.push(newDialog);
232
234
  isEditingNew.value = false;
@@ -404,7 +406,7 @@ const _sfc_main = {
404
406
  const _component_el_dialog = index$2.ElDialog;
405
407
  return vue.openBlock(), vue.createBlock(_component_el_dialog, {
406
408
  modelValue: dialogVisible.value,
407
- "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => dialogVisible.value = $event),
409
+ "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => dialogVisible.value = $event),
408
410
  width: "50%",
409
411
  title: "全局弹层配置",
410
412
  draggable: "",
@@ -418,10 +420,10 @@ const _sfc_main = {
418
420
  footer: vue.withCtx(() => [
419
421
  vue.createElementVNode("div", _hoisted_21, [
420
422
  vue.createVNode(_component_el_button, {
421
- onClick: _cache[23] || (_cache[23] = ($event) => dialogVisible.value = false),
423
+ onClick: _cache[25] || (_cache[25] = ($event) => dialogVisible.value = false),
422
424
  disabled: vue.unref(saving)
423
425
  }, {
424
- default: vue.withCtx(() => _cache[41] || (_cache[41] = [
426
+ default: vue.withCtx(() => _cache[43] || (_cache[43] = [
425
427
  vue.createTextVNode("取消")
426
428
  ])),
427
429
  _: 1
@@ -432,7 +434,7 @@ const _sfc_main = {
432
434
  loading: vue.unref(saving),
433
435
  disabled: vue.unref(loading) || vue.unref(saving)
434
436
  }, {
435
- default: vue.withCtx(() => _cache[42] || (_cache[42] = [
437
+ default: vue.withCtx(() => _cache[44] || (_cache[44] = [
436
438
  vue.createTextVNode(" 确定 ")
437
439
  ])),
438
440
  _: 1
@@ -466,7 +468,7 @@ const _sfc_main = {
466
468
  icon: vue.unref(index$5.Plus),
467
469
  onClick: startAddDialog
468
470
  }, {
469
- default: vue.withCtx(() => _cache[25] || (_cache[25] = [
471
+ default: vue.withCtx(() => _cache[27] || (_cache[27] = [
470
472
  vue.createTextVNode(" 新增弹层 ")
471
473
  ])),
472
474
  _: 1
@@ -493,7 +495,7 @@ const _sfc_main = {
493
495
  icon: vue.unref(index$5.Close),
494
496
  onClick: cancelAddDialog
495
497
  }, {
496
- default: vue.withCtx(() => _cache[26] || (_cache[26] = [
498
+ default: vue.withCtx(() => _cache[28] || (_cache[28] = [
497
499
  vue.createTextVNode(" 取消 ")
498
500
  ])),
499
501
  _: 1
@@ -504,7 +506,7 @@ const _sfc_main = {
504
506
  icon: vue.unref(index$5.Check),
505
507
  onClick: confirmAddDialog
506
508
  }, {
507
- default: vue.withCtx(() => _cache[27] || (_cache[27] = [
509
+ default: vue.withCtx(() => _cache[29] || (_cache[29] = [
508
510
  vue.createTextVNode(" 确认 ")
509
511
  ])),
510
512
  _: 1
@@ -612,25 +614,25 @@ const _sfc_main = {
612
614
  }, {
613
615
  default: vue.withCtx(() => [
614
616
  vue.createVNode(_component_el_radio_button, { value: "standard" }, {
615
- default: vue.withCtx(() => _cache[28] || (_cache[28] = [
617
+ default: vue.withCtx(() => _cache[30] || (_cache[30] = [
616
618
  vue.createTextVNode("标准")
617
619
  ])),
618
620
  _: 1
619
621
  }),
620
622
  vue.createVNode(_component_el_radio_button, { value: "large" }, {
621
- default: vue.withCtx(() => _cache[29] || (_cache[29] = [
623
+ default: vue.withCtx(() => _cache[31] || (_cache[31] = [
622
624
  vue.createTextVNode("更大")
623
625
  ])),
624
626
  _: 1
625
627
  }),
626
628
  vue.createVNode(_component_el_radio_button, { value: "small" }, {
627
- default: vue.withCtx(() => _cache[30] || (_cache[30] = [
629
+ default: vue.withCtx(() => _cache[32] || (_cache[32] = [
628
630
  vue.createTextVNode("更小")
629
631
  ])),
630
632
  _: 1
631
633
  }),
632
634
  vue.createVNode(_component_el_radio_button, { value: "custom" }, {
633
- default: vue.withCtx(() => _cache[31] || (_cache[31] = [
635
+ default: vue.withCtx(() => _cache[33] || (_cache[33] = [
634
636
  vue.createTextVNode("自定义")
635
637
  ])),
636
638
  _: 1
@@ -680,25 +682,25 @@ const _sfc_main = {
680
682
  }, {
681
683
  default: vue.withCtx(() => [
682
684
  vue.createVNode(_component_el_radio_button, { value: "table" }, {
683
- default: vue.withCtx(() => _cache[32] || (_cache[32] = [
685
+ default: vue.withCtx(() => _cache[34] || (_cache[34] = [
684
686
  vue.createTextVNode("列表")
685
687
  ])),
686
688
  _: 1
687
689
  }),
688
690
  vue.createVNode(_component_el_radio_button, { value: "form" }, {
689
- default: vue.withCtx(() => _cache[33] || (_cache[33] = [
691
+ default: vue.withCtx(() => _cache[35] || (_cache[35] = [
690
692
  vue.createTextVNode("表单")
691
693
  ])),
692
694
  _: 1
693
695
  }),
694
696
  vue.createVNode(_component_el_radio_button, { value: "tree" }, {
695
- default: vue.withCtx(() => _cache[34] || (_cache[34] = [
697
+ default: vue.withCtx(() => _cache[36] || (_cache[36] = [
696
698
  vue.createTextVNode("树形")
697
699
  ])),
698
700
  _: 1
699
701
  }),
700
702
  vue.createVNode(_component_el_radio_button, { value: "component" }, {
701
- default: vue.withCtx(() => _cache[35] || (_cache[35] = [
703
+ default: vue.withCtx(() => _cache[37] || (_cache[37] = [
702
704
  vue.createTextVNode("组件")
703
705
  ])),
704
706
  _: 1
@@ -718,13 +720,13 @@ const _sfc_main = {
718
720
  }, {
719
721
  default: vue.withCtx(() => [
720
722
  vue.createVNode(_component_el_radio_button, { value: "select" }, {
721
- default: vue.withCtx(() => _cache[36] || (_cache[36] = [
723
+ default: vue.withCtx(() => _cache[38] || (_cache[38] = [
722
724
  vue.createTextVNode("选择列表")
723
725
  ])),
724
726
  _: 1
725
727
  }),
726
728
  vue.createVNode(_component_el_radio_button, { value: "custom" }, {
727
- default: vue.withCtx(() => _cache[37] || (_cache[37] = [
729
+ default: vue.withCtx(() => _cache[39] || (_cache[39] = [
728
730
  vue.createTextVNode("自定义")
729
731
  ])),
730
732
  _: 1
@@ -785,7 +787,7 @@ const _sfc_main = {
785
787
  icon: "Plus",
786
788
  link: ""
787
789
  }, {
788
- default: vue.withCtx(() => _cache[38] || (_cache[38] = [
790
+ default: vue.withCtx(() => _cache[40] || (_cache[40] = [
789
791
  vue.createTextVNode(" 添加列配置 ")
790
792
  ])),
791
793
  _: 1
@@ -935,13 +937,13 @@ const _sfc_main = {
935
937
  }, {
936
938
  default: vue.withCtx(() => [
937
939
  vue.createVNode(_component_el_radio_button, { value: "edit" }, {
938
- default: vue.withCtx(() => _cache[39] || (_cache[39] = [
940
+ default: vue.withCtx(() => _cache[41] || (_cache[41] = [
939
941
  vue.createTextVNode("编辑")
940
942
  ])),
941
943
  _: 1
942
944
  }),
943
945
  vue.createVNode(_component_el_radio_button, { value: "query" }, {
944
- default: vue.withCtx(() => _cache[40] || (_cache[40] = [
946
+ default: vue.withCtx(() => _cache[42] || (_cache[42] = [
945
947
  vue.createTextVNode("查看")
946
948
  ])),
947
949
  _: 1
@@ -974,20 +976,37 @@ const _sfc_main = {
974
976
  _: 1
975
977
  })
976
978
  ], 64)) : vue.createCommentVNode("", true),
977
- vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
978
- key: 3,
979
- label: "选择组件"
980
- }, {
981
- default: vue.withCtx(() => [
982
- vue.createVNode(_component_el_input, {
983
- modelValue: vue.unref(currentDialog).componentPath,
984
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).componentPath = $event),
985
- placeholder: "请输入组件路径",
986
- clearable: ""
987
- }, null, 8, ["modelValue"])
988
- ]),
989
- _: 1
990
- })) : vue.createCommentVNode("", true)
979
+ vue.unref(currentDialog).contentSource === "component" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
980
+ vue.createVNode(_component_el_form_item, { label: "组件路由地址" }, {
981
+ default: vue.withCtx(() => [
982
+ vue.createVNode(_component_el_input, {
983
+ modelValue: vue.unref(currentDialog).componentPath,
984
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => vue.unref(currentDialog).componentPath = $event),
985
+ placeholder: "请输入组件路径",
986
+ clearable: ""
987
+ }, null, 8, ["modelValue"])
988
+ ]),
989
+ _: 1
990
+ }),
991
+ vue.createVNode(_component_el_form_item, { label: "组件参数" }, {
992
+ default: vue.withCtx(() => [
993
+ vue.createVNode(ParamsConfig.default, {
994
+ modelValue: vue.unref(currentDialog).componentParams,
995
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => vue.unref(currentDialog).componentParams = $event)
996
+ }, null, 8, ["modelValue"])
997
+ ]),
998
+ _: 1
999
+ }),
1000
+ vue.createVNode(_component_el_form_item, { label: "组件是否是弹层" }, {
1001
+ default: vue.withCtx(() => [
1002
+ vue.createVNode(_component_el_switch, {
1003
+ modelValue: vue.unref(currentDialog).componentIsDialog,
1004
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => vue.unref(currentDialog).componentIsDialog = $event)
1005
+ }, null, 8, ["modelValue"])
1006
+ ]),
1007
+ _: 1
1008
+ })
1009
+ ], 64)) : vue.createCommentVNode("", true)
991
1010
  ]),
992
1011
  _: 1
993
1012
  }, 8, ["model"])
@@ -1012,5 +1031,5 @@ const _sfc_main = {
1012
1031
  };
1013
1032
  }
1014
1033
  };
1015
- const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e1cf0065"]]);
1034
+ const DialogGlobalDialog = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-e641bf90"]]);
1016
1035
  exports.default = DialogGlobalDialog;
@@ -13,7 +13,7 @@ require("../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.js");
13
13
  ;/* empty css */
14
14
  ;/* empty css */
15
15
  const vue = require("vue");
16
- const index$3 = ;/* empty css */
16
+ const index$4 = ;/* empty css */
17
17
  const defaultProcessData = require("../eventFlow/defaultProcessData.js");
18
18
  const common = require("../utils/common.js");
19
19
  ;/* empty css */
@@ -22,9 +22,10 @@ const common = require("../utils/common.js");
22
22
  const _pluginVue_exportHelper = require("../../../../_virtual/_plugin-vue_export-helper.js");
23
23
  const index = require("../../../../node_modules/element-plus/es/components/dialog/index.js");
24
24
  const index$1 = require("../../../../node_modules/element-plus/es/components/container/index.js");
25
- const index$2 = require("../../../../node_modules/element-plus/es/components/tabs/index.js");
26
- const index$4 = require("../../../../node_modules/element-plus/es/components/button/index.js");
27
- const index$5 = require("../../../../node_modules/element-plus/es/components/message/index.js");
25
+ const index$2 = require("../../../../node_modules/element-plus/es/components/icon/index.js");
26
+ const index$3 = require("../../../../node_modules/element-plus/es/components/tabs/index.js");
27
+ const index$5 = require("../../../../node_modules/element-plus/es/components/button/index.js");
28
+ const index$6 = require("../../../../node_modules/element-plus/es/components/message/index.js");
28
29
  const _hoisted_1 = ["onClick"];
29
30
  const _hoisted_2 = { class: "event-title" };
30
31
  const _hoisted_3 = { class: "event-method" };
@@ -96,6 +97,9 @@ const _sfc_main = {
96
97
  throw errors;
97
98
  }
98
99
  };
100
+ const handleRemoveEvent = (index2) => {
101
+ pageEvents.value[index2].eventFlow = createEventFlow();
102
+ };
99
103
  const onConfirm = async () => {
100
104
  try {
101
105
  if (activeTab.value === "eventFlow") {
@@ -106,17 +110,19 @@ const _sfc_main = {
106
110
  } catch (errors) {
107
111
  console.error("事件流校验失败:", errors);
108
112
  const eventNames = errors.map((e) => e.event).join("、");
109
- index$5.ElMessage.error(`请完善 ${eventNames} 的事件配置`);
113
+ index$6.ElMessage.error(`请完善 ${eventNames} 的事件配置`);
110
114
  }
111
115
  };
112
116
  return (_ctx, _cache) => {
113
117
  const _component_el_header = index$1.ElHeader;
118
+ const _component_Delete = vue.resolveComponent("Delete");
119
+ const _component_el_icon = index$2.ElIcon;
114
120
  const _component_el_main = index$1.ElMain;
115
121
  const _component_el_container = index$1.ElContainer;
116
122
  const _component_el_aside = index$1.ElAside;
117
- const _component_el_tab_pane = index$2.ElTabPane;
118
- const _component_el_tabs = index$2.ElTabs;
119
- const _component_el_button = index$4.ElButton;
123
+ const _component_el_tab_pane = index$3.ElTabPane;
124
+ const _component_el_tabs = index$3.ElTabs;
125
+ const _component_el_button = index$5.ElButton;
120
126
  const _component_el_dialog = index.ElDialog;
121
127
  return vue.openBlock(), vue.createBlock(_component_el_dialog, {
122
128
  modelValue: dialogVisible.value,
@@ -186,7 +192,16 @@ const _sfc_main = {
186
192
  vue.createElementVNode("span", null, vue.toDisplayString(event.name), 1)
187
193
  ]),
188
194
  vue.createElementVNode("span", _hoisted_4, vue.toDisplayString(event.description), 1)
189
- ])
195
+ ]),
196
+ vue.createVNode(_component_el_icon, {
197
+ class: "delete-icon",
198
+ onClick: ($event) => handleRemoveEvent(index2)
199
+ }, {
200
+ default: vue.withCtx(() => [
201
+ vue.createVNode(_component_Delete)
202
+ ]),
203
+ _: 2
204
+ }, 1032, ["onClick"])
190
205
  ])
191
206
  ], 10, _hoisted_1);
192
207
  }), 128))
@@ -215,7 +230,7 @@ const _sfc_main = {
215
230
  default: vue.withCtx(() => [
216
231
  vue.createElementVNode("div", _hoisted_5, [
217
232
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(pageEvents.value, (event, index2) => {
218
- return vue.openBlock(), vue.createBlock(index$3.default, {
233
+ return vue.openBlock(), vue.createBlock(index$4.default, {
219
234
  key: index2,
220
235
  ref_for: true,
221
236
  ref: (el) => setEventFlowRef(el, index2),
@@ -255,5 +270,5 @@ const _sfc_main = {
255
270
  };
256
271
  }
257
272
  };
258
- const PageEvent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-eb92bfe7"]]);
273
+ const PageEvent = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-6bd0ac6f"]]);
259
274
  exports.default = PageEvent;
@@ -4,12 +4,6 @@ require("../../../../../../node_modules/element-plus/es/index.js");
4
4
  ;/* empty css */
5
5
  ;/* empty css */
6
6
  ;/* empty css */
7
- ;/* empty css */
8
- ;/* empty css */
9
- ;/* empty css */
10
- ;/* empty css */
11
- ;/* empty css */
12
- ;/* empty css */
13
7
  ;/* empty css */
14
8
  ;/* empty css */
15
9
  ;/* empty css */
@@ -18,11 +12,11 @@ const common = require("../../../utils/common.js");
18
12
  const FieldSetMapping = require("../../../../components/FieldSetMapping.vue2.js");
19
13
  const OnlyFLowConfigButton = require("../../../../components/OnlyFLowConfigButton.vue2.js");
20
14
  const FormulaEditorInput = require("../../../../components/FormulaEditorInput.vue.js");
21
- const index$4 = require("../../../../api/index.js");
15
+ const index$3 = require("../../../../api/index.js");
16
+ const DialogSelect = require("../../../../components/DialogSelect.vue.js");
22
17
  const index = require("../../../../../../node_modules/element-plus/es/components/form/index.js");
23
18
  const index$1 = require("../../../../../../node_modules/element-plus/es/components/radio/index.js");
24
- const index$2 = require("../../../../../../node_modules/element-plus/es/components/select/index.js");
25
- const index$3 = require("../../../../../../node_modules/element-plus/es/components/input/index.js");
19
+ const index$2 = require("../../../../../../node_modules/element-plus/es/components/input/index.js");
26
20
  const _sfc_main = {
27
21
  __name: "Dialog",
28
22
  props: {
@@ -37,7 +31,7 @@ const _sfc_main = {
37
31
  const loadGlobalDialogs = async () => {
38
32
  loading.value = true;
39
33
  try {
40
- const response = await index$4.default.getAllTemplateDialog();
34
+ const response = await index$3.default.getAllTemplateDialog();
41
35
  globalDialogs.value = [];
42
36
  for (let dialog of response) {
43
37
  globalDialogs.value.push({
@@ -82,7 +76,7 @@ const _sfc_main = {
82
76
  const tableId = currDialog.value.subTableId;
83
77
  if (tableId) {
84
78
  try {
85
- const response = await index$4.default.getById(tableId, false);
79
+ const response = await index$3.default.getById(tableId, false);
86
80
  tableOptions.value = JSON.parse(response.context);
87
81
  console.log("🚀 ~ 需要获取表格配置,表格ID:", tableId);
88
82
  } catch (error) {
@@ -122,9 +116,7 @@ const _sfc_main = {
122
116
  const _component_el_radio_button = index$1.ElRadioButton;
123
117
  const _component_el_radio_group = index$1.ElRadioGroup;
124
118
  const _component_el_form_item = index.ElFormItem;
125
- const _component_el_option = index$2.ElOption;
126
- const _component_el_select = index$2.ElSelect;
127
- const _component_el_input = index$3.ElInput;
119
+ const _component_el_input = index$2.ElInput;
128
120
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
129
121
  vue.createVNode(_component_el_form_item, { label: "弹层来源" }, {
130
122
  default: vue.withCtx(() => [
@@ -154,27 +146,15 @@ const _sfc_main = {
154
146
  }),
155
147
  vue.createVNode(_component_el_form_item, { label: "选择弹层" }, {
156
148
  default: vue.withCtx(() => [
157
- vue.createVNode(_component_el_select, {
149
+ vue.createVNode(DialogSelect.default, {
158
150
  modelValue: __props.formData.dialogId,
159
151
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.dialogId = $event),
160
- placeholder: "请选择弹层",
161
- filterable: "",
162
152
  size: "small",
163
153
  loading: loading.value,
164
- clearable: "",
165
- onChange: handleDialogChange
166
- }, {
167
- default: vue.withCtx(() => [
168
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dialogOptions.value, (dialog) => {
169
- return vue.openBlock(), vue.createBlock(_component_el_option, {
170
- key: dialog.id,
171
- label: dialog.name,
172
- value: dialog.id
173
- }, null, 8, ["label", "value"]);
174
- }), 128))
175
- ]),
176
- _: 1
177
- }, 8, ["modelValue", "loading"])
154
+ onChange: handleDialogChange,
155
+ dialogOptions: dialogOptions.value,
156
+ isGlobal: __props.formData.dialogSource == "global"
157
+ }, null, 8, ["modelValue", "loading", "dialogOptions", "isGlobal"])
178
158
  ]),
179
159
  _: 1
180
160
  }),
@@ -104,6 +104,7 @@ const components = [
104
104
  titleMode: "none",
105
105
  dataSourceFrom: "main",
106
106
  formSource: "select",
107
+ subFormParams: [],
107
108
  ...defaultProperty
108
109
  },
109
110
  {
@@ -5,7 +5,6 @@ require("../../../../../node_modules/element-plus/es/index.js");
5
5
  ;/* empty css */
6
6
  ;/* empty css */
7
7
  ;/* empty css */
8
- ;/* empty css */
9
8
  ;/* empty css */
10
9
  ;/* empty css */
11
10
  ;/* empty css */
@@ -16,11 +15,11 @@ const common = require("../../utils/common.js");
16
15
  const TemplateSelector = require("../../../components/TemplateSelector.vue.js");
17
16
  const eventBus = require("../../utils/eventBus.js");
18
17
  const ValueSelector = require("../../../components/ValueSelector.vue.js");
18
+ const ParamsConfig = require("../../../components/ParamsConfig.vue2.js");
19
19
  const index = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
20
20
  const index$1 = require("../../../../../node_modules/element-plus/es/components/form/index.js");
21
21
  const index$2 = require("../../../../../node_modules/element-plus/es/components/input/index.js");
22
22
  const index$3 = require("../../../../../node_modules/element-plus/es/components/radio/index.js");
23
- const index$4 = require("../../../../../node_modules/element-plus/es/components/switch/index.js");
24
23
  const _sfc_main = {
25
24
  __name: "subForm",
26
25
  setup(__props) {
@@ -45,7 +44,6 @@ const _sfc_main = {
45
44
  const _component_el_form_item = index$1.ElFormItem;
46
45
  const _component_el_radio_button = index$3.ElRadioButton;
47
46
  const _component_el_radio_group = index$3.ElRadioGroup;
48
- const _component_el_switch = index$4.ElSwitch;
49
47
  const _component_el_form = index$1.ElForm;
50
48
  const _component_el_collapse_item = index.ElCollapseItem;
51
49
  const _component_el_collapse = index.ElCollapse;
@@ -175,10 +173,7 @@ const _sfc_main = {
175
173
  ])),
176
174
  _: 1
177
175
  }),
178
- vue.createVNode(_component_el_radio_button, {
179
- value: "self",
180
- disabled: ""
181
- }, {
176
+ vue.createVNode(_component_el_radio_button, { value: "self" }, {
182
177
  default: vue.withCtx(() => _cache[20] || (_cache[20] = [
183
178
  vue.createTextVNode("子表单自加载")
184
179
  ])),
@@ -190,15 +185,18 @@ const _sfc_main = {
190
185
  ]),
191
186
  _: 1
192
187
  }),
193
- vue.createVNode(_component_el_form_item, { label: "执行子表单全局事件" }, {
188
+ vue.unref(currentItem).dataSourceFrom == "self" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
189
+ key: 1,
190
+ label: "表单参数"
191
+ }, {
194
192
  default: vue.withCtx(() => [
195
- vue.createVNode(_component_el_switch, {
196
- modelValue: vue.unref(currentItem).triggerSubFormPageEvent,
197
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentItem).triggerSubFormPageEvent = $event)
193
+ vue.createVNode(ParamsConfig.default, {
194
+ modelValue: vue.unref(currentItem).subFormParams,
195
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => vue.unref(currentItem).subFormParams = $event)
198
196
  }, null, 8, ["modelValue"])
199
197
  ]),
200
198
  _: 1
201
- }),
199
+ })) : vue.createCommentVNode("", true),
202
200
  vue.createVNode(_component_el_form_item, { label: "权限标识" }, {
203
201
  default: vue.withCtx(() => [
204
202
  vue.createVNode(_component_el_input, {
@@ -235,7 +233,7 @@ const _sfc_main = {
235
233
  _: 1
236
234
  }),
237
235
  vue.unref(currentItem).formSource == "select" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
238
- key: 1,
236
+ key: 2,
239
237
  label: "选择子表单"
240
238
  }, {
241
239
  default: vue.withCtx(() => [
@@ -251,7 +249,7 @@ const _sfc_main = {
251
249
  ]),
252
250
  _: 1
253
251
  })) : vue.unref(currentItem).formSource == "dynamic" ? (vue.openBlock(), vue.createBlock(_component_el_form_item, {
254
- key: 2,
252
+ key: 3,
255
253
  label: "表单标识"
256
254
  }, {
257
255
  default: vue.withCtx(() => [
@@ -33,6 +33,7 @@ const FieldSetMapping = require("../../../components/FieldSetMapping.vue2.js");
33
33
  const OnlyFLowConfigButton = require("../../../components/OnlyFLowConfigButton.vue2.js");
34
34
  const FormulaEditorInput = require("../../../components/FormulaEditorInput.vue.js");
35
35
  const index$1 = require("../../../api/index.js");
36
+ const DialogSelect = require("../../../components/DialogSelect.vue.js");
36
37
  ;/* empty css */
37
38
  const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_export-helper.js");
38
39
  const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
@@ -125,9 +126,23 @@ const _sfc_main = {
125
126
  ];
126
127
  });
127
128
  const fieldTypes = vue.computed(() => {
129
+ const fieldTypeArr = [
130
+ "text",
131
+ "textarea",
132
+ "number",
133
+ "date",
134
+ "select",
135
+ "multipleSelection",
136
+ "radio",
137
+ "checkbox",
138
+ "switch"
139
+ ];
128
140
  const basicComponents = index.default.find((c) => c.name === "basic");
129
- const advancedComponents = index.default.find((c) => c.name === "advanced");
130
- return [...basicComponents == null ? void 0 : basicComponents.children, ...advancedComponents == null ? void 0 : advancedComponents.children];
141
+ return [
142
+ ...basicComponents == null ? void 0 : basicComponents.children.filter(
143
+ (item) => fieldTypeArr.includes(item.fieldType)
144
+ )
145
+ ];
131
146
  });
132
147
  function handleFieldTypeChange(fieldType) {
133
148
  const item = currentItem.value;
@@ -604,26 +619,13 @@ const _sfc_main = {
604
619
  ]),
605
620
  vue.createElementVNode("div", _hoisted_4, [
606
621
  _cache[69] || (_cache[69] = vue.createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
607
- vue.createVNode(_component_el_select, {
622
+ vue.createVNode(DialogSelect.default, {
608
623
  modelValue: vue.unref(currentItem).suffixDialogId,
609
624
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => vue.unref(currentItem).suffixDialogId = $event),
610
- placeholder: "请选择弹层",
611
- filterable: "",
612
625
  loading: vue.unref(dialogLoading),
613
- clearable: "",
614
- style: { "width": "100%" }
615
- }, {
616
- default: vue.withCtx(() => [
617
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(dialogOptions), (dialog) => {
618
- return vue.openBlock(), vue.createBlock(_component_el_option, {
619
- key: dialog.id,
620
- label: dialog.name,
621
- value: dialog.id
622
- }, null, 8, ["label", "value"]);
623
- }), 128))
624
- ]),
625
- _: 1
626
- }, 8, ["modelValue", "loading"])
626
+ dialogOptions: vue.unref(dialogOptions),
627
+ isGlobal: vue.unref(currentItem).dialogSource == "global"
628
+ }, null, 8, ["modelValue", "loading", "dialogOptions", "isGlobal"])
627
629
  ]),
628
630
  vue.unref(currentItem).dialogSource == "global" && vue.unref(currentItem).suffixDialogId ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
629
631
  vue.createElementVNode("div", _hoisted_5, [
@@ -1168,5 +1170,5 @@ const _sfc_main = {
1168
1170
  };
1169
1171
  }
1170
1172
  };
1171
- const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ff94357a"]]);
1173
+ const widgets = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-aadaa1e2"]]);
1172
1174
  exports.default = widgets;
@@ -77,6 +77,8 @@ require("../../axios/config.js");
77
77
  require("../../../../_virtual/FileSaver.min.js");
78
78
  require("../../../../_virtual/index.js");
79
79
  ;/* empty css */
80
+ const useDialogDialog = require("../dialog/useDialogDialog.js");
81
+ const useDialogGlobalDialog = require("../dialogGlobal/useDialogGlobalDialog.js");
80
82
  ;/* empty css */
81
83
  ;/* empty css */
82
84
  ;/* empty css */
@@ -103,8 +105,6 @@ require("../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.js
103
105
  const pageEvent = require("../event/pageEvent.vue.js");
104
106
  const useModeDialog = require("../mode/useModeDialog.js");
105
107
  const useJsonDataDrawer = require("../../components/useJsonDataDrawer.js");
106
- const useDialogDialog = require("../dialog/useDialogDialog.js");
107
- const useDialogGlobalDialog = require("../dialogGlobal/useDialogGlobalDialog.js");
108
108
  ;/* empty css */
109
109
  const index = require("../../../../node_modules/element-plus/es/components/icon/index.js");
110
110
  const _hoisted_1 = { class: "header-btns" };