You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ha...@apache.org on 2018/04/18 03:53:35 UTC

[1/5] incubator-weex-site git commit: Update document of the weex variable api

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 41195cace -> 5644a6128


Update document of the weex variable api

Add document for the `isRegisteredModule` and `isRegisteredComponent` api.

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

Branch: refs/heads/master
Commit: 2ef7e599c9c4412865f9c79e2e0db5002b86be96
Parents: 41195ca
Author: Hanks <zh...@gmail.com>
Authored: Tue Apr 17 14:52:07 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Apr 17 14:52:07 2018 +0800

----------------------------------------------------------------------
 source/references/weex-variable.md | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/2ef7e599/source/references/weex-variable.md
----------------------------------------------------------------------
diff --git a/source/references/weex-variable.md b/source/references/weex-variable.md
index 6dcc80d..7db54b7 100644
--- a/source/references/weex-variable.md
+++ b/source/references/weex-variable.md
@@ -160,3 +160,36 @@ weex.supports('module/*') // null
 weex.supports('@stream/fetch') // null
 weex.supports('getComponentRect') // null
 ```
+
+## `weex.isRegisteredModule`
+
+Detect whether the specific module or method is registered.
+
+```js
+weex.weex.isRegisteredModule(moduleName: string, methodName: string): boolean
+```
+
+It can only be used to check the compatibility of the specific module or method, not support components.
+
+```js
+weex.isRegisteredModule('stream') // true
+weex.isRegisteredModule('stream', 'fetch') // true
+weex.isRegisteredModule('whatever', '- unknown -') // false
+weex.isRegisteredModule('div') // false, not support components
+```
+
+## `weex.isRegisteredComponent`
+
+Detect whether the specific component is registered.
+
+```js
+weex.weex.isRegisteredComponent(componentName: string): boolean
+```
+
+It can only be used to check the compatibility of the specific component, not support modules.
+
+```js
+weex.isRegisteredComponent('div') // true
+weex.isRegisteredComponent('- unknown -') // false
+weex.isRegisteredComponent('navigator') // false, not support modules
+```


[2/5] incubator-weex-site git commit: update the Chinese document of the weex api

Posted by ha...@apache.org.
update the Chinese document of the weex api

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

Branch: refs/heads/master
Commit: 0eb2de4a11ad49856c6e7716b14ac8b2903f7f18
Parents: 2ef7e59
Author: Hanks <zh...@gmail.com>
Authored: Tue Apr 17 14:56:04 2018 +0800
Committer: GitHub <no...@github.com>
Committed: Tue Apr 17 14:56:04 2018 +0800

----------------------------------------------------------------------
 source/cn/references/weex-variable.md | 33 ++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/0eb2de4a/source/cn/references/weex-variable.md
----------------------------------------------------------------------
diff --git a/source/cn/references/weex-variable.md b/source/cn/references/weex-variable.md
index 198279e..f2da5cd 100644
--- a/source/cn/references/weex-variable.md
+++ b/source/cn/references/weex-variable.md
@@ -160,3 +160,36 @@ weex.supports('module/*') // null
 weex.supports('@stream/fetch') // null
 weex.supports('getComponentRect') // null
 ```
+
+## `weex.isRegisteredModule`
+
+检测某个特定的模块或者接口是否可用。
+
+```js
+weex.weex.isRegisteredModule(moduleName: string, methodName: string): boolean
+```
+
+这个接口只能用于检测特定模块和方法的兼容性,不支持检测组件。
+
+```js
+weex.isRegisteredModule('stream') // true
+weex.isRegisteredModule('stream', 'fetch') // true
+weex.isRegisteredModule('whatever', '- unknown -') // false
+weex.isRegisteredModule('div') // false, not support components
+```
+
+## `weex.isRegisteredComponent`
+
+检测某个特定的组件是否可用。
+
+```js
+weex.weex.isRegisteredComponent(componentName: string): boolean
+```
+
+这个接口只能用于检测组件的兼容性,不支持检测模块。
+
+```js
+weex.isRegisteredComponent('div') // true
+weex.isRegisteredComponent('- unknown -') // false
+weex.isRegisteredComponent('navigator') // false, not support modules
+```


[5/5] incubator-weex-site git commit: Resolve the conflict document of list component (#137)

Posted by ha...@apache.org.
Resolve the conflict document of list component (#137)


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

Branch: refs/heads/master
Commit: 5644a61286d945fb2c3997bd410018897a2bdd27
Parents: 3357927 a190b5a
Author: Hanks <zh...@gmail.com>
Authored: Wed Apr 18 11:53:07 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Wed Apr 18 11:53:07 2018 +0800

----------------------------------------------------------------------
 source/cn/references/components/list.md     | 3 +--
 source/cn/references/components/scroller.md | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/5644a612/source/cn/references/components/list.md
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/5644a612/source/cn/references/components/scroller.md
----------------------------------------------------------------------


[4/5] incubator-weex-site git commit: Resolve the conflict document

Posted by ha...@apache.org.
Resolve the conflict document


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

Branch: refs/heads/master
Commit: a190b5ae6192e66868ffa6ba4a7463e231cac746
Parents: de56183
Author: balloonzzq <zq...@qq.com>
Authored: Tue Apr 17 20:15:21 2018 +0800
Committer: balloonzzq <zq...@qq.com>
Committed: Tue Apr 17 20:15:21 2018 +0800

----------------------------------------------------------------------
 source/cn/references/components/list.md     | 3 +--
 source/cn/references/components/scroller.md | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/a190b5ae/source/cn/references/components/list.md
----------------------------------------------------------------------
diff --git a/source/cn/references/components/list.md b/source/cn/references/components/list.md
index 37dd523..389c26e 100644
--- a/source/cn/references/components/list.md
+++ b/source/cn/references/components/list.md
@@ -46,8 +46,7 @@ version: 2.1
 - `offset-accuracy {number}` <sup class="wx-v">0.11+</sup>:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间列表至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采样的精度,但同时也会降低页面的性能。
 
   ![mobile_preview](../images/list_4.jpg)
-
-- `offset-accuracy`:默认值是0,触发 `scroll` 事件所需要的垂直偏移距离。
+  
 ## 样式
 
 - 通用样式:支持所有通用样式

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/a190b5ae/source/cn/references/components/scroller.md
----------------------------------------------------------------------
diff --git a/source/cn/references/components/scroller.md b/source/cn/references/components/scroller.md
index 9ae7833..be84d3a 100644
--- a/source/cn/references/components/scroller.md
+++ b/source/cn/references/components/scroller.md
@@ -46,7 +46,6 @@ version: 2.1
 - ~~`loadmoreretry {number}`:默认值为 0,当 `loadmore` 失败时是否重置 `loadmore` 相关的 UI,值不一样就会重置。~~ 该属性已废弃,请使用`resetLoadmore()`函数实现重置`loadmore`的操作。
 - `offset-accuracy {number}` <sup class="wx-v">0.11+</sup>:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间列表至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采样的精度,但同时也会降低页面的性能。
 
-- `offset-accuracy`:默认值是0,触发 `scroll` 事件所需要的垂直偏移距离。
 
 ## 样式
 


[3/5] incubator-weex-site git commit: revise the wording of the weex variable document

Posted by ha...@apache.org.
revise the wording of the weex variable document


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

Branch: refs/heads/master
Commit: 33579271b6940ae8c0d282586598bd8cfefbdc3d
Parents: 0eb2de4
Author: Hanks <zh...@gmail.com>
Authored: Tue Apr 17 15:04:05 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Tue Apr 17 15:04:05 2018 +0800

----------------------------------------------------------------------
 source/cn/references/weex-variable.md | 8 ++++----
 source/references/weex-variable.md    | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/33579271/source/cn/references/weex-variable.md
----------------------------------------------------------------------
diff --git a/source/cn/references/weex-variable.md b/source/cn/references/weex-variable.md
index f2da5cd..68b7190 100644
--- a/source/cn/references/weex-variable.md
+++ b/source/cn/references/weex-variable.md
@@ -165,8 +165,8 @@ weex.supports('getComponentRect') // null
 
 检测某个特定的模块或者接口是否可用。
 
-```js
-weex.weex.isRegisteredModule(moduleName: string, methodName: string): boolean
+```typescript
+weex.isRegisteredModule(moduleName: string, methodName: string): boolean
 ```
 
 这个接口只能用于检测特定模块和方法的兼容性,不支持检测组件。
@@ -182,8 +182,8 @@ weex.isRegisteredModule('div') // false, not support components
 
 检测某个特定的组件是否可用。
 
-```js
-weex.weex.isRegisteredComponent(componentName: string): boolean
+```typescript
+weex.isRegisteredComponent(componentName: string): boolean
 ```
 
 这个接口只能用于检测组件的兼容性,不支持检测模块。

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/33579271/source/references/weex-variable.md
----------------------------------------------------------------------
diff --git a/source/references/weex-variable.md b/source/references/weex-variable.md
index 7db54b7..6cb4d76 100644
--- a/source/references/weex-variable.md
+++ b/source/references/weex-variable.md
@@ -169,7 +169,7 @@ Detect whether the specific module or method is registered.
 weex.weex.isRegisteredModule(moduleName: string, methodName: string): boolean
 ```
 
-It can only be used to check the compatibility of the specific module or method, not support components.
+It can only be used to check compatibility of a specific module or method.
 
 ```js
 weex.isRegisteredModule('stream') // true
@@ -186,7 +186,7 @@ Detect whether the specific component is registered.
 weex.weex.isRegisteredComponent(componentName: string): boolean
 ```
 
-It can only be used to check the compatibility of the specific component, not support modules.
+It can only be used to check compatibility of a specific component.
 
 ```js
 weex.isRegisteredComponent('div') // true