-
Notifications
You must be signed in to change notification settings - Fork 142
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
[Question] How to pass function slots ? #652
Labels
question
Further information is requested
Comments
<ComponentWithSlot
v-slots={{
default: () => 'This is default slot!'
}}
/> Examples: |
leookun
changed the title
[Question] How to pass functionanl slots ?
[Question] How to pass function slots ?
Dec 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🧐 Problem Description
Here's a lovely piece of code ,
<Container.Chart/>
expect to get a function but who is not in props,as you can see, both the
<Container.Title/>
and the<Container.Chart/>
area are displayed in their respective areas,<Container.Chart/>
is designed as a provider that passes instances to the slot after it has mounted.💻 Sample code
here's how I implemented the solidified layout, everything is functional
🚑 Other information
No matter how I pass the argument in
context.slots.default
in FunctionalComponent, it doesn't get passed into the followingconsole.log
The text was updated successfully, but these errors were encountered: