给DIV添加active样式 VUE Html <div class="templateContainer"> <a-Card :class="{ active: index === currentIndex }" v-for="(item,index) in mallList" :key="index" @click="checkTemplate(index)"