vant中vant-cell表格中放图片 图片文字对不齐问题
html
<van-cell
v-for="(vanItem,vanIndex) in item"
v-if="(vanItem.isLabModel && labInfo) || !vanItem.isLabModel"
:key="vanIndex"
size="large"
:border="vanItem.border"
is-link
@click="clickCell(vanItem.route,vanIndex)"
center
>
<template slot="title">
<van-icon slot="icon" size="20" :name="vanItem.icon" style="padding-right: 8px;" />
<span class="custom-title">{{vanItem.name}}</span>
</template>
</van-cell>
css
.van-cell__title {
display: flex;
align-items: center;
}