super-page-runtime 2.2.77-sit1 → 2.2.77-sit8

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.
@@ -133,11 +133,12 @@ function C(s2, i2, n2) {
133
133
  const a2 = i2.code;
134
134
  return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
135
135
  }
136
- function I(e2, t2) {
136
+ const I = ["button-detail", "print-label"];
137
+ function O(e2, t2) {
137
138
  var _a, _b;
138
139
  const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
139
140
  let n2 = false;
140
- if (p(e2) && "button-detail" !== t2.name && e2.fieldPermissionMap) {
141
+ if (p(e2) && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
141
142
  const s3 = e2.fieldPermissionMap.get("all_fields");
142
143
  false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", n2 = true);
143
144
  }
@@ -152,7 +153,7 @@ function I(e2, t2) {
152
153
  ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
153
154
  }
154
155
  }
155
- function O(e2, t2) {
156
+ function _(e2, t2) {
156
157
  if (e2.initInfo) {
157
158
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
158
159
  const i2 = e2.initInfo[s2];
@@ -168,7 +169,7 @@ function O(e2, t2) {
168
169
  }
169
170
  }
170
171
  export {
171
- O as controlObjectRenderState,
172
+ _ as controlObjectRenderState,
172
173
  c as convertToPageContext,
173
174
  P as getDefaultValue,
174
175
  w as getFormModelFields,
@@ -177,7 +178,7 @@ export {
177
178
  b as packageAdditionalMapWithLocationSearch,
178
179
  y as packageAdditionalMapWithPageRequest,
179
180
  h as packageAdditionalMapWithRoute,
180
- I as packageFormRules,
181
+ O as packageFormRules,
181
182
  f as queryPageDesignByCode,
182
183
  C as queryPageSuperGrids
183
184
  };
@@ -1,9 +1,8 @@
1
1
  import { getBaseUrl as e, getRealRestApiPath as t } from "./common-util.js";
2
2
  import a from "agilebuilder-ui/src/utils/request";
3
3
  import "./eventBus.js";
4
- import { getPermissionCodes as i } from "./page-init-util.js";
4
+ import { getPermissionCodes as o } from "./page-init-util.js";
5
5
  import "agilebuilder-ui/src/utils/common-util";
6
- import "agilebuilder-ui/src/store";
7
6
  import "agilebuilder-ui/src/utils/util";
8
7
  import "element-plus";
9
8
  import "agilebuilder-ui/src/utils/auth";
@@ -17,14 +16,14 @@ import "./page-store.js";
17
16
  import "agilebuilder-ui/src/utils/i18n-util";
18
17
  import "vue-i18n";
19
18
  import "async-validator";
20
- function o(o2, r2, s2, n2, p2) {
19
+ function i(i2, r2, s2, n2, p2) {
21
20
  return new Promise((s3, n3) => {
22
21
  var _a, _b;
23
22
  if (r2 && ((_a = r2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = r2.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
24
- const n4 = o2.backendUrl, l = o2.systemCode, m = i(r2, o2);
25
- let d = e(n4, o2.isTest) + "/dsc/commons/load-tree-node";
26
- d = t(d, l, n4, o2.isTest);
27
- const u = { pageCode: o2.code, pageVersion: o2.version, tableName: o2.tableName, systemCode: l, functionCode: m, beanName: o2.beanName };
23
+ const n4 = i2.backendUrl, m = i2.systemCode, l = o(r2, i2);
24
+ let d = e(n4, i2.isTest) + "/dsc/commons/load-tree-node";
25
+ d = t(d, m, n4, i2.isTest);
26
+ const u = { pageCode: i2.code, pageVersion: i2.version, tableName: i2.tableName, systemCode: m, functionCode: l, beanName: i2.beanName };
28
27
  r2.props.dataOrigin.beanName && (u.beanName = r2.props.dataOrigin.beanName), p2 && Object.assign(u, p2), a.post(d, u).then((e2) => {
29
28
  s3(e2);
30
29
  });
@@ -35,40 +34,40 @@ function o(o2, r2, s2, n2, p2) {
35
34
  else s3([]);
36
35
  });
37
36
  }
38
- const r = (t2, i2, o2) => new Promise((r2, s2) => {
37
+ const r = (t2, o2, i2) => new Promise((r2, s2) => {
39
38
  var _a;
40
- if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
41
- const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node", l = p(false, t2, i2, o2);
42
- a.delete(n2, { data: l }).then((e2) => {
39
+ if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
40
+ const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(false, t2, o2, i2);
41
+ a.delete(n2, { data: m }).then((e2) => {
43
42
  r2(e2);
44
43
  });
45
44
  }
46
- }), s = (t2, i2, o2) => new Promise((r2, s2) => {
45
+ }), s = (t2, o2, i2) => new Promise((r2, s2) => {
47
46
  var _a;
48
- if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
49
- const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node", l = p(true, t2, i2, o2);
50
- a.post(n2, l).then((e2) => {
47
+ if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
48
+ const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node", m = p(true, t2, o2, i2);
49
+ a.post(n2, m).then((e2) => {
51
50
  r2(e2);
52
51
  });
53
52
  }
54
- }), n = (t2, i2, o2) => new Promise((r2, s2) => {
53
+ }), n = (t2, o2, i2) => new Promise((r2, s2) => {
55
54
  var _a;
56
- if ("beanName" === ((_a = i2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
57
- const s3 = o2.backendUrl, n2 = e(s3, o2.isTest) + "/dsc/commons/tree-node";
58
- a.put(n2, p(false, t2, i2, o2)).then((e2) => {
55
+ if ("beanName" === ((_a = o2.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) {
56
+ const s3 = i2.backendUrl, n2 = e(s3, i2.isTest) + "/dsc/commons/tree-node";
57
+ a.put(n2, p(false, t2, o2, i2)).then((e2) => {
59
58
  r2(e2);
60
59
  });
61
60
  }
62
61
  });
63
- function p(e2, t2, a2, i2) {
64
- const o2 = JSON.parse(JSON.stringify(t2.data));
65
- e2 && (o2.nodeId = null);
66
- const r2 = { pageCode: i2.code, pageVersion: i2.version, systemCode: i2.systemCode, beanName: i2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: o2, parentNode: null };
62
+ function p(e2, t2, a2, o2) {
63
+ const i2 = JSON.parse(JSON.stringify(t2.data));
64
+ e2 && (i2.nodeId = null);
65
+ const r2 = { pageCode: o2.code, pageVersion: o2.version, systemCode: o2.systemCode, beanName: o2.beanName, tableName: a2.props.base.treeTableName, treeLabelProp: a2.props.base.treeLabelProp, treeParentIdProp: a2.props.base.treeParentIdProp, currentNode: i2, parentNode: null };
67
66
  return a2.props.dataOrigin.beanName && (r2.beanName = a2.props.dataOrigin.beanName), t2.parent && t2.parent.level > 0 && (r2.parentNode = t2.parent.data), r2;
68
67
  }
69
68
  export {
70
69
  s as createTreeNode,
71
70
  r as deleteNode,
72
- o as getMenuTreeData,
71
+ i as getMenuTreeData,
73
72
  n as updateTreeNode
74
73
  };
@@ -1,11 +1,10 @@
1
- import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as r, openBlock as a, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
3
  import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
4
  import { ElLoading as y, ElMessage as C } from "element-plus";
5
- import b from "agilebuilder-ui/src/utils/request";
5
+ import S from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
8
- import "agilebuilder-ui/src/store";
9
8
  import "agilebuilder-ui/src/utils/auth";
10
9
  import "../../../../utils/global-refs.js";
11
10
  import "../../../../utils/eventBus.js";
@@ -15,7 +14,7 @@ import "../../../../utils/page-store.js";
15
14
  import "agilebuilder-ui/src/utils/i18n-util";
16
15
  import "vue-i18n";
17
16
  import "../../../../utils/events/print-label.js";
18
- const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
17
+ const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
19
18
  } } }, setup(e2, { expose: x2 }) {
20
19
  const N = e2, _ = t(false), J = t({}), j = t(0);
21
20
  let I;
@@ -48,7 +47,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
48
47
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
49
48
  t2 && (o2 = JSON.parse(t2)), o2[N.configure.homeChartSettingUserId] = e3;
50
49
  const i2 = JSON.stringify(e3);
51
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
50
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), S.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
52
51
  C.success("保存成功"), T();
53
52
  });
54
53
  }
@@ -56,7 +55,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
56
55
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
57
56
  } }), (t2, o2) => {
58
57
  const i2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
- return a(), r(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (a(), r(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (a(), r(v2, { key: j.value }, { default: n(() => [(a(true), g(m, null, d(k.value, (t3) => (a(), r(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
58
+ return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", b, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(i2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
60
59
  };
61
60
  } });
62
61
  export {
@@ -1,8 +1,7 @@
1
- import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as i, resolveDynamicComponent as u, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
1
+ import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
2
2
  import "agilebuilder-ui/src/utils/common-util";
3
3
  import "agilebuilder-ui/src/utils/util";
4
4
  import "agilebuilder-ui/src/utils/request";
5
- import "agilebuilder-ui/src/store";
6
5
  import "element-plus";
7
6
  import "agilebuilder-ui/src/utils/auth";
8
7
  import "../../../../utils/global-refs.js";
@@ -38,7 +37,7 @@ const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __
38
37
  }
39
38
  return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
40
39
  const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
41
- return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(i(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(u(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, i(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, i(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, i(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
40
+ return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(i(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
42
41
  };
43
42
  } });
44
43
  export {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, createElementBlock as i, openBlock as a, normalizeClass as u, normalizeStyle as p, unref as l, withDirectives as s, createVNode as c, createBlock as g, createCommentVNode as f, vShow as m, withCtx as d, Fragment as h, renderList as v, h as y } from "vue";
2
2
  import C from "../common/common-chart-header.vue.js";
3
3
  import { getSizeConfig as b, getChartDatasFromPage as x, getValueFromVariable as O, isPromise as S, setValueForVariableName as w, updateChartDatasourcesByComponent as E, caculateShowCondition as j } from "../../../../utils/page-helper-util.js";
4
- import { getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
- import $ from "./group-column.vue.js";
4
+ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
5
+ import F from "./group-column.vue.js";
6
6
  import k from "./normal-column.vue.js";
7
7
  import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as T, rowDataToColumn as H, getColumnToRowTableConfig as N, colDataToRow as _, computeFormula as z, getNewColumnConfig as D, summaryStatistics as P, replacePlaceholders as U, getIndexColumn as G, getHeaderCellStyleUtil as K, getRowStyleUtil as V, getCellStyleUtil as A, formatColContent as J } from "./chart-table-util.js";
8
+ import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as D, summaryStatistics as J, replacePlaceholders as P, getIndexColumn as U, getHeaderCellStyleUtil as V, getRowStyleUtil as G, getCellStyleUtil as K, formatColContent as A } from "./chart-table-util.js";
9
9
  import { deepCopy as L } from "../../../../utils/common-util.js";
10
10
  const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
11
11
  var _a;
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
19
19
  }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
20
20
  if (B.configure.props.base.showIndex) {
21
21
  re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
- const e4 = G();
22
+ const e4 = U();
23
23
  e4 && (te.value.$index = e4);
24
24
  }
25
25
  }();
@@ -28,7 +28,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
28
28
  te.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (se.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ce.value[e3.props.base.prop] = e3.formula);
29
29
  });
30
30
  }
31
- ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = R(B.configure), ie.value && (ue.value = T(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = T(B.configure, "group")));
31
+ ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
32
32
  let de = 300, he = b(B.pageContext, B.configure);
33
33
  function ve() {
34
34
  const e3 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
@@ -38,36 +38,48 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
38
38
  }
39
39
  function ye(e3) {
40
40
  e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
41
- var _a2, _b;
41
+ var _a2;
42
42
  Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
43
- if (me) {
44
- if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
45
- let e5 = 10;
46
- "fix" === B.configure.props.dataOrigin.itemNumSource ? e5 = B.configure.props.dataOrigin.itemNumFix : "variable" === B.configure.props.dataOrigin.itemNumSource && (e5 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable)));
47
- let o2 = [];
48
- if (((_b = B.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _b.length) > 0) o2 = B.configure.props.dataOrigin.limitCountColumns;
49
- else {
50
- ne.value.filter((e6) => "number" === e6.props.base.dataType).forEach((e6) => {
51
- o2.push(e6.props.base.prop);
52
- });
53
- }
54
- if ((o2 == null ? void 0 : o2.length) > 0) {
55
- const n2 = me.slice(e5, me.length - 1), r2 = {}, t2 = ne.value[0].props.base.prop;
56
- n2.forEach((e6) => {
57
- o2.forEach((o3) => {
58
- void 0 === r2[o3] && (r2[o3] = 0), r2[o3] = r2[o3] + e6[o3];
59
- });
60
- }), me.length > e5 && (me = me.slice(0, e5 - 1)), r2[t2] = B.configure.props.dataOrigin.overItemAlias, me.push(r2);
61
- }
43
+ if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
44
+ let o2 = 10;
45
+ if ("fix" === B.configure.props.dataOrigin.itemNumSource) o2 = B.configure.props.dataOrigin.itemNumFix;
46
+ else if ("variable" === B.configure.props.dataOrigin.itemNumSource) {
47
+ o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
48
+ const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
49
+ r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
50
+ Ce(o3, i2, e4);
51
+ });
62
52
  }
63
- Ce(me, e4);
64
- }
53
+ Ce(o2, me, e4);
54
+ } else be(me, e4);
65
55
  }(e3), e3.hasRender = true, X && (X.autoRefresh = false));
66
56
  }
67
- function Ce(e3, o2) {
57
+ function Ce(e3, o2, n2) {
58
+ var _a2;
59
+ if (e3 && e3 < o2.length) {
60
+ let r2 = [];
61
+ if (((_a2 = B.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) r2 = B.configure.props.dataOrigin.limitCountColumns;
62
+ else {
63
+ ne.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
64
+ r2.push(e4.props.base.prop);
65
+ });
66
+ }
67
+ if ((r2 == null ? void 0 : r2.length) > 0) {
68
+ const n3 = o2.slice(e3 - 1, o2.length), t2 = {};
69
+ let i2 = ne.value[0].props.base.prop;
70
+ "$index" === i2 && (i2 = ne.value[1].props.base.prop), n3.forEach((e4) => {
71
+ r2.forEach((o3) => {
72
+ void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
73
+ });
74
+ }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = B.configure.props.dataOrigin.overItemAlias, o2.push(t2);
75
+ }
76
+ be(o2, n2);
77
+ } else be(o2, n2);
78
+ }
79
+ function be(e3, o2) {
68
80
  var _a2;
69
- if (be("rowToColumn")) {
70
- if (e3 = H(e3, B.configure, ne.value), !ee.value) {
81
+ if (xe("rowToColumn")) {
82
+ if (e3 = T(e3, B.configure, ne.value), !ee.value) {
71
83
  const o3 = function(e4, o4, n2) {
72
84
  const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
73
85
  if ((!i2 || 0 === i2.length) && n2.length > 0) {
@@ -98,16 +110,16 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
98
110
  }(B.configure, ne.value, e3);
99
111
  ne.value = o3;
100
112
  }
101
- } else be("columnToRow") && (ee.value || (ne.value = N(B.configure)), e3 = _(e3, B.configure));
113
+ } else xe("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = _(e3, B.configure));
102
114
  if (B.configure.props.dataOrigin.dataFormatting) {
103
- const o3 = F(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
115
+ const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
104
116
  if (o3) {
105
117
  const n2 = o3.apply(o3, [{ tableData: e3 }]);
106
118
  n2 && (e3 = n2);
107
119
  }
108
120
  }
109
121
  if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && z(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
110
- "frontend" === B.configure.pageination.type ? (fe.value = me.length, $e(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
122
+ "frontend" === B.configure.pageination.type ? (fe.value = me.length, ke(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
111
123
  }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
112
124
  const e4 = B.configure.props.highOrder.groupField;
113
125
  oe.value = function(e5, o3) {
@@ -122,11 +134,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
122
134
  for (let e6 = 0; e6 < a2.length; e6++) {
123
135
  const o4 = a2[e6], i3 = {};
124
136
  t2 == null ? void 0 : t2.forEach((e7) => {
125
- const n3 = e7.props.base.prop, r3 = P(pe.value[n3], o4, n3, B.pageContext);
137
+ const n3 = e7.props.base.prop, r3 = J(pe.value[n3], o4, n3, B.pageContext);
126
138
  i3[n3] = r3;
127
139
  }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
128
140
  const n3 = e7.props.base.prop;
129
- i3[n3] = U(e7.props.base.summaryTitle, o4[0]);
141
+ i3[n3] = P(e7.props.base.summaryTitle, o4[0]);
130
142
  }), n2.push(i3), le.push(n2.length - 1);
131
143
  }
132
144
  return n2;
@@ -134,24 +146,24 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
134
146
  }
135
147
  !function(e4) {
136
148
  if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
137
- const o3 = G();
149
+ const o3 = U();
138
150
  o3 && e4.unshift(o3);
139
151
  }
140
152
  }(ne.value);
141
153
  }
142
- function be(e3) {
143
- return B.configure.props.dataOrigin.transition === e3 && B.configure.props.dataOrigin[e3].titleColumns && B.configure.props.dataOrigin[e3].titleColumns.length > 0 && B.configure.props.dataOrigin[e3].dataColumns && B.configure.props.dataOrigin[e3].dataColumns.length > 0;
144
- }
145
154
  function xe(e3) {
146
- const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
147
- return K(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
155
+ return B.configure.props.dataOrigin.transition === e3 && B.configure.props.dataOrigin[e3].titleColumns && B.configure.props.dataOrigin[e3].titleColumns.length > 0 && B.configure.props.dataOrigin[e3].dataColumns && B.configure.props.dataOrigin[e3].dataColumns.length > 0;
148
156
  }
149
157
  function Oe(e3) {
150
- return V(e3, le, B);
158
+ const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
159
+ return V(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
151
160
  }
152
161
  function Se(e3) {
162
+ return G(e3, le, B);
163
+ }
164
+ function we(e3) {
153
165
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
154
- return A(e3, o2, B);
166
+ return K(e3, o2, B);
155
167
  }
156
168
  he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
157
169
  const e3 = x(B.pageContext, B.configure);
@@ -159,50 +171,50 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
159
171
  else if ("variable" === B.configure.props.dataOrigin.dataSource) {
160
172
  ve();
161
173
  const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
162
- o2 && Ce(o2, e3);
174
+ o2 && be(o2, e3);
163
175
  }
164
176
  });
165
- const we = (e3) => {
177
+ const Ee = (e3) => {
166
178
  const { columns: o2, data: n2 } = e3, r2 = [];
167
179
  return o2.forEach((e4, o3) => {
168
180
  if (ae.value[e4.property]) {
169
181
  const t2 = ae.value[e4.property].label;
170
- r2[o3] = y("div", {}, [U(t2, n2)]);
182
+ r2[o3] = y("div", {}, [P(t2, n2)]);
171
183
  } else if (ue.value[e4.property]) {
172
184
  const t2 = n2.filter((e5, o4) => !le.includes(o4));
173
- r2[o3] = P(ue.value[e4.property], t2, e4.property, B.pageContext);
185
+ r2[o3] = J(ue.value[e4.property], t2, e4.property, B.pageContext);
174
186
  }
175
187
  }), r2;
176
188
  };
177
- function Ee({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
189
+ function je({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
178
190
  const t2 = o2.property, i2 = B.configure.props.highOrder;
179
191
  if (i2.scopeFunc) {
180
- const t3 = F(B.pageContext, i2.scopeFunc);
192
+ const t3 = $(B.pageContext, i2.scopeFunc);
181
193
  if (t3) {
182
194
  const i3 = t3.apply(t3, [{ tableData: oe.value, row: e3, column: o2, rowIndex: n2, columnIndex: r2 }]);
183
195
  if (i3) return i3;
184
196
  }
185
197
  } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2) && 0 === n2) return { rowspan: oe.value.length, colspan: 1 };
186
198
  }
187
- function je(e3, o2) {
188
- "frontend" === B.configure.pageination.type ? $e(e3, o2) : ke(e3, o2);
199
+ function $e(e3, o2) {
200
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
189
201
  }
190
202
  function Fe(e3, o2) {
191
- "frontend" === B.configure.pageination.type ? $e(e3, o2) : ke(e3, o2);
203
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
192
204
  }
193
- function $e(e3, o2) {
205
+ function ke(e3, o2) {
194
206
  me && (oe.value = me.slice((e3 - 1) * o2, e3 * o2));
195
207
  }
196
- function ke(e3, o2) {
208
+ function Ie(e3, o2) {
197
209
  B.configure.pageination.currentPageSet && w(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && w(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), E(B.pageContext, B.configure.uuid);
198
210
  }
199
- function Ie(e3) {
211
+ function Ne(e3) {
200
212
  const o2 = e3.showCondition;
201
213
  return j(B.pageContext, o2);
202
214
  }
203
215
  function Re(e3) {
204
216
  if (B.configure.props.modelCustom) {
205
- const o2 = F(B.pageContext, B.configure.props.modelCustom);
217
+ const o2 = $(B.pageContext, B.configure.props.modelCustom);
206
218
  if (o2) {
207
219
  const n2 = o2.apply(o2, [{ pageContext: B.pageContext, configureObj: B.configure, value: e3 }]);
208
220
  S(n2) ? n2.then((e4) => {
@@ -227,7 +239,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
227
239
  let o3 = [];
228
240
  oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
229
241
  e4.forEach((e5) => {
230
- const n3 = J(o4, e5.props.format, e5, B.pageContext, B.configure);
242
+ const n3 = A(o4, e5.props.format, e5, B.pageContext, B.configure);
231
243
  o4[e5.props.base.prop] = n3;
232
244
  });
233
245
  }));
@@ -235,7 +247,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
235
247
  }(n2), columns: e3 };
236
248
  } }), (o2, n2) => {
237
249
  const r2 = t("el-table");
238
- return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(de), "header-cell-style": xe, "row-style": Oe, "cell-style": Se, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": we, "span-method": Ee }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ie(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g($, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ie(o3) ? (a(), g(k, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: je, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
250
+ return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(de), "header-cell-style": Oe, "row-style": Se, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Ee, "span-method": je }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ne(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(F, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ne(o3) ? (a(), g(k, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: $e, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
239
251
  };
240
252
  } });
241
253
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./YxAffix.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-a57b9445"]]);
4
+ const r = o(e, [["__scopeId", "data-v-9c39a9f5"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,17 +1,17 @@
1
1
  import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, resolveDirective as r, createElementBlock as s, openBlock as u, normalizeStyle as f, withDirectives as c, normalizeClass as d, renderSlot as v } from "vue";
2
2
  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 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: p2 }) {
3
- const m = e2, h = p2, g = t(null), w = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = (e3) => {
3
+ const h = e2, m = p2, g = t(null), w = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = (e3) => {
4
4
  e3.contentRect.height && (y.value.height = e3.contentRect.height);
5
5
  }, S = () => {
6
6
  try {
7
7
  if (!w.value) return;
8
8
  const e3 = w.value.getBoundingClientRect(), t2 = T.value;
9
9
  if (t2 === window) {
10
- const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
10
+ const t3 = "top" === h.position ? e3.top <= h.offset : e3.bottom >= window.innerHeight - h.offset;
11
11
  B.value = 0, R(t3, e3);
12
- } else if (m.stickyInScrollContainer) {
12
+ } else if (h.stickyInScrollContainer) {
13
13
  const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
14
- const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
14
+ const t3 = ["top"].includes(h.position), o3 = ["bottom"].includes(h.position);
15
15
  if (!g.value) return { isTop: t3, isBottom: o3 };
16
16
  const n3 = g.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;
17
17
  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 };
@@ -22,7 +22,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
22
22
  }
23
23
  }, R = (e3, t2) => {
24
24
  var _a;
25
- e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, h("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {});
25
+ t2.height && (e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, m("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {}));
26
26
  }, z = () => {
27
27
  requestAnimationFrame(S);
28
28
  };
@@ -36,9 +36,9 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
36
36
  setTimeout(() => {
37
37
  n(() => {
38
38
  try {
39
- m.enableIntervalUpdate && (I.value = setInterval(z, m.enableIntervalTime));
39
+ h.enableIntervalUpdate && (I.value = setInterval(z, h.enableIntervalTime));
40
40
  const e3 = (() => {
41
- if (m.autoDetectParentScroll && w.value) {
41
+ if (h.autoDetectParentScroll && w.value) {
42
42
  const e4 = [];
43
43
  let t2 = w.value.parentElement;
44
44
  for (; t2 && t2 !== document.body; ) {
@@ -47,8 +47,8 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
47
47
  }
48
48
  return [...e4, window];
49
49
  }
50
- if ("string" == typeof m.target) {
51
- const e4 = document.querySelector(m.target);
50
+ if ("string" == typeof h.target) {
51
+ const e4 = document.querySelector(h.target);
52
52
  return [...e4 ? [e4] : [], window];
53
53
  }
54
54
  return [window];
@@ -66,12 +66,12 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
66
66
  });
67
67
  });
68
68
  const F = a(() => {
69
- var _a;
70
- return x.value ? { position: "fixed", width: `${(_a = w.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
69
+ var _a, _b;
70
+ return x.value && ((_a = w.value) == null ? void 0 : _a.offsetWidth) ? { position: "fixed", width: `${(_b = w.value) == null ? void 0 : _b.offsetWidth}px`, zIndex: h.zIndex, [h.position]: `${h.offset + B.value}px` } : { position: "relative" };
71
71
  });
72
72
  return (e3, t2) => {
73
73
  const o2 = r("resize");
74
- return u(), s("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: x.value ? y.value.height : void 0 }) }, [c((u(), s("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": x.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
74
+ return u(), s("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: x.value ? y.value.height : void 0 }) }, [c((u(), s("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": x.value, "is-top": "top" === h.position, "is-bottom": "bottom" === h.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
75
75
  };
76
76
  } });
77
77
  export {
package/dist/es/style.css CHANGED
@@ -367,16 +367,16 @@
367
367
  }
368
368
  .runtime-page-container[data-v-43b6d6e8] .runtime-page-container-view .el-row > div[style*="display: inline-block"] {
369
369
  width: auto;
370
- }.yx-affix[data-v-a57b9445]:empty {
370
+ }.yx-affix[data-v-9c39a9f5]:empty {
371
371
  display: none;
372
372
  }
373
- .yx-affix .yx-affix-content[data-v-a57b9445]:empty {
373
+ .yx-affix .yx-affix-content[data-v-9c39a9f5]:empty {
374
374
  display: none;
375
375
  }
376
- .yx-affix .yx-affix-content.is-fixed.is-top[data-v-a57b9445] {
376
+ .yx-affix .yx-affix-content.is-fixed.is-top[data-v-9c39a9f5] {
377
377
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
378
378
  }
379
- .yx-affix .yx-affix-content.is-fixed.is-bottom[data-v-a57b9445] {
379
+ .yx-affix .yx-affix-content.is-fixed.is-bottom[data-v-9c39a9f5] {
380
380
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
381
381
  }.yx-card-box-view-main[data-v-26138226] > .el-card__header {
382
382
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.77-sit1",
3
+ "version": "2.2.77-sit8",
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.26-sit1",
51
+ "agilebuilder-ui": "1.1.26-sit3",
52
52
  "axios": "^1.6.8",
53
53
  "cypress": "^13.6.6",
54
54
  "element-plus": "^2.6.1",