Update tabs.vue

This commit is contained in:
Aresn 2018-05-21 10:51:23 +08:00 committed by GitHub
parent 3ce6b446d3
commit e906d57094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@
visibility: 'hidden', visibility: 'hidden',
width: `${this.barWidth}px` width: `${this.barWidth}px`
}; };
if (this.type === 'line') style.display = 'block'; if (this.type === 'line') style.visibility = 'visible';
if (this.animated) { if (this.animated) {
style.transform = `translate3d(${this.barOffset}px, 0px, 0px)`; style.transform = `translate3d(${this.barOffset}px, 0px, 0px)`;
} else { } else {