Настройка названия колонок
This commit is contained in:
1 parent
00e905b5f0
commit
4a92b8430a
1 file changed
+35
-1
@@ -26,6 +26,39 @@
|
||||
density="compact"
|
||||
|
||||
>
|
||||
<template v-slot:headers="{ columns, isSorted, getSortIcon, toggleSort }">
|
||||
<tr>
|
||||
<template v-for="column in columns" :key="column.key">
|
||||
<td>
|
||||
<v-chip
|
||||
@click="() => toggleSort(column)"
|
||||
color="grey-darken-4"
|
||||
variant="text"
|
||||
size="small"
|
||||
label
|
||||
>
|
||||
<span
|
||||
class="mr-2 cursor-pointer"
|
||||
@click="() => toggleSort(column)"
|
||||
>
|
||||
{{ column.title }}
|
||||
</span>
|
||||
<template v-if="isSorted(column)">
|
||||
<v-icon
|
||||
end
|
||||
:icon="getSortIcon(column)"
|
||||
/>
|
||||
</template>
|
||||
</v-chip>
|
||||
<!-- <span class="mr-2 cursor-pointer" @click="() => toggleSort(column)">{{ column.title }}</span>
|
||||
<template v-if="isSorted(column)">
|
||||
<v-icon :icon="getSortIcon(column)"></v-icon>
|
||||
</template> -->
|
||||
</td>
|
||||
</template>
|
||||
</tr>
|
||||
|
||||
</template>
|
||||
<template v-slot:item.user="{ value }">
|
||||
<!-- <v-chip
|
||||
color="grey-darken-2"
|
||||
@@ -61,6 +94,8 @@
|
||||
density="compact"
|
||||
:sort-by="[{ key: 'count', order: 'desc' }]"
|
||||
>
|
||||
|
||||
|
||||
<template v-slot:item.count="{ value }">
|
||||
<v-chip :color="getColor(value)" density="compact">
|
||||
{{ value }}
|
||||
@@ -119,7 +154,6 @@ export default {
|
||||
align: 'start',
|
||||
sortable: false,
|
||||
key: 'user',
|
||||
minWidth: '180'
|
||||
},
|
||||
|
||||
{ title: 'Просмотры', align: 'start', key: 'info.count', maxWidth: '10' },
|
||||
|
||||
Reference in new issue
Block a user