[Improvement] more component use bem mixin (#932)

This commit is contained in:
neverland
2018-04-24 23:33:51 +08:00
committed by GitHub
parent 91163b2f14
commit c012a65ba3
23 changed files with 110 additions and 119 deletions

View File

@@ -1,15 +1,15 @@
<template>
<div class="van-submit-bar">
<div class="van-submit-bar__tip" v-show="tip || $slots.tip">
<div :class="b()">
<div :class="b('tip')" v-show="tip || $slots.tip">
{{ tip }}<slot name="tip" />
</div>
<div class="van-submit-bar__bar">
<div :class="b('bar')">
<slot />
<div class="van-submit-bar__price">
<div :class="b('price')">
<template v-if="hasPrice">
<span>{{ label || $t('label') }}</span>
<span class="van-submit-bar__price-interger">{{ currency }}{{ priceInterger }}.</span>
<span class="van-submit-bar__price-decimal">{{ priceDecimal }}</span>
<span :class="b('price-interger')">{{ currency }}{{ priceInterger }}.</span>
<span :class="b('price-decimal')">{{ priceDecimal }}</span>
</template>
</div>
<van-button :type="buttonType" :disabled="disabled" :loading="loading" @click="onSubmit">