@enos5/enos-vue-default 1.8.14 → 1.8.15
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/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './styles.css';
|
|
2
|
-
import { _, a, b, c, d, e, f, g, h, i, C, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, S, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3 } from "./plugin-
|
|
2
|
+
import { _, a, b, c, d, e, f, g, h, i, C, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, S, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3 } from "./plugin-DGM-XlRe.js";
|
|
3
3
|
export {
|
|
4
4
|
_ as ActionCard,
|
|
5
5
|
a as ActionMessage,
|
package/dist/index.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _, a, b, c, d, e, f, g, h, i, C, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, S, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3 } from "./plugin-
|
|
1
|
+
import { _, a, b, c, d, e, f, g, h, i, C, j, k, D, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, S, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W, X, Y, Z, $, a0, a1, a2, a3 } from "./plugin-DGM-XlRe.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as ActionCard,
|
|
4
4
|
a as ActionMessage,
|
|
@@ -1099,6 +1099,7 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1099
1099
|
return;
|
|
1100
1100
|
}
|
|
1101
1101
|
const rect = triggerRef.value.getBoundingClientRect();
|
|
1102
|
+
const teleportElement = teleportTarget.value instanceof HTMLElement ? teleportTarget.value : null;
|
|
1102
1103
|
const viewportWidth = window.innerWidth;
|
|
1103
1104
|
const viewportHeight = window.innerHeight;
|
|
1104
1105
|
const spaceBelow = viewportHeight - rect.bottom - 8;
|
|
@@ -1106,6 +1107,19 @@ const _sfc_main$G = /* @__PURE__ */ Object.assign({ inheritAttrs: false }, {
|
|
|
1106
1107
|
const shouldOpenUpward = spaceBelow < 240 && spaceAbove > spaceBelow;
|
|
1107
1108
|
const width = Math.min(rect.width, Math.max(viewportWidth - rect.left - 16, 160));
|
|
1108
1109
|
const maxHeight = Math.max(Math.min(240, shouldOpenUpward ? spaceAbove : spaceBelow), 120);
|
|
1110
|
+
if (teleportElement && teleportElement !== document.body) {
|
|
1111
|
+
const containerRect = teleportElement.getBoundingClientRect();
|
|
1112
|
+
dropdownStyle.value = {
|
|
1113
|
+
position: "absolute",
|
|
1114
|
+
left: `${rect.left - containerRect.left}px`,
|
|
1115
|
+
width: `${width}px`,
|
|
1116
|
+
maxHeight: `${maxHeight}px`,
|
|
1117
|
+
pointerEvents: "auto",
|
|
1118
|
+
zIndex: "9999",
|
|
1119
|
+
...shouldOpenUpward ? { bottom: `${containerRect.bottom - rect.top + 1}px` } : { top: `${rect.bottom - containerRect.top - 1}px` }
|
|
1120
|
+
};
|
|
1121
|
+
return;
|
|
1122
|
+
}
|
|
1109
1123
|
dropdownStyle.value = {
|
|
1110
1124
|
position: "fixed",
|
|
1111
1125
|
left: `${Math.max(rect.left, 8)}px`,
|
|
@@ -6528,4 +6542,4 @@ export {
|
|
|
6528
6542
|
_sfc_main$B as y,
|
|
6529
6543
|
_sfc_main$A as z
|
|
6530
6544
|
};
|
|
6531
|
-
//# sourceMappingURL=plugin-
|
|
6545
|
+
//# sourceMappingURL=plugin-DGM-XlRe.js.map
|