v-for循环某个item添加样式

Posted 青袂婉梦

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了v-for循环某个item添加样式相关的知识,希望对你有一定的参考价值。

<template>
    <view class="bread" v-for="(item, index) in nodePathArray" :key="index">
        item.name
    </view>
</template>
								
<style scoped lang="less">

    .bread:nth-child(n)
      cursor: pointer;
    

</style>

以上是关于v-for循环某个item添加样式的主要内容,如果未能解决你的问题,请参考以下文章