diff --git a/src/notice-bar/index.js b/src/notice-bar/index.js index 122377c52..e6d7167b2 100644 --- a/src/notice-bar/index.js +++ b/src/notice-bar/index.js @@ -166,7 +166,7 @@ export default createComponent({ ref="content" class={[ bem('content'), - { 'van-ellipsis': !this.scrollable && !this.wrapable }, + { 'van-ellipsis': this.scrollable === false && !this.wrapable }, ]} style={contentStyle} onTransitionend={this.onTransitionEnd} diff --git a/src/notice-bar/test/__snapshots__/demo.spec.js.snap b/src/notice-bar/test/__snapshots__/demo.spec.js.snap index 99bc1d903..f28b3b021 100644 --- a/src/notice-bar/test/__snapshots__/demo.spec.js.snap +++ b/src/notice-bar/test/__snapshots__/demo.spec.js.snap @@ -32,13 +32,13 @@ exports[`renders demo correctly 1`] = `