Тултипы

This commit is contained in:
iriska-gri committed 2024-02-05 15:37:48 +03:00
1 parent a6cbd30374
commit 8fd7e98e7e
3 files changed
+66 -24

No files matched your search

@@ -1,40 +1,82 @@
<template>
<v-table>
<v-table>
<thead>
<tr >
<!-- <my-helper :pretext="n"/> -->
<th>
</th>
<tr>
<th></th>
<th v-for="(n, key) in th_text" :key="key">
<tooltip-text
:text="key"
:tooltip="n"
/>
</th>
</tr>
</thead>
<tbody>
<tr
v-for="(user, key) in activusers" :key="key"
style="height:100px"
v-for="(user, key) in activusers"
:key="key"
style="height:100px"
>
<td>
<list-user
:author=user.user
:from_which = "'top-user'"
/>
</td>
<td
v-for="(val, key) in user.info"
:key="key"
class="text-center subheading pa-0 text-subtitle-2 font-weight-medium"
>
<span v-if="(key!='session')">
{{val}}
</span>
<tooltip-text
v-if="(key=='session')"
:text = val
>
<template v-slot:tooltip>
<v-table
density="compact"
style="background:transparent; color:white"
>
<thead>
Сколько было посещено раз страниц за выбранный период (всего/уникальные)
</thead>
<tbody>
<tr
v-for="(n, key) in user.tooltip.namepages"
:key="key"
>
<td>{{key}}</td>
<td>
{{n.count}}
</td>
<td>
{{n.unic}}
</td>
</tr>
</tbody>
</v-table>
<!-- <v-row
no-gutters v-for="(n, key) in user.tooltip.namepages"
:key="key"
>
<v-col>
{{key}}
{{n.count}}/{{n.unic}}
</v-col>
</v-row> -->
</template>
</tooltip-text>
</td>
<td class="text-center subheading pa-0 text-subtitle-2 font-weight-medium" v-for="(x, key) in user.info" :key="key">
{{x}}
</td>
</td>
</tr>
</tbody>
</v-table>
@@ -39,7 +39,7 @@ export default {
},
from_which: {
type: Text,
type: String,
default: "dialog-search"
}
+5 -5
View File
@@ -11,7 +11,7 @@
no-gutters
>
<v-col>
{{tooltip}}
<slot name="tooltip"></slot>
</v-col>
</v-row>
</v-tooltip>
@@ -24,12 +24,12 @@ export default {
props: {
tooltip: {
type: Text,
default:''
},
type: Object,
default: () => {}
},
text: {
type: Text,
type: String,
default:''
},