<template>
  <el-row class="m-15" type="flex" justify="space-between">
    <el-col :span="2">
      <PublicTag icon="icon-weixing" :val="plane.planeState.satCount" unit="颗" state="normal" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-weixing" :val="plane.planeState.voltagBattery" unit="V" state="normal" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-weixing" :val="plane.planeState.loadweight" unit="克" state="normal" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-gaodu" :val="plane.planeState.state" unit="状" state="normal" />
    </el-col>
    <el-col :span="3">
      <HeartTag :heartBeat="plane.planeState.heartBeat" :heartRandom="plane.planeState.heartRandom"
        :getPlaneMode="plane.planeState.getPlaneMode" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-mianxingdiaogou" :val="plane.planeState.hookstatus" unit="" state="normal" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-gaodu" :val="plane.planeState.positionAlt" unit="米" state="normal" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-gaodu" :val="plane.planeState.fixType" unit="" state="danger" />
    </el-col>
    <el-col :span="2">
      <PublicTag icon="icon-gaodu" :val="plane.planeState.batteryRemaining" unit="米" state="danger" />
    </el-col>
  </el-row>
</template>

<script>
import HeartTag from '@/components/Tag/HeartTag'
import PublicTag from '@/components/Tag/PublicTag'

export default {
  name: 'PlaneStatus',
  data () {
    return {
    }
  },
  props: {
    plane: {
      typeof: 'Object',
      deep: true
    }
  },
  components: {
    HeartTag,
    PublicTag
  },
  computed: {
  },
  watch: {
  },
  methods: {},
  created () {
  }
}
</script>

<style lang="scss" scoped>
@import "@/styles/theme.scss";

.el-row {
  z-index: 90;
}
</style>
