1👍
✅
Wrap item with template
and add v-for
onto it:
<tbody>
<template v-for="(item, index) in works" :key="index.id">
<tr class="list-table" v-if="!item.isFinished">
<td id="checkbox-td" style="width: 24px">
<span class="list-checkbox" @click="clickCheckbox(index, item)"></span>
</td>
<td>
{{item.name}}
</td>
<td style="text-align: right;">
{{item.username}}<br>
<span style="font-size:10px;">{{item.date}} {{item.hour}}</span>
</td>
</tr>
</template>
</tbody>
-1👍
<th>Finished</th>
<tbody>
<tr v-for="(item, index) in works" :key="index.id" class="list-table">
<td data-label="Finished">{{item.isFinished? 'Finished' : 'Not Finished'}}</td>
</tr>
</tbody>
Add this to Your Table!
Source:stackexchange.com