@kp-ui/lowcode 2.14.0-alpha.5 → 2.14.0-beta.1

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 (64) 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/form-item-wrapper.vue.js +32 -32
  9. package/src/components/form-designer/form-widget/field-widget/input-widget.vue.js +3 -3
  10. package/src/components/form-designer/form-widget/field-widget/select-widget.vue.js +7 -7
  11. package/src/components/form-designer/form-widget/field-widget/static-content-wrapper.vue.js +18 -18
  12. package/src/components/form-designer/index.vue.js +21 -25
  13. package/src/components/form-designer/setting-panel/index.vue.js +142 -204
  14. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue2.js +10 -10
  15. package/src/components/form-designer/setting-panel/property-editor/buttonIcon-editor.vue.js +14 -11
  16. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-selections-editor.vue2.js +7 -8
  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/index.js +140 -145
  29. package/src/components/form-designer/setting-panel/property-editor/labelIconClass-editor.vue.js +16 -13
  30. package/src/components/form-designer/setting-panel/property-editor/name-editor.vue.js +7 -3
  31. package/src/components/form-designer/setting-panel/property-editor/placement-editor.vue.js +24 -22
  32. package/src/components/form-designer/setting-panel/property-editor/validation-editor.vue.js +15 -12
  33. package/src/components/form-designer/setting-panel/propertyRegister.js +0 -12
  34. package/src/components/form-designer/toolbar-panel/index.vue.js +2 -2
  35. package/src/components/form-designer/toolbar-panel/index.vue2.js +66 -67
  36. package/src/components/form-designer/widget-panel/advanced/data-table.js +6 -1
  37. package/src/components/form-designer/widget-panel/basicFields/color.js +2 -7
  38. package/src/components/form-designer/widget-panel/index.vue.js +16 -16
  39. package/src/components/form-render/index.vue.js +2 -5
  40. package/src/components/http-editor/index.vue.js +27 -23
  41. package/src/components/public/ActionButtonListRender.vue.js +24 -19
  42. package/src/components/public/ActionButtonListRender.vue2.js +1 -1
  43. package/src/lang/en-US.js +17 -0
  44. package/src/lang/zh-CN.js +17 -0
  45. package/stats.html +1 -1
  46. package/styles/style.css +1 -1
  47. package/types/install.d.ts +3 -14
  48. package/src/components/form-designer/setting-panel/property-editor/displayStyle-editor.vue.js +0 -46
  49. package/src/components/form-designer/setting-panel/property-editor/multipleSelect-editor.vue.js +0 -30
  50. package/src/components/form-designer/setting-panel/property-editor/uploadTip-editor.vue.js +0 -31
  51. package/src/components/form-designer/setting-panel/property-editor/uploadURL-editor.vue.js +0 -44
  52. package/src/components/form-designer/setting-panel/property-editor/withCredentials-editor.vue.js +0 -30
  53. package/src/components/form-render/container-item/data-table-item.vue.js +0 -149
  54. package/src/components/form-render/container-item/grid-col-item.vue.js +0 -149
  55. package/src/components/form-render/container-item/grid-item.vue.js +0 -92
  56. package/src/components/form-render/container-item/grid-sub-form-item.vue.js +0 -319
  57. package/src/components/form-render/container-item/index.js +0 -24
  58. package/src/components/form-render/container-item/sub-form-item.vue.js +0 -429
  59. package/src/components/form-render/container-item/tab-item.vue.js +0 -160
  60. package/src/components/form-render/container-item/table-cell-item.vue.js +0 -95
  61. package/src/components/form-render/container-item/table-item.vue.js +0 -96
  62. package/src/components/form-render/container-item/vf-collapse-item.vue.js +0 -252
  63. package/src/components/form-render/container-item/vf-dialog-item.vue.js +0 -12
  64. package/src/components/form-render/container-item/vf-drawer-item.vue.js +0 -12
@@ -1,26 +1,27 @@
1
- import { TpfCodeEditor as R } from "tmgc2-share";
2
- import D from "./property-editor/index.js";
1
+ import { TpfCodeEditor as F } from "tmgc2-share";
2
+ import V from "./property-editor/index.js";
3
3
  import K from "./form-setting.vue.js";
4
4
  import O from "./form-crud-setting.vue.js";
5
- import V, { propertyRegistered as j } from "./propertyRegister.js";
6
- import { addWindowResizeHandler as U } from "../../../utils/util.js";
7
- import I from "../../../utils/i18n.js";
5
+ import R, { propertyRegistered as D } from "./propertyRegister.js";
6
+ import { addWindowResizeHandler as A } from "../../../utils/util.js";
7
+ import j from "../../../utils/i18n.js";
8
+ import { get as x } from "../../../utils/smart-vue-i18n/utils.js";
8
9
  import z from "../../../utils/emitter.js";
9
- import B from "../../code-editor/code-modal-editor.vue.js";
10
- import { resolveComponent as m, createElementBlock as c, openBlock as i, Fragment as u, createVNode as h, withCtx as s, createBlock as g, createCommentVNode as a, createElementVNode as P, normalizeStyle as w, withModifiers as W, renderList as p, resolveDynamicComponent as C } from "vue";
10
+ import I from "../../code-editor/code-modal-editor.vue.js";
11
+ import { resolveComponent as n, createElementBlock as p, openBlock as s, Fragment as h, createVNode as r, withCtx as l, createBlock as g, createCommentVNode as _, createElementVNode as u, normalizeStyle as v, withModifiers as U, renderList as E, normalizeClass as B, resolveDynamicComponent as L } from "vue";
11
12
  /* empty css */
12
13
  /* empty css */
13
- import L from "../../../../_virtual/_plugin-vue_export-helper.js";
14
- const { COMMON_PROPERTIES: q, ADVANCED_PROPERTIES: x, EVENT_PROPERTIES: G } = V, J = {
14
+ import q from "../../../../_virtual/_plugin-vue_export-helper.js";
15
+ const { COMMON_PROPERTIES: G, ADVANCED_PROPERTIES: J, EVENT_PROPERTIES: Q } = R, X = {
15
16
  name: "SettingPanel",
16
17
  componentName: "SettingPanel",
17
- mixins: [I, z],
18
+ mixins: [j, z],
18
19
  components: {
19
- TpfCodeEditor: R,
20
+ TpfCodeEditor: F,
20
21
  FormSetting: K,
21
- CodeModalEditor: B,
22
+ CodeModalEditor: I,
22
23
  FormCrudSetting: O,
23
- ...D
24
+ ...V
24
25
  },
25
26
  props: {
26
27
  designer: Object,
@@ -46,9 +47,9 @@ const { COMMON_PROPERTIES: q, ADVANCED_PROPERTIES: x, EVENT_PROPERTIES: G } = V,
46
47
  activeTab: "2",
47
48
  widgetActiveCollapseNames: ["1", "2", "3"],
48
49
  formActiveCollapseNames: ["1", "2"],
49
- commonProps: q,
50
- advProps: x,
51
- eventProps: G,
50
+ commonProps: G,
51
+ advProps: J,
52
+ eventProps: Q,
52
53
  showWidgetEventDialogFlag: !1,
53
54
  eventHandlerCode: "",
54
55
  curEventName: "",
@@ -64,6 +65,42 @@ const { COMMON_PROPERTIES: q, ADVANCED_PROPERTIES: x, EVENT_PROPERTIES: G } = V,
64
65
  set(e) {
65
66
  this.selectedWidget.options = e;
66
67
  }
68
+ },
69
+ /**
70
+ * 构建折叠面板配置列表,用于循环渲染面板
71
+ * 将常见/高级/事件属性的差异抽象为配置,减少模板重复
72
+ */
73
+ collapsePanels() {
74
+ const e = this.showCollapse(this.commonProps), t = this.showCollapse(this.advProps), i = this.showEventCollapse() && this.showCollapse(this.eventProps);
75
+ return [
76
+ {
77
+ key: "1",
78
+ headerKey: this.i18nt("designer.setting.常见属性"),
79
+ props: this.commonProps,
80
+ className: "",
81
+ visible: e,
82
+ useVModel: !0,
83
+ isEvent: !1
84
+ },
85
+ {
86
+ key: "2",
87
+ headerKey: this.i18nt("designer.setting.高级属性"),
88
+ props: this.advProps,
89
+ className: "",
90
+ visible: t,
91
+ useVModel: !1,
92
+ isEvent: !1
93
+ },
94
+ {
95
+ key: "3",
96
+ headerKey: this.i18nt("designer.setting.事件属性"),
97
+ props: this.eventProps,
98
+ className: "eventPanel",
99
+ visible: i,
100
+ useVModel: !1,
101
+ isEvent: !0
102
+ }
103
+ ].filter((d) => d.visible);
67
104
  }
68
105
  },
69
106
  watch: {
@@ -96,269 +133,170 @@ const { COMMON_PROPERTIES: q, ADVANCED_PROPERTIES: x, EVENT_PROPERTIES: G } = V,
96
133
  });
97
134
  },
98
135
  mounted() {
99
- this.designer.selectedWidget ? this.activeTab = "1" : this.activeTab = "2", this.scrollerHeight = window.innerHeight - 56 - 48 + "px", U(() => {
136
+ this.designer.selectedWidget ? this.activeTab = "1" : this.activeTab = "2", this.scrollerHeight = window.innerHeight - 56 - 48 + "px", A(() => {
100
137
  this.$nextTick(() => {
101
138
  this.scrollerHeight = window.innerHeight - 56 - 48 + "px";
102
139
  });
103
140
  });
104
141
  },
105
142
  methods: {
143
+ /**
144
+ * 处理 option-model 的双向绑定更新
145
+ * 与 v-model:option-model 等效,实现通用事件绑定方式
146
+ */
147
+ onUpdateOptionModel(e) {
148
+ this.optionModel = e;
149
+ },
106
150
  getEventHandled(e) {
107
151
  return !!this.optionModel[e] && this.optionModel[e].length > 0;
108
152
  },
109
153
  showEventCollapse() {
110
154
  return this.designerConfig.eventCollapse === void 0 ? !0 : !!this.designerConfig.eventCollapse;
111
155
  },
112
- hasPropEditor(e, o) {
113
- if (!o)
156
+ hasPropEditor(e, t) {
157
+ if (!t)
114
158
  return !1;
115
159
  if (e.indexOf("-") <= -1) {
116
- const l = this.selectedWidget.type + "-" + e;
117
- if (j(l))
160
+ const o = this.selectedWidget.type + "-" + e;
161
+ if (D(o))
118
162
  return !1;
119
163
  }
120
- const n = e.replace(this.selectedWidget.type + "-", "");
121
- return this.designer.hasConfig(this.selectedWidget, n);
164
+ const i = e.replace(this.selectedWidget.type + "-", "");
165
+ return this.designer.hasConfig(this.selectedWidget, i);
122
166
  },
123
- getPropEditor(e, o) {
124
- const n = e.replace(this.selectedWidget.type + "-", ""), f = `${this.selectedWidget.type}-${n}-editor`;
125
- return this.$options.components[f] || this.$root.$.appContext.components[f] ? f : o;
167
+ getPropEditor(e, t) {
168
+ const i = e.replace(this.selectedWidget.type + "-", ""), d = `${this.selectedWidget.type}-${i}-editor`;
169
+ return this.$options.components[d] || this.$root.$.appContext.components[d] ? d : t;
126
170
  },
127
171
  showCollapse(e) {
128
- let o = !1;
129
- for (const n in e)
130
- if (e.hasOwnProperty(n) && this.hasPropEditor(n, e[n])) {
131
- o = !0;
172
+ let t = !1;
173
+ for (const i in e)
174
+ if (e.hasOwnProperty(i) && this.hasPropEditor(i, e[i])) {
175
+ t = !0;
132
176
  break;
133
177
  }
134
- return o;
178
+ return t;
135
179
  },
136
- editEventHandler(e, o) {
137
- console.log(e, o), this.curEventName = e, this.eventHeader = `${this.optionModel.name}.${e}(${o.join(
180
+ editEventHandler(e, t) {
181
+ this.curEventName = e, this.eventHeader = `${this.optionModel.name}.${e}(${t.join(
138
182
  ", "
139
- )}) {`, this.eventHandlerCode = this.selectedWidget.options[e] || "", e === "onValidate" && !this.optionModel.onValidate && (this.eventHandlerCode = ` /* sample code */
183
+ )}) {`, this.eventHandlerCode = x(this.selectedWidget.options, e) || "", console.log({ eventName: e, eventHandlerCode: this.eventHandlerCode }), e === "onValidate" && !this.optionModel.onValidate && (this.eventHandlerCode = ` /* sample code */
140
184
  /*
141
185
  if ((value > 100) || (value < 0)) {
142
186
  return Promise.reject('error message') //fail
143
187
  } else {
144
188
  return Promise.resolve(); //pass
145
189
  }
146
- */`), console.log(this.eventHandlerCode), this.$refs.CodeModalEditorRef.open(this.eventHandlerCode);
190
+ */`), this.$refs.CodeModalEditorRef.open(this.eventHandlerCode);
147
191
  },
148
192
  saveEventHandler(e) {
149
- if (console.log({ value: e }), this.curEventName.includes(".")) {
150
- const [o, n] = this.curEventName.split(".");
151
- this.selectedWidget.options[o][n] = e;
193
+ if (this.curEventName.includes(".")) {
194
+ const [t, i] = this.curEventName.split(".");
195
+ this.selectedWidget.options[t][i] = e;
152
196
  } else
153
197
  this.selectedWidget.options[this.curEventName] = e;
154
198
  }
155
199
  }
156
200
  };
157
- function Q(e, o, n, f, l, t) {
158
- const v = m("a-collapse-panel"), _ = m("a-collapse"), b = m("a-form"), H = m("a-empty"), E = m("a-tab-pane"), k = m("form-setting"), M = m("FormCrudSetting"), S = m("a-tabs"), T = m("a-layout"), F = m("a-config-provider"), A = m("TpfCodeEditor");
159
- return i(), c(u, null, [
160
- h(F, { componentSize: "small" }, {
161
- default: s(() => [
162
- h(T, { class: "panel-container" }, {
163
- default: s(() => [
164
- h(S, {
165
- activeKey: l.activeTab,
166
- "onUpdate:activeKey": o[6] || (o[6] = (r) => l.activeTab = r),
201
+ function Y(e, t, i, d, o, a) {
202
+ const b = n("a-collapse-panel"), y = n("a-collapse"), P = n("a-form"), H = n("a-empty"), f = n("a-tab-pane"), w = n("form-setting"), W = n("FormCrudSetting"), M = n("a-tabs"), S = n("a-layout"), k = n("a-config-provider"), N = n("TpfCodeEditor");
203
+ return s(), p(h, null, [
204
+ r(k, { componentSize: "small" }, {
205
+ default: l(() => [
206
+ r(S, { class: "panel-container" }, {
207
+ default: l(() => [
208
+ r(M, {
209
+ activeKey: o.activeTab,
210
+ "onUpdate:activeKey": t[3] || (t[3] = (c) => o.activeTab = c),
167
211
  style: { height: "100%", width: "100%", overflow: "hidden" }
168
212
  }, {
169
- default: s(() => [
170
- h(E, {
213
+ default: l(() => [
214
+ r(f, {
171
215
  tab: e.i18nt("designer.hint.widgetSetting"),
172
216
  key: "1"
173
217
  }, {
174
- default: s(() => [
175
- P("div", {
218
+ default: l(() => [
219
+ u("div", {
176
220
  class: "setting-scrollbar",
177
- style: w({ height: l.scrollerHeight })
221
+ style: v({ height: o.scrollerHeight })
178
222
  }, [
179
- n.designer.selectedWidget && !n.designer.selectedWidget.category ? (i(), g(b, {
223
+ i.designer.selectedWidget ? (s(), g(P, {
180
224
  key: 0,
181
- model: t.optionModel,
225
+ model: a.optionModel,
182
226
  labelAlign: "left",
183
227
  "label-width": "120px",
184
228
  class: "setting-form tpf-form",
185
- onSubmit: o[2] || (o[2] = W(() => {
229
+ onSubmit: t[2] || (t[2] = U(() => {
186
230
  }, ["prevent"]))
187
231
  }, {
188
- default: s(() => [
189
- h(_, {
190
- activeKey: l.widgetActiveCollapseNames,
191
- "onUpdate:activeKey": o[1] || (o[1] = (r) => l.widgetActiveCollapseNames = r),
232
+ default: l(() => [
233
+ r(y, {
234
+ activeKey: o.widgetActiveCollapseNames,
235
+ "onUpdate:activeKey": t[1] || (t[1] = (c) => o.widgetActiveCollapseNames = c),
192
236
  class: "setting-collapse"
193
237
  }, {
194
- default: s(() => [
195
- t.showCollapse(l.commonProps) ? (i(), g(v, {
196
- key: "1",
197
- header: e.i18nt("designer.setting.常见属性")
198
- }, {
199
- default: s(() => [
200
- (i(!0), c(u, null, p(l.commonProps, (r, d) => (i(), c(u, null, [
201
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
202
- key: d,
203
- designer: n.designer,
204
- "selected-widget": n.selectedWidget,
205
- "option-model": t.optionModel,
206
- "onUpdate:optionModel": o[0] || (o[0] = (y) => t.optionModel = y)
207
- }, null, 40, ["designer", "selected-widget", "option-model"])) : a("", !0)
208
- ], 64))), 256))
209
- ]),
210
- _: 1
211
- }, 8, ["header"])) : a("", !0),
212
- t.showCollapse(l.advProps) ? (i(), g(v, {
213
- key: "2",
214
- header: e.i18nt("designer.setting.高级属性")
238
+ default: l(() => [
239
+ (s(!0), p(h, null, E(a.collapsePanels, (c) => (s(), g(b, {
240
+ key: c.key,
241
+ class: B(c.className),
242
+ header: c.headerKey
215
243
  }, {
216
- default: s(() => [
217
- (i(!0), c(u, null, p(l.advProps, (r, d) => (i(), c(u, null, [
218
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
219
- key: d,
220
- designer: n.designer,
221
- "selected-widget": n.selectedWidget,
222
- "option-model": t.optionModel
223
- }, null, 8, ["designer", "selected-widget", "option-model"])) : a("", !0)
244
+ default: l(() => [
245
+ (s(!0), p(h, null, E(c.props, (C, m) => (s(), p(h, null, [
246
+ a.hasPropEditor(m, C) ? (s(), g(L(a.getPropEditor(m, C)), {
247
+ key: m,
248
+ designer: i.designer,
249
+ "selected-widget": i.selectedWidget,
250
+ "option-model": a.optionModel,
251
+ "onUpdate:optionModel": t[0] || (t[0] = (T) => a.optionModel = T),
252
+ "event-handled": a.getEventHandled(m)
253
+ }, null, 40, ["designer", "selected-widget", "option-model", "event-handled"])) : _("", !0)
224
254
  ], 64))), 256))
225
255
  ]),
226
- _: 1
227
- }, 8, ["header"])) : a("", !0),
228
- t.showEventCollapse() && t.showCollapse(l.eventProps) ? (i(), g(v, {
229
- key: "3",
230
- class: "eventPanel",
231
- header: e.i18nt("designer.setting.事件属性")
232
- }, {
233
- default: s(() => [
234
- (i(!0), c(u, null, p(l.eventProps, (r, d) => (i(), c(u, null, [
235
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
236
- key: d,
237
- designer: n.designer,
238
- "selected-widget": n.selectedWidget,
239
- "option-model": t.optionModel,
240
- "event-handled": t.getEventHandled(d)
241
- }, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : a("", !0)
242
- ], 64))), 256))
243
- ]),
244
- _: 1
245
- }, 8, ["header"])) : a("", !0)
256
+ _: 2
257
+ }, 1032, ["class", "header"]))), 128))
246
258
  ]),
247
259
  _: 1
248
260
  }, 8, ["activeKey"])
249
261
  ]),
250
262
  _: 1
251
- }, 8, ["model"])) : a("", !0),
252
- n.designer.selectedWidget && n.designer.selectedWidget.category ? (i(), g(b, {
263
+ }, 8, ["model"])) : (s(), g(H, {
253
264
  key: 1,
254
- model: t.optionModel,
255
- labelAlign: "left",
256
- "label-width": "120px",
257
- class: "setting-form tpf-form",
258
- onSubmit: o[5] || (o[5] = W(() => {
259
- }, ["prevent"]))
260
- }, {
261
- default: s(() => [
262
- h(_, {
263
- activeKey: l.widgetActiveCollapseNames,
264
- "onUpdate:activeKey": o[4] || (o[4] = (r) => l.widgetActiveCollapseNames = r),
265
- class: "setting-collapse"
266
- }, {
267
- default: s(() => [
268
- t.showCollapse(l.commonProps) ? (i(), g(v, {
269
- key: "1",
270
- header: e.i18nt("designer.setting.常见属性")
271
- }, {
272
- default: s(() => [
273
- (i(!0), c(u, null, p(l.commonProps, (r, d) => (i(), c(u, null, [
274
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
275
- key: d,
276
- designer: n.designer,
277
- "selected-widget": n.selectedWidget,
278
- "option-model": t.optionModel,
279
- "onUpdate:optionModel": o[3] || (o[3] = (y) => t.optionModel = y)
280
- }, null, 40, ["designer", "selected-widget", "option-model"])) : a("", !0)
281
- ], 64))), 256))
282
- ]),
283
- _: 1
284
- }, 8, ["header"])) : a("", !0),
285
- t.showCollapse(l.advProps) ? (i(), g(v, {
286
- key: "2",
287
- header: e.i18nt("designer.setting.高级属性")
288
- }, {
289
- default: s(() => [
290
- (i(!0), c(u, null, p(l.advProps, (r, d) => (i(), c(u, null, [
291
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
292
- key: d,
293
- designer: n.designer,
294
- "selected-widget": n.selectedWidget,
295
- "option-model": t.optionModel
296
- }, null, 8, ["designer", "selected-widget", "option-model"])) : a("", !0)
297
- ], 64))), 256))
298
- ]),
299
- _: 1
300
- }, 8, ["header"])) : a("", !0),
301
- t.showEventCollapse() && t.showCollapse(l.eventProps) ? (i(), g(v, {
302
- key: "3",
303
- class: "eventPanel",
304
- header: e.i18nt("designer.setting.事件属性")
305
- }, {
306
- default: s(() => [
307
- (i(!0), c(u, null, p(l.eventProps, (r, d) => (i(), c(u, null, [
308
- t.hasPropEditor(d, r) ? (i(), g(C(t.getPropEditor(d, r)), {
309
- key: d,
310
- designer: n.designer,
311
- "selected-widget": n.selectedWidget,
312
- "option-model": t.optionModel,
313
- "event-handled": t.getEventHandled(d)
314
- }, null, 8, ["designer", "selected-widget", "option-model", "event-handled"])) : a("", !0)
315
- ], 64))), 256))
316
- ]),
317
- _: 1
318
- }, 8, ["header"])) : a("", !0)
319
- ]),
320
- _: 1
321
- }, 8, ["activeKey"])
322
- ]),
323
- _: 1
324
- }, 8, ["model"])) : a("", !0),
325
- n.designer.selectedWidget ? a("", !0) : (i(), g(H, {
326
- key: 2,
327
265
  description: e.i18nt("designer.hint.noSelectedWidgetHint")
328
266
  }, null, 8, ["description"]))
329
267
  ], 4)
330
268
  ]),
331
269
  _: 1
332
270
  }, 8, ["tab"]),
333
- n.designer ? (i(), g(E, {
271
+ i.designer ? (s(), g(f, {
334
272
  tab: e.i18nt("designer.hint.表单设置"),
335
273
  key: "2"
336
274
  }, {
337
- default: s(() => [
338
- P("div", {
275
+ default: l(() => [
276
+ u("div", {
339
277
  class: "setting-scrollbar",
340
- style: w({ height: l.scrollerHeight })
278
+ style: v({ height: o.scrollerHeight })
341
279
  }, [
342
- h(k, {
343
- designer: n.designer,
344
- "form-config": n.formConfig
280
+ r(w, {
281
+ designer: i.designer,
282
+ "form-config": i.formConfig
345
283
  }, null, 8, ["designer", "form-config"])
346
284
  ], 4)
347
285
  ]),
348
286
  _: 1
349
- }, 8, ["tab"])) : a("", !0),
350
- h(E, {
287
+ }, 8, ["tab"])) : _("", !0),
288
+ r(f, {
351
289
  tab: e.i18nt("designer.hint.表单api配置"),
352
290
  key: "3"
353
291
  }, {
354
- default: s(() => [
355
- P("div", {
292
+ default: l(() => [
293
+ u("div", {
356
294
  class: "ds-setting-scrollbar",
357
- style: w({ height: l.scrollerHeight })
295
+ style: v({ height: o.scrollerHeight })
358
296
  }, [
359
- h(M, {
360
- designer: n.designer,
361
- "form-config": n.formConfig
297
+ r(W, {
298
+ designer: i.designer,
299
+ "form-config": i.formConfig
362
300
  }, null, 8, ["designer", "form-config"])
363
301
  ], 4)
364
302
  ]),
@@ -373,17 +311,17 @@ function Q(e, o, n, f, l, t) {
373
311
  ]),
374
312
  _: 1
375
313
  }),
376
- h(A, {
377
- eventHeader: l.eventHeader,
314
+ r(N, {
315
+ eventHeader: o.eventHeader,
378
316
  ref: "CodeModalEditorRef",
379
317
  title: e.i18nt("designer.setting.editWidgetEventHandler"),
380
318
  mode: "javascript",
381
319
  readonly: !1,
382
- onSetCode: t.saveEventHandler
320
+ onSetCode: a.saveEventHandler
383
321
  }, null, 8, ["eventHeader", "title", "onSetCode"])
384
322
  ], 64);
385
323
  }
386
- const se = /* @__PURE__ */ L(J, [["render", Q], ["__scopeId", "data-v-0302395b"]]);
324
+ const me = /* @__PURE__ */ q(X, [["render", Y], ["__scopeId", "data-v-b6c5eb4a"]]);
387
325
  export {
388
- se as default
326
+ me as default
389
327
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as _, ref as u, watch as C, resolveComponent as p, createElementBlock as L, openBlock as h, Fragment as k, createVNode as e, unref as o, withCtx as n, createTextVNode as c, toDisplayString as f } from "vue";
1
+ import { defineComponent as _, ref as u, watch as C, resolveComponent as p, createElementBlock as L, openBlock as h, Fragment as k, createVNode as e, unref as o, withCtx as n, createTextVNode as f, toDisplayString as c } from "vue";
2
2
  import { useI18n as w } from "../../../../utils/i18n.js";
3
3
  import { cloneDeep as x } from "lodash-es";
4
4
  import D from "../../../public/ActionButtonListDialog.vue.js";
@@ -12,25 +12,25 @@ const U = /* @__PURE__ */ _({
12
12
  optionModel: {}
13
13
  },
14
14
  setup(m) {
15
- const { i18nt: l } = w(), r = m, t = u([]), i = u(!1);
15
+ const { i18nt: i } = w(), r = m, t = u([]), l = u(!1);
16
16
  C(t, () => {
17
17
  r.optionModel.buttonList = t.value;
18
18
  });
19
19
  const g = () => {
20
- t.value = x(r.optionModel.buttonList), i.value = !0;
20
+ t.value = x(r.optionModel.buttonList), l.value = !0;
21
21
  }, b = () => {
22
- i.value = !1;
22
+ l.value = !1;
23
23
  };
24
24
  return (M, s) => {
25
25
  const d = p("a-button"), v = p("a-form-item");
26
26
  return h(), L(k, null, [
27
27
  e(v, {
28
- label: o(l)("designer.setting.buttonList")
28
+ label: o(i)("designer.setting.buttonList")
29
29
  }, {
30
30
  default: n(() => [
31
31
  e(d, { onClick: g }, {
32
32
  default: n(() => [
33
- c(f(o(l)("按钮配置")), 1)
33
+ f(c(o(i)("designer.setting.buttonConfig")), 1)
34
34
  ]),
35
35
  _: 1
36
36
  })
@@ -38,9 +38,9 @@ const U = /* @__PURE__ */ _({
38
38
  _: 1
39
39
  }, 8, ["label"]),
40
40
  e(o(B), {
41
- title: o(l)("designer.setting.buttonsColumnEdit"),
42
- visible: i.value,
43
- "onUpdate:visible": s[1] || (s[1] = (a) => i.value = a),
41
+ title: o(i)("designer.setting.buttonsColumnEdit"),
42
+ visible: l.value,
43
+ "onUpdate:visible": s[1] || (s[1] = (a) => l.value = a),
44
44
  "show-close": !0,
45
45
  dialogClass: "drag-dialog",
46
46
  "append-to-body": "",
@@ -54,7 +54,7 @@ const U = /* @__PURE__ */ _({
54
54
  onClick: b
55
55
  }, {
56
56
  default: n(() => [
57
- c(f(o(l)("designer.hint.closePreview")), 1)
57
+ f(c(o(i)("designer.hint.closePreview")), 1)
58
58
  ]),
59
59
  _: 1
60
60
  })
@@ -1,31 +1,34 @@
1
1
  import p from "../../../../utils/i18n.js";
2
- import { resolveComponent as e, createBlock as a, openBlock as l, withCtx as d, createVNode as m } from "vue";
3
- import s from "../../../../../_virtual/_plugin-vue_export-helper.js";
2
+ import { TpfSelectIcon as l } from "tmgc2-share";
3
+ import { resolveComponent as e, createBlock as m, openBlock as a, withCtx as d, createVNode as s } from "vue";
4
+ import f from "../../../../../_virtual/_plugin-vue_export-helper.js";
4
5
  const u = {
5
6
  name: "buttonIcon-editor",
6
7
  mixins: [p],
8
+ components: {
9
+ TpfSelectIcon: l
10
+ },
7
11
  props: {
8
12
  designer: Object,
9
13
  selectedWidget: Object,
10
14
  optionModel: Object
11
15
  }
12
16
  };
13
- function _(n, t, o, f, b, x) {
14
- const i = e("a-input"), r = e("a-form-item");
15
- return l(), a(r, {
17
+ function _(n, o, t, b, I, g) {
18
+ const c = e("TpfSelectIcon"), r = e("a-form-item");
19
+ return a(), m(r, {
16
20
  label: n.i18nt("designer.setting.appendButtonIcon")
17
21
  }, {
18
22
  default: d(() => [
19
- m(i, {
20
- type: "text",
21
- value: o.optionModel.buttonIcon,
22
- "onUpdate:value": t[0] || (t[0] = (c) => o.optionModel.buttonIcon = c)
23
+ s(c, {
24
+ value: t.optionModel.buttonIcon,
25
+ "onUpdate:value": o[0] || (o[0] = (i) => t.optionModel.buttonIcon = i)
23
26
  }, null, 8, ["value"])
24
27
  ]),
25
28
  _: 1
26
29
  }, 8, ["label"]);
27
30
  }
28
- const j = /* @__PURE__ */ s(u, [["render", _]]);
31
+ const M = /* @__PURE__ */ f(u, [["render", _]]);
29
32
  export {
30
- j as default
33
+ M as default
31
34
  };
@@ -1,14 +1,13 @@
1
- import { defineComponent as M, mergeModels as x, useModel as U, ref as V, resolveComponent as i, createElementBlock as E, openBlock as f, Fragment as K, createVNode as o, unref as d, withCtx as n, createBlock as O, createCommentVNode as T, createTextVNode as w, toDisplayString as v, normalizeClass as W } from "vue";
1
+ import { defineComponent as x, mergeModels as M, useModel as U, ref as V, resolveComponent as i, createElementBlock as E, openBlock as f, Fragment as K, createVNode as o, unref as d, withCtx as n, createBlock as T, createCommentVNode as W, createTextVNode as w, toDisplayString as v, normalizeClass as O } from "vue";
2
2
  import { useI18n as j } from "../../../../../utils/i18n.js";
3
3
  import { useComRef as B } from "tmgc2-share";
4
4
  import g from "../../../../code-editor/code-modal-editor.vue.js";
5
- const F = /* @__PURE__ */ M({
5
+ const F = /* @__PURE__ */ x({
6
6
  name: "rowSelection-editor",
7
7
  __name: "data-table-selections-editor",
8
- props: /* @__PURE__ */ x({
8
+ props: /* @__PURE__ */ M({
9
9
  designer: Object,
10
- selectedWidget: Object,
11
- optionModel: Object
10
+ selectedWidget: Object
12
11
  }, {
13
12
  optionModel: {
14
13
  type: Object,
@@ -46,7 +45,7 @@ const F = /* @__PURE__ */ M({
46
45
  checked: e.value.rowSelection.hasRowSelection,
47
46
  "onUpdate:checked": t[0] || (t[0] = (l) => e.value.rowSelection.hasRowSelection = l)
48
47
  }, null, 8, ["checked"]),
49
- e.value.rowSelection.hasRowSelection ? (f(), O(p, {
48
+ e.value.rowSelection.hasRowSelection ? (f(), T(p, {
50
49
  key: 0,
51
50
  type: "primary",
52
51
  plain: "",
@@ -57,7 +56,7 @@ const F = /* @__PURE__ */ M({
57
56
  w(v(d(a)("designer.setting.edit")), 1)
58
57
  ]),
59
58
  _: 1
60
- })) : T("", !0)
59
+ })) : W("", !0)
61
60
  ]),
62
61
  _: 1
63
62
  })
@@ -129,7 +128,7 @@ const F = /* @__PURE__ */ M({
129
128
  o(p, {
130
129
  plain: "",
131
130
  shape: "round",
132
- class: W([e.value.rowSelection.onChange ? "button-text-highlight" : ""]),
131
+ class: O([e.value.rowSelection.onChange ? "button-text-highlight" : ""]),
133
132
  onClick: h
134
133
  }, {
135
134
  default: n(() => [
@@ -1,7 +1,7 @@
1
1
  import o from "./data-table-tableColumns-editor.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-de5b5376"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bef70d8d"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };