<!--
 * @Author: 纪泽龙 jizelong@qq.com
 * @Date: 2022-06-21 09:24:11
 * @LastEditors: 纪泽龙 jizelong@qq.com
 * @LastEditTime: 2022-10-11 18:06:41
 * @FilePath: /danger-manage-web/src/components/bigWindow/Danger.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="danger-wrapper">
    <div class="close" @click="close">
      <img src="@/assets/images/closeBtn.png" alt="" />
    </div>
   <div class="text">
    {{deviceData.name}}
   </div>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {};
  },
  mounted() {
    console.log(this.deviceData);
  },
  methods: {
    close() {
      //this.handleClose();
      this.mapClass.clearInfoWindow();
    },
  },
};
</script>
<style lang="scss" scoped>
.danger-wrapper {
  background-color: rgba(9, 18, 32, 0.6);
  position: absolute;
  padding: 30px;
  padding-bottom: 0;
  box-sizing: border-box;
  // width: 100px;
  // height: 510px;
  .text{
    color:#fff;
    padding-bottom:30px;
  }
  .up {
    border-bottom: 1px solid #cccccc;
    margin-bottom: 15px;
    &.noBroder{
    border-bottom: 0px solid #cccccc;
    margin-bottom: 10px;


    }
  }
  .tit {
    line-height: 14px;
    color: #ffffff;
    font-weight: 600;
    position: relative;
    margin-left: 12px;
    &:before {
      content: "";
      position: absolute;
      width: 5px;
      height: 15px;
      left: -12px;
      top: 0;
      background: #fff;
    }
  }
  .close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
  }
  .one {
    width: 100%;
    flex-wrap: wrap;
    .flex-item {
      width: 50%;
      margin-bottom: 5px;
      .left {
        color: #cccccc;
      }
      .right {
        color: #fff;
        margin-left: 5px;
      }
    }
  }
  .item {
    margin-bottom: 5px;
    .left {
      color: #cccccc;
    }
    .right {
      color: #fff;
      margin-left: 5px;
    }
    .img {
      width: 300px;
      height: 120px;
      display: inline-block;
      vertical-align: top;
      margin-left: 5px;
      img {
        width: 100%;
        height: 100%;
      }
    }
  }
}
</style>
