super-page-runtime 2.3.33 → 2.3.34-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 +131 -131
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
- package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
- package/dist/es/components/runtime/utils/events/event-util.js +120 -120
- package/dist/es/components/runtime/utils/events/print-label.js +25 -27
- package/dist/es/components/runtime/utils/events/standard-event.js +726 -738
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
- package/dist/es/components/runtime/utils/page-init-util.js +126 -131
- package/dist/es/components/runtime/utils/page-store.js +21 -21
- package/dist/es/components/runtime/utils/table-utils.js +4 -4
- 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 +10 -14
- 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 +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +68 -69
- 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 +23 -27
- 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 +1 -3
- 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 +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
- 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 +45 -46
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -4
- 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 +28 -28
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
- 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 +9 -9
- 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 +59 -60
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +11 -12
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +18 -19
- 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 +16 -18
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- 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 +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +185 -186
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as r, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as o, computed as r, onMounted as t, watch as n, resolveComponent as i, createElementBlock as a, openBlock as u, normalizeClass as p, normalizeStyle as l, unref as s, withDirectives as c, createVNode as g, createBlock as f, createCommentVNode as m, vShow as d, withCtx as h, Fragment as v, renderList as y, h as C } from "vue";
|
|
2
2
|
import b from "../common/common-chart-header.vue.js";
|
|
3
3
|
import { getSizeConfig as x, getChartDatasFromPage as O, getValueFromVariable as S, caculateShowCondition as w, isPromise as E, setValueForVariableName as j, updateChartDatasourcesByComponent as $ } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleChartEvent as F, getCustomFunc as k } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import N from "./group-column.vue.js";
|
|
6
6
|
import I from "./normal-column.vue.js";
|
|
7
7
|
import R from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as T, getSummaryDataColumn as H, rowDataToColumn as D, getColumnToRowTableConfig as J, colDataToRow as U, computeFormula as
|
|
8
|
+
import { getSummaryTitleColumn as T, getSummaryDataColumn as H, rowDataToColumn as D, getColumnToRowTableConfig as J, colDataToRow as U, computeFormula as _, getNewColumnConfig as z, summaryStatistics as A, replacePlaceholders as P, getIndexColumn as V, getHeaderCellStyleUtil as G, getRowStyleUtil as K, getCellStyleUtil as L, mergeRowByProperty as q, formatColContent as B } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as M } from "../../../../utils/common-util.js";
|
|
10
10
|
const Q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: Q2 }) {
|
|
11
11
|
var _a;
|
|
12
|
-
const W = e2, X = W.configure.runtime ? W.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null),
|
|
12
|
+
const W = e2, X = W.configure.runtime ? W.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null), te = o(X.props.isEnableGroupHeader), ne = o([]), ie = o([]), ae = o([]), ue = o([]), pe = o({}), le = o(false), se = o({}), ce = o({}), ge = o({}), fe = [], me = o({}), de = o({}), he = o(null), ve = r(() => te.value ? ue.value.filter((e3) => !e3.isLeaf || De(pe[e3.columnUuid])) : ie.value.filter((e3) => De(e3))), ye = o(0);
|
|
13
13
|
let Ce = [];
|
|
14
14
|
if (!W.configure.props.modelCustom) {
|
|
15
|
-
if (
|
|
15
|
+
if (te.value) {
|
|
16
16
|
const e3 = [];
|
|
17
17
|
W.configure.props.groupHeaders.forEach((o2) => {
|
|
18
18
|
o2.parentUuid || e3.push(o2);
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), ue.value = e3, function() {
|
|
20
20
|
if (W.configure.props.base.showIndex) {
|
|
21
21
|
ue.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
23
|
-
e4 && (
|
|
22
|
+
const e4 = V();
|
|
23
|
+
e4 && (pe.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
26
26
|
} else ie.value = W.configure.items;
|
|
27
27
|
(_a = W.configure.items) == null ? void 0 : _a.forEach((e3) => {
|
|
28
|
-
|
|
28
|
+
pe.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (me.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (de.value[e3.props.base.prop] = e3.formula);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
le.value = W.configure.props.base.showSummary, (le.value || W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0) && (se.value = T(W.configure), le.value && (ce.value = H(W.configure, "table")), W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0 && (ge.value = H(W.configure, "group")));
|
|
32
32
|
let be = 300, xe = x(W.pageContext, W.configure);
|
|
33
33
|
function Oe(e3) {
|
|
34
|
-
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true
|
|
35
|
-
const o2 =
|
|
34
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return void (e3.hasRender = true);
|
|
35
|
+
const o2 = te.value ? ue.value : ve;
|
|
36
36
|
F(W.pageContext, W.configure, "beforeUpdateChart", o2, { resultData: e3 }), function(e4) {
|
|
37
37
|
var _a2;
|
|
38
38
|
Je(e4), "service" === W.configure.props.dataOrigin.dataSource && e4.result ? Ce = e4.result[W.configure.props.dataOrigin.service.serviceDataField] : "variable" === W.configure.props.dataOrigin.dataSource && (Ce = S(W.pageContext.entity, W.configure.props.dataOrigin.variable));
|
|
@@ -41,9 +41,9 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
41
41
|
if ("fix" === W.configure.props.dataOrigin.itemNumSource) o3 = W.configure.props.dataOrigin.itemNumFix;
|
|
42
42
|
else if ("variable" === W.configure.props.dataOrigin.itemNumSource) {
|
|
43
43
|
o3 = Number(S(W.pageContext.entity, W.configure.props.dataOrigin.itemNumVariable));
|
|
44
|
-
const r2 = W.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/),
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const r2 = W.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(Ce));
|
|
45
|
+
n(() => t2.reduce((e5, o4) => e5[o4], W.pageContext.entity), (o4) => {
|
|
46
|
+
Se(o4, i2, e4);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
Se(o3, Ce, e4);
|
|
@@ -53,21 +53,21 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
53
53
|
function Se(e3, o2, r2) {
|
|
54
54
|
var _a2;
|
|
55
55
|
if (e3 && e3 < o2.length) {
|
|
56
|
-
let
|
|
57
|
-
if (((_a2 = W.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0)
|
|
56
|
+
let t2 = [];
|
|
57
|
+
if (((_a2 = W.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) t2 = W.configure.props.dataOrigin.limitCountColumns;
|
|
58
58
|
else {
|
|
59
59
|
ie.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
|
|
60
|
-
|
|
60
|
+
t2.push(e4.props.base.prop);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
if ((
|
|
64
|
-
const r3 = o2.slice(e3 - 1, o2.length),
|
|
63
|
+
if ((t2 == null ? void 0 : t2.length) > 0) {
|
|
64
|
+
const r3 = o2.slice(e3 - 1, o2.length), n2 = {};
|
|
65
65
|
let i2 = ie.value[0].props.base.prop;
|
|
66
66
|
"$index" === i2 && (i2 = ie.value[1].props.base.prop), r3.forEach((e4) => {
|
|
67
|
-
|
|
68
|
-
void 0 ===
|
|
67
|
+
t2.forEach((o3) => {
|
|
68
|
+
void 0 === n2[o3] && (n2[o3] = 0), n2[o3] = n2[o3] + e4[o3];
|
|
69
69
|
});
|
|
70
|
-
}), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)),
|
|
70
|
+
}), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), n2[i2] = W.configure.props.dataOrigin.overItemAlias, o2.push(n2);
|
|
71
71
|
}
|
|
72
72
|
we(o2, r2);
|
|
73
73
|
} else we(o2, r2);
|
|
@@ -75,32 +75,32 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
75
75
|
function we(e3, o2) {
|
|
76
76
|
var _a2, _b, _c, _d, _e, _f, _g;
|
|
77
77
|
if (Ee("rowToColumn")) {
|
|
78
|
-
if (ae.value = JSON.parse(JSON.stringify(W.configure.items)), e3 = D(e3, W.configure, ae.value), !
|
|
78
|
+
if (ae.value = JSON.parse(JSON.stringify(W.configure.items)), e3 = D(e3, W.configure, ae.value), !te.value) {
|
|
79
79
|
const o3 = function(e4, o4, r2) {
|
|
80
|
-
const
|
|
80
|
+
const t2 = W.configure.props.dataOrigin.rowToColumn.titleColumns, n2 = W.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
81
81
|
if ((!i2 || 0 === i2.length) && r2.length > 0) {
|
|
82
82
|
const e5 = [];
|
|
83
|
-
return e5.push(
|
|
83
|
+
return e5.push(z("$GroupColumn", W.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(r2[0]).forEach((o5, r3) => {
|
|
84
84
|
if ("$GroupColumn" === o5) return;
|
|
85
|
-
const
|
|
86
|
-
e5.push(
|
|
85
|
+
const t3 = z(o5, o5, r3 + 1, "string");
|
|
86
|
+
e5.push(t3);
|
|
87
87
|
}), e5;
|
|
88
88
|
}
|
|
89
89
|
{
|
|
90
|
-
const e5 = [...o4].filter((e6) => !
|
|
90
|
+
const e5 = [...o4].filter((e6) => !t2.includes(e6.props.base.prop) && !n2.includes(e6.props.base.prop)), i3 = new RegExp(`(${n2.join("|")})$`), a2 = /* @__PURE__ */ new Set();
|
|
91
91
|
return r2.forEach((e6) => {
|
|
92
92
|
Object.keys(e6).forEach((e7) => {
|
|
93
|
-
if (
|
|
93
|
+
if (n2.some((o5) => e7.includes(o5))) {
|
|
94
94
|
const o5 = e7.split(i3)[0];
|
|
95
95
|
a2.add(o5);
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
}), a2.forEach((o5) => {
|
|
99
|
-
|
|
99
|
+
n2.forEach((t3) => {
|
|
100
100
|
var _a3;
|
|
101
|
-
let
|
|
102
|
-
null ==
|
|
103
|
-
const i4 =
|
|
101
|
+
let n3 = (_a3 = ie.value.find((e6) => e6.props.base.prop === t3)) == null ? void 0 : _a3.props.base.name;
|
|
102
|
+
null == n3 && (n3 = "");
|
|
103
|
+
const i4 = z(`${o5}${t3}`, `${o5}${n3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${t3}`] ? "number" : "string");
|
|
104
104
|
e5.push(i4);
|
|
105
105
|
});
|
|
106
106
|
}), e5;
|
|
@@ -108,7 +108,7 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
108
108
|
}(W.configure, ae.value, e3);
|
|
109
109
|
ie.value = o3;
|
|
110
110
|
}
|
|
111
|
-
} else Ee("columnToRow") && (
|
|
111
|
+
} else Ee("columnToRow") && (te.value || (ie.value = J(W.configure)), e3 = U(e3, W.configure));
|
|
112
112
|
if ((_b = (_a2 = W.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
|
|
113
113
|
const o3 = k(W.pageContext, W.configure.props.dataOrigin.dataFormatting);
|
|
114
114
|
if (o3) {
|
|
@@ -116,14 +116,14 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
116
116
|
r2 && (e3 = r2);
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 &&
|
|
120
|
-
"frontend" === W.configure.pageination.type ? (ye.value = Ce.length, Te(1, W.configure.pageination.pageSize)) : "backend" === W.configure.pageination.type && (
|
|
121
|
-
}(o2) :
|
|
119
|
+
if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 && _(de.value, e3, W.pageContext.entity), ((_c = W.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
|
|
120
|
+
"frontend" === W.configure.pageination.type ? (ye.value = Ce.length, Te(1, W.configure.pageination.pageSize)) : "backend" === W.configure.pageination.type && (ne.value = Ce, W.configure.pageination.totalFrom && (ye.value = e4.result[W.configure.pageination.totalFrom]));
|
|
121
|
+
}(o2) : ne.value = e3, ((_e = (_d = W.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = W.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
|
|
122
122
|
const e4 = W.configure.props.highOrder.groupField;
|
|
123
|
-
|
|
123
|
+
ne.value = function(e5, o3) {
|
|
124
124
|
var _a3, _b2;
|
|
125
125
|
if (0 === ge.value.length) return e5;
|
|
126
|
-
const r2 = [],
|
|
126
|
+
const r2 = [], t2 = (_a3 = W.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), n2 = (_b2 = W.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
|
|
127
127
|
e5.forEach((e6) => {
|
|
128
128
|
const r3 = o3.map((o4) => e6[o4]).join("|");
|
|
129
129
|
i2[r3] || (i2[r3] = []), i2[r3].push(e6);
|
|
@@ -131,20 +131,20 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
131
131
|
const a2 = Object.values(i2);
|
|
132
132
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
133
133
|
const o4 = a2[e6], i3 = {};
|
|
134
|
-
|
|
135
|
-
const r3 = e7.props.base.prop,
|
|
136
|
-
i3[r3] =
|
|
137
|
-
}), r2.push(...o4),
|
|
134
|
+
n2 == null ? void 0 : n2.forEach((e7) => {
|
|
135
|
+
const r3 = e7.props.base.prop, t3 = A(ge.value[r3], o4, r3, W.pageContext);
|
|
136
|
+
i3[r3] = t3;
|
|
137
|
+
}), r2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
|
|
138
138
|
const r3 = e7.props.base.prop;
|
|
139
|
-
i3[r3] =
|
|
139
|
+
i3[r3] = P(e7.props.base.summaryTitle, o4[0]);
|
|
140
140
|
}), r2.push(i3), fe.push(r2.length - 1);
|
|
141
141
|
}
|
|
142
142
|
return r2;
|
|
143
|
-
}(
|
|
143
|
+
}(ne.value, e4);
|
|
144
144
|
}
|
|
145
145
|
!function(e4) {
|
|
146
146
|
if (W.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
147
|
-
const o3 =
|
|
147
|
+
const o3 = V();
|
|
148
148
|
o3 && e4.unshift(o3);
|
|
149
149
|
}
|
|
150
150
|
}(ie.value);
|
|
@@ -163,14 +163,14 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
163
163
|
const o2 = me.value[e3.column.property] ? me.value[e3.column.property].cellStyle : null;
|
|
164
164
|
return L(e3, o2, W);
|
|
165
165
|
}
|
|
166
|
-
xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")),
|
|
166
|
+
xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")), t(() => {
|
|
167
167
|
const e3 = O(W.pageContext, W.configure);
|
|
168
168
|
if (e3) Oe(e3);
|
|
169
169
|
else if ("variable" === W.configure.props.dataOrigin.dataSource) {
|
|
170
170
|
!function() {
|
|
171
171
|
const e4 = W.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
|
|
172
|
-
|
|
173
|
-
|
|
172
|
+
n(() => o3.reduce((e5, o4) => e5[o4], W.pageContext.entity), (e5) => {
|
|
173
|
+
e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (ne.value = [], W.configure.props.modelCustom ? Je(null) : te.value ? ue.value = W.configure.props.groupHeaders : ie.value = W.configure.items);
|
|
174
174
|
});
|
|
175
175
|
}();
|
|
176
176
|
const o2 = S(W.pageContext.entity, W.configure.props.dataOrigin.variable);
|
|
@@ -178,27 +178,26 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
178
|
}
|
|
179
179
|
});
|
|
180
180
|
const ke = (e3) => {
|
|
181
|
-
const { columns: o2, data: r2 } = e3,
|
|
181
|
+
const { columns: o2, data: r2 } = e3, t2 = [];
|
|
182
182
|
return o2.forEach((e4, o3) => {
|
|
183
183
|
if (se.value[e4.property]) {
|
|
184
|
-
const
|
|
185
|
-
|
|
184
|
+
const n2 = se.value[e4.property].label;
|
|
185
|
+
t2[o3] = C("div", {}, [P(n2, r2)]);
|
|
186
|
+
} else if (ce.value[e4.property]) {
|
|
187
|
+
const n2 = r2.filter((e5, o4) => !fe.includes(o4));
|
|
188
|
+
t2[o3] = A(ce.value[e4.property], n2, e4.property, W.pageContext);
|
|
186
189
|
}
|
|
187
|
-
|
|
188
|
-
const t2 = r2.filter((e5, o4) => !fe.includes(o4));
|
|
189
|
-
n2[o3] = z(ce.value[e4.property], t2, e4.property, W.pageContext);
|
|
190
|
-
}
|
|
191
|
-
}), n2;
|
|
190
|
+
}), t2;
|
|
192
191
|
};
|
|
193
|
-
function Ne({ row: e3, column: o2, rowIndex: r2, columnIndex:
|
|
194
|
-
const
|
|
192
|
+
function Ne({ row: e3, column: o2, rowIndex: r2, columnIndex: t2 }) {
|
|
193
|
+
const n2 = o2.property, i2 = W.configure.props.highOrder;
|
|
195
194
|
if (i2.scopeFunc) {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const i3 =
|
|
195
|
+
const n3 = k(W.pageContext, i2.scopeFunc);
|
|
196
|
+
if (n3) {
|
|
197
|
+
const i3 = n3.apply(n3, [{ tableData: ne.value, row: e3, column: o2, rowIndex: r2, columnIndex: t2 }]);
|
|
199
198
|
if (i3) return i3;
|
|
200
199
|
}
|
|
201
|
-
} else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(
|
|
200
|
+
} else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(n2)) return q(e3, o2, r2, n2, ne.value);
|
|
202
201
|
}
|
|
203
202
|
function Ie(e3, o2) {
|
|
204
203
|
"frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
|
|
@@ -207,7 +206,7 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
207
206
|
"frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
|
|
208
207
|
}
|
|
209
208
|
function Te(e3, o2) {
|
|
210
|
-
Ce && (
|
|
209
|
+
Ce && (ne.value = Ce.slice((e3 - 1) * o2, e3 * o2));
|
|
211
210
|
}
|
|
212
211
|
function He(e3, o2) {
|
|
213
212
|
W.configure.pageination.currentPageSet && j(W.pageContext.entity, W.configure.pageination.currentPageSet, e3), W.configure.pageination.pageSizeSet && j(W.pageContext.entity, W.configure.pageination.pageSizeSet, o2), $(W.pageContext, W.configure.uuid);
|
|
@@ -229,19 +228,19 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
229
228
|
}
|
|
230
229
|
function Ue(e3, o2, r2) {
|
|
231
230
|
e3.forEach((e4) => {
|
|
232
|
-
const
|
|
233
|
-
let i2 = { name:
|
|
231
|
+
const t2 = e4.props.base.prop, n2 = e4.props.base.name;
|
|
232
|
+
let i2 = { name: t2, label: n2, i18nKey: n2 };
|
|
234
233
|
e4.children && e4.children.length > 0 && (i2.children = [], Ue(e4.children, i2.children, r2)), e4.props.format && e4.props.format.type && r2.push(e4), o2.push(i2);
|
|
235
234
|
});
|
|
236
235
|
}
|
|
237
236
|
return Q2({ updateChartDatas: Oe, exportChart: function() {
|
|
238
237
|
let e3 = [], o2 = [];
|
|
239
|
-
o2 =
|
|
238
|
+
o2 = te.value ? W.configure.props.groupHeaders : ve.value;
|
|
240
239
|
let r2 = [];
|
|
241
240
|
Ue(o2, e3, r2);
|
|
242
241
|
return { isTable: true, dataArr: function(e4) {
|
|
243
242
|
let o3 = [];
|
|
244
|
-
|
|
243
|
+
ne.value && (o3 = M(ne.value), o3.forEach((o4) => {
|
|
245
244
|
e4.forEach((e5) => {
|
|
246
245
|
const r3 = B(o4, e5.props.format, e5, W.pageContext, W.configure);
|
|
247
246
|
o4[e5.props.base.prop] = r3;
|
|
@@ -250,8 +249,8 @@ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
250
249
|
return o3;
|
|
251
250
|
}(r2), columns: e3, title: oe == null ? void 0 : oe.title };
|
|
252
251
|
} }), (o2, r2) => {
|
|
253
|
-
const
|
|
254
|
-
return u(), a("div", { style:
|
|
252
|
+
const t2 = i("el-table");
|
|
253
|
+
return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex amb-chart-table"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(t2, { ref_key: "gridRef", ref: he, data: ne.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": je, "row-style": $e, "cell-style": Fe, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": ke, "span-method": Ne }, { default: h(() => [te.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(N, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: pe.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(ve.value, (o3, r3) => (u(), f(I, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(R, { key: 0, configure: e2.configure, "table-data": ne.value, total: ye.value, onPageChange: Ie, onPageSizeChange: Re }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
|
|
255
254
|
};
|
|
256
255
|
} });
|
|
257
256
|
export {
|
|
@@ -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,38 +1,34 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
2
|
-
import { packageTemplateFiles as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
const
|
|
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
|
+
import { packageTemplateFiles as s } from "../../../utils/common-util.js";
|
|
3
|
+
import { ElMessage as m } from "element-plus";
|
|
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 }) {
|
|
5
5
|
var _a, _b;
|
|
6
|
-
const f = e2,
|
|
7
|
-
function
|
|
8
|
-
let t2, l2;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const a2 = o2.indexOf(m), n2 = o2.indexOf(g);
|
|
12
|
-
return console.log("prefixIndex", a2), console.log("suffixIndex", n2), -1 !== a2 && -1 !== n2 ? (a2 > n2 ? (o2 = o2.substring(0, n2) + o2.substring(n2 + 1), console.log("non replacement value === newValue", o2)) : (t2 = o2.substring(a2 + 2, n2), l2 = o2.substring(a2, n2 + 1), console.log("field", t2), console.log("formatStr", l2), h.value.push(t2), console.log("fields", h.value), o2 = o2.replace(l2, ""), console.log("newValue", o2)), y(o2)) : h.value;
|
|
6
|
+
const f = e2, v = t(false), x = g2, b = t([]), h = t([]), C = (_a = f.configure.props) == null ? void 0 : _a.base, y = (_b = f.pageContext) == null ? void 0 : _b.entity.data;
|
|
7
|
+
function w(e3) {
|
|
8
|
+
let t2, a2, l2 = e3;
|
|
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), l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
13
11
|
}
|
|
14
12
|
function N(e3) {
|
|
15
|
-
|
|
13
|
+
x("export", f.configure, e3);
|
|
16
14
|
}
|
|
17
15
|
function O() {
|
|
18
|
-
|
|
16
|
+
x("close");
|
|
19
17
|
}
|
|
20
|
-
return
|
|
21
|
-
C.templateFiles && C.templateFiles.length > 0 ? b.value =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}(e3.templateName));
|
|
30
|
-
}), b.value && 0 !== b.value.length || (c({ message: "无符合条件可导出的模板!", type: "warning" }), v("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), v("close")) : x.value = true;
|
|
18
|
+
return a(() => {
|
|
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
|
+
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));
|
|
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;
|
|
31
27
|
}), (e3, t2) => {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
28
|
+
const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
|
|
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"]);
|
|
34
30
|
};
|
|
35
31
|
} });
|
|
36
32
|
export {
|
|
37
|
-
|
|
33
|
+
g as default
|
|
38
34
|
};
|
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 {
|
|
@@ -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
|
-
} }), (
|
|
23
|
-
const
|
|
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(
|
|
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 {
|
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
|
@@ -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
|
-
}), (
|
|
12
|
-
const
|
|
13
|
-
return i(), l(
|
|
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;
|
|
@@ -54,9 +53,8 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
54
53
|
}
|
|
55
54
|
return [window];
|
|
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 {
|
|
@@ -10,9 +10,9 @@ const b = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
|
|
|
10
10
|
i(() => {
|
|
11
11
|
C(null, b2.pageContext, b2.configure, "afterFormLoad", { componentRef: P.value, entity: b2.pageContext.entity.data, pageData: b2.pageContext.entity.page });
|
|
12
12
|
});
|
|
13
|
-
}), (
|
|
14
|
-
const
|
|
15
|
-
return s(), l("div", null, [a(
|
|
13
|
+
}), (e3, t2) => {
|
|
14
|
+
const o2 = n("el-form");
|
|
15
|
+
return s(), l("div", null, [a(o2, { 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(e3.configure.items, (t3, o3) => (s(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "style", "class"])]);
|
|
16
16
|
};
|
|
17
17
|
} });
|
|
18
18
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as
|
|
2
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as a, unref as c } from "vue";
|
|
2
|
+
import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
|
|
4
4
|
const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
|
|
5
5
|
const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
|
|
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
26
26
|
t2(n3);
|
|
27
27
|
} else n2(new Error("System not found"));
|
|
28
28
|
}).catch((e4) => {
|
|
29
|
-
|
|
29
|
+
n2(e4);
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
}
|
|
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
|
|
|
35
35
|
}
|
|
36
36
|
return n(() => {
|
|
37
37
|
o(() => {
|
|
38
|
-
|
|
38
|
+
l(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
|
|
39
39
|
});
|
|
40
40
|
}), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
|
|
41
41
|
m.value && m.value.contentWindow.location.reload();
|
|
42
|
-
} }), (e3, t2) => (
|
|
42
|
+
} }), (e3, t2) => (r(), i("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: a(["amb-widget-container-iframe", c(w)]), style: s(c(y)) }, null, 14, f));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
g as default
|