blob: 96c106e05e1200f2fd7a8e7b6c8f0a0960318916 (
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
|
<script>
export default {
name: 'Modal',
props: []
}
</script>
<template>
<teleport to="body">
<div class="wrapper">
<slot />
</div>
</teleport>
</template>
<style scoped>
.wrapper {
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.25);
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
}
</style>
|