@kp-ui/lowcode 2.14.0-beta.23 → 2.14.0-beta.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-beta.23",
3
+ "version": "2.14.0-beta.24",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as L, ref as p, computed as a, resolveComponent as B, createBlock as u, openBlock as r, withCtx as s, createCommentVNode as m, createTextVNode as k, toDisplayString as v } from "vue";
2
2
  import { asyncExecuteFunction as y } from "../../utils/asyncExecuteFunction.js";
3
- import { executeFunction as b } from "../../utils/executeFunction.js";
3
+ import { executeFunction as C } from "../../utils/executeFunction.js";
4
4
  import { useI18n as V } from "../../utils/i18n.js";
5
5
  const E = /* @__PURE__ */ L({
6
6
  __name: "SubmitButtonRender",
@@ -13,8 +13,8 @@ const E = /* @__PURE__ */ L({
13
13
  ctx: {}
14
14
  },
15
15
  emits: ["update:dialogVisible"],
16
- setup(C, { emit: g }) {
17
- const e = C, h = g, l = p(!1), i = p(!1), { i18nt: d } = V(), c = a(() => (e == null ? void 0 : e.options) ?? {}), _ = a(() => c.value.cancelButtonHidden != null ? c.value.cancelButtonHidden === 0 : 1), x = a(() => c.value.okButtonHidden != null ? c.value.okButtonHidden === 0 : 1), w = a(
16
+ setup(g, { emit: b }) {
17
+ const e = g, _ = b, l = p(!1), i = p(!1), { i18nt: d } = V(), c = a(() => (e == null ? void 0 : e.options) ?? {}), h = a(() => c.value.cancelButtonHidden != null ? c.value.cancelButtonHidden === 0 : 1), x = a(() => c.value.okButtonHidden != null ? c.value.okButtonHidden === 0 : 1), w = a(
18
18
  () => {
19
19
  var t;
20
20
  return ((t = e.options) == null ? void 0 : t.cancelButtonLabel) || d("designer.hint.cancel");
@@ -25,14 +25,14 @@ const E = /* @__PURE__ */ L({
25
25
  return ((t = e.options) == null ? void 0 : t.okButtonLabel) || d("designer.hint.confirm");
26
26
  }
27
27
  ), f = () => {
28
- h("update:dialogVisible", !1), e.deleteWrapperNode && setTimeout(e.deleteWrapperNode, 150);
28
+ _("update:dialogVisible", !1), e.deleteWrapperNode && setTimeout(e.deleteWrapperNode, 150);
29
29
  }, F = async () => {
30
30
  var t, n;
31
31
  if (!i.value)
32
32
  try {
33
33
  if (i.value = !0, e.handleBeforeClose && !((t = e == null ? void 0 : e.handleBeforeClose) != null && t.call(e)))
34
34
  return;
35
- const o = await b({
35
+ const o = await C({
36
36
  context: e.ctx,
37
37
  functionBody: ((n = e.options) == null ? void 0 : n.onCancelButtonClick) || ""
38
38
  });
@@ -48,7 +48,7 @@ const E = /* @__PURE__ */ L({
48
48
  if (!l.value)
49
49
  try {
50
50
  l.value = !0;
51
- const n = b({
51
+ const n = C({
52
52
  context: e.ctx,
53
53
  functionBody: ((t = e.options) == null ? void 0 : t.onOkButtonClick) || ""
54
54
  });
@@ -64,17 +64,16 @@ const E = /* @__PURE__ */ L({
64
64
  const o = B("a-button"), S = B("a-space");
65
65
  return r(), u(S, { x: 8 }, {
66
66
  default: s(() => [
67
- _.value ? (r(), u(o, {
67
+ h.value ? (r(), u(o, {
68
68
  key: "cancelButtonHidden",
69
69
  loading: i.value,
70
- onClick: F,
71
- disabled: t.disabled
70
+ onClick: F
72
71
  }, {
73
72
  default: s(() => [
74
73
  k(v(w.value), 1)
75
74
  ]),
76
75
  _: 1
77
- }, 8, ["loading", "disabled"])) : m("", !0),
76
+ }, 8, ["loading"])) : m("", !0),
78
77
  x.value ? (r(), u(o, {
79
78
  type: "primary",
80
79
  key: "okButtonHidden",