1# SwipeRefresher
2
3
4内容加载指获取内容并加载出来。
5
6
7> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:**
8> 该组件及其子组件从 API Version 10 开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
9
10
11## 导入模块
12
13```
14import { SwipeRefresher } from '@ohos.arkui.advacned.SwipeRefresher'
15```
16
17
18## 子组件
19
2021
22
23## 接口
24
25SwipeRefresher ({content: string, isLoading: boolean})
26
27**装饰器类型:**\@Component
28
29**系统能力:** SystemCapability.ArkUI.ArkUI.Full
30
31**参数:**
32
33| 参数值 | 参数类型 | 必填 | 装饰器类型 | 参数描述 |
34| -------- | -------- | -------- | -------- | -------- |
35| content | string | 否 | \@Prop | 内容加载时显示的文本。 |
36| isLoading | boolean | 是 | \@Prop | 当前是否正在加载。 |
37
38
39## 示例
40
41```
42import { SwipeRefresher } from '@ohos.arkui.advacned.SwipeRefresher';
43
44@Entry
45@Component
46struct Index {
47  build() {
48    Column() {
49      SwipeRefresher({
50        content: '正在加载中',
51        isLoading: true })
52
53      SwipeRefresher({
54        isLoading: true })
55      SwipeRefresher({
56        content: '正在加载中',
57        isLoading: false })
58    }
59  }
60}
61```
62
63![Snipaste_2023-07-24_11-35-40](figures/Snipaste_2023-07-24_11-35-40.png)
64