feat(CouponList): modify button style (#5368)

This commit is contained in:
rex
2019-12-25 11:12:02 +08:00
committed by neverland
parent 141c0ed2c1
commit 0b6e7ec896
3 changed files with 38 additions and 17 deletions
+13 -9
View File
@@ -182,7 +182,7 @@ export default createComponent({
const CouponTab = (
<Tab title={title}>
<div class={bem('list')} style={this.listStyle}>
<div class={bem('list', { 'with-bottom': this.showCloseButton })} style={this.listStyle}>
{coupons.map((coupon, index) => (
<Coupon
ref="card"
@@ -200,7 +200,7 @@ export default createComponent({
const DisabledCouponTab = (
<Tab title={disabledTitle}>
<div class={bem('list')} style={this.listStyle}>
<div class={bem('list', { 'with-bottom': this.showCloseButton })} style={this.listStyle}>
{disabledCoupons.map(coupon => (
<Coupon
disabled
@@ -221,13 +221,17 @@ export default createComponent({
{CouponTab}
{DisabledCouponTab}
</Tabs>
<Button
vShow={this.showCloseButton}
size="large"
class={bem('close')}
text={this.closeButtonText || t('close')}
onClick={onChange(-1)}
/>
<div class={bem('bottom')}>
<Button
vShow={this.showCloseButton}
round
type="danger"
block
class={bem('close')}
text={this.closeButtonText || t('close')}
onClick={onChange(-1)}
/>
</div>
</div>
);
}