show empty slot only if it has content
This commit is contained in:
parent
b8ec13c8fd
commit
f066ccd28b
@ -3,7 +3,7 @@
|
||||
<div v-for="item in items" class="list-item" :key="getKey(item)">
|
||||
<slot name="item" :item="item" :keyVal="getKey(item)" />
|
||||
</div>
|
||||
<div class="list-empty-content faint" v-if="items.length === 0">
|
||||
<div class="list-empty-content faint" v-if="items.length === 0 && !!$slots.empty">
|
||||
<slot name="empty" />
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user