Title.vue 636 Bytes
<template>
  <div class='title'>
    <i></i>
    <slot></slot>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  name: 'Title',
  data () {
    return {
    }
  }
}
</script>

<style scoped lang='scss'>
.title {
  width: 100%;
  box-sizing: border-box;
  font-size: 34px;
  color: #ffffff;
  letter-spacing: 4px;
  height: 82px;
  line-height: 82px;
  position: relative;
  text-indent: 82px;
  i {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 32px;
    background: url("~@a/arrow.png") no-repeat;
    background-size: cover;
  }
}
</style>