primevue-mirror/components/card/Card.vue

30 lines
766 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
<div class="p-card p-component">
<div class="p-card-header" v-if="$slots.header">
<slot name="header"></slot>
</div>
<div class="p-card-body">
<div class="p-card-title" v-if="$slots.title"><slot name="title"></slot></div>
<div class="p-card-subtitle" v-if="$slots.subtitle"><slot name="subtitle"></slot></div>
<div class="p-card-content">
<slot name="content"></slot>
</div>
<div class="p-card-footer" v-if="$slots.footer">
<slot name="footer"></slot>
</div>
</div>
</div>
</template>
<script>
export default {
name: 'Card'
}
</script>
<style>
.p-card-header img {
width: 100%;
}
</style>