<template>
  <div class="card_head">
    <el-image style="height: 35px;width: 35px;" :src="require('@/assets/logo3.png')"></el-image>
    <div class="head_title">智配送安全追溯AI管理平台</div>
    <i class="card_unpack" :class="iconFlag ? 'el-icon-s-unfold' : 'el-icon-s-fold'" @click="getUnpack"></i>
  </div>
</template>

<script>
  export default {
    name: 'TopNav',
    props: {
      iconFlag: {
        type: Boolean,
        default: () => false,
      },
    },
    data() {
      return {

      }
    },
    methods: {
      getUnpack() {
        this.$emit('getUnpack', this.iconFlag)
      }
    },
  }
</script>

<style lang="scss">
  .card_head {
    display: flex;
    align-items: center;
  }

  .head_title {
    font-weight: bold;
    font-size: 16px;
    color: rgb(35, 49, 105);
    margin-left: 10px;
  }

  .card_unpack {
    cursor: pointer;
    font-size: 25px;
    margin-left: 10px;
  }
</style>
