fec-dev-designer 1.0.4 → 1.1.0

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 (53) hide show
  1. package/es/config-dev.js +7 -5
  2. package/es/node_modules/@element-plus/icons-vue/dist/index.js +126 -92
  3. package/es/node_modules/element-plus/es/components/result/index.js +7 -0
  4. package/es/node_modules/element-plus/es/components/result/src/result.js +34 -0
  5. package/es/node_modules/element-plus/es/components/result/src/result2.js +93 -0
  6. package/es/node_modules/element-plus/theme-chalk/el-result.css.js +4 -0
  7. package/es/src/api/index.js +5 -5
  8. package/es/src/components/EventConfigButton.vue.js +2 -2
  9. package/es/src/components/FieldSetMapping.vue.js +211 -0
  10. package/es/src/components/FieldSetMapping.vue2.js +4 -0
  11. package/es/src/components/FormulaEditorInput.vue.js +43 -38
  12. package/es/src/components/JsonDataDrawer.vue.js +1 -1
  13. package/es/src/components/OnlyFLowConfigButton.vue.js +102 -0
  14. package/es/src/components/OnlyFLowConfigButton.vue2.js +4 -0
  15. package/es/src/components/OptionConfig.vue.js +1 -1
  16. package/es/src/components/TemplateSelector.vue.js +45 -45
  17. package/es/src/components/ValueSelector.vue2.js +30 -24
  18. package/es/src/components/ValueSelectorPopover.vue2.js +1 -1
  19. package/es/src/layout/aside/index.vue.js +64 -60
  20. package/es/src/layout/index.vue.js +91 -54
  21. package/es/src/packages/dataSource/dataSource.vue.js +122 -118
  22. package/es/src/packages/dialog/index.vue.js +718 -0
  23. package/es/src/packages/dialog/index.vue2.js +4 -0
  24. package/es/src/packages/dialog/useDialogDialog.js +15 -0
  25. package/es/src/packages/event/index.vue2.js +1 -1
  26. package/es/src/packages/event/onlyFlow.vue.js +91 -0
  27. package/es/src/packages/event/onlyFlow.vue2.js +4 -0
  28. package/es/src/packages/event/useOnlyFlowDialog.js +15 -0
  29. package/es/src/packages/eventFlow/dialog/action/Dialog.vue.js +48 -0
  30. package/es/src/packages/eventFlow/dialog/action/Page.vue.js +29 -20
  31. package/es/src/packages/eventFlow/dialog/action/config.js +12 -11
  32. package/es/src/packages/form/PageFooterSetting.vue.js +53 -58
  33. package/es/src/packages/form/aside/index.js +20 -4
  34. package/es/src/packages/form/components/ComponentPreviewWrapper.vue.js +70 -52
  35. package/es/src/packages/form/default.js +20 -19
  36. package/es/src/packages/form/formSetting.vue.js +72 -50
  37. package/es/src/packages/form/headerBtn.vue.js +84 -65
  38. package/es/src/packages/form/index.vue.js +247 -202
  39. package/es/src/packages/form/property/blank.vue.js +62 -0
  40. package/es/src/packages/form/property/index.vue.js +21 -20
  41. package/es/src/packages/form/property/pageFooterBtn.vue.js +39 -39
  42. package/es/src/packages/form/property/subTable.vue.js +61 -52
  43. package/es/src/packages/form/property/widgets.vue.js +385 -200
  44. package/es/src/packages/table/aside/index.js +1 -0
  45. package/es/src/packages/table/default.js +9 -1
  46. package/es/src/packages/table/headerBtn.vue.js +72 -54
  47. package/es/src/packages/table/property/widgets.vue.js +96 -85
  48. package/es/src/packages/table/queryModule/FixedModeConfig.vue.js +6 -6
  49. package/es/src/packages/table/tablePagination.vue.js +37 -45
  50. package/es/src/packages/table/tableSetting.vue.js +197 -196
  51. package/es/src/packages/utils/common.js +44 -35
  52. package/es/style.css +1 -1
  53. package/package.json +1 -1
@@ -1,97 +1,134 @@
1
1
  import "../../node_modules/element-plus/theme-chalk/base.css.js";
2
+ import "../../node_modules/element-plus/theme-chalk/el-result.css.js";
3
+ import "../../node_modules/element-plus/theme-chalk/el-button.css.js";
2
4
  import "../../node_modules/element-plus/theme-chalk/el-container.css.js";
3
5
  import "../../node_modules/element-plus/theme-chalk/el-aside.css.js";
4
6
  import "../../node_modules/element-plus/theme-chalk/el-footer.css.js";
5
7
  import "../../node_modules/element-plus/theme-chalk/el-header.css.js";
6
8
  import "../../node_modules/element-plus/theme-chalk/el-main.css.js";
7
9
  import "../../node_modules/element-plus/theme-chalk/el-config-provider.css.js";
8
- import { ref as l, computed as k, openBlock as u, createBlock as _, withCtx as p, createVNode as o, unref as r, resolveDynamicComponent as h, createCommentVNode as C } from "vue";
9
- import { useStore as b } from "vuex";
10
- import { useRoute as x } from "vue-router";
11
- import I from "./aside/index.vue.js";
12
- import N from "./header/index.vue.js";
13
- import T from "./property/index.vue.js";
14
- import A from "../packages/table/index.vue.js";
15
- import E from "../packages/form/index.vue.js";
16
- import O from "../../node_modules/element-plus/dist/locale/zh-cn.js";
17
- import { setEditConfigData as d, setSelectedItem as S, setHoverItem as B } from "../packages/utils/common.js";
10
+ import { ref as m, computed as w, openBlock as u, createBlock as d, withCtx as r, createVNode as o, unref as p, resolveDynamicComponent as D, createElementBlock as E, createTextVNode as N, createCommentVNode as B } from "vue";
11
+ import { useStore as T } from "vuex";
12
+ import { useRoute as O, useRouter as R } from "vue-router";
13
+ import A from "./aside/index.vue.js";
14
+ import F from "./header/index.vue.js";
15
+ import M from "./property/index.vue.js";
16
+ import S from "../packages/table/index.vue.js";
17
+ import V from "../packages/form/index.vue.js";
18
+ import J from "../../node_modules/element-plus/dist/locale/zh-cn.js";
19
+ import { setEditConfigData as v, setSelectedItem as K, setHoverItem as L } from "../packages/utils/common.js";
18
20
  import y from "../api/index.js";
19
- import { defaultTableConfig as w } from "../packages/table/default.js";
20
- import { defaultFormConfig as D } from "../packages/form/default.js";
21
+ import { defaultTableConfig as P } from "../packages/table/default.js";
22
+ import { defaultFormConfig as W } from "../packages/form/default.js";
21
23
  import "./index.vue2.js";
22
- import J from "../../_virtual/_plugin-vue_export-helper.js";
23
- import { ElConfigProvider as K } from "../../node_modules/element-plus/es/components/config-provider/index.js";
24
- import { ElMain as L, ElContainer as P } from "../../node_modules/element-plus/es/components/container/index.js";
25
- const V = {
24
+ import q from "../../_virtual/_plugin-vue_export-helper.js";
25
+ import { ElConfigProvider as z } from "../../node_modules/element-plus/es/components/config-provider/index.js";
26
+ import { ElMain as H, ElContainer as $ } from "../../node_modules/element-plus/es/components/container/index.js";
27
+ import { ElButton as j } from "../../node_modules/element-plus/es/components/button/index.js";
28
+ import { ElResult as G } from "../../node_modules/element-plus/es/components/result/index.js";
29
+ const Q = {
30
+ key: 1,
31
+ class: "init-error-container"
32
+ }, U = {
26
33
  __name: "index",
27
- setup(W) {
28
- const m = b(), v = x(), c = l("table"), n = v.query.pkId || "42198dc36f73b0da3d39258d58ba2ada", s = l(!1);
29
- y.login4dev().then((f) => {
30
- m.commit("set_token", f.token), m.commit("set_refreshToken", f.refreshToken), n && y.getById(n).then((e) => {
31
- const i = e.templateName, a = e.templateKey;
32
- if (c.value = e.type, c.value === "table") {
33
- const t = l({
34
- pkId: n,
35
- templateName: i,
34
+ setup(X) {
35
+ const l = T(), g = O(), k = R(), f = m("table"), c = g.query.pkId, n = m(0), _ = m(null);
36
+ function h() {
37
+ window.history.length > 1 ? k.back() : window.close();
38
+ }
39
+ c ? y.login4dev().then((i) => {
40
+ l.commit("set_token", i.token), l.commit("set_refreshToken", i.refreshToken), y.getById(c).then((e) => {
41
+ const s = e.templateName, a = e.templateKey;
42
+ if (f.value = e.type, f.value === "table") {
43
+ const t = m({
44
+ pkId: c,
45
+ templateName: s,
36
46
  templateKey: a,
37
- ...w,
47
+ ...P,
38
48
  ...JSON.parse(e.context)
39
49
  });
40
- d(t.value), s.value = !0;
41
- } else if (c.value === "form") {
42
- const t = l({
43
- pkId: n,
44
- templateName: i,
50
+ v(t.value), n.value = 1;
51
+ } else if (f.value === "form") {
52
+ const t = m({
53
+ pkId: c,
54
+ templateName: s,
45
55
  templateKey: a,
46
- ...D,
56
+ ...W,
47
57
  ...JSON.parse(e.context)
48
58
  });
49
- d(t.value), s.value = !0;
59
+ v(t.value), n.value = 1;
50
60
  }
51
- m.commit("set_editing_type", e.type);
61
+ l.commit("set_editing_type", e.type);
52
62
  });
53
- });
54
- const g = k(() => {
55
- switch (m.getters.editingType) {
63
+ }) : n.value = -1;
64
+ const b = w(() => {
65
+ switch (l.getters.editingType) {
56
66
  case "table":
57
- return A;
67
+ return S;
58
68
  case "form":
59
- return E;
69
+ return V;
60
70
  }
61
71
  return null;
62
72
  });
63
- return S(null), B(null), (f, e) => {
64
- const i = K, a = L, t = P;
65
- return s.value ? (u(), _(t, {
73
+ K(null), L(null);
74
+ function x(i) {
75
+ var e;
76
+ (e = _.value) == null || e.onFormDragMove(i);
77
+ }
78
+ return (i, e) => {
79
+ const s = z, a = H, t = $, C = j, I = G;
80
+ return n.value == 1 ? (u(), d(t, {
66
81
  key: 0,
67
82
  style: { "flex-direction": "column", height: "100%" }
68
83
  }, {
69
- default: p(() => [
70
- o(r(N)),
84
+ default: r(() => [
85
+ o(p(F)),
71
86
  o(t, { class: "inner-container" }, {
72
- default: p(() => [
73
- o(r(I)),
87
+ default: r(() => [
88
+ o(p(A), { onOnFormDragMove: x }),
74
89
  o(a, { class: "root-main" }, {
75
- default: p(() => [
76
- o(i, { locale: r(O) }, {
77
- default: p(() => [
78
- (u(), _(h(r(g))))
90
+ default: r(() => [
91
+ o(s, { locale: p(J) }, {
92
+ default: r(() => [
93
+ (u(), d(D(b.value), {
94
+ ref_key: "compRef",
95
+ ref: _
96
+ }, null, 512))
79
97
  ]),
80
98
  _: 1
81
99
  }, 8, ["locale"])
82
100
  ]),
83
101
  _: 1
84
102
  }),
85
- o(r(T))
103
+ o(p(M))
86
104
  ]),
87
105
  _: 1
88
106
  })
89
107
  ]),
90
108
  _: 1
91
- })) : C("", !0);
109
+ })) : n.value == -1 ? (u(), E("div", Q, [
110
+ o(I, {
111
+ icon: "warning",
112
+ title: "缺少模板ID",
113
+ "sub-title": "请提供有效的模板ID(pkId)参数"
114
+ }, {
115
+ extra: r(() => [
116
+ o(C, {
117
+ type: "primary",
118
+ onClick: h
119
+ }, {
120
+ default: r(() => [...e[0] || (e[0] = [
121
+ N("返回", -1)
122
+ ])]),
123
+ _: 1
124
+ })
125
+ ]),
126
+ _: 1
127
+ })
128
+ ])) : B("", !0);
92
129
  };
93
130
  }
94
- }, ce = /* @__PURE__ */ J(V, [["__scopeId", "data-v-ea04c802"]]);
131
+ }, De = /* @__PURE__ */ q(U, [["__scopeId", "data-v-9ea74b78"]]);
95
132
  export {
96
- ce as default
133
+ De as default
97
134
  };
@@ -13,162 +13,166 @@ import "../../../node_modules/element-plus/theme-chalk/el-option.css.js";
13
13
  import "../../../node_modules/element-plus/theme-chalk/el-option-group.css.js";
14
14
  import "../../../node_modules/element-plus/theme-chalk/el-popper.css.js";
15
15
  import "../../../node_modules/element-plus/theme-chalk/el-select.css.js";
16
- import { ref as b, computed as $, watch as z, openBlock as E, createElementBlock as T, createVNode as t, unref as a, isRef as I, withCtx as o, createElementVNode as u, createTextVNode as d, toDisplayString as y } from "vue";
17
- import { VideoPlay as U, CopyDocument as L, Document as j } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
18
- import B from "../../components/ParamsConfig.vue2.js";
19
- import { getEditConfigDataFields as J } from "../utils/common.js";
20
- import { JsonViewer as G } from "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js";
16
+ import { ref as v, computed as z, watch as B, openBlock as _, createElementBlock as C, createVNode as t, unref as a, isRef as I, withCtx as o, createElementVNode as u, Fragment as j, renderList as J, createBlock as G, createTextVNode as d, toDisplayString as D } from "vue";
17
+ import { VideoPlay as k, CopyDocument as h, Document as H } from "../../../node_modules/@element-plus/icons-vue/dist/index.js";
18
+ import K from "../../components/ParamsConfig.vue2.js";
19
+ import { getEditConfigDataFields as M } from "../utils/common.js";
20
+ import { JsonViewer as Q } from "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.js";
21
21
  import "../../../node_modules/vue3-json-viewer/dist/vue3-json-viewer.css.js";
22
- import { get as H, post as K, postForm as M } from "../../axios/index.js";
22
+ import { get as A, post as W, postForm as X } from "../../axios/index.js";
23
+ import S from "../../utils/env.js";
23
24
  import "../../../node_modules/element-plus/theme-chalk/el-badge.css.js";
24
25
  import "../../../node_modules/element-plus/theme-chalk/el-message.css.js";
25
26
  import "./dataSource.vue2.js";
26
- import Q from "../../../_virtual/_plugin-vue_export-helper.js";
27
- import { ElMessage as C } from "../../../node_modules/element-plus/es/components/message/index.js";
28
- import { ElOption as h, ElSelect as A } from "../../../node_modules/element-plus/es/components/select/index.js";
29
- import { ElFormItem as W, ElForm as X } from "../../../node_modules/element-plus/es/components/form/index.js";
30
- import { ElInput as Y } from "../../../node_modules/element-plus/es/components/input/index.js";
31
- import { ElRadio as Z, ElRadioGroup as ee } from "../../../node_modules/element-plus/es/components/radio/index.js";
32
- import { ElIcon as te } from "../../../node_modules/element-plus/es/components/icon/index.js";
33
- import { ElButton as oe } from "../../../node_modules/element-plus/es/components/button/index.js";
34
- import { ElTag as ae } from "../../../node_modules/element-plus/es/components/tag/index.js";
35
- import { ElTabPane as le, ElTabs as se } from "../../../node_modules/element-plus/es/components/tabs/index.js";
36
- import { ElScrollbar as ne } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
37
- const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { class: "test-section" }, me = { class: "section-header" }, de = { class: "section-title" }, fe = {
27
+ import Y from "../../../_virtual/_plugin-vue_export-helper.js";
28
+ import { ElMessage as V } from "../../../node_modules/element-plus/es/components/message/index.js";
29
+ import { ElOption as Z, ElSelect as ee } from "../../../node_modules/element-plus/es/components/select/index.js";
30
+ import { ElFormItem as te, ElForm as oe } from "../../../node_modules/element-plus/es/components/form/index.js";
31
+ import { ElInput as ae } from "../../../node_modules/element-plus/es/components/input/index.js";
32
+ import { ElRadio as le, ElRadioGroup as se } from "../../../node_modules/element-plus/es/components/radio/index.js";
33
+ import { ElIcon as ne } from "../../../node_modules/element-plus/es/components/icon/index.js";
34
+ import { ElButton as re } from "../../../node_modules/element-plus/es/components/button/index.js";
35
+ import { ElTag as ie } from "../../../node_modules/element-plus/es/components/tag/index.js";
36
+ import { ElTabPane as ue, ElTabs as me } from "../../../node_modules/element-plus/es/components/tabs/index.js";
37
+ import { ElScrollbar as de } from "../../../node_modules/element-plus/es/components/scrollbar/index.js";
38
+ const fe = { class: "data-source" }, pe = { class: "config-section" }, ce = { class: "test-section" }, ve = { class: "section-header" }, _e = { class: "section-title" }, ge = {
38
39
  key: 0,
39
40
  class: "response-area"
40
- }, pe = { class: "response-title" }, ce = { class: "response-actions" }, _e = { class: "response-status" }, ve = { class: "response-time" }, ge = {
41
+ }, be = { class: "response-title" }, ye = { class: "response-actions" }, Ce = { class: "response-status" }, De = { class: "response-time" }, Ve = {
41
42
  key: 1,
42
43
  class: "empty-response"
43
- }, be = {
44
+ }, qe = {
44
45
  __name: "dataSource",
45
46
  props: {
46
47
  requestConfigData: Object
47
48
  },
48
- setup(s) {
49
- const D = s, V = b("requestConfig"), c = b(!1), n = b(""), q = b(0), S = $(() => (J() || []).map((e) => ({
49
+ setup(r) {
50
+ const q = r, E = v("requestConfig"), c = v(!1), i = v(""), T = v(0), x = v([]);
51
+ for (const s in S.servers)
52
+ x.value.push({
53
+ label: s,
54
+ value: S.servers[s]
55
+ });
56
+ const R = z(() => (M() || []).map((e) => ({
50
57
  id: e.id,
51
58
  label: e.label,
52
59
  fieldName: e.fieldName,
53
60
  fieldType: e.fieldType
54
61
  })));
55
- z(
56
- () => D.requestConfigData,
62
+ B(
63
+ () => q.requestConfigData,
57
64
  () => {
58
- n.value = "", q.value = 0;
65
+ i.value = "", T.value = 0;
59
66
  },
60
67
  { deep: !0 }
61
68
  );
62
- async function R() {
63
- var _, v;
64
- const r = D.requestConfigData;
65
- if (!r.serverName) {
66
- C.warning("请选择服务");
69
+ async function F() {
70
+ var g, b;
71
+ const s = q.requestConfigData;
72
+ if (!s.serverName) {
73
+ V.warning("请选择服务");
67
74
  return;
68
75
  }
69
- if (!r.url) {
70
- C.warning("请输入请求URL");
76
+ if (!s.url) {
77
+ V.warning("请输入请求URL");
71
78
  return;
72
79
  }
73
- c.value = !0, n.value = "";
80
+ c.value = !0, i.value = "";
74
81
  const e = Date.now();
75
82
  try {
76
- const l = {};
77
- (D.requestConfigData.params || []).forEach((p) => {
78
- p.key && (l[p.key] = p.value);
83
+ const n = {};
84
+ (q.requestConfigData.params || []).forEach((p) => {
85
+ p.key && (n[p.key] = p.value);
79
86
  });
80
- const m = `${r.serverName ? `/${r.serverName}` : ""}${r.url}`;
87
+ const m = `${s.serverName ? `/${s.serverName}` : ""}${s.url}`;
81
88
  let f;
82
- if (r.method === "get") {
83
- const p = new URLSearchParams(l).toString(), g = p ? `${m}?${p}` : m;
84
- f = await H(g, c.value);
89
+ if (s.method === "get") {
90
+ const p = new URLSearchParams(n).toString(), y = p ? `${m}?${p}` : m;
91
+ f = await A(y, c.value);
85
92
  } else
86
- r.contentType === "json" ? f = await K(m, l, c.value) : f = await M(m, l, c.value);
87
- n.value = {
93
+ s.contentType === "json" ? f = await W(m, n, c.value) : f = await X(m, n, c.value);
94
+ i.value = {
88
95
  status: 200,
89
96
  statusText: "OK",
90
97
  data: f.data || f
91
98
  };
92
- } catch (l) {
93
- n.value = {
99
+ } catch (n) {
100
+ i.value = {
94
101
  success: !1,
95
- error: l.message || "未知错误",
96
- status: ((_ = l.response) == null ? void 0 : _.status) || 0,
97
- statusText: ((v = l.response) == null ? void 0 : v.statusText) || "网络错误"
102
+ error: n.message || "未知错误",
103
+ status: ((g = n.response) == null ? void 0 : g.status) || 0,
104
+ statusText: ((b = n.response) == null ? void 0 : b.statusText) || "网络错误"
98
105
  };
99
106
  } finally {
100
- q.value = Date.now() - e, c.value = !1;
107
+ T.value = Date.now() - e, c.value = !1;
101
108
  }
102
109
  }
103
- function k() {
110
+ function O() {
104
111
  var e;
105
- const r = ((e = n.value) == null ? void 0 : e.data) || n.value;
106
- navigator.clipboard.writeText(JSON.stringify(r, null, 2)).then(() => {
107
- C.success("复制成功");
112
+ const s = ((e = i.value) == null ? void 0 : e.data) || i.value;
113
+ navigator.clipboard.writeText(JSON.stringify(s, null, 2)).then(() => {
114
+ V.success("复制成功");
108
115
  }).catch(() => {
109
- C.error("复制失败");
116
+ V.error("复制失败");
110
117
  });
111
118
  }
112
- return (r, e) => {
113
- const _ = h, v = A, l = W, x = Y, m = Z, f = ee, p = X, g = te, w = oe, F = ae, N = le, O = ne, P = se;
114
- return E(), T("div", re, [
115
- t(P, {
116
- modelValue: a(V),
117
- "onUpdate:modelValue": e[5] || (e[5] = (i) => I(V) ? V.value = i : null),
119
+ return (s, e) => {
120
+ const g = Z, b = ee, n = te, w = ae, m = le, f = se, p = oe, y = ne, N = re, L = ie, U = ue, P = de, $ = me;
121
+ return _(), C("div", fe, [
122
+ t($, {
123
+ modelValue: a(E),
124
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => I(E) ? E.value = l : null),
118
125
  class: "data-source-tab"
119
126
  }, {
120
127
  default: o(() => [
121
- t(O, { height: "540px" }, {
128
+ t(P, { height: "540px" }, {
122
129
  default: o(() => [
123
- t(N, {
130
+ t(U, {
124
131
  label: "请求配置",
125
132
  name: "requestConfig"
126
133
  }, {
127
134
  default: o(() => [
128
- u("div", ie, [
135
+ u("div", pe, [
129
136
  t(p, {
130
137
  "label-width": "auto",
131
- model: s.requestConfigData,
138
+ model: r.requestConfigData,
132
139
  size: "small"
133
140
  }, {
134
141
  default: o(() => [
135
- t(l, { label: "服务名称" }, {
142
+ t(n, { label: "服务名称" }, {
136
143
  default: o(() => [
137
- t(v, {
138
- modelValue: s.requestConfigData.serverName,
139
- "onUpdate:modelValue": e[0] || (e[0] = (i) => s.requestConfigData.serverName = i),
144
+ t(b, {
145
+ modelValue: r.requestConfigData.serverName,
146
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => r.requestConfigData.serverName = l),
140
147
  placeholder: "请选择服务"
141
148
  }, {
142
149
  default: o(() => [
143
- t(_, {
144
- label: "基础服务",
145
- value: "base-server"
146
- }),
147
- t(_, {
148
- label: "担保服务",
149
- value: "gntee-server"
150
- })
150
+ (_(!0), C(j, null, J(a(x), (l) => (_(), G(g, {
151
+ key: l.value,
152
+ label: l.label,
153
+ value: l.value
154
+ }, null, 8, ["label", "value"]))), 128))
151
155
  ]),
152
156
  _: 1
153
157
  }, 8, ["modelValue"])
154
158
  ]),
155
159
  _: 1
156
160
  }),
157
- t(l, { label: "请求URL" }, {
161
+ t(n, { label: "请求URL" }, {
158
162
  default: o(() => [
159
- t(x, {
160
- modelValue: s.requestConfigData.url,
161
- "onUpdate:modelValue": e[1] || (e[1] = (i) => s.requestConfigData.url = i),
163
+ t(w, {
164
+ modelValue: r.requestConfigData.url,
165
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => r.requestConfigData.url = l),
162
166
  placeholder: "请输入请求URL"
163
167
  }, null, 8, ["modelValue"])
164
168
  ]),
165
169
  _: 1
166
170
  }),
167
- t(l, { label: "请求方式" }, {
171
+ t(n, { label: "请求方式" }, {
168
172
  default: o(() => [
169
173
  t(f, {
170
- modelValue: s.requestConfigData.method,
171
- "onUpdate:modelValue": e[2] || (e[2] = (i) => s.requestConfigData.method = i)
174
+ modelValue: r.requestConfigData.method,
175
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => r.requestConfigData.method = l)
172
176
  }, {
173
177
  default: o(() => [
174
178
  t(m, { value: "get" }, {
@@ -189,11 +193,11 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
189
193
  ]),
190
194
  _: 1
191
195
  }),
192
- t(l, { label: "内容类型" }, {
196
+ t(n, { label: "内容类型" }, {
193
197
  default: o(() => [
194
198
  t(f, {
195
- modelValue: s.requestConfigData.contentType,
196
- "onUpdate:modelValue": e[3] || (e[3] = (i) => s.requestConfigData.contentType = i)
199
+ modelValue: r.requestConfigData.contentType,
200
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => r.requestConfigData.contentType = l)
197
201
  }, {
198
202
  default: o(() => [
199
203
  t(m, { value: "json" }, {
@@ -214,12 +218,12 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
214
218
  ]),
215
219
  _: 1
216
220
  }),
217
- t(l, { label: "请求参数" }, {
221
+ t(n, { label: "请求参数" }, {
218
222
  default: o(() => [
219
- t(B, {
220
- modelValue: s.requestConfigData.params,
221
- "onUpdate:modelValue": e[4] || (e[4] = (i) => s.requestConfigData.params = i),
222
- "available-fields": a(S)
223
+ t(K, {
224
+ modelValue: r.requestConfigData.params,
225
+ "onUpdate:modelValue": e[4] || (e[4] = (l) => r.requestConfigData.params = l),
226
+ "available-fields": a(R)
223
227
  }, null, 8, ["modelValue", "available-fields"])
224
228
  ]),
225
229
  _: 1
@@ -228,39 +232,39 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
228
232
  _: 1
229
233
  }, 8, ["model"])
230
234
  ]),
231
- u("div", ue, [
232
- u("div", me, [
233
- u("span", de, [
234
- t(g, { class: "section-icon" }, {
235
+ u("div", ce, [
236
+ u("div", ve, [
237
+ u("span", _e, [
238
+ t(y, { class: "section-icon" }, {
235
239
  default: o(() => [
236
- t(a(U))
240
+ t(a(k))
237
241
  ]),
238
242
  _: 1
239
243
  }),
240
244
  e[10] || (e[10] = d(" 请求测试 ", -1))
241
245
  ]),
242
- t(w, {
246
+ t(N, {
243
247
  size: "small",
244
248
  type: "primary",
245
- icon: a(U),
249
+ icon: a(k),
246
250
  loading: a(c),
247
- onClick: R
251
+ onClick: F
248
252
  }, {
249
253
  default: o(() => [
250
- d(y(a(c) ? "请求中..." : "测试请求"), 1)
254
+ d(D(a(c) ? "请求中..." : "测试请求"), 1)
251
255
  ]),
252
256
  _: 1
253
257
  }, 8, ["icon", "loading"])
254
258
  ]),
255
- a(n) ? (E(), T("div", fe, [
256
- u("div", pe, [
259
+ a(i) ? (_(), C("div", ge, [
260
+ u("div", be, [
257
261
  e[12] || (e[12] = u("span", null, "响应结果", -1)),
258
- u("div", ce, [
259
- t(w, {
262
+ u("div", ye, [
263
+ t(N, {
260
264
  size: "small",
261
265
  text: "",
262
- icon: a(L),
263
- onClick: k
266
+ icon: a(h),
267
+ onClick: O
264
268
  }, {
265
269
  default: o(() => [...e[11] || (e[11] = [
266
270
  d(" 复制 ", -1)
@@ -269,28 +273,28 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
269
273
  }, 8, ["icon"])
270
274
  ])
271
275
  ]),
272
- u("div", _e, [
273
- t(F, {
274
- type: a(n).status >= 200 && a(n).status < 300 ? "success" : "danger",
276
+ u("div", Ce, [
277
+ t(L, {
278
+ type: a(i).status >= 200 && a(i).status < 300 ? "success" : "danger",
275
279
  size: "small"
276
280
  }, {
277
281
  default: o(() => [
278
- d(y(a(n).status) + " " + y(a(n).statusText || ""), 1)
282
+ d(D(a(i).status) + " " + D(a(i).statusText || ""), 1)
279
283
  ]),
280
284
  _: 1
281
285
  }, 8, ["type"]),
282
- u("span", ve, "耗时: " + y(a(q)) + "ms", 1)
286
+ u("span", De, "耗时: " + D(a(T)) + "ms", 1)
283
287
  ]),
284
- t(a(G), {
285
- value: a(n).data,
288
+ t(a(Q), {
289
+ value: a(i).data,
286
290
  "expand-depth": 1,
287
291
  boxed: "",
288
292
  "show-array-index": !1
289
293
  }, null, 8, ["value"])
290
- ])) : (E(), T("div", ge, [
291
- t(g, { class: "empty-icon" }, {
294
+ ])) : (_(), C("div", Ve, [
295
+ t(y, { class: "empty-icon" }, {
292
296
  default: o(() => [
293
- t(a(j))
297
+ t(a(H))
294
298
  ]),
295
299
  _: 1
296
300
  }),
@@ -300,7 +304,7 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
300
304
  ]),
301
305
  _: 1
302
306
  }),
303
- t(N, {
307
+ t(U, {
304
308
  label: "数据处理",
305
309
  name: "dataHandler"
306
310
  }, {
@@ -318,7 +322,7 @@ const re = { class: "data-source" }, ie = { class: "config-section" }, ue = { cl
318
322
  ]);
319
323
  };
320
324
  }
321
- }, tt = /* @__PURE__ */ Q(be, [["__scopeId", "data-v-e27d1404"]]);
325
+ }, rt = /* @__PURE__ */ Y(qe, [["__scopeId", "data-v-37337f73"]]);
322
326
  export {
323
- tt as default
327
+ rt as default
324
328
  };