gohttpdUi/src/App.vue

46 lines
885 B
Vue
Raw Normal View History

2021-10-10 09:59:52 +08:00
<template>
2021-10-17 17:01:42 +08:00
<el-config-provider :locale="zhCn">
<router-view class="app" :class="{ grey__mode: greyMode }" />
</el-config-provider>
2021-10-10 09:59:52 +08:00
</template>
2021-10-16 09:40:39 +08:00
<script setup lang="ts" name="App">
import { computed } from 'vue'
import { useAppStore } from '@/store/modules/app'
const appStore = useAppStore()
2021-10-17 17:01:42 +08:00
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
2021-10-16 09:40:39 +08:00
const greyMode = computed(() => appStore.getGreyMode)
</script>
<style lang="less">
.size {
width: 100;
height: 100%;
min-width: var(--content-min-width);
}
html,
body {
.size;
padding: 0;
margin: 0;
}
2021-10-10 09:59:52 +08:00
#app {
2021-10-16 09:40:39 +08:00
.size;
background: var(--app-background-color);
}
.grey__mode {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: grayscale(100%);
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
2021-10-10 09:59:52 +08:00
}
</style>