blob: 1f0ca3cb459bab0faee69318b92f30bcc78bfac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<script>
export default {
name: 'Modal',
props: []
}
</script>
<template>
<teleport to="body">
<div class="wrapper">
<div class="content">
<slot />
</div>
</div>
</teleport>
</template>
<style scoped>
.wrapper {
position: absolute;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.75);
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
}
.content {
display: block;
}
</style>
|