This is the table I am working with:
<table class="table table-condensed table-sm table-striped table-bordered" id="list">
<thead>
<tr>
<th v-for="(column, index) in columns" :key="index" :rowspan="{ '2': index != 'new_value' || 'old_value' }">
{{ column }}
</th>
</tr>
</thead>
<tbody>
<tr v-for="(entry, index) in results" :key="index">
<td v-for="(key, index) in columns" :key="index">
{{ entry._source[index] }}
</td>
</tr>
</tbody>
</table>
I need to set the rowspan for the table head that isn't new_value
or old_value
to 2. But in the current code, it shows as [object Object]
instead of a number:
<th rowspan="[object Object]">User</th>
What do you suggest I should do?