Updated DataTable Markup to be more concise

This commit is contained in:
Sebin Nyshkim 2019-11-06 12:24:36 +01:00
parent 4948252f16
commit 3094f5437a

View file

@ -8,9 +8,9 @@
</tr>
</thead>
<tbody>
<tr v-for="(tuple, rowNo) in dataset.data" :key="rowNo">
<template v-for="(item, index) in tuple">
<td :key="index" v-if="index === 1 && !isHexValue(item)" colspan="2">
<tr v-for="(tuple, row) in dataset.data" :key="row">
<template v-for="(item, col) in tuple">
<td :key="col" v-if="col === 1 && !isHexValue(item)" colspan="2">
{{ item }}
</td>
<td :key="item[0]" v-else>{{ item }}</td>