epic-designer-gold 0.0.7 → 0.0.9

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-JG5oGAiC.js → attributeView-C5p72pi9.js} +1 -1
  2. package/dist/{attributeView-maM2NBVj.cjs → attributeView-D6GDDwJd.cjs} +1 -1
  3. package/dist/{eventView-Hvt6yvlP.js → eventView-B1SO_b3U.js} +1 -1
  4. package/dist/{eventView-C_DGIuJU.cjs → eventView-C-nPJeal.cjs} +1 -1
  5. package/dist/{index-DrGkA-Tv.cjs → index-8Z_BUSpi.cjs} +1 -1
  6. package/dist/{index-Bq_W-h--.cjs → index-B0tIuwC4.cjs} +1 -1
  7. package/dist/{index-uKxac_Rh.cjs → index-B4QCUzmC.cjs} +1 -1
  8. package/dist/{index-CbS5O_Qy.cjs → index-B4_pfSXd.cjs} +1 -1
  9. package/dist/{index-B_x6-lM_.js → index-BRfHHwGt.js} +1 -1
  10. package/dist/{index-CQO3Exnb.js → index-BWsouAX1.js} +1 -1
  11. package/dist/index-Bk1B4RlV.cjs +1 -0
  12. package/dist/{index-CCsCfnYF.js → index-Blx2W6GS.js} +1 -1
  13. package/dist/{index-BPgCAhgM.js → index-BnfqRlhk.js} +1 -1
  14. package/dist/index-BosPwufD.cjs +1 -0
  15. package/dist/{index-CersfOBH.js → index-Bvq0Bx84.js} +1 -1
  16. package/dist/{index-Dsi_tF6z.cjs → index-CW5-2m8M.cjs} +1 -1
  17. package/dist/index-ChrX-B9g.js +4 -0
  18. package/dist/{index-C7tLumnl.js → index-CphLWdDE.js} +1 -1
  19. package/dist/{index-Bdmg-3K3.cjs → index-CtG-fCHj.cjs} +1 -1
  20. package/dist/{index-BGkXLe-e.js → index-D0g3u-k9.js} +8 -8
  21. package/dist/index-Dd4gCjAw.js +209 -0
  22. package/dist/{index-DzvWzEYk.cjs → index-DjpnzTAe.cjs} +1 -1
  23. package/dist/{index-BCOlsgwQ.js → index-DskGuw3e.js} +1 -1
  24. package/dist/{index-fReNZviw.cjs → index-DuC_aA96.cjs} +2 -2
  25. package/dist/{index-B_J1TzuT.js → index-FHuEonxg.js} +216 -194
  26. package/dist/{index-vnXMEEmO.cjs → index-xS4C1Uqo.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-f9Gbyt6I.cjs → styleView-BZV97I57.cjs} +1 -1
  31. package/dist/{styleView-BGftREzp.js → styleView-D8NW8ZDL.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/index-CAliFu_z.cjs +0 -1
  34. package/dist/index-CHpb3BXy.js +0 -4
  35. package/dist/index-CTAIy0UI.js +0 -205
  36. package/dist/index-egFxSHTm.cjs +0 -1
@@ -1,205 +0,0 @@
1
- import { defineComponent as $, inject as D, resolveComponent as M, openBlock as p, createBlock as O, unref as a, isRef as S, withCtx as w, createElementVNode as m, normalizeClass as B, createVNode as d, createCommentVNode as I, createElementBlock as V, ref as j, reactive as N, onMounted as J, watch as z, provide as L, Fragment as P, renderList as R, toDisplayString as T, withDirectives as F, vShow as q, createTextVNode as G } from "vue";
2
- import { d as H } from "./vuedraggable.umd-D2S7Eo7p.js";
3
- import { p as _, E as K } from "./pluginManager-D8PM7ICc.js";
4
- import { _ as U } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
5
- import { n as E } from "./index-BGkXLe-e.js";
6
- import { ElMessage as Q } from "element-plus";
7
- import { a as W } from "./axios-CXDYiOMX.js";
8
- import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Y = {
10
- key: 0,
11
- class: "pl-4"
12
- }, Z = /* @__PURE__ */ $({
13
- name: "EOptionItem",
14
- __name: "optionItem",
15
- props: {
16
- modelValue: {}
17
- },
18
- emits: ["update:modelValue"],
19
- setup(y, { emit: b }) {
20
- const k = y, g = _.getComponent("input"), c = D("tree", !1), r = E(k, "modelValue", b);
21
- function x(o) {
22
- const s = {
23
- label: "",
24
- value: ""
25
- };
26
- o.children ? o.children.push(s) : o.children = [s];
27
- }
28
- function i(o) {
29
- r.value = r.value.filter((s, h) => h !== o);
30
- }
31
- return (o, s) => {
32
- const h = M("EOptionItem");
33
- return p(), O(a(H), {
34
- modelValue: a(r),
35
- "onUpdate:modelValue": s[0] || (s[0] = (l) => S(r) ? r.value = l : 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: w(({ element: l, index: C }) => [
45
- m("div", null, [
46
- m("div", {
47
- class: B([a(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"])
48
- }, [
49
- d(a(U), {
50
- class: "mr-2 cursor-move handle",
51
- name: "icon--epic--drag"
52
- }),
53
- d(a(g), {
54
- modelValue: l.label,
55
- "onUpdate:modelValue": (n) => l.label = n,
56
- value: l.label,
57
- "onUpdate:value": (n) => l.label = n,
58
- placeholder: "label"
59
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
60
- d(a(g), {
61
- modelValue: l.value,
62
- "onUpdate:modelValue": (n) => l.value = n,
63
- value: l.value,
64
- "onUpdate:value": (n) => l.value = n,
65
- placeholder: "value"
66
- }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "onUpdate:value"]),
67
- a(c) ? (p(), O(a(U), {
68
- key: 0,
69
- class: "cursor-pointer text-lg!",
70
- name: "icon--epic--add-rounded",
71
- onClick: (n) => x(l)
72
- }, null, 8, ["onClick"])) : I("", !0),
73
- d(a(U), {
74
- class: "hover:text-red cursor-pointer",
75
- name: "icon--epic--delete-outline-rounded",
76
- onClick: (n) => i(C)
77
- }, null, 8, ["onClick"])
78
- ], 2),
79
- l.children ? (p(), V("div", Y, [
80
- d(h, {
81
- modelValue: l.children,
82
- "onUpdate:modelValue": (n) => l.children = n
83
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
84
- ])) : I("", !0)
85
- ])
86
- ]),
87
- _: 1
88
- }, 8, ["modelValue"]);
89
- };
90
- }
91
- }), ee = { class: "" }, te = { class: "epic-tabs-box" }, le = ["title", "onClick"], ae = { key: 0 }, oe = { class: "py-4 my-2 text-center text-gray-400 bg-white" }, ne = { key: 1 }, ie = /* @__PURE__ */ $({
92
- __name: "index",
93
- props: {
94
- tree: { type: Boolean },
95
- modelValue: {},
96
- dynamicId: {},
97
- type: {}
98
- },
99
- emits: ["update:modelValue", "update:EOptionsEditor"],
100
- setup(y, { emit: b }) {
101
- const k = _.getComponent("button"), g = _.getComponent("select"), c = j([]), v = N({
102
- title: "静态"
103
- }), r = y, x = b;
104
- K.on("updateSource", (t) => {
105
- c.value = _.sourceData.map((e) => ({
106
- ...e,
107
- label: e.apiName,
108
- value: e.id
109
- }));
110
- }), J(() => {
111
- c.value = _.sourceData.map((t) => ({
112
- ...t,
113
- label: t.apiName,
114
- value: t.id
115
- }));
116
- });
117
- const i = E(r, "modelValue", x), o = E(r, "dynamicId", x);
118
- function s(t) {
119
- return t && Object.prototype.toString.call(t) === "[object Array]" ? t : (Q.info("请检查数据位置是否配置准确"), []);
120
- }
121
- z(
122
- () => o.value,
123
- async () => {
124
- o.value ? v.title = "动态" : v.title = "静态";
125
- },
126
- {
127
- immediate: !0
128
- }
129
- );
130
- const h = [
131
- {
132
- title: "静态"
133
- },
134
- {
135
- title: "动态"
136
- }
137
- ];
138
- async function l(t) {
139
- v.title = t.title, t.title === "静态" && (o.value = "");
140
- }
141
- async function C(t) {
142
- const e = c.value.find((u) => u.id === t);
143
- let f = await W({
144
- method: (e == null ? void 0 : e.method) || "get",
145
- // url: "/test" + data.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
- e && (e != null && e.dataPath) ? i.value = s(f.data[e.dataPath]) : i.value = s(f.data);
152
- }
153
- r.modelValue, L("tree", r.tree);
154
- function n() {
155
- const t = N({
156
- label: "",
157
- value: ""
158
- });
159
- i.value.length ? i.value = [...i.value, t] : i.value = [t];
160
- }
161
- return (t, e) => {
162
- var f;
163
- return p(), V("div", ee, [
164
- m("div", null, [
165
- m("div", te, [
166
- (p(), V(P, null, R(h, (u, A) => m("div", {
167
- class: B(["epic-tab cursor-pointer truncate", { checked: v.title === u.title }]),
168
- key: A,
169
- title: u.title,
170
- onClick: (re) => l(u)
171
- }, T(u.title), 11, le)), 64))
172
- ]),
173
- v.title === "静态" ? (p(), V("div", ae, [
174
- F(m("div", oe, "暂无选项", 512), [
175
- [q, !((f = a(i)) != null && f.length)]
176
- ]),
177
- d(Z, {
178
- modelValue: a(i),
179
- "onUpdate:modelValue": e[0] || (e[0] = (u) => S(i) ? i.value = u : null)
180
- }, null, 8, ["modelValue"]),
181
- d(a(k), { onClick: n }, {
182
- default: w(() => e[2] || (e[2] = [
183
- G("添加选项")
184
- ])),
185
- _: 1
186
- })
187
- ])) : (p(), V("div", ne, [
188
- e[3] || (e[3] = m("span", { style: { "font-size": "12px", "margin-bottom": "8px", display: "inline-block" } }, "数据源", -1)),
189
- d(a(g), {
190
- modelValue: a(o),
191
- "onUpdate:modelValue": e[1] || (e[1] = (u) => S(o) ? o.value = u : null),
192
- placeholder: "请选择数据源",
193
- clearable: "",
194
- options: c.value,
195
- onChange: C
196
- }, null, 8, ["modelValue", "options"])
197
- ]))
198
- ])
199
- ]);
200
- };
201
- }
202
- }), fe = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-9004c684"]]);
203
- export {
204
- fe as default
205
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),d=require("./pluginManager-itCTrGag.cjs"),g=require("element-plus"),c=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),$=require("./axios-tuVKNgv9.cjs"),G={class:"e-data-source"},A={class:"icon-numbers"},z={class:"drawer-content"},H={class:"drawer-content-left"},Q=["onClick"],W={class:"source-item-title"},X=["onClick"],Y={class:"drawer-content-right"},Z={class:"content"},ee={key:0,class:"content-empty"},te={key:1,class:"content-form"},ae={class:"form-flex"},le={class:"form-item"},oe={class:"form-item-title"},ne={key:0,class:"form-item-content"},re={class:"form-item"},de={class:"form-item-title"},ue={key:0,class:"form-item-content"},se={class:"form-item"},ie={class:"form-item-title"},ce={key:0,class:"form-item-content"},me={class:"content-right-btn"},pe=e.defineComponent({__name:"index",emits:["update:modelValue","update:sourceData"],setup(ve,{emit:fe}){const i=d.pluginManager.getComponent("button"),E=d.pluginManager.getComponent("Drawer"),y=d.pluginManager.getComponent("input"),v=d.pluginManager.getComponent("FormItem"),w=d.pluginManager.getComponent("Form"),x=d.pluginManager.getComponent("RadioGroup"),b=d.pluginManager.getComponent("RadioButton"),f=d.pluginManager.getComponent("select");d.pluginManager.getComponent("switch");const h=e.ref(),B=e.ref(0),S=e.reactive({apiName:[{required:!0,message:"请输入接口名称",trigger:"blur"}],url:[{required:!0,message:"请输入请求地址",trigger:"blur"}],dataKey:[{required:!0,message:"请输入标签键名",trigger:"blur"}],dataValue:[{required:!0,message:"请输入值键名",trigger:"blur"}]}),k=e.ref(!1),p=e.ref([]),t=e.ref(),V=[{label:"1",value:"1"}];function L(){k.value=!0}function O(){const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";return l.charAt(Math.floor(Math.random()*l.length))}function M(l){let a="";for(let o=0;o<l;o++)a+=O();return a}function U(){t.value={id:"",url:"",body:{},bodyList:[],apiName:`数据源_${M(5)}`,method:"get",params:{},paramsList:[],dataKey:"name",headers:{},headerList:[],dataPath:"",dataValue:"id"},p.value.push(t.value)}function T(l){var a;p.value=JSON.parse(JSON.stringify(d.pluginManager.getSourceData())),t.value.id?((a=t.value)==null?void 0:a.id)===l?t.value={}:(t.value=p.value.find(o=>o.id===l),t.value.paramsList=Object.keys(JSON.parse(t.value.params)).map(o=>({label:o,value:JSON.parse(t.value.params)[o]})),t.value.bodyList=Object.keys(JSON.parse(t.value.body)).map(o=>({label:o,value:JSON.parse(t.value.body)[o]})),t.value.headerList=Object.keys(JSON.parse(t.value.headers)).map(o=>({label:o,value:JSON.parse(t.value.headers)[o]}))):t.value={}}function D(l){d.EventBus.emit("deleteSourceData",l)}function J(){var l;(l=t.value)==null||l.paramsList.push({label:"",value:""})}function P(l){t.value.paramsList.splice(l,1)}function q(){var l;(l=t.value)==null||l.headerList.push({label:"",value:""})}function F(l){t.value.headerList.splice(l,1)}function R(){var l;(l=t.value)==null||l.bodyList.push({label:"",value:""})}function K(l){t.value.bodyList.splice(l,1)}e.onMounted(()=>{p.value=JSON.parse(JSON.stringify(d.pluginManager.getSourceData()))}),d.EventBus.on("updateSource",l=>{p.value=JSON.parse(JSON.stringify(d.pluginManager.getSourceData()))});async function j(){h.value.validate(async l=>{if(l)try{const a={};t.value.paramsList.forEach(r=>{a[r.label]=r.value});const o={};t.value.bodyList.forEach(r=>{o[r.label]=r.value});const m={};t.value.headerList.forEach(r=>{m[r.label]=r.value});let s=await $.axios({method:t.value.method,url:"http://localhost:3333/users",params:a,data:o,headers:m});t.value.dataPath?s.data[t.value.dataPath]&&s.data[t.value.dataPath].length?g.ElMessage({message:s.data[t.value.dataPath].map(r=>({label:r[t.value.dataKey],value:r[t.value.dataValue]}))}):g.ElMessage.info("配置错误"):s.data&&s.data.length?g.ElMessage({message:s.data.map(r=>({label:r[t.value.dataKey],value:r[t.value.dataValue]}))}):g.ElMessage.info("配置错误")}catch{g.ElMessage.error("请求失败")}finally{}else g.ElMessage.error("请填写必填项")})}async function I(){t.value.body=t.value.bodyList.reduce((l,a)=>(l[a.label]=a.value,l),{}),t.value.params=t.value.paramsList.reduce((l,a)=>(l[a.label]=a.value,l),{}),t.value.headers=t.value.headerList.reduce((l,a)=>(l[a.label]=a.value,l),{}),h.value.validate(l=>{l&&(t.value.id?(d.EventBus.emit("updateSourceData",{...t.value,body:JSON.stringify(t.value.body),params:JSON.stringify(t.value.params),headers:JSON.stringify(t.value.headers)}),t.value={}):(d.EventBus.emit("saveSourceData",{...t.value,body:JSON.stringify(t.value.body),params:JSON.stringify(t.value.params),headers:JSON.stringify(t.value.headers)}),t.value={}))})}return(l,a)=>(e.openBlock(),e.createElementBlock("div",G,[e.createVNode(e.unref(i),{class:"btn",onClick:L},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--window-outline",class:"mr-4px"}),a[8]||(a[8]=e.createElementVNode("span",null,"配置",-1)),e.createElementVNode("span",A,e.toDisplayString(B.value||p.value.length),1)]),_:1}),e.createVNode(e.unref(E),{size:800,modelValue:k.value,"onUpdate:modelValue":a[7]||(a[7]=o=>k.value=o),"append-to-body":"",title:"数据源"},{default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("div",H,[e.createVNode(e.unref(i),{type:"primary",class:"btn",onClick:U},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--add-rounded",class:"mr-4px"}),a[9]||(a[9]=e.createElementVNode("span",null,"新增数据源",-1))]),_:1}),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,o=>{var m;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["source-item",{active:o.id===((m=t.value)==null?void 0:m.id)}]),key:o.id,onClick:s=>T(o.id)},[e.createElementVNode("div",W,[e.createElementVNode("div",null,e.toDisplayString(o.method.toLocaleUpperCase()),1),e.createElementVNode("div",null,e.toDisplayString(o.apiName),1)]),e.createElementVNode("div",{onClick:s=>D(o.id),class:"source-item-icon"},[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--delete-outline-rounded"})],8,X)],10,Q)}),128))])]),e.createElementVNode("div",Y,[e.createElementVNode("div",Z,[!t.value||!Object.keys(t.value).length?(e.openBlock(),e.createElementBlock("div",ee,"请选择数据源")):(e.openBlock(),e.createElementBlock("div",te,[e.createVNode(e.unref(w),{ref_key:"ruleFormRef",ref:h,model:t.value,"label-position":"top",rules:S,"label-width":120},{default:e.withCtx(()=>{var o,m,s,r,_,C;return[e.createVNode(e.unref(v),{prop:"apiName",label:"接口名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(y),{clearable:"",modelValue:t.value.apiName,"onUpdate:modelValue":a[0]||(a[0]=n=>t.value.apiName=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v),{prop:"url",label:"请求地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(y),{modelValue:t.value.url,"onUpdate:modelValue":a[1]||(a[1]=n=>t.value.url=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v),{label:"请求方法",required:""},{default:e.withCtx(()=>[e.createVNode(e.unref(x),{modelValue:t.value.method,"onUpdate:modelValue":a[2]||(a[2]=n=>t.value.method=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(b),{label:"GET",value:"get"},{default:e.withCtx(()=>a[10]||(a[10]=[e.createTextVNode("GET")])),_:1}),e.createVNode(e.unref(b),{label:"POST",value:"post"},{default:e.withCtx(()=>a[11]||(a[11]=[e.createTextVNode("POST")])),_:1}),e.createVNode(e.unref(b),{label:"PUT",value:"put"},{default:e.withCtx(()=>a[12]||(a[12]=[e.createTextVNode("PUT")])),_:1}),e.createVNode(e.unref(b),{label:"DELETE",value:"delete"},{default:e.withCtx(()=>a[13]||(a[13]=[e.createTextVNode("DELETE")])),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createElementVNode("div",ae,[e.createVNode(e.unref(v),{prop:"dataKey",style:{width:"30%"},label:"标签键名"},{default:e.withCtx(()=>[e.createVNode(e.unref(y),{modelValue:t.value.dataKey,"onUpdate:modelValue":a[3]||(a[3]=n=>t.value.dataKey=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v),{prop:"dataValue",style:{width:"30%"},label:"值键名"},{default:e.withCtx(()=>[e.createVNode(e.unref(y),{modelValue:t.value.dataValue,"onUpdate:modelValue":a[4]||(a[4]=n=>t.value.dataValue=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v),{style:{width:"33%"},label:"数据位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(y),{modelValue:t.value.dataPath,"onUpdate:modelValue":a[5]||(a[5]=n=>t.value.dataPath=n)},null,8,["modelValue"])]),_:1})]),e.createElementVNode("div",le,[e.createElementVNode("div",oe,[a[15]||(a[15]=e.createTextVNode(" 请求参数 ")),e.createVNode(e.unref(i),{onClick:J,text:"",type:"primary",class:"btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--add-rounded"}),a[14]||(a[14]=e.createTextVNode(" 添加 "))]),_:1})]),(o=t.value)!=null&&o.paramsList&&((m=t.value)!=null&&m.paramsList.length)?(e.openBlock(),e.createElementBlock("div",ne,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.paramsList,(n,N)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:n.value},[e.createVNode(e.unref(f),{modelValue:n.label,"onUpdate:modelValue":u=>n.label=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数名"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(f),{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数值"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(i),{onClick:u=>P(N),type:"danger",circle:""},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{style:{color:"#fff"},name:"icon--epic--delete-outline-rounded"})]),_:2},1032,["onClick"])]))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",re,[e.createElementVNode("div",de,[a[17]||(a[17]=e.createTextVNode(" 请求头 ")),e.createVNode(e.unref(i),{onClick:q,text:"",type:"primary",class:"btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--add-rounded"}),a[16]||(a[16]=e.createTextVNode(" 添加 "))]),_:1})]),(s=t.value)!=null&&s.headerList&&((r=t.value)!=null&&r.headerList.length)?(e.openBlock(),e.createElementBlock("div",ue,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.headerList,(n,N)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:N},[e.createVNode(e.unref(f),{modelValue:n.label,"onUpdate:modelValue":u=>n.label=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数名"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(f),{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数值"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(i),{onClick:u=>F(N),type:"danger",circle:""},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{style:{color:"#fff"},name:"icon--epic--delete-outline-rounded"})]),_:2},1032,["onClick"])]))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",se,[e.createElementVNode("div",ie,[a[19]||(a[19]=e.createTextVNode(" 请求体 ")),e.createVNode(e.unref(i),{onClick:R,text:"",type:"primary",class:"btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{name:"icon--epic--add-rounded"}),a[18]||(a[18]=e.createTextVNode(" 添加 "))]),_:1})]),(_=t.value)!=null&&_.bodyList&&((C=t.value)!=null&&C.bodyList.length)?(e.openBlock(),e.createElementBlock("div",ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value.bodyList,(n,N)=>(e.openBlock(),e.createElementBlock("div",{class:"content-item",key:N},[e.createVNode(e.unref(f),{modelValue:n.label,"onUpdate:modelValue":u=>n.label=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数名"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(f),{modelValue:n.value,"onUpdate:modelValue":u=>n.value=u,filterable:"","allow-create":"",style:{width:"42%"},options:V,placeholder:"参数值"},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(i),{onClick:a[6]||(a[6]=u=>K(l.i)),type:"danger",circle:""},{default:e.withCtx(()=>[e.createVNode(e.unref(c._sfc_main),{style:{color:"#fff"},name:"icon--epic--delete-outline-rounded"})]),_:1})]))),128))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[e.createVNode(e.unref(i),{type:"info",onClick:j},{default:e.withCtx(()=>a[20]||(a[20]=[e.createTextVNode("请求测试")])),_:1}),e.createVNode(e.unref(i),{type:"primary",onClick:I},{default:e.withCtx(()=>a[21]||(a[21]=[e.createTextVNode("保存")])),_:1})])]}),_:1},8,["model","rules"])]))])])])]),_:1},8,["modelValue"])]))}});exports.default=pe;