forked from misterGF/CoPilot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProcessInfoBox.vue
More file actions
50 lines (49 loc) · 1011 Bytes
/
Copy pathProcessInfoBox.vue
File metadata and controls
50 lines (49 loc) · 1011 Bytes
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
49
50
<template>
<div :class="['info-box', colorClass]">
<span class="info-box-icon">
<i :class="iconClasses"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">{{text}}</span>
<span class="info-box-number">{{number}}</span>
<div class="progress">
<div class="progress-bar" :style="{width: progress + '%'}"></div>
</div>
<span class="progress-description">{{description}}</span>
</div>
</div>
</template>
<script>
export default {
name: 'InfoBox',
props: {
text: {
type: String,
required: true
},
number: {
type: String,
default: ''
},
progress: {
type: Number,
default: 0,
validator(value) {
return value >= 0 && value <= 100
}
},
description: {
type: String,
default: ''
},
iconClasses: {
type: Array,
default: []
},
colorClass: {
type: String,
default: 'bg-default'
}
}
}
</script>