<template>
  <div id="box1" :style="{
      top: position[0]-100+'px',
      left: position[1]+ 'px'
    }">
    <div class="wrap center" style="color: white">
      {{data}}
    </div>
    <div class="line"></div>
    <div class="" style="position: absolute;bottom: 0;left: 0;width: 10px;height: 10px;border-radius: 50%;background: radial-gradient(#00ffff,#004480,#02004a)"></div>
  </div>
</template>

<script>
export default {
  name: "box3",
  props: {
    title: {
      type: "String",
      default: '建筑'
    },
    data: {
      type: "Array",
      default: []  //[ {label: '姓名' , value: '梁汉强'}]
    },
    position: {
      type: "Array",
      default: [0,0]
    }
  }
}
</script>

<style scoped>
.full{
  width: 100%;
  height: 100%;
}
#box1{
  /*background: #ef1717;*/
  width: 300px;
  height: 100px;
  position: absolute;
  /*background: #ffffff;*/
}
.wrap{
  width: 250px;
  height: 50px;
  margin-left: 50px;
  background: linear-gradient(to top, #147f83, rgba(0,0,0,0));
  /*background-image:*/
  /*  linear-gradient(135deg, transparent 30px, #28abf06c 30px, #28abf06c 50%, transparent 50%),*/
  /*  linear-gradient(-45deg, transparent 30px, #28abf06c 30px, #28abf06c 50.1%, transparent 50%);*/
}
.line{
  height: 70px;
  width: 1px;
  background: linear-gradient(to top, #00bdff, #11bcf8);
  transform: rotate(45deg) translate(10px, -25px);
}
.center{
  display: flex;
  justify-content: center;
  align-items: center;
}
.border{
  position: absolute;
  background-color: #29baf1;
  box-shadow: 0 0 10px 2px #29baf1;
}
.title{
  letter-spacing: 5px;
  color: white;
  font-weight: bold;
  width: 220px;
  height: 40px;
  margin-left: 30px;
  background-image: linear-gradient(135deg, transparent 25px, #2299c4 25px);
}
.changColor{
  animation: color 0.2s linear infinite;
}
@keyframes color {
  from{
    background: radial-gradient(red, #ff00e5)
  }
  to{
    background: radial-gradient(blue,red)
  }
}
</style>
