feat: 项目初始化,未病局
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user