mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
[bugfix] Cell: icon can't render when no title (#508)
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user