78 lines
1.6 KiB
Vue
78 lines
1.6 KiB
Vue
|
<template>
|
||
|
<b-card
|
||
|
v-if="data"
|
||
|
no-body
|
||
|
:class="`card-statistics ${data.class} `"
|
||
|
>
|
||
|
<b-card-header>
|
||
|
<b-card-title>{{ data.title }}</b-card-title>
|
||
|
</b-card-header>
|
||
|
<b-card-body class="statistics-body">
|
||
|
<b-row>
|
||
|
<b-col
|
||
|
v-for="item in data.items"
|
||
|
:key="item.icon"
|
||
|
xl="3"
|
||
|
md="6"
|
||
|
sm="6"
|
||
|
:class="item.customClass"
|
||
|
>
|
||
|
<b-media no-body>
|
||
|
<b-media-aside
|
||
|
|
||
|
class="mr-2"
|
||
|
>
|
||
|
<b-avatar
|
||
|
v-if="item.icon"
|
||
|
size="48"
|
||
|
:variant="item.color"
|
||
|
>
|
||
|
<feather-icon
|
||
|
size="24"
|
||
|
:icon="item.icon"
|
||
|
/>
|
||
|
</b-avatar>
|
||
|
</b-media-aside>
|
||
|
<b-media-body class="my-auto">
|
||
|
<h4 class="font-weight-bolder mb-0">
|
||
|
{{ item.title }}
|
||
|
</h4>
|
||
|
<b-card-text class="font-small-3 mb-1">
|
||
|
{{ item.subtitle }}
|
||
|
</b-card-text>
|
||
|
</b-media-body>
|
||
|
</b-media>
|
||
|
</b-col>
|
||
|
</b-row>
|
||
|
</b-card-body>
|
||
|
</b-card>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import {
|
||
|
BCard, BCardHeader, BCardTitle, BCardText, BCardBody, BRow, BCol, BMedia, BMediaAside, BAvatar, BMediaBody,
|
||
|
} from 'bootstrap-vue'
|
||
|
|
||
|
export default {
|
||
|
components: {
|
||
|
BRow,
|
||
|
BCol,
|
||
|
BCard,
|
||
|
BCardHeader,
|
||
|
BCardTitle,
|
||
|
BCardText,
|
||
|
BCardBody,
|
||
|
BMedia,
|
||
|
BAvatar,
|
||
|
BMediaAside,
|
||
|
BMediaBody,
|
||
|
},
|
||
|
props: {
|
||
|
data: {
|
||
|
type: Object,
|
||
|
default: () => {},
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|