epic-designer-gold 1.0.5 → 1.0.7
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/ETable-adkZzXhI.cjs +1 -0
- package/dist/ETable-ogvH56w7.js +50 -0
- package/dist/ETd-BCM7zA8V.cjs +1 -0
- package/dist/{row-DAy14ve9.js → ETd-CRUvOVnZ.js} +13 -13
- package/dist/ETr-BqGghav2.cjs +1 -0
- package/dist/ETr-nIjGkdzO.js +43 -0
- package/dist/attributeView-BCjRZKcy.cjs +1 -0
- package/dist/{attributeView-Cu_tjo9A.js → attributeView-CcnkUeu9.js} +7 -7
- package/dist/axios-CXDYiOMX.js +1704 -0
- package/dist/axios-tuVKNgv9.cjs +6 -0
- package/dist/card-C9ua0f7r.cjs +1 -0
- package/dist/card-CI6L3YKU.js +33 -0
- package/dist/cell-AML-qIH9.cjs +1 -0
- package/dist/cell-B_q5hgzb.js +35 -0
- package/dist/col-C4lVVBzC.cjs +1 -0
- package/dist/col-DcVPBKEc.js +31 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -2
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +3 -2
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +10 -0
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +18 -0
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +10 -0
- package/dist/eventView-5fa6mfSD.cjs +1 -0
- package/dist/eventView-C2wKhfU_.js +63 -0
- package/dist/{form-CthzLIgs.cjs → form-Bofkrmkd.cjs} +1 -1
- package/dist/{form-6cUK-Ari.js → form-VbfBmb63.js} +5 -5
- package/dist/iframe-CRF3GSRv.cjs +1 -0
- package/dist/iframe-Fgbk3vqJ.js +48 -0
- package/dist/index-0WmqAKuy.js +4 -0
- package/dist/index-5yjG3fiB.cjs +1 -0
- package/dist/{index-DxNdcsD-.js → index-B0OgKtuT.js} +105 -100
- package/dist/{index-Dg7MK40D.js → index-B1s67XDZ.js} +17 -17
- package/dist/index-BEUYVwRA.cjs +1 -0
- package/dist/{index-DeFAvWuV.cjs → index-BHEw6RsQ.cjs} +1 -1
- package/dist/index-BHZbtFEF.cjs +1 -0
- package/dist/index-BU05X44j.cjs +1 -0
- package/dist/index-BY37Ndo7.cjs +10 -0
- package/dist/index-BoL2PSBk.cjs +1 -0
- package/dist/index-BvfkMKTv.cjs +1 -0
- package/dist/{index-BLJT8e0Q.js → index-BvvGezNc.js} +4 -4
- package/dist/{index-CHCOxt3B.js → index-BydHABbW.js} +3 -3
- package/dist/index-C2s4IuAR.cjs +1 -0
- package/dist/index-CCCx1tbF.cjs +1 -0
- package/dist/index-CD00bJyK.js +839 -0
- package/dist/{index-Bybwt7-u.js → index-CG0UEELU.js} +1 -1
- package/dist/index-CdnV7DS4.js +265 -0
- package/dist/{index-D0kQz_zt.js → index-Cln9MN7u.js} +1 -1
- package/dist/index-CpBfljmg.cjs +1 -0
- package/dist/{index-CMbBKMQU.js → index-CpTA2IRB.js} +2 -2
- package/dist/index-CpevxZqj.cjs +1 -0
- package/dist/index-CraRg8wh.js +107 -0
- package/dist/{index-CEDIwmNK.js → index-Cx7gKpkD.js} +2 -2
- package/dist/index-DYQi05p8.cjs +1 -0
- package/dist/{index-CjIIhZdV.js → index-E8jDNKrc.js} +3 -3
- package/dist/index-FgdbKgb5.cjs +1 -0
- package/dist/index-GIYb626z.js +1422 -0
- package/dist/{index-CgwN4ucQ.js → index-IGxCNti8.js} +48 -28
- package/dist/{index-CqeRfqUw.cjs → index-IPz4bbk7.cjs} +1 -1
- package/dist/index-R2r9Rw5O.cjs +1 -0
- package/dist/index-WkZdU_zw.js +47 -0
- package/dist/index-v2u1WTMm.cjs +1 -0
- package/dist/index-vCJWgHu-.js +142 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/locale/lang/en-US.d.ts +2 -0
- package/dist/locale/lang/zh-cn.d.ts +2 -0
- package/dist/modal-DCBqsiP2.cjs +1 -0
- package/dist/modal-DZRBS-Mt.js +58 -0
- package/dist/outline-BE98qFHQ.cjs +1 -0
- package/dist/{outline-DxCKINRN.js → outline-Ch5PHy3c.js} +2 -2
- package/dist/pluginManager-BCnrHPYv.js +660 -0
- package/dist/pluginManager-DWHAX8kP.cjs +1 -0
- package/dist/sign-BS-9u6is.cjs +1 -0
- package/dist/{sign-B-FCN_7O.js → sign-l63EYvVo.js} +61 -56
- package/dist/style.css +1 -1
- package/dist/styleView-Dhj1GDqf.js +140 -0
- package/dist/styleView-DocskQJQ.cjs +1 -0
- package/dist/tabPanel-CXZYMEwi.cjs +1 -0
- package/dist/{col-D4hvKfJ6.js → tabPanel-DAw7ENrC.js} +7 -7
- package/dist/table-75K2lqjD.js +65 -0
- package/dist/table-CN2LNWqY.cjs +1 -0
- package/dist/tabs-CYH9lAUk.cjs +1 -0
- package/dist/tabs-DCyifACM.js +41 -0
- package/dist/text-B92ioaoV.cjs +1 -0
- package/dist/text-C-b94tBH.js +47 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js +243 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs +1 -0
- package/dist/ui/elementPlus/ETable/ETable.d.ts +20 -0
- package/dist/ui/elementPlus/ETd/ETd.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/ETr.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/index.d.ts +3 -0
- package/dist/ui/elementPlus/iframe/iframe.d.ts +29 -0
- package/dist/ui/elementPlus/iframe/index.d.ts +3 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +904 -403
- package/dist/ui/elementPlus/rate/index.d.ts +3 -0
- package/dist/ui/elementPlus/tab-panel/index.d.ts +3 -0
- package/dist/ui/elementPlus/table/table.d.ts +9 -0
- package/dist/ui/elementPlus/table-cell/index.d.ts +3 -0
- package/dist/ui/elementPlus/tabs/index.d.ts +2 -0
- package/dist/ui/elementPlus/tabs/tabs.d.ts +29 -0
- package/dist/ui/elementPlus/text/text.d.ts +9 -0
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/uploadFile-pgvj4Lm9.cjs +1 -0
- package/dist/uploadFile-qCbXuHfd.js +81 -0
- package/dist/uploadImage-B3sOX-5F.cjs +1 -0
- package/dist/{uploadImage-CF7fobUP.cjs → uploadImage-CNMsK4Lh.cjs} +1 -1
- package/dist/uploadImage-DQmVV0jl.js +121 -0
- package/dist/{uploadImage-COCC3pxH.js → uploadImage-VFICaVgX.js} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-B2dWB_U2.cjs +0 -1
- package/dist/axios-B8aFvCWj.cjs +0 -6
- package/dist/axios-Bb3STC1u.js +0 -2362
- package/dist/card-BowzD9vN.cjs +0 -1
- package/dist/card-CNGNDzPp.js +0 -31
- package/dist/col-B1GUMkMK.cjs +0 -1
- package/dist/col-BNNn9Yx8.cjs +0 -1
- package/dist/col-u5YiB-UK.js +0 -41
- package/dist/index-21c4Pe3i.cjs +0 -1
- package/dist/index-B553TaXm.js +0 -44
- package/dist/index-BULuVnVl.js +0 -1359
- package/dist/index-BV9SE7wG.cjs +0 -1
- package/dist/index-BhcwWM1G.cjs +0 -1
- package/dist/index-Bn8pwpgq.cjs +0 -1
- package/dist/index-Bxi3JLms.cjs +0 -1
- package/dist/index-CEvDmc0a.js +0 -104
- package/dist/index-CI3dhGXT.cjs +0 -1
- package/dist/index-CYAKMqdR.cjs +0 -1
- package/dist/index-Cq6eLpKZ.cjs +0 -1
- package/dist/index-CrV5FaWU.cjs +0 -10
- package/dist/index-DR80h8IU.js +0 -4
- package/dist/index-DUMEtCCN.cjs +0 -1
- package/dist/index-DddTXMY9.cjs +0 -1
- package/dist/index-DeZ09CHf.cjs +0 -1
- package/dist/index-DzxQG0o7.cjs +0 -1
- package/dist/index-VblxMq6V.js +0 -742
- package/dist/modal-BLOgN3us.cjs +0 -1
- package/dist/modal-UFu4bD6x.js +0 -57
- package/dist/outline-CK-jNomF.cjs +0 -1
- package/dist/row-BWnbt6dh.cjs +0 -1
- package/dist/sign-Dho4kHTC.cjs +0 -1
- package/dist/styleView-CRUqDcCl.cjs +0 -1
- package/dist/styleView-ClMjCfMk.js +0 -106
- package/dist/table-CnBJm7Bx.js +0 -43
- package/dist/table-DM2-xHlv.cjs +0 -1
- package/dist/text-C-52xLjs.js +0 -33
- package/dist/text-X9fl5oe8.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js +0 -242
- package/dist/tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs +0 -1
- package/dist/uploadFile-Bc5Rxk0b.js +0 -77
- package/dist/uploadFile-oB2-NP-v.cjs +0 -1
- package/dist/uploadImage-4tgp3t7X.cjs +0 -1
- package/dist/uploadImage-CGXm3zNQ.js +0 -96
- /package/dist/ui/elementPlus/{table-col → ETable}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-row → ETd}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-col/col.d.ts → tab-panel/tabPanel.d.ts} +0 -0
- /package/dist/ui/elementPlus/{table-row/row.d.ts → table-cell/cell.d.ts} +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { p as f, E as q
|
|
1
|
+
import { defineComponent as oe, ref as O, reactive as re, onMounted as de, openBlock as m, createElementBlock as p, createVNode as t, unref as a, withCtx as s, createElementVNode as n, toDisplayString as v, Fragment as D, renderList as J, normalizeClass as ue, normalizeStyle as se, createTextVNode as V, createCommentVNode as F } from "vue";
|
|
2
|
+
import { p as f, E as q } from "./pluginManager-BCnrHPYv.js";
|
|
3
3
|
import { ElMessage as L } from "element-plus";
|
|
4
4
|
import { _ } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a as ne } from "./axios-CXDYiOMX.js";
|
|
6
|
+
import { u as ie, a as R } from "./index-B1s67XDZ.js";
|
|
6
7
|
const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { class: "drawer-content" }, ve = { class: "drawer-content-left" }, fe = ["onClick"], he = { class: "source-item-title" }, ye = ["onClick"], be = { class: "drawer-content-right" }, ge = { class: "content" }, Ve = {
|
|
7
8
|
key: 0,
|
|
8
9
|
class: "content-empty"
|
|
@@ -18,48 +19,48 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
18
19
|
}, Oe = { class: "form-item" }, Ue = { class: "form-item-title" }, De = {
|
|
19
20
|
key: 0,
|
|
20
21
|
class: "form-item-content"
|
|
21
|
-
}, Je = { class: "content-right-btn" },
|
|
22
|
+
}, Je = { class: "content-right-btn" }, Ae = /* @__PURE__ */ oe({
|
|
22
23
|
__name: "index",
|
|
23
24
|
emits: ["update:modelValue", "update:sourceData"],
|
|
24
25
|
setup(qe, { emit: Pe }) {
|
|
25
|
-
const { t:
|
|
26
|
+
const { t: r } = ie(), y = f.getComponent("button"), x = f.getComponent("Drawer"), h = f.getComponent("input"), N = f.getComponent("FormItem"), B = f.getComponent("Form"), A = f.getComponent("RadioGroup"), U = f.getComponent("RadioButton");
|
|
26
27
|
f.getComponent("select"), f.getComponent("switch");
|
|
27
|
-
const P = O(),
|
|
28
|
+
const P = O(), M = {
|
|
28
29
|
GET: "#67c23a",
|
|
29
30
|
POST: "#e6a23c",
|
|
30
31
|
PUT: "#409eff",
|
|
31
32
|
DELETE: "#f56c6c"
|
|
32
|
-
},
|
|
33
|
-
apiName: [{ required: !0, message:
|
|
34
|
-
url: [{ required: !0, message:
|
|
35
|
-
dataKey: [{ required: !0, message:
|
|
36
|
-
dataValue: [{ required: !0, message:
|
|
33
|
+
}, $ = O(0), j = re({
|
|
34
|
+
apiName: [{ required: !0, message: r("pleaseEnterApiName"), trigger: "blur" }],
|
|
35
|
+
url: [{ required: !0, message: r("pleaseEnterRequestUrl"), trigger: "blur" }],
|
|
36
|
+
dataKey: [{ required: !0, message: r("pleaseEnterLabelKey"), trigger: "blur" }],
|
|
37
|
+
dataValue: [{ required: !0, message: r("pleaseEnterValueKey"), trigger: "blur" }]
|
|
37
38
|
}), T = O(!1), b = O([]), e = O(), C = [
|
|
38
39
|
{
|
|
39
40
|
label: "1",
|
|
40
41
|
value: "1"
|
|
41
42
|
}
|
|
42
43
|
];
|
|
43
|
-
function
|
|
44
|
+
function z() {
|
|
44
45
|
T.value = !0;
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function I() {
|
|
47
48
|
const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
48
49
|
return o.charAt(Math.floor(Math.random() * o.length));
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function G(o) {
|
|
51
52
|
let l = "";
|
|
52
53
|
for (let d = 0; d < o; d++)
|
|
53
|
-
l +=
|
|
54
|
+
l += I();
|
|
54
55
|
return l;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
+
function H() {
|
|
57
58
|
!e.value || e.value.id || !Object.keys(e.value).length ? (e.value = {
|
|
58
59
|
id: "",
|
|
59
60
|
url: "",
|
|
60
61
|
body: {},
|
|
61
62
|
bodyList: [],
|
|
62
|
-
apiName: `${
|
|
63
|
+
apiName: `${r("dataSource")}_${G(5)}`,
|
|
63
64
|
method: "get",
|
|
64
65
|
params: {},
|
|
65
66
|
paramsList: [],
|
|
@@ -70,7 +71,7 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
70
71
|
dataValue: "id"
|
|
71
72
|
}, b.value.push(e.value)) : e.value.id || K();
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function Z(o) {
|
|
74
75
|
var l;
|
|
75
76
|
!e.value || e.value.id || !Object.keys(e.value).length ? (b.value = JSON.parse(JSON.stringify(f.getSourceData())), ((l = e.value) == null ? void 0 : l.id) === o ? e.value = {} : (e.value = b.value.find((d) => d.id === o), e.value.paramsList = Object.keys(JSON.parse(e.value.params)).map((d) => ({
|
|
76
77
|
label: d,
|
|
@@ -103,25 +104,25 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
103
104
|
value: ""
|
|
104
105
|
});
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
+
function ee(o) {
|
|
107
108
|
e.value.headerList.splice(o, 1);
|
|
108
109
|
}
|
|
109
|
-
function
|
|
110
|
+
function ae() {
|
|
110
111
|
var o;
|
|
111
112
|
(o = e.value) == null || o.bodyList.push({
|
|
112
113
|
label: "",
|
|
113
114
|
value: ""
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function le(o) {
|
|
117
118
|
e.value.bodyList.splice(o, 1);
|
|
118
119
|
}
|
|
119
|
-
|
|
120
|
+
de(() => {
|
|
120
121
|
b.value = JSON.parse(JSON.stringify(f.getSourceData()));
|
|
121
122
|
}), q.on("updateSource", (o) => {
|
|
122
123
|
b.value = JSON.parse(JSON.stringify(f.getSourceData()));
|
|
123
124
|
});
|
|
124
|
-
async function
|
|
125
|
+
async function te() {
|
|
125
126
|
P.value.validate(async (o) => {
|
|
126
127
|
if (o)
|
|
127
128
|
try {
|
|
@@ -137,7 +138,7 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
137
138
|
e.value.headerList.forEach((i) => {
|
|
138
139
|
S[i.label] = i.value;
|
|
139
140
|
});
|
|
140
|
-
let g = await
|
|
141
|
+
let g = await ne({
|
|
141
142
|
method: e.value.method,
|
|
142
143
|
// url: formData.value.url,
|
|
143
144
|
// url: "http://localhost:3333/users",
|
|
@@ -146,30 +147,34 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
146
147
|
data: d,
|
|
147
148
|
headers: {
|
|
148
149
|
...S,
|
|
149
|
-
Authorization: "Bearer " +
|
|
150
|
+
Authorization: "Bearer " + R.get("Admin-Token"),
|
|
151
|
+
lang: R.get("saas-locale") || "zh-CN",
|
|
152
|
+
//语言
|
|
153
|
+
zone: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
154
|
+
//时区
|
|
150
155
|
}
|
|
151
156
|
});
|
|
152
157
|
if (e.value.dataPath) {
|
|
153
|
-
const E = e.value.dataPath.split(".").reduce((k,
|
|
158
|
+
const E = e.value.dataPath.split(".").reduce((k, u) => k[u], g.data);
|
|
154
159
|
E && E.length ? L({
|
|
155
160
|
message: E.map((k) => ({
|
|
156
161
|
label: k[e.value.dataKey],
|
|
157
162
|
value: k[e.value.dataValue]
|
|
158
163
|
}))
|
|
159
|
-
}) : L.info(
|
|
164
|
+
}) : L.info(r("configError"));
|
|
160
165
|
} else
|
|
161
166
|
g.data && g.data.length ? L({
|
|
162
167
|
message: g.data.map((i) => ({
|
|
163
168
|
label: i[e.value.dataKey],
|
|
164
169
|
value: i[e.value.dataValue]
|
|
165
170
|
}))
|
|
166
|
-
}) : L.info(
|
|
171
|
+
}) : L.info(r("configError"));
|
|
167
172
|
} catch {
|
|
168
|
-
L.error(
|
|
173
|
+
L.error(r("requestFailed"));
|
|
169
174
|
} finally {
|
|
170
175
|
}
|
|
171
176
|
else
|
|
172
|
-
L.error(
|
|
177
|
+
L.error(r("fillRequiredFields"));
|
|
173
178
|
});
|
|
174
179
|
}
|
|
175
180
|
async function K() {
|
|
@@ -190,21 +195,21 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
190
195
|
body: JSON.stringify(e.value.body),
|
|
191
196
|
params: JSON.stringify(e.value.params),
|
|
192
197
|
headers: JSON.stringify(e.value.headers)
|
|
193
|
-
}), e.value = {}) : L.warning(
|
|
198
|
+
}), e.value = {}) : L.warning(r("completeFormFirst"));
|
|
194
199
|
});
|
|
195
200
|
}
|
|
196
201
|
return (o, l) => (m(), p("div", ce, [
|
|
197
202
|
t(a(y), {
|
|
198
203
|
class: "btn",
|
|
199
|
-
onClick:
|
|
204
|
+
onClick: z
|
|
200
205
|
}, {
|
|
201
206
|
default: s(() => [
|
|
202
207
|
t(a(_), {
|
|
203
208
|
name: "icon--epic--window-outline",
|
|
204
209
|
class: "mr-4px"
|
|
205
210
|
}),
|
|
206
|
-
n("span", null, v(a(
|
|
207
|
-
n("span", me, v(
|
|
211
|
+
n("span", null, v(a(r)("configuration")), 1),
|
|
212
|
+
n("span", me, v($.value || b.value.length), 1)
|
|
208
213
|
]),
|
|
209
214
|
_: 1
|
|
210
215
|
}),
|
|
@@ -213,7 +218,7 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
213
218
|
modelValue: T.value,
|
|
214
219
|
"onUpdate:modelValue": l[7] || (l[7] = (d) => T.value = d),
|
|
215
220
|
"append-to-body": "",
|
|
216
|
-
title: a(
|
|
221
|
+
title: a(r)("dataSources")
|
|
217
222
|
}, {
|
|
218
223
|
default: s(() => [
|
|
219
224
|
n("div", pe, [
|
|
@@ -221,14 +226,14 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
221
226
|
t(a(y), {
|
|
222
227
|
type: "primary",
|
|
223
228
|
class: "btn",
|
|
224
|
-
onClick:
|
|
229
|
+
onClick: H
|
|
225
230
|
}, {
|
|
226
231
|
default: s(() => [
|
|
227
232
|
t(a(_), {
|
|
228
233
|
name: "icon--epic--add-rounded",
|
|
229
234
|
class: "mr-4px"
|
|
230
235
|
}),
|
|
231
|
-
n("span", null, v(a(
|
|
236
|
+
n("span", null, v(a(r)("addDataSource")), 1)
|
|
232
237
|
]),
|
|
233
238
|
_: 1
|
|
234
239
|
}),
|
|
@@ -236,14 +241,14 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
236
241
|
(m(!0), p(D, null, J(b.value, (d) => {
|
|
237
242
|
var S;
|
|
238
243
|
return m(), p("div", {
|
|
239
|
-
class:
|
|
244
|
+
class: ue(["source-item", { active: d.id === ((S = e.value) == null ? void 0 : S.id) }]),
|
|
240
245
|
key: d.id,
|
|
241
|
-
onClick: (g) =>
|
|
246
|
+
onClick: (g) => Z(d.id)
|
|
242
247
|
}, [
|
|
243
248
|
n("div", he, [
|
|
244
249
|
n("div", {
|
|
245
|
-
style:
|
|
246
|
-
color:
|
|
250
|
+
style: se({
|
|
251
|
+
color: M[d.method.toLocaleUpperCase()]
|
|
247
252
|
})
|
|
248
253
|
}, v(d.method.toLocaleUpperCase()), 5),
|
|
249
254
|
n("div", null, v(d.apiName), 1)
|
|
@@ -260,13 +265,13 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
260
265
|
]),
|
|
261
266
|
n("div", be, [
|
|
262
267
|
n("div", ge, [
|
|
263
|
-
!e.value || !Object.keys(e.value).length ? (m(), p("div", Ve, v(a(
|
|
264
|
-
t(a(
|
|
268
|
+
!e.value || !Object.keys(e.value).length ? (m(), p("div", Ve, v(a(r)("pleaseSelectDataSource")), 1)) : (m(), p("div", _e, [
|
|
269
|
+
t(a(B), {
|
|
265
270
|
ref_key: "ruleFormRef",
|
|
266
271
|
ref: P,
|
|
267
272
|
model: e.value,
|
|
268
273
|
"label-position": "top",
|
|
269
|
-
rules:
|
|
274
|
+
rules: j,
|
|
270
275
|
"label-width": 120
|
|
271
276
|
}, {
|
|
272
277
|
default: s(() => {
|
|
@@ -274,40 +279,40 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
274
279
|
return [
|
|
275
280
|
t(a(N), {
|
|
276
281
|
prop: "apiName",
|
|
277
|
-
label: a(
|
|
282
|
+
label: a(r)("apiName")
|
|
278
283
|
}, {
|
|
279
284
|
default: s(() => [
|
|
280
285
|
t(a(h), {
|
|
281
286
|
clearable: "",
|
|
282
287
|
modelValue: e.value.apiName,
|
|
283
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
284
|
-
placeholder: a(
|
|
288
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => e.value.apiName = u),
|
|
289
|
+
placeholder: a(r)("pleaseEnterApiName")
|
|
285
290
|
}, null, 8, ["modelValue", "placeholder"])
|
|
286
291
|
]),
|
|
287
292
|
_: 1
|
|
288
293
|
}, 8, ["label"]),
|
|
289
294
|
t(a(N), {
|
|
290
295
|
prop: "url",
|
|
291
|
-
label: a(
|
|
296
|
+
label: a(r)("requestUrl")
|
|
292
297
|
}, {
|
|
293
298
|
default: s(() => [
|
|
294
299
|
t(a(h), {
|
|
295
300
|
modelValue: e.value.url,
|
|
296
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
301
|
+
"onUpdate:modelValue": l[1] || (l[1] = (u) => e.value.url = u),
|
|
297
302
|
clearable: "",
|
|
298
|
-
placeholder: a(
|
|
303
|
+
placeholder: a(r)("pleaseEnterRequestUrl")
|
|
299
304
|
}, null, 8, ["modelValue", "placeholder"])
|
|
300
305
|
]),
|
|
301
306
|
_: 1
|
|
302
307
|
}, 8, ["label"]),
|
|
303
308
|
t(a(N), {
|
|
304
|
-
label: a(
|
|
309
|
+
label: a(r)("requestMethod"),
|
|
305
310
|
required: ""
|
|
306
311
|
}, {
|
|
307
312
|
default: s(() => [
|
|
308
|
-
t(a(
|
|
313
|
+
t(a(A), {
|
|
309
314
|
modelValue: e.value.method,
|
|
310
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
315
|
+
"onUpdate:modelValue": l[2] || (l[2] = (u) => e.value.method = u)
|
|
311
316
|
}, {
|
|
312
317
|
default: s(() => [
|
|
313
318
|
t(a(U), {
|
|
@@ -356,14 +361,14 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
356
361
|
t(a(N), {
|
|
357
362
|
prop: "dataKey",
|
|
358
363
|
style: { width: "30%" },
|
|
359
|
-
label: a(
|
|
364
|
+
label: a(r)("labelKey")
|
|
360
365
|
}, {
|
|
361
366
|
default: s(() => [
|
|
362
367
|
t(a(h), {
|
|
363
368
|
modelValue: e.value.dataKey,
|
|
364
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
369
|
+
"onUpdate:modelValue": l[3] || (l[3] = (u) => e.value.dataKey = u),
|
|
365
370
|
clearable: "",
|
|
366
|
-
placeholder: a(
|
|
371
|
+
placeholder: a(r)("pleaseEnterLabelKey")
|
|
367
372
|
}, null, 8, ["modelValue", "placeholder"])
|
|
368
373
|
]),
|
|
369
374
|
_: 1
|
|
@@ -371,28 +376,28 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
371
376
|
t(a(N), {
|
|
372
377
|
prop: "dataValue",
|
|
373
378
|
style: { width: "30%" },
|
|
374
|
-
label: a(
|
|
379
|
+
label: a(r)("valueKey")
|
|
375
380
|
}, {
|
|
376
381
|
default: s(() => [
|
|
377
382
|
t(a(h), {
|
|
378
383
|
modelValue: e.value.dataValue,
|
|
379
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
384
|
+
"onUpdate:modelValue": l[4] || (l[4] = (u) => e.value.dataValue = u),
|
|
380
385
|
clearable: "",
|
|
381
|
-
placeholder: a(
|
|
386
|
+
placeholder: a(r)("pleaseEnterValueKey")
|
|
382
387
|
}, null, 8, ["modelValue", "placeholder"])
|
|
383
388
|
]),
|
|
384
389
|
_: 1
|
|
385
390
|
}, 8, ["label"]),
|
|
386
391
|
t(a(N), {
|
|
387
392
|
style: { width: "33%" },
|
|
388
|
-
label: a(
|
|
393
|
+
label: a(r)("dataPath")
|
|
389
394
|
}, {
|
|
390
395
|
default: s(() => [
|
|
391
396
|
t(a(h), {
|
|
392
397
|
modelValue: e.value.dataPath,
|
|
393
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
398
|
+
"onUpdate:modelValue": l[5] || (l[5] = (u) => e.value.dataPath = u),
|
|
394
399
|
clearable: "",
|
|
395
|
-
placeholder: a(
|
|
400
|
+
placeholder: a(r)("nestedPath")
|
|
396
401
|
}, null, 8, ["modelValue", "placeholder"])
|
|
397
402
|
]),
|
|
398
403
|
_: 1
|
|
@@ -400,7 +405,7 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
400
405
|
]),
|
|
401
406
|
n("div", ke, [
|
|
402
407
|
n("div", Le, [
|
|
403
|
-
n("div", null, v(a(
|
|
408
|
+
n("div", null, v(a(r)("requestParams")), 1),
|
|
404
409
|
t(a(y), {
|
|
405
410
|
onClick: W,
|
|
406
411
|
text: "",
|
|
@@ -409,33 +414,33 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
409
414
|
}, {
|
|
410
415
|
default: s(() => [
|
|
411
416
|
t(a(_), { name: "icon--epic--add-rounded" }),
|
|
412
|
-
V(" " + v(a(
|
|
417
|
+
V(" " + v(a(r)("add")), 1)
|
|
413
418
|
]),
|
|
414
419
|
_: 1
|
|
415
420
|
})
|
|
416
421
|
]),
|
|
417
422
|
(d = e.value) != null && d.paramsList && ((S = e.value) != null && S.paramsList.length) ? (m(), p("div", Ne, [
|
|
418
|
-
(m(!0), p(D, null, J(e.value.paramsList, (
|
|
423
|
+
(m(!0), p(D, null, J(e.value.paramsList, (u, w) => (m(), p("div", {
|
|
419
424
|
class: "content-item",
|
|
420
|
-
key:
|
|
425
|
+
key: u.value
|
|
421
426
|
}, [
|
|
422
427
|
t(a(h), {
|
|
423
|
-
modelValue:
|
|
424
|
-
"onUpdate:modelValue": (c) =>
|
|
428
|
+
modelValue: u.label,
|
|
429
|
+
"onUpdate:modelValue": (c) => u.label = c,
|
|
425
430
|
filterable: "",
|
|
426
431
|
"allow-create": "",
|
|
427
432
|
style: { width: "42%" },
|
|
428
433
|
options: C,
|
|
429
|
-
placeholder: a(
|
|
434
|
+
placeholder: a(r)("paramName")
|
|
430
435
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
431
436
|
t(a(h), {
|
|
432
|
-
modelValue:
|
|
433
|
-
"onUpdate:modelValue": (c) =>
|
|
437
|
+
modelValue: u.value,
|
|
438
|
+
"onUpdate:modelValue": (c) => u.value = c,
|
|
434
439
|
filterable: "",
|
|
435
440
|
"allow-create": "",
|
|
436
441
|
style: { width: "42%" },
|
|
437
442
|
options: C,
|
|
438
|
-
placeholder: a(
|
|
443
|
+
placeholder: a(r)("paramValue")
|
|
439
444
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
440
445
|
t(a(y), {
|
|
441
446
|
onClick: (c) => X(w),
|
|
@@ -451,11 +456,11 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
451
456
|
_: 2
|
|
452
457
|
}, 1032, ["onClick"])
|
|
453
458
|
]))), 128))
|
|
454
|
-
])) :
|
|
459
|
+
])) : F("", !0)
|
|
455
460
|
]),
|
|
456
461
|
n("div", Ce, [
|
|
457
462
|
n("div", Ee, [
|
|
458
|
-
n("div", null, v(a(
|
|
463
|
+
n("div", null, v(a(r)("requestHeaders")), 1),
|
|
459
464
|
t(a(y), {
|
|
460
465
|
onClick: Y,
|
|
461
466
|
text: "",
|
|
@@ -464,36 +469,36 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
464
469
|
}, {
|
|
465
470
|
default: s(() => [
|
|
466
471
|
t(a(_), { name: "icon--epic--add-rounded" }),
|
|
467
|
-
V(" " + v(a(
|
|
472
|
+
V(" " + v(a(r)("add")), 1)
|
|
468
473
|
]),
|
|
469
474
|
_: 1
|
|
470
475
|
})
|
|
471
476
|
]),
|
|
472
477
|
(g = e.value) != null && g.headerList && ((i = e.value) != null && i.headerList.length) ? (m(), p("div", we, [
|
|
473
|
-
(m(!0), p(D, null, J(e.value.headerList, (
|
|
478
|
+
(m(!0), p(D, null, J(e.value.headerList, (u, w) => (m(), p("div", {
|
|
474
479
|
class: "content-item",
|
|
475
480
|
key: w
|
|
476
481
|
}, [
|
|
477
482
|
t(a(h), {
|
|
478
|
-
modelValue:
|
|
479
|
-
"onUpdate:modelValue": (c) =>
|
|
483
|
+
modelValue: u.label,
|
|
484
|
+
"onUpdate:modelValue": (c) => u.label = c,
|
|
480
485
|
filterable: "",
|
|
481
486
|
"allow-create": "",
|
|
482
487
|
style: { width: "42%" },
|
|
483
488
|
options: C,
|
|
484
|
-
placeholder: a(
|
|
489
|
+
placeholder: a(r)("paramName")
|
|
485
490
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
486
491
|
t(a(h), {
|
|
487
|
-
modelValue:
|
|
488
|
-
"onUpdate:modelValue": (c) =>
|
|
492
|
+
modelValue: u.value,
|
|
493
|
+
"onUpdate:modelValue": (c) => u.value = c,
|
|
489
494
|
filterable: "",
|
|
490
495
|
"allow-create": "",
|
|
491
496
|
style: { width: "42%" },
|
|
492
497
|
options: C,
|
|
493
|
-
placeholder: a(
|
|
498
|
+
placeholder: a(r)("paramValue")
|
|
494
499
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
495
500
|
t(a(y), {
|
|
496
|
-
onClick: (c) =>
|
|
501
|
+
onClick: (c) => ee(w),
|
|
497
502
|
type: "danger",
|
|
498
503
|
circle: ""
|
|
499
504
|
}, {
|
|
@@ -506,49 +511,49 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
506
511
|
_: 2
|
|
507
512
|
}, 1032, ["onClick"])
|
|
508
513
|
]))), 128))
|
|
509
|
-
])) :
|
|
514
|
+
])) : F("", !0)
|
|
510
515
|
]),
|
|
511
516
|
n("div", Oe, [
|
|
512
517
|
n("div", Ue, [
|
|
513
|
-
n("div", null, v(a(
|
|
518
|
+
n("div", null, v(a(r)("requestBody")), 1),
|
|
514
519
|
t(a(y), {
|
|
515
|
-
onClick:
|
|
520
|
+
onClick: ae,
|
|
516
521
|
text: "",
|
|
517
522
|
type: "primary",
|
|
518
523
|
class: "btn"
|
|
519
524
|
}, {
|
|
520
525
|
default: s(() => [
|
|
521
526
|
t(a(_), { name: "icon--epic--add-rounded" }),
|
|
522
|
-
V(" " + v(a(
|
|
527
|
+
V(" " + v(a(r)("add")), 1)
|
|
523
528
|
]),
|
|
524
529
|
_: 1
|
|
525
530
|
})
|
|
526
531
|
]),
|
|
527
532
|
(E = e.value) != null && E.bodyList && ((k = e.value) != null && k.bodyList.length) ? (m(), p("div", De, [
|
|
528
|
-
(m(!0), p(D, null, J(e.value.bodyList, (
|
|
533
|
+
(m(!0), p(D, null, J(e.value.bodyList, (u, w) => (m(), p("div", {
|
|
529
534
|
class: "content-item",
|
|
530
535
|
key: w
|
|
531
536
|
}, [
|
|
532
537
|
t(a(h), {
|
|
533
|
-
modelValue:
|
|
534
|
-
"onUpdate:modelValue": (c) =>
|
|
538
|
+
modelValue: u.label,
|
|
539
|
+
"onUpdate:modelValue": (c) => u.label = c,
|
|
535
540
|
filterable: "",
|
|
536
541
|
"allow-create": "",
|
|
537
542
|
style: { width: "42%" },
|
|
538
543
|
options: C,
|
|
539
|
-
placeholder: a(
|
|
544
|
+
placeholder: a(r)("paramName")
|
|
540
545
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
541
546
|
t(a(h), {
|
|
542
|
-
modelValue:
|
|
543
|
-
"onUpdate:modelValue": (c) =>
|
|
547
|
+
modelValue: u.value,
|
|
548
|
+
"onUpdate:modelValue": (c) => u.value = c,
|
|
544
549
|
filterable: "",
|
|
545
550
|
"allow-create": "",
|
|
546
551
|
style: { width: "42%" },
|
|
547
552
|
options: C,
|
|
548
|
-
placeholder: a(
|
|
553
|
+
placeholder: a(r)("paramValue")
|
|
549
554
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"]),
|
|
550
555
|
t(a(y), {
|
|
551
|
-
onClick: l[6] || (l[6] = (c) =>
|
|
556
|
+
onClick: l[6] || (l[6] = (c) => le(o.i)),
|
|
552
557
|
type: "danger",
|
|
553
558
|
circle: ""
|
|
554
559
|
}, {
|
|
@@ -561,15 +566,15 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
561
566
|
_: 1
|
|
562
567
|
})
|
|
563
568
|
]))), 128))
|
|
564
|
-
])) :
|
|
569
|
+
])) : F("", !0)
|
|
565
570
|
]),
|
|
566
571
|
n("div", Je, [
|
|
567
572
|
t(a(y), {
|
|
568
573
|
type: "info",
|
|
569
|
-
onClick:
|
|
574
|
+
onClick: te
|
|
570
575
|
}, {
|
|
571
576
|
default: s(() => [
|
|
572
|
-
V(v(a(
|
|
577
|
+
V(v(a(r)("requestTest")), 1)
|
|
573
578
|
]),
|
|
574
579
|
_: 1
|
|
575
580
|
}),
|
|
@@ -578,7 +583,7 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
578
583
|
onClick: K
|
|
579
584
|
}, {
|
|
580
585
|
default: s(() => [
|
|
581
|
-
V(v(a(
|
|
586
|
+
V(v(a(r)("save")), 1)
|
|
582
587
|
]),
|
|
583
588
|
_: 1
|
|
584
589
|
})
|
|
@@ -598,5 +603,5 @@ const ce = { class: "e-data-source" }, me = { class: "icon-numbers" }, pe = { cl
|
|
|
598
603
|
}
|
|
599
604
|
});
|
|
600
605
|
export {
|
|
601
|
-
|
|
606
|
+
Ae as default
|
|
602
607
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as h
|
|
2
|
-
const
|
|
1
|
+
import { ref as h } from "vue";
|
|
2
|
+
const C = {
|
|
3
3
|
component: "Component",
|
|
4
4
|
outline: "Outline",
|
|
5
5
|
style: "Style",
|
|
@@ -242,8 +242,10 @@ const S = {
|
|
|
242
242
|
saveForm: "Save Form",
|
|
243
243
|
clickToUpload: "Click to Upload",
|
|
244
244
|
row: "Row",
|
|
245
|
-
column: "Column"
|
|
246
|
-
|
|
245
|
+
column: "Column",
|
|
246
|
+
searchNode: "Search Node",
|
|
247
|
+
noDataFound: "No Data Found"
|
|
248
|
+
}, f = {
|
|
247
249
|
component: "组件",
|
|
248
250
|
outline: "大纲",
|
|
249
251
|
style: "样式",
|
|
@@ -486,7 +488,9 @@ const S = {
|
|
|
486
488
|
saveForm: "保存表单",
|
|
487
489
|
clickToUpload: "点击上传",
|
|
488
490
|
row: "行",
|
|
489
|
-
column: "列"
|
|
491
|
+
column: "列",
|
|
492
|
+
searchNode: "搜索节点",
|
|
493
|
+
noDataFound: "没有查询到的数据"
|
|
490
494
|
};
|
|
491
495
|
/*! js-cookie v3.0.5 | MIT */
|
|
492
496
|
function u(e) {
|
|
@@ -497,7 +501,7 @@ function u(e) {
|
|
|
497
501
|
}
|
|
498
502
|
return e;
|
|
499
503
|
}
|
|
500
|
-
var
|
|
504
|
+
var S = {
|
|
501
505
|
read: function(e) {
|
|
502
506
|
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
503
507
|
},
|
|
@@ -558,24 +562,20 @@ function p(e, a) {
|
|
|
558
562
|
}
|
|
559
563
|
);
|
|
560
564
|
}
|
|
561
|
-
var s = p(
|
|
565
|
+
var s = p(S, { path: "/" });
|
|
562
566
|
const g = {
|
|
563
|
-
"en-US":
|
|
564
|
-
"zh-CN":
|
|
565
|
-
},
|
|
566
|
-
const e = h(
|
|
567
|
+
"en-US": C,
|
|
568
|
+
"zh-CN": f
|
|
569
|
+
}, F = s.get("saas-locale") || "zh-CN", T = () => {
|
|
570
|
+
const e = h(F), a = () => {
|
|
567
571
|
document.visibilityState === "visible" && e.value !== s.get("saas-locale") && Object.keys(g).includes(s.get("saas-locale")) && (e.value = s.get("saas-locale"));
|
|
568
572
|
}, n = (r) => g[e.value][r];
|
|
569
|
-
return
|
|
570
|
-
document.addEventListener("visibilitychange", a);
|
|
571
|
-
}), f(() => {
|
|
572
|
-
document.removeEventListener("visibilitychange", a);
|
|
573
|
-
}), a(), {
|
|
573
|
+
return a(), {
|
|
574
574
|
locale: e,
|
|
575
575
|
t: n
|
|
576
576
|
};
|
|
577
577
|
};
|
|
578
578
|
export {
|
|
579
579
|
s as a,
|
|
580
|
-
|
|
580
|
+
T as u
|
|
581
581
|
};
|