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

31 lines
1.1 KiB
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
2023-05-23 12:06:25 +00:00
<div :class="cx('root')" v-bind="ptm('root')" data-pc-name="card" data-pc-section="root">
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')" data-pc-section="header">
2022-09-06 12:03:37 +00:00
<slot name="header"></slot>
</div>
2023-05-23 12:06:25 +00:00
<div :class="cx('body')" v-bind="ptm('body')" data-pc-section="body">
<div v-if="$slots.title" :class="cx('title')" v-bind="ptm('title')" data-pc-section="title">
2023-03-24 13:15:30 +00:00
<slot name="title"></slot>
</div>
2023-05-23 12:06:25 +00:00
<div v-if="$slots.subtitle" :class="cx('subtitle')" v-bind="ptm('subtitle')" data-pc-section="subtitle">
2023-03-24 13:15:30 +00:00
<slot name="subtitle"></slot>
</div>
2023-05-23 12:06:25 +00:00
<div :class="cx('content')" v-bind="ptm('content')" data-pc-section="content">
2022-09-06 12:03:37 +00:00
<slot name="content"></slot>
</div>
2023-05-23 12:06:25 +00:00
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')" data-pc-section="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>