@opentiny/tiny-engine-setting-events 2.8.0-rc.1 → 2.8.1
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/index.js +184 -181
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
2
|
import { ref as Lt, reactive as Ut, provide as he, nextTick as Ee, resolveComponent as B, createBlock as tt, openBlock as S, withCtx as I, createElementVNode as m, createVNode as _, resolveDynamicComponent as te, createTextVNode as Dt, unref as O, createElementBlock as J, Fragment as $t, withDirectives as ee, renderList as Ht, normalizeClass as It, toDisplayString as W, createCommentVNode as zt, vShow as ne, computed as Tt, watchEffect as ue, watch as ie, inject as ge } from "vue";
|
|
3
|
-
import { callEntry as b, META_APP as
|
|
4
|
-
import { TinyAlert as ye, DialogBox as fe, Button as Ft, Form as we, FormItem as oe, Input as qt, Popover as
|
|
3
|
+
import { callEntry as b, META_APP as x, getMetaApi as k, getOptions as X, useLayout as N, useHistory as K, useCanvas as E, getMergeMeta as L, useBlock as pt, useMaterial as vt, useModal as bt, useMessage as _t, useProperties as $ } from "@opentiny/tiny-engine-meta-register";
|
|
4
|
+
import { TinyAlert as ye, DialogBox as fe, Button as Ft, Form as we, FormItem as oe, Input as qt, Popover as Ce, Tooltip as xe, Collapse as ke, CollapseItem as se, Checkbox as De, Search as Se } from "@opentiny/vue";
|
|
5
5
|
import Et from "@opentiny/tiny-engine-common/js/i18n";
|
|
6
6
|
import { SvgButton as yt, BlockLinkEvent as wt, PluginPanel as Ae, VueMonaco as St } from "@opentiny/tiny-engine-common";
|
|
7
|
-
import { iconChevronDown as
|
|
7
|
+
import { iconChevronDown as Ct } from "@opentiny/vue-icon";
|
|
8
8
|
import { string2Ast as H } from "@opentiny/tiny-engine-common/js/ast";
|
|
9
9
|
import { CodeConfigurator as st, InputConfigurator as rt, VariableConfigurator as at, SwitchConfigurator as lt } from "@opentiny/tiny-engine-configurator";
|
|
10
10
|
import { PROP_DATA_TYPE as G } from "@opentiny/tiny-engine-common/js/constants";
|
|
@@ -321,7 +321,7 @@ class U {
|
|
|
321
321
|
r,
|
|
322
322
|
s.storeName ? e.indexOf(s.original) : -1
|
|
323
323
|
) : i.addUneditedChunk(n, s, this.original, r, this.sourcemapLocations), s.outro.length && i.advance(s.outro);
|
|
324
|
-
}), {
|
|
324
|
+
}), this.outro && i.advance(this.outro), {
|
|
325
325
|
file: t.file ? t.file.split(/[/\\]/).pop() : void 0,
|
|
326
326
|
sources: [
|
|
327
327
|
t.source ? Re(t.file || "", t.source) : t.file || ""
|
|
@@ -546,11 +546,12 @@ class U {
|
|
|
546
546
|
}
|
|
547
547
|
_split(t) {
|
|
548
548
|
if (this.byStart[t] || this.byEnd[t]) return;
|
|
549
|
-
let n = this.lastSearchedChunk;
|
|
550
|
-
const
|
|
549
|
+
let n = this.lastSearchedChunk, e = n;
|
|
550
|
+
const i = t > n.end;
|
|
551
551
|
for (; n; ) {
|
|
552
552
|
if (n.contains(t)) return this._splitChunk(n, t);
|
|
553
|
-
n =
|
|
553
|
+
if (n = i ? this.byStart[n.end] : this.byEnd[n.start], n === e) return;
|
|
554
|
+
e = n;
|
|
554
555
|
}
|
|
555
556
|
}
|
|
556
557
|
_splitChunk(t, n) {
|
|
@@ -650,15 +651,18 @@ class U {
|
|
|
650
651
|
}
|
|
651
652
|
_replaceString(t, n) {
|
|
652
653
|
const { original: e } = this, i = e.indexOf(t);
|
|
653
|
-
return i !== -1 && this.overwrite(i, i + t.length, n), this;
|
|
654
|
+
return i !== -1 && (typeof n == "function" && (n = n(t, i, e)), t !== n && this.overwrite(i, i + t.length, n)), this;
|
|
654
655
|
}
|
|
655
656
|
replace(t, n) {
|
|
656
657
|
return typeof t == "string" ? this._replaceString(t, n) : this._replaceRegexp(t, n);
|
|
657
658
|
}
|
|
658
659
|
_replaceAllString(t, n) {
|
|
659
660
|
const { original: e } = this, i = t.length;
|
|
660
|
-
for (let o = e.indexOf(t); o !== -1; o = e.indexOf(t, o + i))
|
|
661
|
-
|
|
661
|
+
for (let o = e.indexOf(t); o !== -1; o = e.indexOf(t, o + i)) {
|
|
662
|
+
const s = e.slice(o, o + i);
|
|
663
|
+
let r = n;
|
|
664
|
+
typeof n == "function" && (r = n(s, o, e)), s !== r && this.overwrite(o, o + i, r);
|
|
665
|
+
}
|
|
662
666
|
return this;
|
|
663
667
|
}
|
|
664
668
|
replaceAll(t, n) {
|
|
@@ -685,12 +689,12 @@ const Bt = (c, t) => {
|
|
|
685
689
|
ctx: () => ({
|
|
686
690
|
string2Ast: H,
|
|
687
691
|
getMergeMeta: L,
|
|
688
|
-
useCanvas:
|
|
692
|
+
useCanvas: E,
|
|
689
693
|
useHistory: K,
|
|
690
694
|
useLayout: N,
|
|
691
695
|
getOptions: X,
|
|
692
696
|
getMetaApi: k,
|
|
693
|
-
META_APP:
|
|
697
|
+
META_APP: x,
|
|
694
698
|
MagicString: U,
|
|
695
699
|
meta: R,
|
|
696
700
|
dialogVisible: j,
|
|
@@ -706,12 +710,12 @@ const Bt = (c, t) => {
|
|
|
706
710
|
ctx: () => ({
|
|
707
711
|
string2Ast: H,
|
|
708
712
|
getMergeMeta: L,
|
|
709
|
-
useCanvas:
|
|
713
|
+
useCanvas: E,
|
|
710
714
|
useHistory: K,
|
|
711
715
|
useLayout: N,
|
|
712
716
|
getOptions: X,
|
|
713
717
|
getMetaApi: k,
|
|
714
|
-
META_APP:
|
|
718
|
+
META_APP: x,
|
|
715
719
|
MagicString: U,
|
|
716
720
|
meta: R,
|
|
717
721
|
dialogVisible: j,
|
|
@@ -740,11 +744,11 @@ const Bt = (c, t) => {
|
|
|
740
744
|
activePlugin: i
|
|
741
745
|
} = N(), {
|
|
742
746
|
pageState: o
|
|
743
|
-
} =
|
|
747
|
+
} = E(), {
|
|
744
748
|
getMethods: s,
|
|
745
749
|
saveMethod: r,
|
|
746
750
|
highlightMethod: a
|
|
747
|
-
} = k(
|
|
751
|
+
} = k(x.Page), d = Ut({
|
|
748
752
|
editorContent: "",
|
|
749
753
|
bindMethodInfo: {},
|
|
750
754
|
tip: "",
|
|
@@ -753,8 +757,8 @@ const Bt = (c, t) => {
|
|
|
753
757
|
isValidParams: !0
|
|
754
758
|
});
|
|
755
759
|
he("context", d);
|
|
756
|
-
const f = b((
|
|
757
|
-
d.bindMethodInfo =
|
|
760
|
+
const f = b((w) => {
|
|
761
|
+
d.bindMethodInfo = w;
|
|
758
762
|
}, {
|
|
759
763
|
metaData: {
|
|
760
764
|
id: "engine.setting.event.BindEventsDialog.selectMethod"
|
|
@@ -776,27 +780,27 @@ const Bt = (c, t) => {
|
|
|
776
780
|
getExtraParams: h,
|
|
777
781
|
getFormatParams: g,
|
|
778
782
|
rewriteMethodParams: p,
|
|
779
|
-
activePagePlugin:
|
|
780
|
-
confirm:
|
|
783
|
+
activePagePlugin: y,
|
|
784
|
+
confirm: C,
|
|
781
785
|
openedDialog: A,
|
|
782
786
|
closeDialog: P,
|
|
783
787
|
string2Ast: H,
|
|
784
788
|
getMergeMeta: L,
|
|
785
|
-
useCanvas:
|
|
789
|
+
useCanvas: E,
|
|
786
790
|
useHistory: K,
|
|
787
791
|
useLayout: N,
|
|
788
792
|
getOptions: X,
|
|
789
793
|
getMetaApi: k,
|
|
790
|
-
META_APP:
|
|
794
|
+
META_APP: x,
|
|
791
795
|
MagicString: U,
|
|
792
796
|
meta: R,
|
|
793
797
|
dialogVisible: j,
|
|
794
798
|
open: V,
|
|
795
799
|
close: F
|
|
796
800
|
})
|
|
797
|
-
}), l = b((
|
|
801
|
+
}), l = b((w) => {
|
|
798
802
|
var Y, q;
|
|
799
|
-
if (!
|
|
803
|
+
if (!w)
|
|
800
804
|
return;
|
|
801
805
|
const v = (Y = c.eventBinding) == null ? void 0 : Y.eventName;
|
|
802
806
|
if (!v)
|
|
@@ -807,7 +811,7 @@ const Bt = (c, t) => {
|
|
|
807
811
|
const {
|
|
808
812
|
name: M,
|
|
809
813
|
extra: et
|
|
810
|
-
} =
|
|
814
|
+
} = w;
|
|
811
815
|
c[v] || (D[v] = {
|
|
812
816
|
type: "JSExpression",
|
|
813
817
|
value: ""
|
|
@@ -833,18 +837,18 @@ const Bt = (c, t) => {
|
|
|
833
837
|
getExtraParams: h,
|
|
834
838
|
getFormatParams: g,
|
|
835
839
|
rewriteMethodParams: p,
|
|
836
|
-
activePagePlugin:
|
|
837
|
-
confirm:
|
|
840
|
+
activePagePlugin: y,
|
|
841
|
+
confirm: C,
|
|
838
842
|
openedDialog: A,
|
|
839
843
|
closeDialog: P,
|
|
840
844
|
string2Ast: H,
|
|
841
845
|
getMergeMeta: L,
|
|
842
|
-
useCanvas:
|
|
846
|
+
useCanvas: E,
|
|
843
847
|
useHistory: K,
|
|
844
848
|
useLayout: N,
|
|
845
849
|
getOptions: X,
|
|
846
850
|
getMetaApi: k,
|
|
847
|
-
META_APP:
|
|
851
|
+
META_APP: x,
|
|
848
852
|
MagicString: U,
|
|
849
853
|
meta: R,
|
|
850
854
|
dialogVisible: j,
|
|
@@ -874,18 +878,18 @@ const Bt = (c, t) => {
|
|
|
874
878
|
getExtraParams: h,
|
|
875
879
|
getFormatParams: g,
|
|
876
880
|
rewriteMethodParams: p,
|
|
877
|
-
activePagePlugin:
|
|
878
|
-
confirm:
|
|
881
|
+
activePagePlugin: y,
|
|
882
|
+
confirm: C,
|
|
879
883
|
openedDialog: A,
|
|
880
884
|
closeDialog: P,
|
|
881
885
|
string2Ast: H,
|
|
882
886
|
getMergeMeta: L,
|
|
883
|
-
useCanvas:
|
|
887
|
+
useCanvas: E,
|
|
884
888
|
useHistory: K,
|
|
885
889
|
useLayout: N,
|
|
886
890
|
getOptions: X,
|
|
887
891
|
getMetaApi: k,
|
|
888
|
-
META_APP:
|
|
892
|
+
META_APP: x,
|
|
889
893
|
MagicString: U,
|
|
890
894
|
meta: R,
|
|
891
895
|
dialogVisible: j,
|
|
@@ -893,14 +897,14 @@ const Bt = (c, t) => {
|
|
|
893
897
|
close: F
|
|
894
898
|
})
|
|
895
899
|
}), h = b(() => {
|
|
896
|
-
let
|
|
900
|
+
let w = "";
|
|
897
901
|
if (d.enableExtraParams)
|
|
898
902
|
try {
|
|
899
|
-
|
|
903
|
+
w = JSON.parse(d.editorContent), d.isValidParams = Array.isArray(w);
|
|
900
904
|
} catch {
|
|
901
905
|
d.isValidParams = !1;
|
|
902
906
|
}
|
|
903
|
-
return
|
|
907
|
+
return w;
|
|
904
908
|
}, {
|
|
905
909
|
metaData: {
|
|
906
910
|
id: "engine.setting.event.BindEventsDialog.getExtraParams"
|
|
@@ -922,26 +926,26 @@ const Bt = (c, t) => {
|
|
|
922
926
|
getExtraParams: h,
|
|
923
927
|
getFormatParams: g,
|
|
924
928
|
rewriteMethodParams: p,
|
|
925
|
-
activePagePlugin:
|
|
926
|
-
confirm:
|
|
929
|
+
activePagePlugin: y,
|
|
930
|
+
confirm: C,
|
|
927
931
|
openedDialog: A,
|
|
928
932
|
closeDialog: P,
|
|
929
933
|
string2Ast: H,
|
|
930
934
|
getMergeMeta: L,
|
|
931
|
-
useCanvas:
|
|
935
|
+
useCanvas: E,
|
|
932
936
|
useHistory: K,
|
|
933
937
|
useLayout: N,
|
|
934
938
|
getOptions: X,
|
|
935
939
|
getMetaApi: k,
|
|
936
|
-
META_APP:
|
|
940
|
+
META_APP: x,
|
|
937
941
|
MagicString: U,
|
|
938
942
|
meta: R,
|
|
939
943
|
dialogVisible: j,
|
|
940
944
|
open: V,
|
|
941
945
|
close: F
|
|
942
946
|
})
|
|
943
|
-
}), g = b((
|
|
944
|
-
length:
|
|
947
|
+
}), g = b((w) => Array.from({
|
|
948
|
+
length: w.length
|
|
945
949
|
}, (v, D) => `args${D}`).join(","), {
|
|
946
950
|
metaData: {
|
|
947
951
|
id: "engine.setting.event.BindEventsDialog.getFormatParams"
|
|
@@ -963,37 +967,37 @@ const Bt = (c, t) => {
|
|
|
963
967
|
getExtraParams: h,
|
|
964
968
|
getFormatParams: g,
|
|
965
969
|
rewriteMethodParams: p,
|
|
966
|
-
activePagePlugin:
|
|
967
|
-
confirm:
|
|
970
|
+
activePagePlugin: y,
|
|
971
|
+
confirm: C,
|
|
968
972
|
openedDialog: A,
|
|
969
973
|
closeDialog: P,
|
|
970
974
|
string2Ast: H,
|
|
971
975
|
getMergeMeta: L,
|
|
972
|
-
useCanvas:
|
|
976
|
+
useCanvas: E,
|
|
973
977
|
useHistory: K,
|
|
974
978
|
useLayout: N,
|
|
975
979
|
getOptions: X,
|
|
976
980
|
getMetaApi: k,
|
|
977
|
-
META_APP:
|
|
981
|
+
META_APP: x,
|
|
978
982
|
MagicString: U,
|
|
979
983
|
meta: R,
|
|
980
984
|
dialogVisible: j,
|
|
981
985
|
open: V,
|
|
982
986
|
close: F
|
|
983
987
|
})
|
|
984
|
-
}), p = b((
|
|
988
|
+
}), p = b((w, v, D, M, et) => {
|
|
985
989
|
var nt, it, ot, Z, jt;
|
|
986
990
|
const Y = et && M.length ? `event,${D}` : D, q = `function ${v} (${Y}) {
|
|
987
991
|
}
|
|
988
992
|
`;
|
|
989
|
-
if (!
|
|
993
|
+
if (!w)
|
|
990
994
|
return q;
|
|
991
995
|
try {
|
|
992
|
-
const gt = new U(
|
|
996
|
+
const gt = new U(w), T = H(w);
|
|
993
997
|
if (((it = (nt = T == null ? void 0 : T.program) == null ? void 0 : nt.body[0]) == null ? void 0 : it.type) !== "FunctionDeclaration")
|
|
994
998
|
return q;
|
|
995
999
|
if (((ot = T == null ? void 0 : T.program) == null ? void 0 : ot.body[0].params.length) === M.length + 1)
|
|
996
|
-
return
|
|
1000
|
+
return w;
|
|
997
1001
|
const Pt = (Z = T == null ? void 0 : T.program) == null ? void 0 : Z.body[0].id.end, Xt = (jt = T == null ? void 0 : T.program) == null ? void 0 : jt.body[0].body.start;
|
|
998
1002
|
return gt.remove(Pt, Xt), gt.appendLeft(Pt, `(${Y})`), gt.toString();
|
|
999
1003
|
} catch {
|
|
@@ -1020,29 +1024,28 @@ const Bt = (c, t) => {
|
|
|
1020
1024
|
getExtraParams: h,
|
|
1021
1025
|
getFormatParams: g,
|
|
1022
1026
|
rewriteMethodParams: p,
|
|
1023
|
-
activePagePlugin:
|
|
1024
|
-
confirm:
|
|
1027
|
+
activePagePlugin: y,
|
|
1028
|
+
confirm: C,
|
|
1025
1029
|
openedDialog: A,
|
|
1026
1030
|
closeDialog: P,
|
|
1027
1031
|
string2Ast: H,
|
|
1028
1032
|
getMergeMeta: L,
|
|
1029
|
-
useCanvas:
|
|
1033
|
+
useCanvas: E,
|
|
1030
1034
|
useHistory: K,
|
|
1031
1035
|
useLayout: N,
|
|
1032
1036
|
getOptions: X,
|
|
1033
1037
|
getMetaApi: k,
|
|
1034
|
-
META_APP:
|
|
1038
|
+
META_APP: x,
|
|
1035
1039
|
MagicString: U,
|
|
1036
1040
|
meta: R,
|
|
1037
1041
|
dialogVisible: j,
|
|
1038
1042
|
open: V,
|
|
1039
1043
|
close: F
|
|
1040
1044
|
})
|
|
1041
|
-
}),
|
|
1045
|
+
}), y = b((w) => {
|
|
1042
1046
|
i(e.Page).then(() => {
|
|
1043
1047
|
Ee(() => {
|
|
1044
|
-
|
|
1045
|
-
a && a((E = d.bindMethodInfo) == null ? void 0 : E.name);
|
|
1048
|
+
a && a(w);
|
|
1046
1049
|
});
|
|
1047
1050
|
});
|
|
1048
1051
|
}, {
|
|
@@ -1066,36 +1069,36 @@ const Bt = (c, t) => {
|
|
|
1066
1069
|
getExtraParams: h,
|
|
1067
1070
|
getFormatParams: g,
|
|
1068
1071
|
rewriteMethodParams: p,
|
|
1069
|
-
activePagePlugin:
|
|
1070
|
-
confirm:
|
|
1072
|
+
activePagePlugin: y,
|
|
1073
|
+
confirm: C,
|
|
1071
1074
|
openedDialog: A,
|
|
1072
1075
|
closeDialog: P,
|
|
1073
1076
|
string2Ast: H,
|
|
1074
1077
|
getMergeMeta: L,
|
|
1075
|
-
useCanvas:
|
|
1078
|
+
useCanvas: E,
|
|
1076
1079
|
useHistory: K,
|
|
1077
1080
|
useLayout: N,
|
|
1078
1081
|
getOptions: X,
|
|
1079
1082
|
getMetaApi: k,
|
|
1080
|
-
META_APP:
|
|
1083
|
+
META_APP: x,
|
|
1081
1084
|
MagicString: U,
|
|
1082
1085
|
meta: R,
|
|
1083
1086
|
dialogVisible: j,
|
|
1084
1087
|
open: V,
|
|
1085
1088
|
close: F
|
|
1086
1089
|
})
|
|
1087
|
-
}),
|
|
1090
|
+
}), C = b(async () => {
|
|
1088
1091
|
var it, ot;
|
|
1089
1092
|
if (d.tipError)
|
|
1090
1093
|
return;
|
|
1091
|
-
let
|
|
1094
|
+
let w = "event";
|
|
1092
1095
|
const v = h();
|
|
1093
|
-
let D =
|
|
1096
|
+
let D = w;
|
|
1094
1097
|
if (!d.isValidParams)
|
|
1095
1098
|
return;
|
|
1096
|
-
v && (
|
|
1099
|
+
v && (w = v.join(","), D = g(v)), l({
|
|
1097
1100
|
...d.bindMethodInfo,
|
|
1098
|
-
params:
|
|
1101
|
+
params: w,
|
|
1099
1102
|
extra: v
|
|
1100
1103
|
});
|
|
1101
1104
|
const {
|
|
@@ -1106,7 +1109,7 @@ const Bt = (c, t) => {
|
|
|
1106
1109
|
}, {
|
|
1107
1110
|
beforeSaveMethod: nt
|
|
1108
1111
|
} = X(R.id);
|
|
1109
|
-
typeof nt == "function" && await nt(q, d.bindMethodInfo), r == null || r(q),
|
|
1112
|
+
typeof nt == "function" && await nt(q, d.bindMethodInfo), r == null || r(q), y(M), F();
|
|
1110
1113
|
}, {
|
|
1111
1114
|
metaData: {
|
|
1112
1115
|
id: "engine.setting.event.BindEventsDialog.confirm"
|
|
@@ -1128,18 +1131,18 @@ const Bt = (c, t) => {
|
|
|
1128
1131
|
getExtraParams: h,
|
|
1129
1132
|
getFormatParams: g,
|
|
1130
1133
|
rewriteMethodParams: p,
|
|
1131
|
-
activePagePlugin:
|
|
1132
|
-
confirm:
|
|
1134
|
+
activePagePlugin: y,
|
|
1135
|
+
confirm: C,
|
|
1133
1136
|
openedDialog: A,
|
|
1134
1137
|
closeDialog: P,
|
|
1135
1138
|
string2Ast: H,
|
|
1136
1139
|
getMergeMeta: L,
|
|
1137
|
-
useCanvas:
|
|
1140
|
+
useCanvas: E,
|
|
1138
1141
|
useHistory: K,
|
|
1139
1142
|
useLayout: N,
|
|
1140
1143
|
getOptions: X,
|
|
1141
1144
|
getMetaApi: k,
|
|
1142
|
-
META_APP:
|
|
1145
|
+
META_APP: x,
|
|
1143
1146
|
MagicString: U,
|
|
1144
1147
|
meta: R,
|
|
1145
1148
|
dialogVisible: j,
|
|
@@ -1147,8 +1150,8 @@ const Bt = (c, t) => {
|
|
|
1147
1150
|
close: F
|
|
1148
1151
|
})
|
|
1149
1152
|
}), A = b(() => {
|
|
1150
|
-
var
|
|
1151
|
-
d.enableExtraParams = !!((v = (
|
|
1153
|
+
var w, v, D;
|
|
1154
|
+
d.enableExtraParams = !!((v = (w = c.eventBinding) == null ? void 0 : w.params) != null && v.length), d.editorContent = JSON.stringify(((D = c.eventBinding) == null ? void 0 : D.params) || [], null, 2), u();
|
|
1152
1155
|
}, {
|
|
1153
1156
|
metaData: {
|
|
1154
1157
|
id: "engine.setting.event.BindEventsDialog.openedDialog"
|
|
@@ -1170,18 +1173,18 @@ const Bt = (c, t) => {
|
|
|
1170
1173
|
getExtraParams: h,
|
|
1171
1174
|
getFormatParams: g,
|
|
1172
1175
|
rewriteMethodParams: p,
|
|
1173
|
-
activePagePlugin:
|
|
1174
|
-
confirm:
|
|
1176
|
+
activePagePlugin: y,
|
|
1177
|
+
confirm: C,
|
|
1175
1178
|
openedDialog: A,
|
|
1176
1179
|
closeDialog: P,
|
|
1177
1180
|
string2Ast: H,
|
|
1178
1181
|
getMergeMeta: L,
|
|
1179
|
-
useCanvas:
|
|
1182
|
+
useCanvas: E,
|
|
1180
1183
|
useHistory: K,
|
|
1181
1184
|
useLayout: N,
|
|
1182
1185
|
getOptions: X,
|
|
1183
1186
|
getMetaApi: k,
|
|
1184
|
-
META_APP:
|
|
1187
|
+
META_APP: x,
|
|
1185
1188
|
MagicString: U,
|
|
1186
1189
|
meta: R,
|
|
1187
1190
|
dialogVisible: j,
|
|
@@ -1211,18 +1214,18 @@ const Bt = (c, t) => {
|
|
|
1211
1214
|
getExtraParams: h,
|
|
1212
1215
|
getFormatParams: g,
|
|
1213
1216
|
rewriteMethodParams: p,
|
|
1214
|
-
activePagePlugin:
|
|
1215
|
-
confirm:
|
|
1217
|
+
activePagePlugin: y,
|
|
1218
|
+
confirm: C,
|
|
1216
1219
|
openedDialog: A,
|
|
1217
1220
|
closeDialog: P,
|
|
1218
1221
|
string2Ast: H,
|
|
1219
1222
|
getMergeMeta: L,
|
|
1220
|
-
useCanvas:
|
|
1223
|
+
useCanvas: E,
|
|
1221
1224
|
useHistory: K,
|
|
1222
1225
|
useLayout: N,
|
|
1223
1226
|
getOptions: X,
|
|
1224
1227
|
getMetaApi: k,
|
|
1225
|
-
META_APP:
|
|
1228
|
+
META_APP: x,
|
|
1226
1229
|
MagicString: U,
|
|
1227
1230
|
meta: R,
|
|
1228
1231
|
dialogVisible: j,
|
|
@@ -1235,7 +1238,7 @@ const Bt = (c, t) => {
|
|
|
1235
1238
|
BindEventsDialogContent: n,
|
|
1236
1239
|
state: d,
|
|
1237
1240
|
dialogVisible: j,
|
|
1238
|
-
confirm:
|
|
1241
|
+
confirm: C,
|
|
1239
1242
|
closeDialog: P,
|
|
1240
1243
|
openedDialog: A,
|
|
1241
1244
|
selectMethod: f
|
|
@@ -1293,7 +1296,7 @@ function He(c, t, n, e, i, o) {
|
|
|
1293
1296
|
_: 1
|
|
1294
1297
|
}, 8, ["visible", "onClose", "onOpened"]);
|
|
1295
1298
|
}
|
|
1296
|
-
const
|
|
1299
|
+
const xt = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-75c09cb1"]]), pe = {
|
|
1297
1300
|
onClick: {
|
|
1298
1301
|
label: {
|
|
1299
1302
|
zh_CN: "点击事件"
|
|
@@ -1538,10 +1541,10 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1538
1541
|
}, kt = /* @__PURE__ */ Bt(Ge, [["__scopeId", "data-v-2ed7fac6"]]), We = {
|
|
1539
1542
|
components: {
|
|
1540
1543
|
BlockLinkEvent: wt,
|
|
1541
|
-
BindEventsDialog:
|
|
1542
|
-
TinyPopover:
|
|
1544
|
+
BindEventsDialog: xt,
|
|
1545
|
+
TinyPopover: Ce,
|
|
1543
1546
|
TinyButton: Ft,
|
|
1544
|
-
IconChevronDown:
|
|
1547
|
+
IconChevronDown: Ct(),
|
|
1545
1548
|
SvgButton: yt,
|
|
1546
1549
|
AddEventsDialog: kt
|
|
1547
1550
|
},
|
|
@@ -1552,7 +1555,7 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1552
1555
|
activePlugin: t
|
|
1553
1556
|
} = N(), {
|
|
1554
1557
|
pageState: n
|
|
1555
|
-
} =
|
|
1558
|
+
} = E(), {
|
|
1556
1559
|
getBlockEvents: e,
|
|
1557
1560
|
getCurrentBlock: i,
|
|
1558
1561
|
removeEventLink: o
|
|
@@ -1562,7 +1565,7 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1562
1565
|
confirm: r
|
|
1563
1566
|
} = bt(), a = Et.global.locale.value, {
|
|
1564
1567
|
highlightMethod: d
|
|
1565
|
-
} = k(
|
|
1568
|
+
} = k(x.Page), {
|
|
1566
1569
|
commonEvents: f = {}
|
|
1567
1570
|
} = L("engine.setting.event").options, l = Ut({
|
|
1568
1571
|
eventName: "",
|
|
@@ -1629,29 +1632,29 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1629
1632
|
isEmpty: h,
|
|
1630
1633
|
renderEventList: g,
|
|
1631
1634
|
openActionDialog: p,
|
|
1632
|
-
deleteAction:
|
|
1633
|
-
delEvent:
|
|
1635
|
+
deleteAction: y,
|
|
1636
|
+
delEvent: C,
|
|
1634
1637
|
openCodePanel: A,
|
|
1635
1638
|
handleToggleAddEventDialog: P,
|
|
1636
|
-
handleAddEvent:
|
|
1639
|
+
handleAddEvent: w,
|
|
1637
1640
|
useModal: bt,
|
|
1638
1641
|
getMergeMeta: L,
|
|
1639
|
-
useCanvas:
|
|
1642
|
+
useCanvas: E,
|
|
1640
1643
|
useLayout: N,
|
|
1641
1644
|
useBlock: pt,
|
|
1642
1645
|
useMaterial: vt,
|
|
1643
1646
|
getMetaApi: k,
|
|
1644
|
-
META_APP:
|
|
1647
|
+
META_APP: x,
|
|
1645
1648
|
useMessage: _t,
|
|
1646
1649
|
i18n: Et,
|
|
1647
1650
|
BlockLinkEvent: wt,
|
|
1648
1651
|
SvgButton: yt,
|
|
1649
|
-
iconChevronDown:
|
|
1650
|
-
BindEventsDialog:
|
|
1652
|
+
iconChevronDown: Ct,
|
|
1653
|
+
BindEventsDialog: xt,
|
|
1651
1654
|
openDialog: V,
|
|
1652
1655
|
AddEventsDialog: kt
|
|
1653
1656
|
})
|
|
1654
|
-
}),
|
|
1657
|
+
}), y = b((v) => {
|
|
1655
1658
|
var M;
|
|
1656
1659
|
Object.keys(((M = n == null ? void 0 : n.currentSchema) == null ? void 0 : M.props) || {}).indexOf(v.eventName) > -1 && (delete n.currentSchema.props[v.eventName], _t().publish({
|
|
1657
1660
|
topic: "schemaChange",
|
|
@@ -1680,36 +1683,36 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1680
1683
|
isEmpty: h,
|
|
1681
1684
|
renderEventList: g,
|
|
1682
1685
|
openActionDialog: p,
|
|
1683
|
-
deleteAction:
|
|
1684
|
-
delEvent:
|
|
1686
|
+
deleteAction: y,
|
|
1687
|
+
delEvent: C,
|
|
1685
1688
|
openCodePanel: A,
|
|
1686
1689
|
handleToggleAddEventDialog: P,
|
|
1687
|
-
handleAddEvent:
|
|
1690
|
+
handleAddEvent: w,
|
|
1688
1691
|
useModal: bt,
|
|
1689
1692
|
getMergeMeta: L,
|
|
1690
|
-
useCanvas:
|
|
1693
|
+
useCanvas: E,
|
|
1691
1694
|
useLayout: N,
|
|
1692
1695
|
useBlock: pt,
|
|
1693
1696
|
useMaterial: vt,
|
|
1694
1697
|
getMetaApi: k,
|
|
1695
|
-
META_APP:
|
|
1698
|
+
META_APP: x,
|
|
1696
1699
|
useMessage: _t,
|
|
1697
1700
|
i18n: Et,
|
|
1698
1701
|
BlockLinkEvent: wt,
|
|
1699
1702
|
SvgButton: yt,
|
|
1700
|
-
iconChevronDown:
|
|
1701
|
-
BindEventsDialog:
|
|
1703
|
+
iconChevronDown: Ct,
|
|
1704
|
+
BindEventsDialog: xt,
|
|
1702
1705
|
openDialog: V,
|
|
1703
1706
|
AddEventsDialog: kt
|
|
1704
1707
|
})
|
|
1705
|
-
}),
|
|
1708
|
+
}), C = b((v) => {
|
|
1706
1709
|
r({
|
|
1707
1710
|
title: "提示",
|
|
1708
1711
|
message: `您确定要删除事件 ${v.eventName} 吗?`,
|
|
1709
1712
|
exec() {
|
|
1710
1713
|
n.isBlock && o({
|
|
1711
1714
|
linked: v.linked
|
|
1712
|
-
}),
|
|
1715
|
+
}), y(v);
|
|
1713
1716
|
}
|
|
1714
1717
|
});
|
|
1715
1718
|
}, {
|
|
@@ -1733,25 +1736,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1733
1736
|
isEmpty: h,
|
|
1734
1737
|
renderEventList: g,
|
|
1735
1738
|
openActionDialog: p,
|
|
1736
|
-
deleteAction:
|
|
1737
|
-
delEvent:
|
|
1739
|
+
deleteAction: y,
|
|
1740
|
+
delEvent: C,
|
|
1738
1741
|
openCodePanel: A,
|
|
1739
1742
|
handleToggleAddEventDialog: P,
|
|
1740
|
-
handleAddEvent:
|
|
1743
|
+
handleAddEvent: w,
|
|
1741
1744
|
useModal: bt,
|
|
1742
1745
|
getMergeMeta: L,
|
|
1743
|
-
useCanvas:
|
|
1746
|
+
useCanvas: E,
|
|
1744
1747
|
useLayout: N,
|
|
1745
1748
|
useBlock: pt,
|
|
1746
1749
|
useMaterial: vt,
|
|
1747
1750
|
getMetaApi: k,
|
|
1748
|
-
META_APP:
|
|
1751
|
+
META_APP: x,
|
|
1749
1752
|
useMessage: _t,
|
|
1750
1753
|
i18n: Et,
|
|
1751
1754
|
BlockLinkEvent: wt,
|
|
1752
1755
|
SvgButton: yt,
|
|
1753
|
-
iconChevronDown:
|
|
1754
|
-
BindEventsDialog:
|
|
1756
|
+
iconChevronDown: Ct,
|
|
1757
|
+
BindEventsDialog: xt,
|
|
1755
1758
|
openDialog: V,
|
|
1756
1759
|
AddEventsDialog: kt
|
|
1757
1760
|
})
|
|
@@ -1780,25 +1783,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1780
1783
|
isEmpty: h,
|
|
1781
1784
|
renderEventList: g,
|
|
1782
1785
|
openActionDialog: p,
|
|
1783
|
-
deleteAction:
|
|
1784
|
-
delEvent:
|
|
1786
|
+
deleteAction: y,
|
|
1787
|
+
delEvent: C,
|
|
1785
1788
|
openCodePanel: A,
|
|
1786
1789
|
handleToggleAddEventDialog: P,
|
|
1787
|
-
handleAddEvent:
|
|
1790
|
+
handleAddEvent: w,
|
|
1788
1791
|
useModal: bt,
|
|
1789
1792
|
getMergeMeta: L,
|
|
1790
|
-
useCanvas:
|
|
1793
|
+
useCanvas: E,
|
|
1791
1794
|
useLayout: N,
|
|
1792
1795
|
useBlock: pt,
|
|
1793
1796
|
useMaterial: vt,
|
|
1794
1797
|
getMetaApi: k,
|
|
1795
|
-
META_APP:
|
|
1798
|
+
META_APP: x,
|
|
1796
1799
|
useMessage: _t,
|
|
1797
1800
|
i18n: Et,
|
|
1798
1801
|
BlockLinkEvent: wt,
|
|
1799
1802
|
SvgButton: yt,
|
|
1800
|
-
iconChevronDown:
|
|
1801
|
-
BindEventsDialog:
|
|
1803
|
+
iconChevronDown: Ct,
|
|
1804
|
+
BindEventsDialog: xt,
|
|
1802
1805
|
openDialog: V,
|
|
1803
1806
|
AddEventsDialog: kt
|
|
1804
1807
|
})
|
|
@@ -1825,29 +1828,29 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1825
1828
|
isEmpty: h,
|
|
1826
1829
|
renderEventList: g,
|
|
1827
1830
|
openActionDialog: p,
|
|
1828
|
-
deleteAction:
|
|
1829
|
-
delEvent:
|
|
1831
|
+
deleteAction: y,
|
|
1832
|
+
delEvent: C,
|
|
1830
1833
|
openCodePanel: A,
|
|
1831
1834
|
handleToggleAddEventDialog: P,
|
|
1832
|
-
handleAddEvent:
|
|
1835
|
+
handleAddEvent: w,
|
|
1833
1836
|
useModal: bt,
|
|
1834
1837
|
getMergeMeta: L,
|
|
1835
|
-
useCanvas:
|
|
1838
|
+
useCanvas: E,
|
|
1836
1839
|
useLayout: N,
|
|
1837
1840
|
useBlock: pt,
|
|
1838
1841
|
useMaterial: vt,
|
|
1839
1842
|
getMetaApi: k,
|
|
1840
|
-
META_APP:
|
|
1843
|
+
META_APP: x,
|
|
1841
1844
|
useMessage: _t,
|
|
1842
1845
|
i18n: Et,
|
|
1843
1846
|
BlockLinkEvent: wt,
|
|
1844
1847
|
SvgButton: yt,
|
|
1845
|
-
iconChevronDown:
|
|
1846
|
-
BindEventsDialog:
|
|
1848
|
+
iconChevronDown: Ct,
|
|
1849
|
+
BindEventsDialog: xt,
|
|
1847
1850
|
openDialog: V,
|
|
1848
1851
|
AddEventsDialog: kt
|
|
1849
1852
|
})
|
|
1850
|
-
}),
|
|
1853
|
+
}), w = b((v) => {
|
|
1851
1854
|
const {
|
|
1852
1855
|
eventName: D,
|
|
1853
1856
|
eventDescription: M
|
|
@@ -1889,25 +1892,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1889
1892
|
isEmpty: h,
|
|
1890
1893
|
renderEventList: g,
|
|
1891
1894
|
openActionDialog: p,
|
|
1892
|
-
deleteAction:
|
|
1893
|
-
delEvent:
|
|
1895
|
+
deleteAction: y,
|
|
1896
|
+
delEvent: C,
|
|
1894
1897
|
openCodePanel: A,
|
|
1895
1898
|
handleToggleAddEventDialog: P,
|
|
1896
|
-
handleAddEvent:
|
|
1899
|
+
handleAddEvent: w,
|
|
1897
1900
|
useModal: bt,
|
|
1898
1901
|
getMergeMeta: L,
|
|
1899
|
-
useCanvas:
|
|
1902
|
+
useCanvas: E,
|
|
1900
1903
|
useLayout: N,
|
|
1901
1904
|
useBlock: pt,
|
|
1902
1905
|
useMaterial: vt,
|
|
1903
1906
|
getMetaApi: k,
|
|
1904
|
-
META_APP:
|
|
1907
|
+
META_APP: x,
|
|
1905
1908
|
useMessage: _t,
|
|
1906
1909
|
i18n: Et,
|
|
1907
1910
|
BlockLinkEvent: wt,
|
|
1908
1911
|
SvgButton: yt,
|
|
1909
|
-
iconChevronDown:
|
|
1910
|
-
BindEventsDialog:
|
|
1912
|
+
iconChevronDown: Ct,
|
|
1913
|
+
BindEventsDialog: xt,
|
|
1911
1914
|
openDialog: V,
|
|
1912
1915
|
AddEventsDialog: kt
|
|
1913
1916
|
})
|
|
@@ -1916,10 +1919,10 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1916
1919
|
state: l,
|
|
1917
1920
|
isBlock: u,
|
|
1918
1921
|
isEmpty: h,
|
|
1919
|
-
delEvent:
|
|
1922
|
+
delEvent: C,
|
|
1920
1923
|
openCodePanel: A,
|
|
1921
1924
|
openActionDialog: p,
|
|
1922
|
-
handleAddEvent:
|
|
1925
|
+
handleAddEvent: w,
|
|
1923
1926
|
handleToggleAddEventDialog: P,
|
|
1924
1927
|
renderEventList: g,
|
|
1925
1928
|
locale: a
|
|
@@ -1951,13 +1954,13 @@ function dn(c, t, n, e, i, o) {
|
|
|
1951
1954
|
default: I(() => [
|
|
1952
1955
|
m("ul", Qe, [
|
|
1953
1956
|
(S(!0), J($t, null, Ht(e.renderEventList, (g, p) => {
|
|
1954
|
-
var
|
|
1957
|
+
var y;
|
|
1955
1958
|
return S(), J("li", {
|
|
1956
1959
|
key: p,
|
|
1957
1960
|
class: It(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[p] }]),
|
|
1958
|
-
onClick: (
|
|
1961
|
+
onClick: (C) => e.openActionDialog({ eventName: p }, !0)
|
|
1959
1962
|
}, [
|
|
1960
|
-
m("div", null, W(p) + " | " + W(((
|
|
1963
|
+
m("div", null, W(p) + " | " + W(((y = g == null ? void 0 : g.label) == null ? void 0 : y[e.locale]) || p), 1)
|
|
1961
1964
|
], 10, tn);
|
|
1962
1965
|
}), 128))
|
|
1963
1966
|
])
|
|
@@ -1980,18 +1983,18 @@ function dn(c, t, n, e, i, o) {
|
|
|
1980
1983
|
]),
|
|
1981
1984
|
ee(m("ul", en, [
|
|
1982
1985
|
(S(!0), J($t, null, Ht(e.state.bindActions, (g) => {
|
|
1983
|
-
var p,
|
|
1986
|
+
var p, y;
|
|
1984
1987
|
return S(), J("li", {
|
|
1985
1988
|
key: g.eventName
|
|
1986
1989
|
}, [
|
|
1987
1990
|
m("div", nn, [
|
|
1988
1991
|
m("div", {
|
|
1989
1992
|
class: "binding-name",
|
|
1990
|
-
onClick: (
|
|
1993
|
+
onClick: (C) => e.openActionDialog(g)
|
|
1991
1994
|
}, [
|
|
1992
1995
|
m("div", null, [
|
|
1993
1996
|
Dt(W(g.eventName), 1),
|
|
1994
|
-
m("span", null, W((
|
|
1997
|
+
m("span", null, W((y = (p = e.renderEventList[g.eventName]) == null ? void 0 : p.label) == null ? void 0 : y[e.locale]), 1)
|
|
1995
1998
|
]),
|
|
1996
1999
|
m("div", {
|
|
1997
2000
|
class: It({ linked: g.linked })
|
|
@@ -2008,17 +2011,17 @@ function dn(c, t, n, e, i, o) {
|
|
|
2008
2011
|
tips: "定位到代码",
|
|
2009
2012
|
placement: "top",
|
|
2010
2013
|
hoverBgColor: !1,
|
|
2011
|
-
onClick: (
|
|
2014
|
+
onClick: (C) => e.openCodePanel(g)
|
|
2012
2015
|
}, null, 8, ["onClick"]),
|
|
2013
2016
|
_(l, {
|
|
2014
2017
|
name: "setting",
|
|
2015
2018
|
hoverBgColor: !1,
|
|
2016
|
-
onClick: (
|
|
2019
|
+
onClick: (C) => e.openActionDialog(g, !1)
|
|
2017
2020
|
}, null, 8, ["onClick"]),
|
|
2018
2021
|
_(l, {
|
|
2019
2022
|
name: "delete",
|
|
2020
2023
|
hoverBgColor: !1,
|
|
2021
|
-
onClick: (
|
|
2024
|
+
onClick: (C) => e.delEvent(g)
|
|
2022
2025
|
}, null, 8, ["onClick"])
|
|
2023
2026
|
])
|
|
2024
2027
|
])
|
|
@@ -2057,7 +2060,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2057
2060
|
} = ut, hn = {
|
|
2058
2061
|
components: {
|
|
2059
2062
|
SwitchConfigurator: lt,
|
|
2060
|
-
TinyTooltip:
|
|
2063
|
+
TinyTooltip: xe,
|
|
2061
2064
|
VariableConfigurator: at,
|
|
2062
2065
|
InputConfigurator: rt,
|
|
2063
2066
|
CodeConfigurator: st
|
|
@@ -2066,7 +2069,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2066
2069
|
setup() {
|
|
2067
2070
|
const {
|
|
2068
2071
|
pageState: c
|
|
2069
|
-
} =
|
|
2072
|
+
} = E(), t = Lt(!1), n = Tt(() => {
|
|
2070
2073
|
var l;
|
|
2071
2074
|
return ((l = t.value) == null ? void 0 : l.type) === G.JSEXPRESSION;
|
|
2072
2075
|
}), e = b(() => {
|
|
@@ -2093,7 +2096,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2093
2096
|
SwitchConfigurator: lt,
|
|
2094
2097
|
VariableConfigurator: at,
|
|
2095
2098
|
useProperties: $,
|
|
2096
|
-
useCanvas:
|
|
2099
|
+
useCanvas: E,
|
|
2097
2100
|
PROP_DATA_TYPE: G,
|
|
2098
2101
|
constants: ht,
|
|
2099
2102
|
utils: ut,
|
|
@@ -2119,7 +2122,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2119
2122
|
t.value = (l == null ? void 0 : l.condition) === void 0 ? !0 : l == null ? void 0 : l.condition, i.loopData = l == null ? void 0 : l.loop, i.loopItem = ((u = l == null ? void 0 : l.loopArgs) == null ? void 0 : u[0]) || "", i.loopIndex = ((h = l == null ? void 0 : l.loopArgs) == null ? void 0 : h[1]) || "", i.loopKey = ((p = (g = l == null ? void 0 : l.props) == null ? void 0 : g.key) == null ? void 0 : p.value) || "";
|
|
2120
2123
|
});
|
|
2121
2124
|
const o = b((l = "") => {
|
|
2122
|
-
var
|
|
2125
|
+
var C;
|
|
2123
2126
|
l = l.replace(/\s*/g, "");
|
|
2124
2127
|
const {
|
|
2125
2128
|
getSchema: u,
|
|
@@ -2128,14 +2131,14 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2128
2131
|
if (!g)
|
|
2129
2132
|
return;
|
|
2130
2133
|
const p = Number(l).toString() !== "NaN";
|
|
2131
|
-
let
|
|
2132
|
-
l && !p && (
|
|
2134
|
+
let y = (C = g.props) == null ? void 0 : C.key;
|
|
2135
|
+
l && !p && (y = {
|
|
2133
2136
|
type: G.JSEXPRESSION,
|
|
2134
2137
|
value: l
|
|
2135
|
-
}), l || (i.isLoop ?
|
|
2138
|
+
}), l || (i.isLoop ? y = {
|
|
2136
2139
|
type: G.JSEXPRESSION,
|
|
2137
2140
|
value: e()
|
|
2138
|
-
} :
|
|
2141
|
+
} : y = ""), h("key", y);
|
|
2139
2142
|
}, {
|
|
2140
2143
|
metaData: {
|
|
2141
2144
|
id: "engine.setting.event.AdvanceConfig.setLoopKey"
|
|
@@ -2157,7 +2160,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2157
2160
|
SwitchConfigurator: lt,
|
|
2158
2161
|
VariableConfigurator: at,
|
|
2159
2162
|
useProperties: $,
|
|
2160
|
-
useCanvas:
|
|
2163
|
+
useCanvas: E,
|
|
2161
2164
|
PROP_DATA_TYPE: G,
|
|
2162
2165
|
constants: ht,
|
|
2163
2166
|
utils: ut,
|
|
@@ -2192,7 +2195,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2192
2195
|
SwitchConfigurator: lt,
|
|
2193
2196
|
VariableConfigurator: at,
|
|
2194
2197
|
useProperties: $,
|
|
2195
|
-
useCanvas:
|
|
2198
|
+
useCanvas: E,
|
|
2196
2199
|
PROP_DATA_TYPE: G,
|
|
2197
2200
|
constants: ht,
|
|
2198
2201
|
utils: ut,
|
|
@@ -2207,7 +2210,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2207
2210
|
return;
|
|
2208
2211
|
const {
|
|
2209
2212
|
operateNode: g
|
|
2210
|
-
} =
|
|
2213
|
+
} = E();
|
|
2211
2214
|
if (l === !1 || l != null && l.type)
|
|
2212
2215
|
g({
|
|
2213
2216
|
type: "updateAttributes",
|
|
@@ -2219,19 +2222,19 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2219
2222
|
else {
|
|
2220
2223
|
const {
|
|
2221
2224
|
condition: p,
|
|
2222
|
-
children:
|
|
2223
|
-
...
|
|
2225
|
+
children: y,
|
|
2226
|
+
...C
|
|
2224
2227
|
} = h;
|
|
2225
2228
|
g({
|
|
2226
2229
|
type: "updateAttributes",
|
|
2227
2230
|
id: h.id,
|
|
2228
2231
|
value: {
|
|
2229
|
-
...
|
|
2232
|
+
...C
|
|
2230
2233
|
},
|
|
2231
2234
|
overwrite: !0
|
|
2232
2235
|
});
|
|
2233
2236
|
}
|
|
2234
|
-
|
|
2237
|
+
E().canvasApi.value.updateRect(), t.value = l;
|
|
2235
2238
|
}, {
|
|
2236
2239
|
metaData: {
|
|
2237
2240
|
id: "engine.setting.event.AdvanceConfig.setConfig"
|
|
@@ -2253,7 +2256,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2253
2256
|
SwitchConfigurator: lt,
|
|
2254
2257
|
VariableConfigurator: at,
|
|
2255
2258
|
useProperties: $,
|
|
2256
|
-
useCanvas:
|
|
2259
|
+
useCanvas: E,
|
|
2257
2260
|
PROP_DATA_TYPE: G,
|
|
2258
2261
|
constants: ht,
|
|
2259
2262
|
utils: ut,
|
|
@@ -2265,7 +2268,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2265
2268
|
let h = u.loopArgs;
|
|
2266
2269
|
const {
|
|
2267
2270
|
operateNode: g
|
|
2268
|
-
} =
|
|
2271
|
+
} = E();
|
|
2269
2272
|
h ? h[1] = l || z.INDEX : h = [z.ITEM, l], g({
|
|
2270
2273
|
type: "updateAttributes",
|
|
2271
2274
|
id: u.id,
|
|
@@ -2294,7 +2297,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2294
2297
|
SwitchConfigurator: lt,
|
|
2295
2298
|
VariableConfigurator: at,
|
|
2296
2299
|
useProperties: $,
|
|
2297
|
-
useCanvas:
|
|
2300
|
+
useCanvas: E,
|
|
2298
2301
|
PROP_DATA_TYPE: G,
|
|
2299
2302
|
constants: ht,
|
|
2300
2303
|
utils: ut,
|
|
@@ -2304,7 +2307,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2304
2307
|
}), d = b((l) => {
|
|
2305
2308
|
const {
|
|
2306
2309
|
operateNode: u
|
|
2307
|
-
} =
|
|
2310
|
+
} = E(), {
|
|
2308
2311
|
getSchema: h
|
|
2309
2312
|
} = $(), g = h();
|
|
2310
2313
|
if (l) {
|
|
@@ -2320,8 +2323,8 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2320
2323
|
o();
|
|
2321
2324
|
const {
|
|
2322
2325
|
loop: p,
|
|
2323
|
-
loopArgs:
|
|
2324
|
-
children:
|
|
2326
|
+
loopArgs: y,
|
|
2327
|
+
children: C,
|
|
2325
2328
|
...A
|
|
2326
2329
|
} = g;
|
|
2327
2330
|
u({
|
|
@@ -2353,7 +2356,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2353
2356
|
SwitchConfigurator: lt,
|
|
2354
2357
|
VariableConfigurator: at,
|
|
2355
2358
|
useProperties: $,
|
|
2356
|
-
useCanvas:
|
|
2359
|
+
useCanvas: E,
|
|
2357
2360
|
PROP_DATA_TYPE: G,
|
|
2358
2361
|
constants: ht,
|
|
2359
2362
|
utils: ut,
|
|
@@ -2365,7 +2368,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2365
2368
|
let h = u.loopArgs;
|
|
2366
2369
|
const {
|
|
2367
2370
|
operateNode: g
|
|
2368
|
-
} =
|
|
2371
|
+
} = E();
|
|
2369
2372
|
h ? h[0] = l || z.ITEM : h = [l, z.INDEX], g({
|
|
2370
2373
|
type: "updateAttributes",
|
|
2371
2374
|
id: u.id,
|
|
@@ -2394,7 +2397,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2394
2397
|
SwitchConfigurator: lt,
|
|
2395
2398
|
VariableConfigurator: at,
|
|
2396
2399
|
useProperties: $,
|
|
2397
|
-
useCanvas:
|
|
2400
|
+
useCanvas: E,
|
|
2398
2401
|
PROP_DATA_TYPE: G,
|
|
2399
2402
|
constants: ht,
|
|
2400
2403
|
utils: ut,
|
|
@@ -2416,7 +2419,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2416
2419
|
getIndexName: e
|
|
2417
2420
|
};
|
|
2418
2421
|
}
|
|
2419
|
-
}, un = { class: "advanced-config-container" }, gn = { class: "advnce-config" }, fn = { class: "advanced-config-form-item" }, mn = ["title"], pn = { class: "advnce-config loop-data-item" }, vn = { class: "advanced-config-form-item" }, bn = ["title"], _n = { class: "advnce-config" }, En = { class: "advanced-config-form-item" }, yn = { class: "advnce-config" }, wn = { class: "advanced-config-form-item" },
|
|
2422
|
+
}, un = { class: "advanced-config-container" }, gn = { class: "advnce-config" }, fn = { class: "advanced-config-form-item" }, mn = ["title"], pn = { class: "advnce-config loop-data-item" }, vn = { class: "advanced-config-form-item" }, bn = ["title"], _n = { class: "advnce-config" }, En = { class: "advanced-config-form-item" }, yn = { class: "advnce-config" }, wn = { class: "advanced-config-form-item" }, Cn = { class: "advnce-config" }, xn = { class: "advanced-config-form-item" };
|
|
2420
2423
|
function kn(c, t, n, e, i, o) {
|
|
2421
2424
|
var l, u;
|
|
2422
2425
|
const s = B("switch-configurator"), r = B("variable-configurator"), a = B("code-configurator"), d = B("input-configurator"), f = B("tiny-tooltip");
|
|
@@ -2496,9 +2499,9 @@ function kn(c, t, n, e, i, o) {
|
|
|
2496
2499
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
2497
2500
|
])
|
|
2498
2501
|
]),
|
|
2499
|
-
m("div",
|
|
2502
|
+
m("div", Cn, [
|
|
2500
2503
|
t[10] || (t[10] = m("label", { class: "text-ellipsis-multiple" }, "key", -1)),
|
|
2501
|
-
m("div",
|
|
2504
|
+
m("div", xn, [
|
|
2502
2505
|
_(f, {
|
|
2503
2506
|
content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
|
|
2504
2507
|
effect: "light"
|
|
@@ -2586,7 +2589,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2586
2589
|
setup() {
|
|
2587
2590
|
const {
|
|
2588
2591
|
getMethodNameList: c
|
|
2589
|
-
} = k(
|
|
2592
|
+
} = k(x.Page), t = ge("context"), n = {
|
|
2590
2593
|
language: "json",
|
|
2591
2594
|
lineNumbers: !1,
|
|
2592
2595
|
minimap: {
|
|
@@ -2609,7 +2612,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2609
2612
|
change: r,
|
|
2610
2613
|
VueMonaco: St,
|
|
2611
2614
|
getMetaApi: k,
|
|
2612
|
-
META_APP:
|
|
2615
|
+
META_APP: x,
|
|
2613
2616
|
METHOD_TIPS_MAP: ct,
|
|
2614
2617
|
NEW_METHOD_TYPE: Q,
|
|
2615
2618
|
VALID_VARNAME_RE: Nt
|
|
@@ -2629,7 +2632,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2629
2632
|
change: r,
|
|
2630
2633
|
VueMonaco: St,
|
|
2631
2634
|
getMetaApi: k,
|
|
2632
|
-
META_APP:
|
|
2635
|
+
META_APP: x,
|
|
2633
2636
|
METHOD_TIPS_MAP: ct,
|
|
2634
2637
|
NEW_METHOD_TYPE: Q,
|
|
2635
2638
|
VALID_VARNAME_RE: Nt
|
|
@@ -2649,7 +2652,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2649
2652
|
change: r,
|
|
2650
2653
|
VueMonaco: St,
|
|
2651
2654
|
getMetaApi: k,
|
|
2652
|
-
META_APP:
|
|
2655
|
+
META_APP: x,
|
|
2653
2656
|
METHOD_TIPS_MAP: ct,
|
|
2654
2657
|
NEW_METHOD_TYPE: Q,
|
|
2655
2658
|
VALID_VARNAME_RE: Nt
|
|
@@ -2669,7 +2672,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2669
2672
|
change: r,
|
|
2670
2673
|
VueMonaco: St,
|
|
2671
2674
|
getMetaApi: k,
|
|
2672
|
-
META_APP:
|
|
2675
|
+
META_APP: x,
|
|
2673
2676
|
METHOD_TIPS_MAP: ct,
|
|
2674
2677
|
NEW_METHOD_TYPE: Q,
|
|
2675
2678
|
VALID_VARNAME_RE: Nt
|
|
@@ -2708,7 +2711,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2708
2711
|
change: r,
|
|
2709
2712
|
VueMonaco: St,
|
|
2710
2713
|
getMetaApi: k,
|
|
2711
|
-
META_APP:
|
|
2714
|
+
META_APP: x,
|
|
2712
2715
|
METHOD_TIPS_MAP: ct,
|
|
2713
2716
|
NEW_METHOD_TYPE: Q,
|
|
2714
2717
|
VALID_VARNAME_RE: Nt
|
|
@@ -2794,7 +2797,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2794
2797
|
setup(c) {
|
|
2795
2798
|
const {
|
|
2796
2799
|
getMethodNameList: t
|
|
2797
|
-
} = k(
|
|
2800
|
+
} = k(x.Page), n = Lt(""), e = Lt([]), i = ge("context"), o = b((r, a) => {
|
|
2798
2801
|
const d = r.map((u) => {
|
|
2799
2802
|
var h;
|
|
2800
2803
|
return Number.parseInt((h = u.match(/\d+$/)) == null ? void 0 : h[0]) || 0;
|
|
@@ -2814,7 +2817,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2814
2817
|
generateMethodName: o,
|
|
2815
2818
|
selectMethod: s,
|
|
2816
2819
|
getMetaApi: k,
|
|
2817
|
-
META_APP:
|
|
2820
|
+
META_APP: x,
|
|
2818
2821
|
INVALID_VARNAME_CHAR_RE: Kt,
|
|
2819
2822
|
NEW_METHOD_TYPE: Q
|
|
2820
2823
|
})
|
|
@@ -2833,7 +2836,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2833
2836
|
generateMethodName: o,
|
|
2834
2837
|
selectMethod: s,
|
|
2835
2838
|
getMetaApi: k,
|
|
2836
|
-
META_APP:
|
|
2839
|
+
META_APP: x,
|
|
2837
2840
|
INVALID_VARNAME_CHAR_RE: Kt,
|
|
2838
2841
|
NEW_METHOD_TYPE: Q
|
|
2839
2842
|
})
|