Skip to content

Commit

Permalink
refact(KtCard): unify slot behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Carol Soliman authored and carsoli committed Mar 27, 2023
1 parent 1cced29 commit 9d28eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kotti-ui/source/kotti-card/KtCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<div v-if="imgUrl" :class="imageContainerClass">
<img class="kt-card__image-row__image" :src="imgUrl" />
</div>
<div class="kt-card__header">
<div v-if="$slots['card-header']" class="kt-card__header">
<slot name="card-header" />
</div>
<div class="kt-card__body">
<div v-if="$slots['card-body']" class="kt-card__body">
<slot name="card-body" />
</div>
<div v-if="$slots['card-footer']" :class="footerClass">
Expand Down

0 comments on commit 9d28eea

Please sign in to comment.