@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.
- package/package.json +1 -1
- package/src/components/form-designer/form-widget/container-widget/vf-dialog-widget.vue.js +5 -5
- package/src/components/form-designer/widget-panel/containers/vf-dialog.js +3 -2
- package/src/components/form-render/dynamic-dialog.vue.js +72 -65
- package/src/components/public/ActionButtonListDialog.vue.js +82 -75
- package/src/components/public/ActionButtonListDialog.vue2.js +16 -10
- package/src/components/public/ActionButtonListRender.vue.js +12 -11
- package/src/components/public/CustomerModal/CustomerModal.vue2.js +50 -44
- package/src/lang/en-US.js +1 -0
- package/src/lang/zh-CN.js +1 -0
- package/stats.html +1 -1
- package/styles/style.css +1 -1
|
@@ -1,45 +1,46 @@
|
|
|
1
1
|
import d from "./ActionButtonListRender.vue2.js";
|
|
2
|
-
import { resolveComponent as n, createElementBlock as
|
|
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
|
|
5
|
-
function
|
|
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(),
|
|
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(),
|
|
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),
|
|
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(),
|
|
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"])) :
|
|
32
|
-
|
|
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__ */
|
|
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
|
|
2
|
-
import { useLowcode as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { TpfConfigProvider as
|
|
6
|
-
import { Skeleton as
|
|
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
|
|
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(
|
|
16
|
-
|
|
17
|
-
|
|
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:
|
|
20
|
-
_id: ((
|
|
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:
|
|
23
|
-
...
|
|
24
|
+
instance: u,
|
|
25
|
+
...i
|
|
24
26
|
};
|
|
25
27
|
}), {
|
|
26
|
-
vfdRef:
|
|
27
|
-
formConfig:
|
|
28
|
-
getComponentJson:
|
|
29
|
-
isLoading:
|
|
30
|
-
} =
|
|
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
|
-
}),
|
|
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" ? "查看" : "新增")),
|
|
36
|
-
|
|
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
|
|
39
|
-
|
|
40
|
-
}), (
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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(
|
|
48
|
-
dialogVisible:
|
|
49
|
-
"onUpdate:dialogVisible":
|
|
50
|
-
options:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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:
|
|
62
|
+
loading: r(y)
|
|
57
63
|
}, {
|
|
58
|
-
default: l(() => [s(
|
|
59
|
-
vfCtx:
|
|
64
|
+
default: l(() => [s(U, {
|
|
65
|
+
vfCtx: g.value,
|
|
60
66
|
ref_key: "vfdRef",
|
|
61
|
-
ref:
|
|
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
|
-
|
|
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