@kp-ui/lowcode 2.14.0-beta.3 → 2.14.0-beta.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.14.0-beta.3",
3
+ "version": "2.14.0-beta.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -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 a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-5def8b02"]]);
5
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ad7ebeb4"]]);
6
6
  export {
7
- a as default
7
+ p as default
8
8
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as ue, mergeModels as ce, useModel as B, inject as ve, ref as a, provide as I, computed as j, watchEffect as fe, watch as L, onBeforeMount as ge, resolveComponent as p, createElementBlock as P, openBlock as r, Fragment as w, createVNode as d, withCtx as u, createBlock as y, createCommentVNode as U, unref as E, createElementVNode as K, withModifiers as pe, renderList as z, normalizeClass as me, resolveDynamicComponent as ye } from "vue";
2
- import D from "./property-editor/index.js";
3
- import { TpfCodeEditor as Ee } from "tmgc2-share";
4
- import _e from "./form-setting.vue.js";
5
- import Ce from "./form-crud-setting.vue.js";
6
- import be, { propertyRegistered as he, getPropertyEditor as Pe } from "./propertyRegister.js";
7
- import { get as q } from "../../../utils/smart-vue-i18n/utils.js";
8
- import { useEmitter as we } from "../../../utils/useEmitter.js";
9
- import { useI18n as Me } from "../../../utils/i18n.js";
10
- const He = { class: "setting-scrollbar" }, Se = { class: "setting-scrollbar" }, ke = { class: "ds-setting-scrollbar" }, We = /* @__PURE__ */ ue({
1
+ import { defineComponent as ie, mergeModels as re, useModel as B, inject as de, ref as i, provide as I, computed as M, watchEffect as ue, watch as L, onBeforeMount as ce, resolveComponent as f, createElementBlock as T, openBlock as g, Fragment as V, createVNode as r, withCtx as d, createBlock as C, createCommentVNode as ve, unref as h, createElementVNode as K, withModifiers as pe, renderList as U, normalizeClass as fe, resolveDynamicComponent as ge } from "vue";
2
+ import $ from "./property-editor/index.js";
3
+ import { TpfCodeEditor as me } from "tmgc2-share";
4
+ import ye from "./form-setting.vue.js";
5
+ import Ee from "./form-crud-setting.vue.js";
6
+ import _e, { PROPERTY_TYPE as R } from "./propertyRegister.js";
7
+ import { get as x } from "../../../utils/smart-vue-i18n/utils.js";
8
+ import { useEmitter as be } from "../../../utils/useEmitter.js";
9
+ import { useI18n as Ce } from "../../../utils/i18n.js";
10
+ const he = { class: "setting-scrollbar" }, Pe = { class: "setting-scrollbar" }, ke = { class: "ds-setting-scrollbar" }, Ve = /* @__PURE__ */ ie({
11
11
  name: "SettingPanel",
12
12
  componentName: "SettingPanel",
13
13
  __name: "index",
14
- props: /* @__PURE__ */ ce({
14
+ props: /* @__PURE__ */ re({
15
15
  designer: { default: () => {
16
16
  } },
17
17
  globalDsv: {}
@@ -26,10 +26,12 @@ const He = { class: "setting-scrollbar" }, Se = { class: "setting-scrollbar" },
26
26
  "selected-widgetModifiers": {}
27
27
  }),
28
28
  emits: ["update:form-config", "update:selected-widget"],
29
- setup(M, { expose: G }) {
30
- const { i18nt: c } = Me(), { COMMON_PROPERTIES: O, ADVANCED_PROPERTIES: R, EVENT_PROPERTIES: T } = be, v = M, H = B(M, "form-config"), _ = we(), Q = v.globalDsv || {}, X = ve("getDesignerConfig"), W = a(!1);
31
- I("isSubFormChildWidget", () => W.value), I("getGlobalDsv", () => Q);
32
- const S = a(), F = a(""), C = a("javascript"), k = a("2"), J = a(["1", "2", "3"]), f = a(""), m = a(""), $ = a(""), o = B(M, "selected-widget"), x = j(() => X()), l = j({
29
+ setup(j, { expose: z }) {
30
+ const { i18nt: u } = Ce(), { COMMON_PROPERTIES: Y, ADVANCED_PROPERTIES: G, EVENT_PROPERTIES: q } = _e, m = j, H = B(j, "form-config"), P = be(), Q = m.globalDsv || {}, X = de("getDesignerConfig"), D = i(!1);
31
+ I("isSubFormChildWidget", () => D.value), I("getGlobalDsv", () => Q);
32
+ const S = i(), W = i(""), k = i("javascript"), w = i("2"), A = i(["1", "2", "3"]), c = i(""), E = i(""), N = i(""), o = B(j, "selected-widget");
33
+ M(() => X());
34
+ const s = M({
33
35
  get() {
34
36
  var e;
35
37
  return ((e = o.value) == null ? void 0 : e.options) || {};
@@ -37,170 +39,168 @@ const He = { class: "setting-scrollbar" }, Se = { class: "setting-scrollbar" },
37
39
  set(e) {
38
40
  o.value.options = e;
39
41
  }
40
- }), Y = (e) => !!l.value[e] && l.value[e].length > 0, Z = () => x.value.eventCollapse === void 0 ? !0 : !!x.value.eventCollapse, A = (e, t) => {
41
- if (!t)
42
- return !1;
43
- if (e.indexOf("-") <= -1) {
44
- const g = o.value.type + "-" + e;
45
- if (he(g))
46
- return !1;
42
+ }), Z = (e) => !!s.value[e] && s.value[e].length > 0, F = M(
43
+ () => {
44
+ var e;
45
+ return Object.keys(((e = o.value) == null ? void 0 : e.options) || {});
47
46
  }
48
- const n = e.replace(o.value.type + "-", "");
49
- return v.designer.hasConfig(o.value, n);
50
- }, ee = (e, t) => {
51
- const n = e.replace(o.value.type + "-", ""), s = Pe(n);
52
- return D[s] ? D[s] : D[n];
53
- }, V = (e) => {
54
- let t = !1;
55
- for (const n in e)
56
- if (Object.prototype.hasOwnProperty.call(e, n) && A(n, e[n])) {
57
- t = !0;
58
- break;
47
+ ), O = (e) => {
48
+ const t = o.value.type;
49
+ let n = {};
50
+ return Object.entries(e).map(([l, v]) => {
51
+ for (let p = 0; p < F.value.length; p++) {
52
+ const _ = F.value[p];
53
+ if (l === _) {
54
+ const y = v, b = `${t}-${y}`;
55
+ $[b] ? n[b] = $[b] : $[y] && (n[y] = $[y]);
56
+ break;
57
+ }
59
58
  }
60
- return t;
61
- }, te = j(() => {
62
- const e = V(O), t = V(R), n = Z() && V(T);
63
- return [
59
+ }), n;
60
+ }, ee = M(() => {
61
+ const e = O(Y), t = O(G), n = O(q);
62
+ return console.log(e, t, n), [
64
63
  {
65
64
  key: "1",
66
- headerKey: c("designer.setting.常见属性"),
67
- props: O,
65
+ headerKey: u("designer.setting.常见属性"),
66
+ props: e,
67
+ type: R.Common,
68
68
  className: "",
69
- visible: e,
69
+ visible: Object.keys(e).length > 0,
70
70
  useVModel: !0,
71
71
  isEvent: !1
72
72
  },
73
73
  {
74
74
  key: "2",
75
- headerKey: c("designer.setting.高级属性"),
76
- props: R,
75
+ headerKey: u("designer.setting.高级属性"),
76
+ props: t,
77
+ type: R.Advanced,
77
78
  className: "",
78
- visible: t,
79
+ visible: Object.keys(t).length > 0,
79
80
  useVModel: !1,
80
81
  isEvent: !1
81
82
  },
82
83
  {
83
84
  key: "3",
84
- headerKey: c("designer.setting.事件属性"),
85
- props: T,
85
+ headerKey: u("designer.setting.事件属性"),
86
+ props: n,
87
+ type: R.Event,
86
88
  className: "eventPanel",
87
- visible: n,
89
+ visible: Object.keys(n).length > 0,
88
90
  useVModel: !1,
89
91
  isEvent: !0
90
92
  }
91
- ].filter((s) => s.visible);
92
- }), ne = () => {
93
- _.off$("onChangeEventHandler"), _.on$("onChangeEventHandler", ({ title: e, attr: t, eventParams: n = [], mode: s }) => {
94
- F.value = e || c("designer.setting.editWidgetEventHandler");
95
- const g = s === "json";
96
- m.value = t, C.value = s;
97
- const b = `${l.value.name}.${t}`;
98
- $.value = g ? `${b}{` : `${b}(${n.join(", ")}) {`, f.value = q(o.value.options, t) || "", s === "json" && (f.value = JSON.stringify(l.value.menuList, null, " ")), t === "onValidate" && !l.value.onValidate && (f.value = ` /* sample code */
93
+ ].filter((l) => l.visible);
94
+ }), te = () => {
95
+ P.off$("onChangeEventHandler"), P.on$("onChangeEventHandler", ({ title: e, attr: t, eventParams: n = [], mode: l }) => {
96
+ W.value = e || u("designer.setting.editWidgetEventHandler");
97
+ const v = l === "json";
98
+ E.value = t, k.value = l;
99
+ const p = `${s.value.name}.${t}`;
100
+ N.value = v ? `${p}{` : `${p}(${n.join(", ")}) {`, c.value = x(o.value.options, t) || "", l === "json" && (c.value = JSON.stringify(s.value.menuList, null, " ")), t === "onValidate" && !s.value.onValidate && (c.value = ` /* sample code */
99
101
  /*
100
102
  if ((value > 100) || (value < 0)) {
101
103
  return Promise.reject('error message') //fail
102
104
  } else {
103
105
  return Promise.resolve(); //pass
104
106
  }
105
- */`), S.value.open(f.value);
107
+ */`), S.value.open(c.value);
106
108
  });
107
- }, oe = (e, t, n = "javascript") => {
108
- const s = n === "json";
109
- m.value = e, C.value = n;
110
- const g = `${l.value.name}.${e}`;
111
- $.value = s ? `${g}{` : `${g}(${t.join(", ")}) {`, f.value = q(o.value.options, e) || "", n === "json" && (f.value = JSON.stringify(l.value.menuList, null, " ")), e === "onValidate" && !l.value.onValidate && (f.value = ` /* sample code */
109
+ }, ne = (e, t, n = "javascript") => {
110
+ const l = n === "json";
111
+ E.value = e, k.value = n;
112
+ const v = `${s.value.name}.${e}`;
113
+ N.value = l ? `${v}{` : `${v}(${t.join(", ")}) {`, c.value = x(o.value.options, e) || "", n === "json" && (c.value = JSON.stringify(s.value.menuList, null, " ")), e === "onValidate" && !s.value.onValidate && (c.value = ` /* sample code */
112
114
  /*
113
115
  if ((value > 100) || (value < 0)) {
114
116
  return Promise.reject('error message') //fail
115
117
  } else {
116
118
  return Promise.resolve(); //pass
117
119
  }
118
- */`), S.value.open(f.value);
119
- }, se = (e) => {
120
- if (C.value === "json" && (e = JSON.parse(e)), m.value.includes(".")) {
121
- const [t, n] = m.value.split(".");
120
+ */`), S.value.open(c.value);
121
+ }, oe = (e) => {
122
+ if (k.value === "json" && (e = JSON.parse(e)), E.value.includes(".")) {
123
+ const [t, n] = E.value.split(".");
122
124
  o.value.options[t][n] = e;
123
125
  } else
124
- o.value.options[m.value] = e;
126
+ o.value.options[E.value] = e;
125
127
  };
126
- return fe(() => {
127
- o.value && (k.value = "1");
128
+ return ue(() => {
129
+ o.value && (w.value = "1");
128
130
  }), L(
129
131
  () => {
130
132
  var e;
131
133
  return (e = o.value) == null ? void 0 : e.options;
132
134
  },
133
135
  () => {
134
- v.designer.saveCurrentHistoryStep();
136
+ m.designer.saveCurrentHistoryStep();
135
137
  },
136
138
  { deep: !0 }
137
139
  ), L(
138
- () => v.formConfig,
140
+ () => m.formConfig,
139
141
  () => {
140
- v.designer.saveCurrentHistoryStep();
142
+ m.designer.saveCurrentHistoryStep();
141
143
  },
142
144
  { deep: !0 }
143
- ), ge(() => {
144
- _.on$("editEventHandler", (e) => {
145
- oe(e[0], e[1], e[2]);
146
- }), ne(), v.designer.handleEvent("form-css-updated", (e) => {
147
- v.designer.setCssClassList(e);
148
- }), v.designer.handleEvent("field-selected", (e) => {
149
- W.value = !!e && e.type === "sub-form";
145
+ ), ce(() => {
146
+ P.on$("editEventHandler", (e) => {
147
+ ne(e[0], e[1], e[2]);
148
+ }), te(), m.designer.handleEvent("form-css-updated", (e) => {
149
+ m.designer.setCssClassList(e);
150
+ }), m.designer.handleEvent("field-selected", (e) => {
151
+ D.value = !!e && e.type === "sub-form";
150
152
  });
151
- }), G({
152
- emit$: _.emit$
153
+ }), z({
154
+ emit$: P.emit$
153
155
  }), (e, t) => {
154
- const n = p("a-collapse-panel"), s = p("a-collapse"), g = p("a-form"), b = p("a-empty"), N = p("a-tab-pane"), le = p("a-tabs"), ie = p("a-layout"), ae = p("a-config-provider");
155
- return r(), P(w, null, [
156
- d(ae, { componentSize: "small" }, {
157
- default: u(() => [
158
- d(ie, { class: "panel-container" }, {
159
- default: u(() => [
160
- d(le, {
161
- activeKey: k.value,
162
- "onUpdate:activeKey": t[4] || (t[4] = (i) => k.value = i),
156
+ const n = f("a-collapse-panel"), l = f("a-collapse"), v = f("a-form"), p = f("a-empty"), _ = f("a-tab-pane"), y = f("a-tabs"), b = f("a-layout"), se = f("a-config-provider");
157
+ return g(), T(V, null, [
158
+ r(se, { componentSize: "small" }, {
159
+ default: d(() => [
160
+ r(b, { class: "panel-container" }, {
161
+ default: d(() => [
162
+ r(y, {
163
+ activeKey: w.value,
164
+ "onUpdate:activeKey": t[4] || (t[4] = (a) => w.value = a),
163
165
  style: { height: "100%", width: "100%", overflow: "hidden" }
164
166
  }, {
165
- default: u(() => [
166
- d(N, {
167
- tab: E(c)("designer.hint.widgetSetting"),
167
+ default: d(() => [
168
+ r(_, {
169
+ tab: h(u)("designer.hint.widgetSetting"),
168
170
  key: "1"
169
171
  }, {
170
- default: u(() => [
171
- K("div", He, [
172
- e.designer.selectedWidget ? (r(), y(g, {
172
+ default: d(() => [
173
+ K("div", he, [
174
+ e.designer.selectedWidget ? (g(), C(v, {
173
175
  key: 0,
174
- model: l.value,
176
+ model: s.value,
175
177
  labelAlign: "left",
176
178
  "label-width": "120px",
177
179
  class: "setting-form tpf-form",
178
180
  onSubmit: t[2] || (t[2] = pe(() => {
179
181
  }, ["prevent"]))
180
182
  }, {
181
- default: u(() => [
182
- d(s, {
183
- activeKey: J.value,
184
- "onUpdate:activeKey": t[1] || (t[1] = (i) => J.value = i),
183
+ default: d(() => [
184
+ r(l, {
185
+ activeKey: A.value,
186
+ "onUpdate:activeKey": t[1] || (t[1] = (a) => A.value = a),
185
187
  class: "setting-collapse"
186
188
  }, {
187
- default: u(() => [
188
- (r(!0), P(w, null, z(te.value, (i) => (r(), y(n, {
189
- key: i.key,
190
- class: me(i.className),
191
- header: i.headerKey
189
+ default: d(() => [
190
+ (g(!0), T(V, null, U(ee.value, (a) => (g(), C(n, {
191
+ key: a.key,
192
+ class: fe(a.className),
193
+ header: a.headerKey
192
194
  }, {
193
- default: u(() => [
194
- (r(!0), P(w, null, z(i.props, (re, h) => (r(), P(w, null, [
195
- A(h, re) ? (r(), y(ye(ee(h)), {
196
- key: h,
197
- designer: e.designer,
198
- "selected-widget": o.value,
199
- "option-model": l.value,
200
- "onUpdate:optionModel": t[0] || (t[0] = (de) => l.value = de),
201
- "event-handled": Y(h)
202
- }, null, 40, ["designer", "selected-widget", "option-model", "event-handled"])) : U("", !0)
203
- ], 64))), 256))
195
+ default: d(() => [
196
+ (g(!0), T(V, null, U(a.props, (le, J) => (g(), C(ge(le), {
197
+ key: J,
198
+ designer: e.designer,
199
+ "selected-widget": o.value,
200
+ "option-model": s.value,
201
+ "onUpdate:optionModel": t[0] || (t[0] = (ae) => s.value = ae),
202
+ "event-handled": Z(J)
203
+ }, null, 40, ["designer", "selected-widget", "option-model", "event-handled"]))), 128))
204
204
  ]),
205
205
  _: 2
206
206
  }, 1032, ["class", "header"]))), 128))
@@ -209,38 +209,38 @@ const He = { class: "setting-scrollbar" }, Se = { class: "setting-scrollbar" },
209
209
  }, 8, ["activeKey"])
210
210
  ]),
211
211
  _: 1
212
- }, 8, ["model"])) : (r(), y(b, {
212
+ }, 8, ["model"])) : (g(), C(p, {
213
213
  key: 1,
214
- description: E(c)("designer.hint.noSelectedWidgetHint")
214
+ description: h(u)("designer.hint.noSelectedWidgetHint")
215
215
  }, null, 8, ["description"]))
216
216
  ])
217
217
  ]),
218
218
  _: 1
219
219
  }, 8, ["tab"]),
220
- e.designer ? (r(), y(N, {
221
- tab: E(c)("designer.hint.表单设置"),
220
+ e.designer ? (g(), C(_, {
221
+ tab: h(u)("designer.hint.表单设置"),
222
222
  key: "2"
223
223
  }, {
224
- default: u(() => [
225
- K("div", Se, [
226
- d(_e, {
224
+ default: d(() => [
225
+ K("div", Pe, [
226
+ r(ye, {
227
227
  designer: e.designer,
228
228
  "form-config": H.value
229
229
  }, null, 8, ["designer", "form-config"])
230
230
  ])
231
231
  ]),
232
232
  _: 1
233
- }, 8, ["tab"])) : U("", !0),
234
- d(N, {
235
- tab: E(c)("designer.hint.表单api配置"),
233
+ }, 8, ["tab"])) : ve("", !0),
234
+ r(_, {
235
+ tab: h(u)("designer.hint.表单api配置"),
236
236
  key: "3"
237
237
  }, {
238
- default: u(() => [
238
+ default: d(() => [
239
239
  K("div", ke, [
240
- d(Ce, {
240
+ r(Ee, {
241
241
  designer: e.designer,
242
242
  "form-config": H.value,
243
- "onUpdate:formConfig": t[3] || (t[3] = (i) => H.value = i)
243
+ "onUpdate:formConfig": t[3] || (t[3] = (a) => H.value = a)
244
244
  }, null, 8, ["designer", "form-config"])
245
245
  ])
246
246
  ]),
@@ -255,19 +255,19 @@ const He = { class: "setting-scrollbar" }, Se = { class: "setting-scrollbar" },
255
255
  ]),
256
256
  _: 1
257
257
  }),
258
- d(E(Ee), {
259
- eventHeader: $.value,
258
+ r(h(me), {
259
+ eventHeader: N.value,
260
260
  ref_key: "CodeModalEditorRef",
261
261
  ref: S,
262
- title: F.value,
263
- mode: C.value,
262
+ title: W.value,
263
+ mode: k.value,
264
264
  readonly: !1,
265
- onSetCode: se
265
+ onSetCode: oe
266
266
  }, null, 8, ["eventHeader", "title", "mode"])
267
267
  ], 64);
268
268
  };
269
269
  }
270
270
  });
271
271
  export {
272
- We as default
272
+ Ve as default
273
273
  };
@@ -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
  };
@@ -1,13 +1,13 @@
1
- import g from "../../../../../utils/i18n.js";
2
- import E from "../../../../http-editor/index.vue.js";
1
+ import E from "../../../../../utils/i18n.js";
2
+ import _ from "../../../../http-editor/index.vue.js";
3
3
  import h from "../../../../code-editor/code-modal-editor.vue.js";
4
- import { resolveComponent as o, createElementBlock as u, openBlock as a, Fragment as M, createVNode as d, createBlock as r, createCommentVNode as c, withCtx as i, createTextVNode as k, toDisplayString as C } from "vue";
4
+ import { resolveComponent as o, createElementBlock as u, openBlock as a, Fragment as M, createVNode as d, createBlock as r, createCommentVNode as c, withCtx as i, createTextVNode as C, toDisplayString as k } from "vue";
5
5
  import D from "../../../../../../_virtual/_plugin-vue_export-helper.js";
6
6
  const O = {
7
7
  name: "data-table-dsEnabled-editor",
8
- mixins: [g],
8
+ mixins: [E],
9
9
  inheritAttrs: !1,
10
- components: { HttpEditor: E, CodeModalEditor: h },
10
+ components: { HttpEditor: _, CodeModalEditor: h },
11
11
  props: {
12
12
  designer: Object,
13
13
  selectedWidget: Object,
@@ -19,9 +19,9 @@ const O = {
19
19
  };
20
20
  },
21
21
  methods: {
22
- handleUpdate(t) {
22
+ handleUpdate(e) {
23
23
  try {
24
- this.optionModel.dataSource = JSON.parse(t);
24
+ this.optionModel.dataSource = JSON.parse(e);
25
25
  } catch (n) {
26
26
  this.$message.error(
27
27
  this.i18nt("designer.hint.invalidOptionsData") + n.message
@@ -33,23 +33,23 @@ const O = {
33
33
  }
34
34
  }
35
35
  };
36
- function y(t, n, e, S, w, l) {
36
+ function y(e, n, t, S, w, l) {
37
37
  const m = o("a-switch"), s = o("a-form-item"), p = o("a-button"), b = o("CodeModalEditor"), f = o("HttpEditor");
38
38
  return a(), u(M, null, [
39
39
  d(s, {
40
- label: t.i18nt("designer.setting.dsEnabled")
40
+ label: e.i18nt("designer.setting.dsEnabled")
41
41
  }, {
42
42
  default: i(() => [
43
43
  d(m, {
44
- checked: e.optionModel.dsEnabled,
45
- "onUpdate:checked": n[0] || (n[0] = (_) => e.optionModel.dsEnabled = _)
44
+ checked: t.optionModel.dsEnabled,
45
+ "onUpdate:checked": n[0] || (n[0] = (g) => t.optionModel.dsEnabled = g)
46
46
  }, null, 8, ["checked"])
47
47
  ]),
48
48
  _: 1
49
49
  }, 8, ["label"]),
50
- e.optionModel.dsEnabled ? c("", !0) : (a(), r(s, {
50
+ t.optionModel.dsEnabled ? c("", !0) : (a(), r(s, {
51
51
  key: 0,
52
- label: t.i18nt("designer.setting.tableDataEdit")
52
+ label: e.i18nt("designer.setting.tableDataEdit")
53
53
  }, {
54
54
  default: i(() => [
55
55
  d(p, {
@@ -58,7 +58,7 @@ function y(t, n, e, S, w, l) {
58
58
  onClick: l.openTableDataEdit
59
59
  }, {
60
60
  default: i(() => [
61
- k(C(t.i18nt("designer.setting.editAction")), 1)
61
+ C(k(e.i18nt("designer.setting.editAction")), 1)
62
62
  ]),
63
63
  _: 1
64
64
  }, 8, ["onClick"])
@@ -70,18 +70,19 @@ function y(t, n, e, S, w, l) {
70
70
  mode: "json",
71
71
  readonly: !1,
72
72
  isShowEventHeader: !1,
73
- title: t.i18nt("designer.setting.tableDataEdit"),
73
+ title: e.i18nt("designer.setting.tableDataEdit"),
74
74
  onSave: l.handleUpdate
75
75
  }, null, 8, ["title", "onSave"]),
76
- e.optionModel.dsEnabled ? (a(), r(f, {
76
+ t.optionModel.dsEnabled ? (a(), r(f, {
77
77
  key: 1,
78
- designer: e.designer,
79
- "selected-widget": e.selectedWidget,
80
- optionModel: e.optionModel
81
- }, null, 8, ["designer", "selected-widget", "optionModel"])) : c("", !0)
78
+ label: e.i18nt("designer.setting.editAPIConfig"),
79
+ designer: t.designer,
80
+ "selected-widget": t.selectedWidget,
81
+ optionModel: t.optionModel
82
+ }, null, 8, ["label", "designer", "selected-widget", "optionModel"])) : c("", !0)
82
83
  ], 64);
83
84
  }
84
- const x = /* @__PURE__ */ D(O, [["render", y]]);
85
+ const A = /* @__PURE__ */ D(O, [["render", y]]);
85
86
  export {
86
- x as default
87
+ A as default
87
88
  };
@@ -1,6 +1,7 @@
1
- import { defineComponent as u, useModel as a, resolveComponent as o, createBlock as m, openBlock as d, unref as s, withCtx as _, createVNode as c } from "vue";
1
+ import { defineComponent as p, useModel as u, resolveComponent as o, createBlock as m, openBlock as d, unref as s, withCtx as _, createVNode as c } from "vue";
2
2
  import { useI18n as f } from "../../../../../utils/i18n.js";
3
- const v = /* @__PURE__ */ u({
3
+ const v = /* @__PURE__ */ p({
4
+ name: "line-height-editor",
4
5
  __name: "line-height-editor",
5
6
  props: {
6
7
  optionModel: {
@@ -12,17 +13,17 @@ const v = /* @__PURE__ */ u({
12
13
  },
13
14
  emits: ["update:optionModel"],
14
15
  setup(n) {
15
- const { i18nt: i } = f(), e = a(n, "optionModel");
16
+ const { i18nt: i } = f(), e = u(n, "optionModel");
16
17
  return (g, t) => {
17
- const l = o("a-input-number"), p = o("a-form-item");
18
- return d(), m(p, {
18
+ const l = o("a-input-number"), r = o("a-form-item");
19
+ return d(), m(r, {
19
20
  label: s(i)("designer.setting.lineHeight")
20
21
  }, {
21
22
  default: _(() => [
22
23
  c(l, {
23
24
  type: "text",
24
25
  value: e.value.lineHeight,
25
- "onUpdate:value": t[0] || (t[0] = (r) => e.value.lineHeight = r)
26
+ "onUpdate:value": t[0] || (t[0] = (a) => e.value.lineHeight = a)
26
27
  }, null, 8, ["value"])
27
28
  ]),
28
29
  _: 1
@@ -194,19 +194,13 @@ const e = {
194
194
  onDrawerBeforeClose: "onDrawerBeforeClose-editor",
195
195
  customRow: "customRow-editor"
196
196
  };
197
- function d(o) {
198
- return !!e[o] || !!t[o] || !!i[o];
199
- }
200
- function r(o) {
201
- return e[o] || t[o] || i[o];
202
- }
203
- const n = {
197
+ var d = /* @__PURE__ */ ((o) => (o.Common = "COMMON", o.Advanced = "ADVANCED", o.Event = "EVENT", o))(d || {});
198
+ const r = {
204
199
  COMMON_PROPERTIES: e,
205
200
  ADVANCED_PROPERTIES: t,
206
201
  EVENT_PROPERTIES: i
207
202
  };
208
203
  export {
209
- n as default,
210
- r as getPropertyEditor,
211
- d as propertyRegistered
204
+ d as PROPERTY_TYPE,
205
+ r as default
212
206
  };
@@ -6,12 +6,12 @@ const l = (t = {}) => ({
6
6
  icon: "data-table",
7
7
  widgetList: [],
8
8
  options: {
9
+ lineHeight: 50,
9
10
  name: "",
10
11
  label: "data-table",
11
12
  hidden: !1,
12
13
  tableHeight: "300px",
13
14
  tableWidth: "100%",
14
- lineHeight: 50,
15
15
  customClass: [],
16
16
  showIndex: !1,
17
17
  showPagination: !0,