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

VS Code 的Vue-Official更新后所有组件类型丢失,可以进行更改吗? #431

Open
cx690 opened this issue Jul 16, 2024 · 0 comments

Comments

@cx690
Copy link

cx690 commented Jul 16, 2024

  • 版本信息
    "uview-plus": "^3.3.4"
    "vue": "^3.4.31"

当前类型声明为:

// types/comps.d.ts
declare module '@vue/runtime-core' {
  export interface GlobalComponents {
    ...
 }
}

需要更改为:

// types/comps.d.ts
declare module 'vue' {
  export interface GlobalComponents {
    ...
 }
}

这样才可以生效,不过似乎可能会影响其他某些编辑器的类型运算

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