epic-designer-gold 0.0.40 → 0.0.42
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-B6yshoNY.cjs +1 -0
- package/dist/{attributeView-PbDEjn8T.js → attributeView-CAOGzcXM.js} +2 -2
- package/dist/form-6cUK-Ari.js +72 -0
- package/dist/form-CthzLIgs.cjs +1 -0
- package/dist/{index-C4sdhgF2.js → index-0GtpyUBx.js} +1 -1
- package/dist/{index-CCTMCqiz.js → index-0zDuNn0Q.js} +140 -137
- package/dist/{index-C2ioP4Qy.cjs → index-1BndYxTQ.cjs} +1 -1
- package/dist/{index-CzOycR7-.cjs → index-B7QH_s16.cjs} +1 -1
- package/dist/{index-BZQLip5V.js → index-BIPDvTGu.js} +289 -286
- package/dist/{index-C-XUgjda.js → index-BKDRMrcc.js} +1 -1
- package/dist/{index-l1DO3QH_.js → index-BOfEIfM3.js} +3 -3
- package/dist/index-BSLudrcT.cjs +1 -0
- package/dist/{index-C95DVYrN.js → index-BVceGSkj.js} +1 -1
- package/dist/index-BcocZhQo.js +4 -0
- package/dist/index-BenbgJD8.cjs +1 -0
- package/dist/index-Bf2Sxe2E.cjs +1 -0
- package/dist/index-BwdkCtpc.cjs +10 -0
- package/dist/{index-Da8OPaOM.js → index-C4TbiUcL.js} +2 -2
- package/dist/index-CMCtBfv5.cjs +1 -0
- package/dist/index-CMwJOFFP.cjs +1 -0
- package/dist/index-CYfnscUn.cjs +1 -0
- package/dist/index-CcZa7MK_.cjs +1 -0
- package/dist/index-CucdgcqX.cjs +1 -0
- package/dist/{index-CE7JKdc3.js → index-DDo1LIxZ.js} +64 -59
- package/dist/{index-ooVzYa5L.js → index-DNeYX6HK.js} +1 -1
- package/dist/{index-5datIIzJ.js → index-DR3BiPsn.js} +2 -2
- package/dist/index-DlubD1cY.cjs +1 -0
- package/dist/{index-laQFS5Nd.js → index-DmyFFubg.js} +2 -2
- package/dist/index-HNPgHrkl.cjs +1 -0
- package/dist/{index-DxkPriDk.js → index-L6-BEKnU.js} +2 -2
- package/dist/{index-ASoFJnMl.js → index-XUQ1VGQg.js} +1 -1
- package/dist/index-sKJ91s0r.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/js.cookie-BH1G_HRi.cjs +6 -0
- package/dist/{axios-ITY6Uw7A.js → js.cookie-oHpRFPCO.js} +604 -532
- package/dist/outline-6Qt3qlWm.cjs +1 -0
- package/dist/{outline-yy4pIEi3.js → outline-CNayBNNC.js} +2 -2
- package/dist/sign-Bfrdd-6m.cjs +1 -0
- package/dist/{sign-DZvUIxel.js → sign-CJJd-ctq.js} +33 -32
- package/dist/style.css +1 -1
- package/dist/{styleView-LX_E7EFf.js → styleView-5U84Umnq.js} +2 -2
- package/dist/styleView-Ds-PuzkJ.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js → tree.vue_vue_type_script_setup_true_lang-BntCm43E.js} +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/attributeView-BjvAO4_R.cjs +0 -1
- package/dist/axios-CYGTE3lR.cjs +0 -6
- package/dist/form-2lbtG-zj.js +0 -74
- package/dist/form-BM53wx9g.cjs +0 -1
- package/dist/index-1afOcXnV.cjs +0 -1
- package/dist/index-B03W7FZR.cjs +0 -1
- package/dist/index-BJlPL6eL.cjs +0 -1
- package/dist/index-BUBtVoa0.cjs +0 -1
- package/dist/index-C3hWImRT.cjs +0 -1
- package/dist/index-C6ceZM1C.cjs +0 -1
- package/dist/index-Cpm-oLdy.js +0 -4
- package/dist/index-D3RJLUGU.cjs +0 -10
- package/dist/index-DHHX2mwy.cjs +0 -1
- package/dist/index-DQjDcBV5.cjs +0 -1
- package/dist/index-Da3mrdHZ.cjs +0 -1
- package/dist/index-DpzLP1Zp.cjs +0 -1
- package/dist/index-l4brKgI9.cjs +0 -1
- package/dist/outline-CJSEUbgc.cjs +0 -1
- package/dist/sign-BS8owiJT.cjs +0 -1
- package/dist/styleView-oaDQbGne.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { p as
|
|
1
|
+
import { ref as _, reactive as j, defineComponent as ee, openBlock as T, createBlock as K, unref as R, mergeProps as pe, withCtx as $, renderSlot as k, getCurrentInstance as ae, inject as Q, watch as B, useAttrs as Oe, provide as L, shallowRef as Ve, computed as J, watchEffect as le, onUnmounted as De, resolveComponent as Fe, resolveDynamicComponent as Me, createVNode as H, createCommentVNode as Ae, useSlots as Re, createElementBlock as me, Suspense as Ee, createElementVNode as Z, Fragment as $e, renderList as Be, nextTick as ne, effectScope as Ne, isRef as Te, getCurrentScope as Ue, onScopeDispose as ke, onMounted as he, normalizeClass as Le, toRaw as ye } from "vue";
|
|
2
|
+
import { p as N, E as re, a as we, b as Se, l as X } from "./js.cookie-oHpRFPCO.js";
|
|
3
3
|
function ie(e = 10) {
|
|
4
4
|
const r = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
5
5
|
let o = "";
|
|
@@ -9,7 +9,7 @@ function ie(e = 10) {
|
|
|
9
9
|
}
|
|
10
10
|
return o;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
14
|
}
|
|
15
15
|
function z(e, r = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -26,14 +26,14 @@ function z(e, r = /* @__PURE__ */ new WeakMap()) {
|
|
|
26
26
|
o[t] = z(e[t], r);
|
|
27
27
|
}), o;
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
const [r] =
|
|
29
|
+
function Ft(e) {
|
|
30
|
+
const [r] = He([z(e)], (o) => {
|
|
31
31
|
var n, s;
|
|
32
32
|
const t = {
|
|
33
33
|
...o,
|
|
34
34
|
id: `${o.type}_${ie(8)}`
|
|
35
35
|
};
|
|
36
|
-
return (t.field || t.input) && !((s = (n =
|
|
36
|
+
return (t.field || t.input) && !((s = (n = N.getComponentConfingByType(t.type)) == null ? void 0 : n.editConstraints) != null && s.fixedField) && (t.field = t.id), t;
|
|
37
37
|
});
|
|
38
38
|
return r;
|
|
39
39
|
}
|
|
@@ -46,7 +46,7 @@ function G(e, r, o = !0) {
|
|
|
46
46
|
r.hasOwnProperty(t) || (Array.isArray(e) ? e.splice(Number(t), 1) : delete e[t]);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function xe(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
|
|
50
50
|
const n = (s) => {
|
|
51
51
|
if (Array.isArray(s))
|
|
52
52
|
return s.map(n);
|
|
@@ -63,7 +63,7 @@ function Ee(e, r, o = [], t = /* @__PURE__ */ new WeakMap()) {
|
|
|
63
63
|
};
|
|
64
64
|
return JSON.stringify(n(e)) === JSON.stringify(n(r));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Je(e, r) {
|
|
67
67
|
const o = [];
|
|
68
68
|
let t = !1;
|
|
69
69
|
function n(s) {
|
|
@@ -78,7 +78,7 @@ function We(e, r) {
|
|
|
78
78
|
}
|
|
79
79
|
return e.forEach(n), t || console.error(`没有查询到id为${r}的节点`), o;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Mt(e, r, o) {
|
|
82
82
|
const t = r.split(".");
|
|
83
83
|
let n = e;
|
|
84
84
|
for (let s = 0; s < t.length; s++) {
|
|
@@ -88,7 +88,7 @@ function Rt(e, r, o) {
|
|
|
88
88
|
}
|
|
89
89
|
return n === void 0 ? o : n;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Rt(e, r, o) {
|
|
92
92
|
const t = r.replace(/\[(\d+)\]/g, ".$1").split(".").filter(Boolean);
|
|
93
93
|
let n = e;
|
|
94
94
|
for (let s = 0; s < t.length - 1; s++) {
|
|
@@ -97,10 +97,10 @@ function $t(e, r, o) {
|
|
|
97
97
|
}
|
|
98
98
|
return n[t[t.length - 1]] = o, e;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
return
|
|
100
|
+
function $t(e, r = "default") {
|
|
101
|
+
return We(e, r).map((t) => t.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function We(e, r = "default") {
|
|
104
104
|
const o = se(
|
|
105
105
|
e,
|
|
106
106
|
(n) => {
|
|
@@ -128,7 +128,7 @@ function se(e, r, o = !1, t) {
|
|
|
128
128
|
}
|
|
129
129
|
return o ? !1 : n;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function He(e, r, o) {
|
|
132
132
|
const t = [...e];
|
|
133
133
|
for (; t.length; ) {
|
|
134
134
|
const n = t.pop();
|
|
@@ -149,7 +149,7 @@ function Bt(e, r) {
|
|
|
149
149
|
throw new Error(`没有查询到id为${r}的节点`);
|
|
150
150
|
return o;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Nt(e, r) {
|
|
153
153
|
const o = [{ type: "", children: e }];
|
|
154
154
|
let t = 0, n = null;
|
|
155
155
|
if (se(
|
|
@@ -179,7 +179,7 @@ function kt(e, r) {
|
|
|
179
179
|
index: t
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Tt(e) {
|
|
183
183
|
const r = {
|
|
184
184
|
schemas: [
|
|
185
185
|
{
|
|
@@ -258,7 +258,7 @@ function oe(e, r) {
|
|
|
258
258
|
].includes(t) && (l.input = !0, ((I = (f = o.rules) == null ? void 0 : f[0]) == null ? void 0 : I.required) === !1 && o.rules.shift(), ((w = o.rules) == null ? void 0 : w.length) > 0 && (l.rules = o.rules)), o.list && (l.children = oe(o.list, o)), o.columns && (l.children = oe(o.columns, o)), o.trs && (l.children = oe(o.trs, o)), o.tds && (l.children = oe(o.tds, o)), l;
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Ut(e, r) {
|
|
262
262
|
let o = null;
|
|
263
263
|
return (...t) => {
|
|
264
264
|
o && clearTimeout(o), o = setTimeout(() => {
|
|
@@ -266,19 +266,19 @@ function Tt(e, r) {
|
|
|
266
266
|
}, r);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
const e =
|
|
269
|
+
function Ie() {
|
|
270
|
+
const e = _({}), r = _({}), o = _(!1), t = _([]), n = j({});
|
|
271
271
|
function s(h) {
|
|
272
272
|
return e.value[h];
|
|
273
273
|
}
|
|
274
|
-
function l(h,
|
|
275
|
-
e.value[h] =
|
|
274
|
+
function l(h, A) {
|
|
275
|
+
e.value[h] = A;
|
|
276
276
|
}
|
|
277
277
|
function u(h) {
|
|
278
278
|
delete e.value[h];
|
|
279
279
|
}
|
|
280
|
-
function f(h,
|
|
281
|
-
const x = Object.entries(
|
|
280
|
+
function f(h, A = !1) {
|
|
281
|
+
const x = Object.entries(N.publicMethods).reduce(
|
|
282
282
|
(C, [i, F]) => (C[i] = F.handler, C),
|
|
283
283
|
{}
|
|
284
284
|
);
|
|
@@ -289,22 +289,22 @@ function xe() {
|
|
|
289
289
|
find: s,
|
|
290
290
|
defineExpose: I,
|
|
291
291
|
publicMethods: x,
|
|
292
|
-
pluginManager:
|
|
292
|
+
pluginManager: N
|
|
293
293
|
})();
|
|
294
294
|
} catch (C) {
|
|
295
|
-
|
|
295
|
+
A && console.error("[epic:自定义函数]异常:", C);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
function I(h) {
|
|
299
299
|
h != null && (r.value = h);
|
|
300
300
|
}
|
|
301
|
-
function w(h, ...
|
|
301
|
+
function w(h, ...A) {
|
|
302
302
|
if (!h || h.length === 0) {
|
|
303
303
|
console.warn("未提供任何动作");
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
306
|
h.forEach((x) => {
|
|
307
|
-
const C = x.args ? JSON.parse(x.args) :
|
|
307
|
+
const C = x.args ? JSON.parse(x.args) : A;
|
|
308
308
|
switch (x.type) {
|
|
309
309
|
case "public":
|
|
310
310
|
a(x, C);
|
|
@@ -321,30 +321,30 @@ function xe() {
|
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
|
-
function a(h,
|
|
324
|
+
function a(h, A) {
|
|
325
325
|
var x;
|
|
326
326
|
try {
|
|
327
|
-
(x =
|
|
327
|
+
(x = N.publicMethods[h.methodName]) == null || x.handler(...A);
|
|
328
328
|
} catch (C) {
|
|
329
329
|
console.error(`[Epic:公共函数(${h.methodName})]执行异常:`, C);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
function E(h,
|
|
332
|
+
function E(h, A) {
|
|
333
333
|
var x, C;
|
|
334
334
|
try {
|
|
335
|
-
(C = (x = r.value)[h.methodName]) == null || C.call(x, ...
|
|
335
|
+
(C = (x = r.value)[h.methodName]) == null || C.call(x, ...A);
|
|
336
336
|
} catch (i) {
|
|
337
337
|
console.error(`[Epic:自定义函数(${h.methodName})]执行异常:`, i);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function p(h,
|
|
340
|
+
function p(h, A) {
|
|
341
341
|
const x = h.componentId != null && s(h.componentId);
|
|
342
342
|
if (!x) {
|
|
343
343
|
console.warn(`[Epic:组件${h.componentId}]未找到`);
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
try {
|
|
347
|
-
x[h.methodName](...
|
|
347
|
+
x[h.methodName](...A);
|
|
348
348
|
} catch (C) {
|
|
349
349
|
console.error(`[Epic:组件${h.componentId}函数(${h.methodName})]执行异常:`, C);
|
|
350
350
|
}
|
|
@@ -353,22 +353,22 @@ function xe() {
|
|
|
353
353
|
o.value = h;
|
|
354
354
|
}
|
|
355
355
|
function d(h) {
|
|
356
|
-
const
|
|
357
|
-
t.value =
|
|
356
|
+
const A = se(h, () => !0);
|
|
357
|
+
t.value = A.map((x) => x.id);
|
|
358
358
|
}
|
|
359
|
-
function O(h,
|
|
360
|
-
if (n[
|
|
361
|
-
const x = n[
|
|
359
|
+
function O(h, A = "default") {
|
|
360
|
+
if (n[A]) {
|
|
361
|
+
const x = n[A];
|
|
362
362
|
G(h, x);
|
|
363
363
|
}
|
|
364
|
-
n[
|
|
364
|
+
n[A] = h;
|
|
365
365
|
}
|
|
366
|
-
function M(h,
|
|
367
|
-
if (n[
|
|
368
|
-
G(n[
|
|
366
|
+
function M(h, A = "default") {
|
|
367
|
+
if (n[A]) {
|
|
368
|
+
G(n[A], h, !1);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
371
|
-
n[
|
|
371
|
+
n[A] = h;
|
|
372
372
|
}
|
|
373
373
|
return {
|
|
374
374
|
componentInstances: e,
|
|
@@ -389,8 +389,8 @@ function xe() {
|
|
|
389
389
|
setDefaultComponentIds: d
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
393
|
-
const e =
|
|
392
|
+
function Ke() {
|
|
393
|
+
const e = _([]), r = _([]), o = _(null);
|
|
394
394
|
let t = 0;
|
|
395
395
|
function n(f, I = "插入组件") {
|
|
396
396
|
const w = Date.now();
|
|
@@ -424,7 +424,7 @@ function qe() {
|
|
|
424
424
|
reset: u
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
|
-
const
|
|
427
|
+
const qe = /* @__PURE__ */ ee({
|
|
428
428
|
__name: "dynamicFormItem",
|
|
429
429
|
props: {
|
|
430
430
|
hasFormItem: { type: Boolean },
|
|
@@ -432,22 +432,22 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["updateFormItemRef"],
|
|
434
434
|
setup(e, { emit: r }) {
|
|
435
|
-
const o =
|
|
435
|
+
const o = N.getComponent("form-item"), t = e, n = r, s = _(), l = () => {
|
|
436
436
|
n("updateFormItemRef", s.value);
|
|
437
437
|
};
|
|
438
|
-
return (u, f) => t.hasFormItem ? (
|
|
438
|
+
return (u, f) => t.hasFormItem ? (T(), K(R(o), pe({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: s,
|
|
442
442
|
onVnodeMounted: l
|
|
443
443
|
}, t.formItemProps), {
|
|
444
444
|
default: $(() => [
|
|
445
|
-
|
|
445
|
+
k(u.$slots, "default")
|
|
446
446
|
]),
|
|
447
447
|
_: 3
|
|
448
|
-
}, 16, ["onVnodeMounted"])) :
|
|
448
|
+
}, 16, ["onVnodeMounted"])) : k(u.$slots, "default", { key: 1 });
|
|
449
449
|
}
|
|
450
|
-
}),
|
|
450
|
+
}), Ze = /* @__PURE__ */ ee({
|
|
451
451
|
name: "ENode",
|
|
452
452
|
__name: "node",
|
|
453
453
|
props: {
|
|
@@ -462,11 +462,9 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
462
462
|
},
|
|
463
463
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
464
464
|
setup(e, { emit: r }) {
|
|
465
|
-
const { proxy: o } = ae(), t = e, n =
|
|
465
|
+
const { proxy: o } = ae(), t = e, n = _(null);
|
|
466
466
|
let s = Q("formData", j({}));
|
|
467
|
-
const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 });
|
|
468
|
-
console.log("%c [ disabled ]-101", "font-size:13px; background:pink; color:#bf2c9f;", f.value);
|
|
469
|
-
const I = Q("ruleFieldPrefix", null), w = Q("resetFormData", !1);
|
|
467
|
+
const l = Q("slots", {}), u = Q("pageManager", {}), f = Q("disabled", { value: !1 }), I = Q("ruleFieldPrefix", null), w = Q("resetFormData", !1);
|
|
470
468
|
let a = j(z(t.componentSchema));
|
|
471
469
|
v();
|
|
472
470
|
async function E(m) {
|
|
@@ -477,20 +475,26 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
477
475
|
method: "get",
|
|
478
476
|
params: {
|
|
479
477
|
id: m.componentProps.dynamicId
|
|
478
|
+
},
|
|
479
|
+
headers: {
|
|
480
|
+
Authorization: "Bearer " + Se.get("Admin-Token")
|
|
480
481
|
}
|
|
481
482
|
})).data.data;
|
|
482
|
-
let
|
|
483
|
+
let P = await we({
|
|
483
484
|
url: y.url,
|
|
484
485
|
method: y.method,
|
|
485
486
|
data: JSON.parse(y.body),
|
|
486
487
|
params: JSON.parse(y.params),
|
|
487
|
-
headers:
|
|
488
|
+
headers: {
|
|
489
|
+
...JSON.parse(y.headers),
|
|
490
|
+
Authorization: "Bearer " + Se.get("Admin-Token")
|
|
491
|
+
}
|
|
488
492
|
});
|
|
489
493
|
if (y && (y != null && y.dataPath)) {
|
|
490
|
-
const
|
|
491
|
-
m.componentProps.options = p(
|
|
494
|
+
const Ce = y.dataPath.split(".").reduce((_e, Pe) => _e[Pe], P.data);
|
|
495
|
+
m.componentProps.options = p(Ce, y.dataKey, y.dataValue);
|
|
492
496
|
} else
|
|
493
|
-
m.componentProps.options = p(
|
|
497
|
+
m.componentProps.options = p(P.data, y.dataKey, y.dataValue);
|
|
494
498
|
return m;
|
|
495
499
|
}
|
|
496
500
|
return m;
|
|
@@ -505,10 +509,10 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
505
509
|
value: y[V] + ""
|
|
506
510
|
}) : [];
|
|
507
511
|
}
|
|
508
|
-
|
|
512
|
+
B(
|
|
509
513
|
() => t.componentSchema,
|
|
510
514
|
(m) => {
|
|
511
|
-
|
|
515
|
+
xe(a, m, ["children"]) || (G(a, z(m)), v());
|
|
512
516
|
},
|
|
513
517
|
{
|
|
514
518
|
deep: !0
|
|
@@ -518,18 +522,18 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
518
522
|
u.isDesignMode.value && typeof a.field == "string" && (a.field += "-design-mode");
|
|
519
523
|
}
|
|
520
524
|
(t.resetFormData || w) && (s = {});
|
|
521
|
-
const d = r, O =
|
|
525
|
+
const d = r, O = _(), M = _(), h = (m) => {
|
|
522
526
|
M.value = m;
|
|
523
|
-
},
|
|
524
|
-
Object.keys(
|
|
525
|
-
const x =
|
|
527
|
+
}, A = Oe();
|
|
528
|
+
Object.keys(A).length && L("nodeAttrs", A);
|
|
529
|
+
const x = Ve(null), C = J(() => {
|
|
526
530
|
var m, b;
|
|
527
531
|
return (m = a.componentProps) != null && m.hidden ? !1 : typeof a.show == "boolean" ? a.show : ((b = a.show) == null ? void 0 : b.call(a, { values: s })) ?? !0;
|
|
528
532
|
}), i = J(() => {
|
|
529
533
|
var y;
|
|
530
|
-
const m = C.value && ((y = a.rules) == null ? void 0 : y.map((
|
|
531
|
-
...
|
|
532
|
-
validator:
|
|
534
|
+
const m = C.value && ((y = a.rules) == null ? void 0 : y.map((P) => ({
|
|
535
|
+
...P,
|
|
536
|
+
validator: P.validator && u.funcs.value[P.validator]
|
|
533
537
|
// 自定义校验函数
|
|
534
538
|
})));
|
|
535
539
|
let b = a.field;
|
|
@@ -543,9 +547,9 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
543
547
|
return V.children && delete V.children, V;
|
|
544
548
|
}), F = J(() => {
|
|
545
549
|
var V, y;
|
|
546
|
-
const m = ((V =
|
|
547
|
-
return a.on && Object.keys(a.on).forEach((
|
|
548
|
-
b[`on${
|
|
550
|
+
const m = ((V = S.value) == null ? void 0 : V.bindModel) ?? "modelValue", b = {};
|
|
551
|
+
return a.on && Object.keys(a.on).forEach((P) => {
|
|
552
|
+
b[`on${ze(P)}`] = (...ge) => u.doActions(a.on[P], ...ge);
|
|
549
553
|
}), {
|
|
550
554
|
...t,
|
|
551
555
|
...a.componentProps,
|
|
@@ -553,15 +557,15 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
553
557
|
bindModel: m,
|
|
554
558
|
...b
|
|
555
559
|
};
|
|
556
|
-
}),
|
|
560
|
+
}), S = J(() => N.getComponentConfingByType(a.type) ?? null);
|
|
557
561
|
le(() => {
|
|
558
562
|
n.value = t.modelValue ?? s[a.field ?? ""];
|
|
559
|
-
}),
|
|
563
|
+
}), B(
|
|
560
564
|
() => n.value,
|
|
561
565
|
() => {
|
|
562
|
-
n.value !== (t.modelValue ?? s[a.field ?? ""]) &&
|
|
566
|
+
n.value !== (t.modelValue ?? s[a.field ?? ""]) && D(n.value);
|
|
563
567
|
}
|
|
564
|
-
),
|
|
568
|
+
), B(
|
|
565
569
|
() => O.value,
|
|
566
570
|
() => {
|
|
567
571
|
c();
|
|
@@ -571,24 +575,24 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
571
575
|
function c() {
|
|
572
576
|
var b;
|
|
573
577
|
const m = O.value || o;
|
|
574
|
-
a.id && m && (a.input && (m.setValue =
|
|
578
|
+
a.id && m && (a.input && (m.setValue = D, m.getValue = () => s[a.field] || t.modelValue), m.setAttr = (V, y) => (a.componentProps || (a.componentProps = {}), a.componentProps[V] = y), m.getAttr = (V) => a.componentProps[V], u.addComponentInstance(a.id, m), (b = S.value) != null && b.defaultSchema.input && a.noFormItem !== !0 && M.value && u.addComponentInstance(a.id + "formItem", M.value));
|
|
575
579
|
}
|
|
576
580
|
function g() {
|
|
577
581
|
var m;
|
|
578
|
-
a.id && (u.removeComponentInstance(a.id), (m =
|
|
582
|
+
a.id && (u.removeComponentInstance(a.id), (m = S.value) != null && m.defaultSchema.input && a.noFormItem !== !0 && u.removeComponentInstance(a.id + "formItem"));
|
|
579
583
|
}
|
|
580
584
|
async function W() {
|
|
581
585
|
var b, V, y;
|
|
582
586
|
if (a = await E(a), typeof ((b = a.componentProps) == null ? void 0 : b.defaultValue) < "u") {
|
|
583
|
-
const
|
|
584
|
-
|
|
587
|
+
const P = u.isDesignMode.value ? (V = a.componentProps) == null ? void 0 : V.defaultValue : s[a.field] ?? ((y = a.componentProps) == null ? void 0 : y.defaultValue);
|
|
588
|
+
D(z(P));
|
|
585
589
|
}
|
|
586
590
|
if (a.type === "slot") {
|
|
587
|
-
const
|
|
588
|
-
if (!
|
|
591
|
+
const P = a.slotName;
|
|
592
|
+
if (!P) return;
|
|
589
593
|
x.value = ee({
|
|
590
594
|
setup() {
|
|
591
|
-
return () =>
|
|
595
|
+
return () => k(l, P, {
|
|
592
596
|
componentSchema: a,
|
|
593
597
|
model: s
|
|
594
598
|
});
|
|
@@ -596,25 +600,25 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
596
600
|
});
|
|
597
601
|
return;
|
|
598
602
|
}
|
|
599
|
-
const m =
|
|
603
|
+
const m = N.getComponent(a.type);
|
|
600
604
|
if (!m) {
|
|
601
605
|
console.error(`组件${a.type}未注册`);
|
|
602
606
|
return;
|
|
603
607
|
}
|
|
604
608
|
if (typeof m == "function") {
|
|
605
|
-
const
|
|
606
|
-
x.value =
|
|
609
|
+
const P = await m();
|
|
610
|
+
x.value = P.default ?? P;
|
|
607
611
|
} else
|
|
608
612
|
x.value = m;
|
|
609
613
|
}
|
|
610
|
-
function
|
|
614
|
+
function D(m) {
|
|
611
615
|
d("update:modelValue", m), d("change", m), a.field && (s[a.field] = m), re.emit("updateformData" + t.id, s);
|
|
612
616
|
}
|
|
613
617
|
function U(m) {
|
|
614
618
|
d("update:dynamicId", m);
|
|
615
619
|
}
|
|
616
620
|
let q = null;
|
|
617
|
-
return
|
|
621
|
+
return B(
|
|
618
622
|
() => a,
|
|
619
623
|
async (m) => {
|
|
620
624
|
const b = JSON.stringify({
|
|
@@ -633,54 +637,53 @@ const Ze = /* @__PURE__ */ ee({
|
|
|
633
637
|
immediate: !0,
|
|
634
638
|
deep: !0
|
|
635
639
|
}
|
|
636
|
-
),
|
|
640
|
+
), De(g), (m, b) => {
|
|
637
641
|
var y;
|
|
638
|
-
const V =
|
|
639
|
-
return x.value && C.value ? (
|
|
642
|
+
const V = Fe("ENode");
|
|
643
|
+
return x.value && C.value ? (T(), K(qe, {
|
|
640
644
|
key: 0,
|
|
641
|
-
hasFormItem: R(a).noFormItem !== !0 && ((y =
|
|
645
|
+
hasFormItem: R(a).noFormItem !== !0 && ((y = S.value) == null ? void 0 : y.defaultSchema.input),
|
|
642
646
|
formItemProps: i.value,
|
|
643
647
|
onUpdateFormItemRef: h
|
|
644
648
|
}, {
|
|
645
649
|
default: $(() => [
|
|
646
|
-
(
|
|
650
|
+
(T(), K(Me(x.value), pe({
|
|
647
651
|
ref_key: "componentInstance",
|
|
648
652
|
ref: O,
|
|
649
653
|
onVnodeMounted: c,
|
|
650
654
|
model: R(s)
|
|
651
655
|
}, { ...F.value }, {
|
|
652
656
|
[F.value.bindModel]: n.value,
|
|
653
|
-
["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (
|
|
654
|
-
[`onUpdate:${F.value.bindModel}` || ""]:
|
|
657
|
+
["onUpdate:" + F.value.bindModel]: b[0] || (b[0] = (P) => n.value = P),
|
|
658
|
+
[`onUpdate:${F.value.bindModel}` || ""]: D,
|
|
655
659
|
"onUpdate:dynamicId": U
|
|
656
660
|
}), {
|
|
657
|
-
node: $((
|
|
658
|
-
Me(Re(_) + " ", 1),
|
|
661
|
+
node: $((P) => [
|
|
659
662
|
H(V, pe({
|
|
660
663
|
id: t.id
|
|
661
|
-
},
|
|
664
|
+
}, P, {
|
|
662
665
|
sourceDateUrl: t.sourceDateUrl
|
|
663
666
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
664
667
|
]),
|
|
665
668
|
"edit-node": $(() => [
|
|
666
|
-
|
|
669
|
+
k(m.$slots, "edit-node")
|
|
667
670
|
]),
|
|
668
671
|
_: 3
|
|
669
672
|
}, 16, ["model"]))
|
|
670
673
|
]),
|
|
671
674
|
_: 3
|
|
672
|
-
}, 8, ["hasFormItem", "formItemProps"])) :
|
|
675
|
+
}, 8, ["hasFormItem", "formItemProps"])) : Ae("", !0);
|
|
673
676
|
};
|
|
674
677
|
}
|
|
675
678
|
});
|
|
676
|
-
function
|
|
677
|
-
const e =
|
|
679
|
+
function Ge() {
|
|
680
|
+
const e = _(!1), r = Ie(), o = _({});
|
|
678
681
|
function t() {
|
|
679
682
|
return new Promise((p) => {
|
|
680
683
|
if (e.value)
|
|
681
684
|
p();
|
|
682
685
|
else {
|
|
683
|
-
const v =
|
|
686
|
+
const v = B(e, () => {
|
|
684
687
|
v(), p();
|
|
685
688
|
});
|
|
686
689
|
}
|
|
@@ -705,19 +708,19 @@ function Qe() {
|
|
|
705
708
|
if (d && Object.keys(d).length) {
|
|
706
709
|
let h = function(i) {
|
|
707
710
|
let F = [];
|
|
708
|
-
return i.forEach((
|
|
709
|
-
|
|
711
|
+
return i.forEach((S) => {
|
|
712
|
+
S.children && (F = [...F, ...h(S.children)]), F.push(S);
|
|
710
713
|
}), F;
|
|
711
714
|
}, x = function(i) {
|
|
712
|
-
var
|
|
713
|
-
let F = h((
|
|
715
|
+
var S;
|
|
716
|
+
let F = h((S = d == null ? void 0 : d.schemas[0]) == null ? void 0 : S.children);
|
|
714
717
|
return Object.keys(i).forEach((c) => {
|
|
715
|
-
var
|
|
716
|
-
const g = F.find((
|
|
717
|
-
(g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((
|
|
718
|
-
url:
|
|
719
|
-
name:
|
|
720
|
-
})) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = i[c].indexOf("true") > -1);
|
|
718
|
+
var D, U, q, m, b, V, y;
|
|
719
|
+
const g = F.find((P) => P.field === c), W = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
720
|
+
(g && (g == null ? void 0 : g.type) === "checkbox" || (g == null ? void 0 : g.type) === "select" && ((D = g == null ? void 0 : g.componentProps) != null && D.multiple) || (g == null ? void 0 : g.type) === "cascader" && !((q = (U = g == null ? void 0 : g.componentProps) == null ? void 0 : U.props) != null && q.multiple) || (g == null ? void 0 : g.type) === "date" && W.includes((m = g == null ? void 0 : g.componentProps) == null ? void 0 : m.type)) && typeof i[c] == "string" ? i[c] = (b = i[c]) == null ? void 0 : b.split(",") : (g == null ? void 0 : g.type) === "cascader" && ((y = (V = g == null ? void 0 : g.componentProps) == null ? void 0 : V.props) != null && y.multiple) && typeof i[c] == "string" ? (i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(","), i[c].indexOf(";") > -1 ? i[c] = i[c].split(";").map((P) => P.split(",")) : i[c] = i[c].split(",")) : ((g == null ? void 0 : g.type) === "upload-image" || (g == null ? void 0 : g.type) === "upload-file") && typeof i[c] == "string" ? i[c] = i[c].split(",").map((P) => ({
|
|
721
|
+
url: P,
|
|
722
|
+
name: P
|
|
723
|
+
})) : (g == null ? void 0 : g.type) === "number" || (g == null ? void 0 : g.type) === "slider" ? i[c] = Number(i[c]) : (g == null ? void 0 : g.type) === "switch" && (i[c] = typeof i[c] == "boolean" ? i[c] : i[c].indexOf("true") > -1);
|
|
721
724
|
}), i;
|
|
722
725
|
}(p);
|
|
723
726
|
r.setFormData(x, v);
|
|
@@ -764,10 +767,10 @@ function Qe() {
|
|
|
764
767
|
getFormInstance: n
|
|
765
768
|
};
|
|
766
769
|
}
|
|
767
|
-
const
|
|
770
|
+
const Qe = {
|
|
768
771
|
key: 0,
|
|
769
772
|
class: "epic-loading-box"
|
|
770
|
-
},
|
|
773
|
+
}, Ye = { class: "epic-builder-main" }, Xe = { class: "epic-loading-box" }, je = /* @__PURE__ */ ee({
|
|
771
774
|
__name: "builder",
|
|
772
775
|
props: {
|
|
773
776
|
pageSchema: {},
|
|
@@ -778,10 +781,10 @@ const Ye = {
|
|
|
778
781
|
},
|
|
779
782
|
emits: ["change", "ready"],
|
|
780
783
|
setup(e, { expose: r, emit: o }) {
|
|
781
|
-
const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } =
|
|
784
|
+
const t = X(() => import("./index-DgcFxYFp.js")), n = o, { ready: s, pageManager: l, forms: u, getData: f, setData: I, validate: w, getForms: a, setForms: E, validateAll: p, getFormInstance: v } = Ge(), d = e, O = j({
|
|
782
785
|
schemas: []
|
|
783
786
|
});
|
|
784
|
-
|
|
787
|
+
B(
|
|
785
788
|
() => d.pageSchema,
|
|
786
789
|
(i) => {
|
|
787
790
|
G(O, i);
|
|
@@ -790,7 +793,7 @@ const Ye = {
|
|
|
790
793
|
immediate: !0,
|
|
791
794
|
deep: !0
|
|
792
795
|
}
|
|
793
|
-
),
|
|
796
|
+
), B(
|
|
794
797
|
() => d.formData,
|
|
795
798
|
(i) => {
|
|
796
799
|
if (i) {
|
|
@@ -805,22 +808,22 @@ const Ye = {
|
|
|
805
808
|
);
|
|
806
809
|
function M(i) {
|
|
807
810
|
let F = [];
|
|
808
|
-
return i.forEach((
|
|
809
|
-
|
|
811
|
+
return i.forEach((S) => {
|
|
812
|
+
S.children && (F = [...F, ...M(S.children)]), F.push(S);
|
|
810
813
|
}), F;
|
|
811
814
|
}
|
|
812
815
|
function h(i) {
|
|
813
816
|
let F = M(d.pageSchema.schemas[0].children);
|
|
814
|
-
return Object.keys(i).forEach((
|
|
815
|
-
var W,
|
|
816
|
-
const c = F.find((y) => y.field ===
|
|
817
|
-
(c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((U = (
|
|
817
|
+
return Object.keys(i).forEach((S) => {
|
|
818
|
+
var W, D, U, q, m, b, V;
|
|
819
|
+
const c = F.find((y) => y.field === S), g = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
820
|
+
(c && (c == null ? void 0 : c.type) === "checkbox" || (c == null ? void 0 : c.type) === "select" && ((W = c == null ? void 0 : c.componentProps) != null && W.multiple) || (c == null ? void 0 : c.type) === "cascader" && !((U = (D = c == null ? void 0 : c.componentProps) == null ? void 0 : D.props) != null && U.multiple) || (c == null ? void 0 : c.type) === "date" && g.includes((q = c == null ? void 0 : c.componentProps) == null ? void 0 : q.type)) && typeof i[S] == "string" ? i[S] = (m = i[S]) == null ? void 0 : m.split(",") : (c == null ? void 0 : c.type) === "cascader" && ((V = (b = c == null ? void 0 : c.componentProps) == null ? void 0 : b.props) != null && V.multiple) && typeof i[S] == "string" ? (i[S].indexOf(";") > -1 ? i[S] = i[S].split(";").map((y) => y.split(",")) : i[S] = i[S].split(","), i[S].indexOf(";") > -1 ? i[S] = i[S].split(";").map((y) => y.split(",")) : i[S] = i[S].split(",")) : ((c == null ? void 0 : c.type) === "upload-image" || (c == null ? void 0 : c.type) === "upload-file") && typeof i[S] == "string" ? i[S] = i[S].split(",").map((y) => ({
|
|
818
821
|
url: y,
|
|
819
822
|
name: y
|
|
820
|
-
})) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[
|
|
823
|
+
})) : (c == null ? void 0 : c.type) === "number" || (c == null ? void 0 : c.type) === "slider" ? i[S] = Number(i[S]) : (c == null ? void 0 : c.type) === "switch" && (i[S] = typeof i[S] == "boolean" ? i[S] : i[S].indexOf("true") > -1);
|
|
821
824
|
}), i;
|
|
822
825
|
}
|
|
823
|
-
|
|
826
|
+
B(
|
|
824
827
|
() => O.script,
|
|
825
828
|
(i) => {
|
|
826
829
|
i && l.setMethods(i, !0);
|
|
@@ -828,11 +831,11 @@ const Ye = {
|
|
|
828
831
|
{
|
|
829
832
|
immediate: !0
|
|
830
833
|
}
|
|
831
|
-
), L("slots",
|
|
834
|
+
), L("slots", Re()), L("pageManager", l), L("forms", u), L("pageSchema", O), L(
|
|
832
835
|
"disabled",
|
|
833
836
|
J(() => d.disabled)
|
|
834
837
|
);
|
|
835
|
-
const
|
|
838
|
+
const A = ae(), x = A == null ? void 0 : A.proxy;
|
|
836
839
|
function C() {
|
|
837
840
|
ne(() => {
|
|
838
841
|
s.value = !0, n("ready", l), x && l.addComponentInstance("builder", x);
|
|
@@ -850,57 +853,57 @@ const Ye = {
|
|
|
850
853
|
setForms: E,
|
|
851
854
|
validateAll: p,
|
|
852
855
|
getFormInstance: v
|
|
853
|
-
}), (i, F) => R(
|
|
856
|
+
}), (i, F) => R(N).initialized.value ? (T(), K(Ee, {
|
|
854
857
|
key: 1,
|
|
855
858
|
onResolve: C
|
|
856
859
|
}, {
|
|
857
860
|
default: $(() => [
|
|
858
|
-
Z("div",
|
|
859
|
-
(
|
|
861
|
+
Z("div", Ye, [
|
|
862
|
+
(T(!0), me($e, null, Be(O.schemas, (S, c) => (T(), K(R(Ze), {
|
|
860
863
|
id: d.id,
|
|
861
864
|
key: c,
|
|
862
865
|
sourceDateUrl: d.sourceDateUrl,
|
|
863
|
-
componentSchema:
|
|
866
|
+
componentSchema: S
|
|
864
867
|
}, null, 8, ["id", "sourceDateUrl", "componentSchema"]))), 128))
|
|
865
868
|
])
|
|
866
869
|
]),
|
|
867
870
|
fallback: $(() => [
|
|
868
|
-
Z("div",
|
|
871
|
+
Z("div", Xe, [
|
|
869
872
|
H(R(t))
|
|
870
873
|
])
|
|
871
874
|
]),
|
|
872
875
|
_: 1
|
|
873
|
-
})) : (
|
|
876
|
+
})) : (T(), me("div", Qe));
|
|
874
877
|
}
|
|
875
878
|
});
|
|
876
879
|
function ve(e) {
|
|
877
|
-
return
|
|
880
|
+
return Ue() ? (ke(e), !0) : !1;
|
|
878
881
|
}
|
|
879
|
-
function
|
|
882
|
+
function et(e) {
|
|
880
883
|
let r = 0, o, t;
|
|
881
884
|
const n = () => {
|
|
882
885
|
r -= 1, t && r <= 0 && (t.stop(), o = void 0, t = void 0);
|
|
883
886
|
};
|
|
884
|
-
return (...s) => (r += 1, t || (t =
|
|
887
|
+
return (...s) => (r += 1, t || (t = Ne(!0), o = t.run(() => e(...s))), ve(n), o);
|
|
885
888
|
}
|
|
886
889
|
function te(e) {
|
|
887
890
|
return typeof e == "function" ? e() : R(e);
|
|
888
891
|
}
|
|
889
|
-
const
|
|
892
|
+
const tt = typeof window < "u" && typeof document < "u";
|
|
890
893
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
891
|
-
const
|
|
894
|
+
const nt = (e) => typeof e < "u", ot = Object.prototype.toString, rt = (e) => ot.call(e) === "[object Object]", st = () => {
|
|
892
895
|
};
|
|
893
|
-
function
|
|
896
|
+
function at(e) {
|
|
894
897
|
return ae();
|
|
895
898
|
}
|
|
896
|
-
function
|
|
897
|
-
|
|
899
|
+
function lt(e, r = !0, o) {
|
|
900
|
+
at() ? he(e, o) : r ? e() : ne(e);
|
|
898
901
|
}
|
|
899
|
-
function
|
|
902
|
+
function it(e = !1, r = {}) {
|
|
900
903
|
const {
|
|
901
904
|
truthyValue: o = !0,
|
|
902
905
|
falsyValue: t = !1
|
|
903
|
-
} = r, n =
|
|
906
|
+
} = r, n = Te(e), s = _(e);
|
|
904
907
|
function l(u) {
|
|
905
908
|
if (arguments.length)
|
|
906
909
|
return s.value = u, s.value;
|
|
@@ -911,29 +914,29 @@ function ct(e = !1, r = {}) {
|
|
|
911
914
|
}
|
|
912
915
|
return n ? l : [s, l];
|
|
913
916
|
}
|
|
914
|
-
function
|
|
915
|
-
const t =
|
|
917
|
+
function kt(e, r, o) {
|
|
918
|
+
const t = B(e, (...n) => (ne(() => t()), r(...n)), o);
|
|
916
919
|
return t;
|
|
917
920
|
}
|
|
918
|
-
const ce =
|
|
921
|
+
const ce = tt ? window : void 0;
|
|
919
922
|
function Y(e) {
|
|
920
923
|
var r;
|
|
921
924
|
const o = te(e);
|
|
922
925
|
return (r = o == null ? void 0 : o.$el) != null ? r : o;
|
|
923
926
|
}
|
|
924
|
-
function
|
|
927
|
+
function ct(...e) {
|
|
925
928
|
let r, o, t, n;
|
|
926
929
|
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([o, t, n] = e, r = ce) : [r, o, t, n] = e, !r)
|
|
927
|
-
return
|
|
930
|
+
return st;
|
|
928
931
|
Array.isArray(o) || (o = [o]), Array.isArray(t) || (t = [t]);
|
|
929
932
|
const s = [], l = () => {
|
|
930
933
|
s.forEach((w) => w()), s.length = 0;
|
|
931
|
-
}, u = (w, a, E, p) => (w.addEventListener(a, E, p), () => w.removeEventListener(a, E, p)), f =
|
|
934
|
+
}, u = (w, a, E, p) => (w.addEventListener(a, E, p), () => w.removeEventListener(a, E, p)), f = B(
|
|
932
935
|
() => [Y(r), te(n)],
|
|
933
936
|
([w, a]) => {
|
|
934
937
|
if (l(), !w)
|
|
935
938
|
return;
|
|
936
|
-
const E =
|
|
939
|
+
const E = rt(a) ? { ...a } : a;
|
|
937
940
|
s.push(
|
|
938
941
|
...o.flatMap((p) => t.map((v) => u(w, p, v, E)))
|
|
939
942
|
);
|
|
@@ -944,10 +947,10 @@ function ut(...e) {
|
|
|
944
947
|
};
|
|
945
948
|
return ve(I), I;
|
|
946
949
|
}
|
|
947
|
-
function
|
|
950
|
+
function ut(e) {
|
|
948
951
|
return typeof e == "function" ? e : typeof e == "string" ? (r) => r.key === e : Array.isArray(e) ? (r) => e.includes(r.key) : () => !0;
|
|
949
952
|
}
|
|
950
|
-
function
|
|
953
|
+
function be(...e) {
|
|
951
954
|
let r, o, t = {};
|
|
952
955
|
e.length === 3 ? (r = e[0], o = e[1], t = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (r = !0, o = e[0], t = e[1]) : (r = e[0], o = e[1]) : (r = !0, o = e[0]);
|
|
953
956
|
const {
|
|
@@ -955,39 +958,39 @@ function Ie(...e) {
|
|
|
955
958
|
eventName: s = "keydown",
|
|
956
959
|
passive: l = !1,
|
|
957
960
|
dedupe: u = !1
|
|
958
|
-
} = t, f =
|
|
959
|
-
return
|
|
961
|
+
} = t, f = ut(r);
|
|
962
|
+
return ct(n, s, (w) => {
|
|
960
963
|
w.repeat && te(u) || f(w) && o(w);
|
|
961
964
|
}, l);
|
|
962
965
|
}
|
|
963
966
|
function de(e, r, o = {}) {
|
|
964
|
-
return
|
|
967
|
+
return be(e, r, { ...o, eventName: "keydown" });
|
|
965
968
|
}
|
|
966
969
|
function fe(e, r, o = {}) {
|
|
967
|
-
return
|
|
970
|
+
return be(e, r, { ...o, eventName: "keyup" });
|
|
968
971
|
}
|
|
969
|
-
function
|
|
970
|
-
const e =
|
|
972
|
+
function dt() {
|
|
973
|
+
const e = _(!1), r = ae();
|
|
971
974
|
return r && he(() => {
|
|
972
975
|
e.value = !0;
|
|
973
976
|
}, r), e;
|
|
974
977
|
}
|
|
975
|
-
function
|
|
976
|
-
const r =
|
|
978
|
+
function ft(e) {
|
|
979
|
+
const r = dt();
|
|
977
980
|
return J(() => (r.value, !!e()));
|
|
978
981
|
}
|
|
979
|
-
function
|
|
982
|
+
function pt(e) {
|
|
980
983
|
return JSON.parse(JSON.stringify(e));
|
|
981
984
|
}
|
|
982
|
-
function
|
|
985
|
+
function mt(e, r, o = {}) {
|
|
983
986
|
const { window: t = ce, ...n } = o;
|
|
984
987
|
let s;
|
|
985
|
-
const l =
|
|
988
|
+
const l = ft(() => t && "ResizeObserver" in t), u = () => {
|
|
986
989
|
s && (s.disconnect(), s = void 0);
|
|
987
990
|
}, f = J(() => {
|
|
988
991
|
const a = te(e);
|
|
989
992
|
return Array.isArray(a) ? a.map((E) => Y(E)) : [Y(a)];
|
|
990
|
-
}), I =
|
|
993
|
+
}), I = B(
|
|
991
994
|
f,
|
|
992
995
|
(a) => {
|
|
993
996
|
if (u(), l.value && t) {
|
|
@@ -1005,11 +1008,11 @@ function ht(e, r, o = {}) {
|
|
|
1005
1008
|
stop: w
|
|
1006
1009
|
};
|
|
1007
1010
|
}
|
|
1008
|
-
function
|
|
1011
|
+
function Lt(e, r = { width: 0, height: 0 }, o = {}) {
|
|
1009
1012
|
const { window: t = ce, box: n = "content-box" } = o, s = J(() => {
|
|
1010
1013
|
var a, E;
|
|
1011
1014
|
return (E = (a = Y(e)) == null ? void 0 : a.namespaceURI) == null ? void 0 : E.includes("svg");
|
|
1012
|
-
}), l =
|
|
1015
|
+
}), l = _(r.width), u = _(r.height), { stop: f } = mt(
|
|
1013
1016
|
e,
|
|
1014
1017
|
([a]) => {
|
|
1015
1018
|
const E = n === "border-box" ? a.borderBoxSize : n === "content-box" ? a.contentBoxSize : a.devicePixelContentBoxSize;
|
|
@@ -1027,11 +1030,11 @@ function zt(e, r = { width: 0, height: 0 }, o = {}) {
|
|
|
1027
1030
|
},
|
|
1028
1031
|
o
|
|
1029
1032
|
);
|
|
1030
|
-
|
|
1033
|
+
lt(() => {
|
|
1031
1034
|
const a = Y(e);
|
|
1032
1035
|
a && (l.value = "offsetWidth" in a ? a.offsetWidth : r.width, u.value = "offsetHeight" in a ? a.offsetHeight : r.height);
|
|
1033
1036
|
});
|
|
1034
|
-
const I =
|
|
1037
|
+
const I = B(
|
|
1035
1038
|
() => Y(e),
|
|
1036
1039
|
(a) => {
|
|
1037
1040
|
l.value = a ? r.width : 0, u.value = a ? r.height : 0;
|
|
@@ -1046,7 +1049,7 @@ function zt(e, r = { width: 0, height: 0 }, o = {}) {
|
|
|
1046
1049
|
stop: w
|
|
1047
1050
|
};
|
|
1048
1051
|
}
|
|
1049
|
-
function
|
|
1052
|
+
function zt(e, r, o, t = {}) {
|
|
1050
1053
|
var n, s, l;
|
|
1051
1054
|
const {
|
|
1052
1055
|
clone: u = !1,
|
|
@@ -1058,18 +1061,18 @@ function Jt(e, r, o, t = {}) {
|
|
|
1058
1061
|
} = t, p = ae(), v = o || (p == null ? void 0 : p.emit) || ((n = p == null ? void 0 : p.$emit) == null ? void 0 : n.bind(p)) || ((l = (s = p == null ? void 0 : p.proxy) == null ? void 0 : s.$emit) == null ? void 0 : l.bind(p == null ? void 0 : p.proxy));
|
|
1059
1062
|
let d = I;
|
|
1060
1063
|
r || (r = "modelValue"), d = d || `update:${r.toString()}`;
|
|
1061
|
-
const O = (
|
|
1062
|
-
E ? E(
|
|
1064
|
+
const O = (A) => u ? typeof u == "function" ? u(A) : pt(A) : A, M = () => nt(e[r]) ? O(e[r]) : a, h = (A) => {
|
|
1065
|
+
E ? E(A) && v(d, A) : v(d, A);
|
|
1063
1066
|
};
|
|
1064
1067
|
if (f) {
|
|
1065
|
-
const
|
|
1068
|
+
const A = M(), x = _(A);
|
|
1066
1069
|
let C = !1;
|
|
1067
|
-
return
|
|
1070
|
+
return B(
|
|
1068
1071
|
() => e[r],
|
|
1069
1072
|
(i) => {
|
|
1070
1073
|
C || (C = !0, x.value = O(i), ne(() => C = !1));
|
|
1071
1074
|
}
|
|
1072
|
-
),
|
|
1075
|
+
), B(
|
|
1073
1076
|
x,
|
|
1074
1077
|
(i) => {
|
|
1075
1078
|
!C && (i !== e[r] || w) && h(i);
|
|
@@ -1081,23 +1084,23 @@ function Jt(e, r, o, t = {}) {
|
|
|
1081
1084
|
get() {
|
|
1082
1085
|
return M();
|
|
1083
1086
|
},
|
|
1084
|
-
set(
|
|
1085
|
-
h(
|
|
1087
|
+
set(A) {
|
|
1088
|
+
h(A);
|
|
1086
1089
|
}
|
|
1087
1090
|
});
|
|
1088
1091
|
}
|
|
1089
|
-
function
|
|
1090
|
-
const { isDark: e } = ue(), r =
|
|
1092
|
+
function Jt() {
|
|
1093
|
+
const { isDark: e } = ue(), r = it(e);
|
|
1091
1094
|
return {
|
|
1092
1095
|
isDark: e,
|
|
1093
1096
|
toggleDark: r
|
|
1094
1097
|
};
|
|
1095
1098
|
}
|
|
1096
|
-
function
|
|
1097
|
-
const e =
|
|
1099
|
+
function ht() {
|
|
1100
|
+
const e = _(!1);
|
|
1098
1101
|
return he(() => {
|
|
1099
|
-
|
|
1100
|
-
}),
|
|
1102
|
+
vt(e), gt(e);
|
|
1103
|
+
}), B(
|
|
1101
1104
|
() => e.value,
|
|
1102
1105
|
() => {
|
|
1103
1106
|
e.value ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
@@ -1106,11 +1109,11 @@ function vt() {
|
|
|
1106
1109
|
isDark: e
|
|
1107
1110
|
};
|
|
1108
1111
|
}
|
|
1109
|
-
function
|
|
1112
|
+
function vt(e) {
|
|
1110
1113
|
var r = document.documentElement;
|
|
1111
1114
|
r && (r.classList.contains("dark") ? e.value = !0 : e.value = !1);
|
|
1112
1115
|
}
|
|
1113
|
-
function
|
|
1116
|
+
function gt(e) {
|
|
1114
1117
|
var r = document.querySelector("html"), o = new MutationObserver(function(t) {
|
|
1115
1118
|
for (var n of t)
|
|
1116
1119
|
if (n.type === "attributes" && n.attributeName === "class") {
|
|
@@ -1121,12 +1124,12 @@ function yt(e) {
|
|
|
1121
1124
|
o.observe(r, {
|
|
1122
1125
|
attributes: !0,
|
|
1123
1126
|
attributeFilter: ["class"]
|
|
1124
|
-
}),
|
|
1127
|
+
}), De(() => {
|
|
1125
1128
|
o.disconnect();
|
|
1126
1129
|
});
|
|
1127
1130
|
}
|
|
1128
|
-
function
|
|
1129
|
-
const e =
|
|
1131
|
+
function yt() {
|
|
1132
|
+
const e = _(1), r = _(!1), { isDark: o } = ht(), { pressSpace: t, pressShift: n, pressCtrl: s } = wt();
|
|
1130
1133
|
return {
|
|
1131
1134
|
canvasScale: e,
|
|
1132
1135
|
pressSpace: t,
|
|
@@ -1136,9 +1139,9 @@ function wt() {
|
|
|
1136
1139
|
isDark: o
|
|
1137
1140
|
};
|
|
1138
1141
|
}
|
|
1139
|
-
const ue =
|
|
1140
|
-
function
|
|
1141
|
-
const e =
|
|
1142
|
+
const ue = et(yt);
|
|
1143
|
+
function wt() {
|
|
1144
|
+
const e = _(!1), r = _(!1), o = _(!1);
|
|
1142
1145
|
return de(" ", () => {
|
|
1143
1146
|
e.value = !0;
|
|
1144
1147
|
}), fe(" ", () => {
|
|
@@ -1153,7 +1156,7 @@ function St() {
|
|
|
1153
1156
|
o.value = !1;
|
|
1154
1157
|
}), { pressSpace: e, pressShift: r, pressCtrl: o };
|
|
1155
1158
|
}
|
|
1156
|
-
function
|
|
1159
|
+
function Wt(e) {
|
|
1157
1160
|
const { pressSpace: r } = ue(), o = new Image(1, 1);
|
|
1158
1161
|
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1159
1162
|
let t = 0, n = 0;
|
|
@@ -1172,7 +1175,7 @@ function Ht(e) {
|
|
|
1172
1175
|
}
|
|
1173
1176
|
return { handleElementDragStart: s, handleElementDrag: l, handleElementDragEnd: u };
|
|
1174
1177
|
}
|
|
1175
|
-
function
|
|
1178
|
+
function Ht(e) {
|
|
1176
1179
|
const { pressCtrl: r, canvasScale: o, disabledZoom: t } = ue();
|
|
1177
1180
|
function n(s) {
|
|
1178
1181
|
if (!r.value || t.value)
|
|
@@ -1181,14 +1184,14 @@ function Kt(e) {
|
|
|
1181
1184
|
let l = 0;
|
|
1182
1185
|
s.deltaY < 0 ? l = o.value + 0.05 : l = o.value - 0.05, !(l > 150 || l < 0.5) && (o.value = l);
|
|
1183
1186
|
}
|
|
1184
|
-
return
|
|
1187
|
+
return B(
|
|
1185
1188
|
() => o.value,
|
|
1186
1189
|
(s) => {
|
|
1187
1190
|
e.value && !t.value && (e.value.style.transform = `scale(${s})`);
|
|
1188
1191
|
}
|
|
1189
1192
|
), { handleZoom: n, canvasScale: o };
|
|
1190
1193
|
}
|
|
1191
|
-
function
|
|
1194
|
+
function Kt(e, r = 16.66) {
|
|
1192
1195
|
let o;
|
|
1193
1196
|
function t() {
|
|
1194
1197
|
n(), o = window.setInterval(e, r);
|
|
@@ -1201,10 +1204,10 @@ function qt(e, r = 16.66) {
|
|
|
1201
1204
|
stopTimedQuery: n
|
|
1202
1205
|
};
|
|
1203
1206
|
}
|
|
1204
|
-
const
|
|
1207
|
+
const St = { class: "min-w-750px rounded" }, Dt = { class: "h-full rounded" }, At = /* @__PURE__ */ ee({
|
|
1205
1208
|
__name: "index",
|
|
1206
1209
|
setup(e, { expose: r }) {
|
|
1207
|
-
const o =
|
|
1210
|
+
const o = N.getComponent("monacoEditor"), t = N.getComponent("modal"), n = _(null), s = _(!1), l = _(!1), u = _({}), f = Q("pageSchema"), I = _(null), w = _("");
|
|
1208
1211
|
function a() {
|
|
1209
1212
|
l.value = !1;
|
|
1210
1213
|
}
|
|
@@ -1231,7 +1234,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
|
|
|
1231
1234
|
}
|
|
1232
1235
|
return r({
|
|
1233
1236
|
handleOpen: p
|
|
1234
|
-
}), (d, O) => (
|
|
1237
|
+
}), (d, O) => (T(), K(R(t), {
|
|
1235
1238
|
modelValue: s.value,
|
|
1236
1239
|
"onUpdate:modelValue": O[1] || (O[1] = (M) => s.value = M),
|
|
1237
1240
|
title: "预览",
|
|
@@ -1242,8 +1245,8 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
|
|
|
1242
1245
|
okText: "表单数据"
|
|
1243
1246
|
}, {
|
|
1244
1247
|
default: $(() => [
|
|
1245
|
-
Z("div",
|
|
1246
|
-
(
|
|
1248
|
+
Z("div", St, [
|
|
1249
|
+
(T(), K(R(je), {
|
|
1247
1250
|
key: w.value,
|
|
1248
1251
|
ref_key: "kb",
|
|
1249
1252
|
ref: I,
|
|
@@ -1259,7 +1262,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
|
|
|
1259
1262
|
onOk: a
|
|
1260
1263
|
}, {
|
|
1261
1264
|
default: $(() => [
|
|
1262
|
-
Z("div",
|
|
1265
|
+
Z("div", Dt, [
|
|
1263
1266
|
H(R(o), {
|
|
1264
1267
|
ref_key: "monacoEditorRef",
|
|
1265
1268
|
ref: n,
|
|
@@ -1277,10 +1280,10 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
|
|
|
1277
1280
|
_: 1
|
|
1278
1281
|
}, 8, ["modelValue"]));
|
|
1279
1282
|
}
|
|
1280
|
-
}),
|
|
1283
|
+
}), Et = {
|
|
1281
1284
|
key: 0,
|
|
1282
1285
|
class: "epic-loading-box"
|
|
1283
|
-
},
|
|
1286
|
+
}, xt = { class: "epic-designer-main" }, It = { class: "epic-header-container" }, bt = { class: "epic-loading-box" }, qt = /* @__PURE__ */ ee({
|
|
1284
1287
|
__name: "designer",
|
|
1285
1288
|
props: {
|
|
1286
1289
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1303,7 +1306,7 @@ const Dt = { class: "min-w-750px rounded" }, At = { class: "h-full rounded" }, E
|
|
|
1303
1306
|
"updateSourceData"
|
|
1304
1307
|
],
|
|
1305
1308
|
setup(e, { expose: r, emit: o }) {
|
|
1306
|
-
const t = X(() => import("./index-
|
|
1309
|
+
const t = X(() => import("./index-BKDRMrcc.js")), n = X(() => import("./index-XUQ1VGQg.js")), s = X(() => import("./index-DmyFFubg.js")), l = X(() => import("./index-DNeYX6HK.js")), u = X(() => import("./index-DgcFxYFp.js")), f = Ie(), I = Ke(), w = e;
|
|
1307
1310
|
let a = {
|
|
1308
1311
|
schemas: [
|
|
1309
1312
|
{
|
|
@@ -1355,9 +1358,9 @@ defineExpose({
|
|
|
1355
1358
|
a = w.defaultSchema;
|
|
1356
1359
|
return;
|
|
1357
1360
|
}
|
|
1358
|
-
w.source &&
|
|
1361
|
+
w.source && N.setSourceData(w.source), w.formMode && (a.schemas = N.formSchemas);
|
|
1359
1362
|
}), f.setDesignMode(), f.setDefaultComponentIds(a.schemas);
|
|
1360
|
-
const E = o, p =
|
|
1363
|
+
const E = o, p = _(null), v = j({
|
|
1361
1364
|
checkedNode: null,
|
|
1362
1365
|
hoverNode: null,
|
|
1363
1366
|
disableHover: !1,
|
|
@@ -1369,61 +1372,61 @@ defineExpose({
|
|
|
1369
1372
|
le(() => {
|
|
1370
1373
|
O.value = w.disabledZoom;
|
|
1371
1374
|
}), le(() => {
|
|
1372
|
-
const
|
|
1373
|
-
|
|
1375
|
+
const D = d.script;
|
|
1376
|
+
D && D !== "" && f.setMethods(D);
|
|
1374
1377
|
}), L("pageSchema", d), L("revoke", I), L("pageManager", f), L(
|
|
1375
1378
|
"designerProps",
|
|
1376
1379
|
J(() => w)
|
|
1377
1380
|
), L("designer", {
|
|
1378
1381
|
setCheckedNode: h,
|
|
1379
|
-
setHoverNode:
|
|
1382
|
+
setHoverNode: A,
|
|
1380
1383
|
setDisableHover: C,
|
|
1381
1384
|
handleToggleDeviceMode: g,
|
|
1382
|
-
reset:
|
|
1385
|
+
reset: S,
|
|
1383
1386
|
state: v
|
|
1384
|
-
}), re.on("saveSourceData", (
|
|
1385
|
-
E("saveSourceData",
|
|
1386
|
-
}), re.on("deleteSourceData", (
|
|
1387
|
-
E("deleteSourceData",
|
|
1388
|
-
}), re.on("updateSourceData", (
|
|
1389
|
-
E("updateSourceData",
|
|
1387
|
+
}), re.on("saveSourceData", (D) => {
|
|
1388
|
+
E("saveSourceData", D);
|
|
1389
|
+
}), re.on("deleteSourceData", (D) => {
|
|
1390
|
+
E("deleteSourceData", D);
|
|
1391
|
+
}), re.on("updateSourceData", (D) => {
|
|
1392
|
+
E("updateSourceData", D);
|
|
1390
1393
|
});
|
|
1391
1394
|
function M() {
|
|
1392
1395
|
d.schemas = z(a.schemas), h(d.schemas[0]), I.push(d.schemas, "初始化撤销功能");
|
|
1393
1396
|
}
|
|
1394
|
-
async function h(
|
|
1395
|
-
v.checkedNode =
|
|
1397
|
+
async function h(D = d.schemas[0]) {
|
|
1398
|
+
v.checkedNode = D, v.matched = Je(d.schemas, D.id);
|
|
1396
1399
|
}
|
|
1397
|
-
async function D
|
|
1400
|
+
async function A(D = null) {
|
|
1398
1401
|
var U;
|
|
1399
|
-
if (!
|
|
1402
|
+
if (!D || v.disableHover)
|
|
1400
1403
|
return v.hoverNode = null, !1;
|
|
1401
|
-
if ((
|
|
1404
|
+
if ((D == null ? void 0 : D.id) === ((U = v.hoverNode) == null ? void 0 : U.id))
|
|
1402
1405
|
return !1;
|
|
1403
|
-
v.hoverNode =
|
|
1406
|
+
v.hoverNode = D;
|
|
1404
1407
|
}
|
|
1405
1408
|
function x() {
|
|
1406
1409
|
ne(() => {
|
|
1407
1410
|
E("ready", { pageManager: f });
|
|
1408
1411
|
});
|
|
1409
1412
|
}
|
|
1410
|
-
async function C(
|
|
1411
|
-
v.disableHover =
|
|
1413
|
+
async function C(D = !1) {
|
|
1414
|
+
v.disableHover = D;
|
|
1412
1415
|
}
|
|
1413
|
-
function i(
|
|
1414
|
-
G(d, z(
|
|
1416
|
+
function i(D) {
|
|
1417
|
+
G(d, z(D));
|
|
1415
1418
|
}
|
|
1416
1419
|
function F() {
|
|
1417
1420
|
return ye(d);
|
|
1418
1421
|
}
|
|
1419
|
-
function
|
|
1420
|
-
|
|
1422
|
+
function S() {
|
|
1423
|
+
xe(d.schemas, a.schemas) && d.script === a.script || (G(d.schemas, a.schemas), d.script = a.script, h(d.schemas[0]), I.push(d.schemas, "重置操作"), E("reset", d));
|
|
1421
1424
|
}
|
|
1422
1425
|
function c() {
|
|
1423
1426
|
E("save", ye(d));
|
|
1424
1427
|
}
|
|
1425
|
-
function g(
|
|
1426
|
-
E("toggleDeviceMode",
|
|
1428
|
+
function g(D) {
|
|
1429
|
+
E("toggleDeviceMode", D);
|
|
1427
1430
|
}
|
|
1428
1431
|
function W() {
|
|
1429
1432
|
p.value.handleOpen();
|
|
@@ -1432,66 +1435,66 @@ defineExpose({
|
|
|
1432
1435
|
revoke: I,
|
|
1433
1436
|
setData: i,
|
|
1434
1437
|
getData: F,
|
|
1435
|
-
reset:
|
|
1438
|
+
reset: S,
|
|
1436
1439
|
preview: W
|
|
1437
|
-
}), (
|
|
1440
|
+
}), (D, U) => R(N).initialized.value ? (T(), K(Ee, {
|
|
1438
1441
|
key: 1,
|
|
1439
1442
|
onResolve: x
|
|
1440
1443
|
}, {
|
|
1441
1444
|
default: $(() => [
|
|
1442
|
-
Z("div",
|
|
1443
|
-
Z("div",
|
|
1444
|
-
|
|
1445
|
-
w.hiddenHeader ?
|
|
1445
|
+
Z("div", xt, [
|
|
1446
|
+
Z("div", It, [
|
|
1447
|
+
k(D.$slots, "header", {}, () => [
|
|
1448
|
+
w.hiddenHeader ? Ae("", !0) : (T(), K(R(t), {
|
|
1446
1449
|
key: 0,
|
|
1447
1450
|
onPreview: W,
|
|
1448
1451
|
onSave: c
|
|
1449
1452
|
}, {
|
|
1450
1453
|
header: $(() => [
|
|
1451
|
-
|
|
1454
|
+
k(D.$slots, "header-prefix")
|
|
1452
1455
|
]),
|
|
1453
1456
|
prefix: $(() => [
|
|
1454
|
-
|
|
1457
|
+
k(D.$slots, "header-prefix")
|
|
1455
1458
|
]),
|
|
1456
1459
|
title: $(() => [
|
|
1457
|
-
|
|
1460
|
+
k(D.$slots, "header-title")
|
|
1458
1461
|
]),
|
|
1459
1462
|
"right-prefix": $(() => [
|
|
1460
|
-
|
|
1463
|
+
k(D.$slots, "header-right-prefix")
|
|
1461
1464
|
]),
|
|
1462
1465
|
"right-action": $(() => [
|
|
1463
|
-
|
|
1466
|
+
k(D.$slots, "header-right-action")
|
|
1464
1467
|
]),
|
|
1465
1468
|
"right-suffix": $(() => [
|
|
1466
|
-
|
|
1469
|
+
k(D.$slots, "header-right-suffix")
|
|
1467
1470
|
]),
|
|
1468
1471
|
_: 3
|
|
1469
1472
|
}))
|
|
1470
1473
|
])
|
|
1471
1474
|
]),
|
|
1472
1475
|
Z("div", {
|
|
1473
|
-
class:
|
|
1476
|
+
class: Le(["epic-split-view-container", { "hidden-header": D.hiddenHeader }])
|
|
1474
1477
|
}, [
|
|
1475
1478
|
H(R(n)),
|
|
1476
1479
|
H(R(s)),
|
|
1477
1480
|
H(R(l))
|
|
1478
1481
|
], 2),
|
|
1479
|
-
H(
|
|
1482
|
+
H(At, {
|
|
1480
1483
|
ref_key: "previewRef",
|
|
1481
1484
|
ref: p
|
|
1482
1485
|
}, null, 512)
|
|
1483
1486
|
])
|
|
1484
1487
|
]),
|
|
1485
1488
|
fallback: $(() => [
|
|
1486
|
-
Z("div",
|
|
1489
|
+
Z("div", bt, [
|
|
1487
1490
|
H(R(u))
|
|
1488
1491
|
])
|
|
1489
1492
|
]),
|
|
1490
1493
|
_: 3
|
|
1491
|
-
})) : (
|
|
1494
|
+
})) : (T(), me("div", Et));
|
|
1492
1495
|
}
|
|
1493
|
-
}),
|
|
1494
|
-
component: async () => await import("./index-
|
|
1496
|
+
}), Ct = {
|
|
1497
|
+
component: async () => await import("./index-BVceGSkj.js"),
|
|
1495
1498
|
defaultSchema: {
|
|
1496
1499
|
label: "代码编辑器",
|
|
1497
1500
|
type: "monacoEditor",
|
|
@@ -1519,7 +1522,7 @@ defineExpose({
|
|
|
1519
1522
|
]
|
|
1520
1523
|
},
|
|
1521
1524
|
bindModel: "model-value"
|
|
1522
|
-
},
|
|
1525
|
+
}, _t = {
|
|
1523
1526
|
component: async () => await import("./index-DiDIFoTk.js"),
|
|
1524
1527
|
defaultSchema: {
|
|
1525
1528
|
label: "页面",
|
|
@@ -1540,65 +1543,65 @@ defineExpose({
|
|
|
1540
1543
|
]
|
|
1541
1544
|
}
|
|
1542
1545
|
};
|
|
1543
|
-
function
|
|
1544
|
-
e.component("EInputSize", async () => await import("./index-
|
|
1546
|
+
function Pt(e) {
|
|
1547
|
+
e.component("EInputSize", async () => await import("./index-0GtpyUBx.js")), e.component("EColEditor", async () => await import("./index-C4TbiUcL.js")), e.component("EActionEditor", async () => await import("./index-BOfEIfM3.js")), e.component("ERuleEditor", async () => await import("./index-L6-BEKnU.js")), e.component("EOptionsEditor", async () => await import("./index-DDo1LIxZ.js")), e.component("ENode", async () => await import("./index-BcocZhQo.js")), e.component("EDataSource", async () => await import("./index-0zDuNn0Q.js")), e.registerActivitybar({
|
|
1545
1548
|
id: "component_view",
|
|
1546
1549
|
title: "组件",
|
|
1547
1550
|
icon: "icon--epic--extension-outline",
|
|
1548
|
-
component: async () => await import("./index-
|
|
1551
|
+
component: async () => await import("./index-DR3BiPsn.js")
|
|
1549
1552
|
}), e.registerActivitybar({
|
|
1550
1553
|
id: "outline_view",
|
|
1551
1554
|
title: "大纲",
|
|
1552
1555
|
icon: "icon--epic--account-tree-outline-rounded",
|
|
1553
|
-
component: async () => await import("./outline-
|
|
1556
|
+
component: async () => await import("./outline-CNayBNNC.js")
|
|
1554
1557
|
}), e.registerRightSidebar({
|
|
1555
1558
|
id: "attribute_view",
|
|
1556
1559
|
title: "属性",
|
|
1557
|
-
component: async () => await import("./attributeView-
|
|
1560
|
+
component: async () => await import("./attributeView-CAOGzcXM.js")
|
|
1558
1561
|
}), e.registerRightSidebar({
|
|
1559
1562
|
id: "style_view",
|
|
1560
1563
|
title: "样式",
|
|
1561
|
-
component: async () => await import("./styleView-
|
|
1562
|
-
}), [
|
|
1564
|
+
component: async () => await import("./styleView-5U84Umnq.js")
|
|
1565
|
+
}), [Ct, _t].forEach((o) => {
|
|
1563
1566
|
e.registerComponent(o);
|
|
1564
1567
|
});
|
|
1565
1568
|
}
|
|
1566
|
-
|
|
1569
|
+
Pt(N);
|
|
1567
1570
|
export {
|
|
1568
|
-
|
|
1571
|
+
We as A,
|
|
1569
1572
|
se as B,
|
|
1570
|
-
|
|
1573
|
+
He as C,
|
|
1571
1574
|
oe as D,
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1575
|
+
ze as E,
|
|
1576
|
+
wt as F,
|
|
1577
|
+
ht as G,
|
|
1578
|
+
vt as H,
|
|
1579
|
+
yt as I,
|
|
1580
|
+
Ze as _,
|
|
1581
|
+
Kt as a,
|
|
1582
|
+
mt as b,
|
|
1583
|
+
Tt as c,
|
|
1581
1584
|
G as d,
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1585
|
+
Wt as e,
|
|
1586
|
+
Nt as f,
|
|
1587
|
+
Ft as g,
|
|
1588
|
+
Lt as h,
|
|
1589
|
+
Ht as i,
|
|
1590
|
+
Ut as j,
|
|
1588
1591
|
ie as k,
|
|
1589
1592
|
Bt as l,
|
|
1590
1593
|
z as m,
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1594
|
+
zt as n,
|
|
1595
|
+
Mt as o,
|
|
1596
|
+
Jt as p,
|
|
1597
|
+
je as q,
|
|
1598
|
+
qt as r,
|
|
1599
|
+
Rt as s,
|
|
1600
|
+
Ie as t,
|
|
1598
1601
|
ue as u,
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1602
|
+
Ke as v,
|
|
1603
|
+
kt as w,
|
|
1604
|
+
xe as x,
|
|
1605
|
+
Je as y,
|
|
1606
|
+
$t as z
|
|
1604
1607
|
};
|