super-page-runtime 2.3.3 → 2.3.4
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
- package/dist/es/components/runtime/utils/charts/chart-util.js +26 -24
- package/dist/es/components/runtime/utils/events/event-util.js +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +475 -463
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +47 -44
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -17
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -19
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +37 -35
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +58 -57
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/home-chart.vue.js +25 -23
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +131 -130
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as
|
|
2
|
-
import { getCustomTheme as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as i, unref as c, withDirectives as u, createVNode as p, vShow as l } from "vue";
|
|
2
|
+
import { getCustomTheme as f, initChartOption as m, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import v from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as y } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { ScatterChart as V } from "echarts/charts";
|
|
9
|
-
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 = g(
|
|
9
|
+
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as O } from "echarts/components";
|
|
10
|
+
import b from "vue-echarts";
|
|
11
|
+
const A = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
+
y([R, V, _, j, w, I, k, O]);
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), P = H.configure.runtime ? H.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = H.configure.props ? H.configure.props : {}, J = f(G.customTheme);
|
|
14
|
+
m(H.configure, E), console.log("chartOption", E), o(() => {
|
|
15
|
+
const e3 = g(H.pageContext, H.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
q
|
|
20
|
+
q ? d(H.pageContext, [q], B.drillParams) : console.log("无数据源配置,不需要查询!");
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
t(B, () => {
|
|
23
23
|
K != B.groupValue && (K = B.groupValue, q && (q.services[0].groupValue = B.groupValue), L());
|
|
24
24
|
});
|
|
25
25
|
const M = B.monitorFields;
|
|
26
26
|
function N(e3) {
|
|
27
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender
|
|
27
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
28
|
+
e3.hasRender = true, C(H.pageContext, H.configure, E, e3), console.log("chartOption scatter", E);
|
|
28
29
|
}
|
|
29
|
-
return x(
|
|
30
|
-
return
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style:
|
|
30
|
+
return x(H.pageContext, M, L), A2({ updateChartDatas: N, exportChart: function() {
|
|
31
|
+
return h(D.value);
|
|
32
|
+
} }), (e3, r2) => (n(), a("div", { style: i(c(S)), class: s([c(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [u(p(v, { ref_key: "headerRef", ref: F, headerInfo: c(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[l, c(B).showHeader || e3.pageContext.showHomepageSearch]]), p(c(b), { ref_key: "chartRef", ref: D, theme: c(J), option: c(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
32
33
|
} });
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
A as default
|
|
35
36
|
};
|
|
@@ -5,7 +5,7 @@ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
|
|
|
5
5
|
import F from "./group-column.vue.js";
|
|
6
6
|
import k from "./normal-column.vue.js";
|
|
7
7
|
import I from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as
|
|
8
|
+
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as V, computeFormula as _, getNewColumnConfig as z, summaryStatistics as A, replacePlaceholders as D, getIndexColumn as J, getHeaderCellStyleUtil as P, getRowStyleUtil as U, getCellStyleUtil as G, formatColContent as K } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as L } 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;
|
|
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
|
|
20
20
|
if (B.configure.props.base.showIndex) {
|
|
21
21
|
re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
22
|
+
const e4 = J();
|
|
23
23
|
e4 && (te.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
@@ -31,7 +31,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
31
31
|
ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
|
|
32
32
|
let de = 300, he = b(B.pageContext, B.configure);
|
|
33
33
|
function ve(e3) {
|
|
34
|
-
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender
|
|
34
|
+
if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
|
|
35
|
+
!function(e4) {
|
|
35
36
|
var _a2;
|
|
36
37
|
Ne(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
37
38
|
if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
|
|
@@ -41,12 +42,12 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
41
42
|
o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
|
|
42
43
|
const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
|
|
43
44
|
r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
|
|
44
|
-
ye(o3, i2, e4);
|
|
45
|
+
console.log("统计表格监听数据变量的变化 newVal:", o3), ye(o3, i2, e4);
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
48
|
ye(o2, me, e4);
|
|
48
49
|
} else Ce(me, e4);
|
|
49
|
-
}(e3), e3.hasRender = true, X && (X.autoRefresh = false)
|
|
50
|
+
}(e3), e3.hasRender = true, X && (X.autoRefresh = false);
|
|
50
51
|
}
|
|
51
52
|
function ye(e3, o2, n2) {
|
|
52
53
|
var _a2;
|
|
@@ -78,9 +79,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
78
79
|
const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
79
80
|
if ((!i2 || 0 === i2.length) && n2.length > 0) {
|
|
80
81
|
const e5 = [];
|
|
81
|
-
return e5.push(
|
|
82
|
+
return e5.push(z("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
|
|
82
83
|
if ("$GroupColumn" === o5) return;
|
|
83
|
-
const r3 =
|
|
84
|
+
const r3 = z(o5, o5, n3 + 1, "string");
|
|
84
85
|
e5.push(r3);
|
|
85
86
|
}), e5;
|
|
86
87
|
}
|
|
@@ -96,7 +97,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
96
97
|
}), a2.forEach((o5) => {
|
|
97
98
|
t2.forEach((r3) => {
|
|
98
99
|
var _a3;
|
|
99
|
-
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 =
|
|
100
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = z(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
100
101
|
e5.push(i4);
|
|
101
102
|
});
|
|
102
103
|
}), e5;
|
|
@@ -104,7 +105,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
104
105
|
}(B.configure, ne.value, e3);
|
|
105
106
|
ne.value = o3;
|
|
106
107
|
}
|
|
107
|
-
} else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 =
|
|
108
|
+
} else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = V(e3, B.configure));
|
|
108
109
|
if (B.configure.props.dataOrigin.dataFormatting) {
|
|
109
110
|
const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
|
|
110
111
|
if (o3) {
|
|
@@ -112,7 +113,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
112
113
|
n2 && (e3 = n2);
|
|
113
114
|
}
|
|
114
115
|
}
|
|
115
|
-
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 &&
|
|
116
|
+
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && _(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
|
|
116
117
|
"frontend" === B.configure.pageination.type ? (fe.value = me.length, Fe(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
|
|
117
118
|
}(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
|
|
118
119
|
const e4 = B.configure.props.highOrder.groupField;
|
|
@@ -128,11 +129,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
128
129
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
129
130
|
const o4 = a2[e6], i3 = {};
|
|
130
131
|
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
131
|
-
const n3 = e7.props.base.prop, r3 =
|
|
132
|
+
const n3 = e7.props.base.prop, r3 = A(pe.value[n3], o4, n3, B.pageContext);
|
|
132
133
|
i3[n3] = r3;
|
|
133
134
|
}), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
|
|
134
135
|
const n3 = e7.props.base.prop;
|
|
135
|
-
i3[n3] =
|
|
136
|
+
i3[n3] = D(e7.props.base.summaryTitle, o4[0]);
|
|
136
137
|
}), n2.push(i3), le.push(n2.length - 1);
|
|
137
138
|
}
|
|
138
139
|
return n2;
|
|
@@ -140,7 +141,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
140
141
|
}
|
|
141
142
|
!function(e4) {
|
|
142
143
|
if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
143
|
-
const o3 =
|
|
144
|
+
const o3 = J();
|
|
144
145
|
o3 && e4.unshift(o3);
|
|
145
146
|
}
|
|
146
147
|
}(ne.value);
|
|
@@ -150,10 +151,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
150
151
|
}
|
|
151
152
|
function xe(e3) {
|
|
152
153
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
|
|
153
|
-
return
|
|
154
|
+
return P(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
|
|
154
155
|
}
|
|
155
156
|
function Oe(e3) {
|
|
156
|
-
return
|
|
157
|
+
return U(e3, le, B);
|
|
157
158
|
}
|
|
158
159
|
function Se(e3) {
|
|
159
160
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
@@ -166,7 +167,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
166
167
|
!function() {
|
|
167
168
|
const e4 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
|
|
168
169
|
r(() => o3.reduce((e5, o4) => e5[o4], B.pageContext.entity), (e5) => {
|
|
169
|
-
e5 ? ve(JSON.parse(JSON.stringify(e5))) : (oe.value = [], B.configure.props.modelCustom ? Ne(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
|
|
170
|
+
console.log("统计表格监听数据变量的变化 newVal:", e5), e5 ? ve(JSON.parse(JSON.stringify(e5))) : (oe.value = [], console.log("重置统计表格列配置"), B.configure.props.modelCustom ? Ne(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
|
|
170
171
|
});
|
|
171
172
|
}();
|
|
172
173
|
const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
|
|
@@ -178,10 +179,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
178
179
|
return o2.forEach((e4, o3) => {
|
|
179
180
|
if (ae.value[e4.property]) {
|
|
180
181
|
const t2 = ae.value[e4.property].label;
|
|
181
|
-
r2[o3] = y("div", {}, [
|
|
182
|
+
r2[o3] = y("div", {}, [D(t2, n2)]);
|
|
182
183
|
} else if (ue.value[e4.property]) {
|
|
183
184
|
const t2 = n2.filter((e5, o4) => !le.includes(o4));
|
|
184
|
-
r2[o3] =
|
|
185
|
+
r2[o3] = A(ue.value[e4.property], t2, e4.property, B.pageContext);
|
|
185
186
|
}
|
|
186
187
|
}), r2;
|
|
187
188
|
};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, resolveComponent as o, createBlock as a, openBlock as n, withCtx as s, createVNode as r, createTextVNode as u, toDisplayString as p } from "vue";
|
|
2
2
|
import { packageTemplateFiles as i } from "../../../utils/common-util.js";
|
|
3
|
-
const m = "${", c = "}",
|
|
4
|
-
const
|
|
3
|
+
const m = "${", c = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
|
|
4
|
+
const d = e2, f = g2, x = t([]), b = t([]), h = d.configure.props.base, v = d.pageContext.entity.data;
|
|
5
5
|
function w(e3) {
|
|
6
|
-
let t2,
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
let t2, l2;
|
|
7
|
+
console.log("templateShowName", e3);
|
|
8
|
+
let o2 = e3;
|
|
9
|
+
const a2 = o2.indexOf(m), n2 = o2.indexOf(c);
|
|
10
|
+
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), b.value.push(t2), console.log("fields", b.value), o2 = o2.replace(l2, ""), console.log("newValue", o2)), w(o2)) : b.value;
|
|
9
11
|
}
|
|
10
|
-
function
|
|
12
|
+
function N() {
|
|
11
13
|
f("close");
|
|
12
14
|
}
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
+
return l(() => {
|
|
16
|
+
h.templateFiles && h.templateFiles.length > 0 ? x.value = i(h.templateFiles) : h.templateUuid && h.templateName && x.value.push({ templateUuid: h.templateUuid, templateName: h.templateName }), x.value.forEach((e3) => {
|
|
15
17
|
e3 && e3.templateName && (e3.templateName = function(e4) {
|
|
16
18
|
const t2 = w(e4);
|
|
17
|
-
return t2.forEach((t3) => {
|
|
18
|
-
const
|
|
19
|
-
let
|
|
20
|
-
-1 !== e4.indexOf(
|
|
19
|
+
return console.log("fields", t2), t2.forEach((t3) => {
|
|
20
|
+
const l2 = m + t3 + c;
|
|
21
|
+
let o2;
|
|
22
|
+
-1 !== e4.indexOf(l2) && v.hasOwnProperty(t3) && (o2 = v[t3] ? v[t3] : "", e4 = e4.replace(l2, o2));
|
|
21
23
|
}), e4;
|
|
22
24
|
}(e3.templateName));
|
|
23
25
|
});
|
|
24
26
|
}), (e3, t2) => {
|
|
25
|
-
const
|
|
26
|
-
return
|
|
27
|
-
return
|
|
28
|
-
var
|
|
29
|
-
} }, { default: s(() => [p(
|
|
27
|
+
const l2 = o("el-table-column"), i2 = o("el-button"), m2 = o("el-table"), c2 = o("el-dialog");
|
|
28
|
+
return n(), a(c2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: N }, { default: s(() => [r(m2, { data: x.value, style: { width: "100%" } }, { default: s(() => [r(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: s((e4) => [u(p(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), r(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: s((t3) => [r(i2, { type: "text", size: "small", onClick: (e4) => {
|
|
29
|
+
return l3 = t3.row, void f("export", d.configure, l3);
|
|
30
|
+
var l3;
|
|
31
|
+
} }, { default: s(() => [u(p(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
|
|
30
32
|
};
|
|
31
33
|
} });
|
|
32
34
|
export {
|
|
33
|
-
|
|
35
|
+
g as default
|
|
34
36
|
};
|
|
@@ -54,7 +54,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
54
54
|
}
|
|
55
55
|
return [window];
|
|
56
56
|
})();
|
|
57
|
-
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
57
|
+
console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
58
58
|
} catch (e3) {
|
|
59
59
|
console.error(e3);
|
|
60
60
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = e
|
|
3
|
+
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-df9efce2"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as d, Fragment as g, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
|
|
2
2
|
import { ElTabs as x, ElTabPane as C } from "element-plus";
|
|
3
3
|
import T from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon as E } from "agilebuilder-ui";
|
|
5
|
-
import { handleAfterInitEvent as k, handleEvent as
|
|
6
|
-
import { $t as
|
|
7
|
-
import { isPromise as
|
|
8
|
-
const
|
|
9
|
-
const A = e2, P =
|
|
5
|
+
import { handleAfterInitEvent as k, handleEvent as w } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as N } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { isPromise as V } from "../../../../utils/page-helper-util.js";
|
|
8
|
+
const _ = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
9
|
+
const A = e2, P = n(""), j = n([]);
|
|
10
10
|
A.configure.items.forEach((e3) => {
|
|
11
11
|
e3.code || (e3.code = e3.index);
|
|
12
12
|
}), P.value = A.configure.props.defaultOpen ? A.configure.props.defaultOpen : 1;
|
|
13
|
-
const O =
|
|
14
|
-
function S(e3,
|
|
15
|
-
return
|
|
13
|
+
const O = n(null), R = A.configure.runtime ? A.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
|
|
14
|
+
function S(e3, n2) {
|
|
15
|
+
return w(e3, A.pageContext, A.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
|
|
16
16
|
}
|
|
17
|
-
function D(e3,
|
|
18
|
-
const
|
|
19
|
-
return A.pageContext.activeTab = o2, A.pageContext.activeLabel =
|
|
17
|
+
function D(e3, n2) {
|
|
18
|
+
const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
|
|
19
|
+
return A.pageContext.activeTab = o2, A.pageContext.activeLabel = t2.label, w(o2, A.pageContext, A.configure, "tab-click", t2);
|
|
20
20
|
}
|
|
21
21
|
function F(e3) {
|
|
22
|
-
const
|
|
23
|
-
return A.pageContext.activeTab = e3,
|
|
22
|
+
const n2 = { paneName: e3 };
|
|
23
|
+
return A.pageContext.activeTab = e3, w(e3, A.pageContext, A.configure, "tab-change", n2);
|
|
24
24
|
}
|
|
25
25
|
function L(e3) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
false !==
|
|
29
|
-
}) : false !==
|
|
26
|
+
const n2 = { paneName: e3 }, t2 = w(e3, A.pageContext, A.configure, "tab-remove", n2);
|
|
27
|
+
V(t2) ? t2.then((n3) => {
|
|
28
|
+
false !== n3 && U(e3);
|
|
29
|
+
}) : false !== t2 && U(e3);
|
|
30
30
|
}
|
|
31
31
|
function U(e3) {
|
|
32
|
-
P.value === e3 && A.configure.items.forEach((
|
|
33
|
-
if (
|
|
34
|
-
const e4 = A.configure.items[
|
|
32
|
+
P.value === e3 && A.configure.items.forEach((n2, t2) => {
|
|
33
|
+
if (n2.code === e3) {
|
|
34
|
+
const e4 = A.configure.items[t2 + 1] || A.configure.items[t2 - 1];
|
|
35
35
|
e4 && void 0 !== e4.code && (P.value = e4.code);
|
|
36
36
|
}
|
|
37
37
|
}), j.value.includes(e3) || j.value.push(e3);
|
|
38
38
|
}
|
|
39
39
|
function q() {
|
|
40
|
-
return
|
|
40
|
+
return w(null, A.pageContext, A.configure, "tab-add");
|
|
41
41
|
}
|
|
42
|
-
function G(e3,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function G(e3, n2) {
|
|
43
|
+
const t2 = { paneName: e3, action: n2 };
|
|
44
|
+
return w(e3, A.pageContext, A.configure, "edit", t2);
|
|
45
45
|
}
|
|
46
46
|
function H() {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
47
|
+
const e3 = w(A.configure.items, A.pageContext, A.configure, "tab-reset");
|
|
48
|
+
V(e3) ? e3.then((e4) => {
|
|
49
49
|
j.value = [];
|
|
50
50
|
}) : false !== e3 && (j.value = []);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return t(j, (e3) => {
|
|
53
53
|
e3 && e3.length > 0 ? e3.forEach((e4) => {
|
|
54
|
-
const
|
|
55
|
-
|
|
54
|
+
const n2 = document.getElementById("tab-" + e4);
|
|
55
|
+
n2 && (n2.style.display = "none");
|
|
56
56
|
}) : A.configure.items.forEach((e4) => {
|
|
57
|
-
const
|
|
58
|
-
|
|
57
|
+
const n2 = document.getElementById("tab-" + e4.code);
|
|
58
|
+
n2 && (n2.style.display = "");
|
|
59
59
|
});
|
|
60
60
|
}, { deep: true }), o(() => {
|
|
61
61
|
a(() => {
|
|
62
62
|
let e3 = [];
|
|
63
|
-
A.configure.items.forEach((
|
|
64
|
-
|
|
63
|
+
A.configure.items.forEach((n2) => {
|
|
64
|
+
n2.code && e3.push(document.getElementById("tab-" + n2.code));
|
|
65
65
|
}), k(null, A.pageContext, A.configure, { componentRef: O.value, tabsDom: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
|
-
}),
|
|
67
|
+
}), _2({ thisRef: O, activeName: P, hiddenPanes: j, resetTab: H, hiddenTabPanes: function(e3) {
|
|
68
68
|
if (Array.isArray(e3)) {
|
|
69
|
-
const
|
|
69
|
+
const n2 = [];
|
|
70
70
|
e3.forEach((e4) => {
|
|
71
|
-
j.value.includes(e4) ||
|
|
72
|
-
}),
|
|
73
|
-
}
|
|
71
|
+
j.value.includes(e4) || n2.push(e4);
|
|
72
|
+
}), n2.length > 0 && j.value.push(...n2);
|
|
73
|
+
} else console.warn("hiddenTabs expects an array of pane names.");
|
|
74
74
|
}, showTabPanes: function(e3) {
|
|
75
|
-
Array.isArray(e3)
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
});
|
|
75
|
+
Array.isArray(e3) ? e3.forEach((e4) => {
|
|
76
|
+
const n2 = j.value.indexOf(e4);
|
|
77
|
+
n2 > -1 && j.value.splice(n2, 1);
|
|
78
|
+
}) : console.warn("showTabs expects an array of pane names.");
|
|
79
79
|
}, showTabPanesOnly: function(e3) {
|
|
80
|
-
const
|
|
81
|
-
A.configure.items.forEach((
|
|
82
|
-
e3.includes(
|
|
83
|
-
}), j.value = [...new Set(
|
|
80
|
+
const n2 = [];
|
|
81
|
+
A.configure.items.forEach((t2) => {
|
|
82
|
+
e3.includes(t2.code) || n2.push(t2.code);
|
|
83
|
+
}), j.value = [...new Set(n2)];
|
|
84
84
|
}, hiddenTabPanesOnly: function(e3) {
|
|
85
|
-
const
|
|
86
|
-
A.configure.items.forEach((
|
|
87
|
-
e3.includes(
|
|
88
|
-
}), j.value = [...new Set(
|
|
89
|
-
} }), (e3,
|
|
90
|
-
const
|
|
91
|
-
return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue":
|
|
85
|
+
const n2 = [];
|
|
86
|
+
A.configure.items.forEach((t2) => {
|
|
87
|
+
e3.includes(t2.code) && n2.push(t2.code);
|
|
88
|
+
}), j.value = [...new Set(n2)];
|
|
89
|
+
} }), (e3, n2) => {
|
|
90
|
+
const t2 = i("el-button");
|
|
91
|
+
return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => P.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(B)), class: r([u(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(g, null, m(A.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(E), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), b("span", { style: s(u(I)) }, y(u(N)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === P.value ? (l(true), f(g, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : d("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : d("", true)]), _: 1 })) : d("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
_ as default
|
|
96
96
|
};
|