<template>
    <el-container direction="horizontal">
        <el-aside width="200px">
            <slot name="menuList"></slot>
        </el-aside>
        <el-container direction="vertical" class="main">
            <el-main style="padding: 0">
                <slot></slot>
            </el-main>
        </el-container>
    </el-container>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.main {
    margin-left: 20px;
    .el-main {
        padding: 0;
        .flex-col();
    }
}

.menu-content {
    min-height: 800px;
    background-color: #fff;
}

/deep/ .el-menu > .el-menu-item {
    padding-left: 50px !important;
    height: 66px !important;
    line-height: 66px !important;
    &.is-active {
        background-color: @prim;
        color: #fff;
        font-weight: bold;
    }
    &:hover {
        background-color: #e4e4e4 !important;
        color: #000000;
        font-weight: bold;
    }
}

/deep/ .el-menu {
    .el-submenu {
        .el-submenu {
            .el-submenu__title {
                padding-left: 60px !important;
            }
        }

        .el-menu--inline {
            background-color: #fff;

            .el-menu-item {
                height: auto !important;
                line-height: 24px !important;
                padding: 20px 20px 20px 80px !important;
                span {
                    white-space: pre-wrap;
                }
                &.is-active {
                    background-color: #e4e4e4;
                    color: #000000;
                    font-weight: bold;
                }
            }
        }

        .el-submenu__title {
            padding-left: 50px !important;
            height: 66px !important;
            line-height: 66px !important;

            &:hover {
                background-color: #e4e4e4;
                color: #000000;
                font-weight: bold;
            }
            i {
                font-weight: bold;
            }
        }

        &.is-active > .el-submenu__title {
            color: #fff;
            background-color: @prim;
            font-weight: bold;
            i {
                color: #fff;
            }
        }
    }
}
</style>
