@kp-ui/lowcode 1.0.35 → 1.0.36

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.
Files changed (39) hide show
  1. package/_virtual/virtual_svg-icons-register.js +2 -2
  2. package/package.json +27 -27
  3. package/render.js +4 -1
  4. package/src/api/useFilesystemApi/filesystem/index.js +2 -1
  5. package/src/components/CustomRender/components/AttachmentRender.vue.js +1 -1
  6. package/src/components/CustomRender/components/AttachmentRender.vue2.js +8 -5
  7. package/src/components/CustomRender/useCustomRender.js +12 -4
  8. package/src/components/code-editor/code-modal-editor.vue.js +2 -2
  9. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +13 -63
  10. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +3 -1
  11. package/src/components/form-designer/setting-panel/form-setting.vue.js +19 -5
  12. package/src/components/form-designer/setting-panel/index.vue.js +4 -2
  13. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +20 -26
  14. package/src/components/form-designer/setting-panel/property-editor/diy-compontent-editor.vue.js +6 -0
  15. package/src/components/form-designer/toolbar-panel/index.vue.js +73 -34
  16. package/src/components/form-designer/widget-panel/advanced/diy-compontent.js +0 -1
  17. package/src/components/form-designer/widget-panel/advancedFieldsEnums.js +1 -2
  18. package/src/components/form-render/container-item/data-table-item.vue.js +14 -56
  19. package/src/components/http-editor/index.vue2.js +2 -1
  20. package/src/lang/zh-CN.js +1 -0
  21. package/src/mixins/useDataTableMixin.js +149 -27
  22. package/src/utils/request/fmtHttpParams.js +9 -9
  23. package/src/utils/request/handleAxiosError.js +31 -0
  24. package/src/utils/request/http.js +81 -0
  25. package/styles/style.css +1 -1
  26. package/types/src/components/CustomRender/components/AttachmentRender.d.ts.map +1 -1
  27. package/types/src/components/CustomRender/useCustomRender.d.ts.map +1 -1
  28. package/types/src/components/form-designer/setting-panel/index.d.ts.map +1 -1
  29. package/types/src/components/form-designer/toolbar-panel/index.d.ts.map +1 -1
  30. package/types/src/components/form-designer/widget-panel/advanced/diy-compontent.d.ts.map +1 -1
  31. package/types/src/components/form-designer/widget-panel/advancedFieldsEnums.d.ts +0 -8
  32. package/types/src/components/form-designer/widget-panel/advancedFieldsEnums.d.ts.map +1 -1
  33. package/types/src/components/form-render/index.d.ts +1 -0
  34. package/types/src/components/form-render/index.d.ts.map +1 -1
  35. package/types/src/utils/request/http.d.ts +3 -1
  36. package/types/src/utils/request/http.d.ts.map +1 -1
  37. package/src/components/form-designer/widget-panel/advanced/slot.js +0 -22
  38. package/types/src/components/lowcodeCompontent/index.d.ts +0 -6
  39. package/types/src/components/lowcodeCompontent/index.d.ts.map +0 -1
@@ -1,13 +1,13 @@
1
1
  if (typeof window !== "undefined") {
2
2
  let loadSvg = function() {
3
3
  var body = document.body;
4
- var svgDom = document.getElementById("__svg__icons__dom__1746769978374__");
4
+ var svgDom = document.getElementById("__svg__icons__dom__1747105292540__");
5
5
  if (!svgDom) {
6
6
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
7
7
  svgDom.style.position = "absolute";
8
8
  svgDom.style.width = "0";
9
9
  svgDom.style.height = "0";
10
- svgDom.id = "__svg__icons__dom__1746769978374__";
10
+ svgDom.id = "__svg__icons__dom__1747105292540__";
11
11
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
12
12
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
13
13
  }
package/package.json CHANGED
@@ -1,29 +1,29 @@
1
1
  {
2
- "name": "@kp-ui/lowcode",
3
- "version": "1.0.35",
4
- "publishConfig": {
5
- "access": "public"
6
- },
7
- "main": "index.js",
8
- "module": "index.js",
9
- "types": "main.d.ts",
10
- "dependencies": {
11
- "@element-plus/icons-vue": "^0.2.4",
12
- "@kp-ui/tool": "1.0.20",
13
- "animate.css": "^4.1.1",
14
- "ant-design-vue": "3.2.20",
15
- "axios": "^1.3.5",
16
- "bpmn-js": "13.2.0",
17
- "clipboard": "^2.0.8",
18
- "core-js": "^3.6.5",
19
- "dayjs": "^1.11.10",
20
- "file-saver": "^2.0.5",
21
- "json-bigint": "^1.0.0",
22
- "lodash-es": "^4.17.21",
23
- "mitt": "^3.0.0",
24
- "query-string": "^9.1.1",
25
- "sortablejs": "1.14.0",
26
- "vue": "3.3.11",
27
- "vue3-quill": "^0.2.6"
28
- }
2
+ "name": "@kp-ui/lowcode",
3
+ "version": "1.0.36",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "main": "index.js",
8
+ "module": "index.js",
9
+ "types": "main.d.ts",
10
+ "dependencies": {
11
+ "@element-plus/icons-vue": "^0.2.4",
12
+ "@kp-ui/tool": "1.0.20",
13
+ "animate.css": "^4.1.1",
14
+ "ant-design-vue": "3.2.20",
15
+ "axios": "^1.3.5",
16
+ "bpmn-js": "13.2.0",
17
+ "clipboard": "^2.0.8",
18
+ "core-js": "^3.6.5",
19
+ "dayjs": "^1.11.10",
20
+ "file-saver": "^2.0.5",
21
+ "json-bigint": "^1.0.0",
22
+ "lodash-es": "^4.17.21",
23
+ "mitt": "^3.0.0",
24
+ "query-string": "^9.1.1",
25
+ "sortablejs": "1.14.0",
26
+ "vue": "3.3.11",
27
+ "vue3-quill": "^0.2.6"
28
+ }
29
29
  }
package/render.js CHANGED
@@ -829,6 +829,9 @@ const _sfc_main = {
829
829
  }
830
830
  return topFormRef;
831
831
  },
832
+ exposed1() {
833
+ return this.vfCtx.factoryRender;
834
+ },
832
835
  setChildFormRef(childFormRef) {
833
836
  this.childFormRef = childFormRef;
834
837
  },
@@ -1001,7 +1004,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1001
1004
  _: 3
1002
1005
  }, 8, ["component-size"]);
1003
1006
  }
1004
- const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-fe3f93b2"]]);
1007
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a2ef0ffa"]]);
1005
1008
  export {
1006
1009
  index as default
1007
1010
  };
@@ -1,5 +1,6 @@
1
- import { getHttp } from "@kp-ui/tool";
1
+ import "../../../utils/request/http.js";
2
2
  import { saveAs } from "file-saver";
3
+ import { getHttp } from "@kp-ui/tool";
3
4
  const useFilesystemApi = () => {
4
5
  const http = getHttp();
5
6
  const tmgc2Filesystem = "/api/tmgc2-filesystem/";
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./AttachmentRender.vue2.js";
2
2
  /* empty css */
3
3
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const AttachmentRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3adb70ed"]]);
4
+ const AttachmentRender = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0f1e5918"]]);
5
5
  export {
6
6
  AttachmentRender as default
7
7
  };
@@ -8,8 +8,9 @@ const _hoisted_1 = {
8
8
  class: "attachment-render"
9
9
  };
10
10
  const _hoisted_2 = { class: "file-list" };
11
- const _hoisted_3 = { class: "file-name" };
12
- const _hoisted_4 = ["src"];
11
+ const _hoisted_3 = { class: "file-item__icon" };
12
+ const _hoisted_4 = { class: "file-name" };
13
+ const _hoisted_5 = ["src"];
13
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
15
  __name: "AttachmentRender",
15
16
  props: {
@@ -44,8 +45,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
44
45
  key: index,
45
46
  class: "file-item"
46
47
  }, [
47
- createVNode(unref(FileIcon), { file }, null, 8, ["file"]),
48
- createElementVNode("span", _hoisted_3, toDisplayString(file.fileName), 1),
48
+ createElementVNode("div", _hoisted_3, [
49
+ createVNode(unref(FileIcon), { file }, null, 8, ["file"])
50
+ ]),
51
+ createElementVNode("span", _hoisted_4, toDisplayString(file.fileName), 1),
49
52
  createVNode(unref(Button), {
50
53
  type: "link",
51
54
  onClick: () => unref(handleDownload)(file)
@@ -79,7 +82,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
82
  createElementVNode("img", {
80
83
  style: { "width": "100%" },
81
84
  src: unref(previewImage)
82
- }, null, 8, _hoisted_4)
85
+ }, null, 8, _hoisted_5)
83
86
  ]),
84
87
  _: 1
85
88
  }, 8, ["visible", "title", "onCancel"])
@@ -39,7 +39,11 @@ function useCustomRender() {
39
39
  try {
40
40
  const component = loadComponent(componentName);
41
41
  if (!component) {
42
- return h("span", { class: "component-not-found" }, `组件 "${componentName}" 未找到`);
42
+ return h(
43
+ "span",
44
+ { class: "component-not-found" },
45
+ `组件 "${componentName}" 未找到`
46
+ );
43
47
  }
44
48
  const vnode = h(component, props);
45
49
  return vnode;
@@ -51,11 +55,15 @@ function useCustomRender() {
51
55
  const customRender = (code, params, ctx) => {
52
56
  try {
53
57
  const { text, record, index, column } = params;
54
- const cusFunc = new Function("text", "record", "index", "column", "compontent", code);
55
- return cusFunc.call(ctx, text, record, index, column, renderComponent);
58
+ const cusFunc = new Function("text", "record", "index", "column", code);
59
+ return cusFunc.call(ctx, text, record, index, column);
56
60
  } catch (error) {
57
61
  console.error("Custom render execution failed:", error);
58
- return h("span", { class: "custom-render-error", style: { color: "red" } }, "自定义渲染失败");
62
+ return h(
63
+ "span",
64
+ { class: "custom-render-error", style: { color: "red" } },
65
+ "自定义渲染失败"
66
+ );
59
67
  }
60
68
  };
61
69
  return {
@@ -4,7 +4,7 @@ import _export_sfc from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const _hoisted_1 = { class: "dialog-footer" };
5
5
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
6
  const _component_a_alert = resolveComponent("a-alert");
7
- const _component_code_editor = resolveComponent("code-editor");
7
+ const _component_CodeEditor = resolveComponent("CodeEditor");
8
8
  const _component_a_button = resolveComponent("a-button");
9
9
  const _component_a_modal = resolveComponent("a-modal");
10
10
  return openBlock(), createBlock(_component_a_modal, {
@@ -47,7 +47,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
47
47
  closable: false,
48
48
  message: $props.eventHeader
49
49
  }, null, 8, ["message"])) : createCommentVNode("", true),
50
- createVNode(_component_code_editor, {
50
+ createVNode(_component_CodeEditor, {
51
51
  mode: $props.mode,
52
52
  readonly: $props.readonly,
53
53
  modelValue: $data.eventHandlerCode,
@@ -1,13 +1,10 @@
1
1
  import _sfc_main from "./data-table-widget.vue2.js";
2
- import { resolveComponent, createBlock, openBlock, normalizeStyle, withCtx, createElementBlock, withModifiers, normalizeClass, createVNode, createCommentVNode, Fragment, renderList, mergeProps, withDirectives, createTextVNode, toDisplayString, vShow } from "vue";
2
+ import { resolveComponent, createBlock, openBlock, normalizeStyle, withCtx, createElementBlock, withModifiers, normalizeClass, createVNode } from "vue";
3
3
  /* empty css */
4
4
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
6
  const _component_a_empty = resolveComponent("a-empty");
7
- const _component_a_table_column = resolveComponent("a-table-column");
8
- const _component_a_button = resolveComponent("a-button");
9
- const _component_a_space = resolveComponent("a-space");
10
- const _component_a_table = resolveComponent("a-table");
7
+ const _component_s_table = resolveComponent("s-table");
11
8
  const _component_container_wrapper = resolveComponent("container-wrapper");
12
9
  return openBlock(), createBlock(_component_container_wrapper, {
13
10
  designer: $props.designer,
@@ -21,85 +18,38 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
21
18
  (openBlock(), createElementBlock("div", {
22
19
  key: $props.widget.id,
23
20
  class: normalizeClass(["collapse-container data-table-container", { selected: $options.selected }]),
24
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectWidget($props.widget), ["stop"]))
21
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $options.selectWidget($props.widget), ["stop"]))
25
22
  }, [
26
- createVNode(_component_a_table, {
27
- ref: "dataTable1",
23
+ createVNode(_component_s_table, {
28
24
  class: normalizeClass(["tpf-table", [_ctx.customClass]]),
25
+ ref: "dataTable2",
26
+ columns: _ctx.columns,
27
+ size: _ctx.widgetSize,
29
28
  dataSource: $props.widget.options.dataSource,
30
29
  rowKey: (record) => record[$props.widget.options.rowKey],
31
30
  scroll: { y: parseFloat(_ctx.tableHeight || 0), x: 300 },
32
- size: _ctx.widgetSize,
33
31
  bordered: $props.widget.options.border,
34
32
  style: normalizeStyle({ width: $props.widget.options.tableWidth }),
35
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => $options.selectWidget($props.widget), ["stop"])),
36
33
  "row-class-name": _ctx.rowClassName,
37
34
  rowSelection: _ctx.handleRowSelection(),
38
35
  pagination: _ctx.fmtPagination,
39
- onChange: _ctx.handleTablePageChange,
40
36
  customRow: _ctx.handleCustomRow,
41
- onResizeColumn: _ctx.handleResizeColumn
37
+ rowClassName: _ctx.rowClassName,
38
+ onChange: _ctx.handleTablePageChange,
39
+ onResizeColumn: _ctx.handleResizeColumn,
40
+ loading: _ctx.loading
42
41
  }, {
43
42
  emptyText: withCtx(() => [
44
43
  createVNode(_component_a_empty)
45
44
  ]),
46
- default: withCtx(() => [
47
- $props.widget.options.showIndex ? (openBlock(), createBlock(_component_a_table_column, {
48
- key: 0,
49
- title: "序号",
50
- align: "left",
51
- width: 80,
52
- fixed: "left",
53
- customRender: _ctx.customRenderIndex
54
- }, null, 8, ["customRender"])) : createCommentVNode("", true),
55
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.options.tableColumns, (item, index) => {
56
- return openBlock(), createElementBlock(Fragment, null, [
57
- item.show !== false ? (openBlock(), createBlock(_component_a_table_column, mergeProps({ key: index }, _ctx.handleColumnItem(item), { showSorterTooltip: false }), null, 16)) : createCommentVNode("", true)
58
- ], 64);
59
- }), 256)),
60
- !!$props.widget.options.showButtonsColumn ? (openBlock(), createBlock(_component_a_table_column, {
61
- key: 1,
62
- fixed: "right",
63
- align: "center",
64
- title: $props.widget.options.buttonsColumnTitle,
65
- width: $props.widget.options.buttonsColumnWidth
66
- }, {
67
- default: withCtx((scope) => [
68
- createVNode(_component_a_space, null, {
69
- default: withCtx(() => [
70
- (openBlock(true), createElementBlock(Fragment, null, renderList($props.widget.options.operationButtons, (ob, inx) => {
71
- return withDirectives((openBlock(), createBlock(_component_a_button, {
72
- key: inx,
73
- type: ob.type,
74
- size: ob.size,
75
- shape: ob.shape,
76
- disabled: _ctx.disableOperationButton(ob, scope.index, scope.record),
77
- onClick: ($event) => _ctx.handleOperationButtonClick(ob.name, scope.index, scope.record, scope, ob),
78
- class: normalizeClass(["data-table-" + ob.name + "-button"])
79
- }, {
80
- default: withCtx(() => [
81
- createTextVNode(toDisplayString(_ctx.getOperationButtonLabel(ob, scope.index, scope.record)), 1)
82
- ]),
83
- _: 2
84
- }, 1032, ["type", "size", "shape", "disabled", "onClick", "class"])), [
85
- [vShow, _ctx.showOperationButton(ob, scope.index, scope.record)]
86
- ]);
87
- }), 128))
88
- ]),
89
- _: 2
90
- }, 1024)
91
- ]),
92
- _: 1
93
- }, 8, ["title", "width"])) : createCommentVNode("", true)
94
- ]),
95
45
  _: 1
96
- }, 8, ["dataSource", "rowKey", "scroll", "class", "size", "bordered", "style", "row-class-name", "rowSelection", "pagination", "onChange", "customRow", "onResizeColumn"])
46
+ }, 8, ["columns", "class", "size", "dataSource", "rowKey", "scroll", "bordered", "style", "row-class-name", "rowSelection", "pagination", "customRow", "rowClassName", "onChange", "onResizeColumn", "loading"])
97
47
  ], 2))
98
48
  ]),
99
49
  _: 1
100
50
  }, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list", "style"]);
101
51
  }
102
- const dataTableWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-a667e0af"]]);
52
+ const dataTableWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-87c3ea48"]]);
103
53
  export {
104
54
  dataTableWidget as default
105
55
  };
@@ -5,12 +5,15 @@ import comps from "../field-widget/index.js";
5
5
  import containerMixin from "./containerMixin.js";
6
6
  import refMixinDesign from "../../refMixinDesign.js";
7
7
  import useDataTableMixin from "../../../../mixins/useDataTableMixin.js";
8
+ import STable from "@surely-vue/table";
9
+ /* empty css */
8
10
  const _sfc_main = {
9
11
  name: "DataTableWidget",
10
12
  componentName: "DataTableWidget",
11
13
  mixins: [i18n, containerMixin, refMixinDesign, emitter, useDataTableMixin],
12
14
  inject: ["refList"],
13
15
  components: {
16
+ STable,
14
17
  ContainerWrapper,
15
18
  ...comps
16
19
  },
@@ -46,7 +49,6 @@ const _sfc_main = {
46
49
  },
47
50
  mounted() {
48
51
  this.loadDataTableDataSource();
49
- log;
50
52
  },
51
53
  beforeUnmount() {
52
54
  },
@@ -2,6 +2,7 @@ import i18n from "../../../utils/i18n.js";
2
2
  import CodeEditor from "../../code-editor/index.vue.js";
3
3
  import { insertGlobalFunctionsToHtml, insertCustomCssToHead, deepClone } from "../../../utils/util.js";
4
4
  import { resolveComponent, createElementBlock, openBlock, createVNode, createCommentVNode, withModifiers, withCtx, createBlock, createTextVNode, toDisplayString, normalizeClass, createElementVNode } from "vue";
5
+ /* empty css */
5
6
  import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
6
7
  const _sfc_main = {
7
8
  name: "form-setting",
@@ -88,13 +89,19 @@ const _sfc_main = {
88
89
  cssNameArray.push(newClass.trim());
89
90
  }
90
91
  } else if (caItem.indexOf(" ") !== -1) {
91
- const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf(" "));
92
+ const newClass = caItem.substring(
93
+ caItem.indexOf(".") + 1,
94
+ caItem.indexOf(" ")
95
+ );
92
96
  if (!!newClass) {
93
97
  cssNameArray.push(newClass.trim());
94
98
  }
95
99
  } else {
96
100
  if (caItem.indexOf("{") !== -1) {
97
- const newClass = caItem.substring(caItem.indexOf(".") + 1, caItem.indexOf("{"));
101
+ const newClass = caItem.substring(
102
+ caItem.indexOf(".") + 1,
103
+ caItem.indexOf("{")
104
+ );
98
105
  cssNameArray.push(newClass.trim());
99
106
  } else {
100
107
  const newClass = caItem.substring(caItem.indexOf(".") + 1);
@@ -347,6 +354,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
347
354
  }, 8, ["header"]),
348
355
  $options.showEventCollapse() ? (openBlock(), createBlock(_component_a_collapse_panel, {
349
356
  key: "2",
357
+ class: "eventPanel",
350
358
  header: _ctx.i18nt("designer.setting.事件属性")
351
359
  }, {
352
360
  default: withCtx(() => [
@@ -359,7 +367,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
359
367
  type: "info",
360
368
  plain: "",
361
369
  shape: "round",
362
- class: normalizeClass([$options.getFormEventHandled("onFormCreated") ? "button-text-highlight" : ""]),
370
+ class: normalizeClass([
371
+ $options.getFormEventHandled("onFormCreated") ? "button-text-highlight" : ""
372
+ ]),
363
373
  onClick: _cache[5] || (_cache[5] = ($event) => $options.editFormEventHandler("onFormCreated"))
364
374
  }, {
365
375
  default: withCtx(() => [
@@ -378,7 +388,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
378
388
  createVNode(_component_a_button, {
379
389
  type: "info",
380
390
  shape: "round",
381
- class: normalizeClass([$options.getFormEventHandled("onFormMounted") ? "button-text-highlight" : ""]),
391
+ class: normalizeClass([
392
+ $options.getFormEventHandled("onFormMounted") ? "button-text-highlight" : ""
393
+ ]),
382
394
  onClick: _cache[6] || (_cache[6] = ($event) => $options.editFormEventHandler("onFormMounted"))
383
395
  }, {
384
396
  default: withCtx(() => [
@@ -398,7 +410,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
398
410
  type: "info",
399
411
  plain: "",
400
412
  shape: "round",
401
- class: normalizeClass([$options.getFormEventHandled("onFormDataChange") ? "button-text-highlight" : ""]),
413
+ class: normalizeClass([
414
+ $options.getFormEventHandled("onFormDataChange") ? "button-text-highlight" : ""
415
+ ]),
402
416
  onClick: _cache[7] || (_cache[7] = ($event) => $options.editFormEventHandler("onFormDataChange"))
403
417
  }, {
404
418
  default: withCtx(() => [
@@ -159,7 +159,9 @@ const _sfc_main = {
159
159
  },
160
160
  editEventHandler(eventName, eventParams) {
161
161
  this.curEventName = eventName;
162
- this.eventHeader = `${this.optionModel.name}.${eventName}(${eventParams.join(", ")}) {`;
162
+ this.eventHeader = `${this.optionModel.name}.${eventName}(${eventParams.join(
163
+ ", "
164
+ )}) {`;
163
165
  this.eventHandlerCode = this.selectedWidget.options[eventName] || "";
164
166
  if (eventName === "onValidate" && !this.optionModel["onValidate"]) {
165
167
  this.eventHandlerCode = " /* sample code */\n /*\n if ((value > 100) || (value < 0)) {\n return Promise.reject('error message') //fail\n } else {\n return Promise.resolve(); //pass\n }\n */";
@@ -488,7 +490,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
488
490
  _: 1
489
491
  });
490
492
  }
491
- const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-485f8d38"]]);
493
+ const SettingPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f3fbcce3"]]);
492
494
  export {
493
495
  SettingPanel as default
494
496
  };
@@ -1,7 +1,7 @@
1
1
  import i18n from "../../../../../utils/i18n.js";
2
2
  import Sortable from "sortablejs";
3
3
  import CodeModalEditor from "../../../../code-editor/code-modal-editor.vue.js";
4
- import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, createCommentVNode, pushScopeId, popScopeId } from "vue";
4
+ import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, createBlock, createCommentVNode } from "vue";
5
5
  /* empty css */
6
6
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
7
7
  const _sfc_main = {
@@ -65,6 +65,7 @@ const _sfc_main = {
65
65
  width: 150,
66
66
  sorter: false,
67
67
  customRender: "",
68
+ autoHeight: false,
68
69
  fixed: "",
69
70
  align: "center",
70
71
  title: "标题名",
@@ -77,7 +78,9 @@ const _sfc_main = {
77
78
  },
78
79
  handleDelete(index, row) {
79
80
  if (this.optionModel.tableColumns.length === 1) {
80
- this.$message.warning(this.i18nt("designer.setting.onlyOneColumnCannotBeDeleted"));
81
+ this.$message.warning(
82
+ this.i18nt("designer.setting.onlyOneColumnCannotBeDeleted")
83
+ );
81
84
  return false;
82
85
  }
83
86
  this.optionModel.tableColumns.splice(index, 1);
@@ -94,10 +97,8 @@ const _sfc_main = {
94
97
  }
95
98
  }
96
99
  };
97
- const _withScopeId = (n) => (pushScopeId("data-v-227afdc4"), n = n(), popScopeId(), n);
98
100
  const _hoisted_1 = { class: "table-wrap" };
99
- const _hoisted_2 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-drag drag-option" }, null, -1));
100
- const _hoisted_3 = { class: "dialog-footer" };
101
+ const _hoisted_2 = { class: "dialog-footer" };
101
102
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
102
103
  const _component_a_button = resolveComponent("a-button");
103
104
  const _component_a_form_item = resolveComponent("a-form-item");
@@ -112,7 +113,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
112
113
  const _component_a_modal = resolveComponent("a-modal");
113
114
  const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
114
115
  return openBlock(), createElementBlock(Fragment, null, [
115
- createVNode(_component_a_form_item, { label: "表格列编辑" }, {
116
+ createVNode(_component_a_form_item, {
117
+ label: _ctx.i18nt("designer.setting.tableColEdit")
118
+ }, {
116
119
  default: withCtx(() => [
117
120
  createVNode(_component_a_button, {
118
121
  type: "primary",
@@ -126,7 +129,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
126
129
  }, 8, ["onClick"])
127
130
  ]),
128
131
  _: 1
129
- }),
132
+ }, 8, ["label"]),
130
133
  createVNode(_component_a_modal, {
131
134
  title: _ctx.i18nt("designer.setting.tableColEdit"),
132
135
  visible: $data.dialogVisible,
@@ -139,26 +142,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
139
142
  width: "1200px"
140
143
  }, {
141
144
  footer: withCtx(() => [
142
- createElementVNode("div", _hoisted_3, [
145
+ createElementVNode("div", _hoisted_2, [
143
146
  createVNode(_component_a_button, {
144
147
  size: "default",
145
- type: "primary",
146
- onClick: $options.colSubmit
148
+ onClick: _cache[0] || (_cache[0] = ($event) => $data.dialogVisible = false)
147
149
  }, {
148
150
  default: withCtx(() => [
149
- createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.confirm")), 1)
151
+ createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
150
152
  ]),
151
153
  _: 1
152
- }, 8, ["onClick"]),
154
+ }),
153
155
  createVNode(_component_a_button, {
154
156
  size: "default",
155
- onClick: _cache[0] || (_cache[0] = ($event) => $data.dialogVisible = false)
157
+ type: "primary",
158
+ onClick: $options.colSubmit
156
159
  }, {
157
160
  default: withCtx(() => [
158
- createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.cancel")), 1)
161
+ createTextVNode(toDisplayString(_ctx.i18nt("designer.hint.confirm")), 1)
159
162
  ]),
160
163
  _: 1
161
- })
164
+ }, 8, ["onClick"])
162
165
  ])
163
166
  ]),
164
167
  default: withCtx(() => [
@@ -182,15 +185,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
182
185
  fixed: "left",
183
186
  customRender: ({ index }) => index + 1
184
187
  }, null, 8, ["customRender"]),
185
- createVNode(_component_a_table_column, {
186
- title: "排序",
187
- width: 60
188
- }, {
189
- default: withCtx(() => [
190
- _hoisted_2
191
- ]),
192
- _: 1
193
- }),
194
188
  createVNode(_component_a_table_column, {
195
189
  title: _ctx.i18nt("designer.setting.columnName"),
196
190
  width: 100,
@@ -403,11 +397,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
403
397
  onSave: $options.saveColumnRender,
404
398
  ref: "CodeModalEditorRef",
405
399
  title: _ctx.i18nt("designer.setting.renderFunction"),
406
- "event-header": `function customRender(text, record, index, column, renderComponent) {`
400
+ "event-header": `function customRender(text, record, index, column) {`
407
401
  }, null, 8, ["modelValue", "onSave", "title", "event-header"])
408
402
  ], 64);
409
403
  }
410
- const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-227afdc4"]]);
404
+ const dataTableTableColumnsEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f04a5231"]]);
411
405
  export {
412
406
  dataTableTableColumnsEditor as default
413
407
  };
@@ -1,4 +1,5 @@
1
1
  import i18n from "../../../../utils/i18n.js";
2
+ import { getCompontents } from "../../../CustomRender/components/index.js";
2
3
  import { resolveComponent, createBlock, openBlock, withCtx, createVNode } from "vue";
3
4
  import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
5
  const _sfc_main = {
@@ -8,6 +9,11 @@ const _sfc_main = {
8
9
  designer: Object,
9
10
  selectedWidget: Object,
10
11
  optionModel: Object
12
+ },
13
+ data() {
14
+ return {
15
+ compontents: getCompontents()
16
+ };
11
17
  }
12
18
  };
13
19
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {