Таблица

This commit is contained in:
iriska-gri committed 2024-03-05 15:43:57 +03:00
1 parent f1dd6bd408
commit ed7da81b23
3 files changed
+34 -7

No files matched your search

@@ -13,7 +13,7 @@
<list-user :author= "top.author" :from_which="'top_comment'"/> <list-user :author= "top.author" :from_which="'top_comment'"/>
</v-col> </v-col>
<v-col class="align-self-center pl-0"> <v-col class="align-self-center pl-0">
<my-helper :pretext="top.comment"/>
<v-table density="compact" class="pa-0"> <v-table density="compact" class="pa-0">
<thead> <thead>
<tr > <tr >
@@ -235,15 +235,24 @@ export default {
// }, {deep:true}) // }, {deep:true})
const options = { const options = {
// layout: {
// padding: 20
// },
plugins: { plugins: {
datalabels: { datalabels: {
color: 'grey', color: 'grey',
align: 'top', align: 'top',
display: 'auto' display: 'auto'
}, },
legend: { legend: {
position: 'bottom',
labels: { labels: {
color: 'grey', color: 'grey',
align: 'right',
} }
}, },
// tooltip: { // tooltip: {
@@ -261,16 +270,21 @@ export default {
// } // }
// } // }
}, },
// layout: {
// padding: {
// bottom: '10'
// }
// },
scales: { scales: {
x: { x: {
grid: { grid: {
color: 'white', color: 'white',
} }
}, },
y: { y: {
ticks: { ticks: {
stepSize: 10 stepSize: 10,
}, },
offset: true, offset: true,
grid: { grid: {
@@ -12,12 +12,19 @@
item-value="name" item-value="name"
@update:sortBy=customSort @update:sortBy=customSort
v-model:sort-by="sortBy" v-model:sort-by="sortBy"
density="compact"
> >
<template v-slot:header.name> <template v-slot:header.name>
<!-- <my-helper :pretext="tabledata"/> -->
<v-switch label="Всего" <v-switch label="Всего"
false-value='unic' false-value='unic'
true-value='total' true-value='total'
v-model="untot"></v-switch> v-model="untot"></v-switch>
</template>
<template v-slot:item.name="{ value }">
<span class="font-weight-medium text-grey-darken-3 myleft text-subtitle-1">
{{ value }}
</span>
</template> </template>
<template v-slot:item.now="{ value, item }"> <template v-slot:item.now="{ value, item }">
@@ -28,8 +35,9 @@
location="bottom" location="bottom"
> >
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<span v-bind="props" class="cursor-help font-weight-medium text-subtitle-2" > <span v-bind="props" class="cursor-help font-weight-medium text-subtitle-1 " >
{{value}} <!-- {{modelrating?val.now.unique.length:val.now.countall}} --> {{value}}
<!-- {{modelrating?val.now.unique.length:val.now.countall}} -->
</span> </span>
</template> </template>
<v-row <v-row
@@ -59,8 +67,9 @@
location="bottom" location="bottom"
> >
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<span v-bind="props" class="cursor-help font-weight-medium text-subtitle-2" > <span v-bind="props" class="cursor-help font-weight-medium text-subtitle-1" >
{{value}} <!-- {{modelrating?val.now.unique.length:val.now.countall}} --> {{value}}
<!-- {{modelrating?val.now.unique.length:val.now.countall}} -->
</span> </span>
</template> </template>
<v-row <v-row
@@ -238,4 +247,8 @@ export default {
flex: 1!important; flex: 1!important;
} }
.myleft {
float: left;
}
</style> </style>