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/03/22 11:02:11 UTC

[6/7] incubator-weex-site git commit: update doc of input&slider&pickers (#117)

update doc of input&slider&pickers (#117)


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

Branch: refs/heads/master
Commit: 4dedcdfc552045799145af07592d9c3609a75c9e
Parents: ff1c81f bc465a5
Author: Hanks <zh...@gmail.com>
Authored: Thu Mar 22 18:03:25 2018 +0800
Committer: Hanks <zh...@gmail.com>
Committed: Thu Mar 22 18:03:25 2018 +0800

----------------------------------------------------------------------
 source/cn/references/components/input.md  | 10 +++++++++-
 source/cn/references/components/slider.md |  4 ++++
 source/cn/references/modules/picker.md    |  9 +++++++++
 source/references/components/input.md     | 10 +++++++++-
 source/references/components/slider.md    |  4 ++++
 source/references/modules/picker.md       |  9 +++++++++
 6 files changed, 44 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/components/input.md
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/components/slider.md
----------------------------------------------------------------------
diff --cc source/cn/references/components/slider.md
index ad90222,18feaaf..b230221
--- a/source/cn/references/components/slider.md
+++ b/source/cn/references/components/slider.md
@@@ -25,10 -25,11 +25,14 @@@ version: 2.
  - `interval {number}`:值为毫秒数,此值设定 slider 切换时间间隔。当 `auto-play` 值为 `true` 时生效。
  - `infinite {boolean}`:循环播放,可选值为 `true`/`false`,默认的是 `true`。
  - `offset-x-accuracy {number}`<sup class="wx-v">0.11+</sup>:控制`onscroll`事件触发的频率,默认值为10,表示两次`onscroll`事件之间Slider Page至少滚动了10px。注意,将该值设置为较小的数值会提高滚动事件采样的精度,但同时也会降低页面的性能。
+ - `show-indicators {boolean}`:设置是否显示indicator
+ - `index {number}`:设置显示slider的第几个页面
+ - `scrollable {boolean}`:设置是否可以通过滑动手势来切换slider页面
+ - `keep-index {boolean}`:设置slider中的数据发生变化后是否保持变化前的页面index
  
 +- `index {number}`: 指定当前展示页面的索引
 +  [体验一下](http://dotwe.org/vue/58a29d38247e7946a6db44e1b616f082)
 +
  ## 样式
  
  - 通用样式:支持所有通用样式

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/cn/references/modules/picker.md
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/components/input.md
----------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/components/slider.md
----------------------------------------------------------------------
diff --cc source/references/components/slider.md
index b6bec18,74c8487..d822760
--- a/source/references/components/slider.md
+++ b/source/references/components/slider.md
@@@ -22,10 -22,11 +22,14 @@@ It supports all kinds of weex component
  - `interval`: &lt;number&gt; millisecond. This value determines time interval for each page displayed in slider.
  - `index`: <number> . This value determines the  index of current shown slide. The default value is `0`.
  - `offset-x-accuracy {float}`:set the scroll event trigger precision, precision value represents the rolling distance of a page width ratio.
+ - `show-indicators {boolean}`:set whether to display indicator
+ - `infinite {boolean}`:set whether the page in the slider can be scrolled
+ - `scrollable {boolean}`:set whether slider pages can be switched by sliding gestures
+ - `keep-index {boolean}`:set whether to maintain the index of the page after the data changes
  
 +- `index {number}`: specify current page index of slider 
 +  [try in dotWe](http://dotwe.org/vue/58a29d38247e7946a6db44e1b616f082)
 +
  ## Styles
  
  **common styles**: check out [common styles for components](../common-style.html)

http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/4dedcdfc/source/references/modules/picker.md
----------------------------------------------------------------------