• Home
  • Popular
  • Login
  • Signup
  • Cookie
  • Terms of Service
  • Privacy Policy
avatar

Posted by Mark DS


19 Sep, 2024

Updated at 27 Dec, 2024

Option to automatically forward slots to children

Related to discussion #5962.

I frequently find myself pasting this incantation:

e != 'default')" #[name]="slotData"> ">

When creating an outer component where you need to pass slots to a deep child, this becomes tedious.

Just like components can automatically inherit attributes, it would be handy if slots could be passed down like this (disabled with inheritSlots: false), and explicitly bound with v-slots="$slots".

I'm thinking:


one.vue:

">