修改: 调整布局,解决全局动画导致的界面抖动问题;

This commit is contained in:
iczer
2020-06-18 18:41:08 +08:00
parent d4d46eeaae
commit a90fa8d106
14 changed files with 122 additions and 64 deletions

View File

@@ -7,7 +7,7 @@
</img-checkbox-group>
</setting-item>
<setting-item title="主题色">
<color-checkbox-group @change="onColorChange" :defaultValues="[0]" :multiple="false">
<color-checkbox-group @change="onColorChange" :defaultValues="[5]" :multiple="false">
<color-checkbox v-for="(color, index) in colors" :key="index" :color="color" :value="index" />
</color-checkbox-group>
</setting-item>
@@ -96,6 +96,11 @@ export default {
colors: ['#f5222d', '#fa541c', '#faad14', '#13c2c2', '#52c41a', '#1d92ff', '#2f54eb', '#722ed1'],
}
},
watch: {
animate(){
this.direction = 0
}
},
computed: {
animateCfg() {
return this.animates[this.animate]