epic-designer-gold 0.0.13 → 0.0.15
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-BoLhVQzb.cjs +1 -0
- package/dist/{attributeView-CqQCeL9p.js → attributeView-CsETdPfQ.js} +2 -2
- package/dist/axios-CYGTE3lR.cjs +6 -0
- package/dist/axios-ITY6Uw7A.js +2085 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +4 -2
- package/dist/core/components/tree/src/tree.vue.d.ts +1 -1
- package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +2 -2
- package/dist/eventView-CeoqK6Se.cjs +1 -0
- package/dist/{eventView-C_THyz3W.js → eventView-y92-iX1R.js} +2 -2
- package/dist/index-1afOcXnV.cjs +1 -0
- package/dist/index-9NfXcZ4Y.cjs +1 -0
- package/dist/{index-M-hTLR0c.js → index-ASoFJnMl.js} +1 -1
- package/dist/index-B03W7FZR.cjs +1 -0
- package/dist/index-BJlPL6eL.cjs +1 -0
- package/dist/index-BUw5OdPn.cjs +1 -0
- package/dist/index-BXqSZLpt.js +4 -0
- package/dist/{index-BqPDmqv7.js → index-BimQe5uF.js} +2 -2
- package/dist/index-BuNxO1Pv.cjs +1 -0
- package/dist/{index-sZ9OfgE1.cjs → index-BwZBxXdy.cjs} +1 -1
- package/dist/{index-Ba0ZjQgI.js → index-C-XUgjda.js} +1 -1
- package/dist/index-C3ug5HS-.cjs +10 -0
- package/dist/{index-HM72iSCq.js → index-C4sdhgF2.js} +1 -1
- package/dist/index-C6ceZM1C.cjs +1 -0
- package/dist/{index-Dm_60RQ9.js → index-CCTMCqiz.js} +3 -4
- package/dist/index-CM2yS7Lz.js +216 -0
- package/dist/{index-DBj3eppg.js → index-CgW7uOAC.js} +2 -2
- package/dist/index-CzIPdR2H.js +1550 -0
- package/dist/{index-BMnsWYrT.js → index-D4hsNiQf.js} +3 -3
- package/dist/{index-DtXxkuvD.js → index-DLeXF615.js} +2 -2
- package/dist/index-DpzLP1Zp.cjs +1 -0
- package/dist/{index-GtUWspi3.js → index-DqoXRcy4.js} +2 -2
- package/dist/{index-DAWH9Tr_.js → index-Dzatsws1.js} +2 -2
- package/dist/index-FRRNZqrr.cjs +1 -0
- package/dist/index-FW4I6HiK.cjs +1 -0
- package/dist/index-PwPgOIVo.cjs +1 -0
- package/dist/{index-BC_6e5pJ.js → index-QVJsPbkw.js} +1 -1
- package/dist/index-Uwfc3-yh.cjs +1 -0
- package/dist/{index-uaq_HmHi.js → index-ooVzYa5L.js} +1 -1
- package/dist/{index-BnRo1212.cjs → index-uPLxG_y4.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/outline-CJSEUbgc.cjs +1 -0
- package/dist/{outline-utbOTCBV.js → outline-yy4pIEi3.js} +2 -2
- package/dist/{sign-CdhDIjlg.js → sign-BDZCr3wJ.js} +11 -12
- package/dist/sign-Gwu2PIRy.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/styleView-BfH5Ujdi.cjs +1 -0
- package/dist/{styleView-DX_XKKmF.js → styleView-kap7mePV.js} +2 -2
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-Bnl1CGxG.js → tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +1 -1
- package/package.json +1 -1
- package/dist/attributeView-CfMG9ANQ.cjs +0 -1
- package/dist/axios-CXDYiOMX.js +0 -1704
- package/dist/axios-tuVKNgv9.cjs +0 -6
- package/dist/eventView-CSJb3Zam.cjs +0 -1
- package/dist/index-B3dTIoEC.cjs +0 -1
- package/dist/index-Bd5nBb_T.cjs +0 -1
- package/dist/index-Bs6GdgDl.cjs +0 -1
- package/dist/index-CaIsXqm5.cjs +0 -1
- package/dist/index-Ctr7oJRf.cjs +0 -1
- package/dist/index-CuxnFxdY.cjs +0 -1
- package/dist/index-Cz47jN8A.cjs +0 -1
- package/dist/index-DAk3CFkW.cjs +0 -1
- package/dist/index-DBQ-tc2k.cjs +0 -1
- package/dist/index-DWjMyXtP.cjs +0 -1
- package/dist/index-DZ5RBl4U.cjs +0 -1
- package/dist/index-MwVOPR2b.js +0 -1509
- package/dist/index-S4XwR1vD.js +0 -215
- package/dist/index-jsf_Tgj1.js +0 -4
- package/dist/index-mxP1Ba2T.cjs +0 -1
- package/dist/index-p6doDa9j.cjs +0 -10
- package/dist/outline-UAdT8ap6.cjs +0 -1
- package/dist/pluginManager-D8PM7ICc.js +0 -383
- package/dist/pluginManager-itCTrGag.cjs +0 -1
- package/dist/sign-Dx0d5kWo.cjs +0 -1
- package/dist/styleView-0rthSdVL.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-BVopU0uv.cjs +0 -1
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { defineComponent as B, inject as j, resolveComponent as J, openBlock as v, createBlock as N, unref as n, isRef as O, withCtx as A, createElementVNode as p, normalizeClass as D, createVNode as d, createCommentVNode as $, createElementBlock as _, ref as z, 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
|
+
import { d as Q } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
|
+
import { p as g, E as W, a as X } from "./axios-ITY6Uw7A.js";
|
|
4
|
+
import { _ as E } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
+
import { n as I } from "./index-CzIPdR2H.js";
|
|
6
|
+
import { ElMessage as Y } from "element-plus";
|
|
7
|
+
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
+
const ee = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "pl-4"
|
|
11
|
+
}, te = /* @__PURE__ */ B({
|
|
12
|
+
name: "EOptionItem",
|
|
13
|
+
__name: "optionItem",
|
|
14
|
+
props: {
|
|
15
|
+
modelValue: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(k, { emit: C }) {
|
|
19
|
+
const U = k, y = g.getComponent("input"), c = j("tree", !1), i = I(U, "modelValue", C);
|
|
20
|
+
function x(a) {
|
|
21
|
+
const s = {
|
|
22
|
+
label: "",
|
|
23
|
+
value: ""
|
|
24
|
+
};
|
|
25
|
+
a.children ? a.children.push(s) : a.children = [s];
|
|
26
|
+
}
|
|
27
|
+
function r(a) {
|
|
28
|
+
i.value = i.value.filter((s, f) => f !== a);
|
|
29
|
+
}
|
|
30
|
+
return (a, s) => {
|
|
31
|
+
const f = J("EOptionItem");
|
|
32
|
+
return v(), N(n(Q), {
|
|
33
|
+
modelValue: n(i),
|
|
34
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => O(i) ? i.value = l : null),
|
|
35
|
+
"item-key": "id",
|
|
36
|
+
"component-data": {
|
|
37
|
+
type: "transition-group"
|
|
38
|
+
},
|
|
39
|
+
group: "option-list",
|
|
40
|
+
handle: ".handle",
|
|
41
|
+
animation: 200
|
|
42
|
+
}, {
|
|
43
|
+
item: A(({ element: l, index: b }) => [
|
|
44
|
+
p("div", null, [
|
|
45
|
+
p("div", {
|
|
46
|
+
class: D([n(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"])
|
|
47
|
+
}, [
|
|
48
|
+
d(n(E), {
|
|
49
|
+
class: "mr-2 cursor-move handle",
|
|
50
|
+
name: "icon--epic--drag"
|
|
51
|
+
}),
|
|
52
|
+
d(n(y), {
|
|
53
|
+
modelValue: l.label,
|
|
54
|
+
"onUpdate:modelValue": (o) => l.label = o,
|
|
55
|
+
value: l.label,
|
|
56
|
+
"onUpdate:value": (o) => l.label = o,
|
|
57
|
+
placeholder: "label"
|
|
58
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
59
|
+
d(n(y), {
|
|
60
|
+
modelValue: l.value,
|
|
61
|
+
"onUpdate:modelValue": (o) => l.value = o,
|
|
62
|
+
value: l.value,
|
|
63
|
+
"onUpdate:value": (o) => l.value = o,
|
|
64
|
+
placeholder: "value"
|
|
65
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
66
|
+
n(c) ? (v(), N(n(E), {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "cursor-pointer text-lg!",
|
|
69
|
+
name: "icon--epic--add-rounded",
|
|
70
|
+
onClick: (o) => x(l)
|
|
71
|
+
}, null, 8, ["onClick"])) : $("", !0),
|
|
72
|
+
d(n(E), {
|
|
73
|
+
class: "hover:text-red cursor-pointer",
|
|
74
|
+
name: "icon--epic--delete-outline-rounded",
|
|
75
|
+
onClick: (o) => r(b)
|
|
76
|
+
}, null, 8, ["onClick"])
|
|
77
|
+
], 2),
|
|
78
|
+
l.children ? (v(), _("div", ee, [
|
|
79
|
+
d(f, {
|
|
80
|
+
modelValue: l.children,
|
|
81
|
+
"onUpdate:modelValue": (o) => l.children = o
|
|
82
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
83
|
+
])) : $("", !0)
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}, 8, ["modelValue"]);
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}), le = { class: "" }, ae = { class: "epic-tabs-box" }, ne = ["title", "onClick"], oe = { key: 0 }, re = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ue = { key: 1 }, ie = /* @__PURE__ */ B({
|
|
91
|
+
__name: "index",
|
|
92
|
+
props: {
|
|
93
|
+
tree: { type: Boolean },
|
|
94
|
+
modelValue: {},
|
|
95
|
+
dynamicId: {},
|
|
96
|
+
type: {}
|
|
97
|
+
},
|
|
98
|
+
emits: ["update:modelValue", "update:EOptionsEditor"],
|
|
99
|
+
setup(k, { emit: C }) {
|
|
100
|
+
const U = g.getComponent("button"), y = g.getComponent("select"), c = z([]), h = w({
|
|
101
|
+
title: "静态"
|
|
102
|
+
}), i = k, x = C;
|
|
103
|
+
W.on("updateSource", (t) => {
|
|
104
|
+
c.value = g.sourceData.map((e) => ({
|
|
105
|
+
...e,
|
|
106
|
+
label: e.apiName,
|
|
107
|
+
value: e.id
|
|
108
|
+
})), b(a.value);
|
|
109
|
+
}), K(() => {
|
|
110
|
+
c.value = g.sourceData.map((t) => ({
|
|
111
|
+
...t,
|
|
112
|
+
label: t.apiName,
|
|
113
|
+
value: t.id
|
|
114
|
+
}));
|
|
115
|
+
});
|
|
116
|
+
const r = I(i, "modelValue", x), a = I(i, "dynamicId", x);
|
|
117
|
+
function s(t) {
|
|
118
|
+
return t && Object.prototype.toString.call(t) === "[object Array]" ? t : (Y.info("请检查数据位置是否配置准确"), []);
|
|
119
|
+
}
|
|
120
|
+
L(
|
|
121
|
+
() => a.value,
|
|
122
|
+
async () => {
|
|
123
|
+
a.value ? h.title = "动态" : h.title = "静态";
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
immediate: !0
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
const f = [
|
|
130
|
+
{
|
|
131
|
+
title: "静态"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
title: "动态"
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
async function l(t) {
|
|
138
|
+
h.title = t.title, t.title === "静态" && (a.value = "");
|
|
139
|
+
}
|
|
140
|
+
async function b(t) {
|
|
141
|
+
const e = c.value.find((m) => m.id === t);
|
|
142
|
+
if (e && e.url) {
|
|
143
|
+
let m = await X({
|
|
144
|
+
method: (e == null ? void 0 : e.method) || "get",
|
|
145
|
+
url: e.url,
|
|
146
|
+
// url: "http://localhost:3333/users",
|
|
147
|
+
params: e != null && e.params ? JSON.parse(e == null ? void 0 : e.params) : {},
|
|
148
|
+
data: e != null && e.data ? JSON.parse(e == null ? void 0 : e.data) : {},
|
|
149
|
+
headers: e != null && e.header ? JSON.parse(e == null ? void 0 : e.header) : {}
|
|
150
|
+
});
|
|
151
|
+
if (e && (e != null && e.dataPath)) {
|
|
152
|
+
const S = e.dataPath.split(".").reduce((V, M) => V[M], m.data);
|
|
153
|
+
r.value = s(S).map((V) => ({
|
|
154
|
+
label: V[e.dataKey],
|
|
155
|
+
value: V[e.dataValue]
|
|
156
|
+
}));
|
|
157
|
+
} else
|
|
158
|
+
r.value = s(m.data).map((u) => ({
|
|
159
|
+
label: u[e.dataKey],
|
|
160
|
+
value: u[e.dataValue]
|
|
161
|
+
}));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
i.modelValue, P("tree", i.tree);
|
|
165
|
+
function o() {
|
|
166
|
+
const t = w({
|
|
167
|
+
label: "",
|
|
168
|
+
value: ""
|
|
169
|
+
});
|
|
170
|
+
r.value.length ? r.value = [...r.value, t] : r.value = [t];
|
|
171
|
+
}
|
|
172
|
+
return (t, e) => {
|
|
173
|
+
var m;
|
|
174
|
+
return v(), _("div", le, [
|
|
175
|
+
p("div", null, [
|
|
176
|
+
p("div", ae, [
|
|
177
|
+
(v(), _(R, null, T(f, (u, S) => p("div", {
|
|
178
|
+
class: D(["epic-tab cursor-pointer truncate", { checked: h.title === u.title }]),
|
|
179
|
+
key: S,
|
|
180
|
+
title: u.title,
|
|
181
|
+
onClick: (V) => l(u)
|
|
182
|
+
}, F(u.title), 11, ne)), 64))
|
|
183
|
+
]),
|
|
184
|
+
h.title === "静态" ? (v(), _("div", oe, [
|
|
185
|
+
q(p("div", re, "暂无选项", 512), [
|
|
186
|
+
[G, !((m = n(r)) != null && m.length)]
|
|
187
|
+
]),
|
|
188
|
+
d(te, {
|
|
189
|
+
modelValue: n(r),
|
|
190
|
+
"onUpdate:modelValue": e[0] || (e[0] = (u) => O(r) ? r.value = u : null)
|
|
191
|
+
}, null, 8, ["modelValue"]),
|
|
192
|
+
d(n(U), { onClick: o }, {
|
|
193
|
+
default: A(() => e[2] || (e[2] = [
|
|
194
|
+
H("添加选项")
|
|
195
|
+
])),
|
|
196
|
+
_: 1
|
|
197
|
+
})
|
|
198
|
+
])) : (v(), _("div", ue, [
|
|
199
|
+
e[3] || (e[3] = p("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
|
|
200
|
+
d(n(y), {
|
|
201
|
+
modelValue: n(a),
|
|
202
|
+
"onUpdate:modelValue": e[1] || (e[1] = (u) => O(a) ? a.value = u : null),
|
|
203
|
+
placeholder: "请选择数据源",
|
|
204
|
+
clearable: "",
|
|
205
|
+
options: c.value,
|
|
206
|
+
onChange: b
|
|
207
|
+
}, null, 8, ["modelValue", "options"])
|
|
208
|
+
]))
|
|
209
|
+
])
|
|
210
|
+
]);
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}), fe = /* @__PURE__ */ Z(ie, [["__scopeId", "data-v-786f8c8a"]]);
|
|
214
|
+
export {
|
|
215
|
+
fe as default
|
|
216
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, computed as P, inject as O, openBlock as r, createElementBlock as u, Fragment as c, renderList as k, createElementVNode as d, toDisplayString as U, createVNode as g, unref as y, createCommentVNode as $, ref as C, watchEffect as T, createBlock as I, withCtx as M, createTextVNode as N } from "vue";
|
|
2
|
-
import { p as R } from "./
|
|
3
|
-
import { _ as j, n as F, m as q } from "./index-
|
|
2
|
+
import { p as R } from "./axios-ITY6Uw7A.js";
|
|
3
|
+
import { _ as j, n as F, m as q } from "./index-CzIPdR2H.js";
|
|
4
4
|
import { _ as A } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
5
|
const D = [
|
|
6
6
|
{ label: "string", value: "string" },
|