Answer the question
In order to leave comments, you need to log in
Why is only the last iteration of the v-for output?
Why does v-for output only the last iteration?
<el-table-column>
<template v-for="(item, key) in managers" slot-scope="props">
<table class="template-table">
<thead class="stable">
<tr>
<th>{{ item.name }}</th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</thead>
</table>
</template>
</el-table-column>
Answer the question
In order to leave comments, you need to log in
v-for=
is added to the element that needs to be drawn multiple times.
And in this code it turns out that it draws several tables with one line. v-for=
tr
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question