add readme 和注释

This commit is contained in:
2024-03-07 11:53:57 +08:00
parent 5e79ba416a
commit f23b41ffa1
17 changed files with 32 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
@Entry
@Component
struct Index {
@State message: string = 'Hello World';
build() {
Row() {
Column() {
Text(this.message)
.fontSize(50)
.fontWeight(FontWeight.Bold)
}
.width('100%')
}
.height('100%')
}
}

View File

@@ -0,0 +1,3 @@
export function add(a:number, b:number) {
return a + b;
}