You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/08/01 02:29:35 UTC
[26/50] [abbrv] incubator-weex git commit: * [doc] Add scroll event
demo.
* [doc] Add scroll event demo.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/dd60d656
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/dd60d656
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/dd60d656
Branch: refs/heads/master
Commit: dd60d6566767418802450f6dd13e3fdfb16f28ac
Parents: cf0bff0
Author: yinfeng <cx...@apache.org>
Authored: Fri Jun 30 17:09:53 2017 +0800
Committer: yinfeng <cx...@apache.org>
Committed: Fri Jun 30 17:09:53 2017 +0800
----------------------------------------------------------------------
doc/source/cn/references/components/list.md | 4 ++--
doc/source/cn/references/components/scroller.md | 2 +-
doc/source/references/components/list.md | 4 +---
doc/source/references/components/scroller.md | 4 ++--
4 files changed, 6 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/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 2175bfc..be14d06 100644
--- a/doc/source/cn/references/components/list.md
+++ b/doc/source/cn/references/components/list.md
@@ -63,7 +63,7 @@ version: 2.1
- `loadmore` <sup class="wx-v">0.5+</sup>:如果列表滚动到底部将会立即触发这个事件,你可以在这个事件的处理函数中加载下一页的列表项。
- `onscroll` <sup class="wx-v">0.11+</sup>: 列表发生滚动时将会触发该事件,事件的默认抽样率为10px,即列表每滚动10px触发一次,可通过属性`offset-accuracy`设置抽样率。
-
+
事件中 event 对象属性:
- `contentSize {Object}`:列表的内容尺寸
- `width {number}`: 列表内容宽度
@@ -74,7 +74,7 @@ version: 2.1
[体验一下](http://dotwe.org/bc445ede8746a31360e3607d210304c5)
-- `scroll` <sup class="wx-v">0.12+</sup>:列表滚动时触发这个事件。此事件回调中会给出当前`contentOffset`值。
+- `scroll` <sup class="wx-v">0.12+</sup>:列表滚动时触发这个事件。此事件回调中会给出当前`contentOffset`值。参见 [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa)。
[体验一下](http://dotwe.org/weex/7ba3b6222d912b4b0b4aafb8248ca22f)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/cn/references/components/scroller.md
----------------------------------------------------------------------
diff --git a/doc/source/cn/references/components/scroller.md b/doc/source/cn/references/components/scroller.md
index dd74525..acac227 100644
--- a/doc/source/cn/references/components/scroller.md
+++ b/doc/source/cn/references/components/scroller.md
@@ -62,7 +62,7 @@ version: 2.1
## 事件
- `loadmore` <sup class="wx-v">v0.5+</sup>:如果滚动到底部将会立即触发这个事件,你可以在这个事件的处理函数中加载下一页的列表项。
-- `scroll` <sup class="wx-v">0.11+</sup>: 列表发生滚动时将会触发该事件,事件的默认抽样率为10px,即列表每滚动10px触发一次,可通过属性`offset-accuracy`设置抽样率。
+- `scroll` <sup class="wx-v">0.11+</sup>: 列表发生滚动时将会触发该事件,事件的默认抽样率为10px,即列表每滚动10px触发一次,可通过属性`offset-accuracy`设置抽样率。 参见 [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa)。
事件中 event 对象属性:
- `contentSize {Object}`:列表的内容尺寸
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/references/components/list.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/list.md b/doc/source/references/components/list.md
index 1e69b94..12a62ee 100644
--- a/doc/source/references/components/list.md
+++ b/doc/source/references/components/list.md
@@ -91,9 +91,7 @@ common styles: check out [common styles for components](../common-style.html)
onloadmore 0.5 used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered.
-scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback.
-
-[try](http://dotwe.org/weex/7ba3b6222d912b4b0b4aafb8248ca22f)
+scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. See details in [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa).
common events: check out the [common events](../common-event.html)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/dd60d656/doc/source/references/components/scroller.md
----------------------------------------------------------------------
diff --git a/doc/source/references/components/scroller.md b/doc/source/references/components/scroller.md
index 6778bd6..4218757 100644
--- a/doc/source/references/components/scroller.md
+++ b/doc/source/references/components/scroller.md
@@ -48,9 +48,9 @@ common styles: check out [common styles for components](../common-style.html)
## Events
-onloadmore used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered.
+`loadmore` used with loadmoreoffset attribute. if the view has less than loadmoreoffset to scroll down, the onloadmore event will be triggered.
-scroll <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback.
+`scroll` <sup class="wx-v">0.12+</sup> used with offset-accuracy attribute. This event is fired when the list scrolls. The current contentOffset value is given in this event callback. See details in [scroll event demo](http://dotwe.org/vue/9ef0e52bacaa20182a693f2187d851aa).
common events: check out the [common events](../common-event.html)