inicios del FrontEnd

This commit is contained in:
2021-04-21 21:47:04 -05:00
parent 4a7fb24eb2
commit cf9505f26d
196 changed files with 28978 additions and 0 deletions

View File

@@ -0,0 +1,62 @@
<template>
<div class="card" :class="[type && `card-${type}`]">
<div class="card-image" v-if="$slots.image"><slot name="image"></slot></div>
<div
class="card-header"
v-if="$slots.header || title"
:class="headerClasses"
>
<slot name="header">
<h4 class="card-title">{{ title }}</h4>
<p class="card-category" v-if="subTitle">{{ subTitle }}</p>
</slot>
</div>
<div class="card-body" v-if="$slots.default" :class="bodyClasses">
<slot></slot>
</div>
<div class="card-image" v-if="$slots['image-bottom']">
<slot name="image-bottom"></slot>
</div>
<slot name="raw-content"></slot>
<div class="card-footer" :class="footerClasses" v-if="$slots.footer">
<hr v-if="showFooterLine" />
<slot name="footer"></slot>
</div>
</div>
</template>
<script>
export default {
name: 'card',
props: {
title: {
type: String,
description: 'Card title'
},
subTitle: {
type: String,
description: 'Card subtitle'
},
type: {
type: String,
description: 'Card type (e.g primary/danger etc)'
},
showFooterLine: {
type: Boolean,
default: false
},
headerClasses: {
type: [String, Object, Array],
description: 'Card header css classes'
},
bodyClasses: {
type: [String, Object, Array],
description: 'Card body css classes'
},
footerClasses: {
type: [String, Object, Array],
description: 'Card footer css classes'
}
}
};
</script>
<style></style>