<template>
    <div class="main flex flex-col">
        <Header></Header>
        <div class="flex-1 flex shrink-0" style="height:calc(100vh - 100px)">
            <div class="h-full ">
                <elMenu></elMenu>

            </div>
            <div class=" flex-1 overflow-y-auto">
                <Transition name="slide-right">
                    <router-view />
                </Transition>
            </div>
        </div>
    </div>
</template>
<script setup lang="ts">
import { ref } from 'vue'

import { useI18n } from 'vue-i18n'
import Header from './components/Header.vue'
import elMenu from './components/elMenu.vue'


import { useStoreI18n } from '@/hook/i18n'
const { t, locale } = useI18n()
const { $t } = useStoreI18n()
const handleOpen = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
    console.log(key, keyPath)
}
</script>
<style scoped lang="scss">
.slide-right-enter-active,
.slide-right-leave-active {
    transition: all 0.5s ease;
}

.slide-right-enter-from {
    opacity: 0;
    transform: translateX(100%);
}

.slide-right-leave-to {
    opacity: 0;
    transform: translateX(-100%);
}

.main {
    width: 100%;
    height: 100vh;
    min-width: 1000px;
    overflow-y: hidden;

    .main-header {
        // display: flex;
        // justify-content: space-between;
        // align-items: center;
        height: 102px;
        padding: 0 48px;

        .logo {
            width: 156px;
        }
    }
}

// 隐藏滚动条
::-webkit-scrollbar {
    display: none;
}
</style>
