<template>
    <div class="page_item top_header">
        <div class="top_left">
            <slot name="back">
                <el-button class="button_default_background" @click="router.go(-1)">
                    <el-icon class="img"><ArrowLeftBold /></el-icon>
                    返回
                </el-button>
            </slot>

        </div>
        <div class="top_right">
            <slot name="topRight"></slot>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';

const router = useRouter()

</script>

<style lang="scss" scoped>


.top_header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:40px;
    padding:10px 20px;
    .top_left{
        display: flex;
        align-items: center;
        gap:40px;
    }
    :deep(.button_default_background){
        padding:8px 10px;
        >span{
            gap:4px;
        }
    }
}
</style>
