wupengfei
8 天以前 f37c78b6412db783615f8b38f0487c57136c4ed8
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
<template>
  <div class="data-board-card-content-item">
    <div class="data-board-card-content-item-label">{{ label }}</div>
    <div class="data-board-card-content-item-content"><slot></slot></div>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'DataBoardCardContentItem',
});
 
type Props = {
  label?: string;
};
 
const props = withDefaults(defineProps<Props>(), {});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.data-board-card-content-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
 
  &:last-child {
    margin-bottom: 0;
  }
 
  .data-board-card-content-item-label {
    width: 80px;
    color: getCssVar('text-color', 'regular');
  }
 
  .data-board-card-content-item-content {
    flex: 1;
    min-width: 0;
    @include utils-ellipsis;
    color: getCssVar('text-color', 'primary');
  }
}
</style>