ijry / uview-plus

零云®uview-plus,是uni-app全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。
https://uview-plus.jiangruyi.com
MIT License
434 stars 110 forks source link

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

Open cx690 opened 1 month ago

cx690 commented 1 month ago

当前类型声明为:

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

需要更改为:

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

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