-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Missing search result for getCurrentInstancegetCurrentInstance #2335
Comments
|
It is intentionally omitted to discourage its usage. |
If so, How can I get $el? const that = getCurrentInstance()
const ele = that.ctx.$el // work well in vue3.1.x but get undefined in vue3.3.4 |
Directly accessing the internal properties of Vue components, such as If you need to access the root element of the component, Vue provides a more reliable approach using the |
官网搜索不到getCurrentInstance()
The text was updated successfully, but these errors were encountered: