@opentiny/tiny-engine-setting-events 1.0.2 → 1.0.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +533 -504
  2. package/dist/style.css +1 -1
  3. package/package.json +14 -11
package/dist/index.js CHANGED
@@ -1,39 +1,39 @@
1
1
  import "./style.css";
2
- import { ref as $, reactive as de, watchEffect as Ne, resolveComponent as f, withDirectives as ie, openBlock as y, createBlock as j, withCtx as _, createElementVNode as o, createVNode as l, createTextVNode as P, createElementBlock as M, Fragment as ee, renderList as se, normalizeClass as X, toDisplayString as O, createCommentVNode as Y, vShow as ae, nextTick as Ue, pushScopeId as ce, popScopeId as re, computed as te, watch as le, withModifiers as Ee, unref as ne } from "vue";
3
- import { Input as Ce, Button as De, Search as Te, Popover as we, DialogBox as ze, Switch as Fe, Form as je, FormItem as Je, Tooltip as Re, Collapse as He, CollapseItem as ke } from "@opentiny/vue";
4
- import { useLayout as Ae, useCanvas as me, useHistory as Xe, useNotify as Pe, useBlock as qe, useResource as Ke, useModal as Ye, useProperties as C } from "@opentiny/tiny-engine-controller";
5
- import { VueMonaco as $e, BlockLinkEvent as Qe, SvgButton as Ze, MetaSwitch as Ge, MetaBindVariable as We, MetaInput as et, MetaCodeEditor as tt } from "@opentiny/tiny-engine-common";
6
- import { iconYes as ot, iconHelpQuery as Me, iconChevronDown as nt } from "@opentiny/vue-icon";
7
- import { theme as it, string2Obj as st } from "@opentiny/tiny-engine-controller/adapter";
8
- import { string2Ast as Ve, ast2String as at } from "@opentiny/tiny-engine-common/js/ast";
9
- import { PROP_DATA_TYPE as K } from "@opentiny/tiny-engine-controller/utils";
10
- import { updateRect as lt } from "@opentiny/tiny-engine-canvas";
11
- import { constants as dt } from "@opentiny/tiny-engine-utils";
12
- const pe = (d, i) => {
13
- const k = d.__vccOpts || d;
14
- for (const [e, m] of i)
15
- k[e] = m;
16
- return k;
17
- }, _e = $(!1), ct = () => {
18
- _e.value = !0;
2
+ import { ref as K, reactive as te, watchEffect as Ce, resolveComponent as f, withDirectives as de, openBlock as h, createBlock as U, withCtx as _, createElementVNode as o, createVNode as p, createTextVNode as M, createElementBlock as S, Fragment as G, renderList as ce, normalizeClass as J, toDisplayString as L, createCommentVNode as H, vShow as re, nextTick as Be, pushScopeId as me, popScopeId as _e, unref as O, computed as W, withModifiers as Oe, watch as Ee } from "vue";
3
+ import { Input as pe, Button as ee, Search as Le, Popover as De, DialogBox as Ae, Switch as Te, Form as Ue, FormItem as ke, Tooltip as ze, Collapse as je, CollapseItem as xe } from "@opentiny/vue";
4
+ import { useLayout as Pe, useCanvas as ue, useHistory as $e, useBlock as Fe, useResource as Je, useModal as Re, useProperties as I } from "@opentiny/tiny-engine-controller";
5
+ import { VueMonaco as Xe, BlockLinkEvent as qe, SvgButton as He, MetaSwitch as Ke, MetaBindVariable as Ye, MetaInput as Qe, MetaCodeEditor as Ze } from "@opentiny/tiny-engine-common";
6
+ import { iconYes as Ge, iconHelpQuery as we, iconChevronDown as We } from "@opentiny/vue-icon";
7
+ import { theme as et, string2Obj as tt } from "@opentiny/tiny-engine-controller/adapter";
8
+ import { string2Ast as Ve, ast2String as ot } from "@opentiny/tiny-engine-controller/js/ast";
9
+ import { PROP_DATA_TYPE as q } from "@opentiny/tiny-engine-controller/utils";
10
+ import { updateRect as nt } from "@opentiny/tiny-engine-canvas";
11
+ import { constants as it } from "@opentiny/tiny-engine-utils";
12
+ const oe = (l, i) => {
13
+ const b = l.__vccOpts || l;
14
+ for (const [e, d] of i)
15
+ b[e] = d;
16
+ return b;
17
+ }, fe = K(!1), st = () => {
18
+ fe.value = !0;
19
19
  }, Ie = () => {
20
- _e.value = !1;
21
- }, xe = "newMethod", rt = /[^0-9a-zA-Z_$]/, mt = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, H = {
20
+ fe.value = !1;
21
+ }, Ne = "newMethod", at = /[^0-9a-zA-Z_$]/, lt = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, F = {
22
22
  default: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)",
23
23
  exist: "方法名称已存在",
24
24
  ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
25
25
  empty: "方法名称不能为空"
26
- }, pt = {
26
+ }, dt = {
27
27
  components: {
28
- MonacoEditor: $e,
29
- TinyInput: Ce,
30
- TinyButton: De,
31
- TinySearch: Te,
32
- TinyPopover: we,
33
- TinyDialogBox: ze,
34
- IconYes: ot(),
35
- IconHelpQuery: Me(),
36
- TinySwitch: Fe
28
+ MonacoEditor: Xe,
29
+ TinyInput: pe,
30
+ TinyButton: ee,
31
+ TinySearch: Le,
32
+ TinyPopover: De,
33
+ TinyDialogBox: Ae,
34
+ IconYes: Ge(),
35
+ IconHelpQuery: we(),
36
+ TinySwitch: Te
37
37
  },
38
38
  inheritAttrs: !1,
39
39
  props: {
@@ -42,13 +42,13 @@ const pe = (d, i) => {
42
42
  default: () => ({})
43
43
  }
44
44
  },
45
- setup(d) {
46
- const { PLUGIN_NAME: i, getPluginApi: k, activePlugin: e } = Ae(), { pageState: m } = me(), { getMethodNameList: g, getMethods: S, saveMethod: V, highlightMethod: I } = k(i.PageController), N = $(null), a = de({
45
+ setup(l) {
46
+ const { PLUGIN_NAME: i, getPluginApi: b, activePlugin: e } = Pe(), { pageState: d } = ue(), { getMethodNameList: u, getMethods: w, saveMethod: y, highlightMethod: E } = b(i.PageController), x = K(null), n = te({
47
47
  searchValue: "",
48
48
  editorContent: "",
49
49
  bindMethodInfo: {},
50
50
  filterMethodList: [],
51
- tip: H.default,
51
+ tip: F.default,
52
52
  tipError: !1,
53
53
  enableExtraParams: !1,
54
54
  isValidParams: !0
@@ -59,138 +59,138 @@ const pe = (d, i) => {
59
59
  language: "json",
60
60
  formatOnPaste: !0,
61
61
  tabSize: 2,
62
- theme: it(),
62
+ theme: et(),
63
63
  lineNumbers: !1,
64
64
  minimap: {
65
65
  enabled: !1
66
66
  }
67
- }, n = (s, c) => {
68
- const r = s.map((D) => {
69
- var v;
70
- return Number.parseInt((v = D.match(/\d+$/)) == null ? void 0 : v[0]) || 0;
71
- }).sort((D, v) => D - v).pop();
72
- let E = `${(c == null ? void 0 : c.replace(rt, "_")) || ""}New`;
73
- return r > -1 && (E += `${r + 1}`), E;
67
+ }, a = (s, r) => {
68
+ const m = s.map((V) => {
69
+ var g;
70
+ return Number.parseInt((g = V.match(/\d+$/)) == null ? void 0 : g[0]) || 0;
71
+ }).sort((V, g) => V - g).pop();
72
+ let P = `${(r == null ? void 0 : r.replace(at, "_")) || ""}New`;
73
+ return m > -1 && (P += `${m + 1}`), P;
74
74
  };
75
- Ne(() => {
76
- var D, v;
77
- const s = (D = d.eventBinding) == null ? void 0 : D.eventName, c = (g == null ? void 0 : g().filter((L) => L.indexOf(s) > -1)) || [], b = {
75
+ Ce(() => {
76
+ var V, g;
77
+ const s = (V = l.eventBinding) == null ? void 0 : V.eventName, r = (u == null ? void 0 : u().filter((T) => T.indexOf(s) > -1)) || [], k = {
78
78
  title: "添加新方法",
79
- name: n(c, s),
80
- type: xe
79
+ name: a(r, s),
80
+ type: Ne
81
81
  };
82
- (v = d.eventBinding) != null && v.ref ? a.bindMethodInfo = {
83
- name: d.eventBinding.ref
84
- } : a.bindMethodInfo = b;
85
- const E = (g == null ? void 0 : g().filter((L) => L.indexOf(a.searchValue) > -1).map((L) => ({ name: L }))) || [];
86
- a.filterMethodList = [b, ...E];
82
+ (g = l.eventBinding) != null && g.ref ? n.bindMethodInfo = {
83
+ name: l.eventBinding.ref
84
+ } : n.bindMethodInfo = k;
85
+ const P = (u == null ? void 0 : u().filter((T) => T.indexOf(n.searchValue) > -1).map((T) => ({ name: T }))) || [];
86
+ n.filterMethodList = [k, ...P];
87
87
  });
88
- const w = (s) => {
89
- a.bindMethodInfo = s;
90
- }, x = (s) => {
91
- var D, v;
88
+ const C = (s) => {
89
+ n.bindMethodInfo = s;
90
+ }, N = (s) => {
91
+ var V, g;
92
92
  if (!s)
93
93
  return;
94
- const c = (D = d.eventBinding) == null ? void 0 : D.eventName;
95
- if (!c)
96
- return;
97
- const r = (v = m == null ? void 0 : m.currentSchema) == null ? void 0 : v.props;
94
+ const r = (V = l.eventBinding) == null ? void 0 : V.eventName;
98
95
  if (!r)
99
96
  return;
100
- const { name: b, extra: E } = s;
101
- d[c] || (r[c] = {
97
+ const m = (g = d == null ? void 0 : d.currentSchema) == null ? void 0 : g.props;
98
+ if (!m)
99
+ return;
100
+ const { name: k, extra: P } = s;
101
+ l[r] || (m[r] = {
102
102
  type: "JSExpression",
103
103
  value: ""
104
- }), E && a.enableExtraParams && (r[c].params = E), r[c].value = `this.${b}`, Xe().addHistory();
105
- }, u = () => {
106
- a.tipError = !1, a.tip = H.default;
107
- }, J = (s) => !s, p = (s) => g == null ? void 0 : g().includes(s), A = (s) => !mt.test(s), R = (s) => {
108
- const c = [
109
- { validator: J, tip: H.empty },
110
- { validator: p, tip: H.exist },
111
- { validator: A, tip: H.ruleInvalid }
104
+ }), P && n.enableExtraParams && (m[r].params = P), m[r].value = `this.${k}`, $e().addHistory();
105
+ }, c = () => {
106
+ n.tipError = !1, n.tip = F.default;
107
+ }, D = (s) => !s, X = (s) => u == null ? void 0 : u().includes(s), ne = (s) => !lt.test(s), v = (s) => {
108
+ const r = [
109
+ { validator: D, tip: F.empty },
110
+ { validator: X, tip: F.exist },
111
+ { validator: ne, tip: F.ruleInvalid }
112
112
  ];
113
- for (let r = 0; r < c.length; r++) {
114
- const b = c[r];
115
- if (b.validator(s)) {
116
- a.tipError = !0, a.tip = b.tip;
113
+ for (let m = 0; m < r.length; m++) {
114
+ const k = r[m];
115
+ if (k.validator(s)) {
116
+ n.tipError = !0, n.tip = k.tip;
117
117
  return;
118
118
  }
119
119
  }
120
- a.tipError = !1, a.tip = H.default;
121
- }, G = () => {
122
- var c;
120
+ n.tipError = !1, n.tip = F.default;
121
+ }, A = () => {
122
+ var r;
123
123
  let s = "";
124
- if (a.enableExtraParams)
124
+ if (n.enableExtraParams)
125
125
  try {
126
- const r = (c = N.value) == null ? void 0 : c.getEditor().getValue();
127
- s = JSON.parse(r), a.isValidParams = Array.isArray(s);
126
+ const m = (r = x.value) == null ? void 0 : r.getEditor().getValue();
127
+ s = JSON.parse(m), n.isValidParams = Array.isArray(s);
128
128
  } catch {
129
- a.isValidParams = !1;
129
+ n.isValidParams = !1;
130
130
  }
131
131
  return s;
132
- }, W = (s) => Array.from({ length: s.length }, (c, r) => `args${r}`).join(","), h = () => {
133
- var r, b, E, D;
134
- let s = (b = (r = S()) == null ? void 0 : r[a.bindMethodInfo.name]) == null ? void 0 : b.value, c = "{}";
132
+ }, B = (s) => Array.from({ length: s.length }, (r, m) => `args${m}`).join(","), ie = () => {
133
+ var m, k, P, V;
134
+ let s = (k = (m = w()) == null ? void 0 : m[n.bindMethodInfo.name]) == null ? void 0 : k.value, r = "{}";
135
135
  if (s) {
136
- let v = {};
136
+ let g = {};
137
137
  try {
138
- v = Ve(s);
138
+ g = Ve(s);
139
139
  } catch {
140
- s = s.replace("function", `function ${a.bindMethodInfo.name}`), v = Ve(s);
140
+ s = s.replace("function", `function ${n.bindMethodInfo.name}`), g = Ve(s);
141
141
  }
142
- (D = (E = v == null ? void 0 : v.program) == null ? void 0 : E.body[0]) != null && D.body && (c = at(v.program.body[0].body));
142
+ (V = (P = g == null ? void 0 : g.program) == null ? void 0 : P.body[0]) != null && V.body && (r = ot(g.program.body[0].body));
143
143
  }
144
- return c || `{
144
+ return r || `{
145
145
  }`;
146
- }, B = () => {
146
+ }, Z = () => {
147
147
  e(i.PageController).then(() => {
148
- Ue(() => {
148
+ Be(() => {
149
149
  var s;
150
- I && I((s = a.bindMethodInfo) == null ? void 0 : s.name);
150
+ E && E((s = n.bindMethodInfo) == null ? void 0 : s.name);
151
151
  });
152
152
  });
153
153
  };
154
154
  return {
155
- NEW_METHOD_TYPE: xe,
156
- state: a,
157
- editor: N,
155
+ NEW_METHOD_TYPE: Ne,
156
+ state: n,
157
+ editor: x,
158
158
  editorOptions: t,
159
- dialogVisible: _e,
160
- change: R,
159
+ dialogVisible: fe,
160
+ change: v,
161
161
  confirm: () => {
162
- if (a.tipError)
162
+ if (n.tipError)
163
163
  return;
164
- let s = "event", c = G(), r = s;
165
- if (!a.isValidParams)
164
+ let s = "event", r = A(), m = s;
165
+ if (!n.isValidParams)
166
166
  return;
167
- c && (s = c.join(","), r = W(c)), x({ ...a.bindMethodInfo, params: s, extra: c });
168
- const b = h();
169
- V == null || V({
170
- name: a.bindMethodInfo.name,
171
- content: a.enableExtraParams ? `function (eventArgs,${r}) ${b}` : `function (${r}) ${b}`
172
- }), B(), Ie();
167
+ r && (s = r.join(","), m = B(r)), N({ ...n.bindMethodInfo, params: s, extra: r });
168
+ const k = ie();
169
+ y == null || y({
170
+ name: n.bindMethodInfo.name,
171
+ content: n.enableExtraParams ? `function (eventArgs,${m}) ${k}` : `function (${m}) ${k}`
172
+ }), Z(), Ie();
173
173
  },
174
174
  closeDialog: () => {
175
- u(), Ie();
175
+ c(), Ie();
176
176
  },
177
177
  openedDialog: () => {
178
- var s, c, r;
179
- a.enableExtraParams = !!((c = (s = d.eventBinding) == null ? void 0 : s.params) != null && c.length), a.editorContent = JSON.stringify(((r = d.eventBinding) == null ? void 0 : r.params) || [], null, 2), u();
178
+ var s, r, m;
179
+ n.enableExtraParams = !!((r = (s = l.eventBinding) == null ? void 0 : s.params) != null && r.length), n.editorContent = JSON.stringify(((m = l.eventBinding) == null ? void 0 : m.params) || [], null, 2), c();
180
180
  },
181
- selectMethod: w
181
+ selectMethod: C
182
182
  };
183
183
  }
184
- }, q = (d) => (ce("data-v-6a54279c"), d = d(), re(), d), _t = { class: "bind-event-dialog-content" }, ft = { class: "dialog-content-left" }, ut = /* @__PURE__ */ q(() => /* @__PURE__ */ o("div", { class: "left-title" }, "响应方法", -1)), ht = { class: "left-list-wrap" }, vt = { class: "left-action-list" }, gt = { class: "action-list-wrap" }, yt = ["onClick"], bt = { class: "content-right" }, Et = /* @__PURE__ */ q(() => /* @__PURE__ */ o("div", { class: "content-right-title" }, "方法名称", -1)), kt = { class: "new-action-tip" }, Vt = { class: "content-right-title" }, It = /* @__PURE__ */ q(() => /* @__PURE__ */ o("span", { class: "set-params-tip" }, "扩展参数设置", -1)), xt = /* @__PURE__ */ q(() => /* @__PURE__ */ o("br", null, null, -1)), Nt = /* @__PURE__ */ q(() => /* @__PURE__ */ o("span", null, "开启", -1)), Ct = /* @__PURE__ */ q(() => /* @__PURE__ */ o("span", null, "关闭", -1)), Dt = { class: "content-right-monaco" }, wt = {
184
+ }, R = (l) => (me("data-v-937af0d2"), l = l(), _e(), l), ct = { class: "bind-event-dialog-content" }, rt = { class: "dialog-content-left" }, pt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("div", { class: "left-title" }, "响应方法", -1)), mt = { class: "left-list-wrap" }, _t = { class: "left-action-list" }, ut = { class: "action-list-wrap" }, ft = ["onClick"], vt = { class: "content-right" }, ht = /* @__PURE__ */ R(() => /* @__PURE__ */ o("div", { class: "content-right-title" }, "方法名称", -1)), gt = { class: "new-action-tip" }, bt = { class: "content-right-title" }, yt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", { class: "set-params-tip" }, "扩展参数设置", -1)), Et = /* @__PURE__ */ R(() => /* @__PURE__ */ o("br", null, null, -1)), kt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", null, "开启", -1)), xt = /* @__PURE__ */ R(() => /* @__PURE__ */ o("span", null, "关闭", -1)), Vt = { class: "content-right-monaco" }, It = {
185
185
  key: 1,
186
186
  class: "mark"
187
- }, At = {
187
+ }, Nt = {
188
188
  key: 0,
189
189
  class: "params-tip"
190
- }, Pt = { class: "bind-dialog-footer" };
191
- function Mt(d, i, k, e, m, g) {
192
- const S = f("tiny-search"), V = f("icon-yes"), I = f("tiny-input"), N = f("icon-help-query"), a = f("tiny-popover"), t = f("tiny-switch"), n = f("monaco-editor"), w = f("tiny-button"), x = f("tiny-dialog-box");
193
- return ie((y(), j(x, {
190
+ }, Ct = { class: "bind-dialog-footer" };
191
+ function Dt(l, i, b, e, d, u) {
192
+ const w = f("tiny-search"), y = f("icon-yes"), E = f("tiny-input"), x = f("icon-help-query"), n = f("tiny-popover"), t = f("tiny-switch"), a = f("monaco-editor"), C = f("tiny-button"), N = f("tiny-dialog-box");
193
+ return de((h(), U(N, {
194
194
  title: "事件绑定",
195
195
  width: "50%",
196
196
  "append-to-body": !0,
@@ -198,129 +198,129 @@ function Mt(d, i, k, e, m, g) {
198
198
  onOpened: e.openedDialog
199
199
  }, {
200
200
  footer: _(() => [
201
- o("div", Pt, [
202
- l(w, {
201
+ o("div", Ct, [
202
+ p(C, {
203
203
  type: "info",
204
204
  onClick: e.confirm
205
205
  }, {
206
206
  default: _(() => [
207
- P("确 定")
207
+ M("确 定")
208
208
  ]),
209
209
  _: 1
210
210
  }, 8, ["onClick"]),
211
- l(w, { onClick: e.closeDialog }, {
211
+ p(C, { onClick: e.closeDialog }, {
212
212
  default: _(() => [
213
- P("取 消")
213
+ M("取 消")
214
214
  ]),
215
215
  _: 1
216
216
  }, 8, ["onClick"])
217
217
  ])
218
218
  ]),
219
219
  default: _(() => [
220
- o("div", _t, [
221
- o("div", ft, [
222
- ut,
223
- o("div", ht, [
224
- o("div", vt, [
225
- l(S, {
220
+ o("div", ct, [
221
+ o("div", rt, [
222
+ pt,
223
+ o("div", mt, [
224
+ o("div", _t, [
225
+ p(w, {
226
226
  modelValue: e.state.searchValue,
227
- "onUpdate:modelValue": i[0] || (i[0] = (u) => e.state.searchValue = u),
227
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => e.state.searchValue = c),
228
228
  placeholder: "搜索"
229
229
  }, null, 8, ["modelValue"]),
230
- o("ul", gt, [
231
- (y(!0), M(ee, null, se(e.state.filterMethodList, (u) => (y(), M("li", {
232
- key: u.name,
233
- onClick: (J) => e.selectMethod(u)
230
+ o("ul", ut, [
231
+ (h(!0), S(G, null, ce(e.state.filterMethodList, (c) => (h(), S("li", {
232
+ key: c.name,
233
+ onClick: (D) => e.selectMethod(c)
234
234
  }, [
235
235
  o("div", {
236
- class: X(["action-name", { active: u.name === e.state.bindMethodInfo.name }])
236
+ class: J(["action-name", { active: c.name === e.state.bindMethodInfo.name }])
237
237
  }, [
238
- P(O(u.title || u.name) + " ", 1),
239
- u.name === e.state.bindMethodInfo.name ? (y(), j(V, {
238
+ M(L(c.title || c.name) + " ", 1),
239
+ c.name === e.state.bindMethodInfo.name ? (h(), U(y, {
240
240
  key: 0,
241
241
  class: "action-selected-icon"
242
- })) : Y("", !0)
242
+ })) : H("", !0)
243
243
  ], 2)
244
- ], 8, yt))), 128))
244
+ ], 8, ft))), 128))
245
245
  ])
246
246
  ])
247
247
  ])
248
248
  ]),
249
- o("div", bt, [
249
+ o("div", vt, [
250
250
  o("div", {
251
- class: X(["content-right-top", { "tip-error": e.state.tipError }])
251
+ class: J(["content-right-top", { "tip-error": e.state.tipError }])
252
252
  }, [
253
- Et,
254
- l(I, {
253
+ ht,
254
+ p(E, {
255
255
  modelValue: e.state.bindMethodInfo.name,
256
256
  "onUpdate:modelValue": [
257
- i[1] || (i[1] = (u) => e.state.bindMethodInfo.name = u),
257
+ i[1] || (i[1] = (c) => e.state.bindMethodInfo.name = c),
258
258
  e.change
259
259
  ],
260
260
  disabled: e.state.bindMethodInfo.type !== e.NEW_METHOD_TYPE,
261
- class: X([{ "status-error": e.state.tipError }]),
261
+ class: J([{ "status-error": e.state.tipError }]),
262
262
  placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
263
263
  }, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
264
- o("div", kt, O(e.state.tip), 1)
264
+ o("div", gt, L(e.state.tip), 1)
265
265
  ], 2),
266
266
  o("div", {
267
- class: X(["content-right-bottom", { "tip-error": !e.state.isValidParams }])
267
+ class: J(["content-right-bottom", { "tip-error": !e.state.isValidParams }])
268
268
  }, [
269
- o("div", Vt, [
270
- It,
271
- l(a, {
269
+ o("div", bt, [
270
+ yt,
271
+ p(n, {
272
272
  placement: "top-start",
273
273
  width: "350",
274
274
  trigger: "hover"
275
275
  }, {
276
276
  reference: _(() => [
277
- l(N)
277
+ p(x)
278
278
  ]),
279
279
  default: _(() => [
280
280
  o("p", null, [
281
- P(" 扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后"),
282
- xt,
283
- P(" 如: " + O(e.state.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
281
+ M(" 扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后"),
282
+ Et,
283
+ M(" 如: " + L(e.state.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
284
284
  ])
285
285
  ]),
286
286
  _: 1
287
287
  }),
288
- l(t, {
288
+ p(t, {
289
289
  modelValue: e.state.enableExtraParams,
290
- "onUpdate:modelValue": i[2] || (i[2] = (u) => e.state.enableExtraParams = u),
290
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => e.state.enableExtraParams = c),
291
291
  class: "set-switch",
292
292
  "show-text": !0
293
293
  }, {
294
294
  open: _(() => [
295
- Nt
295
+ kt
296
296
  ]),
297
297
  close: _(() => [
298
- Ct
298
+ xt
299
299
  ]),
300
300
  _: 1
301
301
  }, 8, ["modelValue"])
302
302
  ]),
303
- o("div", Dt, [
304
- e.dialogVisible ? (y(), j(n, {
303
+ o("div", Vt, [
304
+ e.dialogVisible ? (h(), U(a, {
305
305
  key: 0,
306
306
  ref: "editor",
307
307
  value: e.state.editorContent,
308
308
  options: e.editorOptions,
309
309
  class: "monaco-editor"
310
- }, null, 8, ["value", "options"])) : Y("", !0),
311
- e.state.enableExtraParams ? Y("", !0) : (y(), M("div", wt))
310
+ }, null, 8, ["value", "options"])) : H("", !0),
311
+ e.state.enableExtraParams ? H("", !0) : (h(), S("div", It))
312
312
  ]),
313
- !e.state.isValidParams && e.state.enableExtraParams ? (y(), M("div", At, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : Y("", !0)
313
+ !e.state.isValidParams && e.state.enableExtraParams ? (h(), S("div", Nt, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : H("", !0)
314
314
  ], 2)
315
315
  ])
316
316
  ])
317
317
  ]),
318
318
  _: 1
319
319
  }, 8, ["onClose", "onOpened"])), [
320
- [ae, e.dialogVisible]
320
+ [re, e.dialogVisible]
321
321
  ]);
322
322
  }
323
- const St = /* @__PURE__ */ pe(pt, [["render", Mt], ["__scopeId", "data-v-6a54279c"]]), Bt = {
323
+ const At = /* @__PURE__ */ oe(dt, [["render", Dt], ["__scopeId", "data-v-937af0d2"]]), Pt = {
324
324
  onClick: {
325
325
  label: {
326
326
  zh_CN: "鼠标单击时触发"
@@ -377,7 +377,7 @@ const St = /* @__PURE__ */ pe(pt, [["render", Mt], ["__scopeId", "data-v-6a54279
377
377
  },
378
378
  defaultValue: ""
379
379
  }
380
- }, Ot = [
380
+ }, wt = [
381
381
  "onabort",
382
382
  "onafterprint",
383
383
  "onanimationend",
@@ -487,487 +487,516 @@ const St = /* @__PURE__ */ pe(pt, [["render", Mt], ["__scopeId", "data-v-6a54279
487
487
  "onwebkitanimationstart",
488
488
  "onwebkittransitionend",
489
489
  "onwheel"
490
- ], Lt = (d) => Ot.map((k) => {
491
- let e = k[2].toUpperCase();
492
- return `${k.substring(0, 2)}${e}${k.substring(3)}`;
493
- }).includes(d) ? !0 : (Pe({
494
- type: "error",
495
- message: "请输入正确的浏览器事件"
496
- }), !1);
497
- const Ut = {
490
+ ], Mt = (l) => !!wt.map((b) => {
491
+ let e = b[2].toUpperCase();
492
+ return `${b.substring(0, 2)}${e}${b.substring(3)}`;
493
+ }).includes(l);
494
+ const St = { class: "footer" }, Bt = {
495
+ __name: "AddEventsDialog",
496
+ props: {
497
+ visible: {
498
+ type: Boolean,
499
+ default: !1
500
+ },
501
+ componentEvents: {
502
+ type: Object,
503
+ default: () => ({})
504
+ }
505
+ },
506
+ emits: ["closeDialog", "addEvent"],
507
+ setup(l, { emit: i }) {
508
+ const b = l, e = i, d = te({
509
+ eventDescription: "",
510
+ eventName: ""
511
+ }), u = K(null), y = {
512
+ eventDescription: [
513
+ {
514
+ required: !0,
515
+ message: "必填"
516
+ }
517
+ ],
518
+ eventName: [
519
+ { required: !0, message: "必填" },
520
+ {
521
+ validator: (n, t, a) => {
522
+ if (b.componentEvents[d.eventName]) {
523
+ a(new Error("事件名已存在"));
524
+ return;
525
+ }
526
+ if (!Mt(d.eventName)) {
527
+ a(new Error("请输入正确的浏览器事件名"));
528
+ return;
529
+ }
530
+ a();
531
+ }
532
+ }
533
+ ]
534
+ }, E = () => {
535
+ e("closeDialog");
536
+ }, x = () => {
537
+ u.value && u.value.validate((n) => {
538
+ if (!n)
539
+ return;
540
+ const { eventName: t, eventDescription: a } = d;
541
+ e("addEvent", { eventName: t, eventDescription: a });
542
+ });
543
+ };
544
+ return (n, t) => (h(), U(O(Ae), {
545
+ visible: l.visible,
546
+ title: "添加自定义事件",
547
+ width: "400px",
548
+ "append-to-body": !0,
549
+ "close-on-click-modal": !1,
550
+ onClose: E
551
+ }, {
552
+ footer: _(() => [
553
+ o("div", St, [
554
+ p(O(ee), { onClick: E }, {
555
+ default: _(() => [
556
+ M(" 取消")
557
+ ]),
558
+ _: 1
559
+ }),
560
+ p(O(ee), {
561
+ type: "primary",
562
+ onClick: x
563
+ }, {
564
+ default: _(() => [
565
+ M(" 确定")
566
+ ]),
567
+ _: 1
568
+ })
569
+ ])
570
+ ]),
571
+ default: _(() => [
572
+ p(O(Ue), {
573
+ ref_key: "ruleForm",
574
+ ref: u,
575
+ model: d,
576
+ rules: y,
577
+ "label-width": "100px",
578
+ "inline-message": !0,
579
+ "validate-type": "text",
580
+ "label-position": "left",
581
+ class: "add-custom-event-form"
582
+ }, {
583
+ default: _(() => [
584
+ p(O(ke), {
585
+ label: "事件函数名",
586
+ prop: "eventName",
587
+ required: ""
588
+ }, {
589
+ default: _(() => [
590
+ p(O(pe), {
591
+ modelValue: d.eventName,
592
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => d.eventName = a),
593
+ placeholder: "小驼峰格式,如:onDrag"
594
+ }, null, 8, ["modelValue"])
595
+ ]),
596
+ _: 1
597
+ }),
598
+ p(O(ke), {
599
+ label: "事件描述",
600
+ prop: "eventDescription",
601
+ required: ""
602
+ }, {
603
+ default: _(() => [
604
+ p(O(pe), {
605
+ modelValue: d.eventDescription,
606
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => d.eventDescription = a)
607
+ }, null, 8, ["modelValue"])
608
+ ]),
609
+ _: 1
610
+ })
611
+ ]),
612
+ _: 1
613
+ }, 8, ["model"])
614
+ ]),
615
+ _: 1
616
+ }, 8, ["visible"]));
617
+ }
618
+ }, Ot = /* @__PURE__ */ oe(Bt, [["__scopeId", "data-v-932b189c"]]);
619
+ const Lt = {
498
620
  components: {
499
- BlockLinkEvent: Qe,
500
- BindEventsDialog: St,
501
- TinyPopover: we,
502
- TinyForm: je,
503
- TinyFormItem: Je,
504
- TinyInput: Ce,
505
- TinyButton: De,
506
- IconHelpQuery: Me(),
507
- IconChevronDown: nt(),
508
- SvgButton: Ze
621
+ BlockLinkEvent: qe,
622
+ BindEventsDialog: At,
623
+ TinyPopover: De,
624
+ TinyButton: ee,
625
+ IconHelpQuery: we(),
626
+ IconChevronDown: We(),
627
+ SvgButton: He,
628
+ AddEventsDialog: Ot
509
629
  },
510
630
  inheritAttrs: !1,
511
631
  setup() {
512
- const { PLUGIN_NAME: d, activePlugin: i, getPluginApi: k } = Ae(), { pageState: e } = me(), { getBlockEvents: m, getCurrentBlock: g, removeEventLink: S } = qe(), { getMaterial: V } = Ke(), { confirm: I } = Ye(), { highlightMethod: N } = k(d.PageController), a = {
513
- methodDescription: [{ required: !0, message: "必填", trigger: "blur" }],
514
- methodName: [{ required: !0, message: "必填", trigger: "blur" }]
515
- }, t = $(null), n = de({
632
+ const { PLUGIN_NAME: l, activePlugin: i, getPluginApi: b } = Pe(), { pageState: e } = ue(), { getBlockEvents: d, getCurrentBlock: u, removeEventLink: w } = Fe(), { getMaterial: y } = Je(), { confirm: E } = Re(), { highlightMethod: x } = b(l.PageController), n = te({
516
633
  eventName: "",
517
634
  // 事件名称
518
635
  eventBinding: null,
519
636
  // 事件绑定的处理方法对象
520
637
  componentEvent: {},
521
- componentEvents: Bt,
638
+ componentEvents: Pt,
522
639
  bindActions: {},
523
- formData: {
524
- methodDescription: "",
525
- methodName: ""
526
- },
527
- showEventAdditive: !1
528
- }), w = te(() => !!e.isBlock), x = te(() => Object.keys(n.bindActions).length === 0);
529
- Ne(() => {
530
- var oe, s, c, r, b;
531
- const h = (oe = e == null ? void 0 : e.currentSchema) == null ? void 0 : oe.componentName, B = V(h);
532
- n.componentEvent = ((c = (s = B == null ? void 0 : B.content) == null ? void 0 : s.schema) == null ? void 0 : c.events) || ((r = B == null ? void 0 : B.schema) == null ? void 0 : r.events) || {}, Object.assign(n.componentEvents, n.componentEvent);
533
- const U = ((b = e == null ? void 0 : e.currentSchema) == null ? void 0 : b.props) || {}, fe = Object.keys(U);
534
- n.bindActions = {}, Object.entries(n.componentEvents).forEach(([E, D]) => {
535
- var v, L, ue;
536
- if (fe.indexOf(E) > -1) {
537
- const Se = U[E], { value: Be, params: he } = Se, Oe = !he && ((L = (v = Be.match(/\((.+)\)$/)) == null ? void 0 : v[1]) == null ? void 0 : L.split(",")) || he, T = {
538
- eventName: E,
640
+ showBindEventDialog: !1
641
+ }), t = W(() => !!e.isBlock), a = W(() => Object.keys(n.bindActions).length === 0);
642
+ Ce(() => {
643
+ var Z, se, ae, le, s;
644
+ const v = (Z = e == null ? void 0 : e.currentSchema) == null ? void 0 : Z.componentName, A = y(v);
645
+ n.componentEvent = ((ae = (se = A == null ? void 0 : A.content) == null ? void 0 : se.schema) == null ? void 0 : ae.events) || ((le = A == null ? void 0 : A.schema) == null ? void 0 : le.events) || {}, Object.assign(n.componentEvents, n.componentEvent);
646
+ const B = ((s = e == null ? void 0 : e.currentSchema) == null ? void 0 : s.props) || {}, ie = Object.keys(B);
647
+ n.bindActions = {}, Object.entries(n.componentEvents).forEach(([r, m]) => {
648
+ var k, P, V;
649
+ if (ie.indexOf(r) > -1) {
650
+ const g = B[r], { value: T, params: ve } = g, Me = !ve && ((P = (k = T.match(/\((.+)\)$/)) == null ? void 0 : k[1]) == null ? void 0 : P.split(",")) || ve, z = {
651
+ eventName: r,
539
652
  ref: "",
540
- event: U[E],
541
- params: Oe
653
+ event: B[r],
654
+ params: Me
542
655
  };
543
- if (T.event.type === "JSExpression" && (T.ref = T.event.value.replace("this.", "").replace(/\(.*\)$/, "")), e.isBlock) {
544
- T.metaEvent = D;
545
- const ve = m(g()), ge = (ue = e == null ? void 0 : e.currentSchema) == null ? void 0 : ue.id;
546
- ge && ve && Object.entries(ve).forEach(([Le, z]) => {
547
- var ye, be;
548
- ge === ((ye = z == null ? void 0 : z.linked) == null ? void 0 : ye.id) && E === ((be = z == null ? void 0 : z.linked) == null ? void 0 : be.event) && (T.linked = z.linked, T.linkedEventName = Le);
656
+ if (z.event.type === "JSExpression" && (z.ref = z.event.value.replace("this.", "").replace(/\(.*\)$/, "")), e.isBlock) {
657
+ z.metaEvent = m;
658
+ const he = d(u()), ge = (V = e == null ? void 0 : e.currentSchema) == null ? void 0 : V.id;
659
+ ge && he && Object.entries(he).forEach(([Se, j]) => {
660
+ var be, ye;
661
+ ge === ((be = j == null ? void 0 : j.linked) == null ? void 0 : be.id) && r === ((ye = j == null ? void 0 : j.linked) == null ? void 0 : ye.event) && (z.linked = j.linked, z.linkedEventName = Se);
549
662
  });
550
663
  }
551
- n.bindActions[E] = T;
664
+ n.bindActions[r] = z;
552
665
  }
553
666
  });
554
667
  });
555
- const u = (h, B) => {
556
- B && n.bindActions[h.eventName] || (n.eventBinding = h, ct());
557
- }, J = (h) => {
558
- var U;
559
- Object.keys(((U = e == null ? void 0 : e.currentSchema) == null ? void 0 : U.props) || {}).indexOf(h.eventName) > -1 && delete e.currentSchema.props[h.eventName];
560
- }, p = (h) => {
561
- I({
562
- title: "提示",
563
- message: `您确定要删除事件 ${h.eventName} 吗?`,
564
- exec() {
565
- e.isBlock && S({ linked: h.linked }), J(h);
566
- }
567
- });
568
- }, A = (h) => {
569
- h && i(d.PageController).then(() => {
570
- N && N(h.ref);
571
- });
572
- }, R = () => {
573
- if (n.componentEvents[n.formData.methodName])
574
- return Pe({
575
- type: "error",
576
- message: `${n.formData.methodName}事件函数名已存在`
577
- }), !1;
578
- Lt(n.formData.methodName) && (Object.assign(n.componentEvents, {
579
- [n.formData.methodName]: {
580
- label: {
581
- zh_CN: n.formData.methodDescription
582
- },
583
- description: {
584
- zh_CN: `${n.formData.methodDescription}的回调函数`
585
- },
586
- type: "event",
587
- functionInfo: {
588
- params: [],
589
- returns: {}
590
- },
591
- defaultValue: ""
592
- }
593
- }), n.showEventAdditive = !n.showEventAdditive);
594
- }, G = () => {
595
- var h;
596
- (h = t.value) == null || h.resetFields();
597
- }, W = () => {
598
- n.showEventAdditive = !1;
668
+ const C = (v, A) => {
669
+ A && n.bindActions[v.eventName] || (n.eventBinding = v, st());
670
+ }, N = (v) => {
671
+ var B;
672
+ Object.keys(((B = e == null ? void 0 : e.currentSchema) == null ? void 0 : B.props) || {}).indexOf(v.eventName) > -1 && delete e.currentSchema.props[v.eventName];
599
673
  };
600
- return le(
601
- () => n.showEventAdditive,
602
- (h) => {
603
- h ? window.addEventListener("click", W) : window.removeEventListener("click", W);
604
- }
605
- ), {
674
+ return {
606
675
  state: n,
607
- isBlock: w,
608
- isEmpty: x,
609
- delEvent: p,
610
- openCodePanel: A,
611
- openActionDialog: u,
612
- rules: a,
613
- addMethod: R,
614
- clearFromData: G,
615
- ruleForm: t
676
+ isBlock: t,
677
+ isEmpty: a,
678
+ delEvent: (v) => {
679
+ E({
680
+ title: "提示",
681
+ message: `您确定要删除事件 ${v.eventName} 吗?`,
682
+ exec() {
683
+ e.isBlock && w({ linked: v.linked }), N(v);
684
+ }
685
+ });
686
+ },
687
+ openCodePanel: (v) => {
688
+ v && i(l.PageController).then(() => {
689
+ x && x(v.ref);
690
+ });
691
+ },
692
+ openActionDialog: C,
693
+ handleAddEvent: (v) => {
694
+ const { eventName: A, eventDescription: B } = v;
695
+ Object.assign(n.componentEvents, {
696
+ [A]: {
697
+ label: {
698
+ zh_CN: B
699
+ },
700
+ description: {
701
+ zh_CN: `${B}的回调函数`
702
+ },
703
+ type: "event",
704
+ functionInfo: {
705
+ params: [],
706
+ returns: {}
707
+ },
708
+ defaultValue: ""
709
+ }
710
+ }), n.showBindEventDialog = !1;
711
+ },
712
+ handleToggleAddEventDialog: (v) => {
713
+ n.showBindEventDialog = v;
714
+ }
616
715
  };
617
716
  }
618
- }, Q = (d) => (ce("data-v-cd98febc"), d = d(), re(), d), Tt = { class: "bind-action-list" }, zt = { class: "popover-head" }, Ft = { class: "head-left" }, jt = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("span", { class: "custom-event-button-text" }, "添加自定义事件", -1)), Jt = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("div", { class: "add-custom-event-tip" }, [
619
- /* @__PURE__ */ P(" 支持添加原生 DOM 事件,添加后点击 "),
717
+ }, Y = (l) => (me("data-v-e09a30b7"), l = l(), _e(), l), Tt = { class: "bind-action-list" }, Ut = { class: "popover-head" }, zt = { class: "head-left" }, jt = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", { class: "custom-event-button-text" }, "添加自定义事件", -1)), $t = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("div", { class: "add-custom-event-tip" }, [
718
+ /* @__PURE__ */ M(" 支持添加原生 DOM 事件,添加后点击 "),
620
719
  /* @__PURE__ */ o("span", { class: "event-tip-highlight" }, " 绑定事件 "),
621
- /* @__PURE__ */ P(" 为画布中所选元素增加事件 ")
622
- ], -1)), Rt = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("span", null, "绑定事件", -1)), Ht = { class: "bind-event-list" }, Xt = ["onClick"], qt = { class: "bind-actions" }, Kt = { class: "action-item bind-action-item" }, Yt = ["onClick"], $t = { class: "event-bind" }, Qt = { class: "action-buttons" }, Zt = { class: "empty-action" }, Gt = { class: "icon" }, Wt = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("div", { class: "center" }, "元素事件绑定", -1)), eo = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("span", { class: "text" }, [
623
- /* @__PURE__ */ P(" 点击 "),
720
+ /* @__PURE__ */ M(" 为画布中所选元素增加事件 ")
721
+ ], -1)), Ft = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", null, "绑定事件", -1)), Jt = { class: "bind-event-list" }, Rt = ["onClick"], Xt = { class: "bind-actions" }, qt = { class: "action-item bind-action-item" }, Ht = ["onClick"], Kt = { class: "event-bind" }, Yt = { class: "action-buttons" }, Qt = { class: "empty-action" }, Zt = { class: "icon" }, Gt = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("div", { class: "center" }, "元素事件绑定", -1)), Wt = /* @__PURE__ */ Y(() => /* @__PURE__ */ o("span", { class: "text" }, [
722
+ /* @__PURE__ */ M(" 点击 "),
624
723
  /* @__PURE__ */ o("span", { class: "empty-bind-event-tip" }, "绑定事件"),
625
- /* @__PURE__ */ P("为画布中所选元素增加事件")
724
+ /* @__PURE__ */ M("为画布中所选元素增加事件")
626
725
  ], -1));
627
- function to(d, i, k, e, m, g) {
628
- const S = f("icon-help-query"), V = f("tiny-popover"), I = f("tiny-button"), N = f("tiny-input"), a = f("tiny-form-item"), t = f("tiny-form"), n = f("icon-chevron-down"), w = f("block-link-event"), x = f("svg-button"), u = f("svg-icon"), J = f("bind-events-dialog");
629
- return y(), M(ee, null, [
726
+ function eo(l, i, b, e, d, u) {
727
+ const w = f("icon-help-query"), y = f("tiny-popover"), E = f("tiny-button"), x = f("icon-chevron-down"), n = f("block-link-event"), t = f("svg-button"), a = f("svg-icon"), C = f("bind-events-dialog"), N = f("add-events-dialog");
728
+ return h(), S(G, null, [
630
729
  o("div", Tt, [
631
- o("div", zt, [
632
- o("span", Ft, [
633
- l(V, {
634
- modelValue: e.state.showEventAdditive,
635
- "onUpdate:modelValue": i[5] || (i[5] = (p) => e.state.showEventAdditive = p),
636
- popperClass: "option-popper",
637
- placement: "bottom-end",
638
- trigger: "manual",
639
- onHide: e.clearFromData
730
+ o("div", Ut, [
731
+ o("span", zt, [
732
+ p(E, {
733
+ class: "title add-custom-event-button",
734
+ "reset-time": 0,
735
+ onClick: i[0] || (i[0] = Oe((c) => e.handleToggleAddEventDialog(!0), ["stop"]))
640
736
  }, {
641
- reference: _(() => [
642
- l(I, {
643
- class: "title add-custom-event-button",
644
- "reset-time": 0,
645
- onClick: i[0] || (i[0] = Ee((p) => e.state.showEventAdditive = !e.state.showEventAdditive, ["stop"]))
737
+ default: _(() => [
738
+ jt,
739
+ p(y, {
740
+ placement: "bottom-start",
741
+ trigger: "hover",
742
+ popperClass: "setting-advanced-add-custom-event-tip"
646
743
  }, {
744
+ reference: _(() => [
745
+ p(w, { class: "icon-help" })
746
+ ]),
647
747
  default: _(() => [
648
- jt,
649
- l(V, {
650
- placement: "bottom-start",
651
- trigger: "hover",
652
- popperClass: "setting-advanced-add-custom-event-tip"
653
- }, {
654
- reference: _(() => [
655
- l(S, { class: "icon-help" })
656
- ]),
657
- default: _(() => [
658
- Jt
659
- ]),
660
- _: 1
661
- })
748
+ $t
662
749
  ]),
663
750
  _: 1
664
751
  })
665
752
  ]),
666
- default: _(() => [
667
- o("div", {
668
- class: "custom-event",
669
- onClick: i[4] || (i[4] = Ee(() => {
670
- }, ["stop"]))
671
- }, [
672
- l(t, {
673
- ref: "ruleForm",
674
- model: e.state.formData,
675
- rules: e.rules,
676
- "label-width": "100px",
677
- "inline-message": !0,
678
- "validate-type": "text",
679
- "label-position": "left"
680
- }, {
681
- default: _(() => [
682
- l(a, {
683
- label: "事件函数名",
684
- prop: "methodName",
685
- required: ""
686
- }, {
687
- default: _(() => [
688
- l(N, {
689
- modelValue: e.state.formData.methodName,
690
- "onUpdate:modelValue": i[1] || (i[1] = (p) => e.state.formData.methodName = p),
691
- placeholder: "小驼峰格式,如:onDrag"
692
- }, null, 8, ["modelValue"])
693
- ]),
694
- _: 1
695
- }),
696
- l(a, {
697
- label: "事件描述",
698
- prop: "methodDescription",
699
- required: ""
700
- }, {
701
- default: _(() => [
702
- l(N, {
703
- modelValue: e.state.formData.methodDescription,
704
- "onUpdate:modelValue": i[2] || (i[2] = (p) => e.state.formData.methodDescription = p)
705
- }, null, 8, ["modelValue"])
706
- ]),
707
- _: 1
708
- }),
709
- o("footer", null, [
710
- l(I, { onClick: e.addMethod }, {
711
- default: _(() => [
712
- P(" 确定")
713
- ]),
714
- _: 1
715
- }, 8, ["onClick"]),
716
- l(I, {
717
- onClick: i[3] || (i[3] = (p) => e.state.showEventAdditive = !e.state.showEventAdditive)
718
- }, {
719
- default: _(() => [
720
- P(" 取消")
721
- ]),
722
- _: 1
723
- })
724
- ])
725
- ]),
726
- _: 1
727
- }, 8, ["model", "rules"])
728
- ])
729
- ]),
730
753
  _: 1
731
- }, 8, ["modelValue", "onHide"])
754
+ })
732
755
  ]),
733
- l(V, {
756
+ p(y, {
734
757
  popperClass: "option-popper setting-advanced-bind-event-list",
735
758
  placement: "bottom-end",
736
759
  trigger: "hover"
737
760
  }, {
738
761
  reference: _(() => [
739
- l(I, { class: "bind-event-btn" }, {
762
+ p(E, { class: "bind-event-btn" }, {
740
763
  default: _(() => [
741
- Rt,
742
- l(n, { class: "icon-chevron-down" })
764
+ Ft,
765
+ p(x, { class: "icon-chevron-down" })
743
766
  ]),
744
767
  _: 1
745
768
  })
746
769
  ]),
747
770
  default: _(() => [
748
- o("ul", Ht, [
749
- (y(!0), M(ee, null, se(e.state.componentEvents, (p, A) => {
750
- var R;
751
- return y(), M("li", {
752
- key: A,
753
- class: X(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[A] }]),
754
- onClick: (G) => e.openActionDialog({ eventName: A }, !0)
771
+ o("ul", Jt, [
772
+ (h(!0), S(G, null, ce(e.state.componentEvents, (c, D) => {
773
+ var X;
774
+ return h(), S("li", {
775
+ key: D,
776
+ class: J(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[D] }]),
777
+ onClick: (ne) => e.openActionDialog({ eventName: D }, !0)
755
778
  }, [
756
- o("div", null, O(A) + "  " + O(((R = p == null ? void 0 : p.label) == null ? void 0 : R.zh_CN) || A), 1)
757
- ], 10, Xt);
779
+ o("div", null, L(D) + "  " + L(((X = c == null ? void 0 : c.label) == null ? void 0 : X.zh_CN) || D), 1)
780
+ ], 10, Rt);
758
781
  }), 128))
759
782
  ])
760
783
  ]),
761
784
  _: 1
762
785
  })
763
786
  ]),
764
- ie(o("ul", qt, [
765
- (y(!0), M(ee, null, se(e.state.bindActions, (p) => (y(), M("li", {
766
- key: p.eventName
787
+ de(o("ul", Xt, [
788
+ (h(!0), S(G, null, ce(e.state.bindActions, (c) => (h(), S("li", {
789
+ key: c.eventName
767
790
  }, [
768
- o("div", Kt, [
791
+ o("div", qt, [
769
792
  o("div", {
770
793
  class: "binding-name",
771
- onClick: (A) => e.openActionDialog(p)
794
+ onClick: (D) => e.openActionDialog(c)
772
795
  }, [
773
796
  o("div", null, [
774
- P(O(p.eventName), 1),
775
- o("span", null, O(e.state.componentEvents[p.eventName].label.zh_CN), 1)
797
+ M(L(c.eventName), 1),
798
+ o("span", null, L(e.state.componentEvents[c.eventName].label.zh_CN), 1)
776
799
  ]),
777
800
  o("div", {
778
- class: X({ linked: p.linked })
779
- }, O(p.linkedEventName), 3),
780
- o("span", $t, O(p.ref), 1)
781
- ], 8, Yt),
782
- o("div", Qt, [
783
- e.isBlock ? (y(), j(w, {
801
+ class: J({ linked: c.linked })
802
+ }, L(c.linkedEventName), 3),
803
+ o("span", Kt, L(c.ref), 1)
804
+ ], 8, Ht),
805
+ o("div", Yt, [
806
+ e.isBlock ? (h(), U(n, {
784
807
  key: 0,
785
- data: p
786
- }, null, 8, ["data"])) : Y("", !0),
787
- l(x, {
808
+ data: c
809
+ }, null, 8, ["data"])) : H("", !0),
810
+ p(t, {
788
811
  name: "plugin-icon-page-schema",
789
812
  tips: "定位到代码",
790
813
  placement: "top",
791
- onClick: (A) => e.openCodePanel(p)
814
+ onClick: (D) => e.openCodePanel(c)
792
815
  }, null, 8, ["onClick"]),
793
- l(x, {
816
+ p(t, {
794
817
  name: "setting",
795
818
  tips: "设置",
796
819
  placement: "top",
797
- onClick: (A) => e.openActionDialog(p, !1)
820
+ onClick: (D) => e.openActionDialog(c, !1)
798
821
  }, null, 8, ["onClick"]),
799
- l(x, {
822
+ p(t, {
800
823
  name: "delete",
801
824
  tips: "删除",
802
825
  placement: "top",
803
- onClick: (A) => e.delEvent(p)
826
+ onClick: (D) => e.delEvent(c)
804
827
  }, null, 8, ["onClick"])
805
828
  ])
806
829
  ])
807
830
  ]))), 128))
808
831
  ], 512), [
809
- [ae, !e.isEmpty]
832
+ [re, !e.isEmpty]
810
833
  ]),
811
- ie(o("div", Zt, [
812
- o("div", Gt, [
813
- l(u, {
834
+ de(o("div", Qt, [
835
+ o("div", Zt, [
836
+ p(a, {
814
837
  name: "empty-action",
815
838
  class: "empty-action-icon"
816
839
  })
817
840
  ]),
818
- Wt,
819
- eo
841
+ Gt,
842
+ Wt
820
843
  ], 512), [
821
- [ae, e.isEmpty]
844
+ [re, e.isEmpty]
822
845
  ])
823
846
  ]),
824
- l(J, {
847
+ p(C, {
825
848
  eventBinding: e.state.eventBinding
826
- }, null, 8, ["eventBinding"])
849
+ }, null, 8, ["eventBinding"]),
850
+ p(N, {
851
+ visible: e.state.showBindEventDialog,
852
+ componentEvents: e.state.componentEvents,
853
+ onCloseDialog: i[1] || (i[1] = (c) => e.handleToggleAddEventDialog(!1)),
854
+ onAddEvent: e.handleAddEvent
855
+ }, null, 8, ["visible", "componentEvents", "onAddEvent"])
827
856
  ], 64);
828
857
  }
829
- const oo = /* @__PURE__ */ pe(Ut, [["render", to], ["__scopeId", "data-v-cd98febc"]]);
830
- const { DEFAULT_LOOP_NAME: F } = dt, no = {
858
+ const to = /* @__PURE__ */ oe(Lt, [["render", eo], ["__scopeId", "data-v-e09a30b7"]]);
859
+ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
831
860
  components: {
832
- MetaSwitch: Ge,
833
- TinyTooltip: Re,
834
- MetaBindVariable: We,
835
- MetaInput: et,
836
- MetaCodeEditor: tt
861
+ MetaSwitch: Ke,
862
+ TinyTooltip: ze,
863
+ MetaBindVariable: Ye,
864
+ MetaInput: Qe,
865
+ MetaCodeEditor: Ze
837
866
  },
838
867
  inheritAttrs: !1,
839
868
  setup() {
840
- const { pageState: d } = me(), i = $(!1), k = te(() => {
869
+ const { pageState: l } = ue(), i = K(!1), b = W(() => {
841
870
  var t;
842
- return ((t = i.value) == null ? void 0 : t.type) === K.JSEXPRESSION;
871
+ return ((t = i.value) == null ? void 0 : t.type) === q.JSEXPRESSION;
843
872
  }), e = () => {
844
- var t, n;
845
- return ((n = (t = C().getSchema()) == null ? void 0 : t.loopArgs) == null ? void 0 : n[1]) || F.INDEX;
846
- }, m = de({
873
+ var t, a;
874
+ return ((a = (t = I().getSchema()) == null ? void 0 : t.loopArgs) == null ? void 0 : a[1]) || $.INDEX;
875
+ }, d = te({
847
876
  loopData: {
848
- type: K.JSEXPRESSION,
877
+ type: q.JSEXPRESSION,
849
878
  value: "[]"
850
879
  },
851
880
  loopItem: "item",
852
881
  loopIndex: "index",
853
- isLoop: te(() => {
882
+ isLoop: W(() => {
854
883
  var t;
855
- return ((t = m.loopData) == null ? void 0 : t.type) === K.JSEXPRESSION;
884
+ return ((t = d.loopData) == null ? void 0 : t.type) === q.JSEXPRESSION;
856
885
  }),
857
886
  loopKey: "",
858
887
  shouldUpdate: !1
859
888
  });
860
- le(
861
- () => [d == null ? void 0 : d.currentSchema, m.shouldUpdate],
889
+ Ee(
890
+ () => [l == null ? void 0 : l.currentSchema, d.shouldUpdate],
862
891
  ([t]) => {
863
- var n, w, x, u;
864
- i.value = (t == null ? void 0 : t.condition) === void 0 ? !0 : t == null ? void 0 : t.condition, m.loopData = t == null ? void 0 : t.loop, m.loopItem = ((n = t == null ? void 0 : t.loopArgs) == null ? void 0 : n[0]) || "", m.loopIndex = ((w = t == null ? void 0 : t.loopArgs) == null ? void 0 : w[1]) || "", m.loopKey = ((u = (x = t == null ? void 0 : t.props) == null ? void 0 : x.key) == null ? void 0 : u.value) || "";
892
+ var a, C, N, c;
893
+ i.value = (t == null ? void 0 : t.condition) === void 0 ? !0 : t == null ? void 0 : t.condition, d.loopData = t == null ? void 0 : t.loop, d.loopItem = ((a = t == null ? void 0 : t.loopArgs) == null ? void 0 : a[0]) || "", d.loopIndex = ((C = t == null ? void 0 : t.loopArgs) == null ? void 0 : C[1]) || "", d.loopKey = ((c = (N = t == null ? void 0 : t.props) == null ? void 0 : N.key) == null ? void 0 : c.value) || "";
865
894
  }
866
895
  );
867
- const g = (t = "") => {
896
+ const u = (t = "") => {
868
897
  t = t.replace(/\s*/g, "");
869
- const n = C().getSchema();
870
- if (!n)
898
+ const a = I().getSchema();
899
+ if (!a)
871
900
  return;
872
- const w = Number(t).toString() !== "NaN";
873
- n.props = n.props || {};
874
- const x = n.props;
875
- t && !w && (x.key = {
876
- type: K.JSEXPRESSION,
901
+ const C = Number(t).toString() !== "NaN";
902
+ a.props = a.props || {};
903
+ const N = a.props;
904
+ t && !C && (N.key = {
905
+ type: q.JSEXPRESSION,
877
906
  value: t
878
- }), t || (m.isLoop ? x.key = {
879
- type: K.JSEXPRESSION,
907
+ }), t || (d.isLoop ? N.key = {
908
+ type: q.JSEXPRESSION,
880
909
  value: e()
881
- } : delete x.key);
910
+ } : delete N.key);
882
911
  };
883
- le([() => m.isLoop, () => m.loopIndex], () => {
884
- !m.loopKey && m.isLoop && g(e()), m.isLoop || g("");
912
+ Ee([() => d.isLoop, () => d.loopIndex], () => {
913
+ !d.loopKey && d.isLoop && u(e()), d.isLoop || u("");
885
914
  });
886
- const S = () => {
915
+ const w = () => {
887
916
  var t;
888
- m.loopData = (t = C().getSchema()) == null ? void 0 : t.loop;
889
- }, V = (t) => {
890
- C().getSchema() && (t === !1 || t != null && t.type ? C().getSchema().condition = t : delete C().getSchema().condition, lt(), i.value = t);
891
- }, I = (t) => {
892
- C().getSchema().loopArgs ? C().getSchema().loopArgs[1] = t || F.INDEX : C().getSchema().loopArgs = [F.ITEM, t];
917
+ d.loopData = (t = I().getSchema()) == null ? void 0 : t.loop;
918
+ }, y = (t) => {
919
+ I().getSchema() && (t === !1 || t != null && t.type ? I().getSchema().condition = t : delete I().getSchema().condition, nt(), i.value = t);
920
+ }, E = (t) => {
921
+ I().getSchema().loopArgs ? I().getSchema().loopArgs[1] = t || $.INDEX : I().getSchema().loopArgs = [$.ITEM, t];
893
922
  };
894
923
  return {
895
924
  condition: i,
896
- setConfig: V,
897
- isBind: k,
898
- state: m,
925
+ setConfig: y,
926
+ isBind: b,
927
+ state: d,
899
928
  setLoop: (t) => {
900
- t ? (C().getSchema().loop = t != null && t.type ? t : st(t), I(F.INDEX)) : (g(), delete C().getSchema().loop, delete C().getSchema().loopArgs), m.shouldUpdate = !m.shouldUpdate;
929
+ t ? (I().getSchema().loop = t != null && t.type ? t : tt(t), E($.INDEX)) : (u(), delete I().getSchema().loop, delete I().getSchema().loopArgs), d.shouldUpdate = !d.shouldUpdate;
901
930
  },
902
931
  setLoopItem: (t) => {
903
- C().getSchema().loopArgs ? C().getSchema().loopArgs[0] = t || F.ITEM : C().getSchema().loopArgs = [t, F.INDEX];
932
+ I().getSchema().loopArgs ? I().getSchema().loopArgs[0] = t || $.ITEM : I().getSchema().loopArgs = [t, $.INDEX];
904
933
  },
905
- DEFAULT_LOOP_NAME: F,
906
- openEditor: S,
907
- setLoopIndex: I,
908
- setLoopKey: g,
934
+ DEFAULT_LOOP_NAME: $,
935
+ openEditor: w,
936
+ setLoopIndex: E,
937
+ setLoopKey: u,
909
938
  getIndexName: e
910
939
  };
911
940
  }
912
- }, Z = (d) => (ce("data-v-ef405cbc"), d = d(), re(), d), io = { class: "advanced-config-container" }, so = { class: "advnce-config" }, ao = /* @__PURE__ */ Z(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)), lo = { class: "advanced-config-form-item" }, co = {
941
+ }, Q = (l) => (me("data-v-ef405cbc"), l = l(), _e(), l), no = { class: "advanced-config-container" }, io = { class: "advnce-config" }, so = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)), ao = { class: "advanced-config-form-item" }, lo = {
913
942
  key: 1,
914
943
  class: "binding-state"
915
- }, ro = { class: "advnce-config" }, mo = /* @__PURE__ */ Z(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)), po = { class: "advanced-config-form-item" }, _o = {
944
+ }, co = { class: "advnce-config" }, ro = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)), po = { class: "advanced-config-form-item" }, mo = {
916
945
  key: 1,
917
946
  class: "binding-state text-ellipsis-multiple"
918
- }, fo = { class: "advnce-config" }, uo = /* @__PURE__ */ Z(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)), ho = { class: "advanced-config-form-item" }, vo = { class: "advnce-config" }, go = /* @__PURE__ */ Z(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)), yo = { class: "advanced-config-form-item" }, bo = { class: "advnce-config" }, Eo = /* @__PURE__ */ Z(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "key", -1)), ko = { class: "advanced-config-form-item" };
919
- function Vo(d, i, k, e, m, g) {
947
+ }, _o = { class: "advnce-config" }, uo = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)), fo = { class: "advanced-config-form-item" }, vo = { class: "advnce-config" }, ho = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)), go = { class: "advanced-config-form-item" }, bo = { class: "advnce-config" }, yo = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "key", -1)), Eo = { class: "advanced-config-form-item" };
948
+ function ko(l, i, b, e, d, u) {
920
949
  var t;
921
- const S = f("meta-switch"), V = f("meta-bind-variable"), I = f("meta-code-editor"), N = f("meta-input"), a = f("tiny-tooltip");
922
- return y(), M("div", io, [
923
- o("div", so, [
924
- ao,
925
- o("div", lo, [
926
- e.isBind ? (y(), M("div", co, "已绑定:" + O(e.condition.value), 1)) : (y(), j(S, {
950
+ const w = f("meta-switch"), y = f("meta-bind-variable"), E = f("meta-code-editor"), x = f("meta-input"), n = f("tiny-tooltip");
951
+ return h(), S("div", no, [
952
+ o("div", io, [
953
+ so,
954
+ o("div", ao, [
955
+ e.isBind ? (h(), S("div", lo, "已绑定:" + L(e.condition.value), 1)) : (h(), U(w, {
927
956
  key: 0,
928
957
  modelValue: e.condition,
929
958
  "onUpdate:modelValue": e.setConfig
930
959
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
931
- l(V, {
960
+ p(y, {
932
961
  modelValue: e.condition,
933
962
  "onUpdate:modelValue": [
934
- i[0] || (i[0] = (n) => e.condition = n),
963
+ i[0] || (i[0] = (a) => e.condition = a),
935
964
  e.setConfig
936
965
  ],
937
966
  name: "advance"
938
967
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
939
968
  ])
940
969
  ]),
941
- o("div", ro, [
942
- mo,
970
+ o("div", co, [
971
+ ro,
943
972
  o("div", po, [
944
- e.state.isLoop ? (y(), M("div", _o, "已绑定:" + O((t = e.state.loopData) == null ? void 0 : t.value), 1)) : (y(), j(I, {
973
+ e.state.isLoop ? (h(), S("div", mo, "已绑定:" + L((t = e.state.loopData) == null ? void 0 : t.value), 1)) : (h(), U(E, {
945
974
  key: 0,
946
975
  modelValue: e.state.loopData,
947
976
  "onUpdate:modelValue": [
948
- i[1] || (i[1] = (n) => e.state.loopData = n),
977
+ i[1] || (i[1] = (a) => e.state.loopData = a),
949
978
  e.setLoop
950
979
  ],
951
980
  "data-type": "JSExpression",
952
981
  onOpen: e.openEditor
953
982
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onOpen"])),
954
- l(V, {
983
+ p(y, {
955
984
  modelValue: e.state.loopData,
956
985
  "onUpdate:modelValue": [
957
- i[2] || (i[2] = (n) => e.state.loopData = n),
986
+ i[2] || (i[2] = (a) => e.state.loopData = a),
958
987
  e.setLoop
959
988
  ],
960
989
  name: "advance"
961
990
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
962
991
  ])
963
992
  ]),
964
- o("div", fo, [
993
+ o("div", _o, [
965
994
  uo,
966
- o("div", ho, [
967
- l(N, {
995
+ o("div", fo, [
996
+ p(x, {
968
997
  modelValue: e.state.loopItem,
969
998
  "onUpdate:modelValue": [
970
- i[3] || (i[3] = (n) => e.state.loopItem = n),
999
+ i[3] || (i[3] = (a) => e.state.loopItem = a),
971
1000
  e.setLoopItem
972
1001
  ],
973
1002
  placeholder: `默认值为:${e.DEFAULT_LOOP_NAME.ITEM}`
@@ -975,12 +1004,12 @@ function Vo(d, i, k, e, m, g) {
975
1004
  ])
976
1005
  ]),
977
1006
  o("div", vo, [
978
- go,
979
- o("div", yo, [
980
- l(N, {
1007
+ ho,
1008
+ o("div", go, [
1009
+ p(x, {
981
1010
  modelValue: e.state.loopIndex,
982
1011
  "onUpdate:modelValue": [
983
- i[4] || (i[4] = (n) => e.state.loopIndex = n),
1012
+ i[4] || (i[4] = (a) => e.state.loopIndex = a),
984
1013
  e.setLoopIndex
985
1014
  ],
986
1015
  placeholder: `默认值为:${e.DEFAULT_LOOP_NAME.INDEX}`
@@ -988,14 +1017,14 @@ function Vo(d, i, k, e, m, g) {
988
1017
  ])
989
1018
  ]),
990
1019
  o("div", bo, [
991
- Eo,
992
- o("div", ko, [
993
- l(a, { content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存" }, {
1020
+ yo,
1021
+ o("div", Eo, [
1022
+ p(n, { content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存" }, {
994
1023
  default: _(() => [
995
- l(N, {
1024
+ p(x, {
996
1025
  modelValue: e.state.loopKey,
997
1026
  "onUpdate:modelValue": [
998
- i[5] || (i[5] = (n) => e.state.loopKey = n),
1027
+ i[5] || (i[5] = (a) => e.state.loopKey = a),
999
1028
  e.setLoopKey
1000
1029
  ],
1001
1030
  placeholder: `默认为索引名:${e.getIndexName()}`
@@ -1007,30 +1036,30 @@ function Vo(d, i, k, e, m, g) {
1007
1036
  ])
1008
1037
  ]);
1009
1038
  }
1010
- const Io = /* @__PURE__ */ pe(no, [["render", Vo], ["__scopeId", "data-v-ef405cbc"]]), xo = {
1039
+ const xo = /* @__PURE__ */ oe(oo, [["render", ko], ["__scopeId", "data-v-ef405cbc"]]), Vo = {
1011
1040
  __name: "Main",
1012
- setup(d) {
1013
- const i = $(["bindEvent", "advancedConfig"]);
1014
- return (k, e) => (y(), j(ne(He), {
1041
+ setup(l) {
1042
+ const i = K(["bindEvent", "advancedConfig"]);
1043
+ return (b, e) => (h(), U(O(je), {
1015
1044
  modelValue: i.value,
1016
- "onUpdate:modelValue": e[0] || (e[0] = (m) => i.value = m)
1045
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => i.value = d)
1017
1046
  }, {
1018
1047
  default: _(() => [
1019
- l(ne(ke), {
1048
+ p(O(xe), {
1020
1049
  title: "事件绑定",
1021
1050
  name: "bindEvent"
1022
1051
  }, {
1023
1052
  default: _(() => [
1024
- l(oo)
1053
+ p(to)
1025
1054
  ]),
1026
1055
  _: 1
1027
1056
  }),
1028
- l(ne(ke), {
1057
+ p(O(xe), {
1029
1058
  title: "高级配置",
1030
1059
  name: "advancedConfig"
1031
1060
  }, {
1032
1061
  default: _(() => [
1033
- l(Io)
1062
+ p(xo)
1034
1063
  ]),
1035
1064
  _: 1
1036
1065
  })
@@ -1038,14 +1067,14 @@ const Io = /* @__PURE__ */ pe(no, [["render", Vo], ["__scopeId", "data-v-ef405cb
1038
1067
  _: 1
1039
1068
  }, 8, ["modelValue"]));
1040
1069
  }
1041
- }, Uo = {
1070
+ }, Lo = {
1042
1071
  id: "SettingEvents",
1043
1072
  name: "event",
1044
1073
  title: "高级",
1045
1074
  icon: "",
1046
1075
  align: "left",
1047
- component: xo
1076
+ component: Vo
1048
1077
  };
1049
1078
  export {
1050
- Uo as default
1079
+ Lo as default
1051
1080
  };