diff --git a/packages/notice-bar/index.ts b/packages/notice-bar/index.ts index f4d1daec..f741a0a3 100644 --- a/packages/notice-bar/index.ts +++ b/packages/notice-bar/index.ts @@ -85,7 +85,7 @@ VantComponent({ const { speed, scrollable, delay } = this.data; - if (scrollable && wrapRect.width < contentRect.width) { + if (scrollable || wrapRect.width < contentRect.width) { const duration = (contentRect.width / speed) * 1000; this.wrapWidth = wrapRect.width;