Skip to content
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

[Vue v3] how to get slots in setupFn #512

Closed
AllenYu-BF opened this issue Feb 24, 2021 · 4 comments
Closed

[Vue v3] how to get slots in setupFn #512

AllenYu-BF opened this issue Feb 24, 2021 · 4 comments

Comments

@AllenYu-BF
Copy link

i want to get slots in setupFn,but now there is no document.who can help me to resolve this question

@AllenYu-BF AllenYu-BF changed the title [Vue3] how to get slots in setupFn [Vue v3] how to get slots in setupFn Feb 24, 2021
@LinusBorg
Copy link
Member

@AllenYu-BF
Copy link
Author

AllenYu-BF commented Feb 24, 2021

sorry, it's my fault. I want to know how to get slots in setupFn When Vue3 + ts + vue-class-component like the picture below
image

@LinusBorg LinusBorg reopened this Feb 24, 2021
@LinusBorg
Copy link
Member

according to #416 you should be able to access them through this.$slots.

If that doesn't work it's likely a bug.

@AllenYu-BF
Copy link
Author

thanks a lot,It's I didn't look carefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants