CircleStatistic.vue
1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<template>
<v-card>
<v-card-title>
<div class="layout row ma-0 justify-space-between pb-1">
<div class="subheading">{{title}}</div>
<div class="icon">
<v-icon :color="color">{{icon}}</v-icon>
</div>
</div>
</v-card-title>
<v-card-text>
<div class="justify-center row layout ma-0">
<v-progress-circular
:size="150"
:width="15"
:rotate="-90"
:value="value"
:color="color"
>
{{ value }}
</v-progress-circular>
</div>
</v-card-text>
<v-divider></v-divider>
<v-card-actions>
<div class="headline">{{subTitle}}</div>
<div class="caption">{{caption}}</div>
</v-card-actions>
</v-card>
</template>
<script>
export default {
props: {
icon: String,
title: String,
subTitle: String,
caption: String,
value: Number,
color: String
},
};
</script>
<style>
</style>