File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Frontend/src/components Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { computed , useSlots } from " vue" ;
2
+ import { computed } from " vue" ;
3
3
import type { SortInfo } from " ./SortInfo" ;
4
4
5
5
const props = withDefaults (
@@ -21,7 +21,6 @@ const props = withDefaults(
21
21
}
22
22
);
23
23
24
- const slots = useSlots ();
25
24
const sortByColumn = computed (() => props .sortBy || props .name );
26
25
const activeSortColumn = defineModel <SortInfo >();
27
26
const isSortActive = computed (() => activeSortColumn ?.value ?.property === sortByColumn .value );
@@ -42,7 +41,7 @@ function toggleSort() {
42
41
<span v-if =" isSortActive" >
43
42
<i role =" img" :class =" sortIcon" :aria-label =" sortIcon" ></i >
44
43
</span >
45
- <tippy v-if =" slots.help" max-width =" 400px" :interactive =" props.interactiveHelp" >
44
+ <tippy v-if =" $ slots.help" max-width =" 400px" :interactive =" props.interactiveHelp" >
46
45
<i class =" fa fa-sm fa-info-circle text-primary ps-1" />
47
46
<template #content >
48
47
<slot name =" help" />
@@ -55,7 +54,7 @@ function toggleSort() {
55
54
{{ props.label }}
56
55
<span v-if =" props.unit" class =" table-header-unit" >{{ props.unit }}</span >
57
56
</span >
58
- <tippy v-if =" slots.help" max-width =" 400px" :interactive =" props.interactiveHelp" >
57
+ <tippy v-if =" $ slots.help" max-width =" 400px" :interactive =" props.interactiveHelp" >
59
58
<i class =" fa fa-sm fa-info-circle text-primary ps-1" />
60
59
<template #content >
61
60
<slot name =" help" />
You can’t perform that action at this time.
0 commit comments