'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@小柒', globalViceTitle: 'SMALL@小柒',
// 默认初始语言,可选值"<zh-cn|en|zh-tw>",默认 zh-cn // 默认初始语言,可选值"<zh-cn|en|zh-tw>",默认 zh-cn
globalI18n: 'zh-cn', globalI18n: 'zh-cn',
// 默认全局组件大小,可选值"<default|medium|small|mini>",默认 default // 默认全局组件大小,可选值"<|medium|small|mini>",默认 ''
globalComponentSize: 'default', globalComponentSize: '',
}, },
}, },
mutations: { mutations: {

View File

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

View File

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