This commit is contained in:
仲么了
2023-12-29 14:46:20 +08:00
parent d6f3a74ac7
commit 526d541cc2
15 changed files with 372 additions and 111 deletions

View File

@@ -1,22 +1,19 @@
<template>
<el-config-provider :locale="zhCn">
<el-config-provider :locale='zhCn'>
<router-view></router-view>
</el-config-provider>
</template>
<script lang="ts" setup>
<script lang='ts' setup>
import { computed, ref } from 'vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import { useConfig } from '@/stores/config'
import { useElementPlusTheme } from "use-element-plus-theme"
import { useElementPlusTheme } from 'use-element-plus-theme'
const configStore = useConfig()
useElementPlusTheme(configStore.getColorVal('elementUiPrimary'))
// document.documentElement.style.setProperty('--el-color-primary', configStore.getColorVal('elementUiPrimary'));
</script>
<style lang="scss">
// $primaryColor: v-bind('configStore.getColorVal("elementUiPrimary")');
// :root {
// --el-color-primary: $primaryColor !important;
// }
<style lang='scss'>
</style>