<template>
    <header class="header">
      <div class="header-title flex-box-ce" @click="$router.go(-1)">
        <i class="el-icon-arrow-left fontColorC"></i>
        <div class="text fontColorB font-flex-word">{{title}}</div>
      </div>
    </header>
</template>

<script>
export default {
    name:'PageHeadTwo',
    props:{
      title:{
        type:String,
        default:'详情'
      },
    },
  data() {
    return {};
  },
  watch: {},
  created() {},
  mounted() {},
  methods: {}
};
</script>

<style scoped="scoped" lang="scss">
.header{
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 10px;
}
.header-title {
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  width: 200px;
}
.el-icon-arrow-left {
  font-size: 20px;
}
.header-title:hover .el-icon-arrow-left {
  background-color: #f5f7fa;
  color: #222;
}
.text {
  font-size: 16px;
  padding-left: 30px;
}
.text::before {
  position: absolute;
  content: '';
  width: 1px;
  height: 60px;
  background-color: #ebebeb;
  left: 34px;
  top: 50%;
  margin-top: -18px;
}
</style>
