feat(Coupon): add new prop condition @rex-zsd (#2551)

This commit is contained in:
rex
2019-01-18 13:18:53 +08:00
committed by neverland
parent 3f60e4701b
commit 4fdf731a8e
5 changed files with 11 additions and 6 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ export default sfc({
<div class={bem('content')}>
<div class={bem('head')}>
<h2 domPropsInnerHTML={this.faceAmount} />
<p>{this.conditionMessage}</p>
<p>{this.coupon.condition || this.conditionMessage}</p>
</div>
<div class={bem('body')}>
<h2>{coupon.name}</h2>
+6 -1
View File
@@ -39,7 +39,8 @@
}
&__head {
min-width: 90px;
position: relative;
min-width: 95px;
h2 {
color: @red;
@@ -49,6 +50,10 @@
font-size: 50%;
}
}
p {
white-space: pre-wrap;
}
}
&__body {