mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Cell: icon can't render when no title (#508)
This commit is contained in:
parent
1298ef3d25
commit
94e05ba3f8
@ -8,7 +8,7 @@
|
||||
}"
|
||||
@click="onClick"
|
||||
>
|
||||
<div class="van-cell__title" v-if="$slots.title || title">
|
||||
<div class="van-cell__title" v-if="title || icon || $slots.title || $slots.icon">
|
||||
<slot name="icon">
|
||||
<icon v-if="icon" :name="icon" />
|
||||
</slot>
|
||||
|
Loading…
x
Reference in New Issue
Block a user