@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
@@ -10,7 +10,7 @@ import "../../../../node_modules/element-plus/theme-chalk/el-tab-pane.css.mjs";
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { useModel, computed, ref, watch, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle } from "vue";
13
+ import { useModel, computed, ref, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle } from "vue";
14
14
  import _sfc_main$1 from "../eventFlow/index.vue.mjs";
15
15
  import defaultProcessData from "../eventFlow/defaultProcessData.mjs";
16
16
  import { getEditConfigData, cloneDeep } from "../utils/common.mjs";
@@ -20,6 +20,7 @@ import { getEditConfigData, cloneDeep } from "../utils/common.mjs";
20
20
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.mjs";
21
21
  import { ElDialog } from "../../../../node_modules/element-plus/es/components/dialog/index.mjs";
22
22
  import { ElContainer, ElAside, ElHeader, ElMain } from "../../../../node_modules/element-plus/es/components/container/index.mjs";
23
+ import { ElIcon } from "../../../../node_modules/element-plus/es/components/icon/index.mjs";
23
24
  import { ElTabs, ElTabPane } from "../../../../node_modules/element-plus/es/components/tabs/index.mjs";
24
25
  import { ElButton } from "../../../../node_modules/element-plus/es/components/button/index.mjs";
25
26
  import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
@@ -94,6 +95,9 @@ const _sfc_main = {
94
95
  throw errors;
95
96
  }
96
97
  };
98
+ const handleRemoveEvent = (index) => {
99
+ pageEvents.value[index].eventFlow = createEventFlow();
100
+ };
97
101
  const onConfirm = async () => {
98
102
  try {
99
103
  if (activeTab.value === "eventFlow") {
@@ -109,6 +113,8 @@ const _sfc_main = {
109
113
  };
110
114
  return (_ctx, _cache) => {
111
115
  const _component_el_header = ElHeader;
116
+ const _component_Delete = resolveComponent("Delete");
117
+ const _component_el_icon = ElIcon;
112
118
  const _component_el_main = ElMain;
113
119
  const _component_el_container = ElContainer;
114
120
  const _component_el_aside = ElAside;
@@ -184,7 +190,16 @@ const _sfc_main = {
184
190
  createElementVNode("span", null, toDisplayString(event.name), 1)
185
191
  ]),
186
192
  createElementVNode("span", _hoisted_4, toDisplayString(event.description), 1)
187
- ])
193
+ ]),
194
+ createVNode(_component_el_icon, {
195
+ class: "delete-icon",
196
+ onClick: ($event) => handleRemoveEvent(index)
197
+ }, {
198
+ default: withCtx(() => [
199
+ createVNode(_component_Delete)
200
+ ]),
201
+ _: 2
202
+ }, 1032, ["onClick"])
188
203
  ])
189
204
  ], 10, _hoisted_1);
190
205
  }), 128))
@@ -253,7 +268,7 @@ const _sfc_main = {
253
268
  };
254
269
  }
255
270
  };
256
- const PageEvent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eb92bfe7"]]);
271
+ const PageEvent = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6bd0ac6f"]]);
257
272
  export {
258
273
  PageEvent as default
259
274
  };
@@ -2,24 +2,18 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  /* empty css */
5
- /* empty css */
6
- /* empty css */
7
- /* empty css */
8
- /* empty css */
9
- /* empty css */
10
- /* empty css */
11
5
  /* empty css */
12
6
  /* empty css */
13
7
  /* empty css */
14
- import { ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, renderList, unref } from "vue";
8
+ import { ref, watch, computed, createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx, createTextVNode, unref } from "vue";
15
9
  import { getEditConfigData } from "../../../utils/common.mjs";
16
10
  import FieldSetMapping from "../../../../components/FieldSetMapping.vue2.mjs";
17
11
  import OnlyFLowConfigButton from "../../../../components/OnlyFLowConfigButton.vue2.mjs";
18
- import _sfc_main$1 from "../../../../components/FormulaEditorInput.vue.mjs";
12
+ import _sfc_main$2 from "../../../../components/FormulaEditorInput.vue.mjs";
19
13
  import api from "../../../../api/index.mjs";
14
+ import _sfc_main$1 from "../../../../components/DialogSelect.vue.mjs";
20
15
  import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
21
16
  import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/element-plus/es/components/radio/index.mjs";
22
- import { ElSelect, ElOption } from "../../../../../../node_modules/element-plus/es/components/select/index.mjs";
23
17
  import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
24
18
  const _sfc_main = {
25
19
  __name: "Dialog",
@@ -120,8 +114,6 @@ const _sfc_main = {
120
114
  const _component_el_radio_button = ElRadioButton;
121
115
  const _component_el_radio_group = ElRadioGroup;
122
116
  const _component_el_form_item = ElFormItem;
123
- const _component_el_option = ElOption;
124
- const _component_el_select = ElSelect;
125
117
  const _component_el_input = ElInput;
126
118
  return openBlock(), createElementBlock(Fragment, null, [
127
119
  createVNode(_component_el_form_item, { label: "弹层来源" }, {
@@ -152,27 +144,15 @@ const _sfc_main = {
152
144
  }),
153
145
  createVNode(_component_el_form_item, { label: "选择弹层" }, {
154
146
  default: withCtx(() => [
155
- createVNode(_component_el_select, {
147
+ createVNode(_sfc_main$1, {
156
148
  modelValue: __props.formData.dialogId,
157
149
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.dialogId = $event),
158
- placeholder: "请选择弹层",
159
- filterable: "",
160
150
  size: "small",
161
151
  loading: loading.value,
162
- clearable: "",
163
- onChange: handleDialogChange
164
- }, {
165
- default: withCtx(() => [
166
- (openBlock(true), createElementBlock(Fragment, null, renderList(dialogOptions.value, (dialog) => {
167
- return openBlock(), createBlock(_component_el_option, {
168
- key: dialog.id,
169
- label: dialog.name,
170
- value: dialog.id
171
- }, null, 8, ["label", "value"]);
172
- }), 128))
173
- ]),
174
- _: 1
175
- }, 8, ["modelValue", "loading"])
152
+ onChange: handleDialogChange,
153
+ dialogOptions: dialogOptions.value,
154
+ isGlobal: __props.formData.dialogSource == "global"
155
+ }, null, 8, ["modelValue", "loading", "dialogOptions", "isGlobal"])
176
156
  ]),
177
157
  _: 1
178
158
  }),
@@ -220,7 +200,7 @@ const _sfc_main = {
220
200
  }),
221
201
  createVNode(_component_el_form_item, { label: "选取后反显格式" }, {
222
202
  default: withCtx(() => [
223
- createVNode(unref(_sfc_main$1), {
203
+ createVNode(unref(_sfc_main$2), {
224
204
  title: "反显格式配置",
225
205
  formulaConf: __props.formData.displayFormat,
226
206
  "onUpdate:formulaConf": _cache[4] || (_cache[4] = ($event) => __props.formData.displayFormat = $event),
@@ -102,6 +102,7 @@ const components = [
102
102
  titleMode: "none",
103
103
  dataSourceFrom: "main",
104
104
  formSource: "select",
105
+ subFormParams: [],
105
106
  ...defaultProperty
106
107
  },
107
108
  {
@@ -3,7 +3,6 @@ import "../../../../../node_modules/element-plus/es/index.mjs";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
- /* empty css */
7
6
  /* empty css */
8
7
  /* empty css */
9
8
  /* empty css */
@@ -14,11 +13,11 @@ import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
14
13
  import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
15
14
  import emitter from "../../utils/eventBus.mjs";
16
15
  import ValueSelector from "../../../components/ValueSelector.vue.mjs";
16
+ import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
17
17
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
18
18
  import { ElForm, ElFormItem } from "../../../../../node_modules/element-plus/es/components/form/index.mjs";
19
19
  import { ElInput } from "../../../../../node_modules/element-plus/es/components/input/index.mjs";
20
20
  import { ElRadioGroup, ElRadioButton } from "../../../../../node_modules/element-plus/es/components/radio/index.mjs";
21
- import { ElSwitch } from "../../../../../node_modules/element-plus/es/components/switch/index.mjs";
22
21
  const _sfc_main = {
23
22
  __name: "subForm",
24
23
  setup(__props) {
@@ -43,7 +42,6 @@ const _sfc_main = {
43
42
  const _component_el_form_item = ElFormItem;
44
43
  const _component_el_radio_button = ElRadioButton;
45
44
  const _component_el_radio_group = ElRadioGroup;
46
- const _component_el_switch = ElSwitch;
47
45
  const _component_el_form = ElForm;
48
46
  const _component_el_collapse_item = ElCollapseItem;
49
47
  const _component_el_collapse = ElCollapse;
@@ -173,10 +171,7 @@ const _sfc_main = {
173
171
  ])),
174
172
  _: 1
175
173
  }),
176
- createVNode(_component_el_radio_button, {
177
- value: "self",
178
- disabled: ""
179
- }, {
174
+ createVNode(_component_el_radio_button, { value: "self" }, {
180
175
  default: withCtx(() => _cache[20] || (_cache[20] = [
181
176
  createTextVNode("子表单自加载")
182
177
  ])),
@@ -188,15 +183,18 @@ const _sfc_main = {
188
183
  ]),
189
184
  _: 1
190
185
  }),
191
- createVNode(_component_el_form_item, { label: "执行子表单全局事件" }, {
186
+ unref(currentItem).dataSourceFrom == "self" ? (openBlock(), createBlock(_component_el_form_item, {
187
+ key: 1,
188
+ label: "表单参数"
189
+ }, {
192
190
  default: withCtx(() => [
193
- createVNode(_component_el_switch, {
194
- modelValue: unref(currentItem).triggerSubFormPageEvent,
195
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(currentItem).triggerSubFormPageEvent = $event)
191
+ createVNode(ParamsConfig, {
192
+ modelValue: unref(currentItem).subFormParams,
193
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => unref(currentItem).subFormParams = $event)
196
194
  }, null, 8, ["modelValue"])
197
195
  ]),
198
196
  _: 1
199
- }),
197
+ })) : createCommentVNode("", true),
200
198
  createVNode(_component_el_form_item, { label: "权限标识" }, {
201
199
  default: withCtx(() => [
202
200
  createVNode(_component_el_input, {
@@ -233,7 +231,7 @@ const _sfc_main = {
233
231
  _: 1
234
232
  }),
235
233
  unref(currentItem).formSource == "select" ? (openBlock(), createBlock(_component_el_form_item, {
236
- key: 1,
234
+ key: 2,
237
235
  label: "选择子表单"
238
236
  }, {
239
237
  default: withCtx(() => [
@@ -249,7 +247,7 @@ const _sfc_main = {
249
247
  ]),
250
248
  _: 1
251
249
  })) : unref(currentItem).formSource == "dynamic" ? (openBlock(), createBlock(_component_el_form_item, {
252
- key: 2,
250
+ key: 3,
253
251
  label: "表单标识"
254
252
  }, {
255
253
  default: withCtx(() => [
@@ -23,14 +23,15 @@ import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
23
23
  import OptionConfig from "../../../components/OptionConfig.vue.mjs";
24
24
  import components from "../aside/index.mjs";
25
25
  import EventConfigButton from "../../../components/EventConfigButton.vue.mjs";
26
- import _sfc_main$2 from "../../../components/DataSourceSelect.vue.mjs";
26
+ import _sfc_main$3 from "../../../components/DataSourceSelect.vue.mjs";
27
27
  import ConditionConfigButton from "../../../components/ConditionConfigButton.vue2.mjs";
28
28
  import DefaultValueEditor from "../components/DefaultValueEditor.vue.mjs";
29
29
  import emitter from "../../utils/eventBus.mjs";
30
30
  import FieldSetMapping from "../../../components/FieldSetMapping.vue2.mjs";
31
31
  import OnlyFLowConfigButton from "../../../components/OnlyFLowConfigButton.vue2.mjs";
32
- import _sfc_main$1 from "../../../components/FormulaEditorInput.vue.mjs";
32
+ import _sfc_main$2 from "../../../components/FormulaEditorInput.vue.mjs";
33
33
  import api from "../../../api/index.mjs";
34
+ import _sfc_main$1 from "../../../components/DialogSelect.vue.mjs";
34
35
  /* empty css */
35
36
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
36
37
  import { ElCollapse, ElCollapseItem } from "../../../../../node_modules/element-plus/es/components/collapse/index.mjs";
@@ -123,9 +124,23 @@ const _sfc_main = {
123
124
  ];
124
125
  });
125
126
  const fieldTypes = computed(() => {
127
+ const fieldTypeArr = [
128
+ "text",
129
+ "textarea",
130
+ "number",
131
+ "date",
132
+ "select",
133
+ "multipleSelection",
134
+ "radio",
135
+ "checkbox",
136
+ "switch"
137
+ ];
126
138
  const basicComponents = components.find((c) => c.name === "basic");
127
- const advancedComponents = components.find((c) => c.name === "advanced");
128
- return [...basicComponents == null ? void 0 : basicComponents.children, ...advancedComponents == null ? void 0 : advancedComponents.children];
139
+ return [
140
+ ...basicComponents == null ? void 0 : basicComponents.children.filter(
141
+ (item) => fieldTypeArr.includes(item.fieldType)
142
+ )
143
+ ];
129
144
  });
130
145
  function handleFieldTypeChange(fieldType) {
131
146
  const item = currentItem.value;
@@ -602,26 +617,13 @@ const _sfc_main = {
602
617
  ]),
603
618
  createElementVNode("div", _hoisted_4, [
604
619
  _cache[69] || (_cache[69] = createElementVNode("span", { class: "field-label" }, "选择弹层", -1)),
605
- createVNode(_component_el_select, {
620
+ createVNode(_sfc_main$1, {
606
621
  modelValue: unref(currentItem).suffixDialogId,
607
622
  "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => unref(currentItem).suffixDialogId = $event),
608
- placeholder: "请选择弹层",
609
- filterable: "",
610
623
  loading: unref(dialogLoading),
611
- clearable: "",
612
- style: { "width": "100%" }
613
- }, {
614
- default: withCtx(() => [
615
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(dialogOptions), (dialog) => {
616
- return openBlock(), createBlock(_component_el_option, {
617
- key: dialog.id,
618
- label: dialog.name,
619
- value: dialog.id
620
- }, null, 8, ["label", "value"]);
621
- }), 128))
622
- ]),
623
- _: 1
624
- }, 8, ["modelValue", "loading"])
624
+ dialogOptions: unref(dialogOptions),
625
+ isGlobal: unref(currentItem).dialogSource == "global"
626
+ }, null, 8, ["modelValue", "loading", "dialogOptions", "isGlobal"])
625
627
  ]),
626
628
  unref(currentItem).dialogSource == "global" && unref(currentItem).suffixDialogId ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
627
629
  createElementVNode("div", _hoisted_5, [
@@ -657,7 +659,7 @@ const _sfc_main = {
657
659
  unref(currentItem).selectionMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
658
660
  createElementVNode("div", _hoisted_6, [
659
661
  _cache[74] || (_cache[74] = createElementVNode("span", { class: "field-label" }, "反显格式", -1)),
660
- createVNode(unref(_sfc_main$1), {
662
+ createVNode(unref(_sfc_main$2), {
661
663
  title: "反显格式配置",
662
664
  formulaConf: unref(currentItem).displayFormat,
663
665
  "onUpdate:formulaConf": _cache[22] || (_cache[22] = ($event) => unref(currentItem).displayFormat = $event),
@@ -828,7 +830,7 @@ const _sfc_main = {
828
830
  unref(currentItem).fieldType === "cascader" ? (openBlock(), createElementBlock(Fragment, { key: 7 }, [
829
831
  createVNode(_component_el_form_item, { label: "数据源" }, {
830
832
  default: withCtx(() => [
831
- createVNode(_sfc_main$2, {
833
+ createVNode(_sfc_main$3, {
832
834
  modelValue: unref(currentItem).optionConfig.dataSourceValue,
833
835
  "onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => unref(currentItem).optionConfig.dataSourceValue = $event)
834
836
  }, null, 8, ["modelValue"])
@@ -1139,7 +1141,7 @@ const _sfc_main = {
1139
1141
  }, null, 8, ["condition", "onConfirm"])
1140
1142
  ])) : createCommentVNode("", true),
1141
1143
  unref(currentItem).validationType === "custom" ? (openBlock(), createElementBlock("div", _hoisted_20, [
1142
- createVNode(_sfc_main$2, {
1144
+ createVNode(_sfc_main$3, {
1143
1145
  modelValue: unref(currentItem).validationDataSource,
1144
1146
  "onUpdate:modelValue": _cache[52] || (_cache[52] = ($event) => unref(currentItem).validationDataSource = $event)
1145
1147
  }, null, 8, ["modelValue"])
@@ -1166,7 +1168,7 @@ const _sfc_main = {
1166
1168
  };
1167
1169
  }
1168
1170
  };
1169
- const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ff94357a"]]);
1171
+ const widgets = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aadaa1e2"]]);
1170
1172
  export {
1171
1173
  widgets as default
1172
1174
  };
@@ -75,6 +75,8 @@ import "../../axios/config.mjs";
75
75
  import "../../../../_virtual/FileSaver.min.mjs";
76
76
  import "../../../../_virtual/index.mjs";
77
77
  /* empty css */
78
+ import { useDialogDialog } from "../dialog/useDialogDialog.mjs";
79
+ import { useDialogGlobalDialog } from "../dialogGlobal/useDialogGlobalDialog.mjs";
78
80
  /* empty css */
79
81
  /* empty css */
80
82
  /* empty css */
@@ -101,8 +103,6 @@ import "../../../../node_modules/element-plus/theme-chalk/el-date-picker.css.mjs
101
103
  import PageEvent from "../event/pageEvent.vue.mjs";
102
104
  import { useModeDialog } from "../mode/useModeDialog.mjs";
103
105
  import { useJsonDataDrawer } from "../../components/useJsonDataDrawer.mjs";
104
- import { useDialogDialog } from "../dialog/useDialogDialog.mjs";
105
- import { useDialogGlobalDialog } from "../dialogGlobal/useDialogGlobalDialog.mjs";
106
106
  /* empty css */
107
107
  import { ElIcon } from "../../../../node_modules/element-plus/es/components/icon/index.mjs";
108
108
  const _hoisted_1 = { class: "header-btns" };