<template>
  <div class="sidebar-title">
    <div class="sidebar-icon"></div>
    <span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  name: 'SidebarTitle2',
  props: {
    title: {
      type: String,
      default: '加载中'
    }
  }
}
</script>

<style lang="scss" scoped>
.sidebar-title {
  display: flex;
  align-items: center;
  width: 200px;
  height: 50px;
  background-color: rgba(7, 41, 88, 0.6);
  border-radius: 10px;
  .sidebar-icon {
    width: 3px;
    height: 18px;
    margin: 0 10px 0 15px;
    background: #60fff6;
  }
  span {
    color: #fff;
    font-size: 16px;
  }
}
</style>
