File tree Expand file tree Collapse file tree 3 files changed +20
-10
lines changed
api-generator/src/locale/en
vuetify/src/components/VTreeview Expand file tree Collapse file tree 3 files changed +20
-10
lines changed Original file line number Diff line number Diff line change 41
41
"slots" : {
42
42
"append" : " Appends content after label." ,
43
43
"prepend" : " Prepends content before label." ,
44
- "header" : " Slot for custom header." ,
44
+ "header" : " Slot for expandable nodes (all items that are not leafs)." ,
45
+ "footer" : " Slot for footer below expanded children." ,
45
46
"subheader" : " Slot for custom subheader." ,
46
47
"divider" : " Slot for custom divider."
47
48
},
Original file line number Diff line number Diff line change 264
264
},
265
265
"slots" : {
266
266
"header" : " 3.10.0" ,
267
+ "footer" : " 3.11.0" ,
267
268
"toggle" : " 3.10.0"
268
269
}
269
270
},
Original file line number Diff line number Diff line change @@ -38,6 +38,11 @@ export type VTreeviewChildrenSlots<T> = {
38
38
internalItem : InternalListItem < T >
39
39
loading : boolean
40
40
}
41
+ footer : {
42
+ item : T
43
+ internalItem : InternalListItem < T >
44
+ loading : boolean
45
+ }
41
46
divider : { props : InternalListItem [ 'props' ] }
42
47
subheader : { props : InternalListItem [ 'props' ] }
43
48
}
@@ -224,15 +229,18 @@ export const VTreeviewChildren = genericComponent<new <T extends InternalListIte
224
229
)
225
230
} ,
226
231
default : ( ) => (
227
- < VTreeviewChildren
228
- { ...treeviewChildrenProps }
229
- items = { children }
230
- indentLinesVariant = { props . indentLinesVariant }
231
- parentIndentLines = { indentLines . children }
232
- isLastGroup = { nextItemHasChildren }
233
- returnObject = { props . returnObject }
234
- v-slots = { slots }
235
- />
232
+ < >
233
+ < VTreeviewChildren
234
+ { ...treeviewChildrenProps }
235
+ items = { children }
236
+ indentLinesVariant = { props . indentLinesVariant }
237
+ parentIndentLines = { indentLines . children }
238
+ isLastGroup = { nextItemHasChildren }
239
+ returnObject = { props . returnObject }
240
+ v-slots = { slots }
241
+ />
242
+ { slots . footer ?.( { item : item . raw , internalItem : item , loading } ) }
243
+ </ >
236
244
) ,
237
245
} }
238
246
</ VTreeviewGroup >
You can’t perform that action at this time.
0 commit comments