fec-dev-designer 1.1.0 → 1.1.2
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/src/layout/aside/index.vue.js +51 -51
- package/es/src/layout/header/index.vue.js +51 -51
- package/es/src/layout/index.vue.js +62 -62
- package/es/src/layout/property/index.vue.js +16 -16
- package/es/src/packages/eventFlow/dialog/action/FormSetValue.vue2.js +18 -16
- package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +54 -48
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +1 -1
- package/es/src/store/designer.js +1 -1
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import "../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../node_modules/element-plus/theme-chalk/el-aside.css.js";
|
|
3
|
-
import { computed as
|
|
4
|
-
import
|
|
5
|
-
import i from "../../packages/
|
|
6
|
-
import
|
|
3
|
+
import { computed as m, openBlock as t, createBlock as o, withCtx as p, resolveDynamicComponent as c } from "vue";
|
|
4
|
+
import n from "../../packages/table/property/index.vue.js";
|
|
5
|
+
import i from "../../packages/form/property/index.vue.js";
|
|
6
|
+
import s from "../../store/index.js";
|
|
7
7
|
import "./index.vue2.js";
|
|
8
8
|
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
-
import { ElAside as
|
|
10
|
-
const
|
|
9
|
+
import { ElAside as _ } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
10
|
+
const f = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(l) {
|
|
13
|
-
const r =
|
|
14
|
-
switch (
|
|
13
|
+
const r = m(() => {
|
|
14
|
+
switch (s.getters.editingType) {
|
|
15
15
|
case "table":
|
|
16
|
-
return
|
|
16
|
+
return n;
|
|
17
17
|
case "form":
|
|
18
|
-
return
|
|
18
|
+
return i;
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
23
|
-
const
|
|
24
|
-
return t(), o(
|
|
22
|
+
return (u, d) => {
|
|
23
|
+
const e = _;
|
|
24
|
+
return t(), o(e, { class: "root-property" }, {
|
|
25
25
|
default: p(() => [
|
|
26
|
-
(t(), o(
|
|
26
|
+
(t(), o(c(r.value)))
|
|
27
27
|
]),
|
|
28
28
|
_: 1
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, P = /* @__PURE__ */ a(f, [["__scopeId", "data-v-e88c3a83"]]);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
P as default
|
|
35
35
|
};
|
|
@@ -1,43 +1,45 @@
|
|
|
1
1
|
import "../../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
3
|
-
import { openBlock as
|
|
3
|
+
import { openBlock as d, createElementBlock as n, Fragment as i, createVNode as o, withCtx as m, createElementVNode as r } from "vue";
|
|
4
4
|
import f from "../../../../components/DataSourceSelect.vue.js";
|
|
5
5
|
import u from "../../../../components/FieldMapping.vue2.js";
|
|
6
6
|
import "./FormSetValue.vue.js";
|
|
7
7
|
import p from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
import { ElFormItem as c } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
9
|
-
const s = {
|
|
9
|
+
const s = { class: "desc-content" }, V = {
|
|
10
10
|
__name: "FormSetValue",
|
|
11
11
|
props: {
|
|
12
12
|
formData: Object
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (
|
|
14
|
+
setup(t) {
|
|
15
|
+
return (_, e) => {
|
|
16
16
|
const l = c;
|
|
17
|
-
return
|
|
18
|
-
|
|
17
|
+
return d(), n(i, null, [
|
|
18
|
+
o(l, { label: "选择数据源" }, {
|
|
19
19
|
default: m(() => [
|
|
20
|
-
|
|
21
|
-
modelValue:
|
|
22
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
20
|
+
o(f, {
|
|
21
|
+
modelValue: t.formData.dataSourceId,
|
|
22
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => t.formData.dataSourceId = a)
|
|
23
23
|
}, null, 8, ["modelValue"])
|
|
24
24
|
]),
|
|
25
25
|
_: 1
|
|
26
26
|
}),
|
|
27
|
-
|
|
27
|
+
o(l, { label: "字段映射" }, {
|
|
28
28
|
default: m(() => [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
r("div", s, [
|
|
30
|
+
e[2] || (e[2] = r("div", { class: "condition-desc" }, " 当返回的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
|
|
31
|
+
o(u, {
|
|
32
|
+
modelValue: t.formData.fieldMapping,
|
|
33
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => t.formData.fieldMapping = a)
|
|
34
|
+
}, null, 8, ["modelValue"])
|
|
35
|
+
])
|
|
34
36
|
]),
|
|
35
37
|
_: 1
|
|
36
38
|
})
|
|
37
39
|
], 64);
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
|
-
}, E = /* @__PURE__ */ p(
|
|
42
|
+
}, E = /* @__PURE__ */ p(V, [["__scopeId", "data-v-52671c1b"]]);
|
|
41
43
|
export {
|
|
42
44
|
E as default
|
|
43
45
|
};
|
|
@@ -1,84 +1,90 @@
|
|
|
1
1
|
import "../../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
3
3
|
import "../../../../../node_modules/element-plus/theme-chalk/el-switch.css.js";
|
|
4
|
-
import { computed as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { getEditConfigDataFields as
|
|
4
|
+
import { computed as f, openBlock as s, createElementBlock as u, Fragment as V, createVNode as o, withCtx as m, createElementVNode as a, unref as p } from "vue";
|
|
5
|
+
import c from "../../../../components/DataSourceSelect.vue.js";
|
|
6
|
+
import b from "../../../../components/FieldMapping.vue2.js";
|
|
7
|
+
import D from "../../../../components/ParamsConfig.vue2.js";
|
|
8
|
+
import { getEditConfigDataFields as v } from "../../../utils/common.js";
|
|
9
9
|
import "./FormSubmit.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import { ElSwitch as
|
|
12
|
-
import { ElFormItem as
|
|
13
|
-
const E = {
|
|
10
|
+
import F from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
import { ElSwitch as g } from "../../../../../node_modules/element-plus/es/components/switch/index.js";
|
|
12
|
+
import { ElFormItem as x } from "../../../../../node_modules/element-plus/es/components/form/index.js";
|
|
13
|
+
const E = { class: "desc-content" }, S = { class: "desc-content" }, U = { class: "desc-content" }, w = {
|
|
14
14
|
__name: "FormSubmit",
|
|
15
15
|
props: {
|
|
16
16
|
formData: Object
|
|
17
17
|
},
|
|
18
|
-
setup(
|
|
19
|
-
const
|
|
20
|
-
id:
|
|
21
|
-
label:
|
|
22
|
-
fieldName:
|
|
23
|
-
fieldType:
|
|
18
|
+
setup(l) {
|
|
19
|
+
const r = f(() => (v() || []).map((e) => ({
|
|
20
|
+
id: e.id,
|
|
21
|
+
label: e.label,
|
|
22
|
+
fieldName: e.fieldName,
|
|
23
|
+
fieldType: e.fieldType
|
|
24
24
|
})));
|
|
25
|
-
return (
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
|
|
25
|
+
return (n, e) => {
|
|
26
|
+
const i = g, d = x;
|
|
27
|
+
return s(), u(V, null, [
|
|
28
|
+
o(d, { label: "表单校验" }, {
|
|
29
29
|
default: m(() => [
|
|
30
|
-
|
|
31
|
-
modelValue:
|
|
32
|
-
"onUpdate:modelValue":
|
|
30
|
+
o(i, {
|
|
31
|
+
modelValue: l.formData.formValidate,
|
|
32
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => l.formData.formValidate = t)
|
|
33
33
|
}, null, 8, ["modelValue"])
|
|
34
34
|
]),
|
|
35
35
|
_: 1
|
|
36
36
|
}),
|
|
37
|
-
|
|
37
|
+
o(d, { label: "选择数据源" }, {
|
|
38
38
|
default: m(() => [
|
|
39
|
-
|
|
40
|
-
modelValue:
|
|
41
|
-
"onUpdate:modelValue":
|
|
39
|
+
o(c, {
|
|
40
|
+
modelValue: l.formData.dataSourceId,
|
|
41
|
+
"onUpdate:modelValue": e[1] || (e[1] = (t) => l.formData.dataSourceId = t)
|
|
42
42
|
}, null, 8, ["modelValue"])
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
45
|
}),
|
|
46
|
-
|
|
46
|
+
o(d, { label: "扩展参数" }, {
|
|
47
47
|
default: m(() => [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
a("div", E, [
|
|
49
|
+
e[5] || (e[5] = a("div", { class: "condition-desc" }, " 配置额外的请求参数,用于补充表单上没有的字段。 ", -1)),
|
|
50
|
+
o(D, {
|
|
51
|
+
modelValue: l.formData.extraParams,
|
|
52
|
+
"onUpdate:modelValue": e[2] || (e[2] = (t) => l.formData.extraParams = t),
|
|
53
|
+
"available-fields": p(r)
|
|
54
|
+
}, null, 8, ["modelValue", "available-fields"])
|
|
55
|
+
])
|
|
54
56
|
]),
|
|
55
57
|
_: 1
|
|
56
58
|
}),
|
|
57
|
-
|
|
59
|
+
o(d, { label: "字段映射" }, {
|
|
58
60
|
default: m(() => [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
a("div", S, [
|
|
62
|
+
e[6] || (e[6] = a("div", { class: "condition-desc" }, " 当提交的字段与表单字段不一致时,可通过此配置进行映射。 ", -1)),
|
|
63
|
+
o(b, {
|
|
64
|
+
modelValue: l.formData.fieldMapping,
|
|
65
|
+
"onUpdate:modelValue": e[3] || (e[3] = (t) => l.formData.fieldMapping = t)
|
|
66
|
+
}, null, 8, ["modelValue"])
|
|
67
|
+
])
|
|
64
68
|
]),
|
|
65
69
|
_: 1
|
|
66
70
|
}),
|
|
67
|
-
|
|
71
|
+
o(d, { label: "赋值表单" }, {
|
|
68
72
|
default: m(() => [
|
|
69
|
-
a(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
a("div", U, [
|
|
74
|
+
o(i, {
|
|
75
|
+
modelValue: l.formData.returnToForm,
|
|
76
|
+
"onUpdate:modelValue": e[4] || (e[4] = (t) => l.formData.returnToForm = t),
|
|
77
|
+
style: { width: "100%" }
|
|
78
|
+
}, null, 8, ["modelValue"]),
|
|
79
|
+
e[7] || (e[7] = a("div", { class: "condition-desc" }, " 当开启后,将返回的数据赋值到表单字段及隐藏域中。 ", -1))
|
|
80
|
+
])
|
|
75
81
|
]),
|
|
76
82
|
_: 1
|
|
77
83
|
})
|
|
78
84
|
], 64);
|
|
79
85
|
};
|
|
80
86
|
}
|
|
81
|
-
},
|
|
87
|
+
}, q = /* @__PURE__ */ F(w, [["__scopeId", "data-v-24a7b471"]]);
|
|
82
88
|
export {
|
|
83
|
-
|
|
89
|
+
q as default
|
|
84
90
|
};
|
|
@@ -212,7 +212,7 @@ const re = { class: "fixed-mode-config" }, de = { class: "filter-form-section" }
|
|
|
212
212
|
]);
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-
|
|
215
|
+
}, Oe = /* @__PURE__ */ ee(ue, [["__scopeId", "data-v-d6b0cd25"]]);
|
|
216
216
|
export {
|
|
217
217
|
Oe as default
|
|
218
218
|
};
|
package/es/src/store/designer.js
CHANGED