form-imagining 0.0.18 → 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-66048d92.js → Demo-602f04d8.js} +16 -16
  5. package/dist/Demo-be0d3a37.js +10 -0
  6. package/dist/{Demo-81779321.js → Demo-fdd82548.js} +1 -1
  7. package/dist/{Form-3b37dab0.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-2cd60613.js +10 -0
  12. package/dist/Input-/345/210/240/351/231/{244-8e48b645.js → 244-e2e34a89.js} +1 -1
  13. package/dist/Label-/345/210/240/351/231/{244-92cc39ed.js → 244-0cb771ab.js} +1 -1
  14. package/dist/{Login-84a5c37f.js → Login-5c75038a.js} +1 -1
  15. package/dist/{Preview0925-09383b48.js → Preview0925-588dfc2c.js} +1 -1
  16. package/dist/{PreviewDemo-aff28c32.js → PreviewDemo-1d0b0f64.js} +2 -2
  17. package/dist/{PreviewDemo.vue_vue_type_script_setup_true_lang-9d1b1e05.js → PreviewDemo.vue_vue_type_script_setup_true_lang-f4e79a3a.js} +1 -1
  18. package/dist/{PreviewDemo2-330c29d4.js → PreviewDemo2-737fda06.js} +2 -2
  19. package/dist/{PreviewDemo2.vue_vue_type_script_setup_true_lang-c4e8cb4a.js → PreviewDemo2.vue_vue_type_script_setup_true_lang-24e1e1ab.js} +1 -1
  20. package/dist/{PreviewDemo3-a8e43f39.js → PreviewDemo3-66f4aa07.js} +3 -3
  21. package/dist/ReportModule-c94639d3.js +6 -0
  22. package/dist/ReportModule.vue_vue_type_script_setup_true_lang-c11b0684.js +105 -0
  23. package/dist/SqlModule-5f0db752.js +5 -0
  24. package/dist/Table-e36c1320.js +5 -0
  25. package/dist/{cTable-80292a3f.js → cTable-a295aa0e.js} +1 -1
  26. package/dist/childForm-d19dd561.js +5 -0
  27. package/dist/{cssMode-dbf55eb9.js → cssMode-8a4c63ba.js} +1 -1
  28. package/dist/form-imagining.js +1 -1
  29. package/dist/form-imagining.umd.cjs +487 -434
  30. package/dist/{freemarker2-1796a3c0.js → freemarker2-e9ba76f1.js} +3 -3
  31. package/dist/{handlebars-c5fa8b22.js → handlebars-d018e927.js} +1 -1
  32. package/dist/{html-0e67575f.js → html-e310a901.js} +1 -1
  33. package/dist/{htmlMode-9bbe5458.js → htmlMode-786de656.js} +1 -1
  34. package/dist/index-2679db46.js +123 -0
  35. package/dist/index-6ef372a0.js +177 -0
  36. package/dist/{index-db3d3dd6.js → index-c9c30439.js} +37115 -35134
  37. package/dist/{index-31088a08.js → index-e4aae2dd.js} +1 -1
  38. package/dist/{javascript-2637dec2.js → javascript-f12bd58c.js} +2 -2
  39. package/dist/{jsonMode-2b76639d.js → jsonMode-75952d51.js} +30 -30
  40. package/dist/{liquid-d7fb1edd.js → liquid-fb05d087.js} +1 -1
  41. package/dist/{mdx-779f31ca.js → mdx-be59e6cc.js} +1 -1
  42. package/dist/{modalDemo-ead6bc3c.js → modalDemo-2753e710.js} +1 -1
  43. package/dist/{python-d7b91bf4.js → python-ad30fefa.js} +1 -1
  44. package/dist/{razor-dd978464.js → razor-d91e2766.js} +1 -1
  45. package/dist/style.css +1 -1
  46. package/dist/{tableSelectDemo-a6e852ec.js → tableSelectDemo-b96742b6.js} +10 -11
  47. package/dist/{tableSelectDemo2-6f8dcaf3.js → tableSelectDemo2-1351b70e.js} +1 -1
  48. package/dist/{tsMode-17f5f076.js → tsMode-2a9d1903.js} +6 -6
  49. package/dist/{typescript-6b0f1250.js → typescript-0c990a02.js} +1 -1
  50. package/dist/{xml-60875fce.js → xml-2c3838bd.js} +1 -1
  51. package/dist/{yaml-7c367aa5.js → yaml-b0a7f3a3.js} +1 -1
  52. package/package.json +3 -2
  53. package/dist/App-d2ace058.js +0 -22
  54. package/dist/Code-cc12eba0.js +0 -5
  55. package/dist/Col-46a13146.js +0 -5
  56. package/dist/FormPublic-07da9cf3.js +0 -5
  57. package/dist/GenerateForm-a6f95666.js +0 -5
  58. package/dist/Grid-9bc5a2f5.js +0 -5
  59. package/dist/SqlModule-f5110478.js +0 -5
  60. package/dist/Table-2fdc291f.js +0 -5
  61. package/dist/childForm-4c5c3df5.js +0 -5
  62. package/dist/tableSelectOptions-97e674c2.js +0 -16
@@ -1,4 +1,4 @@
1
- import { t as F } from "./index-db3d3dd6.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 { t as i } from "./index-db3d3dd6.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 { t as p } from "./index-db3d3dd6.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 { t as Qe } from "./index-db3d3dd6.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.
@@ -0,0 +1,123 @@
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
+ __name: "index",
7
+ props: {
8
+ id: {
9
+ type: Number,
10
+ default: 28
11
+ }
12
+ },
13
+ setup(u) {
14
+ const _ = K(), c = u;
15
+ let b = s([]), f = s(), m = s();
16
+ h(), D();
17
+ function h() {
18
+ const o = "/magicapi/zrzy-form/magic/form/form/list";
19
+ x.post({ url: o, params: { id: c.id } }, { withToken: !0 }).then((a) => {
20
+ const n = a.list[0];
21
+ if (m.value = n.code, n.content != "") {
22
+ const d = JSON.parse(n.content);
23
+ _.setFormData(d);
24
+ }
25
+ });
26
+ }
27
+ function D() {
28
+ const o = "/magicapi/zrzy-form/magic/form/source/list";
29
+ x.post({ url: o, params: { formId: c.id } }, { withToken: !0 }).then((a) => {
30
+ b.value = a.list;
31
+ });
32
+ }
33
+ const p = s("1");
34
+ function F(o) {
35
+ f.value = o;
36
+ }
37
+ return N(() => {
38
+ _.setFormId(c.id);
39
+ }), (o, a) => {
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
+ return T(), z(g, { style: { height: "100%", padding: "5px 5px" } }, {
42
+ default: e(() => [
43
+ t(y, {
44
+ width: "270",
45
+ style: { left: 0, top: 0, bottom: 0 }
46
+ }, {
47
+ default: e(() => [
48
+ t(d, {
49
+ activeKey: p.value,
50
+ "onUpdate:activeKey": a[0] || (a[0] = (w) => p.value = w)
51
+ }, {
52
+ default: e(() => [
53
+ t(n, { key: "1" }, {
54
+ tab: e(() => [
55
+ i("span", null, [
56
+ t(l(S)),
57
+ v(" 报表信息 ")
58
+ ])
59
+ ]),
60
+ default: e(() => [
61
+ t(M)
62
+ ]),
63
+ _: 1
64
+ }),
65
+ t(n, { key: "2" }, {
66
+ tab: e(() => [
67
+ i("span", null, [
68
+ t(l(A)),
69
+ v(" 报表组件 ")
70
+ ])
71
+ ]),
72
+ default: e(() => [
73
+ t(B, { "data-source": l(V) }, null, 8, ["data-source"])
74
+ ]),
75
+ _: 1
76
+ })
77
+ ]),
78
+ _: 1
79
+ }, 8, ["activeKey"])
80
+ ]),
81
+ _: 1
82
+ }),
83
+ t(g, { style: { margin: "0px 5px" } }, {
84
+ default: e(() => [
85
+ t(k, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px" } }, {
86
+ default: e(() => [
87
+ t(L, {
88
+ formId: u.id,
89
+ code: l(m)
90
+ }, null, 8, ["formId", "code"])
91
+ ]),
92
+ _: 1
93
+ }),
94
+ t(C, { style: { overflow: "auto" } }, {
95
+ default: e(() => [
96
+ i("div", O, [
97
+ t(H, { onControlConfig: F })
98
+ ])
99
+ ]),
100
+ _: 1
101
+ })
102
+ ]),
103
+ _: 1
104
+ }),
105
+ t(y, {
106
+ width: "250",
107
+ style: { right: 0, top: 0, bottom: 0 }
108
+ }, {
109
+ default: e(() => [
110
+ t(E, { configData: l(f) }, null, 8, ["configData"])
111
+ ]),
112
+ _: 1
113
+ })
114
+ ]),
115
+ _: 1
116
+ });
117
+ };
118
+ }
119
+ });
120
+ const G = /* @__PURE__ */ J(R, [["__scopeId", "data-v-62871ad5"]]);
121
+ export {
122
+ G as default
123
+ };
@@ -0,0 +1,177 @@
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
+ function P(v) {
4
+ return `
5
+ <template>
6
+
7
+ </template>
8
+
9
+ <script setup lang="ts">
10
+ import { defHttp } from "/@/utils/http/axios";
11
+ import { initTableList } from "/@/utils/form/wonder-report";
12
+ import { ref } from "vue";
13
+ let formModel = ref({})
14
+ initTableList(viewData,formId)
15
+
16
+ /**
17
+ * 分页
18
+ * @param pag
19
+ * @param callback 回调函数
20
+ */
21
+ export function onChange(pag: any, callback: any) {
22
+ pagination.value = pag
23
+ callback()
24
+ }
25
+ <\/script>
26
+
27
+ <style scoped lang="less">
28
+ @import url('/@/assets/less/form.less');
29
+ </style>
30
+ `;
31
+ }
32
+ const Q = { class: "flex-div" }, W = /* @__PURE__ */ L({
33
+ __name: "index",
34
+ props: {
35
+ formId: {
36
+ type: Number,
37
+ default: 14
38
+ },
39
+ code: {
40
+ type: String,
41
+ defalut: ""
42
+ }
43
+ },
44
+ setup(v) {
45
+ const p = v, n = F();
46
+ H(n);
47
+ const a = r(!1), l = r(!1), j = () => {
48
+ a.value = !0;
49
+ }, D = [
50
+ { icon: "preview", title: "预览", type: "preview" },
51
+ { icon: "json", title: "json", type: "json" },
52
+ { icon: "ing", title: "测试数据", type: "ceshi" },
53
+ { icon: "clear", title: "清除", type: "clear" },
54
+ { icon: "code", title: "代码", type: "code" },
55
+ { icon: "save", title: "保存", type: "save" },
56
+ { icon: "code", title: "文件", type: "saveVue" }
57
+ ];
58
+ let u = r(), d = r("json");
59
+ function N(e) {
60
+ switch (e) {
61
+ case "json":
62
+ u.value = null, d.value = "json", j();
63
+ break;
64
+ case "code":
65
+ d.value = "html", $();
66
+ break;
67
+ case "preview":
68
+ l.value = !0;
69
+ break;
70
+ case "clear":
71
+ O();
72
+ break;
73
+ case "save":
74
+ E();
75
+ break;
76
+ case "saveVue":
77
+ z();
78
+ break;
79
+ default:
80
+ S();
81
+ break;
82
+ }
83
+ }
84
+ const O = () => {
85
+ q.confirm({
86
+ title: "确定清除当前表单吗?",
87
+ icon: s(J),
88
+ content: "清除后将不能找回",
89
+ onOk() {
90
+ n.formData.list = [];
91
+ },
92
+ onCancel() {
93
+ }
94
+ });
95
+ };
96
+ function S() {
97
+ const e = G[0];
98
+ n.setFormData1(e);
99
+ }
100
+ function $() {
101
+ u.value = P(), a.value = !0;
102
+ }
103
+ function z() {
104
+ const e = generate(), t = "/imaginform/zrzy-form/generate/createVue";
105
+ T.post({ url: t, data: { name: p.code, vueCode: A(e) } }, { withToken: !0 }).then((m) => {
106
+ m.code == 200 && V.success("保存成功");
107
+ });
108
+ }
109
+ const _ = (e) => {
110
+ a.value = !1;
111
+ }, E = () => {
112
+ const e = "/magicapi/zrzy-form/magic/form/form/edit";
113
+ T.post({ url: e, data: { id: p.formId, content: JSON.stringify(n.formData) } }, { withToken: !1 }).then((t) => {
114
+ t == 1 && V.success("保存成功");
115
+ });
116
+ };
117
+ return (e, t) => {
118
+ const m = f("svg-icon"), I = f("a-button"), g = f("a-modal");
119
+ return c(), y(k, null, [
120
+ b("div", Q, [
121
+ (c(), y(k, null, M(D, (o) => s(I, {
122
+ type: "text",
123
+ style: { margin: "auto 5px", color: "rgba(35,46,60,.7)" },
124
+ onClick: (X) => N(o.type)
125
+ }, {
126
+ icon: i(() => [
127
+ s(m, {
128
+ name: o.icon,
129
+ class: "toolbar-css",
130
+ title: o.title
131
+ }, null, 8, ["name", "title"]),
132
+ h("  ")
133
+ ]),
134
+ default: i(() => [
135
+ h(" " + B(o.title), 1)
136
+ ]),
137
+ _: 2
138
+ }, 1032, ["onClick"])), 64))
139
+ ]),
140
+ b("div", null, [
141
+ s(g, {
142
+ open: a.value,
143
+ "onUpdate:open": t[0] || (t[0] = (o) => a.value = o),
144
+ title: "代码",
145
+ width: "1000px",
146
+ onOk: _
147
+ }, {
148
+ default: i(() => [
149
+ a.value ? (c(), x(R, {
150
+ key: 0,
151
+ code: C(u),
152
+ language: C(d)
153
+ }, null, 8, ["code", "language"])) : w("", !0)
154
+ ]),
155
+ _: 1
156
+ }, 8, ["open"]),
157
+ s(g, {
158
+ open: l.value,
159
+ "onUpdate:open": t[1] || (t[1] = (o) => l.value = o),
160
+ title: "预览",
161
+ width: "100%",
162
+ onOk: _
163
+ }, {
164
+ default: i(() => [
165
+ l.value ? (c(), x(U, { key: 0 })) : w("", !0)
166
+ ]),
167
+ _: 1
168
+ }, 8, ["open"])
169
+ ])
170
+ ], 64);
171
+ };
172
+ }
173
+ });
174
+ const ee = /* @__PURE__ */ K(W, [["__scopeId", "data-v-ac8c43ce"]]);
175
+ export {
176
+ ee as default
177
+ };