form-imagining 0.0.91-4-beta39 → 0.0.91-4-beta41

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 (114) hide show
  1. package/dist/App-B0GWtYzF.js +32 -0
  2. package/dist/App-CztPg8BN.js +32 -0
  3. package/dist/Area-CUz8zb8c.js +4 -0
  4. package/dist/Area-Dx-PP45j.js +4 -0
  5. package/dist/Bar-BKYnaOzM.js +4 -0
  6. package/dist/Bar-Tg6vLjbp.js +4 -0
  7. package/dist/ChartsArea-BsYSf-0t.js +4 -0
  8. package/dist/ChartsArea-y_yfvMi6.js +4 -0
  9. package/dist/ChartsBar-BvRpwXh8.js +4 -0
  10. package/dist/ChartsBar-k52N1xQ5.js +4 -0
  11. package/dist/ChartsPie-6OVqYhAp.js +4 -0
  12. package/dist/ChartsPie-CjwiMQzu.js +4 -0
  13. package/dist/CheckBoxModel-BosJNMr8.js +4 -0
  14. package/dist/CheckBoxModel-wLEn2Y7q.js +4 -0
  15. package/dist/Col-DfHMuSPC.js +4 -0
  16. package/dist/Col-yZroawcH.js +4 -0
  17. package/dist/Collapse--_bcubWO.js +4 -0
  18. package/dist/Collapse-CYrPpafb.js +4 -0
  19. package/dist/CommonText copy-C8zRoT1y.js +189 -0
  20. package/dist/CommonText copy-Qa0bXUm_.js +189 -0
  21. package/dist/Demo-CdmC_0Am.js +72 -0
  22. package/dist/Demo-DPZTf-4I.js +201 -0
  23. package/dist/Demo-DQuJtf9B.js +201 -0
  24. package/dist/Demo-DpSCDz6v.js +72 -0
  25. package/dist/FView-BZOPt2Fh.js +4 -0
  26. package/dist/FView-CTx-tekz.js +4 -0
  27. package/dist/FX-Cl2IzFVR.js +4 -0
  28. package/dist/FX-Ct7UWmMk.js +4 -0
  29. package/dist/FormGridCopy-C-2qs8uG.js +168 -0
  30. package/dist/FormGridCopy-CH89yTGJ.js +168 -0
  31. package/dist/FormImagining-BJv75Veq.js +9 -0
  32. package/dist/FormImagining-DGriklQg.js +9 -0
  33. package/dist/GenerateForm-B30WPUJn.js +4 -0
  34. package/dist/GenerateForm-Cvfy85oS.js +4 -0
  35. package/dist/GenerateReport-CiVjRY_I.js +4 -0
  36. package/dist/GenerateReport-lGtquMfB.js +4 -0
  37. package/dist/HelloWorld-CHpibkHK.js +9 -0
  38. package/dist/HelloWorld-Cs5k1KTl.js +9 -0
  39. package/dist/Input-/345/210/240/351/231/244-E9ea8t1k.js +87 -0
  40. package/dist/Input-/345/210/240/351/231/244-Mg6fSp_A.js +87 -0
  41. package/dist/Label-/345/210/240/351/231/244-Dsb1JRCo.js +92 -0
  42. package/dist/Label-/345/210/240/351/231/244-cRVUm69u.js +92 -0
  43. package/dist/LabelModel-D3VSVNGM.js +4 -0
  44. package/dist/LabelModel-hsi64jj0.js +4 -0
  45. package/dist/Login-7ZwVZ1kM.js +9 -0
  46. package/dist/Login-B8wYKE9r.js +9 -0
  47. package/dist/Pie-BLZAaU-M.js +4 -0
  48. package/dist/Pie-DNG4hOWd.js +4 -0
  49. package/dist/PropertyIndex-CtWE7Ay3.js +4 -0
  50. package/dist/PropertyIndex-k5F4d_C7.js +4 -0
  51. package/dist/RView-CWV7qQOK.js +4 -0
  52. package/dist/RView-DGIy-f_V.js +4 -0
  53. package/dist/SqlModule-Cw9ldrts.js +4 -0
  54. package/dist/SqlModule-dKnWttH7.js +4 -0
  55. package/dist/SvgIconCopy-DwzgxnkB.js +39 -0
  56. package/dist/SvgIconCopy-DyHqzeTT.js +39 -0
  57. package/dist/TableBtnModal-BLU7Ipz0.js +4 -0
  58. package/dist/TableBtnModal-DvBHUGrH.js +4 -0
  59. package/dist/TableModel-BWjzLxhM.js +4 -0
  60. package/dist/TableModel-Jb0_Ugpr.js +4 -0
  61. package/dist/TextModel-Cqf6fN3M.js +9 -0
  62. package/dist/TextModel-DyoCBojQ.js +9 -0
  63. package/dist/childForm-DFQwdC6c.js +4 -0
  64. package/dist/childForm-tqpN4qKc.js +4 -0
  65. package/dist/cssMode-BNUeVS3_.js +1577 -0
  66. package/dist/cssMode-CIsyv1Wi.js +1577 -0
  67. package/dist/form-imagining.js +1 -1
  68. package/dist/form-imagining.umd.cjs +3 -3
  69. package/dist/formTest-DxZVZniz.js +19 -0
  70. package/dist/formTest-tS70NK1j.js +19 -0
  71. package/dist/freemarker2-BE2Ppuu9.js +995 -0
  72. package/dist/freemarker2-CtyhryIl.js +995 -0
  73. package/dist/handlebars-79d4Jhy1.js +425 -0
  74. package/dist/handlebars-DZpWFzQy.js +425 -0
  75. package/dist/html-C8XgmfQx.js +314 -0
  76. package/dist/html-CAB24vuG.js +314 -0
  77. package/dist/htmlMode-BxpEi6tW.js +1587 -0
  78. package/dist/htmlMode-aFscJorM.js +1587 -0
  79. package/dist/index - /345/211/257/346/234/254-DNOYiroK.js" +531 -0
  80. package/dist/index - /345/211/257/346/234/254-hgOJ3Pwd.js" +531 -0
  81. package/dist/index-Cd_TB7_L.js +3323 -0
  82. package/dist/index-Cq3QLNKi.js +3323 -0
  83. package/dist/index-D9FBJmTj.js +299251 -0
  84. package/dist/index-DGO3UoBB.js +36 -0
  85. package/dist/index-DbSdvVIG.js +299249 -0
  86. package/dist/index-DwDm5syx.js +11 -0
  87. package/dist/index-EysvZBig.js +36 -0
  88. package/dist/index-FWadb9gx.js +11 -0
  89. package/dist/javascript-Bp0nKshk.js +76 -0
  90. package/dist/javascript-CqFhUyko.js +76 -0
  91. package/dist/jsonMode-B_MzBxV3.js +2002 -0
  92. package/dist/jsonMode-Bz9nhxR1.js +2002 -0
  93. package/dist/liquid-CLXhezxx.js +246 -0
  94. package/dist/liquid-CrAp_vvP.js +246 -0
  95. package/dist/mdx-BjaQVo8L.js +171 -0
  96. package/dist/mdx-DNypc_-Y.js +171 -0
  97. package/dist/python-D_5vqLK3.js +307 -0
  98. package/dist/python-Dgd2LDuM.js +307 -0
  99. package/dist/razor-Bi0M6H1N.js +556 -0
  100. package/dist/razor-CMYDC2sb.js +556 -0
  101. package/dist/style.css +1 -1
  102. package/dist/tableSelectDemo-DgPnnt5b.js +134 -0
  103. package/dist/tableSelectDemo-HJ4DRd6S.js +134 -0
  104. package/dist/tableSelectDemo2-7gskh4Eh.js +108 -0
  105. package/dist/tableSelectDemo2-C1zamNgO.js +108 -0
  106. package/dist/tsMode-BD5UZiUW.js +895 -0
  107. package/dist/tsMode-DyscJXy_.js +895 -0
  108. package/dist/typescript-D3LQK65w.js +349 -0
  109. package/dist/typescript-DaAK12z-.js +349 -0
  110. package/dist/xml-B1rxKYVL.js +101 -0
  111. package/dist/xml-BLJInvZ2.js +101 -0
  112. package/dist/yaml-BfyW5XXi.js +212 -0
  113. package/dist/yaml-C4UeJAjK.js +212 -0
  114. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ import { defineComponent as c, onMounted as p, resolveComponent as i, openBlock as e, createBlock as o, unref as n, withCtx as t, createVNode as f, KeepAlive as u, resolveDynamicComponent as _ } from "vue";
2
+ import { aq as m, R as s } from "./index-DbSdvVIG.js";
3
+ const x = /* @__PURE__ */ c({
4
+ __name: "App",
5
+ setup(d) {
6
+ return p(() => {
7
+ }), (v, h) => {
8
+ const r = i("a-config-provider");
9
+ return e(), o(r, {
10
+ locale: n(m),
11
+ theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
12
+ }, {
13
+ default: t(() => [
14
+ f(n(s), null, {
15
+ default: t(({ Component: a, route: l }) => [
16
+ (e(), o(u, null, [
17
+ (e(), o(_(a), {
18
+ key: l.fullPath
19
+ }))
20
+ ], 1024))
21
+ ]),
22
+ _: 1
23
+ })
24
+ ]),
25
+ _: 1
26
+ }, 8, ["locale"]);
27
+ };
28
+ }
29
+ });
30
+ export {
31
+ x as default
32
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as c, onMounted as p, resolveComponent as i, openBlock as e, createBlock as o, unref as n, withCtx as t, createVNode as f, KeepAlive as u, resolveDynamicComponent as _ } from "vue";
2
+ import { aq as m, R as s } from "./index-D9FBJmTj.js";
3
+ const x = /* @__PURE__ */ c({
4
+ __name: "App",
5
+ setup(d) {
6
+ return p(() => {
7
+ }), (v, h) => {
8
+ const r = i("a-config-provider");
9
+ return e(), o(r, {
10
+ locale: n(m),
11
+ theme: { token: { fontSize: 13, borderRadius: 5, colorPrimary: "#1890ff" } }
12
+ }, {
13
+ default: t(() => [
14
+ f(n(s), null, {
15
+ default: t(({ Component: a, route: l }) => [
16
+ (e(), o(u, null, [
17
+ (e(), o(_(a), {
18
+ key: l.fullPath
19
+ }))
20
+ ], 1024))
21
+ ]),
22
+ _: 1
23
+ })
24
+ ]),
25
+ _: 1
26
+ }, 8, ["locale"]);
27
+ };
28
+ }
29
+ });
30
+ export {
31
+ x as default
32
+ };
@@ -0,0 +1,4 @@
1
+ import { I as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { I as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { J as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { J as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a0 as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a0 as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a1 as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a1 as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a2 as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { a2 as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { N as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { N as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { X as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { X as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { Y as f } from "./index-DbSdvVIG.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import { Y as f } from "./index-D9FBJmTj.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,189 @@
1
+ import { defineComponent as j, computed as f, resolveComponent as u, openBlock as r, createElementBlock as c, createElementVNode as v, createVNode as t, withCtx as n, unref as i, h as y, withDirectives as g, vModelText as x, Fragment as O, renderList as B, createBlock as C, resolveDynamicComponent as h, createTextVNode as S, toDisplayString as R } from "vue";
2
+ import { g as k, i as F, k as q, j as G, f as H, h as J, b as K, a as P, c as Q, B as X, M as Y, D as Z, S as $, _ as ee } from "./index-D9FBJmTj.js";
3
+ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe = /* @__PURE__ */ j({
4
+ __name: "CommonText copy",
5
+ props: {
6
+ textElement: {
7
+ type: Object,
8
+ default: () => ({})
9
+ }
10
+ },
11
+ emits: ["update:textElement"],
12
+ setup(z, { emit: w }) {
13
+ const A = z, D = w, e = f({
14
+ get: () => A.textElement,
15
+ set: (a) => D("update:textElement", a)
16
+ }), E = [
17
+ { value: "solid", label: "实线", icon: Y },
18
+ { value: "dashed", label: "虚线", icon: Z },
19
+ { value: "dotted", label: "点线", icon: $ }
20
+ ], m = [
21
+ { value: "none", label: "无框线", icon: k },
22
+ { value: "all", label: "所有框线", icon: F },
23
+ { value: "top", label: "上框线", icon: q },
24
+ { value: "right", label: "右框线", icon: G },
25
+ { value: "bottom", label: "下框线", icon: H },
26
+ { value: "left", label: "左框线", icon: J }
27
+ ], U = f(() => {
28
+ const a = m.find(
29
+ (o) => o.value === e.value.border
30
+ );
31
+ return a ? a.icon : k;
32
+ });
33
+ function T(a) {
34
+ a > 0 && !e.value.borderStyle && (e.value.borderStyle = "solid", e.value.border = "all"), a === 0 && (e.value.border = "none", e.value.borderStyle = null);
35
+ }
36
+ function V({ key: a }) {
37
+ e.value.border = a;
38
+ }
39
+ function M() {
40
+ e.value.bold = !e.value.bold;
41
+ }
42
+ return (a, o) => {
43
+ const d = u("a-radio-button"), p = u("a-radio-group"), _ = u("a-button"), b = u("a-input-number"), s = u("a-tooltip"), I = u("a-divider"), L = u("a-menu-item"), N = u("a-menu"), W = u("a-dropdown");
44
+ return r(), c("div", le, [
45
+ v("div", te, [
46
+ t(p, {
47
+ value: e.value.horzAlign,
48
+ "onUpdate:value": o[0] || (o[0] = (l) => e.value.horzAlign = l),
49
+ size: "small"
50
+ }, {
51
+ default: n(() => [
52
+ t(d, { value: "left" }, {
53
+ default: n(() => [
54
+ t(i(K))
55
+ ]),
56
+ _: 1
57
+ }),
58
+ t(d, { value: "center" }, {
59
+ default: n(() => [
60
+ t(i(P))
61
+ ]),
62
+ _: 1
63
+ }),
64
+ t(d, { value: "right" }, {
65
+ default: n(() => [
66
+ t(i(Q))
67
+ ]),
68
+ _: 1
69
+ })
70
+ ]),
71
+ _: 1
72
+ }, 8, ["value"]),
73
+ t(_, {
74
+ size: "small",
75
+ icon: y(i(X)),
76
+ onClick: M
77
+ }, null, 8, ["icon"]),
78
+ t(s, {
79
+ title: "字号",
80
+ color: "blue"
81
+ }, {
82
+ default: n(() => [
83
+ t(b, {
84
+ value: e.value.fontSize,
85
+ "onUpdate:value": o[1] || (o[1] = (l) => e.value.fontSize = l),
86
+ placeholder: "字体大小",
87
+ style: { width: "50px" },
88
+ size: "small"
89
+ }, null, 8, ["value"])
90
+ ]),
91
+ _: 1
92
+ }),
93
+ t(s, {
94
+ title: "字体颜色",
95
+ color: "blue"
96
+ }, {
97
+ default: n(() => [
98
+ g(v("input", {
99
+ type: "color",
100
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => e.value.color = l),
101
+ class: "color-picker"
102
+ }, null, 512), [
103
+ [x, e.value.color]
104
+ ])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(I, { type: "vertical" }),
109
+ t(W, null, {
110
+ overlay: n(() => [
111
+ t(N, { onClick: V }, {
112
+ default: n(() => [
113
+ (r(), c(O, null, B(m, (l) => t(L, {
114
+ key: l.value,
115
+ disabled: l.value === e.value.border
116
+ }, {
117
+ default: n(() => [
118
+ (r(), C(h(l.icon), { style: { fontSize: "18px" } })),
119
+ S(" " + R(l.label), 1)
120
+ ]),
121
+ _: 2
122
+ }, 1032, ["disabled"])), 64))
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ default: n(() => [
128
+ t(_, {
129
+ size: "small",
130
+ icon: y(U.value)
131
+ }, null, 8, ["icon"])
132
+ ]),
133
+ _: 1
134
+ }),
135
+ t(s, {
136
+ title: "边框宽度",
137
+ color: "blue"
138
+ }, {
139
+ default: n(() => [
140
+ t(b, {
141
+ value: e.value.borderWidth,
142
+ "onUpdate:value": o[3] || (o[3] = (l) => e.value.borderWidth = l),
143
+ min: 0,
144
+ max: 10,
145
+ style: { width: "80px" },
146
+ onChange: T,
147
+ size: "small"
148
+ }, {
149
+ addonAfter: n(() => [...o[6] || (o[6] = [
150
+ S("px", -1)
151
+ ])]),
152
+ _: 1
153
+ }, 8, ["value"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ g(v("input", {
158
+ type: "color",
159
+ "onUpdate:modelValue": o[4] || (o[4] = (l) => e.value.borderColor = l),
160
+ class: "color-picker"
161
+ }, null, 512), [
162
+ [x, e.value.borderColor]
163
+ ]),
164
+ t(p, {
165
+ value: e.value.borderStyle,
166
+ "onUpdate:value": o[5] || (o[5] = (l) => e.value.borderStyle = l),
167
+ size: "small"
168
+ }, {
169
+ default: n(() => [
170
+ (r(), c(O, null, B(E, (l) => t(d, {
171
+ key: l.value,
172
+ value: l.value
173
+ }, {
174
+ default: n(() => [
175
+ (r(), C(h(l.icon)))
176
+ ]),
177
+ _: 2
178
+ }, 1032, ["value"])), 64))
179
+ ]),
180
+ _: 1
181
+ }, 8, ["value"])
182
+ ])
183
+ ]);
184
+ };
185
+ }
186
+ }), ue = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-553e4e34"]]);
187
+ export {
188
+ ue as default
189
+ };
@@ -0,0 +1,189 @@
1
+ import { defineComponent as j, computed as f, resolveComponent as u, openBlock as r, createElementBlock as c, createElementVNode as v, createVNode as t, withCtx as n, unref as i, h as y, withDirectives as g, vModelText as x, Fragment as O, renderList as B, createBlock as C, resolveDynamicComponent as h, createTextVNode as S, toDisplayString as R } from "vue";
2
+ import { g as k, i as F, k as q, j as G, f as H, h as J, b as K, a as P, c as Q, B as X, M as Y, D as Z, S as $, _ as ee } from "./index-DbSdvVIG.js";
3
+ const le = { class: "property-toolbar" }, te = { class: "toolbar-items" }, oe = /* @__PURE__ */ j({
4
+ __name: "CommonText copy",
5
+ props: {
6
+ textElement: {
7
+ type: Object,
8
+ default: () => ({})
9
+ }
10
+ },
11
+ emits: ["update:textElement"],
12
+ setup(z, { emit: w }) {
13
+ const A = z, D = w, e = f({
14
+ get: () => A.textElement,
15
+ set: (a) => D("update:textElement", a)
16
+ }), E = [
17
+ { value: "solid", label: "实线", icon: Y },
18
+ { value: "dashed", label: "虚线", icon: Z },
19
+ { value: "dotted", label: "点线", icon: $ }
20
+ ], m = [
21
+ { value: "none", label: "无框线", icon: k },
22
+ { value: "all", label: "所有框线", icon: F },
23
+ { value: "top", label: "上框线", icon: q },
24
+ { value: "right", label: "右框线", icon: G },
25
+ { value: "bottom", label: "下框线", icon: H },
26
+ { value: "left", label: "左框线", icon: J }
27
+ ], U = f(() => {
28
+ const a = m.find(
29
+ (o) => o.value === e.value.border
30
+ );
31
+ return a ? a.icon : k;
32
+ });
33
+ function T(a) {
34
+ a > 0 && !e.value.borderStyle && (e.value.borderStyle = "solid", e.value.border = "all"), a === 0 && (e.value.border = "none", e.value.borderStyle = null);
35
+ }
36
+ function V({ key: a }) {
37
+ e.value.border = a;
38
+ }
39
+ function M() {
40
+ e.value.bold = !e.value.bold;
41
+ }
42
+ return (a, o) => {
43
+ const d = u("a-radio-button"), p = u("a-radio-group"), _ = u("a-button"), b = u("a-input-number"), s = u("a-tooltip"), I = u("a-divider"), L = u("a-menu-item"), N = u("a-menu"), W = u("a-dropdown");
44
+ return r(), c("div", le, [
45
+ v("div", te, [
46
+ t(p, {
47
+ value: e.value.horzAlign,
48
+ "onUpdate:value": o[0] || (o[0] = (l) => e.value.horzAlign = l),
49
+ size: "small"
50
+ }, {
51
+ default: n(() => [
52
+ t(d, { value: "left" }, {
53
+ default: n(() => [
54
+ t(i(K))
55
+ ]),
56
+ _: 1
57
+ }),
58
+ t(d, { value: "center" }, {
59
+ default: n(() => [
60
+ t(i(P))
61
+ ]),
62
+ _: 1
63
+ }),
64
+ t(d, { value: "right" }, {
65
+ default: n(() => [
66
+ t(i(Q))
67
+ ]),
68
+ _: 1
69
+ })
70
+ ]),
71
+ _: 1
72
+ }, 8, ["value"]),
73
+ t(_, {
74
+ size: "small",
75
+ icon: y(i(X)),
76
+ onClick: M
77
+ }, null, 8, ["icon"]),
78
+ t(s, {
79
+ title: "字号",
80
+ color: "blue"
81
+ }, {
82
+ default: n(() => [
83
+ t(b, {
84
+ value: e.value.fontSize,
85
+ "onUpdate:value": o[1] || (o[1] = (l) => e.value.fontSize = l),
86
+ placeholder: "字体大小",
87
+ style: { width: "50px" },
88
+ size: "small"
89
+ }, null, 8, ["value"])
90
+ ]),
91
+ _: 1
92
+ }),
93
+ t(s, {
94
+ title: "字体颜色",
95
+ color: "blue"
96
+ }, {
97
+ default: n(() => [
98
+ g(v("input", {
99
+ type: "color",
100
+ "onUpdate:modelValue": o[2] || (o[2] = (l) => e.value.color = l),
101
+ class: "color-picker"
102
+ }, null, 512), [
103
+ [x, e.value.color]
104
+ ])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(I, { type: "vertical" }),
109
+ t(W, null, {
110
+ overlay: n(() => [
111
+ t(N, { onClick: V }, {
112
+ default: n(() => [
113
+ (r(), c(O, null, B(m, (l) => t(L, {
114
+ key: l.value,
115
+ disabled: l.value === e.value.border
116
+ }, {
117
+ default: n(() => [
118
+ (r(), C(h(l.icon), { style: { fontSize: "18px" } })),
119
+ S(" " + R(l.label), 1)
120
+ ]),
121
+ _: 2
122
+ }, 1032, ["disabled"])), 64))
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ default: n(() => [
128
+ t(_, {
129
+ size: "small",
130
+ icon: y(U.value)
131
+ }, null, 8, ["icon"])
132
+ ]),
133
+ _: 1
134
+ }),
135
+ t(s, {
136
+ title: "边框宽度",
137
+ color: "blue"
138
+ }, {
139
+ default: n(() => [
140
+ t(b, {
141
+ value: e.value.borderWidth,
142
+ "onUpdate:value": o[3] || (o[3] = (l) => e.value.borderWidth = l),
143
+ min: 0,
144
+ max: 10,
145
+ style: { width: "80px" },
146
+ onChange: T,
147
+ size: "small"
148
+ }, {
149
+ addonAfter: n(() => [...o[6] || (o[6] = [
150
+ S("px", -1)
151
+ ])]),
152
+ _: 1
153
+ }, 8, ["value"])
154
+ ]),
155
+ _: 1
156
+ }),
157
+ g(v("input", {
158
+ type: "color",
159
+ "onUpdate:modelValue": o[4] || (o[4] = (l) => e.value.borderColor = l),
160
+ class: "color-picker"
161
+ }, null, 512), [
162
+ [x, e.value.borderColor]
163
+ ]),
164
+ t(p, {
165
+ value: e.value.borderStyle,
166
+ "onUpdate:value": o[5] || (o[5] = (l) => e.value.borderStyle = l),
167
+ size: "small"
168
+ }, {
169
+ default: n(() => [
170
+ (r(), c(O, null, B(E, (l) => t(d, {
171
+ key: l.value,
172
+ value: l.value
173
+ }, {
174
+ default: n(() => [
175
+ (r(), C(h(l.icon)))
176
+ ]),
177
+ _: 2
178
+ }, 1032, ["value"])), 64))
179
+ ]),
180
+ _: 1
181
+ }, 8, ["value"])
182
+ ])
183
+ ]);
184
+ };
185
+ }
186
+ }), ue = /* @__PURE__ */ ee(oe, [["__scopeId", "data-v-553e4e34"]]);
187
+ export {
188
+ ue as default
189
+ };
@@ -0,0 +1,72 @@
1
+ import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
2
+ import { aG as useFormStore, af as generateReportHtml, a9 as defHttp } from "./index-DbSdvVIG.js";
3
+ const _sfc_main = /* @__PURE__ */ defineComponent({
4
+ __name: "Demo",
5
+ props: {
6
+ data: {
7
+ type: Object,
8
+ default: []
9
+ }
10
+ },
11
+ setup(__props) {
12
+ const formStore = useFormStore();
13
+ let list = ref(formStore.formData.config.eventScript);
14
+ const { eventScript, baseScript, ...restConfig } = formStore.formData.config;
15
+ let vue3Script = ref({
16
+ importScript: "",
17
+ //import导入
18
+ variableScript: "",
19
+ //变量
20
+ contentScript: ""
21
+ //ts内容
22
+ });
23
+ const generateData = generateReportHtml(formStore.formData.list, restConfig, vue3Script), columns = JSON.parse(generateData.columns), searchInfo = generateData.searchData;
24
+ onBeforeUpdate(() => {
25
+ });
26
+ const generateVue3 = defineComponent({
27
+ template: generateData.html,
28
+ props: {},
29
+ setup() {
30
+ let viewData = ref({});
31
+ const events = {};
32
+ return generateTs(), {
33
+ // formData,
34
+ // formRef,
35
+ search,
36
+ searchInfo,
37
+ // defineExpose,
38
+ // paginations,
39
+ // dataSource,
40
+ // datalist,
41
+ columns,
42
+ viewData,
43
+ // initTable,
44
+ ...events,
45
+ defHttp,
46
+ onChange
47
+ };
48
+ function search() {
49
+ }
50
+ function onChange(e) {
51
+ }
52
+ function generateTs() {
53
+ for (let e = 0; e < list.value.length; e++) {
54
+ const t = list.value[e];
55
+ events[t.name] = newFunction(t);
56
+ }
57
+ }
58
+ function newFunction(_data) {
59
+ return _data.param != "" ? (_params) => {
60
+ eval(_data.func);
61
+ } : () => {
62
+ eval(_data.func);
63
+ };
64
+ }
65
+ }
66
+ });
67
+ return (e, t) => (openBlock(), createBlock(unref(generateVue3)));
68
+ }
69
+ });
70
+ export {
71
+ _sfc_main as default
72
+ };