@opentiny/tiny-engine-setting-events 2.7.3 → 2.7.4-alpha.0
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 +201 -205
- 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
|
|
@@ -1257,21 +1260,19 @@ function He(c, t, n, e, i, o) {
|
|
|
1257
1260
|
footer: I(() => [
|
|
1258
1261
|
m("div", Ke, [
|
|
1259
1262
|
_(r, { onClick: e.closeDialog }, {
|
|
1260
|
-
default: I(() => t[0] || (t[0] = [
|
|
1263
|
+
default: I(() => [...t[0] || (t[0] = [
|
|
1261
1264
|
Dt("取 消", -1)
|
|
1262
|
-
])),
|
|
1263
|
-
_: 1
|
|
1264
|
-
__: [0]
|
|
1265
|
+
])]),
|
|
1266
|
+
_: 1
|
|
1265
1267
|
}, 8, ["onClick"]),
|
|
1266
1268
|
_(r, {
|
|
1267
1269
|
type: "info",
|
|
1268
1270
|
onClick: e.confirm
|
|
1269
1271
|
}, {
|
|
1270
|
-
default: I(() => t[1] || (t[1] = [
|
|
1272
|
+
default: I(() => [...t[1] || (t[1] = [
|
|
1271
1273
|
Dt("确 定", -1)
|
|
1272
|
-
])),
|
|
1273
|
-
_: 1
|
|
1274
|
-
__: [1]
|
|
1274
|
+
])]),
|
|
1275
|
+
_: 1
|
|
1275
1276
|
}, 8, ["onClick"])
|
|
1276
1277
|
])
|
|
1277
1278
|
]),
|
|
@@ -1295,7 +1296,7 @@ function He(c, t, n, e, i, o) {
|
|
|
1295
1296
|
_: 1
|
|
1296
1297
|
}, 8, ["visible", "onClose", "onOpened"]);
|
|
1297
1298
|
}
|
|
1298
|
-
const
|
|
1299
|
+
const xt = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-75c09cb1"]]), pe = {
|
|
1299
1300
|
onClick: {
|
|
1300
1301
|
label: {
|
|
1301
1302
|
zh_CN: "点击事件"
|
|
@@ -1474,21 +1475,19 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1474
1475
|
footer: I(() => [
|
|
1475
1476
|
m("div", qe, [
|
|
1476
1477
|
_(O(Ft), { onClick: O(a) }, {
|
|
1477
|
-
default: I(() => l[2] || (l[2] = [
|
|
1478
|
+
default: I(() => [...l[2] || (l[2] = [
|
|
1478
1479
|
Dt(" 取消", -1)
|
|
1479
|
-
])),
|
|
1480
|
-
_: 1
|
|
1481
|
-
__: [2]
|
|
1480
|
+
])]),
|
|
1481
|
+
_: 1
|
|
1482
1482
|
}, 8, ["onClick"]),
|
|
1483
1483
|
_(O(Ft), {
|
|
1484
1484
|
type: "primary",
|
|
1485
1485
|
onClick: O(d)
|
|
1486
1486
|
}, {
|
|
1487
|
-
default: I(() => l[3] || (l[3] = [
|
|
1487
|
+
default: I(() => [...l[3] || (l[3] = [
|
|
1488
1488
|
Dt(" 确定", -1)
|
|
1489
|
-
])),
|
|
1490
|
-
_: 1
|
|
1491
|
-
__: [3]
|
|
1489
|
+
])]),
|
|
1490
|
+
_: 1
|
|
1492
1491
|
}, 8, ["onClick"])
|
|
1493
1492
|
])
|
|
1494
1493
|
]),
|
|
@@ -1542,10 +1541,10 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1542
1541
|
}, kt = /* @__PURE__ */ Bt(Ge, [["__scopeId", "data-v-2ed7fac6"]]), We = {
|
|
1543
1542
|
components: {
|
|
1544
1543
|
BlockLinkEvent: wt,
|
|
1545
|
-
BindEventsDialog:
|
|
1546
|
-
TinyPopover:
|
|
1544
|
+
BindEventsDialog: xt,
|
|
1545
|
+
TinyPopover: Ce,
|
|
1547
1546
|
TinyButton: Ft,
|
|
1548
|
-
IconChevronDown:
|
|
1547
|
+
IconChevronDown: Ct(),
|
|
1549
1548
|
SvgButton: yt,
|
|
1550
1549
|
AddEventsDialog: kt
|
|
1551
1550
|
},
|
|
@@ -1556,7 +1555,7 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1556
1555
|
activePlugin: t
|
|
1557
1556
|
} = N(), {
|
|
1558
1557
|
pageState: n
|
|
1559
|
-
} =
|
|
1558
|
+
} = E(), {
|
|
1560
1559
|
getBlockEvents: e,
|
|
1561
1560
|
getCurrentBlock: i,
|
|
1562
1561
|
removeEventLink: o
|
|
@@ -1566,7 +1565,7 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1566
1565
|
confirm: r
|
|
1567
1566
|
} = bt(), a = Et.global.locale.value, {
|
|
1568
1567
|
highlightMethod: d
|
|
1569
|
-
} = k(
|
|
1568
|
+
} = k(x.Page), {
|
|
1570
1569
|
commonEvents: f = {}
|
|
1571
1570
|
} = L("engine.setting.event").options, l = Ut({
|
|
1572
1571
|
eventName: "",
|
|
@@ -1633,29 +1632,29 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1633
1632
|
isEmpty: h,
|
|
1634
1633
|
renderEventList: g,
|
|
1635
1634
|
openActionDialog: p,
|
|
1636
|
-
deleteAction:
|
|
1637
|
-
delEvent:
|
|
1635
|
+
deleteAction: y,
|
|
1636
|
+
delEvent: C,
|
|
1638
1637
|
openCodePanel: A,
|
|
1639
1638
|
handleToggleAddEventDialog: P,
|
|
1640
|
-
handleAddEvent:
|
|
1639
|
+
handleAddEvent: w,
|
|
1641
1640
|
useModal: bt,
|
|
1642
1641
|
getMergeMeta: L,
|
|
1643
|
-
useCanvas:
|
|
1642
|
+
useCanvas: E,
|
|
1644
1643
|
useLayout: N,
|
|
1645
1644
|
useBlock: pt,
|
|
1646
1645
|
useMaterial: vt,
|
|
1647
1646
|
getMetaApi: k,
|
|
1648
|
-
META_APP:
|
|
1647
|
+
META_APP: x,
|
|
1649
1648
|
useMessage: _t,
|
|
1650
1649
|
i18n: Et,
|
|
1651
1650
|
BlockLinkEvent: wt,
|
|
1652
1651
|
SvgButton: yt,
|
|
1653
|
-
iconChevronDown:
|
|
1654
|
-
BindEventsDialog:
|
|
1652
|
+
iconChevronDown: Ct,
|
|
1653
|
+
BindEventsDialog: xt,
|
|
1655
1654
|
openDialog: V,
|
|
1656
1655
|
AddEventsDialog: kt
|
|
1657
1656
|
})
|
|
1658
|
-
}),
|
|
1657
|
+
}), y = b((v) => {
|
|
1659
1658
|
var M;
|
|
1660
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({
|
|
1661
1660
|
topic: "schemaChange",
|
|
@@ -1684,36 +1683,36 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1684
1683
|
isEmpty: h,
|
|
1685
1684
|
renderEventList: g,
|
|
1686
1685
|
openActionDialog: p,
|
|
1687
|
-
deleteAction:
|
|
1688
|
-
delEvent:
|
|
1686
|
+
deleteAction: y,
|
|
1687
|
+
delEvent: C,
|
|
1689
1688
|
openCodePanel: A,
|
|
1690
1689
|
handleToggleAddEventDialog: P,
|
|
1691
|
-
handleAddEvent:
|
|
1690
|
+
handleAddEvent: w,
|
|
1692
1691
|
useModal: bt,
|
|
1693
1692
|
getMergeMeta: L,
|
|
1694
|
-
useCanvas:
|
|
1693
|
+
useCanvas: E,
|
|
1695
1694
|
useLayout: N,
|
|
1696
1695
|
useBlock: pt,
|
|
1697
1696
|
useMaterial: vt,
|
|
1698
1697
|
getMetaApi: k,
|
|
1699
|
-
META_APP:
|
|
1698
|
+
META_APP: x,
|
|
1700
1699
|
useMessage: _t,
|
|
1701
1700
|
i18n: Et,
|
|
1702
1701
|
BlockLinkEvent: wt,
|
|
1703
1702
|
SvgButton: yt,
|
|
1704
|
-
iconChevronDown:
|
|
1705
|
-
BindEventsDialog:
|
|
1703
|
+
iconChevronDown: Ct,
|
|
1704
|
+
BindEventsDialog: xt,
|
|
1706
1705
|
openDialog: V,
|
|
1707
1706
|
AddEventsDialog: kt
|
|
1708
1707
|
})
|
|
1709
|
-
}),
|
|
1708
|
+
}), C = b((v) => {
|
|
1710
1709
|
r({
|
|
1711
1710
|
title: "提示",
|
|
1712
1711
|
message: `您确定要删除事件 ${v.eventName} 吗?`,
|
|
1713
1712
|
exec() {
|
|
1714
1713
|
n.isBlock && o({
|
|
1715
1714
|
linked: v.linked
|
|
1716
|
-
}),
|
|
1715
|
+
}), y(v);
|
|
1717
1716
|
}
|
|
1718
1717
|
});
|
|
1719
1718
|
}, {
|
|
@@ -1737,25 +1736,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1737
1736
|
isEmpty: h,
|
|
1738
1737
|
renderEventList: g,
|
|
1739
1738
|
openActionDialog: p,
|
|
1740
|
-
deleteAction:
|
|
1741
|
-
delEvent:
|
|
1739
|
+
deleteAction: y,
|
|
1740
|
+
delEvent: C,
|
|
1742
1741
|
openCodePanel: A,
|
|
1743
1742
|
handleToggleAddEventDialog: P,
|
|
1744
|
-
handleAddEvent:
|
|
1743
|
+
handleAddEvent: w,
|
|
1745
1744
|
useModal: bt,
|
|
1746
1745
|
getMergeMeta: L,
|
|
1747
|
-
useCanvas:
|
|
1746
|
+
useCanvas: E,
|
|
1748
1747
|
useLayout: N,
|
|
1749
1748
|
useBlock: pt,
|
|
1750
1749
|
useMaterial: vt,
|
|
1751
1750
|
getMetaApi: k,
|
|
1752
|
-
META_APP:
|
|
1751
|
+
META_APP: x,
|
|
1753
1752
|
useMessage: _t,
|
|
1754
1753
|
i18n: Et,
|
|
1755
1754
|
BlockLinkEvent: wt,
|
|
1756
1755
|
SvgButton: yt,
|
|
1757
|
-
iconChevronDown:
|
|
1758
|
-
BindEventsDialog:
|
|
1756
|
+
iconChevronDown: Ct,
|
|
1757
|
+
BindEventsDialog: xt,
|
|
1759
1758
|
openDialog: V,
|
|
1760
1759
|
AddEventsDialog: kt
|
|
1761
1760
|
})
|
|
@@ -1784,25 +1783,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1784
1783
|
isEmpty: h,
|
|
1785
1784
|
renderEventList: g,
|
|
1786
1785
|
openActionDialog: p,
|
|
1787
|
-
deleteAction:
|
|
1788
|
-
delEvent:
|
|
1786
|
+
deleteAction: y,
|
|
1787
|
+
delEvent: C,
|
|
1789
1788
|
openCodePanel: A,
|
|
1790
1789
|
handleToggleAddEventDialog: P,
|
|
1791
|
-
handleAddEvent:
|
|
1790
|
+
handleAddEvent: w,
|
|
1792
1791
|
useModal: bt,
|
|
1793
1792
|
getMergeMeta: L,
|
|
1794
|
-
useCanvas:
|
|
1793
|
+
useCanvas: E,
|
|
1795
1794
|
useLayout: N,
|
|
1796
1795
|
useBlock: pt,
|
|
1797
1796
|
useMaterial: vt,
|
|
1798
1797
|
getMetaApi: k,
|
|
1799
|
-
META_APP:
|
|
1798
|
+
META_APP: x,
|
|
1800
1799
|
useMessage: _t,
|
|
1801
1800
|
i18n: Et,
|
|
1802
1801
|
BlockLinkEvent: wt,
|
|
1803
1802
|
SvgButton: yt,
|
|
1804
|
-
iconChevronDown:
|
|
1805
|
-
BindEventsDialog:
|
|
1803
|
+
iconChevronDown: Ct,
|
|
1804
|
+
BindEventsDialog: xt,
|
|
1806
1805
|
openDialog: V,
|
|
1807
1806
|
AddEventsDialog: kt
|
|
1808
1807
|
})
|
|
@@ -1829,29 +1828,29 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1829
1828
|
isEmpty: h,
|
|
1830
1829
|
renderEventList: g,
|
|
1831
1830
|
openActionDialog: p,
|
|
1832
|
-
deleteAction:
|
|
1833
|
-
delEvent:
|
|
1831
|
+
deleteAction: y,
|
|
1832
|
+
delEvent: C,
|
|
1834
1833
|
openCodePanel: A,
|
|
1835
1834
|
handleToggleAddEventDialog: P,
|
|
1836
|
-
handleAddEvent:
|
|
1835
|
+
handleAddEvent: w,
|
|
1837
1836
|
useModal: bt,
|
|
1838
1837
|
getMergeMeta: L,
|
|
1839
|
-
useCanvas:
|
|
1838
|
+
useCanvas: E,
|
|
1840
1839
|
useLayout: N,
|
|
1841
1840
|
useBlock: pt,
|
|
1842
1841
|
useMaterial: vt,
|
|
1843
1842
|
getMetaApi: k,
|
|
1844
|
-
META_APP:
|
|
1843
|
+
META_APP: x,
|
|
1845
1844
|
useMessage: _t,
|
|
1846
1845
|
i18n: Et,
|
|
1847
1846
|
BlockLinkEvent: wt,
|
|
1848
1847
|
SvgButton: yt,
|
|
1849
|
-
iconChevronDown:
|
|
1850
|
-
BindEventsDialog:
|
|
1848
|
+
iconChevronDown: Ct,
|
|
1849
|
+
BindEventsDialog: xt,
|
|
1851
1850
|
openDialog: V,
|
|
1852
1851
|
AddEventsDialog: kt
|
|
1853
1852
|
})
|
|
1854
|
-
}),
|
|
1853
|
+
}), w = b((v) => {
|
|
1855
1854
|
const {
|
|
1856
1855
|
eventName: D,
|
|
1857
1856
|
eventDescription: M
|
|
@@ -1893,25 +1892,25 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1893
1892
|
isEmpty: h,
|
|
1894
1893
|
renderEventList: g,
|
|
1895
1894
|
openActionDialog: p,
|
|
1896
|
-
deleteAction:
|
|
1897
|
-
delEvent:
|
|
1895
|
+
deleteAction: y,
|
|
1896
|
+
delEvent: C,
|
|
1898
1897
|
openCodePanel: A,
|
|
1899
1898
|
handleToggleAddEventDialog: P,
|
|
1900
|
-
handleAddEvent:
|
|
1899
|
+
handleAddEvent: w,
|
|
1901
1900
|
useModal: bt,
|
|
1902
1901
|
getMergeMeta: L,
|
|
1903
|
-
useCanvas:
|
|
1902
|
+
useCanvas: E,
|
|
1904
1903
|
useLayout: N,
|
|
1905
1904
|
useBlock: pt,
|
|
1906
1905
|
useMaterial: vt,
|
|
1907
1906
|
getMetaApi: k,
|
|
1908
|
-
META_APP:
|
|
1907
|
+
META_APP: x,
|
|
1909
1908
|
useMessage: _t,
|
|
1910
1909
|
i18n: Et,
|
|
1911
1910
|
BlockLinkEvent: wt,
|
|
1912
1911
|
SvgButton: yt,
|
|
1913
|
-
iconChevronDown:
|
|
1914
|
-
BindEventsDialog:
|
|
1912
|
+
iconChevronDown: Ct,
|
|
1913
|
+
BindEventsDialog: xt,
|
|
1915
1914
|
openDialog: V,
|
|
1916
1915
|
AddEventsDialog: kt
|
|
1917
1916
|
})
|
|
@@ -1920,10 +1919,10 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1920
1919
|
state: l,
|
|
1921
1920
|
isBlock: u,
|
|
1922
1921
|
isEmpty: h,
|
|
1923
|
-
delEvent:
|
|
1922
|
+
delEvent: C,
|
|
1924
1923
|
openCodePanel: A,
|
|
1925
1924
|
openActionDialog: p,
|
|
1926
|
-
handleAddEvent:
|
|
1925
|
+
handleAddEvent: w,
|
|
1927
1926
|
handleToggleAddEventDialog: P,
|
|
1928
1927
|
renderEventList: g,
|
|
1929
1928
|
locale: a
|
|
@@ -1949,20 +1948,19 @@ function dn(c, t, n, e, i, o) {
|
|
|
1949
1948
|
t[2] || (t[2] = m("span", null, "绑定事件", -1)),
|
|
1950
1949
|
_(s, { class: "icon-chevron-down bind-event-btn-icon" })
|
|
1951
1950
|
]),
|
|
1952
|
-
_: 1
|
|
1953
|
-
__: [2]
|
|
1951
|
+
_: 1
|
|
1954
1952
|
})
|
|
1955
1953
|
]),
|
|
1956
1954
|
default: I(() => [
|
|
1957
1955
|
m("ul", Qe, [
|
|
1958
1956
|
(S(!0), J($t, null, Ht(e.renderEventList, (g, p) => {
|
|
1959
|
-
var
|
|
1957
|
+
var y;
|
|
1960
1958
|
return S(), J("li", {
|
|
1961
1959
|
key: p,
|
|
1962
1960
|
class: It(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[p] }]),
|
|
1963
|
-
onClick: (
|
|
1961
|
+
onClick: (C) => e.openActionDialog({ eventName: p }, !0)
|
|
1964
1962
|
}, [
|
|
1965
|
-
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)
|
|
1966
1964
|
], 10, tn);
|
|
1967
1965
|
}), 128))
|
|
1968
1966
|
])
|
|
@@ -1980,24 +1978,23 @@ function dn(c, t, n, e, i, o) {
|
|
|
1980
1978
|
}),
|
|
1981
1979
|
t[3] || (t[3] = m("span", { class: "custom-event-button-text" }, "添加新事件", -1))
|
|
1982
1980
|
]),
|
|
1983
|
-
_: 1
|
|
1984
|
-
__: [3]
|
|
1981
|
+
_: 1
|
|
1985
1982
|
})
|
|
1986
1983
|
]),
|
|
1987
1984
|
ee(m("ul", en, [
|
|
1988
1985
|
(S(!0), J($t, null, Ht(e.state.bindActions, (g) => {
|
|
1989
|
-
var p,
|
|
1986
|
+
var p, y;
|
|
1990
1987
|
return S(), J("li", {
|
|
1991
1988
|
key: g.eventName
|
|
1992
1989
|
}, [
|
|
1993
1990
|
m("div", nn, [
|
|
1994
1991
|
m("div", {
|
|
1995
1992
|
class: "binding-name",
|
|
1996
|
-
onClick: (
|
|
1993
|
+
onClick: (C) => e.openActionDialog(g)
|
|
1997
1994
|
}, [
|
|
1998
1995
|
m("div", null, [
|
|
1999
1996
|
Dt(W(g.eventName), 1),
|
|
2000
|
-
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)
|
|
2001
1998
|
]),
|
|
2002
1999
|
m("div", {
|
|
2003
2000
|
class: It({ linked: g.linked })
|
|
@@ -2014,17 +2011,17 @@ function dn(c, t, n, e, i, o) {
|
|
|
2014
2011
|
tips: "定位到代码",
|
|
2015
2012
|
placement: "top",
|
|
2016
2013
|
hoverBgColor: !1,
|
|
2017
|
-
onClick: (
|
|
2014
|
+
onClick: (C) => e.openCodePanel(g)
|
|
2018
2015
|
}, null, 8, ["onClick"]),
|
|
2019
2016
|
_(l, {
|
|
2020
2017
|
name: "setting",
|
|
2021
2018
|
hoverBgColor: !1,
|
|
2022
|
-
onClick: (
|
|
2019
|
+
onClick: (C) => e.openActionDialog(g, !1)
|
|
2023
2020
|
}, null, 8, ["onClick"]),
|
|
2024
2021
|
_(l, {
|
|
2025
2022
|
name: "delete",
|
|
2026
2023
|
hoverBgColor: !1,
|
|
2027
|
-
onClick: (
|
|
2024
|
+
onClick: (C) => e.delEvent(g)
|
|
2028
2025
|
}, null, 8, ["onClick"])
|
|
2029
2026
|
])
|
|
2030
2027
|
])
|
|
@@ -2063,7 +2060,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2063
2060
|
} = ut, hn = {
|
|
2064
2061
|
components: {
|
|
2065
2062
|
SwitchConfigurator: lt,
|
|
2066
|
-
TinyTooltip:
|
|
2063
|
+
TinyTooltip: xe,
|
|
2067
2064
|
VariableConfigurator: at,
|
|
2068
2065
|
InputConfigurator: rt,
|
|
2069
2066
|
CodeConfigurator: st
|
|
@@ -2072,7 +2069,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2072
2069
|
setup() {
|
|
2073
2070
|
const {
|
|
2074
2071
|
pageState: c
|
|
2075
|
-
} =
|
|
2072
|
+
} = E(), t = Lt(!1), n = Tt(() => {
|
|
2076
2073
|
var l;
|
|
2077
2074
|
return ((l = t.value) == null ? void 0 : l.type) === G.JSEXPRESSION;
|
|
2078
2075
|
}), e = b(() => {
|
|
@@ -2099,7 +2096,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2099
2096
|
SwitchConfigurator: lt,
|
|
2100
2097
|
VariableConfigurator: at,
|
|
2101
2098
|
useProperties: $,
|
|
2102
|
-
useCanvas:
|
|
2099
|
+
useCanvas: E,
|
|
2103
2100
|
PROP_DATA_TYPE: G,
|
|
2104
2101
|
constants: ht,
|
|
2105
2102
|
utils: ut,
|
|
@@ -2125,7 +2122,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2125
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) || "";
|
|
2126
2123
|
});
|
|
2127
2124
|
const o = b((l = "") => {
|
|
2128
|
-
var
|
|
2125
|
+
var C;
|
|
2129
2126
|
l = l.replace(/\s*/g, "");
|
|
2130
2127
|
const {
|
|
2131
2128
|
getSchema: u,
|
|
@@ -2134,14 +2131,14 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2134
2131
|
if (!g)
|
|
2135
2132
|
return;
|
|
2136
2133
|
const p = Number(l).toString() !== "NaN";
|
|
2137
|
-
let
|
|
2138
|
-
l && !p && (
|
|
2134
|
+
let y = (C = g.props) == null ? void 0 : C.key;
|
|
2135
|
+
l && !p && (y = {
|
|
2139
2136
|
type: G.JSEXPRESSION,
|
|
2140
2137
|
value: l
|
|
2141
|
-
}), l || (i.isLoop ?
|
|
2138
|
+
}), l || (i.isLoop ? y = {
|
|
2142
2139
|
type: G.JSEXPRESSION,
|
|
2143
2140
|
value: e()
|
|
2144
|
-
} :
|
|
2141
|
+
} : y = ""), h("key", y);
|
|
2145
2142
|
}, {
|
|
2146
2143
|
metaData: {
|
|
2147
2144
|
id: "engine.setting.event.AdvanceConfig.setLoopKey"
|
|
@@ -2163,7 +2160,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2163
2160
|
SwitchConfigurator: lt,
|
|
2164
2161
|
VariableConfigurator: at,
|
|
2165
2162
|
useProperties: $,
|
|
2166
|
-
useCanvas:
|
|
2163
|
+
useCanvas: E,
|
|
2167
2164
|
PROP_DATA_TYPE: G,
|
|
2168
2165
|
constants: ht,
|
|
2169
2166
|
utils: ut,
|
|
@@ -2198,7 +2195,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2198
2195
|
SwitchConfigurator: lt,
|
|
2199
2196
|
VariableConfigurator: at,
|
|
2200
2197
|
useProperties: $,
|
|
2201
|
-
useCanvas:
|
|
2198
|
+
useCanvas: E,
|
|
2202
2199
|
PROP_DATA_TYPE: G,
|
|
2203
2200
|
constants: ht,
|
|
2204
2201
|
utils: ut,
|
|
@@ -2213,7 +2210,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2213
2210
|
return;
|
|
2214
2211
|
const {
|
|
2215
2212
|
operateNode: g
|
|
2216
|
-
} =
|
|
2213
|
+
} = E();
|
|
2217
2214
|
if (l === !1 || l != null && l.type)
|
|
2218
2215
|
g({
|
|
2219
2216
|
type: "updateAttributes",
|
|
@@ -2225,19 +2222,19 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2225
2222
|
else {
|
|
2226
2223
|
const {
|
|
2227
2224
|
condition: p,
|
|
2228
|
-
children:
|
|
2229
|
-
...
|
|
2225
|
+
children: y,
|
|
2226
|
+
...C
|
|
2230
2227
|
} = h;
|
|
2231
2228
|
g({
|
|
2232
2229
|
type: "updateAttributes",
|
|
2233
2230
|
id: h.id,
|
|
2234
2231
|
value: {
|
|
2235
|
-
...
|
|
2232
|
+
...C
|
|
2236
2233
|
},
|
|
2237
2234
|
overwrite: !0
|
|
2238
2235
|
});
|
|
2239
2236
|
}
|
|
2240
|
-
|
|
2237
|
+
E().canvasApi.value.updateRect(), t.value = l;
|
|
2241
2238
|
}, {
|
|
2242
2239
|
metaData: {
|
|
2243
2240
|
id: "engine.setting.event.AdvanceConfig.setConfig"
|
|
@@ -2259,7 +2256,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2259
2256
|
SwitchConfigurator: lt,
|
|
2260
2257
|
VariableConfigurator: at,
|
|
2261
2258
|
useProperties: $,
|
|
2262
|
-
useCanvas:
|
|
2259
|
+
useCanvas: E,
|
|
2263
2260
|
PROP_DATA_TYPE: G,
|
|
2264
2261
|
constants: ht,
|
|
2265
2262
|
utils: ut,
|
|
@@ -2271,7 +2268,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2271
2268
|
let h = u.loopArgs;
|
|
2272
2269
|
const {
|
|
2273
2270
|
operateNode: g
|
|
2274
|
-
} =
|
|
2271
|
+
} = E();
|
|
2275
2272
|
h ? h[1] = l || z.INDEX : h = [z.ITEM, l], g({
|
|
2276
2273
|
type: "updateAttributes",
|
|
2277
2274
|
id: u.id,
|
|
@@ -2300,7 +2297,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2300
2297
|
SwitchConfigurator: lt,
|
|
2301
2298
|
VariableConfigurator: at,
|
|
2302
2299
|
useProperties: $,
|
|
2303
|
-
useCanvas:
|
|
2300
|
+
useCanvas: E,
|
|
2304
2301
|
PROP_DATA_TYPE: G,
|
|
2305
2302
|
constants: ht,
|
|
2306
2303
|
utils: ut,
|
|
@@ -2310,7 +2307,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2310
2307
|
}), d = b((l) => {
|
|
2311
2308
|
const {
|
|
2312
2309
|
operateNode: u
|
|
2313
|
-
} =
|
|
2310
|
+
} = E(), {
|
|
2314
2311
|
getSchema: h
|
|
2315
2312
|
} = $(), g = h();
|
|
2316
2313
|
if (l) {
|
|
@@ -2326,8 +2323,8 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2326
2323
|
o();
|
|
2327
2324
|
const {
|
|
2328
2325
|
loop: p,
|
|
2329
|
-
loopArgs:
|
|
2330
|
-
children:
|
|
2326
|
+
loopArgs: y,
|
|
2327
|
+
children: C,
|
|
2331
2328
|
...A
|
|
2332
2329
|
} = g;
|
|
2333
2330
|
u({
|
|
@@ -2359,7 +2356,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2359
2356
|
SwitchConfigurator: lt,
|
|
2360
2357
|
VariableConfigurator: at,
|
|
2361
2358
|
useProperties: $,
|
|
2362
|
-
useCanvas:
|
|
2359
|
+
useCanvas: E,
|
|
2363
2360
|
PROP_DATA_TYPE: G,
|
|
2364
2361
|
constants: ht,
|
|
2365
2362
|
utils: ut,
|
|
@@ -2371,7 +2368,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2371
2368
|
let h = u.loopArgs;
|
|
2372
2369
|
const {
|
|
2373
2370
|
operateNode: g
|
|
2374
|
-
} =
|
|
2371
|
+
} = E();
|
|
2375
2372
|
h ? h[0] = l || z.ITEM : h = [l, z.INDEX], g({
|
|
2376
2373
|
type: "updateAttributes",
|
|
2377
2374
|
id: u.id,
|
|
@@ -2400,7 +2397,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2400
2397
|
SwitchConfigurator: lt,
|
|
2401
2398
|
VariableConfigurator: at,
|
|
2402
2399
|
useProperties: $,
|
|
2403
|
-
useCanvas:
|
|
2400
|
+
useCanvas: E,
|
|
2404
2401
|
PROP_DATA_TYPE: G,
|
|
2405
2402
|
constants: ht,
|
|
2406
2403
|
utils: ut,
|
|
@@ -2422,7 +2419,7 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2422
2419
|
getIndexName: e
|
|
2423
2420
|
};
|
|
2424
2421
|
}
|
|
2425
|
-
}, 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" };
|
|
2426
2423
|
function kn(c, t, n, e, i, o) {
|
|
2427
2424
|
var l, u;
|
|
2428
2425
|
const s = B("switch-configurator"), r = B("variable-configurator"), a = B("code-configurator"), d = B("input-configurator"), f = B("tiny-tooltip");
|
|
@@ -2502,9 +2499,9 @@ function kn(c, t, n, e, i, o) {
|
|
|
2502
2499
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
2503
2500
|
])
|
|
2504
2501
|
]),
|
|
2505
|
-
m("div",
|
|
2502
|
+
m("div", Cn, [
|
|
2506
2503
|
t[10] || (t[10] = m("label", { class: "text-ellipsis-multiple" }, "key", -1)),
|
|
2507
|
-
m("div",
|
|
2504
|
+
m("div", xn, [
|
|
2508
2505
|
_(f, {
|
|
2509
2506
|
content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
|
|
2510
2507
|
effect: "light"
|
|
@@ -2592,7 +2589,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2592
2589
|
setup() {
|
|
2593
2590
|
const {
|
|
2594
2591
|
getMethodNameList: c
|
|
2595
|
-
} = k(
|
|
2592
|
+
} = k(x.Page), t = ge("context"), n = {
|
|
2596
2593
|
language: "json",
|
|
2597
2594
|
lineNumbers: !1,
|
|
2598
2595
|
minimap: {
|
|
@@ -2615,7 +2612,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2615
2612
|
change: r,
|
|
2616
2613
|
VueMonaco: St,
|
|
2617
2614
|
getMetaApi: k,
|
|
2618
|
-
META_APP:
|
|
2615
|
+
META_APP: x,
|
|
2619
2616
|
METHOD_TIPS_MAP: ct,
|
|
2620
2617
|
NEW_METHOD_TYPE: Q,
|
|
2621
2618
|
VALID_VARNAME_RE: Nt
|
|
@@ -2635,7 +2632,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2635
2632
|
change: r,
|
|
2636
2633
|
VueMonaco: St,
|
|
2637
2634
|
getMetaApi: k,
|
|
2638
|
-
META_APP:
|
|
2635
|
+
META_APP: x,
|
|
2639
2636
|
METHOD_TIPS_MAP: ct,
|
|
2640
2637
|
NEW_METHOD_TYPE: Q,
|
|
2641
2638
|
VALID_VARNAME_RE: Nt
|
|
@@ -2655,7 +2652,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2655
2652
|
change: r,
|
|
2656
2653
|
VueMonaco: St,
|
|
2657
2654
|
getMetaApi: k,
|
|
2658
|
-
META_APP:
|
|
2655
|
+
META_APP: x,
|
|
2659
2656
|
METHOD_TIPS_MAP: ct,
|
|
2660
2657
|
NEW_METHOD_TYPE: Q,
|
|
2661
2658
|
VALID_VARNAME_RE: Nt
|
|
@@ -2675,7 +2672,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2675
2672
|
change: r,
|
|
2676
2673
|
VueMonaco: St,
|
|
2677
2674
|
getMetaApi: k,
|
|
2678
|
-
META_APP:
|
|
2675
|
+
META_APP: x,
|
|
2679
2676
|
METHOD_TIPS_MAP: ct,
|
|
2680
2677
|
NEW_METHOD_TYPE: Q,
|
|
2681
2678
|
VALID_VARNAME_RE: Nt
|
|
@@ -2714,7 +2711,7 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2714
2711
|
change: r,
|
|
2715
2712
|
VueMonaco: St,
|
|
2716
2713
|
getMetaApi: k,
|
|
2717
|
-
META_APP:
|
|
2714
|
+
META_APP: x,
|
|
2718
2715
|
METHOD_TIPS_MAP: ct,
|
|
2719
2716
|
NEW_METHOD_TYPE: Q,
|
|
2720
2717
|
VALID_VARNAME_RE: Nt
|
|
@@ -2763,11 +2760,10 @@ function On(c, t, n, e, i, o) {
|
|
|
2763
2760
|
"onUpdate:modelValue": t[1] || (t[1] = (d) => e.context.enableExtraParams = d),
|
|
2764
2761
|
name: "tiny-checkbox"
|
|
2765
2762
|
}, {
|
|
2766
|
-
default: I(() => t[3] || (t[3] = [
|
|
2763
|
+
default: I(() => [...t[3] || (t[3] = [
|
|
2767
2764
|
Dt("扩展参数设置", -1)
|
|
2768
|
-
])),
|
|
2769
|
-
_: 1
|
|
2770
|
-
__: [3]
|
|
2765
|
+
])]),
|
|
2766
|
+
_: 1
|
|
2771
2767
|
}, 8, ["modelValue"]),
|
|
2772
2768
|
m("div", Bn, [
|
|
2773
2769
|
t[4] || (t[4] = m("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
|
|
@@ -2801,7 +2797,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2801
2797
|
setup(c) {
|
|
2802
2798
|
const {
|
|
2803
2799
|
getMethodNameList: t
|
|
2804
|
-
} = k(
|
|
2800
|
+
} = k(x.Page), n = Lt(""), e = Lt([]), i = ge("context"), o = b((r, a) => {
|
|
2805
2801
|
const d = r.map((u) => {
|
|
2806
2802
|
var h;
|
|
2807
2803
|
return Number.parseInt((h = u.match(/\d+$/)) == null ? void 0 : h[0]) || 0;
|
|
@@ -2821,7 +2817,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2821
2817
|
generateMethodName: o,
|
|
2822
2818
|
selectMethod: s,
|
|
2823
2819
|
getMetaApi: k,
|
|
2824
|
-
META_APP:
|
|
2820
|
+
META_APP: x,
|
|
2825
2821
|
INVALID_VARNAME_CHAR_RE: Kt,
|
|
2826
2822
|
NEW_METHOD_TYPE: Q
|
|
2827
2823
|
})
|
|
@@ -2840,7 +2836,7 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2840
2836
|
generateMethodName: o,
|
|
2841
2837
|
selectMethod: s,
|
|
2842
2838
|
getMetaApi: k,
|
|
2843
|
-
META_APP:
|
|
2839
|
+
META_APP: x,
|
|
2844
2840
|
INVALID_VARNAME_CHAR_RE: Kt,
|
|
2845
2841
|
NEW_METHOD_TYPE: Q
|
|
2846
2842
|
})
|