<template>
  <div id="back-bar">
    <el-row class="detailReturn">
      <el-button @click="$router.push(to)"><i class="el-icon-arrow-left"></i></el-button>
      <el-col class="detailTit">{{ title }}</el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'back-bar',
  props: {
    to: { type: String, default: '/' },
    title: { type: String, default: '' },
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.detailReturn .el-button {
  float: left;
  width: 26px;
  height: 26px;
  border-radius: 90px;
  padding: 0;
  border: 2px solid #9e9fa1;
  margin: 0 5px 0 0;
}
.detailReturn .el-button:hover {
  background: #fff;
}
.detailReturn .el-button:hover i {
  color: #333333;
}
.detailReturn .el-button i {
  font-size: 15px;
  font-weight: bold;
}
.detailTit {
  float: left;
  width: 96%;
  height: 26px;
  line-height: 26px;
  font-size: 14px;
  color: #333333;
}
</style>
