* [doc] Update some examples.

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/90344359
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/90344359
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/90344359

Branch: refs/heads/0.11-dev
Commit: 9034435958399bae2b568b36590d194b12e950bb
Parents: 2d7b868
Author: Yun Dong <yundong...@gmail.com>
Authored: Fri Mar 10 14:50:12 2017 +0800
Committer: Yun Dong <yundong...@gmail.com>
Committed: Fri Mar 10 14:50:12 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/components/a.md         | 19 -------------------
 doc/source/cn/references/components/div.md       | 10 +++++-----
 doc/source/cn/references/components/image.md     | 16 ++++++++--------
 doc/source/cn/references/components/list.md      |  4 ----
 doc/source/cn/references/modules/globalevent.md  |  2 +-
 doc/source/cn/references/path.md                 |  2 +-
 .../cn/v-0.10/references/modules/globalevent.md  |  2 +-
 doc/source/references/components/image.md        |  5 ++---
 doc/source/references/modules/globalevent.md     |  2 +-
 .../v-0.10/references/modules/globalevent.md     |  2 +-
 10 files changed, 20 insertions(+), 44 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/components/a.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/a.md 
b/doc/source/cn/references/components/a.md
index f6fd610..5e54b0c 100644
--- a/doc/source/cn/references/components/a.md
+++ b/doc/source/cn/references/components/a.md
@@ -44,25 +44,6 @@ version: 2.1
 ## 约束
 
 - **不能**直接在 `<a>` 中添加文本。
-  错误示例,“click” 无法被正常渲染。
-
-  ```html
-  <template>
-    <div class="wrapper">
-      <a href="http://dotwe.org/raw/dist/a468998152ee680413588c38bd61c29e.js";>
-        click
-      </a>
-    </div>
-  </template>
-
-  <style>
-  .wrapper {
-    text-align: center;
-  }
-  </style>
-  ```
-
-  [体验一下](http://dotwe.org/0a22d65138691a208e3fb1f8f6392b38)
 
 - 请不要为 `<a>` 添加 `click` 事件。我们不能确保 `click` 
事件和 `href` 跳转的执行顺序。
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/components/div.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/div.md 
b/doc/source/cn/references/components/div.md
index 79cfae0..90d8711 100644
--- a/doc/source/cn/references/components/div.md
+++ b/doc/source/cn/references/components/div.md
@@ -24,7 +24,7 @@ version: 2.1
 
 <style>
 .text {
-  font-size: 70;
+  font-size: 70px;
   color: #ff0000
 }
 </style>
@@ -32,7 +32,7 @@ version: 2.1
 <script></script>
 ```
 
-[体验一下](http://dotwe.org/a468998152ee680413588c38bd61c29e)
+[体验一下](http://dotwe.org/vue/ea4f528a0b381640b77ba03fcc69a90a)
 
 ![mobile_preview](../images/div_1.jpg)
 
@@ -84,11 +84,11 @@ version: 2.1
   <script></script>
   ```
 
-  [体验一下](http://dotwe.org/3ef3ba3f0f162b27e24c525250c46a04)
+  [体验一下](http://dotwe.org/vue/541f016de379c8764ddcdd9da0cabc24)
 
-2. `<div>` 不可滚动,即使显式设置高度也一样。
+2. `<div>` 在 native 中不可滚动,即使显式设置高度也一样。
 
-  [错误示例](http://dotwe.org/a2cc491c5b9e6f6eb06795e45e725efd)
+  [错误示例](http://dotwe.org/vue/6795753d1a51662b8a7282b129dc7ddf)
 
 ## 示例
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/image.md 
b/doc/source/cn/references/components/image.md
index 1c70f10..7755618 100644
--- a/doc/source/cn/references/components/image.md
+++ b/doc/source/cn/references/components/image.md
@@ -7,7 +7,7 @@ version: 2.1
 
 # &lt;image&gt;
 
-`<image>` 组件用于渲染图片,并且它不能包
含任何子组件。可以用 `<img>` 作简写。
+`<image>` 组件用于渲染图片,并且它不能包
含任何子组件。新版 Vue 2.0 中**不支持**用 `<img>` 作简写。
 
 需要注意的是,需要明确指定 `width` 和 `height`,否则图片无
法显示。
 
@@ -16,12 +16,12 @@ version: 2.1
 ```html
 <template>
   <div>
-    <img style="width: 560;height: 560;" 
src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg";></img>
+    <image style="width: 560px;height: 560px;" 
src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg";></image>
   </div>
 </template>
 ```
 
-[体验一下](http://dotwe.org/23b6cf951e6059d2cf7b9a74a9915ace)
+[体验一下](http://dotwe.org/vue/1d6145d98cbdb8c66c69b4d4dcd2744d)
 
 ## 子组件
 
@@ -30,9 +30,9 @@ version: 2.1
 ```html
 <template>
   <div>
-    <img style="width:750; height:750;" 
src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg";></img>
+    <image style="width:750px; height:750px;" 
src="https://img.alicdn.com/tps/TB1z.55OFXXXXcLXXXXXXXXXXXX-560-560.jpg";></image>
     <div class="title">
-      <text style="font-size:50; color: #ff0000">你好,image</text>
+      <text style="font-size:50px; color: #ff0000">你好,image</text>
     </div>
   </div>
 </template>
@@ -45,7 +45,7 @@ version: 2.1
 </style>
 ```
 
-[体验一下](http://dotwe.org/08dd49aaca8bf289c5fc08f808b9c08c)
+[体验一下](http://dotwe.org/vue/0a81d27b5dbc68ea3bf5f9fd56c882e8)
 
 ## 特性
 
@@ -66,7 +66,7 @@ version: 2.1
 
 - `placeholder`: <span class="api-version">v0.9+</span> &lt;string&gt; 
当源图片下载中时显示一张占位图。
 
-  [体验一下](http://dotwe.org/049213ab3364a86637e211c0329cdc50)
+  [体验一下](http://dotwe.org/vue/18e71ab3484bb6751ad77ff7d5195404)
 
 ## 样式
 
@@ -82,7 +82,7 @@ version: 2.1
 
 ## 事件
 
-- `load`: <sup class="api-version">v0.8+</sup>:当图片加
载完成时触发。目前在 Android、iOS 上支持,H5 
暂不支持。[示例](http://dotwe.org/25bd347da6a59603dd31ec057d2691da)
+- `load`: <sup class="api-version">v0.8+</sup>:当图片加
载完成时触发。目前在 Android、iOS 上支持,H5 
暂不支持。[示例](http://dotwe.org/vue/98ee340348d7cc3e6fbfe68dbaef1eed)
 
   - 事件对象
     - `success`: 当图片成功加载时为`true`,否则为`false`

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/components/list.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/list.md 
b/doc/source/cn/references/components/list.md
index 2cb0a90..335eef3 100644
--- a/doc/source/cn/references/components/list.md
+++ b/doc/source/cn/references/components/list.md
@@ -43,8 +43,6 @@ version: 2.1
 
 - `loadmoreoffset {number}`:默认值为 0,触发 `loadmore` 
事件所需要的垂直偏移距离(设备屏幕底部与 `<list>` 
底部之间的距离)。当 `<list>` 的滚动条滚动到足够接近 
`<list>` 底部时将会触发 `loadmore` 这个事件。
 
-  ![mobile_preview](../images/list_4.jpg)
-
 ## 样式
 
 - 通用样式:支持所有通用样式
@@ -61,8 +59,6 @@ version: 2.1
 
 - `loadmore` <sup 
class="wx-v">0.5+</sup>:如果列表滚动到底部将会立即触发这个事件,ä½
 å¯ä»¥åœ¨è¿™ä¸ªäº‹ä»¶çš„处理函数中加载下一页的列表项。
 
-  [体验一下](http://dotwe.org/bc445ede8746a31360e3607d210304c5)
-
 - 通用事件
 
   支持所有通用事件:

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/modules/globalevent.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/globalevent.md 
b/doc/source/cn/references/modules/globalevent.md
index d5bf004..f588aa8 100644
--- a/doc/source/cn/references/modules/globalevent.md
+++ b/doc/source/cn/references/modules/globalevent.md
@@ -9,7 +9,7 @@ version: 2.1
 
 <span class="weex-version">0.8 (开发中)</span>
 
-`globalEvent` 用于监听持久
性事件,例如定位信息,陀螺仪等的变化。å…
¨å±€äº‹ä»¶æ˜¯éœ€è¦é¢å¤– APIs 处理的次要 API。你能通过 
`addEventListener` 注册事件监听,当你
不再需要的时候,也可以通过 `removingEventListener` 
取消事件监听。
+`globalEvent` 用于监听持久
性事件,例如定位信息,陀螺仪等的变化。å…
¨å±€äº‹ä»¶æ˜¯éœ€è¦é¢å¤– APIs 处理的次要 API。你能通过 
`addEventListener` 注册事件监听,当你
不再需要的时候,也可以通过 `removeEventListener` 
取消事件监听。Vue 版本暂不支持 `globalEvent`。
 
 *提醒*
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/references/path.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/path.md b/doc/source/cn/references/path.md
index 3d256fb..9e5a889 100644
--- a/doc/source/cn/references/path.md
+++ b/doc/source/cn/references/path.md
@@ -18,7 +18,7 @@ has_chapter_content: true
 
   Weex SDK 提供 `local`  scheme 来访问打包
在应用程序中的资源,此 scheme 无法在 H5 
环境下使用。目前,开发者可以在 `image` 
组件和字体文件中使用本地资源。 
 
-  * 在 iOS 中,Weex 会在 `bundle resources` 中查找。例如,`image` 
组件的 `src` 属性为 `local://app_icon'`, Weex 会加载 `bundle 
resouce` 中名为 `app_icon` 
的图像资源,而字体文件也以相同的方式工作。 
+  * 在 iOS 中,Weex 会在 `bundle resources` 中查找。例如,`image` 
组件的 `src` 属性为 `local:///app_icon'`, Weex 会加载 `bundle 
resouce` 中名为 `app_icon` 
的图像资源,而字体文件也以相同的方式工作。 
 
   * 在 Android 中,`image` 组件将从 `drawable` 资源文件夹加
载,如  `res/drawable-xxx`。但加载字体文件是不同的,Android 
框架无法从 `res` 加载字体文件,因此 SDK 将从 `asserts` 
文件夹加载它。
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/cn/v-0.10/references/modules/globalevent.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/v-0.10/references/modules/globalevent.md 
b/doc/source/cn/v-0.10/references/modules/globalevent.md
index 05c9e7a..9a04dc0 100644
--- a/doc/source/cn/v-0.10/references/modules/globalevent.md
+++ b/doc/source/cn/v-0.10/references/modules/globalevent.md
@@ -8,7 +8,7 @@ version: 0.10
 # 全局事件
 <span class="weex-version">0.8 (开发中)</span>
 
-`globalEvent` 用于监听持久
性事件,例如定位信息,陀螺仪等的变化。å…
¨å±€äº‹ä»¶æ˜¯éœ€è¦é¢å¤– APIs 处理的次要 API。你能通过 
`addEventListener` 注册事件监听,当你
不再需要的时候,也可以通过 `removingEventListener` 
取消事件监听。
+`globalEvent` 用于监听持久
性事件,例如定位信息,陀螺仪等的变化。å…
¨å±€äº‹ä»¶æ˜¯éœ€è¦é¢å¤– APIs 处理的次要 API。你能通过 
`addEventListener` 注册事件监听,当你
不再需要的时候,也可以通过 `removeEventListener` 
取消事件监听。
 
 *提醒*
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/references/components/image.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/image.md 
b/doc/source/references/components/image.md
index 7cf9814..aac1735 100644
--- a/doc/source/references/components/image.md
+++ b/doc/source/references/components/image.md
@@ -9,11 +9,10 @@ version: 2.1
 
 ### Summary
 
-`image` tag is used to render a specified picture, and it shouldn't contain 
any child component. You can use `img` as alias.
+`image` tag is used to render a specified picture, and it shouldn't contain 
any child component. `<img>` is not supported currently.
 
 **Notes:** the styles of `width` and `height` should be specified, otherwise 
it won't work.
 
-alias: `<img>`
 
 ### Child Components
 
@@ -43,7 +42,7 @@ This component supports no child components.
 
 - support `click` event. Check out [common events](../common-event.html)
 - support `appear` / `disappear` event. Check out [common 
events](../common-event.html)    
-- `load`<sup class="api-version">v0.8+</sup> event. The `load` event fires on 
an image has been loaded. Only Android and iOS are supported currently. 
[example](http://dotwe.org/25bd347da6a59603dd31ec057d2691da)    
+- `load`<sup class="api-version">v0.8+</sup> event. The `load` event fires on 
an image has been loaded. Only Android and iOS are supported currently. 
[example](http://dotwe.org/vue/98ee340348d7cc3e6fbfe68dbaef1eed)    
   - event object
     - `success` : `true` if the image was loaded successfully, otherwise 
`false`
     - `size` : the original size of image, contains two parameters: 
`naturalWidth` representing the original width of image in pixels, 
`naturalHeight` representing the original height of image in pixels. default 
value. The default value for both parameters is `0`.

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/references/modules/globalevent.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/globalevent.md 
b/doc/source/references/modules/globalevent.md
index 66df3a2..3738976 100644
--- a/doc/source/references/modules/globalevent.md
+++ b/doc/source/references/modules/globalevent.md
@@ -12,7 +12,7 @@ version: 2.1
 
 `globalEvent` are used to listen for persistent events, such as changes in 
positioning information, gyroscopes, and so on. A global event is a secondary 
API that requires additional APIs to work with.
 
-You can register events via `addEventListener`, which can be removed by 
`removingEventListener` when you do not need to listen for `globalEvent`.
+You can register events via `addEventListener`, which can be removed by 
`removeEventListener` when you do not need to listen for `globalEvent`. 
`globalEvent` is not supported in Vue version.
 
 *AUCTION* 
 - Only instance level is not application level . 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/90344359/doc/source/v-0.10/references/modules/globalevent.md
----------------------------------------------------------------------
diff --git a/doc/source/v-0.10/references/modules/globalevent.md 
b/doc/source/v-0.10/references/modules/globalevent.md
index 58e275b..0db8c48 100644
--- a/doc/source/v-0.10/references/modules/globalevent.md
+++ b/doc/source/v-0.10/references/modules/globalevent.md
@@ -12,7 +12,7 @@ version: 0.10
 
 `globalEvent` are used to listen for persistent events, such as changes in 
positioning information, gyroscopes, and so on. A global event is a secondary 
API that requires additional APIs to work with.
 
-You can register events via `addEventListener`, which can be removed by 
`removingEventListener` when you do not need to listen for `globalEvent`.
+You can register events via `addEventListener`, which can be removed by 
`removeEventListener` when you do not need to listen for `globalEvent`.
 
 *AUCTION* 
 - Only instance level is not application level . 

Reply via email to