<template>
  <div
    class="gap-title"
    :class="{
      'has-line': hasLine,
    }">
    <span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "",
    },
    hasLine: {
      type: Boolean,
      default: false,
    },
  },
  components: {},
  data() {
    return {};
  },
  watch: {},
  computed: {},
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped>
.gap-title {
  height: 18px;
  font-size: 18px;
  font-weight: 600;
  color: #202531;
  display: flex;
  align-items: center;
}
.gap-title::before {
  content: "";
  display: inline-block;
  margin-right: 8px;
  width: 4px;
  height: 16px;
  background-color: #2b4695;
  border-radius: 2px;
}
.gap-title.has-line::after {
  content: "";
  display: inline-block;
  flex: 1;
  border-top: 1px dashed #dadee7;
  margin-left: 8px;
}
</style>
