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