epic-designer-gold 0.0.31 → 0.0.33
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/{attributeView-CkDUbzuR.cjs → attributeView-CkX6fubE.cjs} +1 -1
- package/dist/{attributeView-DpkfKqtd.js → attributeView-DVqMH1xY.js} +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +2 -0
- package/dist/{index-CiMLQy__.js → index-B07zwTz2.js} +1 -1
- package/dist/{index-FHGseiDc.js → index-BGKInHWa.js} +1 -1
- package/dist/{index-C5H0qK7d.cjs → index-BffcOK9E.cjs} +1 -1
- package/dist/{index-jV4vV6jn.cjs → index-Bl9bHpGb.cjs} +1 -1
- package/dist/{index-CpxsakMD.cjs → index-BqPBE6Y2.cjs} +1 -1
- package/dist/{index-DbioQCL7.cjs → index-BvRS3i9N.cjs} +1 -1
- package/dist/{index-ZbUi21VA.cjs → index-C7Rkr11-.cjs} +1 -1
- package/dist/{index-Bc7J-Fgw.js → index-C8_p36X3.js} +1 -1
- package/dist/{index-BhIZKk9i.cjs → index-CKl_FM23.cjs} +1 -1
- package/dist/{index-rE2p5Gmx.js → index-CY8bzSIr.js} +1 -1
- package/dist/{index-BPt8U8n9.js → index-CYyckZuN.js} +1 -1
- package/dist/{index-D8Dlr8aX.js → index-DQBowkLQ.js} +1 -1
- package/dist/{index-D0T4HwOl.cjs → index-DWA3Pa6_.cjs} +1 -1
- package/dist/{index-CH2IxHQE.js → index-QcfCoknU.js} +372 -368
- package/dist/{index-UQLDWqfT.js → index-bup0iSFb.js} +1 -1
- package/dist/{index-Bb8XSoYT.cjs → index-i26diW3P.cjs} +1 -1
- package/dist/index-rlyOYH5_.cjs +10 -0
- package/dist/index-zlm7L3aS.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{radio-ChBAvqeY.js → radio-B_7sUIiA.js} +1 -3
- package/dist/sign-CpJ83zt4.cjs +1 -0
- package/dist/sign-d-TCl0NS.js +150 -0
- package/dist/style.css +1 -1
- package/dist/{styleView-CEaoc1Q1.js → styleView-DNbMFObZ.js} +1 -1
- package/dist/{styleView-sGpDpZDg.cjs → styleView-D_DJWtjt.cjs} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/index-CTjIY8cx.cjs +0 -10
- package/dist/index-CtNfh-CD.js +0 -4
- package/dist/sign-BDZCr3wJ.js +0 -137
- package/dist/sign-Gwu2PIRy.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Se, useSlots as Fe, createElementBlock as pe, Suspense as De, createElementVNode as
|
|
1
|
+
import { ref as D, reactive as Z, defineComponent as G, openBlock as M, createBlock as L, unref as _, mergeProps as fe, withCtx as P, renderSlot as R, getCurrentInstance as ne, inject as H, watch as V, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as re, onUnmounted as be, resolveComponent as Ve, resolveDynamicComponent as Oe, createVNode as T, createCommentVNode as Se, useSlots as Fe, createElementBlock as pe, Suspense as De, createElementVNode as J, Fragment as Me, renderList as Re, nextTick as Y, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as me, normalizeClass as Te, toRaw as ge } from "vue";
|
|
2
2
|
import { p as F, E as ee, a as we, l as q } from "./axios-ITY6Uw7A.js";
|
|
3
3
|
function se(e = 10) {
|
|
4
4
|
const a = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
|
-
let
|
|
6
|
-
for (let
|
|
7
|
-
const
|
|
8
|
-
|
|
5
|
+
let o = "";
|
|
6
|
+
for (let t = 0; t < e; t++) {
|
|
7
|
+
const n = Math.floor(Math.random() * a.length);
|
|
8
|
+
o += a[n];
|
|
9
9
|
}
|
|
10
|
-
return
|
|
10
|
+
return o;
|
|
11
11
|
}
|
|
12
12
|
function Le(e) {
|
|
13
13
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -18,165 +18,165 @@ function N(e, a = /* @__PURE__ */ new WeakMap()) {
|
|
|
18
18
|
if (a.has(e))
|
|
19
19
|
return a.get(e);
|
|
20
20
|
if (Array.isArray(e)) {
|
|
21
|
-
const
|
|
22
|
-
return a.set(e,
|
|
21
|
+
const t = e.map((n) => N(n, a));
|
|
22
|
+
return a.set(e, t), t;
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
return a.set(e,
|
|
26
|
-
|
|
27
|
-
}),
|
|
24
|
+
const o = {};
|
|
25
|
+
return a.set(e, o), Object.keys(e).forEach((t) => {
|
|
26
|
+
o[t] = N(e[t], a);
|
|
27
|
+
}), o;
|
|
28
28
|
}
|
|
29
29
|
function Vt(e) {
|
|
30
|
-
const [a] = We([N(e)], (
|
|
31
|
-
var
|
|
32
|
-
const
|
|
33
|
-
...
|
|
34
|
-
id: `${
|
|
30
|
+
const [a] = We([N(e)], (o) => {
|
|
31
|
+
var n, r;
|
|
32
|
+
const t = {
|
|
33
|
+
...o,
|
|
34
|
+
id: `${o.type}_${se(8)}`
|
|
35
35
|
};
|
|
36
|
-
return (
|
|
36
|
+
return (t.field || t.input) && !((r = (n = F.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && r.fixedField) && (t.field = t.id), t;
|
|
37
37
|
});
|
|
38
38
|
return a;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
for (const [
|
|
42
|
-
let r = e == null ? void 0 : e[
|
|
43
|
-
r &&
|
|
40
|
+
function z(e, a, o = !0) {
|
|
41
|
+
for (const [t, n] of Object.entries(a)) {
|
|
42
|
+
let r = e == null ? void 0 : e[t];
|
|
43
|
+
r && n && typeof r == "object" && typeof n == "object" ? (Array.isArray(r) && !Array.isArray(n) ? r = e[t] = {} : !Array.isArray(r) && Array.isArray(n) && (r = e[t] = []), z(r, n, o)) : e[t] = n;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
a.hasOwnProperty(
|
|
45
|
+
o && Object.keys(e).reverse().forEach((t) => {
|
|
46
|
+
a.hasOwnProperty(t) || (Array.isArray(e) ? e.splice(Number(t), 1) : delete e[t]);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function Ae(e, a,
|
|
50
|
-
const
|
|
49
|
+
function Ae(e, a, o = [], t = /* @__PURE__ */ new WeakMap()) {
|
|
50
|
+
const n = (r) => {
|
|
51
51
|
if (Array.isArray(r))
|
|
52
|
-
return r.map(
|
|
52
|
+
return r.map(n);
|
|
53
53
|
if (typeof r == "object" && r !== null) {
|
|
54
|
-
if (
|
|
54
|
+
if (t.has(r))
|
|
55
55
|
return "[Circular]";
|
|
56
|
-
|
|
56
|
+
t.set(r, !0);
|
|
57
57
|
const l = Object.keys(r).sort(), i = {};
|
|
58
58
|
return l.forEach((u) => {
|
|
59
|
-
|
|
60
|
-
}),
|
|
59
|
+
o.includes(u) || (i[u] = n(r[u]));
|
|
60
|
+
}), t.delete(r), i;
|
|
61
61
|
} else
|
|
62
62
|
return r;
|
|
63
63
|
};
|
|
64
|
-
return JSON.stringify(
|
|
64
|
+
return JSON.stringify(n(e)) === JSON.stringify(n(a));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
let
|
|
69
|
-
function
|
|
70
|
-
if (
|
|
71
|
-
for (let l = 0; l < r.children.length && (
|
|
66
|
+
function Je(e, a) {
|
|
67
|
+
const o = [];
|
|
68
|
+
let t = !1;
|
|
69
|
+
function n(r) {
|
|
70
|
+
if (o.push(r), r.id === a && (t = !0), !t && r.children != null && r.children.length > 0)
|
|
71
|
+
for (let l = 0; l < r.children.length && (n(r.children[l]), !t); l++)
|
|
72
72
|
;
|
|
73
|
-
if (!
|
|
73
|
+
if (!t && r.slots)
|
|
74
74
|
for (let l in r.slots)
|
|
75
|
-
for (let i = 0; i < r.slots[l].length && (
|
|
75
|
+
for (let i = 0; i < r.slots[l].length && (n(r.slots[l][i]), !t); i++)
|
|
76
76
|
;
|
|
77
|
-
|
|
77
|
+
t || o.pop();
|
|
78
78
|
}
|
|
79
|
-
return e.forEach(
|
|
79
|
+
return e.forEach(n), t || console.error(`没有查询到id为${a}的节点`), o;
|
|
80
80
|
}
|
|
81
|
-
function Ot(e, a,
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
for (let r = 0; r <
|
|
85
|
-
if (
|
|
86
|
-
return
|
|
87
|
-
|
|
81
|
+
function Ot(e, a, o) {
|
|
82
|
+
const t = a.split(".");
|
|
83
|
+
let n = e;
|
|
84
|
+
for (let r = 0; r < t.length; r++) {
|
|
85
|
+
if (n == null)
|
|
86
|
+
return o;
|
|
87
|
+
n = n[t[r]];
|
|
88
88
|
}
|
|
89
|
-
return
|
|
89
|
+
return n === void 0 ? o : n;
|
|
90
90
|
}
|
|
91
|
-
function Ft(e, a,
|
|
92
|
-
const
|
|
93
|
-
let
|
|
94
|
-
for (let r = 0; r <
|
|
95
|
-
const l =
|
|
96
|
-
|
|
91
|
+
function Ft(e, a, o) {
|
|
92
|
+
const t = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
93
|
+
let n = e;
|
|
94
|
+
for (let r = 0; r < t.length - 1; r++) {
|
|
95
|
+
const l = t[r];
|
|
96
|
+
n[l] == null && (n[l] = isNaN(Number(t[r + 1])) ? {} : []), n = n[l];
|
|
97
97
|
}
|
|
98
|
-
return t[
|
|
98
|
+
return n[t[t.length - 1]] = o, e;
|
|
99
99
|
}
|
|
100
100
|
function Mt(e, a = "default") {
|
|
101
|
-
return
|
|
101
|
+
return ze(e, a).map((t) => t.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const
|
|
103
|
+
function ze(e, a = "default") {
|
|
104
|
+
const o = te(
|
|
105
105
|
e,
|
|
106
|
-
(
|
|
106
|
+
(n) => {
|
|
107
107
|
var r;
|
|
108
|
-
return
|
|
108
|
+
return n.type === "form" && (((r = n.componentProps) == null ? void 0 : r.name) ?? n.name === a);
|
|
109
109
|
},
|
|
110
110
|
!0
|
|
111
111
|
);
|
|
112
112
|
return te(
|
|
113
|
-
(
|
|
114
|
-
(
|
|
113
|
+
(o == null ? void 0 : o.children) ?? [],
|
|
114
|
+
(n) => !!n.input,
|
|
115
115
|
!1,
|
|
116
|
-
(
|
|
116
|
+
(n) => n.type !== "subform"
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function te(e, a,
|
|
120
|
-
const
|
|
119
|
+
function te(e, a, o = !1, t) {
|
|
120
|
+
const n = [], r = [...e];
|
|
121
121
|
for (; r.length; ) {
|
|
122
122
|
const l = r.pop();
|
|
123
|
-
if (l != null && l.children && (!
|
|
123
|
+
if (l != null && l.children && (!t || t(l)) && r.push(...l.children), l != null && l.slots && (!t || t(l)))
|
|
124
124
|
for (let i in l.slots)
|
|
125
125
|
r.push(...l.slots[i]);
|
|
126
|
-
if (a(l) && (
|
|
126
|
+
if (a(l) && (n.push(l), o))
|
|
127
127
|
return l;
|
|
128
128
|
}
|
|
129
|
-
return
|
|
129
|
+
return o ? !1 : n;
|
|
130
130
|
}
|
|
131
|
-
function We(e, a,
|
|
132
|
-
const
|
|
133
|
-
for (;
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
for (let r in
|
|
137
|
-
|
|
138
|
-
|
|
131
|
+
function We(e, a, o) {
|
|
132
|
+
const t = [...e];
|
|
133
|
+
for (; t.length; ) {
|
|
134
|
+
const n = t.pop();
|
|
135
|
+
if (n != null && n.children && (!o || o(n)) && t.push(...n.children), n != null && n.slots && (!o || o(n)))
|
|
136
|
+
for (let r in n.slots)
|
|
137
|
+
t.push(...n.slots[r]);
|
|
138
|
+
z(n, a(n));
|
|
139
139
|
}
|
|
140
140
|
return e;
|
|
141
141
|
}
|
|
142
142
|
function Rt(e, a) {
|
|
143
|
-
const
|
|
143
|
+
const o = te(
|
|
144
144
|
e,
|
|
145
|
-
(
|
|
145
|
+
(t) => t.id === a,
|
|
146
146
|
!0
|
|
147
147
|
);
|
|
148
|
-
if (!
|
|
148
|
+
if (!o)
|
|
149
149
|
throw new Error(`没有查询到id为${a}的节点`);
|
|
150
|
-
return
|
|
150
|
+
return o;
|
|
151
151
|
}
|
|
152
152
|
function $t(e, a) {
|
|
153
|
-
const
|
|
154
|
-
let
|
|
153
|
+
const o = [{ type: "", children: e }];
|
|
154
|
+
let t = 0, n = null;
|
|
155
155
|
if (te(
|
|
156
|
-
|
|
156
|
+
o,
|
|
157
157
|
(r) => {
|
|
158
|
-
if (
|
|
158
|
+
if (n = r.children ?? null, !n) {
|
|
159
159
|
if (r != null && r.slots)
|
|
160
160
|
for (let l in r.slots) {
|
|
161
|
-
|
|
162
|
-
for (let i = 0; i <
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
161
|
+
n = r.slots[l];
|
|
162
|
+
for (let i = 0; i < n.length; i++)
|
|
163
|
+
if (n[i].id === a)
|
|
164
|
+
return t = i, !0;
|
|
165
165
|
}
|
|
166
166
|
return !1;
|
|
167
167
|
}
|
|
168
|
-
for (let l = 0; l <
|
|
169
|
-
if (
|
|
170
|
-
return
|
|
168
|
+
for (let l = 0; l < n.length; l++)
|
|
169
|
+
if (n[l].id === a)
|
|
170
|
+
return t = l, !0;
|
|
171
171
|
return !1;
|
|
172
172
|
},
|
|
173
173
|
!0
|
|
174
|
-
), !
|
|
174
|
+
), !n)
|
|
175
175
|
throw new Error(`没有查询到id为${a}的节点`);
|
|
176
176
|
return {
|
|
177
|
-
list:
|
|
178
|
-
schema: t
|
|
179
|
-
index:
|
|
177
|
+
list: n,
|
|
178
|
+
schema: n[t],
|
|
179
|
+
index: t
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
182
|
function Nt(e) {
|
|
@@ -220,26 +220,26 @@ function Nt(e) {
|
|
|
220
220
|
return a.schemas[0].children[0].children = j(e.list), a;
|
|
221
221
|
}
|
|
222
222
|
function j(e, a) {
|
|
223
|
-
return e.map((
|
|
224
|
-
var u, w,
|
|
225
|
-
let
|
|
226
|
-
const
|
|
227
|
-
|
|
223
|
+
return e.map((o) => {
|
|
224
|
+
var u, w, h;
|
|
225
|
+
let t = o.type ?? "";
|
|
226
|
+
const n = o.options ?? {}, r = (s, y) => {
|
|
227
|
+
t === s && (t = y, n.defaultValue && (n.defaultValue = JSON.parse(n.defaultValue)));
|
|
228
228
|
};
|
|
229
|
-
if (r("uploadImg", "upload-image"), r("uploadFile", "upload-file"),
|
|
230
|
-
const { minRows: s, maxRows: y } =
|
|
231
|
-
|
|
229
|
+
if (r("uploadImg", "upload-image"), r("uploadFile", "upload-file"), t === "date" && n.range && (n.type = "daterange", delete n.range), (t === "date" || t === "time") && (n.valueFormat = n.format), t === "textarea") {
|
|
230
|
+
const { minRows: s, maxRows: y } = n;
|
|
231
|
+
n.autoSize = { minRows: s, maxRows: y }, delete n.minRows, delete n.maxRows;
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
t === "number" && !n.precision && delete n.precision, n.width && (n.style = { width: n.width }, delete n.width), t === "grid" && (t = "row"), a && a.type === "grid" && (t = "col", n.span = o.span, o.key = se());
|
|
234
234
|
const l = {
|
|
235
|
-
label:
|
|
236
|
-
type:
|
|
237
|
-
icon:
|
|
238
|
-
field:
|
|
239
|
-
componentProps:
|
|
240
|
-
id:
|
|
235
|
+
label: o.label,
|
|
236
|
+
type: t,
|
|
237
|
+
icon: o.icon || "",
|
|
238
|
+
field: o.model,
|
|
239
|
+
componentProps: n,
|
|
240
|
+
id: o.key
|
|
241
241
|
};
|
|
242
|
-
return (
|
|
242
|
+
return (n.noFormItem || !n.showLabel) && (l.noFormItem = !0, delete n.noFormItem, delete n.showLabel), n.clearable && (n.allowClear = !0, delete n.clearable), [
|
|
243
243
|
"input",
|
|
244
244
|
"textarea",
|
|
245
245
|
"number",
|
|
@@ -255,19 +255,19 @@ function j(e, a) {
|
|
|
255
255
|
"color-picker",
|
|
256
256
|
"upload-file",
|
|
257
257
|
"upload-image"
|
|
258
|
-
].includes(
|
|
258
|
+
].includes(t) && (l.input = !0, ((w = (u = o.rules) == null ? void 0 : u[0]) == null ? void 0 : w.required) === !1 && o.rules.shift(), ((h = o.rules) == null ? void 0 : h.length) > 0 && (l.rules = o.rules)), o.list && (l.children = j(o.list, o)), o.columns && (l.children = j(o.columns, o)), o.trs && (l.children = j(o.trs, o)), o.tds && (l.children = j(o.tds, o)), l;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
function Bt(e, a) {
|
|
262
|
-
let
|
|
263
|
-
return (...
|
|
264
|
-
|
|
265
|
-
e(...
|
|
262
|
+
let o = null;
|
|
263
|
+
return (...t) => {
|
|
264
|
+
o && clearTimeout(o), o = setTimeout(() => {
|
|
265
|
+
e(...t);
|
|
266
266
|
}, a);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
function Ee() {
|
|
270
|
-
const e = D({}), a = D({}),
|
|
270
|
+
const e = D({}), a = D({}), o = D(!1), t = D([]), n = Z({});
|
|
271
271
|
function r(m) {
|
|
272
272
|
return e.value[m];
|
|
273
273
|
}
|
|
@@ -278,17 +278,17 @@ function Ee() {
|
|
|
278
278
|
delete e.value[m];
|
|
279
279
|
}
|
|
280
280
|
function u(m, g = !1) {
|
|
281
|
-
const
|
|
281
|
+
const v = Object.entries(F.publicMethods).reduce(
|
|
282
282
|
(I, [O, B]) => (I[O] = B.handler, I),
|
|
283
283
|
{}
|
|
284
284
|
);
|
|
285
285
|
try {
|
|
286
286
|
new Function(`const epic = this;${m}`).bind({
|
|
287
|
-
...
|
|
287
|
+
...v,
|
|
288
288
|
getComponent: r,
|
|
289
289
|
find: r,
|
|
290
290
|
defineExpose: w,
|
|
291
|
-
publicMethods:
|
|
291
|
+
publicMethods: v,
|
|
292
292
|
pluginManager: F
|
|
293
293
|
})();
|
|
294
294
|
} catch (I) {
|
|
@@ -298,84 +298,84 @@ function Ee() {
|
|
|
298
298
|
function w(m) {
|
|
299
299
|
m != null && (a.value = m);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function h(m, ...g) {
|
|
302
302
|
if (!m || m.length === 0) {
|
|
303
303
|
console.warn("未提供任何动作");
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
m.forEach((
|
|
307
|
-
const I =
|
|
308
|
-
switch (
|
|
306
|
+
m.forEach((v) => {
|
|
307
|
+
const I = v.args ? JSON.parse(v.args) : g;
|
|
308
|
+
switch (v.type) {
|
|
309
309
|
case "public":
|
|
310
|
-
s(
|
|
310
|
+
s(v, I);
|
|
311
311
|
break;
|
|
312
312
|
case "custom":
|
|
313
|
-
y(
|
|
313
|
+
y(v, I);
|
|
314
314
|
break;
|
|
315
315
|
case "component":
|
|
316
|
-
d(
|
|
316
|
+
d(v, I);
|
|
317
317
|
break;
|
|
318
318
|
default:
|
|
319
|
-
console.warn(`未知的动作类型: ${
|
|
319
|
+
console.warn(`未知的动作类型: ${v.type}`);
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
function s(m, g) {
|
|
325
|
-
var
|
|
325
|
+
var v;
|
|
326
326
|
try {
|
|
327
|
-
(
|
|
327
|
+
(v = F.publicMethods[m.methodName]) == null || v.handler(...g);
|
|
328
328
|
} catch (I) {
|
|
329
329
|
console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, I);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function y(m, g) {
|
|
333
|
-
var
|
|
333
|
+
var v, I;
|
|
334
334
|
try {
|
|
335
|
-
(I = (
|
|
335
|
+
(I = (v = a.value)[m.methodName]) == null || I.call(v, ...g);
|
|
336
336
|
} catch (O) {
|
|
337
337
|
console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, O);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function d(m, g) {
|
|
341
|
-
const
|
|
342
|
-
if (!
|
|
341
|
+
const v = m.componentId != null && r(m.componentId);
|
|
342
|
+
if (!v) {
|
|
343
343
|
console.warn(`[Epic:组件${m.componentId}]未找到`);
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
try {
|
|
347
|
-
|
|
347
|
+
v[m.methodName](...g);
|
|
348
348
|
} catch (I) {
|
|
349
349
|
console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, I);
|
|
350
350
|
}
|
|
351
351
|
}
|
|
352
352
|
function f(m = !0) {
|
|
353
|
-
|
|
353
|
+
o.value = m;
|
|
354
354
|
}
|
|
355
355
|
function c(m) {
|
|
356
356
|
const g = te(m, () => !0);
|
|
357
|
-
|
|
357
|
+
t.value = g.map((v) => v.id);
|
|
358
358
|
}
|
|
359
359
|
function A(m, g = "default") {
|
|
360
|
-
if (
|
|
361
|
-
const
|
|
362
|
-
|
|
360
|
+
if (n[g]) {
|
|
361
|
+
const v = n[g];
|
|
362
|
+
z(m, v);
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
n[g] = m;
|
|
365
365
|
}
|
|
366
366
|
function x(m, g = "default") {
|
|
367
|
-
if (
|
|
368
|
-
|
|
367
|
+
if (n[g]) {
|
|
368
|
+
z(n[g], m, !1);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
n[g] = m;
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
componentInstances: e,
|
|
375
375
|
funcs: a,
|
|
376
|
-
isDesignMode:
|
|
377
|
-
defaultComponentIds:
|
|
378
|
-
forms:
|
|
376
|
+
isDesignMode: o,
|
|
377
|
+
defaultComponentIds: t,
|
|
378
|
+
forms: n,
|
|
379
379
|
addFormData: A,
|
|
380
380
|
setFormData: x,
|
|
381
381
|
getComponentInstance: r,
|
|
@@ -384,17 +384,17 @@ function Ee() {
|
|
|
384
384
|
addComponentInstance: l,
|
|
385
385
|
removeComponentInstance: i,
|
|
386
386
|
setMethods: u,
|
|
387
|
-
doActions:
|
|
387
|
+
doActions: h,
|
|
388
388
|
setDesignMode: f,
|
|
389
389
|
setDefaultComponentIds: c
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
function He() {
|
|
393
|
-
const e = D([]), a = D([]),
|
|
394
|
-
let
|
|
395
|
-
function
|
|
396
|
-
const
|
|
397
|
-
|
|
393
|
+
const e = D([]), a = D([]), o = D(null);
|
|
394
|
+
let t = 0;
|
|
395
|
+
function n(u, w = "插入组件") {
|
|
396
|
+
const h = Date.now();
|
|
397
|
+
t + 150 > h || (t = h, o.value != null && (e.value.push(o.value), a.value.splice(0, a.value.length)), o.value = {
|
|
398
398
|
type: w,
|
|
399
399
|
componentSchema: JSON.stringify(u)
|
|
400
400
|
}, e.value.length > 60 && e.value.unshift());
|
|
@@ -403,22 +403,22 @@ function He() {
|
|
|
403
403
|
if (e.value.length === 0)
|
|
404
404
|
return !1;
|
|
405
405
|
const u = e.value.pop();
|
|
406
|
-
return
|
|
406
|
+
return o.value != null && a.value.push(o.value), o.value = u, JSON.parse(u.componentSchema);
|
|
407
407
|
}
|
|
408
408
|
function l() {
|
|
409
409
|
if (a.value.length === 0)
|
|
410
410
|
return !1;
|
|
411
411
|
const u = a.value.pop();
|
|
412
|
-
return
|
|
412
|
+
return o.value != null && e.value.push(o.value), o.value = u, JSON.parse(u.componentSchema);
|
|
413
413
|
}
|
|
414
414
|
function i() {
|
|
415
|
-
e.value = [], a.value = [],
|
|
415
|
+
e.value = [], a.value = [], o.value = null;
|
|
416
416
|
}
|
|
417
417
|
return {
|
|
418
418
|
recordList: e,
|
|
419
419
|
undoList: a,
|
|
420
|
-
currentRecord:
|
|
421
|
-
push:
|
|
420
|
+
currentRecord: o,
|
|
421
|
+
push: n,
|
|
422
422
|
undo: r,
|
|
423
423
|
redo: l,
|
|
424
424
|
reset: i
|
|
@@ -432,15 +432,15 @@ const Ke = /* @__PURE__ */ G({
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["updateFormItemRef"],
|
|
434
434
|
setup(e, { emit: a }) {
|
|
435
|
-
const
|
|
436
|
-
|
|
435
|
+
const o = F.getComponent("form-item"), t = e, n = a, r = D(), l = () => {
|
|
436
|
+
n("updateFormItemRef", r.value);
|
|
437
437
|
};
|
|
438
|
-
return (i, u) =>
|
|
438
|
+
return (i, u) => t.hasFormItem ? (M(), L(_(o), fe({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: r,
|
|
442
442
|
onVnodeMounted: l
|
|
443
|
-
},
|
|
443
|
+
}, t.formItemProps), {
|
|
444
444
|
default: P(() => [
|
|
445
445
|
R(i.$slots, "default")
|
|
446
446
|
]),
|
|
@@ -457,20 +457,21 @@ const Ke = /* @__PURE__ */ G({
|
|
|
457
457
|
resetFormData: { type: Boolean },
|
|
458
458
|
name: {},
|
|
459
459
|
dynamicId: {},
|
|
460
|
-
sourceDateUrl: {}
|
|
460
|
+
sourceDateUrl: {},
|
|
461
|
+
id: {}
|
|
461
462
|
},
|
|
462
463
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
463
464
|
setup(e, { emit: a }) {
|
|
464
|
-
const { proxy:
|
|
465
|
+
const { proxy: o } = ne(), t = e, n = D(null);
|
|
465
466
|
let r = H("formData", Z({}));
|
|
466
|
-
const l = H("slots", {}), i = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null),
|
|
467
|
-
let s = Z(N(
|
|
467
|
+
const l = H("slots", {}), i = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), h = H("resetFormData", !1);
|
|
468
|
+
let s = Z(N(t.componentSchema));
|
|
468
469
|
f();
|
|
469
470
|
async function y(p) {
|
|
470
|
-
if (["cascader", "checkbox", "select", "radio"].includes(p.type) && p.componentProps.dynamicId &&
|
|
471
|
+
if (["cascader", "checkbox", "select", "radio"].includes(p.type) && p.componentProps.dynamicId && t.sourceDateUrl) {
|
|
471
472
|
const S = (await we({
|
|
472
473
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
473
|
-
url:
|
|
474
|
+
url: t.sourceDateUrl,
|
|
474
475
|
method: "get",
|
|
475
476
|
params: {
|
|
476
477
|
id: p.componentProps.dynamicId
|
|
@@ -503,9 +504,9 @@ const Ke = /* @__PURE__ */ G({
|
|
|
503
504
|
}) : [];
|
|
504
505
|
}
|
|
505
506
|
V(
|
|
506
|
-
() =>
|
|
507
|
+
() => t.componentSchema,
|
|
507
508
|
(p) => {
|
|
508
|
-
Ae(s, p, ["children"]) || (
|
|
509
|
+
Ae(s, p, ["children"]) || (z(s, N(p)), f());
|
|
509
510
|
},
|
|
510
511
|
{
|
|
511
512
|
deep: !0
|
|
@@ -514,12 +515,12 @@ const Ke = /* @__PURE__ */ G({
|
|
|
514
515
|
function f() {
|
|
515
516
|
i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
|
|
516
517
|
}
|
|
517
|
-
(
|
|
518
|
+
(t.resetFormData || h) && (r = {});
|
|
518
519
|
const c = a, A = D(), x = D(), m = (p) => {
|
|
519
520
|
x.value = p;
|
|
520
521
|
}, g = _e();
|
|
521
522
|
Object.keys(g).length && $("nodeAttrs", g);
|
|
522
|
-
const
|
|
523
|
+
const v = Pe(null), I = U(() => {
|
|
523
524
|
var p, E;
|
|
524
525
|
return (p = s.componentProps) != null && p.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((E = s.show) == null ? void 0 : E.call(s, { values: r })) ?? !0;
|
|
525
526
|
}), O = U(() => {
|
|
@@ -530,7 +531,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
530
531
|
// 自定义校验函数
|
|
531
532
|
})));
|
|
532
533
|
let E = s.field;
|
|
533
|
-
|
|
534
|
+
t.ruleField ? E = t.ruleField : w && s.field && (E = N(w), E.push(s.field));
|
|
534
535
|
const k = {
|
|
535
536
|
...s,
|
|
536
537
|
rules: p,
|
|
@@ -544,7 +545,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
544
545
|
return s.on && Object.keys(s.on).forEach((C) => {
|
|
545
546
|
E[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
|
|
546
547
|
}), {
|
|
547
|
-
...
|
|
548
|
+
...t,
|
|
548
549
|
...s.componentProps,
|
|
549
550
|
disabled: (u == null ? void 0 : u.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
|
|
550
551
|
bindModel: p,
|
|
@@ -552,11 +553,11 @@ const Ke = /* @__PURE__ */ G({
|
|
|
552
553
|
};
|
|
553
554
|
}), W = U(() => F.getComponentConfingByType(s.type) ?? null);
|
|
554
555
|
re(() => {
|
|
555
|
-
|
|
556
|
+
n.value = t.modelValue ?? r[s.field ?? ""];
|
|
556
557
|
}), V(
|
|
557
|
-
() =>
|
|
558
|
+
() => n.value,
|
|
558
559
|
() => {
|
|
559
|
-
|
|
560
|
+
n.value !== (t.modelValue ?? r[s.field ?? ""]) && b(n.value);
|
|
560
561
|
}
|
|
561
562
|
), V(
|
|
562
563
|
() => A.value,
|
|
@@ -567,8 +568,8 @@ const Ke = /* @__PURE__ */ G({
|
|
|
567
568
|
);
|
|
568
569
|
function oe() {
|
|
569
570
|
var E;
|
|
570
|
-
const p = A.value ||
|
|
571
|
-
s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] ||
|
|
571
|
+
const p = A.value || o;
|
|
572
|
+
s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || t.modelValue), p.setAttr = (k, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[k] = S), p.getAttr = (k) => s.componentProps[k], i.addComponentInstance(s.id, p), (E = W.value) != null && E.defaultSchema.input && s.noFormItem !== !0 && x.value && i.addComponentInstance(s.id + "formItem", x.value));
|
|
572
573
|
}
|
|
573
574
|
function ce() {
|
|
574
575
|
var p;
|
|
@@ -583,7 +584,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
583
584
|
if (s.type === "slot") {
|
|
584
585
|
const C = s.slotName;
|
|
585
586
|
if (!C) return;
|
|
586
|
-
|
|
587
|
+
v.value = G({
|
|
587
588
|
setup() {
|
|
588
589
|
return () => R(l, C, {
|
|
589
590
|
componentSchema: s,
|
|
@@ -600,12 +601,12 @@ const Ke = /* @__PURE__ */ G({
|
|
|
600
601
|
}
|
|
601
602
|
if (typeof p == "function") {
|
|
602
603
|
const C = await p();
|
|
603
|
-
|
|
604
|
+
v.value = C.default ?? C;
|
|
604
605
|
} else
|
|
605
|
-
|
|
606
|
+
v.value = p;
|
|
606
607
|
}
|
|
607
608
|
function b(p) {
|
|
608
|
-
c("update:modelValue", p), c("change", p), s.field && (r[s.field] = p), ee.emit("updateformData", r);
|
|
609
|
+
c("update:modelValue", p), c("change", p), s.field && (r[s.field] = p), ee.emit("updateformData" + t.id, r);
|
|
609
610
|
}
|
|
610
611
|
function X(p) {
|
|
611
612
|
c("update:dynamicId", p);
|
|
@@ -633,28 +634,30 @@ const Ke = /* @__PURE__ */ G({
|
|
|
633
634
|
), be(ce), (p, E) => {
|
|
634
635
|
var S;
|
|
635
636
|
const k = Ve("ENode");
|
|
636
|
-
return
|
|
637
|
+
return v.value && I.value ? (M(), L(Ke, {
|
|
637
638
|
key: 0,
|
|
638
639
|
hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
|
|
639
640
|
formItemProps: O.value,
|
|
640
641
|
onUpdateFormItemRef: m
|
|
641
642
|
}, {
|
|
642
643
|
default: P(() => [
|
|
643
|
-
(M(), L(Oe(
|
|
644
|
+
(M(), L(Oe(v.value), fe({
|
|
644
645
|
ref_key: "componentInstance",
|
|
645
646
|
ref: A,
|
|
646
647
|
onVnodeMounted: oe,
|
|
647
648
|
model: _(r)
|
|
648
649
|
}, { ...B.value }, {
|
|
649
|
-
[B.value.bindModel]:
|
|
650
|
-
["onUpdate:" + B.value.bindModel]: E[0] || (E[0] = (C) =>
|
|
650
|
+
[B.value.bindModel]: n.value,
|
|
651
|
+
["onUpdate:" + B.value.bindModel]: E[0] || (E[0] = (C) => n.value = C),
|
|
651
652
|
[`onUpdate:${B.value.bindModel}` || ""]: b,
|
|
652
653
|
"onUpdate:dynamicId": X
|
|
653
654
|
}), {
|
|
654
655
|
node: P((C) => [
|
|
655
|
-
T(k, fe(
|
|
656
|
-
|
|
657
|
-
}
|
|
656
|
+
T(k, fe({
|
|
657
|
+
id: t.id
|
|
658
|
+
}, C, {
|
|
659
|
+
sourceDateUrl: t.sourceDateUrl
|
|
660
|
+
}), null, 16, ["id", "sourceDateUrl"])
|
|
658
661
|
]),
|
|
659
662
|
"edit-node": P(() => [
|
|
660
663
|
R(p.$slots, "edit-node")
|
|
@@ -668,8 +671,8 @@ const Ke = /* @__PURE__ */ G({
|
|
|
668
671
|
}
|
|
669
672
|
});
|
|
670
673
|
function Ze() {
|
|
671
|
-
const e = D(!1), a = Ee(),
|
|
672
|
-
function
|
|
674
|
+
const e = D(!1), a = Ee(), o = D({});
|
|
675
|
+
function t() {
|
|
673
676
|
return new Promise((d) => {
|
|
674
677
|
if (e.value)
|
|
675
678
|
d();
|
|
@@ -680,15 +683,15 @@ function Ze() {
|
|
|
680
683
|
}
|
|
681
684
|
});
|
|
682
685
|
}
|
|
683
|
-
async function
|
|
686
|
+
async function n(d = "default") {
|
|
684
687
|
var c;
|
|
685
|
-
await
|
|
686
|
-
const f = (c =
|
|
688
|
+
await t();
|
|
689
|
+
const f = (c = o.value) == null ? void 0 : c[d];
|
|
687
690
|
if (!f) throw new Error(`表单 [name=${d}] 不存在`);
|
|
688
691
|
return f;
|
|
689
692
|
}
|
|
690
693
|
async function r(d, f) {
|
|
691
|
-
const c = await
|
|
694
|
+
const c = await n(d);
|
|
692
695
|
return N(await f(c));
|
|
693
696
|
}
|
|
694
697
|
async function l(d = "default") {
|
|
@@ -697,22 +700,22 @@ function Ze() {
|
|
|
697
700
|
function i(d, f = "default") {
|
|
698
701
|
var A;
|
|
699
702
|
a.setFormData(d, f);
|
|
700
|
-
const c = (A =
|
|
701
|
-
|
|
703
|
+
const c = (A = o.value) == null ? void 0 : A[f];
|
|
704
|
+
c == null || c.clearValidate();
|
|
702
705
|
}
|
|
703
706
|
async function u(d = "default") {
|
|
704
707
|
return await r(d, async (f) => (await f.validate(), await f.getData()));
|
|
705
708
|
}
|
|
706
709
|
async function w(d) {
|
|
707
|
-
await
|
|
710
|
+
await t();
|
|
708
711
|
const f = {};
|
|
709
|
-
for (const c in
|
|
710
|
-
const A =
|
|
712
|
+
for (const c in o.value) {
|
|
713
|
+
const A = o.value[c];
|
|
711
714
|
A && (f[c] = N(await d(A)));
|
|
712
715
|
}
|
|
713
716
|
return f;
|
|
714
717
|
}
|
|
715
|
-
async function
|
|
718
|
+
async function h() {
|
|
716
719
|
return await w((d) => d.getData());
|
|
717
720
|
}
|
|
718
721
|
function s(d) {
|
|
@@ -725,14 +728,14 @@ function Ze() {
|
|
|
725
728
|
return {
|
|
726
729
|
ready: e,
|
|
727
730
|
pageManager: a,
|
|
728
|
-
forms:
|
|
731
|
+
forms: o,
|
|
729
732
|
getData: l,
|
|
730
733
|
setData: i,
|
|
731
734
|
validate: u,
|
|
732
|
-
getForms:
|
|
735
|
+
getForms: h,
|
|
733
736
|
setForms: s,
|
|
734
737
|
validateAll: y,
|
|
735
|
-
getFormInstance:
|
|
738
|
+
getFormInstance: n
|
|
736
739
|
};
|
|
737
740
|
}
|
|
738
741
|
const Ge = {
|
|
@@ -744,17 +747,18 @@ const Ge = {
|
|
|
744
747
|
pageSchema: {},
|
|
745
748
|
formData: {},
|
|
746
749
|
disabled: { type: Boolean },
|
|
747
|
-
sourceDateUrl: {}
|
|
750
|
+
sourceDateUrl: {},
|
|
751
|
+
id: {}
|
|
748
752
|
},
|
|
749
753
|
emits: ["change", "ready"],
|
|
750
|
-
setup(e, { expose: a, emit:
|
|
751
|
-
const
|
|
754
|
+
setup(e, { expose: a, emit: o }) {
|
|
755
|
+
const t = q(() => import("./index-DgcFxYFp.js")), n = o, { ready: r, pageManager: l, forms: i, getData: u, setData: w, validate: h, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), c = e, A = Z({
|
|
752
756
|
schemas: []
|
|
753
757
|
});
|
|
754
758
|
V(
|
|
755
759
|
() => c.pageSchema,
|
|
756
|
-
(
|
|
757
|
-
|
|
760
|
+
(v) => {
|
|
761
|
+
z(A, v);
|
|
758
762
|
},
|
|
759
763
|
{
|
|
760
764
|
immediate: !0,
|
|
@@ -762,8 +766,8 @@ const Ge = {
|
|
|
762
766
|
}
|
|
763
767
|
), V(
|
|
764
768
|
() => c.formData,
|
|
765
|
-
(
|
|
766
|
-
|
|
769
|
+
(v) => {
|
|
770
|
+
v && w(v);
|
|
767
771
|
},
|
|
768
772
|
{
|
|
769
773
|
immediate: !0,
|
|
@@ -771,8 +775,8 @@ const Ge = {
|
|
|
771
775
|
}
|
|
772
776
|
), V(
|
|
773
777
|
() => A.script,
|
|
774
|
-
(
|
|
775
|
-
|
|
778
|
+
(v) => {
|
|
779
|
+
v && l.setMethods(v, !0);
|
|
776
780
|
},
|
|
777
781
|
{
|
|
778
782
|
immediate: !0
|
|
@@ -784,38 +788,38 @@ const Ge = {
|
|
|
784
788
|
const x = ne(), m = x == null ? void 0 : x.proxy;
|
|
785
789
|
function g() {
|
|
786
790
|
Y(() => {
|
|
787
|
-
r.value = !0,
|
|
791
|
+
r.value = !0, n("ready", l), m && l.addComponentInstance("builder", m);
|
|
788
792
|
});
|
|
789
793
|
}
|
|
790
|
-
return ee.on("updateformData", (
|
|
791
|
-
|
|
794
|
+
return ee.on("updateformData" + c.id, (v) => {
|
|
795
|
+
n("change", v);
|
|
792
796
|
}), a({
|
|
793
797
|
ready: r,
|
|
794
798
|
pageManager: l,
|
|
795
799
|
getData: u,
|
|
796
800
|
setData: w,
|
|
797
|
-
validate:
|
|
801
|
+
validate: h,
|
|
798
802
|
getForms: s,
|
|
799
803
|
setForms: y,
|
|
800
804
|
validateAll: d,
|
|
801
805
|
getFormInstance: f
|
|
802
|
-
}), (
|
|
806
|
+
}), (v, I) => _(F).initialized.value ? (M(), L(De, {
|
|
803
807
|
key: 1,
|
|
804
808
|
onResolve: g
|
|
805
809
|
}, {
|
|
806
810
|
default: P(() => [
|
|
807
|
-
|
|
811
|
+
J("div", Qe, [
|
|
808
812
|
(M(!0), pe(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
|
|
813
|
+
id: c.id,
|
|
809
814
|
key: B,
|
|
810
815
|
sourceDateUrl: c.sourceDateUrl,
|
|
811
|
-
componentSchema: O
|
|
812
|
-
|
|
813
|
-
}, null, 8, ["sourceDateUrl", "componentSchema", "onChange"]))), 128))
|
|
816
|
+
componentSchema: O
|
|
817
|
+
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
814
818
|
])
|
|
815
819
|
]),
|
|
816
820
|
fallback: P(() => [
|
|
817
|
-
|
|
818
|
-
T(_(
|
|
821
|
+
J("div", Ye, [
|
|
822
|
+
T(_(t))
|
|
819
823
|
])
|
|
820
824
|
]),
|
|
821
825
|
_: 1
|
|
@@ -826,11 +830,11 @@ function he(e) {
|
|
|
826
830
|
return Be() ? (Ue(e), !0) : !1;
|
|
827
831
|
}
|
|
828
832
|
function je(e) {
|
|
829
|
-
let a = 0,
|
|
830
|
-
const
|
|
831
|
-
a -= 1,
|
|
833
|
+
let a = 0, o, t;
|
|
834
|
+
const n = () => {
|
|
835
|
+
a -= 1, t && a <= 0 && (t.stop(), o = void 0, t = void 0);
|
|
832
836
|
};
|
|
833
|
-
return (...r) => (a += 1,
|
|
837
|
+
return (...r) => (a += 1, t || (t = $e(!0), o = t.run(() => e(...r))), he(n), o);
|
|
834
838
|
}
|
|
835
839
|
function Q(e) {
|
|
836
840
|
return typeof e == "function" ? e() : _(e);
|
|
@@ -842,49 +846,49 @@ const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt
|
|
|
842
846
|
function rt(e) {
|
|
843
847
|
return ne();
|
|
844
848
|
}
|
|
845
|
-
function st(e, a = !0,
|
|
846
|
-
rt() ? me(e,
|
|
849
|
+
function st(e, a = !0, o) {
|
|
850
|
+
rt() ? me(e, o) : a ? e() : Y(e);
|
|
847
851
|
}
|
|
848
852
|
function lt(e = !1, a = {}) {
|
|
849
853
|
const {
|
|
850
|
-
truthyValue:
|
|
851
|
-
falsyValue:
|
|
852
|
-
} = a,
|
|
854
|
+
truthyValue: o = !0,
|
|
855
|
+
falsyValue: t = !1
|
|
856
|
+
} = a, n = Ne(e), r = D(e);
|
|
853
857
|
function l(i) {
|
|
854
858
|
if (arguments.length)
|
|
855
859
|
return r.value = i, r.value;
|
|
856
860
|
{
|
|
857
|
-
const u = Q(
|
|
858
|
-
return r.value = r.value === u ? Q(
|
|
861
|
+
const u = Q(o);
|
|
862
|
+
return r.value = r.value === u ? Q(t) : u, r.value;
|
|
859
863
|
}
|
|
860
864
|
}
|
|
861
|
-
return
|
|
865
|
+
return n ? l : [r, l];
|
|
862
866
|
}
|
|
863
|
-
function Ut(e, a,
|
|
864
|
-
const
|
|
865
|
-
return
|
|
867
|
+
function Ut(e, a, o) {
|
|
868
|
+
const t = V(e, (...n) => (Y(() => t()), a(...n)), o);
|
|
869
|
+
return t;
|
|
866
870
|
}
|
|
867
871
|
const le = et ? window : void 0;
|
|
868
872
|
function K(e) {
|
|
869
873
|
var a;
|
|
870
|
-
const
|
|
871
|
-
return (a =
|
|
874
|
+
const o = Q(e);
|
|
875
|
+
return (a = o == null ? void 0 : o.$el) != null ? a : o;
|
|
872
876
|
}
|
|
873
877
|
function it(...e) {
|
|
874
|
-
let a,
|
|
875
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([
|
|
878
|
+
let a, o, t, n;
|
|
879
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, a = le) : [a, o, t, n] = e, !a)
|
|
876
880
|
return at;
|
|
877
|
-
Array.isArray(
|
|
881
|
+
Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
|
|
878
882
|
const r = [], l = () => {
|
|
879
|
-
r.forEach((
|
|
880
|
-
}, i = (
|
|
881
|
-
() => [K(a), Q(
|
|
882
|
-
([
|
|
883
|
-
if (l(), !
|
|
883
|
+
r.forEach((h) => h()), r.length = 0;
|
|
884
|
+
}, i = (h, s, y, d) => (h.addEventListener(s, y, d), () => h.removeEventListener(s, y, d)), u = V(
|
|
885
|
+
() => [K(a), Q(n)],
|
|
886
|
+
([h, s]) => {
|
|
887
|
+
if (l(), !h)
|
|
884
888
|
return;
|
|
885
889
|
const y = ot(s) ? { ...s } : s;
|
|
886
890
|
r.push(
|
|
887
|
-
...
|
|
891
|
+
...o.flatMap((d) => t.map((f) => i(h, d, f, y)))
|
|
888
892
|
);
|
|
889
893
|
},
|
|
890
894
|
{ immediate: !0, flush: "post" }
|
|
@@ -897,23 +901,23 @@ function ct(e) {
|
|
|
897
901
|
return typeof e == "function" ? e : typeof e == "string" ? (a) => a.key === e : Array.isArray(e) ? (a) => e.includes(a.key) : () => !0;
|
|
898
902
|
}
|
|
899
903
|
function Ie(...e) {
|
|
900
|
-
let a,
|
|
901
|
-
e.length === 3 ? (a = e[0],
|
|
904
|
+
let a, o, t = {};
|
|
905
|
+
e.length === 3 ? (a = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, o = e[0], t = e[1]) : (a = e[0], o = e[1]) : (a = !0, o = e[0]);
|
|
902
906
|
const {
|
|
903
|
-
target:
|
|
907
|
+
target: n = le,
|
|
904
908
|
eventName: r = "keydown",
|
|
905
909
|
passive: l = !1,
|
|
906
910
|
dedupe: i = !1
|
|
907
|
-
} =
|
|
908
|
-
return it(
|
|
909
|
-
|
|
911
|
+
} = t, u = ct(a);
|
|
912
|
+
return it(n, r, (h) => {
|
|
913
|
+
h.repeat && Q(i) || u(h) && o(h);
|
|
910
914
|
}, l);
|
|
911
915
|
}
|
|
912
|
-
function ue(e, a,
|
|
913
|
-
return Ie(e, a, { ...
|
|
916
|
+
function ue(e, a, o = {}) {
|
|
917
|
+
return Ie(e, a, { ...o, eventName: "keydown" });
|
|
914
918
|
}
|
|
915
|
-
function de(e, a,
|
|
916
|
-
return Ie(e, a, { ...
|
|
919
|
+
function de(e, a, o = {}) {
|
|
920
|
+
return Ie(e, a, { ...o, eventName: "keyup" });
|
|
917
921
|
}
|
|
918
922
|
function ut() {
|
|
919
923
|
const e = D(!1), a = ne();
|
|
@@ -928,10 +932,10 @@ function dt(e) {
|
|
|
928
932
|
function ft(e) {
|
|
929
933
|
return JSON.parse(JSON.stringify(e));
|
|
930
934
|
}
|
|
931
|
-
function pt(e, a,
|
|
932
|
-
const { window:
|
|
935
|
+
function pt(e, a, o = {}) {
|
|
936
|
+
const { window: t = le, ...n } = o;
|
|
933
937
|
let r;
|
|
934
|
-
const l = dt(() =>
|
|
938
|
+
const l = dt(() => t && "ResizeObserver" in t), i = () => {
|
|
935
939
|
r && (r.disconnect(), r = void 0);
|
|
936
940
|
}, u = U(() => {
|
|
937
941
|
const s = Q(e);
|
|
@@ -939,30 +943,30 @@ function pt(e, a, n = {}) {
|
|
|
939
943
|
}), w = V(
|
|
940
944
|
u,
|
|
941
945
|
(s) => {
|
|
942
|
-
if (i(), l.value &&
|
|
946
|
+
if (i(), l.value && t) {
|
|
943
947
|
r = new ResizeObserver(a);
|
|
944
948
|
for (const y of s)
|
|
945
|
-
y && r.observe(y,
|
|
949
|
+
y && r.observe(y, n);
|
|
946
950
|
}
|
|
947
951
|
},
|
|
948
952
|
{ immediate: !0, flush: "post" }
|
|
949
|
-
),
|
|
953
|
+
), h = () => {
|
|
950
954
|
i(), w();
|
|
951
955
|
};
|
|
952
|
-
return he(
|
|
956
|
+
return he(h), {
|
|
953
957
|
isSupported: l,
|
|
954
|
-
stop:
|
|
958
|
+
stop: h
|
|
955
959
|
};
|
|
956
960
|
}
|
|
957
|
-
function Tt(e, a = { width: 0, height: 0 },
|
|
958
|
-
const { window:
|
|
961
|
+
function Tt(e, a = { width: 0, height: 0 }, o = {}) {
|
|
962
|
+
const { window: t = le, box: n = "content-box" } = o, r = U(() => {
|
|
959
963
|
var s, y;
|
|
960
964
|
return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
|
|
961
965
|
}), l = D(a.width), i = D(a.height), { stop: u } = pt(
|
|
962
966
|
e,
|
|
963
967
|
([s]) => {
|
|
964
|
-
const y =
|
|
965
|
-
if (
|
|
968
|
+
const y = n === "border-box" ? s.borderBoxSize : n === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
969
|
+
if (t && r.value) {
|
|
966
970
|
const d = K(e);
|
|
967
971
|
if (d) {
|
|
968
972
|
const f = d.getBoundingClientRect();
|
|
@@ -974,7 +978,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
974
978
|
} else
|
|
975
979
|
l.value = s.contentRect.width, i.value = s.contentRect.height;
|
|
976
980
|
},
|
|
977
|
-
|
|
981
|
+
o
|
|
978
982
|
);
|
|
979
983
|
st(() => {
|
|
980
984
|
const s = K(e);
|
|
@@ -986,45 +990,45 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
986
990
|
l.value = s ? a.width : 0, i.value = s ? a.height : 0;
|
|
987
991
|
}
|
|
988
992
|
);
|
|
989
|
-
function
|
|
993
|
+
function h() {
|
|
990
994
|
u(), w();
|
|
991
995
|
}
|
|
992
996
|
return {
|
|
993
997
|
width: l,
|
|
994
998
|
height: i,
|
|
995
|
-
stop:
|
|
999
|
+
stop: h
|
|
996
1000
|
};
|
|
997
1001
|
}
|
|
998
|
-
function Lt(e, a,
|
|
999
|
-
var
|
|
1002
|
+
function Lt(e, a, o, t = {}) {
|
|
1003
|
+
var n, r, l;
|
|
1000
1004
|
const {
|
|
1001
1005
|
clone: i = !1,
|
|
1002
1006
|
passive: u = !1,
|
|
1003
1007
|
eventName: w,
|
|
1004
|
-
deep:
|
|
1008
|
+
deep: h = !1,
|
|
1005
1009
|
defaultValue: s,
|
|
1006
1010
|
shouldEmit: y
|
|
1007
|
-
} =
|
|
1011
|
+
} = t, d = ne(), f = o || (d == null ? void 0 : d.emit) || ((n = d == null ? void 0 : d.$emit) == null ? void 0 : n.bind(d)) || ((l = (r = d == null ? void 0 : d.proxy) == null ? void 0 : r.$emit) == null ? void 0 : l.bind(d == null ? void 0 : d.proxy));
|
|
1008
1012
|
let c = w;
|
|
1009
1013
|
a || (a = "modelValue"), c = c || `update:${a.toString()}`;
|
|
1010
1014
|
const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
|
|
1011
1015
|
y ? y(g) && f(c, g) : f(c, g);
|
|
1012
1016
|
};
|
|
1013
1017
|
if (u) {
|
|
1014
|
-
const g = x(),
|
|
1018
|
+
const g = x(), v = D(g);
|
|
1015
1019
|
let I = !1;
|
|
1016
1020
|
return V(
|
|
1017
1021
|
() => e[a],
|
|
1018
1022
|
(O) => {
|
|
1019
|
-
I || (I = !0,
|
|
1023
|
+
I || (I = !0, v.value = A(O), Y(() => I = !1));
|
|
1020
1024
|
}
|
|
1021
1025
|
), V(
|
|
1022
|
-
|
|
1026
|
+
v,
|
|
1023
1027
|
(O) => {
|
|
1024
|
-
!I && (O !== e[a] ||
|
|
1028
|
+
!I && (O !== e[a] || h) && m(O);
|
|
1025
1029
|
},
|
|
1026
|
-
{ deep:
|
|
1027
|
-
),
|
|
1030
|
+
{ deep: h }
|
|
1031
|
+
), v;
|
|
1028
1032
|
} else
|
|
1029
1033
|
return U({
|
|
1030
1034
|
get() {
|
|
@@ -1035,7 +1039,7 @@ function Lt(e, a, n, o = {}) {
|
|
|
1035
1039
|
}
|
|
1036
1040
|
});
|
|
1037
1041
|
}
|
|
1038
|
-
function
|
|
1042
|
+
function Jt() {
|
|
1039
1043
|
const { isDark: e } = ie(), a = lt(e);
|
|
1040
1044
|
return {
|
|
1041
1045
|
isDark: e,
|
|
@@ -1060,61 +1064,61 @@ function ht(e) {
|
|
|
1060
1064
|
a && (a.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
1061
1065
|
}
|
|
1062
1066
|
function vt(e) {
|
|
1063
|
-
var a = document.querySelector("html"),
|
|
1064
|
-
for (var
|
|
1065
|
-
if (
|
|
1066
|
-
const r =
|
|
1067
|
+
var a = document.querySelector("html"), o = new MutationObserver(function(t) {
|
|
1068
|
+
for (var n of t)
|
|
1069
|
+
if (n.type === "attributes" && n.attributeName === "class") {
|
|
1070
|
+
const r = n.target;
|
|
1067
1071
|
new Array(...r.classList).includes("dark") ? e.value = !0 : e.value = !1;
|
|
1068
1072
|
}
|
|
1069
1073
|
});
|
|
1070
|
-
|
|
1074
|
+
o.observe(a, {
|
|
1071
1075
|
attributes: !0,
|
|
1072
1076
|
attributeFilter: ["class"]
|
|
1073
1077
|
}), be(() => {
|
|
1074
|
-
|
|
1078
|
+
o.disconnect();
|
|
1075
1079
|
});
|
|
1076
1080
|
}
|
|
1077
1081
|
function yt() {
|
|
1078
|
-
const e = D(1), a = D(!1), { isDark:
|
|
1082
|
+
const e = D(1), a = D(!1), { isDark: o } = mt(), { pressSpace: t, pressShift: n, pressCtrl: r } = gt();
|
|
1079
1083
|
return {
|
|
1080
1084
|
canvasScale: e,
|
|
1081
|
-
pressSpace:
|
|
1082
|
-
pressShift:
|
|
1085
|
+
pressSpace: t,
|
|
1086
|
+
pressShift: n,
|
|
1083
1087
|
pressCtrl: r,
|
|
1084
1088
|
disabledZoom: a,
|
|
1085
|
-
isDark:
|
|
1089
|
+
isDark: o
|
|
1086
1090
|
};
|
|
1087
1091
|
}
|
|
1088
1092
|
const ie = je(yt);
|
|
1089
1093
|
function gt() {
|
|
1090
|
-
const e = D(!1), a = D(!1),
|
|
1094
|
+
const e = D(!1), a = D(!1), o = D(!1);
|
|
1091
1095
|
return ue(" ", () => {
|
|
1092
1096
|
e.value = !0;
|
|
1093
1097
|
}), de(" ", () => {
|
|
1094
1098
|
e.value = !1;
|
|
1095
|
-
}), ue("Shift", (
|
|
1096
|
-
|
|
1099
|
+
}), ue("Shift", (t) => {
|
|
1100
|
+
t.preventDefault(), a.value = !0;
|
|
1097
1101
|
}), de("Shift", () => {
|
|
1098
1102
|
a.value = !1;
|
|
1099
|
-
}), ue("Control", (
|
|
1100
|
-
|
|
1103
|
+
}), ue("Control", (t) => {
|
|
1104
|
+
t.preventDefault(), o.value = !0;
|
|
1101
1105
|
}), de("Control", () => {
|
|
1102
|
-
|
|
1103
|
-
}), { pressSpace: e, pressShift: a, pressCtrl:
|
|
1106
|
+
o.value = !1;
|
|
1107
|
+
}), { pressSpace: e, pressShift: a, pressCtrl: o };
|
|
1104
1108
|
}
|
|
1105
|
-
function
|
|
1106
|
-
const { pressSpace: a } = ie(),
|
|
1107
|
-
|
|
1108
|
-
let
|
|
1109
|
+
function zt(e) {
|
|
1110
|
+
const { pressSpace: a } = ie(), o = new Image(1, 1);
|
|
1111
|
+
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1112
|
+
let t = 0, n = 0;
|
|
1109
1113
|
function r(u) {
|
|
1110
1114
|
var w;
|
|
1111
|
-
a.value && (
|
|
1115
|
+
a.value && (t = u.x, n = u.y, (w = u.dataTransfer) == null || w.setDragImage(document.createElement("div"), 0, 0));
|
|
1112
1116
|
}
|
|
1113
1117
|
function l(u) {
|
|
1114
1118
|
if (u.preventDefault(), !u.x || !u.y || !a.value)
|
|
1115
1119
|
return;
|
|
1116
|
-
const w = u.x -
|
|
1117
|
-
|
|
1120
|
+
const w = u.x - t, h = u.y - n;
|
|
1121
|
+
t = u.x, n = u.y, e.value && (e.value.scrollTop -= h, e.value.scrollLeft -= w);
|
|
1118
1122
|
}
|
|
1119
1123
|
function i() {
|
|
1120
1124
|
a.value = !1;
|
|
@@ -1122,38 +1126,38 @@ function Jt(e) {
|
|
|
1122
1126
|
return { handleElementDragStart: r, handleElementDrag: l, handleElementDragEnd: i };
|
|
1123
1127
|
}
|
|
1124
1128
|
function Wt(e) {
|
|
1125
|
-
const { pressCtrl: a, canvasScale:
|
|
1126
|
-
function
|
|
1127
|
-
if (!a.value ||
|
|
1129
|
+
const { pressCtrl: a, canvasScale: o, disabledZoom: t } = ie();
|
|
1130
|
+
function n(r) {
|
|
1131
|
+
if (!a.value || t.value)
|
|
1128
1132
|
return;
|
|
1129
1133
|
r.preventDefault();
|
|
1130
1134
|
let l = 0;
|
|
1131
|
-
r.deltaY < 0 ? l =
|
|
1135
|
+
r.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
|
|
1132
1136
|
}
|
|
1133
1137
|
return V(
|
|
1134
|
-
() =>
|
|
1138
|
+
() => o.value,
|
|
1135
1139
|
(r) => {
|
|
1136
|
-
e.value && !
|
|
1140
|
+
e.value && !t.value && (e.value.style.transform = `scale(${r})`);
|
|
1137
1141
|
}
|
|
1138
|
-
), { handleZoom:
|
|
1142
|
+
), { handleZoom: n, canvasScale: o };
|
|
1139
1143
|
}
|
|
1140
1144
|
function Ht(e, a = 16.66) {
|
|
1141
|
-
let
|
|
1142
|
-
function o() {
|
|
1143
|
-
t(), n = window.setInterval(e, a);
|
|
1144
|
-
}
|
|
1145
|
+
let o;
|
|
1145
1146
|
function t() {
|
|
1146
|
-
window.
|
|
1147
|
+
n(), o = window.setInterval(e, a);
|
|
1148
|
+
}
|
|
1149
|
+
function n() {
|
|
1150
|
+
window.clearInterval(o);
|
|
1147
1151
|
}
|
|
1148
1152
|
return {
|
|
1149
|
-
startTimedQuery:
|
|
1150
|
-
stopTimedQuery:
|
|
1153
|
+
startTimedQuery: t,
|
|
1154
|
+
stopTimedQuery: n
|
|
1151
1155
|
};
|
|
1152
1156
|
}
|
|
1153
1157
|
const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
|
|
1154
1158
|
__name: "index",
|
|
1155
1159
|
setup(e, { expose: a }) {
|
|
1156
|
-
const
|
|
1160
|
+
const o = F.getComponent("monacoEditor"), t = F.getComponent("modal"), n = D(null), r = D(!1), l = D(!1), i = D({}), u = H("pageSchema"), w = D(null), h = D("");
|
|
1157
1161
|
function s() {
|
|
1158
1162
|
l.value = !1;
|
|
1159
1163
|
}
|
|
@@ -1161,7 +1165,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1161
1165
|
r.value = !1;
|
|
1162
1166
|
}
|
|
1163
1167
|
function d() {
|
|
1164
|
-
r.value = !0,
|
|
1168
|
+
r.value = !0, h.value = se();
|
|
1165
1169
|
}
|
|
1166
1170
|
async function f() {
|
|
1167
1171
|
try {
|
|
@@ -1172,7 +1176,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1172
1176
|
}
|
|
1173
1177
|
Object.keys(c).length === 1 && (c = c.default), i.value = JSON.stringify(c, null, 2), Y(() => {
|
|
1174
1178
|
var A;
|
|
1175
|
-
(A =
|
|
1179
|
+
(A = n.value) == null || A.setValue(i.value);
|
|
1176
1180
|
}), l.value = !0;
|
|
1177
1181
|
} catch (c) {
|
|
1178
1182
|
console.error(c);
|
|
@@ -1180,7 +1184,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1180
1184
|
}
|
|
1181
1185
|
return a({
|
|
1182
1186
|
handleOpen: d
|
|
1183
|
-
}), (c, A) => (M(), L(_(
|
|
1187
|
+
}), (c, A) => (M(), L(_(t), {
|
|
1184
1188
|
modelValue: r.value,
|
|
1185
1189
|
"onUpdate:modelValue": A[1] || (A[1] = (x) => r.value = x),
|
|
1186
1190
|
title: "预览",
|
|
@@ -1191,14 +1195,14 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1191
1195
|
okText: "表单数据"
|
|
1192
1196
|
}, {
|
|
1193
1197
|
default: P(() => [
|
|
1194
|
-
|
|
1198
|
+
J("div", wt, [
|
|
1195
1199
|
(M(), L(_(Xe), {
|
|
1196
|
-
key:
|
|
1200
|
+
key: h.value,
|
|
1197
1201
|
ref_key: "kb",
|
|
1198
1202
|
ref: w,
|
|
1199
1203
|
"page-schema": _(u)
|
|
1200
1204
|
}, null, 8, ["page-schema"])),
|
|
1201
|
-
T(_(
|
|
1205
|
+
T(_(t), {
|
|
1202
1206
|
modelValue: l.value,
|
|
1203
1207
|
"onUpdate:modelValue": A[0] || (A[0] = (x) => l.value = x),
|
|
1204
1208
|
title: "表单数据",
|
|
@@ -1208,10 +1212,10 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1208
1212
|
onOk: s
|
|
1209
1213
|
}, {
|
|
1210
1214
|
default: P(() => [
|
|
1211
|
-
|
|
1212
|
-
T(_(
|
|
1215
|
+
J("div", bt, [
|
|
1216
|
+
T(_(o), {
|
|
1213
1217
|
ref_key: "monacoEditorRef",
|
|
1214
|
-
ref:
|
|
1218
|
+
ref: n,
|
|
1215
1219
|
autoToggleTheme: "",
|
|
1216
1220
|
readOnly: "",
|
|
1217
1221
|
class: "h-full editor",
|
|
@@ -1251,8 +1255,8 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1251
1255
|
"deleteSourceData",
|
|
1252
1256
|
"updateSourceData"
|
|
1253
1257
|
],
|
|
1254
|
-
setup(e, { expose: a, emit:
|
|
1255
|
-
const
|
|
1258
|
+
setup(e, { expose: a, emit: o }) {
|
|
1259
|
+
const t = q(() => import("./index-C-XUgjda.js")), n = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-B07zwTz2.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), h = e;
|
|
1256
1260
|
let s = {
|
|
1257
1261
|
schemas: [
|
|
1258
1262
|
{
|
|
@@ -1300,13 +1304,13 @@ defineExpose({
|
|
|
1300
1304
|
})`
|
|
1301
1305
|
};
|
|
1302
1306
|
re(() => {
|
|
1303
|
-
if (
|
|
1304
|
-
s =
|
|
1307
|
+
if (h.defaultSchema) {
|
|
1308
|
+
s = h.defaultSchema;
|
|
1305
1309
|
return;
|
|
1306
1310
|
}
|
|
1307
|
-
|
|
1311
|
+
h.source && F.setSourceData(h.source), h.formMode && (s.schemas = F.formSchemas);
|
|
1308
1312
|
}), u.setDesignMode(), u.setDefaultComponentIds(s.schemas);
|
|
1309
|
-
const y =
|
|
1313
|
+
const y = o, d = D(null), f = Z({
|
|
1310
1314
|
checkedNode: null,
|
|
1311
1315
|
hoverNode: null,
|
|
1312
1316
|
disableHover: !1,
|
|
@@ -1316,13 +1320,13 @@ defineExpose({
|
|
|
1316
1320
|
script: s.script
|
|
1317
1321
|
}), { disabledZoom: A } = ie();
|
|
1318
1322
|
re(() => {
|
|
1319
|
-
A.value =
|
|
1323
|
+
A.value = h.disabledZoom;
|
|
1320
1324
|
}), re(() => {
|
|
1321
1325
|
const b = c.script;
|
|
1322
1326
|
b && b !== "" && u.setMethods(b);
|
|
1323
1327
|
}), $("pageSchema", c), $("revoke", w), $("pageManager", u), $(
|
|
1324
1328
|
"designerProps",
|
|
1325
|
-
U(() =>
|
|
1329
|
+
U(() => h)
|
|
1326
1330
|
), $("designer", {
|
|
1327
1331
|
setCheckedNode: m,
|
|
1328
1332
|
setHoverNode: g,
|
|
@@ -1341,7 +1345,7 @@ defineExpose({
|
|
|
1341
1345
|
c.schemas = N(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
|
|
1342
1346
|
}
|
|
1343
1347
|
async function m(b = c.schemas[0]) {
|
|
1344
|
-
f.checkedNode = b, f.matched =
|
|
1348
|
+
f.checkedNode = b, f.matched = Je(c.schemas, b.id);
|
|
1345
1349
|
}
|
|
1346
1350
|
async function g(b = null) {
|
|
1347
1351
|
var X;
|
|
@@ -1351,7 +1355,7 @@ defineExpose({
|
|
|
1351
1355
|
return !1;
|
|
1352
1356
|
f.hoverNode = b;
|
|
1353
1357
|
}
|
|
1354
|
-
function
|
|
1358
|
+
function v() {
|
|
1355
1359
|
Y(() => {
|
|
1356
1360
|
y("ready", { pageManager: u });
|
|
1357
1361
|
});
|
|
@@ -1360,13 +1364,13 @@ defineExpose({
|
|
|
1360
1364
|
f.disableHover = b;
|
|
1361
1365
|
}
|
|
1362
1366
|
function O(b) {
|
|
1363
|
-
|
|
1367
|
+
z(c, N(b));
|
|
1364
1368
|
}
|
|
1365
1369
|
function B() {
|
|
1366
1370
|
return ge(c);
|
|
1367
1371
|
}
|
|
1368
1372
|
function W() {
|
|
1369
|
-
Ae(c.schemas, s.schemas) && c.script === s.script || (
|
|
1373
|
+
Ae(c.schemas, s.schemas) && c.script === s.script || (z(c.schemas, s.schemas), c.script = s.script, m(c.schemas[0]), w.push(c.schemas, "重置操作"), y("reset", c));
|
|
1370
1374
|
}
|
|
1371
1375
|
function oe() {
|
|
1372
1376
|
y("save", ge(c));
|
|
@@ -1385,13 +1389,13 @@ defineExpose({
|
|
|
1385
1389
|
preview: ae
|
|
1386
1390
|
}), (b, X) => _(F).initialized.value ? (M(), L(De, {
|
|
1387
1391
|
key: 1,
|
|
1388
|
-
onResolve:
|
|
1392
|
+
onResolve: v
|
|
1389
1393
|
}, {
|
|
1390
1394
|
default: P(() => [
|
|
1391
|
-
|
|
1392
|
-
|
|
1395
|
+
J("div", At, [
|
|
1396
|
+
J("div", Et, [
|
|
1393
1397
|
R(b.$slots, "header", {}, () => [
|
|
1394
|
-
|
|
1398
|
+
h.hiddenHeader ? Se("", !0) : (M(), L(_(t), {
|
|
1395
1399
|
key: 0,
|
|
1396
1400
|
onPreview: ae,
|
|
1397
1401
|
onSave: oe
|
|
@@ -1418,10 +1422,10 @@ defineExpose({
|
|
|
1418
1422
|
}))
|
|
1419
1423
|
])
|
|
1420
1424
|
]),
|
|
1421
|
-
|
|
1425
|
+
J("div", {
|
|
1422
1426
|
class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
|
|
1423
1427
|
}, [
|
|
1424
|
-
T(_(
|
|
1428
|
+
T(_(n)),
|
|
1425
1429
|
T(_(r)),
|
|
1426
1430
|
T(_(l))
|
|
1427
1431
|
], 2),
|
|
@@ -1432,7 +1436,7 @@ defineExpose({
|
|
|
1432
1436
|
])
|
|
1433
1437
|
]),
|
|
1434
1438
|
fallback: P(() => [
|
|
1435
|
-
|
|
1439
|
+
J("div", It, [
|
|
1436
1440
|
T(_(i))
|
|
1437
1441
|
])
|
|
1438
1442
|
]),
|
|
@@ -1440,7 +1444,7 @@ defineExpose({
|
|
|
1440
1444
|
})) : (M(), pe("div", Dt));
|
|
1441
1445
|
}
|
|
1442
1446
|
}), Ct = {
|
|
1443
|
-
component: async () => await import("./index-
|
|
1447
|
+
component: async () => await import("./index-DQBowkLQ.js"),
|
|
1444
1448
|
defaultSchema: {
|
|
1445
1449
|
label: "代码编辑器",
|
|
1446
1450
|
type: "monacoEditor",
|
|
@@ -1490,11 +1494,11 @@ defineExpose({
|
|
|
1490
1494
|
}
|
|
1491
1495
|
};
|
|
1492
1496
|
function xt(e) {
|
|
1493
|
-
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-
|
|
1497
|
+
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-BGKInHWa.js")), e.component("EActionEditor", async () => await import("./index-bup0iSFb.js")), e.component("ERuleEditor", async () => await import("./index-C8_p36X3.js")), e.component("EOptionsEditor", async () => await import("./index-CYyckZuN.js")), e.component("ENode", async () => await import("./index-zlm7L3aS.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
|
|
1494
1498
|
id: "component_view",
|
|
1495
1499
|
title: "组件",
|
|
1496
1500
|
icon: "icon--epic--extension-outline",
|
|
1497
|
-
component: async () => await import("./index-
|
|
1501
|
+
component: async () => await import("./index-CY8bzSIr.js")
|
|
1498
1502
|
}), e.registerActivitybar({
|
|
1499
1503
|
id: "outline_view",
|
|
1500
1504
|
title: "大纲",
|
|
@@ -1503,18 +1507,18 @@ function xt(e) {
|
|
|
1503
1507
|
}), e.registerRightSidebar({
|
|
1504
1508
|
id: "attribute_view",
|
|
1505
1509
|
title: "属性",
|
|
1506
|
-
component: async () => await import("./attributeView-
|
|
1510
|
+
component: async () => await import("./attributeView-DVqMH1xY.js")
|
|
1507
1511
|
}), e.registerRightSidebar({
|
|
1508
1512
|
id: "style_view",
|
|
1509
1513
|
title: "样式",
|
|
1510
|
-
component: async () => await import("./styleView-
|
|
1511
|
-
}), [Ct, kt].forEach((
|
|
1512
|
-
e.registerComponent(
|
|
1514
|
+
component: async () => await import("./styleView-DNbMFObZ.js")
|
|
1515
|
+
}), [Ct, kt].forEach((o) => {
|
|
1516
|
+
e.registerComponent(o);
|
|
1513
1517
|
});
|
|
1514
1518
|
}
|
|
1515
1519
|
xt(F);
|
|
1516
1520
|
export {
|
|
1517
|
-
|
|
1521
|
+
ze as A,
|
|
1518
1522
|
te as B,
|
|
1519
1523
|
We as C,
|
|
1520
1524
|
j as D,
|
|
@@ -1527,8 +1531,8 @@ export {
|
|
|
1527
1531
|
Ht as a,
|
|
1528
1532
|
pt as b,
|
|
1529
1533
|
Nt as c,
|
|
1530
|
-
|
|
1531
|
-
|
|
1534
|
+
z as d,
|
|
1535
|
+
zt as e,
|
|
1532
1536
|
$t as f,
|
|
1533
1537
|
Vt as g,
|
|
1534
1538
|
Tt as h,
|
|
@@ -1539,7 +1543,7 @@ export {
|
|
|
1539
1543
|
N as m,
|
|
1540
1544
|
Lt as n,
|
|
1541
1545
|
Ot as o,
|
|
1542
|
-
|
|
1546
|
+
Jt as p,
|
|
1543
1547
|
Xe as q,
|
|
1544
1548
|
Kt as r,
|
|
1545
1549
|
Ft as s,
|
|
@@ -1548,6 +1552,6 @@ export {
|
|
|
1548
1552
|
He as v,
|
|
1549
1553
|
Ut as w,
|
|
1550
1554
|
Ae as x,
|
|
1551
|
-
|
|
1555
|
+
Je as y,
|
|
1552
1556
|
Mt as z
|
|
1553
1557
|
};
|