<template>
  <div class="grid-container">
    <span>{{ title }}</span>
    <div class="title-line"></div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: "标题",
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
.grid-container {
  height: 40px;
  width: 100%;
  padding-left: 20px;
  border-bottom: 1px solid #f2f3f5;
  position: relative;
  & > span {
    height: 100%;
    line-height: 40px;
    display: inline-block;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.045em;
    color: #323233;
  }
  .title-line {
    position: absolute;
    left: 20px;
    bottom: 0;
    width: 75px;
    height: 2px;
    opacity: 1;
    background: #1349c5;
  }
}
</style>
