fec-dev-designer 1.0.4 → 1.0.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/config-dev.js +7 -5
- package/es/node_modules/@element-plus/icons-vue/dist/index.js +107 -92
- package/es/node_modules/element-plus/es/components/result/index.js +7 -0
- package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
- package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
- package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
- package/es/src/components/OptionConfig.vue.js +1 -1
- package/es/src/components/ValueSelector.vue2.js +30 -24
- package/es/src/components/ValueSelectorPopover.vue2.js +2 -1
- package/es/src/layout/aside/index.vue.js +64 -60
- package/es/src/layout/index.vue.js +91 -54
- package/es/src/packages/dataSource/dataSource.vue.js +122 -118
- package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
- package/es/src/packages/form/aside/index.js +17 -3
- package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +46 -42
- package/es/src/packages/form/default.js +1 -0
- package/es/src/packages/form/formSetting.vue.js +72 -50
- package/es/src/packages/form/index.vue.js +247 -202
- package/es/src/packages/form/property/blank.vue.js +62 -0
- package/es/src/packages/form/property/index.vue.js +21 -20
- package/es/src/packages/form/property/subTable.vue.js +61 -52
- package/es/src/packages/form/property/widgets.vue.js +280 -173
- package/es/src/packages/table/aside/index.js +1 -0
- package/es/src/packages/table/property/widgets.vue.js +96 -85
- package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
- package/es/src/packages/table/tablePagination.vue.js +37 -45
- package/es/src/packages/table/tableSetting.vue.js +12 -13
- package/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import "../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-collapse.css.js";
|
|
3
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-collapse-item.css.js";
|
|
4
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-form.css.js";
|
|
5
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
6
|
+
import "../../../../node_modules/element-plus/theme-chalk/el-input.css.js";
|
|
7
|
+
import { computed as d, ref as f, openBlock as p, createBlock as a, unref as e, isRef as V, withCtx as l, createVNode as r } from "vue";
|
|
8
|
+
import { getCurrentItem as b } from "../../utils/common.js";
|
|
9
|
+
import { ElInput as E } from "../../../../node_modules/element-plus/es/components/input/index.js";
|
|
10
|
+
import { ElFormItem as I, ElForm as k } from "../../../../node_modules/element-plus/es/components/form/index.js";
|
|
11
|
+
import { ElCollapseItem as C, ElCollapse as x } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
|
|
12
|
+
const D = {
|
|
13
|
+
__name: "blank",
|
|
14
|
+
setup(g) {
|
|
15
|
+
const o = d(() => b()), m = f(["common"]);
|
|
16
|
+
return (v, t) => {
|
|
17
|
+
const u = E, i = I, _ = k, c = C, s = x;
|
|
18
|
+
return p(), a(s, {
|
|
19
|
+
class: "setting",
|
|
20
|
+
modelValue: e(m),
|
|
21
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => V(m) ? m.value = n : null)
|
|
22
|
+
}, {
|
|
23
|
+
default: l(() => [
|
|
24
|
+
r(c, {
|
|
25
|
+
name: "common",
|
|
26
|
+
title: "基本属性"
|
|
27
|
+
}, {
|
|
28
|
+
default: l(() => [
|
|
29
|
+
(p(), a(_, {
|
|
30
|
+
"label-position": "top",
|
|
31
|
+
"label-width": "auto",
|
|
32
|
+
model: e(o),
|
|
33
|
+
key: e(o).id
|
|
34
|
+
}, {
|
|
35
|
+
default: l(() => [
|
|
36
|
+
r(i, {
|
|
37
|
+
label: "标题",
|
|
38
|
+
required: ""
|
|
39
|
+
}, {
|
|
40
|
+
default: l(() => [
|
|
41
|
+
r(u, {
|
|
42
|
+
modelValue: e(o).label,
|
|
43
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => e(o).label = n)
|
|
44
|
+
}, null, 8, ["modelValue"])
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["model"]))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
_: 1
|
|
56
|
+
}, 8, ["modelValue"]);
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
D as default
|
|
62
|
+
};
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import "../../../../node_modules/element-plus/theme-chalk/base.css.js";
|
|
2
2
|
import "../../../../node_modules/element-plus/theme-chalk/el-scrollbar.css.js";
|
|
3
|
-
import { computed as
|
|
4
|
-
import { getCurrentItem as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
3
|
+
import { computed as l, openBlock as a, createBlock as f, withCtx as s, resolveDynamicComponent as u, unref as c } from "vue";
|
|
4
|
+
import { getCurrentItem as _ } from "../../utils/common.js";
|
|
5
|
+
import d from "./widgets.vue.js";
|
|
6
|
+
import v from "./pageHeaderBtn.vue.js";
|
|
7
|
+
import y from "./pageFooterBtn.vue.js";
|
|
8
|
+
import b from "./dividerH2.vue.js";
|
|
9
9
|
import g from "./subForm.vue.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
10
|
+
import T from "./subTable.vue.js";
|
|
11
|
+
import $ from "./blank.vue.js";
|
|
12
|
+
import { ElScrollbar as h } from "../../../../node_modules/element-plus/es/components/scrollbar/index.js";
|
|
13
|
+
const q = {
|
|
13
14
|
__name: "index",
|
|
14
|
-
setup(
|
|
15
|
-
const e =
|
|
16
|
-
var t, o, r, n, i;
|
|
15
|
+
setup(w) {
|
|
16
|
+
const e = l(() => _()), p = l(() => {
|
|
17
|
+
var t, o, r, n, i, m;
|
|
17
18
|
switch ((t = e.value) == null ? void 0 : t.type) {
|
|
18
19
|
case "widgets":
|
|
19
|
-
return ((o = e.value) == null ? void 0 : o.fieldType) == "divider" || ((r = e.value) == null ? void 0 : r.fieldType) == "h2" ?
|
|
20
|
+
return ((o = e.value) == null ? void 0 : o.fieldType) == "divider" || ((r = e.value) == null ? void 0 : r.fieldType) == "h2" ? b : ((n = e.value) == null ? void 0 : n.fieldType) == "subForm" ? g : ((i = e.value) == null ? void 0 : i.fieldType) == "subTable" ? T : ((m = e.value) == null ? void 0 : m.fieldType) == "blank" ? $ : d;
|
|
20
21
|
case "pageHeaderBtn":
|
|
21
|
-
return d;
|
|
22
|
-
case "pageFooterBtn":
|
|
23
22
|
return v;
|
|
23
|
+
case "pageFooterBtn":
|
|
24
|
+
return y;
|
|
24
25
|
}
|
|
25
26
|
return null;
|
|
26
27
|
});
|
|
27
28
|
return (t, o) => {
|
|
28
|
-
const r =
|
|
29
|
-
return
|
|
30
|
-
default:
|
|
31
|
-
(
|
|
29
|
+
const r = h;
|
|
30
|
+
return a(), f(r, null, {
|
|
31
|
+
default: s(() => [
|
|
32
|
+
(a(), f(u(c(p))))
|
|
32
33
|
]),
|
|
33
34
|
_: 1
|
|
34
35
|
});
|
|
@@ -36,5 +37,5 @@ const P = {
|
|
|
36
37
|
}
|
|
37
38
|
};
|
|
38
39
|
export {
|
|
39
|
-
|
|
40
|
+
q as default
|
|
40
41
|
};
|
|
@@ -15,9 +15,9 @@ import "../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
|
|
|
15
15
|
import "../../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
|
|
16
16
|
import "../../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
|
|
17
17
|
import "../../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
|
|
18
|
-
import { computed as
|
|
19
|
-
import { getCurrentItem as
|
|
20
|
-
import
|
|
18
|
+
import { computed as v, ref as E, openBlock as r, createBlock as b, unref as o, isRef as B, withCtx as m, createVNode as a, createTextVNode as p, createElementBlock as V, Fragment as T, createCommentVNode as f, renderList as K } from "vue";
|
|
19
|
+
import { getCurrentItem as R, getEditConfigDataFields as z, getEditConfigData as L } from "../../utils/common.js";
|
|
20
|
+
import D from "../../../components/TemplateSelector.vue.js";
|
|
21
21
|
import H from "../../utils/eventBus.js";
|
|
22
22
|
import q from "../../../components/ParamsConfig.vue2.js";
|
|
23
23
|
import G from "../../../api/index.js";
|
|
@@ -28,76 +28,76 @@ import { ElSwitch as X } from "../../../../node_modules/element-plus/es/componen
|
|
|
28
28
|
import { ElOption as Y, ElSelect as Z } from "../../../../node_modules/element-plus/es/components/select/index.js";
|
|
29
29
|
import { ElInputNumber as $ } from "../../../../node_modules/element-plus/es/components/input-number/index.js";
|
|
30
30
|
import { ElCollapseItem as c, ElCollapse as h } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
|
|
31
|
-
const
|
|
31
|
+
const Oe = {
|
|
32
32
|
__name: "subTable",
|
|
33
33
|
setup(ee) {
|
|
34
|
-
var
|
|
35
|
-
const l =
|
|
34
|
+
var U;
|
|
35
|
+
const l = v(() => R()), C = v(() => (z() || []).map((e) => ({
|
|
36
36
|
id: e.id,
|
|
37
37
|
label: e.label,
|
|
38
38
|
fieldName: e.fieldName,
|
|
39
39
|
fieldType: e.fieldType
|
|
40
|
-
}))),
|
|
41
|
-
|
|
42
|
-
y.value = JSON.parse(
|
|
40
|
+
}))), _ = E(["common"]), y = E(null), I = (U = l.value) == null ? void 0 : U.subTableId;
|
|
41
|
+
I && G.getById(I).then((n) => {
|
|
42
|
+
y.value = JSON.parse(n.context);
|
|
43
43
|
});
|
|
44
|
-
function k(
|
|
45
|
-
y.value =
|
|
44
|
+
function k(n) {
|
|
45
|
+
y.value = n, l.subTableMode = null;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
var
|
|
49
|
-
return (
|
|
47
|
+
const S = v(() => {
|
|
48
|
+
var n;
|
|
49
|
+
return (n = y.value) == null ? void 0 : n.mode;
|
|
50
50
|
});
|
|
51
|
-
function
|
|
52
|
-
const e = l.value, d =
|
|
51
|
+
function N(n) {
|
|
52
|
+
const e = l.value, d = L().fieldsData, s = d == null ? void 0 : d.find((u) => {
|
|
53
53
|
var i;
|
|
54
|
-
return ((i =
|
|
54
|
+
return ((i = u.component) == null ? void 0 : i.id) === e.id;
|
|
55
55
|
});
|
|
56
|
-
s && (s.h =
|
|
56
|
+
s && (s.h = n === "none" ? 2 : 3, H.emit("resizeEvent"));
|
|
57
57
|
}
|
|
58
|
-
return (
|
|
59
|
-
const d = J, s = j,
|
|
60
|
-
return r(), b(
|
|
58
|
+
return (n, e) => {
|
|
59
|
+
const d = J, s = j, u = A, i = W, g = X, F = Y, M = Z, x = $, O = Q, P = c, w = h;
|
|
60
|
+
return r(), b(w, {
|
|
61
61
|
class: "setting",
|
|
62
|
-
modelValue: o(
|
|
63
|
-
"onUpdate:modelValue": e[
|
|
62
|
+
modelValue: o(_),
|
|
63
|
+
"onUpdate:modelValue": e[15] || (e[15] = (t) => B(_) ? _.value = t : null)
|
|
64
64
|
}, {
|
|
65
65
|
default: m(() => [
|
|
66
|
-
a(
|
|
66
|
+
a(P, {
|
|
67
67
|
name: "common",
|
|
68
68
|
title: "基本属性"
|
|
69
69
|
}, {
|
|
70
70
|
default: m(() => [
|
|
71
|
-
(r(), b(
|
|
71
|
+
(r(), b(O, {
|
|
72
72
|
"label-position": "top",
|
|
73
73
|
"label-width": "auto",
|
|
74
74
|
model: o(l),
|
|
75
75
|
key: o(l).id
|
|
76
76
|
}, {
|
|
77
77
|
default: m(() => [
|
|
78
|
-
a(
|
|
78
|
+
a(u, { label: "标题模式" }, {
|
|
79
79
|
default: m(() => [
|
|
80
80
|
a(s, {
|
|
81
81
|
modelValue: o(l).titleMode,
|
|
82
82
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => o(l).titleMode = t),
|
|
83
83
|
size: "small",
|
|
84
|
-
onChange:
|
|
84
|
+
onChange: N
|
|
85
85
|
}, {
|
|
86
86
|
default: m(() => [
|
|
87
87
|
a(d, { value: "none" }, {
|
|
88
|
-
default: m(() => [...e[
|
|
88
|
+
default: m(() => [...e[16] || (e[16] = [
|
|
89
89
|
p("无", -1)
|
|
90
90
|
])]),
|
|
91
91
|
_: 1
|
|
92
92
|
}),
|
|
93
93
|
a(d, { value: "label" }, {
|
|
94
|
-
default: m(() => [...e[
|
|
94
|
+
default: m(() => [...e[17] || (e[17] = [
|
|
95
95
|
p("标题", -1)
|
|
96
96
|
])]),
|
|
97
97
|
_: 1
|
|
98
98
|
}),
|
|
99
99
|
a(d, { value: "subLabel" }, {
|
|
100
|
-
default: m(() => [...e[
|
|
100
|
+
default: m(() => [...e[18] || (e[18] = [
|
|
101
101
|
p("子标题", -1)
|
|
102
102
|
])]),
|
|
103
103
|
_: 1
|
|
@@ -108,8 +108,8 @@ const Pe = {
|
|
|
108
108
|
]),
|
|
109
109
|
_: 1
|
|
110
110
|
}),
|
|
111
|
-
o(l).titleMode != "none" ? (r(), V(
|
|
112
|
-
a(
|
|
111
|
+
o(l).titleMode != "none" ? (r(), V(T, { key: 0 }, [
|
|
112
|
+
a(u, {
|
|
113
113
|
label: "标题",
|
|
114
114
|
required: ""
|
|
115
115
|
}, {
|
|
@@ -121,7 +121,7 @@ const Pe = {
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
|
-
o(l).titleMode == "label" ? (r(), b(
|
|
124
|
+
o(l).titleMode == "label" ? (r(), b(u, {
|
|
125
125
|
key: 0,
|
|
126
126
|
label: "副标题"
|
|
127
127
|
}, {
|
|
@@ -137,7 +137,7 @@ const Pe = {
|
|
|
137
137
|
_: 1
|
|
138
138
|
})) : f("", !0)
|
|
139
139
|
], 64)) : f("", !0),
|
|
140
|
-
a(
|
|
140
|
+
a(u, { label: "数据来源" }, {
|
|
141
141
|
default: m(() => [
|
|
142
142
|
a(s, {
|
|
143
143
|
modelValue: o(l).dataSourceFrom,
|
|
@@ -146,13 +146,13 @@ const Pe = {
|
|
|
146
146
|
}, {
|
|
147
147
|
default: m(() => [
|
|
148
148
|
a(d, { value: "main" }, {
|
|
149
|
-
default: m(() => [...e[
|
|
149
|
+
default: m(() => [...e[19] || (e[19] = [
|
|
150
150
|
p("主页面获取", -1)
|
|
151
151
|
])]),
|
|
152
152
|
_: 1
|
|
153
153
|
}),
|
|
154
154
|
a(d, { value: "self" }, {
|
|
155
|
-
default: m(() => [...e[
|
|
155
|
+
default: m(() => [...e[20] || (e[20] = [
|
|
156
156
|
p("子列表自加载", -1)
|
|
157
157
|
])]),
|
|
158
158
|
_: 1
|
|
@@ -163,7 +163,7 @@ const Pe = {
|
|
|
163
163
|
]),
|
|
164
164
|
_: 1
|
|
165
165
|
}),
|
|
166
|
-
o(l).dataSourceFrom == "main" ? (r(), b(
|
|
166
|
+
o(l).dataSourceFrom == "main" ? (r(), b(u, {
|
|
167
167
|
key: 1,
|
|
168
168
|
label: "字段名称"
|
|
169
169
|
}, {
|
|
@@ -176,8 +176,8 @@ const Pe = {
|
|
|
176
176
|
]),
|
|
177
177
|
_: 1
|
|
178
178
|
})) : f("", !0),
|
|
179
|
-
o(l).dataSourceFrom == "self" ? (r(), V(
|
|
180
|
-
a(
|
|
179
|
+
o(l).dataSourceFrom == "self" ? (r(), V(T, { key: 2 }, [
|
|
180
|
+
a(u, { label: "列表参数" }, {
|
|
181
181
|
default: m(() => [
|
|
182
182
|
a(q, {
|
|
183
183
|
modelValue: o(l).subTableParams,
|
|
@@ -187,9 +187,9 @@ const Pe = {
|
|
|
187
187
|
]),
|
|
188
188
|
_: 1
|
|
189
189
|
}),
|
|
190
|
-
a(
|
|
190
|
+
a(u, { label: "参数更新重新加载列表" }, {
|
|
191
191
|
default: m(() => [
|
|
192
|
-
a(
|
|
192
|
+
a(g, {
|
|
193
193
|
modelValue: o(l).reloadOnParamsChange,
|
|
194
194
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => o(l).reloadOnParamsChange = t)
|
|
195
195
|
}, null, 8, ["modelValue"])
|
|
@@ -197,7 +197,7 @@ const Pe = {
|
|
|
197
197
|
_: 1
|
|
198
198
|
})
|
|
199
199
|
], 64)) : f("", !0),
|
|
200
|
-
a(
|
|
200
|
+
a(u, { label: "权限标识" }, {
|
|
201
201
|
default: m(() => [
|
|
202
202
|
a(i, {
|
|
203
203
|
modelValue: o(l).permission,
|
|
@@ -206,9 +206,9 @@ const Pe = {
|
|
|
206
206
|
]),
|
|
207
207
|
_: 1
|
|
208
208
|
}),
|
|
209
|
-
a(
|
|
209
|
+
a(u, { label: "选择子列表" }, {
|
|
210
210
|
default: m(() => [
|
|
211
|
-
a(
|
|
211
|
+
a(D, {
|
|
212
212
|
modelValue: o(l).subTableName,
|
|
213
213
|
"onUpdate:modelValue": e[8] || (e[8] = (t) => o(l).subTableName = t),
|
|
214
214
|
templateKey: o(l).subTableKey,
|
|
@@ -221,8 +221,8 @@ const Pe = {
|
|
|
221
221
|
]),
|
|
222
222
|
_: 1
|
|
223
223
|
}),
|
|
224
|
-
o(l).subTableId ? (r(), V(
|
|
225
|
-
a(
|
|
224
|
+
o(l).subTableId ? (r(), V(T, { key: 3 }, [
|
|
225
|
+
a(u, { label: "列表模式" }, {
|
|
226
226
|
default: m(() => [
|
|
227
227
|
a(M, {
|
|
228
228
|
modelValue: o(l).subTableMode,
|
|
@@ -230,7 +230,7 @@ const Pe = {
|
|
|
230
230
|
clearable: ""
|
|
231
231
|
}, {
|
|
232
232
|
default: m(() => [
|
|
233
|
-
(r(!0), V(
|
|
233
|
+
(r(!0), V(T, null, K(o(S), (t) => (r(), b(F, {
|
|
234
234
|
key: t.key,
|
|
235
235
|
label: t.name,
|
|
236
236
|
value: t.key
|
|
@@ -241,7 +241,7 @@ const Pe = {
|
|
|
241
241
|
]),
|
|
242
242
|
_: 1
|
|
243
243
|
}),
|
|
244
|
-
a(
|
|
244
|
+
a(u, { label: "高度" }, {
|
|
245
245
|
default: m(() => [
|
|
246
246
|
a(x, {
|
|
247
247
|
modelValue: o(l).subTableHeight,
|
|
@@ -251,7 +251,7 @@ const Pe = {
|
|
|
251
251
|
controls: !1,
|
|
252
252
|
style: { width: "100%" }
|
|
253
253
|
}, {
|
|
254
|
-
suffix: m(() => [...e[
|
|
254
|
+
suffix: m(() => [...e[21] || (e[21] = [
|
|
255
255
|
p("px", -1)
|
|
256
256
|
])]),
|
|
257
257
|
_: 1
|
|
@@ -259,14 +259,23 @@ const Pe = {
|
|
|
259
259
|
]),
|
|
260
260
|
_: 1
|
|
261
261
|
}),
|
|
262
|
-
a(
|
|
262
|
+
a(u, { label: "是否翻页" }, {
|
|
263
263
|
default: m(() => [
|
|
264
|
-
a(
|
|
264
|
+
a(g, {
|
|
265
265
|
modelValue: o(l).isSubTablePagination,
|
|
266
266
|
"onUpdate:modelValue": e[13] || (e[13] = (t) => o(l).isSubTablePagination = t)
|
|
267
267
|
}, null, 8, ["modelValue"])
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
|
+
}),
|
|
271
|
+
a(u, { label: "是否只读" }, {
|
|
272
|
+
default: m(() => [
|
|
273
|
+
a(g, {
|
|
274
|
+
modelValue: o(l).isSubTableReadOnly,
|
|
275
|
+
"onUpdate:modelValue": e[14] || (e[14] = (t) => o(l).isSubTableReadOnly = t)
|
|
276
|
+
}, null, 8, ["modelValue"])
|
|
277
|
+
]),
|
|
278
|
+
_: 1
|
|
270
279
|
})
|
|
271
280
|
], 64)) : f("", !0)
|
|
272
281
|
]),
|
|
@@ -282,5 +291,5 @@ const Pe = {
|
|
|
282
291
|
}
|
|
283
292
|
};
|
|
284
293
|
export {
|
|
285
|
-
|
|
294
|
+
Oe as default
|
|
286
295
|
};
|