Тултипы

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> <template>
<v-table> <v-table>
<thead> <thead>
<tr > <tr>
<!-- <my-helper :pretext="n"/> --> <th></th>
<th>
</th>
<th v-for="(n, key) in th_text" :key="key"> <th v-for="(n, key) in th_text" :key="key">
<tooltip-text <tooltip-text
:text="key" :text="key"
:tooltip="n" :tooltip="n"
/> />
</th> </th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr <tr
v-for="(user, key) in activusers" :key="key" v-for="(user, key) in activusers"
style="height:100px" :key="key"
style="height:100px"
> >
<td> <td>
<list-user <list-user
:author=user.user :author=user.user
:from_which = "'top-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>
<td class="text-center subheading pa-0 text-subtitle-2 font-weight-medium" v-for="(x, key) in user.info" :key="key">
{{x}}
</td>
</tr> </tr>
</tbody> </tbody>
</v-table> </v-table>
@@ -39,7 +39,7 @@ export default {
}, },
from_which: { from_which: {
type: Text, type: String,
default: "dialog-search" default: "dialog-search"
} }
+5 -5
View File
@@ -11,7 +11,7 @@
no-gutters no-gutters
> >
<v-col> <v-col>
{{tooltip}} <slot name="tooltip"></slot>
</v-col> </v-col>
</v-row> </v-row>
</v-tooltip> </v-tooltip>
@@ -24,12 +24,12 @@ export default {
props: { props: {
tooltip: { tooltip: {
type: Text, type: Object,
default:'' default: () => {}
}, },
text: { text: {
type: Text, type: String,
default:'' default:''
}, },