WaterFlow({  scroller:  new Scroller()}) {
    FlowItem() {
      Column() {

        RichText(`<div style="padding: 0 16px 34px 16px; margin-top: 16px;height:100%;">
   内容自定义
 </div>`)
          .size({ width: '100%', height:'100%'})
          .layoutWeight(1)
          .backgroundColor('#fff')
        Column() {
          Column(){
           
          }
          .height('100%')
        }
        .position({x:0,y:0})
        .zIndex(999)
        .width('100%')
        .height('100%')
        .backgroundColor('#fff')
        .opacity(0)
      }


    }
    .width('95%')
    .height('富文本高度')
    .backgroundColor('#fff')
}.columnsTemplate("1fr")
  .width('100%')
  .height('95%')
  .rowsGap(5)
Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐