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
β¨ Allow using defineSlots
short syntax in Vue 3.3
#363
Comments
If I understand correctly, you want Vue 3.3 (Vue core) to support shortcut syntax for Maybe you should report it to vue core repo instead of Vue Macros, since Vue Macros already supported shortcut syntax. As complex types, maybe you can try it first. If there are some bugs, report them with a reproduction repo. I'll try to fix it! |
Hey, Thanks for the quick response.
Yes, but I know it isn't support ATM and there's open issue for this in volar: vuejs/language-tools#3117 The point I'm trying to make is, That means if someone who is using vue 3.3, he/she won't able to use Here's reproduction: https://github.com/jd-solanki/volar-vue-playground/blob/vue-macros-short-defineSlots/src/foo/Foo.vue
I hope I made my point. Additional Context
Thanks. Happy coding ππ» |
Hi, sorry for so long delay reply.
Currently, Volar don't support the short syntax of It's worth mention that |
Clear and concise description of the problem
Hi ππ»
I'm fan of DX you bring to the vue ecosystem. Recently I upgraded to vue 3.3 and wanted to use defineSlots' short syntax but unfortunetly due to volar's limitation this isn't provided officially. However, I noticed Vue Macros still provides support for the short syntax if docs are up to date.
Problem I'm facing is described in volar's issue here.
Additionally, I wanted to ask does Vue Macros support compex types like
Record
for defineSlots? I'm using generic components feature and want to generate slots based on object like this.Suggested solution
Enable shortcut syntax and complex type support along with volar support for Vue 3.3
Alternative
None
Additional context
Ref: vuejs/language-tools#3141
Validations
The text was updated successfully, but these errors were encountered: