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
| <template>
| <div class="input-list">
| <table>
| <tbody>
| <tr v-for="(item, key) in list" :key="key">
| <td class="align-right">{{ item.text }}</td>
| <td>
| <div class="input-content">{{ item.value }}</div>
| </td>
| <td>{{ item.unit }}</td>
| </tr>
| </tbody>
| </table>
| </div>
| </template>
|
| <script>
| export default {
| name: "InputList",
| props: {
| list: {
| type: Array,
| default() {
| return [];
| },
| },
| },
| };
| </script>
|
| <style scoped>
| .input-list {
| font-size: 14px;
| }
| .input-list table td {
| padding: 6px;
| }
| .input-list table td.align-right {
| text-align: right;
| }
| .input-list .input-content {
| min-width: 80px;
| padding: 4px 8px;
| font-size: 18px;
| color: #e9e10c;
| border: 1px solid #42d4ff;
| background-color: #2c5774;
| }
| </style>
|
|