Get component instances in multi-level nested slots
Version
3.2.4
Reproduction link
https://codesandbox.io/s/confident-jang-xl3zj?file=/src/components/VueButtonBox.vue
What is expected?
Get component instances in multi-level nested slots.
What is actually happening?
Iterate through multiple layers of slots to get the required components.
<button-box>
<button />
<button />
<button />
<button-box>
// just slots.default().forEach(button => ...)
// but like this:
<button-box>
<box-wrapper>
<button />
<button />
<button />
</box-wrapper>
<button-box>
// how can l get the button component instance in the parent component?
Hello, thank you for taking time filling this issue!
However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).
I hope to see your helper-created issue very soon!