[bugfix] SubmitBar: inherit wrong font size (#857)

This commit is contained in:
neverland 2018-04-12 10:40:40 +08:00 committed by GitHub
parent bd8dd90a28
commit 7d3b63eb15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 9 deletions

View File

@ -7,7 +7,7 @@
<slot /> <slot />
<div class="van-submit-bar__price"> <div class="van-submit-bar__price">
<template v-if="hasPrice"> <template v-if="hasPrice">
<span class="van-submit-bar__price-text">{{ label || $t('label') }}</span> <span>{{ label || $t('label') }}</span>
<span class="van-submit-bar__price-interger">¥{{ priceInterger }}.</span> <span class="van-submit-bar__price-interger">¥{{ priceInterger }}.</span>
<span class="van-submit-bar__price-decimal">{{ priceDecimal }}</span> <span class="van-submit-bar__price-decimal">{{ priceDecimal }}</span>
</template> </template>

View File

@ -19,24 +19,24 @@
&__bar { &__bar {
height: 50px; height: 50px;
display: flex; display: flex;
line-height: 50px; font-size: 16px;
align-items: center;
background-color: $white; background-color: $white;
} }
&__price { &__price {
flex: 1; flex: 1;
text-align: right; text-align: right;
padding-right: 10px;
}
&__price-text {
font-size: 15px;
color: $gray-darker; color: $gray-darker;
padding-right: 12px;
span {
display: inline-block;
}
} }
&__price-interger { &__price-interger {
color: $red; color: $red;
font-size: 16px;
} }
&__price-decimal { &__price-decimal {
@ -48,7 +48,7 @@
width: 110px; width: 110px;
height: 100%; height: 100%;
border-radius: 0; border-radius: 0;
font-size: 15px; font-size: 16px;
&--disabled { &--disabled {
border: none; border: none;