Remove teleport because we're running V2 not V3. Whoops...
This commit is contained in:
parent
42d0fe483e
commit
7e30bdba31
1 changed files with 14 additions and 16 deletions
|
|
@ -1,20 +1,18 @@
|
||||||
<template>
|
<template>
|
||||||
<teleport to="body">
|
<transition name="fade" @after-enter="content = true">
|
||||||
<transition name="fade" @after-enter="content = true">
|
<div
|
||||||
<div
|
v-if="show"
|
||||||
v-if="show"
|
class="modal-container"
|
||||||
class="modal-container"
|
:class="closable ? 'clickable' : ''"
|
||||||
:class="closable ? 'clickable' : ''"
|
@click.self.stop="handleBackgroundClick"
|
||||||
@click.self.stop="handleBackgroundClick"
|
>
|
||||||
>
|
<transition name="burst" @after-leave="$emit('closed')">
|
||||||
<transition name="burst" @after-leave="$emit('closed')">
|
<div v-if="content" class="modal unclickable">
|
||||||
<div v-if="content" class="modal unclickable">
|
<slot />
|
||||||
<slot />
|
</div>
|
||||||
</div>
|
</transition>
|
||||||
</transition>
|
</div>
|
||||||
</div>
|
</transition>
|
||||||
</transition>
|
|
||||||
</teleport>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue