zhengyiming
3 天以前 54d5eab23e2b74273ad59194ebc5063e95ea5637
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
52
53
54
55
56
<template>
  <div
    class="data-board-content-item"
    :style="{
      marginBottom: hasBottom ? '18px' : '0',
    }"
  >
    <div class="data-board-content-item-title">
      <div class="data-board-content-item-title-text">{{ title }}</div>
    </div>
    <slot></slot>
  </div>
</template>
 
<script setup lang="ts">
defineOptions({
  name: 'DataBoardContentItem',
});
 
type Props = {
  title: string;
  hasBottom?: boolean;
};
 
const props = withDefaults(defineProps<Props>(), {
  hasBottom: true,
});
</script>
 
<style lang="scss" scoped>
@use '@/style/common.scss' as *;
 
.data-board-content-item {
  display: flex;
  flex-direction: column;
  background: rgba(0, 5, 18, 0.27);
 
  .data-board-content-item-title {
    display: flex;
    height: 42px;
    font-family: YouSheBiaoTiHei Regular;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url('@/assets/dataBoard/data-board-title-bg.png');
 
    .data-board-content-item-title-text {
      padding-left: 36px;
      font-size: 24px;
      line-height: 32px;
      background: linear-gradient(to bottom, #ffffff, #b5efff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}
</style>