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

33 lines
1.1 KiB
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
<div :class="cx('root')" v-bind="ptm('root')">
2023-05-25 14:46:32 +00:00
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
2022-09-06 12:03:37 +00:00
<slot name="header"></slot>
</div>
2023-05-25 14:46:32 +00:00
<div :class="cx('body')" v-bind="ptm('body')">
<div v-if="$slots.title || $slots.subtitle" :class="cx('caption')" v-bind="ptm('caption')">
<div v-if="$slots.title" :class="cx('title')" v-bind="ptm('title')">
<slot name="title"></slot>
</div>
<div v-if="$slots.subtitle" :class="cx('subtitle')" v-bind="ptm('subtitle')">
<slot name="subtitle"></slot>
</div>
2023-03-24 13:15:30 +00:00
</div>
<div :class="cx('content')" v-bind="ptm('content')">
2022-09-06 12:03:37 +00:00
<slot name="content"></slot>
</div>
2023-05-25 14:46:32 +00:00
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')">
2022-09-06 12:03:37 +00:00
<slot name="footer"></slot>
</div>
</div>
</div>
</template>
<script>
2023-05-22 22:03:28 +00:00
import BaseCard from './BaseCard.vue';
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-05-22 22:03:28 +00:00
extends: BaseCard
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
</script>