Таблица

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

No files matched your search

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