fec-dev-designer 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/index.js +6 -4
- package/es/src/layout/aside/index.vue.js +80 -80
- package/es/src/layout/header/index.vue.js +16 -16
- package/es/src/layout/index.vue.js +38 -38
- package/es/src/layout/property/index.vue.js +13 -13
- package/es/src/store/designer.js +40 -0
- package/es/src/store/index.js +12 -39
- package/es/style.css +1 -1
- package/package.json +1 -1
- package/es/node_modules/@vue/devtools-api/lib/esm/const.js +0 -5
- package/es/node_modules/@vue/devtools-api/lib/esm/env.js +0 -12
- package/es/node_modules/@vue/devtools-api/lib/esm/index.js +0 -19
- package/es/node_modules/@vue/devtools-api/lib/esm/proxy.js +0 -67
- package/es/node_modules/@vue/devtools-api/lib/esm/time.js +0 -12
- package/es/node_modules/vuex/dist/vuex.esm-bundler.js +0 -667
- package/es/node_modules/vuex-persistedstate/dist/vuex-persistedstate.es.js +0 -109
package/es/src/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import t from "./layout/index.vue.js";
|
|
2
2
|
import "./style/index.css.js";
|
|
3
3
|
import "../node_modules/vxe-table/lib/style.css.js";
|
|
4
|
-
|
|
4
|
+
import e from "./store/designer.js";
|
|
5
|
+
const r = (o) => {
|
|
5
6
|
o.component("fecDevDesigner", t);
|
|
6
|
-
},
|
|
7
|
-
install:
|
|
7
|
+
}, s = {
|
|
8
|
+
install: r,
|
|
9
|
+
devStore: e
|
|
8
10
|
};
|
|
9
11
|
export {
|
|
10
|
-
|
|
12
|
+
s as default
|
|
11
13
|
};
|
|
@@ -3,109 +3,109 @@ 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
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { computed as u, ref as g, openBlock as s, createBlock as m, withCtx as a, createElementVNode as l, createVNode as n, createElementBlock as d, Fragment as D, renderList as k, unref as c, toDisplayString as b, createCommentVNode as p } from "vue";
|
|
7
|
+
import { useStore as S } from "vuex";
|
|
8
|
+
import x from "../../packages/utils/eventBus.js";
|
|
9
|
+
import { VueDraggable as L } from "../../../node_modules/vue-draggable-plus/dist/vue-draggable-plus.js";
|
|
10
|
+
import { Calendar as R, DeleteFilled as $, Hide as j } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
|
|
11
|
+
import { getEditConfigData as C, setSelectedItem as q } from "../../packages/utils/common.js";
|
|
11
12
|
import z from "../../packages/table/aside/index.js";
|
|
12
13
|
import G from "../../packages/form/aside/index.js";
|
|
13
14
|
import J from "../../packages/form/fieldRecycleBin.vue.js";
|
|
14
15
|
import K from "../../packages/form/HiddenFieldDialog.vue.js";
|
|
15
|
-
import { useStore as O } from "../../../node_modules/vuex/dist/vuex.esm-bundler.js";
|
|
16
16
|
import "./index.vue2.js";
|
|
17
|
-
import
|
|
18
|
-
import { ElIcon as
|
|
19
|
-
import { ElCollapseItem as
|
|
20
|
-
import { ElBadge as
|
|
21
|
-
import { ElAside as
|
|
22
|
-
const
|
|
17
|
+
import O from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
18
|
+
import { ElIcon as P } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
19
|
+
import { ElCollapseItem as Q, ElCollapse as W } from "../../../node_modules/element-plus/es/components/collapse/index.js";
|
|
20
|
+
import { ElBadge as X } from "../../../node_modules/element-plus/es/components/badge/index.js";
|
|
21
|
+
import { ElAside as Y } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
22
|
+
const Z = { class: "dev-designer-aside" }, ee = { class: "components-item" }, te = { class: "menu-components-item" }, oe = { class: "components-item-label" }, le = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "table-item"
|
|
25
|
-
},
|
|
25
|
+
}, ne = { class: "widgets" }, se = { class: "field-label" }, ae = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "aside-footer"
|
|
28
|
-
},
|
|
28
|
+
}, ie = {
|
|
29
29
|
__name: "index",
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
switch (
|
|
30
|
+
setup(de) {
|
|
31
|
+
const r = S(), B = u(() => {
|
|
32
|
+
switch (r.getters.editingType) {
|
|
33
33
|
case "table":
|
|
34
34
|
return z;
|
|
35
35
|
case "form":
|
|
36
36
|
return G;
|
|
37
37
|
}
|
|
38
38
|
return null;
|
|
39
|
-
}),
|
|
39
|
+
}), V = u(() => r.getters.editingType), y = g(["basic", "advanced"]), f = g(!1), _ = g(!1), h = u(() => {
|
|
40
40
|
var e;
|
|
41
|
-
const t =
|
|
41
|
+
const t = C();
|
|
42
42
|
return ((e = t == null ? void 0 : t.deletedFields) == null ? void 0 : e.length) || 0;
|
|
43
|
-
}),
|
|
43
|
+
}), E = u(() => {
|
|
44
44
|
var e;
|
|
45
|
-
const t =
|
|
45
|
+
const t = C();
|
|
46
46
|
return ((e = t == null ? void 0 : t.hiddenFields) == null ? void 0 : e.length) || 0;
|
|
47
47
|
});
|
|
48
|
-
function
|
|
48
|
+
function w(t) {
|
|
49
49
|
return {
|
|
50
50
|
...t,
|
|
51
51
|
id: Date.now(),
|
|
52
52
|
type: "widgets"
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
+
function N(t) {
|
|
56
|
+
q(t.clonedData), r.getters.editingType == "form" && x.emit("onFormDragEnd", t);
|
|
57
|
+
}
|
|
55
58
|
function T(t) {
|
|
56
|
-
|
|
59
|
+
return r.getters.editingType == "form" && x.emit("onFormDragMove", t), !0;
|
|
57
60
|
}
|
|
58
|
-
function U(
|
|
59
|
-
|
|
61
|
+
function U() {
|
|
62
|
+
f.value = !0;
|
|
60
63
|
}
|
|
61
64
|
function I() {
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
function A() {
|
|
65
|
-
u.value = !0;
|
|
65
|
+
_.value = !0;
|
|
66
66
|
}
|
|
67
67
|
return (t, e) => {
|
|
68
|
-
const v = Q, H = W,
|
|
69
|
-
return
|
|
68
|
+
const v = P, A = Q, H = W, F = X, M = Y;
|
|
69
|
+
return s(), m(M, { class: "root-aside" }, {
|
|
70
70
|
default: a(() => [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
modelValue:
|
|
74
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
71
|
+
l("div", Z, [
|
|
72
|
+
n(H, {
|
|
73
|
+
modelValue: y.value,
|
|
74
|
+
"onUpdate:modelValue": e[0] || (e[0] = (o) => y.value = o)
|
|
75
75
|
}, {
|
|
76
76
|
default: a(() => [
|
|
77
|
-
(
|
|
78
|
-
title:
|
|
79
|
-
name:
|
|
77
|
+
(s(!0), d(D, null, k(B.value, (o) => (s(), m(A, {
|
|
78
|
+
title: o.title,
|
|
79
|
+
name: o.name
|
|
80
80
|
}, {
|
|
81
81
|
default: a(() => [
|
|
82
|
-
|
|
83
|
-
modelValue:
|
|
84
|
-
"onUpdate:modelValue": (
|
|
82
|
+
n(c(L), {
|
|
83
|
+
modelValue: o.children,
|
|
84
|
+
"onUpdate:modelValue": (i) => o.children = i,
|
|
85
85
|
animation: 150,
|
|
86
86
|
ghostClass: "ghost",
|
|
87
87
|
group: { name: "dev", pull: "clone", put: !1 },
|
|
88
|
-
clone:
|
|
89
|
-
onEnd:
|
|
90
|
-
onMove:
|
|
88
|
+
clone: w,
|
|
89
|
+
onEnd: N,
|
|
90
|
+
onMove: T,
|
|
91
91
|
sort: !1,
|
|
92
92
|
class: "components-list"
|
|
93
93
|
}, {
|
|
94
94
|
default: a(() => [
|
|
95
|
-
(
|
|
96
|
-
|
|
97
|
-
|
|
95
|
+
(s(!0), d(D, null, k(o.children, (i) => (s(), d("div", ee, [
|
|
96
|
+
l("div", te, [
|
|
97
|
+
n(v, { class: "components-item-icon" }, {
|
|
98
98
|
default: a(() => [
|
|
99
|
-
|
|
99
|
+
n(c(R))
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
}),
|
|
103
|
-
|
|
103
|
+
l("span", oe, b(i.label), 1)
|
|
104
104
|
]),
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
])) :
|
|
105
|
+
V.value == "table" ? (s(), d("div", le, [
|
|
106
|
+
l("div", ne, b(i.label), 1),
|
|
107
|
+
l("div", se, b(i.fieldName), 1)
|
|
108
|
+
])) : p("", !0)
|
|
109
109
|
]))), 256))
|
|
110
110
|
]),
|
|
111
111
|
_: 2
|
|
@@ -117,59 +117,59 @@ const ee = { class: "dev-designer-aside" }, te = { class: "components-item" }, o
|
|
|
117
117
|
_: 1
|
|
118
118
|
}, 8, ["modelValue"])
|
|
119
119
|
]),
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
V.value == "form" ? (s(), d("div", ae, [
|
|
121
|
+
l("div", {
|
|
122
122
|
class: "footer-btn recycle-btn",
|
|
123
|
-
onClick:
|
|
123
|
+
onClick: U
|
|
124
124
|
}, [
|
|
125
|
-
|
|
125
|
+
n(v, { class: "btn-icon" }, {
|
|
126
126
|
default: a(() => [
|
|
127
|
-
|
|
127
|
+
n(c($))
|
|
128
128
|
]),
|
|
129
129
|
_: 1
|
|
130
130
|
}),
|
|
131
|
-
e[3] || (e[3] =
|
|
132
|
-
|
|
131
|
+
e[3] || (e[3] = l("span", { class: "btn-text" }, "字段回收站", -1)),
|
|
132
|
+
h.value > 0 ? (s(), m(F, {
|
|
133
133
|
key: 0,
|
|
134
|
-
value:
|
|
134
|
+
value: h.value,
|
|
135
135
|
max: 99,
|
|
136
136
|
class: "btn-badge"
|
|
137
|
-
}, null, 8, ["value"])) :
|
|
137
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
138
138
|
]),
|
|
139
|
-
e[5] || (e[5] =
|
|
140
|
-
|
|
139
|
+
e[5] || (e[5] = l("div", { class: "footer-divider" }, null, -1)),
|
|
140
|
+
l("div", {
|
|
141
141
|
class: "footer-btn hidden-field-btn",
|
|
142
|
-
onClick:
|
|
142
|
+
onClick: I
|
|
143
143
|
}, [
|
|
144
|
-
|
|
144
|
+
n(v, { class: "btn-icon" }, {
|
|
145
145
|
default: a(() => [
|
|
146
|
-
|
|
146
|
+
n(c(j))
|
|
147
147
|
]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
e[4] || (e[4] =
|
|
151
|
-
|
|
150
|
+
e[4] || (e[4] = l("span", { class: "btn-text" }, "隐藏域", -1)),
|
|
151
|
+
E.value > 0 ? (s(), m(F, {
|
|
152
152
|
key: 0,
|
|
153
|
-
value:
|
|
153
|
+
value: E.value,
|
|
154
154
|
max: 99,
|
|
155
155
|
class: "btn-badge"
|
|
156
|
-
}, null, 8, ["value"])) :
|
|
156
|
+
}, null, 8, ["value"])) : p("", !0)
|
|
157
157
|
])
|
|
158
|
-
])) :
|
|
159
|
-
|
|
160
|
-
modelValue:
|
|
161
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
158
|
+
])) : p("", !0),
|
|
159
|
+
n(J, {
|
|
160
|
+
modelValue: f.value,
|
|
161
|
+
"onUpdate:modelValue": e[1] || (e[1] = (o) => f.value = o)
|
|
162
162
|
}, null, 8, ["modelValue"]),
|
|
163
|
-
|
|
164
|
-
modelValue:
|
|
165
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
163
|
+
n(K, {
|
|
164
|
+
modelValue: _.value,
|
|
165
|
+
"onUpdate:modelValue": e[2] || (e[2] = (o) => _.value = o)
|
|
166
166
|
}, null, 8, ["modelValue"])
|
|
167
167
|
]),
|
|
168
168
|
_: 1
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
},
|
|
172
|
+
}, Ne = /* @__PURE__ */ O(ie, [["__scopeId", "data-v-6873d89a"]]);
|
|
173
173
|
export {
|
|
174
|
-
|
|
174
|
+
Ne as default
|
|
175
175
|
};
|
|
@@ -7,13 +7,13 @@ 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
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 {
|
|
11
|
-
import {
|
|
12
|
-
import S from "
|
|
13
|
-
import q from "../../packages/
|
|
14
|
-
import
|
|
15
|
-
import J from "../../
|
|
16
|
-
import
|
|
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";
|
|
17
17
|
import "./index.vue2.js";
|
|
18
18
|
import { ElIcon as O } from "../../../node_modules/element-plus/es/components/icon/index.js";
|
|
19
19
|
import { ElInput as $ } from "../../../node_modules/element-plus/es/components/input/index.js";
|
|
@@ -24,15 +24,15 @@ import { ElHeader as P } from "../../../node_modules/element-plus/es/components/
|
|
|
24
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 = {
|
|
25
25
|
__name: "index",
|
|
26
26
|
setup(le) {
|
|
27
|
-
const V =
|
|
27
|
+
const V = H(), b = _(() => {
|
|
28
28
|
switch (V.getters.editingType) {
|
|
29
29
|
case "table":
|
|
30
|
-
return S;
|
|
31
|
-
case "form":
|
|
32
30
|
return q;
|
|
31
|
+
case "form":
|
|
32
|
+
return z;
|
|
33
33
|
}
|
|
34
34
|
return null;
|
|
35
|
-
}), E = _(() =>
|
|
35
|
+
}), E = _(() => J()), s = () => E.value || {}, p = g(!1), c = g(null), l = I({
|
|
36
36
|
templateName: "",
|
|
37
37
|
templateKey: "",
|
|
38
38
|
templateDesc: ""
|
|
@@ -66,8 +66,8 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
66
66
|
templateName: o.templateName,
|
|
67
67
|
context: JSON.stringify(o)
|
|
68
68
|
};
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
M.updateById(e).then(() => {
|
|
70
|
+
S.success("保存成功");
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
return (o, e) => {
|
|
@@ -81,7 +81,7 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
81
81
|
}, [
|
|
82
82
|
t(i, null, {
|
|
83
83
|
default: a(() => [
|
|
84
|
-
t(m(
|
|
84
|
+
t(m(R))
|
|
85
85
|
]),
|
|
86
86
|
_: 1
|
|
87
87
|
}),
|
|
@@ -96,7 +96,7 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
96
96
|
onClick: x
|
|
97
97
|
}, {
|
|
98
98
|
default: a(() => [
|
|
99
|
-
t(m(
|
|
99
|
+
t(m(T))
|
|
100
100
|
]),
|
|
101
101
|
_: 1
|
|
102
102
|
})
|
|
@@ -104,7 +104,7 @@ const Q = { class: "dev-title" }, W = { class: "header-title" }, X = { class: "t
|
|
|
104
104
|
r("div", Z, D(s().templateKey), 1)
|
|
105
105
|
]),
|
|
106
106
|
r("div", ee, [
|
|
107
|
-
(v(), y(h(
|
|
107
|
+
(v(), y(h(b.value)))
|
|
108
108
|
]),
|
|
109
109
|
t(B, {
|
|
110
110
|
modelValue: m(p),
|
|
@@ -5,19 +5,19 @@ import "../../node_modules/element-plus/theme-chalk/el-footer.css.js";
|
|
|
5
5
|
import "../../node_modules/element-plus/theme-chalk/el-header.css.js";
|
|
6
6
|
import "../../node_modules/element-plus/theme-chalk/el-main.css.js";
|
|
7
7
|
import "../../node_modules/element-plus/theme-chalk/el-config-provider.css.js";
|
|
8
|
-
import { ref as
|
|
9
|
-
import
|
|
10
|
-
import x from "
|
|
11
|
-
import I from "./
|
|
12
|
-
import N from "
|
|
13
|
-
import T from "
|
|
14
|
-
import A from "
|
|
15
|
-
import
|
|
8
|
+
import { ref as l, computed as k, openBlock as u, createBlock as _, withCtx as p, createVNode as o, unref as r, resolveDynamicComponent as h, createCommentVNode as C } from "vue";
|
|
9
|
+
import { useStore as b } from "vuex";
|
|
10
|
+
import { useRoute as x } from "vue-router";
|
|
11
|
+
import I from "./aside/index.vue.js";
|
|
12
|
+
import N from "./header/index.vue.js";
|
|
13
|
+
import T from "./property/index.vue.js";
|
|
14
|
+
import A from "../packages/table/index.vue.js";
|
|
15
|
+
import E from "../packages/form/index.vue.js";
|
|
16
|
+
import O from "../../node_modules/element-plus/dist/locale/zh-cn.js";
|
|
17
|
+
import { setEditConfigData as d, setSelectedItem as S, setHoverItem as B } from "../packages/utils/common.js";
|
|
16
18
|
import y from "../api/index.js";
|
|
17
|
-
import { defaultTableConfig as
|
|
18
|
-
import { defaultFormConfig as
|
|
19
|
-
import { useStore as w } from "../../node_modules/vuex/dist/vuex.esm-bundler.js";
|
|
20
|
-
import { useRoute as D } from "vue-router";
|
|
19
|
+
import { defaultTableConfig as w } from "../packages/table/default.js";
|
|
20
|
+
import { defaultFormConfig as D } from "../packages/form/default.js";
|
|
21
21
|
import "./index.vue2.js";
|
|
22
22
|
import J from "../../_virtual/_plugin-vue_export-helper.js";
|
|
23
23
|
import { ElConfigProvider as K } from "../../node_modules/element-plus/es/components/config-provider/index.js";
|
|
@@ -25,25 +25,25 @@ import { ElMain as L, ElContainer as P } from "../../node_modules/element-plus/e
|
|
|
25
25
|
const V = {
|
|
26
26
|
__name: "index",
|
|
27
27
|
setup(W) {
|
|
28
|
-
const m =
|
|
28
|
+
const m = b(), v = x(), c = l("table"), n = v.query.pkId || "42198dc36f73b0da3d39258d58ba2ada", s = l(!1);
|
|
29
29
|
y.login4dev().then((f) => {
|
|
30
30
|
m.commit("set_token", f.token), m.commit("set_refreshToken", f.refreshToken), n && y.getById(n).then((e) => {
|
|
31
|
-
const i = e.templateName,
|
|
31
|
+
const i = e.templateName, a = e.templateKey;
|
|
32
32
|
if (c.value = e.type, c.value === "table") {
|
|
33
|
-
const t =
|
|
33
|
+
const t = l({
|
|
34
34
|
pkId: n,
|
|
35
35
|
templateName: i,
|
|
36
|
-
templateKey:
|
|
37
|
-
...
|
|
36
|
+
templateKey: a,
|
|
37
|
+
...w,
|
|
38
38
|
...JSON.parse(e.context)
|
|
39
39
|
});
|
|
40
40
|
d(t.value), s.value = !0;
|
|
41
41
|
} else if (c.value === "form") {
|
|
42
|
-
const t =
|
|
42
|
+
const t = l({
|
|
43
43
|
pkId: n,
|
|
44
44
|
templateName: i,
|
|
45
|
-
templateKey:
|
|
46
|
-
...
|
|
45
|
+
templateKey: a,
|
|
46
|
+
...D,
|
|
47
47
|
...JSON.parse(e.context)
|
|
48
48
|
});
|
|
49
49
|
d(t.value), s.value = !0;
|
|
@@ -54,44 +54,44 @@ const V = {
|
|
|
54
54
|
const g = k(() => {
|
|
55
55
|
switch (m.getters.editingType) {
|
|
56
56
|
case "table":
|
|
57
|
-
return
|
|
57
|
+
return A;
|
|
58
58
|
case "form":
|
|
59
|
-
return
|
|
59
|
+
return E;
|
|
60
60
|
}
|
|
61
61
|
return null;
|
|
62
62
|
});
|
|
63
|
-
return
|
|
64
|
-
const i = K,
|
|
65
|
-
return
|
|
63
|
+
return S(null), B(null), (f, e) => {
|
|
64
|
+
const i = K, a = L, t = P;
|
|
65
|
+
return s.value ? (u(), _(t, {
|
|
66
66
|
key: 0,
|
|
67
67
|
style: { "flex-direction": "column", height: "100%" }
|
|
68
68
|
}, {
|
|
69
|
-
default:
|
|
70
|
-
r(
|
|
71
|
-
|
|
72
|
-
default:
|
|
73
|
-
r(
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
default:
|
|
78
|
-
(u(), _(h(
|
|
69
|
+
default: p(() => [
|
|
70
|
+
o(r(N)),
|
|
71
|
+
o(t, { class: "inner-container" }, {
|
|
72
|
+
default: p(() => [
|
|
73
|
+
o(r(I)),
|
|
74
|
+
o(a, { class: "root-main" }, {
|
|
75
|
+
default: p(() => [
|
|
76
|
+
o(i, { locale: r(O) }, {
|
|
77
|
+
default: p(() => [
|
|
78
|
+
(u(), _(h(r(g))))
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}, 8, ["locale"])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
84
84
|
}),
|
|
85
|
-
r(
|
|
85
|
+
o(r(T))
|
|
86
86
|
]),
|
|
87
87
|
_: 1
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
})) :
|
|
91
|
+
})) : C("", !0);
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
}, ce = /* @__PURE__ */ J(V, [["__scopeId", "data-v-
|
|
94
|
+
}, ce = /* @__PURE__ */ J(V, [["__scopeId", "data-v-ea04c802"]]);
|
|
95
95
|
export {
|
|
96
96
|
ce as default
|
|
97
97
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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
|
|
3
|
+
import { computed as n, openBlock as t, createBlock as o, withCtx as p, resolveDynamicComponent as s } from "vue";
|
|
4
|
+
import { useStore as c } from "vuex";
|
|
4
5
|
import i from "../../packages/table/property/index.vue.js";
|
|
5
6
|
import _ from "../../packages/form/property/index.vue.js";
|
|
6
|
-
import { useStore as a } from "../../../node_modules/vuex/dist/vuex.esm-bundler.js";
|
|
7
7
|
import "./index.vue2.js";
|
|
8
|
-
import
|
|
9
|
-
import { ElAside as
|
|
10
|
-
const
|
|
8
|
+
import a from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
import { ElAside as f } from "../../../node_modules/element-plus/es/components/container/index.js";
|
|
10
|
+
const u = {
|
|
11
11
|
__name: "index",
|
|
12
|
-
setup(
|
|
13
|
-
const r =
|
|
12
|
+
setup(l) {
|
|
13
|
+
const r = c(), e = n(() => {
|
|
14
14
|
switch (r.getters.editingType) {
|
|
15
15
|
case "table":
|
|
16
16
|
return i;
|
|
@@ -19,17 +19,17 @@ const l = {
|
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
});
|
|
22
|
-
return (
|
|
23
|
-
const
|
|
24
|
-
return t(), o(
|
|
22
|
+
return (d, y) => {
|
|
23
|
+
const m = f;
|
|
24
|
+
return t(), o(m, { class: "root-property" }, {
|
|
25
25
|
default: p(() => [
|
|
26
|
-
(t(), o(s(
|
|
26
|
+
(t(), o(s(e.value)))
|
|
27
27
|
]),
|
|
28
28
|
_: 1
|
|
29
29
|
});
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, $ = /* @__PURE__ */ a(u, [["__scopeId", "data-v-83d19f66"]]);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
$ as default
|
|
35
35
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
editingType: "table",
|
|
3
|
+
hoverItem: null,
|
|
4
|
+
selectedItem: null,
|
|
5
|
+
editConfigData: null,
|
|
6
|
+
token: "",
|
|
7
|
+
refreshToken: ""
|
|
8
|
+
}, o = {
|
|
9
|
+
refreshToken: (e) => e.refreshToken,
|
|
10
|
+
token: (e) => e.token,
|
|
11
|
+
editingType: (e) => e.editingType,
|
|
12
|
+
hoverItem: (e) => e.hoverItem,
|
|
13
|
+
selectedItem: (e) => e.selectedItem,
|
|
14
|
+
editConfigData: (e) => e.editConfigData
|
|
15
|
+
}, s = {
|
|
16
|
+
set_token(e, t) {
|
|
17
|
+
e.token = t;
|
|
18
|
+
},
|
|
19
|
+
set_refreshToken(e, t) {
|
|
20
|
+
e.refreshToken = t;
|
|
21
|
+
},
|
|
22
|
+
set_editing_type(e, t) {
|
|
23
|
+
e.editingType = t;
|
|
24
|
+
},
|
|
25
|
+
set_edit_config_data(e, t) {
|
|
26
|
+
e.editConfigData = t;
|
|
27
|
+
},
|
|
28
|
+
set_hover_item(e, t) {
|
|
29
|
+
e.hoverItem = t;
|
|
30
|
+
},
|
|
31
|
+
set_selected_item(e, t) {
|
|
32
|
+
e.selectedItem = t;
|
|
33
|
+
}
|
|
34
|
+
}, i = { state: n, mutations: s, getters: o };
|
|
35
|
+
export {
|
|
36
|
+
i as default,
|
|
37
|
+
o as getters,
|
|
38
|
+
s as mutations,
|
|
39
|
+
n as state
|
|
40
|
+
};
|
package/es/src/store/index.js
CHANGED
|
@@ -1,49 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import * as n from "./designer.js";
|
|
2
|
+
import i from "vuex-persistedstate";
|
|
3
|
+
import a from "vuex";
|
|
4
|
+
const t = {}, o = {}, r = {}, e = /* @__PURE__ */ Object.assign({ "/src/store/designer.js": n });
|
|
5
|
+
for (let s in e)
|
|
6
|
+
Object.assign(t, e[s].state), Object.assign(o, e[s].getters), Object.assign(r, e[s].mutations);
|
|
7
|
+
const m = a.createStore({
|
|
4
8
|
plugins: [
|
|
5
|
-
|
|
9
|
+
i({
|
|
6
10
|
key: "fec-dev-designer",
|
|
7
11
|
storage: window.sessionStorage
|
|
8
12
|
})
|
|
9
13
|
],
|
|
10
|
-
state:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
selectedItem: null,
|
|
14
|
-
editConfigData: null
|
|
15
|
-
},
|
|
16
|
-
getters: {
|
|
17
|
-
refreshToken: (e) => e.refreshToken,
|
|
18
|
-
token: (e) => e.token,
|
|
19
|
-
editingType: (e) => e.editingType,
|
|
20
|
-
hoverItem: (e) => e.hoverItem,
|
|
21
|
-
selectedItem: (e) => e.selectedItem,
|
|
22
|
-
editConfigData: (e) => e.editConfigData
|
|
23
|
-
},
|
|
24
|
-
mutations: {
|
|
25
|
-
set_token(e, t) {
|
|
26
|
-
e.token = t;
|
|
27
|
-
},
|
|
28
|
-
set_refreshToken(e, t) {
|
|
29
|
-
e.refreshToken = t;
|
|
30
|
-
},
|
|
31
|
-
set_editing_type(e, t) {
|
|
32
|
-
e.editingType = t;
|
|
33
|
-
},
|
|
34
|
-
set_edit_config_data(e, t) {
|
|
35
|
-
e.editConfigData = t;
|
|
36
|
-
},
|
|
37
|
-
set_hover_item(e, t) {
|
|
38
|
-
e.hoverItem = t;
|
|
39
|
-
},
|
|
40
|
-
set_selected_item(e, t) {
|
|
41
|
-
e.selectedItem = t;
|
|
42
|
-
}
|
|
43
|
-
},
|
|
14
|
+
state: t,
|
|
15
|
+
getters: o,
|
|
16
|
+
mutations: r,
|
|
44
17
|
actions: {},
|
|
45
18
|
modules: {}
|
|
46
19
|
});
|
|
47
20
|
export {
|
|
48
|
-
|
|
21
|
+
m as default
|
|
49
22
|
};
|