<template>
    <el-config-provider
        :locale="config.locale"
        :size="config.size"
        :z-index="config.zIndex"
        :button="config.button"
        :message="config.message"
    >
        <router-view />
    </el-config-provider>
</template>

<script setup>
    import zh from 'element-plus/lib/locale/lang/zh-cn';
    const route = useRoute();
    const config = reactive({
        locale: zh,
        size: 'default',
        zIndex: 300,
        button: {
            autoInsertSpace: true,
        },
        message: {
            max: 5,
        },
    });
</script>

<style lang="less">
    @import url('@/styles/base.less');
</style>
