@kp-ui/lowcode 2.14.0-beta.13 → 2.14.0-beta.15

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.
@@ -30,23 +30,25 @@ const h = {
30
30
  pageSize: null,
31
31
  sorts: []
32
32
  };
33
- this.ops = await this.$http.post("/api/tmgc2-query/dataQuery/execute", o).then((e) => e.data.object.list || []).then((e) => e.map((t) => ({ formCode: t.formCode })));
33
+ this.ops = await this.$http.post("/api/tmgc2-query/dataQuery/execute", o).then((e) => e.data.object.list || []).then(
34
+ (e) => e.map((t) => ({ formCode: t.formCode, formId: t.formId }))
35
+ );
34
36
  }
35
37
  }
36
38
  };
37
- function u(o, e, t, g, r, a) {
38
- const d = n("a-select"), i = n("a-form-item");
39
+ function u(o, e, t, g, r, d) {
40
+ const a = n("a-select"), i = n("a-form-item");
39
41
  return p(), l(i, {
40
42
  label: o.i18nt("designer.setting.formCode")
41
43
  }, {
42
44
  default: f(() => [
43
- c(d, {
45
+ c(a, {
44
46
  value: t.optionModel.formCode,
45
47
  "onUpdate:value": e[0] || (e[0] = (s) => t.optionModel.formCode = s),
46
48
  allowClear: "",
47
49
  options: r.ops,
48
50
  fieldNames: { label: "formCode", value: "formCode" },
49
- onChange: a.handleChangeFormCode
51
+ onChange: d.handleChangeFormCode
50
52
  }, null, 8, ["value", "options", "onChange"])
51
53
  ]),
52
54
  _: 1
@@ -1,9 +1,9 @@
1
1
  import { createVNode as w } from "vue";
2
- import { omit as c, isArray as g, isEmpty as u } from "lodash-es";
2
+ import { omit as u, isArray as g, isEmpty as d } from "lodash-es";
3
3
  import { fmtHttpParams as p } from "../utils/request/fmtHttpParams.js";
4
4
  import { TpfConfirm as f } from "../hooks/TpfConfirm.js";
5
5
  import m from "../components/CustomRender/RenderBodyCell.js";
6
- import { executeFunction as l } from "../utils/executeFunction.js";
6
+ import { executeFunction as r } from "../utils/executeFunction.js";
7
7
  import R from "../components/public/ActionButtonListRender.vue.js";
8
8
  const I = {
9
9
  data() {
@@ -22,8 +22,8 @@ const I = {
22
22
  inject: ["refList"],
23
23
  computed: {
24
24
  columns() {
25
- var r;
26
- const t = [], e = ((r = this.widget) == null ? void 0 : r.options) ?? {};
25
+ var c;
26
+ const t = [], e = ((c = this.widget) == null ? void 0 : c.options) ?? {};
27
27
  e.showIndex && t.push({
28
28
  title: "序号",
29
29
  align: "left",
@@ -39,7 +39,7 @@ const I = {
39
39
  })), s = [];
40
40
  if (e.showButtonsColumn) {
41
41
  const i = e.operationButtons ?? [];
42
- let d = this;
42
+ let a = this;
43
43
  s.push({
44
44
  fixed: "right",
45
45
  align: "center",
@@ -50,14 +50,17 @@ const I = {
50
50
  buttonList: i,
51
51
  flex: "center",
52
52
  scope: h,
53
- ctx: d
53
+ ctx: a
54
54
  }, null);
55
55
  }
56
56
  });
57
57
  }
58
58
  let n = {};
59
59
  return {
60
- columns: [...t, ...o, ...s].map((i) => (i.bodyCell && (n[i.dataIndex] = i.bodyCell, delete i.customRender), i)),
60
+ columns: [...t, ...o, ...s].map((i) => {
61
+ var a;
62
+ return (a = i.children) != null && a.length || delete i.children, i.bodyCell && (n[i.dataIndex] = i.bodyCell, delete i.customRender), i;
63
+ }),
61
64
  bodyCell: n
62
65
  };
63
66
  },
@@ -130,7 +133,7 @@ const I = {
130
133
  const {
131
134
  hasRowSelection: t
132
135
  } = this.widget.options.rowSelection;
133
- return t ? u(this.selectedRowInfo.selectedRowKeys) : u(this.selectRow);
136
+ return t ? d(this.selectedRowInfo.selectedRowKeys) : d(this.selectRow);
134
137
  },
135
138
  getSelectedRowKeys() {
136
139
  return this.selectedRowInfo.selectedRowKeys;
@@ -228,10 +231,10 @@ const I = {
228
231
  },
229
232
  // 处理列配置
230
233
  handleColumnItem(t) {
231
- const e = c(t, ["customRender"]), o = t.customRender;
234
+ const e = u(t, ["customRender"]), o = t.customRender;
232
235
  return t.minWidth = 50, t.maxWidth = 1200, t.isAutoWidth ? (t.width = null, delete t.width) : t.width = isNaN(Number(t.width)) ? t.width : Number(t.width), o ? {
233
236
  ...e,
234
- bodyCell: (s) => l({
237
+ bodyCell: (s) => r({
235
238
  functionBody: o,
236
239
  params: s,
237
240
  context: this,
@@ -252,7 +255,7 @@ const I = {
252
255
  this.skipSelectionChangeEvent = !0;
253
256
  try {
254
257
  if (n.onClick) {
255
- await l({
258
+ await r({
256
259
  functionBody: n.onClick,
257
260
  params: {
258
261
  record: o,
@@ -265,10 +268,10 @@ const I = {
265
268
  return;
266
269
  }
267
270
  const {
268
- onOperationButtonClick: a
271
+ onOperationButtonClick: l
269
272
  } = this.widget.options;
270
- a ? await l({
271
- functionBody: a,
273
+ l ? await r({
274
+ functionBody: l,
272
275
  params: {
273
276
  buttonName: t,
274
277
  rowIndex: e,
@@ -320,7 +323,7 @@ const I = {
320
323
  const t = this.widget.options.rowSelection;
321
324
  if (t.hasRowSelection)
322
325
  return {
323
- ...c(t, ["onChange"]),
326
+ ...u(t, ["onChange"]),
324
327
  onChange: (e, o) => {
325
328
  this.selectedRowInfo = {
326
329
  selectedRowKeys: e,