mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-11-07 08:44:00 +01:00
Added Info component to Generic with conditional render (item.info)
This commit is contained in:
parent
f20c95b5e5
commit
f53348ffa3
@ -5,6 +5,8 @@
|
||||
:style="`background-color:${item.background};`"
|
||||
:class="item.class"
|
||||
>
|
||||
<Info v-if="item.info" :item="item.info"/>
|
||||
|
||||
<a :href="item.url" :target="item.target" rel="noreferrer">
|
||||
<div class="card-content">
|
||||
<div :class="mediaClass">
|
||||
@ -40,8 +42,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Info from "./Info.vue";
|
||||
|
||||
export default {
|
||||
name: "Generic",
|
||||
components: {
|
||||
Info,
|
||||
},
|
||||
props: {
|
||||
item: Object,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user