Skip to content

Commit 5947de0

Browse files
Changing slot names usage to get rid of the annoying AF typescript false positive error
1 parent a2c9ae6 commit 5947de0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/plugin/VDrilldownTable.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
>
3636

3737
<!-- ================================================== Top Slot -->
38-
<template #top="props">
38+
<template #[`top`]="props">
3939
<TopSlot
4040
:key="level"
4141
:items="loadedDrilldown.items"
@@ -62,7 +62,7 @@
6262

6363

6464
<!-- ================================================== Headers Slot -->
65-
<template #headers="props">
65+
<template #[`headers`]="props">
6666
<HeadersSlot
6767
:key="level"
6868
:colors="loadedDrilldown.colors"
@@ -100,14 +100,14 @@
100100
<!-- ================================================== Loader & Loading Slot -->
101101
<template
102102
v-if="slots.loader"
103-
#loader
103+
#[`loader`]
104104
>
105105
<slot name="loader" />
106106
</template>
107107

108108
<template
109109
v-if="slots.loading"
110-
#loading
110+
#[`loading`]
111111
>
112112
<slot name="loading" />
113113
</template>
@@ -116,7 +116,7 @@
116116
<!-- ================================================== Thead Slot -->
117117
<template
118118
v-if="slots.thead"
119-
#thead="props"
119+
#[`thead`]="props"
120120
>
121121
<slot
122122
name="thead"
@@ -128,7 +128,7 @@
128128
<!-- ================================================== Body Slot -->
129129
<template
130130
v-if="slots.body"
131-
#body="props"
131+
#[`body`]="props"
132132
>
133133
<slot
134134
name="body"
@@ -140,7 +140,7 @@
140140
<!-- ================================================== tbody Slot -->
141141
<template
142142
v-if="slots.tbody"
143-
#tbody="props"
143+
#[`tbody`]="props"
144144
>
145145
<slot
146146
name="tbody"
@@ -158,7 +158,7 @@
158158

159159

160160
<!-- ================================================== Row Item Slot -->
161-
<template #item="props">
161+
<template #[`item`]="props">
162162
<ItemSlot
163163
:key="level"
164164
:density="loadedDrilldown.density"
@@ -247,7 +247,7 @@
247247
<!-- ================================================== Tfoot Slot -->
248248
<template
249249
v-if="slots.tfoot || showFooterRow"
250-
#tfoot="props"
250+
#[`tfoot`]="props"
251251
>
252252
<slot
253253
v-if="slots.tfoot"
@@ -291,7 +291,7 @@
291291
<!-- ================================================== Bottom Slot -->
292292
<template
293293
v-if="slots.bottom"
294-
#bottom="props"
294+
#[`bottom`]="props"
295295
>
296296
<BottomSlot
297297
:key="level"

0 commit comments

Comments
 (0)