<template>
  <div class="d-subtitle d-flex">
    <span :style="customizedSty? customizedSty: ''"></span>
    <div class="title-text">
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
import { Vue, Component, Prop } from "vue-property-decorator";
/**
 * @Description 子标题
 * @Author ZPFly
 * @Date 2021/11/3 10:19
 */
@Component({
  name: "SubTitle",
})
export default class SubTitle extends Vue {
  @Prop()customizedSty: Object | undefined;
}
</script>

<style scoped lang="scss">
.d-subtitle {
  height: 48px;
  span {
    width: 6px;
    height: 18px;
    border-radius: 3px;
    margin: auto 10px auto 0;
    background-color: rgba(247, 148, 0, 0.4);
  }
  .title-text {
    font-weight: bold;
    font-size: 18px;
    line-height: 20px;
    margin: auto 0;
  }
}
</style>
