<template>
  <div class="baseMainContainer">
    <div class="header">
        <div class="left">{{ title }}</div>
        <div class="right"><slot name="headerR"></slot></div>
    </div>
    <div class="content-area">
        <slot name="mainArea"></slot>
    </div>
  </div>
</template>

<script>
export default {
    name: 'BaseMain',
    props:{
        title:String,
    }
}
</script>

<style lang="scss" scoped>
.baseMainContainer{
    width: px-to-rem(361);
    margin: px-to-rem(10) px-to-rem(19);
    .header{
        background:url('@/assets/image/common/header-bg.png') no-repeat;
        background-size: contain;
        width: 100%;
        height: px-to-rem(47);
        line-height: px-to-rem(47);
        display: flex;
        justify-content: space-between;
        .left{
            margin-left: px-to-rem(44);
            font-weight: bold;
            font-size: px-to-rem(18);
            color: #FFFFFF;
            text-shadow:px-to-rem(0) px-to-rem(2) px-to-rem(9) #003F85;
        }
        .right{
            margin-right: px-to-rem(11);
        }
    }
    .content-area{
        width: px-to-rem(360);
        min-height: px-to-rem(252);
        background: url('@/assets/image/common/areaBg.png') no-repeat 0 0 / 100% 100%;
    }
}
</style>