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

3.2.15之后的版本组件prop参数在输入冒号:不会自动推导 #7379

Closed
1 task done
zero9527 opened this issue Feb 26, 2024 · 1 comment
Closed
1 task done
Labels

Comments

@zero9527
Copy link

zero9527 commented Feb 26, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

macOS 13.6;Chrome 121.0.6167.184(正式版本) (x86_64);vue-cli 4.5; vue version: 3.2.47; ant-design-vue version: 3.2.20

Reproduction link

无,提供的sangbox链接是vue2的

Steps to reproduce

  • 项目是 vue-cli 4.5 创建的,不是使用 vite
  • 下载 ant-design-vue 不指定版本
  • 在vue文件的 template 内引用组件,如 <Button :t></Button>:t 之后会自动提示内部prop(type),进入组件类型文件 node_modules/ant-design-vue/lib/button/index.d.ts 查看有报错

What is expected?

与3.2.15或之前的版本保持一样,正常提示prop参数,在键入部分字母时会自动推导

What is actually happening?

组件prop参数无法字段填充,类型无法校验
自定义的组件正常,其他的组件库正常


手动指定3.2.15版本则都正常
image
image

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant