@done-coding/admin-core 0.14.1-alpha.0 → 0.15.1-alpha.0
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/es/components/app-layout/AppBody.vue.mjs +2 -2
- package/es/components/app-layout/AppBody.vue2.mjs +47 -44
- package/es/components/app-layout/AppPage.vue.mjs +1 -1
- package/es/components/app-layout/AppPage.vue2.mjs +146 -90
- package/es/components/app-layout/app-page-geometry.mjs +42 -15
- package/es/components/display/TabsMain.vue.mjs +114 -59
- package/es/components/display/TabsTile.vue.mjs +7 -0
- package/es/components/display/TabsTile.vue2.mjs +182 -0
- package/es/components/display/use-tabs-query-sync.mjs +26 -0
- package/es/components/form/FormSearch.vue.mjs +2 -2
- package/es/components/form/FormSearch.vue2.mjs +84 -75
- package/es/components/form/form-search-utils.mjs +58 -29
- package/es/components/panel/PanelMain.vue.mjs +1 -1
- package/es/components/panel/PanelMain.vue2.mjs +15 -15
- package/es/hooks/use-channel-viewport-height.mjs +1 -4
- package/es/hooks/use-theme-apply.mjs +65 -54
- package/es/index.mjs +203 -196
- package/es/inject/key.mjs +19 -13
- package/es/store/app.mjs +77 -68
- package/es/style.css +1 -1
- package/es/utils/dom.mjs +12 -0
- package/package.json +2 -2
- package/types/components/app-layout/app-page-geometry.d.ts +15 -0
- package/types/components/display/TabsTile.vue.d.ts +208 -0
- package/types/components/display/types.d.ts +7 -0
- package/types/components/display/use-tabs-query-sync.d.ts +16 -0
- package/types/components/form/form-search-utils.d.ts +13 -6
- package/types/components/modal/ConfirmModal.vue.d.ts +1 -1
- package/types/inject/key.d.ts +13 -1
- package/types/injectInfo.json.d.ts +1 -1
- package/types/store/app.d.ts +19 -1
- package/types/utils/dom.d.ts +1 -0
- package/types/utils/index.d.ts +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppBody.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const
|
|
4
|
+
const m = /* @__PURE__ */ p(o, [["__scopeId", "data-v-c593275f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,87 +1,90 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, useCssVars as I, inject as E, ref as b, computed as o, provide as d, readonly as L, watch as H, resolveComponent as F, openBlock as i, createElementBlock as Y, normalizeStyle as g, createElementVNode as $, createBlock as a, unref as S, withCtx as T, createVNode as w, createCommentVNode as s, KeepAlive as k, resolveDynamicComponent as A, renderSlot as D } from "vue";
|
|
2
2
|
import { ElAffix as U } from "element-plus";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { APP_LAYOUT_APP_STORE_KEY as
|
|
6
|
-
import { useActivated as
|
|
7
|
-
const
|
|
3
|
+
import G from "./AppBreadcrumb.vue.mjs";
|
|
4
|
+
import z from "lodash/debounce";
|
|
5
|
+
import { APP_LAYOUT_APP_STORE_KEY as K, APP_LAYOUT_BRIDGE_KEY as W, BODY_CONTENT_VIEWPORT_HEIGHT as M, BODY_CONTENT_VIEWPORT_RECT as j, BODY_CONTENT_VIEWPORT_INSET as q } from "../../inject/key.mjs";
|
|
6
|
+
import { useActivated as J } from "../../hooks/activated.mjs";
|
|
7
|
+
const ie = /* @__PURE__ */ N({
|
|
8
8
|
__name: "AppBody",
|
|
9
9
|
props: {
|
|
10
10
|
menuFlatList: { default: () => [] }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
setup(O) {
|
|
13
|
+
I((e) => ({
|
|
14
|
+
v513aac26: r.value
|
|
15
15
|
}));
|
|
16
|
-
const t =
|
|
17
|
-
|
|
18
|
-
const
|
|
16
|
+
const t = E(K), c = E(W), P = c.APP_ROUTER_CONFIG, u = b(!1), p = o(() => c.APP_LAYOUT_BREADCRUMB_CONFIG.height), m = b(0);
|
|
17
|
+
d(M, L(m));
|
|
18
|
+
const y = o(() => t.bodyShimPadding), l = o(() => t.bodyShimStyle), C = o(() => t.bodyStyle), f = o(() => t.showBreadcrumb), R = o(() => parseFloat(`${t.bodyStyle.paddingTop ?? 0}`) || 0), V = o(() => ({
|
|
19
19
|
top: t.bodyStyle.paddingTop,
|
|
20
20
|
left: t.bodyStyle.paddingLeft,
|
|
21
21
|
right: t.bodyStyle.paddingRight,
|
|
22
|
-
bottom: `calc(100vh - ${t.bodyStyle.paddingTop} - ${
|
|
22
|
+
bottom: `calc(100vh - ${t.bodyStyle.paddingTop} - ${l.value.minHeight})`,
|
|
23
23
|
// app-body-shim 内边距:供 AppPage 各插槽 shim 朝 chrome 侧留呼吸
|
|
24
|
-
shimPadding:
|
|
24
|
+
shimPadding: y.value
|
|
25
25
|
}));
|
|
26
|
-
|
|
26
|
+
d(j, V), d(
|
|
27
|
+
q,
|
|
28
|
+
o(() => t.contentViewportInset)
|
|
29
|
+
);
|
|
27
30
|
const r = o(
|
|
28
|
-
() => `calc(${
|
|
29
|
-
),
|
|
30
|
-
|
|
31
|
-
}, n =
|
|
31
|
+
() => `calc(${l.value.minHeight} - ${f.value && u.value ? p.value : 0}px - ${y.value * 2}px)`
|
|
32
|
+
), x = (e) => {
|
|
33
|
+
u.value = e;
|
|
34
|
+
}, n = z(() => {
|
|
32
35
|
const e = document.createElement("div");
|
|
33
|
-
e.style.height = r.value, e.style.position = "fixed", e.style.left = "100%", e.style.top = "100%", e.style.opacity = "0", e.style.pointerEvents = "none", document.body.appendChild(e),
|
|
36
|
+
e.style.height = r.value, e.style.position = "fixed", e.style.left = "100%", e.style.top = "100%", e.style.opacity = "0", e.style.pointerEvents = "none", document.body.appendChild(e), m.value = e.clientHeight, e.remove();
|
|
34
37
|
}, 16);
|
|
35
38
|
return H(r, () => {
|
|
36
39
|
n();
|
|
37
|
-
}),
|
|
40
|
+
}), J((e) => {
|
|
38
41
|
typeof window > "u" || (e.isActivated ? (n(), window.addEventListener("resize", n)) : (window.removeEventListener("resize", n), n.cancel()));
|
|
39
|
-
}), (e,
|
|
40
|
-
const
|
|
41
|
-
return i(),
|
|
42
|
+
}), (e, Q) => {
|
|
43
|
+
const B = F("RouterView");
|
|
44
|
+
return i(), Y("div", {
|
|
42
45
|
class: "app-body",
|
|
43
|
-
style:
|
|
46
|
+
style: g(C.value)
|
|
44
47
|
}, [
|
|
45
|
-
|
|
48
|
+
$("div", {
|
|
46
49
|
class: "app-body-shim",
|
|
47
|
-
style:
|
|
50
|
+
style: g(l.value)
|
|
48
51
|
}, [
|
|
49
|
-
|
|
52
|
+
f.value ? (i(), a(S(U), {
|
|
50
53
|
key: 0,
|
|
51
54
|
offset: R.value
|
|
52
55
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
height:
|
|
56
|
-
menuFlatList:
|
|
57
|
-
onShow:
|
|
56
|
+
default: T(() => [
|
|
57
|
+
w(G, {
|
|
58
|
+
height: p.value,
|
|
59
|
+
menuFlatList: O.menuFlatList,
|
|
60
|
+
onShow: x
|
|
58
61
|
}, null, 8, ["height", "menuFlatList"])
|
|
59
62
|
]),
|
|
60
63
|
_: 1
|
|
61
|
-
}, 8, ["offset"])) :
|
|
62
|
-
|
|
63
|
-
default:
|
|
64
|
-
Component:
|
|
64
|
+
}, 8, ["offset"])) : s("", !0),
|
|
65
|
+
w(B, null, {
|
|
66
|
+
default: T(({
|
|
67
|
+
Component: v,
|
|
65
68
|
route: {
|
|
66
|
-
path:
|
|
69
|
+
path: _,
|
|
67
70
|
meta: { keepAlive: h }
|
|
68
71
|
}
|
|
69
72
|
}) => [
|
|
70
|
-
(i(),
|
|
71
|
-
max: S(
|
|
73
|
+
(i(), a(k, {
|
|
74
|
+
max: S(P).keepAliveMaxCount
|
|
72
75
|
}, [
|
|
73
|
-
h ? (i(),
|
|
76
|
+
h ? (i(), a(A(v), { key: _ })) : s("", !0)
|
|
74
77
|
], 1032, ["max"])),
|
|
75
|
-
h ?
|
|
78
|
+
h ? s("", !0) : (i(), a(A(v), { key: _ }))
|
|
76
79
|
]),
|
|
77
80
|
_: 1
|
|
78
81
|
})
|
|
79
82
|
], 4),
|
|
80
|
-
|
|
83
|
+
D(e.$slots, "footer", {}, void 0, !0)
|
|
81
84
|
], 4);
|
|
82
85
|
};
|
|
83
86
|
}
|
|
84
87
|
});
|
|
85
88
|
export {
|
|
86
|
-
|
|
89
|
+
ie as default
|
|
87
90
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AppPage.vue2.mjs";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import p from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ p(o, [["__scopeId", "data-v-6ba4ec25"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { computeAppPageSlotStyles as
|
|
6
|
-
import { BODY_CONTENT_VIEWPORT_RECT as
|
|
7
|
-
import { useActivated as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as oe, useCssVars as ae, computed as t, useSlots as se, ref as i, shallowRef as le, inject as $, provide as R, openBlock as u, createElementBlock as pe, normalizeStyle as s, createElementVNode as c, createVNode as ie, unref as d, withCtx as v, renderSlot as g, createBlock as x, createCommentVNode as P } from "vue";
|
|
2
|
+
import S from "lodash/debounce";
|
|
3
|
+
import ne from "../modal/ModalShelf.vue.mjs";
|
|
4
|
+
import k from "../display/WatchSize.vue.mjs";
|
|
5
|
+
import { computeAppPageReducedViewportHeight as re, computeAppPageContentInset as ue, computeAppPageReducedViewportWidth as ce, computeAppPageSlotStyles as de, computeAppPageSlotShimStyles as ve } from "./app-page-geometry.mjs";
|
|
6
|
+
import { BODY_CONTENT_VIEWPORT_RECT as ge, BODY_CONTENT_VIEWPORT_HEIGHT as A, BODY_CONTENT_VIEWPORT_INSET as fe, APP_PAGE_CONTENT_INSET as he } from "../../inject/key.mjs";
|
|
7
|
+
import { useActivated as I } from "../../hooks/activated.mjs";
|
|
8
|
+
const me = "--app-viewport-max-height", Ee = /* @__PURE__ */ oe({
|
|
9
9
|
name: "AppPage",
|
|
10
10
|
__name: "AppPage",
|
|
11
11
|
props: {
|
|
@@ -19,158 +19,214 @@ const j = "--app-viewport-max-height", ie = /* @__PURE__ */ O({
|
|
|
19
19
|
leftBg: {},
|
|
20
20
|
rightBg: {}
|
|
21
21
|
},
|
|
22
|
-
setup(
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
setup(z) {
|
|
23
|
+
ae((e) => ({
|
|
24
|
+
v0f6d6f31: n.value.top,
|
|
25
|
+
v314acecf: n.value.bottom,
|
|
26
|
+
v4386a4aa: n.value.left,
|
|
27
|
+
v2ca12e10: n.value.right,
|
|
28
|
+
v2c1456bc: n.value.width,
|
|
29
|
+
v3af5c5cb: n.value.height,
|
|
30
|
+
v1911457e: a.nextViewportMaxHeight
|
|
25
31
|
}));
|
|
26
|
-
const
|
|
27
|
-
background:
|
|
28
|
-
...
|
|
29
|
-
[
|
|
32
|
+
const a = z, L = t(() => ({
|
|
33
|
+
background: a.background,
|
|
34
|
+
...a.fullViewport ? {
|
|
35
|
+
[a.fullMode]: `var(${me})`
|
|
30
36
|
} : {}
|
|
31
|
-
})),
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
},
|
|
37
|
+
})), f = se(), M = t(() => !!f.top), D = t(() => !!f.bottom), F = t(() => !!f.left), Y = t(() => !!f.right), h = i(0), m = i(0), B = i(0), E = i(0), G = (e) => {
|
|
38
|
+
h.value = e;
|
|
39
|
+
}, q = (e) => {
|
|
40
|
+
m.value = e;
|
|
41
|
+
}, J = (e) => {
|
|
36
42
|
B.value = e;
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
},
|
|
43
|
+
}, K = (e) => {
|
|
44
|
+
E.value = e;
|
|
45
|
+
}, l = le(), V = i({
|
|
40
46
|
top: "0px",
|
|
41
47
|
left: "0px",
|
|
42
48
|
right: "0px",
|
|
43
49
|
bottom: "0px"
|
|
44
|
-
}),
|
|
45
|
-
const e =
|
|
50
|
+
}), p = $(ge, void 0), Q = !p, r = S(() => {
|
|
51
|
+
const e = l.value;
|
|
46
52
|
if (!e || typeof window > "u") return;
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
top: `${
|
|
50
|
-
left: `${
|
|
51
|
-
right: `${window.innerWidth -
|
|
52
|
-
bottom: `${window.innerHeight -
|
|
53
|
+
const o = e.getBoundingClientRect();
|
|
54
|
+
V.value = {
|
|
55
|
+
top: `${o.top}px`,
|
|
56
|
+
left: `${o.left}px`,
|
|
57
|
+
right: `${window.innerWidth - o.right}px`,
|
|
58
|
+
bottom: `${window.innerHeight - o.bottom}px`
|
|
53
59
|
};
|
|
54
60
|
}, 16);
|
|
55
|
-
if (
|
|
56
|
-
const e = typeof ResizeObserver < "u" ? new ResizeObserver(() =>
|
|
57
|
-
|
|
58
|
-
|
|
61
|
+
if (Q && typeof window < "u") {
|
|
62
|
+
const e = typeof ResizeObserver < "u" ? new ResizeObserver(() => r()) : void 0;
|
|
63
|
+
I((o) => {
|
|
64
|
+
o.isActivated ? (r(), e && l.value && e.observe(l.value), window.addEventListener("resize", r)) : (e == null || e.disconnect(), window.removeEventListener("resize", r), r.cancel());
|
|
59
65
|
});
|
|
60
66
|
}
|
|
61
|
-
const
|
|
62
|
-
const e =
|
|
63
|
-
return e ? { top: e.top, left: e.left, right: e.right, bottom: e.bottom } :
|
|
64
|
-
}),
|
|
67
|
+
const U = t(() => {
|
|
68
|
+
const e = p == null ? void 0 : p.value;
|
|
69
|
+
return e ? { top: e.top, left: e.left, right: e.right, bottom: e.bottom } : V.value;
|
|
70
|
+
}), b = t(() => {
|
|
65
71
|
var e;
|
|
66
|
-
return ((e =
|
|
67
|
-
}),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
72
|
+
return ((e = p == null ? void 0 : p.value) == null ? void 0 : e.shimPadding) ?? 0;
|
|
73
|
+
}), T = t(() => ({
|
|
74
|
+
topH: h.value,
|
|
75
|
+
bottomH: m.value,
|
|
76
|
+
leftW: B.value,
|
|
77
|
+
rightW: E.value
|
|
78
|
+
})), X = $(A, i(0)), W = t(
|
|
79
|
+
() => re(
|
|
80
|
+
X.value,
|
|
81
|
+
T.value,
|
|
82
|
+
b.value
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
R(A, W);
|
|
86
|
+
const Z = {
|
|
87
|
+
top: 0,
|
|
88
|
+
bottom: 0,
|
|
89
|
+
left: 0,
|
|
90
|
+
right: 0
|
|
91
|
+
}, j = $(
|
|
92
|
+
fe,
|
|
93
|
+
t(() => Z)
|
|
94
|
+
), C = t(
|
|
95
|
+
() => ue(j.value, T.value, a.gap)
|
|
96
|
+
);
|
|
97
|
+
R(he, C);
|
|
98
|
+
const H = i(0), O = () => {
|
|
99
|
+
l.value && (H.value = l.value.clientWidth);
|
|
100
|
+
}, w = S(O, 16);
|
|
101
|
+
if (typeof window < "u") {
|
|
102
|
+
const e = typeof ResizeObserver < "u" ? new ResizeObserver(() => w()) : void 0;
|
|
103
|
+
I((o) => {
|
|
104
|
+
o.isActivated ? (O(), e && l.value ? e.observe(l.value) : window.addEventListener("resize", w)) : (e == null || e.disconnect(), window.removeEventListener("resize", w), w.cancel());
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
const ee = t(
|
|
108
|
+
() => ce(
|
|
109
|
+
H.value,
|
|
110
|
+
T.value,
|
|
111
|
+
b.value
|
|
112
|
+
)
|
|
113
|
+
), n = t(() => {
|
|
114
|
+
const e = C.value;
|
|
115
|
+
return {
|
|
116
|
+
top: `${e.top}px`,
|
|
117
|
+
bottom: `${e.bottom}px`,
|
|
118
|
+
left: `${e.left}px`,
|
|
119
|
+
right: `${e.right}px`,
|
|
120
|
+
width: `${ee.value}px`,
|
|
121
|
+
height: `${W.value}px`
|
|
122
|
+
};
|
|
123
|
+
}), y = t(
|
|
124
|
+
() => de(U.value, h.value, m.value)
|
|
125
|
+
), _ = t(() => {
|
|
126
|
+
const e = ve(b.value, a.gap);
|
|
71
127
|
return {
|
|
72
|
-
top: { ...e.top, background:
|
|
73
|
-
bottom: { ...e.bottom, background:
|
|
74
|
-
left: { ...e.left, background:
|
|
75
|
-
right: { ...e.right, background:
|
|
128
|
+
top: { ...e.top, background: a.topBg },
|
|
129
|
+
bottom: { ...e.bottom, background: a.bottomBg },
|
|
130
|
+
left: { ...e.left, background: a.leftBg },
|
|
131
|
+
right: { ...e.right, background: a.rightBg }
|
|
76
132
|
};
|
|
77
|
-
}),
|
|
78
|
-
const e =
|
|
133
|
+
}), te = t(() => {
|
|
134
|
+
const e = b.value, o = (N) => `${Math.max(0, N ? N - e : 0)}px`;
|
|
79
135
|
return {
|
|
80
|
-
paddingTop:
|
|
81
|
-
paddingBottom:
|
|
82
|
-
paddingLeft:
|
|
83
|
-
paddingRight:
|
|
136
|
+
paddingTop: o(h.value),
|
|
137
|
+
paddingBottom: o(m.value),
|
|
138
|
+
paddingLeft: o(B.value),
|
|
139
|
+
paddingRight: o(E.value)
|
|
84
140
|
};
|
|
85
141
|
});
|
|
86
|
-
return (e,
|
|
142
|
+
return (e, o) => (u(), pe("div", {
|
|
87
143
|
ref_key: "appPageRef",
|
|
88
|
-
ref:
|
|
144
|
+
ref: l,
|
|
89
145
|
class: "dc-app-page app-page",
|
|
90
|
-
style:
|
|
146
|
+
style: s(L.value)
|
|
91
147
|
}, [
|
|
92
|
-
|
|
148
|
+
c("div", {
|
|
93
149
|
class: "app-page-shim",
|
|
94
|
-
style:
|
|
150
|
+
style: s(te.value)
|
|
95
151
|
}, [
|
|
96
|
-
|
|
97
|
-
default:
|
|
152
|
+
ie(d(ne), { level: "page" }, {
|
|
153
|
+
default: v(() => [
|
|
98
154
|
g(e.$slots, "default", {}, void 0, !0)
|
|
99
155
|
]),
|
|
100
156
|
_: 3
|
|
101
157
|
})
|
|
102
158
|
], 4),
|
|
103
|
-
|
|
159
|
+
M.value ? (u(), x(d(k), {
|
|
104
160
|
key: 0,
|
|
105
161
|
mode: "height",
|
|
106
162
|
class: "app-page-slot app-page-slot--top",
|
|
107
|
-
style:
|
|
108
|
-
onHeightChange:
|
|
163
|
+
style: s(y.value.top),
|
|
164
|
+
onHeightChange: G
|
|
109
165
|
}, {
|
|
110
|
-
default:
|
|
111
|
-
|
|
166
|
+
default: v(() => [
|
|
167
|
+
c("div", {
|
|
112
168
|
class: "app-page-slot-shim",
|
|
113
|
-
style:
|
|
169
|
+
style: s(_.value.top)
|
|
114
170
|
}, [
|
|
115
171
|
g(e.$slots, "top", {}, void 0, !0)
|
|
116
172
|
], 4)
|
|
117
173
|
]),
|
|
118
174
|
_: 3
|
|
119
|
-
}, 8, ["style"])) :
|
|
120
|
-
|
|
175
|
+
}, 8, ["style"])) : P("", !0),
|
|
176
|
+
D.value ? (u(), x(d(k), {
|
|
121
177
|
key: 1,
|
|
122
178
|
mode: "height",
|
|
123
179
|
class: "app-page-slot app-page-slot--bottom",
|
|
124
|
-
style:
|
|
125
|
-
onHeightChange:
|
|
180
|
+
style: s(y.value.bottom),
|
|
181
|
+
onHeightChange: q
|
|
126
182
|
}, {
|
|
127
|
-
default:
|
|
128
|
-
|
|
183
|
+
default: v(() => [
|
|
184
|
+
c("div", {
|
|
129
185
|
class: "app-page-slot-shim",
|
|
130
|
-
style:
|
|
186
|
+
style: s(_.value.bottom)
|
|
131
187
|
}, [
|
|
132
188
|
g(e.$slots, "bottom", {}, void 0, !0)
|
|
133
189
|
], 4)
|
|
134
190
|
]),
|
|
135
191
|
_: 3
|
|
136
|
-
}, 8, ["style"])) :
|
|
137
|
-
|
|
192
|
+
}, 8, ["style"])) : P("", !0),
|
|
193
|
+
F.value ? (u(), x(d(k), {
|
|
138
194
|
key: 2,
|
|
139
195
|
mode: "width",
|
|
140
196
|
class: "app-page-slot app-page-slot--left",
|
|
141
|
-
style:
|
|
142
|
-
onWidthChange:
|
|
197
|
+
style: s(y.value.left),
|
|
198
|
+
onWidthChange: J
|
|
143
199
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
200
|
+
default: v(() => [
|
|
201
|
+
c("div", {
|
|
146
202
|
class: "app-page-slot-shim",
|
|
147
|
-
style:
|
|
203
|
+
style: s(_.value.left)
|
|
148
204
|
}, [
|
|
149
205
|
g(e.$slots, "left", {}, void 0, !0)
|
|
150
206
|
], 4)
|
|
151
207
|
]),
|
|
152
208
|
_: 3
|
|
153
|
-
}, 8, ["style"])) :
|
|
154
|
-
|
|
209
|
+
}, 8, ["style"])) : P("", !0),
|
|
210
|
+
Y.value ? (u(), x(d(k), {
|
|
155
211
|
key: 3,
|
|
156
212
|
mode: "width",
|
|
157
213
|
class: "app-page-slot app-page-slot--right",
|
|
158
|
-
style:
|
|
159
|
-
onWidthChange:
|
|
214
|
+
style: s(y.value.right),
|
|
215
|
+
onWidthChange: K
|
|
160
216
|
}, {
|
|
161
|
-
default:
|
|
162
|
-
|
|
217
|
+
default: v(() => [
|
|
218
|
+
c("div", {
|
|
163
219
|
class: "app-page-slot-shim",
|
|
164
|
-
style:
|
|
220
|
+
style: s(_.value.right)
|
|
165
221
|
}, [
|
|
166
222
|
g(e.$slots, "right", {}, void 0, !0)
|
|
167
223
|
], 4)
|
|
168
224
|
]),
|
|
169
225
|
_: 3
|
|
170
|
-
}, 8, ["style"])) :
|
|
226
|
+
}, 8, ["style"])) : P("", !0)
|
|
171
227
|
], 4));
|
|
172
228
|
}
|
|
173
229
|
});
|
|
174
230
|
export {
|
|
175
|
-
|
|
231
|
+
Ee as default
|
|
176
232
|
};
|
|
@@ -1,38 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function x(t, o) {
|
|
2
|
+
return t ? Math.max(0, t - o) : 0;
|
|
3
|
+
}
|
|
4
|
+
function d(t, o, e) {
|
|
5
|
+
return Math.max(
|
|
6
|
+
0,
|
|
7
|
+
t - x(o.topH, e) - x(o.bottomH, e)
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
function u(t, o, e) {
|
|
11
|
+
return Math.max(
|
|
12
|
+
0,
|
|
13
|
+
t - x(o.leftW, e) - x(o.rightW, e)
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function r(t, o, e) {
|
|
17
|
+
const { topH: i, bottomH: p, leftW: n, rightW: f } = o;
|
|
18
|
+
return {
|
|
19
|
+
top: t.top + i + (i ? e : 0),
|
|
20
|
+
bottom: t.bottom + p + (p ? e : 0),
|
|
21
|
+
left: t.left + n + (n ? e : 0),
|
|
22
|
+
right: t.right + f + (f ? e : 0)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const m = 1;
|
|
26
|
+
function l(t, o, e) {
|
|
27
|
+
const i = m, p = `calc(${t.top} + ${o}px)`, n = `calc(${t.bottom} + ${e}px)`;
|
|
4
28
|
return {
|
|
5
29
|
top: {
|
|
6
30
|
position: "fixed",
|
|
7
31
|
top: t.top,
|
|
8
32
|
left: t.left,
|
|
9
33
|
right: t.right,
|
|
10
|
-
zIndex:
|
|
34
|
+
zIndex: i
|
|
11
35
|
},
|
|
12
36
|
bottom: {
|
|
13
37
|
position: "fixed",
|
|
14
38
|
bottom: t.bottom,
|
|
15
39
|
left: t.left,
|
|
16
40
|
right: t.right,
|
|
17
|
-
zIndex:
|
|
41
|
+
zIndex: i
|
|
18
42
|
},
|
|
19
43
|
left: {
|
|
20
44
|
position: "fixed",
|
|
21
45
|
left: t.left,
|
|
22
|
-
top:
|
|
23
|
-
bottom:
|
|
24
|
-
zIndex:
|
|
46
|
+
top: p,
|
|
47
|
+
bottom: n,
|
|
48
|
+
zIndex: i
|
|
25
49
|
},
|
|
26
50
|
right: {
|
|
27
51
|
position: "fixed",
|
|
28
52
|
right: t.right,
|
|
29
|
-
top:
|
|
30
|
-
bottom:
|
|
31
|
-
zIndex:
|
|
53
|
+
top: p,
|
|
54
|
+
bottom: n,
|
|
55
|
+
zIndex: i
|
|
32
56
|
}
|
|
33
57
|
};
|
|
34
58
|
}
|
|
35
|
-
function
|
|
59
|
+
function h(t, o) {
|
|
36
60
|
return {
|
|
37
61
|
top: { padding: `${t}px ${t}px ${o}px ${t}px` },
|
|
38
62
|
bottom: { padding: `${o}px ${t}px ${t}px ${t}px` },
|
|
@@ -41,7 +65,10 @@ function $(t, o) {
|
|
|
41
65
|
};
|
|
42
66
|
}
|
|
43
67
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
68
|
+
m as APP_PAGE_SLOT_Z_INDEX,
|
|
69
|
+
r as computeAppPageContentInset,
|
|
70
|
+
d as computeAppPageReducedViewportHeight,
|
|
71
|
+
u as computeAppPageReducedViewportWidth,
|
|
72
|
+
h as computeAppPageSlotShimStyles,
|
|
73
|
+
l as computeAppPageSlotStyles
|
|
47
74
|
};
|