<template>
    <el-config-provider :locale="zhCn">
        <slot></slot>

    </el-config-provider>
</template>

<script setup>
import split from "split.js";
import {HcLog} from '~uti/tools'
import { ElMessage, ElLoading, ElNotification,ElMessageBox } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 将ui的函数挂载在windows对象上
function registerElTools () {
    window['$loading'] = ElLoading;
    window['$messageBox'] = ElMessageBox;
    window['$message'] = ElMessage;
    window['$notification'] = ElNotification;
    window['$HcLog'] = HcLog;
    window['$split'] = split;
}

registerElTools()
</script>
