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

Cannot use functional option in defineComponent #12619

Closed
iceprosurface opened this issue Jul 6, 2022 · 0 comments
Closed

Cannot use functional option in defineComponent #12619

iceprosurface opened this issue Jul 6, 2022 · 0 comments

Comments

@iceprosurface
Copy link

What problem does this feature solve?

It works in @vue/composition-api.

import { defineComponent } from '@vue/composition-api'

defineComponent({ functional: true })

Is there a correct way to create functional component in vue2.7.0+ using typescript?

What does the proposed API look like?

import { defineComponent } from 'vue'
defineComponent({ functional: true })
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