primevue-mirror/components/lib/card/Card.vue
Tuğçe Küçükoğlu b4d059388d Card pt fixes
2023-05-30 11:30:17 +03:00

30 lines
1,004 B
Vue
Executable file

<template>
<div :class="cx('root')" v-bind="ptm('root')" data-pc-name="card">
<div v-if="$slots.header" :class="cx('header')" v-bind="ptm('header')">
<slot name="header"></slot>
</div>
<div :class="cx('body')" v-bind="ptm('body')">
<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>
<div :class="cx('content')" v-bind="ptm('content')">
<slot name="content"></slot>
</div>
<div v-if="$slots.footer" :class="cx('footer')" v-bind="ptm('footer')">
<slot name="footer"></slot>
</div>
</div>
</div>
</template>
<script>
import BaseCard from './BaseCard.vue';
export default {
name: 'Card',
extends: BaseCard
};
</script>