riku
2025-07-16 c23ac06446a9a1edc41cc13723e5d0b8eabdfd63
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
<template>
  <tr>
    <td v-if="label" class="td-1">{{ label }}</td>
    <td v-else class="td-1"><slot name="label"></slot></td>
    <td v-if="content" class="td-2">{{ content }}</td>
    <td v-else class="td-2"><slot name="content"></slot></td>
  </tr>
</template>
 
<script>
export default {
  props: {
    label: String,
    content: String
  }
};
</script>
 
<style scoped>
tr {
  font-size: var(--el-font-size-small);
}
td {
  border: 1px solid rgba(255, 255, 255, 0.616);
  padding: 2px 6px;
}
.td-1 {
  width: 68px;
  background-color: var(--bg-color-2);
  color: white;
}
 
.td-2 {
  color: white;
  /* background-color: var(--el-fill-color-light); */
}
</style>