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

defineProps dose not work correctly with TypeScript interface extends #7010

Closed
kusime opened this issue Nov 2, 2022 · 4 comments
Closed

Comments

@kusime
Copy link

kusime commented Nov 2, 2022

Vue version

3.2.41

Link to minimal reproduction

https://sfc.vuejs.org/#__DEV__eNp9kktuwjAQhq8y8iZFgljQdhMlCEoP0AN4k8cE0uKHbAcqRbl7xwktNEgsLGtmPv//eOyObY2JTy2yhKWutI3x4NC3Zi1UI422HnZaGqitlhDFPAQBj4RK+cgTSYFHaY65xxD5dDiT5Fm0jCApsmhFW5lFr9E6HSSISvnfETZno9dC5ib+dFpRN51QAOJScIIlMGRCjvxDLNjBe+MSzltlvvZxqSXfUI3bVvlG4qLScvMcr+KXJa8a52/zMTq5KKw+O7TkKNj8RpxT8oR2YVFVaNE+NJuw/wwntTvT4NkL1dMAfgc7fQc45mqfCRZGEN5EebR1XiJsx3nkkKhWFtSkIiW6AK0r9DZCxR10RXaA354adLCdX/Bygo+qpVbOg7HaOMgAzo0/vGOdt0fvniqsG4UfoZbu1k+zedfPHvyQrhtkelK//Qb9D2Ru4JE=

Steps to reproduce

  1. go to the SFC
  2. open the console
  3. change the version to 3.2.41
  4. change the PRO or DEV

// then you can see the vue will throw an Warning and props will lost value

What is expected?

hope to retrieve all the props that passed in from its parent component

What is actually happening?

except directly defined in the interface property can be retrieved by props , all other extended interface property cannot retrieved by the props

System Info

Linux KusimeROG 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

edge

Any additional comments?

No response

@edison1105
Copy link
Member

It works fine in the latest commit because this PR had been merged and not released yet, so not working in 3.2.41 yet.

@feitian124
Copy link

meet same issue,waiting new release。。。

@ruida-shen
Copy link

still having the same issue, version is 3.2.45

@Stephan-MC
Copy link

got the same issue too and using v:3,2,45

@github-actions github-actions bot locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants