|
|
@ -30,7 +30,7 @@ const props = withDefaults( |
|
|
zIndex?: number; |
|
|
zIndex?: number; |
|
|
} |
|
|
} |
|
|
>(), |
|
|
>(), |
|
|
{ appendTo: 'body', showClose: true, zIndex: 1000 }, |
|
|
{ appendTo: 'body', showClose: true }, |
|
|
); |
|
|
); |
|
|
const emits = defineEmits< |
|
|
const emits = defineEmits< |
|
|
DialogContentEmits & { close: []; closed: []; opened: [] } |
|
|
DialogContentEmits & { close: []; closed: []; opened: [] } |
|
|
@ -84,7 +84,7 @@ defineExpose({ |
|
|
<DialogOverlay |
|
|
<DialogOverlay |
|
|
v-if="open && modal" |
|
|
v-if="open && modal" |
|
|
:style="{ |
|
|
:style="{ |
|
|
zIndex, |
|
|
...(zIndex ? { zIndex } : {}), |
|
|
position, |
|
|
position, |
|
|
backdropFilter: |
|
|
backdropFilter: |
|
|
overlayBlur && overlayBlur > 0 ? `blur(${overlayBlur}px)` : 'none', |
|
|
overlayBlur && overlayBlur > 0 ? `blur(${overlayBlur}px)` : 'none', |
|
|
@ -94,12 +94,12 @@ defineExpose({ |
|
|
</Transition> |
|
|
</Transition> |
|
|
<DialogContent |
|
|
<DialogContent |
|
|
ref="contentRef" |
|
|
ref="contentRef" |
|
|
:style="{ zIndex, position }" |
|
|
:style="{ ...(zIndex ? { zIndex } : {}), position }" |
|
|
@animationend="onAnimationEnd" |
|
|
@animationend="onAnimationEnd" |
|
|
v-bind="forwarded" |
|
|
v-bind="forwarded" |
|
|
:class=" |
|
|
:class=" |
|
|
cn( |
|
|
cn( |
|
|
'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-top-[48%] w-full p-6 shadow-lg outline-none sm:rounded-xl', |
|
|
'z-popup bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-top-[48%] w-full p-6 shadow-lg outline-none sm:rounded-xl', |
|
|
props.class, |
|
|
props.class, |
|
|
) |
|
|
) |
|
|
" |
|
|
" |
|
|
|