You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by mo...@apache.org on 2019/04/01 02:48:24 UTC
[incubator-weex-site] branch master updated: Update loading.md
This is an automated email from the ASF dual-hosted git repository.
moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex-site.git
The following commit(s) were added to refs/heads/master by this push:
new 6ad0320 Update loading.md
new bb1204f Merge pull request #363 from sunshl/patch-4
6ad0320 is described below
commit 6ad0320aaa0ff582d22dac9367481b001c3f0145
Author: sunshl <su...@163.com>
AuthorDate: Wed Mar 27 21:12:05 2019 +0800
Update loading.md
Allow use <loading-indicator> component separately.
---
docs/zh/docs/components/loading.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/docs/zh/docs/components/loading.md b/docs/zh/docs/components/loading.md
index 24fb552..050ac78 100644
--- a/docs/zh/docs/components/loading.md
+++ b/docs/zh/docs/components/loading.md
@@ -21,13 +21,14 @@
## 子组件
* 诸如 `<text>`、`<image>` 之类的任何组件,都可以放到 `<loading>` 进行渲染。
-* 特殊子组件 `<loading-indicator>`: 只能作为 `<refresh>` 和 `<loading>` 的子组件使用,拥有默认的动画效果实现。
+* 组件 `<loading-indicator>`: 作为 `<refresh>` 和 `<loading>` 的子组件使用,则拥有默认的动画效果实现。
```vue{3}
<loading>
<text>Loading</text>
<loading-indicator></loading-indicator>
</loading>
```
+* 组件 `<loading-indicator>`: 作为独立组件使用时,通过`animating`属性控制动画状态。[示例](http://dotwe.org/vue/15b0ac96db6e1837ef5c27c0345b7fb6)
## 属性
* `display`
@@ -45,4 +46,4 @@
## 示例
[基本用法](http://dotwe.org/vue/1c303ff427e3a92fc8ef5846c00b35e5)
-<IPhoneImg imgSrc="https://img.alicdn.com/tfs/TB1QYo8n9zqK1RjSZFpXXakSXXa-1242-2208.png" />
\ No newline at end of file
+<IPhoneImg imgSrc="https://img.alicdn.com/tfs/TB1QYo8n9zqK1RjSZFpXXakSXXa-1242-2208.png" />