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

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

Closed
chenjigeng opened this issue Aug 15, 2022 · 0 comments
Closed

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

chenjigeng opened this issue Aug 15, 2022 · 0 comments

Comments

@chenjigeng
Copy link

Version

2.7.8

Reproduction link

codesandbox.io

Steps to reproduce

如图所示
image

What is expected?

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

What is actually happening?

ts 报错

@chenjigeng chenjigeng changed the title defineComponent 对于自定义属性没有提示 defineComponent 对于自定义属性会类型报错 Aug 15, 2022
@chenjigeng chenjigeng changed the title defineComponent 对于自定义属性会类型报错 defineComponent 对自定义属性会类型报错 Aug 15, 2022
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