-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Labels
Description
Vue version
3.5.24
Link to minimal reproduction
Thanks to @johnsoncodehk
Steps to reproduce
- use
defineComponentto define an Options API component with setup, data, props, methods, and computed, and have each option read something likethis.dataValue. - Add
expose: ['setupValue']to that component. - the
thisinside other options loses access to the usual props/setup/data/methods.
What is expected?
Can access the properties with this inside the component even expose is defined
What is actually happening?
Cannot access the properties with this if not defined in expose
Any additional comments?
Related:
vuejs/language-tools#5069
vuejs/language-tools#5763
vuejs/language-tools#5758