forked from liuyihan11/kaihong
34 lines
868 B
Plaintext
34 lines
868 B
Plaintext
import hilog from '@ohos.hilog';
|
|
|
|
@Entry
|
|
@Component
|
|
struct Index {
|
|
aboutToAppear() {
|
|
hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility index aboutToAppear');
|
|
}
|
|
@State message: string = 'Hello World'
|
|
build() {
|
|
Row() {
|
|
Column() {
|
|
Text(this.message)
|
|
.fontSize(50)
|
|
.fontWeight(FontWeight.Bold)
|
|
Button() {
|
|
Text('next page')
|
|
.fontSize(20)
|
|
.fontWeight(FontWeight.Bold)
|
|
}.type(ButtonType.Capsule)
|
|
.margin({
|
|
top: 20
|
|
})
|
|
.backgroundColor('#0D9FFB')
|
|
.width('35%')
|
|
.height('5%')
|
|
.onClick(()=>{
|
|
})
|
|
}
|
|
.width('100%')
|
|
}
|
|
.height('100%')
|
|
}
|
|
} |