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 2018/08/03 06:55:09 UTC

incubator-weex-site git commit: add pagingEnabled attribute to list component

Repository: incubator-weex-site
Updated Branches:
  refs/heads/master 049c947c1 -> faf54fc89


add pagingEnabled attribute to list component


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/faf54fc8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/faf54fc8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/faf54fc8

Branch: refs/heads/master
Commit: faf54fc898ac1eb3280abaefb1d88b6ce6387f1c
Parents: 049c947
Author: shihan.zsh <zh...@gmail.com>
Authored: Fri Aug 3 11:38:27 2018 +0800
Committer: shihan.zsh <zh...@gmail.com>
Committed: Fri Aug 3 11:38:27 2018 +0800

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


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/faf54fc8/source/cn/references/components/list.md
----------------------------------------------------------------------
diff --git a/source/cn/references/components/list.md b/source/cn/references/components/list.md
index 750ba04..07506ea 100644
--- a/source/cn/references/components/list.md
+++ b/source/cn/references/components/list.md
@@ -44,6 +44,7 @@ version: 2.1
 - `show-scrollbar {boolean}`:可选值为 true/ false,默认值为 true。控制是否出现滚动条。
 - `loadmoreoffset {number}`:默认值为 0,触发 `loadmore` 事件所需要的垂直偏移距离(设备屏幕底部与 `<list>` 底部之间的距离)。当 `<list>` 的滚动条滚动到足够接近 `<list>` 底部时将会触发 `loadmore` 这个事件。
 - `offset-accuracy {number}` <sup class="wx-v">0.11+</sup>:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间列表至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采样的精度,但同时也会降低页面的性能。
+-  `pagingEnabled {boolean}`:可选值为 true/ false,默认值为 false。控制是否每次滚动一个cell,并最终定位在元素中心位置,类似垂直的viewpage交互。[pagingEnabled示例](http://dotwe.org/vue/1323c218072f17f10e14a5c336dac3c4)
 
   ![mobile_preview](../images/list_4.jpg)
   

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/faf54fc8/source/references/components/list.md
----------------------------------------------------------------------
diff --git a/source/references/components/list.md b/source/references/components/list.md
index ed0081d..a5c281d 100644
--- a/source/references/components/list.md
+++ b/source/references/components/list.md
@@ -41,6 +41,8 @@ Notes: The list now supports the following child components: cell, header, refre
 * loadmoreoffset : <number> default value is 0. The loadmore event will be triggered when the list is loadmoreoffset left to reach the bottom of the list view. e.g. a list has total content length of 1000, and the loadmoreoffset is set to 400, the loadmore event will be triggered when 600 has beed scrolled and there is less than 400 left.
 * loadmoreretry : <number> default value 0,whether to reset loadmore related UI when loadmore failed, will be deprecated in further release.
 * offset-accuracy:<number> default value is 0, the vertical offset distance required to trigger the scroll event.
+* pagingEnabled: <boolean> default value is false. supporting pager style snapping in either vertical or horizontal orientation. Example : [pagingEnabled](http://dotwe.org/vue/1323c218072f17f10e14a5c336dac3c4)
+
 
 Please checkout [Scroller Component Attributes](./scroller.html) to have a look at the inherited attributes from direct parent.