<template>
    <div class="header-wrap ">
        <div class="header-logo">
            <img src="../assets/header-logo.png" alt="">
        </div>
        <div class="header-right flex">
            <!-- <div class="right-item">权限设置</div>
            <div class="right-item">岗位设置</div> -->
            <el-dropdown trigger="click">
                <div class="right-item flex el-dropdown-link">
                    <img class="right-item-icon" src="../assets/header-icon.png" alt="">
                    <span>学术论文出版</span>
                    <img src="../assets/header-drop.svg" alt="">
                </div>
                <el-dropdown-menu slot="dropdown">
                    <el-dropdown-item><a href="/agent/domainList" target="_blank">我的域名</a></el-dropdown-item>
                    <el-dropdown-item>退出</el-dropdown-item>
                </el-dropdown-menu>
            </el-dropdown>
        </div>
    </div>
</template>
<script>
export default {
    methods: {
    }
}
</script>
<style lang="scss" scoped>
a {
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    line-height: normal;
    letter-spacing: 0.08em;
    color: #1E2226;
}
a:hover {
    color: #006AFF;
}

.flex {
    display: flex;
}

.header-wrap {
    color: #1E2226;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 64px);
    height: 100%;
    align-items: center;
    position: absolute;
    z-index: 9;
    .header-logo {
        img {
            height: 46px;
        }
    }

    .header-right {
        width: 362px;
        // justify-content: space-between;
        justify-content: flex-end;
        .el-dropdown-link {
            cursor: pointer;
        }
        .right-item{
            padding: 10px;
            transition: all .3s;
            cursor: pointer;
            &:hover{
                border-radius: 6px;
                background: rgba(255, 255, 255, 0.4);
                color: #006AFF;
                transition: all .3s;
            }
        }
        .el-dropdown .right-item{
            padding: 0 10px;
            cursor: pointer;
        }


        .right-item-icon {
            width: 36px;
            height: 36px;
        }

        .right-item-icon+span {
            display: inline-block;
            margin: 0 6px 0 12px;
        }
    }
}
</style>