-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report][3.7.5] VTreeView slots [subtitle, divider, header, subheader] are not working #20781
Comments
This is likely a bug caused by incomplete functionality. Slots are getting sent here:
And their types are getting defined at:
However, I think the signature is incorrect. It doesn't really make sense to me to see these slots on the TreeView component, they seem more appropriate on the children if at all. |
The slots do work, you just need to have a subtitle or whatever on the items in the first place. |
Thank you for response, But, why should I have it in :items? Shouldn't slot "subtitle" of whatever v-slot I use just override subtitle? It may be was not clear from previous post, but slots for title, prepend, append, and default are working as expected. I may be wrong of course, but could you please provide example how to use it properly then? Because from now I have absolutely no clue. |
Ok yeah some of them don't work, I assumed treeview reused VListChildren instead of a separate implementation. |
Environment
Vuetify Version: 3.7.5
Vue Version: 3.5.13
Browsers: Chrome 131.0.0.0
OS: Windows 10
Steps to reproduce
I'm trying to do some customization to VTreeView using slots, but: subtitle, divider, header, and subheader are not doing anything when I use them.
At least they should print something, but nothing happens.
Expected Behavior
To do something.
Actual Behavior
Nothing happens.
Reproduction Link
https://play.vuetifyjs.com/#...
The text was updated successfully, but these errors were encountered: