primevue-mirror/components/lib/card/Card.vue

30 lines
767 B
Vue
Raw Normal View History

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