在 vue 的嵌套 v-for 循环中访问索引变量

Accessing the index variable in a nested v-for loop in vue

我需要访问嵌套 v-for 循环的索引变量。这可以做到吗?我的密码是

<div v-for="(dayDataArray, key, index) in props_league_data_nfl">
     <div v-for="(arrayItem, key, arrayItemIndex) in dayDataArray" class="col-xs-12 col-sm-4 col-lg-3">



    <!-- some code here -->

<div> {{ props_box_game_scores_nfl[nfl_days[index].split(' ')[0].toLowerCase()][arrayItemIndex] }} </div>`

如果我像上面那样使用单独的索引名称设置它,那么 arrayItemIndex 似乎会被忽略。如果我对两个 for 循环都使用 index 那么我会在 nfl_days[index]参考。如何访问第二个索引变量?似乎在这两种情况下都必须使用索引名称?任何建议或解决方法表示赞赏...

对于数组 v-for 只有两个参数,而不是三个。所以应该是:

v-for="(arrayItem, arrayItemIndex) in dayDataArray"

迭代对象时只有 3 个参数。