“2eff3e26b6c7b79c7d4a5cd675b89120e597cc61”上不存在“...ngraph/git@gitcode.net:s920243400/PaddleDetection.git”
提交 e9a9602b 编写于 作者: H HelloCrease

update docs

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 685356a9
...@@ -134,7 +134,7 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true }) ...@@ -134,7 +134,7 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true })
可以将按钮用于启动操作的任何用户界面元素。按钮会根据用户的操作触发相应的事件。如,在List容器里边通过点击按钮进行页面跳转: 可以将按钮用于启动操作的任何用户界面元素。按钮会根据用户的操作触发相应的事件。如,在List容器里边通过点击按钮进行页面跳转:
```ts ```ts
// xxx.js // xxx.ets
import router from '@ohos.router' import router from '@ohos.router'
@Entry @Entry
...@@ -167,26 +167,27 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true }) ...@@ -167,26 +167,27 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true })
``` ```
![zh-cn_image_0000001235626467](figures/zh-cn_image_0000001235626467.png) ![zh-cn_image_0000001235626467](figures/zh-cn_image_0000001235626467.png)
- 用于表单的提交 - 用于表单的提交
在用户登录/注册页面,用户的登录或注册的提交操作会用按钮。
在用户登录/注册页面,用户的登录或注册的提交操作会用按钮。
```ts ```ts
// xxx.js // xxx.ets
@Entry @Entry
@Component @Component
struct ButtonCase2 { struct ButtonCase2 {
build() { build() {
Column() { Column() {
TextInput({ placeholder: 'input your username' }).margin({ top: 20 }) TextInput({ placeholder: 'input your username' }).margin({ top: 20 })
TextInput({ placeholder: 'input your password' }).type(InputType.Password).margin({ top: 20 }) TextInput({ placeholder: 'input your password' }).type(InputType.Password).margin({ top: 20 })
Button('Register').width(300).margin({ top: 20 }) Button('Register').width(300).margin({ top: 20 })
}.padding(20) }.padding(20)
}
} }
}
``` ```
![zh-cn_image_0000001190466492](figures/zh-cn_image_0000001190466492.png) ![zh-cn_image_0000001190466492](figures/zh-cn_image_0000001190466492.png)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册