FFIVE
<ul>
<li v-show="selIndex+1!=index && selIndex-1!=index" v-for="(item, index) in list" :key="index">
{{item}}<button @click="selIndex=index">登录</button>
</li>
</ul> new Vue({ el: '#app', data: { list: [1,2,3,4,5,6,7,8,9,10], selIndex: -99
}
})仅提供一种思路哈