新增aspectRatio参数, 修复某些情况下组件内的 Image 加载图片成功后只有componentWith, 但是componentHeight=0的情况1

Signed-off-by: qiujietian <tqj.zyy@gmail.com>
This commit is contained in:
qiujietian 2024-08-29 20:59:18 +08:00
parent 7ccb60937f
commit 5d8dd3fa0d
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ struct SingleImage {
objectFit: ImageFit.Contain
})
}).width(100).height(100)
Text("测试aspectRatio")
Text("测试aspectRatio的效果")
.fontSize(30)
.fontWeight(FontWeight.Bold)
ImageKnifeComponent({