epic-designer-gold 0.0.17 → 0.0.18
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-C2nl9iK-.js → attributeView-B9F_UkWB.js} +1 -1
- package/dist/{attributeView-BrU7NVHB.cjs → attributeView-xFHazPhU.cjs} +1 -1
- package/dist/{eventView-pHQ5eBv7.js → eventView-B17FncUM.js} +1 -1
- package/dist/{eventView-D-tRUHfx.cjs → eventView-DcUUt0wC.cjs} +1 -1
- package/dist/{index-C2CpiJ_f.cjs → index-5T_iXdMV.cjs} +1 -1
- package/dist/{index-U9gSTNR0.js → index-BPJ67Apd.js} +1 -1
- package/dist/{index-DQcq_Ryv.cjs → index-BmnjsvG9.cjs} +1 -1
- package/dist/{index-vMiAEdD_.cjs → index-BvgsMQ0r.cjs} +1 -1
- package/dist/{index-3ZgPYrE2.js → index-CBD1g29V.js} +1 -1
- package/dist/{index-Dzbf-pz4.cjs → index-CILvmkry.cjs} +1 -1
- package/dist/{index-D75wUoUt.cjs → index-Cm3Jcpcv.cjs} +1 -1
- package/dist/{index-if6rPeHv.js → index-Cn31n9Ni.js} +1 -1
- package/dist/{index-BkjzhhSi.js → index-CqegmH7K.js} +1 -1
- package/dist/{index-71KHFYJU.js → index-Cs7FieAs.js} +102 -104
- package/dist/index-Cy_xP_CE.js +4 -0
- package/dist/{index-WWXiJl3c.js → index-D38KoL_8.js} +1 -1
- package/dist/{index-BiivAgJZ.cjs → index-D7JjJy3L.cjs} +1 -1
- package/dist/{index-i0m3r1ds.js → index-DJ9FhHey.js} +1 -1
- package/dist/{index-CJGTWlxP.js → index-LveNbnCD.js} +1 -1
- package/dist/{index-hqgOCVG7.cjs → index-QM5lUp_E.cjs} +1 -1
- package/dist/{index-CSoobSpH.cjs → index-X5HbU9iP.cjs} +1 -1
- package/dist/{index-BfSXPeVc.js → index-Z9miUEWt.js} +1 -1
- package/dist/{index-Blo7yEnf.cjs → index-h3vbgf9-.cjs} +1 -1
- package/dist/{index-DKdtKvGH.cjs → index-w0VNJWNM.cjs} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{styleView-yb0Xq3SX.js → styleView-B_GTo5jT.js} +1 -1
- package/dist/{styleView-BKTC8Zam.cjs → styleView-CGX70aZc.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index-me8_Rc_U.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as I, reactive as X, defineComponent as j, openBlock as M, createBlock as z, unref as _, mergeProps as ve, withCtx as P, renderSlot as R, getCurrentInstance as ae, inject as H, watch as O, useAttrs as _e, provide as $, shallowRef as Pe, computed as U, watchEffect as ie, onUnmounted as Ae, resolveComponent as Oe, resolveDynamicComponent as Ve, createVNode as T, createCommentVNode as De, useSlots as Fe, createElementBlock as ye, Suspense as ke, createElementVNode as L, Fragment as Me, renderList as Re, nextTick as te, effectScope as $e, isRef as Ne, getCurrentScope as Be, onScopeDispose as Ue, onMounted as we, normalizeClass as Te, toRaw as Se } from "vue";
|
|
2
2
|
import { p as F, a as ge, l as Y, E as pe } from "./axios-ITY6Uw7A.js";
|
|
3
3
|
function ce(e = 10) {
|
|
4
4
|
const a = "abcdefghijklmnopqrstuvwxyz0123456789";
|
|
@@ -9,7 +9,7 @@ function ce(e = 10) {
|
|
|
9
9
|
}
|
|
10
10
|
return n;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ze(e) {
|
|
13
13
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
14
14
|
}
|
|
15
15
|
function N(e, a = /* @__PURE__ */ new WeakMap()) {
|
|
@@ -46,7 +46,7 @@ function J(e, a, n = !0) {
|
|
|
46
46
|
a.hasOwnProperty(o) || (Array.isArray(e) ? e.splice(Number(o), 1) : delete e[o]);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Ie(e, a, n = [], o = /* @__PURE__ */ new WeakMap()) {
|
|
50
50
|
const t = (r) => {
|
|
51
51
|
if (Array.isArray(r))
|
|
52
52
|
return r.map(t);
|
|
@@ -63,7 +63,7 @@ function ke(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 Le(e, a) {
|
|
67
67
|
const n = [];
|
|
68
68
|
let o = !1;
|
|
69
69
|
function t(r) {
|
|
@@ -267,7 +267,7 @@ function Bt(e, a) {
|
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
269
|
function Ee() {
|
|
270
|
-
const e =
|
|
270
|
+
const e = I({}), a = I({}), n = I(!1), o = I([]), t = X({});
|
|
271
271
|
function r(m) {
|
|
272
272
|
return e.value[m];
|
|
273
273
|
}
|
|
@@ -390,7 +390,7 @@ function Ee() {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
function He() {
|
|
393
|
-
const e =
|
|
393
|
+
const e = I([]), a = I([]), n = I(null);
|
|
394
394
|
let o = 0;
|
|
395
395
|
function t(u, w = "插入组件") {
|
|
396
396
|
const f = Date.now();
|
|
@@ -432,10 +432,10 @@ const Ke = /* @__PURE__ */ j({
|
|
|
432
432
|
},
|
|
433
433
|
emits: ["updateFormItemRef"],
|
|
434
434
|
setup(e, { emit: a }) {
|
|
435
|
-
const n = F.getComponent("form-item"), o = e, t = a, r =
|
|
435
|
+
const n = F.getComponent("form-item"), o = e, t = a, r = I(), l = () => {
|
|
436
436
|
t("updateFormItemRef", r.value);
|
|
437
437
|
};
|
|
438
|
-
return (c, u) => o.hasFormItem ? (M(),
|
|
438
|
+
return (c, u) => o.hasFormItem ? (M(), z(_(n), ve({
|
|
439
439
|
key: 0,
|
|
440
440
|
ref_key: "formItemRef",
|
|
441
441
|
ref: r,
|
|
@@ -461,14 +461,14 @@ const Ke = /* @__PURE__ */ j({
|
|
|
461
461
|
},
|
|
462
462
|
emits: ["update:modelValue", "change", "update:dynamicId"],
|
|
463
463
|
setup(e, { emit: a }) {
|
|
464
|
-
const { proxy: n } = ae(), o = e, t =
|
|
464
|
+
const { proxy: n } = ae(), o = e, t = I(null);
|
|
465
465
|
let r = H("formData", X({}));
|
|
466
466
|
const l = H("slots", {}), c = H("pageManager", {}), u = H("disabled", { value: !1 }), w = H("ruleFieldPrefix", null), f = H("resetFormData", !1);
|
|
467
467
|
let s = X(N(o.componentSchema));
|
|
468
468
|
p();
|
|
469
469
|
async function b(i) {
|
|
470
470
|
if (["cascader", "checkbox", "select", "radio"].includes(i.type) && i.componentProps.dynamicId && o.sourceDateUrl) {
|
|
471
|
-
const
|
|
471
|
+
const k = (await ge({
|
|
472
472
|
// || "http://192.168.28.205:3000/dev-api/data-source
|
|
473
473
|
url: o.sourceDateUrl,
|
|
474
474
|
method: "get",
|
|
@@ -477,22 +477,22 @@ const Ke = /* @__PURE__ */ j({
|
|
|
477
477
|
}
|
|
478
478
|
})).data.data;
|
|
479
479
|
let E = await ge({
|
|
480
|
-
url:
|
|
481
|
-
method:
|
|
482
|
-
data: JSON.parse(
|
|
483
|
-
params: JSON.parse(
|
|
484
|
-
headers: JSON.parse(
|
|
480
|
+
url: k.url,
|
|
481
|
+
method: k.method,
|
|
482
|
+
data: JSON.parse(k.body),
|
|
483
|
+
params: JSON.parse(k.params),
|
|
484
|
+
headers: JSON.parse(k.headers)
|
|
485
485
|
});
|
|
486
|
-
if (
|
|
487
|
-
const G =
|
|
486
|
+
if (k && (k != null && k.dataPath)) {
|
|
487
|
+
const G = k.dataPath.split(".").reduce((Q, Ce) => Q[Ce], E.data);
|
|
488
488
|
i.componentProps.options = d(G).map((Q) => ({
|
|
489
|
-
label: Q[
|
|
490
|
-
value: Q[
|
|
489
|
+
label: Q[k.dataKey],
|
|
490
|
+
value: Q[k.dataValue]
|
|
491
491
|
}));
|
|
492
492
|
} else
|
|
493
493
|
i.componentProps.options = d(E.data).map((W) => ({
|
|
494
|
-
label: W[
|
|
495
|
-
value: W[
|
|
494
|
+
label: W[k.dataKey],
|
|
495
|
+
value: W[k.dataValue]
|
|
496
496
|
}));
|
|
497
497
|
return i;
|
|
498
498
|
}
|
|
@@ -504,7 +504,7 @@ const Ke = /* @__PURE__ */ j({
|
|
|
504
504
|
O(
|
|
505
505
|
() => o.componentSchema,
|
|
506
506
|
(i) => {
|
|
507
|
-
|
|
507
|
+
Ie(s, i, ["children"]) || (J(s, N(i)), p());
|
|
508
508
|
},
|
|
509
509
|
{
|
|
510
510
|
deep: !0
|
|
@@ -514,7 +514,7 @@ const Ke = /* @__PURE__ */ j({
|
|
|
514
514
|
c.isDesignMode.value && typeof s.field == "string" && (s.field += "-design-mode");
|
|
515
515
|
}
|
|
516
516
|
(o.resetFormData || f) && (r = {});
|
|
517
|
-
const v = a, S =
|
|
517
|
+
const v = a, S = I(), A = I(), m = (i) => {
|
|
518
518
|
A.value = i;
|
|
519
519
|
}, g = _e();
|
|
520
520
|
Object.keys(g).length && $("nodeAttrs", g);
|
|
@@ -522,8 +522,8 @@ const Ke = /* @__PURE__ */ j({
|
|
|
522
522
|
var i, C;
|
|
523
523
|
return (i = s.componentProps) != null && i.hidden ? !1 : typeof s.show == "boolean" ? s.show : ((C = s.show) == null ? void 0 : C.call(s, { values: r })) ?? !0;
|
|
524
524
|
}), V = U(() => {
|
|
525
|
-
var
|
|
526
|
-
const i = x.value && ((
|
|
525
|
+
var k;
|
|
526
|
+
const i = x.value && ((k = s.rules) == null ? void 0 : k.map((E) => ({
|
|
527
527
|
...E,
|
|
528
528
|
validator: E.validator && c.funcs.value[E.validator]
|
|
529
529
|
// 自定义校验函数
|
|
@@ -538,14 +538,14 @@ const Ke = /* @__PURE__ */ j({
|
|
|
538
538
|
};
|
|
539
539
|
return D.children && delete D.children, D;
|
|
540
540
|
}), B = U(() => {
|
|
541
|
-
var D,
|
|
541
|
+
var D, k;
|
|
542
542
|
const i = ((D = q.value) == null ? void 0 : D.bindModel) ?? "modelValue", C = {};
|
|
543
543
|
return s.on && Object.keys(s.on).forEach((E) => {
|
|
544
|
-
C[`on${
|
|
544
|
+
C[`on${ze(E)}`] = (...W) => c.doActions(s.on[E], ...W);
|
|
545
545
|
}), {
|
|
546
546
|
...o,
|
|
547
547
|
...s.componentProps,
|
|
548
|
-
disabled: (u == null ? void 0 : u.value) || ((
|
|
548
|
+
disabled: (u == null ? void 0 : u.value) || ((k = s.componentProps) == null ? void 0 : k.disabled),
|
|
549
549
|
bindModel: i,
|
|
550
550
|
...C
|
|
551
551
|
};
|
|
@@ -567,16 +567,16 @@ const Ke = /* @__PURE__ */ j({
|
|
|
567
567
|
function re() {
|
|
568
568
|
var C;
|
|
569
569
|
const i = S.value || n;
|
|
570
|
-
s.id && i && (s.input && (i.setValue = Z, i.getValue = () => r[s.field] || o.modelValue), i.setAttr = (D,
|
|
570
|
+
s.id && i && (s.input && (i.setValue = Z, i.getValue = () => r[s.field] || o.modelValue), i.setAttr = (D, k) => (s.componentProps || (s.componentProps = {}), s.componentProps[D] = k), i.getAttr = (D) => s.componentProps[D], c.addComponentInstance(s.id, i), (C = q.value) != null && C.defaultSchema.input && s.noFormItem !== !0 && A.value && c.addComponentInstance(s.id + "formItem", A.value));
|
|
571
571
|
}
|
|
572
572
|
function se() {
|
|
573
573
|
var i;
|
|
574
574
|
s.id && (c.removeComponentInstance(s.id), (i = q.value) != null && i.defaultSchema.input && s.noFormItem !== !0 && c.removeComponentInstance(s.id + "formItem"));
|
|
575
575
|
}
|
|
576
576
|
async function fe() {
|
|
577
|
-
var C, D,
|
|
577
|
+
var C, D, k;
|
|
578
578
|
if (s = await b(s), typeof ((C = s.componentProps) == null ? void 0 : C.defaultValue) < "u") {
|
|
579
|
-
const E = c.isDesignMode.value ? (D = s.componentProps) == null ? void 0 : D.defaultValue : r[s.field] ?? ((
|
|
579
|
+
const E = c.isDesignMode.value ? (D = s.componentProps) == null ? void 0 : D.defaultValue : r[s.field] ?? ((k = s.componentProps) == null ? void 0 : k.defaultValue);
|
|
580
580
|
Z(N(E));
|
|
581
581
|
}
|
|
582
582
|
if (s.type === "slot") {
|
|
@@ -630,16 +630,16 @@ const Ke = /* @__PURE__ */ j({
|
|
|
630
630
|
deep: !0
|
|
631
631
|
}
|
|
632
632
|
), Ae(se), (i, C) => {
|
|
633
|
-
var
|
|
633
|
+
var k;
|
|
634
634
|
const D = Oe("ENode");
|
|
635
|
-
return h.value && x.value ? (M(),
|
|
635
|
+
return h.value && x.value ? (M(), z(Ke, {
|
|
636
636
|
key: 0,
|
|
637
|
-
hasFormItem: _(s).noFormItem !== !0 && ((
|
|
637
|
+
hasFormItem: _(s).noFormItem !== !0 && ((k = q.value) == null ? void 0 : k.defaultSchema.input),
|
|
638
638
|
formItemProps: V.value,
|
|
639
639
|
onUpdateFormItemRef: m
|
|
640
640
|
}, {
|
|
641
641
|
default: P(() => [
|
|
642
|
-
(M(),
|
|
642
|
+
(M(), z(Ve(h.value), ve({
|
|
643
643
|
ref_key: "componentInstance",
|
|
644
644
|
ref: S,
|
|
645
645
|
onVnodeMounted: re,
|
|
@@ -667,7 +667,7 @@ const Ke = /* @__PURE__ */ j({
|
|
|
667
667
|
}
|
|
668
668
|
});
|
|
669
669
|
function Ze() {
|
|
670
|
-
const e =
|
|
670
|
+
const e = I(!1), a = Ee(), n = I({});
|
|
671
671
|
function o() {
|
|
672
672
|
return new Promise((d) => {
|
|
673
673
|
if (e.value)
|
|
@@ -796,13 +796,13 @@ const Ge = {
|
|
|
796
796
|
setForms: b,
|
|
797
797
|
validateAll: d,
|
|
798
798
|
getFormInstance: p
|
|
799
|
-
}), (h, x) => _(F).initialized.value ? (M(),
|
|
799
|
+
}), (h, x) => _(F).initialized.value ? (M(), z(ke, {
|
|
800
800
|
key: 1,
|
|
801
801
|
onResolve: g
|
|
802
802
|
}, {
|
|
803
803
|
default: P(() => [
|
|
804
|
-
|
|
805
|
-
(M(!0), ye(Me, null, Re(S.schemas, (V, B) => (M(),
|
|
804
|
+
L("div", Qe, [
|
|
805
|
+
(M(!0), ye(Me, null, Re(S.schemas, (V, B) => (M(), z(_(qe), {
|
|
806
806
|
key: B,
|
|
807
807
|
sourceDateUrl: v.sourceDateUrl,
|
|
808
808
|
componentSchema: V
|
|
@@ -810,7 +810,7 @@ const Ge = {
|
|
|
810
810
|
])
|
|
811
811
|
]),
|
|
812
812
|
fallback: P(() => [
|
|
813
|
-
|
|
813
|
+
L("div", Ye, [
|
|
814
814
|
T(_(o))
|
|
815
815
|
])
|
|
816
816
|
]),
|
|
@@ -845,7 +845,7 @@ function lt(e = !1, a = {}) {
|
|
|
845
845
|
const {
|
|
846
846
|
truthyValue: n = !0,
|
|
847
847
|
falsyValue: o = !1
|
|
848
|
-
} = a, t = Ne(e), r =
|
|
848
|
+
} = a, t = Ne(e), r = I(e);
|
|
849
849
|
function l(c) {
|
|
850
850
|
if (arguments.length)
|
|
851
851
|
return r.value = c, r.value;
|
|
@@ -912,7 +912,7 @@ function he(e, a, n = {}) {
|
|
|
912
912
|
return xe(e, a, { ...n, eventName: "keyup" });
|
|
913
913
|
}
|
|
914
914
|
function ut() {
|
|
915
|
-
const e =
|
|
915
|
+
const e = I(!1), a = ae();
|
|
916
916
|
return a && we(() => {
|
|
917
917
|
e.value = !0;
|
|
918
918
|
}, a), e;
|
|
@@ -954,7 +954,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
954
954
|
const { window: o = ue, box: t = "content-box" } = n, r = U(() => {
|
|
955
955
|
var s, b;
|
|
956
956
|
return (b = (s = K(e)) == null ? void 0 : s.namespaceURI) == null ? void 0 : b.includes("svg");
|
|
957
|
-
}), l =
|
|
957
|
+
}), l = I(a.width), c = I(a.height), { stop: u } = pt(
|
|
958
958
|
e,
|
|
959
959
|
([s]) => {
|
|
960
960
|
const b = t === "border-box" ? s.borderBoxSize : t === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
|
|
@@ -991,7 +991,7 @@ function Tt(e, a = { width: 0, height: 0 }, n = {}) {
|
|
|
991
991
|
stop: f
|
|
992
992
|
};
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function zt(e, a, n, o = {}) {
|
|
995
995
|
var t, r, l;
|
|
996
996
|
const {
|
|
997
997
|
clone: c = !1,
|
|
@@ -1007,7 +1007,7 @@ function Lt(e, a, n, o = {}) {
|
|
|
1007
1007
|
b ? b(g) && p(v, g) : p(v, g);
|
|
1008
1008
|
};
|
|
1009
1009
|
if (u) {
|
|
1010
|
-
const g = A(), h =
|
|
1010
|
+
const g = A(), h = I(g);
|
|
1011
1011
|
let x = !1;
|
|
1012
1012
|
return O(
|
|
1013
1013
|
() => e[a],
|
|
@@ -1031,7 +1031,7 @@ function Lt(e, a, n, o = {}) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
|
-
function
|
|
1034
|
+
function Lt() {
|
|
1035
1035
|
const { isDark: e } = de(), a = lt(e);
|
|
1036
1036
|
return {
|
|
1037
1037
|
isDark: e,
|
|
@@ -1039,7 +1039,7 @@ function zt() {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
function mt() {
|
|
1042
|
-
const e =
|
|
1042
|
+
const e = I(!1);
|
|
1043
1043
|
return we(() => {
|
|
1044
1044
|
ht(e), vt(e);
|
|
1045
1045
|
}), O(
|
|
@@ -1071,7 +1071,7 @@ function vt(e) {
|
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
1073
|
function yt() {
|
|
1074
|
-
const e =
|
|
1074
|
+
const e = I(1), a = I(!1), { isDark: n } = mt(), { pressSpace: o, pressShift: t, pressCtrl: r } = gt();
|
|
1075
1075
|
return {
|
|
1076
1076
|
canvasScale: e,
|
|
1077
1077
|
pressSpace: o,
|
|
@@ -1083,7 +1083,7 @@ function yt() {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
const de = je(yt);
|
|
1085
1085
|
function gt() {
|
|
1086
|
-
const e =
|
|
1086
|
+
const e = I(!1), a = I(!1), n = I(!1);
|
|
1087
1087
|
return me(" ", () => {
|
|
1088
1088
|
e.value = !0;
|
|
1089
1089
|
}), he(" ", () => {
|
|
@@ -1149,7 +1149,7 @@ function Ht(e, a = 16.66) {
|
|
|
1149
1149
|
const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, St = /* @__PURE__ */ j({
|
|
1150
1150
|
__name: "index",
|
|
1151
1151
|
setup(e, { expose: a }) {
|
|
1152
|
-
const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t =
|
|
1152
|
+
const n = F.getComponent("monacoEditor"), o = F.getComponent("modal"), t = I(null), r = I(!1), l = I(!1), c = I({}), u = H("pageSchema"), w = I(null), f = I("");
|
|
1153
1153
|
function s() {
|
|
1154
1154
|
l.value = !1;
|
|
1155
1155
|
}
|
|
@@ -1176,7 +1176,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1176
1176
|
}
|
|
1177
1177
|
return a({
|
|
1178
1178
|
handleOpen: d
|
|
1179
|
-
}), (v, S) => (M(),
|
|
1179
|
+
}), (v, S) => (M(), z(_(o), {
|
|
1180
1180
|
modelValue: r.value,
|
|
1181
1181
|
"onUpdate:modelValue": S[1] || (S[1] = (A) => r.value = A),
|
|
1182
1182
|
title: "预览",
|
|
@@ -1187,8 +1187,8 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1187
1187
|
okText: "表单数据"
|
|
1188
1188
|
}, {
|
|
1189
1189
|
default: P(() => [
|
|
1190
|
-
|
|
1191
|
-
(M(),
|
|
1190
|
+
L("div", wt, [
|
|
1191
|
+
(M(), z(_(Xe), {
|
|
1192
1192
|
key: f.value,
|
|
1193
1193
|
ref_key: "kb",
|
|
1194
1194
|
ref: w,
|
|
@@ -1204,7 +1204,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1204
1204
|
onOk: s
|
|
1205
1205
|
}, {
|
|
1206
1206
|
default: P(() => [
|
|
1207
|
-
|
|
1207
|
+
L("div", bt, [
|
|
1208
1208
|
T(_(n), {
|
|
1209
1209
|
ref_key: "monacoEditorRef",
|
|
1210
1210
|
ref: t,
|
|
@@ -1225,7 +1225,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1225
1225
|
}), At = {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
class: "epic-loading-box"
|
|
1228
|
-
}, Dt = { class: "epic-designer-main" },
|
|
1228
|
+
}, Dt = { class: "epic-designer-main" }, kt = { class: "epic-header-container" }, It = { class: "epic-loading-box" }, Kt = /* @__PURE__ */ j({
|
|
1229
1229
|
__name: "designer",
|
|
1230
1230
|
props: {
|
|
1231
1231
|
disabledZoom: { type: Boolean, default: !1 },
|
|
@@ -1248,7 +1248,7 @@ const wt = { class: "min-w-750px rounded" }, bt = { class: "h-full rounded" }, S
|
|
|
1248
1248
|
"updateSourceData"
|
|
1249
1249
|
],
|
|
1250
1250
|
setup(e, { expose: a, emit: n }) {
|
|
1251
|
-
const o = Y(() => import("./index-C-XUgjda.js")), t = Y(() => import("./index-ASoFJnMl.js")), r = Y(() => import("./index-
|
|
1251
|
+
const o = Y(() => import("./index-C-XUgjda.js")), t = Y(() => import("./index-ASoFJnMl.js")), r = Y(() => import("./index-BPJ67Apd.js")), l = Y(() => import("./index-ooVzYa5L.js")), c = Y(() => import("./index-DgcFxYFp.js")), u = Ee(), w = He(), f = e;
|
|
1252
1252
|
let s = {
|
|
1253
1253
|
schemas: [
|
|
1254
1254
|
{
|
|
@@ -1300,45 +1300,43 @@ defineExpose({
|
|
|
1300
1300
|
s = f.defaultSchema;
|
|
1301
1301
|
return;
|
|
1302
1302
|
}
|
|
1303
|
-
console.log("%c [ updateSourceId ]-141", "font-size:13px; background:pink; color:#bf2c9f;", f.updateSourceId), console.log("%c [ source ]-141", "font-size:13px; background:pink; color:#bf2c9f;", f.source), f.source && F.setSourceData(f.source), f.formMode && (s.schemas = F.formSchemas), f.updateSourceId && (s.schemas = await b(s.schemas), console.log(
|
|
1303
|
+
console.log("%c [ updateSourceId ]-141", "font-size:13px; background:pink; color:#bf2c9f;", f.updateSourceId), console.log("%c [ source ]-141", "font-size:13px; background:pink; color:#bf2c9f;", f.source), f.source && F.setSourceData(f.source), f.formMode && (s.schemas = F.formSchemas), console.log("%c [ ]-152", "font-size:13px; background:pink; color:#bf2c9f;", s.schemas), f.updateSourceId && (s.schemas = await b(s.schemas), console.log(
|
|
1304
1304
|
"%c [ innerDefaultSchema.schemas ]-155",
|
|
1305
1305
|
"font-size:13px; background:pink; color:#bf2c9f;",
|
|
1306
1306
|
s.schemas
|
|
1307
1307
|
));
|
|
1308
1308
|
});
|
|
1309
1309
|
async function b(y) {
|
|
1310
|
-
return
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
})
|
|
1335
|
-
);
|
|
1310
|
+
return y.map(async (i) => {
|
|
1311
|
+
if (console.log("%c [ el ]-165", "font-size:13px; background:pink; color:#bf2c9f;", i), i && i.children && i.children.length && b(i.children), ["cascader", "checkbox", "select", "radio"].includes(i.type) && i.componentProps.dynamicId && f.updateSourceId === i.componentProps.dynamicId) {
|
|
1312
|
+
const D = f.source.find((E) => E.id === f.updateSourceId);
|
|
1313
|
+
let k = await ge({
|
|
1314
|
+
url: D.url,
|
|
1315
|
+
method: D.method,
|
|
1316
|
+
data: JSON.parse(D.body),
|
|
1317
|
+
params: JSON.parse(D.params),
|
|
1318
|
+
headers: JSON.parse(D.headers)
|
|
1319
|
+
});
|
|
1320
|
+
if (D && (D != null && D.dataPath)) {
|
|
1321
|
+
const W = D.dataPath.split(".").reduce((G, Q) => G[Q], k.data);
|
|
1322
|
+
i.componentProps.options = d(W).map((G) => ({
|
|
1323
|
+
label: G[D.dataKey],
|
|
1324
|
+
value: G[D.dataValue]
|
|
1325
|
+
}));
|
|
1326
|
+
} else
|
|
1327
|
+
i.componentProps.options = d(k.data).map((E) => ({
|
|
1328
|
+
label: E[D.dataKey],
|
|
1329
|
+
value: E[D.dataValue]
|
|
1330
|
+
}));
|
|
1331
|
+
}
|
|
1332
|
+
return i;
|
|
1333
|
+
});
|
|
1336
1334
|
}
|
|
1337
1335
|
function d(y) {
|
|
1338
1336
|
return y && Object.prototype.toString.call(y) === "[object Array]" ? y : [];
|
|
1339
1337
|
}
|
|
1340
1338
|
u.setDesignMode(), u.setDefaultComponentIds(s.schemas);
|
|
1341
|
-
const p = n, v =
|
|
1339
|
+
const p = n, v = I(null), S = X({
|
|
1342
1340
|
checkedNode: null,
|
|
1343
1341
|
hoverNode: null,
|
|
1344
1342
|
disableHover: !1,
|
|
@@ -1373,7 +1371,7 @@ defineExpose({
|
|
|
1373
1371
|
A.schemas = N(s.schemas), h(A.schemas[0]), w.push(A.schemas, "初始化撤销功能");
|
|
1374
1372
|
}
|
|
1375
1373
|
async function h(y = A.schemas[0]) {
|
|
1376
|
-
S.checkedNode = y, S.matched =
|
|
1374
|
+
S.checkedNode = y, S.matched = Le(A.schemas, y.id);
|
|
1377
1375
|
}
|
|
1378
1376
|
async function x(y = null) {
|
|
1379
1377
|
var i;
|
|
@@ -1398,7 +1396,7 @@ defineExpose({
|
|
|
1398
1396
|
return Se(A);
|
|
1399
1397
|
}
|
|
1400
1398
|
function se() {
|
|
1401
|
-
|
|
1399
|
+
Ie(A.schemas, s.schemas) && A.script === s.script || (J(A.schemas, s.schemas), A.script = s.script, h(A.schemas[0]), w.push(A.schemas, "重置操作"), p("reset", A));
|
|
1402
1400
|
}
|
|
1403
1401
|
function fe() {
|
|
1404
1402
|
p("save", Se(A));
|
|
@@ -1415,15 +1413,15 @@ defineExpose({
|
|
|
1415
1413
|
getData: re,
|
|
1416
1414
|
reset: se,
|
|
1417
1415
|
preview: le
|
|
1418
|
-
}), (y, i) => _(F).initialized.value ? (M(),
|
|
1416
|
+
}), (y, i) => _(F).initialized.value ? (M(), z(ke, {
|
|
1419
1417
|
key: 1,
|
|
1420
1418
|
onResolve: V
|
|
1421
1419
|
}, {
|
|
1422
1420
|
default: P(() => [
|
|
1423
|
-
|
|
1424
|
-
|
|
1421
|
+
L("div", Dt, [
|
|
1422
|
+
L("div", kt, [
|
|
1425
1423
|
R(y.$slots, "header", {}, () => [
|
|
1426
|
-
f.hiddenHeader ? De("", !0) : (M(),
|
|
1424
|
+
f.hiddenHeader ? De("", !0) : (M(), z(_(o), {
|
|
1427
1425
|
key: 0,
|
|
1428
1426
|
onPreview: le,
|
|
1429
1427
|
onSave: fe
|
|
@@ -1450,7 +1448,7 @@ defineExpose({
|
|
|
1450
1448
|
}))
|
|
1451
1449
|
])
|
|
1452
1450
|
]),
|
|
1453
|
-
|
|
1451
|
+
L("div", {
|
|
1454
1452
|
class: Te(["epic-split-view-container", { "hidden-header": y.hiddenHeader }])
|
|
1455
1453
|
}, [
|
|
1456
1454
|
T(_(t)),
|
|
@@ -1464,7 +1462,7 @@ defineExpose({
|
|
|
1464
1462
|
])
|
|
1465
1463
|
]),
|
|
1466
1464
|
fallback: P(() => [
|
|
1467
|
-
|
|
1465
|
+
L("div", It, [
|
|
1468
1466
|
T(_(c))
|
|
1469
1467
|
])
|
|
1470
1468
|
]),
|
|
@@ -1472,7 +1470,7 @@ defineExpose({
|
|
|
1472
1470
|
})) : (M(), ye("div", At));
|
|
1473
1471
|
}
|
|
1474
1472
|
}), Et = {
|
|
1475
|
-
component: async () => await import("./index-
|
|
1473
|
+
component: async () => await import("./index-Cn31n9Ni.js"),
|
|
1476
1474
|
defaultSchema: {
|
|
1477
1475
|
label: "代码编辑器",
|
|
1478
1476
|
type: "monacoEditor",
|
|
@@ -1522,16 +1520,16 @@ defineExpose({
|
|
|
1522
1520
|
}
|
|
1523
1521
|
};
|
|
1524
1522
|
function Ct(e) {
|
|
1525
|
-
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-
|
|
1523
|
+
e.component("EInputSize", async () => await import("./index-C4sdhgF2.js")), e.component("EColEditor", async () => await import("./index-Z9miUEWt.js")), e.component("EActionEditor", async () => await import("./index-D38KoL_8.js")), e.component("ERuleEditor", async () => await import("./index-LveNbnCD.js")), e.component("EOptionsEditor", async () => await import("./index-DJ9FhHey.js")), e.component("ENode", async () => await import("./index-Cy_xP_CE.js")), e.component("EDataSource", async () => await import("./index-CCTMCqiz.js")), e.registerActivitybar({
|
|
1526
1524
|
id: "component_view",
|
|
1527
1525
|
title: "组件",
|
|
1528
1526
|
icon: "icon--epic--extension-outline",
|
|
1529
|
-
component: async () => await import("./index-
|
|
1527
|
+
component: async () => await import("./index-CqegmH7K.js")
|
|
1530
1528
|
}), e.registerActivitybar({
|
|
1531
1529
|
id: "sound_code_view",
|
|
1532
1530
|
title: "源码",
|
|
1533
1531
|
icon: "icon--epic--sdk-outline-rounded",
|
|
1534
|
-
component: async () => await import("./index-
|
|
1532
|
+
component: async () => await import("./index-CBD1g29V.js")
|
|
1535
1533
|
}), e.registerActivitybar({
|
|
1536
1534
|
id: "outline_view",
|
|
1537
1535
|
title: "大纲",
|
|
@@ -1540,15 +1538,15 @@ function Ct(e) {
|
|
|
1540
1538
|
}), e.registerRightSidebar({
|
|
1541
1539
|
id: "attribute_view",
|
|
1542
1540
|
title: "属性",
|
|
1543
|
-
component: async () => await import("./attributeView-
|
|
1541
|
+
component: async () => await import("./attributeView-B9F_UkWB.js")
|
|
1544
1542
|
}), e.registerRightSidebar({
|
|
1545
1543
|
id: "style_view",
|
|
1546
1544
|
title: "样式",
|
|
1547
|
-
component: async () => await import("./styleView-
|
|
1545
|
+
component: async () => await import("./styleView-B_GTo5jT.js")
|
|
1548
1546
|
}), e.registerRightSidebar({
|
|
1549
1547
|
id: "event_view",
|
|
1550
1548
|
title: "事件",
|
|
1551
|
-
component: async () => await import("./eventView-
|
|
1549
|
+
component: async () => await import("./eventView-B17FncUM.js")
|
|
1552
1550
|
}), [Et, xt].forEach((n) => {
|
|
1553
1551
|
e.registerComponent(n);
|
|
1554
1552
|
});
|
|
@@ -1559,7 +1557,7 @@ export {
|
|
|
1559
1557
|
oe as B,
|
|
1560
1558
|
We as C,
|
|
1561
1559
|
ne as D,
|
|
1562
|
-
|
|
1560
|
+
ze as E,
|
|
1563
1561
|
gt as F,
|
|
1564
1562
|
mt as G,
|
|
1565
1563
|
ht as H,
|
|
@@ -1578,10 +1576,10 @@ export {
|
|
|
1578
1576
|
ce as k,
|
|
1579
1577
|
Rt as l,
|
|
1580
1578
|
N as m,
|
|
1581
|
-
|
|
1582
|
-
|
|
1579
|
+
zt as n,
|
|
1580
|
+
Ie as o,
|
|
1583
1581
|
Vt as p,
|
|
1584
|
-
|
|
1582
|
+
Lt as q,
|
|
1585
1583
|
Xe as r,
|
|
1586
1584
|
Ft as s,
|
|
1587
1585
|
Kt as t,
|
|
@@ -1589,6 +1587,6 @@ export {
|
|
|
1589
1587
|
Ee as v,
|
|
1590
1588
|
Ut as w,
|
|
1591
1589
|
He as x,
|
|
1592
|
-
|
|
1590
|
+
Le as y,
|
|
1593
1591
|
Mt as z
|
|
1594
1592
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as U, inject as L, openBlock as p, createElementBlock as g, Fragment as A, renderList as T, createElementVNode as i, toDisplayString as O, createVNode as C, unref as _, withCtx as R, createCommentVNode as G, createTextVNode as J, ref as E, computed as S, withDirectives as F, normalizeClass as j, vShow as P, reactive as H, createBlock as K, nextTick as Q, toRaw as z, watch as W } from "vue";
|
|
2
|
-
import { l as q, _ as X, k as Y, m as Z } from "./index-
|
|
2
|
+
import { l as q, _ as X, k as Y, m as Z } from "./index-Cs7FieAs.js";
|
|
3
3
|
import { p as w } from "./axios-ITY6Uw7A.js";
|
|
4
4
|
import { _ as D } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
5
|
import { d as ee } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./axios-CYGTE3lR.cjs"),v=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./axios-CYGTE3lR.cjs"),v=require("./index-w0VNJWNM.cjs"),k=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),V={key:0,class:"epic-del-btn"},f=["onClick"],h=e.defineComponent({__name:"index",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(c,{emit:r}){const u=_.pluginManager.getComponent("number"),s=c,d=r,o=e.computed({get(){return s.modelValue},set(n){d("update:modelValue",n)}});function p(){const n={type:"col",children:[],componentProps:{span:12},id:v.getUUID()};o.value.push(n)}function i(n){o.value=o.value.filter((m,t)=>n!==t)}return(n,m)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.value,(t,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:"EColEditor-item"},[e.createVNode(e.unref(u),{value:t.componentProps.span,"onUpdate:value":l=>t.componentProps.span=l,modelValue:t.componentProps.span,"onUpdate:modelValue":l=>t.componentProps.span=l,style:{width:"100%"},min:1,max:24},null,8,["value","onUpdate:value","modelValue","onUpdate:modelValue"]),o.value.length>1?(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("span",{onClick:l=>i(a)},[e.createVNode(e.unref(k._sfc_main),{name:"icon-shanchu1"})],8,f)])):e.createCommentVNode("",!0)]))),128)),e.createElementVNode("div",{class:"add-btn",onClick:p}," 添加 ")]))}});exports.default=h;
|
|
@@ -2,7 +2,7 @@ import { defineComponent as B, inject as j, resolveComponent as J, openBlock as
|
|
|
2
2
|
import { d as Q } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
3
3
|
import { p as g, E as W, a as X } from "./axios-ITY6Uw7A.js";
|
|
4
4
|
import { _ as E } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
|
-
import { n as I } from "./index-
|
|
5
|
+
import { n as I } from "./index-Cs7FieAs.js";
|
|
6
6
|
import { ElMessage as Y } from "element-plus";
|
|
7
7
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
const ee = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as B, computed as P, inject as O, openBlock as r, createElementBlock as u, Fragment as c, renderList as k, createElementVNode as d, toDisplayString as U, createVNode as g, unref as y, createCommentVNode as $, ref as C, watchEffect as T, createBlock as I, withCtx as M, createTextVNode as N } from "vue";
|
|
2
2
|
import { p as R } from "./axios-ITY6Uw7A.js";
|
|
3
|
-
import { _ as j, n as F, m as q } from "./index-
|
|
3
|
+
import { _ as j, n as F, m as q } from "./index-Cs7FieAs.js";
|
|
4
4
|
import { _ as A } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
5
5
|
const D = [
|
|
6
6
|
{ label: "string", value: "string" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./vuedraggable.umd-BqhSJIAi.cjs"),p=require("./axios-CYGTE3lR.cjs"),b=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),E=require("./vuedraggable.umd-BqhSJIAi.cjs"),p=require("./axios-CYGTE3lR.cjs"),b=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),C=require("./index-w0VNJWNM.cjs"),B=require("element-plus"),S=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U={key:0,class:"pl-4"},M=e.defineComponent({name:"EOptionItem",__name:"optionItem",props:{modelValue:{}},emits:["update:modelValue"],setup(h,{emit:k}){const y=h,f=p.pluginManager.getComponent("input"),d=e.inject("tree",!1),s=k,i=C.useVModel(y,"modelValue",s);function _(a){const c={label:"",value:""};a.children?a.children.push(c):a.children=[c]}function r(a){i.value=i.value.filter((c,v)=>v!==a)}return(a,c)=>{const v=e.resolveComponent("EOptionItem");return e.openBlock(),e.createBlock(e.unref(E.draggable),{modelValue:e.unref(i),"onUpdate:modelValue":c[0]||(c[0]=n=>e.isRef(i)?i.value=n:null),"item-key":"id","component-data":{type:"transition-group"},group:"option-list",handle:".handle",animation:200},{item:e.withCtx(({element:n,index:g})=>[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass([e.unref(d)?"grid-cols-[16px_auto_auto_16px_16px]":"grid-cols-[16px_auto_auto_16px]","option-item text-16px grid text-$epic-text-secondary gap-2 items-center mb-2"])},[e.createVNode(e.unref(b._sfc_main),{class:"mr-2 cursor-move handle",name:"icon--epic--drag"}),e.createVNode(e.unref(f),{modelValue:n.label,"onUpdate:modelValue":o=>n.label=o,value:n.label,"onUpdate:value":o=>n.label=o,placeholder:"label"},null,8,["modelValue","onUpdate:modelValue","value","onUpdate:value"]),e.createVNode(e.unref(f),{modelValue:n.value,"onUpdate:modelValue":o=>n.value=o,value:n.value,"onUpdate:value":o=>n.value=o,placeholder:"value"},null,8,["modelValue","onUpdate:modelValue","value","onUpdate:value"]),e.unref(d)?(e.openBlock(),e.createBlock(e.unref(b._sfc_main),{key:0,class:"cursor-pointer text-lg!",name:"icon--epic--add-rounded",onClick:o=>_(n)},null,8,["onClick"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b._sfc_main),{class:"hover:text-red cursor-pointer",name:"icon--epic--delete-outline-rounded",onClick:o=>r(g)},null,8,["onClick"])],2),n.children?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(v,{modelValue:n.children,"onUpdate:modelValue":o=>n.children=o},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue"])}}}),O={class:""},I={class:"epic-tabs-box"},q=["title","onClick"],w={key:0},$={class:"py-4 my-2 text-center text-gray-400 bg-white"},j={key:1},A=e.defineComponent({__name:"index",props:{tree:{type:Boolean},modelValue:{},dynamicId:{},type:{}},emits:["update:modelValue","update:EOptionsEditor"],setup(h,{emit:k}){const y=p.pluginManager.getComponent("button"),f=p.pluginManager.getComponent("select"),d=e.ref([]),s=e.reactive({title:"静态"}),i=h,_=k;p.EventBus.on("updateSource",l=>{d.value=p.pluginManager.sourceData.map(t=>({...t,label:t.apiName,value:t.id})),g(a.value)}),e.onMounted(()=>{d.value=p.pluginManager.sourceData.map(l=>({...l,label:l.apiName,value:l.id}))});const r=C.useVModel(i,"modelValue",_),a=C.useVModel(i,"dynamicId",_);function c(l){return l&&Object.prototype.toString.call(l)==="[object Array]"?l:(B.ElMessage.info("请检查数据位置是否配置准确"),[])}e.watch(()=>a.value,async()=>{a.value?s.title="动态":s.title="静态"},{immediate:!0});const v=[{title:"静态"},{title:"动态"}];async function n(l){s.title=l.title,l.title==="静态"&&(a.value="")}async function g(l){const t=d.value.find(m=>m.id===l);if(t&&t.url){let m=await p.axios({method:(t==null?void 0:t.method)||"get",url:t.url,params:t!=null&&t.params?JSON.parse(t==null?void 0:t.params):{},data:t!=null&&t.data?JSON.parse(t==null?void 0:t.data):{},headers:t!=null&&t.header?JSON.parse(t==null?void 0:t.header):{}});if(t&&(t!=null&&t.dataPath)){const x=t.dataPath.split(".").reduce((V,N)=>V[N],m.data);r.value=c(x).map(V=>({label:V[t.dataKey],value:V[t.dataValue]}))}else r.value=c(m.data).map(u=>({label:u[t.dataKey],value:u[t.dataValue]}))}}i.modelValue,e.provide("tree",i.tree);function o(){const l=e.reactive({label:"",value:""});r.value.length?r.value=[...r.value,l]:r.value=[l]}return(l,t)=>{var m;return e.openBlock(),e.createElementBlock("div",O,[e.createElementVNode("div",null,[e.createElementVNode("div",I,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(v,(u,x)=>e.createElementVNode("div",{class:e.normalizeClass(["epic-tab cursor-pointer truncate",{checked:s.title===u.title}]),key:x,title:u.title,onClick:V=>n(u)},e.toDisplayString(u.title),11,q)),64))]),s.title==="静态"?(e.openBlock(),e.createElementBlock("div",w,[e.withDirectives(e.createElementVNode("div",$,"暂无选项",512),[[e.vShow,!((m=e.unref(r))!=null&&m.length)]]),e.createVNode(M,{modelValue:e.unref(r),"onUpdate:modelValue":t[0]||(t[0]=u=>e.isRef(r)?r.value=u:null)},null,8,["modelValue"]),e.createVNode(e.unref(y),{onClick:o},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode("添加选项")])),_:1})])):(e.openBlock(),e.createElementBlock("div",j,[t[3]||(t[3]=e.createElementVNode("span",{style:{"font-size":"12px","margin-bottom":"8px",display:"inline-block"}},"数据源",-1)),e.createVNode(e.unref(f),{modelValue:e.unref(a),"onUpdate:modelValue":t[1]||(t[1]=u=>e.isRef(a)?a.value=u:null),placeholder:"请选择数据源",clearable:"",options:d.value,onChange:g},null,8,["modelValue","options"])]))])])}}}),D=S._export_sfc(A,[["__scopeId","data-v-786f8c8a"]]);exports.default=D;
|