鸿蒙报错:The component 'Image' can't have any child.
需要将
Image(subItem.icon) {}.width(40).height(40)
修改为
Image(subItem.icon).width(40).height(40)
去掉{}
鸿蒙报错:The component 'Image' can't have any child.
需要将
Image(subItem.icon) {}.width(40).height(40)
修改为
Image(subItem.icon).width(40).height(40)
去掉{}