42 lines
856 B
Vue
42 lines
856 B
Vue
|
<script>
|
||
|
/**
|
||
|
* Stat component -- specify the widget icon, title and value.
|
||
|
*/
|
||
|
export default {
|
||
|
props: {
|
||
|
title: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
value: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
},
|
||
|
icon: {
|
||
|
type: String,
|
||
|
default: ""
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div class="card mini-stats-wid">
|
||
|
<div class="card-body">
|
||
|
<div class="media">
|
||
|
<div class="media-body">
|
||
|
<p class="text-muted fw-medium mb-2">{{title}}</p>
|
||
|
<h4 class="mb-0">{{value}}</h4>
|
||
|
</div>
|
||
|
|
||
|
<div class="mini-stat-icon avatar-sm align-self-center rounded-circle bg-primary">
|
||
|
<span class="avatar-title">
|
||
|
<i :class="`${icon} font-size-24`"></i>
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- end card-body -->
|
||
|
</div>
|
||
|
<!-- end card -->
|
||
|
</template>
|