This commit is contained in:
Freeplay 2023-04-28 20:26:10 -04:00
parent 3be2147397
commit 23beca49e3
2 changed files with 35 additions and 34 deletions

View file

@ -14,9 +14,11 @@
:duration="transitionDuration"
appear
@after-leave="emit('closed')"
@keyup.esc="emit('click')"
@enter="emit('opening')"
@after-enter="onOpened"
>
<focus-trap v-model:active="isActive">
<div
v-show="manualShowing != null ? manualShowing : showing"
v-hotkey.global="keymap"
@ -52,7 +54,6 @@
@mousedown="onBgClick"
@contextmenu.prevent.stop="() => {}"
></div>
<focus-trap v-model:active="isActive">
<div
ref="content"
:class="[
@ -64,8 +65,8 @@
>
<slot :max-height="maxHeight" :type="type"></slot>
</div>
</focus-trap>
</div>
</focus-trap>
</Transition>
</template>