😎修复获取全局主题错误
This commit is contained in:
parent
5f21e04283
commit
31a5473b9d
@ -112,11 +112,12 @@ export const setupVXETable = (app: App) => {
|
|||||||
|
|
||||||
// 从全局主题里面获取组件大小模式
|
// 从全局主题里面获取组件大小模式
|
||||||
function getVxeTableSize() {
|
function getVxeTableSize() {
|
||||||
let themeConfig = Local.get('themeConfig');
|
|
||||||
let size = themeConfig.globalComponentSize;
|
|
||||||
|
|
||||||
// 匹配vxetable大小模式
|
|
||||||
let vxeSize: VxeComponentSizeType = 'mini';
|
let vxeSize: VxeComponentSizeType = 'mini';
|
||||||
|
|
||||||
|
let themeConfig = Local.get('themeConfig');
|
||||||
|
if (themeConfig == null || themeConfig == undefined) return vxeSize;
|
||||||
|
|
||||||
|
let size = themeConfig.globalComponentSize;
|
||||||
if (size == 'large') vxeSize = 'medium';
|
if (size == 'large') vxeSize = 'medium';
|
||||||
else if (size == 'default') vxeSize = 'small';
|
else if (size == 'default') vxeSize = 'small';
|
||||||
else if (size == 'small') vxeSize = 'mini';
|
else if (size == 'small') vxeSize = 'mini';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user