epic-designer-gold 0.0.27 → 0.0.30
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-VgLT3_0E.js → attributeView-De_f9cQd.js} +1 -1
- package/dist/{attributeView-DT3Pgu2H.cjs → attributeView-Dqeqsngv.cjs} +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -0
- package/dist/{index-D-mV-SAk.cjs → index-26AzXutN.cjs} +1 -1
- package/dist/index-2dJzXydf.js +4 -0
- package/dist/index-B30AjHWV.cjs +10 -0
- package/dist/{index-B0S7YNtd.js → index-BB1mJNTS.js} +1 -1
- package/dist/{index-CQ_Xpn1C.js → index-BIDRA86S.js} +1 -1
- package/dist/{index-B9zp9FUu.cjs → index-BTKr-8ba.cjs} +1 -1
- package/dist/{index-BWCIdFn_.js → index-Bae_P2jy.js} +1 -1
- package/dist/{index-DKe3uW6g.cjs → index-BbCkeepF.cjs} +1 -1
- package/dist/{index-Rhk7Lv_h.cjs → index-BtuYfYFT.cjs} +1 -1
- package/dist/{index-C2Nctb3q.js → index-CHGojUf_.js} +1 -1
- package/dist/{index-BcTELKKi.cjs → index-Czi0tPRM.cjs} +1 -1
- package/dist/{index-DqWY4lfL.js → index-D2jUjBFQ.js} +68 -64
- package/dist/{index-CJaP0qUg.js → index-DUsA7Tr8.js} +1 -1
- package/dist/{index-8jV4lvPb.js → index-DYpZGxr_.js} +173 -170
- package/dist/{index-BfoDWeC1.cjs → index-DuXhyMbh.cjs} +1 -1
- package/dist/index-dIWkZ7Jl.cjs +1 -0
- package/dist/{index-DkVKzqSQ.cjs → index-qCmGhMQn.cjs} +1 -1
- package/dist/{index-Cn2i-Eyz.js → index-z22tTQo-.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{styleView-B66KWbOm.cjs → styleView-BdLkrbxa.cjs} +1 -1
- package/dist/{styleView-Cjdr_xer.js → styleView-CA80akwG.js} +1 -1
- package/package.json +1 -1
- package/dist/index-BAbG8xrg.cjs +0 -1
- package/dist/index-R7VF52gK.cjs +0 -10
- package/dist/index-fwa-_XEi.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
2
|
-
import { p as F,
|
|
3
|
-
function
|
|
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 Fe, createVNode as T, createCommentVNode as Se, useSlots as Oe, createElementBlock as pe, Suspense as De, createElementVNode as z, 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
|
+
import { p as F, E as ee, a as we, l as q } from "./axios-ITY6Uw7A.js";
|
|
3
|
+
function se(e = 10) {
|
|
4
4
|
const a = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
5
|
let n = "";
|
|
6
6
|
for (let o = 0; o < e; o++) {
|
|
@@ -31,16 +31,16 @@ function Vt(e) {
|
|
|
31
31
|
var t, r;
|
|
32
32
|
const o = {
|
|
33
33
|
...n,
|
|
34
|
-
id: `${n.type}_${
|
|
34
|
+
id: `${n.type}_${se(8)}`
|
|
35
35
|
};
|
|
36
36
|
return (o.field || o.input) && !((r = (t = F.getComponentConfingByType(o.type)) == null ? void 0 : t.editConstraints) != null && r.fixedField) && (o.field = o.id), o;
|
|
37
37
|
});
|
|
38
38
|
return a;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function J(e, a, n = !0) {
|
|
41
41
|
for (const [o, t] of Object.entries(a)) {
|
|
42
42
|
let r = e == null ? void 0 : e[o];
|
|
43
|
-
r && t && typeof r == "object" && typeof t == "object" ? (Array.isArray(r) && !Array.isArray(t) ? r = e[o] = {} : !Array.isArray(r) && Array.isArray(t) && (r = e[o] = []),
|
|
43
|
+
r && t && typeof r == "object" && typeof t == "object" ? (Array.isArray(r) && !Array.isArray(t) ? r = e[o] = {} : !Array.isArray(r) && Array.isArray(t) && (r = e[o] = []), J(r, t, n)) : e[o] = t;
|
|
44
44
|
}
|
|
45
45
|
n && Object.keys(e).reverse().forEach((o) => {
|
|
46
46
|
a.hasOwnProperty(o) || (Array.isArray(e) ? e.splice(Number(o), 1) : delete e[o]);
|
|
@@ -63,7 +63,7 @@ function Ae(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
|
|
|
63
63
|
};
|
|
64
64
|
return JSON.stringify(t(e)) === JSON.stringify(t(a));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ze(e, a) {
|
|
67
67
|
const n = [];
|
|
68
68
|
let o = !1;
|
|
69
69
|
function t(r) {
|
|
@@ -78,7 +78,7 @@ function Je(e, a) {
|
|
|
78
78
|
}
|
|
79
79
|
return e.forEach(t), o || console.error(`没有查询到id为${a}的节点`), n;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Ft(e, a, n) {
|
|
82
82
|
const o = a.split(".");
|
|
83
83
|
let t = e;
|
|
84
84
|
for (let r = 0; r < o.length; r++) {
|
|
@@ -88,7 +88,7 @@ function Ot(e, a, n) {
|
|
|
88
88
|
}
|
|
89
89
|
return t === void 0 ? n : t;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ot(e, a, n) {
|
|
92
92
|
const o = a.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
93
93
|
let t = e;
|
|
94
94
|
for (let r = 0; r < o.length - 1; r++) {
|
|
@@ -98,10 +98,10 @@ function Ft(e, a, n) {
|
|
|
98
98
|
return t[o[o.length - 1]] = n, e;
|
|
99
99
|
}
|
|
100
100
|
function Mt(e, a = "default") {
|
|
101
|
-
return
|
|
101
|
+
return Je(e, a).map((o) => o.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
const n =
|
|
103
|
+
function Je(e, a = "default") {
|
|
104
|
+
const n = te(
|
|
105
105
|
e,
|
|
106
106
|
(t) => {
|
|
107
107
|
var r;
|
|
@@ -109,14 +109,14 @@ function ze(e, a = "default") {
|
|
|
109
109
|
},
|
|
110
110
|
!0
|
|
111
111
|
);
|
|
112
|
-
return
|
|
112
|
+
return te(
|
|
113
113
|
(n == null ? void 0 : n.children) ?? [],
|
|
114
114
|
(t) => !!t.input,
|
|
115
115
|
!1,
|
|
116
116
|
(t) => t.type !== "subform"
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function te(e, a, n = !1, o) {
|
|
120
120
|
const t = [], r = [...e];
|
|
121
121
|
for (; r.length; ) {
|
|
122
122
|
const l = r.pop();
|
|
@@ -135,12 +135,12 @@ function We(e, a, n) {
|
|
|
135
135
|
if (t != null && t.children && (!n || n(t)) && o.push(...t.children), t != null && t.slots && (!n || n(t)))
|
|
136
136
|
for (let r in t.slots)
|
|
137
137
|
o.push(...t.slots[r]);
|
|
138
|
-
|
|
138
|
+
J(t, a(t));
|
|
139
139
|
}
|
|
140
140
|
return e;
|
|
141
141
|
}
|
|
142
142
|
function Rt(e, a) {
|
|
143
|
-
const n =
|
|
143
|
+
const n = te(
|
|
144
144
|
e,
|
|
145
145
|
(o) => o.id === a,
|
|
146
146
|
!0
|
|
@@ -152,7 +152,7 @@ function Rt(e, a) {
|
|
|
152
152
|
function $t(e, a) {
|
|
153
153
|
const n = [{ type: "", children: e }];
|
|
154
154
|
let o = 0, t = null;
|
|
155
|
-
if (
|
|
155
|
+
if (te(
|
|
156
156
|
n,
|
|
157
157
|
(r) => {
|
|
158
158
|
if (t = r.children ?? null, !t) {
|
|
@@ -205,7 +205,7 @@ function Nt(e) {
|
|
|
205
205
|
size: e.config.size || "middle"
|
|
206
206
|
},
|
|
207
207
|
children: [],
|
|
208
|
-
id: "form_" +
|
|
208
|
+
id: "form_" + se()
|
|
209
209
|
}
|
|
210
210
|
],
|
|
211
211
|
componentProps: {
|
|
@@ -221,7 +221,7 @@ function Nt(e) {
|
|
|
221
221
|
}
|
|
222
222
|
function j(e, a) {
|
|
223
223
|
return e.map((n) => {
|
|
224
|
-
var c, w,
|
|
224
|
+
var c, w, v;
|
|
225
225
|
let o = n.type ?? "";
|
|
226
226
|
const t = n.options ?? {}, r = (s, y) => {
|
|
227
227
|
o === s && (o = y, t.defaultValue && (t.defaultValue = JSON.parse(t.defaultValue)));
|
|
@@ -230,7 +230,7 @@ function j(e, a) {
|
|
|
230
230
|
const { minRows: s, maxRows: y } = t;
|
|
231
231
|
t.autoSize = { minRows: s, maxRows: y }, delete t.minRows, delete t.maxRows;
|
|
232
232
|
}
|
|
233
|
-
o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key =
|
|
233
|
+
o === "number" && !t.precision && delete t.precision, t.width && (t.style = { width: t.width }, delete t.width), o === "grid" && (o = "row"), a && a.type === "grid" && (o = "col", t.span = n.span, n.key = se());
|
|
234
234
|
const l = {
|
|
235
235
|
label: n.label,
|
|
236
236
|
type: o,
|
|
@@ -255,7 +255,7 @@ function j(e, a) {
|
|
|
255
255
|
"color-picker",
|
|
256
256
|
"upload-file",
|
|
257
257
|
"upload-image"
|
|
258
|
-
].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((
|
|
258
|
+
].includes(o) && (l.input = !0, ((w = (c = n.rules) == null ? void 0 : c[0]) == null ? void 0 : w.required) === !1 && n.rules.shift(), ((v = n.rules) == null ? void 0 : v.length) > 0 && (l.rules = n.rules)), n.list && (l.children = j(n.list, n)), n.columns && (l.children = j(n.columns, n)), n.trs && (l.children = j(n.trs, n)), n.tds && (l.children = j(n.tds, n)), l;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
function Bt(e, a) {
|
|
@@ -278,17 +278,17 @@ function Ee() {
|
|
|
278
278
|
delete e.value[m];
|
|
279
279
|
}
|
|
280
280
|
function c(m, g = !1) {
|
|
281
|
-
const
|
|
281
|
+
const h = 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
|
+
...h,
|
|
288
288
|
getComponent: r,
|
|
289
289
|
find: r,
|
|
290
290
|
defineExpose: w,
|
|
291
|
-
publicMethods:
|
|
291
|
+
publicMethods: h,
|
|
292
292
|
pluginManager: F
|
|
293
293
|
})();
|
|
294
294
|
} catch (I) {
|
|
@@ -298,53 +298,53 @@ function Ee() {
|
|
|
298
298
|
function w(m) {
|
|
299
299
|
m != null && (a.value = m);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function v(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((h) => {
|
|
307
|
+
const I = h.args ? JSON.parse(h.args) : g;
|
|
308
|
+
switch (h.type) {
|
|
309
309
|
case "public":
|
|
310
|
-
s(
|
|
310
|
+
s(h, I);
|
|
311
311
|
break;
|
|
312
312
|
case "custom":
|
|
313
|
-
y(
|
|
313
|
+
y(h, I);
|
|
314
314
|
break;
|
|
315
315
|
case "component":
|
|
316
|
-
d(
|
|
316
|
+
d(h, I);
|
|
317
317
|
break;
|
|
318
318
|
default:
|
|
319
|
-
console.warn(`未知的动作类型: ${
|
|
319
|
+
console.warn(`未知的动作类型: ${h.type}`);
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
function s(m, g) {
|
|
325
|
-
var
|
|
325
|
+
var h;
|
|
326
326
|
try {
|
|
327
|
-
(
|
|
327
|
+
(h = F.publicMethods[m.methodName]) == null || h.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 h, I;
|
|
334
334
|
try {
|
|
335
|
-
(I = (
|
|
335
|
+
(I = (h = a.value)[m.methodName]) == null || I.call(h, ...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 h = m.componentId != null && r(m.componentId);
|
|
342
|
+
if (!h) {
|
|
343
343
|
console.warn(`[Epic:组件${m.componentId}]未找到`);
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
try {
|
|
347
|
-
|
|
347
|
+
h[m.methodName](...g);
|
|
348
348
|
} catch (I) {
|
|
349
349
|
console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, I);
|
|
350
350
|
}
|
|
@@ -353,19 +353,19 @@ function Ee() {
|
|
|
353
353
|
n.value = m;
|
|
354
354
|
}
|
|
355
355
|
function u(m) {
|
|
356
|
-
const g =
|
|
357
|
-
o.value = g.map((
|
|
356
|
+
const g = te(m, () => !0);
|
|
357
|
+
o.value = g.map((h) => h.id);
|
|
358
358
|
}
|
|
359
359
|
function A(m, g = "default") {
|
|
360
360
|
if (t[g]) {
|
|
361
|
-
const
|
|
362
|
-
|
|
361
|
+
const h = t[g];
|
|
362
|
+
J(m, h);
|
|
363
363
|
}
|
|
364
364
|
t[g] = m;
|
|
365
365
|
}
|
|
366
366
|
function x(m, g = "default") {
|
|
367
367
|
if (t[g]) {
|
|
368
|
-
|
|
368
|
+
J(t[g], m, !1);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
371
|
t[g] = m;
|
|
@@ -384,7 +384,7 @@ function Ee() {
|
|
|
384
384
|
addComponentInstance: l,
|
|
385
385
|
removeComponentInstance: i,
|
|
386
386
|
setMethods: c,
|
|
387
|
-
doActions:
|
|
387
|
+
doActions: v,
|
|
388
388
|
setDesignMode: f,
|
|
389
389
|
setDefaultComponentIds: u
|
|
390
390
|
};
|
|
@@ -393,8 +393,8 @@ function He() {
|
|
|
393
393
|
const e = D([]), a = D([]), n = D(null);
|
|
394
394
|
let o = 0;
|
|
395
395
|
function t(c, w = "插入组件") {
|
|
396
|
-
const
|
|
397
|
-
o + 150 >
|
|
396
|
+
const v = Date.now();
|
|
397
|
+
o + 150 > v || (o = v, n.value != null && (e.value.push(n.value), a.value.splice(0, a.value.length)), n.value = {
|
|
398
398
|
type: w,
|
|
399
399
|
componentSchema: JSON.stringify(c)
|
|
400
400
|
}, e.value.length > 60 && e.value.unshift());
|
|
@@ -461,9 +461,9 @@ const Ke = /* @__PURE__ */ G({
|
|
|
461
461
|
},
|
|
462
462
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
463
463
|
setup(e, { emit: a }) {
|
|
464
|
-
const { proxy: n } =
|
|
464
|
+
const { proxy: n } = ne(), o = e, t = D(null);
|
|
465
465
|
let r = H("formData", Z({}));
|
|
466
|
-
const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null),
|
|
466
|
+
const l = H("slots", {}), i = H("pageManager", {}), c = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), v = H("resetFormData", !1);
|
|
467
467
|
let s = Z(N(o.componentSchema));
|
|
468
468
|
f();
|
|
469
469
|
async function y(p) {
|
|
@@ -505,7 +505,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
505
505
|
V(
|
|
506
506
|
() => o.componentSchema,
|
|
507
507
|
(p) => {
|
|
508
|
-
Ae(s, p, ["children"]) || (
|
|
508
|
+
Ae(s, p, ["children"]) || (J(s, N(p)), f());
|
|
509
509
|
},
|
|
510
510
|
{
|
|
511
511
|
deep: !0
|
|
@@ -514,12 +514,12 @@ const Ke = /* @__PURE__ */ G({
|
|
|
514
514
|
function f() {
|
|
515
515
|
i.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
|
|
516
516
|
}
|
|
517
|
-
(o.resetFormData ||
|
|
517
|
+
(o.resetFormData || v) && (r = {});
|
|
518
518
|
const u = a, A = D(), x = D(), m = (p) => {
|
|
519
519
|
x.value = p;
|
|
520
520
|
}, g = _e();
|
|
521
521
|
Object.keys(g).length && $("nodeAttrs", g);
|
|
522
|
-
const
|
|
522
|
+
const h = Pe(null), I = U(() => {
|
|
523
523
|
var p, E;
|
|
524
524
|
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
525
|
}), O = U(() => {
|
|
@@ -551,7 +551,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
551
551
|
...E
|
|
552
552
|
};
|
|
553
553
|
}), W = U(() => F.getComponentConfingByType(s.type) ?? null);
|
|
554
|
-
|
|
554
|
+
re(() => {
|
|
555
555
|
t.value = o.modelValue ?? r[s.field ?? ""];
|
|
556
556
|
}), V(
|
|
557
557
|
() => t.value,
|
|
@@ -561,20 +561,20 @@ const Ke = /* @__PURE__ */ G({
|
|
|
561
561
|
), V(
|
|
562
562
|
() => A.value,
|
|
563
563
|
() => {
|
|
564
|
-
|
|
564
|
+
oe();
|
|
565
565
|
},
|
|
566
566
|
{ immediate: !0 }
|
|
567
567
|
);
|
|
568
|
-
function
|
|
568
|
+
function oe() {
|
|
569
569
|
var E;
|
|
570
570
|
const p = A.value || n;
|
|
571
571
|
s.id && p && (s.input && (p.setValue = b, p.getValue = () => r[s.field] || o.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
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ce() {
|
|
574
574
|
var p;
|
|
575
575
|
s.id && (i.removeComponentInstance(s.id), (p = W.value) != null && p.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
|
|
576
576
|
}
|
|
577
|
-
async function
|
|
577
|
+
async function ae() {
|
|
578
578
|
var E, k, S;
|
|
579
579
|
if (s = await y(s), typeof ((E = s.componentProps) == null ? void 0 : E.defaultValue) < "u") {
|
|
580
580
|
const C = i.isDesignMode.value ? (k = s.componentProps) == null ? void 0 : k.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
|
|
@@ -583,7 +583,7 @@ const Ke = /* @__PURE__ */ G({
|
|
|
583
583
|
if (s.type === "slot") {
|
|
584
584
|
const C = s.slotName;
|
|
585
585
|
if (!C) return;
|
|
586
|
-
|
|
586
|
+
h.value = G({
|
|
587
587
|
setup() {
|
|
588
588
|
return () => R(l, C, {
|
|
589
589
|
componentSchema: s,
|
|
@@ -600,12 +600,12 @@ const Ke = /* @__PURE__ */ G({
|
|
|
600
600
|
}
|
|
601
601
|
if (typeof p == "function") {
|
|
602
602
|
const C = await p();
|
|
603
|
-
|
|
603
|
+
h.value = C.default ?? C;
|
|
604
604
|
} else
|
|
605
|
-
|
|
605
|
+
h.value = p;
|
|
606
606
|
}
|
|
607
607
|
function b(p) {
|
|
608
|
-
u("update:modelValue", p), u("change", p), s.field && (r[s.field] = p);
|
|
608
|
+
u("update:modelValue", p), u("change", p), s.field && (r[s.field] = p), ee.emit("updateformData", r), F.setFormData(r);
|
|
609
609
|
}
|
|
610
610
|
function X(p) {
|
|
611
611
|
u("update:dynamicId", p);
|
|
@@ -624,26 +624,26 @@ const Ke = /* @__PURE__ */ G({
|
|
|
624
624
|
});
|
|
625
625
|
if (E === ve)
|
|
626
626
|
return !1;
|
|
627
|
-
ve = E,
|
|
627
|
+
ve = E, ae();
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
immediate: !0,
|
|
631
631
|
deep: !0
|
|
632
632
|
}
|
|
633
|
-
), be(
|
|
633
|
+
), be(ce), (p, E) => {
|
|
634
634
|
var S;
|
|
635
635
|
const k = Ve("ENode");
|
|
636
|
-
return
|
|
636
|
+
return h.value && I.value ? (M(), L(Ke, {
|
|
637
637
|
key: 0,
|
|
638
638
|
hasFormItem: _(s).noFormItem !== !0 && ((S = W.value) == null ? void 0 : S.defaultSchema.input),
|
|
639
639
|
formItemProps: O.value,
|
|
640
640
|
onUpdateFormItemRef: m
|
|
641
641
|
}, {
|
|
642
642
|
default: P(() => [
|
|
643
|
-
(M(), L(
|
|
643
|
+
(M(), L(Fe(h.value), fe({
|
|
644
644
|
ref_key: "componentInstance",
|
|
645
645
|
ref: A,
|
|
646
|
-
onVnodeMounted:
|
|
646
|
+
onVnodeMounted: oe,
|
|
647
647
|
model: _(r)
|
|
648
648
|
}, { ...B.value }, {
|
|
649
649
|
[B.value.bindModel]: t.value,
|
|
@@ -712,7 +712,7 @@ function Ze() {
|
|
|
712
712
|
}
|
|
713
713
|
return f;
|
|
714
714
|
}
|
|
715
|
-
async function
|
|
715
|
+
async function v() {
|
|
716
716
|
return await w((d) => d.getData());
|
|
717
717
|
}
|
|
718
718
|
function s(d) {
|
|
@@ -729,7 +729,7 @@ function Ze() {
|
|
|
729
729
|
getData: l,
|
|
730
730
|
setData: i,
|
|
731
731
|
validate: c,
|
|
732
|
-
getForms:
|
|
732
|
+
getForms: v,
|
|
733
733
|
setForms: s,
|
|
734
734
|
validateAll: y,
|
|
735
735
|
getFormInstance: t
|
|
@@ -746,15 +746,15 @@ const Ge = {
|
|
|
746
746
|
disabled: { type: Boolean },
|
|
747
747
|
sourceDateUrl: {}
|
|
748
748
|
},
|
|
749
|
-
emits: ["ready"],
|
|
749
|
+
emits: ["change", "ready"],
|
|
750
750
|
setup(e, { expose: a, emit: n }) {
|
|
751
|
-
const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate:
|
|
751
|
+
const o = q(() => import("./index-DgcFxYFp.js")), t = n, { ready: r, pageManager: l, forms: i, getData: c, setData: w, validate: v, getForms: s, setForms: y, validateAll: d, getFormInstance: f } = Ze(), u = e, A = Z({
|
|
752
752
|
schemas: []
|
|
753
753
|
});
|
|
754
754
|
V(
|
|
755
755
|
() => u.pageSchema,
|
|
756
|
-
(
|
|
757
|
-
|
|
756
|
+
(h) => {
|
|
757
|
+
J(A, h);
|
|
758
758
|
},
|
|
759
759
|
{
|
|
760
760
|
immediate: !0,
|
|
@@ -762,8 +762,8 @@ const Ge = {
|
|
|
762
762
|
}
|
|
763
763
|
), V(
|
|
764
764
|
() => u.formData,
|
|
765
|
-
(
|
|
766
|
-
|
|
765
|
+
(h) => {
|
|
766
|
+
h && w(h);
|
|
767
767
|
},
|
|
768
768
|
{
|
|
769
769
|
immediate: !0,
|
|
@@ -771,47 +771,50 @@ const Ge = {
|
|
|
771
771
|
}
|
|
772
772
|
), V(
|
|
773
773
|
() => A.script,
|
|
774
|
-
(
|
|
775
|
-
|
|
774
|
+
(h) => {
|
|
775
|
+
h && l.setMethods(h, !0);
|
|
776
776
|
},
|
|
777
777
|
{
|
|
778
778
|
immediate: !0
|
|
779
779
|
}
|
|
780
|
-
), $("slots",
|
|
780
|
+
), $("slots", Oe()), $("pageManager", l), $("forms", i), $("pageSchema", A), $(
|
|
781
781
|
"disabled",
|
|
782
782
|
U(() => u.disabled)
|
|
783
783
|
);
|
|
784
|
-
const x =
|
|
784
|
+
const x = ne(), m = x == null ? void 0 : x.proxy;
|
|
785
785
|
function g() {
|
|
786
786
|
Y(() => {
|
|
787
787
|
r.value = !0, t("ready", l), m && l.addComponentInstance("builder", m);
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
|
-
return
|
|
790
|
+
return ee.on("updateformData", (h) => {
|
|
791
|
+
console.log("%c [ e ]-122", "font-size:13px; background:pink; color:#bf2c9f;", h), t("change", h);
|
|
792
|
+
}), a({
|
|
791
793
|
ready: r,
|
|
792
794
|
pageManager: l,
|
|
793
795
|
getData: c,
|
|
794
796
|
setData: w,
|
|
795
|
-
validate:
|
|
797
|
+
validate: v,
|
|
796
798
|
getForms: s,
|
|
797
799
|
setForms: y,
|
|
798
800
|
validateAll: d,
|
|
799
801
|
getFormInstance: f
|
|
800
|
-
}), (
|
|
802
|
+
}), (h, I) => _(F).initialized.value ? (M(), L(De, {
|
|
801
803
|
key: 1,
|
|
802
804
|
onResolve: g
|
|
803
805
|
}, {
|
|
804
806
|
default: P(() => [
|
|
805
|
-
|
|
807
|
+
z("div", Qe, [
|
|
806
808
|
(M(!0), pe(Me, null, Re(A.schemas, (O, B) => (M(), L(_(qe), {
|
|
807
809
|
key: B,
|
|
808
810
|
sourceDateUrl: u.sourceDateUrl,
|
|
809
|
-
componentSchema: O
|
|
810
|
-
|
|
811
|
+
componentSchema: O,
|
|
812
|
+
onChange: h.getDataChange
|
|
813
|
+
}, null, 8, ["sourceDateUrl", "componentSchema", "onChange"]))), 128))
|
|
811
814
|
])
|
|
812
815
|
]),
|
|
813
816
|
fallback: P(() => [
|
|
814
|
-
|
|
817
|
+
z("div", Ye, [
|
|
815
818
|
T(_(o))
|
|
816
819
|
])
|
|
817
820
|
]),
|
|
@@ -837,7 +840,7 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
837
840
|
const tt = (e) => typeof e < "u", nt = Object.prototype.toString, ot = (e) => nt.call(e) === "[object Object]", at = () => {
|
|
838
841
|
};
|
|
839
842
|
function rt(e) {
|
|
840
|
-
return
|
|
843
|
+
return ne();
|
|
841
844
|
}
|
|
842
845
|
function st(e, a = !0, n) {
|
|
843
846
|
rt() ? me(e, n) : a ? e() : Y(e);
|
|
@@ -861,7 +864,7 @@ function Ut(e, a, n) {
|
|
|
861
864
|
const o = V(e, (...t) => (Y(() => o()), a(...t)), n);
|
|
862
865
|
return o;
|
|
863
866
|
}
|
|
864
|
-
const
|
|
867
|
+
const le = et ? window : void 0;
|
|
865
868
|
function K(e) {
|
|
866
869
|
var a;
|
|
867
870
|
const n = Q(e);
|
|
@@ -869,19 +872,19 @@ function K(e) {
|
|
|
869
872
|
}
|
|
870
873
|
function it(...e) {
|
|
871
874
|
let a, n, o, t;
|
|
872
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a =
|
|
875
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, t] = e, a = le) : [a, n, o, t] = e, !a)
|
|
873
876
|
return at;
|
|
874
877
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
875
878
|
const r = [], l = () => {
|
|
876
|
-
r.forEach((
|
|
877
|
-
}, i = (
|
|
879
|
+
r.forEach((v) => v()), r.length = 0;
|
|
880
|
+
}, i = (v, s, y, d) => (v.addEventListener(s, y, d), () => v.removeEventListener(s, y, d)), c = V(
|
|
878
881
|
() => [K(a), Q(t)],
|
|
879
|
-
([
|
|
880
|
-
if (l(), !
|
|
882
|
+
([v, s]) => {
|
|
883
|
+
if (l(), !v)
|
|
881
884
|
return;
|
|
882
885
|
const y = ot(s) ? { ...s } : s;
|
|
883
886
|
r.push(
|
|
884
|
-
...n.flatMap((d) => o.map((f) => i(
|
|
887
|
+
...n.flatMap((d) => o.map((f) => i(v, d, f, y)))
|
|
885
888
|
);
|
|
886
889
|
},
|
|
887
890
|
{ immediate: !0, flush: "post" }
|
|
@@ -897,13 +900,13 @@ function Ie(...e) {
|
|
|
897
900
|
let a, n, o = {};
|
|
898
901
|
e.length === 3 ? (a = e[0], n = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (a = !0, n = e[0], o = e[1]) : (a = e[0], n = e[1]) : (a = !0, n = e[0]);
|
|
899
902
|
const {
|
|
900
|
-
target: t =
|
|
903
|
+
target: t = le,
|
|
901
904
|
eventName: r = "keydown",
|
|
902
905
|
passive: l = !1,
|
|
903
906
|
dedupe: i = !1
|
|
904
907
|
} = o, c = ct(a);
|
|
905
|
-
return it(t, r, (
|
|
906
|
-
|
|
908
|
+
return it(t, r, (v) => {
|
|
909
|
+
v.repeat && Q(i) || c(v) && n(v);
|
|
907
910
|
}, l);
|
|
908
911
|
}
|
|
909
912
|
function ue(e, a, n = {}) {
|
|
@@ -913,7 +916,7 @@ function de(e, a, n = {}) {
|
|
|
913
916
|
return Ie(e, a, { ...n, eventName: "keyup" });
|
|
914
917
|
}
|
|
915
918
|
function ut() {
|
|
916
|
-
const e = D(!1), a =
|
|
919
|
+
const e = D(!1), a = ne();
|
|
917
920
|
return a && me(() => {
|
|
918
921
|
e.value = !0;
|
|
919
922
|
}, a), e;
|
|
@@ -926,7 +929,7 @@ function ft(e) {
|
|
|
926
929
|
return JSON.parse(JSON.stringify(e));
|
|
927
930
|
}
|
|
928
931
|
function pt(e, a, n = {}) {
|
|
929
|
-
const { window: o =
|
|
932
|
+
const { window: o = le, ...t } = n;
|
|
930
933
|
let r;
|
|
931
934
|
const l = dt(() => o && "ResizeObserver" in o), i = () => {
|
|
932
935
|
r && (r.disconnect(), r = void 0);
|
|
@@ -943,16 +946,16 @@ function pt(e, a, n = {}) {
|
|
|
943
946
|
}
|
|
944
947
|
},
|
|
945
948
|
{ immediate: !0, flush: "post" }
|
|
946
|
-
),
|
|
949
|
+
), v = () => {
|
|
947
950
|
i(), w();
|
|
948
951
|
};
|
|
949
|
-
return he(
|
|
952
|
+
return he(v), {
|
|
950
953
|
isSupported: l,
|
|
951
|
-
stop:
|
|
954
|
+
stop: v
|
|
952
955
|
};
|
|
953
956
|
}
|
|
954
957
|
function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
955
|
-
const { window: o =
|
|
958
|
+
const { window: o = le, box: t = "content-box" } = n, r = U(() => {
|
|
956
959
|
var s, y;
|
|
957
960
|
return (y = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : y.includes("svg");
|
|
958
961
|
}), l = D(a.width), i = D(a.height), { stop: c } = pt(
|
|
@@ -983,13 +986,13 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
983
986
|
l.value = s ? a.width : 0, i.value = s ? a.height : 0;
|
|
984
987
|
}
|
|
985
988
|
);
|
|
986
|
-
function
|
|
989
|
+
function v() {
|
|
987
990
|
c(), w();
|
|
988
991
|
}
|
|
989
992
|
return {
|
|
990
993
|
width: l,
|
|
991
994
|
height: i,
|
|
992
|
-
stop:
|
|
995
|
+
stop: v
|
|
993
996
|
};
|
|
994
997
|
}
|
|
995
998
|
function Lt(e, a, n, o = {}) {
|
|
@@ -998,30 +1001,30 @@ function Lt(e, a, n, o = {}) {
|
|
|
998
1001
|
clone: i = !1,
|
|
999
1002
|
passive: c = !1,
|
|
1000
1003
|
eventName: w,
|
|
1001
|
-
deep:
|
|
1004
|
+
deep: v = !1,
|
|
1002
1005
|
defaultValue: s,
|
|
1003
1006
|
shouldEmit: y
|
|
1004
|
-
} = o, d =
|
|
1007
|
+
} = o, d = ne(), f = n || (d == null ? void 0 : d.emit) || ((t = d == null ? void 0 : d.$emit) == null ? void 0 : t.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));
|
|
1005
1008
|
let u = w;
|
|
1006
1009
|
a || (a = "modelValue"), u = u || `update:${a.toString()}`;
|
|
1007
1010
|
const A = (g) => i ? typeof i == "function" ? i(g) : ft(g) : g, x = () => tt(e[a]) ? A(e[a]) : s, m = (g) => {
|
|
1008
1011
|
y ? y(g) && f(u, g) : f(u, g);
|
|
1009
1012
|
};
|
|
1010
1013
|
if (c) {
|
|
1011
|
-
const g = x(),
|
|
1014
|
+
const g = x(), h = D(g);
|
|
1012
1015
|
let I = !1;
|
|
1013
1016
|
return V(
|
|
1014
1017
|
() => e[a],
|
|
1015
1018
|
(O) => {
|
|
1016
|
-
I || (I = !0,
|
|
1019
|
+
I || (I = !0, h.value = A(O), Y(() => I = !1));
|
|
1017
1020
|
}
|
|
1018
1021
|
), V(
|
|
1019
|
-
|
|
1022
|
+
h,
|
|
1020
1023
|
(O) => {
|
|
1021
|
-
!I && (O !== e[a] ||
|
|
1024
|
+
!I && (O !== e[a] || v) && m(O);
|
|
1022
1025
|
},
|
|
1023
|
-
{ deep:
|
|
1024
|
-
),
|
|
1026
|
+
{ deep: v }
|
|
1027
|
+
), h;
|
|
1025
1028
|
} else
|
|
1026
1029
|
return U({
|
|
1027
1030
|
get() {
|
|
@@ -1032,8 +1035,8 @@ function Lt(e, a, n, o = {}) {
|
|
|
1032
1035
|
}
|
|
1033
1036
|
});
|
|
1034
1037
|
}
|
|
1035
|
-
function
|
|
1036
|
-
const { isDark: e } =
|
|
1038
|
+
function zt() {
|
|
1039
|
+
const { isDark: e } = ie(), a = lt(e);
|
|
1037
1040
|
return {
|
|
1038
1041
|
isDark: e,
|
|
1039
1042
|
toggleDark: a
|
|
@@ -1082,7 +1085,7 @@ function yt() {
|
|
|
1082
1085
|
isDark: n
|
|
1083
1086
|
};
|
|
1084
1087
|
}
|
|
1085
|
-
const
|
|
1088
|
+
const ie = je(yt);
|
|
1086
1089
|
function gt() {
|
|
1087
1090
|
const e = D(!1), a = D(!1), n = D(!1);
|
|
1088
1091
|
return ue(" ", () => {
|
|
@@ -1099,8 +1102,8 @@ function gt() {
|
|
|
1099
1102
|
n.value = !1;
|
|
1100
1103
|
}), { pressSpace: e, pressShift: a, pressCtrl: n };
|
|
1101
1104
|
}
|
|
1102
|
-
function
|
|
1103
|
-
const { pressSpace: a } =
|
|
1105
|
+
function Jt(e) {
|
|
1106
|
+
const { pressSpace: a } = ie(), n = new Image(1, 1);
|
|
1104
1107
|
n.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1105
1108
|
let o = 0, t = 0;
|
|
1106
1109
|
function r(c) {
|
|
@@ -1110,8 +1113,8 @@ function zt(e) {
|
|
|
1110
1113
|
function l(c) {
|
|
1111
1114
|
if (c.preventDefault(), !c.x || !c.y || !a.value)
|
|
1112
1115
|
return;
|
|
1113
|
-
const w = c.x - o,
|
|
1114
|
-
o = c.x, t = c.y, e.value && (e.value.scrollTop -=
|
|
1116
|
+
const w = c.x - o, v = c.y - t;
|
|
1117
|
+
o = c.x, t = c.y, e.value && (e.value.scrollTop -= v, e.value.scrollLeft -= w);
|
|
1115
1118
|
}
|
|
1116
1119
|
function i() {
|
|
1117
1120
|
a.value = !1;
|
|
@@ -1119,7 +1122,7 @@ function zt(e) {
|
|
|
1119
1122
|
return { handleElementDragStart: r, handleElementDrag: l, handleElementDragEnd: i };
|
|
1120
1123
|
}
|
|
1121
1124
|
function Wt(e) {
|
|
1122
|
-
const { pressCtrl: a, canvasScale: n, disabledZoom: o } =
|
|
1125
|
+
const { pressCtrl: a, canvasScale: n, disabledZoom: o } = ie();
|
|
1123
1126
|
function t(r) {
|
|
1124
1127
|
if (!a.value || o.value)
|
|
1125
1128
|
return;
|
|
@@ -1150,7 +1153,7 @@ function Ht(e, a = 16.66) {
|
|
|
1150
1153
|
const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ G({
|
|
1151
1154
|
__name: "index",
|
|
1152
1155
|
setup(e, { expose: a }) {
|
|
1153
|
-
const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), w = D(null),
|
|
1156
|
+
const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = D(null), r = D(!1), l = D(!1), i = D({}), c = H("pageSchema"), w = D(null), v = D("");
|
|
1154
1157
|
function s() {
|
|
1155
1158
|
l.value = !1;
|
|
1156
1159
|
}
|
|
@@ -1158,7 +1161,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1158
1161
|
r.value = !1;
|
|
1159
1162
|
}
|
|
1160
1163
|
function d() {
|
|
1161
|
-
r.value = !0,
|
|
1164
|
+
r.value = !0, v.value = se();
|
|
1162
1165
|
}
|
|
1163
1166
|
async function f() {
|
|
1164
1167
|
try {
|
|
@@ -1188,9 +1191,9 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1188
1191
|
okText: "表单数据"
|
|
1189
1192
|
}, {
|
|
1190
1193
|
default: P(() => [
|
|
1191
|
-
|
|
1194
|
+
z("div", wt, [
|
|
1192
1195
|
(M(), L(_(Xe), {
|
|
1193
|
-
key:
|
|
1196
|
+
key: v.value,
|
|
1194
1197
|
ref_key: "kb",
|
|
1195
1198
|
ref: w,
|
|
1196
1199
|
"page-schema": _(c)
|
|
@@ -1205,7 +1208,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1205
1208
|
onOk: s
|
|
1206
1209
|
}, {
|
|
1207
1210
|
default: P(() => [
|
|
1208
|
-
|
|
1211
|
+
z("div", bt, [
|
|
1209
1212
|
T(_(n), {
|
|
1210
1213
|
ref_key: "monacoEditorRef",
|
|
1211
1214
|
ref: t,
|
|
@@ -1249,7 +1252,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1249
1252
|
"updateSourceData"
|
|
1250
1253
|
],
|
|
1251
1254
|
setup(e, { expose: a, emit: n }) {
|
|
1252
|
-
const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-
|
|
1255
|
+
const o = q(() => import("./index-C-XUgjda.js")), t = q(() => import("./index-ASoFJnMl.js")), r = q(() => import("./index-DUsA7Tr8.js")), l = q(() => import("./index-ooVzYa5L.js")), i = q(() => import("./index-DgcFxYFp.js")), c = Ee(), w = He(), v = e;
|
|
1253
1256
|
let s = {
|
|
1254
1257
|
schemas: [
|
|
1255
1258
|
{
|
|
@@ -1296,12 +1299,12 @@ defineExpose({
|
|
|
1296
1299
|
test
|
|
1297
1300
|
})`
|
|
1298
1301
|
};
|
|
1299
|
-
|
|
1300
|
-
if (
|
|
1301
|
-
s =
|
|
1302
|
+
re(() => {
|
|
1303
|
+
if (v.defaultSchema) {
|
|
1304
|
+
s = v.defaultSchema;
|
|
1302
1305
|
return;
|
|
1303
1306
|
}
|
|
1304
|
-
|
|
1307
|
+
v.source && F.setSourceData(v.source), v.formMode && (s.schemas = F.formSchemas);
|
|
1305
1308
|
}), c.setDesignMode(), c.setDefaultComponentIds(s.schemas);
|
|
1306
1309
|
const y = n, d = D(null), f = Z({
|
|
1307
1310
|
checkedNode: null,
|
|
@@ -1311,34 +1314,34 @@ defineExpose({
|
|
|
1311
1314
|
}), u = Z({
|
|
1312
1315
|
schemas: [],
|
|
1313
1316
|
script: s.script
|
|
1314
|
-
}), { disabledZoom: A } =
|
|
1315
|
-
|
|
1316
|
-
A.value =
|
|
1317
|
-
}),
|
|
1317
|
+
}), { disabledZoom: A } = ie();
|
|
1318
|
+
re(() => {
|
|
1319
|
+
A.value = v.disabledZoom;
|
|
1320
|
+
}), re(() => {
|
|
1318
1321
|
const b = u.script;
|
|
1319
1322
|
b && b !== "" && c.setMethods(b);
|
|
1320
1323
|
}), $("pageSchema", u), $("revoke", w), $("pageManager", c), $(
|
|
1321
1324
|
"designerProps",
|
|
1322
|
-
U(() =>
|
|
1325
|
+
U(() => v)
|
|
1323
1326
|
), $("designer", {
|
|
1324
1327
|
setCheckedNode: m,
|
|
1325
1328
|
setHoverNode: g,
|
|
1326
1329
|
setDisableHover: I,
|
|
1327
|
-
handleToggleDeviceMode:
|
|
1330
|
+
handleToggleDeviceMode: ce,
|
|
1328
1331
|
reset: W,
|
|
1329
1332
|
state: f
|
|
1330
|
-
}),
|
|
1333
|
+
}), ee.on("saveSourceData", (b) => {
|
|
1331
1334
|
y("saveSourceData", b);
|
|
1332
|
-
}),
|
|
1335
|
+
}), ee.on("deleteSourceData", (b) => {
|
|
1333
1336
|
y("deleteSourceData", b);
|
|
1334
|
-
}),
|
|
1337
|
+
}), ee.on("updateSourceData", (b) => {
|
|
1335
1338
|
y("updateSourceData", b);
|
|
1336
1339
|
});
|
|
1337
1340
|
function x() {
|
|
1338
1341
|
u.schemas = N(s.schemas), m(u.schemas[0]), w.push(u.schemas, "初始化撤销功能");
|
|
1339
1342
|
}
|
|
1340
1343
|
async function m(b = u.schemas[0]) {
|
|
1341
|
-
f.checkedNode = b, f.matched =
|
|
1344
|
+
f.checkedNode = b, f.matched = ze(u.schemas, b.id);
|
|
1342
1345
|
}
|
|
1343
1346
|
async function g(b = null) {
|
|
1344
1347
|
var X;
|
|
@@ -1348,7 +1351,7 @@ defineExpose({
|
|
|
1348
1351
|
return !1;
|
|
1349
1352
|
f.hoverNode = b;
|
|
1350
1353
|
}
|
|
1351
|
-
function
|
|
1354
|
+
function h() {
|
|
1352
1355
|
Y(() => {
|
|
1353
1356
|
y("ready", { pageManager: c });
|
|
1354
1357
|
});
|
|
@@ -1357,21 +1360,21 @@ defineExpose({
|
|
|
1357
1360
|
f.disableHover = b;
|
|
1358
1361
|
}
|
|
1359
1362
|
function O(b) {
|
|
1360
|
-
|
|
1363
|
+
J(u, N(b));
|
|
1361
1364
|
}
|
|
1362
1365
|
function B() {
|
|
1363
1366
|
return ge(u);
|
|
1364
1367
|
}
|
|
1365
1368
|
function W() {
|
|
1366
|
-
Ae(u.schemas, s.schemas) && u.script === s.script || (
|
|
1369
|
+
Ae(u.schemas, s.schemas) && u.script === s.script || (J(u.schemas, s.schemas), u.script = s.script, m(u.schemas[0]), w.push(u.schemas, "重置操作"), y("reset", u));
|
|
1367
1370
|
}
|
|
1368
|
-
function
|
|
1371
|
+
function oe() {
|
|
1369
1372
|
y("save", ge(u));
|
|
1370
1373
|
}
|
|
1371
|
-
function
|
|
1374
|
+
function ce(b) {
|
|
1372
1375
|
y("toggleDeviceMode", b);
|
|
1373
1376
|
}
|
|
1374
|
-
function
|
|
1377
|
+
function ae() {
|
|
1375
1378
|
d.value.handleOpen();
|
|
1376
1379
|
}
|
|
1377
1380
|
return x(), a({
|
|
@@ -1379,19 +1382,19 @@ defineExpose({
|
|
|
1379
1382
|
setData: O,
|
|
1380
1383
|
getData: B,
|
|
1381
1384
|
reset: W,
|
|
1382
|
-
preview:
|
|
1385
|
+
preview: ae
|
|
1383
1386
|
}), (b, X) => _(F).initialized.value ? (M(), L(De, {
|
|
1384
1387
|
key: 1,
|
|
1385
|
-
onResolve:
|
|
1388
|
+
onResolve: h
|
|
1386
1389
|
}, {
|
|
1387
1390
|
default: P(() => [
|
|
1388
|
-
|
|
1389
|
-
|
|
1391
|
+
z("div", At, [
|
|
1392
|
+
z("div", Et, [
|
|
1390
1393
|
R(b.$slots, "header", {}, () => [
|
|
1391
|
-
|
|
1394
|
+
v.hiddenHeader ? Se("", !0) : (M(), L(_(o), {
|
|
1392
1395
|
key: 0,
|
|
1393
|
-
onPreview:
|
|
1394
|
-
onSave:
|
|
1396
|
+
onPreview: ae,
|
|
1397
|
+
onSave: oe
|
|
1395
1398
|
}, {
|
|
1396
1399
|
header: P(() => [
|
|
1397
1400
|
R(b.$slots, "header-prefix")
|
|
@@ -1415,7 +1418,7 @@ defineExpose({
|
|
|
1415
1418
|
}))
|
|
1416
1419
|
])
|
|
1417
1420
|
]),
|
|
1418
|
-
|
|
1421
|
+
z("div", {
|
|
1419
1422
|
class: Te(["epic-split-view-container", { "hidden-header": b.hiddenHeader }])
|
|
1420
1423
|
}, [
|
|
1421
1424
|
T(_(t)),
|
|
@@ -1429,7 +1432,7 @@ defineExpose({
|
|
|
1429
1432
|
])
|
|
1430
1433
|
]),
|
|
1431
1434
|
fallback: P(() => [
|
|
1432
|
-
|
|
1435
|
+
z("div", It, [
|
|
1433
1436
|
T(_(i))
|
|
1434
1437
|
])
|
|
1435
1438
|
]),
|
|
@@ -1437,7 +1440,7 @@ defineExpose({
|
|
|
1437
1440
|
})) : (M(), pe("div", Dt));
|
|
1438
1441
|
}
|
|
1439
1442
|
}), Ct = {
|
|
1440
|
-
component: async () => await import("./index-
|
|
1443
|
+
component: async () => await import("./index-CHGojUf_.js"),
|
|
1441
1444
|
defaultSchema: {
|
|
1442
1445
|
label: "代码编辑器",
|
|
1443
1446
|
type: "monacoEditor",
|
|
@@ -1487,11 +1490,11 @@ defineExpose({
|
|
|
1487
1490
|
}
|
|
1488
1491
|
};
|
|
1489
1492
|
function xt(e) {
|
|
1490
|
-
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-
|
|
1493
|
+
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Bae_P2jy.js")), e.component("EActionEditor", async () => await import("./index-BB1mJNTS.js")), e.component("ERuleEditor", async () => await import("./index-z22tTQo-.js")), e.component("EOptionsEditor", async () => await import("./index-D2jUjBFQ.js")), e.component("ENode", async () => await import("./index-2dJzXydf.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
|
|
1491
1494
|
id: "component_view",
|
|
1492
1495
|
title: "组件",
|
|
1493
1496
|
icon: "icon--epic--extension-outline",
|
|
1494
|
-
component: async () => await import("./index-
|
|
1497
|
+
component: async () => await import("./index-BIDRA86S.js")
|
|
1495
1498
|
}), e.registerActivitybar({
|
|
1496
1499
|
id: "outline_view",
|
|
1497
1500
|
title: "大纲",
|
|
@@ -1500,19 +1503,19 @@ function xt(e) {
|
|
|
1500
1503
|
}), e.registerRightSidebar({
|
|
1501
1504
|
id: "attribute_view",
|
|
1502
1505
|
title: "属性",
|
|
1503
|
-
component: async () => await import("./attributeView-
|
|
1506
|
+
component: async () => await import("./attributeView-De_f9cQd.js")
|
|
1504
1507
|
}), e.registerRightSidebar({
|
|
1505
1508
|
id: "style_view",
|
|
1506
1509
|
title: "样式",
|
|
1507
|
-
component: async () => await import("./styleView-
|
|
1510
|
+
component: async () => await import("./styleView-CA80akwG.js")
|
|
1508
1511
|
}), [Ct, kt].forEach((n) => {
|
|
1509
1512
|
e.registerComponent(n);
|
|
1510
1513
|
});
|
|
1511
1514
|
}
|
|
1512
1515
|
xt(F);
|
|
1513
1516
|
export {
|
|
1514
|
-
|
|
1515
|
-
|
|
1517
|
+
Je as A,
|
|
1518
|
+
te as B,
|
|
1516
1519
|
We as C,
|
|
1517
1520
|
j as D,
|
|
1518
1521
|
Le as E,
|
|
@@ -1524,27 +1527,27 @@ export {
|
|
|
1524
1527
|
Ht as a,
|
|
1525
1528
|
pt as b,
|
|
1526
1529
|
Nt as c,
|
|
1527
|
-
|
|
1528
|
-
|
|
1530
|
+
J as d,
|
|
1531
|
+
Jt as e,
|
|
1529
1532
|
$t as f,
|
|
1530
1533
|
Vt as g,
|
|
1531
1534
|
Tt as h,
|
|
1532
1535
|
Wt as i,
|
|
1533
1536
|
Bt as j,
|
|
1534
|
-
|
|
1537
|
+
se as k,
|
|
1535
1538
|
Rt as l,
|
|
1536
1539
|
N as m,
|
|
1537
1540
|
Lt as n,
|
|
1538
|
-
|
|
1539
|
-
|
|
1541
|
+
Ft as o,
|
|
1542
|
+
zt as p,
|
|
1540
1543
|
Xe as q,
|
|
1541
1544
|
Kt as r,
|
|
1542
|
-
|
|
1545
|
+
Ot as s,
|
|
1543
1546
|
Ee as t,
|
|
1544
|
-
|
|
1547
|
+
ie as u,
|
|
1545
1548
|
He as v,
|
|
1546
1549
|
Ut as w,
|
|
1547
1550
|
Ae as x,
|
|
1548
|
-
|
|
1551
|
+
ze as y,
|
|
1549
1552
|
Mt as z
|
|
1550
1553
|
};
|