未验证 提交 36e1ed4c 编写于 作者: O openharmony_ci 提交者: Gitee

!4558 【OpenHarmony开源贡献者计划2022】ts-basic-components-button.md\blank.md.相关格式及表达问题

Merge pull request !4558 from king_he/0528-c
# AnimatorProperty
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> **NOTE**<br>
> This animation is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
......
# Blank
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
......@@ -34,8 +34,8 @@ Blank(min?: Length)
| -------- | -------- | -------- | -------- |
| color | Color | 0x00000000 | Color to fill the blank. |
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
> - Universal attribute methods are not supported.
> **NOTE**<br>
> Universal attribute methods are not supported.
## Example
......
# Button
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
>
> **NOTE**<br>
> This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
......@@ -37,10 +36,10 @@ Supported
**Table 2** value parameters
| Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- |
| label | string | No | - | Button text. |
| options | Object | No | - | For details, see the **options** parameters. |
| Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- |
| label | string | No | - | Button text. |
| options | Object | No | - | For details, see the **options** parameters. |
## Attributes
......@@ -50,14 +49,15 @@ Supported
| type | ButtonType | Capsule | Button type. |
| stateEffect | boolean | true | Whether to enable the state switchover effect. When the state is set to **false**, the state switchover effect is disabled. |
- ButtonType enums
| Name | Description |
| -------- | -------- |
| Capsule | Capsule-type button (the round corner is half of the height by default). |
| Circle | Circle button. |
| Normal | Normal button (without rounded corners by default). |
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
**ButtonType** enums
| Name | Description |
| -------- | -------- |
| Capsule | Capsule-type button (the round corner is half of the height by default). |
| Circle | Circle button. |
| Normal | Normal button (without rounded corners by default). |
> **NOTE**
> - The rounded corner of a button is set by using [Border](ts-universal-attributes-border.md). (The rounded corner cannot be set by using a border API.)
> - When the button type is **Capsule**, the **borderRadius** settings do not take effect, and the rounded corner of the button is always half of the button height.
> - When the button type is **Circle**, the value of **borderRadius** is used as the button radius. If **borderRadius** is not set, the button radius is half of the width or height, whichever is smaller.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册