未验证 提交 0709af02 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/arkui-ts/ts-basic-components-rating.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 2b553b6e
# Rating # Rating
> ![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. > This component is supported since API version 7. Updates will be marked with a superscript to indicate their earliest API version.
...@@ -23,7 +23,7 @@ None ...@@ -23,7 +23,7 @@ None
Rating(options?: { rating: number, indicator?: boolean }) Rating(options?: { rating: number, indicator?: boolean })
- Parameters - Parameters
| Name | Type | Mandatory | Default Value | Description | | Name | Type | Mandatory | Default Value | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| rating | number | Yes | 0 | Value to rate. | | rating | number | Yes | 0 | Value to rate. |
| indicator | boolean | No | false | Used only as an indicator and cannot be operated. | | indicator | boolean | No | false | Used only as an indicator and cannot be operated. |
...@@ -31,7 +31,7 @@ Rating(options?: { rating: number, indicator?: boolean }) ...@@ -31,7 +31,7 @@ Rating(options?: { rating: number, indicator?: boolean })
## Attributes ## Attributes
| Name | Type | Default Value | Description | | Name | Type | Default Value | Description |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| stars | number | 5 | Total number of stars. | | stars | number | 5 | Total number of stars. |
| stepSize | number | 0.5 | Step of an operation. | | stepSize | number | 0.5 | Step of an operation. |
...@@ -40,7 +40,7 @@ Rating(options?: { rating: number, indicator?: boolean }) ...@@ -40,7 +40,7 @@ Rating(options?: { rating: number, indicator?: boolean })
## Events ## Events
| Name | Description | | Name | Description |
| -------- | -------- | | -------- | -------- |
| onChange(callback:(value: number) =&gt; void) | Triggered when the rating value changes. | | onChange(callback:(value: number) =&gt; void) | Triggered when the rating value changes. |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册