@kp-ui/lowcode 2.14.0-alpha.4 → 2.14.0-beta

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 (57) hide show
  1. package/install.js +24 -45
  2. package/package.json +1 -1
  3. package/src/components/form-designer/form-widget/container-widget/container-wrapper.vue.js +17 -17
  4. package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue.js +10 -10
  5. package/src/components/form-designer/form-widget/container-widget/index.js +6 -7
  6. package/src/components/form-designer/form-widget/container-widget/table-cell-widget.vue.js +9 -9
  7. package/src/components/form-designer/form-widget/field-widget/button-widget.vue.js +2 -2
  8. package/src/components/form-designer/form-widget/field-widget/diy-compontent-widget.vue.js +1 -1
  9. package/src/components/form-designer/form-widget/field-widget/form-item-wrapper.vue.js +32 -32
  10. package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +3 -3
  11. package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +7 -7
  12. package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue.js +18 -18
  13. package/src/components/form-designer/index.vue.js +21 -25
  14. package/src/components/form-designer/setting-panel/index.vue.js +55 -54
  15. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +10 -10
  16. package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue.js +14 -11
  17. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +2 -2
  18. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +116 -118
  19. package/src/components/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue.js +11 -11
  20. package/src/components/form-designer/setting-panel/property-editor/field-button/danger-editor.vue.js +13 -11
  21. package/src/components/form-designer/setting-panel/property-editor/field-button/ghost-editor.vue.js +15 -13
  22. package/src/components/form-designer/setting-panel/property-editor/field-button/icon-editor.vue.js +17 -14
  23. package/src/components/form-designer/setting-panel/property-editor/field-button/shape-editor.vue.js +14 -12
  24. package/src/components/form-designer/setting-panel/property-editor/field-dropdown/dropdown-menuList-editor.vue.js +15 -11
  25. package/src/components/form-designer/setting-panel/property-editor/field-file-upload/file-upload-fileTypes-editor.vue.js +2 -2
  26. package/src/components/form-designer/setting-panel/property-editor/field-picture-upload/picture-upload-fileTypes-editor.vue.js +2 -2
  27. package/src/components/form-designer/setting-panel/property-editor/field-treeSelect/treeSelect-treeDefaultExpandAll-editor.vue.js +16 -14
  28. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +16 -13
  29. package/src/components/form-designer/setting-panel/property-editor/name-editor.vue.js +7 -3
  30. package/src/components/form-designer/setting-panel/property-editor/placement-editor.vue.js +24 -22
  31. package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue.js +15 -12
  32. package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
  33. package/src/components/form-designer/toolbar-panel/index.vue2.js +66 -67
  34. package/src/components/form-designer/widget-panel/advanced/data-table.js +6 -1
  35. package/src/components/form-designer/widget-panel/basicFields/color.js +2 -7
  36. package/src/components/form-designer/widget-panel/index.vue.js +16 -16
  37. package/src/components/form-render/index.vue.js +10 -10
  38. package/src/components/http-editor/index.vue.js +27 -23
  39. package/src/components/public/ActionButtonListRender.vue.js +24 -19
  40. package/src/components/public/ActionButtonListRender.vue2.js +1 -1
  41. package/src/lang/en-US.js +17 -0
  42. package/src/lang/zh-CN.js +17 -0
  43. package/stats.html +1 -1
  44. package/styles/style.css +1 -1
  45. package/types/install.d.ts +3 -14
  46. package/src/components/form-render/container-item/data-table-item.vue.js +0 -149
  47. package/src/components/form-render/container-item/grid-col-item.vue.js +0 -149
  48. package/src/components/form-render/container-item/grid-item.vue.js +0 -92
  49. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +0 -319
  50. package/src/components/form-render/container-item/index.js +0 -24
  51. package/src/components/form-render/container-item/sub-form-item.vue.js +0 -429
  52. package/src/components/form-render/container-item/tab-item.vue.js +0 -160
  53. package/src/components/form-render/container-item/table-cell-item.vue.js +0 -95
  54. package/src/components/form-render/container-item/table-item.vue.js +0 -96
  55. package/src/components/form-render/container-item/vf-collapse-item.vue.js +0 -252
  56. package/src/components/form-render/container-item/vf-dialog-item.vue.js +0 -12
  57. package/src/components/form-render/container-item/vf-drawer-item.vue.js +0 -12
@@ -1,13 +1,17 @@
1
- import { defineComponent as f, mergeModels as c, useModel as b, computed as g, ref as v, resolveComponent as r, createElementBlock as M, openBlock as C, Fragment as w, createVNode as a, withCtx as d, normalizeClass as x, createTextVNode as _, toDisplayString as h, unref as S } from "vue";
2
- import { HttpEditor as y } from "tmgc2-share";
3
- import { useI18n as D } from "../../utils/i18n.js";
4
- const q = /* @__PURE__ */ f({
1
+ import { defineComponent as m, mergeModels as s, useModel as f, ref as b, resolveComponent as i, createElementBlock as c, openBlock as g, Fragment as v, createVNode as a, withCtx as r, normalizeClass as M, createTextVNode as w, toDisplayString as x, unref as C } from "vue";
2
+ import { HttpEditor as h } from "tmgc2-share";
3
+ import "../../utils/i18n.js";
4
+ const N = /* @__PURE__ */ m({
5
5
  __name: "index",
6
- props: /* @__PURE__ */ c({
6
+ props: /* @__PURE__ */ s({
7
7
  drawerTitle: {
8
8
  type: String,
9
9
  default: ""
10
10
  },
11
+ label: {
12
+ type: String,
13
+ default: ""
14
+ },
11
15
  buttonName: {
12
16
  type: String,
13
17
  default: ""
@@ -30,43 +34,43 @@ const q = /* @__PURE__ */ f({
30
34
  optionModelModifiers: {}
31
35
  }),
32
36
  emits: ["update:optionModel"],
33
- setup(t) {
34
- const n = b(t, "optionModel"), { i18nt: u } = D(), i = g(() => u("designer.setting.editAPIConfig")), o = v(!1), s = () => {
37
+ setup(e) {
38
+ const n = f(e, "optionModel"), o = b(!1), d = () => {
35
39
  o.value = !0;
36
40
  };
37
- return (N, e) => {
38
- const p = r("a-button"), m = r("a-form-item");
39
- return C(), M(w, null, [
40
- a(m, {
41
- label: i.value,
41
+ return (S, t) => {
42
+ const u = i("a-button"), p = i("a-form-item");
43
+ return g(), c(v, null, [
44
+ a(p, {
45
+ label: e.label,
42
46
  labelAlign: "left",
43
47
  "label-width": "150px"
44
48
  }, {
45
- default: d(() => [
46
- a(p, {
49
+ default: r(() => [
50
+ a(u, {
47
51
  shape: "round",
48
- onClick: s,
49
- class: x(["button-text-highlight"])
52
+ onClick: d,
53
+ class: M(["button-text-highlight"])
50
54
  }, {
51
- default: d(() => [
52
- _(h(t.buttonName || i.value), 1)
55
+ default: r(() => [
56
+ w(x(e.buttonName), 1)
53
57
  ]),
54
58
  _: 1
55
59
  })
56
60
  ]),
57
61
  _: 1
58
62
  }, 8, ["label"]),
59
- a(S(y), {
63
+ a(C(h), {
60
64
  "option-model": n.value,
61
- "onUpdate:optionModel": e[0] || (e[0] = (l) => n.value = l),
65
+ "onUpdate:optionModel": t[0] || (t[0] = (l) => n.value = l),
62
66
  visible: o.value,
63
- "onUpdate:visible": e[1] || (e[1] = (l) => o.value = l),
64
- "drawer-title": t.drawerTitle
67
+ "onUpdate:visible": t[1] || (t[1] = (l) => o.value = l),
68
+ "drawer-title": e.drawerTitle
65
69
  }, null, 8, ["option-model", "visible", "drawer-title"])
66
70
  ], 64);
67
71
  };
68
72
  }
69
73
  });
70
74
  export {
71
- q as default
75
+ N as default
72
76
  };
@@ -1,21 +1,21 @@
1
- import d from "./ActionButtonListRender.vue2.js";
2
- import { resolveComponent as n, createElementBlock as s, openBlock as t, normalizeStyle as p, normalizeClass as u, createBlock as a, Teleport as b, createVNode as f, withCtx as l, Fragment as _, renderList as m, createCommentVNode as y, createTextVNode as k, toDisplayString as C } from "vue";
1
+ import b from "./ActionButtonListRender.vue2.js";
2
+ import { resolveComponent as t, createElementBlock as s, openBlock as n, normalizeStyle as f, normalizeClass as _, createBlock as c, Teleport as m, createVNode as a, withCtx as l, Fragment as r, renderList as g, createCommentVNode as y, createTextVNode as k, toDisplayString as v } from "vue";
3
3
  /* empty css */
4
- import g from "../../../_virtual/_plugin-vue_export-helper.js";
5
- function v(o, B, S, $, h, z) {
6
- const r = n("SvgIcon"), c = n("a-button"), i = n("a-space");
7
- return t(), s("div", {
4
+ import C from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ function S(o, B, I, $, h, z) {
6
+ const i = t("SvgIcon"), d = t("SvgIcon2"), p = t("a-button"), u = t("a-space");
7
+ return n(), s("div", {
8
8
  ref: "fieldEditor",
9
- class: u(["button-list-container", ...o.customClass]),
10
- style: p(o.containerStyle)
9
+ class: _(["button-list-container", ...o.customClass]),
10
+ style: f(o.containerStyle)
11
11
  }, [
12
- (t(), a(b, {
12
+ (n(), c(m, {
13
13
  disabled: o.isDisabled,
14
14
  to: o.getContainer
15
15
  }, [
16
- f(i, { size: 8 }, {
16
+ a(u, { size: 8 }, {
17
17
  default: l(() => [
18
- (t(!0), s(_, null, m(o.visibleButtons, (e) => (t(), a(c, {
18
+ (n(!0), s(r, null, g(o.visibleButtons, (e) => (n(), c(p, {
19
19
  key: e.key,
20
20
  type: e.type,
21
21
  danger: e.danger,
@@ -24,12 +24,17 @@ function v(o, B, S, $, h, z) {
24
24
  onClick: (D) => o.handleClick(e)
25
25
  }, {
26
26
  default: l(() => [
27
- e.icon ? (t(), a(r, {
28
- key: 0,
29
- "icon-class": e.icon,
30
- class: "button-icon"
31
- }, null, 8, ["icon-class"])) : y("", !0),
32
- k(" " + C(e.label), 1)
27
+ e.icon ? (n(), s(r, { key: 0 }, [
28
+ a(i, {
29
+ "icon-class": e.icon,
30
+ class: "button-icon"
31
+ }, null, 8, ["icon-class"]),
32
+ a(d, {
33
+ "icon-class": e.icon,
34
+ class: "button-icon"
35
+ }, null, 8, ["icon-class"])
36
+ ], 64)) : y("", !0),
37
+ k(" " + v(e.label), 1)
33
38
  ]),
34
39
  _: 2
35
40
  }, 1032, ["type", "danger", "disabled", "onClick"]))), 128))
@@ -39,7 +44,7 @@ function v(o, B, S, $, h, z) {
39
44
  ], 8, ["disabled", "to"]))
40
45
  ], 6);
41
46
  }
42
- const L = /* @__PURE__ */ g(d, [["render", v], ["__scopeId", "data-v-b1664204"]]);
47
+ const T = /* @__PURE__ */ C(b, [["render", S], ["__scopeId", "data-v-8bf7bfc0"]]);
43
48
  export {
44
- L as default
49
+ T as default
45
50
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, computed as o } from "vue";
2
2
  import { executeFunction as a } from "../../utils/executeFunction.js";
3
- import y from "../svg-icon/index.vue.js";
3
+ import { SvgIcon as y } from "tmgc2-share";
4
4
  import { ButtonPositionEnum as m } from "../../constants/index.js";
5
5
  const g = f({
6
6
  name: "ActionButtonListRender",
package/src/lang/en-US.js CHANGED
@@ -182,6 +182,13 @@ const e = {
182
182
  tags: "Tags Mode",
183
183
  buttonList: "Button Group",
184
184
  buttonPosition: "Position",
185
+ fixed: "Fixed Position",
186
+ fixedRight: "Fixed Right",
187
+ resizableColumn: "Resizable Column",
188
+ ellipsisColumn: "Ellipsis Column",
189
+ treeDefaultExpandAll: "Default Expand All Tree Nodes",
190
+ shape: "Button Shape",
191
+ danger: "Danger Button",
185
192
  defaultPageSize: "Default Page Size",
186
193
  specifyPageSizeOptions: "Page Size Options",
187
194
  hideOnSinglePage: "Hide Pagination On Single Page",
@@ -346,6 +353,16 @@ const e = {
346
353
  undoMergeRow: "undo merge row",
347
354
  deleteEntireCol: "delete entire column",
348
355
  deleteEntireRow: "delete entire row",
356
+ ghost: "Ghost Button",
357
+ buttonConfig: "Button Config",
358
+ placement: "Placement",
359
+ bottomLeft: "Bottom Left",
360
+ bottom: "Bottom Center",
361
+ bottomRight: "Bottom Right",
362
+ topLeft: "Top Left",
363
+ top: "Top Center",
364
+ topRight: "Top Right",
365
+ menuList: "Menu Options",
349
366
  widgetName: "Unique Name",
350
367
  formSize: "Size",
351
368
  labelPosition: "Position Of Label",
package/src/lang/zh-CN.js CHANGED
@@ -178,6 +178,21 @@ const e = {
178
178
  multiple: "多选模式",
179
179
  tags: "标签模式",
180
180
  useModal: "使用功能按钮",
181
+ resizableColumn: "可拖动调整宽度",
182
+ ellipsisColumn: "超过宽度将自动省略",
183
+ treeDefaultExpandAll: "默认展开所有树节点",
184
+ shape: "按钮形状",
185
+ danger: "危险按钮",
186
+ ghost: "幽灵按钮",
187
+ buttonConfig: "按钮配置",
188
+ placement: "菜单弹出位置",
189
+ bottomLeft: "下左",
190
+ bottom: "下中",
191
+ bottomRight: "下右",
192
+ topLeft: "上左",
193
+ top: "上中",
194
+ topRight: "上右",
195
+ menuList: "下拉菜单选项设置",
181
196
  pagination: "分页配置",
182
197
  defaultPageSize: "默认的每页条数",
183
198
  specifyPageSizeOptions: "指定每页可以显示多少条",
@@ -287,6 +302,8 @@ const e = {
287
302
  addColumn: "增加栅格",
288
303
  responsive: "响应式布局",
289
304
  customRender: "自定义渲染",
305
+ fixed: "固定位置",
306
+ fixedRight: "固定在右边",
290
307
  labelBefore: "标签前面",
291
308
  labelAfter: "标签后面",
292
309
  tabPaneSetting: "选项卡设置",