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

The useSlots method does not get the Slots array correctly. #12672

Closed
qqhtt opened this issue Jul 16, 2022 · 1 comment
Closed

The useSlots method does not get the Slots array correctly. #12672

qqhtt opened this issue Jul 16, 2022 · 1 comment

Comments

@qqhtt
Copy link

qqhtt commented Jul 16, 2022

Version

2.7.6

Reproduction link

codesandbox.io

Steps to reproduce

Step one

Define child component slots

Step two

Called in the parent component

What is expected?

Get the same value as the $slots object.

What is actually happening?

The slots object is empty and the default method reported an error.

@qqhtt
Copy link
Author

qqhtt commented Jul 16, 2022

The $slots object on this instance has a value, but the slots object obtained through the useSlots method has no value.

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

1 participant