新增显示切换动画设置
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user