Skip to content

Commit

Permalink
fix(Card): fix logic to show image
Browse files Browse the repository at this point in the history
  • Loading branch information
gravitano committed Jul 28, 2023
1 parent e150b42 commit 176c0dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/card/src/VCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ const attrs = computed(() => {

<template>
<component :is="tag" :class="classes" v-bind="{...$attrs, ...attrs}">
<slot v-if="image" name="image" v-bind="{image, alt: imageAlt, imageClass}">
<VCardImage :src="image" :alt="imageAlt" :class="imageClass" />
<slot name="image" v-bind="{image, alt: imageAlt, imageClass}">
<VCardImage v-if="image" :src="image" :alt="imageAlt" :class="imageClass" />
</slot>
<div v-if="!hideHeader" :class="[defaultHeaderClass, headerClass]">
<slot name="header.prepend" />
Expand Down

0 comments on commit 176c0dd

Please sign in to comment.