@opentiny/tiny-engine-setting-events 1.0.3 → 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.
package/dist/index.js CHANGED
@@ -1,29 +1,29 @@
1
1
  import "./style.css";
2
- import { ref as K, reactive as te, watchEffect as Ce, resolveComponent as v, withDirectives as ce, 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 de, 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";
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
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
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
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
6
  import { iconYes as Ge, iconHelpQuery as we, iconChevronDown as We } from "@opentiny/vue-icon";
7
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-common/js/ast";
8
+ import { string2Ast as Ve, ast2String as ot } from "@opentiny/tiny-engine-controller/js/ast";
9
9
  import { PROP_DATA_TYPE as q } from "@opentiny/tiny-engine-controller/utils";
10
10
  import { updateRect as nt } from "@opentiny/tiny-engine-canvas";
11
11
  import { constants as it } from "@opentiny/tiny-engine-utils";
12
12
  const oe = (l, i) => {
13
13
  const b = l.__vccOpts || l;
14
- for (const [e, c] of i)
15
- b[e] = c;
14
+ for (const [e, d] of i)
15
+ b[e] = d;
16
16
  return b;
17
- }, ve = K(!1), st = () => {
18
- ve.value = !0;
17
+ }, fe = K(!1), st = () => {
18
+ fe.value = !0;
19
19
  }, Ie = () => {
20
- ve.value = !1;
20
+ fe.value = !1;
21
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
- }, ct = {
26
+ }, dt = {
27
27
  components: {
28
28
  MonacoEditor: Xe,
29
29
  TinyInput: pe,
@@ -43,7 +43,7 @@ const oe = (l, i) => {
43
43
  }
44
44
  },
45
45
  setup(l) {
46
- const { PLUGIN_NAME: i, getPluginApi: b, activePlugin: e } = Pe(), { pageState: c } = ue(), { getMethodNameList: u, getMethods: w, saveMethod: y, highlightMethod: E } = b(i.PageController), x = K(null), n = te({
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: {},
@@ -94,7 +94,7 @@ const oe = (l, i) => {
94
94
  const r = (V = l.eventBinding) == null ? void 0 : V.eventName;
95
95
  if (!r)
96
96
  return;
97
- const m = (g = c == null ? void 0 : c.currentSchema) == null ? void 0 : g.props;
97
+ const m = (g = d == null ? void 0 : d.currentSchema) == null ? void 0 : g.props;
98
98
  if (!m)
99
99
  return;
100
100
  const { name: k, extra: P } = s;
@@ -102,9 +102,9 @@ const oe = (l, i) => {
102
102
  type: "JSExpression",
103
103
  value: ""
104
104
  }), P && n.enableExtraParams && (m[r].params = P), m[r].value = `this.${k}`, $e().addHistory();
105
- }, d = () => {
105
+ }, c = () => {
106
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), f = (s) => {
107
+ }, D = (s) => !s, X = (s) => u == null ? void 0 : u().includes(s), ne = (s) => !lt.test(s), v = (s) => {
108
108
  const r = [
109
109
  { validator: D, tip: F.empty },
110
110
  { validator: X, tip: F.exist },
@@ -156,8 +156,8 @@ const oe = (l, i) => {
156
156
  state: n,
157
157
  editor: x,
158
158
  editorOptions: t,
159
- dialogVisible: ve,
160
- change: f,
159
+ dialogVisible: fe,
160
+ change: v,
161
161
  confirm: () => {
162
162
  if (n.tipError)
163
163
  return;
@@ -172,25 +172,25 @@ const oe = (l, i) => {
172
172
  }), Z(), Ie();
173
173
  },
174
174
  closeDialog: () => {
175
- d(), Ie();
175
+ c(), Ie();
176
176
  },
177
177
  openedDialog: () => {
178
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), d();
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
181
  selectMethod: C
182
182
  };
183
183
  }
184
- }, R = (l) => (me("data-v-6a54279c"), l = l(), _e(), l), dt = { 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" }, vt = ["onClick"], ft = { 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 = {
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
187
  }, Nt = {
188
188
  key: 0,
189
189
  class: "params-tip"
190
190
  }, Ct = { class: "bind-dialog-footer" };
191
- function Dt(l, i, b, e, c, u) {
192
- const w = v("tiny-search"), y = v("icon-yes"), E = v("tiny-input"), x = v("icon-help-query"), n = v("tiny-popover"), t = v("tiny-switch"), a = v("monaco-editor"), C = v("tiny-button"), N = v("tiny-dialog-box");
193
- return ce((h(), U(N, {
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,
@@ -217,36 +217,36 @@ function Dt(l, i, b, e, c, u) {
217
217
  ])
218
218
  ]),
219
219
  default: _(() => [
220
- o("div", dt, [
220
+ o("div", ct, [
221
221
  o("div", rt, [
222
222
  pt,
223
223
  o("div", mt, [
224
224
  o("div", _t, [
225
225
  p(w, {
226
226
  modelValue: e.state.searchValue,
227
- "onUpdate:modelValue": i[0] || (i[0] = (d) => e.state.searchValue = d),
227
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => e.state.searchValue = c),
228
228
  placeholder: "搜索"
229
229
  }, null, 8, ["modelValue"]),
230
230
  o("ul", ut, [
231
- (h(!0), S(G, null, de(e.state.filterMethodList, (d) => (h(), S("li", {
232
- key: d.name,
233
- onClick: (D) => e.selectMethod(d)
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: J(["action-name", { active: d.name === e.state.bindMethodInfo.name }])
236
+ class: J(["action-name", { active: c.name === e.state.bindMethodInfo.name }])
237
237
  }, [
238
- M(L(d.title || d.name) + " ", 1),
239
- d.name === e.state.bindMethodInfo.name ? (h(), U(y, {
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
242
  })) : H("", !0)
243
243
  ], 2)
244
- ], 8, vt))), 128))
244
+ ], 8, ft))), 128))
245
245
  ])
246
246
  ])
247
247
  ])
248
248
  ]),
249
- o("div", ft, [
249
+ o("div", vt, [
250
250
  o("div", {
251
251
  class: J(["content-right-top", { "tip-error": e.state.tipError }])
252
252
  }, [
@@ -254,7 +254,7 @@ function Dt(l, i, b, e, c, u) {
254
254
  p(E, {
255
255
  modelValue: e.state.bindMethodInfo.name,
256
256
  "onUpdate:modelValue": [
257
- i[1] || (i[1] = (d) => e.state.bindMethodInfo.name = d),
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,
@@ -287,7 +287,7 @@ function Dt(l, i, b, e, c, u) {
287
287
  }),
288
288
  p(t, {
289
289
  modelValue: e.state.enableExtraParams,
290
- "onUpdate:modelValue": i[2] || (i[2] = (d) => e.state.enableExtraParams = d),
290
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => e.state.enableExtraParams = c),
291
291
  class: "set-switch",
292
292
  "show-text": !0
293
293
  }, {
@@ -320,7 +320,7 @@ function Dt(l, i, b, e, c, u) {
320
320
  [re, e.dialogVisible]
321
321
  ]);
322
322
  }
323
- const At = /* @__PURE__ */ oe(ct, [["render", Dt], ["__scopeId", "data-v-6a54279c"]]), Pt = {
323
+ const At = /* @__PURE__ */ oe(dt, [["render", Dt], ["__scopeId", "data-v-937af0d2"]]), Pt = {
324
324
  onClick: {
325
325
  label: {
326
326
  zh_CN: "鼠标单击时触发"
@@ -505,7 +505,7 @@ const St = { class: "footer" }, Bt = {
505
505
  },
506
506
  emits: ["closeDialog", "addEvent"],
507
507
  setup(l, { emit: i }) {
508
- const b = l, e = i, c = te({
508
+ const b = l, e = i, d = te({
509
509
  eventDescription: "",
510
510
  eventName: ""
511
511
  }), u = K(null), y = {
@@ -519,11 +519,11 @@ const St = { class: "footer" }, Bt = {
519
519
  { required: !0, message: "必填" },
520
520
  {
521
521
  validator: (n, t, a) => {
522
- if (b.componentEvents[c.eventName]) {
522
+ if (b.componentEvents[d.eventName]) {
523
523
  a(new Error("事件名已存在"));
524
524
  return;
525
525
  }
526
- if (!Mt(c.eventName)) {
526
+ if (!Mt(d.eventName)) {
527
527
  a(new Error("请输入正确的浏览器事件名"));
528
528
  return;
529
529
  }
@@ -537,7 +537,7 @@ const St = { class: "footer" }, Bt = {
537
537
  u.value && u.value.validate((n) => {
538
538
  if (!n)
539
539
  return;
540
- const { eventName: t, eventDescription: a } = c;
540
+ const { eventName: t, eventDescription: a } = d;
541
541
  e("addEvent", { eventName: t, eventDescription: a });
542
542
  });
543
543
  };
@@ -572,7 +572,7 @@ const St = { class: "footer" }, Bt = {
572
572
  p(O(Ue), {
573
573
  ref_key: "ruleForm",
574
574
  ref: u,
575
- model: c,
575
+ model: d,
576
576
  rules: y,
577
577
  "label-width": "100px",
578
578
  "inline-message": !0,
@@ -588,8 +588,8 @@ const St = { class: "footer" }, Bt = {
588
588
  }, {
589
589
  default: _(() => [
590
590
  p(O(pe), {
591
- modelValue: c.eventName,
592
- "onUpdate:modelValue": t[0] || (t[0] = (a) => c.eventName = a),
591
+ modelValue: d.eventName,
592
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => d.eventName = a),
593
593
  placeholder: "小驼峰格式,如:onDrag"
594
594
  }, null, 8, ["modelValue"])
595
595
  ]),
@@ -602,8 +602,8 @@ const St = { class: "footer" }, Bt = {
602
602
  }, {
603
603
  default: _(() => [
604
604
  p(O(pe), {
605
- modelValue: c.eventDescription,
606
- "onUpdate:modelValue": t[1] || (t[1] = (a) => c.eventDescription = a)
605
+ modelValue: d.eventDescription,
606
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => d.eventDescription = a)
607
607
  }, null, 8, ["modelValue"])
608
608
  ]),
609
609
  _: 1
@@ -629,7 +629,7 @@ const Lt = {
629
629
  },
630
630
  inheritAttrs: !1,
631
631
  setup() {
632
- const { PLUGIN_NAME: l, activePlugin: i, getPluginApi: b } = Pe(), { pageState: e } = ue(), { getBlockEvents: c, getCurrentBlock: u, removeEventLink: w } = Fe(), { getMaterial: y } = Je(), { confirm: E } = Re(), { highlightMethod: x } = b(l.PageController), n = te({
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({
633
633
  eventName: "",
634
634
  // 事件名称
635
635
  eventBinding: null,
@@ -641,13 +641,13 @@ const Lt = {
641
641
  }), t = W(() => !!e.isBlock), a = W(() => Object.keys(n.bindActions).length === 0);
642
642
  Ce(() => {
643
643
  var Z, se, ae, le, s;
644
- const f = (Z = e == null ? void 0 : e.currentSchema) == null ? void 0 : Z.componentName, A = y(f);
644
+ const v = (Z = e == null ? void 0 : e.currentSchema) == null ? void 0 : Z.componentName, A = y(v);
645
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
646
  const B = ((s = e == null ? void 0 : e.currentSchema) == null ? void 0 : s.props) || {}, ie = Object.keys(B);
647
647
  n.bindActions = {}, Object.entries(n.componentEvents).forEach(([r, m]) => {
648
648
  var k, P, V;
649
649
  if (ie.indexOf(r) > -1) {
650
- const g = B[r], { value: T, params: fe } = g, Me = !fe && ((P = (k = T.match(/\((.+)\)$/)) == null ? void 0 : k[1]) == null ? void 0 : P.split(",")) || fe, z = {
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
651
  eventName: r,
652
652
  ref: "",
653
653
  event: B[r],
@@ -655,7 +655,7 @@ const Lt = {
655
655
  };
656
656
  if (z.event.type === "JSExpression" && (z.ref = z.event.value.replace("this.", "").replace(/\(.*\)$/, "")), e.isBlock) {
657
657
  z.metaEvent = m;
658
- const he = c(u()), ge = (V = e == null ? void 0 : e.currentSchema) == null ? void 0 : V.id;
658
+ const he = d(u()), ge = (V = e == null ? void 0 : e.currentSchema) == null ? void 0 : V.id;
659
659
  ge && he && Object.entries(he).forEach(([Se, j]) => {
660
660
  var be, ye;
661
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);
@@ -665,33 +665,33 @@ const Lt = {
665
665
  }
666
666
  });
667
667
  });
668
- const C = (f, A) => {
669
- A && n.bindActions[f.eventName] || (n.eventBinding = f, st());
670
- }, N = (f) => {
668
+ const C = (v, A) => {
669
+ A && n.bindActions[v.eventName] || (n.eventBinding = v, st());
670
+ }, N = (v) => {
671
671
  var B;
672
- Object.keys(((B = e == null ? void 0 : e.currentSchema) == null ? void 0 : B.props) || {}).indexOf(f.eventName) > -1 && delete e.currentSchema.props[f.eventName];
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];
673
673
  };
674
674
  return {
675
675
  state: n,
676
676
  isBlock: t,
677
677
  isEmpty: a,
678
- delEvent: (f) => {
678
+ delEvent: (v) => {
679
679
  E({
680
680
  title: "提示",
681
- message: `您确定要删除事件 ${f.eventName} 吗?`,
681
+ message: `您确定要删除事件 ${v.eventName} 吗?`,
682
682
  exec() {
683
- e.isBlock && w({ linked: f.linked }), N(f);
683
+ e.isBlock && w({ linked: v.linked }), N(v);
684
684
  }
685
685
  });
686
686
  },
687
- openCodePanel: (f) => {
688
- f && i(l.PageController).then(() => {
689
- x && x(f.ref);
687
+ openCodePanel: (v) => {
688
+ v && i(l.PageController).then(() => {
689
+ x && x(v.ref);
690
690
  });
691
691
  },
692
692
  openActionDialog: C,
693
- handleAddEvent: (f) => {
694
- const { eventName: A, eventDescription: B } = f;
693
+ handleAddEvent: (v) => {
694
+ const { eventName: A, eventDescription: B } = v;
695
695
  Object.assign(n.componentEvents, {
696
696
  [A]: {
697
697
  label: {
@@ -709,8 +709,8 @@ const Lt = {
709
709
  }
710
710
  }), n.showBindEventDialog = !1;
711
711
  },
712
- handleToggleAddEventDialog: (f) => {
713
- n.showBindEventDialog = f;
712
+ handleToggleAddEventDialog: (v) => {
713
+ n.showBindEventDialog = v;
714
714
  }
715
715
  };
716
716
  }
@@ -723,8 +723,8 @@ const Lt = {
723
723
  /* @__PURE__ */ o("span", { class: "empty-bind-event-tip" }, "绑定事件"),
724
724
  /* @__PURE__ */ M("为画布中所选元素增加事件")
725
725
  ], -1));
726
- function eo(l, i, b, e, c, u) {
727
- const w = v("icon-help-query"), y = v("tiny-popover"), E = v("tiny-button"), x = v("icon-chevron-down"), n = v("block-link-event"), t = v("svg-button"), a = v("svg-icon"), C = v("bind-events-dialog"), N = v("add-events-dialog");
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
728
  return h(), S(G, null, [
729
729
  o("div", Tt, [
730
730
  o("div", Ut, [
@@ -732,7 +732,7 @@ function eo(l, i, b, e, c, u) {
732
732
  p(E, {
733
733
  class: "title add-custom-event-button",
734
734
  "reset-time": 0,
735
- onClick: i[0] || (i[0] = Oe((d) => e.handleToggleAddEventDialog(!0), ["stop"]))
735
+ onClick: i[0] || (i[0] = Oe((c) => e.handleToggleAddEventDialog(!0), ["stop"]))
736
736
  }, {
737
737
  default: _(() => [
738
738
  jt,
@@ -769,14 +769,14 @@ function eo(l, i, b, e, c, u) {
769
769
  ]),
770
770
  default: _(() => [
771
771
  o("ul", Jt, [
772
- (h(!0), S(G, null, de(e.state.componentEvents, (d, D) => {
772
+ (h(!0), S(G, null, ce(e.state.componentEvents, (c, D) => {
773
773
  var X;
774
774
  return h(), S("li", {
775
775
  key: D,
776
776
  class: J(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[D] }]),
777
777
  onClick: (ne) => e.openActionDialog({ eventName: D }, !0)
778
778
  }, [
779
- o("div", null, L(D) + "  " + L(((X = d == null ? void 0 : d.label) == null ? void 0 : X.zh_CN) || D), 1)
779
+ o("div", null, L(D) + "  " + L(((X = c == null ? void 0 : c.label) == null ? void 0 : X.zh_CN) || D), 1)
780
780
  ], 10, Rt);
781
781
  }), 128))
782
782
  ])
@@ -784,46 +784,46 @@ function eo(l, i, b, e, c, u) {
784
784
  _: 1
785
785
  })
786
786
  ]),
787
- ce(o("ul", Xt, [
788
- (h(!0), S(G, null, de(e.state.bindActions, (d) => (h(), S("li", {
789
- key: d.eventName
787
+ de(o("ul", Xt, [
788
+ (h(!0), S(G, null, ce(e.state.bindActions, (c) => (h(), S("li", {
789
+ key: c.eventName
790
790
  }, [
791
791
  o("div", qt, [
792
792
  o("div", {
793
793
  class: "binding-name",
794
- onClick: (D) => e.openActionDialog(d)
794
+ onClick: (D) => e.openActionDialog(c)
795
795
  }, [
796
796
  o("div", null, [
797
- M(L(d.eventName), 1),
798
- o("span", null, L(e.state.componentEvents[d.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)
799
799
  ]),
800
800
  o("div", {
801
- class: J({ linked: d.linked })
802
- }, L(d.linkedEventName), 3),
803
- o("span", Kt, L(d.ref), 1)
801
+ class: J({ linked: c.linked })
802
+ }, L(c.linkedEventName), 3),
803
+ o("span", Kt, L(c.ref), 1)
804
804
  ], 8, Ht),
805
805
  o("div", Yt, [
806
806
  e.isBlock ? (h(), U(n, {
807
807
  key: 0,
808
- data: d
808
+ data: c
809
809
  }, null, 8, ["data"])) : H("", !0),
810
810
  p(t, {
811
811
  name: "plugin-icon-page-schema",
812
812
  tips: "定位到代码",
813
813
  placement: "top",
814
- onClick: (D) => e.openCodePanel(d)
814
+ onClick: (D) => e.openCodePanel(c)
815
815
  }, null, 8, ["onClick"]),
816
816
  p(t, {
817
817
  name: "setting",
818
818
  tips: "设置",
819
819
  placement: "top",
820
- onClick: (D) => e.openActionDialog(d, !1)
820
+ onClick: (D) => e.openActionDialog(c, !1)
821
821
  }, null, 8, ["onClick"]),
822
822
  p(t, {
823
823
  name: "delete",
824
824
  tips: "删除",
825
825
  placement: "top",
826
- onClick: (D) => e.delEvent(d)
826
+ onClick: (D) => e.delEvent(c)
827
827
  }, null, 8, ["onClick"])
828
828
  ])
829
829
  ])
@@ -831,7 +831,7 @@ function eo(l, i, b, e, c, u) {
831
831
  ], 512), [
832
832
  [re, !e.isEmpty]
833
833
  ]),
834
- ce(o("div", Qt, [
834
+ de(o("div", Qt, [
835
835
  o("div", Zt, [
836
836
  p(a, {
837
837
  name: "empty-action",
@@ -850,7 +850,7 @@ function eo(l, i, b, e, c, u) {
850
850
  p(N, {
851
851
  visible: e.state.showBindEventDialog,
852
852
  componentEvents: e.state.componentEvents,
853
- onCloseDialog: i[1] || (i[1] = (d) => e.handleToggleAddEventDialog(!1)),
853
+ onCloseDialog: i[1] || (i[1] = (c) => e.handleToggleAddEventDialog(!1)),
854
854
  onAddEvent: e.handleAddEvent
855
855
  }, null, 8, ["visible", "componentEvents", "onAddEvent"])
856
856
  ], 64);
@@ -872,7 +872,7 @@ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
872
872
  }), e = () => {
873
873
  var t, a;
874
874
  return ((a = (t = I().getSchema()) == null ? void 0 : t.loopArgs) == null ? void 0 : a[1]) || $.INDEX;
875
- }, c = te({
875
+ }, d = te({
876
876
  loopData: {
877
877
  type: q.JSEXPRESSION,
878
878
  value: "[]"
@@ -881,16 +881,16 @@ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
881
881
  loopIndex: "index",
882
882
  isLoop: W(() => {
883
883
  var t;
884
- return ((t = c.loopData) == null ? void 0 : t.type) === q.JSEXPRESSION;
884
+ return ((t = d.loopData) == null ? void 0 : t.type) === q.JSEXPRESSION;
885
885
  }),
886
886
  loopKey: "",
887
887
  shouldUpdate: !1
888
888
  });
889
889
  Ee(
890
- () => [l == null ? void 0 : l.currentSchema, c.shouldUpdate],
890
+ () => [l == null ? void 0 : l.currentSchema, d.shouldUpdate],
891
891
  ([t]) => {
892
- var a, C, N, d;
893
- i.value = (t == null ? void 0 : t.condition) === void 0 ? !0 : t == null ? void 0 : t.condition, c.loopData = t == null ? void 0 : t.loop, c.loopItem = ((a = t == null ? void 0 : t.loopArgs) == null ? void 0 : a[0]) || "", c.loopIndex = ((C = t == null ? void 0 : t.loopArgs) == null ? void 0 : C[1]) || "", c.loopKey = ((d = (N = t == null ? void 0 : t.props) == null ? void 0 : N.key) == null ? void 0 : d.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) || "";
894
894
  }
895
895
  );
896
896
  const u = (t = "") => {
@@ -904,17 +904,17 @@ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
904
904
  t && !C && (N.key = {
905
905
  type: q.JSEXPRESSION,
906
906
  value: t
907
- }), t || (c.isLoop ? N.key = {
907
+ }), t || (d.isLoop ? N.key = {
908
908
  type: q.JSEXPRESSION,
909
909
  value: e()
910
910
  } : delete N.key);
911
911
  };
912
- Ee([() => c.isLoop, () => c.loopIndex], () => {
913
- !c.loopKey && c.isLoop && u(e()), c.isLoop || u("");
912
+ Ee([() => d.isLoop, () => d.loopIndex], () => {
913
+ !d.loopKey && d.isLoop && u(e()), d.isLoop || u("");
914
914
  });
915
915
  const w = () => {
916
916
  var t;
917
- c.loopData = (t = I().getSchema()) == null ? void 0 : t.loop;
917
+ d.loopData = (t = I().getSchema()) == null ? void 0 : t.loop;
918
918
  }, y = (t) => {
919
919
  I().getSchema() && (t === !1 || t != null && t.type ? I().getSchema().condition = t : delete I().getSchema().condition, nt(), i.value = t);
920
920
  }, E = (t) => {
@@ -924,9 +924,9 @@ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
924
924
  condition: i,
925
925
  setConfig: y,
926
926
  isBind: b,
927
- state: c,
927
+ state: d,
928
928
  setLoop: (t) => {
929
- t ? (I().getSchema().loop = t != null && t.type ? t : tt(t), E($.INDEX)) : (u(), delete I().getSchema().loop, delete I().getSchema().loopArgs), c.shouldUpdate = !c.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;
930
930
  },
931
931
  setLoopItem: (t) => {
932
932
  I().getSchema().loopArgs ? I().getSchema().loopArgs[0] = t || $.ITEM : I().getSchema().loopArgs = [t, $.INDEX];
@@ -944,10 +944,10 @@ const { DEFAULT_LOOP_NAME: $ } = it, oo = {
944
944
  }, co = { class: "advnce-config" }, ro = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)), po = { class: "advanced-config-form-item" }, mo = {
945
945
  key: 1,
946
946
  class: "binding-state text-ellipsis-multiple"
947
- }, _o = { class: "advnce-config" }, uo = /* @__PURE__ */ Q(() => /* @__PURE__ */ o("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)), vo = { class: "advanced-config-form-item" }, fo = { 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, c, u) {
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) {
949
949
  var t;
950
- const w = v("meta-switch"), y = v("meta-bind-variable"), E = v("meta-code-editor"), x = v("meta-input"), n = v("tiny-tooltip");
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
951
  return h(), S("div", no, [
952
952
  o("div", io, [
953
953
  so,
@@ -992,7 +992,7 @@ function ko(l, i, b, e, c, u) {
992
992
  ]),
993
993
  o("div", _o, [
994
994
  uo,
995
- o("div", vo, [
995
+ o("div", fo, [
996
996
  p(x, {
997
997
  modelValue: e.state.loopItem,
998
998
  "onUpdate:modelValue": [
@@ -1003,7 +1003,7 @@ function ko(l, i, b, e, c, u) {
1003
1003
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
1004
1004
  ])
1005
1005
  ]),
1006
- o("div", fo, [
1006
+ o("div", vo, [
1007
1007
  ho,
1008
1008
  o("div", go, [
1009
1009
  p(x, {
@@ -1042,7 +1042,7 @@ const xo = /* @__PURE__ */ oe(oo, [["render", ko], ["__scopeId", "data-v-ef405cb
1042
1042
  const i = K(["bindEvent", "advancedConfig"]);
1043
1043
  return (b, e) => (h(), U(O(je), {
1044
1044
  modelValue: i.value,
1045
- "onUpdate:modelValue": e[0] || (e[0] = (c) => i.value = c)
1045
+ "onUpdate:modelValue": e[0] || (e[0] = (d) => i.value = d)
1046
1046
  }, {
1047
1047
  default: _(() => [
1048
1048
  p(O(xe), {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .bind-event-dialog-content[data-v-6a54279c]{display:flex;min-width:700px}.bind-event-dialog-content .dialog-content-left[data-v-6a54279c]{margin-right:30px;width:30%;display:flex;flex-direction:column}.bind-event-dialog-content .dialog-content-left .left-title[data-v-6a54279c]{font-weight:600}.bind-event-dialog-content .dialog-content-left .left-list-wrap[data-v-6a54279c]{border:1px solid var(--ti-lowcode-bind-event-dialog-content-left-border-color);border-radius:4px;height:300px;margin-top:12px;display:flex;flex:1}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list[data-v-6a54279c]{flex:1;padding:12px}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-list-wrap[data-v-6a54279c]{height:250px;margin-top:8px;overflow:auto}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name[data-v-6a54279c]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name.active[data-v-6a54279c]{background:var(--ti-lowcode-bind-event-dialog-content-left-list-item-active-bg-color)}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name .action-selected-icon[data-v-6a54279c]{font-size:14px;color:var(--ti-lowcode-bind-event-dialog-action-selected-icon-color)}.bind-event-dialog-content .content-right[data-v-6a54279c]{width:68%}.bind-event-dialog-content .content-right .content-right-top .new-action-tip[data-v-6a54279c]{margin:8px 0;color:var(--ti-lowcode-bind-event-dialog-new-action-tip-color)}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco[data-v-6a54279c]{border:1px solid var(--ti-lowcode-bind-event-dialog-content-right-monaco-border-color);overflow:hidden;position:relative}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco .monaco-editor[data-v-6a54279c]{width:100%;height:216px;padding:12px 8px;color:var(--ti-lowcode-toolbar-breadcrumb-color)}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco .mark[data-v-6a54279c]{width:100%;height:216px;position:absolute;z-index:1;top:0;background-color:var(--ti-lowcode-bind-event-dialog-mark-bg-color)}.bind-event-dialog-content .content-right .content-right-bottom .params-tip[data-v-6a54279c]{margin:8px 0;color:var(--ti-lowcode-error-tip-color)}.bind-event-dialog-content .content-right .content-right-top .content-right-title[data-v-6a54279c],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title[data-v-6a54279c]{font-weight:600;margin-bottom:12px}.bind-event-dialog-content .content-right .content-right-top .content-right-title .set-params-tip[data-v-6a54279c],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title .set-params-tip[data-v-6a54279c]{margin-right:3px}.bind-event-dialog-content .content-right .content-right-top .content-right-title .set-switch[data-v-6a54279c],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title .set-switch[data-v-6a54279c]{width:60px;margin-left:10px}.bind-event-dialog-content .content-right .tip-error .content-right-monaco[data-v-6a54279c]{border:1px solid var(--ti-lowcode-error-tip-color)}.bind-event-dialog-content .content-right .tip-error .params-tip[data-v-6a54279c],.bind-event-dialog-content .content-right .tip-error .new-action-tip[data-v-6a54279c]{color:var(--ti-lowcode-error-tip-color)}.add-custom-event-form[data-v-932b189c] .tiny-form-item__label{padding-left:0}.footer[data-v-932b189c]{display:flex;justify-content:flex-end}.custom-event[data-v-e09a30b7]{padding:10px 20px 10px 10px}.custom-event footer[data-v-e09a30b7]{text-align:center}.bind-action-list .bind-actions[data-v-e09a30b7]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-e09a30b7]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-e09a30b7]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-e09a30b7]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-e09a30b7]{color:var(--ti-lowcode-events-event-bind-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--ti-lowcode-events-bind-action-item-color);border-bottom:1px solid var(--ti-lowcode-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]:first-child{border-top:1px solid var(--ti-lowcode-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]:hover{background:var(--ti-lowcode-events-bind-action-item-hover-bg-color)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-e09a30b7]{background-color:var(--ti-lowcode-events-bind-action-item-linked-bg-color);color:var(--ti-lowcode-events-bind-action-item-linked-color)}.bind-action-list .popover-head[data-v-e09a30b7]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .head-left[data-v-e09a30b7]{margin-right:8px}.bind-action-list .popover-head .head-left .add-custom-event-button[data-v-e09a30b7]{padding:0 16px;font-size:12px}.bind-action-list .popover-head .head-left .add-custom-event-button .custom-event-button-text[data-v-e09a30b7]{margin-right:4px}.bind-action-list .popover-head .bind-event-btn[data-v-e09a30b7]{padding:0 16px;font-size:12px}.bind-action-list .empty-action[data-v-e09a30b7]{display:flex;flex-direction:column;align-items:center;color:var(--ti-lowcode-events-empty-action-color)}.bind-action-list .empty-action .empty-action-icon[data-v-e09a30b7]{margin-top:20px;font-size:48px}.bind-action-list .empty-action .icon[data-v-e09a30b7]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-e09a30b7]{margin-top:4px}.bind-action-list .empty-action .text[data-v-e09a30b7]{margin-top:12px}.bind-action-list .empty-action .empty-bind-event-tip[data-v-e09a30b7]{color:var(--ti-lowcode-events-empty-action-tips-strong-color)}.bind-event-list[data-v-e09a30b7]{color:var(--ti-lowcode-events-bind-event-list-color)}.bind-event-list-item-notallow[data-v-e09a30b7]{cursor:not-allowed;pointer-events:none;color:var(--ti-lowcode-events-bind-event-list-item-disabled-color)}.bind-event-list-item[data-v-e09a30b7]{padding:8px 12px}.bind-event-list-item[data-v-e09a30b7]:hover{cursor:pointer;background:var(--lowcode-events-bind-event-list-item-hover-bg-color)}.add-custom-event-tip[data-v-e09a30b7]{color:var(--ti-lowcode-events-add-custom-event-tips-color)}.add-custom-event-tip .event-tip-highlight[data-v-e09a30b7]{color:var(--ti-lowcode-event-add-custom-event-tips-highlight-color)}.advanced-config-container .advnce-config[data-v-ef405cbc]{padding:10px;align-items:center;display:flex;column-gap:12px;color:var(--ti-lowcode-events-advanced-config-color)}.advanced-config-container .advnce-config label[data-v-ef405cbc]{width:80px;word-break:keep-all;color:var(--ti-lowcode-events-advanced-label-color);flex-shrink:0}.advanced-config-container .advnce-config .advanced-config-form-item[data-v-ef405cbc]{display:grid;grid-template-columns:1fr auto}.advanced-config-container .advnce-config .binding-state[data-v-ef405cbc]{box-sizing:border-box;background:var(--ti-lowcode-events-advanced-binding-state-bg-color);color:var(--ti-lowcode-events-advanced-binding-state-color);font-size:12px;height:30px;line-height:22px;padding:4px 8px;--ellipsis-line: 1;border-radius:6px}.advanced-config-container .advnce-config .advance-config-loop-wrap .advance-item[data-v-ef405cbc]{width:100%}
1
+ .bind-event-dialog-content[data-v-937af0d2]{display:flex;min-width:700px}.bind-event-dialog-content .dialog-content-left[data-v-937af0d2]{margin-right:30px;width:30%;display:flex;flex-direction:column}.bind-event-dialog-content .dialog-content-left .left-title[data-v-937af0d2]{font-weight:600}.bind-event-dialog-content .dialog-content-left .left-list-wrap[data-v-937af0d2]{border:1px solid var(--ti-lowcode-bind-event-dialog-content-left-border-color);border-radius:4px;height:300px;margin-top:12px;display:flex;flex:1}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list[data-v-937af0d2]{flex:1;padding:12px}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-list-wrap[data-v-937af0d2]{height:250px;margin-top:8px;overflow:auto}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name[data-v-937af0d2]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name.active[data-v-937af0d2]{background:var(--ti-lowcode-bind-event-dialog-content-left-list-item-active-bg-color)}.bind-event-dialog-content .dialog-content-left .left-list-wrap .left-action-list .action-name .action-selected-icon[data-v-937af0d2]{font-size:14px;color:var(--ti-lowcode-bind-event-dialog-action-selected-icon-color)}.bind-event-dialog-content .content-right[data-v-937af0d2]{width:68%}.bind-event-dialog-content .content-right .content-right-top .new-action-tip[data-v-937af0d2]{margin:8px 0;color:var(--ti-lowcode-bind-event-dialog-new-action-tip-color)}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco[data-v-937af0d2]{border:1px solid var(--ti-lowcode-bind-event-dialog-content-right-monaco-border-color);overflow:hidden;position:relative}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco .monaco-editor[data-v-937af0d2]{width:100%;height:216px;padding:12px 8px;color:var(--ti-lowcode-toolbar-breadcrumb-color)}.bind-event-dialog-content .content-right .content-right-bottom .content-right-monaco .mark[data-v-937af0d2]{width:100%;height:216px;position:absolute;z-index:1;top:0;background-color:var(--ti-lowcode-bind-event-dialog-mark-bg-color)}.bind-event-dialog-content .content-right .content-right-bottom .params-tip[data-v-937af0d2]{margin:8px 0;color:var(--ti-lowcode-error-tip-color)}.bind-event-dialog-content .content-right .content-right-top .content-right-title[data-v-937af0d2],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title[data-v-937af0d2]{font-weight:600;margin-bottom:12px}.bind-event-dialog-content .content-right .content-right-top .content-right-title .set-params-tip[data-v-937af0d2],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title .set-params-tip[data-v-937af0d2]{margin-right:3px}.bind-event-dialog-content .content-right .content-right-top .content-right-title .set-switch[data-v-937af0d2],.bind-event-dialog-content .content-right .content-right-bottom .content-right-title .set-switch[data-v-937af0d2]{width:60px;margin-left:10px}.bind-event-dialog-content .content-right .tip-error .content-right-monaco[data-v-937af0d2]{border:1px solid var(--ti-lowcode-error-tip-color)}.bind-event-dialog-content .content-right .tip-error .params-tip[data-v-937af0d2],.bind-event-dialog-content .content-right .tip-error .new-action-tip[data-v-937af0d2]{color:var(--ti-lowcode-error-tip-color)}.add-custom-event-form[data-v-932b189c] .tiny-form-item__label{padding-left:0}.footer[data-v-932b189c]{display:flex;justify-content:flex-end}.custom-event[data-v-e09a30b7]{padding:10px 20px 10px 10px}.custom-event footer[data-v-e09a30b7]{text-align:center}.bind-action-list .bind-actions[data-v-e09a30b7]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-e09a30b7]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-e09a30b7]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-e09a30b7]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-e09a30b7]{color:var(--ti-lowcode-events-event-bind-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--ti-lowcode-events-bind-action-item-color);border-bottom:1px solid var(--ti-lowcode-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]:first-child{border-top:1px solid var(--ti-lowcode-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-e09a30b7]:hover{background:var(--ti-lowcode-events-bind-action-item-hover-bg-color)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-e09a30b7]{background-color:var(--ti-lowcode-events-bind-action-item-linked-bg-color);color:var(--ti-lowcode-events-bind-action-item-linked-color)}.bind-action-list .popover-head[data-v-e09a30b7]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .head-left[data-v-e09a30b7]{margin-right:8px}.bind-action-list .popover-head .head-left .add-custom-event-button[data-v-e09a30b7]{padding:0 16px;font-size:12px}.bind-action-list .popover-head .head-left .add-custom-event-button .custom-event-button-text[data-v-e09a30b7]{margin-right:4px}.bind-action-list .popover-head .bind-event-btn[data-v-e09a30b7]{padding:0 16px;font-size:12px}.bind-action-list .empty-action[data-v-e09a30b7]{display:flex;flex-direction:column;align-items:center;color:var(--ti-lowcode-events-empty-action-color)}.bind-action-list .empty-action .empty-action-icon[data-v-e09a30b7]{margin-top:20px;font-size:48px}.bind-action-list .empty-action .icon[data-v-e09a30b7]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-e09a30b7]{margin-top:4px}.bind-action-list .empty-action .text[data-v-e09a30b7]{margin-top:12px}.bind-action-list .empty-action .empty-bind-event-tip[data-v-e09a30b7]{color:var(--ti-lowcode-events-empty-action-tips-strong-color)}.bind-event-list[data-v-e09a30b7]{color:var(--ti-lowcode-events-bind-event-list-color)}.bind-event-list-item-notallow[data-v-e09a30b7]{cursor:not-allowed;pointer-events:none;color:var(--ti-lowcode-events-bind-event-list-item-disabled-color)}.bind-event-list-item[data-v-e09a30b7]{padding:8px 12px}.bind-event-list-item[data-v-e09a30b7]:hover{cursor:pointer;background:var(--lowcode-events-bind-event-list-item-hover-bg-color)}.add-custom-event-tip[data-v-e09a30b7]{color:var(--ti-lowcode-events-add-custom-event-tips-color)}.add-custom-event-tip .event-tip-highlight[data-v-e09a30b7]{color:var(--ti-lowcode-event-add-custom-event-tips-highlight-color)}.advanced-config-container .advnce-config[data-v-ef405cbc]{padding:10px;align-items:center;display:flex;column-gap:12px;color:var(--ti-lowcode-events-advanced-config-color)}.advanced-config-container .advnce-config label[data-v-ef405cbc]{width:80px;word-break:keep-all;color:var(--ti-lowcode-events-advanced-label-color);flex-shrink:0}.advanced-config-container .advnce-config .advanced-config-form-item[data-v-ef405cbc]{display:grid;grid-template-columns:1fr auto}.advanced-config-container .advnce-config .binding-state[data-v-ef405cbc]{box-sizing:border-box;background:var(--ti-lowcode-events-advanced-binding-state-bg-color);color:var(--ti-lowcode-events-advanced-binding-state-color);font-size:12px;height:30px;line-height:22px;padding:4px 8px;--ellipsis-line: 1;border-radius:6px}.advanced-config-container .advnce-config .advance-config-loop-wrap .advance-item[data-v-ef405cbc]{width:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-setting-events",
3
- "version": "1.0.3",
3
+ "version": "1.0.4-alpha.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -24,10 +24,10 @@
24
24
  "license": "MIT",
25
25
  "homepage": "https://opentiny.design/tiny-engine",
26
26
  "dependencies": {
27
- "@opentiny/tiny-engine-canvas": "1.0.3",
28
- "@opentiny/tiny-engine-common": "1.0.2",
29
- "@opentiny/tiny-engine-controller": "1.0.3",
30
- "@opentiny/tiny-engine-utils": "1.0.4",
27
+ "@opentiny/tiny-engine-canvas": "1.0.4-alpha.0",
28
+ "@opentiny/tiny-engine-common": "1.0.3-alpha.0",
29
+ "@opentiny/tiny-engine-controller": "1.0.4-alpha.0",
30
+ "@opentiny/tiny-engine-utils": "1.0.5-alpha.0",
31
31
  "@opentiny/vue": "~3.10.0",
32
32
  "@opentiny/vue-icon": "~3.10.0"
33
33
  },
@@ -39,5 +39,5 @@
39
39
  "peerDependencies": {
40
40
  "vue": "^3.4.15"
41
41
  },
42
- "gitHead": "9a6cce3988accb39c97a9a21169c022c65a8e27f"
42
+ "gitHead": "8cba0b459d0c0829554dd8adab11fe60a4931acd"
43
43
  }