|
|
|
@ -11,7 +11,7 @@ interface Props {
|
|
|
|
|
target?: TeleportProps['to'] |
|
|
|
|
teleportDisabled?: TeleportProps['disabled'] |
|
|
|
|
transition?: boolean |
|
|
|
|
lightBackground?: boolean |
|
|
|
|
className?: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
interface Emits { |
|
|
|
@ -50,10 +50,9 @@ export default {
|
|
|
|
|
vModel ? 'opacity-100' : 'opacity-0 pointer-events-none', |
|
|
|
|
inline ? 'absolute' : 'fixed', |
|
|
|
|
transition ? 'transition-opacity duration-200 ease-in-out' : '', |
|
|
|
|
lightBackground ? 'bg-gray-100/25' : '', |
|
|
|
|
!lightBackground ? 'bg-gray-700/75' : '', |
|
|
|
|
className, |
|
|
|
|
]" |
|
|
|
|
class="z-100 top-0 left-0 bottom-0 right-0 bg-gray-100/25" |
|
|
|
|
class="z-100 top-0 left-0 bottom-0 right-0 bg-gray-700/75" |
|
|
|
|
> |
|
|
|
|
<slot :is-open="vModel" /> |
|
|
|
|
</div> |
|
|
|
|