mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +08:00
[bugfix] SwitchCell: text vertical align (#852)
This commit is contained in:
parent
9367968a82
commit
bd8dd90a28
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<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)" />
|
<van-switch v-bind="$props" @input="$emit('input', $event)" />
|
||||||
</cell>
|
</cell>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
@import './common/var.css';
|
@import './common/var.css';
|
||||||
|
|
||||||
.van-switch-cell {
|
.van-switch-cell {
|
||||||
.van-cell__title {
|
.van-cell__text {
|
||||||
vertical-align: middle;
|
vertical-align: baseline;;
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-switch {
|
.van-switch {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user