[bugfix] SwitchCell: text vertical align (#852)

This commit is contained in:
neverland 2018-04-11 15:41:29 +08:00 committed by GitHub
parent 9367968a82
commit bd8dd90a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<template>
<cell :title="title" :border="border" class="van-switch-cell">
<cell center :title="title" :border="border" class="van-switch-cell">
<van-switch v-bind="$props" @input="$emit('input', $event)" />
</cell>
</template>

View File

@ -1,8 +1,8 @@
@import './common/var.css';
.van-switch-cell {
.van-cell__title {
vertical-align: middle;
.van-cell__text {
vertical-align: baseline;;
}
.van-switch {