Skip to content

Commit

Permalink
fix: 修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lixichen committed Jan 4, 2021
1 parent 2ba9115 commit b48813e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 17,119 deletions.
2 changes: 1 addition & 1 deletion dist/build.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/.vuepress/slider/slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ export default {
}
},
slide (pagenum, type) {
this.$emit('slide', this.data)
sliderAddClass.call(this, pagenum, type)
// 执行动画
this.config.animation = true
Expand All @@ -144,6 +143,7 @@ export default {
if (this.config.effect === 'fade') {
sliderFade.methods.slide.call(this, pagenum, type)
}
this.$emit('slide', this.data)
},
// 阻止页面滚动
preventDefault (e) {
Expand Down
3 changes: 2 additions & 1 deletion docs/demos/Center.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ options: {
itemAnimation: true,
centeredSlides: true,
loopedSlides: 2,
slidesToScroll: 1
slidesToScroll: 1,
loop: true
}
```
2. Set css
Expand Down
Loading

0 comments on commit b48813e

Please sign in to comment.