2***@qq.com
2***@qq.com
  • 发布:2024-08-27 09:42
  • 更新:2024-08-27 10:00
  • 阅读:385

安装uni-app-types ts项目中view报类型错误

分类:uni-app

类型“{ class: string; }”的参数不能赋给类型“ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Readonly<Partial<{ hoverClass: string; hoverStopPropagation: boolean; hoverStartTime: number; hoverStayTime: number; }>>, {}, {}, ComputedOptions, ... 15 more ..., {}>, ... 4 more ..., MethodOptions> & ... 4 more ... & Record<...>”的参数。
不能将类型“{ class: string; }”分配给类型“ComponentPublicInstanceConstructor<CreateComponentPublicInstance<Readonly<Partial<{ hoverClass: string; hoverStopPropagation: boolean; hoverStartTime: number; hoverStayTime: number; }>>, {}, {}, ComputedOptions, ... 15 more ..., {}>, ... 4 more ..., MethodOptions>”。
类型“{ class: string; }”提供的内容与签名“new (...args: any[]): CreateComponentPublicInstance<Readonly<Partial<{ hoverClass: string; hoverStopPropagation: boolean; hoverStartTime: number; hoverStayTime: number; }>>, {}, {}, ComputedOptions, ... 15 more ..., {}>”不匹配。

2024-08-27 09:42 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你好,这是社区其它开发者做的,你可以尝试去他们的github反馈

  • 2***@qq.com (作者)

    好的谢谢你

    2024-08-27 10:43

要回复问题请先登录注册