blob: 9062e5e8cb28c364a6b223de69b05360770a431b (
plain) (
blame)
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
|
<template>
<div>
<div class="columns is-mobile">
<div class="column is-2">
{{ title }}
</div>
<div class="column">
{{ (used / 1024 / 1024 / 1024).toFixed(2) }} GiB /
{{ (total / 1024 / 1024 / 1024).toFixed(2) }} GiB ({{ ((used * 100) / total).toFixed(2) }}%)
</div>
</div>
</div>
</template>
<script>
export default {
props: {
title: {
'type': String,
'default': null
},
used: {
'type': Number,
'default': null
},
total: {
'type': Number,
'default': null
}
}
};
</script>
|