super-page-runtime 2.3.44 → 2.3.45-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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +21 -21
- package/dist/es/components/runtime/utils/events/validator-util.js +81 -84
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +7 -1
- package/dist/es/components/runtime/utils/page-init-util.js +76 -60
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -3
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -56
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +169 -170
- package/dist/es/style.css +76 -76
- 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:
|
|
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,
|
|
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:
|
|
22
|
-
let
|
|
23
|
-
|
|
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 &&
|
|
27
|
-
if (null == s && (s = "null"), "null" ===
|
|
28
|
-
if ("ignore" ===
|
|
29
|
-
if ("notequal" ===
|
|
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 (
|
|
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(`比较符号不匹配: ${
|
|
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
|
|
89
|
+
return false;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -114,49 +114,48 @@ 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
|
|
118
|
-
|
|
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
|
-
function summaryStatistics(e, t, r, o,
|
|
122
|
-
let
|
|
121
|
+
function summaryStatistics(e, t, r, o, a) {
|
|
122
|
+
let n = "";
|
|
123
123
|
const s = e.summaryMode, l = t.map((e2) => Number(e2[r])).filter((e2) => !Number.isNaN(e2));
|
|
124
124
|
if (l.length > 0) if ("custom" === s) {
|
|
125
|
-
const
|
|
126
|
-
if (
|
|
127
|
-
const e2 =
|
|
128
|
-
|
|
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";
|
|
129
129
|
} catch (e2) {
|
|
130
|
-
console.error("自定义函数脚本错误:", t, e2);
|
|
131
130
|
}
|
|
132
|
-
else
|
|
131
|
+
else n = " N/A";
|
|
133
132
|
} else switch (s) {
|
|
134
133
|
case "sum":
|
|
135
|
-
|
|
134
|
+
n = `${l.reduce((e2, t2) => e2 + t2, 0)}`;
|
|
136
135
|
break;
|
|
137
136
|
case "avg":
|
|
138
|
-
|
|
137
|
+
n = "" + l.reduce((e2, t2) => e2 + t2, 0) / l.length;
|
|
139
138
|
break;
|
|
140
139
|
case "min":
|
|
141
|
-
|
|
140
|
+
n = `${Math.min(...l)}`;
|
|
142
141
|
break;
|
|
143
142
|
case "max":
|
|
144
|
-
|
|
143
|
+
n = `${Math.max(...l)}`;
|
|
145
144
|
break;
|
|
146
145
|
default:
|
|
147
|
-
|
|
146
|
+
n = "N/A";
|
|
148
147
|
}
|
|
149
|
-
else
|
|
150
|
-
if (r &&
|
|
151
|
-
const e2 =
|
|
152
|
-
if (-1 !== e2 &&
|
|
148
|
+
else n = "N/A";
|
|
149
|
+
if (r && a) {
|
|
150
|
+
const e2 = a.findIndex((e3) => e3.props.base.prop === r);
|
|
151
|
+
if (-1 !== e2 && a[e2].props.format && a[e2].props.format.type) {
|
|
153
152
|
const t2 = {};
|
|
154
|
-
t2[r] =
|
|
155
|
-
const s2 = formatColContent(t2,
|
|
156
|
-
Number.isNaN(s2) || (
|
|
153
|
+
t2[r] = n;
|
|
154
|
+
const s2 = formatColContent(t2, a[e2].props.format, a[e2], o, {});
|
|
155
|
+
Number.isNaN(s2) || (n = ` ${s2}`);
|
|
157
156
|
}
|
|
158
157
|
}
|
|
159
|
-
return
|
|
158
|
+
return n;
|
|
160
159
|
}
|
|
161
160
|
function replacePlaceholders(e, t) {
|
|
162
161
|
if (e) return e.replace(/\$\{row\.(\w+)\}/g, (e2, r) => Object.prototype.hasOwnProperty.call(t, r) ? t[r] : "");
|
|
@@ -166,33 +165,31 @@ function getHeaderCellStyleUtil(e, t, r) {
|
|
|
166
165
|
const o = {};
|
|
167
166
|
e.column.property && ((_a = t.titleStyle) == null ? void 0 : _a.forEach((t2) => {
|
|
168
167
|
if (t2.field && t2.field.includes(e.column.property)) if (t2.scopeFunc) {
|
|
169
|
-
const
|
|
170
|
-
if (
|
|
171
|
-
false !==
|
|
172
|
-
} catch (
|
|
173
|
-
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
168
|
+
const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
169
|
+
if (a2) try {
|
|
170
|
+
false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
171
|
+
} catch (e2) {
|
|
174
172
|
}
|
|
175
173
|
} else copyStyle(o, t2);
|
|
176
174
|
}));
|
|
177
|
-
const
|
|
178
|
-
return
|
|
175
|
+
const a = getCellStyleUtil(e, t.cellTitleStyle, r);
|
|
176
|
+
return a && Object.assign(o, a), o;
|
|
179
177
|
}
|
|
180
178
|
function getRowStyleUtil(e, t, r) {
|
|
181
179
|
const o = {};
|
|
182
180
|
if (r.configure.style.rowStyle) for (let t2 = 0; t2 < r.configure.style.rowStyle.length; t2++) {
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
185
|
-
const t3 = getCustomFunc(r.pageContext,
|
|
181
|
+
const a = r.configure.style.rowStyle[t2];
|
|
182
|
+
if (a.scopeFunc) {
|
|
183
|
+
const t3 = getCustomFunc(r.pageContext, a.scopeFunc);
|
|
186
184
|
if (t3) try {
|
|
187
185
|
const r2 = t3.apply(t3, [{ data: e }]);
|
|
188
|
-
null != r2 && false !== r2 && copyStyle(o,
|
|
189
|
-
} catch (
|
|
190
|
-
console.error("自定义函数脚本错误:", e, t4);
|
|
186
|
+
null != r2 && false !== r2 && copyStyle(o, a);
|
|
187
|
+
} catch (e2) {
|
|
191
188
|
}
|
|
192
|
-
} else if (
|
|
193
|
-
const t3 = ExpressionEvaluator.evaluate(r.pageContext,
|
|
194
|
-
(t3 || void 0 === t3) && copyStyle(o,
|
|
195
|
-
} else copyStyle(o,
|
|
189
|
+
} else if (a.matchingCondition) {
|
|
190
|
+
const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
191
|
+
(t3 || void 0 === t3) && copyStyle(o, a);
|
|
192
|
+
} else copyStyle(o, a);
|
|
196
193
|
}
|
|
197
194
|
if (t && t.length > 0 && -1 !== t.indexOf(e.rowIndex)) {
|
|
198
195
|
const e2 = {};
|
|
@@ -205,19 +202,18 @@ function getRowStyleUtil(e, t, r) {
|
|
|
205
202
|
}
|
|
206
203
|
function getCellStyleUtil(e, t, r) {
|
|
207
204
|
const o = {};
|
|
208
|
-
if (t) for (let
|
|
209
|
-
const
|
|
210
|
-
if (isSetStyle(
|
|
211
|
-
const t2 = getCustomFunc(r.pageContext,
|
|
205
|
+
if (t) for (let a = 0; a < t.length; a++) {
|
|
206
|
+
const n = t[a];
|
|
207
|
+
if (isSetStyle(n)) if (n.scopeFunc) {
|
|
208
|
+
const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
212
209
|
if (t2) try {
|
|
213
|
-
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o,
|
|
214
|
-
} catch (
|
|
215
|
-
console.error("自定义函数脚本错误:", e, t3);
|
|
210
|
+
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
|
|
211
|
+
} catch (e2) {
|
|
216
212
|
}
|
|
217
|
-
} else if (
|
|
218
|
-
const t2 = ExpressionEvaluator.evaluate(r.pageContext,
|
|
219
|
-
(t2 || void 0 === t2) && copyStyle(o,
|
|
220
|
-
} else copyStyle(o,
|
|
213
|
+
} else if (n.matchingCondition) {
|
|
214
|
+
const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
215
|
+
(t2 || void 0 === t2) && copyStyle(o, n);
|
|
216
|
+
} else copyStyle(o, n);
|
|
221
217
|
}
|
|
222
218
|
return o;
|
|
223
219
|
}
|
|
@@ -229,35 +225,35 @@ function copyStyle(e, t) {
|
|
|
229
225
|
Object.assign(e, t.style), t.customStyle && Object.assign(e, JSON.parse(t.customStyle));
|
|
230
226
|
}
|
|
231
227
|
function rowDataToColumn(e, t, r) {
|
|
232
|
-
const o = t.props.dataOrigin.groupField,
|
|
228
|
+
const o = t.props.dataOrigin.groupField, a = t.props.dataOrigin.rowToColumn.titleColumns, n = t.props.dataOrigin.rowToColumn.dataColumns, s = [], l = {};
|
|
233
229
|
if (o && o.length > 0) e.forEach((e2) => {
|
|
234
230
|
const t2 = o.map((t3) => e2[t3]).join("|");
|
|
235
231
|
if (!l[t2]) {
|
|
236
232
|
const r2 = {};
|
|
237
233
|
o.forEach((t3) => r2[t3] = e2[t3]), l[t2] = r2, s.push(r2);
|
|
238
234
|
}
|
|
239
|
-
|
|
240
|
-
const o2 = `${
|
|
235
|
+
n.forEach((r2) => {
|
|
236
|
+
const o2 = `${a.map((t3) => e2[t3]).join("")}${r2}`;
|
|
241
237
|
l[t2][o2] = e2[r2];
|
|
242
238
|
});
|
|
243
239
|
});
|
|
244
240
|
else {
|
|
245
241
|
const t2 = [];
|
|
246
242
|
e.forEach((e2) => {
|
|
247
|
-
|
|
243
|
+
a.forEach((r2) => {
|
|
248
244
|
e2[r2] && t2.push(e2[r2]);
|
|
249
245
|
});
|
|
250
|
-
}),
|
|
251
|
-
const o2 = {},
|
|
246
|
+
}), n.forEach((t3) => {
|
|
247
|
+
const o2 = {}, n2 = r.find((e2) => {
|
|
252
248
|
var _a, _b;
|
|
253
249
|
return ((_b = (_a = e2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.prop) === t3;
|
|
254
250
|
});
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
const
|
|
258
|
-
if (!
|
|
259
|
-
const
|
|
260
|
-
o2[
|
|
251
|
+
n2 && (o2.$GroupColumn = n2.props.base.name), e.forEach((e2) => {
|
|
252
|
+
a.forEach((r2) => {
|
|
253
|
+
const a2 = e2[r2];
|
|
254
|
+
if (!a2) return;
|
|
255
|
+
const n3 = e2[t3];
|
|
256
|
+
o2[a2] = n3;
|
|
261
257
|
});
|
|
262
258
|
}), s.push(o2);
|
|
263
259
|
});
|
|
@@ -265,9 +261,9 @@ function rowDataToColumn(e, t, r) {
|
|
|
265
261
|
return s;
|
|
266
262
|
}
|
|
267
263
|
function colDataToRow(e, t) {
|
|
268
|
-
const r = t.props.dataOrigin.groupField, o = t.props.dataOrigin.columnToRow.titleColumns,
|
|
264
|
+
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;
|
|
269
265
|
if (0 === e.length) return e;
|
|
270
|
-
const l = [], i = groupBy(e, r), c =
|
|
266
|
+
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) => {
|
|
271
267
|
e2[r2] = t2.prop;
|
|
272
268
|
}), e2), {});
|
|
273
269
|
return i.forEach((e2) => {
|
|
@@ -275,14 +271,14 @@ function colDataToRow(e, t) {
|
|
|
275
271
|
const i2 = c.prop, p = {};
|
|
276
272
|
if (r.forEach((t3) => {
|
|
277
273
|
p[t3] = e2[t3];
|
|
278
|
-
}), p[i2] = e2[t2],
|
|
274
|
+
}), p[i2] = e2[t2], a.length > 1) {
|
|
279
275
|
const r2 = s.find((e3) => e3.props.includes(t2));
|
|
280
276
|
r2 && r2.props.length > 1 && r2.props.forEach((r3) => {
|
|
281
277
|
r3 !== t2 && u[r3] && (p[u[r3]] = e2[r3]);
|
|
282
278
|
});
|
|
283
279
|
}
|
|
284
280
|
o.forEach((e3) => {
|
|
285
|
-
const r2 =
|
|
281
|
+
const r2 = n.filter((t3) => t3.relatedTitle === e3.prop);
|
|
286
282
|
let o2 = false;
|
|
287
283
|
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
288
284
|
if (r3.columns.includes(t2)) return p[e3.prop] = r3.label, void (o2 = true);
|
|
@@ -292,25 +288,25 @@ function colDataToRow(e, t) {
|
|
|
292
288
|
}), l;
|
|
293
289
|
}
|
|
294
290
|
function getColumnToRowTableConfig(e) {
|
|
295
|
-
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns,
|
|
291
|
+
const t = e.items, r = e.props.dataOrigin.groupField, o = e.props.dataOrigin.columnToRow.titleColumns, a = e.props.dataOrigin.columnToRow.dataColumns, n = [];
|
|
296
292
|
r && r.length > 0 && r.forEach((e2) => {
|
|
297
293
|
if (t) {
|
|
298
294
|
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
299
|
-
r2 &&
|
|
295
|
+
r2 && n.push(r2);
|
|
300
296
|
}
|
|
301
297
|
});
|
|
302
|
-
return [...o, ...
|
|
298
|
+
return [...o, ...a].forEach((e2) => {
|
|
303
299
|
if (t) {
|
|
304
300
|
const r2 = t.find((t2) => t2.props.base.prop === e2);
|
|
305
|
-
r2 ?
|
|
301
|
+
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: "" } } } });
|
|
306
302
|
}
|
|
307
|
-
}),
|
|
303
|
+
}), n;
|
|
308
304
|
}
|
|
309
305
|
function groupBy(e, t) {
|
|
310
306
|
const r = {};
|
|
311
307
|
return e.forEach((e2) => {
|
|
312
308
|
const o = t.map((t2) => e2[t2]).join("|");
|
|
313
|
-
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2,
|
|
309
|
+
r[o] || (r[o] = { ...e2, records: [] }, t.forEach((t2, a) => {
|
|
314
310
|
r[o][t2] = e2[t2];
|
|
315
311
|
})), r[o].records.push(e2);
|
|
316
312
|
}), Object.values(r).map((e2) => ({ ...e2, records: void 0 }));
|
|
@@ -338,7 +334,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
338
334
|
r += Number(e2[t]);
|
|
339
335
|
});
|
|
340
336
|
} catch (e2) {
|
|
341
|
-
|
|
337
|
+
r = 0;
|
|
342
338
|
}
|
|
343
339
|
totalValueMap[e] = r;
|
|
344
340
|
} 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));
|
|
@@ -350,7 +346,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
350
346
|
try {
|
|
351
347
|
data[key] = eval(expr);
|
|
352
348
|
} catch (e) {
|
|
353
|
-
|
|
349
|
+
data[key] = 0;
|
|
354
350
|
}
|
|
355
351
|
});
|
|
356
352
|
});
|
|
@@ -358,19 +354,19 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
358
354
|
function getFieldName(e) {
|
|
359
355
|
return e.substring(6, e.length - 1);
|
|
360
356
|
}
|
|
361
|
-
function formatColContent(e, t, r, o,
|
|
362
|
-
const
|
|
357
|
+
function formatColContent(e, t, r, o, a) {
|
|
358
|
+
const n = e[r.props.base.prop];
|
|
363
359
|
switch (t.type) {
|
|
364
360
|
case "number":
|
|
365
|
-
return formatNumber(
|
|
361
|
+
return formatNumber(n, t);
|
|
366
362
|
case "currency":
|
|
367
|
-
return formatCurrency(
|
|
363
|
+
return formatCurrency(n, t);
|
|
368
364
|
case "percent":
|
|
369
|
-
return formatPercent(
|
|
365
|
+
return formatPercent(n, t);
|
|
370
366
|
case "custom":
|
|
371
|
-
return formatCustomFunc(e, t, r, o,
|
|
367
|
+
return formatCustomFunc(e, t, r, o, a);
|
|
372
368
|
default:
|
|
373
|
-
return
|
|
369
|
+
return n;
|
|
374
370
|
}
|
|
375
371
|
}
|
|
376
372
|
function formatNumber(e, t) {
|
|
@@ -385,29 +381,28 @@ function formatPercent(e, t) {
|
|
|
385
381
|
let r = e;
|
|
386
382
|
return r || (r = 0, e = 0), t.decimalDigit && (r = Number(e).toFixed(t.decimalDigit)), r + " %";
|
|
387
383
|
}
|
|
388
|
-
function formatCustomFunc(e, t, r, o,
|
|
389
|
-
const
|
|
390
|
-
if (
|
|
384
|
+
function formatCustomFunc(e, t, r, o, a) {
|
|
385
|
+
const n = getCustomFunc(o, t.customFunc);
|
|
386
|
+
if (n) {
|
|
391
387
|
try {
|
|
392
|
-
return
|
|
393
|
-
} catch (
|
|
394
|
-
console.error("自定义函数脚本错误:", e, t2);
|
|
388
|
+
return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
|
|
389
|
+
} catch (e2) {
|
|
395
390
|
}
|
|
396
391
|
return "";
|
|
397
392
|
}
|
|
398
393
|
}
|
|
399
|
-
function mergeRowByProperty(e, t, r, o,
|
|
400
|
-
const
|
|
394
|
+
function mergeRowByProperty(e, t, r, o, a) {
|
|
395
|
+
const n = e[o];
|
|
401
396
|
let s = 1, l = true;
|
|
402
397
|
for (let e2 = r - 1; e2 >= 0; e2--) {
|
|
403
|
-
if (
|
|
398
|
+
if (a[e2][o] === n) {
|
|
404
399
|
l = false;
|
|
405
400
|
break;
|
|
406
401
|
}
|
|
407
402
|
break;
|
|
408
403
|
}
|
|
409
404
|
if (!l) return [0, 0];
|
|
410
|
-
for (let e2 = r + 1; e2 <
|
|
405
|
+
for (let e2 = r + 1; e2 < a.length && a[e2][o] === n; e2++) s++;
|
|
411
406
|
return [s, 1];
|
|
412
407
|
}
|
|
413
408
|
export {
|
|
@@ -186,9 +186,8 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
186
186
|
let t2 = e4.property;
|
|
187
187
|
"index" === e4.type && (t2 = "$index");
|
|
188
188
|
const i2 = se.value[t2].label;
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
if (ce.value[e4.property]) {
|
|
189
|
+
n2[o3] = C("div", {}, [A(i2, r2)]);
|
|
190
|
+
} else if (ce.value[e4.property]) {
|
|
192
191
|
const t2 = r2.filter((e5, o4) => !fe.includes(o4));
|
|
193
192
|
n2[o3] = z(ce.value[e4.property], t2, e4.property, Q.pageContext, ve.value);
|
|
194
193
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, createBlock as n, openBlock as
|
|
2
|
-
import { getRuntimeComponentByName as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
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
|
|
8
|
+
return v2({ renderComponent: async function(e3, o2) {
|
|
9
9
|
try {
|
|
10
|
-
|
|
11
|
-
const n2 =
|
|
12
|
-
|
|
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
|
-
|
|
14
|
+
m.value = c;
|
|
15
15
|
}
|
|
16
|
-
} }), (e3, o2) => (
|
|
16
|
+
} }), (e3, o2) => (t(), n(l(m.value), u(p.value, { onDestroy: f }), null, 16));
|
|
17
17
|
} });
|
|
18
18
|
export {
|
|
19
|
-
|
|
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
|
|
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),
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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:
|
|
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 {
|
package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js
CHANGED
|
@@ -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)]), _:
|
|
30
|
+
} }, { default: u(() => [s(y2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
31
31
|
};
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
@@ -25,9 +25,9 @@ const R = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
|
|
|
25
25
|
((_b2 = (_a2 = z.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.openCardConditions) && z.configure.props.base.openCardConditions.length > 0 && (_(z.pageContext, z.configure.props.base.openCardConditions) ? A.value = true : A.value = false), t(() => {
|
|
26
26
|
j(null, z.pageContext, z.configure, { componentRef: q.value, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
27
27
|
});
|
|
28
|
-
}), R2({ isCardContextShow: A }), (
|
|
29
|
-
const
|
|
30
|
-
return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(
|
|
28
|
+
}), R2({ isCardContextShow: A }), (e3, o2) => {
|
|
29
|
+
const n2 = r("el-link");
|
|
30
|
+
return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(e3.configure.items, (o3, n3) => (a(), s(T, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: g(() => [f("div", { class: "yx-card-box-view-header", onClick: J }, [f("div", { class: "yx-card-box-view-title", style: u(l(H)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (a(), s(l(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(D.value), 1)], 4), E.value ? (a(), s(n2, { key: 0, underline: false, icon: A.value ? l(k) : l(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
31
31
|
};
|
|
32
32
|
} });
|
|
33
33
|
export {
|
package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js
CHANGED
|
@@ -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
|
-
}), (
|
|
15
|
-
const
|
|
16
|
-
return u(), i(
|
|
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 {
|
package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js
CHANGED
|
@@ -17,9 +17,9 @@ const h = e({ __name: "container-runtime", props: { pageContext: {}, configure:
|
|
|
17
17
|
I.value = false;
|
|
18
18
|
}, openRightAside: function() {
|
|
19
19
|
I.value = true;
|
|
20
|
-
} }), (
|
|
21
|
-
const
|
|
22
|
-
return i(), u(
|
|
20
|
+
} }), (e3, t2) => {
|
|
21
|
+
const n2 = o("el-aside"), l2 = o("el-icon"), _2 = o("el-main"), h3 = o("el-container");
|
|
22
|
+
return i(), u(h3, { ref_key: "thisRef", ref: L }, { default: s(() => [e3.configure.props.useLeft ? a((i(), u(n2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e3.configure.props.useLeft && e3.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: t2[0] || (t2[0] = (e4) => D.value = !D.value) }, [c(l2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(_2, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? a((i(), u(n2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
|
|
23
23
|
};
|
|
24
24
|
} });
|
|
25
25
|
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
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return o(), i(
|
|
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 {
|
|
@@ -15,9 +15,9 @@ const P = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
|
|
|
15
15
|
o(() => {
|
|
16
16
|
C(null, P2.pageContext, P2.configure, "afterFormLoad", { componentRef: R.value, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
|
|
17
17
|
});
|
|
18
|
-
}), (
|
|
19
|
-
const
|
|
20
|
-
return l(), n("div", null, [r(
|
|
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"])]);
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|