鸿蒙开发QuickStart

Time: 2024-07-04 Thursday 03:16:01
Author: Jackasher

鸿蒙开发QuickStart

基础的一个登入注册页面,比HTML好太多,已经配好了样式,其实手机系统已经决定了,软件的美观

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

@Entry
@Component
struct Index {
@State message: string = 'Huawei..';

build() {
Column({space: 15}) {

Image("http://jackasher.com/img/jack.png")
.width(100)
TextInput({
placeholder: "请输入用户名"
})

TextInput({
placeholder: "密码"
}).type(InputType.Password)

Button("登入")
.width(200)

Row({space: 15}){
Text("注册")
Text("忘记密码")
}



}
.padding(30)
}
}

鸿蒙开发QuickStart
http://example.com/2024/07/04/鸿蒙开发QuickStart/
作者
Jack Asher
发布于
2024年7月4日
许可协议