super-page-runtime 2.2.40 → 2.2.44-tmp1

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-6e950bc1"]]);
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(() => {
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
+ import { ElCard as b } from "element-plus";
3
+ import { SuperIcon as h } from "agilebuilder-ui";
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
+ var _a, _b;
10
+ const _ = e2;
11
+ _.configure.items || (_.configure.items = []);
12
+ const R = t(() => {
13
+ var _a2;
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(() => {
12
17
  n(() => {
13
- j(null, T.pageContext, T.configure, { componentRef: V.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
18
+ T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.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
+ }), V2({ test: function() {
21
+ _.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-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
+ };
18
26
  } });
19
27
  export {
20
- k as default
28
+ V as default
21
29
  };
@@ -1,61 +1,73 @@
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";
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;
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 };
16
- })(o2);
17
- T.value = l2 ?? 0, E(i2 || n2 || false, e3);
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
- }, 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);
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 C;
25
- const L = () => {
26
- clearTimeout(C), C = window.setTimeout(() => {
27
- b();
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
- i(() => {
32
- const e3 = (() => {
33
- if (v.autoDetectParentScroll && x.value) {
34
- const e4 = [];
35
- let t2 = x.value.parentElement;
36
- for (; t2 && t2 !== document.body; ) {
37
- const { overflowY: o2 } = window.getComputedStyle(t2);
38
- /(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
39
- }
40
- return [...e4, window];
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
- if ("string" == typeof v.target) {
43
- const e4 = document.querySelector(v.target);
44
- return [...e4 ? [e4] : [], window];
45
- }
46
- return [window];
47
- })();
48
- y.value = e3, B.value = y.value[0], y.value.forEach((e4) => e4.addEventListener("scroll", S)), window.addEventListener("resize", L), b();
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 k = l(() => {
65
+ const z = a(() => {
54
66
  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` } : {};
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) => (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));
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
- p as default
72
+ v as default
61
73
  };
@@ -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,59 +1,67 @@
1
- import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick as u, onUnmounted as t, watch as a, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as y, createCommentVNode as m, createSlots as g, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
1
+ import { defineComponent as e, ref as l, computed as o, onMounted as t, nextTick as n, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as c, normalizeStyle as p, normalizeClass as s, unref as v, withCtx as f, createVNode as g, createCommentVNode as y, createSlots as m, createTextVNode as d, toDisplayString as x, createElementBlock as C, Fragment as I } from "vue";
2
2
  import { SuperIcon as T } from "agilebuilder-ui";
3
3
  import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
4
4
  import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as b, handleFormEvent as w, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
6
- import { formatScanRuleSets as j, analysisScanValue as R, setScanAnalysisValue as S } from "../../../../utils/form/scan-util.js";
5
+ import { handleAfterInitEvent as w, handleFormEvent as b, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
6
+ import { formatScanRuleSets as j, analysisScanValue as S, setScanAnalysisValue as R } from "../../../../utils/form/scan-util.js";
7
7
  import P from "../common/title-suffix-element.vue.js";
8
8
  import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
9
9
  import z from "../../../../utils/eventBus.js";
10
10
  import { $t as D } from "../../../../utils/i18n-util.js";
11
11
  const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
12
12
  var _a, _b, _c;
13
- const B = e2, N = B.pageContext.entity ? B.pageContext.entity : {};
14
- let O = k(B.pageContext, B.configure);
15
- const $ = l(q()), A = B.pageContext.code, E = l(O && O.length > 0 ? A + "__" + O.join("__") : null), F = n({ get: () => h(N, O), set(e3) {
16
- e3 = e3.trim(), V(N, O, e3);
17
- } }), J = l(null), M = l(null), U = l(null);
18
- o(() => {
19
- z.$on(E.value + "-scanDone", (e3) => {
20
- oe(e3.result);
21
- }), u(() => {
22
- const e3 = F.value;
23
- b(e3, B.pageContext, B.configure, { formItemRef: J.value, componentRef: M.value, titleRef: U.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
13
+ const N = e2, O = N.pageContext.entity ? N.pageContext.entity : {};
14
+ let B = k(N.pageContext, N.configure);
15
+ const J = l(q()), M = N.pageContext.code, $ = l(B && B.length > 0 ? M + "__" + B.join("__") : null), A = o({ get: () => h(O, B), set(e3) {
16
+ e3 = e3.trim(), V(O, B, e3);
17
+ } }), E = l(null), F = l(null), U = l(null);
18
+ t(() => {
19
+ z.$on($.value + "-scanDone", (e3) => {
20
+ ae(e3.result);
21
+ }), n(() => {
22
+ const e3 = A.value;
23
+ w(e3, N.pageContext, N.configure, { formItemRef: E.value, componentRef: F.value, titleRef: U.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
24
24
  });
25
- }), t(() => {
26
- z.$off(E.value + "-scanDone");
25
+ }), a(() => {
26
+ z.$off($.value + "-scanDone");
27
27
  });
28
- const W = B.configure.runtime ? B.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
- let K;
30
- K = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
31
- const Q = !(!$.value || !K || "app" !== K), X = l(!!(Q && H.value || $.value && H.value && "https:" === window.location.protocol));
32
- let Y = {};
28
+ const W = N.configure.runtime ? N.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
29
+ let K = false;
30
+ const Q = window.localStorage.getItem("auth_source");
31
+ Q && "dingtalk" === Q && (K = true);
32
+ let X = "";
33
+ X = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
34
+ const Y = !(!J.value || !X || "app" !== X), Z = l(!!((Y || K) && H.value || J.value && H.value && "https:" === window.location.protocol));
35
+ let ee = {};
33
36
  ((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
34
- Y = e3;
35
- }), a(() => F.value, (e3) => {
36
- const l2 = R(e3, Y);
37
- l2 && S(B.pageContext, l2.scanSet, l2.params);
37
+ ee = e3;
38
+ }), u(() => A.value, (e3) => {
39
+ const l2 = S(e3, ee);
40
+ l2 && R(N.pageContext, l2.scanSet, l2.params);
38
41
  }));
39
- const Z = W.style, ee = W.class, le = W.headerStyle, ne = W.titleExceedStyle;
40
- function oe(e3) {
41
- return V(N, O, e3);
42
+ const le = W.style, oe = W.class, te = W.headerStyle, ne = W.titleExceedStyle;
43
+ function ae(e3) {
44
+ return V(O, B, e3);
42
45
  }
43
46
  const ue = l(false);
44
- function te(e3) {
45
- ue.value = false, oe(e3);
47
+ function ie(e3) {
48
+ ue.value = false, ae(e3);
46
49
  }
47
50
  return L2({ getValue: function() {
48
- return h(N, O);
49
- }, setValue: oe }), (e3, l2) => {
50
- const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
51
- return c(), r(u2, { ref_key: "formItemRef", ref: J, required: !!G.value.required, class: s(v(ee)), "label-width": G.value.labelWidth, style: p(v(Z)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(le), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: F.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => F.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, g({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, X.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [X.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
52
- if (Q) {
53
- const e5 = { type: "scan", componentId: E.value, systemCode: B.pageContext.systemCode };
51
+ return h(O, B);
52
+ }, setValue: ae }), (e3, l2) => {
53
+ const o2 = i("el-input"), t2 = i("scan-code-input-browser"), n2 = i("el-form-item");
54
+ return c(), r(n2, { ref_key: "formItemRef", ref: E, required: !!G.value.required, class: s(v(oe)), "label-width": G.value.labelWidth, style: p(v(le)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(te), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(o2, { ref_key: "componentRef", ref: F, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: A.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => A.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(b)(l3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, Z.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [Z.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
55
+ if (Y || K) {
56
+ const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
57
+ K && (e5.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e5), "*");
58
+ } else if (J.value) if ("https:" === window.location.protocol) ue.value = true;
59
+ else {
60
+ const e5 = { type: "scan", componentId: $.value, systemCode: N.pageContext.systemCode };
54
61
  window.parent.postMessage(JSON.stringify(e5), "*");
55
- } else ue.value = true;
56
- }()) })) : m("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: te })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
62
+ }
63
+ else ue.value = true;
64
+ }()) })) : y("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(A.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(t2, { key: 0, onClose: ie })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
57
65
  };
58
66
  } });
59
67
  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,14 +1,33 @@
1
- .vue-affix-placeholder {
2
- display: block;
3
- visibility: hidden;
1
+
2
+ .yx-card-box-view-main[data-v-6e950bc1] > .el-card__header {
3
+ position: relative;
4
4
  }
5
- .vue-affix-content.is-fixed {
6
- left: 50%;
7
- transform: translateX(-50%);
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;
11
+ flex: 1 1 auto;
8
12
  }
9
- .vue-affix-content.is-fixed[style*="position: static"] {
10
- transform: none;
11
- }.el-form-item[data-v-96fc65d8] {
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;
17
+ }
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;
26
+ }
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] {
12
31
  margin-bottom: 0px;
13
32
  }
14
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.40",
3
+ "version": "2.2.44-tmp1",
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-tmp6",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",