epic-designer-gold 0.0.5 → 0.0.6
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-Bv_SPKKn.js → attributeView-6r6gaGIs.js} +1 -1
- package/dist/{attributeView-BBUcYXCm.cjs → attributeView-C5w7Qfjw.cjs} +1 -1
- package/dist/{eventView-B2sBIhbt.js → eventView-Bjr69Rd5.js} +1 -1
- package/dist/{eventView-B4YUFKCB.cjs → eventView-NwdUMS87.cjs} +1 -1
- package/dist/{index-DFg9vStb.js → index-38iyho-s.js} +15 -15
- package/dist/{index-C2kcV-J4.js → index-6EFTHNVR.js} +1 -1
- package/dist/index-B0MhdHTh.cjs +1 -0
- package/dist/{index-DuHnyT85.js → index-BGhueRec.js} +1 -1
- package/dist/{index-COVBA1PK.cjs → index-B_1hzyqd.cjs} +1 -1
- package/dist/{index-CsBTnVvp.js → index-Ba0ZjQgI.js} +3 -2
- package/dist/{index-BvzfruqY.cjs → index-BhWgpNmb.cjs} +1 -1
- package/dist/{index-E6KwAQoV.js → index-BlSHvevj.js} +1 -1
- package/dist/{index-8hE8gNZo.cjs → index-Bs6GdgDl.cjs} +1 -1
- package/dist/{index-Di-N3DCZ.cjs → index-CKLWkiPp.cjs} +1 -1
- package/dist/{index-cMeYVX5X.cjs → index-CSn_RIWx.cjs} +1 -1
- package/dist/{index-DafgOfPL.cjs → index-CYvG8McR.cjs} +1 -1
- package/dist/{index-CUo89LNo.cjs → index-CYxJOlU7.cjs} +1 -1
- package/dist/{index-C1iu91xM.js → index-Cni0jg-k.js} +1 -1
- package/dist/{index-DrouLAPy.cjs → index-CsOmhsxu.cjs} +1 -1
- package/dist/{index-Ch2OsKdV.cjs → index-D0zzTC19.cjs} +2 -2
- package/dist/{index-BQCFQnY4.cjs → index-DanxRElg.cjs} +1 -1
- package/dist/{index-C0BbA32V.js → index-IUy1jsog.js} +1 -1
- package/dist/{index-KwL5jE1T.js → index-Jekw1VEq.js} +1 -1
- package/dist/index-OQsMzBdL.js +4 -0
- package/dist/{index-CyeaJlxA.js → index-_dOhTAow.js} +1 -1
- package/dist/index-bIzClEMh.cjs +1 -0
- package/dist/index-rKNXYwxe.js +205 -0
- package/dist/{index-Cq1qV6v1.js → index-yVfYnYtN.js} +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleView-BTbs7sw1.js → styleView-BfXze6dH.js} +1 -1
- package/dist/{styleView-BzVCkUuS.cjs → styleView-i1faUAbF.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BrsEjVOq.js +0 -4
- package/dist/index-C65JM7cg.cjs +0 -1
- package/dist/index-DL2aKRxZ.cjs +0 -1
- package/dist/index-DyV3tWzZ.js +0 -204
package/dist/index-DyV3tWzZ.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, inject as A, resolveComponent as D, openBlock as m, createBlock as O, unref as o, isRef as U, withCtx as $, createElementVNode as c, normalizeClass as w, createVNode as s, createCommentVNode as S, createElementBlock as h, ref as M, reactive as I, onMounted as j, watch as J, provide as z, Fragment as L, renderList as P, toDisplayString as R, withDirectives as T, vShow as F, createTextVNode as q } from "vue";
|
|
2
|
-
import { d as G } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
|
-
import { p as f, E as H } from "./pluginManager-D8PM7ICc.js";
|
|
4
|
-
import { _ as C } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { n as E } from "./index-Cq1qV6v1.js";
|
|
6
|
-
import { ElMessage as K } from "element-plus";
|
|
7
|
-
import { a as Q } from "./axios-CXDYiOMX.js";
|
|
8
|
-
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
const X = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "pl-4"
|
|
12
|
-
}, Y = /* @__PURE__ */ N({
|
|
13
|
-
name: "EOptionItem",
|
|
14
|
-
__name: "optionItem",
|
|
15
|
-
props: {
|
|
16
|
-
modelValue: {}
|
|
17
|
-
},
|
|
18
|
-
emits: ["update:modelValue"],
|
|
19
|
-
setup(x, { emit: y }) {
|
|
20
|
-
const b = x, V = f.getComponent("input"), d = A("tree", !1), i = E(b, "modelValue", y);
|
|
21
|
-
function _(a) {
|
|
22
|
-
const r = {
|
|
23
|
-
label: "",
|
|
24
|
-
value: ""
|
|
25
|
-
};
|
|
26
|
-
a.children ? a.children.push(r) : a.children = [r];
|
|
27
|
-
}
|
|
28
|
-
function n(a) {
|
|
29
|
-
i.value = i.value.filter((r, v) => v !== a);
|
|
30
|
-
}
|
|
31
|
-
return (a, r) => {
|
|
32
|
-
const v = D("EOptionItem");
|
|
33
|
-
return m(), O(o(G), {
|
|
34
|
-
modelValue: o(i),
|
|
35
|
-
"onUpdate:modelValue": r[0] || (r[0] = (t) => U(i) ? i.value = t : null),
|
|
36
|
-
"item-key": "id",
|
|
37
|
-
"component-data": {
|
|
38
|
-
type: "transition-group"
|
|
39
|
-
},
|
|
40
|
-
group: "option-list",
|
|
41
|
-
handle: ".handle",
|
|
42
|
-
animation: 200
|
|
43
|
-
}, {
|
|
44
|
-
item: $(({ element: t, index: k }) => [
|
|
45
|
-
c("div", null, [
|
|
46
|
-
c("div", {
|
|
47
|
-
class: w([o(d) ? "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
|
-
}, [
|
|
49
|
-
s(o(C), {
|
|
50
|
-
class: "mr-2 cursor-move handle",
|
|
51
|
-
name: "icon--epic--drag"
|
|
52
|
-
}),
|
|
53
|
-
s(o(V), {
|
|
54
|
-
modelValue: t.label,
|
|
55
|
-
"onUpdate:modelValue": (e) => t.label = e,
|
|
56
|
-
value: t.label,
|
|
57
|
-
"onUpdate:value": (e) => t.label = e,
|
|
58
|
-
placeholder: "label"
|
|
59
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
60
|
-
s(o(V), {
|
|
61
|
-
modelValue: t.value,
|
|
62
|
-
"onUpdate:modelValue": (e) => t.value = e,
|
|
63
|
-
value: t.value,
|
|
64
|
-
"onUpdate:value": (e) => t.value = e,
|
|
65
|
-
placeholder: "value"
|
|
66
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
67
|
-
o(d) ? (m(), O(o(C), {
|
|
68
|
-
key: 0,
|
|
69
|
-
class: "cursor-pointer text-lg!",
|
|
70
|
-
name: "icon--epic--add-rounded",
|
|
71
|
-
onClick: (e) => _(t)
|
|
72
|
-
}, null, 8, ["onClick"])) : S("", !0),
|
|
73
|
-
s(o(C), {
|
|
74
|
-
class: "hover:text-red cursor-pointer",
|
|
75
|
-
name: "icon--epic--delete-outline-rounded",
|
|
76
|
-
onClick: (e) => n(k)
|
|
77
|
-
}, null, 8, ["onClick"])
|
|
78
|
-
], 2),
|
|
79
|
-
t.children ? (m(), h("div", X, [
|
|
80
|
-
s(v, {
|
|
81
|
-
modelValue: t.children,
|
|
82
|
-
"onUpdate:modelValue": (e) => t.children = e
|
|
83
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
84
|
-
])) : S("", !0)
|
|
85
|
-
])
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["modelValue"]);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
}), Z = { class: "" }, ee = { class: "epic-tabs-box" }, te = ["title", "onClick"], le = { key: 0 }, ae = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, oe = { key: 1 }, ne = /* @__PURE__ */ N({
|
|
92
|
-
__name: "index",
|
|
93
|
-
props: {
|
|
94
|
-
tree: { type: Boolean },
|
|
95
|
-
modelValue: {},
|
|
96
|
-
dynamicId: {},
|
|
97
|
-
type: {}
|
|
98
|
-
},
|
|
99
|
-
emits: ["update:modelValue", "update:EOptionsEditor"],
|
|
100
|
-
setup(x, { emit: y }) {
|
|
101
|
-
const b = f.getComponent("button"), V = f.getComponent("select"), d = M([]), p = I({
|
|
102
|
-
title: "静态"
|
|
103
|
-
}), i = x, _ = y;
|
|
104
|
-
H.on("updateSource", (e) => {
|
|
105
|
-
d.value = f.sourceData.map((l) => ({
|
|
106
|
-
...l,
|
|
107
|
-
label: l.apiName,
|
|
108
|
-
value: l.id
|
|
109
|
-
}));
|
|
110
|
-
}), j(() => {
|
|
111
|
-
d.value = f.sourceData.map((e) => ({
|
|
112
|
-
...e,
|
|
113
|
-
label: e.apiName,
|
|
114
|
-
value: e.id
|
|
115
|
-
}));
|
|
116
|
-
});
|
|
117
|
-
const n = E(i, "modelValue", _), a = E(i, "dynamicId", _);
|
|
118
|
-
function r(e) {
|
|
119
|
-
return e && Object.prototype.toString.call(e) === "[object Array]" ? e : (K.info("请检查数据位置是否配置准确"), []);
|
|
120
|
-
}
|
|
121
|
-
J(
|
|
122
|
-
() => a.value,
|
|
123
|
-
async () => {
|
|
124
|
-
if (a.value) {
|
|
125
|
-
p.title = "动态";
|
|
126
|
-
const e = d.value.find((g) => g.id === a.value);
|
|
127
|
-
let l = await Q({
|
|
128
|
-
method: (e == null ? void 0 : e.method) || "get",
|
|
129
|
-
// url: "/test" + data.url,
|
|
130
|
-
url: "http://localhost:3333/users",
|
|
131
|
-
params: e != null && e.params ? JSON.parse(e == null ? void 0 : e.params) : {},
|
|
132
|
-
data: e != null && e.data ? JSON.parse(e == null ? void 0 : e.data) : {},
|
|
133
|
-
headers: e != null && e.header ? JSON.parse(e == null ? void 0 : e.header) : {}
|
|
134
|
-
});
|
|
135
|
-
e && (e != null && e.dataPath) ? n.value = r(l.data[e.dataPath]) : n.value = r(l.data);
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
immediate: !0
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
const v = [
|
|
143
|
-
{
|
|
144
|
-
title: "静态"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
title: "动态"
|
|
148
|
-
}
|
|
149
|
-
];
|
|
150
|
-
function t(e) {
|
|
151
|
-
p.title = e.title, e.title === "静态" && (a.value = "");
|
|
152
|
-
}
|
|
153
|
-
i.modelValue, z("tree", i.tree);
|
|
154
|
-
function k() {
|
|
155
|
-
const e = I({
|
|
156
|
-
label: "",
|
|
157
|
-
value: ""
|
|
158
|
-
});
|
|
159
|
-
n.value.length ? n.value = [...n.value, e] : n.value = [e];
|
|
160
|
-
}
|
|
161
|
-
return (e, l) => {
|
|
162
|
-
var g;
|
|
163
|
-
return m(), h("div", Z, [
|
|
164
|
-
c("div", null, [
|
|
165
|
-
c("div", ee, [
|
|
166
|
-
(m(), h(L, null, P(v, (u, B) => c("div", {
|
|
167
|
-
class: w(["epic-tab cursor-pointer truncate", { checked: p.title === u.title }]),
|
|
168
|
-
key: B,
|
|
169
|
-
title: u.title,
|
|
170
|
-
onClick: (ie) => t(u)
|
|
171
|
-
}, R(u.title), 11, te)), 64))
|
|
172
|
-
]),
|
|
173
|
-
p.title === "静态" ? (m(), h("div", le, [
|
|
174
|
-
T(c("div", ae, "暂无选项", 512), [
|
|
175
|
-
[F, !((g = o(n)) != null && g.length)]
|
|
176
|
-
]),
|
|
177
|
-
s(Y, {
|
|
178
|
-
modelValue: o(n),
|
|
179
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => U(n) ? n.value = u : null)
|
|
180
|
-
}, null, 8, ["modelValue"]),
|
|
181
|
-
s(o(b), { onClick: k }, {
|
|
182
|
-
default: $(() => l[2] || (l[2] = [
|
|
183
|
-
q("添加选项")
|
|
184
|
-
])),
|
|
185
|
-
_: 1
|
|
186
|
-
})
|
|
187
|
-
])) : (m(), h("div", oe, [
|
|
188
|
-
l[3] || (l[3] = c("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
|
|
189
|
-
s(o(V), {
|
|
190
|
-
modelValue: o(a),
|
|
191
|
-
"onUpdate:modelValue": l[1] || (l[1] = (u) => U(a) ? a.value = u : null),
|
|
192
|
-
placeholder: "请选择数据源",
|
|
193
|
-
clearable: "",
|
|
194
|
-
options: d.value
|
|
195
|
-
}, null, 8, ["modelValue", "options"])
|
|
196
|
-
]))
|
|
197
|
-
])
|
|
198
|
-
]);
|
|
199
|
-
};
|
|
200
|
-
}
|
|
201
|
-
}), he = /* @__PURE__ */ W(ne, [["__scopeId", "data-v-41079ae1"]]);
|
|
202
|
-
export {
|
|
203
|
-
he as default
|
|
204
|
-
};
|