super-page-runtime 2.2.77-sit5 → 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.
- package/dist/es/components/runtime/utils/events/standard-event.js +292 -294
- package/dist/es/components/runtime/utils/page-init-util.js +6 -5
- package/dist/es/components/runtime/utils/tree-utils.js +23 -24
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +12 -12
- package/dist/es/style.css +4 -4
- package/package.json +2 -2
|
@@ -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
|
-
|
|
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) &&
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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 =
|
|
25
|
-
let d = e(n4,
|
|
26
|
-
d = t(d,
|
|
27
|
-
const u = { pageCode:
|
|
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,
|
|
37
|
+
const r = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
39
38
|
var _a;
|
|
40
|
-
if ("beanName" === ((_a =
|
|
41
|
-
const s3 =
|
|
42
|
-
a.delete(n2, { data:
|
|
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,
|
|
45
|
+
}), s = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
47
46
|
var _a;
|
|
48
|
-
if ("beanName" === ((_a =
|
|
49
|
-
const s3 =
|
|
50
|
-
a.post(n2,
|
|
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,
|
|
53
|
+
}), n = (t2, o2, i2) => new Promise((r2, s2) => {
|
|
55
54
|
var _a;
|
|
56
|
-
if ("beanName" === ((_a =
|
|
57
|
-
const s3 =
|
|
58
|
-
a.put(n2, p(false, t2,
|
|
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,
|
|
64
|
-
const
|
|
65
|
-
e2 && (
|
|
66
|
-
const r2 = { pageCode:
|
|
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
|
-
|
|
71
|
+
i as getMenuTreeData,
|
|
73
72
|
n as updateTreeNode
|
|
74
73
|
};
|
package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, resolveComponent as l, createBlock as
|
|
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
|
|
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
|
|
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)),
|
|
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
|
|
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
|
|
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(
|
|
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,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-
|
|
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
|
|
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" ===
|
|
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 (
|
|
12
|
+
} else if (h.stickyInScrollContainer) {
|
|
13
13
|
const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
|
|
14
|
-
const t3 = ["top"].includes(
|
|
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,
|
|
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
|
-
|
|
39
|
+
h.enableIntervalUpdate && (I.value = setInterval(z, h.enableIntervalTime));
|
|
40
40
|
const e3 = (() => {
|
|
41
|
-
if (
|
|
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
|
|
51
|
-
const e4 = document.querySelector(
|
|
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: `${(
|
|
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" ===
|
|
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-
|
|
370
|
+
}.yx-affix[data-v-9c39a9f5]:empty {
|
|
371
371
|
display: none;
|
|
372
372
|
}
|
|
373
|
-
.yx-affix .yx-affix-content[data-v-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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",
|