@kp-ui/lowcode 2.14.0-beta.11 → 2.14.0-beta.12
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/form-widget/index.vue.js +1 -1
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +2 -2
- package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +332 -296
- 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,13 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import
|
|
4
|
-
import { cloneDeep as
|
|
5
|
-
import { TpfModal as
|
|
6
|
-
import { message as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as J, ref as U, computed as K, resolveComponent as _, createElementBlock as W, openBlock as h, Fragment as Q, createVNode as g, unref as o, withCtx as r, createTextVNode as v, toDisplayString as C, createElementVNode as N, createBlock as m, createCommentVNode as f, normalizeClass as X } from "vue";
|
|
2
|
+
import { useI18n as Y } from "../../../../../utils/i18n.js";
|
|
3
|
+
import Z from "../../../../code-editor/code-modal-editor.vue.js";
|
|
4
|
+
import { cloneDeep as E } from "lodash-es";
|
|
5
|
+
import { TpfModal as ee } from "tmgc2-share";
|
|
6
|
+
import { message as te } from "ant-design-vue";
|
|
7
|
+
const le = {
|
|
8
|
+
class: "table-wrap"
|
|
9
|
+
}, ie = {
|
|
8
10
|
key: 2,
|
|
9
|
-
style: {
|
|
10
|
-
|
|
11
|
+
style: {
|
|
12
|
+
"text-align": "center"
|
|
13
|
+
}
|
|
14
|
+
}, ne = {
|
|
15
|
+
class: "add-btn"
|
|
16
|
+
}, ce = /* @__PURE__ */ J({
|
|
11
17
|
name: "tableColumns-editor",
|
|
12
18
|
inheritAttrs: !1,
|
|
13
19
|
__name: "data-table-tableColumns-editor",
|
|
@@ -16,96 +22,110 @@ const X = { class: "table-wrap" }, Y = {
|
|
|
16
22
|
selectedWidget: {},
|
|
17
23
|
optionModel: {}
|
|
18
24
|
},
|
|
19
|
-
setup(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
],
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
title: t("designer.setting.sortableColumn"),
|
|
61
|
-
dataIndex: "sorter",
|
|
62
|
-
resizable: !0,
|
|
63
|
-
width: 90
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
title: t("designer.setting.resizableColumn"),
|
|
67
|
-
dataIndex: "resizable",
|
|
68
|
-
resizable: !0,
|
|
69
|
-
width: 120
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
title: t("designer.setting.ellipsisColumn"),
|
|
73
|
-
dataIndex: "ellipsis",
|
|
74
|
-
resizable: !0,
|
|
75
|
-
width: 150
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
title: t("designer.setting.fixedColumn"),
|
|
79
|
-
dataIndex: "fixed",
|
|
80
|
-
resizable: !0,
|
|
81
|
-
width: 100
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
title: t("designer.setting.alignTypeOfColumn"),
|
|
85
|
-
dataIndex: "align",
|
|
86
|
-
resizable: !0,
|
|
87
|
-
width: 100
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: t("designer.setting.customRender"),
|
|
91
|
-
dataIndex: "customRender",
|
|
92
|
-
width: 120,
|
|
93
|
-
resizable: !0,
|
|
94
|
-
fixed: "right"
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
title: t("designer.setting.actionColumn"),
|
|
98
|
-
dataIndex: "action",
|
|
99
|
-
width: 80,
|
|
100
|
-
fixed: "right"
|
|
25
|
+
setup(M, {
|
|
26
|
+
expose: $
|
|
27
|
+
}) {
|
|
28
|
+
const {
|
|
29
|
+
i18nt: l
|
|
30
|
+
} = Y(), I = M, A = U(null), y = U(!1), u = U([]), R = U(null), B = [{
|
|
31
|
+
value: "left",
|
|
32
|
+
label: "left"
|
|
33
|
+
}, {
|
|
34
|
+
value: "center",
|
|
35
|
+
label: "center"
|
|
36
|
+
}, {
|
|
37
|
+
value: "right",
|
|
38
|
+
label: "right"
|
|
39
|
+
}], V = K(() => [{
|
|
40
|
+
title: "序号",
|
|
41
|
+
dataIndex: "index",
|
|
42
|
+
width: 120,
|
|
43
|
+
fixed: "left",
|
|
44
|
+
rowDrag: !0,
|
|
45
|
+
resizable: !0,
|
|
46
|
+
// customRender: ({ index }: { index: number }) => index + 1
|
|
47
|
+
customRender: ({
|
|
48
|
+
record: n,
|
|
49
|
+
index: t
|
|
50
|
+
}) => {
|
|
51
|
+
const e = (p, c, b = []) => {
|
|
52
|
+
for (let k = 0; k < c.length; k++) {
|
|
53
|
+
const w = c[k];
|
|
54
|
+
if (w.columnId === p.columnId)
|
|
55
|
+
return [...b, k + 1].join(".");
|
|
56
|
+
if (w.children) {
|
|
57
|
+
const z = e(p, w.children, [...b, k + 1]);
|
|
58
|
+
if (z) return z;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return "";
|
|
62
|
+
};
|
|
63
|
+
return e(n, u.value);
|
|
101
64
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
|
|
65
|
+
}, {
|
|
66
|
+
title: l("designer.setting.columnName"),
|
|
67
|
+
dataIndex: "dataIndex",
|
|
68
|
+
resizable: !0,
|
|
69
|
+
width: 150
|
|
70
|
+
}, {
|
|
71
|
+
title: l("designer.setting.columnLabel"),
|
|
72
|
+
dataIndex: "title",
|
|
73
|
+
align: "center",
|
|
74
|
+
resizable: !0,
|
|
75
|
+
width: 100
|
|
76
|
+
}, {
|
|
77
|
+
title: l("designer.setting.columnWidth"),
|
|
78
|
+
dataIndex: "width",
|
|
79
|
+
resizable: !0,
|
|
80
|
+
width: 120
|
|
81
|
+
}, {
|
|
82
|
+
title: l("designer.setting.visibleColumn"),
|
|
83
|
+
dataIndex: "show",
|
|
84
|
+
resizable: !0,
|
|
85
|
+
width: 90
|
|
86
|
+
}, {
|
|
87
|
+
title: l("designer.setting.sortableColumn"),
|
|
88
|
+
dataIndex: "sorter",
|
|
89
|
+
resizable: !0,
|
|
90
|
+
width: 90
|
|
91
|
+
}, {
|
|
92
|
+
title: l("designer.setting.resizableColumn"),
|
|
93
|
+
dataIndex: "resizable",
|
|
94
|
+
resizable: !0,
|
|
95
|
+
width: 120
|
|
96
|
+
}, {
|
|
97
|
+
title: l("designer.setting.ellipsisColumn"),
|
|
98
|
+
dataIndex: "ellipsis",
|
|
99
|
+
resizable: !0,
|
|
100
|
+
width: 150
|
|
101
|
+
}, {
|
|
102
|
+
title: l("designer.setting.fixedColumn"),
|
|
103
|
+
dataIndex: "fixed",
|
|
104
|
+
resizable: !0,
|
|
105
|
+
width: 100
|
|
106
|
+
}, {
|
|
107
|
+
title: l("designer.setting.alignTypeOfColumn"),
|
|
108
|
+
dataIndex: "align",
|
|
109
|
+
resizable: !0,
|
|
110
|
+
width: 100
|
|
111
|
+
}, {
|
|
112
|
+
title: l("designer.setting.customRender"),
|
|
113
|
+
dataIndex: "customRender",
|
|
114
|
+
width: 120,
|
|
115
|
+
resizable: !0,
|
|
116
|
+
fixed: "right"
|
|
117
|
+
}, {
|
|
118
|
+
title: l("designer.setting.actionColumn"),
|
|
119
|
+
dataIndex: "action",
|
|
120
|
+
width: 160,
|
|
121
|
+
fixed: "right"
|
|
122
|
+
}]), O = (n, t) => {
|
|
123
|
+
var e;
|
|
124
|
+
R.value = n, (e = A.value) == null || e.open(t.customRender || "");
|
|
125
|
+
}, F = (n) => {
|
|
126
|
+
R.value !== null && (u.value[R.value].customRender = n);
|
|
127
|
+
}, H = () => {
|
|
128
|
+
const n = {
|
|
109
129
|
isAutoWidth: !1,
|
|
110
130
|
columnId: (/* @__PURE__ */ new Date()).getTime(),
|
|
111
131
|
show: !0,
|
|
@@ -119,215 +139,231 @@ const X = { class: "table-wrap" }, Y = {
|
|
|
119
139
|
resizable: !0,
|
|
120
140
|
showSorterTooltip: !1
|
|
121
141
|
};
|
|
122
|
-
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
142
|
+
u.value.push(n), I.designer.emitHistoryChange();
|
|
143
|
+
}, d = (n) => {
|
|
144
|
+
let t = u.value;
|
|
145
|
+
for (let e = 0; e < n.length; e++) {
|
|
146
|
+
const p = n[e];
|
|
147
|
+
if (Array.isArray(t))
|
|
148
|
+
t = t[p];
|
|
149
|
+
else
|
|
150
|
+
return t;
|
|
151
|
+
e !== n.length - 1 && (t = t.children || []);
|
|
152
|
+
}
|
|
153
|
+
return t;
|
|
154
|
+
}, T = (n, t, e) => {
|
|
155
|
+
for (let p = 0; p < n.length; p++) {
|
|
156
|
+
const c = n[p];
|
|
157
|
+
if (c.columnId === t.columnId) {
|
|
158
|
+
c.children || (c.children = []), c.children.push(e);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
c.children && T(c.children, t, e);
|
|
162
|
+
}
|
|
163
|
+
}, S = (n, t) => n.filter((e) => {
|
|
164
|
+
if (e.columnId === t)
|
|
165
|
+
return !1;
|
|
166
|
+
if (e.children && Array.isArray(e.children) && e.children.length > 0) {
|
|
167
|
+
const p = S(e.children, t);
|
|
168
|
+
e.children = p;
|
|
169
|
+
}
|
|
170
|
+
return !0;
|
|
171
|
+
}), L = (n, t) => {
|
|
172
|
+
if (u.value.length === 1)
|
|
173
|
+
return te.warning(l("designer.setting.onlyOneColumnCannotBeDeleted")), !1;
|
|
174
|
+
u.value = S(u.value, n.columnId);
|
|
175
|
+
}, P = (n, t) => {
|
|
176
|
+
const e = {
|
|
177
|
+
...u.value[t],
|
|
178
|
+
children: null,
|
|
179
|
+
columnId: (/* @__PURE__ */ new Date()).getTime()
|
|
180
|
+
};
|
|
181
|
+
T(u.value, n, e);
|
|
182
|
+
}, j = () => {
|
|
183
|
+
I.optionModel.tableColumns = E(u.value), y.value = !1;
|
|
184
|
+
}, D = () => {
|
|
185
|
+
y.value = !0, u.value = E(I.optionModel.tableColumns);
|
|
131
186
|
};
|
|
132
|
-
return
|
|
133
|
-
openSetting:
|
|
134
|
-
}), (
|
|
135
|
-
const
|
|
136
|
-
return
|
|
137
|
-
o(
|
|
138
|
-
|
|
187
|
+
return $({
|
|
188
|
+
openSetting: D
|
|
189
|
+
}), (n, t) => {
|
|
190
|
+
const e = _("a-button"), p = _("a-form-item"), c = _("a-input"), b = _("a-switch"), k = _("a-select-option"), w = _("a-select"), z = _("a-space"), q = _("s-table");
|
|
191
|
+
return h(), W(Q, null, [g(p, {
|
|
192
|
+
label: o(l)("designer.setting.tableColEdit")
|
|
193
|
+
}, {
|
|
194
|
+
default: r(() => [g(e, {
|
|
195
|
+
type: "primary",
|
|
196
|
+
shape: "round",
|
|
197
|
+
onClick: D
|
|
139
198
|
}, {
|
|
140
|
-
default:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
199
|
+
default: r(() => [v(C(o(l)("designer.setting.editAction")), 1)]),
|
|
200
|
+
_: 1
|
|
201
|
+
})]),
|
|
202
|
+
_: 1
|
|
203
|
+
}, 8, ["label"]), g(o(ee), {
|
|
204
|
+
title: o(l)("designer.setting.tableColEdit"),
|
|
205
|
+
visible: y.value,
|
|
206
|
+
"onUpdate:visible": t[2] || (t[2] = (s) => y.value = s),
|
|
207
|
+
width: "1200px"
|
|
208
|
+
}, {
|
|
209
|
+
footerRight: r(() => [g(e, {
|
|
210
|
+
size: "default",
|
|
211
|
+
onClick: t[1] || (t[1] = (s) => y.value = !1)
|
|
212
|
+
}, {
|
|
213
|
+
default: r(() => [v(C(o(l)("designer.hint.cancel")), 1)]),
|
|
152
214
|
_: 1
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"onUpdate:visible": g[2] || (g[2] = (i) => f.value = i),
|
|
158
|
-
width: "1200px"
|
|
215
|
+
}), g(e, {
|
|
216
|
+
size: "default",
|
|
217
|
+
type: "primary",
|
|
218
|
+
onClick: j
|
|
159
219
|
}, {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
220
|
+
default: r(() => [v(C(o(l)("designer.hint.confirm")), 1)]),
|
|
221
|
+
_: 1
|
|
222
|
+
})]),
|
|
223
|
+
default: r(() => [N("div", le, [g(q, {
|
|
224
|
+
class: "tpf-surely-table",
|
|
225
|
+
"aria-hidden": "false",
|
|
226
|
+
dataSource: u.value,
|
|
227
|
+
style: {
|
|
228
|
+
width: "100%"
|
|
229
|
+
},
|
|
230
|
+
deepWatchDataSource: "",
|
|
231
|
+
"cell-style": {
|
|
232
|
+
padding: "0"
|
|
233
|
+
},
|
|
234
|
+
height: "600",
|
|
235
|
+
id: "singleTable",
|
|
236
|
+
size: "default",
|
|
237
|
+
scroll: {
|
|
238
|
+
y: 300,
|
|
239
|
+
x: 300
|
|
240
|
+
},
|
|
241
|
+
pagination: !1,
|
|
242
|
+
resizable: "",
|
|
243
|
+
"row-key": (s) => s.columnId,
|
|
244
|
+
columns: V.value
|
|
245
|
+
}, {
|
|
246
|
+
bodyCell: r(({
|
|
247
|
+
column: s,
|
|
248
|
+
record: x,
|
|
249
|
+
index: G,
|
|
250
|
+
recordIndexs: a
|
|
251
|
+
}) => [s.dataIndex === "dataIndex" ? (h(), m(c, {
|
|
252
|
+
key: 0,
|
|
253
|
+
value: d(a).dataIndex,
|
|
254
|
+
"onUpdate:value": (i) => d(a).dataIndex = i
|
|
255
|
+
}, null, 8, ["value", "onUpdate:value"])) : f("", !0), s.dataIndex === "title" ? (h(), m(c, {
|
|
256
|
+
key: 1,
|
|
257
|
+
value: d(a).title,
|
|
258
|
+
"onUpdate:value": (i) => d(a).title = i
|
|
259
|
+
}, null, 8, ["value", "onUpdate:value"])) : f("", !0), s.dataIndex === "width" ? (h(), W("div", ie, [g(b, {
|
|
260
|
+
"checked-children": o(l)("designer.setting.autoWidth"),
|
|
261
|
+
checked: u.value[a[0]].isAutoWidth,
|
|
262
|
+
"onUpdate:checked": (i) => u.value[a[0]].isAutoWidth = i
|
|
263
|
+
}, null, 8, ["checked-children", "checked", "onUpdate:checked"]), x.isAutoWidth ? f("", !0) : (h(), m(c, {
|
|
264
|
+
key: 0,
|
|
265
|
+
value: d(a).width,
|
|
266
|
+
"onUpdate:value": (i) => d(a).width = i
|
|
267
|
+
}, null, 8, ["value", "onUpdate:value"]))])) : f("", !0), s.dataIndex === "show" ? (h(), m(b, {
|
|
268
|
+
key: 3,
|
|
269
|
+
checked: d(a).show,
|
|
270
|
+
"onUpdate:checked": (i) => d(a).show = i
|
|
271
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : f("", !0), s.dataIndex === "sorter" ? (h(), m(b, {
|
|
272
|
+
key: 4,
|
|
273
|
+
checked: d(a).sorter,
|
|
274
|
+
"onUpdate:checked": (i) => d(a).sorter = i
|
|
275
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : f("", !0), s.dataIndex === "resizable" ? (h(), m(b, {
|
|
276
|
+
key: 5,
|
|
277
|
+
checked: d(a).resizable,
|
|
278
|
+
"onUpdate:checked": (i) => d(a).resizable = i
|
|
279
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : f("", !0), s.dataIndex === "ellipsis" ? (h(), m(b, {
|
|
280
|
+
key: 6,
|
|
281
|
+
checked: d(a).ellipsis,
|
|
282
|
+
"onUpdate:checked": (i) => d(a).ellipsis = i
|
|
283
|
+
}, null, 8, ["checked", "onUpdate:checked"])) : f("", !0), s.dataIndex === "fixed" ? (h(), m(w, {
|
|
284
|
+
key: 7,
|
|
285
|
+
value: d(a).fixed,
|
|
286
|
+
"onUpdate:value": (i) => d(a).fixed = i,
|
|
287
|
+
allowClear: "",
|
|
288
|
+
style: {
|
|
289
|
+
width: "100%"
|
|
290
|
+
}
|
|
291
|
+
}, {
|
|
292
|
+
default: r(() => [g(k, {
|
|
293
|
+
value: "left"
|
|
164
294
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
v(m(n(t)("designer.hint.cancel")), 1)
|
|
167
|
-
]),
|
|
295
|
+
default: r(() => [v(C(o(l)("designer.setting.fixedLeft")), 1)]),
|
|
168
296
|
_: 1
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
size: "default",
|
|
172
|
-
type: "primary",
|
|
173
|
-
onClick: B
|
|
297
|
+
}), g(k, {
|
|
298
|
+
value: "right"
|
|
174
299
|
}, {
|
|
175
|
-
default:
|
|
176
|
-
v(m(n(t)("designer.hint.confirm")), 1)
|
|
177
|
-
]),
|
|
300
|
+
default: r(() => [v(C(o(l)("designer.setting.fixedRight")), 1)]),
|
|
178
301
|
_: 1
|
|
179
|
-
})
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : u("", !0),
|
|
232
|
-
i.dataIndex === "resizable" ? (s(), r(b, {
|
|
233
|
-
key: 5,
|
|
234
|
-
checked: e.value[l[0]].resizable,
|
|
235
|
-
"onUpdate:checked": (a) => e.value[l[0]].resizable = a
|
|
236
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : u("", !0),
|
|
237
|
-
i.dataIndex === "ellipsis" ? (s(), r(b, {
|
|
238
|
-
key: 6,
|
|
239
|
-
checked: e.value[l[0]].ellipsis,
|
|
240
|
-
"onUpdate:checked": (a) => e.value[l[0]].ellipsis = a
|
|
241
|
-
}, null, 8, ["checked", "onUpdate:checked"])) : u("", !0),
|
|
242
|
-
i.dataIndex === "fixed" ? (s(), r(R, {
|
|
243
|
-
key: 7,
|
|
244
|
-
value: e.value[l[0]].fixed,
|
|
245
|
-
"onUpdate:value": (a) => e.value[l[0]].fixed = a,
|
|
246
|
-
allowClear: "",
|
|
247
|
-
style: {}
|
|
248
|
-
}, {
|
|
249
|
-
default: d(() => [
|
|
250
|
-
o(U, { value: "left" }, {
|
|
251
|
-
default: d(() => [
|
|
252
|
-
v(m(n(t)("designer.setting.fixedLeft")), 1)
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
}),
|
|
256
|
-
o(U, { value: "right" }, {
|
|
257
|
-
default: d(() => [
|
|
258
|
-
v(m(n(t)("designer.setting.fixedRight")), 1)
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
})
|
|
262
|
-
]),
|
|
263
|
-
_: 2
|
|
264
|
-
}, 1032, ["value", "onUpdate:value"])) : u("", !0),
|
|
265
|
-
i.dataIndex === "align" ? (s(), r(R, {
|
|
266
|
-
key: 8,
|
|
267
|
-
style: {},
|
|
268
|
-
value: e.value[l[0]].align,
|
|
269
|
-
"onUpdate:value": (a) => e.value[l[0]].align = a,
|
|
270
|
-
options: A
|
|
271
|
-
}, null, 8, ["value", "onUpdate:value"])) : u("", !0),
|
|
272
|
-
i.dataIndex === "customRender" ? (s(), r(p, {
|
|
273
|
-
key: 9,
|
|
274
|
-
onClick: (a) => M(l[0], y),
|
|
275
|
-
class: G([{ "button-text-highlight": !!y.customRender }]),
|
|
276
|
-
size: "small",
|
|
277
|
-
shape: "round"
|
|
278
|
-
}, {
|
|
279
|
-
default: d(() => [
|
|
280
|
-
v(m(n(t)("designer.setting.edit")), 1)
|
|
281
|
-
]),
|
|
282
|
-
_: 2
|
|
283
|
-
}, 1032, ["onClick", "class"])) : u("", !0),
|
|
284
|
-
i.dataIndex === "action" ? (s(), r(F, { key: 10 }, {
|
|
285
|
-
default: d(() => [
|
|
286
|
-
o(p, {
|
|
287
|
-
title: n(t)("designer.setting.deleteTableColumn"),
|
|
288
|
-
size: "small",
|
|
289
|
-
onClick: (a) => $(H),
|
|
290
|
-
type: "text"
|
|
291
|
-
}, {
|
|
292
|
-
default: d(() => [
|
|
293
|
-
v(m(n(t)("designer.setting.delete")), 1)
|
|
294
|
-
]),
|
|
295
|
-
_: 2
|
|
296
|
-
}, 1032, ["title", "onClick"])
|
|
297
|
-
]),
|
|
298
|
-
_: 2
|
|
299
|
-
}, 1024)) : u("", !0)
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["dataSource", "row-key"]),
|
|
303
|
-
T("div", Z, [
|
|
304
|
-
o(p, {
|
|
305
|
-
title: n(t)("designer.setting.addTableColumn"),
|
|
306
|
-
type: "primary",
|
|
307
|
-
size: "medium",
|
|
308
|
-
onClick: g[0] || (g[0] = (i) => V())
|
|
309
|
-
}, {
|
|
310
|
-
default: d(() => [
|
|
311
|
-
v(m(n(t)("designer.setting.addTableColumn")), 1)
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["title"])
|
|
315
|
-
])
|
|
316
|
-
])
|
|
317
|
-
]),
|
|
302
|
+
})]),
|
|
303
|
+
_: 2
|
|
304
|
+
}, 1032, ["value", "onUpdate:value"])) : f("", !0), s.dataIndex === "align" ? (h(), m(w, {
|
|
305
|
+
key: 8,
|
|
306
|
+
style: {
|
|
307
|
+
width: "100%"
|
|
308
|
+
},
|
|
309
|
+
value: d(a).align,
|
|
310
|
+
"onUpdate:value": (i) => d(a).align = i,
|
|
311
|
+
options: B
|
|
312
|
+
}, null, 8, ["value", "onUpdate:value"])) : f("", !0), s.dataIndex === "customRender" ? (h(), m(e, {
|
|
313
|
+
key: 9,
|
|
314
|
+
onClick: (i) => O(a[0], x),
|
|
315
|
+
class: X([{
|
|
316
|
+
"button-text-highlight": !!x.customRender
|
|
317
|
+
}]),
|
|
318
|
+
size: "small",
|
|
319
|
+
shape: "round"
|
|
320
|
+
}, {
|
|
321
|
+
default: r(() => [v(C(o(l)("designer.setting.edit")), 1)]),
|
|
322
|
+
_: 2
|
|
323
|
+
}, 1032, ["onClick", "class"])) : f("", !0), s.dataIndex === "action" ? (h(), m(z, {
|
|
324
|
+
key: 10
|
|
325
|
+
}, {
|
|
326
|
+
default: r(() => [g(e, {
|
|
327
|
+
title: o(l)("designer.setting.addSubsets"),
|
|
328
|
+
size: "small",
|
|
329
|
+
onClick: (i) => P(x, G),
|
|
330
|
+
type: "text"
|
|
331
|
+
}, {
|
|
332
|
+
default: r(() => t[3] || (t[3] = [v(" 增加子集 ")])),
|
|
333
|
+
_: 2,
|
|
334
|
+
__: [3]
|
|
335
|
+
}, 1032, ["title", "onClick"]), g(e, {
|
|
336
|
+
title: o(l)("designer.setting.deleteTableColumn"),
|
|
337
|
+
size: "small",
|
|
338
|
+
onClick: (i) => L(x),
|
|
339
|
+
type: "text"
|
|
340
|
+
}, {
|
|
341
|
+
default: r(() => [v(C(o(l)("designer.setting.delete")), 1)]),
|
|
342
|
+
_: 2
|
|
343
|
+
}, 1032, ["title", "onClick"])]),
|
|
344
|
+
_: 2
|
|
345
|
+
}, 1024)) : f("", !0)]),
|
|
346
|
+
_: 1
|
|
347
|
+
}, 8, ["dataSource", "row-key", "columns"]), N("div", ne, [g(e, {
|
|
348
|
+
title: o(l)("designer.setting.addTableColumn"),
|
|
349
|
+
type: "primary",
|
|
350
|
+
size: "medium",
|
|
351
|
+
onClick: t[0] || (t[0] = (s) => H())
|
|
352
|
+
}, {
|
|
353
|
+
default: r(() => [v(C(o(l)("designer.setting.addTableColumn")), 1)]),
|
|
318
354
|
_: 1
|
|
319
|
-
}, 8, ["title"
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
], 64);
|
|
355
|
+
}, 8, ["title"])])])]),
|
|
356
|
+
_: 1
|
|
357
|
+
}, 8, ["title", "visible"]), g(Z, {
|
|
358
|
+
onSave: F,
|
|
359
|
+
ref_key: "CodeModalEditorRef",
|
|
360
|
+
ref: A,
|
|
361
|
+
title: o(l)("designer.setting.renderFunction"),
|
|
362
|
+
"fn-params": "scope"
|
|
363
|
+
}, null, 8, ["title"])], 64);
|
|
328
364
|
};
|
|
329
365
|
}
|
|
330
366
|
});
|
|
331
367
|
export {
|
|
332
|
-
|
|
368
|
+
ce as default
|
|
333
369
|
};
|