<template>
  <div class="container">
    <!-- 遮罩层区域 -->
    <div class="mask" @click="handleClose"></div>
    <!-- 弹窗内容区域 -->
    <div class="other">
      <!-- 标题区域 -->
      <div class="title">{{ currentOther }}</div>

      <!-- 主体内容区域 -->
      <div class="info">
        <span style="font-size: 40px">暂无其他点位数据</span>
      </div>

      <!-- 关闭按钮区域 -->
      <div class="close" @click="handleClose"></div>
    </div>
  </div>
</template>

<script setup lang="ts">
defineProps(["currentOther"]);
const $emit = defineEmits(["closeDialog"]);

// 点击关闭按钮回调
const handleClose = () => {
  $emit("closeDialog", false);
};
</script>

<style lang="scss" scoped>
.container {
  z-index: 9999;
  position: absolute;
  top: -151px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 7072px;
  height: 1872px;
  background-color: rgba($color: #000000, $alpha: 0.4);

  .mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 7072px;
    height: 1872px;
  }

  .other {
    position: relative;
    width: 748px;
    height: 491px;
    background-image: url(@/assets/images/75.png);
    background-size: 100% 100%;

    .title {
      padding: 0 20px;
      margin-left: 269px;
      width: 224px;
      height: 46px;
      line-height: 46px;
      text-align: center;
      font-size: 35px;
      color: #ccffe6;
      font-family: "庞门正道标题体";
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .info {
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      align-items: center;
      margin-top: 19px;
      margin-left: 26px;
      width: 697px;
      height: 393px;
      font-size: 23px;
    }

    .close {
      position: absolute;
      top: 10px;
      right: 6px;
      width: 42px;
      height: 42px;
      cursor: pointer;
      background-image: url(@/assets/images/12.png);
      background-size: 100% 100%;
    }
  }
}
</style>
