super-page-designer 2.1.47 → 2.1.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 (64) hide show
  1. package/dist/es/components/design/utils/assemblys-config.js +9 -13
  2. package/dist/es/components/design/utils/data-table-util.js +15 -19
  3. package/dist/es/components/design/utils/form-design-util.js +0 -1
  4. package/dist/es/components/design/utils/page-service-util.d.ts +2 -2
  5. package/dist/es/components/design/utils/page-service-util.js +7 -5
  6. package/dist/es/components/design/utils/page-table-util.js +33 -10
  7. package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +1 -1
  8. package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +1 -1
  9. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue.js +7 -1
  10. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +698 -0
  11. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +40 -15
  12. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +12 -12
  13. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue.js +106 -0
  14. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/row-colmun.vue2.js +4 -0
  15. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/style-table.vue.js +25 -11
  16. package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +69 -31
  17. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-advanced.vue.js +19 -8
  18. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue.js +422 -287
  19. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-style.vue.js +9 -6
  20. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue.js +1 -1
  21. package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +1 -1
  22. package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +1 -1
  23. package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -1
  24. package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +4 -4
  25. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
  26. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +734 -1
  27. package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +1 -738
  28. package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -1
  29. package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +1 -1
  30. package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +1 -1
  31. package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +1 -1
  32. package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +1 -1
  33. package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +1 -1
  34. package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +1 -1
  35. package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +46 -52
  36. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue.js +1 -1
  37. package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +29 -9
  38. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
  39. package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +9 -2
  40. package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +67 -9
  41. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue.js +1 -7
  42. package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +23 -9
  43. package/dist/es/components/design/views/assemblys/data/table/table-attr-style.vue.js +7 -2
  44. package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +8 -2
  45. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
  46. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +31 -28
  47. package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +33 -470
  48. package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +7 -3
  49. package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +1 -1
  50. package/dist/es/components/design/views/assemblys/form/common/data-linkage.vue.js +2 -2
  51. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +275 -0
  52. package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue2.js +4 -0
  53. package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +16 -9
  54. package/dist/es/components/design/views/assemblys/object-design.vue.js +16 -21
  55. package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +4 -1
  56. package/dist/es/components/design/views/design/page-design.vue.js +1 -1
  57. package/dist/es/components/design/views/design/page-event/config.vue.js +1 -1
  58. package/dist/es/components/design/views/design/page-event/config.vue3.js +102 -16
  59. package/dist/es/components/design/views/design/view/view-design-display.vue.js +14 -10
  60. package/dist/es/stores/statistics-table-store.js +2 -1
  61. package/dist/es/style.css +143 -143
  62. package/package.json +5 -4
  63. package/dist/es/components/design/views/assemblys/data/component/row-backgroud-color.vue2.js +0 -78
  64. /package/dist/es/components/design/views/assemblys/{data/component/row-backgroud-color.vue3.js → chart/statistical-table/component/data-origin.vue3.js} +0 -0
@@ -1,26 +1,19 @@
1
- import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, createCommentVNode, toDisplayString } from "vue";
2
2
  import { getFormComponentOptions, getStatisticsTableColumn } from "../../../../utils/assemblys-config.js";
3
- import "@element-plus/icons";
4
- import "agilebuilder-ui/src/utils/request";
5
- import "@vueuse/core";
6
- import "@element-plus/icons-vue";
3
+ import DataOrigin from "./component/data-origin.vue.js";
4
+ import _sfc_main$6 from "../../common/common-attr-size.vue.js";
5
+ import _sfc_main$2 from "../../form/common/data-linkage.vue.js";
7
6
  import { getUuidv4 } from "../../../../utils/common-util.js";
8
- import "../../../../../../stores/page-store.js";
9
- import "../../../../../../stores/table-store.js";
10
- import "../../../../../../stores/statistics-table-store.js";
11
- import "../../common/common-variable-bind.vue2.js";
12
- import "element-plus";
13
- import { getCustomFuncs } from "../../../../utils/page-event-util.js";
14
- import "./component/data-origin.vue.js";
15
- import _sfc_main$2 from "../common/common-attr-data.vue.js";
16
- import _sfc_main$7 from "../../common/common-attr-size.vue.js";
17
- import _sfc_main$3 from "../../form/common/data-linkage.vue.js";
18
7
  import { addColumnToGroupHeaders, getColumnsWithGroupHeader } from "../../../../utils/data-table-util.js";
8
+ import "agilebuilder-ui/src/utils/request";
19
9
  import _sfc_main$1 from "../../common/common-function-code.vue.js";
20
- import _sfc_main$4 from "../../data/component/formatting-icon-label.vue.js";
21
- import _sfc_main$5 from "./component/style-table.vue.js";
22
- import _sfc_main$6 from "./component/link-table.vue.js";
10
+ import _sfc_main$3 from "../../data/component/formatting-icon-label.vue.js";
11
+ import _sfc_main$4 from "./component/style-table.vue.js";
12
+ import _sfc_main$5 from "./component/link-table.vue.js";
13
+ import { getCustomFuncs } from "../../../../utils/page-event-util.js";
23
14
  import eventBus from "../../../../utils/eventBus.js";
15
+ import { InfoFilled } from "@element-plus/icons-vue";
16
+ import { statisticsTable } from "../../../../../../stores/statistics-table-store.js";
24
17
  const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
25
18
  const _hoisted_2 = { style: { "padding": "8px 0px 0px 0px" } };
26
19
  const _hoisted_3 = { style: { "float": "left" } };
@@ -41,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
34
  setup(__props) {
42
35
  const props = __props;
43
36
  const openCollapseItems = ref(["base", "appearance", "dataOrigin", "linkage", "attrSize", "columnModel", "dataSet"]);
37
+ const statisticsTableStore = statisticsTable();
44
38
  if (!props.configure.items) {
45
39
  props.configure.items = [
46
40
  {
@@ -50,10 +44,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
44
  format: {}
51
45
  }
52
46
  ];
47
+ } else {
48
+ statisticsTableStore.addFieldList(props.configure.items);
53
49
  }
54
50
  function columnStyleChange(data, index) {
55
51
  props.configure.items[index].style = data;
56
52
  }
53
+ function columnTitleStyleChange(data, index) {
54
+ props.configure.items[index].titleStyle = data;
55
+ }
57
56
  function linkChange(data, index) {
58
57
  props.configure.items[index].linkPage = data;
59
58
  }
@@ -87,18 +86,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
86
  }
88
87
  }
89
88
  const sourceFields = ref([]);
90
- let hisServiceFields = null;
91
- let hisServiceDataField = null;
92
- function updateBindFields() {
93
- if (props.configure.serviceFields == hisServiceFields && props.configure.serviceDataField == hisServiceDataField) {
94
- return;
95
- }
96
- hisServiceFields = props.configure.serviceFields;
97
- hisServiceDataField = props.configure.serviceDataField;
89
+ function updateBindFields(serviceFields) {
98
90
  const newFields = [];
99
- if (hisServiceFields) {
100
- const prevField = hisServiceDataField ? hisServiceDataField : "";
101
- for (let f of hisServiceFields) {
91
+ if (serviceFields) {
92
+ const serviceDataCollection = props.configure.props.dataOrigin.service.serviceDataField;
93
+ const prevField = serviceDataCollection ? serviceDataCollection : "";
94
+ for (let f of serviceFields) {
102
95
  if (!prevField || f.value.startsWith(prevField + ".")) {
103
96
  const tempField = {};
104
97
  Object.assign(tempField, f);
@@ -117,15 +110,67 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
110
  }
118
111
  function columnItemChange(value, row) {
119
112
  row.props.base.prop = value;
120
- row.props.base.name = sourceFields.value.find((item) => item.value === value).label;
113
+ const soureField = sourceFields.value.find((item) => item.value === value);
114
+ if (soureField) {
115
+ row.props.base.name = sourceFields.value.find((item) => item.value === value).label;
116
+ row.props.base.dataType = sourceFields.value.find((item) => item.value === value).type;
117
+ } else {
118
+ row.props.base.name = value;
119
+ row.props.base.dataType = "string";
120
+ }
121
+ }
122
+ function summaryChange(value, row) {
123
+ if (!props.configure.props.summaries) {
124
+ props.configure.props.summaries = { titleColumn: [], dataColumn: [] };
125
+ }
126
+ if (props.configure.props.summaries) {
127
+ if (props.configure.props.summaries.titleColumn) {
128
+ props.configure.props.summaries.titleColumn = props.configure.props.summaries.titleColumn.filter(
129
+ (item) => item.prop !== row.props.base.prop
130
+ );
131
+ }
132
+ if (props.configure.props.summaries.dataColumn) {
133
+ props.configure.props.summaries.dataColumn = props.configure.props.summaries.dataColumn.filter(
134
+ (item) => item.prop !== row.props.base.prop
135
+ );
136
+ }
137
+ }
138
+ if (value === "titleColumn") {
139
+ props.configure.props.summaries.titleColumn.push({ prop: row.props.base.prop, label: row.props.base.summaryTitle });
140
+ } else if (value === "dataColumn") {
141
+ props.configure.props.summaries.dataColumn.push({
142
+ prop: row.props.base.prop,
143
+ summaryMode: row.props.base.summaryMode,
144
+ customRollup: row.props.base.customRollup
145
+ });
146
+ }
147
+ }
148
+ function summaryTitleChange(value, row) {
149
+ props.configure.props.summaries.titleColumn.forEach((item) => {
150
+ if (item.prop === row.props.base.prop) {
151
+ item.label = value;
152
+ }
153
+ });
154
+ }
155
+ function summaryModeChange(value, row) {
156
+ props.configure.props.summaries.dataColumn.forEach((item) => {
157
+ if (item.prop === row.props.base.prop) {
158
+ item.summaryMode = value;
159
+ if (value === "custom") {
160
+ item.customRollup = row.props.base.customRollup;
161
+ } else {
162
+ delete item.customRollup;
163
+ }
164
+ }
165
+ });
166
+ }
167
+ function formatChange(value, index) {
168
+ if (value) {
169
+ props.configure.items[index].props.format = {
170
+ type: value
171
+ };
172
+ }
121
173
  }
122
- watch(
123
- props.configure,
124
- () => {
125
- updateBindFields();
126
- },
127
- { immediate: true }
128
- );
129
174
  return (_ctx, _cache) => {
130
175
  const _component_el_option = resolveComponent("el-option");
131
176
  const _component_el_select = resolveComponent("el-select");
@@ -138,9 +183,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
183
  const _component_el_input_number = resolveComponent("el-input-number");
139
184
  const _component_el_color_picker = resolveComponent("el-color-picker");
140
185
  const _component_el_divider = resolveComponent("el-divider");
186
+ const _component_el_col = resolveComponent("el-col");
187
+ const _component_el_icon = resolveComponent("el-icon");
188
+ const _component_el_tooltip = resolveComponent("el-tooltip");
189
+ const _component_el_checkbox = resolveComponent("el-checkbox");
141
190
  const _component_el_table_column = resolveComponent("el-table-column");
142
191
  const _component_Plus = resolveComponent("Plus");
143
- const _component_el_icon = resolveComponent("el-icon");
144
192
  const _component_Delete = resolveComponent("Delete");
145
193
  const _component_el_table = resolveComponent("el-table");
146
194
  const _component_el_collapse = resolveComponent("el-collapse");
@@ -152,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
200
  default: withCtx(() => [
153
201
  createVNode(_component_el_collapse, {
154
202
  modelValue: openCollapseItems.value,
155
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => openCollapseItems.value = $event),
203
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => openCollapseItems.value = $event),
156
204
  style: { "margin-top": "6px" }
157
205
  }, {
158
206
  default: withCtx(() => [
@@ -273,8 +321,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
273
321
  ]),
274
322
  _: 1
275
323
  }),
276
- createVNode(_sfc_main$2, { configure: __props.configure }, null, 8, ["configure"]),
277
- createVNode(_sfc_main$3, {
324
+ createVNode(DataOrigin, {
325
+ title: "数据",
326
+ pageDesign: __props.pageDesign,
327
+ sourceFields: sourceFields.value,
328
+ configure: __props.configure,
329
+ remote: false,
330
+ onServiceFieldChange: updateBindFields
331
+ }, null, 8, ["pageDesign", "sourceFields", "configure"]),
332
+ createVNode(_sfc_main$2, {
278
333
  configureProps: __props.configure.props
279
334
  }, null, 8, ["configureProps"]),
280
335
  createVNode(_component_el_collapse_item, {
@@ -319,6 +374,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
319
374
  }, {
320
375
  default: withCtx(() => [
321
376
  createVNode(_component_el_select, {
377
+ onChange: ($event) => formatChange($event, props2.$index),
322
378
  modelValue: props2.row.props.format.type,
323
379
  "onUpdate:modelValue": ($event) => props2.row.props.format.type = $event,
324
380
  clearable: "",
@@ -355,7 +411,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
355
411
  })
356
412
  ]),
357
413
  _: 2
358
- }, 1032, ["modelValue", "onUpdate:modelValue"])
414
+ }, 1032, ["onChange", "modelValue", "onUpdate:modelValue"])
359
415
  ]),
360
416
  _: 2
361
417
  }, 1024),
@@ -467,9 +523,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
467
523
  ]),
468
524
  _: 2
469
525
  }, 1024)) : createCommentVNode("", true),
470
- props2.row.props.format && props2.row.props.format.type === "icon" ? (openBlock(), createBlock(_sfc_main$4, {
526
+ props2.row.props.format && props2.row.props.format.type === "icon" ? (openBlock(), createBlock(_sfc_main$3, {
471
527
  key: 7,
472
- setting: props2.row.props.format
528
+ setting: props2.row.props.format,
529
+ "show-event": false
473
530
  }, null, 8, ["setting"])) : createCommentVNode("", true),
474
531
  props2.row.props.format && props2.row.props.format.type === "custom" ? (openBlock(), createBlock(_component_el_form_item, {
475
532
  key: 8,
@@ -477,236 +534,227 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
477
534
  class: "amb-design-attr-item"
478
535
  }, {
479
536
  default: withCtx(() => [
480
- createVNode(_component_el_input, {
481
- modelValue: props2.row.props.format.customControl,
482
- "onUpdate:modelValue": ($event) => props2.row.props.format.customControl = $event
483
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
484
- ]),
485
- _: 2
486
- }, 1024)) : createCommentVNode("", true),
487
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
488
- key: 9,
489
- label: "最大值",
490
- class: "amb-design-attr-item"
491
- }, {
492
- default: withCtx(() => [
493
- createVNode(_component_el_input_number, {
494
- modelValue: props2.row.props.format.max,
495
- "onUpdate:modelValue": ($event) => props2.row.props.format.max = $event
496
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
497
- ]),
498
- _: 2
499
- }, 1024)) : createCommentVNode("", true),
500
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
501
- key: 10,
502
- label: "进度条类型",
503
- class: "amb-design-attr-item"
504
- }, {
505
- default: withCtx(() => [
506
- createVNode(_component_el_radio_group, {
507
- modelValue: props2.row.props.format.progressType,
508
- "onUpdate:modelValue": ($event) => props2.row.props.format.progressType = $event,
509
- class: "ml-4"
510
- }, {
511
- default: withCtx(() => [
512
- createVNode(_component_el_radio, { value: "line" }, {
513
- default: withCtx(() => [
514
- createTextVNode("line")
515
- ]),
516
- _: 1
517
- }),
518
- createVNode(_component_el_radio, { value: "circle" }, {
519
- default: withCtx(() => [
520
- createTextVNode("circle")
521
- ]),
522
- _: 1
523
- }),
524
- createVNode(_component_el_radio, { value: "dashboard" }, {
525
- default: withCtx(() => [
526
- createTextVNode("dashboard")
527
- ]),
528
- _: 1
529
- })
530
- ]),
531
- _: 2
532
- }, 1032, ["modelValue", "onUpdate:modelValue"])
533
- ]),
534
- _: 2
535
- }, 1024)) : createCommentVNode("", true),
536
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
537
- key: 11,
538
- label: "显示文字",
539
- class: "amb-design-attr-item"
540
- }, {
541
- default: withCtx(() => [
542
- createVNode(_component_el_radio_group, {
543
- modelValue: props2.row.props.format.showText,
544
- "onUpdate:modelValue": ($event) => props2.row.props.format.showText = $event,
545
- class: "ml-4"
546
- }, {
547
- default: withCtx(() => [
548
- createVNode(_component_el_radio, { value: true }, {
549
- default: withCtx(() => [
550
- createTextVNode("是")
551
- ]),
552
- _: 1
553
- }),
554
- createVNode(_component_el_radio, { value: false }, {
555
- default: withCtx(() => [
556
- createTextVNode("否")
557
- ]),
558
- _: 1
559
- })
560
- ]),
561
- _: 2
562
- }, 1032, ["modelValue", "onUpdate:modelValue"])
563
- ]),
564
- _: 2
565
- }, 1024)) : createCommentVNode("", true),
566
- props2.row.props.format && props2.row.props.format.type === "progress" && props2.row.props.format.progressType === "line" ? (openBlock(), createBlock(_component_el_form_item, {
567
- key: 12,
568
- label: "文本内显",
569
- class: "amb-design-attr-item"
570
- }, {
571
- default: withCtx(() => [
572
- createVNode(_component_el_radio_group, {
573
- modelValue: props2.row.props.format.textInside,
574
- "onUpdate:modelValue": ($event) => props2.row.props.format.textInside = $event,
575
- class: "ml-4"
576
- }, {
577
- default: withCtx(() => [
578
- createVNode(_component_el_radio, { value: true }, {
579
- default: withCtx(() => [
580
- createTextVNode("是")
581
- ]),
582
- _: 1
583
- }),
584
- createVNode(_component_el_radio, { value: false }, {
585
- default: withCtx(() => [
586
- createTextVNode("否")
587
- ]),
588
- _: 1
589
- })
590
- ]),
591
- _: 2
592
- }, 1032, ["modelValue", "onUpdate:modelValue"])
593
- ]),
594
- _: 2
595
- }, 1024)) : createCommentVNode("", true),
596
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
597
- key: 13,
598
- label: "进度条状态",
599
- class: "amb-design-attr-item"
600
- }, {
601
- default: withCtx(() => [
602
- createVNode(_component_el_radio_group, {
603
- modelValue: props2.row.props.format.status,
604
- "onUpdate:modelValue": ($event) => props2.row.props.format.status = $event,
605
- class: "ml-4"
606
- }, {
607
- default: withCtx(() => [
608
- createVNode(_component_el_radio, { value: null }, {
609
- default: withCtx(() => [
610
- createTextVNode("无")
611
- ]),
612
- _: 1
613
- }),
614
- createVNode(_component_el_radio, { value: "success" }, {
615
- default: withCtx(() => [
616
- createTextVNode("success")
617
- ]),
618
- _: 1
619
- }),
620
- createVNode(_component_el_radio, { value: "warning" }, {
621
- default: withCtx(() => [
622
- createTextVNode("warning")
623
- ]),
624
- _: 1
625
- }),
626
- createVNode(_component_el_radio, { value: "exception" }, {
627
- default: withCtx(() => [
628
- createTextVNode("exception")
629
- ]),
630
- _: 1
631
- })
632
- ]),
633
- _: 2
634
- }, 1032, ["modelValue", "onUpdate:modelValue"])
635
- ]),
636
- _: 2
637
- }, 1024)) : createCommentVNode("", true),
638
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
639
- key: 14,
640
- label: "自定义颜色",
641
- class: "amb-design-attr-item"
642
- }, {
643
- default: withCtx(() => [
644
- createVNode(_component_el_radio_group, {
645
- modelValue: props2.row.props.format.colorType,
646
- "onUpdate:modelValue": ($event) => props2.row.props.format.colorType = $event,
647
- class: "ml-4"
648
- }, {
649
- default: withCtx(() => [
650
- createVNode(_component_el_radio, { value: "default" }, {
651
- default: withCtx(() => [
652
- createTextVNode("默认")
653
- ]),
654
- _: 1
655
- }),
656
- createVNode(_component_el_radio, { value: "custom" }, {
657
- default: withCtx(() => [
658
- createTextVNode("指定颜色")
659
- ]),
660
- _: 1
661
- })
662
- ]),
663
- _: 2
664
- }, 1032, ["modelValue", "onUpdate:modelValue"])
665
- ]),
666
- _: 2
667
- }, 1024)) : createCommentVNode("", true),
668
- props2.row.props.format && props2.row.props.format.type === "progress" && props2.row.props.format.colorType === "custom" ? (openBlock(), createBlock(_component_el_form_item, {
669
- key: 15,
670
- label: "颜色"
671
- }, {
672
- default: withCtx(() => [
673
- createVNode(_component_el_color_picker, {
674
- modelValue: props2.row.props.format.color,
675
- "onUpdate:modelValue": ($event) => props2.row.props.format.color = $event
676
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
677
- ]),
678
- _: 2
679
- }, 1024)) : createCommentVNode("", true),
680
- props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createBlock(_component_el_form_item, {
681
- key: 16,
682
- label: "自定义颜色",
683
- class: "amb-design-attr-item"
684
- }, {
685
- default: withCtx(() => [
686
- createVNode(_component_el_radio_group, {
687
- modelValue: props2.row.props.format.colorType,
688
- "onUpdate:modelValue": ($event) => props2.row.props.format.colorType = $event,
689
- class: "ml-4"
537
+ createVNode(_component_el_select, {
538
+ modelValue: props2.row.props.format.customFunc,
539
+ "onUpdate:modelValue": ($event) => props2.row.props.format.customFunc = $event,
540
+ clearable: ""
690
541
  }, {
691
542
  default: withCtx(() => [
692
- createVNode(_component_el_radio, { value: "default" }, {
693
- default: withCtx(() => [
694
- createTextVNode("默认")
695
- ]),
696
- _: 1
697
- }),
698
- createVNode(_component_el_radio, { value: "custom" }, {
699
- default: withCtx(() => [
700
- createTextVNode("指定颜色")
701
- ]),
702
- _: 1
703
- })
543
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCustomFuncs)(), (item) => {
544
+ return openBlock(), createBlock(_component_el_option, {
545
+ key: item.value,
546
+ label: item.label,
547
+ value: item.value
548
+ }, null, 8, ["label", "value"]);
549
+ }), 128))
704
550
  ]),
705
551
  _: 2
706
552
  }, 1032, ["modelValue", "onUpdate:modelValue"])
707
553
  ]),
708
554
  _: 2
709
555
  }, 1024)) : createCommentVNode("", true),
556
+ props2.row.props.format && props2.row.props.format.type === "progress" ? (openBlock(), createElementBlock(Fragment, { key: 9 }, [
557
+ createVNode(_component_el_form_item, {
558
+ label: "进度条高度",
559
+ class: "amb-design-attr-item"
560
+ }, {
561
+ default: withCtx(() => [
562
+ createVNode(_component_el_input_number, {
563
+ modelValue: props2.row.props.format.strokeWidth,
564
+ "onUpdate:modelValue": ($event) => props2.row.props.format.strokeWidth = $event
565
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
566
+ ]),
567
+ _: 2
568
+ }, 1024),
569
+ createVNode(_component_el_form_item, {
570
+ label: "最大值",
571
+ class: "amb-design-attr-item"
572
+ }, {
573
+ default: withCtx(() => [
574
+ createVNode(_component_el_input_number, {
575
+ modelValue: props2.row.props.format.max,
576
+ "onUpdate:modelValue": ($event) => props2.row.props.format.max = $event
577
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
578
+ ]),
579
+ _: 2
580
+ }, 1024),
581
+ createVNode(_component_el_form_item, {
582
+ label: "进度条类型",
583
+ class: "amb-design-attr-item"
584
+ }, {
585
+ default: withCtx(() => [
586
+ createVNode(_component_el_radio_group, {
587
+ modelValue: props2.row.props.format.progressType,
588
+ "onUpdate:modelValue": ($event) => props2.row.props.format.progressType = $event,
589
+ class: "ml-4"
590
+ }, {
591
+ default: withCtx(() => [
592
+ createVNode(_component_el_radio, { value: "line" }, {
593
+ default: withCtx(() => [
594
+ createTextVNode("line")
595
+ ]),
596
+ _: 1
597
+ }),
598
+ createVNode(_component_el_radio, { value: "circle" }, {
599
+ default: withCtx(() => [
600
+ createTextVNode("circle")
601
+ ]),
602
+ _: 1
603
+ }),
604
+ createVNode(_component_el_radio, { value: "dashboard" }, {
605
+ default: withCtx(() => [
606
+ createTextVNode("dashboard")
607
+ ]),
608
+ _: 1
609
+ })
610
+ ]),
611
+ _: 2
612
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
613
+ ]),
614
+ _: 2
615
+ }, 1024),
616
+ createVNode(_component_el_form_item, {
617
+ label: "显示文字",
618
+ class: "amb-design-attr-item"
619
+ }, {
620
+ default: withCtx(() => [
621
+ createVNode(_component_el_radio_group, {
622
+ modelValue: props2.row.props.format.showText,
623
+ "onUpdate:modelValue": ($event) => props2.row.props.format.showText = $event,
624
+ class: "ml-4"
625
+ }, {
626
+ default: withCtx(() => [
627
+ createVNode(_component_el_radio, { value: true }, {
628
+ default: withCtx(() => [
629
+ createTextVNode("是")
630
+ ]),
631
+ _: 1
632
+ }),
633
+ createVNode(_component_el_radio, { value: false }, {
634
+ default: withCtx(() => [
635
+ createTextVNode("否")
636
+ ]),
637
+ _: 1
638
+ })
639
+ ]),
640
+ _: 2
641
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
642
+ ]),
643
+ _: 2
644
+ }, 1024),
645
+ props2.row.props.format.progressType === "line" ? (openBlock(), createBlock(_component_el_form_item, {
646
+ key: 0,
647
+ label: "文本内显",
648
+ class: "amb-design-attr-item"
649
+ }, {
650
+ default: withCtx(() => [
651
+ createVNode(_component_el_radio_group, {
652
+ modelValue: props2.row.props.format.textInside,
653
+ "onUpdate:modelValue": ($event) => props2.row.props.format.textInside = $event,
654
+ class: "ml-4"
655
+ }, {
656
+ default: withCtx(() => [
657
+ createVNode(_component_el_radio, { value: true }, {
658
+ default: withCtx(() => [
659
+ createTextVNode("是")
660
+ ]),
661
+ _: 1
662
+ }),
663
+ createVNode(_component_el_radio, { value: false }, {
664
+ default: withCtx(() => [
665
+ createTextVNode("否")
666
+ ]),
667
+ _: 1
668
+ })
669
+ ]),
670
+ _: 2
671
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
672
+ ]),
673
+ _: 2
674
+ }, 1024)) : createCommentVNode("", true),
675
+ createVNode(_component_el_form_item, {
676
+ label: "进度条状态",
677
+ class: "amb-design-attr-item"
678
+ }, {
679
+ default: withCtx(() => [
680
+ createVNode(_component_el_radio_group, {
681
+ modelValue: props2.row.props.format.status,
682
+ "onUpdate:modelValue": ($event) => props2.row.props.format.status = $event,
683
+ class: "ml-4"
684
+ }, {
685
+ default: withCtx(() => [
686
+ createVNode(_component_el_radio, { value: null }, {
687
+ default: withCtx(() => [
688
+ createTextVNode("无")
689
+ ]),
690
+ _: 1
691
+ }),
692
+ createVNode(_component_el_radio, { value: "success" }, {
693
+ default: withCtx(() => [
694
+ createTextVNode("success")
695
+ ]),
696
+ _: 1
697
+ }),
698
+ createVNode(_component_el_radio, { value: "warning" }, {
699
+ default: withCtx(() => [
700
+ createTextVNode("warning")
701
+ ]),
702
+ _: 1
703
+ }),
704
+ createVNode(_component_el_radio, { value: "exception" }, {
705
+ default: withCtx(() => [
706
+ createTextVNode("exception")
707
+ ]),
708
+ _: 1
709
+ })
710
+ ]),
711
+ _: 2
712
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
713
+ ]),
714
+ _: 2
715
+ }, 1024),
716
+ createVNode(_component_el_form_item, {
717
+ label: "自定义颜色",
718
+ class: "amb-design-attr-item"
719
+ }, {
720
+ default: withCtx(() => [
721
+ createVNode(_component_el_radio_group, {
722
+ modelValue: props2.row.props.format.colorType,
723
+ "onUpdate:modelValue": ($event) => props2.row.props.format.colorType = $event,
724
+ class: "ml-4"
725
+ }, {
726
+ default: withCtx(() => [
727
+ createVNode(_component_el_radio, { value: "default" }, {
728
+ default: withCtx(() => [
729
+ createTextVNode("默认")
730
+ ]),
731
+ _: 1
732
+ }),
733
+ createVNode(_component_el_radio, { value: "custom" }, {
734
+ default: withCtx(() => [
735
+ createTextVNode("指定颜色")
736
+ ]),
737
+ _: 1
738
+ })
739
+ ]),
740
+ _: 2
741
+ }, 1032, ["modelValue", "onUpdate:modelValue"])
742
+ ]),
743
+ _: 2
744
+ }, 1024),
745
+ props2.row.props.format.colorType === "custom" ? (openBlock(), createBlock(_component_el_form_item, {
746
+ key: 1,
747
+ label: "颜色"
748
+ }, {
749
+ default: withCtx(() => [
750
+ createVNode(_component_el_color_picker, {
751
+ modelValue: props2.row.props.format.color,
752
+ "onUpdate:modelValue": ($event) => props2.row.props.format.color = $event
753
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
754
+ ]),
755
+ _: 2
756
+ }, 1024)) : createCommentVNode("", true)
757
+ ], 64)) : createCommentVNode("", true),
710
758
  createVNode(_component_el_divider, null, {
711
759
  default: withCtx(() => [
712
760
  createTextVNode("列属性")
@@ -870,6 +918,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
870
918
  createVNode(_component_el_radio_group, {
871
919
  modelValue: props2.row.props.base.collectColumn,
872
920
  "onUpdate:modelValue": ($event) => props2.row.props.base.collectColumn = $event,
921
+ onChange: ($event) => summaryChange($event, props2.row),
873
922
  class: "ml-4"
874
923
  }, {
875
924
  default: withCtx(() => [
@@ -893,30 +942,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
893
942
  })
894
943
  ]),
895
944
  _: 2
896
- }, 1032, ["modelValue", "onUpdate:modelValue"])
945
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
897
946
  ]),
898
947
  _: 2
899
948
  }, 1024),
900
- createVNode(_component_el_form_item, {
949
+ props2.row.props.base.collectColumn === "titleColumn" ? (openBlock(), createBlock(_component_el_form_item, {
950
+ key: 10,
901
951
  label: "汇总标题",
902
952
  class: "amb-design-attr-item"
903
953
  }, {
904
954
  default: withCtx(() => [
905
- createVNode(_component_el_input, {
906
- modelValue: props2.row.props.base.sortTitle,
907
- "onUpdate:modelValue": ($event) => props2.row.props.base.sortTitle = $event
908
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
955
+ createVNode(_component_el_col, { span: 20 }, {
956
+ default: withCtx(() => [
957
+ createVNode(_component_el_input, {
958
+ modelValue: props2.row.props.base.summaryTitle,
959
+ "onUpdate:modelValue": ($event) => props2.row.props.base.summaryTitle = $event,
960
+ onChange: ($event) => summaryTitleChange($event, props2.row)
961
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
962
+ ]),
963
+ _: 2
964
+ }, 1024),
965
+ createVNode(_component_el_tooltip, {
966
+ class: "box-item",
967
+ content: "支持${row.行属性}方式拼接标题"
968
+ }, {
969
+ default: withCtx(() => [
970
+ createVNode(_component_el_icon, null, {
971
+ default: withCtx(() => [
972
+ createVNode(unref(InfoFilled))
973
+ ]),
974
+ _: 1
975
+ })
976
+ ]),
977
+ _: 1
978
+ })
909
979
  ]),
910
980
  _: 2
911
- }, 1024),
912
- createVNode(_component_el_form_item, {
981
+ }, 1024)) : createCommentVNode("", true),
982
+ props2.row.props.base.collectColumn === "dataColumn" ? (openBlock(), createBlock(_component_el_form_item, {
983
+ key: 11,
913
984
  label: "汇总方式",
914
985
  class: "amb-design-attr-item"
915
986
  }, {
916
987
  default: withCtx(() => [
917
988
  createVNode(_component_el_select, {
918
- modelValue: props2.row.props.base.sortMode,
919
- "onUpdate:modelValue": ($event) => props2.row.props.base.sortMode = $event,
989
+ modelValue: props2.row.props.base.summaryMode,
990
+ "onUpdate:modelValue": ($event) => props2.row.props.base.summaryMode = $event,
991
+ onChange: ($event) => summaryModeChange($event, props2.row),
920
992
  clearable: ""
921
993
  }, {
922
994
  default: withCtx(() => [
@@ -926,7 +998,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
926
998
  }),
927
999
  createVNode(_component_el_option, {
928
1000
  label: "均值",
929
- value: "mean"
1001
+ value: "avg"
930
1002
  }),
931
1003
  createVNode(_component_el_option, {
932
1004
  label: "最大值",
@@ -942,12 +1014,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
942
1014
  })
943
1015
  ]),
944
1016
  _: 2
945
- }, 1032, ["modelValue", "onUpdate:modelValue"])
1017
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
946
1018
  ]),
947
1019
  _: 2
948
- }, 1024),
949
- props2.row.props.base.sortMode === "custom" ? (openBlock(), createBlock(_component_el_form_item, {
950
- key: 17,
1020
+ }, 1024)) : createCommentVNode("", true),
1021
+ props2.row.props.base.collectColumn === "dataColumn" ? (openBlock(), createBlock(_component_el_form_item, {
1022
+ key: 12,
1023
+ class: "amb-design-attr-item"
1024
+ }, {
1025
+ default: withCtx(() => [
1026
+ createVNode(_component_el_checkbox, {
1027
+ modelValue: props2.row.props.base.groupSummary,
1028
+ "onUpdate:modelValue": ($event) => props2.row.props.base.groupSummary = $event,
1029
+ label: "分组合计"
1030
+ }, null, 8, ["modelValue", "onUpdate:modelValue"]),
1031
+ createVNode(_component_el_checkbox, {
1032
+ modelValue: props2.row.props.base.tableSummary,
1033
+ "onUpdate:modelValue": ($event) => props2.row.props.base.tableSummary = $event,
1034
+ label: "表尾合计"
1035
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
1036
+ ]),
1037
+ _: 2
1038
+ }, 1024)) : createCommentVNode("", true),
1039
+ props2.row.props.base.summaryMode === "custom" ? (openBlock(), createBlock(_component_el_form_item, {
1040
+ key: 13,
951
1041
  label: "自定义汇总",
952
1042
  class: "amb-design-attr-item"
953
1043
  }, {
@@ -955,6 +1045,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
955
1045
  createVNode(_component_el_select, {
956
1046
  modelValue: props2.row.props.base.customRollup,
957
1047
  "onUpdate:modelValue": ($event) => props2.row.props.base.customRollup = $event,
1048
+ onChange: ($event) => summaryModeChange($event, props2.row),
958
1049
  clearable: ""
959
1050
  }, {
960
1051
  default: withCtx(() => [
@@ -967,7 +1058,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
967
1058
  }), 128))
968
1059
  ]),
969
1060
  _: 2
970
- }, 1032, ["modelValue", "onUpdate:modelValue"])
1061
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
971
1062
  ]),
972
1063
  _: 2
973
1064
  }, 1024)) : createCommentVNode("", true),
@@ -977,23 +1068,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
977
1068
  ]),
978
1069
  _: 1
979
1070
  }),
980
- createVNode(_sfc_main$5, {
1071
+ createVNode(_sfc_main$4, {
981
1072
  configure: __props.configure,
982
1073
  showCondition: true,
983
1074
  paramTypes: ["data", "task", "page", "request", "row"],
984
- data: props2.row.props.Contentstyle,
1075
+ data: props2.row.style,
985
1076
  onDataChange: (data) => columnStyleChange(data, props2.$index)
986
1077
  }, null, 8, ["configure", "data", "onDataChange"]),
1078
+ createVNode(_component_el_divider, null, {
1079
+ default: withCtx(() => [
1080
+ createTextVNode("标题样式")
1081
+ ]),
1082
+ _: 1
1083
+ }),
1084
+ createVNode(_sfc_main$4, {
1085
+ configure: __props.configure,
1086
+ paramTypes: ["data", "task", "page", "request", "row"],
1087
+ showField: false,
1088
+ data: props2.row.titleStyle,
1089
+ onDataChange: (data) => columnTitleStyleChange(data, props2.$index)
1090
+ }, null, 8, ["configure", "data", "onDataChange"]),
987
1091
  createVNode(_component_el_divider, null, {
988
1092
  default: withCtx(() => [
989
1093
  createTextVNode("链接设置")
990
1094
  ]),
991
1095
  _: 1
992
1096
  }),
993
- createVNode(_sfc_main$6, {
1097
+ createVNode(_sfc_main$5, {
994
1098
  pageDesign: __props.pageDesign,
995
1099
  paramTypes: ["data", "task", "page", "request", "row"],
996
- data: props2.row.props.link,
1100
+ data: props2.row.linkPage,
997
1101
  onDataChange: (data) => linkChange(data, props2.$index)
998
1102
  }, null, 8, ["pageDesign", "data", "onDataChange"])
999
1103
  ]),
@@ -1008,6 +1112,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1008
1112
  modelValue: scope.row.props.base.prop,
1009
1113
  "onUpdate:modelValue": ($event) => scope.row.props.base.prop = $event,
1010
1114
  placeholder: "Select",
1115
+ "allow-create": "",
1116
+ filterable: "",
1011
1117
  onChange: ($event) => columnItemChange($event, scope.row)
1012
1118
  }, {
1013
1119
  default: withCtx(() => [
@@ -1168,12 +1274,41 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1168
1274
  }, 8, ["modelValue"])
1169
1275
  ]),
1170
1276
  _: 1
1277
+ }),
1278
+ createVNode(_component_el_form_item, {
1279
+ label: "表尾合计行",
1280
+ class: "amb-design-attr-item"
1281
+ }, {
1282
+ default: withCtx(() => [
1283
+ createVNode(_component_el_radio_group, {
1284
+ modelValue: __props.configure.props.base.showSummary,
1285
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.configure.props.base.showSummary = $event),
1286
+ class: "ml-4"
1287
+ }, {
1288
+ default: withCtx(() => [
1289
+ createVNode(_component_el_radio, { value: true }, {
1290
+ default: withCtx(() => [
1291
+ createTextVNode("是")
1292
+ ]),
1293
+ _: 1
1294
+ }),
1295
+ createVNode(_component_el_radio, { value: false }, {
1296
+ default: withCtx(() => [
1297
+ createTextVNode("否")
1298
+ ]),
1299
+ _: 1
1300
+ })
1301
+ ]),
1302
+ _: 1
1303
+ }, 8, ["modelValue"])
1304
+ ]),
1305
+ _: 1
1171
1306
  })
1172
1307
  ])
1173
1308
  ]),
1174
1309
  _: 1
1175
1310
  }),
1176
- createVNode(_sfc_main$7, {
1311
+ createVNode(_sfc_main$6, {
1177
1312
  size: __props.configure.props.size,
1178
1313
  showMaxHeight: true,
1179
1314
  showCalcHeight: true