[improvement] NoticeBar: update style (#1893)

This commit is contained in:
neverland
2018-10-05 20:29:33 +08:00
committed by GitHub
parent ea129825f1
commit 2f65f60226
3 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -11,7 +11,7 @@
<div :class="b('wrap')" ref="wrap">
<div
ref="content"
:class="[b('content'), animationClass]"
:class="[b('content'), animationClass, { 'van-ellipsis': !scrollable }]"
:style="contentStyle"
@animationend="onAnimationEnd"
@webkitAnimationEnd="onAnimationEnd"
@@ -17,7 +17,7 @@ exports[`renders demo correctly 1`] = `
<div class="van-notice-bar" style="color:undefined;background:undefined;">
<!---->
<div class="van-notice-bar__wrap">
<div class="van-notice-bar__content" style="padding-left:0;animation-delay:1s;animation-duration:0s;">足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。</div>
<div class="van-notice-bar__content van-ellipsis" style="padding-left:0;animation-delay:1s;animation-duration:0s;">足协杯战线连续第2年上演广州德比战,上赛季半决赛上恒大以两回合5-3的总比分淘汰富力。</div>
</div>
<!---->
</div>