Skip to content

Commit 6d94e32

Browse files
authored
Merge pull request #851 from roiLeo/fix/spotlight/tooltip
fix(spotlight): tooltip on column score
2 parents 07e30e5 + fecdea5 commit 6d94e32

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/components/spotlight/SpotlightTable.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,15 @@
7878
<b-table-column
7979
field="rank"
8080
:label="$t('spotlight.score')"
81-
v-slot="props"
8281
sortable
82+
numeric
8383
>
84-
<template v-if="!isLoading">{{ Math.ceil(props.row.rank * 100) / 100 }}</template>
84+
<template v-slot:header="{column}">
85+
<b-tooltip label="sold * (unique / total)" append-to-body dashed>
86+
{{column.label}}
87+
</b-tooltip>
88+
</template>
89+
<template v-slot="props" v-if="!isLoading">{{ Math.ceil(props.row.rank * 100) / 100 }}</template>
8590
<b-skeleton :active="isLoading"> </b-skeleton>
8691
</b-table-column>
8792

0 commit comments

Comments
 (0)