fec-dev-designer 1.1.2 → 5.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.
Files changed (34) hide show
  1. package/es/package.json.js +66 -0
  2. package/es/src/assets/approvalHistory.png.js +4 -0
  3. package/es/src/assets/logo.png.js +4 -0
  4. package/es/src/components/DataSourceSelect.vue.js +2 -1
  5. package/es/src/components/OptionConfig.vue.js +3 -2
  6. package/es/src/components/OptionConfig.vue2.js +2 -2
  7. package/es/src/components/ParamsConfig.vue.js +2 -2
  8. package/es/src/components/ParamsConfig.vue2.js +31 -32
  9. package/es/src/components/ValueSelector.vue2.js +49 -39
  10. package/es/src/layout/header/index.vue.js +95 -84
  11. package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
  12. package/es/src/packages/dataSource/dataSource.vue.js +98 -105
  13. package/es/src/packages/dialog/index.vue.js +443 -322
  14. package/es/src/packages/event/index.vue2.js +44 -44
  15. package/es/src/packages/event/useEventDialog.js +2 -2
  16. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
  17. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
  18. package/es/src/packages/form/aside/index.js +27 -2
  19. package/es/src/packages/form/aside/roleSelect.js +156 -0
  20. package/es/src/packages/form/aside/userSelect.js +206 -0
  21. package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
  22. package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
  23. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
  24. package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
  25. package/es/src/packages/form/index.vue.js +140 -130
  26. package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
  27. package/es/src/packages/form/property/index.vue.js +23 -22
  28. package/es/src/packages/form/property/subTable.vue.js +37 -43
  29. package/es/src/packages/form/property/widgets.vue.js +258 -202
  30. package/es/src/packages/table/aside/index.js +2 -1
  31. package/es/src/packages/table/default.js +24 -21
  32. package/es/src/packages/table/property/widgets.vue.js +63 -47
  33. package/es/style.css +1 -1
  34. package/package.json +1 -1
@@ -0,0 +1,178 @@
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-input.css.js";
6
+ import "../../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
7
+ import "../../../../node_modules/element-plus/theme-chalk/el-radio.css.js";
8
+ import "../../../../node_modules/element-plus/theme-chalk/el-radio-group.css.js";
9
+ import "../../../../node_modules/element-plus/theme-chalk/el-radio-button.css.js";
10
+ import { computed as g, ref as N, watch as U, openBlock as f, createBlock as _, unref as o, isRef as I, withCtx as a, createVNode as l, createTextVNode as i, createElementBlock as M, Fragment as k, createCommentVNode as b } from "vue";
11
+ import { getCurrentItem as w, getEditConfigData as x } from "../../utils/common.js";
12
+ import z from "../../utils/eventBus.js";
13
+ import F from "../../../components/ValueSelector.vue2.js";
14
+ import { ElRadioButton as y, ElRadioGroup as B } from "../../../../node_modules/element-plus/es/components/radio/index.js";
15
+ import { ElFormItem as D, ElForm as L } from "../../../../node_modules/element-plus/es/components/form/index.js";
16
+ import { ElInput as H } from "../../../../node_modules/element-plus/es/components/input/index.js";
17
+ import { ElCollapseItem as R, ElCollapse as T } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
18
+ const le = {
19
+ __name: "approvalHistory",
20
+ setup(q) {
21
+ const t = g(() => w()), s = N(["common"]);
22
+ U(
23
+ t.value.titleMode,
24
+ (p) => {
25
+ V(p);
26
+ },
27
+ {
28
+ immediate: !0
29
+ }
30
+ );
31
+ function V(p) {
32
+ const e = t.value, n = x().fieldsData, r = n == null ? void 0 : n.find((u) => {
33
+ var d;
34
+ return ((d = u.component) == null ? void 0 : d.id) === e.id;
35
+ });
36
+ r && (r.h = p === "none" ? 2 : 3, z.emit("resizeEvent"));
37
+ }
38
+ return (p, e) => {
39
+ const n = y, r = B, u = D, d = H, v = L, E = R, C = T;
40
+ return f(), _(C, {
41
+ class: "setting",
42
+ modelValue: o(s),
43
+ "onUpdate:modelValue": e[6] || (e[6] = (m) => I(s) ? s.value = m : null)
44
+ }, {
45
+ default: a(() => [
46
+ l(E, {
47
+ name: "common",
48
+ title: "基本属性"
49
+ }, {
50
+ default: a(() => [
51
+ l(v, {
52
+ "label-position": "top",
53
+ "label-width": "auto",
54
+ model: o(t)
55
+ }, {
56
+ default: a(() => [
57
+ l(u, { label: "标题模式" }, {
58
+ default: a(() => [
59
+ l(r, {
60
+ modelValue: o(t).titleMode,
61
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => o(t).titleMode = m),
62
+ size: "small",
63
+ onChange: V
64
+ }, {
65
+ default: a(() => [
66
+ l(n, { value: "none" }, {
67
+ default: a(() => [...e[7] || (e[7] = [
68
+ i("无", -1)
69
+ ])]),
70
+ _: 1
71
+ }),
72
+ l(n, { value: "label" }, {
73
+ default: a(() => [...e[8] || (e[8] = [
74
+ i("标题", -1)
75
+ ])]),
76
+ _: 1
77
+ }),
78
+ l(n, { value: "subLabel" }, {
79
+ default: a(() => [...e[9] || (e[9] = [
80
+ i("子标题", -1)
81
+ ])]),
82
+ _: 1
83
+ })
84
+ ]),
85
+ _: 1
86
+ }, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ o(t).titleMode != "none" ? (f(), M(k, { key: 0 }, [
91
+ l(u, {
92
+ label: "标题",
93
+ required: ""
94
+ }, {
95
+ default: a(() => [
96
+ l(d, {
97
+ modelValue: o(t).label,
98
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => o(t).label = m)
99
+ }, null, 8, ["modelValue"])
100
+ ]),
101
+ _: 1
102
+ }),
103
+ o(t).titleMode == "label" ? (f(), _(u, {
104
+ key: 0,
105
+ label: "副标题"
106
+ }, {
107
+ default: a(() => [
108
+ l(d, {
109
+ modelValue: o(t).subLabel,
110
+ "onUpdate:modelValue": e[2] || (e[2] = (m) => o(t).subLabel = m),
111
+ rows: 2,
112
+ type: "textarea",
113
+ resize: "none"
114
+ }, null, 8, ["modelValue"])
115
+ ]),
116
+ _: 1
117
+ })) : b("", !0)
118
+ ], 64)) : b("", !0),
119
+ l(u, { label: "权限标识" }, {
120
+ default: a(() => [
121
+ l(d, {
122
+ modelValue: o(t).permission,
123
+ "onUpdate:modelValue": e[3] || (e[3] = (m) => o(t).permission = m)
124
+ }, null, 8, ["modelValue"])
125
+ ]),
126
+ _: 1
127
+ }),
128
+ l(u, { label: "业务主键字段" }, {
129
+ default: a(() => [
130
+ l(F, {
131
+ modelValue: o(t).traceNoFieldName,
132
+ "onUpdate:modelValue": e[4] || (e[4] = (m) => o(t).traceNoFieldName = m),
133
+ size: "default"
134
+ }, null, 8, ["modelValue"])
135
+ ]),
136
+ _: 1
137
+ }),
138
+ l(u, { label: "默认显示" }, {
139
+ default: a(() => [
140
+ l(r, {
141
+ modelValue: o(t).appHisDefault,
142
+ "onUpdate:modelValue": e[5] || (e[5] = (m) => o(t).appHisDefault = m),
143
+ size: "small"
144
+ }, {
145
+ default: a(() => [
146
+ l(n, { value: "timeLine" }, {
147
+ default: a(() => [...e[10] || (e[10] = [
148
+ i("时间轴", -1)
149
+ ])]),
150
+ _: 1
151
+ }),
152
+ l(n, { value: "flowChart" }, {
153
+ default: a(() => [...e[11] || (e[11] = [
154
+ i("流程图", -1)
155
+ ])]),
156
+ _: 1
157
+ })
158
+ ]),
159
+ _: 1
160
+ }, 8, ["modelValue"])
161
+ ]),
162
+ _: 1
163
+ })
164
+ ]),
165
+ _: 1
166
+ }, 8, ["model"])
167
+ ]),
168
+ _: 1
169
+ })
170
+ ]),
171
+ _: 1
172
+ }, 8, ["modelValue"]);
173
+ };
174
+ }
175
+ };
176
+ export {
177
+ le as default
178
+ };
@@ -1,35 +1,36 @@
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 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
- import g from "./subForm.vue.js";
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 = {
3
+ import { computed as a, openBlock as f, createBlock as p, withCtx as u, resolveDynamicComponent as c, unref as _ } from "vue";
4
+ import { getCurrentItem as d } from "../../utils/common.js";
5
+ import v from "./widgets.vue.js";
6
+ import y from "./pageHeaderBtn.vue.js";
7
+ import T from "./pageFooterBtn.vue.js";
8
+ import $ from "./dividerH2.vue.js";
9
+ import b from "./subForm.vue.js";
10
+ import g from "./subTable.vue.js";
11
+ import h from "./blank.vue.js";
12
+ import w from "./approvalHistory.vue.js";
13
+ import { ElScrollbar as x } from "../../../../node_modules/element-plus/es/components/scrollbar/index.js";
14
+ const G = {
14
15
  __name: "index",
15
- setup(w) {
16
- const e = l(() => _()), p = l(() => {
17
- var t, o, r, n, i, m;
16
+ setup(B) {
17
+ const e = a(() => d()), s = a(() => {
18
+ var t, o, r, i, n, m, l;
18
19
  switch ((t = e.value) == null ? void 0 : t.type) {
19
20
  case "widgets":
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;
21
+ return ((o = e.value) == null ? void 0 : o.fieldType) == "divider" || ((r = e.value) == null ? void 0 : r.fieldType) == "h2" ? $ : ((i = e.value) == null ? void 0 : i.fieldType) == "subForm" ? b : ((n = e.value) == null ? void 0 : n.fieldType) == "subTable" ? g : ((m = e.value) == null ? void 0 : m.fieldType) == "blank" ? h : ((l = e.value) == null ? void 0 : l.fieldType) == "approvalHistory" ? w : v;
21
22
  case "pageHeaderBtn":
22
- return v;
23
- case "pageFooterBtn":
24
23
  return y;
24
+ case "pageFooterBtn":
25
+ return T;
25
26
  }
26
27
  return null;
27
28
  });
28
29
  return (t, o) => {
29
- const r = h;
30
- return a(), f(r, null, {
31
- default: s(() => [
32
- (a(), f(u(c(p))))
30
+ const r = x;
31
+ return f(), p(r, null, {
32
+ default: u(() => [
33
+ (f(), p(c(_(s))))
33
34
  ]),
34
35
  _: 1
35
36
  });
@@ -37,5 +38,5 @@ const q = {
37
38
  }
38
39
  };
39
40
  export {
40
- q as default
41
+ G as default
41
42
  };
@@ -15,60 +15,55 @@ 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 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
- import H from "../../utils/eventBus.js";
22
- import q from "../../../components/ParamsConfig.vue2.js";
23
- import G from "../../../api/index.js";
24
- import { ElRadioButton as J, ElRadioGroup as j } from "../../../../node_modules/element-plus/es/components/radio/index.js";
25
- import { ElFormItem as A, ElForm as Q } from "../../../../node_modules/element-plus/es/components/form/index.js";
26
- import { ElInput as W } from "../../../../node_modules/element-plus/es/components/input/index.js";
27
- import { ElSwitch as X } from "../../../../node_modules/element-plus/es/components/switch/index.js";
28
- import { ElOption as Y, ElSelect as Z } from "../../../../node_modules/element-plus/es/components/select/index.js";
29
- import { ElInputNumber as $ } from "../../../../node_modules/element-plus/es/components/input-number/index.js";
30
- import { ElCollapseItem as c, ElCollapse as h } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
31
- const Oe = {
18
+ import { computed as v, ref as E, openBlock as r, createBlock as b, unref as o, isRef as w, withCtx as m, createVNode as a, createTextVNode as p, createElementBlock as V, Fragment as _, createCommentVNode as f, renderList as B } from "vue";
19
+ import { getCurrentItem as K, getEditConfigData as R } from "../../utils/common.js";
20
+ import z from "../../../components/TemplateSelector.vue.js";
21
+ import L from "../../utils/eventBus.js";
22
+ import D from "../../../components/ParamsConfig.vue2.js";
23
+ import H from "../../../api/index.js";
24
+ import { ElRadioButton as q, ElRadioGroup as G } from "../../../../node_modules/element-plus/es/components/radio/index.js";
25
+ import { ElFormItem as J, ElForm as j } from "../../../../node_modules/element-plus/es/components/form/index.js";
26
+ import { ElInput as A } from "../../../../node_modules/element-plus/es/components/input/index.js";
27
+ import { ElSwitch as Q } from "../../../../node_modules/element-plus/es/components/switch/index.js";
28
+ import { ElOption as W, ElSelect as X } from "../../../../node_modules/element-plus/es/components/select/index.js";
29
+ import { ElInputNumber as Y } from "../../../../node_modules/element-plus/es/components/input-number/index.js";
30
+ import { ElCollapseItem as Z, ElCollapse as $ } from "../../../../node_modules/element-plus/es/components/collapse/index.js";
31
+ const xe = {
32
32
  __name: "subTable",
33
- setup(ee) {
33
+ setup(c) {
34
34
  var U;
35
- const l = v(() => R()), C = v(() => (z() || []).map((e) => ({
36
- id: e.id,
37
- label: e.label,
38
- fieldName: e.fieldName,
39
- fieldType: e.fieldType
40
- }))), _ = E(["common"]), y = E(null), I = (U = l.value) == null ? void 0 : U.subTableId;
41
- I && G.getById(I).then((n) => {
35
+ const l = v(() => K()), T = E(["common"]), y = E(null), I = (U = l.value) == null ? void 0 : U.subTableId;
36
+ I && H.getById(I).then((n) => {
42
37
  y.value = JSON.parse(n.context);
43
38
  });
44
39
  function k(n) {
45
40
  y.value = n, l.subTableMode = null;
46
41
  }
47
- const S = v(() => {
42
+ const C = v(() => {
48
43
  var n;
49
44
  return (n = y.value) == null ? void 0 : n.mode;
50
45
  });
51
- function N(n) {
52
- const e = l.value, d = L().fieldsData, s = d == null ? void 0 : d.find((u) => {
46
+ function S(n) {
47
+ const e = l.value, d = R().fieldsData, s = d == null ? void 0 : d.find((u) => {
53
48
  var i;
54
49
  return ((i = u.component) == null ? void 0 : i.id) === e.id;
55
50
  });
56
- s && (s.h = n === "none" ? 2 : 3, H.emit("resizeEvent"));
51
+ s && (s.h = n === "none" ? 2 : 3, L.emit("resizeEvent"));
57
52
  }
58
53
  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, {
54
+ const d = q, s = G, u = J, i = A, g = Q, N = W, M = X, x = Y, F = j, O = Z, P = $;
55
+ return r(), b(P, {
61
56
  class: "setting",
62
- modelValue: o(_),
63
- "onUpdate:modelValue": e[15] || (e[15] = (t) => B(_) ? _.value = t : null)
57
+ modelValue: o(T),
58
+ "onUpdate:modelValue": e[15] || (e[15] = (t) => w(T) ? T.value = t : null)
64
59
  }, {
65
60
  default: m(() => [
66
- a(P, {
61
+ a(O, {
67
62
  name: "common",
68
63
  title: "基本属性"
69
64
  }, {
70
65
  default: m(() => [
71
- (r(), b(O, {
66
+ (r(), b(F, {
72
67
  "label-position": "top",
73
68
  "label-width": "auto",
74
69
  model: o(l),
@@ -81,7 +76,7 @@ const Oe = {
81
76
  modelValue: o(l).titleMode,
82
77
  "onUpdate:modelValue": e[0] || (e[0] = (t) => o(l).titleMode = t),
83
78
  size: "small",
84
- onChange: N
79
+ onChange: S
85
80
  }, {
86
81
  default: m(() => [
87
82
  a(d, { value: "none" }, {
@@ -108,7 +103,7 @@ const Oe = {
108
103
  ]),
109
104
  _: 1
110
105
  }),
111
- o(l).titleMode != "none" ? (r(), V(T, { key: 0 }, [
106
+ o(l).titleMode != "none" ? (r(), V(_, { key: 0 }, [
112
107
  a(u, {
113
108
  label: "标题",
114
109
  required: ""
@@ -176,14 +171,13 @@ const Oe = {
176
171
  ]),
177
172
  _: 1
178
173
  })) : f("", !0),
179
- o(l).dataSourceFrom == "self" ? (r(), V(T, { key: 2 }, [
174
+ o(l).dataSourceFrom == "self" ? (r(), V(_, { key: 2 }, [
180
175
  a(u, { label: "列表参数" }, {
181
176
  default: m(() => [
182
- a(q, {
177
+ a(D, {
183
178
  modelValue: o(l).subTableParams,
184
- "onUpdate:modelValue": e[5] || (e[5] = (t) => o(l).subTableParams = t),
185
- "available-fields": o(C)
186
- }, null, 8, ["modelValue", "available-fields"])
179
+ "onUpdate:modelValue": e[5] || (e[5] = (t) => o(l).subTableParams = t)
180
+ }, null, 8, ["modelValue"])
187
181
  ]),
188
182
  _: 1
189
183
  }),
@@ -208,7 +202,7 @@ const Oe = {
208
202
  }),
209
203
  a(u, { label: "选择子列表" }, {
210
204
  default: m(() => [
211
- a(D, {
205
+ a(z, {
212
206
  modelValue: o(l).subTableName,
213
207
  "onUpdate:modelValue": e[8] || (e[8] = (t) => o(l).subTableName = t),
214
208
  templateKey: o(l).subTableKey,
@@ -221,7 +215,7 @@ const Oe = {
221
215
  ]),
222
216
  _: 1
223
217
  }),
224
- o(l).subTableId ? (r(), V(T, { key: 3 }, [
218
+ o(l).subTableId ? (r(), V(_, { key: 3 }, [
225
219
  a(u, { label: "列表模式" }, {
226
220
  default: m(() => [
227
221
  a(M, {
@@ -230,7 +224,7 @@ const Oe = {
230
224
  clearable: ""
231
225
  }, {
232
226
  default: m(() => [
233
- (r(!0), V(T, null, K(o(S), (t) => (r(), b(F, {
227
+ (r(!0), V(_, null, B(o(C), (t) => (r(), b(N, {
234
228
  key: t.key,
235
229
  label: t.name,
236
230
  value: t.key
@@ -291,5 +285,5 @@ const Oe = {
291
285
  }
292
286
  };
293
287
  export {
294
- Oe as default
288
+ xe as default
295
289
  };