form-imagining 0.0.19 → 0.0.20

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 (62) hide show
  1. package/dist/App-603e5455.js +25 -0
  2. package/dist/Code-ef12c34b.js +5 -0
  3. package/dist/Col-74cca139.js +5 -0
  4. package/dist/{Demo-2f408623.js → Demo-602f04d8.js} +16 -16
  5. package/dist/Demo-be0d3a37.js +10 -0
  6. package/dist/{Demo-015b9b67.js → Demo-fdd82548.js} +1 -1
  7. package/dist/{Form-0f5f50ca.js → Form-1e372621.js} +1 -1
  8. package/dist/FormPublic-089eac3d.js +5 -0
  9. package/dist/GenerateForm-30d677aa.js +5 -0
  10. package/dist/Grid-68fdd72c.js +5 -0
  11. package/dist/{HelloWorld-517394a2.js → HelloWorld-2cd60613.js} +1 -1
  12. package/dist/Input-/345/210/240/351/231/{244-4e69b06c.js → 244-e2e34a89.js} +1 -1
  13. package/dist/Label-/345/210/240/351/231/{244-f578d3e5.js → 244-0cb771ab.js} +1 -1
  14. package/dist/{Login-a543825f.js → Login-5c75038a.js} +1 -1
  15. package/dist/{Preview0925-eb180084.js → Preview0925-588dfc2c.js} +1 -1
  16. package/dist/{PreviewDemo-43295c2b.js → PreviewDemo-1d0b0f64.js} +2 -2
  17. package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-4331a2aa.js → PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js} +1 -1
  18. package/dist/{PreviewDemo2-af5b2b15.js → PreviewDemo2-737fda06.js} +2 -2
  19. package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-c4c0faba.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js} +1 -1
  20. package/dist/{PreviewDemo3-74865af3.js → PreviewDemo3-66f4aa07.js} +3 -3
  21. package/dist/{ReportModule-3bfd10cf.js → ReportModule-c94639d3.js} +2 -2
  22. package/dist/{ReportModule.vue_vue_type_script_setup_true_lang-33baf803.js → ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js} +1 -1
  23. package/dist/SqlModule-5f0db752.js +5 -0
  24. package/dist/Table-e36c1320.js +5 -0
  25. package/dist/{cTable-431ee1b4.js → cTable-a295aa0e.js} +1 -1
  26. package/dist/childForm-d19dd561.js +5 -0
  27. package/dist/{cssMode-fe11d538.js → cssMode-8a4c63ba.js} +16 -16
  28. package/dist/form-imagining.js +1 -1
  29. package/dist/form-imagining.umd.cjs +109 -94
  30. package/dist/{freemarker2-a9827bc5.js → freemarker2-e9ba76f1.js} +3 -3
  31. package/dist/{handlebars-fd8c9253.js → handlebars-d018e927.js} +1 -1
  32. package/dist/{html-5b477149.js → html-e310a901.js} +1 -1
  33. package/dist/{htmlMode-0b28e3b6.js → htmlMode-786de656.js} +12 -12
  34. package/dist/{index-fcd8f846.js → index-2679db46.js} +33 -33
  35. package/dist/{index-ad0b4ca1.js → index-6ef372a0.js} +27 -32
  36. package/dist/{index-d5af5250.js → index-c9c30439.js} +35200 -33492
  37. package/dist/{index-1fec8e75.js → index-e4aae2dd.js} +1 -1
  38. package/dist/{javascript-35762a78.js → javascript-f12bd58c.js} +2 -2
  39. package/dist/{jsonMode-a11989e3.js → jsonMode-75952d51.js} +30 -30
  40. package/dist/{liquid-f8e1c827.js → liquid-fb05d087.js} +1 -1
  41. package/dist/{mdx-4548f19b.js → mdx-be59e6cc.js} +1 -1
  42. package/dist/{modalDemo-a8eef4e4.js → modalDemo-2753e710.js} +1 -1
  43. package/dist/{python-c05ae2c4.js → python-ad30fefa.js} +1 -1
  44. package/dist/{razor-d7fe2d0e.js → razor-d91e2766.js} +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/{tableSelectDemo-58dfc524.js → tableSelectDemo-b96742b6.js} +1 -1
  47. package/dist/{tableSelectDemo2-02f609dc.js → tableSelectDemo2-1351b70e.js} +1 -1
  48. package/dist/{tsMode-0eddd23b.js → tsMode-2a9d1903.js} +4 -4
  49. package/dist/{typescript-dda9428f.js → typescript-0c990a02.js} +1 -1
  50. package/dist/{xml-dc95c919.js → xml-2c3838bd.js} +1 -1
  51. package/dist/{yaml-aa39d268.js → yaml-b0a7f3a3.js} +1 -1
  52. package/package.json +1 -1
  53. package/dist/App-52419af9.js +0 -22
  54. package/dist/Code-2bb39b3d.js +0 -5
  55. package/dist/Col-2cdf69c5.js +0 -5
  56. package/dist/Demo-6d1f7624.js +0 -10
  57. package/dist/FormPublic-044b0ba0.js +0 -5
  58. package/dist/GenerateForm-e3fa78fc.js +0 -5
  59. package/dist/Grid-625fc82d.js +0 -5
  60. package/dist/SqlModule-265d1b00.js +0 -5
  61. package/dist/Table-05d6b54d.js +0 -5
  62. package/dist/childForm-5998f80c.js +0 -5
@@ -1,4 +1,4 @@
1
- import { J as F } from "./index-d5af5250.js";
1
+ import { I as F } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -630,14 +630,14 @@ var w = {
630
630
  }, P = {
631
631
  conf: A(),
632
632
  language: m(k)
633
- }, y = {
633
+ }, I = {
634
634
  conf: A(),
635
635
  language: m(p)
636
636
  };
637
637
  export {
638
638
  h as TagAngleInterpolationBracket,
639
639
  w as TagAngleInterpolationDollar,
640
- y as TagAutoInterpolationBracket,
640
+ I as TagAutoInterpolationBracket,
641
641
  P as TagAutoInterpolationDollar,
642
642
  S as TagBracketInterpolationBracket,
643
643
  T as TagBracketInterpolationDollar
@@ -1,4 +1,4 @@
1
- import { J as i } from "./index-d5af5250.js";
1
+ import { I as i } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { J as p } from "./index-d5af5250.js";
1
+ import { I as p } from "./index-c9c30439.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { J as Je } from "./index-d5af5250.js";
4
+ import { I as Qe } from "./index-c9c30439.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -9,13 +9,13 @@ import "vue";
9
9
  * Released under the MIT license
10
10
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
11
11
  *-----------------------------------------------------------------------------*/
12
- var Qe = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Ye = Object.getOwnPropertyNames, Ze = Object.prototype.hasOwnProperty, Y = (e, n, i, r) => {
12
+ var Ge = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ye = Object.getOwnPropertyNames, Ze = Object.prototype.hasOwnProperty, Y = (e, n, i, r) => {
13
13
  if (n && typeof n == "object" || typeof n == "function")
14
14
  for (let t of Ye(n))
15
- !Ze.call(e, t) && t !== i && Qe(e, t, { get: () => n[t], enumerable: !(r = Ge(n, t)) || r.enumerable });
15
+ !Ze.call(e, t) && t !== i && Ge(e, t, { get: () => n[t], enumerable: !(r = Je(n, t)) || r.enumerable });
16
16
  return e;
17
17
  }, Ke = (e, n, i) => (Y(e, n, "default"), i && Y(i, n, "default")), c = {};
18
- Ke(c, Je);
18
+ Ke(c, Qe);
19
19
  var et = 2 * 60 * 1e3, Me = class {
20
20
  constructor(e) {
21
21
  k(this, "_defaults");
@@ -555,22 +555,22 @@ var L;
555
555
  }
556
556
  e.is = n;
557
557
  })(L || (L = {}));
558
- var J;
558
+ var Q;
559
559
  (function(e) {
560
560
  function n(i) {
561
561
  var r = i;
562
562
  return s.objectLiteral(i) && L.is(r.kind) && s.string(r.value);
563
563
  }
564
564
  e.is = n;
565
- })(J || (J = {}));
565
+ })(Q || (Q = {}));
566
566
  var l;
567
567
  (function(e) {
568
568
  e.Text = 1, e.Method = 2, e.Function = 3, e.Constructor = 4, e.Field = 5, e.Variable = 6, e.Class = 7, e.Interface = 8, e.Module = 9, e.Property = 10, e.Unit = 11, e.Value = 12, e.Enum = 13, e.Keyword = 14, e.Snippet = 15, e.Color = 16, e.File = 17, e.Reference = 18, e.Folder = 19, e.EnumMember = 20, e.Constant = 21, e.Struct = 22, e.Event = 23, e.Operator = 24, e.TypeParameter = 25;
569
569
  })(l || (l = {}));
570
- var Q;
570
+ var G;
571
571
  (function(e) {
572
572
  e.PlainText = 1, e.Snippet = 2;
573
- })(Q || (Q = {}));
573
+ })(G || (G = {}));
574
574
  var ce;
575
575
  (function(e) {
576
576
  e.Deprecated = 1;
@@ -621,7 +621,7 @@ var he;
621
621
  (function(e) {
622
622
  function n(i) {
623
623
  var r = i;
624
- return !!r && s.objectLiteral(r) && (J.is(r.contents) || z.is(r.contents) || s.typedArray(r.contents, z.is)) && (i.range === void 0 || p.is(i.range));
624
+ return !!r && s.objectLiteral(r) && (Q.is(r.contents) || z.is(r.contents) || s.typedArray(r.contents, z.is)) && (i.range === void 0 || p.is(i.range));
625
625
  }
626
626
  e.is = n;
627
627
  })(he || (he = {}));
@@ -785,8 +785,8 @@ var Pe;
785
785
  e.is = i;
786
786
  function r(a, o) {
787
787
  for (var u = a.getText(), f = t(o, function(y, N) {
788
- var G = y.range.start.line - N.range.start.line;
789
- return G === 0 ? y.range.start.character - N.range.start.character : G;
788
+ var J = y.range.start.line - N.range.start.line;
789
+ return J === 0 ? y.range.start.character - N.range.start.character : J;
790
790
  }), d = u.length, v = f.length - 1; v >= 0; v--) {
791
791
  var w = f[v], E = a.offsetAt(w.range.start), g = a.offsetAt(w.range.end);
792
792
  if (g <= d)
@@ -1029,7 +1029,7 @@ var it = class {
1029
1029
  return d.textEdit && (at(d.textEdit) ? v.range = {
1030
1030
  insert: _(d.textEdit.insert),
1031
1031
  replace: _(d.textEdit.replace)
1032
- } : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat === Q.Snippet && (v.insertTextRules = c.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
1032
+ } : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat === G.Snippet && (v.insertTextRules = c.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
1033
1033
  });
1034
1034
  return {
1035
1035
  isIncomplete: a.isIncomplete,
@@ -1,8 +1,8 @@
1
- import { defineComponent as I, ref as s, onMounted as N, resolveComponent as r, openBlock as T, createBlock as z, withCtx as e, createVNode as t, createElementVNode as i, unref as l, createTextVNode as x } from "vue";
2
- import { u as B, q as v, D as K, B as S, C as H, G as V, H as A, I as q, _ as E } from "./index-d5af5250.js";
3
- import G from "./index-ad0b4ca1.js";
4
- import { _ as J } from "./ReportModule.vue_vue_type_script_setup_true_lang-33baf803.js";
5
- const L = { style: { background: "#fff", textAlign: "center", height: "99%" } }, M = /* @__PURE__ */ I({
1
+ import { defineComponent as I, ref as s, onMounted as N, resolveComponent as r, openBlock as T, createBlock as z, withCtx as e, createVNode as t, createElementVNode as i, unref as l, createTextVNode as v } from "vue";
2
+ import { u as K, l as x, D as S, A, F as B, r as V, m as H, n as E, _ as J } from "./index-c9c30439.js";
3
+ import L from "./index-6ef372a0.js";
4
+ import { _ as M } from "./ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js";
5
+ const O = { style: { background: "#fff", textAlign: "center", height: "99%" } }, R = /* @__PURE__ */ I({
6
6
  __name: "index",
7
7
  props: {
8
8
  id: {
@@ -11,33 +11,33 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
11
11
  }
12
12
  },
13
13
  setup(u) {
14
- const _ = B(), d = u;
15
- let b = s([]), f = s(), p = s();
14
+ const _ = K(), c = u;
15
+ let b = s([]), f = s(), m = s();
16
16
  h(), D();
17
17
  function h() {
18
18
  const o = "/magicapi/zrzy-form/magic/form/form/list";
19
- v.post({ url: o, params: { id: d.id } }, { withToken: !0 }).then((a) => {
19
+ x.post({ url: o, params: { id: c.id } }, { withToken: !0 }).then((a) => {
20
20
  const n = a.list[0];
21
- if (p.value = n.code, n.content != "") {
22
- const c = JSON.parse(n.content);
23
- _.setFormData(c);
21
+ if (m.value = n.code, n.content != "") {
22
+ const d = JSON.parse(n.content);
23
+ _.setFormData(d);
24
24
  }
25
25
  });
26
26
  }
27
27
  function D() {
28
28
  const o = "/magicapi/zrzy-form/magic/form/source/list";
29
- v.post({ url: o, params: { formId: d.id } }, { withToken: !0 }).then((a) => {
29
+ x.post({ url: o, params: { formId: c.id } }, { withToken: !0 }).then((a) => {
30
30
  b.value = a.list;
31
31
  });
32
32
  }
33
- const m = s("1");
34
- function C(o) {
33
+ const p = s("1");
34
+ function F(o) {
35
35
  f.value = o;
36
36
  }
37
37
  return N(() => {
38
- _.setFormId(d.id);
38
+ _.setFormId(c.id);
39
39
  }), (o, a) => {
40
- const n = r("a-tab-pane"), c = r("a-tabs"), y = r("a-layout-sider"), k = r("a-layout-header"), F = r("a-layout-content"), g = r("a-layout");
40
+ const n = r("a-tab-pane"), d = r("a-tabs"), y = r("a-layout-sider"), k = r("a-layout-header"), C = r("a-layout-content"), g = r("a-layout");
41
41
  return T(), z(g, { style: { height: "100%", padding: "5px 5px" } }, {
42
42
  default: e(() => [
43
43
  t(y, {
@@ -45,32 +45,32 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
45
45
  style: { left: 0, top: 0, bottom: 0 }
46
46
  }, {
47
47
  default: e(() => [
48
- t(c, {
49
- activeKey: m.value,
50
- "onUpdate:activeKey": a[0] || (a[0] = (w) => m.value = w)
48
+ t(d, {
49
+ activeKey: p.value,
50
+ "onUpdate:activeKey": a[0] || (a[0] = (w) => p.value = w)
51
51
  }, {
52
52
  default: e(() => [
53
53
  t(n, { key: "1" }, {
54
54
  tab: e(() => [
55
55
  i("span", null, [
56
- t(l(K)),
57
- x(" 报表信息 ")
56
+ t(l(S)),
57
+ v(" 报表信息 ")
58
58
  ])
59
59
  ]),
60
60
  default: e(() => [
61
- t(J)
61
+ t(M)
62
62
  ]),
63
63
  _: 1
64
64
  }),
65
65
  t(n, { key: "2" }, {
66
66
  tab: e(() => [
67
67
  i("span", null, [
68
- t(l(S)),
69
- x(" 报表组件 ")
68
+ t(l(A)),
69
+ v(" 报表组件 ")
70
70
  ])
71
71
  ]),
72
72
  default: e(() => [
73
- t(H, { "data-source": l(V) }, null, 8, ["data-source"])
73
+ t(B, { "data-source": l(V) }, null, 8, ["data-source"])
74
74
  ]),
75
75
  _: 1
76
76
  })
@@ -84,17 +84,17 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
84
84
  default: e(() => [
85
85
  t(k, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px" } }, {
86
86
  default: e(() => [
87
- t(G, {
87
+ t(L, {
88
88
  formId: u.id,
89
- code: l(p)
89
+ code: l(m)
90
90
  }, null, 8, ["formId", "code"])
91
91
  ]),
92
92
  _: 1
93
93
  }),
94
- t(F, { style: { overflow: "auto" } }, {
94
+ t(C, { style: { overflow: "auto" } }, {
95
95
  default: e(() => [
96
- i("div", L, [
97
- t(A, { onControlConfig: C })
96
+ i("div", O, [
97
+ t(H, { onControlConfig: F })
98
98
  ])
99
99
  ]),
100
100
  _: 1
@@ -107,7 +107,7 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
107
107
  style: { right: 0, top: 0, bottom: 0 }
108
108
  }, {
109
109
  default: e(() => [
110
- t(q, { configData: l(f) }, null, 8, ["configData"])
110
+ t(E, { configData: l(f) }, null, 8, ["configData"])
111
111
  ]),
112
112
  _: 1
113
113
  })
@@ -117,7 +117,7 @@ const L = { style: { background: "#fff", textAlign: "center", height: "99%" } },
117
117
  };
118
118
  }
119
119
  });
120
- const P = /* @__PURE__ */ E(M, [["__scopeId", "data-v-62871ad5"]]);
120
+ const G = /* @__PURE__ */ J(R, [["__scopeId", "data-v-62871ad5"]]);
121
121
  export {
122
- P as default
122
+ G as default
123
123
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as H, ref as l, resolveComponent as f, openBlock as c, createElementBlock as y, Fragment as k, createElementVNode as b, renderList as M, createVNode as s, withCtx as i, createTextVNode as h, toDisplayString as B, createBlock as x, unref as C, createCommentVNode as w } from "vue";
2
- import { u as F, x as R, r as L, e as U, M as q, E as A, q as D, y as J, n as V, A as G, _ as K } from "./index-d5af5250.js";
1
+ import { defineComponent as L, ref as r, resolveComponent as f, openBlock as c, createElementBlock as y, Fragment as k, createElementVNode as b, renderList as M, createVNode as s, withCtx as i, createTextVNode as h, toDisplayString as B, createBlock as x, unref as C, createCommentVNode as w } from "vue";
2
+ import { u as F, s as H, p as R, e as U, M as q, E as J, l as T, q as A, w as V, x as G, _ as K } from "./index-c9c30439.js";
3
3
  function P(v) {
4
4
  return `
5
5
  <template>
@@ -8,15 +8,10 @@ function P(v) {
8
8
 
9
9
  <script setup lang="ts">
10
10
  import { defHttp } from "/@/utils/http/axios";
11
-
11
+ import { initTableList } from "/@/utils/form/wonder-report";
12
12
  import { ref } from "vue";
13
13
  let formModel = ref({})
14
- getData(viewData,formId)
15
- function getData(viewData,formId){
16
- defHttp.get({url:'/api/report/getReportData?formId='+formId}).then((res)=>{
17
- viewData.value = res.data
18
- })
19
- }
14
+ initTableList(viewData,formId)
20
15
 
21
16
  /**
22
17
  * 分页
@@ -34,7 +29,7 @@ export function onChange(pag: any, callback: any) {
34
29
  </style>
35
30
  `;
36
31
  }
37
- const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
32
+ const Q = { class: "flex-div" }, W = /* @__PURE__ */ L({
38
33
  __name: "index",
39
34
  props: {
40
35
  formId: {
@@ -48,10 +43,10 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
48
43
  },
49
44
  setup(v) {
50
45
  const p = v, n = F();
51
- R(n);
52
- const a = l(!1), r = l(!1), j = () => {
46
+ H(n);
47
+ const a = r(!1), l = r(!1), j = () => {
53
48
  a.value = !0;
54
- }, I = [
49
+ }, D = [
55
50
  { icon: "preview", title: "预览", type: "preview" },
56
51
  { icon: "json", title: "json", type: "json" },
57
52
  { icon: "ing", title: "测试数据", type: "ceshi" },
@@ -60,36 +55,36 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
60
55
  { icon: "save", title: "保存", type: "save" },
61
56
  { icon: "code", title: "文件", type: "saveVue" }
62
57
  ];
63
- let u = l(), d = l("json");
58
+ let u = r(), d = r("json");
64
59
  function N(e) {
65
60
  switch (e) {
66
61
  case "json":
67
62
  u.value = null, d.value = "json", j();
68
63
  break;
69
64
  case "code":
70
- d.value = "html", S();
65
+ d.value = "html", $();
71
66
  break;
72
67
  case "preview":
73
- r.value = !0;
68
+ l.value = !0;
74
69
  break;
75
70
  case "clear":
76
71
  O();
77
72
  break;
78
73
  case "save":
79
- z();
74
+ E();
80
75
  break;
81
76
  case "saveVue":
82
- $();
77
+ z();
83
78
  break;
84
79
  default:
85
- T();
80
+ S();
86
81
  break;
87
82
  }
88
83
  }
89
84
  const O = () => {
90
85
  q.confirm({
91
86
  title: "确定清除当前表单吗?",
92
- icon: s(A),
87
+ icon: s(J),
93
88
  content: "清除后将不能找回",
94
89
  onOk() {
95
90
  n.formData.list = [];
@@ -98,32 +93,32 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
98
93
  }
99
94
  });
100
95
  };
101
- function T() {
96
+ function S() {
102
97
  const e = G[0];
103
98
  n.setFormData1(e);
104
99
  }
105
- function S() {
100
+ function $() {
106
101
  u.value = P(), a.value = !0;
107
102
  }
108
- function $() {
103
+ function z() {
109
104
  const e = generate(), t = "/imaginform/zrzy-form/generate/createVue";
110
- D.post({ url: t, data: { name: p.code, vueCode: J(e) } }, { withToken: !0 }).then((m) => {
105
+ T.post({ url: t, data: { name: p.code, vueCode: A(e) } }, { withToken: !0 }).then((m) => {
111
106
  m.code == 200 && V.success("保存成功");
112
107
  });
113
108
  }
114
109
  const _ = (e) => {
115
110
  a.value = !1;
116
- }, z = () => {
111
+ }, E = () => {
117
112
  const e = "/magicapi/zrzy-form/magic/form/form/edit";
118
- D.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
113
+ T.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
119
114
  t == 1 && V.success("保存成功");
120
115
  });
121
116
  };
122
117
  return (e, t) => {
123
- const m = f("svg-icon"), E = f("a-button"), g = f("a-modal");
118
+ const m = f("svg-icon"), I = f("a-button"), g = f("a-modal");
124
119
  return c(), y(k, null, [
125
120
  b("div", Q, [
126
- (c(), y(k, null, M(I, (o) => s(E, {
121
+ (c(), y(k, null, M(D, (o) => s(I, {
127
122
  type: "text",
128
123
  style: { margin: "auto 5px", color: "rgba(35,46,60,.7)" },
129
124
  onClick: (X) => N(o.type)
@@ -151,7 +146,7 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
151
146
  onOk: _
152
147
  }, {
153
148
  default: i(() => [
154
- a.value ? (c(), x(L, {
149
+ a.value ? (c(), x(R, {
155
150
  key: 0,
156
151
  code: C(u),
157
152
  language: C(d)
@@ -160,14 +155,14 @@ const Q = { class: "flex-div" }, W = /* @__PURE__ */ H({
160
155
  _: 1
161
156
  }, 8, ["open"]),
162
157
  s(g, {
163
- open: r.value,
164
- "onUpdate:open": t[1] || (t[1] = (o) => r.value = o),
158
+ open: l.value,
159
+ "onUpdate:open": t[1] || (t[1] = (o) => l.value = o),
165
160
  title: "预览",
166
161
  width: "100%",
167
162
  onOk: _
168
163
  }, {
169
164
  default: i(() => [
170
- r.value ? (c(), x(U, { key: 0 })) : w("", !0)
165
+ l.value ? (c(), x(U, { key: 0 })) : w("", !0)
171
166
  ]),
172
167
  _: 1
173
168
  }, 8, ["open"])