2.0索引不能用$index 循环 v-for="(item, index) in items" 使用 :class="{'current':currentIndex === index}" 建议看一下官方的迁移文档