2022-09-06 12:03:37 +00:00
|
|
|
<template>
|
2023-03-24 13:15:30 +00:00
|
|
|
<div class="p-card p-component" v-bind="ptm('root')">
|
|
|
|
<div v-if="$slots.header" class="p-card-header" v-bind="ptm('header')">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="header"></slot>
|
|
|
|
</div>
|
2023-03-24 13:15:30 +00:00
|
|
|
<div class="p-card-body" v-bind="ptm('body')">
|
|
|
|
<div v-if="$slots.title" class="p-card-title" v-bind="ptm('title')">
|
|
|
|
<slot name="title"></slot>
|
|
|
|
</div>
|
|
|
|
<div v-if="$slots.subtitle" class="p-card-subtitle" v-bind="ptm('subtitle')">
|
|
|
|
<slot name="subtitle"></slot>
|
|
|
|
</div>
|
|
|
|
<div class="p-card-content" v-bind="ptm('content')">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="content"></slot>
|
|
|
|
</div>
|
2023-03-24 13:15:30 +00:00
|
|
|
<div v-if="$slots.footer" class="p-card-footer" v-bind="ptm('footer')">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="footer"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-03-31 21:51:41 +00:00
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2023-03-24 13:15:30 +00:00
|
|
|
|
2022-09-06 12:03:37 +00:00
|
|
|
export default {
|
2023-03-24 13:15:30 +00:00
|
|
|
name: 'Card',
|
2023-03-31 21:51:41 +00:00
|
|
|
extends: BaseComponent
|
2022-09-14 11:26:01 +00:00
|
|
|
};
|
2022-09-06 12:03:37 +00:00
|
|
|
</script>
|