fec-dev-designer 1.1.1 → 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
|
|
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
|
|
10
|
-
import { Calendar as
|
|
11
|
-
import { getEditConfigData as C, setSelectedItem as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { throttle as
|
|
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
|
|
19
|
-
import { ElIcon as
|
|
20
|
-
import { ElCollapseItem as
|
|
21
|
-
import { ElBadge as
|
|
22
|
-
import { ElAside as
|
|
23
|
-
const
|
|
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
|
-
},
|
|
26
|
+
}, ie = { class: "widgets" }, re = { class: "field-label" }, de = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "aside-footer"
|
|
29
|
-
},
|
|
29
|
+
}, me = {
|
|
30
30
|
__name: "index",
|
|
31
31
|
emits: ["onFormDragMove"],
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
switch (
|
|
32
|
+
setup(ue, { emit: B }) {
|
|
33
|
+
const T = B, w = u(() => {
|
|
34
|
+
switch (m.getters.editingType) {
|
|
35
35
|
case "table":
|
|
36
|
-
return
|
|
36
|
+
return J;
|
|
37
37
|
case "form":
|
|
38
|
-
return
|
|
38
|
+
return K;
|
|
39
39
|
}
|
|
40
40
|
return null;
|
|
41
|
-
}), V = 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
|
|
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
|
|
58
|
-
|
|
57
|
+
function N(t) {
|
|
58
|
+
G(t.clonedData), m.getters.editingType == "form" && x.emit("onFormDragEnd", t);
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const S = Q((t) => (m.getters.editingType == "form" && T("onFormDragMove", t), !0), 50);
|
|
61
61
|
function U(t) {
|
|
62
|
-
|
|
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 =
|
|
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",
|
|
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),
|
|
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(
|
|
85
|
+
n(d($), {
|
|
86
86
|
modelValue: o.children,
|
|
87
|
-
"onUpdate:modelValue": (
|
|
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:
|
|
92
|
-
onEnd:
|
|
93
|
-
onMove:
|
|
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),
|
|
100
|
-
l("div",
|
|
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(
|
|
103
|
+
n(d(j))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}),
|
|
107
|
-
l("span",
|
|
107
|
+
l("span", se, b(i.label), 1)
|
|
108
108
|
]),
|
|
109
|
-
V.value == "table" ? (s(),
|
|
110
|
-
l("div",
|
|
111
|
-
l("div",
|
|
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(),
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
-
},
|
|
176
|
+
}, Ue = /* @__PURE__ */ W(me, [["__scopeId", "data-v-8edf3b11"]]);
|
|
177
177
|
export {
|
|
178
|
-
|
|
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
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import q from "../../packages/
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
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
|
|
19
|
-
import { ElInput as
|
|
20
|
-
import { ElFormItem as
|
|
21
|
-
import { ElButton as
|
|
22
|
-
import { ElDialog as
|
|
23
|
-
import { ElHeader as
|
|
24
|
-
const
|
|
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(
|
|
27
|
-
const V =
|
|
28
|
-
switch (
|
|
26
|
+
setup(te) {
|
|
27
|
+
const V = _(() => {
|
|
28
|
+
switch (J.getters.editingType) {
|
|
29
29
|
case "table":
|
|
30
|
-
return
|
|
30
|
+
return T;
|
|
31
31
|
case "form":
|
|
32
|
-
return
|
|
32
|
+
return q;
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
|
-
}),
|
|
35
|
+
}), b = _(() => S()), s = () => b.value || {}, p = g(!1), f = g(null), l = F({
|
|
36
36
|
templateName: "",
|
|
37
37
|
templateKey: "",
|
|
38
38
|
templateDesc: ""
|
|
39
|
-
}),
|
|
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
|
|
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
|
|
52
|
+
function x() {
|
|
53
53
|
var o;
|
|
54
|
-
(o =
|
|
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
|
|
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
|
-
|
|
70
|
-
|
|
69
|
+
z.updateById(e).then(() => {
|
|
70
|
+
R.success("保存成功");
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
return (o, e) => {
|
|
74
|
-
const i =
|
|
75
|
-
return v(), y(
|
|
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",
|
|
77
|
+
r("div", P, [
|
|
78
78
|
r("div", {
|
|
79
79
|
class: "btn-item",
|
|
80
|
-
onClick:
|
|
80
|
+
onClick: k
|
|
81
81
|
}, [
|
|
82
82
|
t(i, null, {
|
|
83
83
|
default: a(() => [
|
|
84
|
-
t(m(
|
|
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",
|
|
92
|
-
r("div",
|
|
93
|
-
r("div",
|
|
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:
|
|
96
|
+
onClick: K
|
|
97
97
|
}, {
|
|
98
98
|
default: a(() => [
|
|
99
|
-
t(m(
|
|
99
|
+
t(m(H))
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
})
|
|
103
103
|
]),
|
|
104
|
-
r("div",
|
|
104
|
+
r("div", Y, D(s().templateKey), 1)
|
|
105
105
|
]),
|
|
106
|
-
r("div",
|
|
107
|
-
(v(), y(
|
|
106
|
+
r("div", Z, [
|
|
107
|
+
(v(), y(I(V.value)))
|
|
108
108
|
]),
|
|
109
|
-
t(
|
|
109
|
+
t(C, {
|
|
110
110
|
modelValue: m(p),
|
|
111
|
-
"onUpdate:modelValue": e[4] || (e[4] = (n) =>
|
|
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",
|
|
121
|
-
t(
|
|
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(
|
|
129
|
+
t(c, {
|
|
130
130
|
type: "primary",
|
|
131
|
-
onClick:
|
|
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(
|
|
141
|
+
t(w, {
|
|
142
142
|
model: m(l),
|
|
143
|
-
rules:
|
|
143
|
+
rules: E,
|
|
144
144
|
ref_key: "editFormRef",
|
|
145
|
-
ref:
|
|
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
|
-
|
|
206
|
+
xe as default
|
|
207
207
|
};
|
|
@@ -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
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import T from "./
|
|
14
|
-
import A from "./
|
|
15
|
-
import F from "
|
|
16
|
-
import M from "../packages/
|
|
17
|
-
import S from "
|
|
18
|
-
import
|
|
19
|
-
import { setEditConfigData as d, setSelectedItem as
|
|
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
|
|
22
|
-
import { defaultFormConfig as
|
|
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
|
|
25
|
-
import { ElConfigProvider as
|
|
26
|
-
import { ElMain as
|
|
27
|
-
import { ElButton as
|
|
28
|
-
import { ElResult as
|
|
29
|
-
const
|
|
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
|
-
},
|
|
32
|
+
}, G = {
|
|
33
33
|
__name: "index",
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
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
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
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 =
|
|
44
|
-
pkId:
|
|
45
|
-
templateName:
|
|
46
|
-
templateKey:
|
|
47
|
-
...
|
|
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 =
|
|
53
|
-
pkId:
|
|
54
|
-
templateName:
|
|
55
|
-
templateKey:
|
|
56
|
-
...
|
|
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
|
-
|
|
61
|
+
a.commit("set_editing_type", e.type);
|
|
62
62
|
});
|
|
63
63
|
}) : n.value = -1;
|
|
64
64
|
const h = b(() => {
|
|
65
|
-
switch (
|
|
65
|
+
switch (a.getters.editingType) {
|
|
66
66
|
case "table":
|
|
67
|
-
return
|
|
67
|
+
return F;
|
|
68
68
|
case "form":
|
|
69
|
-
return
|
|
69
|
+
return M;
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
});
|
|
73
|
-
|
|
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
|
|
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(
|
|
85
|
+
o(s(T)),
|
|
86
86
|
o(t, { class: "inner-container" }, {
|
|
87
87
|
default: r(() => [
|
|
88
|
-
o(
|
|
89
|
-
o(
|
|
88
|
+
o(s(R), { onOnFormDragMove: x }),
|
|
89
|
+
o(c, { class: "root-main" }, {
|
|
90
90
|
default: r(() => [
|
|
91
|
-
o(
|
|
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(
|
|
103
|
+
o(s(A))
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
})) : n.value == -1 ? (f(), D("div",
|
|
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
|
-
},
|
|
131
|
+
}, be = /* @__PURE__ */ P(G, [["__scopeId", "data-v-9f473d85"]]);
|
|
132
132
|
export {
|
|
133
|
-
|
|
133
|
+
be as default
|
|
134
134
|
};
|
|
@@ -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
|
};
|