wip
This commit is contained in:
parent
ab50d5ef20
commit
fede4eeb89
2 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<div class="mk-modal" v-hotkey.global="keymap" :style="{ pointerEvents: showing ? 'auto' : 'none' }">
|
||||
<div class="mk-modal" v-hotkey.global="keymap" :style="{ pointerEvents: showing ? 'auto' : 'none', '--transformOrigin': transformOrigin }">
|
||||
<transition :name="$store.state.device.animation ? 'modal-bg' : ''" appear>
|
||||
<div class="bg _modalBg" v-if="showing" @click="onBgClick"></div>
|
||||
</transition>
|
||||
|
@ -153,7 +153,7 @@ export default defineComponent({
|
|||
<style>
|
||||
.modal-popup-content-enter-active, .modal-popup-content-leave-active,
|
||||
.modal-content-enter-from, .modal-content-leave-to {
|
||||
transform-origin: v-bind(transformOrigin);
|
||||
transform-origin: var(--transformOrigin);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue