index.ets 266 字节
Newer Older
1 2
@Entry
@Component
3 4
struct Index {
  @State message: string = 'Hello World'
5 6

  build() {
7 8 9 10 11 12 13
    Row() {
      Column() {
        Text(this.message)
          .fontSize(50)
          .fontWeight(FontWeight.Bold)
      }
      .width('100%')
14
    }
15
    .height('100%')
16
  }
17
}