mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
NoticeBar: improve test coverage
This commit is contained in:
@@ -70,7 +70,7 @@ export default {
|
||||
const wrapWidth = this.$refs.contentWrap.getBoundingClientRect().width;
|
||||
if (this.scrollable && offsetWidth > wrapWidth) {
|
||||
this.offsetWidth = offsetWidth;
|
||||
this.duration = Math.ceil((offsetWidth + wrapWidth) / this.speed);
|
||||
this.duration = (offsetWidth + wrapWidth) / this.speed;
|
||||
}
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user