@enos5/enos-vue-default 1.8.15 → 1.8.16
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-D1NKz8QO.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-D1NKz8QO.js";
|
|
2
2
|
export {
|
|
3
3
|
_ as ActionCard,
|
|
4
4
|
a as ActionMessage,
|
|
@@ -3986,6 +3986,19 @@ const _sfc_main$t = {
|
|
|
3986
3986
|
const emit = __emit;
|
|
3987
3987
|
const dialog = ref();
|
|
3988
3988
|
const showSlot = ref(props.show);
|
|
3989
|
+
const presetMaxWidthClasses = {
|
|
3990
|
+
"sm": "sm:max-w-sm",
|
|
3991
|
+
"md": "sm:max-w-md",
|
|
3992
|
+
"lg": "sm:max-w-lg",
|
|
3993
|
+
"xl": "sm:max-w-xl",
|
|
3994
|
+
"2xl": "sm:max-w-2xl",
|
|
3995
|
+
"3xl": "sm:max-w-3xl",
|
|
3996
|
+
"4xl": "sm:max-w-4xl",
|
|
3997
|
+
"5xl": "sm:max-w-5xl",
|
|
3998
|
+
"6xl": "sm:max-w-6xl",
|
|
3999
|
+
"7xl": "sm:max-w-7xl",
|
|
4000
|
+
"full": "sm:max-w-full"
|
|
4001
|
+
};
|
|
3989
4002
|
const openModal = () => {
|
|
3990
4003
|
document.body.style.overflow = "hidden";
|
|
3991
4004
|
showSlot.value = true;
|
|
@@ -4029,13 +4042,13 @@ const _sfc_main$t = {
|
|
|
4029
4042
|
document.body.style.overflow = null;
|
|
4030
4043
|
});
|
|
4031
4044
|
const maxWidthClass = computed(() => {
|
|
4032
|
-
return
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4045
|
+
return presetMaxWidthClasses[props.maxWidth] ?? null;
|
|
4046
|
+
});
|
|
4047
|
+
const modalWidthStyle = computed(() => {
|
|
4048
|
+
if (maxWidthClass.value) {
|
|
4049
|
+
return null;
|
|
4050
|
+
}
|
|
4051
|
+
return props.maxWidth ? { maxWidth: props.maxWidth } : null;
|
|
4039
4052
|
});
|
|
4040
4053
|
const positionClasses = computed(() => {
|
|
4041
4054
|
switch (props.position) {
|
|
@@ -4086,10 +4099,11 @@ const _sfc_main$t = {
|
|
|
4086
4099
|
}, {
|
|
4087
4100
|
default: withCtx(() => [
|
|
4088
4101
|
withDirectives(createElementVNode("div", {
|
|
4089
|
-
class: normalizeClass(["relative z-50 mb-6 overflow-hidden rounded-lg border border-neutral-200 bg-white shadow-xl transform transition-all dark:border-neutral-800 dark:bg-neutral-950 sm:mx-auto sm:w-full", maxWidthClass.value])
|
|
4102
|
+
class: normalizeClass(["relative z-50 mb-6 overflow-hidden rounded-lg border border-neutral-200 bg-white shadow-xl transform transition-all dark:border-neutral-800 dark:bg-neutral-950 sm:mx-auto sm:w-full", maxWidthClass.value]),
|
|
4103
|
+
style: normalizeStyle(modalWidthStyle.value)
|
|
4090
4104
|
}, [
|
|
4091
4105
|
showSlot.value ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true)
|
|
4092
|
-
],
|
|
4106
|
+
], 6), [
|
|
4093
4107
|
[vShow, __props.show]
|
|
4094
4108
|
])
|
|
4095
4109
|
]),
|
|
@@ -6542,4 +6556,4 @@ export {
|
|
|
6542
6556
|
_sfc_main$B as y,
|
|
6543
6557
|
_sfc_main$A as z
|
|
6544
6558
|
};
|
|
6545
|
-
//# sourceMappingURL=plugin-
|
|
6559
|
+
//# sourceMappingURL=plugin-D1NKz8QO.js.map
|