fec-dev-designer 1.1.1 → 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 (37) 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/aside/index.vue.js +51 -51
  11. package/es/src/layout/header/index.vue.js +88 -77
  12. package/es/src/layout/index.vue.js +48 -48
  13. package/es/src/layout/property/index.vue.js +16 -16
  14. package/es/src/packages/advancedFilter/ValueInput.vue2.js +57 -60
  15. package/es/src/packages/dataSource/dataSource.vue.js +98 -105
  16. package/es/src/packages/dialog/index.vue.js +443 -322
  17. package/es/src/packages/event/index.vue2.js +44 -44
  18. package/es/src/packages/event/useEventDialog.js +2 -2
  19. package/es/src/packages/eventFlow/dialog/action/FormSubmit.vue2.js +47 -54
  20. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +42 -49
  21. package/es/src/packages/form/aside/index.js +27 -2
  22. package/es/src/packages/form/aside/roleSelect.js +156 -0
  23. package/es/src/packages/form/aside/userSelect.js +206 -0
  24. package/es/src/packages/form/components/ApprovalHistory.vue.js +73 -0
  25. package/es/src/packages/form/components/ApprovalHistory.vue2.js +4 -0
  26. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +51 -41
  27. package/es/src/packages/form/components/H2Wrapper.vue.js +13 -10
  28. package/es/src/packages/form/index.vue.js +140 -130
  29. package/es/src/packages/form/property/approvalHistory.vue.js +178 -0
  30. package/es/src/packages/form/property/index.vue.js +23 -22
  31. package/es/src/packages/form/property/subTable.vue.js +37 -43
  32. package/es/src/packages/form/property/widgets.vue.js +258 -202
  33. package/es/src/packages/table/aside/index.js +2 -1
  34. package/es/src/packages/table/default.js +24 -21
  35. package/es/src/packages/table/property/widgets.vue.js +63 -47
  36. package/es/style.css +1 -1
  37. package/package.json +1 -1
@@ -3,42 +3,42 @@ import "../../../node_modules/element-plus/theme-chalk/el-aside.css.js";
3
3
  import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
4
4
  import "../../../node_modules/element-plus/theme-chalk/el-collapse.css.js";
5
5
  import "../../../node_modules/element-plus/theme-chalk/el-collapse-item.css.js";
6
- import { computed as u, ref as g, openBlock as s, createBlock as c, withCtx as a, createElementVNode as l, createVNode as n, createElementBlock as d, Fragment as E, renderList as k, unref as m, toDisplayString as b, createCommentVNode as p } from "vue";
7
- import { useStore as $ } from "vuex";
6
+ import { computed as u, ref as g, openBlock as s, createBlock as c, withCtx as a, createElementVNode as l, createVNode as n, createElementBlock as r, Fragment as E, renderList as k, unref as d, toDisplayString as b, createCommentVNode as p } from "vue";
8
7
  import x from "../../packages/utils/eventBus.js";
9
- import { VueDraggable as j } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
10
- import { Calendar as q, DeleteFilled as z, Hide as G } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
11
- import { getEditConfigData as C, setSelectedItem as J } from "../../packages/utils/common.js";
12
- import K from "../../packages/table/aside/index.js";
13
- import O from "../../packages/form/aside/index.js";
14
- import P from "../../packages/form/fieldRecycleBin.vue.js";
15
- import Q from "../../packages/form/HiddenFieldDialog.vue.js";
16
- import { throttle as W } from "../../../node_modules/@vexip-ui/utils/dist/index.js";
8
+ import { VueDraggable as $ } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
9
+ import { Calendar as j, DeleteFilled as q, Hide as z } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
10
+ import { getEditConfigData as C, setSelectedItem as G } from "../../packages/utils/common.js";
11
+ import J from "../../packages/table/aside/index.js";
12
+ import K from "../../packages/form/aside/index.js";
13
+ import O from "../../packages/form/fieldRecycleBin.vue.js";
14
+ import P from "../../packages/form/HiddenFieldDialog.vue.js";
15
+ import { throttle as Q } from "../../../node_modules/@vexip-ui/utils/dist/index.js";
16
+ import m from "../../store/index.js";
17
17
  import "./index.vue2.js";
18
- import X from "../../../_virtual/_plugin-vue_export-helper.js";
19
- import { ElIcon as Y } from "../../../node_modules/element-plus/es/components/icon/index.js";
20
- import { ElCollapseItem as Z, ElCollapse as ee } from "../../../node_modules/element-plus/es/components/collapse/index.js";
21
- import { ElBadge as te } from "../../../node_modules/element-plus/es/components/badge/index.js";
22
- import { ElAside as oe } from "../../../node_modules/element-plus/es/components/container/index.js";
23
- const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, se = { class: "menu-components-item" }, ae = { class: "components-item-label" }, ie = {
18
+ import W from "../../../_virtual/_plugin-vue_export-helper.js";
19
+ import { ElIcon as X } from "../../../node_modules/element-plus/es/components/icon/index.js";
20
+ import { ElCollapseItem as Y, ElCollapse as Z } from "../../../node_modules/element-plus/es/components/collapse/index.js";
21
+ import { ElBadge as ee } from "../../../node_modules/element-plus/es/components/badge/index.js";
22
+ import { ElAside as te } from "../../../node_modules/element-plus/es/components/container/index.js";
23
+ const oe = { class: "dev-designer-aside" }, le = { class: "components-item" }, ne = { class: "menu-components-item" }, se = { class: "components-item-label" }, ae = {
24
24
  key: 0,
25
25
  class: "table-item"
26
- }, re = { class: "widgets" }, de = { class: "field-label" }, me = {
26
+ }, ie = { class: "widgets" }, re = { class: "field-label" }, de = {
27
27
  key: 0,
28
28
  class: "aside-footer"
29
- }, ue = {
29
+ }, me = {
30
30
  __name: "index",
31
31
  emits: ["onFormDragMove"],
32
- setup(ce, { emit: B }) {
33
- const S = B, i = $(), T = u(() => {
34
- switch (i.getters.editingType) {
32
+ setup(ue, { emit: B }) {
33
+ const T = B, w = u(() => {
34
+ switch (m.getters.editingType) {
35
35
  case "table":
36
- return K;
36
+ return J;
37
37
  case "form":
38
- return O;
38
+ return K;
39
39
  }
40
40
  return null;
41
- }), V = u(() => i.getters.editingType), y = g(["basic", "advanced"]), f = g(!1), _ = g(!1), F = u(() => {
41
+ }), V = u(() => m.getters.editingType), y = g(["basic", "advanced"]), f = g(!1), _ = g(!1), F = u(() => {
42
42
  var e;
43
43
  const t = C();
44
44
  return ((e = t == null ? void 0 : t.deletedFields) == null ? void 0 : e.length) || 0;
@@ -47,19 +47,19 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
47
47
  const t = C();
48
48
  return ((e = t == null ? void 0 : t.hiddenFields) == null ? void 0 : e.length) || 0;
49
49
  });
50
- function w(t) {
50
+ function M(t) {
51
51
  return {
52
52
  ...t,
53
53
  id: Date.now(),
54
54
  type: "widgets"
55
55
  };
56
56
  }
57
- function M(t) {
58
- J(t.clonedData), i.getters.editingType == "form" && x.emit("onFormDragEnd", t);
57
+ function N(t) {
58
+ G(t.clonedData), m.getters.editingType == "form" && x.emit("onFormDragEnd", t);
59
59
  }
60
- const N = W((t) => (i.getters.editingType == "form" && S("onFormDragMove", t), !0), 50);
60
+ const S = Q((t) => (m.getters.editingType == "form" && T("onFormDragMove", t), !0), 50);
61
61
  function U(t) {
62
- i.getters.editingType == "form" && x.emit("onFormDragStart", t);
62
+ m.getters.editingType == "form" && x.emit("onFormDragStart", t);
63
63
  }
64
64
  function I() {
65
65
  f.value = !0;
@@ -68,47 +68,47 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
68
68
  _.value = !0;
69
69
  }
70
70
  return (t, e) => {
71
- const v = Y, H = Z, L = ee, D = te, R = oe;
71
+ const v = X, H = Y, L = Z, D = ee, R = te;
72
72
  return s(), c(R, { class: "root-aside" }, {
73
73
  default: a(() => [
74
- l("div", le, [
74
+ l("div", oe, [
75
75
  n(L, {
76
76
  modelValue: y.value,
77
77
  "onUpdate:modelValue": e[0] || (e[0] = (o) => y.value = o)
78
78
  }, {
79
79
  default: a(() => [
80
- (s(!0), d(E, null, k(T.value, (o) => (s(), c(H, {
80
+ (s(!0), r(E, null, k(w.value, (o) => (s(), c(H, {
81
81
  title: o.title,
82
82
  name: o.name
83
83
  }, {
84
84
  default: a(() => [
85
- n(m(j), {
85
+ n(d($), {
86
86
  modelValue: o.children,
87
- "onUpdate:modelValue": (r) => o.children = r,
87
+ "onUpdate:modelValue": (i) => o.children = i,
88
88
  animation: 150,
89
89
  ghostClass: "ghost",
90
90
  group: { name: "dev", pull: "clone", put: !1 },
91
- clone: w,
92
- onEnd: M,
93
- onMove: m(N),
91
+ clone: M,
92
+ onEnd: N,
93
+ onMove: d(S),
94
94
  onStart: U,
95
95
  sort: !1,
96
96
  class: "components-list"
97
97
  }, {
98
98
  default: a(() => [
99
- (s(!0), d(E, null, k(o.children, (r) => (s(), d("div", ne, [
100
- l("div", se, [
99
+ (s(!0), r(E, null, k(o.children, (i) => (s(), r("div", le, [
100
+ l("div", ne, [
101
101
  n(v, { class: "components-item-icon" }, {
102
102
  default: a(() => [
103
- n(m(q))
103
+ n(d(j))
104
104
  ]),
105
105
  _: 1
106
106
  }),
107
- l("span", ae, b(r.label), 1)
107
+ l("span", se, b(i.label), 1)
108
108
  ]),
109
- V.value == "table" ? (s(), d("div", ie, [
110
- l("div", re, b(r.label), 1),
111
- l("div", de, b(r.fieldName), 1)
109
+ V.value == "table" ? (s(), r("div", ae, [
110
+ l("div", ie, b(i.label), 1),
111
+ l("div", re, b(i.fieldName), 1)
112
112
  ])) : p("", !0)
113
113
  ]))), 256))
114
114
  ]),
@@ -121,14 +121,14 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
121
121
  _: 1
122
122
  }, 8, ["modelValue"])
123
123
  ]),
124
- V.value == "form" ? (s(), d("div", me, [
124
+ V.value == "form" ? (s(), r("div", de, [
125
125
  l("div", {
126
126
  class: "footer-btn recycle-btn",
127
127
  onClick: I
128
128
  }, [
129
129
  n(v, { class: "btn-icon" }, {
130
130
  default: a(() => [
131
- n(m(z))
131
+ n(d(q))
132
132
  ]),
133
133
  _: 1
134
134
  }),
@@ -147,7 +147,7 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
147
147
  }, [
148
148
  n(v, { class: "btn-icon" }, {
149
149
  default: a(() => [
150
- n(m(G))
150
+ n(d(z))
151
151
  ]),
152
152
  _: 1
153
153
  }),
@@ -160,11 +160,11 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
160
160
  }, null, 8, ["value"])) : p("", !0)
161
161
  ])
162
162
  ])) : p("", !0),
163
- n(P, {
163
+ n(O, {
164
164
  modelValue: f.value,
165
165
  "onUpdate:modelValue": e[1] || (e[1] = (o) => f.value = o)
166
166
  }, null, 8, ["modelValue"]),
167
- n(Q, {
167
+ n(P, {
168
168
  modelValue: _.value,
169
169
  "onUpdate:modelValue": e[2] || (e[2] = (o) => _.value = o)
170
170
  }, null, 8, ["modelValue"])
@@ -173,7 +173,7 @@ const le = { class: "dev-designer-aside" }, ne = { class: "components-item" }, s
173
173
  });
174
174
  };
175
175
  }
176
- }, Ie = /* @__PURE__ */ X(ue, [["__scopeId", "data-v-4e1d5565"]]);
176
+ }, Ue = /* @__PURE__ */ W(me, [["__scopeId", "data-v-8edf3b11"]]);
177
177
  export {
178
- Ie as default
178
+ Ue as default
179
179
  };
@@ -6,33 +6,35 @@ import "../../../node_modules/element-plus/theme-chalk/el-button.css.js";
6
6
  import "../../../node_modules/element-plus/theme-chalk/el-form.css.js";
7
7
  import "../../../node_modules/element-plus/theme-chalk/el-form-item.css.js";
8
8
  import "../../../node_modules/element-plus/theme-chalk/el-input.css.js";
9
- import { computed as _, ref as g, reactive as I, openBlock as v, createBlock as y, withCtx as a, createElementVNode as r, createVNode as t, unref as m, toDisplayString as D, resolveDynamicComponent as h, isRef as U, createTextVNode as N } from "vue";
10
- import { useStore as H } from "vuex";
11
- import { UploadFilled as R, Edit as T } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
12
- import { ElMessage as S } from "element-plus";
13
- import q from "../../packages/table/headerBtn.vue.js";
14
- import z from "../../packages/form/headerBtn.vue.js";
15
- import { getEditConfigData as J } from "../../packages/utils/common.js";
9
+ import { computed as g, ref as v, reactive as I, openBlock as y, createBlock as D, withCtx as m, createElementVNode as o, toDisplayString as f, unref as r, createVNode as t, resolveDynamicComponent as U, isRef as H, createTextVNode as N } from "vue";
10
+ import R from "../../assets/logo.png.js";
11
+ import { UploadFilled as T, Edit as h } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
12
+ import { ElMessage as q } from "element-plus";
13
+ import J from "../../packages/table/headerBtn.vue.js";
14
+ import S from "../../packages/form/headerBtn.vue.js";
15
+ import { getEditConfigData as z } from "../../packages/utils/common.js";
16
16
  import M from "../../api/index.js";
17
+ import O from "../../store/index.js";
18
+ import $ from "../../../package.json.js";
17
19
  import "./index.vue2.js";
18
- import { ElIcon as O } from "../../../node_modules/element-plus/es/components/icon/index.js";
19
- import { ElInput as $ } from "../../../node_modules/element-plus/es/components/input/index.js";
20
- import { ElFormItem as j, ElForm as A } from "../../../node_modules/element-plus/es/components/form/index.js";
21
- import { ElButton as G } from "../../../node_modules/element-plus/es/components/button/index.js";
22
- import { ElDialog as L } from "../../../node_modules/element-plus/es/components/dialog/index.js";
23
- import { ElHeader as P } from "../../../node_modules/element-plus/es/components/container/index.js";
24
- const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "title-row" }, Y = { class: "template-name" }, Z = { class: "template-key" }, ee = { class: "opt-btn-content" }, te = { class: "dialog-footer" }, ke = {
20
+ import { ElIcon as j } from "../../../node_modules/element-plus/es/components/icon/index.js";
21
+ import { ElInput as A } from "../../../node_modules/element-plus/es/components/input/index.js";
22
+ import { ElFormItem as G, ElForm as L } from "../../../node_modules/element-plus/es/components/form/index.js";
23
+ import { ElButton as P } from "../../../node_modules/element-plus/es/components/button/index.js";
24
+ import { ElDialog as Q } from "../../../node_modules/element-plus/es/components/dialog/index.js";
25
+ import { ElHeader as W } from "../../../node_modules/element-plus/es/components/container/index.js";
26
+ const X = { class: "dev-title" }, Y = { class: "logo" }, Z = { class: "version" }, ee = { class: "header-title" }, te = { class: "title-row" }, le = { class: "template-name" }, oe = { class: "template-key" }, ae = { class: "opt-btn-content" }, me = { class: "dialog-footer" }, Ue = {
25
27
  __name: "index",
26
- setup(le) {
27
- const V = H(), b = _(() => {
28
- switch (V.getters.editingType) {
28
+ setup(re) {
29
+ const V = g(() => {
30
+ switch (O.getters.editingType) {
29
31
  case "table":
30
- return q;
32
+ return J;
31
33
  case "form":
32
- return z;
34
+ return S;
33
35
  }
34
36
  return null;
35
- }), E = _(() => J()), s = () => E.value || {}, p = g(!1), c = g(null), l = I({
37
+ }), b = g(() => z()), E = $.version, p = () => b.value || {}, i = v(!1), c = v(null), l = I({
36
38
  templateName: "",
37
39
  templateKey: "",
38
40
  templateDesc: ""
@@ -45,70 +47,79 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
45
47
  { max: 200, message: "长度不能超过 200 个字符", trigger: "blur" }
46
48
  ]
47
49
  };
48
- function x() {
49
- const o = s();
50
- l.templateName = o.templateName || "", l.templateKey = o.templateKey || "", l.templateDesc = o.templateDesc || "", p.value = !0;
51
- }
52
50
  function k() {
53
- var o;
54
- (o = c.value) == null || o.validate((e) => {
51
+ const a = p();
52
+ l.templateName = a.templateName || "", l.templateKey = a.templateKey || "", l.templateDesc = a.templateDesc || "", i.value = !0;
53
+ }
54
+ function x() {
55
+ var a;
56
+ (a = c.value) == null || a.validate((e) => {
55
57
  if (e) {
56
- const i = s();
57
- i.templateName = l.templateName, i.templateKey = l.templateKey, i.templateDesc = l.templateDesc, p.value = !1;
58
+ const n = p();
59
+ n.templateName = l.templateName, n.templateKey = l.templateKey, n.templateDesc = l.templateDesc, i.value = !1;
58
60
  } else
59
61
  return !1;
60
62
  });
61
63
  }
62
64
  function w() {
63
- const o = s(), e = {
64
- pkId: o.pkId,
65
- templateKey: o.templateKey,
66
- templateName: o.templateName,
67
- context: JSON.stringify(o)
65
+ const a = p(), e = {
66
+ pkId: a.pkId,
67
+ templateKey: a.templateKey,
68
+ templateName: a.templateName,
69
+ context: JSON.stringify(a)
68
70
  };
69
71
  M.updateById(e).then(() => {
70
- S.success("保存成功");
72
+ q.success("保存成功");
71
73
  });
72
74
  }
73
- return (o, e) => {
74
- const i = O, d = $, u = j, C = A, f = G, B = L, F = P;
75
- return v(), y(F, { class: "dev-root-header" }, {
76
- default: a(() => [
77
- r("div", Q, [
78
- r("div", {
75
+ return (a, e) => {
76
+ const n = j, d = A, u = G, C = L, _ = P, B = Q, F = W;
77
+ return y(), D(F, { class: "dev-root-header" }, {
78
+ default: m(() => [
79
+ o("div", X, [
80
+ o("div", Y, [
81
+ e[5] || (e[5] = o("img", {
82
+ src: R,
83
+ alt: "logo",
84
+ class: "logo-img"
85
+ }, null, -1)),
86
+ e[6] || (e[6] = o("div", { class: "title" }, "表单设计器", -1)),
87
+ o("div", Z, "v" + f(r(E)), 1)
88
+ ]),
89
+ o("div", {
79
90
  class: "btn-item",
80
91
  onClick: w
81
92
  }, [
82
- t(i, null, {
83
- default: a(() => [
84
- t(m(R))
93
+ t(n, null, {
94
+ default: m(() => [
95
+ t(r(T))
85
96
  ]),
86
97
  _: 1
87
98
  }),
88
- e[5] || (e[5] = r("span", null, "保存", -1))
99
+ e[7] || (e[7] = o("span", null, "保存", -1))
89
100
  ])
90
101
  ]),
91
- r("div", W, [
92
- r("div", X, [
93
- r("div", Y, D(s().templateName), 1),
94
- t(i, {
102
+ o("div", ee, [
103
+ o("div", te, [
104
+ o("div", le, f(p().templateName), 1),
105
+ t(n, {
95
106
  class: "edit-icon",
96
- onClick: x
107
+ onClick: k
97
108
  }, {
98
- default: a(() => [
99
- t(m(T))
109
+ default: m(() => [
110
+ t(r(h))
100
111
  ]),
101
112
  _: 1
102
113
  })
103
114
  ]),
104
- r("div", Z, D(s().templateKey), 1)
115
+ o("div", oe, f(p().templateKey), 1)
105
116
  ]),
106
- r("div", ee, [
107
- (v(), y(h(b.value)))
117
+ o("div", ae, [
118
+ (y(), D(U(V.value)))
108
119
  ]),
109
120
  t(B, {
110
- modelValue: m(p),
111
- "onUpdate:modelValue": e[4] || (e[4] = (n) => U(p) ? p.value = n : null),
121
+ modelValue: r(i),
122
+ "onUpdate:modelValue": e[4] || (e[4] = (s) => H(i) ? i.value = s : null),
112
123
  title: "编辑模板信息",
113
124
  width: "500px",
114
125
  draggable: "",
@@ -116,44 +127,44 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
116
127
  "append-to-body": "",
117
128
  class: "fec-dev-designer-dialog"
118
129
  }, {
119
- footer: a(() => [
120
- r("div", te, [
121
- t(f, {
122
- onClick: e[3] || (e[3] = (n) => p.value = !1)
130
+ footer: m(() => [
131
+ o("div", me, [
132
+ t(_, {
133
+ onClick: e[3] || (e[3] = (s) => i.value = !1)
123
134
  }, {
124
- default: a(() => [...e[6] || (e[6] = [
135
+ default: m(() => [...e[8] || (e[8] = [
125
136
  N("取消", -1)
126
137
  ])]),
127
138
  _: 1
128
139
  }),
129
- t(f, {
140
+ t(_, {
130
141
  type: "primary",
131
- onClick: k
142
+ onClick: x
132
143
  }, {
133
- default: a(() => [...e[7] || (e[7] = [
144
+ default: m(() => [...e[9] || (e[9] = [
134
145
  N("确定", -1)
135
146
  ])]),
136
147
  _: 1
137
148
  })
138
149
  ])
139
150
  ]),
140
- default: a(() => [
151
+ default: m(() => [
141
152
  t(C, {
142
- model: m(l),
153
+ model: r(l),
143
154
  rules: K,
144
155
  ref_key: "editFormRef",
145
156
  ref: c,
146
157
  "label-width": "100px"
147
158
  }, {
148
- default: a(() => [
159
+ default: m(() => [
149
160
  t(u, {
150
161
  label: "模板标识",
151
162
  prop: "templateKey"
152
163
  }, {
153
- default: a(() => [
164
+ default: m(() => [
154
165
  t(d, {
155
- modelValue: m(l).templateKey,
156
- "onUpdate:modelValue": e[0] || (e[0] = (n) => m(l).templateKey = n),
166
+ modelValue: r(l).templateKey,
167
+ "onUpdate:modelValue": e[0] || (e[0] = (s) => r(l).templateKey = s),
157
168
  placeholder: "请输入模板标识"
158
169
  }, null, 8, ["modelValue"])
159
170
  ]),
@@ -163,10 +174,10 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
163
174
  label: "模板名称",
164
175
  prop: "templateName"
165
176
  }, {
166
- default: a(() => [
177
+ default: m(() => [
167
178
  t(d, {
168
- modelValue: m(l).templateName,
169
- "onUpdate:modelValue": e[1] || (e[1] = (n) => m(l).templateName = n),
179
+ modelValue: r(l).templateName,
180
+ "onUpdate:modelValue": e[1] || (e[1] = (s) => r(l).templateName = s),
170
181
  placeholder: "请输入模板名称"
171
182
  }, null, 8, ["modelValue"])
172
183
  ]),
@@ -176,10 +187,10 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
176
187
  label: "模板描述",
177
188
  prop: "templateDesc"
178
189
  }, {
179
- default: a(() => [
190
+ default: m(() => [
180
191
  t(d, {
181
- modelValue: m(l).templateDesc,
182
- "onUpdate:modelValue": e[2] || (e[2] = (n) => m(l).templateDesc = n),
192
+ modelValue: r(l).templateDesc,
193
+ "onUpdate:modelValue": e[2] || (e[2] = (s) => r(l).templateDesc = s),
183
194
  type: "textarea",
184
195
  rows: 4,
185
196
  placeholder: "请输入模板描述",
@@ -203,5 +214,5 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
203
214
  }
204
215
  };
205
216
  export {
206
- ke as default
217
+ Ue as default
207
218
  };
@@ -7,88 +7,88 @@ import "../../node_modules/element-plus/theme-chalk/el-footer.css.js";
7
7
  import "../../node_modules/element-plus/theme-chalk/el-header.css.js";
8
8
  import "../../node_modules/element-plus/theme-chalk/el-main.css.js";
9
9
  import "../../node_modules/element-plus/theme-chalk/el-config-provider.css.js";
10
- import { ref as s, computed as b, openBlock as f, createBlock as _, withCtx as r, createVNode as o, unref as a, resolveDynamicComponent as w, createElementBlock as D, createTextVNode as E, createCommentVNode as N } from "vue";
11
- import { useStore as B } from "vuex";
12
- import { useRoute as O, useRouter as R } from "vue-router";
13
- import T from "./aside/index.vue.js";
14
- import A from "./header/index.vue.js";
15
- import F from "./property/index.vue.js";
16
- import M from "../packages/table/index.vue.js";
17
- import S from "../packages/form/index.vue.js";
18
- import V from "../../node_modules/element-plus/dist/locale/zh-cn.js";
19
- import { setEditConfigData as d, setSelectedItem as J, setHoverItem as K } from "../packages/utils/common.js";
10
+ import { ref as p, computed as b, openBlock as f, createBlock as _, withCtx as r, createVNode as o, unref as s, resolveDynamicComponent as w, createElementBlock as D, createTextVNode as E, createCommentVNode as N } from "vue";
11
+ import { useRoute as B, useRouter as O } from "vue-router";
12
+ import R from "./aside/index.vue.js";
13
+ import T from "./header/index.vue.js";
14
+ import A from "./property/index.vue.js";
15
+ import F from "../packages/table/index.vue.js";
16
+ import M from "../packages/form/index.vue.js";
17
+ import S from "../../node_modules/element-plus/dist/locale/zh-cn.js";
18
+ import a from "../store/index.js";
19
+ import { setEditConfigData as d, setSelectedItem as V, setHoverItem as J } from "../packages/utils/common.js";
20
20
  import y from "../api/index.js";
21
- import { defaultTableConfig as L } from "../packages/table/default.js";
22
- import { defaultFormConfig as P } from "../packages/form/default.js";
21
+ import { defaultTableConfig as K } from "../packages/table/default.js";
22
+ import { defaultFormConfig as L } from "../packages/form/default.js";
23
23
  import "./index.vue2.js";
24
- import W from "../../_virtual/_plugin-vue_export-helper.js";
25
- import { ElConfigProvider as q } from "../../node_modules/element-plus/es/components/config-provider/index.js";
26
- import { ElMain as z, ElContainer as H } from "../../node_modules/element-plus/es/components/container/index.js";
27
- import { ElButton as $ } from "../../node_modules/element-plus/es/components/button/index.js";
28
- import { ElResult as j } from "../../node_modules/element-plus/es/components/result/index.js";
29
- const G = {
24
+ import P from "../../_virtual/_plugin-vue_export-helper.js";
25
+ import { ElConfigProvider as W } from "../../node_modules/element-plus/es/components/config-provider/index.js";
26
+ import { ElMain as q, ElContainer as z } from "../../node_modules/element-plus/es/components/container/index.js";
27
+ import { ElButton as H } from "../../node_modules/element-plus/es/components/button/index.js";
28
+ import { ElResult as $ } from "../../node_modules/element-plus/es/components/result/index.js";
29
+ const j = {
30
30
  key: 1,
31
31
  class: "init-error-container"
32
- }, Q = {
32
+ }, G = {
33
33
  __name: "index",
34
- setup(U) {
35
- const m = B(), v = O(), g = R(), l = v.query.pkId, n = s(0), u = s(null);
34
+ setup(Q) {
35
+ const v = B(), g = O(), m = v.query.pkId, n = p(0), u = p(null);
36
36
  function k() {
37
37
  window.history.length > 1 ? g.back() : window.close();
38
38
  }
39
- l ? y.login4dev().then((i) => {
40
- m.commit("set_token", i.token), m.commit("set_refreshToken", i.refreshToken), y.getById(l).then((e) => {
41
- const c = e.templateName, p = e.templateKey;
39
+ m ? y.login4dev().then((i) => {
40
+ a.commit("set_token", i.token), a.commit("set_refreshToken", i.refreshToken), y.getById(m).then((e) => {
41
+ const l = e.templateName, c = e.templateKey;
42
42
  if (e.type == "table") {
43
- const t = s({
44
- pkId: l,
45
- templateName: c,
46
- templateKey: p,
47
- ...L,
43
+ const t = p({
44
+ pkId: m,
45
+ templateName: l,
46
+ templateKey: c,
47
+ ...K,
48
48
  ...JSON.parse(e.context)
49
49
  });
50
50
  d(t.value), n.value = 1;
51
51
  } else if (e.type == "form") {
52
- const t = s({
53
- pkId: l,
54
- templateName: c,
55
- templateKey: p,
56
- ...P,
52
+ const t = p({
53
+ pkId: m,
54
+ templateName: l,
55
+ templateKey: c,
56
+ ...L,
57
57
  ...JSON.parse(e.context)
58
58
  });
59
59
  d(t.value), n.value = 1;
60
60
  }
61
- m.commit("set_editing_type", e.type);
61
+ a.commit("set_editing_type", e.type);
62
62
  });
63
63
  }) : n.value = -1;
64
64
  const h = b(() => {
65
- switch (m.getters.editingType) {
65
+ switch (a.getters.editingType) {
66
66
  case "table":
67
- return M;
67
+ return F;
68
68
  case "form":
69
- return S;
69
+ return M;
70
70
  }
71
71
  return null;
72
72
  });
73
- J(null), K(null);
73
+ V(null), J(null);
74
74
  function x(i) {
75
75
  var e;
76
76
  (e = u.value) == null || e.onFormDragMove(i);
77
77
  }
78
78
  return (i, e) => {
79
- const c = q, p = z, t = H, C = $, I = j;
79
+ const l = W, c = q, t = z, C = H, I = $;
80
80
  return n.value == 1 ? (f(), _(t, {
81
81
  key: 0,
82
82
  style: { "flex-direction": "column", height: "100%" }
83
83
  }, {
84
84
  default: r(() => [
85
- o(a(A)),
85
+ o(s(T)),
86
86
  o(t, { class: "inner-container" }, {
87
87
  default: r(() => [
88
- o(a(T), { onOnFormDragMove: x }),
89
- o(p, { class: "root-main" }, {
88
+ o(s(R), { onOnFormDragMove: x }),
89
+ o(c, { class: "root-main" }, {
90
90
  default: r(() => [
91
- o(c, { locale: a(V) }, {
91
+ o(l, { locale: s(S) }, {
92
92
  default: r(() => [
93
93
  (f(), _(w(h.value), {
94
94
  ref_key: "compRef",
@@ -100,13 +100,13 @@ const G = {
100
100
  ]),
101
101
  _: 1
102
102
  }),
103
- o(a(F))
103
+ o(s(A))
104
104
  ]),
105
105
  _: 1
106
106
  })
107
107
  ]),
108
108
  _: 1
109
- })) : n.value == -1 ? (f(), D("div", G, [
109
+ })) : n.value == -1 ? (f(), D("div", j, [
110
110
  o(I, {
111
111
  icon: "warning",
112
112
  title: "缺少模板ID",
@@ -128,7 +128,7 @@ const G = {
128
128
  ])) : N("", !0);
129
129
  };
130
130
  }
131
- }, we = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-c751811d"]]);
131
+ }, be = /* @__PURE__ */ P(G, [["__scopeId", "data-v-9f473d85"]]);
132
132
  export {
133
- we as default
133
+ be as default
134
134
  };