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;
}

View File

@@ -0,0 +1,14 @@
{
"module": {
"name": "common_ui",
"type": "shared",
"description": "$string:shared_desc",
"deviceTypes": [
"phone",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"pages": "$profile:main_pages"
}
}

View File

@@ -0,0 +1,8 @@
{
"color": [
{
"name": "white",
"value": "#FFFFFF"
}
]
}

View File

@@ -0,0 +1,8 @@
{
"string": [
{
"name": "shared_desc",
"value": "description"
}
]
}

View File

@@ -0,0 +1,5 @@
{
"src": [
"pages/Index"
]
}