@kp-ui/lowcode 2.14.0-beta.5 → 2.14.0-beta.8
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/FormRender/useFormRender.js +17 -0
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +12 -12
- package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
- package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
- package/src/components/form-designer/form-widget/field-widget/cascader-widget.vue.js +32 -39
- package/src/components/form-designer/form-widget/field-widget/date-range-widget.vue.js +24 -31
- package/src/components/form-designer/form-widget/field-widget/date-widget.vue.js +26 -33
- package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
- package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +31 -38
- package/src/components/form-designer/form-widget/field-widget/number-widget.vue.js +23 -30
- package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +56 -63
- package/src/components/form-designer/form-widget/field-widget/switch-widget.vue.js +1 -1
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue.js +23 -32
- package/src/components/form-designer/form-widget/field-widget/treeSelect-widget.vue.js +26 -33
- package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
- package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
- package/src/components/form-designer/setting-panel/index.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
- package/src/components/form-render/RenderWigetList.vue.js +61 -0
- package/src/components/form-render/RenderWigetList.vue2.js +4 -0
- package/src/components/form-render/SubmitButtonRender.vue.js +33 -29
- package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
- package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
- package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
- package/src/components/form-render/container-item/grid-item.vue.js +7 -7
- package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/sub-form-item.vue.js +1 -1
- package/src/components/form-render/container-item/tab-item.vue.js +19 -19
- package/src/components/form-render/container-item/table-item.vue.js +7 -7
- package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
- package/src/components/form-render/dynamic-dialog.vue.js +70 -85
- package/src/components/form-render/index.vue.js +79 -98
- package/src/hooks/useLowcode.js +40 -39
- package/src/lang/en-US.js +3 -0
- package/src/lang/zh-CN.js +3 -0
- package/src/mixins/useDataTableMixin.js +18 -23
- package/stats.html +1 -1
- package/styles/style.css +1 -1
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import c from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const i = {
|
|
4
|
-
name: "container-item-wrapper",
|
|
5
|
-
props: {
|
|
6
|
-
widget: Object
|
|
7
|
-
},
|
|
8
|
-
computed: {
|
|
9
|
-
customClass() {
|
|
10
|
-
return this.widget.options.customClass ? this.widget.options.customClass.join(" ") : "";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
function p(t, l, m, d, u, e) {
|
|
15
|
-
return o(), s("div", {
|
|
16
|
-
class: n(["container-wrapper", [e.customClass]]),
|
|
17
|
-
style: r(t.$attrs.containerStyle)
|
|
18
|
-
}, [
|
|
19
|
-
a(t.$slots, "default")
|
|
20
|
-
], 6);
|
|
21
|
-
}
|
|
22
|
-
const _ = /* @__PURE__ */ c(i, [["render", p]]);
|
|
1
|
+
import f from "./container-item-wrapper.vue2.js";
|
|
23
2
|
export {
|
|
24
|
-
|
|
3
|
+
f as default
|
|
25
4
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { defineComponent as r, computed as s, createElementBlock as a, openBlock as i, normalizeStyle as l, normalizeClass as p, renderSlot as c } from "vue";
|
|
2
|
+
const d = /* @__PURE__ */ r({
|
|
3
|
+
name: "container-item-wrapper",
|
|
4
|
+
__name: "container-item-wrapper",
|
|
5
|
+
props: {
|
|
6
|
+
widget: {}
|
|
7
|
+
},
|
|
8
|
+
setup(o) {
|
|
9
|
+
const e = o, n = s(() => e.widget.options.customClass ? e.widget.options.customClass.join(" ") : "");
|
|
10
|
+
return (t, m) => (i(), a("div", {
|
|
11
|
+
class: p(["container-wrapper", [n.value]]),
|
|
12
|
+
style: l(t.$attrs.containerStyle)
|
|
13
|
+
}, [
|
|
14
|
+
c(t.$slots, "default")
|
|
15
|
+
], 6));
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
d as default
|
|
20
|
+
};
|
|
@@ -1,46 +1,28 @@
|
|
|
1
|
-
import p from "./container-item-wrapper.
|
|
1
|
+
import p from "./container-item-wrapper.vue2.js";
|
|
2
2
|
import h from "../../../utils/emitter.js";
|
|
3
3
|
import g from "../../../utils/i18n.js";
|
|
4
4
|
import w from "../../form-designer/form-widget/field-widget/index.js";
|
|
5
5
|
import f from "../refMixin.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { resolveComponent as n, withDirectives as y, createBlock as a, openBlock as
|
|
6
|
+
import C from "./containerItemMixin.js";
|
|
7
|
+
import b from "../../../mixins/useDataTableMixin.js";
|
|
8
|
+
import { resolveComponent as n, withDirectives as y, createBlock as a, openBlock as s, normalizeStyle as l, withCtx as i, createVNode as r, normalizeClass as R, createCommentVNode as S, vShow as F } from "vue";
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
|
-
import
|
|
12
|
-
const
|
|
11
|
+
import z from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const _ = {
|
|
13
13
|
name: "DataTableItem",
|
|
14
14
|
componentName: "ContainerItem",
|
|
15
15
|
// 必须固定为ContainerItem,用于接收父级组件的broadcast事件
|
|
16
|
-
mixins: [h, g, f,
|
|
16
|
+
mixins: [h, g, f, C, b],
|
|
17
17
|
components: {
|
|
18
18
|
ContainerItemWrapper: p,
|
|
19
19
|
...w
|
|
20
20
|
},
|
|
21
21
|
props: {
|
|
22
22
|
widget: Object,
|
|
23
|
-
parentWidget: Object,
|
|
24
|
-
parentList: Array,
|
|
25
|
-
indexOfParentList: Number,
|
|
26
23
|
data: {
|
|
27
24
|
type: Array,
|
|
28
25
|
default: () => []
|
|
29
|
-
},
|
|
30
|
-
subFormRowIndex: {
|
|
31
|
-
/* 子表单组件行索引,从0开始计数 */
|
|
32
|
-
type: Number,
|
|
33
|
-
default: -1
|
|
34
|
-
},
|
|
35
|
-
subFormColIndex: {
|
|
36
|
-
/* 子表单组件列索引,从0开始计数 */
|
|
37
|
-
type: Number,
|
|
38
|
-
default: -1
|
|
39
|
-
},
|
|
40
|
-
subFormRowId: {
|
|
41
|
-
/* 子表单组件行Id,唯一id且不可变 */
|
|
42
|
-
type: String,
|
|
43
|
-
default: ""
|
|
44
26
|
}
|
|
45
27
|
},
|
|
46
28
|
inject: ["refList", "sfRefList", "globalModel", "getFormConfig", "getGlobalDsv"],
|
|
@@ -56,7 +38,11 @@ const T = {
|
|
|
56
38
|
this.initRefList(), this.handleOnCreated();
|
|
57
39
|
},
|
|
58
40
|
mounted() {
|
|
59
|
-
this.
|
|
41
|
+
this.setPagination({
|
|
42
|
+
pageSize: this.widget.options.pagination.pageSize,
|
|
43
|
+
page: 1,
|
|
44
|
+
total: 1
|
|
45
|
+
}), this.$nextTick(() => {
|
|
60
46
|
this.handleOnMounted();
|
|
61
47
|
});
|
|
62
48
|
},
|
|
@@ -98,14 +84,14 @@ const T = {
|
|
|
98
84
|
// --------------------- 以上为组件支持外部调用的API方法 end ------------------//
|
|
99
85
|
}
|
|
100
86
|
};
|
|
101
|
-
function
|
|
87
|
+
function I(e, T, t, M, v, B) {
|
|
102
88
|
const d = n("a-empty"), m = n("RenderBodyCell"), c = n("s-table"), u = n("container-item-wrapper");
|
|
103
|
-
return y((
|
|
104
|
-
style:
|
|
89
|
+
return y((s(), a(u, {
|
|
90
|
+
style: l({ display: "flex", minWidth: 0, height: parseFloat(e.tableHeight || 0) + "px" }),
|
|
105
91
|
widget: t.widget
|
|
106
92
|
}, {
|
|
107
93
|
default: i(() => [
|
|
108
|
-
|
|
94
|
+
r(c, {
|
|
109
95
|
class: R(["tpf-surely-table", [e.customClass]]),
|
|
110
96
|
ref: "dataTable2",
|
|
111
97
|
columns: e.columns.columns,
|
|
@@ -115,7 +101,7 @@ function z(e, M, t, _, D, N) {
|
|
|
115
101
|
rowKey: (o) => o[t.widget.options.rowKey],
|
|
116
102
|
scroll: { y: parseFloat(e.tableHeight || 0), x: 300 },
|
|
117
103
|
bordered: t.widget.options.border,
|
|
118
|
-
style:
|
|
104
|
+
style: l({ width: t.widget.options.tableWidth }),
|
|
119
105
|
"row-class-name": e.rowClassName,
|
|
120
106
|
rowSelection: e.handleRowSelection(),
|
|
121
107
|
pagination: e.fmtPagination,
|
|
@@ -126,24 +112,24 @@ function z(e, M, t, _, D, N) {
|
|
|
126
112
|
"row-height": e.lineHeight
|
|
127
113
|
}, {
|
|
128
114
|
emptyText: i(() => [
|
|
129
|
-
|
|
115
|
+
r(d)
|
|
130
116
|
]),
|
|
131
117
|
bodyCell: i((o) => [
|
|
132
|
-
e.isShowBodyCell(o.column.dataIndex) ? (
|
|
118
|
+
e.isShowBodyCell(o.column.dataIndex) ? (s(), a(m, {
|
|
133
119
|
key: 0,
|
|
134
120
|
bodyCell: e.columns.bodyCell,
|
|
135
121
|
scope: o
|
|
136
|
-
}, null, 8, ["bodyCell", "scope"])) :
|
|
122
|
+
}, null, 8, ["bodyCell", "scope"])) : S("", !0)
|
|
137
123
|
]),
|
|
138
124
|
_: 1
|
|
139
125
|
}, 8, ["columns", "class", "size", "dataSource", "rowKey", "scroll", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "onChange", "onResizeColumn", "loading", "row-height"])
|
|
140
126
|
]),
|
|
141
127
|
_: 1
|
|
142
128
|
}, 8, ["style", "widget"])), [
|
|
143
|
-
[
|
|
129
|
+
[F, !e.handleHidden()]
|
|
144
130
|
]);
|
|
145
131
|
}
|
|
146
|
-
const A = /* @__PURE__ */
|
|
132
|
+
const A = /* @__PURE__ */ z(_, [["render", I], ["__scopeId", "data-v-de3544fc"]]);
|
|
147
133
|
export {
|
|
148
134
|
A as default
|
|
149
135
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import g from "../../../utils/emitter.js";
|
|
2
2
|
import w from "../../../utils/i18n.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import _ from "../refMixin.js";
|
|
4
|
+
import b from "./container-item-wrapper.vue2.js";
|
|
5
5
|
import p from "./grid-col-item.vue.js";
|
|
6
6
|
import h from "./containerItemMixin.js";
|
|
7
7
|
import { resolveComponent as i, createBlock as r, openBlock as t, withCtx as n, withDirectives as x, normalizeClass as I, createElementBlock as C, Fragment as F, renderList as a, createSlots as R, renderSlot as k, mergeProps as y, vShow as j } from "vue";
|
|
@@ -10,9 +10,9 @@ const v = {
|
|
|
10
10
|
name: "vf-grid-item",
|
|
11
11
|
//grid-item跟VueGridLayout全局注册组件重名,故特殊处理!!
|
|
12
12
|
componentName: "ContainerItem",
|
|
13
|
-
mixins: [g, w,
|
|
13
|
+
mixins: [g, w, _, h],
|
|
14
14
|
components: {
|
|
15
|
-
ContainerItemWrapper:
|
|
15
|
+
ContainerItemWrapper: b,
|
|
16
16
|
GridColItem: p
|
|
17
17
|
},
|
|
18
18
|
props: {
|
|
@@ -47,10 +47,10 @@ const v = {
|
|
|
47
47
|
methods: {}
|
|
48
48
|
};
|
|
49
49
|
function O(o, S, e, B, M, N) {
|
|
50
|
-
const s = i("grid-col-item"),
|
|
51
|
-
return t(), r(
|
|
50
|
+
const s = i("grid-col-item"), c = i("a-row"), l = i("container-item-wrapper");
|
|
51
|
+
return t(), r(l, { widget: e.widget }, {
|
|
52
52
|
default: n(() => [
|
|
53
|
-
x((t(), r(
|
|
53
|
+
x((t(), r(c, {
|
|
54
54
|
key: e.widget.id,
|
|
55
55
|
gutter: e.widget.options.gutter,
|
|
56
56
|
class: I(["grid-container", [o.customClass]]),
|
|
@@ -2,7 +2,7 @@ import v from "../../../utils/emitter.js";
|
|
|
2
2
|
import I from "../../../utils/i18n.js";
|
|
3
3
|
import { deepClone as F, generateId as m, traverseFieldWidgetsOfContainer as T } from "../../../utils/util.js";
|
|
4
4
|
import y from "../refMixin.js";
|
|
5
|
-
import A from "./container-item-wrapper.
|
|
5
|
+
import A from "./container-item-wrapper.vue2.js";
|
|
6
6
|
import M from "./containerItemMixin.js";
|
|
7
7
|
import E from "../../form-designer/form-widget/field-widget/index.js";
|
|
8
8
|
import { TpfConfirm as B } from "../../../hooks/TpfConfirm.js";
|
|
@@ -2,7 +2,7 @@ import M from "../../../utils/emitter.js";
|
|
|
2
2
|
import N from "../../../utils/i18n.js";
|
|
3
3
|
import { deepClone as A, generateId as y } from "../../../utils/util.js";
|
|
4
4
|
import E from "../refMixin.js";
|
|
5
|
-
import V from "./container-item-wrapper.
|
|
5
|
+
import V from "./container-item-wrapper.vue2.js";
|
|
6
6
|
import z from "./containerItemMixin.js";
|
|
7
7
|
import B from "../../form-designer/form-widget/field-widget/index.js";
|
|
8
8
|
import { SvgIcon as H } from "tmgc2-share";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import F from "../../../utils/emitter.js";
|
|
2
2
|
import x from "../../../utils/i18n.js";
|
|
3
3
|
import k from "../refMixin.js";
|
|
4
|
-
import I from "./container-item-wrapper.
|
|
4
|
+
import I from "./container-item-wrapper.vue2.js";
|
|
5
5
|
import R from "./containerItemMixin.js";
|
|
6
6
|
import L from "../../form-designer/form-widget/field-widget/index.js";
|
|
7
|
-
import { resolveComponent as f, createBlock as l, openBlock as o, withCtx as
|
|
7
|
+
import { resolveComponent as f, createBlock as l, openBlock as o, withCtx as r, withDirectives as N, createElementBlock as m, createVNode as B, normalizeClass as M, Fragment as w, renderList as c, resolveDynamicComponent as g, createSlots as h, renderSlot as v, mergeProps as C, vShow as O } from "vue";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import P from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
10
|
const S = {
|
|
11
11
|
name: "tab-item",
|
|
12
12
|
componentName: "ContainerItem",
|
|
13
|
-
mixins: [
|
|
13
|
+
mixins: [F, x, k, R],
|
|
14
14
|
components: {
|
|
15
15
|
ContainerItemWrapper: I,
|
|
16
16
|
...L
|
|
@@ -82,14 +82,14 @@ const S = {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
function j(e, i, t, u, G, p) {
|
|
85
|
-
const
|
|
86
|
-
return o(), l(
|
|
87
|
-
default:
|
|
85
|
+
const _ = f("a-tab-pane"), T = f("a-tabs"), y = f("container-item-wrapper");
|
|
86
|
+
return o(), l(y, { widget: t.widget }, {
|
|
87
|
+
default: r(() => [
|
|
88
88
|
N((o(), m("div", {
|
|
89
89
|
key: t.widget.id,
|
|
90
90
|
class: "tab-container"
|
|
91
91
|
}, [
|
|
92
|
-
B(
|
|
92
|
+
B(T, {
|
|
93
93
|
ref: "fieldEditor",
|
|
94
94
|
activeKey: t.widget.options.activeTab,
|
|
95
95
|
"onUpdate:activeKey": i[0] || (i[0] = (n) => t.widget.options.activeTab = n),
|
|
@@ -99,13 +99,13 @@ function j(e, i, t, u, G, p) {
|
|
|
99
99
|
class: M([e.customClass]),
|
|
100
100
|
onTabClick: p.onTabClick
|
|
101
101
|
}, {
|
|
102
|
-
default:
|
|
103
|
-
(o(!0), m(w, null, c(p.visibleTabs, (n) => (o(), l(
|
|
102
|
+
default: r(() => [
|
|
103
|
+
(o(!0), m(w, null, c(p.visibleTabs, (n) => (o(), l(_, {
|
|
104
104
|
tab: n.options.label,
|
|
105
105
|
disabled: n.options.disabled,
|
|
106
106
|
key: n.options.label
|
|
107
107
|
}, {
|
|
108
|
-
default:
|
|
108
|
+
default: r(() => [
|
|
109
109
|
(o(!0), m(w, null, c(n.widgetList, (a, d) => (o(), m(w, null, [
|
|
110
110
|
a.category === "container" ? (o(), l(g(e.getComponentByContainer(a)), {
|
|
111
111
|
widget: a,
|
|
@@ -117,10 +117,10 @@ function j(e, i, t, u, G, p) {
|
|
|
117
117
|
"sub-form-row-index": t.subFormRowIndex,
|
|
118
118
|
"sub-form-col-index": t.subFormColIndex
|
|
119
119
|
}, h({ _: 2 }, [
|
|
120
|
-
c(Object.keys(e.$slots), (
|
|
121
|
-
name:
|
|
122
|
-
fn:
|
|
123
|
-
v(e.$slots,
|
|
120
|
+
c(Object.keys(e.$slots), (s) => ({
|
|
121
|
+
name: s,
|
|
122
|
+
fn: r((b) => [
|
|
123
|
+
v(e.$slots, s, C({ ref_for: !0 }, b), void 0, !0)
|
|
124
124
|
])
|
|
125
125
|
}))
|
|
126
126
|
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (o(), l(g(a.type + "-widget"), {
|
|
@@ -133,10 +133,10 @@ function j(e, i, t, u, G, p) {
|
|
|
133
133
|
"sub-form-row-index": t.subFormRowIndex,
|
|
134
134
|
"sub-form-col-index": t.subFormColIndex
|
|
135
135
|
}, h({ _: 2 }, [
|
|
136
|
-
c(Object.keys(e.$slots), (
|
|
137
|
-
name:
|
|
138
|
-
fn:
|
|
139
|
-
v(e.$slots,
|
|
136
|
+
c(Object.keys(e.$slots), (s) => ({
|
|
137
|
+
name: s,
|
|
138
|
+
fn: r((b) => [
|
|
139
|
+
v(e.$slots, s, C({ ref_for: !0 }, b), void 0, !0)
|
|
140
140
|
])
|
|
141
141
|
}))
|
|
142
142
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"]))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import p from "../../../utils/emitter.js";
|
|
2
2
|
import x from "../../../utils/i18n.js";
|
|
3
3
|
import I from "../refMixin.js";
|
|
4
|
-
import C from "./container-item-wrapper.
|
|
4
|
+
import C from "./container-item-wrapper.vue2.js";
|
|
5
5
|
import y from "./table-cell-item.vue.js";
|
|
6
6
|
import h from "./containerItemMixin.js";
|
|
7
7
|
import { resolveComponent as s, createBlock as c, openBlock as t, withCtx as u, withDirectives as F, createElementBlock as r, createElementVNode as f, normalizeClass as k, Fragment as n, renderList as i, createCommentVNode as R, createSlots as v, renderSlot as L, mergeProps as N, vShow as S } from "vue";
|
|
@@ -10,7 +10,7 @@ import j from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
|
10
10
|
const B = {
|
|
11
11
|
name: "table-item",
|
|
12
12
|
componentName: "ContainerItem",
|
|
13
|
-
mixins: [
|
|
13
|
+
mixins: [p, x, I, h],
|
|
14
14
|
components: {
|
|
15
15
|
ContainerItemWrapper: C,
|
|
16
16
|
TableCellItem: y
|
|
@@ -57,7 +57,7 @@ function M(o, E, e, O, V, z) {
|
|
|
57
57
|
class: k(["table-layout", [o.customClass]])
|
|
58
58
|
}, [
|
|
59
59
|
f("tbody", null, [
|
|
60
|
-
(t(!0), r(n, null, i(e.widget.rows, (m,
|
|
60
|
+
(t(!0), r(n, null, i(e.widget.rows, (m, _) => (t(), r("tr", {
|
|
61
61
|
key: m.id
|
|
62
62
|
}, [
|
|
63
63
|
(t(!0), r(n, null, i(m.cols, (d, l) => (t(), r(n, null, [
|
|
@@ -65,7 +65,7 @@ function M(o, E, e, O, V, z) {
|
|
|
65
65
|
widget: d,
|
|
66
66
|
key: l,
|
|
67
67
|
"parent-list": e.widget.cols,
|
|
68
|
-
"row-index":
|
|
68
|
+
"row-index": _,
|
|
69
69
|
"col-index": l,
|
|
70
70
|
"parent-widget": e.widget,
|
|
71
71
|
"sub-form-row-id": e.subFormRowId,
|
|
@@ -74,8 +74,8 @@ function M(o, E, e, O, V, z) {
|
|
|
74
74
|
}, v({ _: 2 }, [
|
|
75
75
|
i(Object.keys(o.$slots), (a) => ({
|
|
76
76
|
name: a,
|
|
77
|
-
fn: u((
|
|
78
|
-
L(o.$slots, a, N({ ref_for: !0 },
|
|
77
|
+
fn: u((g) => [
|
|
78
|
+
L(o.$slots, a, N({ ref_for: !0 }, g), void 0, !0)
|
|
79
79
|
])
|
|
80
80
|
}))
|
|
81
81
|
]), 1032, ["widget", "parent-list", "row-index", "col-index", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"]))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import L from "./container-item-wrapper.
|
|
1
|
+
import L from "./container-item-wrapper.vue2.js";
|
|
2
2
|
import I from "../../../utils/emitter.js";
|
|
3
|
-
import { defineAsyncComponent as j, resolveComponent as f, withDirectives as F, createBlock as s, openBlock as
|
|
3
|
+
import { defineAsyncComponent as j, resolveComponent as f, withDirectives as F, createBlock as s, openBlock as o, withCtx as d, createElementVNode as C, createVNode as c, createElementBlock as m, createCommentVNode as _, normalizeClass as S, Fragment as u, renderList as l, resolveDynamicComponent as g, createSlots as p, renderSlot as w, mergeProps as h, Transition as D, normalizeStyle as N, vShow as O } from "vue";
|
|
4
4
|
import M from "../../../utils/i18n.js";
|
|
5
5
|
import T from "../../form-designer/form-widget/field-widget/index.js";
|
|
6
6
|
import B from "../refMixin.js";
|
|
@@ -106,10 +106,10 @@ const E = {
|
|
|
106
106
|
},
|
|
107
107
|
async loadFormCode(t) {
|
|
108
108
|
if (t) {
|
|
109
|
-
const
|
|
109
|
+
const y = await this.$http.get("/api/tmgc2-query/dataQuery/detail/FormDefinitionManagement", {
|
|
110
110
|
params: { code: t }
|
|
111
111
|
}).then((e) => e.data.object.frontendDefinition || "{}");
|
|
112
|
-
this.$refs.dFormRef.setFormJson(JSON.parse(
|
|
112
|
+
this.$refs.dFormRef.setFormJson(JSON.parse(y));
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
handleOnCreated() {
|
|
@@ -123,9 +123,9 @@ const E = {
|
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
}, P = { class: "tpf-collapse" }, q = { class: "tpf-collapse-header" };
|
|
126
|
-
function G(t,
|
|
126
|
+
function G(t, y, e, Q, U, b) {
|
|
127
127
|
const R = f("TpfCollapseTitle"), v = f("SvgIcon"), k = f("a-space"), x = f("container-item-wrapper");
|
|
128
|
-
return F((
|
|
128
|
+
return F((o(), s(x, { widget: e.widget }, {
|
|
129
129
|
default: d(() => [
|
|
130
130
|
C("div", P, [
|
|
131
131
|
C("div", q, [
|
|
@@ -144,12 +144,12 @@ function G(t, _, e, Q, U, b) {
|
|
|
144
144
|
]),
|
|
145
145
|
_: 1
|
|
146
146
|
}),
|
|
147
|
-
e.widget.options.isCollapse ?
|
|
147
|
+
e.widget.options.isCollapse ? _("", !0) : (o(), m("div", {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: S(["header-right", b.rightSlotCss])
|
|
150
150
|
}, [
|
|
151
|
-
e.widget.headerRightSlotList && e.widget.headerRightSlotList.length > 0 ? (
|
|
152
|
-
n.category === "container" ? (
|
|
151
|
+
e.widget.headerRightSlotList && e.widget.headerRightSlotList.length > 0 ? (o(!0), m(u, { key: 0 }, l(e.widget.headerRightSlotList, (n, a) => (o(), m(u, null, [
|
|
152
|
+
n.category === "container" ? (o(), s(g(t.getComponentByContainer(n)), {
|
|
153
153
|
widget: n,
|
|
154
154
|
key: a,
|
|
155
155
|
"parent-list": e.widget.headerRightSlotList,
|
|
@@ -160,13 +160,13 @@ function G(t, _, e, Q, U, b) {
|
|
|
160
160
|
"sub-form-col-index": e.subFormColIndex,
|
|
161
161
|
data: e.model[e.widget.options.name]
|
|
162
162
|
}, p({ _: 2 }, [
|
|
163
|
-
l(Object.keys(t.$slots), (
|
|
164
|
-
name:
|
|
163
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
164
|
+
name: i,
|
|
165
165
|
fn: d((r) => [
|
|
166
|
-
w(t.$slots,
|
|
166
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
167
167
|
])
|
|
168
168
|
}))
|
|
169
|
-
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data"])) : (
|
|
169
|
+
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data"])) : (o(), s(g(n.type + "-widget"), {
|
|
170
170
|
field: n,
|
|
171
171
|
designer: null,
|
|
172
172
|
key: a,
|
|
@@ -174,14 +174,14 @@ function G(t, _, e, Q, U, b) {
|
|
|
174
174
|
"index-of-parent-list": a,
|
|
175
175
|
"parent-widget": e.widget
|
|
176
176
|
}, p({ _: 2 }, [
|
|
177
|
-
l(Object.keys(t.$slots), (
|
|
178
|
-
name:
|
|
177
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
178
|
+
name: i,
|
|
179
179
|
fn: d((r) => [
|
|
180
|
-
w(t.$slots,
|
|
180
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
181
181
|
])
|
|
182
182
|
}))
|
|
183
183
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
184
|
-
], 64))), 256)) :
|
|
184
|
+
], 64))), 256)) : _("", !0)
|
|
185
185
|
], 2))
|
|
186
186
|
]),
|
|
187
187
|
c(D, {
|
|
@@ -198,8 +198,8 @@ function G(t, _, e, Q, U, b) {
|
|
|
198
198
|
...JSON.parse(e.widget.options.bodyStyle || "{}")
|
|
199
199
|
})
|
|
200
200
|
}, [
|
|
201
|
-
e.widget.defaultSlotsList && e.widget.defaultSlotsList.length > 0 ? (
|
|
202
|
-
n.category === "container" ? (
|
|
201
|
+
e.widget.defaultSlotsList && e.widget.defaultSlotsList.length > 0 ? (o(!0), m(u, { key: 0 }, l(e.widget.defaultSlotsList, (n, a) => (o(), m(u, null, [
|
|
202
|
+
n.category === "container" ? (o(), s(g(t.getComponentByContainer(n)), {
|
|
203
203
|
widget: n,
|
|
204
204
|
key: a,
|
|
205
205
|
"parent-list": e.widget.defaultSlotsList,
|
|
@@ -211,13 +211,13 @@ function G(t, _, e, Q, U, b) {
|
|
|
211
211
|
data: e.model[n.options.name],
|
|
212
212
|
model: e.model
|
|
213
213
|
}, p({ _: 2 }, [
|
|
214
|
-
l(Object.keys(t.$slots), (
|
|
215
|
-
name:
|
|
214
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
215
|
+
name: i,
|
|
216
216
|
fn: d((r) => [
|
|
217
|
-
w(t.$slots,
|
|
217
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
218
218
|
])
|
|
219
219
|
}))
|
|
220
|
-
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data", "model"])) : (
|
|
220
|
+
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "data", "model"])) : (o(), s(g(n.type + "-widget"), {
|
|
221
221
|
field: n,
|
|
222
222
|
designer: null,
|
|
223
223
|
key: a,
|
|
@@ -225,14 +225,14 @@ function G(t, _, e, Q, U, b) {
|
|
|
225
225
|
"index-of-parent-list": a,
|
|
226
226
|
"parent-widget": e.widget
|
|
227
227
|
}, p({ _: 2 }, [
|
|
228
|
-
l(Object.keys(t.$slots), (
|
|
229
|
-
name:
|
|
228
|
+
l(Object.keys(t.$slots), (i) => ({
|
|
229
|
+
name: i,
|
|
230
230
|
fn: d((r) => [
|
|
231
|
-
w(t.$slots,
|
|
231
|
+
w(t.$slots, i, h({ ref_for: !0 }, r), void 0, !0)
|
|
232
232
|
])
|
|
233
233
|
}))
|
|
234
234
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
235
|
-
], 64))), 256)) :
|
|
235
|
+
], 64))), 256)) : _("", !0)
|
|
236
236
|
], 4), [
|
|
237
237
|
[O, !e.widget.options.isCollapse]
|
|
238
238
|
])
|