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>
|
||||
</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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue