<template>
  <div class="base-line-title">
    <span class="left-border"></span>
    {{ props.title }}
  </div>
</template>

<script lang="ts" setup>
import { reactive, onMounted, ref } from "vue";
let props = defineProps({
  title: {
    type: String,
    default: "",
  },
});
</script>
<style lang="scss" scoped>
.base-line-title {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  height: 1.8rem;
  .left-border {
    background-color: var(--el-color-primary);
    display: inline-block;
    height: 100%;
    width: 4px;
    margin-right: 10px;
    border-radius: 12px;
    animation: leftBorder 0.6s ease-in;
    animation-fill-mode: forwards;
    // animation-delay: 1s;
  }
}
@keyframes leftBorder{
  0% {
    height: 0;
  }
  100%{
    height: 100%;
  }
}
</style>
