Blame view

src/components/widgets/statistic/LinearStatistic.vue 799 Bytes
ade01719f   Jatinder Singh   change
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
  <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 mini :color="color">{{icon}}</v-icon>
          </div>
        </div>
      </v-card-title>
      <v-card-text class="pt-2">
        <h3 class="headline">{{subTitle}}</h3>
        <v-progress-linear :value="value" height="5" :color="color"></v-progress-linear>
        <span class="caption">{{caption}}</span>
      </v-card-text>
    </v-card>   
  </template>
  
  <script>
  export default {
    props: {
      icon: String,
      title: String,
      subTitle: String,
      value: Number,
      color: String
    },
    computed: {
      caption () {
        return this.value + '% ' + this.subTitle;
      }
    }
  };
  </script>
  
  <style>
  
  </style>