super-page-runtime 2.2.0 → 2.2.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 (113) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  17. package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
  18. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  20. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  21. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  22. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  24. package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
  25. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  26. package/dist/es/components/runtime/utils/page-init-util.js +65 -69
  27. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  28. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  29. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  30. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  40. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  41. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  42. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  43. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  44. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  45. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  46. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  47. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
  48. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  51. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
  53. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  54. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  56. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  57. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  58. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  68. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
  69. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
  70. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  71. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  72. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  73. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  75. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  76. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  77. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  78. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  79. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  80. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  81. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  82. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  83. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  84. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  85. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  86. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  87. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  88. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  89. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  90. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  91. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  93. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  94. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  95. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  96. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  98. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  99. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  100. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  101. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  102. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  104. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  105. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  106. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  107. package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
  108. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  109. package/dist/es/components/runtime/views/super-page.vue.js +171 -182
  110. package/dist/es/index.d.ts +2 -2
  111. package/dist/es/index.js +6 -4
  112. package/package.json +74 -74
  113. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -2,38 +2,37 @@ import { getParamNames, getValueFromVariable } from "../../../../utils/page-help
2
2
  import { getCustomFunc } from "../../../../utils/events/event-util.js";
3
3
  import { getMinValue, getMaxValue, getSumValue, getAvgValue } from "../../../../utils/charts/chart-util.js";
4
4
  class ExpressionEvaluator {
5
- static evaluate(e, t, a) {
6
- const o = t.map((t2) => this.createExpression(e, t2, a)).join(" ");
7
- return this.evaluateExpression(o);
5
+ static evaluate(e, t, o) {
6
+ const a = t.map((t2) => this.createExpression(e, t2, o)).join(" ");
7
+ return this.evaluateExpression(a);
8
8
  }
9
- static createExpression(e, t, a) {
10
- const { propName: o, operator: r, propValue: s, leftBracket: n, rightBracket: l, joinSign: i, dataType: c } = t;
11
- if (!o || "" === o)
12
- return "";
13
- const u = getValueFromVariable(e.entity, o, a);
14
- let p = `${n} ${this.getComparisonExpression(u, r, getValueFromVariable(e.entity, s, a), c)} ${l}`;
9
+ static createExpression(e, t, o) {
10
+ const { propName: a, operator: r, propValue: n, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
11
+ if (!a || "" === a) return "";
12
+ const u = getValueFromVariable(e.entity, a, o);
13
+ let p = `${s} ${this.getComparisonExpression(u, r, getValueFromVariable(e.entity, n, o), c)} ${l}`;
15
14
  return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
16
15
  }
17
- static getComparisonExpression(e, t, a, o) {
16
+ static getComparisonExpression(e, t, o, a) {
18
17
  t || (t = "EQ");
19
- const r = this.parseValue(e, o), s = this.parseValue(a, o);
18
+ const r = this.parseValue(e, a), n = this.parseValue(o, a);
20
19
  switch (t) {
21
20
  case "EQ":
22
- return `${r} === ${s}`;
21
+ return `${r} === ${n}`;
23
22
  case "GT":
24
- return `${r} > ${s}`;
23
+ return `${r} > ${n}`;
25
24
  case "LT":
26
- return `${r} < ${s}`;
25
+ return `${r} < ${n}`;
27
26
  case "GET":
28
- return `${r} >= ${s}`;
27
+ return `${r} >= ${n}`;
29
28
  case "LET":
30
- return `${r} <= ${s}`;
29
+ return `${r} <= ${n}`;
31
30
  case "NET":
32
- return `${r} !== ${s}`;
31
+ return `${r} !== ${n}`;
33
32
  case "CONTAIN":
34
- return `${r}.includes(${s})`;
33
+ return `${r}.includes(${n})`;
35
34
  case "NOT_CONTAIN":
36
- return `!${r}.includes(${s})`;
35
+ return `!${r}.includes(${n})`;
37
36
  case "IS_NULL":
38
37
  return `${r} === null`;
39
38
  case "IS_NOT_NULL":
@@ -75,110 +74,97 @@ function getSummaryTitleColumn(e) {
75
74
  }
76
75
  function getSummaryDataColumn(e, t) {
77
76
  var _a;
78
- const a = {};
79
- return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
77
+ const o = {};
78
+ return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((a) => {
80
79
  var _a2;
81
- const r = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
82
- r && ("table" === t && r.props.base.tableSummary || "group" === t && r.props.base.groupSummary) && (a[o.prop] = o);
83
- }), a;
80
+ const r = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => a.prop === e2.props.base.prop);
81
+ r && ("table" === t && r.props.base.tableSummary || "group" === t && r.props.base.groupSummary) && (o[a.prop] = a);
82
+ }), o;
84
83
  }
85
- function summaryStatistics(e, t, a, o) {
84
+ function summaryStatistics(e, t, o, a) {
86
85
  let r = "";
87
- const s = e.summaryMode, n = t.map((e2) => Number(e2[a])).filter((e2) => !Number.isNaN(e2));
88
- if (n.length > 0)
89
- if ("custom" === s) {
90
- const s2 = getCustomFunc(o, e.customFunc);
91
- if (s2) {
92
- const e2 = s2.apply(s2, [{ data: t, prop: a }]);
93
- r = e2 ? ` ${e2}` : " N/A";
94
- } else
95
- r = " N/A";
96
- } else
97
- switch (s) {
98
- case "sum":
99
- r = ` ${n.reduce((e2, t2) => e2 + t2, 0)}`;
100
- break;
101
- case "avg":
102
- r = " " + n.reduce((e2, t2) => e2 + t2, 0) / n.length;
103
- break;
104
- case "min":
105
- r = ` ${Math.min(...n)}`;
106
- break;
107
- case "max":
108
- r = ` ${Math.max(...n)}`;
109
- break;
110
- default:
111
- r = " N/A";
112
- }
113
- else
114
- r = " N/A";
86
+ const n = e.summaryMode, s = t.map((e2) => Number(e2[o])).filter((e2) => !Number.isNaN(e2));
87
+ if (s.length > 0) if ("custom" === n) {
88
+ const n2 = getCustomFunc(a, e.customFunc);
89
+ if (n2) {
90
+ const e2 = n2.apply(n2, [{ data: t, prop: o }]);
91
+ r = e2 ? ` ${e2}` : " N/A";
92
+ } else r = " N/A";
93
+ } else switch (n) {
94
+ case "sum":
95
+ r = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
96
+ break;
97
+ case "avg":
98
+ r = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
99
+ break;
100
+ case "min":
101
+ r = ` ${Math.min(...s)}`;
102
+ break;
103
+ case "max":
104
+ r = ` ${Math.max(...s)}`;
105
+ break;
106
+ default:
107
+ r = " N/A";
108
+ }
109
+ else r = " N/A";
115
110
  return r;
116
111
  }
117
112
  function replacePlaceholders(e, t) {
118
- if (e)
119
- return e.replace(/\$\{row\.(\w+)\}/g, (e2, a) => Object.prototype.hasOwnProperty.call(t, a) ? t[a] : "");
113
+ if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, o) => Object.prototype.hasOwnProperty.call(t, o) ? t[o] : "");
120
114
  }
121
- function getHeaderCellStyleUtil(e, t, a) {
115
+ function getHeaderCellStyleUtil(e, t, o) {
122
116
  var _a;
123
- const o = {};
117
+ const a = {};
124
118
  e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
125
- if (t2.field && t2.field.includes(e.column.property))
126
- if (t2.scopeFunc) {
127
- const r2 = getCustomFunc(a.pageContext, t2.scopeFunc);
128
- if (r2) {
129
- false !== r2.apply(r2, [{ item: t2, data: e }]) && copyStyle(o, t2);
130
- }
131
- } else
132
- copyStyle(o, t2);
119
+ if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
120
+ const r2 = getCustomFunc(o.pageContext, t2.scopeFunc);
121
+ if (r2) {
122
+ false !== r2.apply(r2, [{ item: t2, data: e }]) && copyStyle(a, t2);
123
+ }
124
+ } else copyStyle(a, t2);
133
125
  }));
134
- const r = getCellStyleUtil(e, t.cellTitleStyle, a);
135
- return r && Object.assign(o, r), o;
126
+ const r = getCellStyleUtil(e, t.cellTitleStyle, o);
127
+ return r && Object.assign(a, r), a;
136
128
  }
137
- function getRowStyleUtil(e, t, a) {
138
- const o = {};
139
- if (a.configure.style.rowStyle)
140
- for (let t2 = 0; t2 < a.configure.style.rowStyle.length; t2++) {
141
- const r = a.configure.style.rowStyle[t2];
142
- if (r.scopeFunc) {
143
- const t3 = getCustomFunc(a.pageContext, r.scopeFunc);
144
- if (t3) {
145
- const a2 = t3.apply(t3, [{ data: e }]);
146
- null != a2 && false !== a2 && copyStyle(o, r);
147
- }
148
- } else if (r.matchingCondition) {
149
- const t3 = ExpressionEvaluator.evaluate(a.pageContext, r.matchingCondition, e.row);
150
- (t3 || void 0 === t3) && copyStyle(o, r);
151
- } else
152
- copyStyle(o, r);
153
- }
129
+ function getRowStyleUtil(e, t, o) {
130
+ const a = {};
131
+ if (o.configure.style.rowStyle) for (let t2 = 0; t2 < o.configure.style.rowStyle.length; t2++) {
132
+ const r = o.configure.style.rowStyle[t2];
133
+ if (r.scopeFunc) {
134
+ const t3 = getCustomFunc(o.pageContext, r.scopeFunc);
135
+ if (t3) {
136
+ const o2 = t3.apply(t3, [{ data: e }]);
137
+ null != o2 && false !== o2 && copyStyle(a, r);
138
+ }
139
+ } else if (r.matchingCondition) {
140
+ const t3 = ExpressionEvaluator.evaluate(o.pageContext, r.matchingCondition, e.row);
141
+ (t3 || void 0 === t3) && copyStyle(a, r);
142
+ } else copyStyle(a, r);
143
+ }
154
144
  if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
155
145
  const e2 = {};
156
- if (a.configure.style.collectStyle && a.configure.style.collectStyle.length > 0)
157
- for (let t2 = 0; t2 < a.configure.style.collectStyle.length; t2++) {
158
- copyStyle(e2, a.configure.style.collectStyle[t2]);
159
- }
146
+ if (o.configure.style.collectStyle && o.configure.style.collectStyle.length > 0) for (let t2 = 0; t2 < o.configure.style.collectStyle.length; t2++) {
147
+ copyStyle(e2, o.configure.style.collectStyle[t2]);
148
+ }
160
149
  return 0 === Object.keys(e2).length && (e2["background-color"] = "var(--el-table-row-hover-bg-color)"), e2;
161
150
  }
162
- return o;
151
+ return a;
163
152
  }
164
- function getCellStyleUtil(e, t, a) {
165
- const o = {};
166
- if (t)
167
- for (let r = 0; r < t.length; r++) {
168
- const s = t[r];
169
- if (isSetStyle(s))
170
- if (s.scopeFunc) {
171
- const t2 = getCustomFunc(a.pageContext, s.scopeFunc);
172
- if (t2) {
173
- false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, s);
174
- }
175
- } else if (s.matchingCondition) {
176
- const t2 = ExpressionEvaluator.evaluate(a.pageContext, s.matchingCondition, e.row);
177
- (t2 || void 0 === t2) && copyStyle(o, s);
178
- } else
179
- copyStyle(o, s);
180
- }
181
- return o;
153
+ function getCellStyleUtil(e, t, o) {
154
+ const a = {};
155
+ if (t) for (let r = 0; r < t.length; r++) {
156
+ const n = t[r];
157
+ if (isSetStyle(n)) if (n.scopeFunc) {
158
+ const t2 = getCustomFunc(o.pageContext, n.scopeFunc);
159
+ if (t2) {
160
+ false !== t2.apply(t2, [{ data: e }]) && copyStyle(a, n);
161
+ }
162
+ } else if (n.matchingCondition) {
163
+ const t2 = ExpressionEvaluator.evaluate(o.pageContext, n.matchingCondition, e.row);
164
+ (t2 || void 0 === t2) && copyStyle(a, n);
165
+ } else copyStyle(a, n);
166
+ }
167
+ return a;
182
168
  }
183
169
  function isSetStyle(e) {
184
170
  let t;
@@ -187,109 +173,123 @@ function isSetStyle(e) {
187
173
  function copyStyle(e, t) {
188
174
  Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
189
175
  }
190
- function rowDataToColumn(e, t) {
191
- const a = t.props.dataOrigin.groupField, o = t.props.dataOrigin.rowToColumn.titleColumns, r = t.props.dataOrigin.rowToColumn.dataColumns, s = [], n = {};
192
- return e.forEach((e2) => {
176
+ function rowDataToColumn(e, t, o) {
177
+ const a = t.props.dataOrigin.groupField, r = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
178
+ if (a && a.length > 0) e.forEach((e2) => {
193
179
  const t2 = a.map((t3) => e2[t3]).join("|");
194
- if (!n[t2]) {
180
+ if (!l[t2]) {
195
181
  const o2 = {};
196
- a.forEach((t3) => o2[t3] = e2[t3]), n[t2] = o2, s.push(o2);
182
+ a.forEach((t3) => o2[t3] = e2[t3]), l[t2] = o2, s.push(o2);
197
183
  }
198
- r.forEach((a2) => {
199
- const r2 = `${o.map((t3) => e2[t3]).join("")}${a2}`;
200
- n[t2][r2] = e2[a2];
184
+ n.forEach((o2) => {
185
+ const a2 = `${r.map((t3) => e2[t3]).join("")}${o2}`;
186
+ l[t2][a2] = e2[o2];
187
+ });
188
+ });
189
+ else {
190
+ const t2 = [];
191
+ e.forEach((e2) => {
192
+ r.forEach((o2) => {
193
+ e2[o2] && t2.push(e2[o2]);
194
+ });
195
+ }), n.forEach((t3) => {
196
+ const a2 = {}, n2 = o.find((e2) => {
197
+ var _a, _b;
198
+ return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
199
+ });
200
+ n2 && (a2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
201
+ r.forEach((o2) => {
202
+ const r2 = e2[o2], n3 = e2[t3];
203
+ a2[r2] = n3;
204
+ });
205
+ }), s.push(a2);
201
206
  });
202
- }), s;
207
+ }
208
+ return s;
203
209
  }
204
210
  function colDataToRow(e, t) {
205
- const a = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, r = t.props.dataOrigin.columnToRow.dataColumns, s = t.props.dataOrigin.columnToRow.transColumns, n = t.props.dataOrigin.columnToRow.dataColumnsMapping;
206
- if (0 === e.length)
207
- return e;
208
- const l = [], i = groupBy(e, a), c = r.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, r[0]), u = r.reduce((e2, t2) => (t2.columns.forEach((a2) => {
209
- e2[a2] = t2.prop;
211
+ const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.columnToRow.titleColumns, r = t.props.dataOrigin.columnToRow.dataColumns, n = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
212
+ if (0 === e.length) return e;
213
+ const l = [], i = groupBy(e, o), c = r.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, r[0]), u = r.reduce((e2, t2) => (t2.columns.forEach((o2) => {
214
+ e2[o2] = t2.prop;
210
215
  }), e2), {});
211
216
  return i.forEach((e2) => {
212
217
  c.columns.forEach((t2) => {
213
218
  const i2 = c.prop, p = {};
214
- if (a.forEach((t3) => {
219
+ if (o.forEach((t3) => {
215
220
  p[t3] = e2[t3];
216
221
  }), p[i2] = e2[t2], r.length > 1) {
217
- const a2 = n.find((e3) => e3.props.includes(t2));
218
- a2 && a2.props.length > 1 && a2.props.forEach((a3) => {
219
- a3 !== t2 && u[a3] && (p[u[a3]] = e2[a3]);
222
+ const o2 = s.find((e3) => e3.props.includes(t2));
223
+ o2 && o2.props.length > 1 && o2.props.forEach((o3) => {
224
+ o3 !== t2 && u[o3] && (p[u[o3]] = e2[o3]);
220
225
  });
221
226
  }
222
- o.forEach((e3) => {
223
- const a2 = s.filter((t3) => t3.relatedTitle === e3.prop);
224
- let o2 = false;
225
- a2 && a2.length > 0 && a2.forEach((a3) => {
226
- if (a3.columns.includes(t2))
227
- return p[e3.prop] = a3.label, void (o2 = true);
228
- }), o2 || (p[e3.prop] = t2);
227
+ a.forEach((e3) => {
228
+ const o2 = n.filter((t3) => t3.relatedTitle === e3.prop);
229
+ let a2 = false;
230
+ o2 && o2.length > 0 && o2.forEach((o3) => {
231
+ if (o3.columns.includes(t2)) return p[e3.prop] = o3.label, void (a2 = true);
232
+ }), a2 || (p[e3.prop] = t2);
229
233
  }), l.push(p);
230
234
  });
231
235
  }), l;
232
236
  }
233
237
  function getColumnToRowTableConfig(e) {
234
- const t = e.items, a = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, r = e.props.dataOrigin.columnToRow.dataColumns, s = [];
235
- a.forEach((e2) => {
238
+ const t = e.items, o = e.props.dataOrigin.groupField, a = e.props.dataOrigin.columnToRow.titleColumns, r = e.props.dataOrigin.columnToRow.dataColumns, n = [];
239
+ o && o.length > 0 && o.forEach((e2) => {
236
240
  if (t) {
237
- const a2 = t.find((t2) => t2.props.base.prop === e2);
238
- a2 && s.push(a2);
241
+ const o2 = t.find((t2) => t2.props.base.prop === e2);
242
+ o2 && n.push(o2);
239
243
  }
240
244
  });
241
- return [...o, ...r].forEach((e2) => {
245
+ return [...a, ...r].forEach((e2) => {
242
246
  if (t) {
243
- const a2 = t.find((t2) => t2.props.base.prop === e2);
244
- a2 ? s.push(a2) : s.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
247
+ const o2 = t.find((t2) => t2.props.base.prop === e2);
248
+ o2 ? n.push(o2) : n.push({ uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e2.prop, name: e2.title, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } });
245
249
  }
246
- }), s;
250
+ }), n;
247
251
  }
248
252
  function groupBy(e, t) {
249
- const a = {};
253
+ const o = {};
250
254
  return e.forEach((e2) => {
251
- const o = t.map((t2) => e2[t2]).join("|");
252
- a[o] || (a[o] = { ...e2, records: [] }, t.forEach((t2, r) => {
253
- a[o][t2] = e2[t2];
254
- })), a[o].records.push(e2);
255
- }), Object.values(a).map((e2) => ({ ...e2, records: void 0 }));
255
+ const a = t.map((t2) => e2[t2]).join("|");
256
+ o[a] || (o[a] = { ...e2, records: [] }, t.forEach((t2, r) => {
257
+ o[a][t2] = e2[t2];
258
+ })), o[a].records.push(e2);
259
+ }), Object.values(o).map((e2) => ({ ...e2, records: void 0 }));
256
260
  }
257
261
  function getIndexColumn() {
258
262
  return { props: { base: { name: "序号", prop: "$index", columnWidth: 80, sortable: true, visible: true, displayOrder: 1, alignTitle: "center", alignContent: "center" } }, events: [], style: { titleFont: {}, contentFont: {}, width: {}, background: {}, tableCell: [{ type: "", model: "" }], conentPadding: {}, tittlePadding: {}, border: {}, shadow: {}, tittleClass: "" } };
259
263
  }
264
+ function getNewColumnConfig(e, t, o, a) {
265
+ return { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: e, name: t, displayOrder: o, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: a }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
266
+ }
260
267
  function computeFormula(itemConfs, datas, entity) {
261
268
  Object.keys(itemConfs).forEach((key) => {
262
269
  const paramNames = getParamNames(itemConfs[key]);
263
270
  datas.forEach((data, index) => {
264
271
  const totalValueMap = {};
265
- for (const e of paramNames)
266
- if (e.startsWith("${min."))
267
- totalValueMap[e] = getMinValue(datas, getFieldName(e));
268
- else if (e.startsWith("${max."))
269
- totalValueMap[e] = getMaxValue(datas, getFieldName(e));
270
- else if (e.startsWith("${sum."))
271
- totalValueMap[e] = getSumValue(datas, getFieldName(e));
272
- else if (e.startsWith("${avg."))
273
- totalValueMap[e] = getAvgValue(datas, getFieldName(e));
274
- else if (e.startsWith("${add.")) {
275
- const t = getFieldName(e);
276
- let a = 0;
277
- try {
278
- a = Number(data[t]), datas.slice(0, index).forEach((e2) => {
279
- a += Number(e2[t]);
280
- });
281
- } catch (e2) {
282
- a = 0;
283
- }
284
- totalValueMap[e] = a;
285
- } else
286
- (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
272
+ for (const e of paramNames) if (e.startsWith("${min.")) totalValueMap[e] = getMinValue(datas, getFieldName(e));
273
+ else if (e.startsWith("${max.")) totalValueMap[e] = getMaxValue(datas, getFieldName(e));
274
+ else if (e.startsWith("${sum.")) totalValueMap[e] = getSumValue(datas, getFieldName(e));
275
+ else if (e.startsWith("${avg.")) totalValueMap[e] = getAvgValue(datas, getFieldName(e));
276
+ else if (e.startsWith("${add.")) {
277
+ const t = getFieldName(e);
278
+ let o = 0;
279
+ try {
280
+ o = Number(data[t]), datas.slice(0, index).forEach((e2) => {
281
+ o += Number(e2[t]);
282
+ });
283
+ } catch (e2) {
284
+ o = 0;
285
+ }
286
+ totalValueMap[e] = o;
287
+ } else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
287
288
  let expr = itemConfs[key];
288
289
  Object.keys(totalValueMap).forEach((e) => {
289
290
  expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, totalValueMap[e]));
290
291
  });
291
- for (const e of paramNames)
292
- expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
292
+ for (const e of paramNames) expr.indexOf(e) > -1 && (expr = expr.replaceAll(e, 0));
293
293
  try {
294
294
  data[key] = eval(expr);
295
295
  } catch (e) {
@@ -301,14 +301,49 @@ function computeFormula(itemConfs, datas, entity) {
301
301
  function getFieldName(e) {
302
302
  return e.substring(6, e.length - 1);
303
303
  }
304
+ function formatColContent(e, t, o, a, r) {
305
+ const n = e[o.props.base.prop];
306
+ switch (t.type) {
307
+ case "number":
308
+ return formatNumber(n, t);
309
+ case "currency":
310
+ return formatCurrency(n, t);
311
+ case "percent":
312
+ return formatPercent(n, t);
313
+ case "custom":
314
+ return formatCustomFunc(e, t, o, a, r);
315
+ default:
316
+ return n;
317
+ }
318
+ }
319
+ function formatNumber(e, t) {
320
+ let o = e;
321
+ return o || (o = 0), t.scientific && (o = Number(e).toExponential(t.scientificNum)), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), t.thousandsSeparator && (o = o.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), t.symbol && (o = `${t.symbol} ${o}`), o;
322
+ }
323
+ function formatCurrency(e, t) {
324
+ let o = e;
325
+ return o || (o = 0), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), t.symbol && (o = `${t.symbol} ${o}`), o;
326
+ }
327
+ function formatPercent(e, t) {
328
+ let o = e;
329
+ return o || (o = 0), t.decimalDigit && (o = Number(e).toFixed(t.decimalDigit)), o + " %";
330
+ }
331
+ function formatCustomFunc(e, t, o, a, r) {
332
+ const n = getCustomFunc(a, t.customFunc);
333
+ if (n) {
334
+ return n.apply(n, [{ pageContext: a, configureObj: r, row: e, prop: o.props.base.prop }]);
335
+ }
336
+ }
304
337
  export {
305
338
  ExpressionEvaluator,
306
339
  colDataToRow,
307
340
  computeFormula,
341
+ formatColContent,
308
342
  getCellStyleUtil,
309
343
  getColumnToRowTableConfig,
310
344
  getHeaderCellStyleUtil,
311
345
  getIndexColumn,
346
+ getNewColumnConfig,
312
347
  getRowStyleUtil,
313
348
  getSummaryDataColumn,
314
349
  getSummaryTitleColumn,
@@ -1,6 +1,6 @@
1
- import { defineComponent as e, openBlock as o, createBlock as u } from "vue";
1
+ import { defineComponent as e, createBlock as o, openBlock as u } from "vue";
2
2
  import t from "./group-column.vue.js";
3
- const n = e({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (n2, l) => (o(), u(t, { configure: e2.configure, pageContext: e2.pageContext, groupColumn: e2.groupColumnItem, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
3
+ const n = e({ __name: "group-column-item", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumnItem: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (n2, l) => (u(), o(t, { configure: e2.configure, pageContext: e2.pageContext, groupColumn: e2.groupColumnItem, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"])) });
4
4
  export {
5
5
  n as default
6
6
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as e, resolveComponent as o, openBlock as n, createBlock as u, withCtx as l, createTextVNode as t, toDisplayString as r, createElementBlock as c, Fragment as g, renderList as m, createCommentVNode as p } from "vue";
1
+ import { defineComponent as e, resolveComponent as o, createBlock as n, openBlock as u, withCtx as l, createElementBlock as t, createCommentVNode as r, Fragment as c, renderList as g, createTextVNode as m, toDisplayString as p } from "vue";
2
2
  import a from "./normal-column.vue.js";
3
3
  import i from "./group-column-item.vue.js";
4
4
  const f = e({ __name: "group-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, groupColumn: { type: Object, default: () => ({}) }, columnsConfigKeyValues: { type: Object, default: () => ({}) } }, setup: (e2) => (f2, C) => {
5
5
  const s = o("el-table-column");
6
- return n(), u(s, { "header-align": "center" }, { header: l(() => [t(r(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (n(true), c(g, { key: 0 }, m(e2.groupColumn.children, (o2, l2) => (n(), c(g, { key: l2 }, [o2.children && o2.children.length > 0 ? (n(), u(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (n(), u(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : p("", true)]), _: 1 });
6
+ return u(), n(s, { "header-align": "center" }, { header: l(() => [m(p(e2.groupColumn.titleText), 1)]), default: l(() => [e2.groupColumn.children && e2.groupColumn.children.length > 0 ? (u(true), t(c, { key: 0 }, g(e2.groupColumn.children, (o2, l2) => (u(), t(c, { key: l2 }, [o2.children && o2.children.length > 0 ? (u(), n(i, { key: l2, configure: e2.configure, pageContext: e2.pageContext, groupColumnItem: o2, columnsConfigKeyValues: e2.columnsConfigKeyValues }, null, 8, ["configure", "pageContext", "groupColumnItem", "columnsConfigKeyValues"])) : (u(), n(a, { key: 1, pageContext: e2.pageContext, configure: e2.configure, column: e2.columnsConfigKeyValues[o2.columnUuid] }, null, 8, ["pageContext", "configure", "column"]))], 64))), 128)) : r("", true)]), _: 1 });
7
7
  } });
8
8
  export {
9
9
  f as default
@@ -1,73 +1,42 @@
1
- import { defineComponent as o, ref as e, resolveComponent as t, openBlock as r, createBlock as p, withCtx as n, createElementBlock as l, Fragment as s, createTextVNode as i, toDisplayString as u, resolveDynamicComponent as a, createVNode as c, normalizeClass as m, createCommentVNode as f, createElementVNode as g } from "vue";
2
- import { getCustomFunc as d } from "../../../../utils/events/event-util.js";
3
- import b from "../../../../utils/eventBus.js";
1
+ import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
2
+ import "agilebuilder-ui/src/utils/common-util";
3
+ import "agilebuilder-ui/src/utils/util";
4
4
  import "agilebuilder-ui/src/utils/request";
5
+ import "element-plus";
6
+ import "agilebuilder-ui/src/utils/auth";
7
+ import "../../../../utils/global-refs.js";
8
+ import d from "../../../../utils/eventBus.js";
9
+ import "axios";
5
10
  import "dayjs";
6
11
  import "agilebuilder-ui/src/utils/calculator/calculator-util";
7
- import "../../../../utils/global-refs.js";
8
- import "agilebuilder-ui/src/utils/common-util";
9
- import "agilebuilder-ui/src/utils/util";
12
+ import "async-validator";
13
+ import "../../../../utils/events/print-label.js";
10
14
  import { expressJump as y } from "../../../../utils/table-utils.js";
11
- const k = { key: 0 }, x = { key: 1 }, w = { key: 1 }, h = { key: 2 }, C = o({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(o2) {
15
+ import { formatColContent as b } from "./chart-table-util.js";
16
+ const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(o2) {
12
17
  const C2 = o2, j = e(false);
13
18
  let v = null;
14
19
  function O(o3, e2, t2, r2) {
15
20
  }
16
- function D(o3) {
21
+ function _(o3) {
17
22
  const e2 = y(C2.pageContext, C2.configure, C2.column.linkPage, o3);
18
23
  let t2 = false;
19
24
  return e2 && (t2 = e2.show, v = e2.toPage), t2;
20
25
  }
21
- function N(o3) {
26
+ function P(o3) {
22
27
  if (v) {
23
28
  const e2 = C2.pageContext.code + "_", t2 = JSON.parse(JSON.stringify(v));
24
29
  t2.base = { successOperation: "closeWindow" };
25
30
  const r2 = { id: o3.id ? o3.id : o3.ID, selections: [o3] };
26
- b.$emit(e2 + "open-dialog", { pageContext: C2.pageContext, configureObj: { props: t2 }, eventParams: r2 });
31
+ d.$emit(e2 + "open-dialog", { pageContext: C2.pageContext, configureObj: { props: t2 }, eventParams: r2 });
27
32
  }
28
33
  }
29
- function _(o3, e2) {
30
- const t2 = o3[C2.column.props.base.prop];
31
- switch (e2.type) {
32
- case "number":
33
- return function(o4, e3) {
34
- let t3 = o4;
35
- t3 || (t3 = 0);
36
- e3.scientific && (t3 = Number(o4).toExponential(e3.scientificNum));
37
- e3.decimalDigit && (t3 = Number(o4).toFixed(e3.decimalDigit));
38
- e3.thousandsSeparator && (t3 = t3.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","));
39
- e3.symbol && (t3 = `${e3.symbol} ${t3}`);
40
- return t3;
41
- }(t2, e2);
42
- case "currency":
43
- return function(o4, e3) {
44
- let t3 = o4;
45
- t3 || (t3 = 0);
46
- e3.decimalDigit && (t3 = Number(o4).toFixed(e3.decimalDigit));
47
- e3.symbol && (t3 = `${e3.symbol} ${t3}`);
48
- return t3;
49
- }(t2, e2);
50
- case "percent":
51
- return function(o4, e3) {
52
- let t3 = o4;
53
- t3 || (t3 = 0);
54
- e3.decimalDigit && (t3 = Number(o4).toFixed(e3.decimalDigit));
55
- return t3 + " %";
56
- }(t2, e2);
57
- case "custom":
58
- return function(o4, e3) {
59
- const t3 = d(C2.pageContext, e3.customFunc);
60
- if (t3) {
61
- return t3.apply(t3, [{ pageContext: C2.pageContext, configureObj: C2.configure, row: o4, prop: C2.column.props.base.prop }]);
62
- }
63
- }(o3, e2);
64
- default:
65
- return t2;
66
- }
34
+ function T(o3, e2) {
35
+ return b(o3, e2, C2.column, C2.pageContext, C2.configure);
67
36
  }
68
37
  return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
69
- const b2 = t("el-table-column"), y2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
70
- return "$index" === o2.column.props.base.prop ? (r(), p(b2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (r(), p(b2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: n((e3) => [o2.column.props.format && o2.column.props.format.type ? (r(), l(s, { key: 0 }, [i(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (r(), p(a(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (r(), p(y2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (r(), l(s, { key: 2 }, [o2.column.props.format.isTag ? (r(), l("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: n(() => [i(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (r(), l("span", x, ["pre" === o2.column.props.format.position ? (r(), l("i", { key: 0, class: m(o2.column.props.format.icon) }, null, 2)) : f("", true), g("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (r(), l("i", { key: 1, class: m(o2.column.props.format.icon) }, null, 2)) : f("", true)]))], 64)) : (r(), l(s, { key: 3 }, [j.value && D(e3.row) ? (r(), p(v2, { key: 0, type: "primary", onClick: (o3) => N(e3.row) }, { default: n(() => [i(u(_(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), l("span", w, u(_(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && D(e3.row) ? (r(), p(v2, { key: 1, type: "primary", onClick: (o3) => N(e3.row) }, { default: n(() => [i(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (r(), l("span", h, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
38
+ const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
39
+ return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(i(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
71
40
  };
72
41
  } });
73
42
  export {