详细问题描述
[内容]
for循环嵌套编译成头条小程序时第二层循环无法渲染
重现步骤
[步骤]
1、定义数据
rows: [
{name: 'row-1', cols: [{name: 'col-1-1'},{name: 'col-1-2'},{name: 'col-1-3'}]},
{name: 'row-2', cols: [{name: 'col-2-1'},{name: 'col-2-2'},{name: 'col-2-3'}]}
]
2、html结构
<view v-for='(item,index) in rows' :key='index'>
<text class="text-black">{{item.name}}</text>
<view class="" v-for='(sub, index2) in item.cols' :key="''+index2">
<text class="text-black">{{sub.name}}</text>
</view>
</view>
[结果]
[期望]
[QQ] 651896694