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