[bugfix] Sku button border radius (#378)

This commit is contained in:
neverland
2017-12-05 14:36:22 +08:00
committed by GitHub
parent 32801b453b
commit 056f847824
7 changed files with 22 additions and 60 deletions
+8 -6
View File
@@ -1,18 +1,20 @@
<template>
<div class="van-sku-actions">
<button v-if="showAddCartBtn" class="van-sku__add-cart-btn" @click="onAddCartClicked">
加入购物车
</button>
<button class="van-sku__buy-btn" @click="onBuyClicked">
{{ buyText }}
</button>
<van-button v-if="showAddCartBtn" bottomAction @click="onAddCartClicked">加入购物车</van-button>
<van-button type="primary" bottomAction @click="onBuyClicked">{{ buyText }}</van-button>
</div>
</template>
<script>
import Button from '../../button';
export default {
name: 'van-sku-actions',
components: {
[Button.name]: Button
},
props: {
skuEventBus: Object,
showAddCartBtn: Boolean,
+1 -29
View File
@@ -174,35 +174,7 @@
/* sku actions */
&-actions {
display: flex;
margin-top: 10px;
font-size: 0;
}
&__add-cart-btn {
width: 50%;
height: 50px;
padding: 0;
border: 0;
background: #f85;
color: $white;
font-size: 16px;
line-height: 50px;
text-align: center;
& + .van-sku__buy-btn {
width: 50%;
}
}
&__buy-btn {
width: 100%;
height: 50px;
padding: 0;
border: 0;
background: $red;
color: $white;
font-size: 16px;
line-height: 50px;
text-align: center;
}
}