新增显示切换动画设置

This commit is contained in:
lyswhut
2020-08-24 00:44:55 +08:00
parent 669c1fe490
commit b453a8934f
11 changed files with 36 additions and 7 deletions
+19
View File
@@ -135,6 +135,20 @@ export default {
'windowSizeActive.fontSize'(n) {
document.documentElement.style.fontSize = n
},
'setting.isShowAnimation': {
handler(n) {
if (n) {
if (document.body.classList.contains('disableAnimation')) {
document.body.classList.remove('disableAnimation')
}
} else {
if (!document.body.classList.contains('disableAnimation')) {
document.body.classList.add('disableAnimation')
}
}
},
immediate: true,
},
},
methods: {
...mapActions(['getVersionInfo']),
@@ -354,6 +368,11 @@ body {
box-sizing: border-box;
}
.disableAnimation * {
transition: none !important;
animation: none !important;
}
.transparent {
padding: @shadow-app;
#container {