<template>
  <div class="vehicleDetail">
    <div class="head">
<!--      <span></span>{{ model.picLicense }}-->
      <span></span>北A64N95
    </div>
    <div class="content">
      <div class="detailItem">
        <span class="left">速度：</span
        >{{ model.speed }}
      </div>
      <div class="detailItem">
        <span class="left">角度：</span
        >{{ model.courseAngle }}
      </div>
      <div class="detailItem">
        <span class="left">行为：</span
        >{{ model.courseAngle }}
      </div>
    </div>
  </div>
</template>

<script>

export default {
  name: "vehicleDetail",
  data() {
    return {};
  },
  props: ["model"],
  watch: {
    model: {
      handler(val) {
      },
      deep: true, // 深度监听
      immediate: true, // 初次监听即执行
    }
  },
  mounted() {
  },
  methods: {
  },
  computed: {},
  beforeDestroy() {
  },
};
</script>

<style lang="less" scoped>
.vehicleDetail {
  font-size: 12PX;
  position: absolute;
  width: 242PX;
  padding: 2PX 16PX 6PX 16PX;
  background-image: url("../../../assets/images/acci/detail-back-origin.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;

  .head {
    height: 25PX;
    color: white;
    display: flex;
    align-items: center;

    span {
      display: inline-block;
      width: 18PX;
      height: 18PX;
      margin-right: 5PX;
      line-height: 25PX;
      background-image: url('../../../assets/images/holo/vehicle_popup_icon.png');
      background-position: center;
      background-repeat: no-repeat;
    }
  }

  .content {
    height: calc(100% - 25PX);
    display: flex;
    padding-top: 12PX;
    flex-direction: column;

    .detailItem {
      height: 30PX;
      line-height: 30PX;
      white-space: nowrap;
      color: white;
      max-width: 200PX;
      overflow: hidden;
      text-overflow: ellipsis;

      span {
        display: inline-block;
      }

      span.left {
        text-align: left;
        padding-left: 20PX;
        background-image: url("../../../assets/images/acci/arrow-origin.png");
        background-size: auto;
        background-repeat: no-repeat;
        background-position: left;
        color: rgba(207, 238, 255, 0.9);
      }

      span.right {
        text-align: left;
        color: white;
      }
    }
  }
}
</style>
