'admin-21.05.13:修复全局改变组件大小默认值报错问题'

This commit is contained in:
lyt 2021-05-13 16:41:26 +08:00
parent 679cac1c74
commit be9df6766e
3 changed files with 7 additions and 7 deletions

View File

@ -119,8 +119,8 @@ const themeConfigModule: Module<ThemeConfigState, RootStateTypes> = {
globalViceTitle: 'SMALL@小柒',
// 默认初始语言,可选值"<zh-cn|en|zh-tw>",默认 zh-cn
globalI18n: 'zh-cn',
// 默认全局组件大小,可选值"<default|medium|small|mini>",默认 default
globalComponentSize: 'default',
// 默认全局组件大小,可选值"<|medium|small|mini>",默认 ''
globalComponentSize: '',
},
},
mutations: {

View File

@ -196,7 +196,6 @@ export default {
.layout-lock-screen-filter {
filter: blur(5px);
transform: scale(1.2);
transition: all 0.3s ease;
}
.layout-lock-screen-mask {
background: rgba(255, 255, 255, 1);
@ -208,6 +207,7 @@ export default {
background-image: url('https://img6.bdstatic.com/img/image/pcindex/sunjunpchuazhoutu.JPG');
background-size: 100% 100%;
z-index: 9999991;
transition: all ease 0.3s 0.3s;
}
.layout-lock-screen {
@extend .layout-lock-screen-fixed;

View File

@ -6,7 +6,7 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<el-dropdown-item command="default" :disabled="disabledSize === 'default'">{{ $t('message.user.dropdownDefault') }}</el-dropdown-item>
<el-dropdown-item command="" :disabled="disabledSize === ''">{{ $t('message.user.dropdownDefault') }}</el-dropdown-item>
<el-dropdown-item command="medium" :disabled="disabledSize === 'medium'">{{ $t('message.user.dropdownMedium') }}</el-dropdown-item>
<el-dropdown-item command="small" :disabled="disabledSize === 'small'">{{ $t('message.user.dropdownSmall') }}</el-dropdown-item>
<el-dropdown-item command="mini" :disabled="disabledSize === 'mini'">{{ $t('message.user.dropdownMini') }}</el-dropdown-item>
@ -94,7 +94,7 @@ export default {
isScreenfull: false,
isShowUserNewsPopover: false,
disabledI18n: 'zh-cn',
disabledSize: 'small',
disabledSize: '',
});
// vuex
const getUserInfos = computed(() => {
@ -202,8 +202,8 @@ export default {
//
const initComponentSize = () => {
switch (getLocal('themeConfig').globalComponentSize) {
case 'default':
state.disabledSize = 'default';
case '':
state.disabledSize = '';
break;
case 'medium':
state.disabledSize = 'medium';