mirror of
https://github.com/setube/ogame-vue-ts.git
synced 2026-05-12 07:55:11 +08:00
27 lines
753 B
Vue
27 lines
753 B
Vue
<template>
|
|
<DialogOverlay
|
|
data-slot="dialog-overlay"
|
|
v-bind="delegatedProps"
|
|
:class="
|
|
cn(
|
|
'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-60 bg-black/80',
|
|
props.class
|
|
)
|
|
"
|
|
>
|
|
<slot />
|
|
</DialogOverlay>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { DialogOverlayProps } from 'reka-ui'
|
|
import type { HTMLAttributes } from 'vue'
|
|
import { reactiveOmit } from '@vueuse/core'
|
|
import { DialogOverlay } from 'reka-ui'
|
|
import { cn } from '@/lib/utils'
|
|
|
|
const props = defineProps<DialogOverlayProps & { class?: HTMLAttributes['class'] }>()
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class')
|
|
</script>
|