App.vue
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<template>
<a-config-provider :theme="themeStore.themeConfig" :locale="localeStore.locale">
<router-view/>
</a-config-provider>
</template>
<script setup lang="ts">
import {useThemeStore} from "@/store/useThemeStore.ts";
import {useLocaleStore} from "@/store/useLocaleStore.ts";
const themeStore = useThemeStore()
const localeStore = useLocaleStore()
</script>
<style>
#app {
height: 100vh;
width: 100vw;
overflow: auto;
}
::-webkit-scrollbar {
width: 5px; /* 宽度 */
height: 8px; /* 高度(对于水平滚动条) */
border: 1px solid rgb(128, 128, 128, 0.2);
}
/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
background: rgb(128, 128, 128, 0.5); /* 滑块颜色 */
border-radius: 10px;
}
/* 滚动条轨道 */
::-webkit-scrollbar-track {
background: transparent; /* 轨道颜色 */
border-radius: 10px;
}
/*动画处理*/
.v-enter-active,
.v-leave-active {
transition: opacity 0.5s ease;
}
.v-enter-from,
.v-leave-to {
opacity: 0;
}
/*动画处理*/
.drop-enter-active,
.drop-leave-active {
transition: all 0.5s ease;
}
.drop-enter-from,
.drop-leave-to {
transform: translateY(-30px);
opacity: 0;
}
</style>