<!--
 * @Author: changjun
 * @FilePath: /yuan-qingdao-zld-browser/src/views/screen/safeComponents/BlockHeader.vue
 * @Date: 2022-07-27 09:44:23
 * @Description: 大屏的公共头部组件
 * @LastEditTime: 2023-03-16 14:15:47
 * @LastEditors: 李佐宁
-->
<script setup lang="ts">
import { defineProps } from 'vue'
import { mapMapping } from "../../../assets/map/provinceData";
interface BlockHeaderProps {
  name: string;
  unit?: string; // 单位
  headerBg?: boolean;
}

const {
  name = "",
  unit = "",
  headerBg = false,
} = defineProps<BlockHeaderProps>();
const mapData = mapMapping();
</script>

<template>
  <div class="custom-screen-block-header">
    <span class="title">{{ name }}</span>
    <span class="unit" v-if="unit">单位：{{ unit }}</span>
  </div>
</template>

<style scoped lang="scss">
.custom-screen-block-header {
  width: 100%;
  position: relative;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  height: 30px;
  min-height: 30px;
  background-image: url("../../../assets/image/screen/icon_banner.png");
  // background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-left: 31px;
  padding-bottom: 2px;

  .title {
    font-size: 20px;
    font-family: YouSheBiaoTiHei;
    // font-weight: bold;
    background: linear-gradient(0deg,
        rgba(8, 173, 208, 1) 0%,
        rgba(255, 255, 255, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .unit {
    font-size: 14px;
    font-family: Source Han Sans CN;
    font-weight: 400;

    background: linear-gradient(0deg,
        rgba(26, 215, 255, 0.99) 1.07421875%,
        rgba(140, 240, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.custom-screen-block-header1 {
  background-image: url("../../../assets/image/screen/threat-event/nva-bg.png");
  background-size: 100%;
}

.anhui {
  img {
    display: none;
  }
}
</style>
