DC_Karenloar
DC_Karenloar
  • 发布:2024-07-19 16:45
  • 更新:2024-07-24 11:52
  • 阅读:69

uniappx的uvue文件难道不能使用ts里的索引签名吗?

分类:uni-app x
interface exType {    
     [key: string]: any;  
}

写在export default的上面,“[key: string]: any”,写了就报错,太不方便了

2024-07-19 16:45 负责人:DCloud_UNI_FengXY 分享
已邀请:
DCloud_UNI_FengXY

DCloud_UNI_FengXY

uts不支持索引签名,可以使用UTSJSONObject,Map实现类似功能

要回复问题请先登录注册