<script lang="ts" setup>
import {ref, onMounted,watch } from 'vue'
import { useRouter, useRoute } from 'vue-router'
const props = defineProps({
  projectInfo: {
    type: String,
    default: ''
  }
})
const projectInfo:any=ref({
  
})
watch(() => props.projectInfo, val => {
  projectInfo.value = props.projectInfo
})
onMounted(()=>{
  projectInfo.value = props.projectInfo
})

</script>
<template>
<div class="project-header-box">
  <div class="project-header-left">
    <div class="return-box" @click="$router.go(-1)">
      <img src="@/assets/newimg/u594.png" alt="">
    </div>
    <img src="@/assets/newimg/logosmall.png" alt="" style="margin-left: 10px;">
    <div class="header-title">{{projectInfo.name  }} - {{ projectInfo.typename }}</div>
  </div>
</div>
</template>

<style lang="less" scoped>
.project-header-box{
  width: 100%;
  height: 60px;
  background-color: rgba(37, 38, 38, 1);
  box-sizing: border-box;
  border-bottom: 1px solid rgba(79, 80, 82, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 10px;
  .project-header-left{
    display: flex;
    align-items: center;
  }
  .project-header-right{
    display: flex;
    align-items: center;
  }
  .return-box{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
  }
  .return-box:hover{
    background-color: rgba(255, 255, 255, 0.1);
  }
  .header-title{
    font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
    font-weight: 700;
    font-style: normal;
    font-size: 16px;
    color: #F2F4F5;
    padding-left: 14px;
  }
  .preview-button{
    width: 60px;
    height: 30px;
    line-height: 30px;
    background-color: rgba(54, 55, 56, 1);
    border: none;
    border-radius: 4px;
    font-family: 'Arial Normal', 'Arial';
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: #F2F4F5;
    text-align: center;
    cursor: pointer;
  }
  .design-button{
    width: 60px;
    height: 30px;
    line-height: 30px;
    background-color: rgba(0, 137, 255, 1);
    border: none;
    border-radius: 4px;
    font-family: 'Arial Normal', 'Arial';
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    color: #F2F4F5;
    text-align: center;
    margin-left: 10px;
    cursor: pointer;
  }
}
</style>
