@opentiny/tiny-engine-setting-events 2.6.0-alpha.0 → 2.6.0-alpha.10

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 CHANGED
@@ -1,14 +1,14 @@
1
1
  import "./style.css";
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
- import { SvgButton as Ye, BlockLinkEvent as Ze, PluginPanel as We, VueMonaco as Qe } from "@opentiny/tiny-engine-common";
7
- import { iconChevronDown as en } from "@opentiny/vue-icon";
8
- import { string2Ast as ke, ast2String as nn } from "@opentiny/tiny-engine-common/js/ast";
9
- import { CodeConfigurator as on, InputConfigurator as tn, VariableConfigurator as sn, SwitchConfigurator as an } from "@opentiny/tiny-engine-configurator";
2
+ import { ref as K, reactive as Y, provide as Ve, resolveComponent as k, createBlock as O, openBlock as b, withCtx as E, createElementVNode as t, createVNode as u, resolveDynamicComponent as _e, createTextVNode as J, nextTick as Se, unref as D, createElementBlock as N, Fragment as W, withDirectives as he, renderList as ae, normalizeClass as X, toDisplayString as B, createCommentVNode as Q, vShow as be, computed as q, watchEffect as Ae, watch as ye, inject as Ne } from "vue";
3
+ import { TinyAlert as Te, DialogBox as De, Button as ee, Form as Ue, FormItem as Ee, Input as le, Popover as je, Tooltip as ze, Collapse as Re, CollapseItem as xe, Checkbox as $e, Search as Fe } from "@opentiny/vue";
4
+ import { getMergeMeta as Ie, useLayout as re, useCanvas as j, getMetaApi as ne, META_APP as oe, getOptions as Je, useHistory as Xe, useBlock as Ke, useMaterial as He, useModal as Ge, useMessage as qe, useProperties as $ } from "@opentiny/tiny-engine-meta-register";
5
+ import Ye from "@opentiny/tiny-engine-common/js/i18n";
6
+ import { SvgButton as Ze, BlockLinkEvent as We, PluginPanel as Qe, VueMonaco as en } from "@opentiny/tiny-engine-common";
7
+ import { iconChevronDown as nn } from "@opentiny/vue-icon";
8
+ import { string2Ast as ke, ast2String as on } from "@opentiny/tiny-engine-common/js/ast";
9
+ import { CodeConfigurator as tn, InputConfigurator as sn, VariableConfigurator as an, SwitchConfigurator as ln } from "@opentiny/tiny-engine-configurator";
10
10
  import { PROP_DATA_TYPE as G } from "@opentiny/tiny-engine-common/js/constants";
11
- import { constants as ln, utils as dn } from "@opentiny/tiny-engine-utils";
11
+ import { constants as dn, utils as rn } from "@opentiny/tiny-engine-utils";
12
12
  const de = {
13
13
  id: "engine.setting.event",
14
14
  title: "高级",
@@ -21,14 +21,15 @@ const de = {
21
21
  for (const [e, r] of o)
22
22
  a[e] = r;
23
23
  return a;
24
- }, ce = K(!1), rn = () => {
24
+ }, ce = K(!1), cn = () => {
25
25
  ce.value = !0;
26
26
  }, Ce = () => {
27
27
  ce.value = !1;
28
- }, cn = {
28
+ }, mn = {
29
29
  components: {
30
30
  TinyButton: ee,
31
- TinyDialogBox: De
31
+ TinyDialogBox: De,
32
+ TinyAlert: Te
32
33
  },
33
34
  inheritAttrs: !1,
34
35
  props: {
@@ -38,7 +39,7 @@ const de = {
38
39
  }
39
40
  },
40
41
  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
+ const { BindEventsDialogSidebar: o, BindEventsDialogContent: a } = Ie(de.id).components, { PLUGIN_NAME: e, activePlugin: r } = re(), { pageState: _ } = j(), { getMethods: h, saveMethod: c, highlightMethod: m } = ne(oe.Page), s = Y({
42
43
  editorContent: "",
43
44
  bindMethodInfo: {},
44
45
  tip: "",
@@ -53,17 +54,17 @@ const de = {
53
54
  var M, P;
54
55
  if (!g)
55
56
  return;
56
- const m = (M = f.eventBinding) == null ? void 0 : M.eventName;
57
- if (!m)
57
+ const p = (M = f.eventBinding) == null ? void 0 : M.eventName;
58
+ if (!p)
58
59
  return;
59
60
  const v = (P = _ == null ? void 0 : _.currentSchema) == null ? void 0 : P.props;
60
61
  if (!v)
61
62
  return;
62
63
  const { name: C, extra: w } = g;
63
- f[m] || (v[m] = {
64
+ f[p] || (v[p] = {
64
65
  type: "JSExpression",
65
66
  value: ""
66
- }), w && s.enableExtraParams && (v[m].params = w), v[m].value = `this.${C}`, Je().addHistory();
67
+ }), w && s.enableExtraParams && (v[p].params = w), v[p].value = `this.${C}`, Xe().addHistory();
67
68
  }, l = () => {
68
69
  s.tipError = !1, s.tip = "", s.isValidParams = !0;
69
70
  }, i = () => {
@@ -75,20 +76,20 @@ const de = {
75
76
  s.isValidParams = !1;
76
77
  }
77
78
  return g;
78
- }, d = (g) => Array.from({ length: g.length }, (m, v) => `args${v}`).join(","), y = () => {
79
+ }, d = (g) => Array.from({ length: g.length }, (p, v) => `args${v}`).join(","), y = () => {
79
80
  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
+ let g = (M = (w = h()) == null ? void 0 : w[s.bindMethodInfo.name]) == null ? void 0 : M.value, p = "{}", v = !1, C = !1;
81
82
  if (g) {
82
- let N = {};
83
+ let A = {};
83
84
  try {
84
- N = ke(g);
85
+ A = ke(g);
85
86
  } catch {
86
- g = g.replace("function", `function ${s.bindMethodInfo.name}`), N = ke(g);
87
+ g = g.replace("function", `function ${s.bindMethodInfo.name}`), A = ke(g);
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
+ (S = (P = A == null ? void 0 : A.program) == null ? void 0 : P.body[0]) != null && S.body && (p = on(A.program.body[0].body)), (U = (T = A == null ? void 0 : A.program) == null ? void 0 : T.body[0]) != null && U.async && (v = !0), (Z = (L = A == null ? void 0 : A.program) == null ? void 0 : L.body[0]) != null && Z.generator && (C = !0);
89
90
  }
90
91
  return {
91
- preBody: m || `{
92
+ preBody: p || `{
92
93
  }`,
93
94
  isAsync: v,
94
95
  isGenerator: C
@@ -97,7 +98,7 @@ const de = {
97
98
  r(e.Page).then(() => {
98
99
  Se(() => {
99
100
  var g;
100
- p && p((g = s.bindMethodInfo) == null ? void 0 : g.name);
101
+ m && m((g = s.bindMethodInfo) == null ? void 0 : g.name);
101
102
  });
102
103
  });
103
104
  };
@@ -110,31 +111,31 @@ const de = {
110
111
  if (s.tipError)
111
112
  return;
112
113
  let g = "event";
113
- const m = i();
114
+ const p = i();
114
115
  let v = g;
115
116
  if (!s.isValidParams)
116
117
  return;
117
- m && (g = m.join(","), v = d(m)), n({ ...s.bindMethodInfo, extra: m });
118
+ p && (g = p.join(","), v = d(p)), n({ ...s.bindMethodInfo, extra: p });
118
119
  const { preBody: C, isAsync: w, isGenerator: M } = y(), { name: P } = s.bindMethodInfo, S = `${w ? "async" : ""} function${M ? "*" : ""} ${P}`, T = {
119
120
  name: P,
120
121
  content: s.enableExtraParams ? `${S}(eventArgs,${v}) ${C}` : `${S}(${v}) ${C}`
121
- }, { beforeSaveMethod: U } = Fe(de.id);
122
+ }, { beforeSaveMethod: U } = Je(de.id);
122
123
  typeof U == "function" && await U(T, s.bindMethodInfo), c == null || c(T), V(), Ce();
123
124
  },
124
125
  closeDialog: () => {
125
126
  l(), Ce();
126
127
  },
127
128
  openedDialog: () => {
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();
129
+ var g, p, v;
130
+ s.enableExtraParams = !!((p = (g = f.eventBinding) == null ? void 0 : g.params) != null && p.length), s.editorContent = JSON.stringify(((v = f.eventBinding) == null ? void 0 : v.params) || [], null, 2), l();
130
131
  },
131
132
  selectMethod: x
132
133
  };
133
134
  }
134
- }, mn = { class: "bind-event-dialog-content" }, pn = { class: "bind-dialog-footer" };
135
- function un(f, o, a, e, r, _) {
136
- const b = k("tiny-button"), c = k("tiny-dialog-box");
137
- return h(), O(c, {
135
+ }, pn = { class: "bind-event-dialog-tip" }, un = { class: "bind-event-dialog-content" }, fn = { class: "bind-dialog-footer" };
136
+ function vn(f, o, a, e, r, _) {
137
+ const h = k("tiny-alert"), c = k("tiny-button"), m = k("tiny-dialog-box");
138
+ return b(), O(m, {
138
139
  visible: e.dialogVisible,
139
140
  title: "事件绑定",
140
141
  width: "50%",
@@ -145,15 +146,15 @@ function un(f, o, a, e, r, _) {
145
146
  onOpened: e.openedDialog
146
147
  }, {
147
148
  footer: E(() => [
148
- t("div", pn, [
149
- u(b, { onClick: e.closeDialog }, {
149
+ t("div", fn, [
150
+ u(c, { onClick: e.closeDialog }, {
150
151
  default: E(() => o[0] || (o[0] = [
151
152
  J("取 消")
152
153
  ])),
153
154
  _: 1,
154
155
  __: [0]
155
156
  }, 8, ["onClick"]),
156
- u(b, {
157
+ u(c, {
157
158
  type: "info",
158
159
  onClick: e.confirm
159
160
  }, {
@@ -166,20 +167,26 @@ function un(f, o, a, e, r, _) {
166
167
  ])
167
168
  ]),
168
169
  default: E(() => [
169
- o[2] || (o[2] = t("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)),
170
- t("div", mn, [
171
- (h(), O(_e(e.BindEventsDialogSidebar), {
170
+ t("div", pn, [
171
+ u(h, {
172
+ type: "info",
173
+ description: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。",
174
+ class: "header-alert",
175
+ closable: !1
176
+ })
177
+ ]),
178
+ t("div", un, [
179
+ (b(), O(_e(e.BindEventsDialogSidebar), {
172
180
  dialogVisible: e.dialogVisible,
173
181
  eventBinding: a.eventBinding
174
182
  }, null, 8, ["dialogVisible", "eventBinding"])),
175
- (h(), O(_e(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
183
+ (b(), O(_e(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
176
184
  ])
177
185
  ]),
178
- _: 1,
179
- __: [2]
186
+ _: 1
180
187
  }, 8, ["visible", "onClose", "onOpened"]);
181
188
  }
182
- const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71"]]), vn = {
189
+ const gn = /* @__PURE__ */ H(mn, [["render", vn], ["__scopeId", "data-v-070f73c9"]]), _n = {
183
190
  onClick: {
184
191
  label: {
185
192
  zh_CN: "点击事件"
@@ -236,7 +243,7 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
236
243
  },
237
244
  defaultValue: ""
238
245
  }
239
- }, gn = [
246
+ }, hn = [
240
247
  "onabort",
241
248
  "onafterprint",
242
249
  "onanimationend",
@@ -346,10 +353,10 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
346
353
  "onwebkitanimationstart",
347
354
  "onwebkittransitionend",
348
355
  "onwheel"
349
- ], _n = (f) => !!gn.map((a) => {
356
+ ], bn = (f) => !!hn.map((a) => {
350
357
  const e = a[2].toUpperCase();
351
358
  return `${a.substring(0, 2)}${e}${a.substring(3)}`;
352
- }).includes(f), bn = { class: "footer" }, hn = {
359
+ }).includes(f), yn = { class: "footer" }, En = {
353
360
  __name: "AddEventsDialog",
354
361
  props: {
355
362
  visible: {
@@ -381,7 +388,7 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
381
388
  l(new Error("事件名已存在"));
382
389
  return;
383
390
  }
384
- if (!_n(r.eventName)) {
391
+ if (!bn(r.eventName)) {
385
392
  l(new Error("请输入正确的浏览器事件名"));
386
393
  return;
387
394
  }
@@ -389,7 +396,7 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
389
396
  }
390
397
  }
391
398
  ]
392
- }, p = () => {
399
+ }, m = () => {
393
400
  e("closeDialog");
394
401
  }, s = () => {
395
402
  _.value && _.value.validate((x) => {
@@ -399,17 +406,17 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
399
406
  e("addEvent", { eventName: n, eventDescription: l });
400
407
  });
401
408
  };
402
- return (x, n) => (h(), O(D(De), {
409
+ return (x, n) => (b(), O(D(De), {
403
410
  visible: f.visible,
404
411
  title: "添加新事件",
405
412
  width: "400px",
406
413
  "append-to-body": !0,
407
414
  "close-on-click-modal": !1,
408
- onClose: p
415
+ onClose: m
409
416
  }, {
410
417
  footer: E(() => [
411
- t("div", bn, [
412
- u(D(ee), { onClick: p }, {
418
+ t("div", yn, [
419
+ u(D(ee), { onClick: m }, {
413
420
  default: E(() => n[2] || (n[2] = [
414
421
  J(" 取消")
415
422
  ])),
@@ -429,7 +436,7 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
429
436
  ])
430
437
  ]),
431
438
  default: E(() => [
432
- u(D(Te), {
439
+ u(D(Ue), {
433
440
  ref_key: "ruleForm",
434
441
  ref: _,
435
442
  model: r,
@@ -475,19 +482,19 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
475
482
  _: 1
476
483
  }, 8, ["visible"]));
477
484
  }
478
- }, yn = /* @__PURE__ */ H(hn, [["__scopeId", "data-v-5033228a"]]), En = {
485
+ }, xn = /* @__PURE__ */ H(En, [["__scopeId", "data-v-5033228a"]]), kn = {
479
486
  components: {
480
- BlockLinkEvent: Ze,
481
- BindEventsDialog: fn,
482
- TinyPopover: Ue,
487
+ BlockLinkEvent: We,
488
+ BindEventsDialog: gn,
489
+ TinyPopover: je,
483
490
  TinyButton: ee,
484
- IconChevronDown: en(),
485
- SvgButton: Ye,
486
- AddEventsDialog: yn
491
+ IconChevronDown: nn(),
492
+ SvgButton: Ze,
493
+ AddEventsDialog: xn
487
494
  },
488
495
  inheritAttrs: !1,
489
496
  setup() {
490
- 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({
497
+ const { PLUGIN_NAME: f, activePlugin: o } = re(), { pageState: a } = j(), { getBlockEvents: e, getCurrentBlock: r, removeEventLink: _ } = Ke(), { getMaterial: h } = He(), { confirm: c } = Ge(), m = Ye.global.locale.value, { highlightMethod: s } = ne(oe.Page), { commonEvents: x = {} } = Ie("engine.setting.event").options, n = Y({
491
498
  eventName: "",
492
499
  // 事件名称
493
500
  eventBinding: null,
@@ -497,15 +504,15 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
497
504
  bindActions: {},
498
505
  showBindEventDialog: !1
499
506
  }), l = q(() => !!a.isBlock), i = q(() => Object.keys(n.bindActions).length === 0), d = q(() => ({ ...n.componentEvent, ...n.customEvents }));
500
- Ne(() => {
507
+ Ae(() => {
501
508
  var M, P, S, T, U;
502
- const m = (M = a == null ? void 0 : a.currentSchema) == null ? void 0 : M.componentName, v = b(m);
509
+ const p = (M = a == null ? void 0 : a.currentSchema) == null ? void 0 : M.componentName, v = h(p);
503
510
  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) || {};
504
511
  const C = ((U = a == null ? void 0 : a.currentSchema) == null ? void 0 : U.props) || {}, w = Object.keys(C);
505
512
  n.bindActions = {}, Object.entries(d.value).forEach(([L, Z]) => {
506
- var N, ie, me;
513
+ var A, ie, me;
507
514
  if (w.indexOf(L) > -1) {
508
- 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 = {
515
+ const Me = C[L], { value: we, params: pe } = Me, Le = !pe && ((ie = (A = we.match(/\((.+)\)$/)) == null ? void 0 : A[1]) == null ? void 0 : ie.split(",")) || pe, z = {
509
516
  eventName: L,
510
517
  ref: "",
511
518
  event: C[L],
@@ -523,33 +530,33 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
523
530
  }
524
531
  });
525
532
  });
526
- const y = (m, v) => {
527
- v && n.bindActions[m.eventName] || (n.eventBinding = m, rn());
528
- }, V = (m) => {
533
+ const y = (p, v) => {
534
+ v && n.bindActions[p.eventName] || (n.eventBinding = p, cn());
535
+ }, V = (p) => {
529
536
  var C;
530
- 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 } }));
537
+ Object.keys(((C = a == null ? void 0 : a.currentSchema) == null ? void 0 : C.props) || {}).indexOf(p.eventName) > -1 && (delete a.currentSchema.props[p.eventName], qe().publish({ topic: "schemaChange", data: { props: a.currentSchema.props } }));
531
538
  };
532
539
  return {
533
540
  state: n,
534
541
  isBlock: l,
535
542
  isEmpty: i,
536
- delEvent: (m) => {
543
+ delEvent: (p) => {
537
544
  c({
538
545
  title: "提示",
539
- message: `您确定要删除事件 ${m.eventName} 吗?`,
546
+ message: `您确定要删除事件 ${p.eventName} 吗?`,
540
547
  exec() {
541
- a.isBlock && _({ linked: m.linked }), V(m);
548
+ a.isBlock && _({ linked: p.linked }), V(p);
542
549
  }
543
550
  });
544
551
  },
545
- openCodePanel: (m) => {
546
- m && o(f.Page).then(() => {
547
- s && s(m.ref);
552
+ openCodePanel: (p) => {
553
+ p && o(f.Page).then(() => {
554
+ s && s(p.ref);
548
555
  });
549
556
  },
550
557
  openActionDialog: y,
551
- handleAddEvent: (m) => {
552
- const { eventName: v, eventDescription: C } = m;
558
+ handleAddEvent: (p) => {
559
+ const { eventName: v, eventDescription: C } = p;
553
560
  Object.assign(n.customEvents, {
554
561
  [v]: {
555
562
  label: {
@@ -567,20 +574,20 @@ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71
567
574
  }
568
575
  }), n.showBindEventDialog = !1;
569
576
  },
570
- handleToggleAddEventDialog: (m) => {
571
- n.showBindEventDialog = m;
577
+ handleToggleAddEventDialog: (p) => {
578
+ n.showBindEventDialog = p;
572
579
  },
573
580
  renderEventList: d,
574
- locale: p
581
+ locale: m
575
582
  };
576
583
  }
577
- }, 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" };
578
- function wn(f, o, a, e, r, _) {
579
- 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");
580
- return h(), A(W, null, [
581
- t("div", xn, [
582
- t("div", kn, [
583
- u(p, {
584
+ }, Cn = { class: "bind-action-list" }, Vn = { class: "popover-head" }, An = { class: "bind-event-list" }, Nn = ["onClick"], Dn = { class: "bind-actions" }, In = { class: "action-item bind-action-item" }, Pn = ["onClick"], Bn = { class: "event-bind" }, Mn = { class: "action-buttons" }, wn = { class: "empty-action" }, Ln = { class: "icon" };
585
+ function On(f, o, a, e, r, _) {
586
+ const h = k("icon-chevron-down"), c = k("tiny-button"), m = 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");
587
+ return b(), N(W, null, [
588
+ t("div", Cn, [
589
+ t("div", Vn, [
590
+ u(m, {
584
591
  popperClass: "option-popper setting-advanced-bind-event-list",
585
592
  placement: "bottom-start",
586
593
  trigger: "hover",
@@ -592,23 +599,23 @@ function wn(f, o, a, e, r, _) {
592
599
  u(c, { class: "bind-event-btn" }, {
593
600
  default: E(() => [
594
601
  o[2] || (o[2] = t("span", null, "绑定事件", -1)),
595
- u(b, { class: "icon-chevron-down bind-event-btn-icon" })
602
+ u(h, { class: "icon-chevron-down bind-event-btn-icon" })
596
603
  ]),
597
604
  _: 1,
598
605
  __: [2]
599
606
  })
600
607
  ]),
601
608
  default: E(() => [
602
- t("ul", Cn, [
603
- (h(!0), A(W, null, ae(e.renderEventList, (d, y) => {
609
+ t("ul", An, [
610
+ (b(!0), N(W, null, ae(e.renderEventList, (d, y) => {
604
611
  var V;
605
- return h(), A("li", {
612
+ return b(), N("li", {
606
613
  key: y,
607
614
  class: X(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[y] }]),
608
615
  onClick: (I) => e.openActionDialog({ eventName: y }, !0)
609
616
  }, [
610
617
  t("div", null, B(y) + "  |  " + B(((V = d == null ? void 0 : d.label) == null ? void 0 : V[e.locale]) || y), 1)
611
- ], 10, Vn);
618
+ ], 10, Nn);
612
619
  }), 128))
613
620
  ])
614
621
  ]),
@@ -629,13 +636,13 @@ function wn(f, o, a, e, r, _) {
629
636
  __: [3]
630
637
  })
631
638
  ]),
632
- be(t("ul", Nn, [
633
- (h(!0), A(W, null, ae(e.state.bindActions, (d) => {
639
+ he(t("ul", Dn, [
640
+ (b(!0), N(W, null, ae(e.state.bindActions, (d) => {
634
641
  var y, V;
635
- return h(), A("li", {
642
+ return b(), N("li", {
636
643
  key: d.eventName
637
644
  }, [
638
- t("div", An, [
645
+ t("div", In, [
639
646
  t("div", {
640
647
  class: "binding-name",
641
648
  onClick: (I) => e.openActionDialog(d)
@@ -647,10 +654,10 @@ function wn(f, o, a, e, r, _) {
647
654
  t("div", {
648
655
  class: X({ linked: d.linked })
649
656
  }, B(d.linkedEventName), 3),
650
- t("span", In, B(d.ref), 1)
651
- ], 8, Dn),
652
- t("div", Pn, [
653
- e.isBlock ? (h(), O(x, {
657
+ t("span", Bn, B(d.ref), 1)
658
+ ], 8, Pn),
659
+ t("div", Mn, [
660
+ e.isBlock ? (b(), O(x, {
654
661
  key: 0,
655
662
  data: d
656
663
  }, null, 8, ["data"])) : Q("", !0),
@@ -676,10 +683,10 @@ function wn(f, o, a, e, r, _) {
676
683
  ]);
677
684
  }), 128))
678
685
  ], 512), [
679
- [he, !e.isEmpty]
686
+ [be, !e.isEmpty]
680
687
  ]),
681
- be(t("div", Bn, [
682
- t("div", Mn, [
688
+ he(t("div", wn, [
689
+ t("div", Ln, [
683
690
  u(s, {
684
691
  name: "empty-action",
685
692
  class: "empty-action-icon"
@@ -687,7 +694,7 @@ function wn(f, o, a, e, r, _) {
687
694
  ]),
688
695
  o[4] || (o[4] = t("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1))
689
696
  ], 512), [
690
- [he, e.isEmpty]
697
+ [be, e.isEmpty]
691
698
  ])
692
699
  ]),
693
700
  u(l, {
@@ -701,13 +708,13 @@ function wn(f, o, a, e, r, _) {
701
708
  }, null, 8, ["visible", "componentEvents", "onAddEvent"])
702
709
  ], 64);
703
710
  }
704
- const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: F } = ln, { string2Obj: On } = dn, Sn = {
711
+ const Sn = /* @__PURE__ */ H(kn, [["render", On], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: F } = dn, { string2Obj: Tn } = rn, Un = {
705
712
  components: {
706
- SwitchConfigurator: an,
707
- TinyTooltip: je,
708
- VariableConfigurator: sn,
709
- InputConfigurator: tn,
710
- CodeConfigurator: on
713
+ SwitchConfigurator: ln,
714
+ TinyTooltip: ze,
715
+ VariableConfigurator: an,
716
+ InputConfigurator: sn,
717
+ CodeConfigurator: tn
711
718
  },
712
719
  inheritAttrs: !1,
713
720
  setup() {
@@ -757,7 +764,7 @@ const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4
757
764
  ye([() => r.isLoop, () => r.loopIndex], () => {
758
765
  !r.loopKey && r.isLoop && _(e()), r.isLoop || _("");
759
766
  });
760
- const b = () => {
767
+ const h = () => {
761
768
  var n;
762
769
  r.loopData = (n = $().getSchema()) == null ? void 0 : n.loop;
763
770
  }, c = (n) => {
@@ -772,7 +779,7 @@ const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4
772
779
  d({ type: "updateAttributes", id: i.id, value: { ...I }, overwrite: !0 });
773
780
  }
774
781
  j().canvasApi.value.updateRect(), o.value = n;
775
- }, p = (n) => {
782
+ }, m = (n) => {
776
783
  const l = $().getSchema();
777
784
  let i = l.loopArgs;
778
785
  const { operateNode: d } = j();
@@ -786,8 +793,8 @@ const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4
786
793
  setLoop: (n) => {
787
794
  const { operateNode: l } = j(), { getSchema: i } = $(), d = i();
788
795
  if (n) {
789
- const y = n != null && n.type ? n : On(n);
790
- l({ type: "updateAttributes", id: d.id, value: { loop: y } }), p(F.INDEX);
796
+ const y = n != null && n.type ? n : Tn(n);
797
+ l({ type: "updateAttributes", id: d.id, value: { loop: y } }), m(F.INDEX);
791
798
  } else {
792
799
  _();
793
800
  const { loop: y, loopArgs: V, children: I, ...te } = d;
@@ -802,25 +809,25 @@ const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4
802
809
  i ? i[0] = n || F.ITEM : i = [n, F.INDEX], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
803
810
  },
804
811
  DEFAULT_LOOP_NAME: F,
805
- openEditor: b,
806
- setLoopIndex: p,
812
+ openEditor: h,
813
+ setLoopIndex: m,
807
814
  setLoopKey: _,
808
815
  getIndexName: e
809
816
  };
810
817
  }
811
- }, 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" };
812
- function Yn(f, o, a, e, r, _) {
818
+ }, jn = { class: "advanced-config-container" }, zn = { class: "advnce-config" }, Rn = { class: "advanced-config-form-item" }, $n = ["title"], Fn = { class: "advnce-config loop-data-item" }, Jn = { class: "advanced-config-form-item" }, Xn = ["title"], Kn = { class: "advnce-config" }, Hn = { class: "advanced-config-form-item" }, Gn = { class: "advnce-config" }, qn = { class: "advanced-config-form-item" }, Yn = { class: "advnce-config" }, Zn = { class: "advanced-config-form-item" };
819
+ function Wn(f, o, a, e, r, _) {
813
820
  var n, l;
814
- const b = k("switch-configurator"), c = k("variable-configurator"), p = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
815
- return h(), A("div", Tn, [
816
- t("div", Un, [
821
+ const h = k("switch-configurator"), c = k("variable-configurator"), m = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
822
+ return b(), N("div", jn, [
823
+ t("div", zn, [
817
824
  o[6] || (o[6] = t("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
818
- t("div", jn, [
819
- e.isBind ? (h(), A("div", {
825
+ t("div", Rn, [
826
+ e.isBind ? (b(), N("div", {
820
827
  key: 1,
821
828
  class: "binding-state text-ellipsis-multiple",
822
829
  title: e.condition.value
823
- }, " 已绑定:" + B(e.condition.value), 9, zn)) : (h(), O(b, {
830
+ }, " 已绑定:" + B(e.condition.value), 9, $n)) : (b(), O(h, {
824
831
  key: 0,
825
832
  modelValue: e.condition,
826
833
  "onUpdate:modelValue": e.setConfig
@@ -835,14 +842,14 @@ function Yn(f, o, a, e, r, _) {
835
842
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
836
843
  ])
837
844
  ]),
838
- t("div", Rn, [
845
+ t("div", Fn, [
839
846
  o[7] || (o[7] = t("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
840
- t("div", $n, [
841
- e.state.isLoop ? (h(), A("div", {
847
+ t("div", Jn, [
848
+ e.state.isLoop ? (b(), N("div", {
842
849
  key: 1,
843
850
  class: "binding-state text-ellipsis-multiple",
844
851
  title: (n = e.state.loopData) == null ? void 0 : n.value
845
- }, " 已绑定:" + B((l = e.state.loopData) == null ? void 0 : l.value), 9, Fn)) : (h(), O(p, {
852
+ }, " 已绑定:" + B((l = e.state.loopData) == null ? void 0 : l.value), 9, Xn)) : (b(), O(m, {
846
853
  key: 0,
847
854
  modelValue: e.state.loopData,
848
855
  "onUpdate:modelValue": [
@@ -862,9 +869,9 @@ function Yn(f, o, a, e, r, _) {
862
869
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
863
870
  ])
864
871
  ]),
865
- t("div", Jn, [
872
+ t("div", Kn, [
866
873
  o[8] || (o[8] = t("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
867
- t("div", Xn, [
874
+ t("div", Hn, [
868
875
  u(s, {
869
876
  modelValue: e.state.loopItem,
870
877
  "onUpdate:modelValue": [
@@ -875,9 +882,9 @@ function Yn(f, o, a, e, r, _) {
875
882
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
876
883
  ])
877
884
  ]),
878
- t("div", Kn, [
885
+ t("div", Gn, [
879
886
  o[9] || (o[9] = t("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)),
880
- t("div", Hn, [
887
+ t("div", qn, [
881
888
  u(s, {
882
889
  modelValue: e.state.loopIndex,
883
890
  "onUpdate:modelValue": [
@@ -888,9 +895,9 @@ function Yn(f, o, a, e, r, _) {
888
895
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
889
896
  ])
890
897
  ]),
891
- t("div", Gn, [
898
+ t("div", Yn, [
892
899
  o[10] || (o[10] = t("label", { class: "text-ellipsis-multiple" }, "key", -1)),
893
- t("div", qn, [
900
+ t("div", Zn, [
894
901
  u(x, {
895
902
  content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
896
903
  effect: "light"
@@ -911,7 +918,7 @@ function Yn(f, o, a, e, r, _) {
911
918
  ])
912
919
  ]);
913
920
  }
914
- const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006"]]), Wn = {
921
+ const Qn = /* @__PURE__ */ H(Un, [["render", Wn], ["__scopeId", "data-v-40bd3762"]]), eo = {
915
922
  __name: "Main",
916
923
  props: {
917
924
  fixedPanels: Array
@@ -921,17 +928,17 @@ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
921
928
  const a = K(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = re(), _ = Y({
922
929
  emitEvent: o
923
930
  });
924
- return Ve("panelState", _), (b, c) => (h(), O(D(We), {
931
+ return Ve("panelState", _), (h, c) => (b(), O(D(Qe), {
925
932
  title: "高级",
926
933
  "fixed-panels": f.fixedPanels,
927
934
  "fixed-name": D(e).Event,
928
935
  "header-margin-bottom": 0,
929
- onClose: c[1] || (c[1] = (p) => b.$emit("close"))
936
+ onClose: c[1] || (c[1] = (m) => h.$emit("close"))
930
937
  }, {
931
938
  content: E(() => [
932
- u(D(ze), {
939
+ u(D(Re), {
933
940
  modelValue: a.value,
934
- "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p)
941
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => a.value = m)
935
942
  }, {
936
943
  default: E(() => [
937
944
  u(D(xe), {
@@ -939,7 +946,7 @@ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
939
946
  name: "bindEvent"
940
947
  }, {
941
948
  default: E(() => [
942
- u(Ln)
949
+ u(Sn)
943
950
  ]),
944
951
  _: 1
945
952
  }),
@@ -948,7 +955,7 @@ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
948
955
  name: "advancedConfig"
949
956
  }, {
950
957
  default: E(() => [
951
- u(Zn)
958
+ u(Qn)
952
959
  ]),
953
960
  _: 1
954
961
  })
@@ -959,42 +966,42 @@ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
959
966
  _: 1
960
967
  }, 8, ["fixed-panels", "fixed-name"]));
961
968
  }
962
- }, Pe = "newMethod", Qn = /[^0-9a-zA-Z_$]/, eo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, se = {
969
+ }, Pe = "newMethod", no = /[^0-9a-zA-Z_$]/, oo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, se = {
963
970
  exist: "方法名称已存在",
964
971
  ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
965
972
  empty: "方法名称不能为空"
966
- }, no = {
973
+ }, to = {
967
974
  components: {
968
- MonacoEditor: Qe,
975
+ MonacoEditor: en,
969
976
  TinyInput: le,
970
- TinyCheckbox: Re
977
+ TinyCheckbox: $e
971
978
  },
972
979
  props: {
973
980
  dialogVisible: Boolean
974
981
  },
975
982
  setup() {
976
- const { getMethodNameList: f } = ne(oe.Page), o = Ae("context"), a = {
983
+ const { getMethodNameList: f } = ne(oe.Page), o = Ne("context"), a = {
977
984
  language: "json",
978
985
  lineNumbers: !1,
979
986
  minimap: {
980
987
  enabled: !1
981
988
  }
982
- }, e = (p) => {
983
- o.editorContent = p;
984
- }, r = (p) => !p, _ = (p) => f == null ? void 0 : f().includes(p), b = (p) => !eo.test(p);
989
+ }, e = (m) => {
990
+ o.editorContent = m;
991
+ }, r = (m) => !m, _ = (m) => f == null ? void 0 : f().includes(m), h = (m) => !oo.test(m);
985
992
  return {
986
993
  NEW_METHOD_TYPE: Pe,
987
994
  context: o,
988
995
  editorOptions: a,
989
- change: (p) => {
996
+ change: (m) => {
990
997
  const s = [
991
998
  { validator: r, tip: se.empty },
992
999
  { validator: _, tip: se.exist },
993
- { validator: b, tip: se.ruleInvalid }
1000
+ { validator: h, tip: se.ruleInvalid }
994
1001
  ];
995
1002
  for (let x = 0; x < s.length; x++) {
996
1003
  const n = s[x];
997
- if (n.validator(p)) {
1004
+ if (n.validator(m)) {
998
1005
  o.tipError = !0, o.tip = n.tip;
999
1006
  return;
1000
1007
  }
@@ -1004,21 +1011,21 @@ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
1004
1011
  editorContentChange: e
1005
1012
  };
1006
1013
  }
1007
- }, oo = { class: "content-right" }, to = { class: "new-action-tip" }, io = { class: "content-right-title" }, so = { class: "set-params-tip" }, ao = { class: "content-right-monaco" }, lo = {
1014
+ }, io = { class: "content-right" }, so = { class: "new-action-tip" }, ao = { class: "content-right-title" }, lo = { class: "set-params-tip" }, ro = { class: "content-right-monaco" }, co = {
1008
1015
  key: 1,
1009
1016
  class: "mark"
1010
- }, ro = {
1017
+ }, mo = {
1011
1018
  key: 0,
1012
1019
  class: "params-tip"
1013
1020
  };
1014
- function co(f, o, a, e, r, _) {
1015
- const b = k("tiny-input"), c = k("tiny-checkbox"), p = k("monaco-editor");
1016
- return h(), A("div", oo, [
1021
+ function po(f, o, a, e, r, _) {
1022
+ const h = k("tiny-input"), c = k("tiny-checkbox"), m = k("monaco-editor");
1023
+ return b(), N("div", io, [
1017
1024
  t("div", {
1018
1025
  class: X(["content-right-top", { "tip-error": e.context.tipError }])
1019
1026
  }, [
1020
1027
  o[2] || (o[2] = t("div", { class: "content-right-title" }, "方法名称", -1)),
1021
- u(b, {
1028
+ u(h, {
1022
1029
  modelValue: e.context.bindMethodInfo.name,
1023
1030
  "onUpdate:modelValue": [
1024
1031
  o[0] || (o[0] = (s) => e.context.bindMethodInfo.name = s),
@@ -1028,12 +1035,12 @@ function co(f, o, a, e, r, _) {
1028
1035
  class: X([{ "status-error": e.context.tipError }]),
1029
1036
  placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
1030
1037
  }, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
1031
- t("div", to, B(e.context.tip), 1)
1038
+ t("div", so, B(e.context.tip), 1)
1032
1039
  ], 2),
1033
1040
  t("div", {
1034
1041
  class: X(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1035
1042
  }, [
1036
- t("div", io, [
1043
+ t("div", ao, [
1037
1044
  u(c, {
1038
1045
  modelValue: e.context.enableExtraParams,
1039
1046
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e.context.enableExtraParams = s),
@@ -1045,28 +1052,28 @@ function co(f, o, a, e, r, _) {
1045
1052
  _: 1,
1046
1053
  __: [3]
1047
1054
  }, 8, ["modelValue"]),
1048
- t("div", so, [
1055
+ t("div", lo, [
1049
1056
  o[4] || (o[4] = t("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
1050
1057
  J(" 如: " + B(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1051
1058
  ])
1052
1059
  ]),
1053
- t("div", ao, [
1054
- a.dialogVisible ? (h(), O(p, {
1060
+ t("div", ro, [
1061
+ a.dialogVisible ? (b(), O(m, {
1055
1062
  key: 0,
1056
1063
  value: e.context.editorContent,
1057
1064
  options: e.editorOptions,
1058
1065
  onChange: e.editorContentChange,
1059
1066
  class: "monaco-editor"
1060
1067
  }, null, 8, ["value", "options", "onChange"])) : Q("", !0),
1061
- e.context.enableExtraParams ? Q("", !0) : (h(), A("div", lo))
1068
+ e.context.enableExtraParams ? Q("", !0) : (b(), N("div", co))
1062
1069
  ]),
1063
- !e.context.isValidParams && e.context.enableExtraParams ? (h(), A("div", ro, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : Q("", !0)
1070
+ !e.context.isValidParams && e.context.enableExtraParams ? (b(), N("div", mo, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : Q("", !0)
1064
1071
  ], 2)
1065
1072
  ]);
1066
1073
  }
1067
- const mo = /* @__PURE__ */ H(no, [["render", co], ["__scopeId", "data-v-f2c9b5af"]]), po = {
1074
+ const uo = /* @__PURE__ */ H(to, [["render", po], ["__scopeId", "data-v-f2c9b5af"]]), fo = {
1068
1075
  components: {
1069
- TinySearch: $e
1076
+ TinySearch: Fe
1070
1077
  },
1071
1078
  props: {
1072
1079
  eventBinding: {
@@ -1075,69 +1082,69 @@ const mo = /* @__PURE__ */ H(no, [["render", co], ["__scopeId", "data-v-f2c9b5af
1075
1082
  }
1076
1083
  },
1077
1084
  setup(f) {
1078
- const { getMethodNameList: o } = ne(oe.Page), a = K(""), e = K([]), r = Ae("context"), _ = (c, p) => {
1085
+ const { getMethodNameList: o } = ne(oe.Page), a = K(""), e = K([]), r = Ne("context"), _ = (c, m) => {
1079
1086
  const s = c.map((l) => {
1080
1087
  var i;
1081
1088
  return Number.parseInt((i = l.match(/\d+$/)) == null ? void 0 : i[0]) || 0;
1082
1089
  }).sort((l, i) => l - i).pop();
1083
- let n = `${(p == null ? void 0 : p.replace(Qn, "_")) || ""}New`;
1090
+ let n = `${(m == null ? void 0 : m.replace(no, "_")) || ""}New`;
1084
1091
  return s > -1 && (n += `${s + 1}`), n;
1085
- }, b = (c) => {
1092
+ }, h = (c) => {
1086
1093
  r.bindMethodInfo = c;
1087
1094
  };
1088
- return Ne(() => {
1095
+ return Ae(() => {
1089
1096
  var l, i;
1090
- const c = (l = f.eventBinding) == null ? void 0 : l.eventName, p = (o == null ? void 0 : o().filter((d) => d.includes(c))) || [], x = {
1097
+ const c = (l = f.eventBinding) == null ? void 0 : l.eventName, m = (o == null ? void 0 : o().filter((d) => d.includes(c))) || [], x = {
1091
1098
  title: "添加新方法",
1092
- name: _(p, c),
1099
+ name: _(m, c),
1093
1100
  type: Pe
1094
1101
  };
1095
- (i = f.eventBinding) != null && i.ref ? b({ name: f.eventBinding.ref }) : b(x);
1102
+ (i = f.eventBinding) != null && i.ref ? h({ name: f.eventBinding.ref }) : h(x);
1096
1103
  const n = (o == null ? void 0 : o().filter((d) => d.includes(a.value)).map((d) => ({ name: d }))) || [];
1097
1104
  e.value = [x, ...n];
1098
1105
  }), {
1099
1106
  context: r,
1100
1107
  searchValue: a,
1101
1108
  filteredMethodList: e,
1102
- selectMethod: b
1109
+ selectMethod: h
1103
1110
  };
1104
1111
  }
1105
- }, uo = { class: "dialog-content-left" }, fo = { class: "left-list-wrap" }, vo = { class: "left-action-list" }, go = { class: "action-list-wrap" }, _o = ["onClick"];
1106
- function bo(f, o, a, e, r, _) {
1107
- const b = k("tiny-search");
1108
- return h(), A("div", uo, [
1112
+ }, vo = { class: "dialog-content-left" }, go = { class: "left-list-wrap" }, _o = { class: "left-action-list" }, ho = { class: "action-list-wrap" }, bo = ["onClick"];
1113
+ function yo(f, o, a, e, r, _) {
1114
+ const h = k("tiny-search");
1115
+ return b(), N("div", vo, [
1109
1116
  o[1] || (o[1] = t("div", { class: "left-title" }, "响应方法", -1)),
1110
- t("div", fo, [
1111
- t("div", vo, [
1112
- u(b, {
1117
+ t("div", go, [
1118
+ t("div", _o, [
1119
+ u(h, {
1113
1120
  modelValue: e.searchValue,
1114
1121
  "onUpdate:modelValue": o[0] || (o[0] = (c) => e.searchValue = c),
1115
1122
  placeholder: "搜索"
1116
1123
  }, null, 8, ["modelValue"]),
1117
- t("ul", go, [
1118
- (h(!0), A(W, null, ae(e.filteredMethodList, (c) => (h(), A("li", {
1124
+ t("ul", ho, [
1125
+ (b(!0), N(W, null, ae(e.filteredMethodList, (c) => (b(), N("li", {
1119
1126
  key: c.name,
1120
- onClick: (p) => e.selectMethod(c)
1127
+ onClick: (m) => e.selectMethod(c)
1121
1128
  }, [
1122
1129
  t("div", {
1123
1130
  class: X(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
1124
1131
  }, B(c.title || c.name), 3)
1125
- ], 8, _o))), 128))
1132
+ ], 8, bo))), 128))
1126
1133
  ])
1127
1134
  ])
1128
1135
  ])
1129
1136
  ]);
1130
1137
  }
1131
- const ho = /* @__PURE__ */ H(po, [["render", bo], ["__scopeId", "data-v-0859add1"]]), Bo = {
1138
+ const Eo = /* @__PURE__ */ H(fo, [["render", yo], ["__scopeId", "data-v-0859add1"]]), wo = {
1132
1139
  ...de,
1133
- entry: Wn,
1134
- options: { commonEvents: vn },
1140
+ entry: eo,
1141
+ options: { commonEvents: _n },
1135
1142
  components: {
1136
- BindEventsDialogSidebar: ho,
1137
- BindEventsDialogContent: mo
1143
+ BindEventsDialogSidebar: Eo,
1144
+ BindEventsDialogContent: uo
1138
1145
  }
1139
1146
  };
1140
1147
  export {
1141
- Bo as default
1148
+ wo as default
1142
1149
  };
1143
1150
  //# sourceMappingURL=index.js.map