This commit is contained in:
cookfront
2017-04-01 17:18:32 +08:00
parent 5580e2cdce
commit 9075f7df3e
8 changed files with 217 additions and 45 deletions
+3 -1
View File
@@ -75,9 +75,11 @@ export default {
#### 自动轮播
需要设置`auto-play`属性为`true`,即会自动轮播。
:::demo 自动轮播
```html
<zan-swipe :auto-play="true" @pagechange:end="handlePageEnd">
<zan-swipe auto-play @pagechange:end="handlePageEnd">
<zan-swipe-item>
<img src="https://img.yzcdn.cn/upload_files/2017/03/14/FmTPs0SeyQaAOSK1rRe1sL8RcwSY.jpeg?imageView2/2/w/980/h/980/q/75/format/webp" alt="">
</zan-swipe-item>