blob: be9b046472f45e18d7a890ddf51c1d761c4b29e5 (
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
33
34
|
<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;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.25);
display: flex;
justify-content: center;
align-items: center;
}
.content {
display: block;
}
</style>
|