Vue实现手风琴功能组件 vue 实现折叠面板功能,前端不使用第三方组件实现手风琴折叠面板功能
效果图:
dom
<div class="foldSection">
<div
v-for="(item, index) in ListData"
:key="item.id"
class="accordion"
>
<div class="accordionHeader" @click="toggle(index)">
<div class="addRedceIcon">
<img
v-if="isActive(index)"
src="../../assets/imgSection/reduce.png"