chore: 一些小改动
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import MainView from './views/MainView.vue'
|
import MainView from './views/MainView.vue'
|
||||||
import { ref } from 'vue'
|
|
||||||
import { ElConfigProvider } from 'element-plus'
|
import { ElConfigProvider } from 'element-plus'
|
||||||
import { useThemeConfigStore } from './stores/themeConfig';
|
import { useThemeConfigStore } from './stores/themeConfig';
|
||||||
|
|
||||||
@@ -11,7 +10,8 @@ const themeConfigStore = useThemeConfigStore()
|
|||||||
{{ themeConfigStore.elConfig.size }}
|
{{ themeConfigStore.elConfig.size }}
|
||||||
{{ themeConfigStore.themeConfig.themeMode }}
|
{{ themeConfigStore.themeConfig.themeMode }}
|
||||||
<el-config-provider :size="themeConfigStore.elConfig.size" :z-index="themeConfigStore.elConfig.zIndex"
|
<el-config-provider :size="themeConfigStore.elConfig.size" :z-index="themeConfigStore.elConfig.zIndex"
|
||||||
:button="{ autoInsertSpace: true }" :locale="locale">
|
:button="{ autoInsertSpace: true }">
|
||||||
|
<!-- :locale="locale" -->
|
||||||
<MainView />
|
<MainView />
|
||||||
</el-config-provider>
|
</el-config-provider>
|
||||||
</template>
|
</template>
|
||||||
|
@@ -16,9 +16,9 @@ export const useThemeConfigStore = defineStore('themeConfig', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const themeConfig = ref<{
|
const themeConfig = ref<{
|
||||||
themeMode: ThemeMode,
|
themeMode: ThemeMode;
|
||||||
// updateThemeMode: Function,
|
// updateThemeMode: Function;
|
||||||
getCurrentThemeMode: Function,
|
getCurrentThemeMode: Function;
|
||||||
}>({
|
}>({
|
||||||
themeMode: 'auto',
|
themeMode: 'auto',
|
||||||
// updateThemeMode: (themeMode: ThemeMode) => {
|
// updateThemeMode: (themeMode: ThemeMode) => {
|
||||||
|
Reference in New Issue
Block a user