HarmonyOS UI组件怎么设置宽高相等?

Image('')
  .objectFit(ImageFit.Contain)
  .width('50%')
  .height() 

.height()的高度等于宽,怎么设置?

阅读 464
1 个回答