v-for最后一个元素添加样式
<template>
<view class="a" v-for="(item,index) in nav" :key="index">
</view>
</template>
<stye>
.a:last-child{
}
</stye>
<template>
<view class="a" v-for="(item,index) in nav" :key="index">
</view>
</template>
<stye>
.a:last-child{
}
</stye>