super-page-runtime 2.2.42 → 2.2.46
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/views/assemblys/chart/table/table-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +60 -48
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +16 -16
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/style.css +24 -33
- package/package.json +2 -2
|
@@ -68,9 +68,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
68
68
|
}), a2.forEach((o5) => {
|
|
69
69
|
t2.forEach((r3) => {
|
|
70
70
|
var _a3;
|
|
71
|
-
(_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name;
|
|
72
|
-
|
|
73
|
-
e5.push(t3);
|
|
71
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = P(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
72
|
+
e5.push(i4);
|
|
74
73
|
});
|
|
75
74
|
}), e5;
|
|
76
75
|
}
|
|
@@ -132,7 +131,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
132
131
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
133
132
|
return L(e3, o2, B);
|
|
134
133
|
}
|
|
135
|
-
he && he.
|
|
134
|
+
he && he.fixHeight && (me = he.fixHeight), he && he.maxHeight && (me = he.maxHeight), me && (me = Number(me + "")), n(() => {
|
|
136
135
|
const e3 = b(B.pageContext, B.configure);
|
|
137
136
|
if (e3) ye(e3);
|
|
138
137
|
else if ("variable" === B.configure.props.dataOrigin.dataSource) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./card-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const t = r
|
|
3
|
+
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const t = e(r, [["__scopeId", "data-v-6e950bc1"]]);
|
|
5
5
|
export {
|
|
6
6
|
t as default
|
|
7
7
|
};
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as o, onMounted as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as o, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
|
|
2
2
|
import { ElCard as b } from "element-plus";
|
|
3
3
|
import { SuperIcon as h } from "agilebuilder-ui";
|
|
4
|
-
import { ArrowUp as k, ArrowDown as
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
import { handleAfterInitEvent as
|
|
8
|
-
const
|
|
4
|
+
import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
|
|
5
|
+
import S from "../../object-render.vue.js";
|
|
6
|
+
import { $t as j } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { handleAfterInitEvent as T } from "../../../../utils/events/event-util.js";
|
|
8
|
+
const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
9
9
|
var _a, _b;
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const _ = e2;
|
|
11
|
+
_.configure.items || (_.configure.items = []);
|
|
12
12
|
const R = t(() => {
|
|
13
13
|
var _a2;
|
|
14
|
-
return [true, void 0].includes((_a2 =
|
|
15
|
-
}), z = o(null), D = o(!((_a =
|
|
16
|
-
return
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
return [true, void 0].includes((_a2 = _.configure.props) == null ? void 0 : _a2.isCollapse);
|
|
15
|
+
}), z = o(null), D = o(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
|
|
16
|
+
return i(() => {
|
|
17
|
+
n(() => {
|
|
18
|
+
T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
|
|
19
19
|
});
|
|
20
|
-
}),
|
|
21
|
-
|
|
20
|
+
}), V2({ test: function() {
|
|
21
|
+
_.configure.props.title = "teee";
|
|
22
22
|
} }), (e3, t2) => {
|
|
23
23
|
const o2 = r("el-button");
|
|
24
|
-
return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p([u(A), { "margin-top": "20px" }]), "data-collapse": String(D.value), class: a(["yx-card-box-main", u(B)]) }, c({ default: f(() => [
|
|
24
|
+
return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p([u(A), { "margin-top": "20px" }]), "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, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, 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"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
|
|
25
25
|
};
|
|
26
26
|
} });
|
|
27
27
|
export {
|
|
28
|
-
|
|
28
|
+
V as default
|
|
29
29
|
};
|
|
@@ -1,61 +1,73 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o, nextTick as
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, createElementBlock as r, openBlock as s, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
|
|
2
|
+
const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: v2 }) {
|
|
3
|
+
const m = e2, w = v2, x = t(null), y = t(null), h = t(false), g = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = () => {
|
|
4
|
+
try {
|
|
5
|
+
if (!y.value) return;
|
|
6
|
+
const e3 = y.value.getBoundingClientRect(), t2 = T.value;
|
|
7
|
+
if (t2 === window) {
|
|
8
|
+
const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
|
|
9
|
+
B.value = 0, S(t3, e3);
|
|
10
|
+
} else if (m.stickyInScrollContainer) {
|
|
11
|
+
const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
|
|
12
|
+
const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
|
|
13
|
+
if (!x.value) return { isTop: t3, isBottom: o3 };
|
|
14
|
+
const n3 = x.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
|
|
15
|
+
return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
|
|
16
|
+
})(o2);
|
|
17
|
+
B.value = l2 ?? 0, S(n2 || i2 || false, e3);
|
|
18
|
+
}
|
|
19
|
+
} catch (e3) {
|
|
18
20
|
}
|
|
19
|
-
},
|
|
20
|
-
e3 !==
|
|
21
|
-
},
|
|
22
|
-
requestAnimationFrame(
|
|
21
|
+
}, S = (e3, t2) => {
|
|
22
|
+
e3 !== h.value && (h.value = e3, w("change", e3), g.value = e3 ? { width: `${t2.width}px`, height: `${t2.height}px` } : {});
|
|
23
|
+
}, C = () => {
|
|
24
|
+
requestAnimationFrame(E);
|
|
23
25
|
};
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
clearTimeout(
|
|
27
|
-
|
|
26
|
+
let L;
|
|
27
|
+
const k = () => {
|
|
28
|
+
h.value = false, clearTimeout(L), L = window.setTimeout(() => {
|
|
29
|
+
E();
|
|
28
30
|
}, 100);
|
|
29
31
|
};
|
|
30
32
|
o(() => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
setTimeout(() => {
|
|
34
|
+
n(() => {
|
|
35
|
+
try {
|
|
36
|
+
m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
|
|
37
|
+
const e3 = (() => {
|
|
38
|
+
if (m.autoDetectParentScroll && y.value) {
|
|
39
|
+
const e4 = [];
|
|
40
|
+
let t2 = y.value.parentElement;
|
|
41
|
+
for (; t2 && t2 !== document.body; ) {
|
|
42
|
+
const { overflowY: o2 } = window.getComputedStyle(t2);
|
|
43
|
+
/(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
|
|
44
|
+
}
|
|
45
|
+
return [...e4, window];
|
|
46
|
+
}
|
|
47
|
+
if ("string" == typeof m.target) {
|
|
48
|
+
const e4 = document.querySelector(m.target);
|
|
49
|
+
return [...e4 ? [e4] : [], window];
|
|
50
|
+
}
|
|
51
|
+
return [window];
|
|
52
|
+
})();
|
|
53
|
+
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E();
|
|
54
|
+
} catch (e3) {
|
|
41
55
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
56
|
+
});
|
|
57
|
+
}, 100);
|
|
58
|
+
}), i(() => {
|
|
59
|
+
T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
|
|
60
|
+
}), l(() => {
|
|
61
|
+
n(() => {
|
|
62
|
+
C();
|
|
49
63
|
});
|
|
50
|
-
}), n(() => {
|
|
51
|
-
B.value && y.value.forEach((e3) => e3.removeEventListener("scroll", S)), window.removeEventListener("resize", L), clearTimeout(C);
|
|
52
64
|
});
|
|
53
|
-
const
|
|
65
|
+
const z = a(() => {
|
|
54
66
|
var _a;
|
|
55
|
-
return
|
|
67
|
+
return h.value ? { position: "fixed", width: `${(_a = y.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
|
|
56
68
|
});
|
|
57
|
-
return (e3, t2) => (
|
|
69
|
+
return (e3, t2) => (s(), r("div", { ref_key: "affixMainRef", ref: x, class: "yx-affix" }, [h.value ? (s(), r("div", { key: 0, style: c(g.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: y, style: c(z.value), class: d({ "yx-affix-content": true, "is-fixed": h.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }) }, [p(e3.$slots, "default")], 6)], 512));
|
|
58
70
|
} });
|
|
59
71
|
export {
|
|
60
|
-
|
|
72
|
+
v as default
|
|
61
73
|
};
|
|
@@ -4,42 +4,42 @@ import { getFormModelFields as R } from "../../../../utils/page-init-util.js";
|
|
|
4
4
|
import { handleFormEvent as S, handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
|
|
5
5
|
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
|
|
7
|
-
const
|
|
8
|
-
let
|
|
9
|
-
const
|
|
10
|
-
let e3 = x(
|
|
7
|
+
const q = e2, w = q.pageContext.entity ? q.pageContext.entity : {};
|
|
8
|
+
let z = R(q.pageContext, q.configure);
|
|
9
|
+
const D = t({ get() {
|
|
10
|
+
let e3 = x(w, z);
|
|
11
11
|
return e3 && "string" == typeof e3 && (e3 = e3.split(",")), e3;
|
|
12
12
|
}, set(e3) {
|
|
13
|
-
e3 && e3.length > 0 && (e3 = e3.join(",")), y(
|
|
14
|
-
} }),
|
|
15
|
-
|
|
16
|
-
const
|
|
13
|
+
e3 && e3.length > 0 && (e3 = e3.join(",")), y(w, z, e3);
|
|
14
|
+
} }), O = q.configure.runtime ? q.configure.runtime : {}, A = O.style, M = O.class, P = O.headerStyle, E = O.titleExceedStyle, F = l(O.props ? O.props : {}), T = l(F.value.options ? F.value.options : []), U = b(q.pageContext, q.configure);
|
|
15
|
+
U.length > 0 && (T.value = U);
|
|
16
|
+
const W = q.configure.props && q.configure.props.dataOrigin ? q.configure.props.dataOrigin : {}, B = W.optionValueSetType;
|
|
17
17
|
let G = [];
|
|
18
|
-
if (("dynamicData" == B || "dynamicData" == B || "service" == B) &&
|
|
19
|
-
|
|
18
|
+
if (("dynamicData" == B || "dynamicData" == B || "service" == B) && W.autoSets) for (let e3 of W.autoSets) e3.source && G.push(e3);
|
|
19
|
+
q.configure && q.configure.props && q.configure.props.base && q.configure.props.base.optionProp && G.push({ source: "label", target: q.configure.props.base.optionProp }), F.value.changeMethod = function(e3) {
|
|
20
20
|
if (G.length > -1) {
|
|
21
21
|
let t2 = null;
|
|
22
|
-
|
|
22
|
+
T.value && null != e3 && null != e3 && (t2 = T.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(q.configure, q.pageContext, G, t2);
|
|
23
23
|
}
|
|
24
|
-
S(e3,
|
|
24
|
+
S(e3, q.pageContext, q.configure, "change");
|
|
25
25
|
};
|
|
26
|
-
const H =
|
|
27
|
-
const J =
|
|
28
|
-
C(
|
|
29
|
-
_(
|
|
26
|
+
const H = F.value.optionconfigInfo ? F.value.optionconfigInfo : {};
|
|
27
|
+
const J = F.value.monitorFields;
|
|
28
|
+
C(q.pageContext, J, function() {
|
|
29
|
+
_(q.pageContext, H, void 0).then((e3) => {
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
const K = l(null), L = l(null), N = l(null);
|
|
33
33
|
return o(() => {
|
|
34
34
|
n(() => {
|
|
35
|
-
const e3 =
|
|
36
|
-
j(e3,
|
|
35
|
+
const e3 = D.value;
|
|
36
|
+
j(e3, q.pageContext, q.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
|
|
37
37
|
});
|
|
38
38
|
}), V2({ updateOptions: function(e3) {
|
|
39
|
-
|
|
39
|
+
T.value = e3 || [];
|
|
40
40
|
} }), (e3, t2) => {
|
|
41
41
|
const l2 = a("el-checkbox"), o2 = a("el-checkbox-group"), n2 = a("el-form-item");
|
|
42
|
-
return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(
|
|
42
|
+
return i(), u(n2, { ref_key: "formItemRef", ref: K, class: s(p(M)), required: !!F.value.required, "label-width": F.value.labelWidth, style: r(p(A)) }, { label: c(() => [F.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(P), ...p(E) }) }, h(p(I)(F.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === F.value.state, size: F.value.size, onChange: F.value.changeMethod, modelValue: D.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => D.value = e4) }, { default: c(() => [(i(true), g(v, null, d(T.value, (t3) => (i(), u(l2, { key: t3.value, value: t3.value, label: t3.label, onClick: (l3) => p(S)(t3.value, e3.pageContext, e3.configure, "click", { values: D.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "required", "label-width", "style"]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as d, vShow as m, nextTick as v } from "vue";
|
|
2
|
+
import C from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
|
|
4
|
-
import { PageDimensions as
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { getPermissionCodes as
|
|
4
|
+
import { PageDimensions as h } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
|
+
import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
|
|
9
9
|
import { isShowMobileEvent as T, isShowComponent as $ } from "../../utils/events/event-util.js";
|
|
@@ -12,21 +12,21 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
12
12
|
var _a, _b;
|
|
13
13
|
const H2 = e2;
|
|
14
14
|
null == H2.configure.style && (H2.configure.style = {});
|
|
15
|
-
const k =
|
|
16
|
-
H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k),
|
|
17
|
-
let B = o(
|
|
15
|
+
const k = w(H2.configure, H2.pageContext);
|
|
16
|
+
H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k), j(H2.pageContext, H2.configure);
|
|
17
|
+
let B = o(null), F = o(true), J = o("");
|
|
18
18
|
if (H2.configure && H2.configure.props) {
|
|
19
19
|
let e3 = [];
|
|
20
20
|
((_a = H2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof H2.configure.props.base.showConditions ? JSON.parse(H2.configure.props.base.showConditions) : H2.configure.props.base.showConditions), F = t(() => {
|
|
21
21
|
var _a2;
|
|
22
22
|
let o2 = true;
|
|
23
|
-
if (B.value
|
|
23
|
+
if (B.value && null !== B.value) o2 = "show" === B.value;
|
|
24
|
+
else if (T(H2.pageContext, H2.configure)) if (e3 && e3.length > 0) o2 = N(H2.pageContext, e3);
|
|
24
25
|
else {
|
|
25
26
|
const e4 = (_a2 = H2.configure.props.base) == null ? void 0 : _a2.state;
|
|
26
27
|
e4 && "hidden" === e4 && (o2 = false);
|
|
27
28
|
}
|
|
28
29
|
else o2 = false;
|
|
29
|
-
else o2 = false;
|
|
30
30
|
return o2;
|
|
31
31
|
});
|
|
32
32
|
if (H2.configure._dynamicShowFlag = F, (_b = H2.configure.props.base) == null ? void 0 : _b.editConditions) {
|
|
@@ -57,13 +57,13 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
57
57
|
const R = o({});
|
|
58
58
|
R.value = n(b(H2.configure.name));
|
|
59
59
|
const W = o(true);
|
|
60
|
-
null == R.value && (R.value =
|
|
60
|
+
null == R.value && (R.value = C, W.value = false);
|
|
61
61
|
const q = o(null), z = o({}), A = o(""), D = S(H2.configure);
|
|
62
62
|
D && (A.value = D);
|
|
63
63
|
const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
|
|
64
64
|
if (G.class && (A.value += " " + G.class), G.style) {
|
|
65
65
|
Object.assign(z.value, G.style);
|
|
66
|
-
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions :
|
|
66
|
+
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : h.PC, o2 = G.style[e3 + "_style"];
|
|
67
67
|
o2 && Object.assign(z.value, o2);
|
|
68
68
|
const t2 = G.style[e3 + "_class"];
|
|
69
69
|
t2 && (A.value += " " + t2);
|
|
@@ -71,12 +71,12 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
71
71
|
const I = E();
|
|
72
72
|
function K(e3) {
|
|
73
73
|
if (q.value = e3, e3 && !e3.show && (e3.show = function() {
|
|
74
|
-
B.value =
|
|
74
|
+
B.value = "show";
|
|
75
75
|
}), e3 && !e3.hide && (e3.hide = function() {
|
|
76
|
-
B.value =
|
|
76
|
+
B.value = "hide";
|
|
77
77
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
78
78
|
return H2.configure;
|
|
79
|
-
}), H2.configure.uuid &&
|
|
79
|
+
}), H2.configure.uuid && x(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
|
|
80
80
|
else if (H2.configure.props && H2.configure.props.base) {
|
|
81
81
|
const e4 = H2.configure.props.base;
|
|
82
82
|
if (e4.prop) {
|
|
@@ -92,7 +92,7 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
92
92
|
!function() {
|
|
93
93
|
if (!q.value) return;
|
|
94
94
|
const e4 = L(H2.pageContext, H2.configure);
|
|
95
|
-
"table" !== H2.configure.name && e4 && e4.isCalcHeight &&
|
|
95
|
+
"table" !== H2.configure.name && e4 && e4.isCalcHeight && v(() => {
|
|
96
96
|
let e5 = q.value.$el;
|
|
97
97
|
e5 || (e5 = q.value);
|
|
98
98
|
const o3 = e5.parentNode;
|
|
@@ -121,7 +121,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
121
121
|
}), F.$on(qe.value + "close-dialog", (e7) => {
|
|
122
122
|
!function(e8) {
|
|
123
123
|
const l4 = e8.jumpMode;
|
|
124
|
-
l4 && "popup" === l4
|
|
124
|
+
l4 && "popup" === l4 ? ol(e8) : nl.go(-1);
|
|
125
125
|
}(e7);
|
|
126
126
|
});
|
|
127
127
|
}
|
package/dist/es/style.css
CHANGED
|
@@ -1,42 +1,33 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
2
|
+
.yx-card-box-view-main[data-v-6e950bc1] > .el-card__header {
|
|
2
3
|
position: relative;
|
|
3
4
|
}
|
|
4
|
-
.yx-card-box-main
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: row;
|
|
7
|
-
justify-content: space-between;
|
|
8
|
-
align-items: center;
|
|
9
|
-
gap: 15px;
|
|
10
|
-
}
|
|
11
|
-
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header .yx-card-box-title {
|
|
12
|
-
position: relative;
|
|
13
|
-
z-index: 2;
|
|
14
|
-
}
|
|
15
|
-
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header::after {
|
|
16
|
-
content: " ";
|
|
17
|
-
position: absolute;
|
|
18
|
-
left: 0;
|
|
19
|
-
top: 0;
|
|
20
|
-
bottom: 0;
|
|
21
|
-
right: 0;
|
|
22
|
-
z-index: 0;
|
|
23
|
-
}
|
|
24
|
-
.yx-card-box-main[data-v-e830dee4] > .el-card__header .yx-card-box-header .yx-card-box-title {
|
|
5
|
+
.yx-card-box-view-main .yx-card-box-view-header[data-v-6e950bc1] {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 15px;
|
|
25
11
|
flex: 1 1 auto;
|
|
26
12
|
}
|
|
27
|
-
.yx-card-box-main[data-v-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
visibility: hidden;
|
|
13
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-6e950bc1] {
|
|
14
|
+
position: relative;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
flex: 1 1 auto;
|
|
32
17
|
}
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
18
|
+
.yx-card-box-view-main .yx-card-box-view-title[data-v-6e950bc1]::after {
|
|
19
|
+
content: ' ';
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0;
|
|
22
|
+
top: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
z-index: 0;
|
|
36
26
|
}
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
}
|
|
27
|
+
.yx-card-box-view-main[data-collapse="false"][data-v-6e950bc1] > .el-card__body{
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
.el-form-item[data-v-96fc65d8] {
|
|
40
31
|
margin-bottom: 0px;
|
|
41
32
|
}
|
|
42
33
|
[data-v-16a29b68] .el-empty {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.46",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.
|
|
51
|
+
"agilebuilder-ui": "1.1.16",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|