Updated DataTable Markup to be more concise
This commit is contained in:
parent
4948252f16
commit
3094f5437a
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue