@fecp/designer 5.3.3 → 5.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/designer.css +208 -179
- package/es/packages/designer/package.json.mjs +1 -1
- package/es/packages/designer/src/components/FilterConfigDisplay.vue.mjs +5 -3
- package/es/packages/designer/src/packages/advancedFilter/ValueInput.vue2.mjs +2 -2
- package/es/packages/designer/src/packages/dataLinkage/index.vue.mjs +85 -75
- package/es/packages/designer/src/packages/dialogGlobal/index.vue.mjs +2 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/TableChildRefresh.vue2.mjs +94 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/TableRowDelete.vue2.mjs +54 -0
- package/es/packages/designer/src/packages/eventFlow/dialog/action/config.mjs +12 -1
- package/es/packages/designer/src/packages/form/property/approvalHistory.vue.mjs +18 -18
- package/es/packages/designer/src/packages/form/property/subForm.vue.mjs +18 -18
- package/es/packages/designer/src/packages/form/property/subTable.vue.mjs +17 -17
- package/es/packages/designer/src/packages/formulaEditor/index.vue2.mjs +10 -1
- package/es/packages/designer/src/packages/table/headerBtn.vue.mjs +2 -0
- package/es/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.mjs +12 -5
- package/es/packages/designer/src/packages/table/queryModule/index.vue.mjs +11 -16
- package/es/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.mjs +5 -4
- package/es/packages/vue/src/components/forms/form/Form.vue.mjs +234 -139
- package/es/packages/vue/src/components/forms/formItem/FormItem.vue.mjs +20 -3
- package/es/packages/vue/src/components/forms/subForm/SubForm.vue.mjs +4 -4
- package/es/packages/vue/src/components/forms/subTable/SubTable.vue.mjs +11 -5
- package/es/packages/vue/src/components/table/CustomButtons.vue.mjs +11 -3
- package/es/packages/vue/src/components/table/DynamicQuery.vue.mjs +16 -8
- package/es/packages/vue/src/components/table/Table.vue.mjs +7 -5
- package/es/packages/vue/src/utils/eventFlow/actionHandlers.mjs +86 -5
- package/es/packages/vue/src/utils/parseFilterConfig.mjs +44 -0
- package/lib/designer.css +208 -179
- package/lib/packages/designer/package.json.js +1 -1
- package/lib/packages/designer/src/components/FilterConfigDisplay.vue.js +5 -3
- package/lib/packages/designer/src/packages/advancedFilter/ValueInput.vue2.js +2 -2
- package/lib/packages/designer/src/packages/dataLinkage/index.vue.js +93 -83
- package/lib/packages/designer/src/packages/dialogGlobal/index.vue.js +2 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableChildRefresh.vue2.js +94 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/TableRowDelete.vue2.js +54 -0
- package/lib/packages/designer/src/packages/eventFlow/dialog/action/config.js +12 -1
- package/lib/packages/designer/src/packages/form/property/approvalHistory.vue.js +20 -20
- package/lib/packages/designer/src/packages/form/property/subForm.vue.js +20 -20
- package/lib/packages/designer/src/packages/form/property/subTable.vue.js +19 -19
- package/lib/packages/designer/src/packages/formulaEditor/index.vue2.js +10 -1
- package/lib/packages/designer/src/packages/table/headerBtn.vue.js +2 -0
- package/lib/packages/designer/src/packages/table/queryModule/DynamicModeConfig.vue.js +12 -5
- package/lib/packages/designer/src/packages/table/queryModule/index.vue.js +11 -16
- package/lib/packages/vue/src/components/bus/approvalHistory/ApprovalHistory.vue.js +5 -4
- package/lib/packages/vue/src/components/forms/form/Form.vue.js +232 -137
- package/lib/packages/vue/src/components/forms/formItem/FormItem.vue.js +19 -2
- package/lib/packages/vue/src/components/forms/subForm/SubForm.vue.js +4 -4
- package/lib/packages/vue/src/components/forms/subTable/SubTable.vue.js +11 -5
- package/lib/packages/vue/src/components/table/CustomButtons.vue.js +11 -3
- package/lib/packages/vue/src/components/table/DynamicQuery.vue.js +16 -8
- package/lib/packages/vue/src/components/table/Table.vue.js +7 -5
- package/lib/packages/vue/src/utils/eventFlow/actionHandlers.js +92 -11
- package/lib/packages/vue/src/utils/parseFilterConfig.js +44 -0
- package/package.json +1 -1
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
13
|
/* empty css */
|
|
14
|
-
/* empty css */
|
|
15
14
|
/* empty css */
|
|
16
15
|
/* empty css */
|
|
17
16
|
/* empty css */
|
|
17
|
+
/* empty css */
|
|
18
18
|
import { computed, ref, createBlock, openBlock, unref, isRef, withCtx, createVNode, createElementBlock, createCommentVNode, createTextVNode, Fragment, renderList } from "vue";
|
|
19
19
|
import { getCurrentItem, getEditConfigData } from "../../utils/common.mjs";
|
|
20
20
|
import TemplateSelector from "../../../components/TemplateSelector.vue.mjs";
|
|
@@ -23,8 +23,8 @@ import ParamsConfig from "../../../components/ParamsConfig.vue2.mjs";
|
|
|
23
23
|
import api from "../../../api/index.mjs";
|
|
24
24
|
import { ElCollapse, ElCollapseItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/collapse/index.mjs";
|
|
25
25
|
import { ElForm, ElFormItem } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/form/index.mjs";
|
|
26
|
-
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
27
26
|
import { ElInput } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input/index.mjs";
|
|
27
|
+
import { ElRadioGroup, ElRadioButton } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/radio/index.mjs";
|
|
28
28
|
import { ElSwitch } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/switch/index.mjs";
|
|
29
29
|
import { ElSelect, ElOption } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/select/index.mjs";
|
|
30
30
|
import { ElInputNumber } from "../../../../../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.13_typescript@5.7.3_/node_modules/element-plus/es/components/input-number/index.mjs";
|
|
@@ -64,10 +64,10 @@ const _sfc_main = {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
return (_ctx, _cache) => {
|
|
67
|
+
const _component_el_input = ElInput;
|
|
68
|
+
const _component_el_form_item = ElFormItem;
|
|
67
69
|
const _component_el_radio_button = ElRadioButton;
|
|
68
70
|
const _component_el_radio_group = ElRadioGroup;
|
|
69
|
-
const _component_el_form_item = ElFormItem;
|
|
70
|
-
const _component_el_input = ElInput;
|
|
71
71
|
const _component_el_switch = ElSwitch;
|
|
72
72
|
const _component_el_option = ElOption;
|
|
73
73
|
const _component_el_select = ElSelect;
|
|
@@ -93,11 +93,23 @@ const _sfc_main = {
|
|
|
93
93
|
key: unref(currentItem).id
|
|
94
94
|
}, {
|
|
95
95
|
default: withCtx(() => [
|
|
96
|
+
createVNode(_component_el_form_item, {
|
|
97
|
+
label: "标题",
|
|
98
|
+
required: ""
|
|
99
|
+
}, {
|
|
100
|
+
default: withCtx(() => [
|
|
101
|
+
createVNode(_component_el_input, {
|
|
102
|
+
modelValue: unref(currentItem).label,
|
|
103
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(currentItem).label = $event)
|
|
104
|
+
}, null, 8, ["modelValue"])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}),
|
|
96
108
|
createVNode(_component_el_form_item, { label: "标题模式" }, {
|
|
97
109
|
default: withCtx(() => [
|
|
98
110
|
createVNode(_component_el_radio_group, {
|
|
99
111
|
modelValue: unref(currentItem).titleMode,
|
|
100
|
-
"onUpdate:modelValue": _cache[
|
|
112
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).titleMode = $event),
|
|
101
113
|
size: "small",
|
|
102
114
|
onChange: handleTitleModeChange
|
|
103
115
|
}, {
|
|
@@ -127,18 +139,6 @@ const _sfc_main = {
|
|
|
127
139
|
_: 1
|
|
128
140
|
}),
|
|
129
141
|
unref(currentItem).titleMode != "none" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
130
|
-
createVNode(_component_el_form_item, {
|
|
131
|
-
label: "标题",
|
|
132
|
-
required: ""
|
|
133
|
-
}, {
|
|
134
|
-
default: withCtx(() => [
|
|
135
|
-
createVNode(_component_el_input, {
|
|
136
|
-
modelValue: unref(currentItem).label,
|
|
137
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(currentItem).label = $event)
|
|
138
|
-
}, null, 8, ["modelValue"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
142
|
unref(currentItem).titleMode == "label" ? (openBlock(), createBlock(_component_el_form_item, {
|
|
143
143
|
key: 0,
|
|
144
144
|
label: "副标题"
|
|
@@ -142,6 +142,15 @@ const _sfc_main = {
|
|
|
142
142
|
)) || { error: false };
|
|
143
143
|
validInfo.value = error ? message : "";
|
|
144
144
|
});
|
|
145
|
+
watch(
|
|
146
|
+
() => props.formulaConf,
|
|
147
|
+
(newVal) => {
|
|
148
|
+
if (editorCore.value && newVal) {
|
|
149
|
+
editorCore.value.renderData(newVal);
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{ deep: true }
|
|
153
|
+
);
|
|
145
154
|
const reset = () => {
|
|
146
155
|
var _a;
|
|
147
156
|
currentFormula.value = null;
|
|
@@ -224,7 +233,7 @@ const _sfc_main = {
|
|
|
224
233
|
};
|
|
225
234
|
}
|
|
226
235
|
};
|
|
227
|
-
const FormulaEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
236
|
+
const FormulaEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-432eb74e"]]);
|
|
228
237
|
export {
|
|
229
238
|
FormulaEditor as default
|
|
230
239
|
};
|
|
@@ -51,7 +51,10 @@ const _hoisted_5 = {
|
|
|
51
51
|
class: "tab-display-section"
|
|
52
52
|
};
|
|
53
53
|
const _hoisted_6 = { class: "search-display-section" };
|
|
54
|
-
const _hoisted_7 = {
|
|
54
|
+
const _hoisted_7 = {
|
|
55
|
+
key: 0,
|
|
56
|
+
class: "search-input-group"
|
|
57
|
+
};
|
|
55
58
|
const _hoisted_8 = ["onMouseenter", "onClick"];
|
|
56
59
|
const _hoisted_9 = {
|
|
57
60
|
key: 0,
|
|
@@ -65,6 +68,10 @@ const _sfc_main = {
|
|
|
65
68
|
modelValue: {
|
|
66
69
|
type: Object,
|
|
67
70
|
default: () => ({})
|
|
71
|
+
},
|
|
72
|
+
enabled: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: false
|
|
68
75
|
}
|
|
69
76
|
},
|
|
70
77
|
emits: ["update:modelValue"],
|
|
@@ -272,7 +279,7 @@ const _sfc_main = {
|
|
|
272
279
|
})
|
|
273
280
|
])) : createCommentVNode("", true),
|
|
274
281
|
editConfigData.value.showTitle ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(editConfigData.value.templateName), 1)) : createCommentVNode("", true),
|
|
275
|
-
tabConfigs.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
282
|
+
__props.enabled && tabConfigs.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
276
283
|
createVNode(_component_el_tabs, {
|
|
277
284
|
modelValue: activeTab.value,
|
|
278
285
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeTab.value = $event),
|
|
@@ -291,7 +298,7 @@ const _sfc_main = {
|
|
|
291
298
|
}, 8, ["modelValue"])
|
|
292
299
|
])) : createCommentVNode("", true),
|
|
293
300
|
createElementVNode("div", _hoisted_6, [
|
|
294
|
-
|
|
301
|
+
__props.enabled ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
295
302
|
createVNode(_component_el_input, {
|
|
296
303
|
placeholder: "请输入关键词搜索...",
|
|
297
304
|
class: "search-input",
|
|
@@ -310,7 +317,7 @@ const _sfc_main = {
|
|
|
310
317
|
key: "0"
|
|
311
318
|
} : void 0
|
|
312
319
|
]), 1032, ["prefix-icon"])
|
|
313
|
-
]),
|
|
320
|
+
])) : createCommentVNode("", true),
|
|
314
321
|
createVNode(unref(lo), {
|
|
315
322
|
modelValue: editConfigData.value.customBtns.right,
|
|
316
323
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => editConfigData.value.customBtns.right = $event),
|
|
@@ -486,7 +493,7 @@ const _sfc_main = {
|
|
|
486
493
|
};
|
|
487
494
|
}
|
|
488
495
|
};
|
|
489
|
-
const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
496
|
+
const DynamicModeConfig = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-69373462"]]);
|
|
490
497
|
export {
|
|
491
498
|
DynamicModeConfig as default
|
|
492
499
|
};
|
|
@@ -47,10 +47,6 @@ const _hoisted_5 = { class: "tab-config-list" };
|
|
|
47
47
|
const _hoisted_6 = { class: "drag-handle" };
|
|
48
48
|
const _hoisted_7 = { class: "add-field-label" };
|
|
49
49
|
const _hoisted_8 = { class: "add-field-label" };
|
|
50
|
-
const _hoisted_9 = {
|
|
51
|
-
key: 1,
|
|
52
|
-
class: "empty-state"
|
|
53
|
-
};
|
|
54
50
|
const _sfc_main = {
|
|
55
51
|
__name: "index",
|
|
56
52
|
setup(__props) {
|
|
@@ -539,24 +535,23 @@ const _sfc_main = {
|
|
|
539
535
|
})
|
|
540
536
|
], 64)) : createCommentVNode("", true)
|
|
541
537
|
]),
|
|
542
|
-
queryConfig.value.enabled ? (openBlock(),
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
], 64)) : (openBlock(), createElementBlock("div", _hoisted_9, "未开启筛选功能"))
|
|
538
|
+
queryConfig.value.mode === "fixed" && queryConfig.value.enabled ? (openBlock(), createBlock(FixedModeConfig, {
|
|
539
|
+
key: 0,
|
|
540
|
+
modelValue: queryConfig.value.filterFields,
|
|
541
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => queryConfig.value.filterFields = $event)
|
|
542
|
+
}, null, 8, ["modelValue"])) : queryConfig.value.mode === "dynamic" ? (openBlock(), createBlock(DynamicModeConfig, {
|
|
543
|
+
key: 1,
|
|
544
|
+
modelValue: queryConfig.value.dynamicConfig,
|
|
545
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => queryConfig.value.dynamicConfig = $event),
|
|
546
|
+
enabled: queryConfig.value.enabled
|
|
547
|
+
}, null, 8, ["modelValue", "enabled"])) : createCommentVNode("", true)
|
|
553
548
|
]),
|
|
554
549
|
queryConfig.value.mode === "fixed" ? (openBlock(), createBlock(TableBtn, { key: 0 })) : createCommentVNode("", true)
|
|
555
550
|
], 64);
|
|
556
551
|
};
|
|
557
552
|
}
|
|
558
553
|
};
|
|
559
|
-
const QueryModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
554
|
+
const QueryModule = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-aa46506b"]]);
|
|
560
555
|
export {
|
|
561
556
|
QueryModule as default
|
|
562
557
|
};
|
|
@@ -36,8 +36,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
36
36
|
const traceNo = ref("");
|
|
37
37
|
const formData = inject("formData");
|
|
38
38
|
inject("rowHeight");
|
|
39
|
-
|
|
39
|
+
inject("gridLayout");
|
|
40
40
|
inject("gridLayoutFieldsData");
|
|
41
|
+
const setFormItemHeight = inject("setFormItemHeight");
|
|
41
42
|
const fieldsData = props.localConfig.fieldsData.map((item) => {
|
|
42
43
|
return item.component;
|
|
43
44
|
});
|
|
@@ -63,11 +64,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
63
64
|
const foundItem = props.localConfig.fieldsData.find(
|
|
64
65
|
(item) => item.id == props.config.id
|
|
65
66
|
);
|
|
66
|
-
const titleHeight = config.titleMode != "none" ? 60 : 0;
|
|
67
|
+
const titleHeight = props.config.titleMode != "none" ? 60 : 0;
|
|
67
68
|
if (foundItem) {
|
|
68
69
|
foundItem.fixedH = true;
|
|
69
70
|
foundItem.h = dom.offsetHeight + titleHeight;
|
|
70
|
-
|
|
71
|
+
setFormItemHeight(props.config.id, dom.offsetHeight + titleHeight);
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
return (_ctx, _cache) => {
|
|
@@ -124,7 +125,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign({
|
|
|
124
125
|
};
|
|
125
126
|
}
|
|
126
127
|
});
|
|
127
|
-
const _ApprovalHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
128
|
+
const _ApprovalHistory = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ca0519c9"]]);
|
|
128
129
|
export {
|
|
129
130
|
_ApprovalHistory as default
|
|
130
131
|
};
|