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.
@@ -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,37 +6,37 @@ 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";
16
- import M from "../../api/index.js";
9
+ import { computed as _, ref as g, reactive as F, openBlock as v, createBlock as y, withCtx as a, createElementVNode as r, createVNode as t, unref as m, toDisplayString as D, resolveDynamicComponent as I, isRef as h, createTextVNode as N } from "vue";
10
+ import { UploadFilled as U, Edit as H } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
11
+ import { ElMessage as R } from "element-plus";
12
+ import T from "../../packages/table/headerBtn.vue.js";
13
+ import q from "../../packages/form/headerBtn.vue.js";
14
+ import { getEditConfigData as S } from "../../packages/utils/common.js";
15
+ import z from "../../api/index.js";
16
+ import J from "../../store/index.js";
17
17
  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 = {
18
+ import { ElIcon as M } from "../../../node_modules/element-plus/es/components/icon/index.js";
19
+ import { ElInput as O } from "../../../node_modules/element-plus/es/components/input/index.js";
20
+ import { ElFormItem as $, ElForm as j } from "../../../node_modules/element-plus/es/components/form/index.js";
21
+ import { ElButton as A } from "../../../node_modules/element-plus/es/components/button/index.js";
22
+ import { ElDialog as G } from "../../../node_modules/element-plus/es/components/dialog/index.js";
23
+ import { ElHeader as L } from "../../../node_modules/element-plus/es/components/container/index.js";
24
+ const P = { class: "dev-title" }, Q = { class: "header-title" }, W = { class: "title-row" }, X = { class: "template-name" }, Y = { class: "template-key" }, Z = { class: "opt-btn-content" }, ee = { class: "dialog-footer" }, xe = {
25
25
  __name: "index",
26
- setup(le) {
27
- const V = H(), b = _(() => {
28
- switch (V.getters.editingType) {
26
+ setup(te) {
27
+ const V = _(() => {
28
+ switch (J.getters.editingType) {
29
29
  case "table":
30
- return q;
30
+ return T;
31
31
  case "form":
32
- return z;
32
+ return q;
33
33
  }
34
34
  return null;
35
- }), E = _(() => J()), s = () => E.value || {}, p = g(!1), c = g(null), l = I({
35
+ }), b = _(() => S()), s = () => b.value || {}, p = g(!1), f = g(null), l = F({
36
36
  templateName: "",
37
37
  templateKey: "",
38
38
  templateDesc: ""
39
- }), K = {
39
+ }), E = {
40
40
  templateKey: [{ required: !0, message: "请输入模板标识", trigger: "blur" }],
41
41
  templateName: [
42
42
  { required: !0, message: "请输入模板名称", trigger: "blur" }
@@ -45,13 +45,13 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
45
45
  { max: 200, message: "长度不能超过 200 个字符", trigger: "blur" }
46
46
  ]
47
47
  };
48
- function x() {
48
+ function K() {
49
49
  const o = s();
50
50
  l.templateName = o.templateName || "", l.templateKey = o.templateKey || "", l.templateDesc = o.templateDesc || "", p.value = !0;
51
51
  }
52
- function k() {
52
+ function x() {
53
53
  var o;
54
- (o = c.value) == null || o.validate((e) => {
54
+ (o = f.value) == null || o.validate((e) => {
55
55
  if (e) {
56
56
  const i = s();
57
57
  i.templateName = l.templateName, i.templateKey = l.templateKey, i.templateDesc = l.templateDesc, p.value = !1;
@@ -59,56 +59,56 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
59
59
  return !1;
60
60
  });
61
61
  }
62
- function w() {
62
+ function k() {
63
63
  const o = s(), e = {
64
64
  pkId: o.pkId,
65
65
  templateKey: o.templateKey,
66
66
  templateName: o.templateName,
67
67
  context: JSON.stringify(o)
68
68
  };
69
- M.updateById(e).then(() => {
70
- S.success("保存成功");
69
+ z.updateById(e).then(() => {
70
+ R.success("保存成功");
71
71
  });
72
72
  }
73
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" }, {
74
+ const i = M, d = O, u = $, w = j, c = A, C = G, B = L;
75
+ return v(), y(B, { class: "dev-root-header" }, {
76
76
  default: a(() => [
77
- r("div", Q, [
77
+ r("div", P, [
78
78
  r("div", {
79
79
  class: "btn-item",
80
- onClick: w
80
+ onClick: k
81
81
  }, [
82
82
  t(i, null, {
83
83
  default: a(() => [
84
- t(m(R))
84
+ t(m(U))
85
85
  ]),
86
86
  _: 1
87
87
  }),
88
88
  e[5] || (e[5] = r("span", null, "保存", -1))
89
89
  ])
90
90
  ]),
91
- r("div", W, [
92
- r("div", X, [
93
- r("div", Y, D(s().templateName), 1),
91
+ r("div", Q, [
92
+ r("div", W, [
93
+ r("div", X, D(s().templateName), 1),
94
94
  t(i, {
95
95
  class: "edit-icon",
96
- onClick: x
96
+ onClick: K
97
97
  }, {
98
98
  default: a(() => [
99
- t(m(T))
99
+ t(m(H))
100
100
  ]),
101
101
  _: 1
102
102
  })
103
103
  ]),
104
- r("div", Z, D(s().templateKey), 1)
104
+ r("div", Y, D(s().templateKey), 1)
105
105
  ]),
106
- r("div", ee, [
107
- (v(), y(h(b.value)))
106
+ r("div", Z, [
107
+ (v(), y(I(V.value)))
108
108
  ]),
109
- t(B, {
109
+ t(C, {
110
110
  modelValue: m(p),
111
- "onUpdate:modelValue": e[4] || (e[4] = (n) => U(p) ? p.value = n : null),
111
+ "onUpdate:modelValue": e[4] || (e[4] = (n) => h(p) ? p.value = n : null),
112
112
  title: "编辑模板信息",
113
113
  width: "500px",
114
114
  draggable: "",
@@ -117,8 +117,8 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
117
117
  class: "fec-dev-designer-dialog"
118
118
  }, {
119
119
  footer: a(() => [
120
- r("div", te, [
121
- t(f, {
120
+ r("div", ee, [
121
+ t(c, {
122
122
  onClick: e[3] || (e[3] = (n) => p.value = !1)
123
123
  }, {
124
124
  default: a(() => [...e[6] || (e[6] = [
@@ -126,9 +126,9 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
126
126
  ])]),
127
127
  _: 1
128
128
  }),
129
- t(f, {
129
+ t(c, {
130
130
  type: "primary",
131
- onClick: k
131
+ onClick: x
132
132
  }, {
133
133
  default: a(() => [...e[7] || (e[7] = [
134
134
  N("确定", -1)
@@ -138,11 +138,11 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
138
138
  ])
139
139
  ]),
140
140
  default: a(() => [
141
- t(C, {
141
+ t(w, {
142
142
  model: m(l),
143
- rules: K,
143
+ rules: E,
144
144
  ref_key: "editFormRef",
145
- ref: c,
145
+ ref: f,
146
146
  "label-width": "100px"
147
147
  }, {
148
148
  default: a(() => [
@@ -203,5 +203,5 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
203
203
  }
204
204
  };
205
205
  export {
206
- ke as default
206
+ xe as default
207
207
  };
@@ -7,92 +7,92 @@ 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 m, computed as w, openBlock as u, createBlock as d, withCtx as r, createVNode as o, unref as p, resolveDynamicComponent as D, createElementBlock as E, createTextVNode as N, createCommentVNode as B } from "vue";
11
- import { useStore as T } from "vuex";
12
- import { useRoute as O, useRouter as R } from "vue-router";
13
- import A from "./aside/index.vue.js";
14
- import F from "./header/index.vue.js";
15
- import M from "./property/index.vue.js";
16
- import S from "../packages/table/index.vue.js";
17
- import V from "../packages/form/index.vue.js";
18
- import J from "../../node_modules/element-plus/dist/locale/zh-cn.js";
19
- import { setEditConfigData as v, setSelectedItem as K, setHoverItem as L } 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 P } from "../packages/table/default.js";
22
- import { defaultFormConfig as W } 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 q from "../../_virtual/_plugin-vue_export-helper.js";
25
- import { ElConfigProvider as z } from "../../node_modules/element-plus/es/components/config-provider/index.js";
26
- import { ElMain as H, ElContainer as $ } from "../../node_modules/element-plus/es/components/container/index.js";
27
- import { ElButton as j } from "../../node_modules/element-plus/es/components/button/index.js";
28
- import { ElResult as G } from "../../node_modules/element-plus/es/components/result/index.js";
29
- const Q = {
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
- }, U = {
32
+ }, G = {
33
33
  __name: "index",
34
- setup(X) {
35
- const l = T(), g = O(), k = R(), f = m("table"), c = g.query.pkId, n = m(0), _ = m(null);
36
- function h() {
37
- window.history.length > 1 ? k.back() : window.close();
34
+ setup(Q) {
35
+ const v = B(), g = O(), m = v.query.pkId, n = p(0), u = p(null);
36
+ function k() {
37
+ window.history.length > 1 ? g.back() : window.close();
38
38
  }
39
- c ? y.login4dev().then((i) => {
40
- l.commit("set_token", i.token), l.commit("set_refreshToken", i.refreshToken), y.getById(c).then((e) => {
41
- const s = e.templateName, a = e.templateKey;
42
- if (f.value = e.type, f.value === "table") {
43
- const t = m({
44
- pkId: c,
45
- templateName: s,
46
- templateKey: a,
47
- ...P,
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
+ if (e.type == "table") {
43
+ const t = p({
44
+ pkId: m,
45
+ templateName: l,
46
+ templateKey: c,
47
+ ...K,
48
48
  ...JSON.parse(e.context)
49
49
  });
50
- v(t.value), n.value = 1;
51
- } else if (f.value === "form") {
52
- const t = m({
53
- pkId: c,
54
- templateName: s,
55
- templateKey: a,
56
- ...W,
50
+ d(t.value), n.value = 1;
51
+ } else if (e.type == "form") {
52
+ const t = p({
53
+ pkId: m,
54
+ templateName: l,
55
+ templateKey: c,
56
+ ...L,
57
57
  ...JSON.parse(e.context)
58
58
  });
59
- v(t.value), n.value = 1;
59
+ d(t.value), n.value = 1;
60
60
  }
61
- l.commit("set_editing_type", e.type);
61
+ a.commit("set_editing_type", e.type);
62
62
  });
63
63
  }) : n.value = -1;
64
- const b = w(() => {
65
- switch (l.getters.editingType) {
64
+ const h = b(() => {
65
+ switch (a.getters.editingType) {
66
66
  case "table":
67
- return S;
67
+ return F;
68
68
  case "form":
69
- return V;
69
+ return M;
70
70
  }
71
71
  return null;
72
72
  });
73
- K(null), L(null);
73
+ V(null), J(null);
74
74
  function x(i) {
75
75
  var e;
76
- (e = _.value) == null || e.onFormDragMove(i);
76
+ (e = u.value) == null || e.onFormDragMove(i);
77
77
  }
78
78
  return (i, e) => {
79
- const s = z, a = H, t = $, C = j, I = G;
80
- return n.value == 1 ? (u(), d(t, {
79
+ const l = W, c = q, t = z, C = H, I = $;
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(p(F)),
85
+ o(s(T)),
86
86
  o(t, { class: "inner-container" }, {
87
87
  default: r(() => [
88
- o(p(A), { onOnFormDragMove: x }),
89
- o(a, { class: "root-main" }, {
88
+ o(s(R), { onOnFormDragMove: x }),
89
+ o(c, { class: "root-main" }, {
90
90
  default: r(() => [
91
- o(s, { locale: p(J) }, {
91
+ o(l, { locale: s(S) }, {
92
92
  default: r(() => [
93
- (u(), d(D(b.value), {
93
+ (f(), _(w(h.value), {
94
94
  ref_key: "compRef",
95
- ref: _
95
+ ref: u
96
96
  }, null, 512))
97
97
  ]),
98
98
  _: 1
@@ -100,13 +100,13 @@ const Q = {
100
100
  ]),
101
101
  _: 1
102
102
  }),
103
- o(p(M))
103
+ o(s(A))
104
104
  ]),
105
105
  _: 1
106
106
  })
107
107
  ]),
108
108
  _: 1
109
- })) : n.value == -1 ? (u(), E("div", Q, [
109
+ })) : n.value == -1 ? (f(), D("div", j, [
110
110
  o(I, {
111
111
  icon: "warning",
112
112
  title: "缺少模板ID",
@@ -115,20 +115,20 @@ const Q = {
115
115
  extra: r(() => [
116
116
  o(C, {
117
117
  type: "primary",
118
- onClick: h
118
+ onClick: k
119
119
  }, {
120
120
  default: r(() => [...e[0] || (e[0] = [
121
- N("返回", -1)
121
+ E("返回", -1)
122
122
  ])]),
123
123
  _: 1
124
124
  })
125
125
  ]),
126
126
  _: 1
127
127
  })
128
- ])) : B("", !0);
128
+ ])) : N("", !0);
129
129
  };
130
130
  }
131
- }, De = /* @__PURE__ */ q(U, [["__scopeId", "data-v-9ea74b78"]]);
131
+ }, be = /* @__PURE__ */ P(G, [["__scopeId", "data-v-9f473d85"]]);
132
132
  export {
133
- De as default
133
+ be as default
134
134
  };