You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by da...@apache.org on 2017/04/06 09:37:50 UTC

[2/2] incubator-weex git commit: * [doc] add scrollToElement animation support

* [doc] add scrollToElement animation support


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

Branch: refs/heads/0.12-dev
Commit: d14aeb2a711566fcca2dc8d6fd8fd3d14ec3585f
Parents: f8ac1c6
Author: fkysly <fk...@gmail.com>
Authored: Thu Apr 6 17:34:15 2017 +0800
Committer: fkysly <fk...@gmail.com>
Committed: Thu Apr 6 17:34:15 2017 +0800

----------------------------------------------------------------------
 doc/source/cn/references/modules/dom.md | 3 ++-
 doc/source/references/modules/dom.md    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d14aeb2a/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 2fa153a..f7eec80 100644
--- a/doc/source/cn/references/modules/dom.md
+++ b/doc/source/cn/references/modules/dom.md
@@ -11,7 +11,7 @@ version: 2.1
 
 \u8fd9\u90e8\u5206API\u662f\u901a\u8fc7\u628a virtual-dom \u7684\u6d88\u606f\u53d1\u9001\u5230 native \u6e32\u67d3\u5668\u6765\u505a\u5230\u7684\u3002
 
-\u5f00\u53d1\u8005\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u552f\u4e00\u53ef\u5728 `.we` \u6587\u4ef6\u4e2d\u4f7f\u7528\u7684\u662f `scrollToElement`\u3002
+\u5f00\u53d1\u8005\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u552f\u4e00\u53ef\u5728 `.vue` \u6587\u4ef6\u4e2d\u4f7f\u7528\u7684\u662f `scrollToElement`\u3002
 ~~\u4f60\u4e5f\u53ef\u4ee5\u8c03\u7528 `$scrollTo` \u65b9\u6cd5\u6765\u4f7f\u7528\u5b83~~
 
 \u8fd9\u4e2a\u9875\u9762\u63d0\u53ca\u7684\u5176\u4ed6\u7684 API\uff0c\u53ea\u5728 `callNative` \u8fdb\u7a0b\u4e2d\u7684 native \u6e32\u67d3\u5668\u7528\u3002
@@ -30,6 +30,7 @@ version: 2.1
 - `node {Node}`\uff1a\u4f60\u8981\u6eda\u52a8\u5230\u7684\u90a3\u4e2a\u8282\u70b9
 - `options {Object}`\uff1a\u5982\u4e0b\u9009\u9879
   - `offset {number}`\uff1a\u4e00\u4e2a\u5230\u5176\u53ef\u89c1\u4f4d\u7f6e\u7684\u504f\u79fb\u8ddd\u79bb\uff0c\u9ed8\u8ba4\u662f `0`
+  - `animated {boolean}`\uff1a\u662f\u5426\u6709\u52a8\u753b\u6548\u679c\uff0c\u9ed8\u8ba4\u662f `true`
 
 #### \u793a\u4f8b
 

http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d14aeb2a/doc/source/references/modules/dom.md
----------------------------------------------------------------------
diff --git a/doc/source/references/modules/dom.md b/doc/source/references/modules/dom.md
index cd5651e..2e75ba0 100644
--- a/doc/source/references/modules/dom.md
+++ b/doc/source/references/modules/dom.md
@@ -9,7 +9,7 @@ version: 2.1
 
 ## Summary
 
-A series of dom apis that sending virtual-dom's messages to the native renderer to update the dom tree. The only API for developers to use in a `.we` file is `scrollToElement` <del>which you can use by calling the `$scrollTo` method</del>. Other APIs mentioned on this page should only be used through the native renderer in the `callNative` process.
+A series of dom apis that sending virtual-dom's messages to the native renderer to update the dom tree. The only API for developers to use in a `.vue` file is `scrollToElement` <del>which you can use by calling the `$scrollTo` method</del>. Other APIs mentioned on this page should only be used through the native renderer in the `callNative` process.
 
 ## API
 
@@ -24,6 +24,7 @@ Scroll the page to the specified node. This API should only be used on the eleme
 * `node`*(Node)*: an element that scrolled into the view.
 * `options`*(object)*: some options.
   * `offset`*(number)*: An offset to the visible position, default is `0`.
+  * `animated`*(boolean)*: Whether there is an animation effect, default is `true`.
 
 #### Example