Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
张韧 committed May 15, 2017
1 parent ca270fe commit 11defa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/shopCart/shopCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export default {
}
},
enter(el) {
el.offsetHeight
el.offsetHeight // 触发浏览器重绘,offsetWidth、offsetTop等方法都可以触发
this.$nextTick(() => {
el.style.webkitTransform = 'translate3d(0,0,0)'
el.style.transform = 'translate3d(0,0,0)'
Expand Down

0 comments on commit 11defa8

Please sign in to comment.