<template>
  <div class="item-header">
    <div class="item-header_title">{{ title }}</div>
    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
    },
  },
};
</script>

<style scoped>
.item-header {
  margin: 10px 20px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #f7f7f7;
}
.item-header_title {
  font-weight: bold;
  font-size: 15px;
}
.item-header_title::before {
  content: "";
  border-left: 5px solid #647092;
  margin-right: 10px;
}
.item-header [class^="el-icon-"] {
  font-weight: bold;
  cursor: pointer;
  color: #95979b;
}
.item-header [class^="el-icon-"]:hover {
  color: #000;
}
.item-header >>> .el-icon-more {
  transform: rotate(90deg);
}
</style>
