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

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/components/FormRender/useFormRender.js +17 -0
  3. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +12 -12
  4. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +18 -20
  5. package/src/components/form-designer/form-widget/container-widget/vf-box-item.vue.js +9 -9
  6. package/src/components/form-designer/form-widget/field-widget/fieldMixin.js +4 -1
  7. package/src/components/form-designer/setting-panel/form-setting.vue.js +2 -2
  8. package/src/components/form-designer/setting-panel/form-setting.vue2.js +81 -94
  9. package/src/components/form-designer/setting-panel/index.vue.js +2 -2
  10. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-colorRow-editor.vue2.js +8 -7
  11. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +3 -3
  12. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue2.js +7 -7
  13. package/src/components/form-render/RenderWigetList.vue.js +60 -0
  14. package/src/components/form-render/RenderWigetList.vue2.js +4 -0
  15. package/src/components/form-render/SubmitButtonRender.vue.js +33 -29
  16. package/src/components/form-render/container-item/container-item-wrapper.vue.js +2 -23
  17. package/src/components/form-render/container-item/container-item-wrapper.vue2.js +20 -0
  18. package/src/components/form-render/container-item/data-table-item.vue.js +22 -36
  19. package/src/components/form-render/container-item/grid-item.vue.js +7 -7
  20. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +1 -1
  21. package/src/components/form-render/container-item/sub-form-item.vue.js +1 -1
  22. package/src/components/form-render/container-item/tab-item.vue.js +19 -19
  23. package/src/components/form-render/container-item/table-item.vue.js +7 -7
  24. package/src/components/form-render/container-item/vf-collapse-item.vue.js +27 -27
  25. package/src/components/form-render/dynamic-dialog.vue.js +70 -85
  26. package/src/components/form-render/index.vue.js +69 -98
  27. package/src/hooks/useLowcode.js +40 -39
  28. package/src/lang/en-US.js +3 -0
  29. package/src/lang/zh-CN.js +3 -0
  30. package/src/mixins/useDataTableMixin.js +18 -23
  31. package/stats.html +1 -1
  32. package/styles/style.css +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-beta.4",
3
+ "version": "2.14.0-beta.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,17 @@
1
+ import { ContainerWidgetMap as t } from "../form-render/container-item/index.js";
2
+ function a() {
3
+ function o(e) {
4
+ var r;
5
+ if (!e) return "";
6
+ const n = `./${e.type}-item.vue`;
7
+ return t[n] || console.warn(`未找到容器组件类型: ${e.type},请确保已注册该组件。`), (r = t[n]) == null ? void 0 : r.default;
8
+ }
9
+ return {
10
+ getFieldWidget: (e) => e ? (console.log({ widget: e.type }), `${e.type}-widget`) : "",
11
+ getContainerWidget: o,
12
+ ContainerWidgetMap: t
13
+ };
14
+ }
15
+ export {
16
+ a as useFormRender
17
+ };
@@ -1,22 +1,22 @@
1
1
  import u from "./data-table-widget.vue2.js";
2
- import { resolveComponent as a, createBlock as s, openBlock as l, withCtx as i, createElementBlock as C, withModifiers as p, normalizeClass as r, createElementVNode as y, createVNode as m, normalizeStyle as b, createCommentVNode as f } from "vue";
2
+ import { resolveComponent as a, createBlock as s, openBlock as n, withCtx as l, createElementBlock as C, withModifiers as p, normalizeClass as r, createElementVNode as y, createVNode as m, normalizeStyle as b, createCommentVNode as f } from "vue";
3
3
  /* empty css */
4
4
  import R from "../../../../../_virtual/_plugin-vue_export-helper.js";
5
5
  const z = { class: "talbe-wrapper" };
6
- function S(e, d, t, N, _, n) {
6
+ function S(e, i, t, N, k, d) {
7
7
  const c = a("a-empty"), w = a("RenderBodyCell"), g = a("s-table"), h = a("container-wrapper");
8
- return l(), s(h, {
8
+ return n(), s(h, {
9
9
  designer: t.designer,
10
10
  widget: t.widget,
11
11
  "parent-widget": t.parentWidget,
12
12
  "parent-list": t.parentList,
13
13
  "index-of-parent-list": t.indexOfParentList
14
14
  }, {
15
- default: i(() => [
16
- (l(), C("div", {
15
+ default: l(() => [
16
+ (n(), C("div", {
17
17
  key: t.widget.id,
18
- class: r(["collapse-container data-table-container", { selected: n.selected }]),
19
- onClick: d[0] || (d[0] = p((o) => n.selectWidget(t.widget), ["stop"]))
18
+ class: r(["collapse-container data-table-container", { selected: d.selected }]),
19
+ onClick: i[0] || (i[0] = p((o) => e.selectWidget(t.widget), ["stop"]))
20
20
  }, [
21
21
  y("div", z, [
22
22
  m(g, {
@@ -24,7 +24,7 @@ function S(e, d, t, N, _, n) {
24
24
  columns: e.columns.columns,
25
25
  scroll: { y: e.tableHeight },
26
26
  height: e.tableHeight,
27
- dataSource: n.data,
27
+ dataSource: d.data,
28
28
  class: r([e.customClass]),
29
29
  size: e.widgetSize,
30
30
  rowKey: (o) => o[t.widget.options.rowKey],
@@ -41,11 +41,11 @@ function S(e, d, t, N, _, n) {
41
41
  loading: e.loading,
42
42
  "row-height": e.lineHeight
43
43
  }, {
44
- emptyText: i(() => [
44
+ emptyText: l(() => [
45
45
  m(c)
46
46
  ]),
47
- bodyCell: i((o) => [
48
- e.isShowBodyCell(o.column.dataIndex) ? (l(), s(w, {
47
+ bodyCell: l((o) => [
48
+ e.isShowBodyCell(o.column.dataIndex) ? (n(), s(w, {
49
49
  key: 0,
50
50
  bodyCell: e.columns.bodyCell,
51
51
  scope: o
@@ -59,7 +59,7 @@ function S(e, d, t, N, _, n) {
59
59
  _: 1
60
60
  }, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
61
61
  }
62
- const W = /* @__PURE__ */ R(u, [["render", S], ["__scopeId", "data-v-83fedb64"]]);
62
+ const W = /* @__PURE__ */ R(u, [["render", S], ["__scopeId", "data-v-1355f36c"]]);
63
63
  export {
64
64
  W as default
65
65
  };
@@ -1,18 +1,18 @@
1
- import t from "./container-wrapper.vue.js";
2
- import i from "../../../../utils/emitter.js";
3
- import r from "../../../../utils/i18n.js";
4
- import o from "../field-widget/index.js";
5
- import a from "./containerMixin.js";
6
- import n from "../../refMixinDesign.js";
7
- import m from "../../../../mixins/useDataTableMixin.js";
8
- const l = {
1
+ import e from "./container-wrapper.vue.js";
2
+ import t from "../../../../utils/emitter.js";
3
+ import i from "../../../../utils/i18n.js";
4
+ import r from "../field-widget/index.js";
5
+ import o from "./containerMixin.js";
6
+ import a from "../../refMixinDesign.js";
7
+ import n from "../../../../mixins/useDataTableMixin.js";
8
+ const c = {
9
9
  name: "DataTableWidget",
10
10
  componentName: "DataTableWidget",
11
- mixins: [r, a, n, i, m],
11
+ mixins: [i, o, a, t, n],
12
12
  inject: ["refList"],
13
13
  components: {
14
- ContainerWrapper: t,
15
- ...o
14
+ ContainerWrapper: e,
15
+ ...r
16
16
  },
17
17
  data() {
18
18
  return {
@@ -45,9 +45,11 @@ const l = {
45
45
  this.initRefList();
46
46
  },
47
47
  mounted() {
48
- this.loadDataTableDataSource();
49
- },
50
- beforeUnmount() {
48
+ this.setPagination({
49
+ pageSize: this.widget.options.pagination.pageSize,
50
+ page: 1,
51
+ total: 1
52
+ });
51
53
  },
52
54
  computed: {
53
55
  data() {
@@ -57,12 +59,8 @@ const l = {
57
59
  return this.widget.id === this.designer.selectedId;
58
60
  }
59
61
  },
60
- methods: {
61
- selectWidget(e) {
62
- this.designer.setSelected(e);
63
- }
64
- }
62
+ methods: {}
65
63
  };
66
64
  export {
67
- l as default
65
+ c as default
68
66
  };
@@ -1,8 +1,8 @@
1
- import F from "../../../form-render/container-item/container-item-wrapper.vue.js";
1
+ import F from "../../../form-render/container-item/container-item-wrapper.vue2.js";
2
2
  import R from "../../../../utils/emitter.js";
3
- import { defineAsyncComponent as O, resolveComponent as c, withDirectives as L, createBlock as a, openBlock as n, withCtx as m, createElementBlock as f, normalizeStyle as S, normalizeClass as _, createCommentVNode as g, Fragment as p, renderList as u, resolveDynamicComponent as w, createSlots as b, renderSlot as h, mergeProps as x, vShow as k } from "vue";
4
- import j from "../../../../utils/i18n.js";
5
- import $ from "../field-widget/index.js";
3
+ import { defineAsyncComponent as O, resolveComponent as c, withDirectives as _, createBlock as a, openBlock as n, withCtx as m, createElementBlock as f, normalizeStyle as L, normalizeClass as S, createCommentVNode as g, Fragment as p, renderList as u, resolveDynamicComponent as w, createSlots as b, renderSlot as h, mergeProps as x, vShow as k } from "vue";
4
+ import $ from "../../../../utils/i18n.js";
5
+ import j from "../field-widget/index.js";
6
6
  import B from "../../../form-render/refMixin.js";
7
7
  import I from "../../../form-render/container-item/containerItemMixin.js";
8
8
  import M from "../../../svg-icon/index.vue.js";
@@ -12,11 +12,11 @@ const D = {
12
12
  name: "VfBoxItem",
13
13
  componentName: "boxItem",
14
14
  // 必须固定为ContainerItem,用于接收父级组件的broadcast事件
15
- mixins: [R, j, B, I],
15
+ mixins: [R, $, B, I],
16
16
  components: {
17
17
  ContainerItemWrapper: F,
18
18
  SvgIcon: M,
19
- ...$,
19
+ ...j,
20
20
  VFormRender: O(() => import("../../../form-render/index.vue.js"))
21
21
  },
22
22
  props: {
@@ -118,11 +118,11 @@ const D = {
118
118
  };
119
119
  function N(e, o, t, T, V, l) {
120
120
  const y = c("VFormRender"), C = c("container-item-wrapper");
121
- return L((n(), a(C, { widget: t.widget }, {
121
+ return _((n(), a(C, { widget: t.widget }, {
122
122
  default: m(() => [
123
123
  (n(), f("div", {
124
- class: _(["box-container-item", [l.customClass]]),
125
- style: S(l.boxStyle),
124
+ class: S(["box-container-item", [l.customClass]]),
125
+ style: L(l.boxStyle),
126
126
  key: t.widget.id
127
127
  }, [
128
128
  t.widget.options.formCode ? (n(), a(y, {
@@ -84,9 +84,12 @@ const g = {
84
84
  getPropName() {
85
85
  return this.subFormItemFlag && !this.designState ? this.subFormName + "." + this.subFormRowIndex + "." + this.field.options.name : this.field.options.name;
86
86
  },
87
+ getEl() {
88
+ return this.$el;
89
+ },
87
90
  initFieldModel() {
88
91
  if (this.field.formItemFlag) {
89
- if (console.log("initFieldModel"), this.subFormItemFlag && !this.designState) {
92
+ if (this.subFormItemFlag && !this.designState) {
90
93
  const i = this.formModel[this.subFormName];
91
94
  (i === void 0 || i[this.subFormRowIndex] === void 0 || i[this.subFormRowIndex][this.field.options.name] === void 0) && this.field.options.defaultValue !== void 0 ? (this.fieldModel = this.field.options.defaultValue, i[this.subFormRowIndex][this.field.options.name] = this.field.options.defaultValue) : i[this.subFormRowIndex][this.field.options.name] === void 0 ? (this.fieldModel = null, i[this.subFormRowIndex][this.field.options.name] = null) : this.fieldModel = i[this.subFormRowIndex][this.field.options.name], setTimeout(() => {
92
95
  this.handleOnChangeForSubForm(
@@ -1,7 +1,7 @@
1
1
  import o from "./form-setting.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a9d217e"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b0ffdf67"]]);
5
5
  export {
6
- e as default
6
+ p as default
7
7
  };
@@ -1,20 +1,19 @@
1
- import { defineComponent as Y, inject as Z, ref as f, onMounted as x, resolveComponent as u, createElementBlock as D, openBlock as S, Fragment as P, createVNode as n, withModifiers as ee, withCtx as t, createBlock as ne, createCommentVNode as oe, unref as a, createTextVNode as p, toDisplayString as C, normalizeClass as j, renderList as te } from "vue";
1
+ import { defineComponent as X, inject as Y, ref as f, onMounted as Z, resolveComponent as u, createElementBlock as D, openBlock as B, Fragment as K, createVNode as o, withModifiers as ee, withCtx as t, createBlock as oe, createCommentVNode as ne, unref as a, createTextVNode as p, toDisplayString as C, normalizeClass as P, renderList as te } from "vue";
2
2
  import { useI18n as le } from "../../../utils/i18n.js";
3
- import { insertCustomCssToHead as I, deepClone as T } from "../../../utils/util.js";
3
+ import { insertCustomCssToHead as j, deepClone as I } from "../../../utils/util.js";
4
4
  import ae from "../../public/methoad-item.vue.js";
5
5
  import se from "./property-editor/container-vf-dialog/okButtonHidden-editor.vue.js";
6
6
  import ie from "./property-editor/container-vf-dialog/cancelButtonHidden-editor.vue.js";
7
7
  import { TpfCodeEditor as re } from "tmgc2-share";
8
- import { Switch as de } from "ant-design-vue";
9
- const be = /* @__PURE__ */ Y({
8
+ const Ce = /* @__PURE__ */ X({
10
9
  name: "form-setting",
11
10
  __name: "form-setting",
12
11
  props: {
13
12
  designer: {},
14
13
  formConfig: {}
15
14
  },
16
- setup(K) {
17
- const m = K, { i18nt: s } = le(), B = Z("getDesignerConfig"), H = B ? B() : {}, F = f("javascript"), O = f(""), U = f(""), y = f(!1), N = f(""), M = f(["1", "2"]), c = f(""), E = f([]), w = f(""), A = f(null), R = [
15
+ setup(T) {
16
+ const m = T, { i18nt: s } = le(), F = Y("getDesignerConfig"), H = F ? F() : {}, y = f("javascript"), O = f(""), S = f(""), N = f(!1), U = f(""), M = f(["1", "2"]), c = f(""), E = f([]), _ = f(""), A = f(null), R = [
18
17
  { label: "default", value: "middle" },
19
18
  { label: "large", value: "large" },
20
19
  { label: "small", value: "small" }
@@ -23,79 +22,80 @@ const be = /* @__PURE__ */ Y({
23
22
  onFormMounted: "onFormMounted() {",
24
23
  onOkButtonClick: "onOkButtonClick() {",
25
24
  onCancelButtonClick: "onCancelButtonClick() {",
25
+ onFormEnterKey: "onFormEnterKey() {",
26
26
  onFormDataChange: "onFormDataChange(fieldName, newValue, oldValue, formModel, subFormName, subFormRowIndex) {"
27
27
  //'onFormValidate': 'onFormValidate() {',
28
28
  }, W = (e) => {
29
29
  m.formConfig[O.value] = e;
30
- }, k = (e) => {
31
- O.value = e.eventName, F.value = e.mode, y.value = e.isShowEventHeader, w.value = m.formConfig[e.eventName], U.value = e.title, N.value = e.eventHeader || "", A.value.open();
32
- }, $ = (e) => !!m.formConfig[e] && m.formConfig[e].length > 0, q = () => H.eventCollapse === void 0 ? !0 : !!H.eventCollapse, _ = () => {
33
- const e = /\..*{/g, o = c.value.match(e), g = [];
34
- o && o.length > 0 && o.forEach((r) => {
35
- const v = r.split(",");
30
+ }, w = (e) => {
31
+ O.value = e.eventName, y.value = e.mode, N.value = e.isShowEventHeader, _.value = m.formConfig[e.eventName], S.value = e.title, U.value = e.eventHeader || "", A.value.open();
32
+ }, $ = (e) => !!m.formConfig[e] && m.formConfig[e].length > 0, x = () => H.eventCollapse === void 0 ? !0 : !!H.eventCollapse, k = () => {
33
+ const e = /\..*{/g, n = c.value.match(e), g = [];
34
+ n && n.length > 0 && n.forEach((d) => {
35
+ const v = d.split(",");
36
36
  v.length > 0 && v.forEach((b) => {
37
37
  const i = b.trim();
38
38
  if (i.indexOf(".", 1) !== -1) {
39
- const d = i.substring(
39
+ const r = i.substring(
40
40
  i.indexOf(".") + 1,
41
41
  i.indexOf(".", 1)
42
42
  );
43
- d && g.push(d.trim());
43
+ r && g.push(r.trim());
44
44
  } else if (i.indexOf(" ") !== -1) {
45
- const d = i.substring(
45
+ const r = i.substring(
46
46
  i.indexOf(".") + 1,
47
47
  i.indexOf(" ")
48
48
  );
49
- d && g.push(d.trim());
49
+ r && g.push(r.trim());
50
50
  } else if (i.indexOf("{") !== -1) {
51
- const d = i.substring(
51
+ const r = i.substring(
52
52
  i.indexOf(".") + 1,
53
53
  i.indexOf("{")
54
54
  );
55
- g.push(d.trim());
55
+ g.push(r.trim());
56
56
  } else {
57
- const d = i.substring(i.indexOf(".") + 1);
58
- g.push(d.trim());
57
+ const r = i.substring(i.indexOf(".") + 1);
58
+ g.push(r.trim());
59
59
  }
60
60
  });
61
61
  });
62
62
  };
63
- return x(() => {
63
+ return Z(() => {
64
64
  m.designer.handleEvent("form-json-imported", () => {
65
- c.value = m.formConfig.cssCode, I(c.value), _(), m.designer.emitEvent("form-css-updated", T(E.value));
65
+ c.value = m.formConfig.cssCode, j(c.value), k(), m.designer.emitEvent("form-css-updated", I(E.value));
66
66
  }), setTimeout(() => {
67
- c.value = m.formConfig.cssCode, I(c.value), _(), m.designer.emitEvent("form-css-updated", T(E.value));
67
+ c.value = m.formConfig.cssCode, j(c.value), k(), m.designer.emitEvent("form-css-updated", I(E.value));
68
68
  }, 1200);
69
- }), (e, o) => {
70
- const g = u("a-select"), r = u("a-form-item"), v = u("a-radio-button"), b = u("a-radio-group"), i = u("a-input-number"), d = u("a-button"), L = u("a-input"), V = u("a-collapse-panel"), G = u("a-collapse"), J = u("a-form"), Q = u("a-config-provider");
71
- return S(), D(P, null, [
72
- n(J, {
69
+ }), (e, n) => {
70
+ const g = u("a-select"), d = u("a-form-item"), v = u("a-radio-button"), b = u("a-radio-group"), i = u("a-input-number"), r = u("a-button"), L = u("a-input"), V = u("a-collapse-panel"), q = u("a-collapse"), G = u("a-form"), J = u("a-config-provider");
71
+ return B(), D(K, null, [
72
+ o(G, {
73
73
  model: e.formConfig,
74
74
  labelAlign: "left",
75
75
  "label-width": "120px",
76
76
  class: "setting-form",
77
- onSubmit: o[11] || (o[11] = ee(() => {
77
+ onSubmit: n[10] || (n[10] = ee(() => {
78
78
  }, ["prevent"]))
79
79
  }, {
80
80
  default: t(() => [
81
- n(G, {
81
+ o(q, {
82
82
  activeKey: M.value,
83
- "onUpdate:activeKey": o[10] || (o[10] = (l) => M.value = l),
83
+ "onUpdate:activeKey": n[9] || (n[9] = (l) => M.value = l),
84
84
  class: "setting-collapse"
85
85
  }, {
86
86
  default: t(() => [
87
- n(V, {
87
+ o(V, {
88
88
  key: "1",
89
89
  header: a(s)("designer.setting.基本属性")
90
90
  }, {
91
91
  default: t(() => [
92
- n(r, {
92
+ o(d, {
93
93
  label: a(s)("designer.setting.formSize")
94
94
  }, {
95
95
  default: t(() => [
96
- n(g, {
96
+ o(g, {
97
97
  value: e.formConfig.size,
98
- "onUpdate:value": o[0] || (o[0] = (l) => e.formConfig.size = l),
98
+ "onUpdate:value": n[0] || (n[0] = (l) => e.formConfig.size = l),
99
99
  options: R,
100
100
  allowClear: "",
101
101
  style: { width: "120px" }
@@ -103,23 +103,23 @@ const be = /* @__PURE__ */ Y({
103
103
  ]),
104
104
  _: 1
105
105
  }, 8, ["label"]),
106
- n(r, {
106
+ o(d, {
107
107
  label: a(s)("designer.setting.labelPosition")
108
108
  }, {
109
109
  default: t(() => [
110
- n(b, {
110
+ o(b, {
111
111
  value: e.formConfig.labelPosition,
112
- "onUpdate:value": o[1] || (o[1] = (l) => e.formConfig.labelPosition = l),
112
+ "onUpdate:value": n[1] || (n[1] = (l) => e.formConfig.labelPosition = l),
113
113
  class: "radio-group-custom"
114
114
  }, {
115
115
  default: t(() => [
116
- n(v, { value: "horizontal" }, {
116
+ o(v, { value: "horizontal" }, {
117
117
  default: t(() => [
118
118
  p(C(a(s)("designer.setting.horizontal")), 1)
119
119
  ]),
120
120
  _: 1
121
121
  }),
122
- n(v, { value: "vertical" }, {
122
+ o(v, { value: "vertical" }, {
123
123
  default: t(() => [
124
124
  p(C(a(s)("designer.setting.vertical")), 1)
125
125
  ]),
@@ -131,23 +131,23 @@ const be = /* @__PURE__ */ Y({
131
131
  ]),
132
132
  _: 1
133
133
  }, 8, ["label"]),
134
- n(r, {
134
+ o(d, {
135
135
  label: a(s)("designer.setting.labelAlign")
136
136
  }, {
137
137
  default: t(() => [
138
- n(b, {
138
+ o(b, {
139
139
  value: e.formConfig.labelAlign,
140
- "onUpdate:value": o[2] || (o[2] = (l) => e.formConfig.labelAlign = l),
140
+ "onUpdate:value": n[2] || (n[2] = (l) => e.formConfig.labelAlign = l),
141
141
  class: "radio-group-custom"
142
142
  }, {
143
143
  default: t(() => [
144
- n(v, { value: "left" }, {
144
+ o(v, { value: "left" }, {
145
145
  default: t(() => [
146
146
  p(C(a(s)("designer.setting.leftAlign")), 1)
147
147
  ]),
148
148
  _: 1
149
149
  }),
150
- n(v, { value: "right" }, {
150
+ o(v, { value: "right" }, {
151
151
  default: t(() => [
152
152
  p(C(a(s)("designer.setting.rightAlign")), 1)
153
153
  ]),
@@ -159,13 +159,13 @@ const be = /* @__PURE__ */ Y({
159
159
  ]),
160
160
  _: 1
161
161
  }, 8, ["label"]),
162
- n(r, {
162
+ o(d, {
163
163
  label: a(s)("designer.setting.labelWidth")
164
164
  }, {
165
165
  default: t(() => [
166
- n(i, {
166
+ o(i, {
167
167
  value: e.formConfig.labelWidth,
168
- "onUpdate:value": o[3] || (o[3] = (l) => e.formConfig.labelWidth = l),
168
+ "onUpdate:value": n[3] || (n[3] = (l) => e.formConfig.labelWidth = l),
169
169
  min: 0,
170
170
  style: { width: "100%" },
171
171
  allowClear: ""
@@ -173,19 +173,19 @@ const be = /* @__PURE__ */ Y({
173
173
  ]),
174
174
  _: 1
175
175
  }, 8, ["label"]),
176
- n(r, {
176
+ o(d, {
177
177
  label: a(s)("designer.setting.formCss")
178
178
  }, {
179
179
  default: t(() => [
180
- n(d, {
180
+ o(r, {
181
181
  shape: "round",
182
- onClick: o[4] || (o[4] = (l) => k({
182
+ onClick: n[4] || (n[4] = (l) => w({
183
183
  eventName: "formCss",
184
184
  isShowEventHeader: !1,
185
185
  mode: "css",
186
186
  title: a(s)("designer.setting.formCss")
187
187
  })),
188
- class: j([{ "button-text-highlight": !!e.formConfig.cssCode }])
188
+ class: P([{ "button-text-highlight": !!e.formConfig.cssCode }])
189
189
  }, {
190
190
  default: t(() => [
191
191
  p(C(a(s)("designer.setting.addCss")), 1)
@@ -195,29 +195,29 @@ const be = /* @__PURE__ */ Y({
195
195
  ]),
196
196
  _: 1
197
197
  }, 8, ["label"]),
198
- n(r, {
198
+ o(d, {
199
199
  label: a(s)("designer.setting.customClass")
200
200
  }, {
201
201
  default: t(() => [
202
- n(g, {
202
+ o(g, {
203
203
  value: e.formConfig.customClass,
204
- "onUpdate:value": o[5] || (o[5] = (l) => e.formConfig.customClass = l),
204
+ "onUpdate:value": n[5] || (n[5] = (l) => e.formConfig.customClass = l),
205
205
  allowClear: "",
206
206
  mode: "tags",
207
- onChange: _,
207
+ onChange: k,
208
208
  options: E.value
209
209
  }, null, 8, ["value", "options"])
210
210
  ]),
211
211
  _: 1
212
212
  }, 8, ["label"]),
213
- n(r, {
213
+ o(d, {
214
214
  label: a(s)("designer.setting.globalFunctions")
215
215
  }, {
216
216
  default: t(() => [
217
- n(d, {
218
- class: j([{ "button-text-highlight": !!e.formConfig.functions }]),
217
+ o(r, {
218
+ class: P([{ "button-text-highlight": !!e.formConfig.functions }]),
219
219
  shape: "round",
220
- onClick: o[6] || (o[6] = (l) => k({
220
+ onClick: n[6] || (n[6] = (l) => w({
221
221
  eventName: "functions",
222
222
  isShowEventHeader: !1,
223
223
  mode: "javascript",
@@ -232,85 +232,72 @@ const be = /* @__PURE__ */ Y({
232
232
  ]),
233
233
  _: 1
234
234
  }, 8, ["label"]),
235
- n(r, {
235
+ o(d, {
236
236
  label: a(s)("designer.setting.cancelButtonLabel")
237
237
  }, {
238
238
  default: t(() => [
239
- n(L, {
239
+ o(L, {
240
240
  type: "text",
241
241
  value: e.formConfig.cancelButtonLabel,
242
- "onUpdate:value": o[7] || (o[7] = (l) => e.formConfig.cancelButtonLabel = l)
242
+ "onUpdate:value": n[7] || (n[7] = (l) => e.formConfig.cancelButtonLabel = l)
243
243
  }, null, 8, ["value"])
244
244
  ]),
245
245
  _: 1
246
246
  }, 8, ["label"]),
247
- n(ie, { optionModel: e.formConfig }, null, 8, ["optionModel"]),
248
- n(r, {
247
+ o(ie, { optionModel: e.formConfig }, null, 8, ["optionModel"]),
248
+ o(d, {
249
249
  label: a(s)("designer.setting.okButtonLabel")
250
250
  }, {
251
251
  default: t(() => [
252
- n(L, {
252
+ o(L, {
253
253
  type: "text",
254
254
  value: e.formConfig.okButtonLabel,
255
- "onUpdate:value": o[8] || (o[8] = (l) => e.formConfig.okButtonLabel = l)
255
+ "onUpdate:value": n[8] || (n[8] = (l) => e.formConfig.okButtonLabel = l)
256
256
  }, null, 8, ["value"])
257
257
  ]),
258
258
  _: 1
259
259
  }, 8, ["label"]),
260
- n(se, { optionModel: e.formConfig }, null, 8, ["optionModel"]),
261
- n(r, {
262
- label: a(s)("designer.setting.isEnterSubmit")
263
- }, {
264
- default: t(() => [
265
- n(a(de), {
266
- checked: e.formConfig.isEnterSubmit,
267
- "onUpdate:checked": o[9] || (o[9] = (l) => e.formConfig.isEnterSubmit = l),
268
- "checked-value": 1,
269
- "un-checked-value": 0
270
- }, null, 8, ["checked"])
271
- ]),
272
- _: 1
273
- }, 8, ["label"])
260
+ o(se, { optionModel: e.formConfig }, null, 8, ["optionModel"])
274
261
  ]),
275
262
  _: 1
276
263
  }, 8, ["header"]),
277
- q() ? (S(), ne(V, {
264
+ x() ? (B(), oe(V, {
278
265
  key: "2",
279
266
  class: "eventPanel",
280
267
  header: a(s)("designer.setting.事件属性")
281
268
  }, {
282
269
  default: t(() => [
283
- (S(), D(P, null, te(z, (l, h) => n(ae, {
284
- onClickItem: k,
270
+ (B(), D(K, null, te(z, (l, h) => o(ae, {
271
+ onClickItem: w,
285
272
  key: h,
286
273
  "event-name": h,
287
274
  value: e.formConfig[h],
288
- "onUpdate:value": (X) => e.formConfig[h] = X,
275
+ "onUpdate:value": (Q) => e.formConfig[h] = Q,
289
276
  "get-form-event-handled": $,
290
277
  "event-params-map": z,
291
278
  "form-config": e.formConfig
292
279
  }, null, 8, ["event-name", "value", "onUpdate:value", "form-config"])), 64))
293
280
  ]),
294
281
  _: 1
295
- }, 8, ["header"])) : oe("", !0)
282
+ }, 8, ["header"])) : ne("", !0)
296
283
  ]),
297
284
  _: 1
298
285
  }, 8, ["activeKey"])
299
286
  ]),
300
287
  _: 1
301
288
  }, 8, ["model"]),
302
- n(Q, { componentSize: "middle" }, {
289
+ o(J, { componentSize: "middle" }, {
303
290
  default: t(() => [
304
- n(a(re), {
305
- isShowEventHeader: y.value,
291
+ o(a(re), {
292
+ isShowEventHeader: N.value,
306
293
  ref_key: "codeEditorRef",
307
294
  ref: A,
308
- "event-header": N.value,
309
- modelValue: w.value,
310
- "onUpdate:modelValue": o[12] || (o[12] = (l) => w.value = l),
311
- mode: F.value,
295
+ "event-header": U.value,
296
+ modelValue: _.value,
297
+ "onUpdate:modelValue": n[11] || (n[11] = (l) => _.value = l),
298
+ mode: y.value,
312
299
  readonly: !1,
313
- title: U.value,
300
+ title: S.value,
314
301
  onSetCode: W
315
302
  }, null, 8, ["isShowEventHeader", "event-header", "modelValue", "mode", "title"])
316
303
  ]),
@@ -321,5 +308,5 @@ const be = /* @__PURE__ */ Y({
321
308
  }
322
309
  });
323
310
  export {
324
- be as default
311
+ Ce as default
325
312
  };
@@ -2,7 +2,7 @@ import t from "./index.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../../../_virtual/_plugin-vue_export-helper.js";
5
- const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b27948f1"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f4273f12"]]);
6
6
  export {
7
- e as default
7
+ a as default
8
8
  };
@@ -1,8 +1,9 @@
1
- import { defineComponent as i, mergeModels as s, useModel as a, resolveComponent as t, createBlock as p, openBlock as m, unref as u, withCtx as f, createVNode as _ } from "vue";
2
- import { useI18n as M } from "../../../../../utils/i18n.js";
3
- const h = /* @__PURE__ */ i({
1
+ import { defineComponent as a, mergeModels as i, useModel as s, resolveComponent as t, createBlock as p, openBlock as m, unref as u, withCtx as f, createVNode as _ } from "vue";
2
+ import { useI18n as w } from "../../../../../utils/i18n.js";
3
+ const g = /* @__PURE__ */ a({
4
+ name: "data-table-colorRow-editor",
4
5
  __name: "data-table-colorRow-editor",
5
- props: /* @__PURE__ */ s({
6
+ props: /* @__PURE__ */ i({
6
7
  designer: Object,
7
8
  selectedWidget: Object,
8
9
  optionModel: Object
@@ -17,8 +18,8 @@ const h = /* @__PURE__ */ i({
17
18
  }),
18
19
  emits: ["update:optionModel"],
19
20
  setup(n) {
20
- const { i18nt: l } = M(), e = a(n, "optionModel");
21
- return (w, o) => {
21
+ const { i18nt: l } = w(), e = s(n, "optionModel");
22
+ return (M, o) => {
22
23
  const c = t("a-switch"), d = t("a-form-item");
23
24
  return m(), p(d, {
24
25
  label: u(l)("designer.setting.selectRow")
@@ -35,5 +36,5 @@ const h = /* @__PURE__ */ i({
35
36
  }
36
37
  });
37
38
  export {
38
- h as default
39
+ g as default
39
40
  };