From febf17e5460a8a76830727b254c7120a00aa0c09 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Thu, 11 Jun 2020 16:39:46 +0800 Subject: [PATCH] fix(NoticeBar): incorrect ellipsis --- src/notice-bar/index.js | 2 +- src/notice-bar/test/__snapshots__/demo.spec.js.snap | 6 +++--- src/notice-bar/test/__snapshots__/index.spec.js.snap | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) 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`] = `