Skip to content

Cannot use functional option in defineComponent #12619

@iceprosurface

Description

@iceprosurface

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 })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions