Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zwhGithub committed Jun 2, 2018
1 parent a5921d7 commit 25def7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/swiper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@
var cloneDom2 = SlideDom[this.slidesLength - 1].cloneNode(true) //向最前append
document.querySelector('.' + this.className).insertBefore(cloneDom2, SlideDom[0])
document.querySelector('.' + this.className).appendChild(cloneDom1)
this.setHeight();
this._width = document.querySelector('.' + this.className).offsetWidth
this.dom = document.querySelector('.' + this.className).style
this.setHeight();
}
},
clearTimeOut() {
Expand Down

0 comments on commit 25def7d

Please sign in to comment.