You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ji...@apache.org on 2017/02/24 16:43:26 UTC
[47/50] incubator-weex git commit: * [doc] Fix typo.
* [doc] Fix typo.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8bd70c4f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8bd70c4f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8bd70c4f
Branch: refs/heads/dev
Commit: 8bd70c4f5d51067b9255f772440a3b149ab4a065
Parents: 4fed11d
Author: Yun Dong <yu...@gmail.com>
Authored: Fri Feb 24 15:12:30 2017 +0800
Committer: Yun Dong <yu...@gmail.com>
Committed: Fri Feb 24 15:12:30 2017 +0800
----------------------------------------------------------------------
doc/advanced/extend-to-android.md | 2 +-
doc/source/cn/references/advanced/extend-to-android.md | 2 +-
doc/source/cn/references/advanced/extend-to-ios.md | 2 +-
doc/source/cn/references/components/a.md | 2 +-
doc/source/cn/references/components/refresh.md | 2 +-
doc/source/cn/references/modules/dom.md | 4 ++--
doc/source/cn/references/modules/index.md | 2 +-
doc/source/references/advanced/extend-to-android.md | 2 +-
doc/source/references/components/div.md | 2 +-
doc/source/references/modules/dom.md | 4 ++--
doc/source/references/modules/storage.md | 2 +-
doc/source/references/modules/webview.md | 6 +++---
12 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/advanced/extend-to-android.md b/doc/advanced/extend-to-android.md
index 1d49dfd..336f5df 100644
--- a/doc/advanced/extend-to-android.md
+++ b/doc/advanced/extend-to-android.md
@@ -57,7 +57,7 @@ you can add `` @JSMethod (uiThread = false or true ) `` annotation to choose th
Now `event` moudle is avaiable in weex, use the module like this:
```javascript
-var event = require('@weex-module/event');
+var event = weex.requireModule('event');
event.openURL("http://www.github.com");
```
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-android.md b/doc/source/cn/references/advanced/extend-to-android.md
index 71c642d..e2d654c 100644
--- a/doc/source/cn/references/advanced/extend-to-android.md
+++ b/doc/source/cn/references/advanced/extend-to-android.md
@@ -48,7 +48,7 @@ JS \u8c03\u7528\u5982\u4e0b\uff1a
module.exports = {
methods: {
click: function() {
- require('@weex-module/myModule').printLog("\u6211\u662f\u4e00\u4e2a\u6d4b\u8bd5!");
+ weex.requireModule('myModule').printLog("\u6211\u662f\u4e00\u4e2a\u6d4b\u8bd5!");
}
}
}
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/advanced/extend-to-ios.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/advanced/extend-to-ios.md b/doc/source/cn/references/advanced/extend-to-ios.md
index af6c4fd..4edecf4 100644
--- a/doc/source/cn/references/advanced/extend-to-ios.md
+++ b/doc/source/cn/references/advanced/extend-to-ios.md
@@ -58,7 +58,7 @@ Weex SDK \u53ea\u63d0\u4f9b\u6e32\u67d3\uff0c\u800c\u4e0d\u662f\u5176\u4ed6\u7684\u80fd\u529b\uff0c\u5982\u679c\u4f60\u9700\u8981 \u50cf\u7f51\u7edc
\u8fd9\u91cc\u7684 require \u91cc\u9762\u7684event \u5c31\u662f\u5728 \u4e0a\u4e00\u6b65\u8c03\u7528`registerModule:` \u6ce8\u518cmodule \u65f6\u5019\u7684name
```javascript
- var eventModule = require('@weex-module/event');
+ var eventModule = weex.requireModule('event');
eventModule.openURL('url',function(ret) {
nativeLog(ret);
});
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/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 5cac8dc..ce2dcf1 100644
--- a/doc/source/cn/references/components/a.md
+++ b/doc/source/cn/references/components/a.md
@@ -46,7 +46,7 @@ version: 2.1
1. **\u4e0d\u80fd**\u76f4\u63a5\u5728 `<a>` \u4e2d\u6dfb\u52a0\u6587\u672c\u3002
\u9519\u8bef\u793a\u4f8b\uff0c\u201cclick\u201d \u65e0\u6cd5\u88ab\u6b63\u5e38\u6e32\u67d3\u3002
- ```HTML
+ ```html
<template>
<div class="wrapper">
<a href="http://dotwe.org/raw/dist/a468998152ee680413588c38bd61c29e.js">
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/components/refresh.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/refresh.md b/doc/source/cn/references/components/refresh.md
index 48c89ac..1eba39c 100644
--- a/doc/source/cn/references/components/refresh.md
+++ b/doc/source/cn/references/components/refresh.md
@@ -19,7 +19,7 @@ version: 2.1
## \u7279\u6027
-- `display {string}`\uff1a\u53ef\u9009\u503c\u4e3a `show` \u6216\u8005 `hide`\uff0c\u4ec5\u9690\u85cf `<indicator>`\uff0c`<loading>` \u5176\u4ed6\u5b50\u7ec4\u4ef6\u4f9d\u7136\u53ef\u89c1\uff0c`<loading>` \u4e8b\u4ef6\u4ecd\u4f1a\u88ab\u89e6\u53d1\u3002
+- `display {string}`\uff1a\u53ef\u9009\u503c\u4e3a `show` \u6216\u8005 `hide`\uff0c\u4ec5\u9690\u85cf `<indicator>`\uff0c`<refresh>` \u5176\u4ed6\u5b50\u7ec4\u4ef6\u4f9d\u7136\u53ef\u89c1\uff0c`<refresh>` \u4e8b\u4ef6\u4ecd\u4f1a\u88ab\u89e6\u53d1\u3002
## \u6837\u5f0f
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/dom.md b/doc/source/cn/references/modules/dom.md
index f6180d1..b7473c2 100644
--- a/doc/source/cn/references/modules/dom.md
+++ b/doc/source/cn/references/modules/dom.md
@@ -24,7 +24,7 @@ version: 2.1
~~\u8fd9\u4e2aAPI\u4e5f\u80fd\u901a\u8fc7\u8c03\u7528VM\u7684\u65b9\u6cd5 `$scrollTo` \u6765\u4f7f\u7528\uff08\u5df2\u5f03\u7528\uff09~~
-\u8981\u5728\u4f60\u7684 `.we` \u6587\u4ef6\u4e2d\u4f7f\u7528\u8fd9\u4e2a API\uff0c\u53ef\u4ee5\u4f7f\u7528 `require('@weex-module/dom').scrollToElement`\u3002
+\u8981\u5728\u4f60\u7684 `.vue` \u6587\u4ef6\u4e2d\u4f7f\u7528\u8fd9\u4e2a API\uff0c\u53ef\u4ee5\u4f7f\u7528 `weex.requireModule('dom').scrollToElement`\u3002
#### \u53c2\u6570
- `node {Node}`\uff1a\u4f60\u8981\u6eda\u52a8\u5230\u7684\u90a3\u4e2a\u8282\u70b9
@@ -122,7 +122,7 @@ version: 2.1
[try it](../../../examples/dom-scroll.html)
-### getComponentRect(ref, callback)<sup>v0.9.4+</sup>
+### getComponentRect(ref, callback) <span class="api-version">v0.9.4+</span>
\u901a\u8fc7\u6807\u7b7e\u7684 `ref` \u83b7\u5f97\u5176\u5e03\u5c40\u4fe1\u606f\uff0c\u8fd4\u56de\u7684\u4fe1\u606f\u5728 `callBack` \u4e2d\uff0c\u683c\u5f0f\u53c2\u8003\u5982\u4e0b\uff1a
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/cn/references/modules/index.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/modules/index.md b/doc/source/cn/references/modules/index.md
index 28756f4..8171de2 100644
--- a/doc/source/cn/references/modules/index.md
+++ b/doc/source/cn/references/modules/index.md
@@ -10,7 +10,7 @@ version: 2.1
## \u5982\u4f55\u4f7f\u7528
-\u4f60\u53ef\u4ee5\u7b80\u5355\u7684\u901a\u8fc7\u7c7b\u4f3c `require('@weex-module/name')` \u8fd9\u6837\u7684\u8bed\u6cd5\u83b7\u53d6\u4e00\u4e2a\u6a21\u5757\u7684 API\uff0c\u6bd4\u5982\uff1a
+\u4f60\u53ef\u4ee5\u7b80\u5355\u7684\u901a\u8fc7\u7c7b\u4f3c `weex.requireModule('name')` \u8fd9\u6837\u7684\u8bed\u6cd5\u83b7\u53d6\u4e00\u4e2a\u6a21\u5757\u7684 API\uff0c\u6bd4\u5982\uff1a
```html
<script>
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/advanced/extend-to-android.md
----------------------------------------------------------------------
diff --git a/doc/source/references/advanced/extend-to-android.md b/doc/source/references/advanced/extend-to-android.md
index d4d2b6d..e10b906 100644
--- a/doc/source/references/advanced/extend-to-android.md
+++ b/doc/source/references/advanced/extend-to-android.md
@@ -65,7 +65,7 @@ WXSDKEngine.registerModule("event", WXEventModule.class);
Now `event` moudle is avaiable in weex, use the module like this:
```javascript
-var event = require('@weex-module/event');
+var event = weex.requireModule('event');
event.openURL("http://www.github.com");
```
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/components/div.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/div.md b/doc/source/references/components/div.md
index 2531a31..d82ad0d 100644
--- a/doc/source/references/components/div.md
+++ b/doc/source/references/components/div.md
@@ -23,7 +23,7 @@ There is no specific attribute for this component.
### Styles
-**common styles**: check out the [common styles](../common-attrs.html)
+**common styles**: check out the [common styles](../common-style.html)
- support flexbox related styles
- support box model related styles
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/dom.md b/doc/source/references/modules/dom.md
index 6e69092..bfd80e0 100644
--- a/doc/source/references/modules/dom.md
+++ b/doc/source/references/modules/dom.md
@@ -17,7 +17,7 @@ A series of dom apis that sending virtual-dom's messages to the native renderer
Scroll the page to the specified node. This API should only be used on the element in the `scroller` or `list` component.
-<del>This API can be used by calling the VM's method `$scrollTo` **(deprecated)**.</del> You can use `require('@weex-module/dom').scrollToElement` to call this API in your `.we` file.
+<del>This API can be used by calling the VM's method `$scrollTo` **(deprecated)**.</del> You can use `weex.requireModule('dom').scrollToElement` to call this API in your `.we` file.
#### Arguments
@@ -116,7 +116,7 @@ Scroll the page to the specified node. This API should only be used on the eleme
[try it](../../examples/dom-scroll.html)
-### getComponentRect(ref,callback)<sup>v0.9.4+</sup>
+### getComponentRect(ref,callback) <span class="api-version">v0.9.4+</span>
You can get the view rectangle information of named element.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/storage.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/storage.md b/doc/source/references/modules/storage.md
index 3db4f29..b7bcf43 100644
--- a/doc/source/references/modules/storage.md
+++ b/doc/source/references/modules/storage.md
@@ -46,7 +46,7 @@ When passed a key name, will remove that key from the storage.
##### Example
```javascript
-var storage = require('@weex-module/storage');
+var storage = weex.requireModule('storage');
storage.removeItem('foo', function(e) {
// callback. 'e' is an object that contains 'result' and 'data'.
// e.result will return 'success' or 'failed' according to the executing result.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8bd70c4f/doc/source/references/modules/webview.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/webview.md b/doc/source/references/modules/webview.md
index 096e4d3..d5dfbdd 100644
--- a/doc/source/references/modules/webview.md
+++ b/doc/source/references/modules/webview.md
@@ -22,7 +22,7 @@ Loads the previous location in the history stack.
#### Example
```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
var webElement = this.$el('webview');
webview.goBack(webElement);
```
@@ -38,7 +38,7 @@ Loads the next location in the history stack.
#### Example
```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
var webElement = this.$el('webview');
webview.goForward(webElement);
```
@@ -54,7 +54,7 @@ Reloads the current web page.
#### Example
```
-var webview = require('@weex-module/webview');
+var webview = weex.requireModule('webview');
var webElement = this.$el('webview');
webview.reload(webElement.ref);
```