首页
教程
IT编程
国外技术
登录
标签
ArkTSCheck
Property ‘Icon‘ has no initializer and is not definitely assigned in the constructor. <ArkTSCheck>
个人在定义组件的一个属性时,遇到的问题Componentstruct StateItem {Icon: Resource;name:stringBuilderParam content: () > voidb
initializer
iCon
property
ArkTSCheck
Constructor
admin
6月前
45
0
鸿蒙报错Property ‘xx‘ has no initializer and is not definitely assigned in the constructor. <ArkTSCheck>
自定义组件时,传参显示报错解决方法:需要进行数据的初始化; 初始化的数据不会影响你的页面,页面显示还是你所传递的参数
鸿蒙
报错
property
xx
ArkTSCheck
admin
7月前
48
0