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>
|
||||
<teleport to="body">
|
||||
<transition name="fade" @after-enter="content = true">
|
||||
<div
|
||||
v-if="show"
|
||||
class="modal-container"
|
||||
:class="closable ? 'clickable' : ''"
|
||||
@click.self.stop="handleBackgroundClick"
|
||||
>
|
||||
<transition name="burst" @after-leave="$emit('closed')">
|
||||
<div v-if="content" class="modal unclickable">
|
||||
<slot />
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</transition>
|
||||
</teleport>
|
||||
<transition name="fade" @after-enter="content = true">
|
||||
<div
|
||||
v-if="show"
|
||||
class="modal-container"
|
||||
:class="closable ? 'clickable' : ''"
|
||||
@click.self.stop="handleBackgroundClick"
|
||||
>
|
||||
<transition name="burst" @after-leave="$emit('closed')">
|
||||
<div v-if="content" class="modal unclickable">
|
||||
<slot />
|
||||
</div>
|
||||
</transition>
|
||||
</div>
|
||||
</transition>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue