K
K
Kneepy2021-11-01 18:27:45
Vue.js
Kneepy, 2021-11-01 18:27:45

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>

But the input, label and button styles are not displayed in DevTools and do not work in the block itself, while the styles of other blocks work

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question