form-imagining 0.0.92-beta2 → 0.0.92-beta3
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.
- package/dist/App-BtkDkcdK.js +32 -0
- package/dist/Area-DLF4dKyb.js +4 -0
- package/dist/Bar-g-UJZxZz.js +4 -0
- package/dist/ChartsArea-Dya2T0Hf.js +4 -0
- package/dist/ChartsBar-CVO6LNSb.js +4 -0
- package/dist/ChartsPie-BzuLpsbV.js +4 -0
- package/dist/CheckBoxModel-hSZd0YyP.js +4 -0
- package/dist/Col-BiZex8OV.js +4 -0
- package/dist/Collapse-ObYssHj6.js +4 -0
- package/dist/CommonText copy-DfObA3kp.js +189 -0
- package/dist/Demo-Dwy222GW.js +72 -0
- package/dist/Demo-TdNyclAe.js +201 -0
- package/dist/FView-B3MnQkCE.js +4 -0
- package/dist/FX-DaGuj_pg.js +4 -0
- package/dist/FormGridCopy-DuV9Ni27.js +168 -0
- package/dist/FormImagining-mMqPn9Ll.js +9 -0
- package/dist/GenerateForm-RTuqKBFk.js +4 -0
- package/dist/GenerateReport-CYWOUnXC.js +4 -0
- package/dist/HelloWorld-BeqAgIrc.js +9 -0
- package/dist/Input-/345/210/240/351/231/244-bH-Y8vY6.js +87 -0
- package/dist/Label-/345/210/240/351/231/244-Cq2Ayj6E.js +92 -0
- package/dist/LabelModel-B6Hvk81c.js +4 -0
- package/dist/Login-cwLdgf2n.js +9 -0
- package/dist/Pie-Jo6W9CJB.js +4 -0
- package/dist/PropertyIndex-B-NHOEV0.js +4 -0
- package/dist/RView-oDLUM6Lo.js +4 -0
- package/dist/SqlModule-JAqDy8bK.js +4 -0
- package/dist/SvgIconCopy-B0GIGBZv.js +39 -0
- package/dist/TableBtnModal-CApZwv92.js +4 -0
- package/dist/TextModel-CzAuMCPf.js +9 -0
- package/dist/childForm-iXdTPSZL.js +4 -0
- package/dist/cssMode-HBTpfptp.js +1577 -0
- package/dist/form-imagining.js +1 -1
- package/dist/form-imagining.umd.cjs +2 -2
- package/dist/formTest-BBmM88LZ.js +19 -0
- package/dist/freemarker2-CDFH8CaW.js +995 -0
- package/dist/handlebars-Dp4NcSjN.js +425 -0
- package/dist/html-DJqtjUfW.js +314 -0
- package/dist/htmlMode-CA0fDGcQ.js +1587 -0
- package/dist/index - /345/211/257/346/234/254-8Cr7tC3N.js" +531 -0
- package/dist/index-Bux9hm-L.js +300191 -0
- package/dist/index-C7qdpjIL.js +36 -0
- package/dist/index-CK6F3EQf.js +11 -0
- package/dist/index-DUW9FD08.js +3323 -0
- package/dist/javascript-D1TTqDJv.js +76 -0
- package/dist/jsonMode-DEavh37X.js +2002 -0
- package/dist/liquid-Bc0jxNGA.js +246 -0
- package/dist/mdx-CYm1NWQD.js +171 -0
- package/dist/python-BPeneLIu.js +307 -0
- package/dist/razor-CuQONhZ_.js +556 -0
- package/dist/tableSelectDemo-EkGJqe7z.js +134 -0
- package/dist/tableSelectDemo2-B92XBNnl.js +108 -0
- package/dist/tsMode-Dpzp6hEL.js +895 -0
- package/dist/typescript-D4uhirbI.js +349 -0
- package/dist/xml-BFVowNZ0.js +101 -0
- package/dist/yaml-WbjWgGoS.js +212 -0
- package/package.json +1 -1
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
import { defineComponent as ye, ref as h, computed as O, watch as be, onMounted as he, onBeforeUnmount as Ce, resolveComponent as C, openBlock as _, createBlock as E, unref as p, withCtx as c, createVNode as r, createElementVNode as I, createTextVNode as k, isRef as xe, createCommentVNode as J, createElementBlock as we, Fragment as _e, renderList as Ie } from "vue";
|
|
2
|
+
import { aI as Se, aj as U, ao as Ee, C as ke, t as Ae, z as De, at as Oe, d as Te, o as ze, n as Ne, e as Ue, E as Me, q as je, p as Re, r as Pe, m as Fe, l as Le, as as Be, L as Ke, au as H, A as q, H as Xe, a8 as j, a9 as Ye, a4 as Je, ab as He, v as qe, u as Ve, aE as We, _ as Ge } from "./index-Bux9hm-L.js";
|
|
3
|
+
const Qe = { class: "container-left-arrow" }, Ze = { style: { "padding-left": "20px !important", "padding-right": "20px !important" } }, $e = { style: { display: "flex", "align-items": "center", margin: "0 20px 0 auto" } }, et = { style: { background: "#fff", textAlign: "center", height: "99%" } }, tt = { style: { padding: "10px" } }, lt = /* @__PURE__ */ ye({
|
|
4
|
+
__name: "index - 副本",
|
|
5
|
+
props: {
|
|
6
|
+
id: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "20260325"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
setup(R) {
|
|
12
|
+
const { execute: A } = We(), V = Se(), T = R;
|
|
13
|
+
let i = h({ list: [], config: { layout: "portrait", pageMargin: "zhai" } });
|
|
14
|
+
const w = h(!1);
|
|
15
|
+
let W = h(!1);
|
|
16
|
+
const P = h("1"), F = { width: 210, height: 297 }, L = { width: 297, height: 210 }, G = h(1);
|
|
17
|
+
let M = h(i.value.config.layout || "portrait");
|
|
18
|
+
const Q = O(() => i.value.config.pageMargin || "zhai"), Z = O(() => {
|
|
19
|
+
switch (Q.value) {
|
|
20
|
+
case "cg":
|
|
21
|
+
return U([2.54, 3.18, 2.54, 3.18]);
|
|
22
|
+
case "zhai":
|
|
23
|
+
return U([1.27, 1.27, 1.27, 1.27]);
|
|
24
|
+
case "zd":
|
|
25
|
+
return U([2.54, 1.91, 2.54, 1.91]);
|
|
26
|
+
default:
|
|
27
|
+
return U([1.27, 1.27, 1.27, 1.27]);
|
|
28
|
+
}
|
|
29
|
+
}), $ = O(() => M.value === "portrait" ? F.width : L.width), ee = O(() => M.value === "portrait" ? F.height : L.height);
|
|
30
|
+
function te(t) {
|
|
31
|
+
if (i.value.list.length > 0) {
|
|
32
|
+
let l = Math.max(...i.value.list.map((a) => a.y + a.height));
|
|
33
|
+
t.y = l + 10;
|
|
34
|
+
}
|
|
35
|
+
t.type === "table" && t.tableConfig && H(t.tableConfig);
|
|
36
|
+
const e = new q(
|
|
37
|
+
() => i.value,
|
|
38
|
+
// 函数引用,获取元素列表
|
|
39
|
+
[t]
|
|
40
|
+
// 要添加的组件
|
|
41
|
+
);
|
|
42
|
+
A(e), z(t);
|
|
43
|
+
}
|
|
44
|
+
const d = h(null), m = h(/* @__PURE__ */ new Set());
|
|
45
|
+
let b = h(null);
|
|
46
|
+
const D = O(() => {
|
|
47
|
+
if (d.value) {
|
|
48
|
+
let t = i.value.list.find((e) => e.id === d.value) || null;
|
|
49
|
+
if (t) {
|
|
50
|
+
if (t != null && t.type === "table") {
|
|
51
|
+
let e = { ...t };
|
|
52
|
+
return b.value && (e.selectedCell = b.value), e;
|
|
53
|
+
}
|
|
54
|
+
} else for (const e of i.value.list)
|
|
55
|
+
if (e.type === "table" && e.tableConfig && Array.isArray(e.tableConfig)) {
|
|
56
|
+
for (const l of e.tableConfig)
|
|
57
|
+
for (const a of l.tableCell)
|
|
58
|
+
if (a.cellObj) {
|
|
59
|
+
for (const n of a.cellObj)
|
|
60
|
+
if (n.id === d.value)
|
|
61
|
+
return n;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return t;
|
|
65
|
+
} else
|
|
66
|
+
return null;
|
|
67
|
+
}), B = h(null);
|
|
68
|
+
function z(t, e) {
|
|
69
|
+
const l = document.activeElement;
|
|
70
|
+
if (l && (l.isContentEditable || l.tagName === "INPUT" || l.tagName === "TEXTAREA" || l.tagName === "SELECT") && l.blur(), document.body.focus(), b.value = null, !t) {
|
|
71
|
+
d.value = null, m.value = /* @__PURE__ */ new Set();
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const a = (e == null ? void 0 : e.ctrlKey) || (e == null ? void 0 : e.metaKey), n = e == null ? void 0 : e.shiftKey;
|
|
75
|
+
if (a) {
|
|
76
|
+
const o = new Set(m.value);
|
|
77
|
+
o.has(t.id) ? (o.delete(t.id), d.value === t.id && (d.value = o.size > 0 ? Array.from(o)[0] : null)) : (o.add(t.id), m.value.size === 0 && (d.value = t.id)), m.value = o;
|
|
78
|
+
} else if (n && d.value) {
|
|
79
|
+
const o = i.value.list.findIndex((u) => u.id === d.value), s = i.value.list.findIndex((u) => u.id === t.id);
|
|
80
|
+
if (o !== -1 && s !== -1) {
|
|
81
|
+
const u = Math.min(o, s), v = Math.max(o, s), f = /* @__PURE__ */ new Set();
|
|
82
|
+
for (let y = u; y <= v; y++)
|
|
83
|
+
f.add(i.value.list[y].id);
|
|
84
|
+
m.value = f;
|
|
85
|
+
} else
|
|
86
|
+
d.value = t.id, m.value = /* @__PURE__ */ new Set([t.id]);
|
|
87
|
+
} else
|
|
88
|
+
d.value = t.id, m.value = /* @__PURE__ */ new Set([t.id]);
|
|
89
|
+
}
|
|
90
|
+
function le(t) {
|
|
91
|
+
if (m.value.size <= 1) return;
|
|
92
|
+
const { deltaX: e, deltaY: l, draggedElementId: a } = t;
|
|
93
|
+
m.value.forEach((n) => {
|
|
94
|
+
if (n === a) return;
|
|
95
|
+
const o = i.value.list.find((s) => s.id === n);
|
|
96
|
+
o && (o.x = Number((o.x + e).toFixed(2)), o.y = Number((o.y + l).toFixed(2)));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
function ae(t) {
|
|
100
|
+
const e = t.target;
|
|
101
|
+
(e.classList.contains("ruler-content") || e.classList.contains("ruler-container")) && (d.value = null, m.value = /* @__PURE__ */ new Set(), b.value = null);
|
|
102
|
+
}
|
|
103
|
+
function K(t, e, l, a, n, o) {
|
|
104
|
+
return t >= l && t <= l + n && e >= a && e <= a + o;
|
|
105
|
+
}
|
|
106
|
+
function ne(t) {
|
|
107
|
+
const e = t.x + t.width / 2, l = t.y + t.height / 2;
|
|
108
|
+
for (let a = 0; a < i.value.list.length; a++) {
|
|
109
|
+
const n = i.value.list[a];
|
|
110
|
+
if (n.type === "table" && n.tableConfig && K(e, l, n.x, n.y, n.width, n.height) && Array.isArray(n.tableConfig)) {
|
|
111
|
+
let o = n.x, s = n.y;
|
|
112
|
+
for (let u = 0; u < n.tableConfig.length; u++) {
|
|
113
|
+
const v = n.tableConfig[u];
|
|
114
|
+
let f = s;
|
|
115
|
+
for (let y = 0; y < v.tableCell.length; y++) {
|
|
116
|
+
const x = v.tableCell[y];
|
|
117
|
+
if (K(e, l, o, f, x.width, v.height))
|
|
118
|
+
return {
|
|
119
|
+
table: n,
|
|
120
|
+
row: v,
|
|
121
|
+
cell: x
|
|
122
|
+
};
|
|
123
|
+
o += x.width;
|
|
124
|
+
}
|
|
125
|
+
o = n.x, s += v.height;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
function N(t) {
|
|
132
|
+
t.selectedCell && (b.value = t.selectedCell);
|
|
133
|
+
const e = { ...t };
|
|
134
|
+
if (delete e.selectedCell, e.x, e.y, e.type === "table") {
|
|
135
|
+
const a = i.value.list.findIndex((n) => n.id === e.id);
|
|
136
|
+
a !== -1 && i.value.list.splice(a, 1), i.value.list.push(e);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const l = ne(e);
|
|
140
|
+
if (!l || l.cell.ignore !== !0) {
|
|
141
|
+
const a = i.value.list.findIndex((n) => n.id === e.id);
|
|
142
|
+
if (a !== -1)
|
|
143
|
+
i.value.list.splice(a, 1);
|
|
144
|
+
else {
|
|
145
|
+
let n = !1;
|
|
146
|
+
for (let o = 0; o < i.value.list.length; o++) {
|
|
147
|
+
const s = i.value.list[o];
|
|
148
|
+
if (s.type === "table" && s.tableConfig && Array.isArray(s.tableConfig))
|
|
149
|
+
for (let u = 0; u < s.tableConfig.length; u++) {
|
|
150
|
+
const v = s.tableConfig[u];
|
|
151
|
+
for (let f = 0; f < v.tableCell.length; f++) {
|
|
152
|
+
const y = v.tableCell[f];
|
|
153
|
+
if (y.cellObj) {
|
|
154
|
+
const x = y.cellObj.findIndex((g) => g.id === e.id);
|
|
155
|
+
if (x !== -1) {
|
|
156
|
+
y.cellObj.splice(x, 1), n = !0;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (n) break;
|
|
162
|
+
}
|
|
163
|
+
if (n) break;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (l) {
|
|
168
|
+
l.cell.cellObj || (l.cell.cellObj = []);
|
|
169
|
+
let a = l.table.x, n = l.table.y;
|
|
170
|
+
if (Array.isArray(l.table.tableConfig) && Array.isArray(l.row.tableCell)) {
|
|
171
|
+
const u = l.row.tableCell.indexOf(l.cell);
|
|
172
|
+
if (u !== -1)
|
|
173
|
+
for (let f = 0; f < u; f++)
|
|
174
|
+
a += l.row.tableCell[f].width;
|
|
175
|
+
const v = l.table.tableConfig.indexOf(l.row);
|
|
176
|
+
if (v !== -1)
|
|
177
|
+
for (let f = 0; f < v; f++)
|
|
178
|
+
n += l.table.tableConfig[f].height;
|
|
179
|
+
}
|
|
180
|
+
const o = e.x - a, s = e.y - n;
|
|
181
|
+
e.x = o, e.y = s, l.cell.cellObj.push(e);
|
|
182
|
+
} else
|
|
183
|
+
i.value.list.push(e);
|
|
184
|
+
}
|
|
185
|
+
function oe(t) {
|
|
186
|
+
d.value && (b.value = t);
|
|
187
|
+
}
|
|
188
|
+
function ie(t) {
|
|
189
|
+
N(t);
|
|
190
|
+
}
|
|
191
|
+
function re(t) {
|
|
192
|
+
i.value.config = {
|
|
193
|
+
...i.value.config,
|
|
194
|
+
...t
|
|
195
|
+
}, console.log("[index.vue] 报表配置已更新:", i.value.config);
|
|
196
|
+
}
|
|
197
|
+
be(() => b.value, (t) => {
|
|
198
|
+
if (!t)
|
|
199
|
+
return;
|
|
200
|
+
const e = D.value;
|
|
201
|
+
debugger;
|
|
202
|
+
if (e.type === "table") {
|
|
203
|
+
e.selectedCell = t, console.log("[index.vue] 选中的单元格已更新:", t);
|
|
204
|
+
const l = { ...e };
|
|
205
|
+
l.tableConfig && Array.isArray(l.tableConfig) && l.tableConfig.forEach((a, n) => {
|
|
206
|
+
n + 1 === b.value.row && a.tableCell.forEach((o, s) => {
|
|
207
|
+
s + 1 === b.value.col && (Object.assign(o, t), Object.assign(b.value, t));
|
|
208
|
+
});
|
|
209
|
+
}), N(l);
|
|
210
|
+
}
|
|
211
|
+
}, { deep: !0, immediate: !0 });
|
|
212
|
+
function se(t) {
|
|
213
|
+
}
|
|
214
|
+
function ue() {
|
|
215
|
+
console.log(JSON.stringify(i.value));
|
|
216
|
+
const t = { ...i.value }, e = new Xe(
|
|
217
|
+
() => i.value,
|
|
218
|
+
// 函数引用,获取元素列表
|
|
219
|
+
t,
|
|
220
|
+
// 旧状态(当前状态)
|
|
221
|
+
t
|
|
222
|
+
// 新状态(相同,因为我们只是保存快照)
|
|
223
|
+
);
|
|
224
|
+
A(e), de();
|
|
225
|
+
}
|
|
226
|
+
const de = () => {
|
|
227
|
+
j.post({ url: "/formapi/zrzy-form/form/report/edit", data: { id: T.id, content: Ye(JSON.stringify(i.value)) } }, { withToken: !0 }).then((e) => {
|
|
228
|
+
e.success && Je.success("保存成功");
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
let X = h([]);
|
|
232
|
+
function ce() {
|
|
233
|
+
return new Promise((t, e) => {
|
|
234
|
+
j.get({ url: "/formapi/zrzy-form/data/list", params: { formId: T.id } }, { withToken: !0 }).then((a) => {
|
|
235
|
+
a && a.success ? (X.value = a.result, t(!0)) : t(!1);
|
|
236
|
+
}).catch((a) => {
|
|
237
|
+
t(!1);
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
let S = h(!1);
|
|
242
|
+
function fe() {
|
|
243
|
+
S.value = !0;
|
|
244
|
+
}
|
|
245
|
+
function pe() {
|
|
246
|
+
window.open(window.location.origin + "/viewpdf?id=" + T.id);
|
|
247
|
+
}
|
|
248
|
+
function ge(t) {
|
|
249
|
+
t.preventDefault(), t.stopPropagation(), t.dataTransfer && (t.dataTransfer.dropEffect = "copy");
|
|
250
|
+
}
|
|
251
|
+
function me(t) {
|
|
252
|
+
if (t.preventDefault(), t.stopPropagation(), t.dataTransfer)
|
|
253
|
+
try {
|
|
254
|
+
const e = t.dataTransfer.getData("application/json");
|
|
255
|
+
if (e) {
|
|
256
|
+
const l = JSON.parse(e), a = document.querySelector(".ruler-content");
|
|
257
|
+
if (a) {
|
|
258
|
+
const n = a.getBoundingClientRect(), o = t.clientX - n.left, s = t.clientY - n.top;
|
|
259
|
+
l.x = Math.max(0, o - l.width / 2), l.y = Math.max(0, s - l.height / 2), l.id = He(l.type), l.type === "table" && l.tableConfig && H(l.tableConfig);
|
|
260
|
+
const u = new q(
|
|
261
|
+
() => i.value,
|
|
262
|
+
// 函数引用,获取元素列表
|
|
263
|
+
[l]
|
|
264
|
+
// 要添加的组件
|
|
265
|
+
);
|
|
266
|
+
A(u), z(l);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
} catch (e) {
|
|
270
|
+
console.error("Failed to process dropped data:", e);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function Y(t) {
|
|
274
|
+
const e = t.target;
|
|
275
|
+
if (e) {
|
|
276
|
+
const o = e.tagName;
|
|
277
|
+
if (o === "INPUT" || o === "TEXTAREA" || o === "SELECT" || e.isContentEditable)
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
if (t.key !== "Delete" && t.key !== "Backspace") return;
|
|
281
|
+
if (m.value.size > 1) {
|
|
282
|
+
const o = new qe(
|
|
283
|
+
() => i.value,
|
|
284
|
+
Array.from(m.value)
|
|
285
|
+
);
|
|
286
|
+
A(o), d.value = null, m.value = /* @__PURE__ */ new Set();
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (!d.value) return;
|
|
290
|
+
const l = i.value.list.findIndex((o) => o.id === d.value);
|
|
291
|
+
if (l === -1) return;
|
|
292
|
+
const a = i.value.list[l], n = new Ve(
|
|
293
|
+
() => i.value,
|
|
294
|
+
// 函数引用,获取元素列表
|
|
295
|
+
a,
|
|
296
|
+
// 要删除的组件
|
|
297
|
+
l
|
|
298
|
+
// 组件在列表中的索引
|
|
299
|
+
);
|
|
300
|
+
A(n), d.value = null;
|
|
301
|
+
}
|
|
302
|
+
function ve() {
|
|
303
|
+
return new Promise((t, e) => {
|
|
304
|
+
j.get({ url: "/formapi/zrzy-form/form/report/query", params: { id: T.id } }, { withToken: !0 }).then((a) => {
|
|
305
|
+
a && a.success ? (i.value = JSON.parse(a.result.content), M.value = i.value.config.layout || "portrait", t(!0)) : t(!1);
|
|
306
|
+
}).catch((a) => {
|
|
307
|
+
t(!1);
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
return he(async () => {
|
|
312
|
+
typeof document < "u" && document.addEventListener("keydown", Y), await V.initToken(), await ce(), await ve(), Ee(i.value);
|
|
313
|
+
}), Ce(() => {
|
|
314
|
+
typeof document < "u" && document.removeEventListener("keydown", Y);
|
|
315
|
+
}), (t, e) => {
|
|
316
|
+
const l = C("a-tab-pane"), a = C("a-tabs"), n = C("a-layout-sider"), o = C("a-button"), s = C("a-modal"), u = C("a-space"), v = C("a-layout-header"), f = C("a-layout-content"), y = C("a-layout"), x = C("a-spin");
|
|
317
|
+
return _(), E(x, {
|
|
318
|
+
spinning: p(W),
|
|
319
|
+
wrapperClassName: "cici-spin-css"
|
|
320
|
+
}, {
|
|
321
|
+
default: c(() => [
|
|
322
|
+
r(y, { style: { height: "100%", padding: "5px 5px" } }, {
|
|
323
|
+
default: c(() => [
|
|
324
|
+
r(n, {
|
|
325
|
+
width: "310",
|
|
326
|
+
style: { left: 0, top: 0, bottom: 0, background: "#fff" },
|
|
327
|
+
"collapsed-width": "0",
|
|
328
|
+
collapsed: w.value,
|
|
329
|
+
"onUpdate:collapsed": e[3] || (e[3] = (g) => w.value = g),
|
|
330
|
+
trigger: null,
|
|
331
|
+
collapsible: ""
|
|
332
|
+
}, {
|
|
333
|
+
default: c(() => [
|
|
334
|
+
r(a, {
|
|
335
|
+
activeKey: P.value,
|
|
336
|
+
"onUpdate:activeKey": e[0] || (e[0] = (g) => P.value = g),
|
|
337
|
+
class: "form-tabs"
|
|
338
|
+
}, {
|
|
339
|
+
default: c(() => [
|
|
340
|
+
r(l, { key: "1" }, {
|
|
341
|
+
tab: c(() => [
|
|
342
|
+
I("span", null, [
|
|
343
|
+
r(p(Ae)),
|
|
344
|
+
e[5] || (e[5] = k(" 数据 ", -1))
|
|
345
|
+
])
|
|
346
|
+
]),
|
|
347
|
+
default: c(() => [
|
|
348
|
+
r(ke, {
|
|
349
|
+
formId: R.id,
|
|
350
|
+
data: p(X)
|
|
351
|
+
}, null, 8, ["formId", "data"])
|
|
352
|
+
]),
|
|
353
|
+
_: 1
|
|
354
|
+
}),
|
|
355
|
+
r(l, { key: "2" }, {
|
|
356
|
+
tab: c(() => [
|
|
357
|
+
I("span", null, [
|
|
358
|
+
r(p(Te)),
|
|
359
|
+
e[6] || (e[6] = k(" 组件 ", -1))
|
|
360
|
+
])
|
|
361
|
+
]),
|
|
362
|
+
default: c(() => [
|
|
363
|
+
r(De, {
|
|
364
|
+
"data-source": p(Oe),
|
|
365
|
+
"onUpdate:elements": te
|
|
366
|
+
}, null, 8, ["data-source"])
|
|
367
|
+
]),
|
|
368
|
+
_: 1
|
|
369
|
+
})
|
|
370
|
+
]),
|
|
371
|
+
_: 1
|
|
372
|
+
}, 8, ["activeKey"]),
|
|
373
|
+
I("div", Qe, [
|
|
374
|
+
w.value ? (_(), E(p(ze), {
|
|
375
|
+
key: 0,
|
|
376
|
+
onClick: e[1] || (e[1] = () => w.value = !w.value)
|
|
377
|
+
})) : (_(), E(p(Ne), {
|
|
378
|
+
key: 1,
|
|
379
|
+
onClick: e[2] || (e[2] = () => w.value = !w.value)
|
|
380
|
+
}))
|
|
381
|
+
])
|
|
382
|
+
]),
|
|
383
|
+
_: 1
|
|
384
|
+
}, 8, ["collapsed"]),
|
|
385
|
+
r(y, { style: { margin: "0px 5px" } }, {
|
|
386
|
+
default: c(() => [
|
|
387
|
+
r(v, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px", display: "flex !important", justifyContent: "space-between !important" } }, {
|
|
388
|
+
default: c(() => [
|
|
389
|
+
I("div", Ze, [
|
|
390
|
+
r(u, null, {
|
|
391
|
+
default: c(() => [
|
|
392
|
+
r(o, {
|
|
393
|
+
onClick: ue,
|
|
394
|
+
type: "primary",
|
|
395
|
+
size: "small"
|
|
396
|
+
}, {
|
|
397
|
+
default: c(() => [
|
|
398
|
+
r(p(Ue)),
|
|
399
|
+
e[7] || (e[7] = k("保存 ", -1))
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}),
|
|
403
|
+
r(o, {
|
|
404
|
+
onClick: fe,
|
|
405
|
+
size: "small"
|
|
406
|
+
}, {
|
|
407
|
+
default: c(() => [
|
|
408
|
+
r(p(Me)),
|
|
409
|
+
e[8] || (e[8] = k(" JSON ", -1))
|
|
410
|
+
]),
|
|
411
|
+
_: 1
|
|
412
|
+
}),
|
|
413
|
+
e[10] || (e[10] = k(" ", -1)),
|
|
414
|
+
r(s, {
|
|
415
|
+
open: p(S),
|
|
416
|
+
"onUpdate:open": e[4] || (e[4] = (g) => xe(S) ? S.value = g : S = g),
|
|
417
|
+
title: "代码",
|
|
418
|
+
width: "1000px",
|
|
419
|
+
footer: !1
|
|
420
|
+
}, {
|
|
421
|
+
default: c(() => [
|
|
422
|
+
p(S) ? (_(), E(je, {
|
|
423
|
+
key: 0,
|
|
424
|
+
code: JSON.stringify(p(i)),
|
|
425
|
+
language: "json"
|
|
426
|
+
}, null, 8, ["code"])) : J("", !0)
|
|
427
|
+
]),
|
|
428
|
+
_: 1
|
|
429
|
+
}, 8, ["open"]),
|
|
430
|
+
r(o, {
|
|
431
|
+
onClick: pe,
|
|
432
|
+
type: "primary",
|
|
433
|
+
size: "small"
|
|
434
|
+
}, {
|
|
435
|
+
default: c(() => [
|
|
436
|
+
r(p(Re)),
|
|
437
|
+
e[9] || (e[9] = k("在线预览 ", -1))
|
|
438
|
+
]),
|
|
439
|
+
_: 1
|
|
440
|
+
})
|
|
441
|
+
]),
|
|
442
|
+
_: 1
|
|
443
|
+
})
|
|
444
|
+
]),
|
|
445
|
+
I("div", $e, [
|
|
446
|
+
D.value ? (_(), E(Pe, {
|
|
447
|
+
key: 0,
|
|
448
|
+
textElement: D.value.type === "table" && p(b) ? p(b) : D.value,
|
|
449
|
+
"onUpdate:textElement": se,
|
|
450
|
+
style: { "padding-right": "20px" }
|
|
451
|
+
}, null, 8, ["textElement"])) : J("", !0)
|
|
452
|
+
])
|
|
453
|
+
]),
|
|
454
|
+
_: 1
|
|
455
|
+
}),
|
|
456
|
+
r(f, { style: { overflow: "auto" } }, {
|
|
457
|
+
default: c(() => [
|
|
458
|
+
I("div", et, [
|
|
459
|
+
r(Fe, {
|
|
460
|
+
ref_key: "rulerRef",
|
|
461
|
+
ref: B,
|
|
462
|
+
width: $.value,
|
|
463
|
+
height: ee.value,
|
|
464
|
+
scale: G.value,
|
|
465
|
+
thick: 30,
|
|
466
|
+
margin: Z.value,
|
|
467
|
+
onDrop: me,
|
|
468
|
+
onDragover: ge,
|
|
469
|
+
onClick: ae
|
|
470
|
+
}, {
|
|
471
|
+
default: c(() => [
|
|
472
|
+
(_(!0), we(_e, null, Ie(p(i).list, (g) => (_(), E(Le, {
|
|
473
|
+
key: g.id,
|
|
474
|
+
element: g,
|
|
475
|
+
rulerRef: B.value,
|
|
476
|
+
selected: g.id === d.value,
|
|
477
|
+
isMultiSelected: m.value.has(g.id),
|
|
478
|
+
hasMultiSelection: m.value.size > 1,
|
|
479
|
+
"onUpdate:element": N,
|
|
480
|
+
onSelect: z,
|
|
481
|
+
onMultiDrag: le
|
|
482
|
+
}, {
|
|
483
|
+
default: c(() => [
|
|
484
|
+
r(Be, {
|
|
485
|
+
element: g,
|
|
486
|
+
selectedCell: g.id === d.value ? p(b) : null,
|
|
487
|
+
"onUpdate:element": N,
|
|
488
|
+
"onUpdate:selectedCell": oe,
|
|
489
|
+
onSelect: z
|
|
490
|
+
}, null, 8, ["element", "selectedCell"])
|
|
491
|
+
]),
|
|
492
|
+
_: 2
|
|
493
|
+
}, 1032, ["element", "rulerRef", "selected", "isMultiSelected", "hasMultiSelection"]))), 128))
|
|
494
|
+
]),
|
|
495
|
+
_: 1
|
|
496
|
+
}, 8, ["width", "height", "scale", "margin"])
|
|
497
|
+
])
|
|
498
|
+
]),
|
|
499
|
+
_: 1
|
|
500
|
+
})
|
|
501
|
+
]),
|
|
502
|
+
_: 1
|
|
503
|
+
}),
|
|
504
|
+
r(n, {
|
|
505
|
+
width: "330",
|
|
506
|
+
style: { right: 0, top: 0, bottom: 0, background: "#fff", overflow: "auto" }
|
|
507
|
+
}, {
|
|
508
|
+
default: c(() => [
|
|
509
|
+
I("div", tt, [
|
|
510
|
+
r(Ke, {
|
|
511
|
+
element: D.value,
|
|
512
|
+
reportConfig: p(i).config,
|
|
513
|
+
"onUpdate:element": ie,
|
|
514
|
+
"onUpdate:reportConfig": re
|
|
515
|
+
}, null, 8, ["element", "reportConfig"])
|
|
516
|
+
])
|
|
517
|
+
]),
|
|
518
|
+
_: 1
|
|
519
|
+
})
|
|
520
|
+
]),
|
|
521
|
+
_: 1
|
|
522
|
+
})
|
|
523
|
+
]),
|
|
524
|
+
_: 1
|
|
525
|
+
}, 8, ["spinning"]);
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
}), it = /* @__PURE__ */ Ge(lt, [["__scopeId", "data-v-98e3c762"]]);
|
|
529
|
+
export {
|
|
530
|
+
it as default
|
|
531
|
+
};
|