首页 > 请教下vue for循环中如何添加v-el ?

请教下vue for循环中如何添加v-el ?

<components
    v-for="(i, item) of list"
    v-el:name_  // 此处如何加上for循环的索引?
>

</components>

如上代码,我想在每个item上加一个v-el,并且v-el的id加上for循环的索引,请问这改如何写?

【热门文章】
【热门文章】