From fe08aaad9881abf34685a1cefc52bdf53dcb44b3 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Sat, 25 Jun 2022 02:22:53 +0000 Subject: [PATCH] update en/application-dev/reference/arkui-ts/ts-container-refresh.md. Signed-off-by: king_he <6384784@qq.com> --- .../arkui-ts/ts-container-refresh.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/en/application-dev/reference/arkui-ts/ts-container-refresh.md b/en/application-dev/reference/arkui-ts/ts-container-refresh.md index 27cff4d2ed..2e40473d9e 100644 --- a/en/application-dev/reference/arkui-ts/ts-container-refresh.md +++ b/en/application-dev/reference/arkui-ts/ts-container-refresh.md @@ -1,6 +1,6 @@ # Refresh -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version. The **** component is used to refresh a page through a pull-down gesture. @@ -19,11 +19,11 @@ Refresh\(value: \{refreshing: boolean, offset?: Length, friction?: number\}\) - Parameters - | Name| Value Type| Mandatory| Default Value| Description| + | Name | Value Type | Mandatory | Default Value | Description | | -------- | -------- | -------- | -------- | -------- | - | refreshing | boolean | Yes| - | Whether the current component is being refreshed.| - | offset | Length | No| 16 | Distance to the top of the parent component from the **** component that comes to rest after a successful pull-down gesture.| - | friction | number | No| 62 | Coefficient of friction, which indicates the **** component's sensitivity to the pull-down gesture. The value ranges from 0 to 100.
- **0** indicates that the **** component is not sensitive to the pull-down gesture.
- **100** indicates that the **** component is highly sensitive to the pull-down gesture.
- A larger value indicates a more sensitive response of the **** component to the pull-down gesture.| + | refreshing | boolean | Yes| - | Whether the current component is being refreshed. | + | offset | Length | No| 16 | Distance to the top of the parent component from the **** component that comes to rest after a successful pull-down gesture. | + | friction | number | No| 62 | Coefficient of friction, which indicates the **** component's sensitivity to the pull-down gesture. The value ranges from 0 to 100.
- **0**: The **** component is not sensitive to the pull-down gesture.
- **100**: The **** component is highly sensitive to the pull-down gesture.
- Value greater than **100**: The **** component is much more sensitive to the pull-down gesture. | @@ -32,18 +32,18 @@ Refresh\(value: \{refreshing: boolean, offset?: Length, friction?: number\}\) | Name| Description| | -------- | -------- | -| onStateChange(callback: (state: RefreshStatus) => void)| Triggered when the refresh status changes.
**state** indicates the refresh status.| -| onRefreshing(callback: () => void)| Triggered when the component enters the refresh state.| +| onStateChange(callback: (state: RefreshStatus) => void)| Triggered when the refresh status changes.
**state** indicates the refresh status. | +| onRefreshing(callback: () => void)| Triggered when the component enters the refresh state. | - RefreshStatus enums | Name| Description| | -------- | -------- | - | Inactive | The component is not pulled down. This is the default value.| - | Drag | The component is being pulled down, but the pulled distance is shorter than the minimum length required to trigger the refresh.| - | OverDrag | The component is being pulled down, and the pulled distance exceeds the minimum length required to trigger the refresh.| - | Refresh | The pull-down ends, and the component rebounds to the minimum length required to trigger the refresh and enters the refresh state.| - | Done | The refresh is complete, and the component returns to the initial state (top).| + | Inactive | The component is not pulled down. This is the default value. | + | Drag | The component is being pulled down, but the pulled distance is shorter than the minimum length required to trigger the refresh. | + | OverDrag | The component is being pulled down, and the pulled distance exceeds the minimum length required to trigger the refresh. | + | Refresh | The pull-down ends, and the component rebounds to the minimum length required to trigger the refresh and enters the refresh state. | + | Done | The refresh is complete, and the component returns to the initial state (top). | ## Example -- GitLab