* [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)  @@ -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 # <image> -`<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> <string> 彿ºå¾çä¸è½½ä¸æ¶æ¾ç¤ºä¸å¼ å ä½å¾ã - [ä½éªä¸ä¸](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` è¿ä¸ªäºä»¶ã -  - ## æ ·å¼ - éç¨æ ·å¼ï¼æ¯æææéç¨æ ·å¼ @@ -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 .