<!-- 飞控中心无人机应slot -->
<template>
  <div class="list">
    <template v-if="wsList && wsList.length">
      <!-- <div class="all">全部</div> -->
      <div class="pl10 pb30 pr8">
        <Item
          v-for="item in wsList"
          :key="item.deptId"
          :data="item"
          :level="1"
          @refresh="$emit('refresh')"
        />
      </div>
    </template>
  </div>
</template>

<script>
import Item from "./components/item";
export default {
  components: { Item },
  props: {
    containerStyle: {
      type: String | Object,
      default: () => ({}),
    },
    list: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {
      components_start: true, //组件当前的状态
      wsList: [],
      num: 0,
    };
  },
  watch: {
    list: {
      handler(val) {
        this.wsList = val;
      },
    },
  },
  mounted() {
    this.wsList = this.list;
  },
  methods: {
  },
};
</script>

<style lang="scss">
.list {
  overflow-y: auto;
}
.cpt-observe-uav_list {
  height: 100%;
  box-sizing: border-box;
}
.mountItem {
  background: rgba(25, 42, 61, 0.5);
  box-shadow: inset 0 0 38px 0 rgba(0, 219, 255, 0.71);
  border-radius: 10px;
  padding: 10px;
}
.wrjBtn {
  background: rgba(6, 23, 56, 0.6);
  border: 0 solid #00b6ff;
  box-shadow: 1px 1px 2px 0 rgba(3, 16, 50, 0.5), inset 0 0 12px 0 #00b6ff;
  border-radius: 3px;
}
.all {
  margin-top: 10px;
  text-indent: 1em;
  background-image: linear-gradient(
    270deg,
    rgba(12, 134, 242, 0) 0%,
    rgba(37, 151, 251, 0.62) 99%
  );
  width: 100px;
  color: #a6caeb;
  height: 20px;
  border-radius: 4px;
}
.jz {
  height: 100%;
  display: flex;
  align-items: center;
}
.mar {
  margin: 0 0 0 5px;
  color: #70daf9 !important;
  font-weight: 700 !important;
}
</style>