super-page-runtime 2.2.40 → 2.2.44

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.
@@ -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
- const t3 = P(`${o5}${r3}`, `${o5}${r3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
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.maxHeight && (me = he.maxHeight), !me && he && he.fixHeight && (me = he.fixHeight), me && (me = Number(me + "")), n(() => {
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,4 +1,7 @@
1
1
  import r from "./card-runtime.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = e(r, [["__scopeId", "data-v-16a57b36"]]);
2
5
  export {
3
- r as default
6
+ t as default
4
7
  };
@@ -1,21 +1,29 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, createBlock as i, openBlock as r, unref as u, normalizeClass as p, normalizeStyle as s, createSlots as l, withCtx as c, createElementVNode as a, createElementBlock as f, Fragment as g, renderList as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x } from "vue";
2
- import { ElCard as v } from "element-plus";
3
- import { SuperIcon as C } from "agilebuilder-ui";
4
- import h from "../../object-render.vue.js";
5
- import { $t as b } from "../../../../utils/i18n-util.js";
6
- import { handleAfterInitEvent as j } from "../../../../utils/events/event-util.js";
7
- const k = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: k2 }) {
8
- const T = e2;
9
- T.configure.items || (T.configure.items = []);
10
- const V = t(null), _ = T.configure.runtime ? T.configure.runtime : {}, S = _.style, R = _.class, w = _.headerStyle, D = _.contentStyle;
11
- return o(() => {
12
- n(() => {
13
- j(null, T.pageContext, T.configure, { componentRef: V.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as n, nextTick as i, 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
+ import { ElCard as b } from "element-plus";
3
+ import { SuperIcon as h } from "agilebuilder-ui";
4
+ import { ArrowUp as k, ArrowDown as S } from "@element-plus/icons-vue";
5
+ import j from "../../object-render.vue.js";
6
+ import { $t as T } from "../../../../utils/i18n-util.js";
7
+ import { handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
8
+ const _ = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
+ var _a, _b;
10
+ const w = e2;
11
+ w.configure.items || (w.configure.items = []);
12
+ const R = t(() => {
13
+ var _a2;
14
+ return [true, void 0].includes((_a2 = w.configure.props) == null ? void 0 : _a2.isCollapse);
15
+ }), z = o(null), D = o(!((_a = w.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = w.configure.props) == null ? void 0 : _b.isCollapseShow)), q = w.configure.runtime ? w.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
16
+ return n(() => {
17
+ i(() => {
18
+ V(null, w.pageContext, w.configure, { componentRef: z.value, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
14
19
  });
15
- }), k2({ test: function() {
16
- T.configure.props.title = "teee";
17
- } }), (e3, t2) => (r(), i(u(v), { ref_key: "thisRef", ref: V, style: s([u(S), { "margin-top": "20px" }]), class: p(u(R)) }, l({ default: c(() => [a("div", { style: s(u(D)) }, [(r(true), f(g, null, m(e3.configure.items, (t3, o2) => (r(), i(h, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: c(() => [a("div", { style: s(u(w)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), i(u(C), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(u(b)(e3.configure.props.base.title)), 1)], 4)]), key: "0" } : void 0]), 1032, ["style", "class"]));
20
+ }), _2({ test: function() {
21
+ w.configure.props.title = "teee";
22
+ } }), (e3, t2) => {
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(() => [g("div", { class: "yx-card-box-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (t3, o3) => (s(), l(j, { 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-header", onClick: G }, [g("div", { class: "yx-card-box-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(T)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(S), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
+ };
18
26
  } });
19
27
  export {
20
- k as default
28
+ _ as default
21
29
  };
@@ -1,61 +1,65 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as i, onUnmounted as n, computed as l, createElementBlock as s, openBlock as a, createCommentVNode as r, createElementVNode as u, normalizeStyle as f, normalizeClass as c, renderSlot as d } from "vue";
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 s, openBlock as r, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
2
2
  /* empty css */
3
- const p = 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 } }, emits: ["change", "on-change"], setup(e2, { emit: p2 }) {
4
- const v = e2, m = p2, w = t(null), x = t(null), g = t(false), h = t({}), y = t([]), B = t(window), T = t(0), b = () => {
5
- if (!x.value || !w.value) return;
6
- const e3 = x.value.getBoundingClientRect(), t2 = B.value;
3
+ 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", "on-change"], setup(e2, { emit: v2 }) {
4
+ const m = e2, w = v2, x = t(null), g = t(null), h = t(false), y = t({}), b = t([]), B = t(window), T = t(0), I = t(null), E = () => {
5
+ if (!g.value || !x.value) return;
6
+ const e3 = g.value.getBoundingClientRect(), t2 = B.value;
7
7
  if (t2 === window) {
8
- const t3 = "top" === v.position ? e3.top <= v.offset : e3.bottom >= window.innerHeight - v.offset;
9
- T.value = 0, E(t3, e3);
10
- } else if (v.stickyInScrollContainer) {
11
- const o2 = t2.getBoundingClientRect(), { isFixTop: i2, isFixBottom: n2, containerOffset: l2 } = ((e4) => {
12
- const t3 = ["top"].includes(v.position), o3 = ["bottom"].includes(v.position);
13
- if (!w.value) return { isTop: t3, isBottom: o3 };
14
- const i3 = w.value.getBoundingClientRect(), n3 = i3.top - e4.top, l3 = i3.left - e4.left, s2 = e4.height - i3.height - n3, a2 = e4.top, r2 = window.innerHeight - e4.bottom;
15
- return { isTop: t3, isBottom: o3, containerTop: a2, containerBottom: r2, containerOffset: t3 ? a2 : o3 ? r2 : 0, offsetTop: n3, offsetLeft: l3, offsetBottom: s2, isFixTop: t3 && n3 <= 0, isFixBottom: o3 && s2 <= 0 };
8
+ const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
9
+ T.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, s2 = e4.top, r2 = window.innerHeight - e4.bottom;
15
+ return { isTop: t3, isBottom: o3, containerTop: s2, containerBottom: r2, containerOffset: t3 ? s2 : o3 ? r2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
16
16
  })(o2);
17
- T.value = l2 ?? 0, E(i2 || n2 || false, e3);
17
+ T.value = l2 ?? 0, S(n2 || i2 || false, e3);
18
18
  }
19
- }, E = (e3, t2) => {
20
- e3 !== g.value && (g.value = e3, m("change", e3), m("on-change", e3), h.value = e3 ? { width: `${t2.width}px`, height: `${t2.height}px` } : {});
21
- }, S = () => {
22
- requestAnimationFrame(b);
19
+ }, S = (e3, t2) => {
20
+ e3 !== h.value && (h.value = e3, w("change", e3), w("on-change", e3), y.value = e3 ? { width: `${t2.width}px`, height: `${t2.height}px` } : {});
21
+ }, C = () => {
22
+ requestAnimationFrame(E);
23
23
  };
24
- let C;
25
- const L = () => {
26
- clearTimeout(C), C = window.setTimeout(() => {
27
- b();
24
+ let L;
25
+ const k = () => {
26
+ h.value = false, clearTimeout(L), L = window.setTimeout(() => {
27
+ E();
28
28
  }, 100);
29
29
  };
30
30
  o(() => {
31
- i(() => {
31
+ n(() => {
32
32
  const e3 = (() => {
33
- if (v.autoDetectParentScroll && x.value) {
33
+ if (m.autoDetectParentScroll && g.value) {
34
34
  const e4 = [];
35
- let t2 = x.value.parentElement;
35
+ let t2 = g.value.parentElement;
36
36
  for (; t2 && t2 !== document.body; ) {
37
37
  const { overflowY: o2 } = window.getComputedStyle(t2);
38
38
  /(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
39
39
  }
40
40
  return [...e4, window];
41
41
  }
42
- if ("string" == typeof v.target) {
43
- const e4 = document.querySelector(v.target);
42
+ if ("string" == typeof m.target) {
43
+ const e4 = document.querySelector(m.target);
44
44
  return [...e4 ? [e4] : [], window];
45
45
  }
46
46
  return [window];
47
47
  })();
48
- y.value = e3, B.value = y.value[0], y.value.forEach((e4) => e4.addEventListener("scroll", S)), window.addEventListener("resize", L), b();
48
+ b.value = e3, B.value = b.value[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E(), m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
49
+ });
50
+ }), i(() => {
51
+ B.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
52
+ }), l(() => {
53
+ n(() => {
54
+ E();
49
55
  });
50
- }), n(() => {
51
- B.value && y.value.forEach((e3) => e3.removeEventListener("scroll", S)), window.removeEventListener("resize", L), clearTimeout(C);
52
56
  });
53
- const k = l(() => {
57
+ const z = a(() => {
54
58
  var _a;
55
- return g.value ? { position: "fixed", width: `${(_a = x.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: v.zIndex, [v.position]: `${v.offset + T.value}px` } : {};
59
+ return h.value ? { position: "fixed", width: `${(_a = g.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + T.value}px` } : {};
56
60
  });
57
- return (e3, t2) => (a(), s("div", { ref_key: "affixMainRef", ref: w, class: "yx-affix" }, [g.value ? (a(), s("div", { key: 0, style: f(h.value), class: "yx-affix-placeholder" }, null, 4)) : r("", true), u("div", { ref_key: "affixRef", ref: x, style: f(k.value), class: c({ "yx-affix-content": true, "is-fixed": g.value, "is-top": "top" === v.position, "is-bottom": "bottom" === v.position }) }, [d(e3.$slots, "default")], 6)], 512));
61
+ return (e3, t2) => (r(), s("div", { ref_key: "affixMainRef", ref: x, class: "yx-affix" }, [h.value ? (r(), s("div", { key: 0, style: c(y.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: g, 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
62
  } });
59
63
  export {
60
- p as default
64
+ v as default
61
65
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as s, openBlock as u, withCtx as f, createElementVNode as r, normalizeStyle as p, normalizeClass as g, unref as v, Fragment as d, renderList as c } from "vue";
1
+ import { defineComponent as e, ref as t, computed as o, onMounted as i, nextTick as a, onUnmounted as n, createBlock as l, createElementBlock as u, openBlock as s, withCtx as f, createElementVNode as r, normalizeStyle as p, normalizeClass as g, unref as d, Fragment as v, renderList as c } from "vue";
2
2
  import m from "../../object-render.vue.js";
3
3
  import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
4
4
  import y from "../fixed/YxAffix.vue.js";
@@ -6,7 +6,7 @@ import C from "../fixed/FixedBox.vue.js";
6
6
  const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, w = { key: 2, "data-v": "1.0.0", class: "amb-widget-tools-parent" }, _ = e({ __name: "tools-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
7
7
  const _2 = e2, j = t(null), R = _2.configure.runtime ?? {}, h = R.class, A = o(() => _2.configure.props), F = o(() => {
8
8
  const { gap: e3 } = A.value ?? {};
9
- return { ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
9
+ return { backgroundColor: "#fff", ...e3 ? { gap: `${e3}px` } : {}, ...R.style ?? {} };
10
10
  }), B = o(() => {
11
11
  var _a, _b, _c;
12
12
  return !![(_a = A.value) == null ? void 0 : _a.isAffix, (_b = A.value) == null ? void 0 : _b.isFixed].every((e3) => void 0 === e3) || ((_c = A.value) == null ? void 0 : _c.isAffix);
@@ -25,7 +25,7 @@ const b = { "data-v": "1.0.0", class: "amb-widget-tools-parent" }, k = { "data-v
25
25
  x(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
26
26
  });
27
27
  }), n(() => {
28
- }), (e3, t2) => D.value ? (u(), l(C, { key: 0, position: Y.value, offset: $.value }, { default: f(() => [r("div", b, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", v(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(u(true), s(d, null, c(_2.configure.items, (e4) => (u(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : B.value ? (u(), l(y, { key: 1, position: Y.value, offset: $.value }, { default: f(() => [r("div", k, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", v(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(u(true), s(d, null, c(_2.configure.items, (e4) => (u(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : (u(), s("div", w, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", v(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(u(true), s(d, null, c(_2.configure.items, (e4) => (u(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
28
+ }), (e3, t2) => D.value ? (s(), l(C, { key: 0, position: Y.value, offset: $.value }, { default: f(() => [r("div", b, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : B.value ? (s(), l(y, { key: 1, position: Y.value, offset: $.value }, { default: f(() => [r("div", k, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)])]), _: 1 }, 8, ["position", "offset"])) : (s(), u("div", w, [r("div", { class: g(["amb-widget-container-tool amb-widget-tools", d(h)]), style: p(F.value), ref_key: "thisRef", ref: j }, [(s(true), u(v, null, c(_2.configure.items, (e4) => (s(), l(m, { pageContext: _2.pageContext, configure: e4, key: e4.uuid }, null, 8, ["pageContext", "configure"]))), 128))], 6)]));
29
29
  } });
30
30
  export {
31
31
  _ as default
@@ -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 w = e2, z = w.pageContext.entity ? w.pageContext.entity : {};
8
- let D = R(w.pageContext, w.configure);
9
- const O = t({ get() {
10
- let e3 = x(z, D);
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(z, D, e3);
14
- } }), A = w.configure.runtime ? w.configure.runtime : {}, M = A.style, P = A.class, E = A.headerStyle, F = A.titleExceedStyle, T = l(A.props ? A.props : {}), U = l(T.value.options ? T.value.options : []), W = b(w.pageContext, w.configure);
15
- W.length > 0 && (U.value = W);
16
- const q = w.configure.props && w.configure.props.dataOrigin ? w.configure.props.dataOrigin : {}, B = q.optionValueSetType;
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) && q.autoSets) for (let e3 of q.autoSets) e3.source && G.push(e3);
19
- w.configure && w.configure.props && w.configure.props.base && w.configure.props.base.optionProp && G.push({ source: "label", target: w.configure.props.base.optionProp }), T.value.changeMethod = function(e3) {
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
- U.value && null != e3 && null != e3 && (t2 = U.value.filter((t3) => Array.isArray(e3) ? e3.includes(t3.value) : e3 === t3.value)), k(w.configure, w.pageContext, G, t2);
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, w.pageContext, w.configure, "change");
24
+ S(e3, q.pageContext, q.configure, "change");
25
25
  };
26
- const H = T.value.optionconfigInfo ? T.value.optionconfigInfo : {};
27
- const J = T.value.monitorFields;
28
- C(w.pageContext, J, function() {
29
- _(w.pageContext, H, void 0).then((e3) => {
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 = O.value;
36
- j(e3, w.pageContext, w.configure, { formItemRef: K.value, componentRef: L.value, titleRef: N.value, value: e3, entity: w.pageContext.entity.data, pageData: w.pageContext.entity.page });
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
- U.value = e3 || [];
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(P)), "label-width": T.value.labelWidth, style: r(p(M)) }, { label: c(() => [T.value.tittleShow ? (i(), g("div", { key: 0, ref_key: "titleRef", ref: N, style: r({ ...p(E), ...p(F) }) }, h(p(I)(T.value.title)), 5)) : m("", true)]), default: c(() => [f(o2, { ref_key: "componentRef", ref: L, disabled: "disabled" === T.value.state, size: T.value.size, onChange: T.value.changeMethod, modelValue: O.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => O.value = e4) }, { default: c(() => [(i(true), g(v, null, d(U.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: O.value }) }, null, 8, ["value", "label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 1 }, 8, ["class", "label-width", "style"]);
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 C } from "vue";
2
- import v from "./error-render.vue.js";
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 x } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
6
- import { getPermissionCodes as j, packageFormRules as w, controlObjectRenderState as _ } from "../../utils/page-init-util.js";
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 = j(H2.configure, H2.pageContext);
16
- H2.configure && H2.configure.props && H2.configure.props.base && (H2.configure.props.base.functionCode = k), w(H2.pageContext, H2.configure);
17
- let B = o(true), F = o(true), J = 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) if (T(H2.pageContext, H2.configure)) if (e3 && e3.length > 0) o2 = N(H2.pageContext, e3);
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 = v, W.value = false);
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 : x.PC, o2 = G.style[e3 + "_style"];
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 = true;
74
+ B.value = "show";
75
75
  }), e3 && !e3.hide && (e3.hide = function() {
76
- B.value = false;
76
+ B.value = "hide";
77
77
  }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
78
78
  return H2.configure;
79
- }), H2.configure.uuid && h(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
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 && C(() => {
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 || Le && "refresh" === l4 ? ol(e8) : nl.go(-1);
124
+ l4 && "popup" === l4 ? ol(e8) : nl.go(-1);
125
125
  }(e7);
126
126
  });
127
127
  }
package/dist/es/style.css CHANGED
@@ -1,4 +1,33 @@
1
- .vue-affix-placeholder {
1
+ .yx-card-box-main[data-v-16a57b36] > .el-card__header {
2
+ position: relative;
3
+ }
4
+ .yx-card-box-main[data-v-16a57b36] > .el-card__header .yx-card-box-header {
5
+ display: flex;
6
+ flex-direction: row;
7
+ justify-content: space-between;
8
+ align-items: center;
9
+ gap: 15px;
10
+ flex: 1 1 auto;
11
+ }
12
+ .yx-card-box-main[data-v-16a57b36] > .el-card__header .yx-card-box-header .yx-card-box-title {
13
+ position: relative;
14
+ z-index: 2;
15
+ }
16
+ .yx-card-box-main[data-v-16a57b36] > .el-card__header .yx-card-box-header::after {
17
+ content: " ";
18
+ position: absolute;
19
+ left: 0;
20
+ top: 0;
21
+ bottom: 0;
22
+ right: 0;
23
+ z-index: 0;
24
+ }
25
+ .yx-card-box-main[data-v-16a57b36] > .el-card__header .yx-card-box-header .yx-card-box-title {
26
+ flex: 1 1 auto;
27
+ }
28
+ .yx-card-box-main[data-v-16a57b36][data-collapse=false] > .el-card__body {
29
+ display: none;
30
+ }.vue-affix-placeholder {
2
31
  display: block;
3
32
  visibility: hidden;
4
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.40",
3
+ "version": "2.2.44",
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.13",
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",