@@ -39,6 +39,7 @@ export type VTreeviewChildrenSlots<T> = {
39
39
loading : boolean
40
40
}
41
41
footer : {
42
+ props : { indentLines ?: IndentLineType [ ] }
42
43
item : T
43
44
internalItem : InternalListItem < T >
44
45
loading : boolean
@@ -193,6 +194,11 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
193
194
const treeviewGroupProps = VTreeviewGroup . filterProps ( itemProps )
194
195
const treeviewChildrenProps = VTreeviewChildren . filterProps ( { ...props , ...treeItemProps } )
195
196
197
+ const footerProps = {
198
+ hideActions : props . hideActions ,
199
+ indentLines : indentLines . footer ,
200
+ }
201
+
196
202
return children ? (
197
203
< VTreeviewGroup
198
204
{ ...treeviewGroupProps }
@@ -205,6 +211,7 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
205
211
...itemProps ,
206
212
...activatorProps ,
207
213
value : itemProps ?. value ,
214
+ hideActions : props . hideActions ,
208
215
indentLines : indentLines . node ,
209
216
onToggleExpand : [ ( ) => checkChildren ( item ) , activatorProps . onClick ] as any ,
210
217
onClick : isClickOnOpen . value
@@ -220,7 +227,6 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
220
227
ref = { el => activatorItems . value [ index ] = el as VTreeviewItem }
221
228
{ ...listItemProps }
222
229
hasCustomPrepend = { ! ! slots . prepend }
223
- hideActions = { props . hideActions }
224
230
value = { props . returnObject ? item . raw : itemProps . value }
225
231
loading = { loading }
226
232
v-slots = { slotsWithItem }
@@ -239,7 +245,7 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
239
245
returnObject = { props . returnObject }
240
246
v-slots = { slots }
241
247
/>
242
- { slots . footer ?.( { item : item . raw , internalItem : item , loading } ) }
248
+ { slots . footer ?.( { props : footerProps , item : item . raw , internalItem : item , loading } ) }
243
249
</ >
244
250
) ,
245
251
} }
0 commit comments