diff --git a/document/components/docs/en-US/slide.md b/document/components/docs/en-US/slide.md index 2f89ef8c71ebfa3698181fbbcd8c079efd22622c..ef4e22492f61ff79de772dffd2aae6ed1ee72264 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 47c21e3595f82bd8a63bdd087391a2946dbdf120..e5d382bfe5e5694ca23bad2b999c5a5ed8bfa029 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 | ### 插槽