<template>
  <div class="back-bar border-bottom">
    <div class="arrow-icon">
      <i class="el-icon-arrow-left" @click="$router.go(-1)"></i>
    </div>
    {{title}}
    <slot></slot>
  </div>
</template>

<script>

export default {
  name: 'backBar',
  props: ['title']
}
</script>

<style lang="scss" scoped>
.back-bar{
  height: px2rem(90);
  line-height: px2rem(90);
  text-align: center;
  font-size: px2rem(34);
  color: #333333;
  position: relative;
  background-color: #f2f2f2;
  .arrow-icon{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: px2rem(90);
    line-height: px2rem(90);
    text-align: center;
    width: px2rem(70);
  }
  i{
    color: #333333;
    font-size: px2rem(42);
  }
}
</style>
