html (vue)
index.html
style.css
app.js
<li class="accordion__item"> <div class="accordion__trigger" :class="{'accordion__trigger_active': visible}" @click="open"> <!-- This slot will handle the title/header of the accordion and is the part you click on --> <slot name="accordion-trigger"></slot> </div> <transition name="accordion" @enter="start" @after-enter="end" @before-leave="start" @after-leave="end"> <div class="accordion__content" v-show="visible"> <ul> <!-- This slot will handle all the content that is passed to the accordion --> <slot name="accordion-content"></slot> </ul> </div> </transition> </li>
Новый листинг
скачать через терминал:
wget https://coding-style.ru/code_reviews/download/200
&& mkdir "vue transition issue"
&& unzip 200 -d ./"vue transition issue"
&& rm 200
&& cd "vue transition issue""
&& git init
(ваш голос учтен)
admin
8 июня 2022 г. 11:44
Accordion is undefined
Ответить