i changed my mind, fetch logic does belong in <List>
This commit is contained in:
parent
a0d5decc49
commit
4a0be19607
9 changed files with 77 additions and 137 deletions
|
|
@ -28,7 +28,7 @@
|
|||
role="list"
|
||||
>
|
||||
<div
|
||||
v-for="item in items"
|
||||
v-for="item in finalItems"
|
||||
:key="getKey(item)"
|
||||
class="list-item"
|
||||
:class="[getClass(item), nonInteractive ? '-non-interactive' : '']"
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="items.length === 0 && !!$slots.empty"
|
||||
v-if="finalItems.length === 0 && !!$slots.empty"
|
||||
class="list-empty-content faint"
|
||||
>
|
||||
<slot name="empty" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue