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
51
| <template>
| <tr>
| <td class="label-text">
| {{label}}
| </td>
| <td class="label-value-container">
| <div class="label-value">{{ value }}</div>
| </td>
| </tr>
| </template>
|
| <script>
| export default {
| name: "TrItem",
| props: {
| label: {
| type: String,
| default: ""
| },
| value: {
| type: [Number, String],
| default: 0
| },
| }
| }
| </script>
|
| <style scoped>
| td {
| padding: 8px 4px;
| }
| td.label-text {
|
| text-align: right;
| padding-right: 0;
| }
| td.label-value-container {
| text-align: left;
| padding-left: 0;
| }
| .label-value {
| display: inline-block;
| border: 1px solid #08F7E7;
| border-radius: 4px;
| background-color: #001A54;
| color: #FFF000;
| padding: 4px 16px;
| text-align: center;
| min-width: 40px;
| }
| </style>
|
|