@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.
@@ -1,13 +1,19 @@
1
- import { defineComponent as j, ref as k, resolveComponent as h, createElementBlock as I, openBlock as s, Fragment as q, createVNode as o, unref as n, withCtx as d, createTextVNode as v, toDisplayString as m, createElementVNode as T, createBlock as r, createCommentVNode as u, normalizeClass as G } from "vue";
2
- import { useI18n as J } from "../../../../../utils/i18n.js";
3
- import K from "../../../../code-editor/code-modal-editor.vue.js";
4
- import { cloneDeep as D } from "lodash-es";
5
- import { TpfModal as P } from "tmgc2-share";
6
- import { message as Q } from "ant-design-vue";
7
- const X = { class: "table-wrap" }, Y = {
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: { "text-align": "center" }
10
- }, Z = { class: "add-btn" }, de = /* @__PURE__ */ j({
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(S, { expose: W }) {
20
- const { i18nt: t } = J(), _ = S, x = k(null), f = k(!1), e = k([]), C = k(null), A = [
21
- { value: "left", label: "left" },
22
- { value: "center", label: "center" },
23
- { value: "right", label: "right" }
24
- ], E = [
25
- {
26
- title: "序号",
27
- dataIndex: "index",
28
- width: 100,
29
- fixed: "left",
30
- rowDrag: !0,
31
- resizable: !0,
32
- customRender: ({ index: c }) => c + 1
33
- },
34
- {
35
- title: t("designer.setting.columnName"),
36
- dataIndex: "dataIndex",
37
- resizable: !0,
38
- width: 150
39
- },
40
- {
41
- title: t("designer.setting.columnLabel"),
42
- dataIndex: "title",
43
- align: "center",
44
- resizable: !0,
45
- width: 100
46
- },
47
- {
48
- title: t("designer.setting.columnWidth"),
49
- dataIndex: "width",
50
- resizable: !0,
51
- width: 120
52
- },
53
- {
54
- title: t("designer.setting.visibleColumn"),
55
- dataIndex: "show",
56
- resizable: !0,
57
- width: 90
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($, {
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
- ], M = (c, g) => {
103
- var p;
104
- C.value = c, (p = x.value) == null || p.open(g.customRender || "");
105
- }, N = (c) => {
106
- C.value !== null && (e.value[C.value].customRender = c);
107
- }, V = () => {
108
- const c = {
109
- isAutoWidth: !1,
110
- columnId: (/* @__PURE__ */ new Date()).getTime(),
111
- show: !0,
112
- width: 150,
113
- sorter: !1,
114
- customRender: "",
115
- fixed: "",
116
- align: "left",
117
- title: "标题名",
118
- dataIndex: "",
119
- resizable: !0,
120
- showSorterTooltip: !1
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
- e.value.push(c), _.designer.emitHistoryChange();
123
- }, $ = (c) => {
124
- if (e.value.length === 1)
125
- return Q.warning(t("designer.setting.onlyOneColumnCannotBeDeleted")), !1;
126
- e.value.splice(c, 1);
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 W({
133
- openSetting: z
134
- }), (c, g) => {
135
- const p = h("a-button"), O = h("a-form-item"), w = h("a-input"), b = h("a-switch"), U = h("a-select-option"), R = h("a-select"), F = h("a-space"), L = h("s-table");
136
- return s(), I(q, null, [
137
- o(O, {
138
- label: n(t)("designer.setting.tableColEdit")
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: d(() => [
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
- }, 8, ["label"]),
154
- o(n(P), {
155
- title: n(t)("designer.setting.tableColEdit"),
156
- visible: f.value,
157
- "onUpdate:visible": g[2] || (g[2] = (i) => f.value = i),
158
- width: "1200px"
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
- footerRight: d(() => [
161
- o(p, {
162
- size: "default",
163
- onClick: g[1] || (g[1] = (i) => f.value = !1)
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: d(() => [
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
- o(p, {
171
- size: "default",
172
- type: "primary",
173
- onClick: B
303
+ }), m(k, {
304
+ value: "right"
174
305
  }, {
175
- default: d(() => [
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
- default: d(() => [
182
- T("div", X, [
183
- o(L, {
184
- class: "tpf-surely-table",
185
- "aria-hidden": "false",
186
- dataSource: e.value,
187
- style: { width: "100%" },
188
- deepWatchDataSource: "",
189
- "cell-style": { padding: "0" },
190
- height: "600",
191
- id: "singleTable",
192
- size: "default",
193
- scroll: { y: 300, x: 300 },
194
- pagination: !1,
195
- resizable: "",
196
- "row-key": (i) => i.columnId,
197
- columns: E
198
- }, {
199
- bodyCell: d(({ column: i, record: y, index: H, recordIndexs: l }) => [
200
- i.dataIndex === "dataIndex" ? (s(), r(w, {
201
- key: 0,
202
- value: e.value[l[0]].dataIndex,
203
- "onUpdate:value": (a) => e.value[l[0]].dataIndex = a
204
- }, null, 8, ["value", "onUpdate:value"])) : u("", !0),
205
- i.dataIndex === "title" ? (s(), r(w, {
206
- key: 1,
207
- value: e.value[l[0]].title,
208
- "onUpdate:value": (a) => e.value[l[0]].title = a
209
- }, null, 8, ["value", "onUpdate:value"])) : u("", !0),
210
- i.dataIndex === "width" ? (s(), I("div", Y, [
211
- o(b, {
212
- "checked-children": n(t)("designer.setting.autoWidth"),
213
- checked: e.value[l[0]].isAutoWidth,
214
- "onUpdate:checked": (a) => e.value[l[0]].isAutoWidth = a
215
- }, null, 8, ["checked-children", "checked", "onUpdate:checked"]),
216
- y.isAutoWidth ? u("", !0) : (s(), r(w, {
217
- key: 0,
218
- value: e.value[l[0]].width,
219
- "onUpdate:value": (a) => e.value[l[0]].width = a
220
- }, null, 8, ["value", "onUpdate:value"]))
221
- ])) : u("", !0),
222
- i.dataIndex === "show" ? (s(), r(b, {
223
- key: 3,
224
- checked: e.value[l[0]].show,
225
- "onUpdate:checked": (a) => e.value[l[0]].show = a
226
- }, null, 8, ["checked", "onUpdate:checked"])) : u("", !0),
227
- i.dataIndex === "sorter" ? (s(), r(b, {
228
- key: 4,
229
- checked: e.value[l[0]].sorter,
230
- "onUpdate:checked": (a) => e.value[l[0]].sorter = a
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", "visible"]),
320
- o(K, {
321
- onSave: N,
322
- ref_key: "CodeModalEditorRef",
323
- ref: x,
324
- title: n(t)("designer.setting.renderFunction"),
325
- "fn-params": "scope"
326
- }, null, 8, ["title"])
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
- de as default
374
+ fe as default
333
375
  };