super-page-runtime 2.3.12-rc1 → 2.3.12-rc2
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/charts/chart-gauge-util.js +3 -3
- package/dist/es/components/runtime/utils/events/standard-event.js +223 -217
- package/dist/es/components/runtime/utils/events/validator-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/validator-util.js +12 -9
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +15 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +144 -144
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -7
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +7 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +43 -41
- package/dist/es/style.css +5 -5
- package/package.json +1 -1
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, watch as t, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as l, watch as t, onMounted as a, nextTick as o, onUnmounted as i, resolveComponent as n, createBlock as s, createCommentVNode as r, openBlock as u, normalizeStyle as p, normalizeClass as d, unref as m, withCtx as v, createElementBlock as f, toDisplayString as c } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
|
|
4
|
-
import
|
|
5
|
-
import { FsUploadNew as
|
|
6
|
-
import
|
|
7
|
-
import { $t as
|
|
4
|
+
import w from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { FsUploadNew as b } from "agilebuilder-ui";
|
|
6
|
+
import k from "../../../../utils/eventBus.js";
|
|
7
|
+
import { $t as x } from "../../../../utils/i18n-util.js";
|
|
8
8
|
import { addRequiredClassUtil as P } from "../../../../utils/common-util.js";
|
|
9
9
|
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
11
|
+
const j = e2, N = l(null), S = j.configure.runtime ? j.configure.runtime : {}, R = l(S.props ? S.props : {}), T = S.style, z = S.class, D = S.headerStyle, I = S.titleExceedStyle, O = j.pageContext.entity ? j.pageContext.entity : {}, q = j.configure.props.base ? j.configure.props.base : {}, F = L(q.prop), W = L(q.propName);
|
|
12
|
+
let U = l({});
|
|
13
|
+
U.value.isShowWatermark = void 0 === ((_b = (_a = j.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = j.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", U.value.content = ((_e = (_d = j.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = j.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "", F && F.length > 1 && t(() => j.pageContext.entity[F[0]][F[1]], (e3) => {
|
|
14
|
+
K(h(O, F));
|
|
13
15
|
});
|
|
14
|
-
const $ = j.pageContext.code,
|
|
15
|
-
function
|
|
16
|
+
const $ = j.pageContext.code, B = l(F ? $ + "__" + F.join("__") : null), E = h(O, F), A = l(null), G = l(false), H = l([]), J = l({});
|
|
17
|
+
function K(e3) {
|
|
16
18
|
if (e3) {
|
|
17
19
|
const l2 = e3.split(",");
|
|
18
20
|
if (l2.length > 0) {
|
|
19
21
|
const e4 = j.pageContext.backendUrl;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
w.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
|
|
23
|
+
H.value = [];
|
|
22
24
|
const t2 = [];
|
|
23
|
-
for (let
|
|
24
|
-
const
|
|
25
|
-
t2.push(e5[
|
|
25
|
+
for (let a2 = 0; a2 < l2.length; a2++) {
|
|
26
|
+
const o2 = l2[a2];
|
|
27
|
+
t2.push(e5[o2]), H.value.push({ showName: e5[o2], serverPath: o2 });
|
|
26
28
|
}
|
|
27
|
-
"input" ===
|
|
29
|
+
"input" === R.value.displayType && (J.value.showName = t2.join(","), J.value.serverPath = l2.join(","));
|
|
28
30
|
}).finally(() => {
|
|
29
|
-
|
|
31
|
+
G.value = true;
|
|
30
32
|
});
|
|
31
|
-
} else
|
|
32
|
-
} else
|
|
33
|
+
} else G.value = true;
|
|
34
|
+
} else H.value = [], J.value = {}, G.value = true;
|
|
33
35
|
}
|
|
34
|
-
function
|
|
36
|
+
function L(e3) {
|
|
35
37
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
36
38
|
}
|
|
37
|
-
function
|
|
39
|
+
function M(e3) {
|
|
38
40
|
return C(e3);
|
|
39
41
|
}
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
42
|
+
K(E);
|
|
43
|
+
const Q = (e3, l2, t2) => {
|
|
44
|
+
X();
|
|
45
|
+
}, V = (e3) => {
|
|
46
|
+
X();
|
|
47
|
+
}, X = () => {
|
|
46
48
|
const e3 = [], l2 = [];
|
|
47
|
-
if (
|
|
48
|
-
const e4 =
|
|
49
|
-
for (let l3 = 0; l3 < e4; l3++)
|
|
49
|
+
if (R.value.limit && H.value.length > R.value.limit) {
|
|
50
|
+
const e4 = H.value.length - R.value.limit;
|
|
51
|
+
for (let l3 = 0; l3 < e4; l3++) H.value.shift();
|
|
50
52
|
}
|
|
51
|
-
for (let t2 = 0; t2 <
|
|
52
|
-
y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity,
|
|
53
|
-
},
|
|
54
|
-
return
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}),
|
|
58
|
-
const e3 = h(
|
|
59
|
-
g(l2, j.pageContext, j.configure, { formItemRef:
|
|
53
|
+
for (let t2 = 0; t2 < H.value.length; t2++) e3.push(H.value[t2].showName), l2.push(H.value[t2].serverPath);
|
|
54
|
+
y(j.pageContext.entity, F, l2.join(",")), y(j.pageContext.entity, W, e3.join(",")), l2.length > 0 && (N.value = "");
|
|
55
|
+
}, Y = l(null), Z = l(null);
|
|
56
|
+
return a(() => {
|
|
57
|
+
k.$on(B.value + "-pickFileDone", (e3) => {
|
|
58
|
+
B.value, A.value.pickFileDone(e3);
|
|
59
|
+
}), o(() => {
|
|
60
|
+
const e3 = h(O, F), l2 = { showName: h(O, W), serverPath: e3 };
|
|
61
|
+
g(l2, j.pageContext, j.configure, { formItemRef: Y.value, componentRef: A.value, titleRef: Z.value, value: l2, entity: j.pageContext.entity.data, pageData: j.pageContext.entity.page });
|
|
60
62
|
});
|
|
61
63
|
}), i(() => {
|
|
62
|
-
|
|
64
|
+
k.$off(B.value + "-pickFileDone");
|
|
63
65
|
}), _2({ addRequiredClass: function() {
|
|
64
66
|
N.value = P();
|
|
65
67
|
} }), (e3, l2) => {
|
|
66
68
|
const t2 = n("el-form-item");
|
|
67
|
-
return
|
|
69
|
+
return R.value.tittleShow ? (u(), s(t2, { key: 0, ref_key: "formItemRef", ref: Y, required: R.value.required, class: d(m(z) + (N.value ? " " + N.value : "")), "label-width": R.value.labelWidth, style: p(m(T)) }, { label: v(() => [R.value.tittleShow ? (u(), f("div", { key: 0, ref_key: "titleRef", ref: Z, style: p({ ...m(D), ...m(I) }) }, c(m(x)(R.value.title)), 5)) : r("", true)]), default: v(() => [G.value ? (u(), s(m(b), { key: 0, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : G.value ? (u(), s(m(b), { key: 1, ref_key: "fileUploadRef", ref: A, style: { width: "100%" }, disabled: "disabled" === R.value.state, displayType: R.value.displayType, accept: R.value.accept, multiple: R.value.multiple, placeholder: R.value.placeholder, limit: R.value.limit, "limit-file-size": R.value.limitFileSize, "disabled-no-preview": R.value.disabledNoPreview, "disabled-no-download": R.value.disabledNoDownload, openCameraOrChoosePhoto: R.value.openCameraOrChoosePhoto, "file-info": J.value, "file-list": H.value, "system-code": e3.pageContext.systemCode, componentId: B.value, watermark: m(U), "on-success": Q, "on-remove": V, "before-upload": M, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext"])) : r("", true);
|
|
68
70
|
};
|
|
69
71
|
} });
|
|
70
72
|
export {
|
package/dist/es/style.css
CHANGED
|
@@ -552,31 +552,31 @@
|
|
|
552
552
|
|
|
553
553
|
|
|
554
554
|
|
|
555
|
-
.amb-chart-container[data-v-
|
|
555
|
+
.amb-chart-container[data-v-e1cf60d6] {
|
|
556
556
|
display: flex;
|
|
557
557
|
flex-direction: column;
|
|
558
558
|
height: 100%;
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
.amb-chart-container[data-v-
|
|
561
|
+
.amb-chart-container[data-v-17d626a7] {
|
|
562
562
|
display: flex;
|
|
563
563
|
flex-direction: column;
|
|
564
564
|
height: 100%;
|
|
565
565
|
}
|
|
566
566
|
|
|
567
|
-
.amb-chart-container[data-v-
|
|
567
|
+
.amb-chart-container[data-v-807f72b1] {
|
|
568
568
|
display: flex;
|
|
569
569
|
flex-direction: column;
|
|
570
570
|
height: 100%;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
.amb-chart-container[data-v-
|
|
573
|
+
.amb-chart-container[data-v-a4e2d500] {
|
|
574
574
|
display: flex;
|
|
575
575
|
flex-direction: column;
|
|
576
576
|
height: 100%;
|
|
577
577
|
}
|
|
578
578
|
|
|
579
|
-
.amb-chart-container[data-v-
|
|
579
|
+
.amb-chart-container[data-v-a924cb6f] {
|
|
580
580
|
display: flex;
|
|
581
581
|
flex-direction: column;
|
|
582
582
|
height: 100%;
|