<template>
  <div class="pageTitle" :style="`margin-bottom: ${marginBottom}px;background-color: ${backgroundColor}`">
    <div class="title">
      <!-- <el-icon class="icon" color="#4c64ee" size="25px"><Menu /></el-icon> -->
      <div class="font font22">{{ title }}</div>
    </div>
    <div>
      <slot name="center"></slot>
    </div>
      <div>
        <slot> </slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: ""
  },
  marginBottom: {
    type: Number,
    default: 10
  },
  backgroundColor: {
    type: String,
    default: '#fff'
  }
});
</script>
 
<style lang = "scss" scoped>
.pageTitle {
  padding: 10px 30px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  .title {
    display: flex;
    margin: auto 0;
    .icon {
      margin: auto 0;
    }
    .font {
      font-size: 20px;
      color: #3d3d3d;
      vertical-align: middle;
    }
  }
}
</style>