<template>
  <div class="custom-title" :class="[ `type-${type}` ]">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "CustomTitle",
  props: {
    type: {
      type: String,
      default: '1'
    }
  }
}
</script>

<style scoped lang="less">
  .custom-title {
    ont-family: HYHeiFangJ;
    font-size: 18px;
    color: #FFFFFF;
    letter-spacing: 1px;
    line-height: 32px;
    font-weight: 400;
    padding-left: 36px;
    height: 32px;
    &.type-1 {
      background: url("assets/images/title.png") left top no-repeat;
      background-size: 100% 100%;
    }
    &.type-2 {
      background: url("assets/images/title2.png") left top no-repeat;
      background-size: 100% 100%;
    }

  }
</style>
