<div v-for="(item, index) in lists" :key="index" @click="active(index)"></div>

active(index){ this.lists.unshift(...this.lists.splice(index,1)) }

Logo

前往低代码交流专区

更多推荐