File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <VTab id =" filters" size =" medium" class =" gap-x-2" :aria-label =" ariaLabel" >
2
+ <VTab
3
+ id =" filters"
4
+ size =" medium"
5
+ class =" gap-x-2"
6
+ :aria-label =" $tc('header.filterButton.withCount', appliedFilterCount)"
7
+ >
3
8
<VFilterIconOrCounter :applied-filter-count =" appliedFilterCount" />
4
9
<h2 class =" label-regular" >{{ $t("filters.title") }}</h2 >
5
10
</VTab >
6
11
</template >
7
12
<script lang="ts">
8
- import { computed , defineComponent } from " vue"
9
-
10
- import { useI18n } from " ~/composables/use-i18n"
11
-
12
13
import VFilterIconOrCounter from " ~/components/VHeader/VFilterIconOrCounter.vue"
13
14
import VTab from " ~/components/VTabs/VTab.vue"
14
15
15
- export default defineComponent ( {
16
+ export default {
16
17
name: " VFilterTab" ,
17
18
components: { VFilterIconOrCounter , VTab },
18
19
props: {
@@ -21,12 +22,5 @@ export default defineComponent({
21
22
default: 0 ,
22
23
},
23
24
},
24
- setup(props ) {
25
- const i18n = useI18n ()
26
- const ariaLabel = computed (() =>
27
- i18n .tc (" header.filterButton.withCount" , props .appliedFilterCount )
28
- )
29
- return { ariaLabel }
30
- },
31
- })
25
+ }
32
26
</script >
You can’t perform that action at this time.
0 commit comments