提交 1d18fbea 编写于 作者: D dolymood

update(doc): add slide allowVertical prop

上级 a0db0ddf
......@@ -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
<cube-slide></cube-slide>
......@@ -96,6 +96,13 @@
<cube-slide :speed="200"></cube-slide>
```
- Allow vertical scroll behavior
It can not be scrolling in the vertical direction by default. You can configure that with `allow-vertical` attribute.
```html
<cube-slide :allow-vertical="true"></cube-slide>
```
- 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
......
......@@ -96,6 +96,14 @@
<cube-slide :speed="200"></cube-slide>
```
- 允许纵向滚动
默认在 Slide 区域的时候,竖向是不能滚动的,如果想要竖向可以滚动,可以设置 `allowVertical``true`
```html
<cube-slide :allow-vertical="true"></cube-slide>
```
- 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 |
### 插槽
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册