Skip to content

defineComponent 对自定义属性会类型报错 #12742

@chenjigeng

Description

@chenjigeng

Version

2.7.8

Reproduction link

codesandbox.io

Steps to reproduce

如图所示
image

What is expected?

预期跟 vue3 一样,如果存在自定义的属性,展示 any

What is actually happening?

ts 报错

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