epic-designer-gold 0.0.8 → 0.0.10

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.
Files changed (36) hide show
  1. package/dist/{attributeView-DYltJe-a.cjs → attributeView-DU2TCl82.cjs} +1 -1
  2. package/dist/{attributeView-Dk2EmHZW.js → attributeView-u87puklW.js} +1 -1
  3. package/dist/{eventView-Ba0hP27z.js → eventView-3jlgsbYv.js} +1 -1
  4. package/dist/{eventView-BoaACVjO.cjs → eventView-DlM9PXFS.cjs} +1 -1
  5. package/dist/{index-DF9HRIW0.js → index-B44ldwiI.js} +8 -8
  6. package/dist/{index-DDJ5D8mV.js → index-BTe6WMoJ.js} +1 -1
  7. package/dist/index-BZ70tu0m.cjs +1 -0
  8. package/dist/{index-BeuOcsj8.cjs → index-Bhd9Utr6.cjs} +1 -1
  9. package/dist/index-Bk1B4RlV.cjs +1 -0
  10. package/dist/index-BxQ1aSj3.js +215 -0
  11. package/dist/{index-BVhjDWdX.cjs → index-C9dq3Qx9.cjs} +1 -1
  12. package/dist/{index-NhfJlz-p.cjs → index-CFryUxKc.cjs} +2 -2
  13. package/dist/{index-CZVWdeNF.cjs → index-CT6Df8VO.cjs} +1 -1
  14. package/dist/{index-DHblJXI8.js → index-CYPhbix8.js} +1 -1
  15. package/dist/{index-MEVHj2X7.cjs → index-CZeYVxo4.cjs} +1 -1
  16. package/dist/index-CgVTdX64.js +4 -0
  17. package/dist/{index-YpOtOenY.cjs → index-Cx2JsRRr.cjs} +1 -1
  18. package/dist/{index-J_nNkP8R.js → index-D6CL7QdF.js} +1 -1
  19. package/dist/{index-CFXmvMyl.js → index-DZxe3Mh2.js} +1 -1
  20. package/dist/{index-B70ZM-RH.js → index-DwxSF-EA.js} +1 -1
  21. package/dist/{index-CZaokqYw.js → index-FHuEonxg.js} +215 -193
  22. package/dist/{index-Bnxp-82r.js → index-GG-x1fxs.js} +1 -1
  23. package/dist/{index-BY7CyvD0.cjs → index-KbBptC7N.cjs} +1 -1
  24. package/dist/{index-B0o9Uauj.cjs → index-TLhJz2ch.cjs} +1 -1
  25. package/dist/{index-CsXf1tm6.js → index-r1WNNgF-.js} +1 -1
  26. package/dist/{index-DVWvjN5E.cjs → index-xDLPhT_Q.cjs} +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/{styleView-AFQHYzcB.cjs → styleView-C7t4u5ue.cjs} +1 -1
  31. package/dist/{styleView-t3KSRoDD.js → styleView-wqJjZQTl.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/index-BeWY4egz.js +0 -4
  34. package/dist/index-CmtFrV57.cjs +0 -1
  35. package/dist/index-D0L7sZbE.cjs +0 -1
  36. package/dist/index-Khkd8Z00.js +0 -205
@@ -1,61 +1,65 @@
1
- import { defineComponent as le, ref as N, reactive as te, onMounted as oe, openBlock as m, createElementBlock as p, createVNode as l, unref as t, withCtx as n, createElementVNode as s, toDisplayString as P, Fragment as O, renderList as U, normalizeClass as ue, createTextVNode as v, createCommentVNode as x } from "vue";
2
- import { p as c, E as J } from "./pluginManager-D8PM7ICc.js";
3
- import { ElMessage as L } from "element-plus";
1
+ import { defineComponent as te, ref as O, reactive as oe, onMounted as ue, openBlock as m, createElementBlock as p, createVNode as a, unref as t, withCtx as n, createElementVNode as s, toDisplayString as R, Fragment as E, renderList as D, normalizeClass as de, normalizeStyle as ne, createTextVNode as y, createCommentVNode as F } from "vue";
2
+ import { p as v, E as J } from "./pluginManager-D8PM7ICc.js";
3
+ import { ElMessage as k } from "element-plus";
4
4
  import { _ as b } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
5
- import { a as de } from "./axios-CXDYiOMX.js";
6
- const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { class: "drawer-content" }, ie = { class: "drawer-content-left" }, me = ["onClick"], pe = { class: "source-item-title" }, ve = ["onClick"], ce = { class: "drawer-content-right" }, fe = { class: "content" }, ye = {
5
+ import { a as se } from "./axios-CXDYiOMX.js";
6
+ const re = { class: "e-data-source" }, ie = { class: "icon-numbers" }, me = { class: "drawer-content" }, pe = { class: "drawer-content-left" }, ve = ["onClick"], ce = { class: "source-item-title" }, fe = ["onClick"], ye = { class: "drawer-content-right" }, be = { class: "content" }, ge = {
7
7
  key: 0,
8
8
  class: "content-empty"
9
- }, be = {
9
+ }, he = {
10
10
  key: 1,
11
11
  class: "content-form"
12
- }, ge = { class: "form-flex" }, Ve = { class: "form-item" }, he = { class: "form-item-title" }, _e = {
12
+ }, Ve = { class: "form-flex" }, ke = { class: "form-item" }, _e = { class: "form-item-title" }, Le = {
13
13
  key: 0,
14
14
  class: "form-item-content"
15
- }, ke = { class: "form-item" }, Ce = { class: "form-item-title" }, Le = {
15
+ }, Se = { class: "form-item" }, Ce = { class: "form-item-title" }, we = {
16
16
  key: 0,
17
17
  class: "form-item-content"
18
- }, Se = { class: "form-item" }, Ne = { class: "form-item-title" }, we = {
18
+ }, Ne = { class: "form-item" }, Oe = { class: "form-item-title" }, Ue = {
19
19
  key: 0,
20
20
  class: "form-item-content"
21
- }, Oe = { class: "content-right-btn" }, Te = /* @__PURE__ */ le({
21
+ }, Ee = { class: "content-right-btn" }, Ke = /* @__PURE__ */ te({
22
22
  __name: "index",
23
23
  emits: ["update:modelValue", "update:sourceData"],
24
- setup(Ue, { emit: Je }) {
25
- const y = c.getComponent("button"), F = c.getComponent("Drawer"), S = c.getComponent("input"), h = c.getComponent("FormItem"), K = c.getComponent("Form"), q = c.getComponent("RadioGroup"), w = c.getComponent("RadioButton"), _ = c.getComponent("select");
26
- c.getComponent("switch");
27
- const D = N(), B = N(0), $ = te({
24
+ setup(De, { emit: Je }) {
25
+ const c = v.getComponent("button"), K = v.getComponent("Drawer"), N = v.getComponent("input"), _ = v.getComponent("FormItem"), j = v.getComponent("Form"), q = v.getComponent("RadioGroup"), U = v.getComponent("RadioButton"), L = v.getComponent("select");
26
+ v.getComponent("switch");
27
+ const x = O(), B = {
28
+ GET: "#67c23a",
29
+ POST: "#e6a23c",
30
+ PUT: "#409eff",
31
+ DELETE: "#f56c6c"
32
+ }, M = O(0), $ = oe({
28
33
  apiName: [{ required: !0, message: "请输入接口名称", trigger: "blur" }],
29
34
  url: [{ required: !0, message: "请输入请求地址", trigger: "blur" }],
30
35
  dataKey: [{ required: !0, message: "请输入标签键名", trigger: "blur" }],
31
36
  dataValue: [{ required: !0, message: "请输入值键名", trigger: "blur" }]
32
- }), E = N(!1), V = N([]), e = N(), k = [
37
+ }), P = O(!1), h = O([]), e = O(), S = [
33
38
  {
34
39
  label: "1",
35
40
  value: "1"
36
41
  }
37
42
  ];
38
- function I() {
39
- E.value = !0;
43
+ function z() {
44
+ P.value = !0;
40
45
  }
41
- function M() {
46
+ function G() {
42
47
  const o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
43
48
  return o.charAt(Math.floor(Math.random() * o.length));
44
49
  }
45
- function j(o) {
46
- let a = "";
50
+ function I(o) {
51
+ let l = "";
47
52
  for (let u = 0; u < o; u++)
48
- a += M();
49
- return a;
53
+ l += G();
54
+ return l;
50
55
  }
51
- function G() {
52
- e.value = {
56
+ function A() {
57
+ console.log("%c [ ]-249", "font-size:13px; background:pink; color:#bf2c9f;", e.value), !e.value || e.value.id || !Object.keys(e.value).length ? (e.value = {
53
58
  id: "",
54
59
  url: "",
55
60
  body: {},
56
61
  bodyList: [],
57
- // init: false,
58
- apiName: `数据源_${j(5)}`,
62
+ apiName: `数据源_${I(5)}`,
59
63
  method: "get",
60
64
  params: {},
61
65
  paramsList: [],
@@ -64,11 +68,11 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
64
68
  headerList: [],
65
69
  dataPath: "",
66
70
  dataValue: "id"
67
- }, V.value.push(e.value);
71
+ }, h.value.push(e.value)) : e.value.id || T();
68
72
  }
69
- function A(o) {
70
- var a;
71
- V.value = JSON.parse(JSON.stringify(c.getSourceData())), ((a = e.value) == null ? void 0 : a.id) === o ? e.value = {} : (e.value = V.value.find((u) => u.id === o), e.value.paramsList = Object.keys(JSON.parse(e.value.params)).map((u) => ({
73
+ function H(o) {
74
+ var l;
75
+ console.log("%c [ ]-271", "font-size:13px; background:pink; color:#bf2c9f;", e.value), !e.value || e.value.id || !Object.keys(e.value).length ? (h.value = JSON.parse(JSON.stringify(v.getSourceData())), ((l = e.value) == null ? void 0 : l.id) === o ? e.value = {} : (e.value = h.value.find((u) => u.id === o), e.value.paramsList = Object.keys(JSON.parse(e.value.params)).map((u) => ({
72
76
  label: u,
73
77
  value: JSON.parse(e.value.params)[u]
74
78
  })), e.value.bodyList = Object.keys(JSON.parse(e.value.body)).map((u) => ({
@@ -77,53 +81,53 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
77
81
  })), e.value.headerList = Object.keys(JSON.parse(e.value.headers)).map((u) => ({
78
82
  label: u,
79
83
  value: JSON.parse(e.value.headers)[u]
80
- })));
84
+ })))) : T();
81
85
  }
82
- function z(o) {
86
+ function Q(o) {
83
87
  J.emit("deleteSourceData", o);
84
88
  }
85
- function H() {
89
+ function W() {
86
90
  var o;
87
91
  (o = e.value) == null || o.paramsList.push({
88
92
  label: "",
89
93
  value: ""
90
94
  });
91
95
  }
92
- function Q(o) {
96
+ function X(o) {
93
97
  e.value.paramsList.splice(o, 1);
94
98
  }
95
- function W() {
99
+ function Y() {
96
100
  var o;
97
101
  (o = e.value) == null || o.headerList.push({
98
102
  label: "",
99
103
  value: ""
100
104
  });
101
105
  }
102
- function X(o) {
106
+ function Z(o) {
103
107
  e.value.headerList.splice(o, 1);
104
108
  }
105
- function Y() {
109
+ function ee() {
106
110
  var o;
107
111
  (o = e.value) == null || o.bodyList.push({
108
112
  label: "",
109
113
  value: ""
110
114
  });
111
115
  }
112
- function Z(o) {
116
+ function le(o) {
113
117
  e.value.bodyList.splice(o, 1);
114
118
  }
115
- oe(() => {
116
- V.value = JSON.parse(JSON.stringify(c.getSourceData()));
119
+ ue(() => {
120
+ h.value = JSON.parse(JSON.stringify(v.getSourceData()));
117
121
  }), J.on("updateSource", (o) => {
118
- V.value = JSON.parse(JSON.stringify(c.getSourceData()));
122
+ h.value = JSON.parse(JSON.stringify(v.getSourceData()));
119
123
  });
120
- async function ee() {
121
- D.value.validate(async (o) => {
124
+ async function ae() {
125
+ x.value.validate(async (o) => {
122
126
  if (o)
123
127
  try {
124
- const a = {};
128
+ const l = {};
125
129
  e.value.paramsList.forEach((r) => {
126
- a[r.label] = r.value;
130
+ l[r.label] = r.value;
127
131
  });
128
132
  const u = {};
129
133
  e.value.bodyList.forEach((r) => {
@@ -133,42 +137,47 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
133
137
  e.value.headerList.forEach((r) => {
134
138
  g[r.label] = r.value;
135
139
  });
136
- let f = await de({
140
+ let f = await se({
137
141
  method: e.value.method,
138
142
  // url: formData.value.url,
139
- url: "http://localhost:3333/users",
140
- params: a,
143
+ // url: "http://localhost:3333/users",
144
+ url: e.value.url,
145
+ params: l,
141
146
  data: u,
142
147
  headers: g
143
148
  });
144
- e.value.dataPath ? f.data[e.value.dataPath] && f.data[e.value.dataPath].length ? L({
145
- message: f.data[e.value.dataPath].map((r) => ({
146
- label: r[e.value.dataKey],
147
- value: r[e.value.dataValue]
148
- }))
149
- }) : L.info("配置错误") : f.data && f.data.length ? L({
150
- message: f.data.map((r) => ({
151
- label: r[e.value.dataKey],
152
- value: r[e.value.dataValue]
153
- }))
154
- }) : L.info("配置错误");
149
+ if (e.value.dataPath) {
150
+ const C = e.value.dataPath.split(".").reduce((V, d) => V[d], f.data);
151
+ C && C.length ? k({
152
+ message: C.map((V) => ({
153
+ label: V[e.value.dataKey],
154
+ value: V[e.value.dataValue]
155
+ }))
156
+ }) : k.info("配置错误");
157
+ } else
158
+ f.data && f.data.length ? k({
159
+ message: f.data.map((r) => ({
160
+ label: r[e.value.dataKey],
161
+ value: r[e.value.dataValue]
162
+ }))
163
+ }) : k.info("配置错误");
155
164
  } catch {
156
- L.error("请求失败");
165
+ k.error("请求失败");
157
166
  } finally {
158
167
  }
159
168
  else
160
- L.error("请填写必填项");
169
+ k.error("请填写必填项");
161
170
  });
162
171
  }
163
- async function ae() {
164
- e.value.body = e.value.bodyList.reduce((o, a) => (o[a.label] = a.value, o), {}), e.value.params = e.value.paramsList.reduce(
165
- (o, a) => (o[a.label] = a.value, o),
172
+ async function T() {
173
+ e.value.body = e.value.bodyList.reduce((o, l) => (o[l.label] = l.value, o), {}), e.value.params = e.value.paramsList.reduce(
174
+ (o, l) => (o[l.label] = l.value, o),
166
175
  {}
167
176
  ), e.value.headers = e.value.headerList.reduce(
168
- (o, a) => (o[a.label] = a.value, o),
177
+ (o, l) => (o[l.label] = l.value, o),
169
178
  {}
170
- ), D.value.validate((o) => {
171
- o && (e.value.id ? (J.emit("updateSourceData", {
179
+ ), x.value.validate((o) => {
180
+ o ? e.value.id ? (J.emit("updateSourceData", {
172
181
  ...e.value,
173
182
  body: JSON.stringify(e.value.body),
174
183
  params: JSON.stringify(e.value.params),
@@ -178,152 +187,159 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
178
187
  body: JSON.stringify(e.value.body),
179
188
  params: JSON.stringify(e.value.params),
180
189
  headers: JSON.stringify(e.value.headers)
181
- }), e.value = {}));
190
+ }), e.value = {}) : k.warning("请先完善表单");
182
191
  });
183
192
  }
184
- return (o, a) => (m(), p("div", ne, [
185
- l(t(y), {
193
+ return (o, l) => (m(), p("div", re, [
194
+ a(t(c), {
186
195
  class: "btn",
187
- onClick: I
196
+ onClick: z
188
197
  }, {
189
198
  default: n(() => [
190
- l(t(b), {
199
+ a(t(b), {
191
200
  name: "icon--epic--window-outline",
192
201
  class: "mr-4px"
193
202
  }),
194
- a[8] || (a[8] = s("span", null, "配置", -1)),
195
- s("span", se, P(B.value || V.value.length), 1)
203
+ l[8] || (l[8] = s("span", null, "配置", -1)),
204
+ s("span", ie, R(M.value || h.value.length), 1)
196
205
  ]),
197
206
  _: 1
198
207
  }),
199
- l(t(F), {
200
- size: 800,
201
- modelValue: E.value,
202
- "onUpdate:modelValue": a[7] || (a[7] = (u) => E.value = u),
208
+ a(t(K), {
209
+ size: 960,
210
+ modelValue: P.value,
211
+ "onUpdate:modelValue": l[7] || (l[7] = (u) => P.value = u),
203
212
  "append-to-body": "",
204
213
  title: "数据源"
205
214
  }, {
206
215
  default: n(() => [
207
- s("div", re, [
208
- s("div", ie, [
209
- l(t(y), {
216
+ s("div", me, [
217
+ s("div", pe, [
218
+ a(t(c), {
210
219
  type: "primary",
211
220
  class: "btn",
212
- onClick: G
221
+ onClick: A
213
222
  }, {
214
223
  default: n(() => [
215
- l(t(b), {
224
+ a(t(b), {
216
225
  name: "icon--epic--add-rounded",
217
226
  class: "mr-4px"
218
227
  }),
219
- a[9] || (a[9] = s("span", null, "新增数据源", -1))
228
+ l[9] || (l[9] = s("span", null, "新增数据源", -1))
220
229
  ]),
221
230
  _: 1
222
231
  }),
223
232
  s("div", null, [
224
- (m(!0), p(O, null, U(V.value, (u) => {
233
+ (m(!0), p(E, null, D(h.value, (u) => {
225
234
  var g;
226
235
  return m(), p("div", {
227
- class: ue(["source-item", { active: u.id === ((g = e.value) == null ? void 0 : g.id) }]),
236
+ class: de(["source-item", { active: u.id === ((g = e.value) == null ? void 0 : g.id) }]),
228
237
  key: u.id,
229
- onClick: (f) => A(u.id)
238
+ onClick: (f) => H(u.id)
230
239
  }, [
231
- s("div", pe, [
232
- s("div", null, P(u.method.toLocaleUpperCase()), 1),
233
- s("div", null, P(u.apiName), 1)
240
+ s("div", ce, [
241
+ s("div", {
242
+ style: ne({
243
+ color: B[u.method.toLocaleUpperCase()]
244
+ })
245
+ }, R(u.method.toLocaleUpperCase()), 5),
246
+ s("div", null, R(u.apiName), 1)
234
247
  ]),
235
248
  s("div", {
236
- onClick: (f) => z(u.id),
249
+ onClick: (f) => Q(u.id),
237
250
  class: "source-item-icon"
238
251
  }, [
239
- l(t(b), { name: "icon--epic--delete-outline-rounded" })
240
- ], 8, ve)
241
- ], 10, me);
252
+ a(t(b), { name: "icon--epic--delete-outline-rounded" })
253
+ ], 8, fe)
254
+ ], 10, ve);
242
255
  }), 128))
243
256
  ])
244
257
  ]),
245
- s("div", ce, [
246
- s("div", fe, [
247
- !e.value || !Object.keys(e.value).length ? (m(), p("div", ye, "请选择数据源")) : (m(), p("div", be, [
248
- l(t(K), {
258
+ s("div", ye, [
259
+ s("div", be, [
260
+ !e.value || !Object.keys(e.value).length ? (m(), p("div", ge, "请选择数据源")) : (m(), p("div", he, [
261
+ a(t(j), {
249
262
  ref_key: "ruleFormRef",
250
- ref: D,
263
+ ref: x,
251
264
  model: e.value,
252
265
  "label-position": "top",
253
266
  rules: $,
254
267
  "label-width": 120
255
268
  }, {
256
269
  default: n(() => {
257
- var u, g, f, r, R, T;
270
+ var u, g, f, r, C, V;
258
271
  return [
259
- l(t(h), {
272
+ a(t(_), {
260
273
  prop: "apiName",
261
274
  label: "接口名称"
262
275
  }, {
263
276
  default: n(() => [
264
- l(t(S), {
277
+ a(t(N), {
265
278
  clearable: "",
266
279
  modelValue: e.value.apiName,
267
- "onUpdate:modelValue": a[0] || (a[0] = (d) => e.value.apiName = d)
280
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => e.value.apiName = d),
281
+ placeholder: "请输入接口名称"
268
282
  }, null, 8, ["modelValue"])
269
283
  ]),
270
284
  _: 1
271
285
  }),
272
- l(t(h), {
286
+ a(t(_), {
273
287
  prop: "url",
274
288
  label: "请求地址"
275
289
  }, {
276
290
  default: n(() => [
277
- l(t(S), {
291
+ a(t(N), {
278
292
  modelValue: e.value.url,
279
- "onUpdate:modelValue": a[1] || (a[1] = (d) => e.value.url = d)
293
+ "onUpdate:modelValue": l[1] || (l[1] = (d) => e.value.url = d),
294
+ clearable: "",
295
+ placeholder: "请输入完整的请求地址"
280
296
  }, null, 8, ["modelValue"])
281
297
  ]),
282
298
  _: 1
283
299
  }),
284
- l(t(h), {
300
+ a(t(_), {
285
301
  label: "请求方法",
286
302
  required: ""
287
303
  }, {
288
304
  default: n(() => [
289
- l(t(q), {
305
+ a(t(q), {
290
306
  modelValue: e.value.method,
291
- "onUpdate:modelValue": a[2] || (a[2] = (d) => e.value.method = d)
307
+ "onUpdate:modelValue": l[2] || (l[2] = (d) => e.value.method = d)
292
308
  }, {
293
309
  default: n(() => [
294
- l(t(w), {
310
+ a(t(U), {
295
311
  label: "GET",
296
312
  value: "get"
297
313
  }, {
298
- default: n(() => a[10] || (a[10] = [
299
- v("GET")
314
+ default: n(() => l[10] || (l[10] = [
315
+ y("GET")
300
316
  ])),
301
317
  _: 1
302
318
  }),
303
- l(t(w), {
319
+ a(t(U), {
304
320
  label: "POST",
305
321
  value: "post"
306
322
  }, {
307
- default: n(() => a[11] || (a[11] = [
308
- v("POST")
323
+ default: n(() => l[11] || (l[11] = [
324
+ y("POST")
309
325
  ])),
310
326
  _: 1
311
327
  }),
312
- l(t(w), {
328
+ a(t(U), {
313
329
  label: "PUT",
314
330
  value: "put"
315
331
  }, {
316
- default: n(() => a[12] || (a[12] = [
317
- v("PUT")
332
+ default: n(() => l[12] || (l[12] = [
333
+ y("PUT")
318
334
  ])),
319
335
  _: 1
320
336
  }),
321
- l(t(w), {
337
+ a(t(U), {
322
338
  label: "DELETE",
323
339
  value: "delete"
324
340
  }, {
325
- default: n(() => a[13] || (a[13] = [
326
- v("DELETE")
341
+ default: n(() => l[13] || (l[13] = [
342
+ y("DELETE")
327
343
  ])),
328
344
  _: 1
329
345
  })
@@ -333,92 +349,98 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
333
349
  ]),
334
350
  _: 1
335
351
  }),
336
- s("div", ge, [
337
- l(t(h), {
352
+ s("div", Ve, [
353
+ a(t(_), {
338
354
  prop: "dataKey",
339
355
  style: { width: "30%" },
340
356
  label: "标签键名"
341
357
  }, {
342
358
  default: n(() => [
343
- l(t(S), {
359
+ a(t(N), {
344
360
  modelValue: e.value.dataKey,
345
- "onUpdate:modelValue": a[3] || (a[3] = (d) => e.value.dataKey = d)
361
+ "onUpdate:modelValue": l[3] || (l[3] = (d) => e.value.dataKey = d),
362
+ clearable: "",
363
+ placeholder: "请输入标签键名"
346
364
  }, null, 8, ["modelValue"])
347
365
  ]),
348
366
  _: 1
349
367
  }),
350
- l(t(h), {
368
+ a(t(_), {
351
369
  prop: "dataValue",
352
370
  style: { width: "30%" },
353
371
  label: "值键名"
354
372
  }, {
355
373
  default: n(() => [
356
- l(t(S), {
374
+ a(t(N), {
357
375
  modelValue: e.value.dataValue,
358
- "onUpdate:modelValue": a[4] || (a[4] = (d) => e.value.dataValue = d)
376
+ "onUpdate:modelValue": l[4] || (l[4] = (d) => e.value.dataValue = d),
377
+ clearable: "",
378
+ placeholder: "请输入值键名"
359
379
  }, null, 8, ["modelValue"])
360
380
  ]),
361
381
  _: 1
362
382
  }),
363
- l(t(h), {
383
+ a(t(_), {
364
384
  style: { width: "33%" },
365
385
  label: "数据位置"
366
386
  }, {
367
387
  default: n(() => [
368
- l(t(S), {
388
+ a(t(N), {
369
389
  modelValue: e.value.dataPath,
370
- "onUpdate:modelValue": a[5] || (a[5] = (d) => e.value.dataPath = d)
390
+ "onUpdate:modelValue": l[5] || (l[5] = (d) => e.value.dataPath = d),
391
+ clearable: "",
392
+ placeholder: "多层嵌套使用.分隔"
371
393
  }, null, 8, ["modelValue"])
372
394
  ]),
373
395
  _: 1
374
396
  })
375
397
  ]),
376
- s("div", Ve, [
377
- s("div", he, [
378
- a[15] || (a[15] = v(" 请求参数 ")),
379
- l(t(y), {
380
- onClick: H,
398
+ s("div", ke, [
399
+ s("div", _e, [
400
+ l[15] || (l[15] = s("div", null, "请求参数", -1)),
401
+ a(t(c), {
402
+ onClick: W,
381
403
  text: "",
382
404
  type: "primary",
383
405
  class: "btn"
384
406
  }, {
385
407
  default: n(() => [
386
- l(t(b), { name: "icon--epic--add-rounded" }),
387
- a[14] || (a[14] = v(" 添加 "))
408
+ a(t(b), { name: "icon--epic--add-rounded" }),
409
+ l[14] || (l[14] = y(" 添加 "))
388
410
  ]),
389
411
  _: 1
390
412
  })
391
413
  ]),
392
- (u = e.value) != null && u.paramsList && ((g = e.value) != null && g.paramsList.length) ? (m(), p("div", _e, [
393
- (m(!0), p(O, null, U(e.value.paramsList, (d, C) => (m(), p("div", {
414
+ (u = e.value) != null && u.paramsList && ((g = e.value) != null && g.paramsList.length) ? (m(), p("div", Le, [
415
+ (m(!0), p(E, null, D(e.value.paramsList, (d, w) => (m(), p("div", {
394
416
  class: "content-item",
395
417
  key: d.value
396
418
  }, [
397
- l(t(_), {
419
+ a(t(L), {
398
420
  modelValue: d.label,
399
421
  "onUpdate:modelValue": (i) => d.label = i,
400
422
  filterable: "",
401
423
  "allow-create": "",
402
424
  style: { width: "42%" },
403
- options: k,
425
+ options: S,
404
426
  placeholder: "参数名"
405
427
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
406
- l(t(_), {
428
+ a(t(L), {
407
429
  modelValue: d.value,
408
430
  "onUpdate:modelValue": (i) => d.value = i,
409
431
  filterable: "",
410
432
  "allow-create": "",
411
433
  style: { width: "42%" },
412
- options: k,
434
+ options: S,
413
435
  placeholder: "参数值"
414
436
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
415
- l(t(y), {
416
- onClick: (i) => Q(C),
437
+ a(t(c), {
438
+ onClick: (i) => X(w),
417
439
  type: "danger",
418
440
  circle: ""
419
441
  }, {
420
442
  default: n(() => [
421
- l(t(b), {
443
+ a(t(b), {
422
444
  style: { color: "#fff" },
423
445
  name: "icon--epic--delete-outline-rounded"
424
446
  })
@@ -426,54 +448,54 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
426
448
  _: 2
427
449
  }, 1032, ["onClick"])
428
450
  ]))), 128))
429
- ])) : x("", !0)
451
+ ])) : F("", !0)
430
452
  ]),
431
- s("div", ke, [
453
+ s("div", Se, [
432
454
  s("div", Ce, [
433
- a[17] || (a[17] = v(" 请求头 ")),
434
- l(t(y), {
435
- onClick: W,
455
+ l[17] || (l[17] = s("div", null, "请求头", -1)),
456
+ a(t(c), {
457
+ onClick: Y,
436
458
  text: "",
437
459
  type: "primary",
438
460
  class: "btn"
439
461
  }, {
440
462
  default: n(() => [
441
- l(t(b), { name: "icon--epic--add-rounded" }),
442
- a[16] || (a[16] = v(" 添加 "))
463
+ a(t(b), { name: "icon--epic--add-rounded" }),
464
+ l[16] || (l[16] = y(" 添加 "))
443
465
  ]),
444
466
  _: 1
445
467
  })
446
468
  ]),
447
- (f = e.value) != null && f.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), p("div", Le, [
448
- (m(!0), p(O, null, U(e.value.headerList, (d, C) => (m(), p("div", {
469
+ (f = e.value) != null && f.headerList && ((r = e.value) != null && r.headerList.length) ? (m(), p("div", we, [
470
+ (m(!0), p(E, null, D(e.value.headerList, (d, w) => (m(), p("div", {
449
471
  class: "content-item",
450
- key: C
472
+ key: w
451
473
  }, [
452
- l(t(_), {
474
+ a(t(L), {
453
475
  modelValue: d.label,
454
476
  "onUpdate:modelValue": (i) => d.label = i,
455
477
  filterable: "",
456
478
  "allow-create": "",
457
479
  style: { width: "42%" },
458
- options: k,
480
+ options: S,
459
481
  placeholder: "参数名"
460
482
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
461
- l(t(_), {
483
+ a(t(L), {
462
484
  modelValue: d.value,
463
485
  "onUpdate:modelValue": (i) => d.value = i,
464
486
  filterable: "",
465
487
  "allow-create": "",
466
488
  style: { width: "42%" },
467
- options: k,
489
+ options: S,
468
490
  placeholder: "参数值"
469
491
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
470
- l(t(y), {
471
- onClick: (i) => X(C),
492
+ a(t(c), {
493
+ onClick: (i) => Z(w),
472
494
  type: "danger",
473
495
  circle: ""
474
496
  }, {
475
497
  default: n(() => [
476
- l(t(b), {
498
+ a(t(b), {
477
499
  style: { color: "#fff" },
478
500
  name: "icon--epic--delete-outline-rounded"
479
501
  })
@@ -481,54 +503,54 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
481
503
  _: 2
482
504
  }, 1032, ["onClick"])
483
505
  ]))), 128))
484
- ])) : x("", !0)
506
+ ])) : F("", !0)
485
507
  ]),
486
- s("div", Se, [
487
- s("div", Ne, [
488
- a[19] || (a[19] = v(" 请求体 ")),
489
- l(t(y), {
490
- onClick: Y,
508
+ s("div", Ne, [
509
+ s("div", Oe, [
510
+ l[19] || (l[19] = s("div", null, "请求体", -1)),
511
+ a(t(c), {
512
+ onClick: ee,
491
513
  text: "",
492
514
  type: "primary",
493
515
  class: "btn"
494
516
  }, {
495
517
  default: n(() => [
496
- l(t(b), { name: "icon--epic--add-rounded" }),
497
- a[18] || (a[18] = v(" 添加 "))
518
+ a(t(b), { name: "icon--epic--add-rounded" }),
519
+ l[18] || (l[18] = y(" 添加 "))
498
520
  ]),
499
521
  _: 1
500
522
  })
501
523
  ]),
502
- (R = e.value) != null && R.bodyList && ((T = e.value) != null && T.bodyList.length) ? (m(), p("div", we, [
503
- (m(!0), p(O, null, U(e.value.bodyList, (d, C) => (m(), p("div", {
524
+ (C = e.value) != null && C.bodyList && ((V = e.value) != null && V.bodyList.length) ? (m(), p("div", Ue, [
525
+ (m(!0), p(E, null, D(e.value.bodyList, (d, w) => (m(), p("div", {
504
526
  class: "content-item",
505
- key: C
527
+ key: w
506
528
  }, [
507
- l(t(_), {
529
+ a(t(L), {
508
530
  modelValue: d.label,
509
531
  "onUpdate:modelValue": (i) => d.label = i,
510
532
  filterable: "",
511
533
  "allow-create": "",
512
534
  style: { width: "42%" },
513
- options: k,
535
+ options: S,
514
536
  placeholder: "参数名"
515
537
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
516
- l(t(_), {
538
+ a(t(L), {
517
539
  modelValue: d.value,
518
540
  "onUpdate:modelValue": (i) => d.value = i,
519
541
  filterable: "",
520
542
  "allow-create": "",
521
543
  style: { width: "42%" },
522
- options: k,
544
+ options: S,
523
545
  placeholder: "参数值"
524
546
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
525
- l(t(y), {
526
- onClick: a[6] || (a[6] = (i) => Z(o.i)),
547
+ a(t(c), {
548
+ onClick: l[6] || (l[6] = (i) => le(o.i)),
527
549
  type: "danger",
528
550
  circle: ""
529
551
  }, {
530
552
  default: n(() => [
531
- l(t(b), {
553
+ a(t(b), {
532
554
  style: { color: "#fff" },
533
555
  name: "icon--epic--delete-outline-rounded"
534
556
  })
@@ -536,24 +558,24 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
536
558
  _: 1
537
559
  })
538
560
  ]))), 128))
539
- ])) : x("", !0)
561
+ ])) : F("", !0)
540
562
  ]),
541
- s("div", Oe, [
542
- l(t(y), {
563
+ s("div", Ee, [
564
+ a(t(c), {
543
565
  type: "info",
544
- onClick: ee
566
+ onClick: ae
545
567
  }, {
546
- default: n(() => a[20] || (a[20] = [
547
- v("请求测试")
568
+ default: n(() => l[20] || (l[20] = [
569
+ y("请求测试")
548
570
  ])),
549
571
  _: 1
550
572
  }),
551
- l(t(y), {
573
+ a(t(c), {
552
574
  type: "primary",
553
- onClick: ae
575
+ onClick: T
554
576
  }, {
555
- default: n(() => a[21] || (a[21] = [
556
- v("保存")
577
+ default: n(() => l[21] || (l[21] = [
578
+ y("保存")
557
579
  ])),
558
580
  _: 1
559
581
  })
@@ -573,5 +595,5 @@ const ne = { class: "e-data-source" }, se = { class: "icon-numbers" }, re = { cl
573
595
  }
574
596
  });
575
597
  export {
576
- Te as default
598
+ Ke as default
577
599
  };