提交 e9a9602b 编写于 作者: H HelloCrease

update docs

Signed-off-by: NHelloCrease <lian15@huawei.com>
上级 685356a9
......@@ -134,7 +134,7 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true })
可以将按钮用于启动操作的任何用户界面元素。按钮会根据用户的操作触发相应的事件。如,在List容器里边通过点击按钮进行页面跳转:
```ts
// xxx.js
// xxx.ets
import router from '@ohos.router'
@Entry
......@@ -167,16 +167,16 @@ 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
// xxx.js
@Entry
// xxx.ets
@Entry
@Component
struct ButtonCase2 {
build() {
......@@ -189,4 +189,5 @@ Button('Ok', { type: ButtonType.Normal, stateEffect: true })
}
```
![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.
先完成此消息的编辑!
想要评论请 注册