-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
defineProps 使用 extends 扩展 props 定义类型,导致 props 缺失 extends 的接口类型的属性 #4498
Comments
I think this is a limitation, because when the inherited interface is imported from the outside, the complier-sfc does not know what attributes the external interface contains |
Closed
7 tasks
yyx990803
pushed a commit
that referenced
this issue
Oct 26, 2022
chrislone
pushed a commit
to chrislone/core
that referenced
this issue
Feb 4, 2023
zhangzhonghe
pushed a commit
to zhangzhonghe/core
that referenced
this issue
Apr 12, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.2.7
Reproduction link
sfc.vuejs.org/
Steps to reproduce
使用类型定义 props 时,当我想通过 extends 扩展 props 的类型,导致 props 的属性并没有被成功扩展,但是 volar 插件能够成功识别到扩展类型的属性定义。
What is expected?
console.log(props)
// props { name : undefined, age: 18, gender: male }
What is actually happening?
console.log(props)
// props { gender: male }
props 缺失继承的接口类型属性
The text was updated successfully, but these errors were encountered: