24 lines
717 B
Vue
24 lines
717 B
Vue
<template>
|
|
<el-config-provider :locale="zhCn" :size="assemblySize" :button="buttonConfig">
|
|
<router-view></router-view>
|
|
</el-config-provider>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { reactive, computed } from "vue";
|
|
import { useTheme } from "@/hooks/useTheme";
|
|
import { ElConfigProvider } from "element-plus";
|
|
import { useGlobalStore } from "@/stores/modules/global";
|
|
import zhCn from "element-plus/es/locale/lang/zh-cn";
|
|
const globalStore = useGlobalStore();
|
|
|
|
// init theme
|
|
const { initTheme } = useTheme();
|
|
initTheme();
|
|
// element assemblySize
|
|
const assemblySize = computed(() => globalStore.assemblySize);
|
|
|
|
// element button config
|
|
const buttonConfig = reactive({ autoInsertSpace: false });
|
|
</script>
|