Чинитть таблицу

This commit is contained in:
iriska-gri committed 2024-03-06 12:23:31 +03:00
1 parent 5582df0aa3
commit 323ff1242d
1 file changed
+31 -2
@@ -3,14 +3,38 @@
:title="'Самые активные пользователи'"
:ico="'mdi-star-circle'"
>
<template v-slot:filling>
<my-helper :pretext="expanded"/>
<!-- <v-data-table
v-model:expanded="expanded"
:headers="dessertHeaders"
:items="dataActivusers"
item-value="user.fio"
show-expand
>
<template v-slot:top>
<v-toolbar flat>
<v-toolbar-title>Expandable Table</v-toolbar-title>
</v-toolbar>
</template>
<template v-slot:expanded-row="{ columns, item }">
<tr>
<td :colspan="columns.length">
More info about {{ item.name }}
</td>
</tr>
</template>
</v-data-table> -->
<v-data-table-virtual
v-model:expanded="expanded"
:headers="dessertHeaders"
:items="dataActivusers"
item-value="user.fio"
show-expand
class="h-0 cursor-default "
:sort-by="[{ key: 'info.count', order: 'desc' }]"
density="compact"
@@ -51,6 +75,11 @@
</template>
<template v-slot:expanded-row="{ columns, item }">
<tr>
<td :colspan="columns.length">
More info about {{ item.name }}
</td>
</tr>
<!-- <tr>
<td :colspan="columns.length">
<v-card class="my-2 elevation-0" color='grey'>
<v-divider/>
@@ -102,7 +131,7 @@
</td>
</tr>
</tr> -->
</template>
</v-data-table-virtual>