You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by GitBox <gi...@apache.org> on 2018/12/06 02:35:53 UTC

[GitHub] Hanks10100 closed pull request #217: list component scrollable attribute patch

Hanks10100 closed pull request #217: list component scrollable attribute patch
URL: https://github.com/apache/incubator-weex-site/pull/217
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/source/cn/references/components/list.md b/source/cn/references/components/list.md
index 2613fde39..fd956bc31 100644
--- a/source/cn/references/components/list.md
+++ b/source/cn/references/components/list.md
@@ -45,6 +45,7 @@ version: 2.1
 - `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交互。则对应 `0`<span class="api-version">v0.20+</span>.[pagingEnabled示例](http://dotwe.org/vue/1323c218072f17f10e14a5c336dac3c4)
+-  `scrollable {boolean}`:可选值为 true/ false,默认值为 true。控制list是否可以滚动
 
   ![mobile_preview](../images/list_4.jpg)
   
diff --git a/source/references/components/list.md b/source/references/components/list.md
index 4030470df..052e415de 100644
--- a/source/references/components/list.md
+++ b/source/references/components/list.md
@@ -42,7 +42,7 @@ Notes: The list now supports the following child components: cell, header, refre
 * 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 vertical orientation. support version: `0`<span class="api-version">v0.20+</span>. Example : [pagingEnabled](http://dotwe.org/vue/1323c218072f17f10e14a5c336dac3c4)
-
+* scrollable: <boolean> default value is true.  set whether list is scrollable. 
 
 Please checkout [Scroller Component Attributes](./scroller.html) to have a look at the inherited attributes from direct parent.
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services