epic-designer-gold 0.0.11 → 0.0.12
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/dist/{attributeView-DQTbBkx6.cjs → attributeView-DEyQL7em.cjs} +1 -1
- package/dist/{attributeView-d51qwAGc.js → attributeView-jwbZhq65.js} +1 -1
- package/dist/{eventView-BxTwk3Gb.js → eventView-CEeT_JLL.js} +1 -1
- package/dist/{eventView-BaDIF66_.cjs → eventView-CfMax_U7.cjs} +1 -1
- package/dist/{index-B1j0JJjX.cjs → index-B2N4pP55.cjs} +1 -1
- package/dist/index-B3dTIoEC.cjs +1 -0
- package/dist/{index-B2lbc5lj.js → index-B6yexTNr.js} +8 -8
- package/dist/{index-BhKBVm6E.cjs → index-B7sMvYm_.cjs} +1 -1
- package/dist/{index-YYBlBbdy.js → index-BcZSHbp2.js} +1 -1
- package/dist/{index-BCgW7lAq.cjs → index-CTd2_vna.cjs} +1 -1
- package/dist/{index-DAEaW6wH.cjs → index-Cevjl8jo.cjs} +1 -1
- package/dist/index-CrrXaIZY.js +4 -0
- package/dist/{index-B5EYlO1t.cjs → index-D-2x46HI.cjs} +1 -1
- package/dist/{index-CExMQ6Fe.cjs → index-D3KAAzmX.cjs} +1 -1
- package/dist/{index-Dw9ciL_n.js → index-D4e8XNyx.js} +1 -1
- package/dist/{index-8M1sB_Qf.js → index-DC4NLl3o.js} +1 -1
- package/dist/{index-CwJDUfGd.js → index-DHwtlP2J.js} +1 -1
- package/dist/{index-DTsLSMrJ.js → index-DZRPexQZ.js} +1 -1
- package/dist/{index-Cs4lLl3Y.cjs → index-DgRGSX7j.cjs} +2 -2
- package/dist/{index-BtZq-ie5.js → index-Dm_60RQ9.js} +39 -39
- package/dist/{index-Czol3WHB.js → index-Dtax565w.js} +1 -1
- package/dist/{index-IMXHB1LW.js → index-E2PvWPhl.js} +1 -1
- package/dist/{index-CUVYkkg8.cjs → index-Xb_SJdEs.cjs} +1 -1
- package/dist/index-br62scsB.cjs +1 -0
- package/dist/{index-lPBFjKuX.cjs → index-gFqI49-0.cjs} +1 -1
- package/dist/{index-B8PVsPu_.js → index-yVm3iKnk.js} +73 -73
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleView-DrFifmTk.js → styleView-B1kY8Fux.js} +1 -1
- package/dist/{styleView-DozZ0ICs.cjs → styleView-CHar-6GB.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-CqlZ86sE.cjs +0 -1
- package/dist/index-D1mklGgR.cjs +0 -1
- package/dist/index-D62Ik4Dt.js +0 -4
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as B, inject as
|
|
1
|
+
import { defineComponent as B, inject as M, resolveComponent as j, openBlock as p, createBlock as N, unref as o, isRef as O, withCtx as z, createElementVNode as m, normalizeClass as A, createVNode as d, createCommentVNode as $, createElementBlock as _, ref as J, reactive as w, onMounted as K, watch as L, provide as P, Fragment as R, renderList as T, toDisplayString as F, withDirectives as q, vShow as G, createTextVNode as H } from "vue";
|
|
2
2
|
import { d as Q } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
3
|
import { p as g, E as W } from "./pluginManager-D8PM7ICc.js";
|
|
4
4
|
import { _ as E } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { n as I } from "./index-
|
|
5
|
+
import { n as I } from "./index-B6yexTNr.js";
|
|
6
6
|
import { ElMessage as X } from "element-plus";
|
|
7
7
|
import { a as Y } from "./axios-CXDYiOMX.js";
|
|
8
8
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
const ee = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "pl-4"
|
|
12
|
-
},
|
|
12
|
+
}, le = /* @__PURE__ */ B({
|
|
13
13
|
name: "EOptionItem",
|
|
14
14
|
__name: "optionItem",
|
|
15
15
|
props: {
|
|
@@ -17,22 +17,22 @@ const ee = {
|
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:modelValue"],
|
|
19
19
|
setup(k, { emit: C }) {
|
|
20
|
-
const U = k,
|
|
21
|
-
function x(
|
|
22
|
-
const
|
|
20
|
+
const U = k, b = g.getComponent("input"), c = M("tree", !1), u = I(U, "modelValue", C);
|
|
21
|
+
function x(n) {
|
|
22
|
+
const s = {
|
|
23
23
|
label: "",
|
|
24
24
|
value: ""
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
n.children ? n.children.push(s) : n.children = [s];
|
|
27
27
|
}
|
|
28
|
-
function i(
|
|
29
|
-
u.value = u.value.filter((
|
|
28
|
+
function i(n) {
|
|
29
|
+
u.value = u.value.filter((s, f) => f !== n);
|
|
30
30
|
}
|
|
31
|
-
return (
|
|
32
|
-
const f =
|
|
33
|
-
return p(), N(
|
|
34
|
-
modelValue:
|
|
35
|
-
"onUpdate:modelValue":
|
|
31
|
+
return (n, s) => {
|
|
32
|
+
const f = j("EOptionItem");
|
|
33
|
+
return p(), N(o(Q), {
|
|
34
|
+
modelValue: o(u),
|
|
35
|
+
"onUpdate:modelValue": s[0] || (s[0] = (t) => O(u) ? u.value = t : null),
|
|
36
36
|
"item-key": "id",
|
|
37
37
|
"component-data": {
|
|
38
38
|
type: "transition-group"
|
|
@@ -41,45 +41,45 @@ const ee = {
|
|
|
41
41
|
handle: ".handle",
|
|
42
42
|
animation: 200
|
|
43
43
|
}, {
|
|
44
|
-
item:
|
|
44
|
+
item: z(({ element: t, index: S }) => [
|
|
45
45
|
m("div", null, [
|
|
46
46
|
m("div", {
|
|
47
|
-
class:
|
|
47
|
+
class: A([o(c) ? "grid-cols-[16px_auto_auto_16px_16px]" : "grid-cols-[16px_auto_auto_16px]", "option-item text-16px grid text-$epic-text-secondary gap-2 items-center mb-2"])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
d(o(E), {
|
|
50
50
|
class: "mr-2 cursor-move handle",
|
|
51
51
|
name: "icon--epic--drag"
|
|
52
52
|
}),
|
|
53
|
-
|
|
54
|
-
modelValue:
|
|
55
|
-
"onUpdate:modelValue": (r) =>
|
|
56
|
-
value:
|
|
57
|
-
"onUpdate:value": (r) =>
|
|
53
|
+
d(o(b), {
|
|
54
|
+
modelValue: t.label,
|
|
55
|
+
"onUpdate:modelValue": (r) => t.label = r,
|
|
56
|
+
value: t.label,
|
|
57
|
+
"onUpdate:value": (r) => t.label = r,
|
|
58
58
|
placeholder: "label"
|
|
59
59
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
60
|
-
|
|
61
|
-
modelValue:
|
|
62
|
-
"onUpdate:modelValue": (r) =>
|
|
63
|
-
value:
|
|
64
|
-
"onUpdate:value": (r) =>
|
|
60
|
+
d(o(b), {
|
|
61
|
+
modelValue: t.value,
|
|
62
|
+
"onUpdate:modelValue": (r) => t.value = r,
|
|
63
|
+
value: t.value,
|
|
64
|
+
"onUpdate:value": (r) => t.value = r,
|
|
65
65
|
placeholder: "value"
|
|
66
66
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
67
|
-
|
|
67
|
+
o(c) ? (p(), N(o(E), {
|
|
68
68
|
key: 0,
|
|
69
69
|
class: "cursor-pointer text-lg!",
|
|
70
70
|
name: "icon--epic--add-rounded",
|
|
71
|
-
onClick: (r) => x(
|
|
71
|
+
onClick: (r) => x(t)
|
|
72
72
|
}, null, 8, ["onClick"])) : $("", !0),
|
|
73
|
-
|
|
73
|
+
d(o(E), {
|
|
74
74
|
class: "hover:text-red cursor-pointer",
|
|
75
75
|
name: "icon--epic--delete-outline-rounded",
|
|
76
76
|
onClick: (r) => i(S)
|
|
77
77
|
}, null, 8, ["onClick"])
|
|
78
78
|
], 2),
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
modelValue:
|
|
82
|
-
"onUpdate:modelValue": (r) =>
|
|
79
|
+
t.children ? (p(), _("div", ee, [
|
|
80
|
+
d(f, {
|
|
81
|
+
modelValue: t.children,
|
|
82
|
+
"onUpdate:modelValue": (r) => t.children = r
|
|
83
83
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
84
84
|
])) : $("", !0)
|
|
85
85
|
])
|
|
@@ -88,7 +88,7 @@ const ee = {
|
|
|
88
88
|
}, 8, ["modelValue"]);
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
}),
|
|
91
|
+
}), te = { class: "" }, ae = { class: "epic-tabs-box" }, oe = ["title", "onClick"], ne = { key: 0 }, re = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ie = { key: 1 }, ue = /* @__PURE__ */ B({
|
|
92
92
|
__name: "index",
|
|
93
93
|
props: {
|
|
94
94
|
tree: { type: Boolean },
|
|
@@ -98,30 +98,30 @@ const ee = {
|
|
|
98
98
|
},
|
|
99
99
|
emits: ["update:modelValue", "update:EOptionsEditor"],
|
|
100
100
|
setup(k, { emit: C }) {
|
|
101
|
-
const U = g.getComponent("button"),
|
|
101
|
+
const U = g.getComponent("button"), b = g.getComponent("select"), c = J([]), v = w({
|
|
102
102
|
title: "静态"
|
|
103
103
|
}), u = k, x = C;
|
|
104
|
-
W.on("updateSource", (
|
|
105
|
-
c.value = g.sourceData.map((e) => ({
|
|
104
|
+
W.on("updateSource", (l) => {
|
|
105
|
+
console.log("%c [ val ]-71", "font-size:13px; background:pink; color:#bf2c9f;", l), c.value = g.sourceData.map((e) => ({
|
|
106
106
|
...e,
|
|
107
107
|
label: e.apiName,
|
|
108
108
|
value: e.id
|
|
109
109
|
}));
|
|
110
110
|
}), K(() => {
|
|
111
|
-
c.value = g.sourceData.map((
|
|
112
|
-
...
|
|
113
|
-
label:
|
|
114
|
-
value:
|
|
111
|
+
c.value = g.sourceData.map((l) => ({
|
|
112
|
+
...l,
|
|
113
|
+
label: l.apiName,
|
|
114
|
+
value: l.id
|
|
115
115
|
}));
|
|
116
116
|
});
|
|
117
|
-
const i = I(u, "modelValue", x),
|
|
118
|
-
function
|
|
119
|
-
return
|
|
117
|
+
const i = I(u, "modelValue", x), n = I(u, "dynamicId", x);
|
|
118
|
+
function s(l) {
|
|
119
|
+
return l && Object.prototype.toString.call(l) === "[object Array]" ? l : (X.info("请检查数据位置是否配置准确"), []);
|
|
120
120
|
}
|
|
121
121
|
L(
|
|
122
|
-
() =>
|
|
122
|
+
() => n.value,
|
|
123
123
|
async () => {
|
|
124
|
-
|
|
124
|
+
n.value ? v.title = "动态" : v.title = "静态";
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
immediate: !0
|
|
@@ -135,11 +135,11 @@ const ee = {
|
|
|
135
135
|
title: "动态"
|
|
136
136
|
}
|
|
137
137
|
];
|
|
138
|
-
async function l
|
|
139
|
-
v.title =
|
|
138
|
+
async function t(l) {
|
|
139
|
+
v.title = l.title, l.title === "静态" && (n.value = "");
|
|
140
140
|
}
|
|
141
|
-
async function S(
|
|
142
|
-
const e = c.value.find((a) => a.id ===
|
|
141
|
+
async function S(l) {
|
|
142
|
+
const e = c.value.find((a) => a.id === l);
|
|
143
143
|
let h = await Y({
|
|
144
144
|
method: (e == null ? void 0 : e.method) || "get",
|
|
145
145
|
url: e.url,
|
|
@@ -149,56 +149,56 @@ const ee = {
|
|
|
149
149
|
headers: e != null && e.header ? JSON.parse(e == null ? void 0 : e.header) : {}
|
|
150
150
|
});
|
|
151
151
|
if (e && (e != null && e.dataPath)) {
|
|
152
|
-
const
|
|
153
|
-
console.log("%c [ ]-148", "font-size:13px; background:pink; color:#bf2c9f;",
|
|
152
|
+
const y = e.dataPath.split(".").reduce((V, D) => V[D], h.data);
|
|
153
|
+
console.log("%c [ ]-148", "font-size:13px; background:pink; color:#bf2c9f;", y), i.value = s(y).map((V) => ({
|
|
154
154
|
label: V[e.dataKey],
|
|
155
155
|
value: V[e.dataValue]
|
|
156
156
|
}));
|
|
157
157
|
} else
|
|
158
|
-
i.value =
|
|
158
|
+
i.value = s(h.data).map((a) => ({
|
|
159
159
|
label: a[e.dataKey],
|
|
160
160
|
value: a[e.dataValue]
|
|
161
161
|
}));
|
|
162
162
|
}
|
|
163
163
|
u.modelValue, P("tree", u.tree);
|
|
164
164
|
function r() {
|
|
165
|
-
const
|
|
165
|
+
const l = w({
|
|
166
166
|
label: "",
|
|
167
167
|
value: ""
|
|
168
168
|
});
|
|
169
|
-
i.value.length ? i.value = [...i.value,
|
|
169
|
+
i.value.length ? i.value = [...i.value, l] : i.value = [l];
|
|
170
170
|
}
|
|
171
|
-
return (
|
|
171
|
+
return (l, e) => {
|
|
172
172
|
var h;
|
|
173
|
-
return p(), _("div",
|
|
173
|
+
return p(), _("div", te, [
|
|
174
174
|
m("div", null, [
|
|
175
175
|
m("div", ae, [
|
|
176
|
-
(p(), _(R, null, T(f, (a,
|
|
177
|
-
class:
|
|
178
|
-
key:
|
|
176
|
+
(p(), _(R, null, T(f, (a, y) => m("div", {
|
|
177
|
+
class: A(["epic-tab cursor-pointer truncate", { checked: v.title === a.title }]),
|
|
178
|
+
key: y,
|
|
179
179
|
title: a.title,
|
|
180
|
-
onClick: (V) =>
|
|
181
|
-
}, F(a.title), 11,
|
|
180
|
+
onClick: (V) => t(a)
|
|
181
|
+
}, F(a.title), 11, oe)), 64))
|
|
182
182
|
]),
|
|
183
|
-
v.title === "静态" ? (p(), _("div",
|
|
183
|
+
v.title === "静态" ? (p(), _("div", ne, [
|
|
184
184
|
q(m("div", re, "暂无选项", 512), [
|
|
185
|
-
[G, !((h =
|
|
185
|
+
[G, !((h = o(i)) != null && h.length)]
|
|
186
186
|
]),
|
|
187
|
-
|
|
188
|
-
modelValue:
|
|
187
|
+
d(le, {
|
|
188
|
+
modelValue: o(i),
|
|
189
189
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => O(i) ? i.value = a : null)
|
|
190
190
|
}, null, 8, ["modelValue"]),
|
|
191
|
-
|
|
192
|
-
default:
|
|
191
|
+
d(o(U), { onClick: r }, {
|
|
192
|
+
default: z(() => e[2] || (e[2] = [
|
|
193
193
|
H("添加选项")
|
|
194
194
|
])),
|
|
195
195
|
_: 1
|
|
196
196
|
})
|
|
197
197
|
])) : (p(), _("div", ie, [
|
|
198
198
|
e[3] || (e[3] = m("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
|
|
199
|
-
|
|
200
|
-
modelValue: n
|
|
201
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => O(
|
|
199
|
+
d(o(b), {
|
|
200
|
+
modelValue: o(n),
|
|
201
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => O(n) ? n.value = a : null),
|
|
202
202
|
placeholder: "请选择数据源",
|
|
203
203
|
clearable: "",
|
|
204
204
|
options: c.value,
|
|
@@ -209,7 +209,7 @@ const ee = {
|
|
|
209
209
|
]);
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
}), Ve = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-
|
|
212
|
+
}), Ve = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-0a645bdb"]]);
|
|
213
213
|
export {
|
|
214
214
|
Ve as default
|
|
215
215
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-DgRGSX7j.cjs"),a=require("./pluginManager-itCTrGag.cjs");exports.EBuilder=e._sfc_main$1;exports.EDesigner=e._sfc_main$2;exports.ENode=e._sfc_main;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.convertKFormData=e.convertKFormData;exports.debounce=e.debounce;exports.deepClone=e.deepClone;exports.deepCompareAndModify=e.deepCompareAndModify;exports.deepEqual=e.deepEqual;exports.findSchemaById=e.findSchemaById;exports.findSchemaInfoById=e.findSchemaInfoById;exports.findSchemas=e.findSchemas;exports.generateNewSchema=e.generateNewSchema;exports.getDarkState=e.getDarkState;exports.getFormFields=e.getFormFields;exports.getFormSchemas=e.getFormSchemas;exports.getMatchedById=e.getMatchedById;exports.getUUID=e.getUUID;exports.getValueByPath=e.getValueByPath;exports.initStore=e.initStore;exports.mapSchemas=e.mapSchemas;exports.recursionConvertedNode=e.recursionConvertedNode;exports.setValueByPath=e.setValueByPath;exports.useDark=e.useDark;exports.useElementDrag=e.useElementDrag;exports.useElementZoom=e.useElementZoom;exports.useKeyPress=e.useKeyPress;exports.usePageManager=e.usePageManager;exports.useRevoke=e.useRevoke;exports.useStore=e.useStore;exports.useTheme=e.useTheme;exports.useTimedQuery=e.useTimedQuery;exports.EventBus=a.EventBus;exports.PluginManager=a.PluginManager;exports.loadAsyncComponent=a.loadAsyncComponent;exports.pluginManager=a.pluginManager;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as s, t, _ as r, E as o, c as n, j as d, m, d as u, o as i, l as g, f as l, B as c, g as p, H as h, z as y, A as E, y as S, k as f, p as B, I as D, C as F, D as I, s as P, G as v, e as C, i as M, F as k, v as x, x as A, u as N, q, a as z } from "./index-
|
|
1
|
+
import { r as s, t, _ as r, E as o, c as n, j as d, m, d as u, o as i, l as g, f as l, B as c, g as p, H as h, z as y, A as E, y as S, k as f, p as B, I as D, C as F, D as I, s as P, G as v, e as C, i as M, F as k, v as x, x as A, u as N, q, a as z } from "./index-B6yexTNr.js";
|
|
2
2
|
import { E as T, P as U, l as V, p as b } from "./pluginManager-D8PM7ICc.js";
|
|
3
3
|
export {
|
|
4
4
|
s as EBuilder,
|