From 1d18fbea1d0947079077f36672a32c688b6c85b4 Mon Sep 17 00:00:00 2001 From: dolymood Date: Tue, 26 Dec 2017 15:11:38 +0800 Subject: [PATCH] update(doc): add slide allowVertical prop --- document/components/docs/en-US/slide.md | 10 +++++++++- document/components/docs/zh-CN/slide.md | 9 +++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/document/components/docs/en-US/slide.md b/document/components/docs/en-US/slide.md index 2f89ef8c..ef4e2249 100644 --- a/document/components/docs/en-US/slide.md +++ b/document/components/docs/en-US/slide.md @@ -65,7 +65,7 @@ - Automatic play - Automatic play is turned on by default. You can cnfigure that with `auto-play` attribute. + Automatic play is turned on by default. You can configure that with `auto-play` attribute. ```html @@ -96,6 +96,13 @@ ``` +- Allow vertical scroll behavior + + It can not be scrolling in the vertical direction by default. You can configure that with `allow-vertical` attribute. + + ```html + + ``` - refresh method @@ -170,6 +177,7 @@ | interval | interval of play | Number | - | 4000 | | threshold | sliding threshold of switching pages | Number | (0, 1) | 0.3 | | speed | speed of switching pages | Number | - | 400 | +| allowVertical | whether to allow vertical scrolling | Boolean | true/false | false | ### Slot diff --git a/document/components/docs/zh-CN/slide.md b/document/components/docs/zh-CN/slide.md index 47c21e35..e5d382bf 100644 --- a/document/components/docs/zh-CN/slide.md +++ b/document/components/docs/zh-CN/slide.md @@ -96,6 +96,14 @@ ``` +- 允许纵向滚动 + + 默认在 Slide 区域的时候,竖向是不能滚动的,如果想要竖向可以滚动,可以设置 `allowVertical` 为 `true`。 + + ```html + + ``` + - refresh 方法 当新增或者删除 Slide Item 项或者修改 Slide 配置的时候,可以调用实例的 refresh 方法更新 Slide。 @@ -164,6 +172,7 @@ | interval | 播放间隔 | Number | - | 4000 | | threshold | 切换页面的滑动阈值 | Number | (0, 1) | 0.3 | | speed | 切换页面的速度 | Number | - | 400 | +| allowVertical | 是否允许竖向滚动 | Boolean | true/false | false | ### 插槽 -- GitLab