Answer the question
In order to leave comments, you need to log in
How to wrap a component in a transition by default?
I have a certain component, it is used a lot on the site and I need to wrap it by default in transition, I did something like this:
<template>
<transition appear name="opacity">
<div class="modalBox">
<transition appear name="scale">
<slot></slot>
/* предположим тут все блоки которые есть в компоненте */
</transition>
</div>
</transition>
</template>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question