Skip to content

Commit

Permalink
chore(#3): add default slot (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher authored May 8, 2023
1 parent 4173ed3 commit c164c57
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions src/components/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -579,22 +579,24 @@
<div class="col-xxs-12">
<div class="ct-item-grid__items">
<div class="row">
<div
v-for="item of items"
:key="item.id"
class="ct-item-grid__item col-xxs-12"
:class="itemClasses"
>
<slot
name="item"
:item="item"
<slot>
<div
v-for="item of items"
:key="item.id"
class="ct-item-grid__item col-xxs-12"
:class="itemClasses"
>
<component
:is="itemComponent"
v-bind="item"
/>
</slot>
</div>
<slot
name="item"
:item="item"
>
<component
:is="itemComponent"
v-bind="item"
/>
</slot>
</div>
</slot>
</div>
</div>
</div>
Expand Down Expand Up @@ -764,7 +766,7 @@ export default {
},
items: {
type: Array,
required: true,
default: () => ([]),
},
title: {
type: String,
Expand Down

0 comments on commit c164c57

Please sign in to comment.