super-page-runtime 2.3.36 → 2.3.37-sit1

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 (77) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/events/event-util.js +114 -114
  3. package/dist/es/components/runtime/utils/events/print-label.js +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +38 -38
  5. package/dist/es/components/runtime/utils/events/validator-util.js +126 -88
  6. package/dist/es/components/runtime/utils/page-init-util.js +26 -28
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +95 -98
  22. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
  23. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  24. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  25. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  27. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  28. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  30. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +17 -12
  32. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  33. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +69 -66
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +36 -33
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  39. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +37 -37
  40. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +43 -43
  42. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +62 -62
  43. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +38 -38
  44. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  45. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -60
  46. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +21 -21
  47. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -53
  48. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
  49. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +26 -28
  50. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +27 -29
  51. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +50 -50
  52. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
  53. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +106 -106
  54. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +89 -90
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +4 -4
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
  60. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +21 -21
  61. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +96 -94
  63. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  64. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +30 -18
  66. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  68. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +26 -18
  70. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  71. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  72. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  73. package/dist/es/components/runtime/views/super-page.vue2.js +27 -22
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. package/dist/es/style.css +166 -158
  77. package/package.json +2 -2
@@ -11,24 +11,24 @@ class ExpressionEvaluator {
11
11
  return this.evaluateExpression(o);
12
12
  }
13
13
  static createExpression(e, t, r) {
14
- const { propName: o, operator: n, propValue: a, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
14
+ const { propName: o, operator: a, propValue: n, leftBracket: s, rightBracket: l, joinSign: i, dataType: c } = t;
15
15
  if (!o || "" === o) return "";
16
16
  const u = getValueFromVariable(e.entity, o, r);
17
- let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, a, r))} ${l}`;
17
+ let p = `${s} ${this.getComparisonExpression(u, t, getValueFromVariable(e.entity, n, r))} ${l}`;
18
18
  return i && ("and" === i || "AND" === i ? p += "&&" : "or" !== i && "OR" !== i || (p += "||")), p.trim();
19
19
  }
20
20
  static getComparisonExpression(e, t, r) {
21
- const { dataType: o, variableIsNull: n } = t;
22
- let a = t.operator;
23
- a || (a = "EQ");
21
+ const { dataType: o, variableIsNull: a } = t;
22
+ let n = t.operator;
23
+ n || (n = "EQ");
24
24
  let s = this.parseValue(e, o);
25
25
  const l = this.parseValue(r, o);
26
- if (null == l && n) {
27
- if (null == s && (s = "null"), "null" === n) return `${s} === null`;
28
- if ("ignore" === n) return "1=1";
29
- if ("notequal" === n) return "1!=1";
26
+ if (null == l && a) {
27
+ if (null == s && (s = "null"), "null" === a) return `${s} === null`;
28
+ if ("ignore" === a) return "1=1";
29
+ if ("notequal" === a) return "1!=1";
30
30
  }
31
- switch (a) {
31
+ switch (n) {
32
32
  case "EQ":
33
33
  return `${s} === ${l}`;
34
34
  case "GT":
@@ -55,7 +55,7 @@ class ExpressionEvaluator {
55
55
  }
56
56
  return `[${l}].includes(${s})`;
57
57
  default:
58
- throw new Error(`比较符号不匹配: ${a}`);
58
+ throw new Error(`比较符号不匹配: ${n}`);
59
59
  }
60
60
  }
61
61
  static changeDataType(e) {
@@ -86,7 +86,7 @@ class ExpressionEvaluator {
86
86
  try {
87
87
  return eval(expression);
88
88
  } catch (e) {
89
- return console.error("表达式错误:", expression, e), false;
89
+ return false;
90
90
  }
91
91
  }
92
92
  }
@@ -114,40 +114,39 @@ function getSummaryDataColumn(e, t) {
114
114
  const r = {};
115
115
  return ((_a = e.props.summaries) == null ? void 0 : _a.dataColumn) && e.props.summaries.dataColumn.length > 0 && e.props.summaries.dataColumn.forEach((o) => {
116
116
  var _a2;
117
- const n = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
118
- n && ("table" === t && n.props.base.tableSummary || "group" === t && n.props.base.groupSummary) && (r[o.prop] = o);
117
+ const a = (_a2 = e.items) == null ? void 0 : _a2.find((e2) => o.prop === e2.props.base.prop);
118
+ a && ("table" === t && a.props.base.tableSummary || "group" === t && a.props.base.groupSummary) && (r[o.prop] = o);
119
119
  }), r;
120
120
  }
121
121
  function summaryStatistics(e, t, r, o) {
122
- let n = "";
123
- const a = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
124
- if (s.length > 0) if ("custom" === a) {
125
- const a2 = getCustomFunc(o, e.customFunc);
126
- if (a2) try {
127
- const e2 = a2.apply(a2, [{ data: t, prop: r }]);
128
- n = e2 ? ` ${e2}` : " N/A";
122
+ let a = "";
123
+ const n = e.summaryMode, s = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
124
+ if (s.length > 0) if ("custom" === n) {
125
+ const n2 = getCustomFunc(o, e.customFunc);
126
+ if (n2) try {
127
+ const e2 = n2.apply(n2, [{ data: t, prop: r }]);
128
+ a = e2 ? ` ${e2}` : " N/A";
129
129
  } catch (e2) {
130
- console.error("自定义函数脚本错误:", t, e2);
131
130
  }
132
- else n = " N/A";
133
- } else switch (a) {
131
+ else a = " N/A";
132
+ } else switch (n) {
134
133
  case "sum":
135
- n = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
134
+ a = ` ${s.reduce((e2, t2) => e2 + t2, 0)}`;
136
135
  break;
137
136
  case "avg":
138
- n = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
137
+ a = " " + s.reduce((e2, t2) => e2 + t2, 0) / s.length;
139
138
  break;
140
139
  case "min":
141
- n = ` ${Math.min(...s)}`;
140
+ a = ` ${Math.min(...s)}`;
142
141
  break;
143
142
  case "max":
144
- n = ` ${Math.max(...s)}`;
143
+ a = ` ${Math.max(...s)}`;
145
144
  break;
146
145
  default:
147
- n = " N/A";
146
+ a = " N/A";
148
147
  }
149
- else n = " N/A";
150
- return n;
148
+ else a = " N/A";
149
+ return a;
151
150
  }
152
151
  function replacePlaceholders(e, t) {
153
152
  if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
@@ -157,33 +156,31 @@ function getHeaderCellStyleUtil(e, t, r) {
157
156
  const o = {};
158
157
  e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
159
158
  if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
160
- const n2 = getCustomFunc(r.pageContext, t2.scopeFunc);
161
- if (n2) try {
162
- false !== n2.apply(n2, [{ item: t2, data: e }]) && copyStyle(o, t2);
163
- } catch (r2) {
164
- console.error("自定义函数脚本错误:", t2, e, r2);
159
+ const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
160
+ if (a2) try {
161
+ false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
162
+ } catch (e2) {
165
163
  }
166
164
  } else copyStyle(o, t2);
167
165
  }));
168
- const n = getCellStyleUtil(e, t.cellTitleStyle, r);
169
- return n && Object.assign(o, n), o;
166
+ const a = getCellStyleUtil(e, t.cellTitleStyle, r);
167
+ return a && Object.assign(o, a), o;
170
168
  }
171
169
  function getRowStyleUtil(e, t, r) {
172
170
  const o = {};
173
171
  if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
174
- const n = r.configure.style.rowStyle[t2];
175
- if (n.scopeFunc) {
176
- const t3 = getCustomFunc(r.pageContext, n.scopeFunc);
172
+ const a = r.configure.style.rowStyle[t2];
173
+ if (a.scopeFunc) {
174
+ const t3 = getCustomFunc(r.pageContext, a.scopeFunc);
177
175
  if (t3) try {
178
176
  const r2 = t3.apply(t3, [{ data: e }]);
179
- null != r2 && false !== r2 && copyStyle(o, n);
180
- } catch (t4) {
181
- console.error("自定义函数脚本错误:", e, t4);
177
+ null != r2 && false !== r2 && copyStyle(o, a);
178
+ } catch (e2) {
182
179
  }
183
- } else if (n.matchingCondition) {
184
- const t3 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
185
- (t3 || void 0 === t3) && copyStyle(o, n);
186
- } else copyStyle(o, n);
180
+ } else if (a.matchingCondition) {
181
+ const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
182
+ (t3 || void 0 === t3) && copyStyle(o, a);
183
+ } else copyStyle(o, a);
187
184
  }
188
185
  if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
189
186
  const e2 = {};
@@ -196,19 +193,18 @@ function getRowStyleUtil(e, t, r) {
196
193
  }
197
194
  function getCellStyleUtil(e, t, r) {
198
195
  const o = {};
199
- if (t) for (let n = 0; n < t.length; n++) {
200
- const a = t[n];
201
- if (isSetStyle(a)) if (a.scopeFunc) {
202
- const t2 = getCustomFunc(r.pageContext, a.scopeFunc);
196
+ if (t) for (let a = 0; a < t.length; a++) {
197
+ const n = t[a];
198
+ if (isSetStyle(n)) if (n.scopeFunc) {
199
+ const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
203
200
  if (t2) try {
204
- false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, a);
205
- } catch (t3) {
206
- console.error("自定义函数脚本错误:", e, t3);
201
+ false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
202
+ } catch (e2) {
207
203
  }
208
- } else if (a.matchingCondition) {
209
- const t2 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
210
- (t2 || void 0 === t2) && copyStyle(o, a);
211
- } else copyStyle(o, a);
204
+ } else if (n.matchingCondition) {
205
+ const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
206
+ (t2 || void 0 === t2) && copyStyle(o, n);
207
+ } else copyStyle(o, n);
212
208
  }
213
209
  return o;
214
210
  }
@@ -220,33 +216,35 @@ function copyStyle(e, t) {
220
216
  Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
221
217
  }
222
218
  function rowDataToColumn(e, t, r) {
223
- const o = t.props.dataOrigin.groupField, n = t.props.dataOrigin.rowToColumn.titleColumns, a = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
219
+ const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
224
220
  if (o && o.length > 0) e.forEach((e2) => {
225
221
  const t2 = o.map((t3) => e2[t3]).join("|");
226
222
  if (!l[t2]) {
227
223
  const r2 = {};
228
224
  o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
229
225
  }
230
- a.forEach((r2) => {
231
- const o2 = `${n.map((t3) => e2[t3]).join("")}${r2}`;
226
+ n.forEach((r2) => {
227
+ const o2 = `${a.map((t3) => e2[t3]).join("")}${r2}`;
232
228
  l[t2][o2] = e2[r2];
233
229
  });
234
230
  });
235
231
  else {
236
232
  const t2 = [];
237
233
  e.forEach((e2) => {
238
- n.forEach((r2) => {
234
+ a.forEach((r2) => {
239
235
  e2[r2] && t2.push(e2[r2]);
240
236
  });
241
- }), a.forEach((t3) => {
242
- const o2 = {}, a2 = r.find((e2) => {
237
+ }), n.forEach((t3) => {
238
+ const o2 = {}, n2 = r.find((e2) => {
243
239
  var _a, _b;
244
240
  return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
245
241
  });
246
- a2 && (o2.$GroupColumn = a2.props.base.name), e.forEach((e2) => {
247
- n.forEach((r2) => {
248
- const n2 = e2[r2], a3 = e2[t3];
249
- o2[n2] = a3;
242
+ n2 && (o2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
243
+ a.forEach((r2) => {
244
+ const a2 = e2[r2];
245
+ if (!a2) return;
246
+ const n3 = e2[t3];
247
+ o2[a2] = n3;
250
248
  });
251
249
  }), s.push(o2);
252
250
  });
@@ -254,9 +252,9 @@ function rowDataToColumn(e, t, r) {
254
252
  return s;
255
253
  }
256
254
  function colDataToRow(e, t) {
257
- const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, n = t.props.dataOrigin.columnToRow.dataColumns, a = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
255
+ const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns, a = t.props.dataOrigin.columnToRow.dataColumns, n = t.props.dataOrigin.columnToRow.transColumns, s = t.props.dataOrigin.columnToRow.dataColumnsMapping;
258
256
  if (0 === e.length) return e;
259
- const l = [], i = groupBy(e, r), c = n.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, n[0]), u = n.reduce((e2, t2) => (t2.columns.forEach((r2) => {
257
+ const l = [], i = groupBy(e, r), c = a.reduce((e2, t2) => t2.columns.length > e2.columns.length ? t2 : e2, a[0]), u = a.reduce((e2, t2) => (t2.columns.forEach((r2) => {
260
258
  e2[r2] = t2.prop;
261
259
  }), e2), {});
262
260
  return i.forEach((e2) => {
@@ -264,14 +262,14 @@ function colDataToRow(e, t) {
264
262
  const i2 = c.prop, p = {};
265
263
  if (r.forEach((t3) => {
266
264
  p[t3] = e2[t3];
267
- }), p[i2] = e2[t2], n.length > 1) {
265
+ }), p[i2] = e2[t2], a.length > 1) {
268
266
  const r2 = s.find((e3) => e3.props.includes(t2));
269
267
  r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
270
268
  r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
271
269
  });
272
270
  }
273
271
  o.forEach((e3) => {
274
- const r2 = a.filter((t3) => t3.relatedTitle === e3.prop);
272
+ const r2 = n.filter((t3) => t3.relatedTitle === e3.prop);
275
273
  let o2 = false;
276
274
  r2 && r2.length > 0 && r2.forEach((r3) => {
277
275
  if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
@@ -281,25 +279,25 @@ function colDataToRow(e, t) {
281
279
  }), l;
282
280
  }
283
281
  function getColumnToRowTableConfig(e) {
284
- const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, n = e.props.dataOrigin.columnToRow.dataColumns, a = [];
282
+ const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, a = e.props.dataOrigin.columnToRow.dataColumns, n = [];
285
283
  r && r.length > 0 && r.forEach((e2) => {
286
284
  if (t) {
287
285
  const r2 = t.find((t2) => t2.props.base.prop === e2);
288
- r2 && a.push(r2);
286
+ r2 && n.push(r2);
289
287
  }
290
288
  });
291
- return [...o, ...n].forEach((e2) => {
289
+ return [...o, ...a].forEach((e2) => {
292
290
  if (t) {
293
291
  const r2 = t.find((t2) => t2.props.base.prop === e2);
294
- r2 ? a.push(r2) : a.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: "" } } } });
292
+ r2 ? n.push(r2) : 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: "" } } } });
295
293
  }
296
- }), a;
294
+ }), n;
297
295
  }
298
296
  function groupBy(e, t) {
299
297
  const r = {};
300
298
  return e.forEach((e2) => {
301
299
  const o = t.map((t2) => e2[t2]).join("|");
302
- r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, n) => {
300
+ r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, a) => {
303
301
  r[o][t2] = e2[t2];
304
302
  })), r[o].records.push(e2);
305
303
  }), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
@@ -327,7 +325,7 @@ function computeFormula(itemConfs, datas, entity) {
327
325
  r += Number(e2[t]);
328
326
  });
329
327
  } catch (e2) {
330
- console.error("计算错误:", e2), r = 0;
328
+ r = 0;
331
329
  }
332
330
  totalValueMap[e] = r;
333
331
  } 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));
@@ -339,7 +337,7 @@ function computeFormula(itemConfs, datas, entity) {
339
337
  try {
340
338
  data[key] = eval(expr);
341
339
  } catch (e) {
342
- console.error(itemConfs[key] + " 计算错误, 替换后表达式为:" + expr, e), data[key] = 0;
340
+ data[key] = 0;
343
341
  }
344
342
  });
345
343
  });
@@ -347,19 +345,19 @@ function computeFormula(itemConfs, datas, entity) {
347
345
  function getFieldName(e) {
348
346
  return e.substring(6, e.length - 1);
349
347
  }
350
- function formatColContent(e, t, r, o, n) {
351
- const a = e[r.props.base.prop];
348
+ function formatColContent(e, t, r, o, a) {
349
+ const n = e[r.props.base.prop];
352
350
  switch (t.type) {
353
351
  case "number":
354
- return formatNumber(a, t);
352
+ return formatNumber(n, t);
355
353
  case "currency":
356
- return formatCurrency(a, t);
354
+ return formatCurrency(n, t);
357
355
  case "percent":
358
- return formatPercent(a, t);
356
+ return formatPercent(n, t);
359
357
  case "custom":
360
- return formatCustomFunc(e, t, r, o, n);
358
+ return formatCustomFunc(e, t, r, o, a);
361
359
  default:
362
- return a;
360
+ return n;
363
361
  }
364
362
  }
365
363
  function formatNumber(e, t) {
@@ -374,29 +372,28 @@ function formatPercent(e, t) {
374
372
  let r = e;
375
373
  return r || (r = 0, e = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
376
374
  }
377
- function formatCustomFunc(e, t, r, o, n) {
378
- const a = getCustomFunc(o, t.customFunc);
379
- if (a) {
375
+ function formatCustomFunc(e, t, r, o, a) {
376
+ const n = getCustomFunc(o, t.customFunc);
377
+ if (n) {
380
378
  try {
381
- return a.apply(a, [{ pageContext: o, configureObj: n, row: e, prop: r.props.base.prop }]);
382
- } catch (t2) {
383
- console.error("自定义函数脚本错误:", e, t2);
379
+ return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
380
+ } catch (e2) {
384
381
  }
385
382
  return "";
386
383
  }
387
384
  }
388
- function mergeRowByProperty(e, t, r, o, n) {
389
- const a = e[o];
385
+ function mergeRowByProperty(e, t, r, o, a) {
386
+ const n = e[o];
390
387
  let s = 1, l = true;
391
388
  for (let e2 = r - 1; e2 >= 0; e2--) {
392
- if (n[e2][o] === a) {
389
+ if (a[e2][o] === n) {
393
390
  l = false;
394
391
  break;
395
392
  }
396
393
  break;
397
394
  }
398
395
  if (!l) return [0, 0];
399
- for (let e2 = r + 1; e2 < n.length && n[e2][o] === a; e2++) s++;
396
+ for (let e2 = r + 1; e2 < a.length && a[e2][o] === n; e2++) s++;
400
397
  return [s, 1];
401
398
  }
402
399
  export {
@@ -182,9 +182,8 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
182
182
  return o2.forEach((e4, o3) => {
183
183
  if (se.value[e4.property]) {
184
184
  const n2 = se.value[e4.property].label;
185
- return void (t2[o3] = C("div", {}, [P(n2, r2)]));
186
- }
187
- if (ce.value[e4.property]) {
185
+ t2[o3] = C("div", {}, [P(n2, r2)]);
186
+ } else if (ce.value[e4.property]) {
188
187
  const n2 = r2.filter((e5, o4) => !fe.includes(o4));
189
188
  t2[o3] = A(ce.value[e4.property], n2, e4.property, W.pageContext);
190
189
  }
@@ -1,20 +1,20 @@
1
- import { defineComponent as e, ref as o, createBlock as n, openBlock as r, resolveDynamicComponent as t, mergeProps as l, nextTick as u, markRaw as a } from "vue";
2
- import { getRuntimeComponentByName as c } from "../../../utils/assemblys-config.js";
3
- import s from "../error-render.vue.js";
4
- const m = e({ __name: "event-call-component", setup(e2, { expose: m2 }) {
5
- const p = o(null), v = o({}), f = () => {
6
- p.value = null, v.value = {};
1
+ import { defineComponent as e, ref as o, createBlock as n, openBlock as t, resolveDynamicComponent as l, mergeProps as u, nextTick as r, markRaw as a } from "vue";
2
+ import { getRuntimeComponentByName as s } from "../../../utils/assemblys-config.js";
3
+ import c from "../error-render.vue.js";
4
+ const v = e({ __name: "event-call-component", setup(e2, { expose: v2 }) {
5
+ const m = o(null), p = o({}), f = () => {
6
+ m.value = null, p.value = {};
7
7
  };
8
- return m2({ renderComponent: async function(e3, o2) {
8
+ return v2({ renderComponent: async function(e3, o2) {
9
9
  try {
10
- p.value = null, v.value = o2 || {}, await u();
11
- const n2 = c(e3);
12
- p.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? s : a(n2);
10
+ m.value = null, p.value = o2 || {}, await r();
11
+ const n2 = s(e3);
12
+ m.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? c : a(n2);
13
13
  } catch (e4) {
14
- console.error("event-call-component renderedComponent error", e4), p.value = s;
14
+ m.value = c;
15
15
  }
16
- } }), (e3, o2) => (r(), n(t(p.value), l(v.value, { onDestroy: f }), null, 16));
16
+ } }), (e3, o2) => (t(), n(l(m.value), u(p.value, { onDestroy: f }), null, 16));
17
17
  } });
18
18
  export {
19
- m as default
19
+ v as default
20
20
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as n, createVNode as i, createTextVNode as p, toDisplayString as r } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as i, createVNode as n, createTextVNode as p, toDisplayString as r } from "vue";
2
2
  import { packageTemplateFiles as s } from "../../../utils/common-util.js";
3
3
  import { ElMessage as m } from "element-plus";
4
4
  const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
7
7
  function w(e3) {
8
8
  let t2, a2, l2 = e3;
9
9
  const o2 = l2.indexOf(c), u2 = l2.indexOf(d);
10
- return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
10
+ return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
11
11
  }
12
12
  function N(e3) {
13
13
  x("export", f.configure, e3);
@@ -17,18 +17,16 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
17
17
  }
18
18
  return a(() => {
19
19
  C.templateFiles && C.templateFiles.length > 0 ? b.value = s(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
20
- e3 && e3.templateName && (e3.templateName = function(e4) {
21
- const t2 = w(e4);
22
- return t2.forEach((t3) => {
23
- const a2 = c + t3 + d;
24
- let l2;
25
- -1 !== e4.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, t3) && (l2 = y[t3] ? y[t3] : "", e4 = e4.replace(a2, l2));
26
- }), e4;
27
- }(e3.templateName));
20
+ var t2;
21
+ e3 && e3.templateName && (e3.templateName = (w(t2 = e3.templateName).forEach((e4) => {
22
+ const a2 = c + e4 + d;
23
+ let l2;
24
+ -1 !== t2.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, e4) && (l2 = y[e4] ? y[e4] : "", t2 = t2.replace(a2, l2));
25
+ }), t2));
28
26
  }), b.value && 0 !== b.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), x("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), x("close")) : v.value = true;
29
27
  }), (e3, t2) => {
30
28
  const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
31
- return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: n(() => [i(m2, { data: b.value, style: { width: "100%" } }, { default: n(() => [i(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: n((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), i(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: n((t3) => [i(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: n(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 1 }, 8, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
29
+ return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: i(() => [n(m2, { data: b.value, style: { width: "100%" } }, { default: i(() => [n(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: i((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), n(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: i((t3) => [n(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: i(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
32
30
  };
33
31
  } });
34
32
  export {
@@ -27,7 +27,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
27
27
  p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
28
28
  });
29
29
  var l3;
30
- } }, { default: u(() => [s(y2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
30
+ } }, { default: u(() => [s(y2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
31
31
  };
32
32
  } });
33
33
  export {
@@ -19,9 +19,9 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
19
19
  });
20
20
  }), V2({ test: function() {
21
21
  _.configure.props.title = "teee";
22
- } }), (o2, t2) => {
23
- const i2 = r("el-link");
24
- return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e2.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e2.configure.props.base.title)), 1)], 4), R.value ? (s(), l(i2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
22
+ } }), (e3, o2) => {
23
+ const t2 = r("el-link");
24
+ return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(t2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
25
  };
26
26
  } });
27
27
  export {
@@ -11,9 +11,9 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
11
11
  o(() => {
12
12
  j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
13
13
  });
14
- }), (t2, n2) => {
15
- const o2 = l("SuperIcon"), j2 = l("el-collapse-item"), _3 = l("el-collapse");
16
- return u(), i(_3, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => s(h) ? h.value = e3 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e2.configure.items, (t3, n3) => (u(), i(j2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(o2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n4) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
14
+ }), (e3, t2) => {
15
+ const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
16
+ return u(), i(j2, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(h) ? h.value = e4 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e3.configure.items, (t3, l2) => (u(), i(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n3) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
17
17
  };
18
18
  } });
19
19
  export {
@@ -8,9 +8,9 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
8
8
  o(() => {
9
9
  d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
10
10
  });
11
- }), (t2, n2) => {
12
- const o2 = u("el-aside"), d2 = u("el-main"), C3 = u("el-container");
13
- return i(), l(C3, { ref_key: "thisRef", ref: _ }, { default: r(() => [e2.configure.props.useLeft ? (i(), l(o2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(d2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? (i(), l(o2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
11
+ }), (e3, t2) => {
12
+ const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
13
+ return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
14
14
  };
15
15
  } });
16
16
  export {
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
19
19
  B.value = l2 ?? 0, R(n2 || i2 || false, e3);
20
20
  }
21
21
  } catch (e3) {
22
- console.error(e3);
23
22
  }
24
23
  }, R = (e3, t2) => {
25
24
  var _a;
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
56
55
  })();
57
56
  b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
57
  } catch (e3) {
59
- console.error(e3);
60
58
  }
61
59
  });
62
60
  }, 100);
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
15
15
  s(() => {
16
16
  v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
17
17
  });
18
- }), (t2, n2) => {
19
- const s2 = l("el-col"), C2 = l("el-row");
20
- return o(), i(C2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
18
+ }), (e3, t2) => {
19
+ const n2 = l("el-col"), s2 = l("el-row");
20
+ return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -1,20 +1,25 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as i, resolveComponent as n, createElementBlock as l, openBlock as s, createVNode as a, normalizeClass as r, normalizeStyle as u, unref as p, withCtx as f, createCommentVNode as m, toDisplayString as g, Fragment as c, renderList as d, createBlock as y } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as o, resolveComponent as s, createElementBlock as n, openBlock as l, createVNode as r, normalizeClass as a, normalizeStyle as u, unref as p, withCtx as f, createCommentVNode as m, toDisplayString as g, Fragment as c, renderList as d, createBlock as y } from "vue";
2
2
  import v from "../../object-render.vue.js";
3
3
  import { PageDimensions as x } from "../../../../utils/interfaces/page-design-types.js";
4
4
  import { handleFormEvent as C } from "../../../../utils/events/event-util.js";
5
- const b = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
6
- const b2 = e2;
7
- b2.configure.items || (b2.configure.items = []);
8
- const h = b2.configure.runtime ? b2.configure.runtime : {}, j = h.props ? h.props : {}, _ = t(h.style ? h.style : {}), k = h.class, w = t(h.titleStyle ? h.titleStyle : {}), z = t(j.labelPosition), P = t(null), S = b2.pageContext && b2.pageContext.dimensions ? b2.pageContext.dimensions : x.PC;
9
- return S && S === x.PHONE && (z.value = "top"), o(() => {
10
- i(() => {
11
- C(null, b2.pageContext, b2.configure, "afterFormLoad", { componentRef: P.value, entity: b2.pageContext.entity.data, pageData: b2.pageContext.entity.page });
5
+ import { getClobalComponentSettingByType as b, globalComponentCacheKeyMap as k } from "agilebuilder-ui/src/utils/global-component-setting.ts";
6
+ const P = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
+ const P2 = e2, h = t("left"), j = b(k.FORM);
8
+ if (j) {
9
+ const e3 = JSON.parse(j);
10
+ e3.requireAsteriskPosition && (h.value = e3.requireAsteriskPosition);
11
+ }
12
+ P2.configure.items || (P2.configure.items = []);
13
+ const q = P2.configure.runtime ? P2.configure.runtime : {}, S = q.props ? q.props : {}, _ = t(q.style ? q.style : {}), w = q.class, z = t(q.titleStyle ? q.titleStyle : {}), O = t(S.labelPosition), R = t(null), A = P2.pageContext && P2.pageContext.dimensions ? P2.pageContext.dimensions : x.PC;
14
+ return A && A === x.PHONE && (O.value = "top"), i(() => {
15
+ o(() => {
16
+ C(null, P2.pageContext, P2.configure, "afterFormLoad", { componentRef: R.value, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
12
17
  });
13
- }), (t2, o2) => {
14
- const i2 = n("el-form");
15
- return s(), l("div", null, [a(i2, { ref_key: "thisRef", ref: P, "label-width": p(j).labelWidth, "label-position": z.value, size: p(j).componentSize, style: u(_.value), class: r(p(k)) }, { default: f(() => [p(j).formTitle ? (s(), l("div", { key: 0, class: "amb-widget-form-title", style: u(w.value) }, g(p(j).formTitle), 5)) : m("", true), (s(true), l(c, null, d(e2.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
18
+ }), (e3, t2) => {
19
+ const i2 = s("el-form");
20
+ return l(), n("div", null, [r(i2, { ref_key: "thisRef", ref: R, "label-width": p(S).labelWidth, "label-position": O.value, size: p(S).componentSize, "require-asterisk-position": h.value, style: u(_.value), class: a(p(w)) }, { default: f(() => [p(S).formTitle ? (l(), n("div", { key: 0, class: "amb-widget-form-title", style: u(z.value) }, g(p(S).formTitle), 5)) : m("", true), (l(true), n(c, null, d(e3.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "require-asterisk-position", "style", "class"])]);
16
21
  };
17
22
  } });
18
23
  export {
19
- b as default
24
+ P as default
20
25
  };