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

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="'Самые активные пользователи'" :title="'Самые активные пользователи'"
:ico="'mdi-star-circle'" :ico="'mdi-star-circle'"
> >
<template v-slot:filling> <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-data-table-virtual
v-model:expanded="expanded" v-model:expanded="expanded"
:headers="dessertHeaders" :headers="dessertHeaders"
:items="dataActivusers" :items="dataActivusers"
item-value="user.fio" item-value="user.fio"
show-expand show-expand
class="h-0 cursor-default " class="h-0 cursor-default "
:sort-by="[{ key: 'info.count', order: 'desc' }]" :sort-by="[{ key: 'info.count', order: 'desc' }]"
density="compact" density="compact"
@@ -51,6 +75,11 @@
</template> </template>
<template v-slot:expanded-row="{ columns, item }"> <template v-slot:expanded-row="{ columns, item }">
<tr> <tr>
<td :colspan="columns.length">
More info about {{ item.name }}
</td>
</tr>
<!-- <tr>
<td :colspan="columns.length"> <td :colspan="columns.length">
<v-card class="my-2 elevation-0" color='grey'> <v-card class="my-2 elevation-0" color='grey'>
<v-divider/> <v-divider/>
@@ -102,7 +131,7 @@
</td> </td>
</tr> </tr> -->
</template> </template>
</v-data-table-virtual> </v-data-table-virtual>