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`] = `
@@ -47,7 +47,7 @@ exports[`renders demo correctly 1`] = `
diff --git a/src/notice-bar/test/__snapshots__/index.spec.js.snap b/src/notice-bar/test/__snapshots__/index.spec.js.snap index 1c2915a0f..97f9e8e95 100644 --- a/src/notice-bar/test/__snapshots__/index.spec.js.snap +++ b/src/notice-bar/test/__snapshots__/index.spec.js.snap @@ -2,7 +2,7 @@ exports[`icon slot 1`] = `