diff --git a/components/activity-indicator/demo/basic.md b/components/activity-indicator/demo/basic.md index 9ed74ccfc4e..190654f36d1 100644 --- a/components/activity-indicator/demo/basic.md +++ b/components/activity-indicator/demo/basic.md @@ -5,7 +5,7 @@ title: en-US: Basic --- -基本的活动指示器。 +Basic usage ````jsx import { ActivityIndicator, WingBlank, WhiteSpace, Button } from 'antd-mobile'; @@ -31,33 +31,33 @@ class App extends React.Component {
-

icon无文案

+

icon without text

-

icon带文案

+

icon with text

-

大号icon,自定义文案样式

+

icon with large size and customized text style

- 加载中... + Loading...
- +
diff --git a/components/activity-indicator/index.en-US.md b/components/activity-indicator/index.en-US.md index e89cf000357..855c50d3d2f 100644 --- a/components/activity-indicator/index.en-US.md +++ b/components/activity-indicator/index.en-US.md @@ -4,14 +4,12 @@ type: Feedback title: ActivityIndicator --- -活动指示器。 -表明某个任务正在进行中。 +`ActivityIndicator` indicates that a task is currently in progress. -### 规则 -- 不要让活动指示器静止,用户会以为该任务停滞了。 -- 在某些特定场景下,提供有意义的文案,帮助用户明白哪个任务正在进行中,eg:正在上传照片。 -- 如果能知道用户的等待时间,可以使用组件 Progress 来替代。 -- 可通过控制 ActivityIndicator 运动的快慢,来表明进程处理的速度。 +### Rules +- Don't stop activity indicator if the task is not completed. +- By providing meaningful texts under certain circumstances can help user understand which task is in progress. eg: uploading photos. +- If you know the user's waiting time, you can use `Progress` instead. ## API @@ -22,17 +20,17 @@ Support WEB, React-Native. - + - + ``` ### ActivityIndicator Properties | Descrition | Type | Default -----------|------------|------|-------- -| animating | 显隐状态 | boolean | true | -| size | spinner大小,可选`small`/`large` | string | small | -| toast | loading样式类型 | boolean | false | -| text | loading文本 | string | - | -| color (`RN only`) | spinner颜色 | string | gray | +| animating | Whether to show the indicator (true, the default) or hide it (false). | boolean | true | +| size | Size of the indicator (`small`/`large`) | string | small | +| toast | Whether to use toast style | boolean | false | +| text | loading text behind the indicator | string | - | +| color (`RN only`) | The foreground color of the spinner (default is gray). | string | gray | diff --git a/components/activity-indicator/index.zh-CN.md b/components/activity-indicator/index.zh-CN.md index 9f115a929a7..a6fceb98057 100644 --- a/components/activity-indicator/index.zh-CN.md +++ b/components/activity-indicator/index.zh-CN.md @@ -12,7 +12,6 @@ subtitle: 活动指示器 - 不要让活动指示器静止,用户会以为该任务停滞了。 - 在某些特定场景下,提供有意义的文案,帮助用户明白哪个任务正在进行中,eg:正在上传照片。 - 如果能知道用户的等待时间,可以使用组件 Progress 来替代。 -- 可通过控制 ActivityIndicator 运动的快慢,来表明进程处理的速度。 ## API