epic-designer-gold 0.0.46 → 0.0.48
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-NViG1QIW.cjs → attributeView-CMbZBZIS.cjs} +1 -1
- package/dist/{attributeView-DtpDKBv3.js → attributeView-DvYRuXDB.js} +1 -1
- package/dist/{index-CEWzIISV.cjs → index-2_PG24En.cjs} +1 -1
- package/dist/{index-Cr0fs3qQ.cjs → index-3oFTJubt.cjs} +1 -1
- package/dist/{index-orcBQmhb.cjs → index-BIfS14i1.cjs} +1 -1
- package/dist/{index-CwevnKNM.js → index-BizWKLWZ.js} +1 -1
- package/dist/{index-D1mKcGjX.js → index-Bjj1uygU.js} +1 -1
- package/dist/{index-B0mkrnRU.cjs → index-BsyFZeFI.cjs} +1 -1
- package/dist/{index-Cbdo388f.cjs → index-C8eSqkwT.cjs} +1 -1
- package/dist/index-CqirvAEP.js +4 -0
- package/dist/index-CtK_8YxJ.cjs +10 -0
- package/dist/{index-Xym112zw.js → index-D0xByXxW.js} +1 -1
- package/dist/index-DEPx91yu.cjs +1 -0
- package/dist/{index-DXzERji1.js → index-DiYy4kUz.js} +65 -63
- package/dist/index-Dy65ngnp.js +1633 -0
- package/dist/{index-DgI4MFJ_.cjs → index-FUj4O0Wm.cjs} +1 -1
- package/dist/{index-0zDuNn0Q.js → index-JhxJizMR.js} +171 -171
- package/dist/{index-Deui5A5E.js → index-SmoMBzHL.js} +1 -1
- package/dist/{index-CeB5DFBE.js → index-WBW2xl-M.js} +1 -1
- package/dist/index-YV7i1gyI.cjs +1 -0
- package/dist/{index-QyL4F13K.js → index-ijn3b5rF.js} +1 -1
- package/dist/{index-B3SPoHbr.cjs → index-zyeRTxj7.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{sign-CJJd-ctq.js → sign-BRchUdJt.js} +29 -29
- package/dist/sign-CnQtsTLr.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-B-yx1iR4.js → styleView-BbQxI-Nr.js} +1 -1
- package/dist/{styleView-BD_oQt7b.cjs → styleView-CF34Ddn9.cjs} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +3 -3
- package/dist/uploadFile-CYDDVa_x.js +76 -0
- package/dist/uploadFile-eWBMdZ9d.cjs +1 -0
- package/dist/{uploadImage-Bi0bWSnb.js → uploadImage-742IA7ei.js} +29 -27
- package/dist/uploadImage-BXcN2FA_.cjs +1 -0
- package/package.json +1 -1
- package/dist/index-BYMDoYaj.js +0 -4
- package/dist/index-BenbgJD8.cjs +0 -1
- package/dist/index-CLpKjuat.cjs +0 -10
- package/dist/index-W-UeQAtk.js +0 -1613
- package/dist/index-zASDVLOl.cjs +0 -1
- package/dist/sign-Bfrdd-6m.cjs +0 -1
- package/dist/uploadFile-BU5cBhab.js +0 -67
- package/dist/uploadFile-z7Ko58XG.cjs +0 -1
- package/dist/uploadImage-DoBUv8Bc.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { d as
|
|
3
|
-
import { p as f, E as
|
|
1
|
+
import { defineComponent as D, inject as j, resolveComponent as J, openBlock as v, createBlock as I, unref as r, isRef as E, withCtx as z, createElementVNode as p, normalizeClass as M, createVNode as m, createCommentVNode as A, createElementBlock as g, ref as K, reactive as B, onMounted as L, watch as P, provide as R, Fragment as F, renderList as q, toDisplayString as G, withDirectives as H, vShow as Q, createTextVNode as W } from "vue";
|
|
2
|
+
import { d as X } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
|
+
import { p as f, E as $, a as Y, b as w } from "./js.cookie-oHpRFPCO.js";
|
|
4
4
|
import { _ as S } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { n as N } from "./index-
|
|
5
|
+
import { n as N } from "./index-Dy65ngnp.js";
|
|
6
6
|
import { ElMessage as Z } from "element-plus";
|
|
7
7
|
import { _ as ee } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const le = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "pl-4"
|
|
11
|
-
}, te = /* @__PURE__ */
|
|
11
|
+
}, te = /* @__PURE__ */ D({
|
|
12
12
|
name: "EOptionItem",
|
|
13
13
|
__name: "optionItem",
|
|
14
14
|
props: {
|
|
@@ -16,22 +16,22 @@ const le = {
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:modelValue"],
|
|
18
18
|
setup(y, { emit: k }) {
|
|
19
|
-
const C = y, b = f.getComponent("input"), c =
|
|
20
|
-
function x(
|
|
19
|
+
const C = y, b = f.getComponent("input"), c = j("tree", !1), s = N(C, "modelValue", k);
|
|
20
|
+
function x(t) {
|
|
21
21
|
const d = {
|
|
22
22
|
label: "",
|
|
23
23
|
value: ""
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
t.children ? t.children.push(d) : t.children = [d];
|
|
26
26
|
}
|
|
27
|
-
function o(
|
|
28
|
-
s.value = s.value.filter((d, V) => V !==
|
|
27
|
+
function o(t) {
|
|
28
|
+
s.value = s.value.filter((d, V) => V !== t);
|
|
29
29
|
}
|
|
30
|
-
return (
|
|
31
|
-
const V =
|
|
32
|
-
return v(), I(r(
|
|
30
|
+
return (t, d) => {
|
|
31
|
+
const V = J("EOptionItem");
|
|
32
|
+
return v(), I(r(X), {
|
|
33
33
|
modelValue: r(s),
|
|
34
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
34
|
+
"onUpdate:modelValue": d[0] || (d[0] = (n) => E(s) ? s.value = n : null),
|
|
35
35
|
"item-key": "id",
|
|
36
36
|
"component-data": {
|
|
37
37
|
type: "transition-group"
|
|
@@ -40,34 +40,34 @@ const le = {
|
|
|
40
40
|
handle: ".handle",
|
|
41
41
|
animation: 200
|
|
42
42
|
}, {
|
|
43
|
-
item:
|
|
43
|
+
item: z(({ element: n, index: _ }) => [
|
|
44
44
|
p("div", null, [
|
|
45
45
|
p("div", {
|
|
46
|
-
class:
|
|
46
|
+
class: M([r(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
47
|
}, [
|
|
48
48
|
m(r(S), {
|
|
49
49
|
class: "mr-2 cursor-move handle",
|
|
50
50
|
name: "icon--epic--drag"
|
|
51
51
|
}),
|
|
52
52
|
m(r(b), {
|
|
53
|
-
modelValue:
|
|
54
|
-
"onUpdate:modelValue": (i) =>
|
|
55
|
-
value:
|
|
56
|
-
"onUpdate:value": (i) =>
|
|
53
|
+
modelValue: n.label,
|
|
54
|
+
"onUpdate:modelValue": (i) => n.label = i,
|
|
55
|
+
value: n.label,
|
|
56
|
+
"onUpdate:value": (i) => n.label = i,
|
|
57
57
|
placeholder: "label"
|
|
58
58
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
59
59
|
m(r(b), {
|
|
60
|
-
modelValue:
|
|
61
|
-
"onUpdate:modelValue": (i) =>
|
|
62
|
-
value:
|
|
63
|
-
"onUpdate:value": (i) =>
|
|
60
|
+
modelValue: n.value,
|
|
61
|
+
"onUpdate:modelValue": (i) => n.value = i,
|
|
62
|
+
value: n.value,
|
|
63
|
+
"onUpdate:value": (i) => n.value = i,
|
|
64
64
|
placeholder: "value"
|
|
65
65
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
|
|
66
66
|
r(c) ? (v(), I(r(S), {
|
|
67
67
|
key: 0,
|
|
68
68
|
class: "cursor-pointer text-lg!",
|
|
69
69
|
name: "icon--epic--add-rounded",
|
|
70
|
-
onClick: (i) => x(
|
|
70
|
+
onClick: (i) => x(n)
|
|
71
71
|
}, null, 8, ["onClick"])) : A("", !0),
|
|
72
72
|
m(r(S), {
|
|
73
73
|
class: "hover:text-red cursor-pointer",
|
|
@@ -75,10 +75,10 @@ const le = {
|
|
|
75
75
|
onClick: (i) => o(_)
|
|
76
76
|
}, null, 8, ["onClick"])
|
|
77
77
|
], 2),
|
|
78
|
-
|
|
78
|
+
n.children ? (v(), g("div", le, [
|
|
79
79
|
m(V, {
|
|
80
|
-
modelValue:
|
|
81
|
-
"onUpdate:modelValue": (i) =>
|
|
80
|
+
modelValue: n.children,
|
|
81
|
+
"onUpdate:modelValue": (i) => n.children = i
|
|
82
82
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
83
83
|
])) : A("", !0)
|
|
84
84
|
])
|
|
@@ -87,7 +87,7 @@ const le = {
|
|
|
87
87
|
}, 8, ["modelValue"]);
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
|
-
}), ae = { class: "" }, ne = { class: "epic-tabs-box" }, oe = ["title", "onClick"], re = { key: 0 }, ie = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ue = { key: 1 }, se = /* @__PURE__ */
|
|
90
|
+
}), ae = { class: "" }, ne = { class: "epic-tabs-box" }, oe = ["title", "onClick"], re = { key: 0 }, ie = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ue = { key: 1 }, se = /* @__PURE__ */ D({
|
|
91
91
|
__name: "index",
|
|
92
92
|
props: {
|
|
93
93
|
tree: { type: Boolean },
|
|
@@ -97,37 +97,39 @@ const le = {
|
|
|
97
97
|
},
|
|
98
98
|
emits: ["update:modelValue", "update:EOptionsEditor"],
|
|
99
99
|
setup(y, { emit: k }) {
|
|
100
|
-
const C = f.getComponent("button"), b = f.getComponent("select"), c =
|
|
100
|
+
const C = f.getComponent("button"), b = f.getComponent("select"), c = K([]), h = B({
|
|
101
101
|
title: "静态"
|
|
102
102
|
}), s = y, x = k;
|
|
103
|
-
|
|
103
|
+
$.on("deleteSourceData", (l) => {
|
|
104
|
+
t.value === l && (t.value = "", o.value = []);
|
|
105
|
+
}), $.on("updateSource", (l) => {
|
|
104
106
|
c.value = f.sourceData.map((e) => ({
|
|
105
107
|
...e,
|
|
106
108
|
label: e.apiName,
|
|
107
109
|
value: e.id
|
|
108
|
-
})), _(
|
|
109
|
-
}),
|
|
110
|
+
})), _(t.value);
|
|
111
|
+
}), L(() => {
|
|
110
112
|
c.value = f.sourceData.map((l) => ({
|
|
111
113
|
...l,
|
|
112
114
|
label: l.apiName,
|
|
113
115
|
value: l.id
|
|
114
|
-
})), _(
|
|
116
|
+
})), _(t.value);
|
|
115
117
|
});
|
|
116
|
-
const o = N(s, "modelValue", x),
|
|
118
|
+
const o = N(s, "modelValue", x), t = N(s, "dynamicId", x);
|
|
117
119
|
function d(l, e, u) {
|
|
118
|
-
return l && Object.prototype.toString.call(l) === "[object Array]" ? l.map((
|
|
119
|
-
label:
|
|
120
|
-
value:
|
|
121
|
-
children: d(
|
|
120
|
+
return l && Object.prototype.toString.call(l) === "[object Array]" ? l.map((a) => a.children && a.children.length ? {
|
|
121
|
+
label: a[e],
|
|
122
|
+
value: a[u] + "",
|
|
123
|
+
children: d(a.children, e, u)
|
|
122
124
|
} : {
|
|
123
|
-
label:
|
|
124
|
-
value:
|
|
125
|
+
label: a[e],
|
|
126
|
+
value: a[u] + ""
|
|
125
127
|
}) : (Z.info("请检查数据位置是否配置准确"), []);
|
|
126
128
|
}
|
|
127
|
-
|
|
128
|
-
() =>
|
|
129
|
+
P(
|
|
130
|
+
() => t.value,
|
|
129
131
|
async () => {
|
|
130
|
-
|
|
132
|
+
t.value ? h.title = "动态" : h.title = "静态";
|
|
131
133
|
},
|
|
132
134
|
{
|
|
133
135
|
immediate: !0
|
|
@@ -141,8 +143,8 @@ const le = {
|
|
|
141
143
|
title: "动态"
|
|
142
144
|
}
|
|
143
145
|
];
|
|
144
|
-
async function
|
|
145
|
-
h.title = l.title, l.title === "静态" ? (o.value = [],
|
|
146
|
+
async function n(l) {
|
|
147
|
+
h.title = l.title, l.title === "静态" ? (o.value = [], t.value = "") : (o.value = [], c.value = f.sourceData.map((e) => ({
|
|
146
148
|
...e,
|
|
147
149
|
label: e.apiName,
|
|
148
150
|
value: e.id
|
|
@@ -159,19 +161,19 @@ const le = {
|
|
|
159
161
|
data: e != null && e.data ? JSON.parse(e == null ? void 0 : e.data) : {},
|
|
160
162
|
headers: e != null && e.header ? {
|
|
161
163
|
...JSON.parse(e == null ? void 0 : e.header),
|
|
162
|
-
Authorization: "Bearer " +
|
|
164
|
+
Authorization: "Bearer " + w.get("Admin-Token")
|
|
163
165
|
} : {
|
|
164
|
-
Authorization: "Bearer " +
|
|
166
|
+
Authorization: "Bearer " + w.get("Admin-Token")
|
|
165
167
|
}
|
|
166
168
|
});
|
|
167
169
|
if (e && (e != null && e.dataPath)) {
|
|
168
|
-
const U = e.dataPath.split(".").reduce((O,
|
|
170
|
+
const U = e.dataPath.split(".").reduce((O, T) => O[T], u.data);
|
|
169
171
|
o.value = d(U, e.dataKey, e.dataValue);
|
|
170
172
|
} else
|
|
171
173
|
o.value = d(u.data, e.dataKey, e.dataValue);
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
|
-
s.modelValue,
|
|
176
|
+
s.modelValue, R("tree", s.tree);
|
|
175
177
|
function i() {
|
|
176
178
|
const l = B({
|
|
177
179
|
label: "",
|
|
@@ -184,32 +186,32 @@ const le = {
|
|
|
184
186
|
return v(), g("div", ae, [
|
|
185
187
|
p("div", null, [
|
|
186
188
|
p("div", ne, [
|
|
187
|
-
(v(), g(
|
|
188
|
-
class:
|
|
189
|
+
(v(), g(F, null, q(V, (a, U) => p("div", {
|
|
190
|
+
class: M(["epic-tab cursor-pointer truncate", { checked: h.title === a.title }]),
|
|
189
191
|
key: U,
|
|
190
|
-
title:
|
|
191
|
-
onClick: (O) => a
|
|
192
|
-
},
|
|
192
|
+
title: a.title,
|
|
193
|
+
onClick: (O) => n(a)
|
|
194
|
+
}, G(a.title), 11, oe)), 64))
|
|
193
195
|
]),
|
|
194
196
|
h.title === "静态" ? (v(), g("div", re, [
|
|
195
|
-
|
|
196
|
-
[
|
|
197
|
+
H(p("div", ie, "暂无选项", 512), [
|
|
198
|
+
[Q, !((u = r(o)) != null && u.length)]
|
|
197
199
|
]),
|
|
198
200
|
m(te, {
|
|
199
201
|
modelValue: r(o),
|
|
200
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
202
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => E(o) ? o.value = a : null)
|
|
201
203
|
}, null, 8, ["modelValue"]),
|
|
202
204
|
m(r(C), { onClick: i }, {
|
|
203
|
-
default:
|
|
204
|
-
|
|
205
|
+
default: z(() => e[2] || (e[2] = [
|
|
206
|
+
W("添加选项")
|
|
205
207
|
])),
|
|
206
208
|
_: 1
|
|
207
209
|
})
|
|
208
210
|
])) : (v(), g("div", ue, [
|
|
209
211
|
e[3] || (e[3] = p("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
|
|
210
212
|
m(r(b), {
|
|
211
|
-
modelValue: r(
|
|
212
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
213
|
+
modelValue: r(t),
|
|
214
|
+
"onUpdate:modelValue": e[1] || (e[1] = (a) => E(t) ? t.value = a : null),
|
|
213
215
|
placeholder: "请选择数据源",
|
|
214
216
|
clearable: "",
|
|
215
217
|
options: c.value,
|
|
@@ -220,7 +222,7 @@ const le = {
|
|
|
220
222
|
]);
|
|
221
223
|
};
|
|
222
224
|
}
|
|
223
|
-
}), Ve = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-
|
|
225
|
+
}), Ve = /* @__PURE__ */ ee(se, [["__scopeId", "data-v-5a353824"]]);
|
|
224
226
|
export {
|
|
225
227
|
Ve as default
|
|
226
228
|
};
|