mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[bugfix] Cell: icon can't render when no title (#508)
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
}"
|
}"
|
||||||
@click="onClick"
|
@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">
|
<slot name="icon">
|
||||||
<icon v-if="icon" :name="icon" />
|
<icon v-if="icon" :name="icon" />
|
||||||
</slot>
|
</slot>
|
||||||
|
Reference in New Issue
Block a user