@opentiny/tiny-engine-setting-events 2.5.0-rc.5 → 2.5.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 +249 -245
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { ref as
|
|
3
|
-
import { DialogBox as
|
|
4
|
-
import { getMergeMeta as
|
|
5
|
-
import
|
|
2
|
+
import { ref as K, reactive as Y, provide as Ve, resolveComponent as k, createBlock as O, openBlock as h, withCtx as E, createElementVNode as t, resolveDynamicComponent as _e, createVNode as u, createTextVNode as J, nextTick as Se, unref as D, createElementBlock as A, Fragment as W, withDirectives as be, renderList as ae, normalizeClass as X, toDisplayString as B, createCommentVNode as Q, vShow as he, computed as q, watchEffect as Ne, watch as ye, inject as Ae } from "vue";
|
|
3
|
+
import { DialogBox as De, Button as ee, Form as Te, FormItem as Ee, Input as le, Popover as Ue, Tooltip as je, Collapse as ze, CollapseItem as xe, Checkbox as Re, Search as $e } from "@opentiny/vue";
|
|
4
|
+
import { getMergeMeta as Ie, useLayout as re, useCanvas as j, getMetaApi as ne, META_APP as oe, getOptions as Fe, useHistory as Je, useBlock as Xe, useMaterial as Ke, useModal as He, useMessage as Ge, useProperties as $ } from "@opentiny/tiny-engine-meta-register";
|
|
5
|
+
import qe from "@opentiny/tiny-engine-common/js/i18n";
|
|
6
6
|
import { SvgButton as Ye, BlockLinkEvent as Ze, PluginPanel as We, VueMonaco as Qe } from "@opentiny/tiny-engine-common";
|
|
7
7
|
import { iconChevronDown as en } from "@opentiny/vue-icon";
|
|
8
|
-
import { string2Ast as
|
|
8
|
+
import { string2Ast as ke, ast2String as nn } from "@opentiny/tiny-engine-common/js/ast";
|
|
9
9
|
import { CodeConfigurator as on, InputConfigurator as tn, VariableConfigurator as sn, SwitchConfigurator as an } from "@opentiny/tiny-engine-configurator";
|
|
10
|
-
import { PROP_DATA_TYPE as
|
|
10
|
+
import { PROP_DATA_TYPE as G } from "@opentiny/tiny-engine-common/js/constants";
|
|
11
11
|
import { constants as ln, utils as dn } from "@opentiny/tiny-engine-utils";
|
|
12
|
-
const
|
|
12
|
+
const de = {
|
|
13
13
|
id: "engine.setting.event",
|
|
14
14
|
title: "高级",
|
|
15
15
|
type: "setting",
|
|
16
16
|
align: "rightTop",
|
|
17
17
|
name: "event",
|
|
18
18
|
icon: "target"
|
|
19
|
-
},
|
|
20
|
-
const a =
|
|
19
|
+
}, H = (f, o) => {
|
|
20
|
+
const a = f.__vccOpts || f;
|
|
21
21
|
for (const [e, r] of o)
|
|
22
22
|
a[e] = r;
|
|
23
23
|
return a;
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
24
|
+
}, ce = K(!1), rn = () => {
|
|
25
|
+
ce.value = !0;
|
|
26
|
+
}, Ce = () => {
|
|
27
|
+
ce.value = !1;
|
|
28
28
|
}, cn = {
|
|
29
29
|
components: {
|
|
30
|
-
TinyButton:
|
|
31
|
-
TinyDialogBox:
|
|
30
|
+
TinyButton: ee,
|
|
31
|
+
TinyDialogBox: De
|
|
32
32
|
},
|
|
33
33
|
inheritAttrs: !1,
|
|
34
34
|
props: {
|
|
@@ -37,8 +37,8 @@ const te = {
|
|
|
37
37
|
default: () => ({})
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
setup(
|
|
41
|
-
const { BindEventsDialogSidebar: o, BindEventsDialogContent: a } =
|
|
40
|
+
setup(f) {
|
|
41
|
+
const { BindEventsDialogSidebar: o, BindEventsDialogContent: a } = Ie(de.id).components, { PLUGIN_NAME: e, activePlugin: r } = re(), { pageState: _ } = j(), { getMethods: b, saveMethod: c, highlightMethod: p } = ne(oe.Page), s = Y({
|
|
42
42
|
editorContent: "",
|
|
43
43
|
bindMethodInfo: {},
|
|
44
44
|
tip: "",
|
|
@@ -46,24 +46,24 @@ const te = {
|
|
|
46
46
|
enableExtraParams: !1,
|
|
47
47
|
isValidParams: !0
|
|
48
48
|
});
|
|
49
|
-
|
|
49
|
+
Ve("context", s);
|
|
50
50
|
const x = (g) => {
|
|
51
51
|
s.bindMethodInfo = g;
|
|
52
52
|
}, n = (g) => {
|
|
53
|
-
var
|
|
53
|
+
var M, P;
|
|
54
54
|
if (!g)
|
|
55
55
|
return;
|
|
56
|
-
const m = (
|
|
56
|
+
const m = (M = f.eventBinding) == null ? void 0 : M.eventName;
|
|
57
57
|
if (!m)
|
|
58
58
|
return;
|
|
59
|
-
const
|
|
60
|
-
if (!
|
|
59
|
+
const v = (P = _ == null ? void 0 : _.currentSchema) == null ? void 0 : P.props;
|
|
60
|
+
if (!v)
|
|
61
61
|
return;
|
|
62
|
-
const { name: C, extra:
|
|
63
|
-
|
|
62
|
+
const { name: C, extra: w } = g;
|
|
63
|
+
f[m] || (v[m] = {
|
|
64
64
|
type: "JSExpression",
|
|
65
65
|
value: ""
|
|
66
|
-
}),
|
|
66
|
+
}), w && s.enableExtraParams && (v[m].params = w), v[m].value = `this.${C}`, Je().addHistory();
|
|
67
67
|
}, l = () => {
|
|
68
68
|
s.tipError = !1, s.tip = "", s.isValidParams = !0;
|
|
69
69
|
}, i = () => {
|
|
@@ -75,20 +75,24 @@ const te = {
|
|
|
75
75
|
s.isValidParams = !1;
|
|
76
76
|
}
|
|
77
77
|
return g;
|
|
78
|
-
}, d = (g) => Array.from({ length: g.length }, (m,
|
|
79
|
-
var
|
|
80
|
-
let g = (
|
|
78
|
+
}, d = (g) => Array.from({ length: g.length }, (m, v) => `args${v}`).join(","), y = () => {
|
|
79
|
+
var w, M, P, S, T, U, L, Z;
|
|
80
|
+
let g = (M = (w = b()) == null ? void 0 : w[s.bindMethodInfo.name]) == null ? void 0 : M.value, m = "{}", v = !1, C = !1;
|
|
81
81
|
if (g) {
|
|
82
82
|
let N = {};
|
|
83
83
|
try {
|
|
84
|
-
N =
|
|
84
|
+
N = ke(g);
|
|
85
85
|
} catch {
|
|
86
|
-
g = g.replace("function", `function ${s.bindMethodInfo.name}`), N =
|
|
86
|
+
g = g.replace("function", `function ${s.bindMethodInfo.name}`), N = ke(g);
|
|
87
87
|
}
|
|
88
|
-
(
|
|
88
|
+
(S = (P = N == null ? void 0 : N.program) == null ? void 0 : P.body[0]) != null && S.body && (m = nn(N.program.body[0].body)), (U = (T = N == null ? void 0 : N.program) == null ? void 0 : T.body[0]) != null && U.async && (v = !0), (Z = (L = N == null ? void 0 : N.program) == null ? void 0 : L.body[0]) != null && Z.generator && (C = !0);
|
|
89
89
|
}
|
|
90
|
-
return
|
|
91
|
-
|
|
90
|
+
return {
|
|
91
|
+
preBody: m || `{
|
|
92
|
+
}`,
|
|
93
|
+
isAsync: v,
|
|
94
|
+
isGenerator: C
|
|
95
|
+
};
|
|
92
96
|
}, V = () => {
|
|
93
97
|
r(e.Page).then(() => {
|
|
94
98
|
Se(() => {
|
|
@@ -101,36 +105,36 @@ const te = {
|
|
|
101
105
|
BindEventsDialogSidebar: o,
|
|
102
106
|
BindEventsDialogContent: a,
|
|
103
107
|
state: s,
|
|
104
|
-
dialogVisible:
|
|
108
|
+
dialogVisible: ce,
|
|
105
109
|
confirm: async () => {
|
|
106
110
|
if (s.tipError)
|
|
107
111
|
return;
|
|
108
112
|
let g = "event";
|
|
109
113
|
const m = i();
|
|
110
|
-
let
|
|
114
|
+
let v = g;
|
|
111
115
|
if (!s.isValidParams)
|
|
112
116
|
return;
|
|
113
|
-
m && (g = m.join(","),
|
|
114
|
-
const C =
|
|
117
|
+
m && (g = m.join(","), v = d(m)), n({ ...s.bindMethodInfo, extra: m });
|
|
118
|
+
const { preBody: C, isAsync: w, isGenerator: M } = y(), { name: P } = s.bindMethodInfo, S = `${w ? "async" : ""} function${M ? "*" : ""} ${P}`, T = {
|
|
115
119
|
name: P,
|
|
116
|
-
content: s.enableExtraParams ?
|
|
117
|
-
}, { beforeSaveMethod:
|
|
118
|
-
typeof
|
|
120
|
+
content: s.enableExtraParams ? `${S}(eventArgs,${v}) ${C}` : `${S}(${v}) ${C}`
|
|
121
|
+
}, { beforeSaveMethod: U } = Fe(de.id);
|
|
122
|
+
typeof U == "function" && await U(T, s.bindMethodInfo), c == null || c(T), V(), Ce();
|
|
119
123
|
},
|
|
120
124
|
closeDialog: () => {
|
|
121
|
-
l(),
|
|
125
|
+
l(), Ce();
|
|
122
126
|
},
|
|
123
127
|
openedDialog: () => {
|
|
124
|
-
var g, m,
|
|
125
|
-
s.enableExtraParams = !!((m = (g =
|
|
128
|
+
var g, m, v;
|
|
129
|
+
s.enableExtraParams = !!((m = (g = f.eventBinding) == null ? void 0 : g.params) != null && m.length), s.editorContent = JSON.stringify(((v = f.eventBinding) == null ? void 0 : v.params) || [], null, 2), l();
|
|
126
130
|
},
|
|
127
131
|
selectMethod: x
|
|
128
132
|
};
|
|
129
133
|
}
|
|
130
134
|
}, mn = { class: "bind-event-dialog-content" }, pn = { class: "bind-dialog-footer" };
|
|
131
|
-
function un(
|
|
132
|
-
const
|
|
133
|
-
return
|
|
135
|
+
function un(f, o, a, e, r, _) {
|
|
136
|
+
const b = k("tiny-button"), c = k("tiny-dialog-box");
|
|
137
|
+
return h(), O(c, {
|
|
134
138
|
visible: e.dialogVisible,
|
|
135
139
|
title: "事件绑定",
|
|
136
140
|
width: "50%",
|
|
@@ -140,39 +144,39 @@ function un(v, o, a, e, r, _) {
|
|
|
140
144
|
onClose: e.closeDialog,
|
|
141
145
|
onOpened: e.openedDialog
|
|
142
146
|
}, {
|
|
143
|
-
footer:
|
|
147
|
+
footer: E(() => [
|
|
144
148
|
t("div", pn, [
|
|
145
|
-
u(
|
|
146
|
-
default:
|
|
147
|
-
|
|
149
|
+
u(b, { onClick: e.closeDialog }, {
|
|
150
|
+
default: E(() => o[0] || (o[0] = [
|
|
151
|
+
J("取 消")
|
|
148
152
|
])),
|
|
149
153
|
_: 1
|
|
150
154
|
}, 8, ["onClick"]),
|
|
151
|
-
u(
|
|
155
|
+
u(b, {
|
|
152
156
|
type: "info",
|
|
153
157
|
onClick: e.confirm
|
|
154
158
|
}, {
|
|
155
|
-
default:
|
|
156
|
-
|
|
159
|
+
default: E(() => o[1] || (o[1] = [
|
|
160
|
+
J("确 定")
|
|
157
161
|
])),
|
|
158
162
|
_: 1
|
|
159
163
|
}, 8, ["onClick"])
|
|
160
164
|
])
|
|
161
165
|
]),
|
|
162
|
-
default:
|
|
166
|
+
default: E(() => [
|
|
163
167
|
o[2] || (o[2] = t("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)),
|
|
164
168
|
t("div", mn, [
|
|
165
|
-
(
|
|
169
|
+
(h(), O(_e(e.BindEventsDialogSidebar), {
|
|
166
170
|
dialogVisible: e.dialogVisible,
|
|
167
171
|
eventBinding: a.eventBinding
|
|
168
172
|
}, null, 8, ["dialogVisible", "eventBinding"])),
|
|
169
|
-
(
|
|
173
|
+
(h(), O(_e(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
|
|
170
174
|
])
|
|
171
175
|
]),
|
|
172
176
|
_: 1
|
|
173
177
|
}, 8, ["visible", "onClose", "onOpened"]);
|
|
174
178
|
}
|
|
175
|
-
const
|
|
179
|
+
const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71"]]), vn = {
|
|
176
180
|
onClick: {
|
|
177
181
|
label: {
|
|
178
182
|
zh_CN: "点击事件"
|
|
@@ -339,10 +343,10 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
339
343
|
"onwebkitanimationstart",
|
|
340
344
|
"onwebkittransitionend",
|
|
341
345
|
"onwheel"
|
|
342
|
-
], _n = (
|
|
346
|
+
], _n = (f) => !!gn.map((a) => {
|
|
343
347
|
const e = a[2].toUpperCase();
|
|
344
348
|
return `${a.substring(0, 2)}${e}${a.substring(3)}`;
|
|
345
|
-
}).includes(
|
|
349
|
+
}).includes(f), bn = { class: "footer" }, hn = {
|
|
346
350
|
__name: "AddEventsDialog",
|
|
347
351
|
props: {
|
|
348
352
|
visible: {
|
|
@@ -355,11 +359,11 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
355
359
|
}
|
|
356
360
|
},
|
|
357
361
|
emits: ["closeDialog", "addEvent"],
|
|
358
|
-
setup(
|
|
359
|
-
const a =
|
|
362
|
+
setup(f, { emit: o }) {
|
|
363
|
+
const a = f, e = o, r = Y({
|
|
360
364
|
eventDescription: "",
|
|
361
365
|
eventName: ""
|
|
362
|
-
}), _ =
|
|
366
|
+
}), _ = K(null), c = {
|
|
363
367
|
eventDescription: [
|
|
364
368
|
{
|
|
365
369
|
required: !0,
|
|
@@ -392,34 +396,34 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
392
396
|
e("addEvent", { eventName: n, eventDescription: l });
|
|
393
397
|
});
|
|
394
398
|
};
|
|
395
|
-
return (x, n) => (
|
|
396
|
-
visible:
|
|
399
|
+
return (x, n) => (h(), O(D(De), {
|
|
400
|
+
visible: f.visible,
|
|
397
401
|
title: "添加新事件",
|
|
398
402
|
width: "400px",
|
|
399
403
|
"append-to-body": !0,
|
|
400
404
|
"close-on-click-modal": !1,
|
|
401
405
|
onClose: p
|
|
402
406
|
}, {
|
|
403
|
-
footer:
|
|
404
|
-
t("div",
|
|
405
|
-
u(D(
|
|
406
|
-
default:
|
|
407
|
-
|
|
407
|
+
footer: E(() => [
|
|
408
|
+
t("div", bn, [
|
|
409
|
+
u(D(ee), { onClick: p }, {
|
|
410
|
+
default: E(() => n[2] || (n[2] = [
|
|
411
|
+
J(" 取消")
|
|
408
412
|
])),
|
|
409
413
|
_: 1
|
|
410
414
|
}),
|
|
411
|
-
u(D(
|
|
415
|
+
u(D(ee), {
|
|
412
416
|
type: "primary",
|
|
413
417
|
onClick: s
|
|
414
418
|
}, {
|
|
415
|
-
default:
|
|
416
|
-
|
|
419
|
+
default: E(() => n[3] || (n[3] = [
|
|
420
|
+
J(" 确定")
|
|
417
421
|
])),
|
|
418
422
|
_: 1
|
|
419
423
|
})
|
|
420
424
|
])
|
|
421
425
|
]),
|
|
422
|
-
default:
|
|
426
|
+
default: E(() => [
|
|
423
427
|
u(D(Te), {
|
|
424
428
|
ref_key: "ruleForm",
|
|
425
429
|
ref: _,
|
|
@@ -431,14 +435,14 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
431
435
|
"label-position": "left",
|
|
432
436
|
class: "add-custom-event-form"
|
|
433
437
|
}, {
|
|
434
|
-
default:
|
|
438
|
+
default: E(() => [
|
|
435
439
|
u(D(Ee), {
|
|
436
440
|
label: "事件函数名",
|
|
437
441
|
prop: "eventName",
|
|
438
442
|
required: ""
|
|
439
443
|
}, {
|
|
440
|
-
default:
|
|
441
|
-
u(D(
|
|
444
|
+
default: E(() => [
|
|
445
|
+
u(D(le), {
|
|
442
446
|
modelValue: r.eventName,
|
|
443
447
|
"onUpdate:modelValue": n[0] || (n[0] = (l) => r.eventName = l),
|
|
444
448
|
placeholder: "小驼峰格式,如:onDrag"
|
|
@@ -451,8 +455,8 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
451
455
|
prop: "eventDescription",
|
|
452
456
|
required: ""
|
|
453
457
|
}, {
|
|
454
|
-
default:
|
|
455
|
-
u(D(
|
|
458
|
+
default: E(() => [
|
|
459
|
+
u(D(le), {
|
|
456
460
|
modelValue: r.eventDescription,
|
|
457
461
|
"onUpdate:modelValue": n[1] || (n[1] = (l) => r.eventDescription = l)
|
|
458
462
|
}, null, 8, ["modelValue"])
|
|
@@ -466,19 +470,19 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
466
470
|
_: 1
|
|
467
471
|
}, 8, ["visible"]));
|
|
468
472
|
}
|
|
469
|
-
},
|
|
473
|
+
}, yn = /* @__PURE__ */ H(hn, [["__scopeId", "data-v-5033228a"]]), En = {
|
|
470
474
|
components: {
|
|
471
475
|
BlockLinkEvent: Ze,
|
|
472
|
-
BindEventsDialog:
|
|
476
|
+
BindEventsDialog: fn,
|
|
473
477
|
TinyPopover: Ue,
|
|
474
|
-
TinyButton:
|
|
478
|
+
TinyButton: ee,
|
|
475
479
|
IconChevronDown: en(),
|
|
476
480
|
SvgButton: Ye,
|
|
477
|
-
AddEventsDialog:
|
|
481
|
+
AddEventsDialog: yn
|
|
478
482
|
},
|
|
479
483
|
inheritAttrs: !1,
|
|
480
484
|
setup() {
|
|
481
|
-
const { PLUGIN_NAME:
|
|
485
|
+
const { PLUGIN_NAME: f, activePlugin: o } = re(), { pageState: a } = j(), { getBlockEvents: e, getCurrentBlock: r, removeEventLink: _ } = Xe(), { getMaterial: b } = Ke(), { confirm: c } = He(), p = qe.global.locale.value, { highlightMethod: s } = ne(oe.Page), { commonEvents: x = {} } = Ie("engine.setting.event").options, n = Y({
|
|
482
486
|
eventName: "",
|
|
483
487
|
// 事件名称
|
|
484
488
|
eventBinding: null,
|
|
@@ -487,38 +491,38 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
487
491
|
customEvents: x,
|
|
488
492
|
bindActions: {},
|
|
489
493
|
showBindEventDialog: !1
|
|
490
|
-
}), l =
|
|
491
|
-
|
|
492
|
-
var
|
|
493
|
-
const m = (
|
|
494
|
-
n.componentEvent = ((
|
|
495
|
-
const C = ((
|
|
496
|
-
n.bindActions = {}, Object.entries(d.value).forEach(([
|
|
497
|
-
var
|
|
498
|
-
if (
|
|
499
|
-
const Me = C[
|
|
500
|
-
eventName:
|
|
494
|
+
}), l = q(() => !!a.isBlock), i = q(() => Object.keys(n.bindActions).length === 0), d = q(() => ({ ...n.componentEvent, ...n.customEvents }));
|
|
495
|
+
Ne(() => {
|
|
496
|
+
var M, P, S, T, U;
|
|
497
|
+
const m = (M = a == null ? void 0 : a.currentSchema) == null ? void 0 : M.componentName, v = b(m);
|
|
498
|
+
n.componentEvent = ((S = (P = v == null ? void 0 : v.content) == null ? void 0 : P.schema) == null ? void 0 : S.events) || ((T = v == null ? void 0 : v.schema) == null ? void 0 : T.events) || {};
|
|
499
|
+
const C = ((U = a == null ? void 0 : a.currentSchema) == null ? void 0 : U.props) || {}, w = Object.keys(C);
|
|
500
|
+
n.bindActions = {}, Object.entries(d.value).forEach(([L, Z]) => {
|
|
501
|
+
var N, ie, me;
|
|
502
|
+
if (w.indexOf(L) > -1) {
|
|
503
|
+
const Me = C[L], { value: we, params: pe } = Me, Le = !pe && ((ie = (N = we.match(/\((.+)\)$/)) == null ? void 0 : N[1]) == null ? void 0 : ie.split(",")) || pe, z = {
|
|
504
|
+
eventName: L,
|
|
501
505
|
ref: "",
|
|
502
|
-
event: C[
|
|
506
|
+
event: C[L],
|
|
503
507
|
params: Le
|
|
504
508
|
};
|
|
505
|
-
if (
|
|
506
|
-
|
|
507
|
-
const
|
|
508
|
-
|
|
509
|
-
var ve,
|
|
510
|
-
|
|
509
|
+
if (z.event.type === "JSExpression" && (z.ref = z.event.value.replace("this.", "").replace(/\(.*\)$/, "")), a.isBlock) {
|
|
510
|
+
z.metaEvent = Z;
|
|
511
|
+
const ue = e(r()), fe = (me = a == null ? void 0 : a.currentSchema) == null ? void 0 : me.id;
|
|
512
|
+
fe && ue && Object.entries(ue).forEach(([Oe, R]) => {
|
|
513
|
+
var ve, ge;
|
|
514
|
+
fe === ((ve = R == null ? void 0 : R.linked) == null ? void 0 : ve.id) && L === ((ge = R == null ? void 0 : R.linked) == null ? void 0 : ge.event) && (z.linked = R.linked, z.linkedEventName = Oe);
|
|
511
515
|
});
|
|
512
516
|
}
|
|
513
|
-
n.bindActions[
|
|
517
|
+
n.bindActions[L] = z;
|
|
514
518
|
}
|
|
515
519
|
});
|
|
516
520
|
});
|
|
517
|
-
const
|
|
518
|
-
|
|
521
|
+
const y = (m, v) => {
|
|
522
|
+
v && n.bindActions[m.eventName] || (n.eventBinding = m, rn());
|
|
519
523
|
}, V = (m) => {
|
|
520
524
|
var C;
|
|
521
|
-
Object.keys(((C = a == null ? void 0 : a.currentSchema) == null ? void 0 : C.props) || {}).indexOf(m.eventName) > -1 && (delete a.currentSchema.props[m.eventName],
|
|
525
|
+
Object.keys(((C = a == null ? void 0 : a.currentSchema) == null ? void 0 : C.props) || {}).indexOf(m.eventName) > -1 && (delete a.currentSchema.props[m.eventName], Ge().publish({ topic: "schemaChange", data: { props: a.currentSchema.props } }));
|
|
522
526
|
};
|
|
523
527
|
return {
|
|
524
528
|
state: n,
|
|
@@ -534,15 +538,15 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
534
538
|
});
|
|
535
539
|
},
|
|
536
540
|
openCodePanel: (m) => {
|
|
537
|
-
m && o(
|
|
541
|
+
m && o(f.Page).then(() => {
|
|
538
542
|
s && s(m.ref);
|
|
539
543
|
});
|
|
540
544
|
},
|
|
541
|
-
openActionDialog:
|
|
545
|
+
openActionDialog: y,
|
|
542
546
|
handleAddEvent: (m) => {
|
|
543
|
-
const { eventName:
|
|
547
|
+
const { eventName: v, eventDescription: C } = m;
|
|
544
548
|
Object.assign(n.customEvents, {
|
|
545
|
-
[
|
|
549
|
+
[v]: {
|
|
546
550
|
label: {
|
|
547
551
|
zh_CN: C
|
|
548
552
|
},
|
|
@@ -566,9 +570,9 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
|
|
|
566
570
|
};
|
|
567
571
|
}
|
|
568
572
|
}, xn = { class: "bind-action-list" }, kn = { class: "popover-head" }, Cn = { class: "bind-event-list" }, Vn = ["onClick"], Nn = { class: "bind-actions" }, An = { class: "action-item bind-action-item" }, Dn = ["onClick"], In = { class: "event-bind" }, Pn = { class: "action-buttons" }, Bn = { class: "empty-action" }, Mn = { class: "icon" };
|
|
569
|
-
function wn(
|
|
570
|
-
const
|
|
571
|
-
return
|
|
573
|
+
function wn(f, o, a, e, r, _) {
|
|
574
|
+
const b = k("icon-chevron-down"), c = k("tiny-button"), p = k("tiny-popover"), s = k("svg-icon"), x = k("block-link-event"), n = k("svg-button"), l = k("bind-events-dialog"), i = k("add-events-dialog");
|
|
575
|
+
return h(), A(W, null, [
|
|
572
576
|
t("div", xn, [
|
|
573
577
|
t("div", kn, [
|
|
574
578
|
u(p, {
|
|
@@ -579,25 +583,25 @@ function wn(v, o, a, e, r, _) {
|
|
|
579
583
|
width: "256",
|
|
580
584
|
"visible-arrow": !1
|
|
581
585
|
}, {
|
|
582
|
-
reference:
|
|
586
|
+
reference: E(() => [
|
|
583
587
|
u(c, { class: "bind-event-btn" }, {
|
|
584
|
-
default:
|
|
588
|
+
default: E(() => [
|
|
585
589
|
o[2] || (o[2] = t("span", null, "绑定事件", -1)),
|
|
586
|
-
u(
|
|
590
|
+
u(b, { class: "icon-chevron-down bind-event-btn-icon" })
|
|
587
591
|
]),
|
|
588
592
|
_: 1
|
|
589
593
|
})
|
|
590
594
|
]),
|
|
591
|
-
default:
|
|
595
|
+
default: E(() => [
|
|
592
596
|
t("ul", Cn, [
|
|
593
|
-
(
|
|
597
|
+
(h(!0), A(W, null, ae(e.renderEventList, (d, y) => {
|
|
594
598
|
var V;
|
|
595
|
-
return
|
|
596
|
-
key:
|
|
597
|
-
class:
|
|
598
|
-
onClick: (I) => e.openActionDialog({ eventName:
|
|
599
|
+
return h(), A("li", {
|
|
600
|
+
key: y,
|
|
601
|
+
class: X(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[y] }]),
|
|
602
|
+
onClick: (I) => e.openActionDialog({ eventName: y }, !0)
|
|
599
603
|
}, [
|
|
600
|
-
t("div", null,
|
|
604
|
+
t("div", null, B(y) + " | " + B(((V = d == null ? void 0 : d.label) == null ? void 0 : V[e.locale]) || y), 1)
|
|
601
605
|
], 10, Vn);
|
|
602
606
|
}), 128))
|
|
603
607
|
])
|
|
@@ -608,7 +612,7 @@ function wn(v, o, a, e, r, _) {
|
|
|
608
612
|
class: "title add-custom-event-button bind-action-button-item",
|
|
609
613
|
onClick: o[0] || (o[0] = (d) => e.handleToggleAddEventDialog(!0))
|
|
610
614
|
}, {
|
|
611
|
-
default:
|
|
615
|
+
default: E(() => [
|
|
612
616
|
u(s, {
|
|
613
617
|
name: "add",
|
|
614
618
|
class: "custom-event-button-icon"
|
|
@@ -618,10 +622,10 @@ function wn(v, o, a, e, r, _) {
|
|
|
618
622
|
_: 1
|
|
619
623
|
})
|
|
620
624
|
]),
|
|
621
|
-
|
|
622
|
-
(
|
|
623
|
-
var
|
|
624
|
-
return
|
|
625
|
+
be(t("ul", Nn, [
|
|
626
|
+
(h(!0), A(W, null, ae(e.state.bindActions, (d) => {
|
|
627
|
+
var y, V;
|
|
628
|
+
return h(), A("li", {
|
|
625
629
|
key: d.eventName
|
|
626
630
|
}, [
|
|
627
631
|
t("div", An, [
|
|
@@ -630,19 +634,19 @@ function wn(v, o, a, e, r, _) {
|
|
|
630
634
|
onClick: (I) => e.openActionDialog(d)
|
|
631
635
|
}, [
|
|
632
636
|
t("div", null, [
|
|
633
|
-
|
|
634
|
-
t("span", null,
|
|
637
|
+
J(B(d.eventName), 1),
|
|
638
|
+
t("span", null, B((V = (y = e.renderEventList[d.eventName]) == null ? void 0 : y.label) == null ? void 0 : V[e.locale]), 1)
|
|
635
639
|
]),
|
|
636
640
|
t("div", {
|
|
637
|
-
class:
|
|
638
|
-
},
|
|
639
|
-
t("span", In,
|
|
641
|
+
class: X({ linked: d.linked })
|
|
642
|
+
}, B(d.linkedEventName), 3),
|
|
643
|
+
t("span", In, B(d.ref), 1)
|
|
640
644
|
], 8, Dn),
|
|
641
645
|
t("div", Pn, [
|
|
642
|
-
e.isBlock ? (
|
|
646
|
+
e.isBlock ? (h(), O(x, {
|
|
643
647
|
key: 0,
|
|
644
648
|
data: d
|
|
645
|
-
}, null, 8, ["data"])) :
|
|
649
|
+
}, null, 8, ["data"])) : Q("", !0),
|
|
646
650
|
u(n, {
|
|
647
651
|
name: "plugin-icon-page-schema",
|
|
648
652
|
tips: "定位到代码",
|
|
@@ -667,7 +671,7 @@ function wn(v, o, a, e, r, _) {
|
|
|
667
671
|
], 512), [
|
|
668
672
|
[he, !e.isEmpty]
|
|
669
673
|
]),
|
|
670
|
-
|
|
674
|
+
be(t("div", Bn, [
|
|
671
675
|
t("div", Mn, [
|
|
672
676
|
u(s, {
|
|
673
677
|
name: "empty-action",
|
|
@@ -690,7 +694,7 @@ function wn(v, o, a, e, r, _) {
|
|
|
690
694
|
}, null, 8, ["visible", "componentEvents", "onAddEvent"])
|
|
691
695
|
], 64);
|
|
692
696
|
}
|
|
693
|
-
const Ln = /* @__PURE__ */
|
|
697
|
+
const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: F } = ln, { string2Obj: On } = dn, Sn = {
|
|
694
698
|
components: {
|
|
695
699
|
SwitchConfigurator: an,
|
|
696
700
|
TinyTooltip: je,
|
|
@@ -700,72 +704,72 @@ const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4
|
|
|
700
704
|
},
|
|
701
705
|
inheritAttrs: !1,
|
|
702
706
|
setup() {
|
|
703
|
-
const { pageState:
|
|
707
|
+
const { pageState: f } = j(), o = K(!1), a = q(() => {
|
|
704
708
|
var n;
|
|
705
|
-
return ((n = o.value) == null ? void 0 : n.type) ===
|
|
709
|
+
return ((n = o.value) == null ? void 0 : n.type) === G.JSEXPRESSION;
|
|
706
710
|
}), e = () => {
|
|
707
711
|
var n, l;
|
|
708
|
-
return ((l = (n =
|
|
709
|
-
}, r =
|
|
712
|
+
return ((l = (n = $().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : l[1]) || F.INDEX;
|
|
713
|
+
}, r = Y({
|
|
710
714
|
loopData: {
|
|
711
|
-
type:
|
|
715
|
+
type: G.JSEXPRESSION,
|
|
712
716
|
value: "[]"
|
|
713
717
|
},
|
|
714
718
|
loopItem: "item",
|
|
715
719
|
loopIndex: "index",
|
|
716
|
-
isLoop:
|
|
720
|
+
isLoop: q(() => {
|
|
717
721
|
var n;
|
|
718
|
-
return ((n = r.loopData) == null ? void 0 : n.type) ===
|
|
722
|
+
return ((n = r.loopData) == null ? void 0 : n.type) === G.JSEXPRESSION;
|
|
719
723
|
}),
|
|
720
724
|
loopKey: "",
|
|
721
725
|
shouldUpdate: !1
|
|
722
726
|
});
|
|
723
|
-
|
|
724
|
-
() => [
|
|
727
|
+
ye(
|
|
728
|
+
() => [f == null ? void 0 : f.currentSchema, r.shouldUpdate],
|
|
725
729
|
([n]) => {
|
|
726
|
-
var l, i, d,
|
|
727
|
-
o.value = (n == null ? void 0 : n.condition) === void 0 ? !0 : n == null ? void 0 : n.condition, r.loopData = n == null ? void 0 : n.loop, r.loopItem = ((l = n == null ? void 0 : n.loopArgs) == null ? void 0 : l[0]) || "", r.loopIndex = ((i = n == null ? void 0 : n.loopArgs) == null ? void 0 : i[1]) || "", r.loopKey = ((
|
|
730
|
+
var l, i, d, y;
|
|
731
|
+
o.value = (n == null ? void 0 : n.condition) === void 0 ? !0 : n == null ? void 0 : n.condition, r.loopData = n == null ? void 0 : n.loop, r.loopItem = ((l = n == null ? void 0 : n.loopArgs) == null ? void 0 : l[0]) || "", r.loopIndex = ((i = n == null ? void 0 : n.loopArgs) == null ? void 0 : i[1]) || "", r.loopKey = ((y = (d = n == null ? void 0 : n.props) == null ? void 0 : d.key) == null ? void 0 : y.value) || "";
|
|
728
732
|
}
|
|
729
733
|
);
|
|
730
734
|
const _ = (n = "") => {
|
|
731
735
|
var I;
|
|
732
736
|
n = n.replace(/\s*/g, "");
|
|
733
|
-
const { getSchema: l, setProp: i } =
|
|
737
|
+
const { getSchema: l, setProp: i } = $(), d = l();
|
|
734
738
|
if (!d)
|
|
735
739
|
return;
|
|
736
|
-
const
|
|
740
|
+
const y = Number(n).toString() !== "NaN";
|
|
737
741
|
let V = (I = d.props) == null ? void 0 : I.key;
|
|
738
|
-
n && !
|
|
739
|
-
type:
|
|
742
|
+
n && !y && (V = {
|
|
743
|
+
type: G.JSEXPRESSION,
|
|
740
744
|
value: n
|
|
741
745
|
}), n || (r.isLoop ? V = {
|
|
742
|
-
type:
|
|
746
|
+
type: G.JSEXPRESSION,
|
|
743
747
|
value: e()
|
|
744
748
|
} : V = ""), i("key", V);
|
|
745
749
|
};
|
|
746
|
-
|
|
750
|
+
ye([() => r.isLoop, () => r.loopIndex], () => {
|
|
747
751
|
!r.loopKey && r.isLoop && _(e()), r.isLoop || _("");
|
|
748
752
|
});
|
|
749
|
-
const
|
|
753
|
+
const b = () => {
|
|
750
754
|
var n;
|
|
751
|
-
r.loopData = (n =
|
|
755
|
+
r.loopData = (n = $().getSchema()) == null ? void 0 : n.loop;
|
|
752
756
|
}, c = (n) => {
|
|
753
|
-
const { getSchema: l } =
|
|
757
|
+
const { getSchema: l } = $(), i = l();
|
|
754
758
|
if (!i)
|
|
755
759
|
return;
|
|
756
|
-
const { operateNode: d } =
|
|
760
|
+
const { operateNode: d } = j();
|
|
757
761
|
if (n === !1 || n != null && n.type)
|
|
758
762
|
d({ type: "updateAttributes", id: i.id, value: { condition: n } });
|
|
759
763
|
else {
|
|
760
|
-
const { condition:
|
|
764
|
+
const { condition: y, children: V, ...I } = i;
|
|
761
765
|
d({ type: "updateAttributes", id: i.id, value: { ...I }, overwrite: !0 });
|
|
762
766
|
}
|
|
763
|
-
|
|
767
|
+
j().canvasApi.value.updateRect(), o.value = n;
|
|
764
768
|
}, p = (n) => {
|
|
765
|
-
const l =
|
|
769
|
+
const l = $().getSchema();
|
|
766
770
|
let i = l.loopArgs;
|
|
767
|
-
const { operateNode: d } =
|
|
768
|
-
i ? i[1] = n ||
|
|
771
|
+
const { operateNode: d } = j();
|
|
772
|
+
i ? i[1] = n || F.INDEX : i = [F.ITEM, n], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
|
|
769
773
|
};
|
|
770
774
|
return {
|
|
771
775
|
condition: o,
|
|
@@ -773,43 +777,43 @@ const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4
|
|
|
773
777
|
isBind: a,
|
|
774
778
|
state: r,
|
|
775
779
|
setLoop: (n) => {
|
|
776
|
-
const { operateNode: l } =
|
|
780
|
+
const { operateNode: l } = j(), { getSchema: i } = $(), d = i();
|
|
777
781
|
if (n) {
|
|
778
|
-
const
|
|
779
|
-
l({ type: "updateAttributes", id: d.id, value: { loop:
|
|
782
|
+
const y = n != null && n.type ? n : On(n);
|
|
783
|
+
l({ type: "updateAttributes", id: d.id, value: { loop: y } }), p(F.INDEX);
|
|
780
784
|
} else {
|
|
781
785
|
_();
|
|
782
|
-
const { loop:
|
|
783
|
-
l({ type: "updateAttributes", id: d.id, value:
|
|
786
|
+
const { loop: y, loopArgs: V, children: I, ...te } = d;
|
|
787
|
+
l({ type: "updateAttributes", id: d.id, value: te, overwrite: !0 });
|
|
784
788
|
}
|
|
785
789
|
r.shouldUpdate = !r.shouldUpdate;
|
|
786
790
|
},
|
|
787
791
|
setLoopItem: (n) => {
|
|
788
|
-
const l =
|
|
792
|
+
const l = $().getSchema();
|
|
789
793
|
let i = l.loopArgs;
|
|
790
|
-
const { operateNode: d } =
|
|
791
|
-
i ? i[0] = n ||
|
|
794
|
+
const { operateNode: d } = j();
|
|
795
|
+
i ? i[0] = n || F.ITEM : i = [n, F.INDEX], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
|
|
792
796
|
},
|
|
793
|
-
DEFAULT_LOOP_NAME:
|
|
794
|
-
openEditor:
|
|
797
|
+
DEFAULT_LOOP_NAME: F,
|
|
798
|
+
openEditor: b,
|
|
795
799
|
setLoopIndex: p,
|
|
796
800
|
setLoopKey: _,
|
|
797
801
|
getIndexName: e
|
|
798
802
|
};
|
|
799
803
|
}
|
|
800
|
-
}, Tn = { class: "advanced-config-container" }, Un = { class: "advnce-config" }, jn = { class: "advanced-config-form-item" }, zn = ["title"], Rn = { class: "advnce-config loop-data-item" },
|
|
801
|
-
function Yn(
|
|
804
|
+
}, Tn = { class: "advanced-config-container" }, Un = { class: "advnce-config" }, jn = { class: "advanced-config-form-item" }, zn = ["title"], Rn = { class: "advnce-config loop-data-item" }, $n = { class: "advanced-config-form-item" }, Fn = ["title"], Jn = { class: "advnce-config" }, Xn = { class: "advanced-config-form-item" }, Kn = { class: "advnce-config" }, Hn = { class: "advanced-config-form-item" }, Gn = { class: "advnce-config" }, qn = { class: "advanced-config-form-item" };
|
|
805
|
+
function Yn(f, o, a, e, r, _) {
|
|
802
806
|
var n, l;
|
|
803
|
-
const
|
|
804
|
-
return
|
|
807
|
+
const b = k("switch-configurator"), c = k("variable-configurator"), p = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
|
|
808
|
+
return h(), A("div", Tn, [
|
|
805
809
|
t("div", Un, [
|
|
806
810
|
o[6] || (o[6] = t("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
|
|
807
811
|
t("div", jn, [
|
|
808
|
-
e.isBind ? (
|
|
812
|
+
e.isBind ? (h(), A("div", {
|
|
809
813
|
key: 1,
|
|
810
814
|
class: "binding-state text-ellipsis-multiple",
|
|
811
815
|
title: e.condition.value
|
|
812
|
-
}, " 已绑定:" +
|
|
816
|
+
}, " 已绑定:" + B(e.condition.value), 9, zn)) : (h(), O(b, {
|
|
813
817
|
key: 0,
|
|
814
818
|
modelValue: e.condition,
|
|
815
819
|
"onUpdate:modelValue": e.setConfig
|
|
@@ -826,12 +830,12 @@ function Yn(v, o, a, e, r, _) {
|
|
|
826
830
|
]),
|
|
827
831
|
t("div", Rn, [
|
|
828
832
|
o[7] || (o[7] = t("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
|
|
829
|
-
t("div",
|
|
830
|
-
e.state.isLoop ? (
|
|
833
|
+
t("div", $n, [
|
|
834
|
+
e.state.isLoop ? (h(), A("div", {
|
|
831
835
|
key: 1,
|
|
832
836
|
class: "binding-state text-ellipsis-multiple",
|
|
833
837
|
title: (n = e.state.loopData) == null ? void 0 : n.value
|
|
834
|
-
}, " 已绑定:" +
|
|
838
|
+
}, " 已绑定:" + B((l = e.state.loopData) == null ? void 0 : l.value), 9, Fn)) : (h(), O(p, {
|
|
835
839
|
key: 0,
|
|
836
840
|
modelValue: e.state.loopData,
|
|
837
841
|
"onUpdate:modelValue": [
|
|
@@ -851,9 +855,9 @@ function Yn(v, o, a, e, r, _) {
|
|
|
851
855
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
852
856
|
])
|
|
853
857
|
]),
|
|
854
|
-
t("div",
|
|
858
|
+
t("div", Jn, [
|
|
855
859
|
o[8] || (o[8] = t("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
|
|
856
|
-
t("div",
|
|
860
|
+
t("div", Xn, [
|
|
857
861
|
u(s, {
|
|
858
862
|
modelValue: e.state.loopItem,
|
|
859
863
|
"onUpdate:modelValue": [
|
|
@@ -877,14 +881,14 @@ function Yn(v, o, a, e, r, _) {
|
|
|
877
881
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
878
882
|
])
|
|
879
883
|
]),
|
|
880
|
-
t("div",
|
|
884
|
+
t("div", Gn, [
|
|
881
885
|
o[10] || (o[10] = t("label", { class: "text-ellipsis-multiple" }, "key", -1)),
|
|
882
|
-
t("div",
|
|
886
|
+
t("div", qn, [
|
|
883
887
|
u(x, {
|
|
884
888
|
content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
|
|
885
889
|
effect: "light"
|
|
886
890
|
}, {
|
|
887
|
-
default:
|
|
891
|
+
default: E(() => [
|
|
888
892
|
u(s, {
|
|
889
893
|
modelValue: e.state.loopKey,
|
|
890
894
|
"onUpdate:modelValue": [
|
|
@@ -900,43 +904,43 @@ function Yn(v, o, a, e, r, _) {
|
|
|
900
904
|
])
|
|
901
905
|
]);
|
|
902
906
|
}
|
|
903
|
-
const Zn = /* @__PURE__ */
|
|
907
|
+
const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006"]]), Wn = {
|
|
904
908
|
__name: "Main",
|
|
905
909
|
props: {
|
|
906
910
|
fixedPanels: Array
|
|
907
911
|
},
|
|
908
912
|
emits: [],
|
|
909
|
-
setup(
|
|
910
|
-
const a =
|
|
913
|
+
setup(f, { emit: o }) {
|
|
914
|
+
const a = K(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = re(), _ = Y({
|
|
911
915
|
emitEvent: o
|
|
912
916
|
});
|
|
913
|
-
return
|
|
917
|
+
return Ve("panelState", _), (b, c) => (h(), O(D(We), {
|
|
914
918
|
title: "高级",
|
|
915
|
-
"fixed-panels":
|
|
919
|
+
"fixed-panels": f.fixedPanels,
|
|
916
920
|
"fixed-name": D(e).Event,
|
|
917
921
|
"header-margin-bottom": 0,
|
|
918
|
-
onClose: c[1] || (c[1] = (p) =>
|
|
922
|
+
onClose: c[1] || (c[1] = (p) => b.$emit("close"))
|
|
919
923
|
}, {
|
|
920
|
-
content:
|
|
924
|
+
content: E(() => [
|
|
921
925
|
u(D(ze), {
|
|
922
926
|
modelValue: a.value,
|
|
923
927
|
"onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p)
|
|
924
928
|
}, {
|
|
925
|
-
default:
|
|
926
|
-
u(D(
|
|
929
|
+
default: E(() => [
|
|
930
|
+
u(D(xe), {
|
|
927
931
|
title: "事件绑定",
|
|
928
932
|
name: "bindEvent"
|
|
929
933
|
}, {
|
|
930
|
-
default:
|
|
934
|
+
default: E(() => [
|
|
931
935
|
u(Ln)
|
|
932
936
|
]),
|
|
933
937
|
_: 1
|
|
934
938
|
}),
|
|
935
|
-
u(D(
|
|
939
|
+
u(D(xe), {
|
|
936
940
|
title: "高级配置",
|
|
937
941
|
name: "advancedConfig"
|
|
938
942
|
}, {
|
|
939
|
-
default:
|
|
943
|
+
default: E(() => [
|
|
940
944
|
u(Zn)
|
|
941
945
|
]),
|
|
942
946
|
_: 1
|
|
@@ -948,21 +952,21 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
|
|
|
948
952
|
_: 1
|
|
949
953
|
}, 8, ["fixed-panels", "fixed-name"]));
|
|
950
954
|
}
|
|
951
|
-
},
|
|
955
|
+
}, Pe = "newMethod", Qn = /[^0-9a-zA-Z_$]/, eo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, se = {
|
|
952
956
|
exist: "方法名称已存在",
|
|
953
957
|
ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
|
|
954
958
|
empty: "方法名称不能为空"
|
|
955
959
|
}, no = {
|
|
956
960
|
components: {
|
|
957
961
|
MonacoEditor: Qe,
|
|
958
|
-
TinyInput:
|
|
962
|
+
TinyInput: le,
|
|
959
963
|
TinyCheckbox: Re
|
|
960
964
|
},
|
|
961
965
|
props: {
|
|
962
966
|
dialogVisible: Boolean
|
|
963
967
|
},
|
|
964
968
|
setup() {
|
|
965
|
-
const { getMethodNameList:
|
|
969
|
+
const { getMethodNameList: f } = ne(oe.Page), o = Ae("context"), a = {
|
|
966
970
|
language: "json",
|
|
967
971
|
lineNumbers: !1,
|
|
968
972
|
minimap: {
|
|
@@ -970,16 +974,16 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
|
|
|
970
974
|
}
|
|
971
975
|
}, e = (p) => {
|
|
972
976
|
o.editorContent = p;
|
|
973
|
-
}, r = (p) => !p, _ = (p) =>
|
|
977
|
+
}, r = (p) => !p, _ = (p) => f == null ? void 0 : f().includes(p), b = (p) => !eo.test(p);
|
|
974
978
|
return {
|
|
975
|
-
NEW_METHOD_TYPE:
|
|
979
|
+
NEW_METHOD_TYPE: Pe,
|
|
976
980
|
context: o,
|
|
977
981
|
editorOptions: a,
|
|
978
982
|
change: (p) => {
|
|
979
983
|
const s = [
|
|
980
|
-
{ validator: r, tip:
|
|
981
|
-
{ validator: _, tip:
|
|
982
|
-
{ validator:
|
|
984
|
+
{ validator: r, tip: se.empty },
|
|
985
|
+
{ validator: _, tip: se.exist },
|
|
986
|
+
{ validator: b, tip: se.ruleInvalid }
|
|
983
987
|
];
|
|
984
988
|
for (let x = 0; x < s.length; x++) {
|
|
985
989
|
const n = s[x];
|
|
@@ -1000,27 +1004,27 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
|
|
|
1000
1004
|
key: 0,
|
|
1001
1005
|
class: "params-tip"
|
|
1002
1006
|
};
|
|
1003
|
-
function co(
|
|
1004
|
-
const
|
|
1005
|
-
return
|
|
1007
|
+
function co(f, o, a, e, r, _) {
|
|
1008
|
+
const b = k("tiny-input"), c = k("tiny-checkbox"), p = k("monaco-editor");
|
|
1009
|
+
return h(), A("div", oo, [
|
|
1006
1010
|
t("div", {
|
|
1007
|
-
class:
|
|
1011
|
+
class: X(["content-right-top", { "tip-error": e.context.tipError }])
|
|
1008
1012
|
}, [
|
|
1009
1013
|
o[2] || (o[2] = t("div", { class: "content-right-title" }, "方法名称", -1)),
|
|
1010
|
-
u(
|
|
1014
|
+
u(b, {
|
|
1011
1015
|
modelValue: e.context.bindMethodInfo.name,
|
|
1012
1016
|
"onUpdate:modelValue": [
|
|
1013
1017
|
o[0] || (o[0] = (s) => e.context.bindMethodInfo.name = s),
|
|
1014
1018
|
e.change
|
|
1015
1019
|
],
|
|
1016
1020
|
disabled: e.context.bindMethodInfo.type !== e.NEW_METHOD_TYPE,
|
|
1017
|
-
class:
|
|
1021
|
+
class: X([{ "status-error": e.context.tipError }]),
|
|
1018
1022
|
placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
|
|
1019
1023
|
}, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
|
|
1020
|
-
t("div", to,
|
|
1024
|
+
t("div", to, B(e.context.tip), 1)
|
|
1021
1025
|
], 2),
|
|
1022
1026
|
t("div", {
|
|
1023
|
-
class:
|
|
1027
|
+
class: X(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
|
|
1024
1028
|
}, [
|
|
1025
1029
|
t("div", io, [
|
|
1026
1030
|
u(c, {
|
|
@@ -1028,33 +1032,33 @@ function co(v, o, a, e, r, _) {
|
|
|
1028
1032
|
"onUpdate:modelValue": o[1] || (o[1] = (s) => e.context.enableExtraParams = s),
|
|
1029
1033
|
name: "tiny-checkbox"
|
|
1030
1034
|
}, {
|
|
1031
|
-
default:
|
|
1032
|
-
|
|
1035
|
+
default: E(() => o[3] || (o[3] = [
|
|
1036
|
+
J("扩展参数设置")
|
|
1033
1037
|
])),
|
|
1034
1038
|
_: 1
|
|
1035
1039
|
}, 8, ["modelValue"]),
|
|
1036
1040
|
t("div", so, [
|
|
1037
1041
|
o[4] || (o[4] = t("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
|
|
1038
|
-
|
|
1042
|
+
J(" 如: " + B(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
|
|
1039
1043
|
])
|
|
1040
1044
|
]),
|
|
1041
1045
|
t("div", ao, [
|
|
1042
|
-
a.dialogVisible ? (
|
|
1046
|
+
a.dialogVisible ? (h(), O(p, {
|
|
1043
1047
|
key: 0,
|
|
1044
1048
|
value: e.context.editorContent,
|
|
1045
1049
|
options: e.editorOptions,
|
|
1046
1050
|
onChange: e.editorContentChange,
|
|
1047
1051
|
class: "monaco-editor"
|
|
1048
|
-
}, null, 8, ["value", "options", "onChange"])) :
|
|
1049
|
-
e.context.enableExtraParams ?
|
|
1052
|
+
}, null, 8, ["value", "options", "onChange"])) : Q("", !0),
|
|
1053
|
+
e.context.enableExtraParams ? Q("", !0) : (h(), A("div", lo))
|
|
1050
1054
|
]),
|
|
1051
|
-
!e.context.isValidParams && e.context.enableExtraParams ? (
|
|
1055
|
+
!e.context.isValidParams && e.context.enableExtraParams ? (h(), A("div", ro, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : Q("", !0)
|
|
1052
1056
|
], 2)
|
|
1053
1057
|
]);
|
|
1054
1058
|
}
|
|
1055
|
-
const mo = /* @__PURE__ */
|
|
1059
|
+
const mo = /* @__PURE__ */ H(no, [["render", co], ["__scopeId", "data-v-f2c9b5af"]]), po = {
|
|
1056
1060
|
components: {
|
|
1057
|
-
TinySearch:
|
|
1061
|
+
TinySearch: $e
|
|
1058
1062
|
},
|
|
1059
1063
|
props: {
|
|
1060
1064
|
eventBinding: {
|
|
@@ -1062,66 +1066,66 @@ const mo = /* @__PURE__ */ J(no, [["render", co], ["__scopeId", "data-v-f2c9b5af
|
|
|
1062
1066
|
default: () => ({})
|
|
1063
1067
|
}
|
|
1064
1068
|
},
|
|
1065
|
-
setup(
|
|
1066
|
-
const { getMethodNameList: o } =
|
|
1069
|
+
setup(f) {
|
|
1070
|
+
const { getMethodNameList: o } = ne(oe.Page), a = K(""), e = K([]), r = Ae("context"), _ = (c, p) => {
|
|
1067
1071
|
const s = c.map((l) => {
|
|
1068
1072
|
var i;
|
|
1069
1073
|
return Number.parseInt((i = l.match(/\d+$/)) == null ? void 0 : i[0]) || 0;
|
|
1070
1074
|
}).sort((l, i) => l - i).pop();
|
|
1071
1075
|
let n = `${(p == null ? void 0 : p.replace(Qn, "_")) || ""}New`;
|
|
1072
1076
|
return s > -1 && (n += `${s + 1}`), n;
|
|
1073
|
-
},
|
|
1077
|
+
}, b = (c) => {
|
|
1074
1078
|
r.bindMethodInfo = c;
|
|
1075
1079
|
};
|
|
1076
|
-
return
|
|
1080
|
+
return Ne(() => {
|
|
1077
1081
|
var l, i;
|
|
1078
|
-
const c = (l =
|
|
1082
|
+
const c = (l = f.eventBinding) == null ? void 0 : l.eventName, p = (o == null ? void 0 : o().filter((d) => d.includes(c))) || [], x = {
|
|
1079
1083
|
title: "添加新方法",
|
|
1080
1084
|
name: _(p, c),
|
|
1081
|
-
type:
|
|
1085
|
+
type: Pe
|
|
1082
1086
|
};
|
|
1083
|
-
(i =
|
|
1087
|
+
(i = f.eventBinding) != null && i.ref ? b({ name: f.eventBinding.ref }) : b(x);
|
|
1084
1088
|
const n = (o == null ? void 0 : o().filter((d) => d.includes(a.value)).map((d) => ({ name: d }))) || [];
|
|
1085
1089
|
e.value = [x, ...n];
|
|
1086
1090
|
}), {
|
|
1087
1091
|
context: r,
|
|
1088
1092
|
searchValue: a,
|
|
1089
1093
|
filteredMethodList: e,
|
|
1090
|
-
selectMethod:
|
|
1094
|
+
selectMethod: b
|
|
1091
1095
|
};
|
|
1092
1096
|
}
|
|
1093
|
-
}, uo = { class: "dialog-content-left" },
|
|
1094
|
-
function
|
|
1095
|
-
const
|
|
1096
|
-
return
|
|
1097
|
+
}, uo = { class: "dialog-content-left" }, fo = { class: "left-list-wrap" }, vo = { class: "left-action-list" }, go = { class: "action-list-wrap" }, _o = ["onClick"];
|
|
1098
|
+
function bo(f, o, a, e, r, _) {
|
|
1099
|
+
const b = k("tiny-search");
|
|
1100
|
+
return h(), A("div", uo, [
|
|
1097
1101
|
o[1] || (o[1] = t("div", { class: "left-title" }, "响应方法", -1)),
|
|
1098
|
-
t("div",
|
|
1099
|
-
t("div",
|
|
1100
|
-
u(
|
|
1102
|
+
t("div", fo, [
|
|
1103
|
+
t("div", vo, [
|
|
1104
|
+
u(b, {
|
|
1101
1105
|
modelValue: e.searchValue,
|
|
1102
1106
|
"onUpdate:modelValue": o[0] || (o[0] = (c) => e.searchValue = c),
|
|
1103
1107
|
placeholder: "搜索"
|
|
1104
1108
|
}, null, 8, ["modelValue"]),
|
|
1105
1109
|
t("ul", go, [
|
|
1106
|
-
(
|
|
1110
|
+
(h(!0), A(W, null, ae(e.filteredMethodList, (c) => (h(), A("li", {
|
|
1107
1111
|
key: c.name,
|
|
1108
1112
|
onClick: (p) => e.selectMethod(c)
|
|
1109
1113
|
}, [
|
|
1110
1114
|
t("div", {
|
|
1111
|
-
class:
|
|
1112
|
-
},
|
|
1115
|
+
class: X(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
|
|
1116
|
+
}, B(c.title || c.name), 3)
|
|
1113
1117
|
], 8, _o))), 128))
|
|
1114
1118
|
])
|
|
1115
1119
|
])
|
|
1116
1120
|
])
|
|
1117
1121
|
]);
|
|
1118
1122
|
}
|
|
1119
|
-
const
|
|
1120
|
-
...
|
|
1123
|
+
const ho = /* @__PURE__ */ H(po, [["render", bo], ["__scopeId", "data-v-0859add1"]]), Bo = {
|
|
1124
|
+
...de,
|
|
1121
1125
|
entry: Wn,
|
|
1122
|
-
options: { commonEvents:
|
|
1126
|
+
options: { commonEvents: vn },
|
|
1123
1127
|
components: {
|
|
1124
|
-
BindEventsDialogSidebar:
|
|
1128
|
+
BindEventsDialogSidebar: ho,
|
|
1125
1129
|
BindEventsDialogContent: mo
|
|
1126
1130
|
}
|
|
1127
1131
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.bind-event-dialog[data-v-
|
|
1
|
+
.bind-event-dialog[data-v-db4b4d71]{z-index:99}.bind-event-dialog[data-v-db4b4d71] .tiny-dialog-box{min-width:760px}.bind-event-dialog-tip[data-v-db4b4d71]{padding:var(--te-common-vertical-item-spacing-normal) 14px;margin-bottom:var(--te-common-vertical-item-spacing-normal);background-color:var(--te-bind-event-dialog-tip-bg-color);color:var(--te-bind-event-dialog-tip-text-color)}.bind-event-dialog-content[data-v-db4b4d71]{display:flex;min-width:700px}.add-custom-event-form.add-custom-event-form[data-v-5033228a] .tiny-form-item__label{padding-left:0}.footer[data-v-5033228a]{display:flex;justify-content:flex-end}.custom-event[data-v-3bfab6f4]{padding:10px 20px 10px 10px}.custom-event footer[data-v-3bfab6f4]{text-align:center}.bind-action-list .bind-actions[data-v-3bfab6f4]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-3bfab6f4]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-3bfab6f4]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-3bfab6f4]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-3bfab6f4]{color:var(--te-events-event-bind-text-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-events-bind-action-item-text-color);border-bottom:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:first-child{border-top:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:hover{background:var(--te-events-bind-action-item-bg-color-hover)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-3bfab6f4]{color:var(--te-events-bind-action-item-text-color-link)}.bind-action-list .popover-head[data-v-3bfab6f4]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]{width:50%}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]:not(:last-child){margin-right:12px}.bind-action-list .popover-head .add-custom-event-button[data-v-3bfab6f4]{margin-right:0}.bind-action-list .popover-head .bind-event-btn[data-v-3bfab6f4]{padding:0 16px;width:100%}.bind-action-list .popover-head .bind-event-btn .bind-event-btn-icon[data-v-3bfab6f4]{margin-right:0;margin-left:4px}.bind-action-list .empty-action[data-v-3bfab6f4]{display:flex;flex-direction:column;align-items:center;background-color:var(--te-events-empty-action-bg-color);color:var(--te-events-empty-action-text-color);padding:24px 18px;margin-top:var(--te-common-vertical-item-spacing-normal)}.bind-action-list .empty-action .empty-action-icon[data-v-3bfab6f4]{font-size:48px}.bind-action-list .empty-action .icon[data-v-3bfab6f4]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-3bfab6f4]{margin-top:4px}.bind-action-list .empty-action .text[data-v-3bfab6f4]{margin-top:12px}.bind-event-list[data-v-3bfab6f4]{color:var(--te-events-bind-event-list-text-color)}.bind-event-list-item-notallow[data-v-3bfab6f4]{cursor:not-allowed;pointer-events:none;color:var(--te-events-bind-event-list-item-text-color-disabled)}.bind-event-list-item[data-v-3bfab6f4]{padding:0 16px;margin:0 -16px;line-height:24px}.bind-event-list-item[data-v-3bfab6f4]:hover{cursor:pointer;background:var(--te-events-bind-event-list-item-bg-color-hover)}.advanced-config-container .advnce-config[data-v-2254f006]{align-items:center;display:flex;column-gap:12px;color:var(--te-events-advanced-config-text-color)}.advanced-config-container .advnce-config[data-v-2254f006]:not(:last-child){margin-bottom:var(--te-common-vertical-item-spacing-normal)}.advanced-config-container .advnce-config label[data-v-2254f006]{width:80px;word-break:keep-all;color:var(--te-events-advanced-label-text-color);flex-shrink:0}.advanced-config-container .advnce-config .advanced-config-form-item[data-v-2254f006]{display:grid;grid-template-columns:1fr auto;flex:1}.advanced-config-container .advnce-config .binding-state[data-v-2254f006]{box-sizing:border-box;background:var(--te-events-advanced-binding-state-bg-color);color:var(--te-events-advanced-binding-state-text-color);border:1px solid var(--te-events-advanced-binding-state-border-color);font-size:12px;height:30px;line-height:22px;padding:4px 8px;--ellipsis-line: 1;border-radius:6px}.advanced-config-container .advnce-config .advance-config-loop-wrap .advance-item[data-v-2254f006]{width:100%}.advanced-config-container .loop-data-item[data-v-2254f006]{display:block}.advanced-config-container .loop-data-item label[data-v-2254f006]{margin-bottom:5px}.content-right[data-v-f2c9b5af]{width:68%}.content-right .content-right-top .new-action-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .content-right-bottom .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-content-right-monaco-border-color);overflow:hidden;position:relative}.content-right .content-right-bottom .content-right-monaco .monaco-editor[data-v-f2c9b5af]{width:100%;height:216px;color:var(--te-bind-event-dialog-content-right-monaco-text-color)}.content-right .content-right-bottom .content-right-monaco .mark[data-v-f2c9b5af]{width:100%;height:216px;position:absolute;z-index:1;top:0}.content-right .content-right-bottom .params-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-danger-tip-text-color)}.content-right .content-right-top .content-right-title[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title[data-v-f2c9b5af]{margin-bottom:var(--te-common-vertical-item-spacing-normal)}.content-right .content-right-top .content-right-title .set-params-tip[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title .set-params-tip[data-v-f2c9b5af]{margin-top:6px;font-weight:400;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .tip-error .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-danger-border-color)}.content-right .tip-error .params-tip[data-v-f2c9b5af],.content-right .tip-error .new-action-tip[data-v-f2c9b5af]{color:var(--te-bind-event-dialog-danger-tip-text-color)}.dialog-content-left[data-v-0859add1]{margin-right:30px;width:30%;display:flex;flex-direction:column}.dialog-content-left .left-title[data-v-0859add1]{font-weight:400}.dialog-content-left .left-list-wrap[data-v-0859add1]{border:1px solid var(--te-bind-event-dialog-content-left-border-color);border-radius:4px;height:300px;margin-top:var(--te-common-vertical-item-spacing-normal);display:flex;flex:1}.dialog-content-left .left-list-wrap .left-action-list[data-v-0859add1]{flex:1;padding:12px}.dialog-content-left .left-list-wrap .left-action-list .action-list-wrap[data-v-0859add1]{height:250px;margin-top:8px;overflow:auto}.dialog-content-left .left-list-wrap .left-action-list .action-name[data-v-0859add1]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-bind-event-dialog-text-color)}.dialog-content-left .left-list-wrap .left-action-list .action-name.active[data-v-0859add1]{background:var(--te-bind-event-dialog-content-left-list-item-bg-color-active)}:root{--te-events-advanced-config-text-color: var(--te-common-text-secondary);--te-events-advanced-label-text-color: var(--te-common-text-secondary);--te-events-advanced-binding-state-bg-color: var(--te-common-bg-info);--te-events-advanced-binding-state-border-color: var(--te-common-border-info);--te-events-advanced-binding-state-text-color: var(--te-common-text-emphasize);--te-bind-event-dialog-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-left-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-right-monaco-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-right-monaco-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-left-list-item-bg-color-active: var(--te-common-bg-container);--te-bind-event-dialog-tip-text-color: var(--te-common-text-weaken);--te-bind-event-dialog-tip-bg-color: var(--te-common-bg-container);--te-bind-event-dialog-danger-tip-text-color: var(--te-common-color-error);--te-bind-event-dialog-danger-border-color: var(--te-common-color-error);--te-events-bind-action-item-border-color: var(--te-common-border-divider);--te-events-event-bind-text-color: var(--te-common-text-weaken);--te-events-bind-action-item-text-color: var(--te-common-text-primary);--te-events-bind-action-item-bg-color-hover: var(--te-common-bg-container);--te-events-bind-action-item-text-color-link: var(--te-common-text-emphasize);--te-events-empty-action-bg-color: var(--te-common-bg-container);--te-events-empty-action-text-color: var(--te-common-text-weaken);--te-events-bind-event-list-text-color: var(--te-common-text-primary);--te-events-bind-event-list-item-text-color-disabled: var(--te-common-text-disabled);--te-events-bind-event-list-item-bg-color-hover: var(--te-common-bg-container)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-engine-setting-events",
|
|
3
|
-
"version": "2.5.0
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"homepage": "https://opentiny.design/tiny-engine",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@opentiny/tiny-engine-common": "2.5.0
|
|
29
|
-
"@opentiny/tiny-engine-configurator": "2.5.0
|
|
30
|
-
"@opentiny/tiny-engine-meta-register": "2.5.0
|
|
31
|
-
"@opentiny/tiny-engine-utils": "2.5.0
|
|
28
|
+
"@opentiny/tiny-engine-common": "2.5.0",
|
|
29
|
+
"@opentiny/tiny-engine-configurator": "2.5.0",
|
|
30
|
+
"@opentiny/tiny-engine-meta-register": "2.5.0",
|
|
31
|
+
"@opentiny/tiny-engine-utils": "2.5.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0
|
|
34
|
+
"@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0",
|
|
35
35
|
"@vitejs/plugin-vue": "^5.1.2",
|
|
36
36
|
"@vitejs/plugin-vue-jsx": "^4.0.1",
|
|
37
37
|
"vite": "^5.4.2"
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"@opentiny/vue-icon": "^3.20.0",
|
|
42
42
|
"vue": "^3.4.15"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "db1033835ed51b30398716070cc73e7ac985b3f3"
|
|
45
45
|
}
|