epic-designer-gold 0.0.34 → 0.0.35
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-CbSIfYvE.js → attributeView-BuU8Ajxc.js} +1 -1
- package/dist/{attributeView-D3Qsq4Rp.cjs → attributeView-n7qIXP7S.cjs} +1 -1
- package/dist/{index-B-S6G7Gm.cjs → index--mXdf_N_.cjs} +1 -1
- package/dist/{index-C0duQEvM.js → index-AT5ltRGN.js} +1 -1
- package/dist/{index-KtgsmKhr.cjs → index-B0dJIMij.cjs} +2 -2
- package/dist/{index-C8_KPCGF.cjs → index-B1hinJbh.cjs} +1 -1
- package/dist/{index-qZR6iV6F.cjs → index-B2BO1iqb.cjs} +1 -1
- package/dist/{index-DuajNE8y.cjs → index-BqrNcAYd.cjs} +1 -1
- package/dist/{index-ZvngKPSa.cjs → index-C4wq_cwc.cjs} +1 -1
- package/dist/{index-DFKDDX_i.js → index-CF3fYMNt.js} +1 -1
- package/dist/{index-BM1LEAru.js → index-CbVJE-r7.js} +145 -145
- package/dist/{index-Dtw63_EC.js → index-CfqYk0Cm.js} +1 -1
- package/dist/{index-BUnjVAci.cjs → index-CueBqJva.cjs} +1 -1
- package/dist/index-D7xfe3p6.js +4 -0
- package/dist/{index-BmpuQvz8.cjs → index-DMWZmwY3.cjs} +1 -1
- package/dist/{index-C1u693vR.js → index-DluF22Iv.js} +1 -1
- package/dist/{index-DIq67rZG.cjs → index-Dxs27XfA.cjs} +1 -1
- package/dist/{index-BB9BbwOP.js → index-I369bEhX.js} +1 -1
- package/dist/{index-CIH4lXfN.js → index-QWJHIAu8.js} +1 -1
- package/dist/{index-CvItX-Z6.js → index-XbBcyR0q.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{styleView-CW7dFXBf.js → styleView-3R3fJCVy.js} +1 -1
- package/dist/{styleView-CWElODVj.cjs → styleView-CMN7E_-A.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-BOvRFBhF.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as A, reactive as Y, defineComponent as X, openBlock as N, createBlock as
|
|
1
|
+
import { ref as A, reactive as Y, defineComponent as X, openBlock as N, createBlock as J, unref as V, mergeProps as pe, withCtx as M, renderSlot as B, getCurrentInstance as se, inject as Z, watch as R, useAttrs as _e, provide as U, shallowRef as Pe, computed as L, watchEffect as le, onUnmounted as be, resolveComponent as Oe, resolveDynamicComponent as Ve, createVNode as z, createCommentVNode as Se, useSlots as Fe, createElementBlock as me, Suspense as De, createElementVNode as H, Fragment as Me, renderList as Re, nextTick as ee, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as he, normalizeClass as Te, toRaw as ge } from "vue";
|
|
2
2
|
import { p as $, E as ae, a as we, l as Q } from "./axios-ITY6Uw7A.js";
|
|
3
3
|
function ie(e = 10) {
|
|
4
4
|
const a = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -63,7 +63,7 @@ function Ae(e, a, o = [], t = /* @__PURE__ */ new WeakMap()) {
|
|
|
63
63
|
};
|
|
64
64
|
return JSON.stringify(n(e)) === JSON.stringify(n(a));
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function ze(e, a) {
|
|
67
67
|
const o = [];
|
|
68
68
|
let t = !1;
|
|
69
69
|
function n(r) {
|
|
@@ -98,9 +98,9 @@ function Ft(e, a, o) {
|
|
|
98
98
|
return n[t[t.length - 1]] = o, e;
|
|
99
99
|
}
|
|
100
100
|
function Mt(e, a = "default") {
|
|
101
|
-
return
|
|
101
|
+
return Je(e, a).map((t) => t.field);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Je(e, a = "default") {
|
|
104
104
|
const o = re(
|
|
105
105
|
e,
|
|
106
106
|
(n) => {
|
|
@@ -278,17 +278,17 @@ function Ee() {
|
|
|
278
278
|
delete e.value[m];
|
|
279
279
|
}
|
|
280
280
|
function u(m, y = !1) {
|
|
281
|
-
const
|
|
282
|
-
(x, [D,
|
|
281
|
+
const b = Object.entries($.publicMethods).reduce(
|
|
282
|
+
(x, [D, _]) => (x[D] = _.handler, x),
|
|
283
283
|
{}
|
|
284
284
|
);
|
|
285
285
|
try {
|
|
286
286
|
new Function(`const epic = this;${m}`).bind({
|
|
287
|
-
...
|
|
287
|
+
...b,
|
|
288
288
|
getComponent: r,
|
|
289
289
|
find: r,
|
|
290
290
|
defineExpose: w,
|
|
291
|
-
publicMethods:
|
|
291
|
+
publicMethods: b,
|
|
292
292
|
pluginManager: $
|
|
293
293
|
})();
|
|
294
294
|
} catch (x) {
|
|
@@ -303,48 +303,48 @@ function Ee() {
|
|
|
303
303
|
console.warn("未提供任何动作");
|
|
304
304
|
return;
|
|
305
305
|
}
|
|
306
|
-
m.forEach((
|
|
307
|
-
const x =
|
|
308
|
-
switch (
|
|
306
|
+
m.forEach((b) => {
|
|
307
|
+
const x = b.args ? JSON.parse(b.args) : y;
|
|
308
|
+
switch (b.type) {
|
|
309
309
|
case "public":
|
|
310
|
-
s(
|
|
310
|
+
s(b, x);
|
|
311
311
|
break;
|
|
312
312
|
case "custom":
|
|
313
|
-
v(
|
|
313
|
+
v(b, x);
|
|
314
314
|
break;
|
|
315
315
|
case "component":
|
|
316
|
-
d(
|
|
316
|
+
d(b, x);
|
|
317
317
|
break;
|
|
318
318
|
default:
|
|
319
|
-
console.warn(`未知的动作类型: ${
|
|
319
|
+
console.warn(`未知的动作类型: ${b.type}`);
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
323
|
}
|
|
324
324
|
function s(m, y) {
|
|
325
|
-
var
|
|
325
|
+
var b;
|
|
326
326
|
try {
|
|
327
|
-
(
|
|
327
|
+
(b = $.publicMethods[m.methodName]) == null || b.handler(...y);
|
|
328
328
|
} catch (x) {
|
|
329
329
|
console.error(`[Epic:公共函数(${m.methodName})]执行异常:`, x);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
function v(m, y) {
|
|
333
|
-
var
|
|
333
|
+
var b, x;
|
|
334
334
|
try {
|
|
335
|
-
(x = (
|
|
335
|
+
(x = (b = a.value)[m.methodName]) == null || x.call(b, ...y);
|
|
336
336
|
} catch (D) {
|
|
337
337
|
console.error(`[Epic:自定义函数(${m.methodName})]执行异常:`, D);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
340
|
function d(m, y) {
|
|
341
|
-
const
|
|
342
|
-
if (!
|
|
341
|
+
const b = m.componentId != null && r(m.componentId);
|
|
342
|
+
if (!b) {
|
|
343
343
|
console.warn(`[Epic:组件${m.componentId}]未找到`);
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
346
346
|
try {
|
|
347
|
-
|
|
347
|
+
b[m.methodName](...y);
|
|
348
348
|
} catch (x) {
|
|
349
349
|
console.error(`[Epic:组件${m.componentId}函数(${m.methodName})]执行异常:`, x);
|
|
350
350
|
}
|
|
@@ -354,12 +354,12 @@ function Ee() {
|
|
|
354
354
|
}
|
|
355
355
|
function c(m) {
|
|
356
356
|
const y = re(m, () => !0);
|
|
357
|
-
t.value = y.map((
|
|
357
|
+
t.value = y.map((b) => b.id);
|
|
358
358
|
}
|
|
359
359
|
function E(m, y = "default") {
|
|
360
360
|
if (n[y]) {
|
|
361
|
-
const
|
|
362
|
-
K(m,
|
|
361
|
+
const b = n[y];
|
|
362
|
+
K(m, b);
|
|
363
363
|
}
|
|
364
364
|
n[y] = m;
|
|
365
365
|
}
|
|
@@ -435,7 +435,7 @@ const Ke = /* @__PURE__ */ X({
|
|
|
435
435
|
const o = $.getComponent("form-item"), t = e, n = a, r = A(), l = () => {
|
|
436
436
|
n("updateFormItemRef", r.value);
|
|
437
437
|
};
|
|
438
|
-
return (i, u) => t.hasFormItem ? (N(),
|
|
438
|
+
return (i, u) => t.hasFormItem ? (N(), J(V(o), pe({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: r,
|
|
@@ -469,7 +469,7 @@ const Ke = /* @__PURE__ */ X({
|
|
|
469
469
|
p();
|
|
470
470
|
async function v(f) {
|
|
471
471
|
if (["cascader", "checkbox", "select", "radio"].includes(f.type) && f.componentProps.dynamicId && t.sourceDateUrl) {
|
|
472
|
-
const
|
|
472
|
+
const S = (await we({
|
|
473
473
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
474
474
|
url: t.sourceDateUrl,
|
|
475
475
|
method: "get",
|
|
@@ -477,30 +477,30 @@ const Ke = /* @__PURE__ */ X({
|
|
|
477
477
|
id: f.componentProps.dynamicId
|
|
478
478
|
}
|
|
479
479
|
})).data.data;
|
|
480
|
-
let
|
|
481
|
-
url:
|
|
482
|
-
method:
|
|
483
|
-
data: JSON.parse(
|
|
484
|
-
params: JSON.parse(
|
|
485
|
-
headers: JSON.parse(
|
|
480
|
+
let C = await we({
|
|
481
|
+
url: S.url,
|
|
482
|
+
method: S.method,
|
|
483
|
+
data: JSON.parse(S.body),
|
|
484
|
+
params: JSON.parse(S.params),
|
|
485
|
+
headers: JSON.parse(S.headers)
|
|
486
486
|
});
|
|
487
|
-
if (
|
|
488
|
-
const
|
|
489
|
-
f.componentProps.options = d(
|
|
487
|
+
if (S && (S != null && S.dataPath)) {
|
|
488
|
+
const ke = S.dataPath.split(".").reduce((xe, Ce) => xe[Ce], C.data);
|
|
489
|
+
f.componentProps.options = d(ke, S.dataKey, S.dataValue);
|
|
490
490
|
} else
|
|
491
|
-
f.componentProps.options = d(
|
|
491
|
+
f.componentProps.options = d(C.data, S.dataKey, S.dataValue);
|
|
492
492
|
return f;
|
|
493
493
|
}
|
|
494
494
|
return f;
|
|
495
495
|
}
|
|
496
|
-
function d(f,
|
|
497
|
-
return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((
|
|
498
|
-
label:
|
|
499
|
-
value:
|
|
500
|
-
children: d(
|
|
496
|
+
function d(f, k, P) {
|
|
497
|
+
return f && Object.prototype.toString.call(f) === "[object Array]" ? f.map((S) => S.children && S.children.length ? {
|
|
498
|
+
label: S[k],
|
|
499
|
+
value: S[P] + "",
|
|
500
|
+
children: d(S.children, k, P)
|
|
501
501
|
} : {
|
|
502
|
-
label:
|
|
503
|
-
value:
|
|
502
|
+
label: S[k],
|
|
503
|
+
value: S[P] + ""
|
|
504
504
|
}) : [];
|
|
505
505
|
}
|
|
506
506
|
R(
|
|
@@ -520,36 +520,36 @@ const Ke = /* @__PURE__ */ X({
|
|
|
520
520
|
F.value = f;
|
|
521
521
|
}, y = _e();
|
|
522
522
|
Object.keys(y).length && U("nodeAttrs", y);
|
|
523
|
-
const
|
|
524
|
-
var f,
|
|
525
|
-
return (f = s.componentProps) != null && f.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((
|
|
523
|
+
const b = Pe(null), x = L(() => {
|
|
524
|
+
var f, k;
|
|
525
|
+
return (f = s.componentProps) != null && f.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((k = s.show) == null ? void 0 : k.call(s, { values: r })) ?? !0;
|
|
526
526
|
}), D = L(() => {
|
|
527
|
-
var
|
|
528
|
-
const f = x.value && ((
|
|
529
|
-
...
|
|
530
|
-
validator:
|
|
527
|
+
var S;
|
|
528
|
+
const f = x.value && ((S = s.rules) == null ? void 0 : S.map((C) => ({
|
|
529
|
+
...C,
|
|
530
|
+
validator: C.validator && i.funcs.value[C.validator]
|
|
531
531
|
// 自定义校验函数
|
|
532
532
|
})));
|
|
533
|
-
let
|
|
534
|
-
t.ruleField ?
|
|
535
|
-
const
|
|
533
|
+
let k = s.field;
|
|
534
|
+
t.ruleField ? k = t.ruleField : w && s.field && (k = T(w), k.push(s.field));
|
|
535
|
+
const P = {
|
|
536
536
|
...s,
|
|
537
537
|
rules: f,
|
|
538
538
|
rule: f,
|
|
539
|
-
field:
|
|
539
|
+
field: k
|
|
540
540
|
};
|
|
541
|
-
return
|
|
542
|
-
}),
|
|
543
|
-
var
|
|
544
|
-
const f = ((
|
|
545
|
-
return s.on && Object.keys(s.on).forEach((
|
|
546
|
-
|
|
541
|
+
return P.children && delete P.children, P;
|
|
542
|
+
}), _ = L(() => {
|
|
543
|
+
var P, S;
|
|
544
|
+
const f = ((P = O.value) == null ? void 0 : P.bindModel) ?? "modelValue", k = {};
|
|
545
|
+
return s.on && Object.keys(s.on).forEach((C) => {
|
|
546
|
+
k[`on${Le(C)}`] = (...ye) => i.doActions(s.on[C], ...ye);
|
|
547
547
|
}), {
|
|
548
548
|
...t,
|
|
549
549
|
...s.componentProps,
|
|
550
|
-
disabled: (u == null ? void 0 : u.value) || ((
|
|
550
|
+
disabled: (u == null ? void 0 : u.value) || ((S = s.componentProps) == null ? void 0 : S.disabled),
|
|
551
551
|
bindModel: f,
|
|
552
|
-
...
|
|
552
|
+
...k
|
|
553
553
|
};
|
|
554
554
|
}), O = L(() => $.getComponentConfingByType(s.type) ?? null);
|
|
555
555
|
le(() => {
|
|
@@ -567,26 +567,26 @@ const Ke = /* @__PURE__ */ X({
|
|
|
567
567
|
{ immediate: !0 }
|
|
568
568
|
);
|
|
569
569
|
function I() {
|
|
570
|
-
var
|
|
570
|
+
var k;
|
|
571
571
|
const f = E.value || o;
|
|
572
|
-
s.id && f && (s.input && (f.setValue = g, f.getValue = () => r[s.field] || t.modelValue), f.setAttr = (
|
|
572
|
+
s.id && f && (s.input && (f.setValue = g, f.getValue = () => r[s.field] || t.modelValue), f.setAttr = (P, S) => (s.componentProps || (s.componentProps = {}), s.componentProps[P] = S), f.getAttr = (P) => s.componentProps[P], i.addComponentInstance(s.id, f), (k = O.value) != null && k.defaultSchema.input && s.noFormItem !== !0 && F.value && i.addComponentInstance(s.id + "formItem", F.value));
|
|
573
573
|
}
|
|
574
574
|
function te() {
|
|
575
575
|
var f;
|
|
576
576
|
s.id && (i.removeComponentInstance(s.id), (f = O.value) != null && f.defaultSchema.input && s.noFormItem !== !0 && i.removeComponentInstance(s.id + "formItem"));
|
|
577
577
|
}
|
|
578
578
|
async function q() {
|
|
579
|
-
var
|
|
580
|
-
if (s = await v(s), typeof ((
|
|
581
|
-
const
|
|
582
|
-
g(T(
|
|
579
|
+
var k, P, S;
|
|
580
|
+
if (s = await v(s), typeof ((k = s.componentProps) == null ? void 0 : k.defaultValue) < "u") {
|
|
581
|
+
const C = i.isDesignMode.value ? (P = s.componentProps) == null ? void 0 : P.defaultValue : r[s.field] ?? ((S = s.componentProps) == null ? void 0 : S.defaultValue);
|
|
582
|
+
g(T(C));
|
|
583
583
|
}
|
|
584
584
|
if (s.type === "slot") {
|
|
585
|
-
const
|
|
586
|
-
if (!
|
|
587
|
-
|
|
585
|
+
const C = s.slotName;
|
|
586
|
+
if (!C) return;
|
|
587
|
+
b.value = X({
|
|
588
588
|
setup() {
|
|
589
|
-
return () => B(l,
|
|
589
|
+
return () => B(l, C, {
|
|
590
590
|
componentSchema: s,
|
|
591
591
|
model: r
|
|
592
592
|
});
|
|
@@ -600,10 +600,10 @@ const Ke = /* @__PURE__ */ X({
|
|
|
600
600
|
return;
|
|
601
601
|
}
|
|
602
602
|
if (typeof f == "function") {
|
|
603
|
-
const
|
|
604
|
-
|
|
603
|
+
const C = await f();
|
|
604
|
+
b.value = C.default ?? C;
|
|
605
605
|
} else
|
|
606
|
-
|
|
606
|
+
b.value = f;
|
|
607
607
|
}
|
|
608
608
|
function g(f) {
|
|
609
609
|
c("update:modelValue", f), c("change", f), s.field && (r[s.field] = f), ae.emit("updateformData" + t.id, r);
|
|
@@ -615,7 +615,7 @@ const Ke = /* @__PURE__ */ X({
|
|
|
615
615
|
return R(
|
|
616
616
|
() => s,
|
|
617
617
|
async (f) => {
|
|
618
|
-
const
|
|
618
|
+
const k = JSON.stringify({
|
|
619
619
|
...f,
|
|
620
620
|
children: void 0,
|
|
621
621
|
componentProps: {
|
|
@@ -623,39 +623,39 @@ const Ke = /* @__PURE__ */ X({
|
|
|
623
623
|
options: null
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
|
-
if (
|
|
626
|
+
if (k === ne)
|
|
627
627
|
return !1;
|
|
628
|
-
ne =
|
|
628
|
+
ne = k, q();
|
|
629
629
|
},
|
|
630
630
|
{
|
|
631
631
|
immediate: !0,
|
|
632
632
|
deep: !0
|
|
633
633
|
}
|
|
634
|
-
),
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
return
|
|
634
|
+
), be(te), (f, k) => {
|
|
635
|
+
var S;
|
|
636
|
+
const P = Oe("ENode");
|
|
637
|
+
return b.value && x.value ? (N(), J(Ke, {
|
|
638
638
|
key: 0,
|
|
639
|
-
hasFormItem: V(s).noFormItem !== !0 && ((
|
|
639
|
+
hasFormItem: V(s).noFormItem !== !0 && ((S = O.value) == null ? void 0 : S.defaultSchema.input),
|
|
640
640
|
formItemProps: D.value,
|
|
641
641
|
onUpdateFormItemRef: m
|
|
642
642
|
}, {
|
|
643
643
|
default: M(() => [
|
|
644
|
-
(N(),
|
|
644
|
+
(N(), J(Ve(b.value), pe({
|
|
645
645
|
ref_key: "componentInstance",
|
|
646
646
|
ref: E,
|
|
647
647
|
onVnodeMounted: I,
|
|
648
648
|
model: V(r)
|
|
649
|
-
}, { ...
|
|
650
|
-
[
|
|
651
|
-
["onUpdate:" +
|
|
652
|
-
[`onUpdate:${
|
|
649
|
+
}, { ..._.value }, {
|
|
650
|
+
[_.value.bindModel]: n.value,
|
|
651
|
+
["onUpdate:" + _.value.bindModel]: k[0] || (k[0] = (C) => n.value = C),
|
|
652
|
+
[`onUpdate:${_.value.bindModel}` || ""]: g,
|
|
653
653
|
"onUpdate:dynamicId": W
|
|
654
654
|
}), {
|
|
655
|
-
node: M((
|
|
656
|
-
|
|
655
|
+
node: M((C) => [
|
|
656
|
+
z(P, pe({
|
|
657
657
|
id: t.id
|
|
658
|
-
},
|
|
658
|
+
}, C, {
|
|
659
659
|
sourceDateUrl: t.sourceDateUrl
|
|
660
660
|
}), null, 16, ["id", "sourceDateUrl"])
|
|
661
661
|
]),
|
|
@@ -666,7 +666,7 @@ const Ke = /* @__PURE__ */ X({
|
|
|
666
666
|
}, 16, ["model"]))
|
|
667
667
|
]),
|
|
668
668
|
_: 3
|
|
669
|
-
}, 8, ["hasFormItem", "formItemProps"])) :
|
|
669
|
+
}, 8, ["hasFormItem", "formItemProps"])) : Se("", !0);
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
});
|
|
@@ -768,8 +768,8 @@ const Ge = {
|
|
|
768
768
|
() => c.formData,
|
|
769
769
|
(D) => {
|
|
770
770
|
if (D) {
|
|
771
|
-
let
|
|
772
|
-
w(
|
|
771
|
+
let _ = m(D);
|
|
772
|
+
console.log("%c [ data1 ]-79", "font-size:13px; background:pink; color:#bf2c9f;", _), w(_);
|
|
773
773
|
}
|
|
774
774
|
},
|
|
775
775
|
{
|
|
@@ -778,16 +778,16 @@ const Ge = {
|
|
|
778
778
|
}
|
|
779
779
|
);
|
|
780
780
|
function F(D) {
|
|
781
|
-
let
|
|
781
|
+
let _ = [];
|
|
782
782
|
return D.forEach((O) => {
|
|
783
|
-
O.children && (
|
|
784
|
-
}),
|
|
783
|
+
O.children && (_ = [..._, ...F(O.children)]), _.push(O);
|
|
784
|
+
}), _;
|
|
785
785
|
}
|
|
786
786
|
function m(D) {
|
|
787
|
-
let
|
|
788
|
-
return Object.keys(D).forEach((O) => {
|
|
787
|
+
let _ = F(c.pageSchema.schemas[0].children);
|
|
788
|
+
return console.log("%c [ res ]-100", "font-size:13px; background:pink; color:#bf2c9f;", _), Object.keys(D).forEach((O) => {
|
|
789
789
|
var q, g, W, ne, f;
|
|
790
|
-
const I =
|
|
790
|
+
const I = _.find((k) => k.field === O), te = ["datetimerange", "daterange", "monthrange", "dates"];
|
|
791
791
|
(I && (I == null ? void 0 : I.type) === "checkbox" || (I == null ? void 0 : I.type) === "select" && ((q = I == null ? void 0 : I.componentProps) != null && q.multiple) || (I == null ? void 0 : I.type) === "cascader" && ((W = (g = I == null ? void 0 : I.componentProps) == null ? void 0 : g.props) != null && W.multiple) || (I == null ? void 0 : I.type) === "date" && te.includes((ne = I == null ? void 0 : I.componentProps) == null ? void 0 : ne.type)) && typeof D[O] == "string" && (D[O] = (f = D[O]) == null ? void 0 : f.split(","));
|
|
792
792
|
}), D;
|
|
793
793
|
}
|
|
@@ -803,10 +803,10 @@ const Ge = {
|
|
|
803
803
|
"disabled",
|
|
804
804
|
L(() => c.disabled)
|
|
805
805
|
);
|
|
806
|
-
const y = se(),
|
|
806
|
+
const y = se(), b = y == null ? void 0 : y.proxy;
|
|
807
807
|
function x() {
|
|
808
808
|
ee(() => {
|
|
809
|
-
r.value = !0, n("ready", l),
|
|
809
|
+
r.value = !0, n("ready", l), b && l.addComponentInstance("builder", b);
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
812
|
return ae.on("updateformData" + c.id, (D) => {
|
|
@@ -821,13 +821,13 @@ const Ge = {
|
|
|
821
821
|
setForms: v,
|
|
822
822
|
validateAll: d,
|
|
823
823
|
getFormInstance: p
|
|
824
|
-
}), (D,
|
|
824
|
+
}), (D, _) => V($).initialized.value ? (N(), J(De, {
|
|
825
825
|
key: 1,
|
|
826
826
|
onResolve: x
|
|
827
827
|
}, {
|
|
828
828
|
default: M(() => [
|
|
829
829
|
H("div", Qe, [
|
|
830
|
-
(N(!0), me(Me, null, Re(E.schemas, (O, I) => (N(),
|
|
830
|
+
(N(!0), me(Me, null, Re(E.schemas, (O, I) => (N(), J(V(qe), {
|
|
831
831
|
id: c.id,
|
|
832
832
|
key: I,
|
|
833
833
|
sourceDateUrl: c.sourceDateUrl,
|
|
@@ -837,7 +837,7 @@ const Ge = {
|
|
|
837
837
|
]),
|
|
838
838
|
fallback: M(() => [
|
|
839
839
|
H("div", Ye, [
|
|
840
|
-
|
|
840
|
+
z(V(t))
|
|
841
841
|
])
|
|
842
842
|
]),
|
|
843
843
|
_: 1
|
|
@@ -1033,20 +1033,20 @@ function Lt(e, a, o, t = {}) {
|
|
|
1033
1033
|
v ? v(y) && p(c, y) : p(c, y);
|
|
1034
1034
|
};
|
|
1035
1035
|
if (u) {
|
|
1036
|
-
const y = F(),
|
|
1036
|
+
const y = F(), b = A(y);
|
|
1037
1037
|
let x = !1;
|
|
1038
1038
|
return R(
|
|
1039
1039
|
() => e[a],
|
|
1040
1040
|
(D) => {
|
|
1041
|
-
x || (x = !0,
|
|
1041
|
+
x || (x = !0, b.value = E(D), ee(() => x = !1));
|
|
1042
1042
|
}
|
|
1043
1043
|
), R(
|
|
1044
|
-
|
|
1044
|
+
b,
|
|
1045
1045
|
(D) => {
|
|
1046
1046
|
!x && (D !== e[a] || h) && m(D);
|
|
1047
1047
|
},
|
|
1048
1048
|
{ deep: h }
|
|
1049
|
-
),
|
|
1049
|
+
), b;
|
|
1050
1050
|
} else
|
|
1051
1051
|
return L({
|
|
1052
1052
|
get() {
|
|
@@ -1057,7 +1057,7 @@ function Lt(e, a, o, t = {}) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
});
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function zt() {
|
|
1061
1061
|
const { isDark: e } = ue(), a = lt(e);
|
|
1062
1062
|
return {
|
|
1063
1063
|
isDark: e,
|
|
@@ -1092,7 +1092,7 @@ function vt(e) {
|
|
|
1092
1092
|
o.observe(a, {
|
|
1093
1093
|
attributes: !0,
|
|
1094
1094
|
attributeFilter: ["class"]
|
|
1095
|
-
}),
|
|
1095
|
+
}), be(() => {
|
|
1096
1096
|
o.disconnect();
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
@@ -1124,7 +1124,7 @@ function gt() {
|
|
|
1124
1124
|
o.value = !1;
|
|
1125
1125
|
}), { pressSpace: e, pressShift: a, pressCtrl: o };
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1127
|
+
function Jt(e) {
|
|
1128
1128
|
const { pressSpace: a } = ue(), o = new Image(1, 1);
|
|
1129
1129
|
o.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
|
|
1130
1130
|
let t = 0, n = 0;
|
|
@@ -1172,7 +1172,7 @@ function Ht(e, a = 16.66) {
|
|
|
1172
1172
|
stopTimedQuery: n
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
const wt = { class: "min-w-750px rounded" },
|
|
1175
|
+
const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ X({
|
|
1176
1176
|
__name: "index",
|
|
1177
1177
|
setup(e, { expose: a }) {
|
|
1178
1178
|
const o = $.getComponent("monacoEditor"), t = $.getComponent("modal"), n = A(null), r = A(!1), l = A(!1), i = A({}), u = Z("pageSchema"), w = A(null), h = A("");
|
|
@@ -1202,7 +1202,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, b
|
|
|
1202
1202
|
}
|
|
1203
1203
|
return a({
|
|
1204
1204
|
handleOpen: d
|
|
1205
|
-
}), (c, E) => (N(),
|
|
1205
|
+
}), (c, E) => (N(), J(V(t), {
|
|
1206
1206
|
modelValue: r.value,
|
|
1207
1207
|
"onUpdate:modelValue": E[1] || (E[1] = (F) => r.value = F),
|
|
1208
1208
|
title: "预览",
|
|
@@ -1214,13 +1214,13 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, b
|
|
|
1214
1214
|
}, {
|
|
1215
1215
|
default: M(() => [
|
|
1216
1216
|
H("div", wt, [
|
|
1217
|
-
(N(),
|
|
1217
|
+
(N(), J(V(Xe), {
|
|
1218
1218
|
key: h.value,
|
|
1219
1219
|
ref_key: "kb",
|
|
1220
1220
|
ref: w,
|
|
1221
1221
|
"page-schema": V(u)
|
|
1222
1222
|
}, null, 8, ["page-schema"])),
|
|
1223
|
-
|
|
1223
|
+
z(V(t), {
|
|
1224
1224
|
modelValue: l.value,
|
|
1225
1225
|
"onUpdate:modelValue": E[0] || (E[0] = (F) => l.value = F),
|
|
1226
1226
|
title: "表单数据",
|
|
@@ -1230,8 +1230,8 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, b
|
|
|
1230
1230
|
onOk: s
|
|
1231
1231
|
}, {
|
|
1232
1232
|
default: M(() => [
|
|
1233
|
-
H("div",
|
|
1234
|
-
|
|
1233
|
+
H("div", bt, [
|
|
1234
|
+
z(V(o), {
|
|
1235
1235
|
ref_key: "monacoEditorRef",
|
|
1236
1236
|
ref: n,
|
|
1237
1237
|
autoToggleTheme: "",
|
|
@@ -1274,7 +1274,7 @@ const wt = { class: "min-w-750px rounded" }, St = { class: "h-full rounded" }, b
|
|
|
1274
1274
|
"updateSourceData"
|
|
1275
1275
|
],
|
|
1276
1276
|
setup(e, { expose: a, emit: o }) {
|
|
1277
|
-
const t = Q(() => import("./index-C-XUgjda.js")), n = Q(() => import("./index-ASoFJnMl.js")), r = Q(() => import("./index-
|
|
1277
|
+
const t = Q(() => import("./index-C-XUgjda.js")), n = Q(() => import("./index-ASoFJnMl.js")), r = Q(() => import("./index-I369bEhX.js")), l = Q(() => import("./index-ooVzYa5L.js")), i = Q(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), h = e;
|
|
1278
1278
|
let s = {
|
|
1279
1279
|
schemas: [
|
|
1280
1280
|
{
|
|
@@ -1363,7 +1363,7 @@ defineExpose({
|
|
|
1363
1363
|
c.schemas = T(s.schemas), m(c.schemas[0]), w.push(c.schemas, "初始化撤销功能");
|
|
1364
1364
|
}
|
|
1365
1365
|
async function m(g = c.schemas[0]) {
|
|
1366
|
-
p.checkedNode = g, p.matched =
|
|
1366
|
+
p.checkedNode = g, p.matched = ze(c.schemas, g.id);
|
|
1367
1367
|
}
|
|
1368
1368
|
async function y(g = null) {
|
|
1369
1369
|
var W;
|
|
@@ -1373,7 +1373,7 @@ defineExpose({
|
|
|
1373
1373
|
return !1;
|
|
1374
1374
|
p.hoverNode = g;
|
|
1375
1375
|
}
|
|
1376
|
-
function
|
|
1376
|
+
function b() {
|
|
1377
1377
|
ee(() => {
|
|
1378
1378
|
v("ready", { pageManager: u });
|
|
1379
1379
|
});
|
|
@@ -1384,7 +1384,7 @@ defineExpose({
|
|
|
1384
1384
|
function D(g) {
|
|
1385
1385
|
K(c, T(g));
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function _() {
|
|
1388
1388
|
return ge(c);
|
|
1389
1389
|
}
|
|
1390
1390
|
function O() {
|
|
@@ -1402,18 +1402,18 @@ defineExpose({
|
|
|
1402
1402
|
return F(), a({
|
|
1403
1403
|
revoke: w,
|
|
1404
1404
|
setData: D,
|
|
1405
|
-
getData:
|
|
1405
|
+
getData: _,
|
|
1406
1406
|
reset: O,
|
|
1407
1407
|
preview: q
|
|
1408
|
-
}), (g, W) => V($).initialized.value ? (N(),
|
|
1408
|
+
}), (g, W) => V($).initialized.value ? (N(), J(De, {
|
|
1409
1409
|
key: 1,
|
|
1410
|
-
onResolve:
|
|
1410
|
+
onResolve: b
|
|
1411
1411
|
}, {
|
|
1412
1412
|
default: M(() => [
|
|
1413
1413
|
H("div", At, [
|
|
1414
1414
|
H("div", Et, [
|
|
1415
1415
|
B(g.$slots, "header", {}, () => [
|
|
1416
|
-
h.hiddenHeader ?
|
|
1416
|
+
h.hiddenHeader ? Se("", !0) : (N(), J(V(t), {
|
|
1417
1417
|
key: 0,
|
|
1418
1418
|
onPreview: q,
|
|
1419
1419
|
onSave: I
|
|
@@ -1443,11 +1443,11 @@ defineExpose({
|
|
|
1443
1443
|
H("div", {
|
|
1444
1444
|
class: Te(["epic-split-view-container", { "hidden-header": g.hiddenHeader }])
|
|
1445
1445
|
}, [
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1446
|
+
z(V(n)),
|
|
1447
|
+
z(V(r)),
|
|
1448
|
+
z(V(l))
|
|
1449
1449
|
], 2),
|
|
1450
|
-
|
|
1450
|
+
z(St, {
|
|
1451
1451
|
ref_key: "previewRef",
|
|
1452
1452
|
ref: d
|
|
1453
1453
|
}, null, 512)
|
|
@@ -1455,14 +1455,14 @@ defineExpose({
|
|
|
1455
1455
|
]),
|
|
1456
1456
|
fallback: M(() => [
|
|
1457
1457
|
H("div", It, [
|
|
1458
|
-
|
|
1458
|
+
z(V(i))
|
|
1459
1459
|
])
|
|
1460
1460
|
]),
|
|
1461
1461
|
_: 3
|
|
1462
1462
|
})) : (N(), me("div", Dt));
|
|
1463
1463
|
}
|
|
1464
|
-
}),
|
|
1465
|
-
component: async () => await import("./index-
|
|
1464
|
+
}), kt = {
|
|
1465
|
+
component: async () => await import("./index-CfqYk0Cm.js"),
|
|
1466
1466
|
defaultSchema: {
|
|
1467
1467
|
label: "代码编辑器",
|
|
1468
1468
|
type: "monacoEditor",
|
|
@@ -1511,12 +1511,12 @@ defineExpose({
|
|
|
1511
1511
|
]
|
|
1512
1512
|
}
|
|
1513
1513
|
};
|
|
1514
|
-
function
|
|
1515
|
-
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-
|
|
1514
|
+
function Ct(e) {
|
|
1515
|
+
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-AT5ltRGN.js")), e.component("EActionEditor", async () => await import("./index-XbBcyR0q.js")), e.component("ERuleEditor", async () => await import("./index-QWJHIAu8.js")), e.component("EOptionsEditor", async () => await import("./index-CF3fYMNt.js")), e.component("ENode", async () => await import("./index-D7xfe3p6.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
|
|
1516
1516
|
id: "component_view",
|
|
1517
1517
|
title: "组件",
|
|
1518
1518
|
icon: "icon--epic--extension-outline",
|
|
1519
|
-
component: async () => await import("./index-
|
|
1519
|
+
component: async () => await import("./index-DluF22Iv.js")
|
|
1520
1520
|
}), e.registerActivitybar({
|
|
1521
1521
|
id: "outline_view",
|
|
1522
1522
|
title: "大纲",
|
|
@@ -1525,18 +1525,18 @@ function kt(e) {
|
|
|
1525
1525
|
}), e.registerRightSidebar({
|
|
1526
1526
|
id: "attribute_view",
|
|
1527
1527
|
title: "属性",
|
|
1528
|
-
component: async () => await import("./attributeView-
|
|
1528
|
+
component: async () => await import("./attributeView-BuU8Ajxc.js")
|
|
1529
1529
|
}), e.registerRightSidebar({
|
|
1530
1530
|
id: "style_view",
|
|
1531
1531
|
title: "样式",
|
|
1532
|
-
component: async () => await import("./styleView-
|
|
1533
|
-
}), [
|
|
1532
|
+
component: async () => await import("./styleView-3R3fJCVy.js")
|
|
1533
|
+
}), [kt, xt].forEach((o) => {
|
|
1534
1534
|
e.registerComponent(o);
|
|
1535
1535
|
});
|
|
1536
1536
|
}
|
|
1537
|
-
|
|
1537
|
+
Ct($);
|
|
1538
1538
|
export {
|
|
1539
|
-
|
|
1539
|
+
Je as A,
|
|
1540
1540
|
re as B,
|
|
1541
1541
|
We as C,
|
|
1542
1542
|
oe as D,
|
|
@@ -1550,7 +1550,7 @@ export {
|
|
|
1550
1550
|
pt as b,
|
|
1551
1551
|
Nt as c,
|
|
1552
1552
|
K as d,
|
|
1553
|
-
|
|
1553
|
+
Jt as e,
|
|
1554
1554
|
$t as f,
|
|
1555
1555
|
Ot as g,
|
|
1556
1556
|
Tt as h,
|
|
@@ -1561,7 +1561,7 @@ export {
|
|
|
1561
1561
|
T as m,
|
|
1562
1562
|
Lt as n,
|
|
1563
1563
|
Vt as o,
|
|
1564
|
-
|
|
1564
|
+
zt as p,
|
|
1565
1565
|
Xe as q,
|
|
1566
1566
|
Kt as r,
|
|
1567
1567
|
Ft as s,
|
|
@@ -1570,6 +1570,6 @@ export {
|
|
|
1570
1570
|
He as v,
|
|
1571
1571
|
Ut as w,
|
|
1572
1572
|
Ae as x,
|
|
1573
|
-
|
|
1573
|
+
ze as y,
|
|
1574
1574
|
Mt as z
|
|
1575
1575
|
};
|