Authored by yyq

fix

@@ -40,9 +40,10 @@ export default { @@ -40,9 +40,10 @@ export default {
40 }, 40 },
41 titleStyle() { 41 titleStyle() {
42 let style = {}; 42 let style = {};
  43 + let stepPercent = this.stepPercent;
43 44
44 if (this.offsetLeft) { 45 if (this.offsetLeft) {
45 - style.transform = `translate3d(${-this.stepPercent * this.offsetLeft}px, 0, 0)`; 46 + style.transform = `translate3d(${-stepPercent * this.offsetLeft}px, 0, 0)`;
46 } else { 47 } else {
47 this.updateTitleOffset(); 48 this.updateTitleOffset();
48 } 49 }