<template>
  <div class="head-title">
    {{ title }}
    <div v-if="subTitle" class="sub-title">{{ subTitle }}</div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
    subTitle: {
      type: String,
      default: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.head-title {
  padding-top: 20rpx;
  font-weight: bold;
  font-size: 32rpx;
  color: #3D3D3D;
  line-height: 44rpx;

  .sub-title {
    margin: 8rpx 0 4rpx;
    font-weight: 400;
    font-size: 24rpx;
    color: #999999;
    line-height: 28rpx;
  }
}
</style>