forked from AkkomaGang/akkoma-fe
show empty slot only if it has content
This commit is contained in:
parent
b8ec13c8fd
commit
f066ccd28b
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
<div v-for="item in items" class="list-item" :key="getKey(item)">
|
<div v-for="item in items" class="list-item" :key="getKey(item)">
|
||||||
<slot name="item" :item="item" :keyVal="getKey(item)" />
|
<slot name="item" :item="item" :keyVal="getKey(item)" />
|
||||||
</div>
|
</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" />
|
<slot name="empty" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue