Currently, I am attempting to implement a loop within a table. However, I have encountered an issue with the following code:
<tr v-for="( block , index ) in listRenderBlock" :key="index">
<div v-for="( section , i ) in block.sections" :key=" i ">
<td>
<p>
{{ block.name }}
</p>
</td>
<td>
<p>
{{ section.name }}
</p>
</td>
</div>
</tr>
When attempting this type of looping structure, the div element disrupts the integrity of the table's layout. I understand that in React, one can use something like:
blocks.sections.map(value => ....)
However, it appears that this approach does not work as expected in Vue.js either. I would greatly appreciate any suggestions or feedback on how to address this issue. Thank you for taking the time to read through this query.