@kp-ui/lowcode 1.0.50 → 1.0.52

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/_virtual/virtual_svg-icons-register.js +2 -2
  2. package/_virtual/virtual_svg-icons-register.js.map +1 -1
  3. package/package.json +1 -1
  4. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js +2 -2
  5. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue.js.map +1 -1
  6. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js +0 -170
  7. package/src/components/form-designer/form-widget/container-widget/data-table-widget.vue2.js.map +1 -1
  8. package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue.js +11 -34
  9. package/src/components/form-designer/form-widget/field-widget/button-list-widget.vue.js.map +1 -1
  10. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js +13 -210
  11. package/src/components/form-designer/setting-panel/property-editor/button-list-editor.vue.js.map +1 -1
  12. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js +56 -422
  13. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue.js.map +1 -1
  14. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js +2 -6
  15. package/src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-tableColumns-editor.vue.js.map +1 -1
  16. package/src/components/form-render/container-item/data-table-item.vue.js +8 -14
  17. package/src/components/form-render/container-item/data-table-item.vue.js.map +1 -1
  18. package/src/components/public/ActionButtonListDialog.vue.js +189 -0
  19. package/src/components/public/ActionButtonListDialog.vue.js.map +1 -0
  20. package/src/components/public/ActionButtonListDialog.vue2.js +115 -0
  21. package/src/components/public/ActionButtonListDialog.vue2.js.map +1 -0
  22. package/src/components/public/ActionButtonListRender.vue.js +44 -0
  23. package/src/components/public/ActionButtonListRender.vue.js.map +1 -0
  24. package/src/components/public/ActionButtonListRender.vue2.js +86 -0
  25. package/src/components/public/ActionButtonListRender.vue2.js.map +1 -0
  26. package/src/mixins/useDataTableMixin.js +8 -43
  27. package/src/mixins/useDataTableMixin.js.map +1 -1
  28. package/src/utils/executeFunction.js +4 -5
  29. package/src/utils/executeFunction.js.map +1 -1
  30. package/styles/style.css +1 -1
  31. package/types/src/types/button.d.ts +10 -0
  32. package/types/src/utils/executeFunction.d.ts.map +1 -1
@@ -1,15 +1,12 @@
1
1
  import i18n from "../../../../../utils/i18n.js";
2
- import { generateId } from "../../../../../utils/util.js";
3
- import CodeModalEditor from "../../../../code-editor/code-modal-editor.vue.js";
4
- import { TpfConfirm } from "../../../../../hooks/TpfConfirm.js";
5
- import draggableComponent from "../../../../../lib/vuedraggable/src/vuedraggable.js";
6
- import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode, toDisplayString, mergeProps, normalizeClass, createElementVNode, pushScopeId, popScopeId } from "vue";
2
+ import ActionButtonListDialog from "../../../../public/ActionButtonListDialog.vue.js";
3
+ import { resolveComponent, createElementBlock, openBlock, Fragment, createVNode, withCtx, createBlock, createCommentVNode, createTextVNode, toDisplayString, createElementVNode } from "vue";
7
4
  /* empty css */
8
5
  import _export_sfc from "../../../../../../_virtual/_plugin-vue_export-helper.js";
9
6
  const _sfc_main = {
10
7
  name: "showButtonsColumn-editor",
11
8
  mixins: [i18n],
12
- components: { CodeModalEditor, Draggable: draggableComponent },
9
+ components: { ActionButtonListDialog },
13
10
  props: {
14
11
  designer: Object,
15
12
  selectedWidget: Object,
@@ -17,65 +14,16 @@ const _sfc_main = {
17
14
  },
18
15
  data() {
19
16
  return {
20
- showButtonsEditDialog: false,
21
- currentEditBtn: {}
17
+ showButtonsEditDialog: false
22
18
  };
23
19
  },
24
20
  methods: {
25
- editClickEvent(row) {
26
- this.currentEditBtn = row;
27
- this.$refs.CodeModalEditorRef.open(row.onClick);
28
- },
29
- addOperationButton() {
30
- this.optionModel.operationButtons = this.optionModel.operationButtons || [];
31
- this.optionModel.operationButtons.push({
32
- name: "btn" + generateId(),
33
- label: "new btn",
34
- type: "text",
35
- size: "small",
36
- shape: "default",
37
- hidden: false,
38
- disabled: false,
39
- onClick: ""
40
- });
41
- },
42
- onButtonNameFocus(event) {
43
- this.oldButtonName = event.target.value;
44
- },
45
- onButtonNameChange(newName, btnIdx) {
46
- let sameNameFlag = false;
47
- this.optionModel.operationButtons.map((tb, tbIdx) => {
48
- if (tb.name === newName && tbIdx !== btnIdx) {
49
- sameNameFlag = true;
50
- }
51
- });
52
- if (sameNameFlag) {
53
- this.$message.error(
54
- this.i18nt("designer.setting.operationButtonDuplicatedNameError")
55
- );
56
- this.optionModel.operationButtons[btnIdx].name = this.oldButtonName;
57
- }
58
- },
59
- deleteOperationButton(idx) {
60
- TpfConfirm({
61
- type: "confirm",
62
- content: this.i18nt("designer.setting.deleteOperationButtonHint"),
63
- title: this.i18nt("render.hint.prompt"),
64
- okText: this.i18nt("render.hint.confirm"),
65
- cancelText: this.i18nt("render.hint.cancel")
66
- }).then(() => {
67
- this.optionModel.operationButtons.splice(idx, 1);
68
- }).catch((error) => {
69
- });
70
- },
71
21
  editButtonsColumn() {
72
22
  this.showButtonsEditDialog = true;
73
23
  }
74
24
  }
75
25
  };
76
- const _withScopeId = (n) => (pushScopeId("data-v-2884d0b4"), n = n(), popScopeId(), n);
77
- const _hoisted_1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("i", { class: "iconfont icon-drag drag-handler" }, null, -1));
78
- const _hoisted_2 = { class: "dialog-footer" };
26
+ const _hoisted_1 = { class: "dialog-footer" };
79
27
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
80
28
  const _component_a_switch = resolveComponent("a-switch");
81
29
  const _component_a_button = resolveComponent("a-button");
@@ -87,11 +35,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
87
35
  const _component_a_select_option = resolveComponent("a-select-option");
88
36
  const _component_a_select = resolveComponent("a-select");
89
37
  const _component_a_row = resolveComponent("a-row");
90
- const _component_a_divider = resolveComponent("a-divider");
91
- const _component_draggable = resolveComponent("draggable");
92
- const _component_a_form = resolveComponent("a-form");
38
+ const _component_ActionButtonListDialog = resolveComponent("ActionButtonListDialog");
93
39
  const _component_a_modal = resolveComponent("a-modal");
94
- const _component_CodeModalEditor = resolveComponent("CodeModalEditor");
95
40
  return openBlock(), createElementBlock(Fragment, null, [
96
41
  createVNode(_component_a_form_item, {
97
42
  label: _ctx.i18nt("designer.setting.showButtonsColumn")
@@ -133,7 +78,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
133
78
  width: "1250px"
134
79
  }, {
135
80
  footer: withCtx(() => [
136
- createElementVNode("div", _hoisted_2, [
81
+ createElementVNode("div", _hoisted_1, [
137
82
  createVNode(_component_a_button, {
138
83
  size: "default",
139
84
  onClick: _cache[5] || (_cache[5] = ($event) => $data.showButtonsEditDialog = false)
@@ -146,402 +91,91 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
146
91
  ])
147
92
  ]),
148
93
  default: withCtx(() => [
149
- createVNode(_component_a_form, {
150
- "label-width": "110",
151
- layout: "horizontal",
152
- model: $props.optionModel
153
- }, {
94
+ createVNode(_component_a_row, { gutter: 8 }, {
154
95
  default: withCtx(() => [
155
- createVNode(_component_a_row, { gutter: 8 }, {
96
+ createVNode(_component_a_col, { span: 11 }, {
156
97
  default: withCtx(() => [
157
- createVNode(_component_a_col, { span: 11 }, {
158
- default: withCtx(() => [
159
- createVNode(_component_a_form_item, {
160
- name: "buttonsColumnTitle",
161
- label: _ctx.i18nt("designer.setting.buttonsColumnTitle")
162
- }, {
163
- default: withCtx(() => [
164
- createVNode(_component_a_input, {
165
- value: $props.optionModel.buttonsColumnTitle,
166
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => $props.optionModel.buttonsColumnTitle = $event)
167
- }, null, 8, ["value"])
168
- ]),
169
- _: 1
170
- }, 8, ["label"])
171
- ]),
172
- _: 1
173
- }),
174
- createVNode(_component_a_col, { span: 6 }, {
98
+ createVNode(_component_a_form_item, {
99
+ name: "buttonsColumnTitle",
100
+ label: _ctx.i18nt("designer.setting.buttonsColumnTitle")
101
+ }, {
175
102
  default: withCtx(() => [
176
- createVNode(_component_a_form_item, {
177
- name: "buttonsColumnWidth",
178
- label: _ctx.i18nt("designer.setting.buttonsColumnWidth")
179
- }, {
180
- default: withCtx(() => [
181
- createVNode(_component_a_input_number, {
182
- value: $props.optionModel.buttonsColumnWidth,
183
- "onUpdate:value": _cache[2] || (_cache[2] = ($event) => $props.optionModel.buttonsColumnWidth = $event)
184
- }, null, 8, ["value"])
185
- ]),
186
- _: 1
187
- }, 8, ["label"])
103
+ createVNode(_component_a_input, {
104
+ value: $props.optionModel.buttonsColumnTitle,
105
+ "onUpdate:value": _cache[1] || (_cache[1] = ($event) => $props.optionModel.buttonsColumnTitle = $event)
106
+ }, null, 8, ["value"])
188
107
  ]),
189
108
  _: 1
190
- }),
191
- createVNode(_component_a_col, { span: 5 }, {
192
- default: withCtx(() => [
193
- createVNode(_component_a_form_item, {
194
- name: "buttonsColumnFixed",
195
- label: _ctx.i18nt("designer.setting.fixedColumn")
196
- }, {
197
- default: withCtx(() => [
198
- createVNode(_component_a_select, {
199
- value: $props.optionModel.buttonsColumnFixed,
200
- "onUpdate:value": _cache[3] || (_cache[3] = ($event) => $props.optionModel.buttonsColumnFixed = $event),
201
- allowClear: "",
202
- style: { "width": "100%" }
203
- }, {
204
- default: withCtx(() => [
205
- createVNode(_component_a_select_option, { value: "left" }, {
206
- default: withCtx(() => [
207
- createTextVNode("left")
208
- ]),
209
- _: 1
210
- }),
211
- createVNode(_component_a_select_option, { value: "right" }, {
212
- default: withCtx(() => [
213
- createTextVNode("right")
214
- ]),
215
- _: 1
216
- })
217
- ]),
218
- _: 1
219
- }, 8, ["value"])
220
- ]),
221
- _: 1
222
- }, 8, ["label"])
223
- ]),
224
- _: 1
225
- })
109
+ }, 8, ["label"])
226
110
  ]),
227
111
  _: 1
228
112
  }),
229
- createVNode(_component_a_row, null, {
113
+ createVNode(_component_a_col, { span: 6 }, {
230
114
  default: withCtx(() => [
231
- createVNode(_component_a_col, { span: 24 }, {
115
+ createVNode(_component_a_form_item, {
116
+ name: "buttonsColumnWidth",
117
+ label: _ctx.i18nt("designer.setting.buttonsColumnWidth")
118
+ }, {
232
119
  default: withCtx(() => [
233
- createVNode(_component_a_divider, { "content-position": "left" }, {
234
- default: withCtx(() => [
235
- createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.operationButtonsSetting")), 1)
236
- ]),
237
- _: 1
238
- })
120
+ createVNode(_component_a_input_number, {
121
+ value: $props.optionModel.buttonsColumnWidth,
122
+ "onUpdate:value": _cache[2] || (_cache[2] = ($event) => $props.optionModel.buttonsColumnWidth = $event)
123
+ }, null, 8, ["value"])
239
124
  ]),
240
125
  _: 1
241
- })
126
+ }, 8, ["label"])
242
127
  ]),
243
128
  _: 1
244
129
  }),
245
- createVNode(_component_draggable, mergeProps({
246
- modelValue: $props.optionModel.operationButtons,
247
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $props.optionModel.operationButtons = $event),
248
- "item-key": "id"
249
- }, { ghostClass: "ghost", handle: ".drag-handler" }), {
250
- item: withCtx(({ element: btn, index: bIdx }) => [
251
- createVNode(_component_a_row, {
252
- gutter: 8,
253
- class: "button-row"
130
+ createVNode(_component_a_col, { span: 5 }, {
131
+ default: withCtx(() => [
132
+ createVNode(_component_a_form_item, {
133
+ name: "buttonsColumnFixed",
134
+ label: _ctx.i18nt("designer.setting.fixedColumn")
254
135
  }, {
255
136
  default: withCtx(() => [
256
- createVNode(_component_a_col, {
257
- span: 1,
258
- class: "drag-sort-col"
137
+ createVNode(_component_a_select, {
138
+ value: $props.optionModel.buttonsColumnFixed,
139
+ "onUpdate:value": _cache[3] || (_cache[3] = ($event) => $props.optionModel.buttonsColumnFixed = $event),
140
+ allowClear: "",
141
+ style: { "width": "100%" }
259
142
  }, {
260
143
  default: withCtx(() => [
261
- _hoisted_1
262
- ]),
263
- _: 1
264
- }),
265
- createVNode(_component_a_col, { span: 3 }, {
266
- default: withCtx(() => [
267
- createVNode(_component_a_form_item, {
268
- name: "operationButtons." + bIdx + ".name",
269
- label: _ctx.i18nt("designer.setting.operationButtonName")
270
- }, {
271
- default: withCtx(() => [
272
- createVNode(_component_a_input, {
273
- value: btn.name,
274
- "onUpdate:value": ($event) => btn.name = $event,
275
- onFocus: $options.onButtonNameFocus,
276
- onChange: (event) => $options.onButtonNameChange(event.target.value, bIdx),
277
- placeholder: _ctx.i18nt("designer.setting.operationButtonName")
278
- }, null, 8, ["value", "onUpdate:value", "onFocus", "onChange", "placeholder"])
279
- ]),
280
- _: 2
281
- }, 1032, ["name", "label"])
282
- ]),
283
- _: 2
284
- }, 1024),
285
- createVNode(_component_a_col, { span: 3 }, {
286
- default: withCtx(() => [
287
- createVNode(_component_a_form_item, {
288
- name: "operationButtons." + bIdx + ".label",
289
- label: _ctx.i18nt("designer.setting.operationButtonLabel")
290
- }, {
291
- default: withCtx(() => [
292
- createVNode(_component_a_input, {
293
- value: btn.label,
294
- "onUpdate:value": ($event) => btn.label = $event,
295
- placeholder: _ctx.i18nt("designer.setting.operationButtonLabel")
296
- }, null, 8, ["value", "onUpdate:value", "placeholder"])
297
- ]),
298
- _: 2
299
- }, 1032, ["name", "label"])
300
- ]),
301
- _: 2
302
- }, 1024),
303
- createVNode(_component_a_col, { span: 3 }, {
304
- default: withCtx(() => [
305
- createVNode(_component_a_form_item, {
306
- name: "operationButtons." + bIdx + ".type",
307
- label: _ctx.i18nt("designer.setting.operationButtonType")
308
- }, {
309
- default: withCtx(() => [
310
- createVNode(_component_a_select, {
311
- value: btn.type,
312
- "onUpdate:value": ($event) => btn.type = $event,
313
- placeholder: _ctx.i18nt("designer.setting.operationButtonType")
314
- }, {
315
- default: withCtx(() => [
316
- createVNode(_component_a_select_option, { value: "primary" }, {
317
- default: withCtx(() => [
318
- createTextVNode("primary")
319
- ]),
320
- _: 1
321
- }),
322
- createVNode(_component_a_select_option, { value: "ghost" }, {
323
- default: withCtx(() => [
324
- createTextVNode("ghost")
325
- ]),
326
- _: 1
327
- }),
328
- createVNode(_component_a_select_option, { value: "dashed" }, {
329
- default: withCtx(() => [
330
- createTextVNode("dashed")
331
- ]),
332
- _: 1
333
- }),
334
- createVNode(_component_a_select_option, { value: "text" }, {
335
- default: withCtx(() => [
336
- createTextVNode("text")
337
- ]),
338
- _: 1
339
- }),
340
- createVNode(_component_a_select_option, { value: "link" }, {
341
- default: withCtx(() => [
342
- createTextVNode("link")
343
- ]),
344
- _: 1
345
- }),
346
- createVNode(_component_a_select_option, { value: "default" }, {
347
- default: withCtx(() => [
348
- createTextVNode("default")
349
- ]),
350
- _: 1
351
- })
352
- ]),
353
- _: 2
354
- }, 1032, ["value", "onUpdate:value", "placeholder"])
355
- ]),
356
- _: 2
357
- }, 1032, ["name", "label"])
358
- ]),
359
- _: 2
360
- }, 1024),
361
- createVNode(_component_a_col, { span: 3 }, {
362
- default: withCtx(() => [
363
- createVNode(_component_a_form_item, {
364
- name: "operationButtons." + bIdx + ".size",
365
- label: _ctx.i18nt("designer.setting.operationButtonSize")
366
- }, {
367
- default: withCtx(() => [
368
- createVNode(_component_a_select, {
369
- value: btn.size,
370
- "onUpdate:value": ($event) => btn.size = $event,
371
- placeholder: _ctx.i18nt("designer.setting.operationButtonSize")
372
- }, {
373
- default: withCtx(() => [
374
- createVNode(_component_a_select_option, { value: "large" }, {
375
- default: withCtx(() => [
376
- createTextVNode("large")
377
- ]),
378
- _: 1
379
- }),
380
- createVNode(_component_a_select_option, { value: "default" }, {
381
- default: withCtx(() => [
382
- createTextVNode("default")
383
- ]),
384
- _: 1
385
- }),
386
- createVNode(_component_a_select_option, { value: "small" }, {
387
- default: withCtx(() => [
388
- createTextVNode("small")
389
- ]),
390
- _: 1
391
- })
392
- ]),
393
- _: 2
394
- }, 1032, ["value", "onUpdate:value", "placeholder"])
395
- ]),
396
- _: 2
397
- }, 1032, ["name", "label"])
398
- ]),
399
- _: 2
400
- }, 1024),
401
- createVNode(_component_a_col, { span: 4 }, {
402
- default: withCtx(() => [
403
- createVNode(_component_a_form_item, { label: "按钮形状" }, {
144
+ createVNode(_component_a_select_option, { value: "left" }, {
404
145
  default: withCtx(() => [
405
- createVNode(_component_a_select, {
406
- value: btn.shape,
407
- "onUpdate:value": ($event) => btn.shape = $event
408
- }, {
409
- default: withCtx(() => [
410
- createVNode(_component_a_select_option, { value: "default" }, {
411
- default: withCtx(() => [
412
- createTextVNode("default")
413
- ]),
414
- _: 1
415
- }),
416
- createVNode(_component_a_select_option, { value: "circle" }, {
417
- default: withCtx(() => [
418
- createTextVNode("circle")
419
- ]),
420
- _: 1
421
- }),
422
- createVNode(_component_a_select_option, { value: "round" }, {
423
- default: withCtx(() => [
424
- createTextVNode("round")
425
- ]),
426
- _: 1
427
- })
428
- ]),
429
- _: 2
430
- }, 1032, ["value", "onUpdate:value"])
146
+ createTextVNode("left")
431
147
  ]),
432
- _: 2
433
- }, 1024)
434
- ]),
435
- _: 2
436
- }, 1024),
437
- createVNode(_component_a_col, { span: 2 }, {
438
- default: withCtx(() => [
439
- createVNode(_component_a_form_item, {
440
- name: "operationButtons." + bIdx + ".hidden",
441
- label: _ctx.i18nt("designer.setting.operationButtonHidden")
442
- }, {
443
- default: withCtx(() => [
444
- createVNode(_component_a_switch, {
445
- checked: btn.hidden,
446
- "onUpdate:checked": ($event) => btn.hidden = $event
447
- }, null, 8, ["checked", "onUpdate:checked"])
448
- ]),
449
- _: 2
450
- }, 1032, ["name", "label"])
451
- ]),
452
- _: 2
453
- }, 1024),
454
- createVNode(_component_a_col, { span: 2 }, {
455
- default: withCtx(() => [
456
- createVNode(_component_a_form_item, {
457
- name: "operationButtons." + bIdx + ".disabled",
458
- label: _ctx.i18nt("designer.setting.operationButtonDisabled")
459
- }, {
460
- default: withCtx(() => [
461
- createVNode(_component_a_switch, {
462
- checked: btn.disabled,
463
- "onUpdate:checked": ($event) => btn.disabled = $event
464
- }, null, 8, ["checked", "onUpdate:checked"])
465
- ]),
466
- _: 2
467
- }, 1032, ["name", "label"])
468
- ]),
469
- _: 2
470
- }, 1024),
471
- createVNode(_component_a_col, { span: 2 }, {
472
- default: withCtx(() => [
473
- createVNode(_component_a_form_item, null, {
474
- default: withCtx(() => [
475
- createVNode(_component_a_button, {
476
- class: normalizeClass([{ "button-text-highlight": !!btn.onClick }]),
477
- onClick: ($event) => $options.editClickEvent(btn)
478
- }, {
479
- default: withCtx(() => [
480
- createTextVNode(" 点击事件 ")
481
- ]),
482
- _: 2
483
- }, 1032, ["class", "onClick"])
484
- ]),
485
- _: 2
486
- }, 1024)
487
- ]),
488
- _: 2
489
- }, 1024),
490
- createVNode(_component_a_col, { span: 1 }, {
491
- default: withCtx(() => [
492
- createVNode(_component_a_button, {
493
- type: "link",
494
- onClick: ($event) => $options.deleteOperationButton(bIdx)
495
- }, {
148
+ _: 1
149
+ }),
150
+ createVNode(_component_a_select_option, { value: "right" }, {
496
151
  default: withCtx(() => [
497
- createTextVNode("删除")
152
+ createTextVNode("right")
498
153
  ]),
499
- _: 2
500
- }, 1032, ["onClick"])
501
- ]),
502
- _: 2
503
- }, 1024)
504
- ]),
505
- _: 2
506
- }, 1024)
507
- ]),
508
- _: 1
509
- }, 16, ["modelValue"]),
510
- createVNode(_component_a_row, { gutter: 0 }, {
511
- default: withCtx(() => [
512
- createVNode(_component_a_col, { span: 4 }, {
513
- default: withCtx(() => [
514
- createVNode(_component_a_button, {
515
- type: "primary",
516
- size: "default",
517
- onClick: $options.addOperationButton
518
- }, {
519
- default: withCtx(() => [
520
- createTextVNode(toDisplayString(_ctx.i18nt("designer.setting.addOperationButton")), 1)
154
+ _: 1
155
+ })
521
156
  ]),
522
157
  _: 1
523
- }, 8, ["onClick"])
158
+ }, 8, ["value"])
524
159
  ]),
525
160
  _: 1
526
- })
161
+ }, 8, ["label"])
527
162
  ]),
528
163
  _: 1
529
164
  })
530
165
  ]),
531
166
  _: 1
532
- }, 8, ["model"])
167
+ }),
168
+ createVNode(_component_ActionButtonListDialog, {
169
+ data: $props.optionModel.operationButtons,
170
+ "onUpdate:data": _cache[4] || (_cache[4] = ($event) => $props.optionModel.operationButtons = $event),
171
+ parmas: "scope"
172
+ }, null, 8, ["data"])
533
173
  ]),
534
174
  _: 1
535
- }, 8, ["title", "visible"]),
536
- createVNode(_component_CodeModalEditor, {
537
- modelValue: $data.currentEditBtn.onClick,
538
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.currentEditBtn.onClick = $event),
539
- ref: "CodeModalEditorRef",
540
- "event-header": `${$data.currentEditBtn.name}.onClick(record,index,column,btn){`
541
- }, null, 8, ["modelValue", "event-header"])
175
+ }, 8, ["title", "visible"])
542
176
  ], 64);
543
177
  }
544
- const dataTableShowButtonsColumnEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2884d0b4"]]);
178
+ const dataTableShowButtonsColumnEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-be691c2c"]]);
545
179
  export {
546
180
  dataTableShowButtonsColumnEditor as default
547
181
  };
@@ -1 +1 @@
1
- {"version":3,"file":"data-table-showButtonsColumn-editor.vue.js","sources":["../../../../../../../src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue"],"sourcesContent":["<template>\n <a-form-item :label=\"i18nt('designer.setting.showButtonsColumn')\">\n <a-space>\n <a-switch v-model:checked=\"optionModel.showButtonsColumn\" />\n <a-button\n v-if=\"!!optionModel.showButtonsColumn\"\n type=\"primary\"\n shape=\"round\"\n @click=\"editButtonsColumn\"\n >\n {{ i18nt('designer.setting.editAction') }}\n </a-button>\n </a-space>\n </a-form-item>\n <a-modal\n :title=\"i18nt('designer.setting.buttonsColumnEdit')\"\n v-model:visible=\"showButtonsEditDialog\"\n :show-close=\"true\"\n dialogClass=\"drag-dialog\"\n append-to-body\n :close-on-click-modal=\"false\"\n :close-on-press-escape=\"false\"\n :destroy-on-close=\"true\"\n width=\"1250px\"\n >\n <a-form label-width=\"110\" layout=\"horizontal\" :model=\"optionModel\">\n <a-row :gutter=\"8\">\n <a-col :span=\"11\">\n <a-form-item\n name=\"buttonsColumnTitle\"\n :label=\"i18nt('designer.setting.buttonsColumnTitle')\"\n >\n <a-input v-model:value=\"optionModel.buttonsColumnTitle\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"6\">\n <a-form-item\n name=\"buttonsColumnWidth\"\n :label=\"i18nt('designer.setting.buttonsColumnWidth')\"\n >\n <a-input-number v-model:value=\"optionModel.buttonsColumnWidth\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"5\">\n <a-form-item\n name=\"buttonsColumnFixed\"\n :label=\"i18nt('designer.setting.fixedColumn')\"\n >\n <a-select\n v-model:value=\"optionModel.buttonsColumnFixed\"\n allowClear\n style=\"width: 100%\"\n >\n <a-select-option value=\"left\">left</a-select-option>\n <a-select-option value=\"right\">right</a-select-option>\n </a-select>\n </a-form-item>\n </a-col>\n </a-row>\n <a-row>\n <a-col :span=\"24\">\n <a-divider content-position=\"left\">\n {{ i18nt('designer.setting.operationButtonsSetting') }}\n </a-divider>\n </a-col>\n </a-row>\n <draggable\n v-model=\"optionModel.operationButtons\"\n item-key=\"id\"\n v-bind=\"{ ghostClass: 'ghost', handle: '.drag-handler' }\"\n >\n <template #item=\"{ element: btn, index: bIdx }\">\n <a-row :gutter=\"8\" class=\"button-row\">\n <a-col :span=\"1\" class=\"drag-sort-col\">\n <i class=\"iconfont icon-drag drag-handler\"></i>\n </a-col>\n <a-col :span=\"3\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.name'\"\n :label=\"i18nt('designer.setting.operationButtonName')\"\n >\n <a-input\n v-model:value=\"btn.name\"\n @focus=\"onButtonNameFocus\"\n @change=\"event => onButtonNameChange(event.target.value, bIdx)\"\n :placeholder=\"i18nt('designer.setting.operationButtonName')\"\n />\n </a-form-item>\n </a-col>\n <a-col :span=\"3\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.label'\"\n :label=\"i18nt('designer.setting.operationButtonLabel')\"\n >\n <a-input\n v-model:value=\"btn.label\"\n :placeholder=\"i18nt('designer.setting.operationButtonLabel')\"\n />\n </a-form-item>\n </a-col>\n <a-col :span=\"3\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.type'\"\n :label=\"i18nt('designer.setting.operationButtonType')\"\n >\n <a-select\n v-model:value=\"btn.type\"\n :placeholder=\"i18nt('designer.setting.operationButtonType')\"\n >\n <a-select-option value=\"primary\">primary</a-select-option>\n <a-select-option value=\"ghost\">ghost</a-select-option>\n <a-select-option value=\"dashed\">dashed</a-select-option>\n <a-select-option value=\"text\">text</a-select-option>\n <a-select-option value=\"link\">link</a-select-option>\n <a-select-option value=\"default\">default</a-select-option>\n </a-select>\n </a-form-item>\n </a-col>\n <a-col :span=\"3\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.size'\"\n :label=\"i18nt('designer.setting.operationButtonSize')\"\n >\n <a-select\n v-model:value=\"btn.size\"\n :placeholder=\"i18nt('designer.setting.operationButtonSize')\"\n >\n <a-select-option value=\"large\">large</a-select-option>\n <a-select-option value=\"default\">default</a-select-option>\n <a-select-option value=\"small\">small</a-select-option>\n </a-select>\n </a-form-item>\n </a-col>\n <a-col :span=\"4\">\n <a-form-item :label=\"'按钮形状'\">\n <a-select v-model:value=\"btn.shape\">\n <a-select-option value=\"default\">default</a-select-option>\n <a-select-option value=\"circle\">circle</a-select-option>\n <a-select-option value=\"round\">round</a-select-option>\n </a-select>\n </a-form-item>\n </a-col>\n <a-col :span=\"2\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.hidden'\"\n :label=\"i18nt('designer.setting.operationButtonHidden')\"\n >\n <a-switch v-model:checked=\"btn.hidden\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"2\">\n <a-form-item\n :name=\"'operationButtons.' + bIdx + '.disabled'\"\n :label=\"i18nt('designer.setting.operationButtonDisabled')\"\n >\n <a-switch v-model:checked=\"btn.disabled\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"2\">\n <a-form-item>\n <a-button\n :class=\"[{ 'button-text-highlight': !!btn.onClick }]\"\n @click=\"editClickEvent(btn)\"\n >\n 点击事件\n </a-button>\n </a-form-item>\n </a-col>\n <a-col :span=\"1\">\n <a-button type=\"link\" @click=\"deleteOperationButton(bIdx)\"\n >删除</a-button\n >\n </a-col>\n </a-row>\n </template>\n </draggable>\n <a-row :gutter=\"0\">\n <a-col :span=\"4\">\n <a-button type=\"primary\" size=\"default\" @click=\"addOperationButton\">\n {{ i18nt('designer.setting.addOperationButton') }}\n </a-button>\n </a-col>\n </a-row>\n </a-form>\n <template #footer>\n <div class=\"dialog-footer\">\n <a-button size=\"default\" @click=\"showButtonsEditDialog = false\">\n {{ i18nt('designer.hint.closePreview') }}\n </a-button>\n </div>\n </template>\n </a-modal>\n <CodeModalEditor\n v-model=\"currentEditBtn.onClick\"\n ref=\"CodeModalEditorRef\"\n :event-header=\"`${currentEditBtn.name}.onClick(record,index,column,btn){`\"\n />\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import { generateId } from '@/utils/util';\n import CodeModalEditor from '@/components/code-editor/code-modal-editor.vue';\n import { TpfConfirm } from '@/hooks/TpfConfirm';\n import Draggable from '@/lib/vuedraggable/src/vuedraggable';\n\n export default {\n name: 'showButtonsColumn-editor',\n mixins: [i18n],\n components: { CodeModalEditor, Draggable },\n props: {\n designer: Object,\n selectedWidget: Object,\n optionModel: Object\n },\n data() {\n return {\n showButtonsEditDialog: false,\n currentEditBtn: {}\n };\n },\n methods: {\n editClickEvent(row) {\n this.currentEditBtn = row;\n this.$refs.CodeModalEditorRef.open(row.onClick);\n },\n addOperationButton() {\n this.optionModel.operationButtons = this.optionModel.operationButtons || [];\n this.optionModel.operationButtons.push({\n name: 'btn' + generateId(),\n label: 'new btn',\n type: 'text',\n size: 'small',\n shape: 'default',\n hidden: false,\n disabled: false,\n onClick: ''\n });\n },\n onButtonNameFocus(event) {\n this.oldButtonName = event.target.value;\n },\n onButtonNameChange(newName, btnIdx) {\n let sameNameFlag = false;\n this.optionModel.operationButtons.map((tb, tbIdx) => {\n if (tb.name === newName && tbIdx !== btnIdx) {\n sameNameFlag = true;\n }\n });\n if (sameNameFlag) {\n this.$message.error(\n this.i18nt('designer.setting.operationButtonDuplicatedNameError')\n );\n this.optionModel.operationButtons[btnIdx].name = this.oldButtonName;\n }\n },\n deleteOperationButton(idx) {\n TpfConfirm({\n type: 'confirm',\n content: this.i18nt('designer.setting.deleteOperationButtonHint'),\n title: this.i18nt('render.hint.prompt'),\n okText: this.i18nt('render.hint.confirm'),\n cancelText: this.i18nt('render.hint.cancel')\n })\n .then(() => {\n this.optionModel.operationButtons.splice(idx, 1);\n })\n .catch(error => {\n //this.$message.error(error)\n });\n },\n editButtonsColumn() {\n this.showButtonsEditDialog = true;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .button-row {\n border-bottom: 1px solid #e1e2e3;\n margin-bottom: 12px;\n }\n .drag-sort-col {\n padding-top: 8px;\n cursor: move;\n }\n</style>\n"],"names":["Draggable","_createElementVNode","_createVNode","_createBlock","_mergeProps","_withCtx","_normalizeClass"],"mappings":";;;;;;;;AA8MI,MAAK,YAAU;AAAA,EACX,MAAM;AAAA,EACN,QAAQ,CAAC,IAAI;AAAA,EACb,YAAY,EAAE,iBAAe,WAAEA,mBAAW;AAAA,EAC1C,OAAO;AAAA,IACH,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,EAChB;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,uBAAuB;AAAA,MACvB,gBAAgB,CAAA;AAAA,IACnB;AAAA,EACJ;AAAA,EACD,SAAS;AAAA,IACL,eAAe,KAAK;AAChB,WAAK,iBAAiB;AACtB,WAAK,MAAM,mBAAmB,KAAK,IAAI,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;uCAC9D,MAAkD;AAAA,wDAA/C,KAAK,MAAA,qCAAA,CAAA,GAAA,CAAA;AAAA;;;;;;;;;;;;;;;IAa5BA,YAIE,4BAAA;AAAA,MAHW,YAAA,MAAA,eAAe;AAAA,MAAf,uBAAA,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,YAAA,MAAA,eAAe,UAAO;AAAA,MAC/B,KAAI;AAAA,MACH,gBAAY,GAAK,MAAc,eAAC,IAAI;AAAA;;;;"}
1
+ {"version":3,"file":"data-table-showButtonsColumn-editor.vue.js","sources":["../../../../../../../src/components/form-designer/setting-panel/property-editor/container-data-table/data-table-showButtonsColumn-editor.vue"],"sourcesContent":["<template>\n <a-form-item :label=\"i18nt('designer.setting.showButtonsColumn')\">\n <a-space>\n <a-switch v-model:checked=\"optionModel.showButtonsColumn\" />\n <a-button\n v-if=\"!!optionModel.showButtonsColumn\"\n type=\"primary\"\n shape=\"round\"\n @click=\"editButtonsColumn\"\n >\n {{ i18nt('designer.setting.editAction') }}\n </a-button>\n </a-space>\n </a-form-item>\n <a-modal\n :title=\"i18nt('designer.setting.buttonsColumnEdit')\"\n v-model:visible=\"showButtonsEditDialog\"\n :show-close=\"true\"\n dialogClass=\"drag-dialog\"\n append-to-body\n :close-on-click-modal=\"false\"\n :close-on-press-escape=\"false\"\n :destroy-on-close=\"true\"\n width=\"1250px\"\n >\n <a-row :gutter=\"8\">\n <a-col :span=\"11\">\n <a-form-item\n name=\"buttonsColumnTitle\"\n :label=\"i18nt('designer.setting.buttonsColumnTitle')\"\n >\n <a-input v-model:value=\"optionModel.buttonsColumnTitle\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"6\">\n <a-form-item\n name=\"buttonsColumnWidth\"\n :label=\"i18nt('designer.setting.buttonsColumnWidth')\"\n >\n <a-input-number v-model:value=\"optionModel.buttonsColumnWidth\" />\n </a-form-item>\n </a-col>\n <a-col :span=\"5\">\n <a-form-item\n name=\"buttonsColumnFixed\"\n :label=\"i18nt('designer.setting.fixedColumn')\"\n >\n <a-select\n v-model:value=\"optionModel.buttonsColumnFixed\"\n allowClear\n style=\"width: 100%\"\n >\n <a-select-option value=\"left\">left</a-select-option>\n <a-select-option value=\"right\">right</a-select-option>\n </a-select>\n </a-form-item>\n </a-col>\n </a-row>\n\n <ActionButtonListDialog v-model:data=\"optionModel.operationButtons\" parmas=\"scope\" />\n\n <template #footer>\n <div class=\"dialog-footer\">\n <a-button size=\"default\" @click=\"showButtonsEditDialog = false\">\n {{ i18nt('designer.hint.closePreview') }}\n </a-button>\n </div>\n </template>\n </a-modal>\n</template>\n\n<script>\n import i18n from '@/utils/i18n';\n import ActionButtonListDialog from '@/components/public/ActionButtonListDialog.vue';\n\n export default {\n name: 'showButtonsColumn-editor',\n mixins: [i18n],\n components: { ActionButtonListDialog },\n props: {\n designer: Object,\n selectedWidget: Object,\n optionModel: Object\n },\n data() {\n return {\n showButtonsEditDialog: false\n };\n },\n methods: {\n editButtonsColumn() {\n this.showButtonsEditDialog = true;\n }\n }\n };\n</script>\n\n<style lang=\"less\" scoped>\n .button-row {\n border-bottom: 1px solid #e1e2e3;\n margin-bottom: 12px;\n }\n .drag-sort-col {\n padding-top: 8px;\n cursor: move;\n }\n</style>\n"],"names":["_createVNode","_createBlock","_createElementVNode"],"mappings":";;;;;AA2EI,MAAK,YAAU;AAAA,EACX,MAAM;AAAA,EACN,QAAQ,CAAC,IAAI;AAAA,EACb,YAAY,EAAE,uBAAwB;AAAA,EACtC,OAAO;AAAA,IACH,UAAU;AAAA,IACV,gBAAgB;AAAA,IAChB,aAAa;AAAA,EAChB;AAAA,EACD,OAAO;AACH,WAAO;AAAA,MACH,uBAAuB;AAAA,IAC1B;AAAA,EACJ;AAAA,EACD,SAAS;AAAA,IACL,oBAAoB;AAChB,WAAK,wBAAwB;AAAA,IACjC;AAAA,EACJ;AACH;AAhCY,MAAA,aAAA,EAAA,OAAM,gBAAe;;;;;;;;;;;;;;;IA7DlCA,YAYc,wBAAA;AAAA,MAZA,OAA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