zhangwencui
8 小时以前 617ad108a3c7f4e676229b1495185e66fac644b7
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
<template>
  <div class="panel-header">
    <span :class="{'panel-title': !isFullscreen, 'panel-title-fullscreen': isFullscreen}">{{ title }}</span>
  </div>
</template>
 
<script setup>
  defineProps({
    title: {
      type: String,
      required: true,
      default: "",
    },
    isFullscreen: {
      type: Boolean,
      default: false,
    },
  });
</script>
 
<style scoped>
  .panel-header {
    background-image: url("@/assets/BI/kehuhetongback@2x.png");
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
 
  .panel-title {
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    color: #d9ecff;
    padding-left: 46px;
    line-height: 36px;
  }
 
  .panel-title-fullscreen {
    font-size: 1.6vh;
    line-height: 4vh;
    padding-left: 4.6vh;
  }
</style>