Skip to content

Cannot pass slot object into a component #10111

@eakarpov

Description

@eakarpov

Version

2.6.10

Reproduction link

https://codesandbox.io/embed/vue-template-qwq83

Steps to reproduce

Create a component, pass children via slots property.

What is expected?

this.$slots property contains the passed children inside the component

What is actually happening?

Passing via prop interface leads to empty object in this.$slots


Trying to use render function to pass blocks of template inside a component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions