@kp-ui/lowcode 2.14.0-beta.17 → 2.14.0-beta.19

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.
@@ -1,45 +1,46 @@
1
1
  import d from "./ActionButtonListRender.vue2.js";
2
- import { resolveComponent as n, createElementBlock as s, openBlock as t, normalizeStyle as p, normalizeClass as u, createBlock as a, Teleport as b, createVNode as f, withCtx as l, Fragment as _, renderList as m, createCommentVNode as y, createTextVNode as k, toDisplayString as C } from "vue";
2
+ import { resolveComponent as n, createElementBlock as a, openBlock as t, normalizeStyle as p, normalizeClass as u, createBlock as s, Teleport as b, createVNode as f, withCtx as l, Fragment as _, renderList as g, createCommentVNode as m, createTextVNode as y, toDisplayString as k } from "vue";
3
3
  /* empty css */
4
- import g from "../../../_virtual/_plugin-vue_export-helper.js";
5
- function v(o, B, S, $, h, z) {
4
+ import C from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ function h(o, v, B, S, $, z) {
6
6
  const r = n("SvgIcon"), c = n("a-button"), i = n("a-space");
7
- return t(), s("div", {
7
+ return t(), a("div", {
8
8
  ref: "fieldEditor",
9
9
  class: u(["button-list-container", ...o.customClass]),
10
10
  style: p(o.containerStyle)
11
11
  }, [
12
- (t(), a(b, {
12
+ (t(), s(b, {
13
13
  disabled: o.isDisabled,
14
14
  to: o.getContainer
15
15
  }, [
16
16
  f(i, { size: 8 }, {
17
17
  default: l(() => [
18
- (t(!0), s(_, null, m(o.visibleButtons, (e) => (t(), a(c, {
18
+ (t(!0), a(_, null, g(o.visibleButtons, (e) => (t(), s(c, {
19
19
  key: e.key,
20
20
  type: e.type,
21
21
  danger: e.danger,
22
+ ghost: e.ghost,
22
23
  class: "tpf-button",
23
24
  disabled: o.handleDisabled(e),
24
25
  onClick: (D) => o.handleClick(e)
25
26
  }, {
26
27
  default: l(() => [
27
- e.icon ? (t(), a(r, {
28
+ e.icon ? (t(), s(r, {
28
29
  key: 0,
29
30
  "icon-class": e.icon,
30
31
  class: "button-icon"
31
- }, null, 8, ["icon-class"])) : y("", !0),
32
- k(" " + C(e.label), 1)
32
+ }, null, 8, ["icon-class"])) : m("", !0),
33
+ y(" " + k(e.label), 1)
33
34
  ]),
34
35
  _: 2
35
- }, 1032, ["type", "danger", "disabled", "onClick"]))), 128))
36
+ }, 1032, ["type", "danger", "ghost", "disabled", "onClick"]))), 128))
36
37
  ]),
37
38
  _: 1
38
39
  })
39
40
  ], 8, ["disabled", "to"]))
40
41
  ], 6);
41
42
  }
42
- const L = /* @__PURE__ */ g(d, [["render", v], ["__scopeId", "data-v-a5c375c2"]]);
43
+ const L = /* @__PURE__ */ C(d, [["render", h], ["__scopeId", "data-v-698b66f2"]]);
43
44
  export {
44
45
  L as default
45
46
  };
@@ -1,73 +1,79 @@
1
- import { defineComponent as x, getCurrentInstance as _, useAttrs as b, ref as w, computed as u, onMounted as k, createBlock as B, openBlock as V, unref as t, withCtx as l, createVNode as s, mergeProps as R, nextTick as $ } from "vue";
2
- import { useLowcode as h } from "../../../hooks/useLowcode.js";
3
- import M from "../../form-render/SubmitButtonRender.vue.js";
4
- import T from "../../form-render/index.vue.js";
5
- import { TpfConfigProvider as L, TpfModal as P } from "tmgc2-share";
6
- import { Skeleton as U } from "ant-design-vue";
1
+ import { defineComponent as k, getCurrentInstance as V, useAttrs as N, ref as d, computed as m, onMounted as R, createBlock as T, openBlock as $, unref as r, withCtx as l, createVNode as s, mergeProps as M, nextTick as B } from "vue";
2
+ import { useLowcode as L } from "../../../hooks/useLowcode.js";
3
+ import P from "../../form-render/SubmitButtonRender.vue.js";
4
+ import U from "../../form-render/index.vue.js";
5
+ import { TpfConfigProvider as A, TpfModal as F } from "tmgc2-share";
6
+ import { Skeleton as I } from "ant-design-vue";
7
7
  import "../../../utils/i18n.js";
8
- const q = /* @__PURE__ */ x({
8
+ const E = /* @__PURE__ */ k({
9
9
  __name: "CustomerModal",
10
10
  props: {
11
11
  title: {},
12
12
  type: {},
13
13
  formCode: {}
14
14
  },
15
- setup(p) {
16
- const a = _(), r = b() || {}, i = w(!1), e = p, m = u(() => {
17
- var n, o;
15
+ setup(c, {
16
+ expose: v
17
+ }) {
18
+ const u = V(), i = N() || {}, n = d(!1), e = c, g = m(() => {
19
+ var o, t;
18
20
  return {
19
- $router: a.proxy.$router,
20
- _id: ((o = (n = r == null ? void 0 : r.row) == null ? void 0 : n.record) == null ? void 0 : o._id) || null,
21
+ $router: u.proxy.$router,
22
+ _id: ((t = (o = i == null ? void 0 : i.row) == null ? void 0 : o.record) == null ? void 0 : t._id) || null,
21
23
  type: e.type,
22
- instance: a,
23
- ...r
24
+ instance: u,
25
+ ...i
24
26
  };
25
27
  }), {
26
- vfdRef: d,
27
- formConfig: c,
28
- getComponentJson: v,
29
- isLoading: C
30
- } = h({
28
+ vfdRef: a,
29
+ formConfig: C,
30
+ getComponentJson: x,
31
+ isLoading: y
32
+ } = L({
31
33
  formCode: e.formCode,
32
34
  type: e.type
33
- }), g = u(() => (console.log({
35
+ }), p = d(0), _ = m(() => (console.log({
34
36
  props: e
35
- }), e.title ? e.title : e.type === "add" ? "新增" : e.type === "edit" ? "编辑" : e.type === "view" ? "查看" : "新增")), y = async () => {
36
- i.value = !0, await $(), await v([]), console.log("attrs", r);
37
+ }), e.title ? e.title : e.type === "add" ? "新增" : e.type === "edit" ? "编辑" : e.type === "view" ? "查看" : "新增")), b = async () => {
38
+ n.value = !0, await B(), await x([]), console.log("attrs", i);
39
+ }, w = (o) => {
40
+ p.value = o;
37
41
  };
38
- return k(() => {
39
- y();
40
- }), (n, o) => (V(), B(t(L), null, {
41
- default: l(() => [s(t(P), R({
42
- visible: i.value,
43
- "onUpdate:visible": o[1] || (o[1] = (f) => i.value = f)
44
- }, n.$attrs, {
45
- title: g.value
42
+ return R(() => {
43
+ b();
44
+ }), v({
45
+ setleftText: w
46
+ }), (o, t) => ($(), T(r(A), null, {
47
+ default: l(() => [s(r(F), M({
48
+ visible: n.value,
49
+ "onUpdate:visible": t[1] || (t[1] = (f) => n.value = f)
50
+ }, o.$attrs, {
51
+ title: _.value,
52
+ leftNum: p.value
46
53
  }), {
47
- footerRight: l(() => [s(M, {
48
- dialogVisible: i.value,
49
- "onUpdate:dialogVisible": o[0] || (o[0] = (f) => i.value = f),
50
- options: t(c),
51
- handleBeforeClose: n.handleBeforeClose,
52
- ctx: t(d)
53
- }, null, 8, ["dialogVisible", "options", "handleBeforeClose", "ctx"])]),
54
- default: l(() => [s(t(U), {
54
+ footerRight: l(() => [s(P, {
55
+ dialogVisible: n.value,
56
+ "onUpdate:dialogVisible": t[0] || (t[0] = (f) => n.value = f),
57
+ options: r(C),
58
+ ctx: r(a)
59
+ }, null, 8, ["dialogVisible", "options", "ctx"])]),
60
+ default: l(() => [s(r(I), {
55
61
  active: "",
56
- loading: t(C)
62
+ loading: r(y)
57
63
  }, {
58
- default: l(() => [s(T, {
59
- vfCtx: m.value,
64
+ default: l(() => [s(U, {
65
+ vfCtx: g.value,
60
66
  ref_key: "vfdRef",
61
- ref: d
67
+ ref: a
62
68
  }, null, 8, ["vfCtx"])]),
63
69
  _: 1
64
70
  }, 8, ["loading"])]),
65
71
  _: 1
66
- }, 16, ["visible", "title"])]),
72
+ }, 16, ["visible", "title", "leftNum"])]),
67
73
  _: 1
68
74
  }));
69
75
  }
70
76
  });
71
77
  export {
72
- q as default
78
+ E as default
73
79
  };
package/src/lang/en-US.js CHANGED
@@ -441,6 +441,7 @@ const e = {
441
441
  operationButtonLabel: "Text",
442
442
  operationButtonType: "Type",
443
443
  operationButtonSize: "Size",
444
+ operationButtonGhost: "Ghost",
444
445
  operationButtonRound: "Round",
445
446
  operationButtonHidden: "Hidden",
446
447
  operationButtonDisabled: "Disabled",
package/src/lang/zh-CN.js CHANGED
@@ -439,6 +439,7 @@ const e = {
439
439
  operationButtonLabel: "文字",
440
440
  operationButtonType: "类型",
441
441
  operationButtonSize: "大小",
442
+ operationButtonGhost: "幽灵按钮",
442
443
  operationButtonRound: "圆角",
443
444
  operationButtonHidden: "隐藏",
444
445
  operationButtonDisabled: "禁用",